Skip to content
This repository has been archived by the owner on Dec 31, 2023. It is now read-only.

feat!: move to microgen #61

Merged
merged 14 commits into from
Sep 16, 2020
Prev Previous commit
Next Next commit
docs: mention filter_ -> filter rename
  • Loading branch information
busunkim96 committed Sep 15, 2020
commit 75a272b0af3cd14131c6f7a94d1e0b05d1b81783
28 changes: 28 additions & 0 deletions UPGRADING.md
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,34 @@ response = client.batch_predict(
```


The method `list_datasets` takes an argument `filter` instead of `filter_`.

**Before**
```py
from google.cloud import automl

project_id = "PROJECT_ID"

client = automl.AutoMlClient()
project_location = client.location_path(project_id, "us-central1")

# List all the datasets available in the region.
response = client.list_datasets(project_location, filter_="")
```

**After**
```py
from google.cloud import automl

project_id = "PROJECT_ID"
client = automl.AutoMlClient()
# A resource that represents Google Cloud Platform location.
project_location = f"projects/{project_id}/locations/us-central1"

# List all the datasets available in the region.
response = client.list_datasets(parent=project_location, filter="")
```


## Enums and types

Expand Down