Skip to content

Commit 79469ac

Browse files
1 parent 1ff05f7 commit 79469ac

File tree

1,692 files changed

+412
-675294
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,692 files changed

+412
-675294
lines changed

google/cloud/aiplatform_v1/services/dataset_service/async_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2334,7 +2334,7 @@ async def list_locations(
23342334
# Done; return the response.
23352335
return response
23362336

2337-
async def __aenter__(self):
2337+
async def __aenter__(self) -> "DatasetServiceAsyncClient":
23382338
return self
23392339

23402340
async def __aexit__(self, exc_type, exc, tb):

google/cloud/aiplatform_v1/services/endpoint_service/async_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2006,7 +2006,7 @@ async def list_locations(
20062006
# Done; return the response.
20072007
return response
20082008

2009-
async def __aenter__(self):
2009+
async def __aenter__(self) -> "EndpointServiceAsyncClient":
20102010
return self
20112011

20122012
async def __aexit__(self, exc_type, exc, tb):

google/cloud/aiplatform_v1/services/featurestore_online_serving_service/async_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1289,7 +1289,7 @@ async def list_locations(
12891289
# Done; return the response.
12901290
return response
12911291

1292-
async def __aenter__(self):
1292+
async def __aenter__(self) -> "FeaturestoreOnlineServingServiceAsyncClient":
12931293
return self
12941294

12951295
async def __aexit__(self, exc_type, exc, tb):

google/cloud/aiplatform_v1/services/featurestore_service/async_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3768,7 +3768,7 @@ async def list_locations(
37683768
# Done; return the response.
37693769
return response
37703770

3771-
async def __aenter__(self):
3771+
async def __aenter__(self) -> "FeaturestoreServiceAsyncClient":
37723772
return self
37733773

37743774
async def __aexit__(self, exc_type, exc, tb):

google/cloud/aiplatform_v1/services/index_endpoint_service/async_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1931,7 +1931,7 @@ async def list_locations(
19311931
# Done; return the response.
19321932
return response
19331933

1934-
async def __aenter__(self):
1934+
async def __aenter__(self) -> "IndexEndpointServiceAsyncClient":
19351935
return self
19361936

19371937
async def __aexit__(self, exc_type, exc, tb):

google/cloud/aiplatform_v1/services/index_service/async_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1684,7 +1684,7 @@ async def list_locations(
16841684
# Done; return the response.
16851685
return response
16861686

1687-
async def __aenter__(self):
1687+
async def __aenter__(self) -> "IndexServiceAsyncClient":
16881688
return self
16891689

16901690
async def __aexit__(self, exc_type, exc, tb):

google/cloud/aiplatform_v1/services/job_service/async_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5045,7 +5045,7 @@ async def list_locations(
50455045
# Done; return the response.
50465046
return response
50475047

5048-
async def __aenter__(self):
5048+
async def __aenter__(self) -> "JobServiceAsyncClient":
50495049
return self
50505050

50515051
async def __aexit__(self, exc_type, exc, tb):

google/cloud/aiplatform_v1/services/match_service/async_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1069,7 +1069,7 @@ async def list_locations(
10691069
# Done; return the response.
10701070
return response
10711071

1072-
async def __aenter__(self):
1072+
async def __aenter__(self) -> "MatchServiceAsyncClient":
10731073
return self
10741074

10751075
async def __aexit__(self, exc_type, exc, tb):

google/cloud/aiplatform_v1/services/metadata_service/async_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4722,7 +4722,7 @@ async def list_locations(
47224722
# Done; return the response.
47234723
return response
47244724

4725-
async def __aenter__(self):
4725+
async def __aenter__(self) -> "MetadataServiceAsyncClient":
47264726
return self
47274727

47284728
async def __aexit__(self, exc_type, exc, tb):

google/cloud/aiplatform_v1/services/migration_service/async_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1186,7 +1186,7 @@ async def list_locations(
11861186
# Done; return the response.
11871187
return response
11881188

1189-
async def __aenter__(self):
1189+
async def __aenter__(self) -> "MigrationServiceAsyncClient":
11901190
return self
11911191

11921192
async def __aexit__(self, exc_type, exc, tb):

google/cloud/aiplatform_v1/services/migration_service/client.py

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -208,40 +208,40 @@ def parse_annotated_dataset_path(path: str) -> Dict[str, str]:
208208
@staticmethod
209209
def dataset_path(
210210
project: str,
211+
location: str,
211212
dataset: str,
212213
) -> str:
213214
"""Returns a fully-qualified dataset string."""
214-
return "projects/{project}/datasets/{dataset}".format(
215+
return "projects/{project}/locations/{location}/datasets/{dataset}".format(
215216
project=project,
217+
location=location,
216218
dataset=dataset,
217219
)
218220

219221
@staticmethod
220222
def parse_dataset_path(path: str) -> Dict[str, str]:
221223
"""Parses a dataset path into its component segments."""
222-
m = re.match(r"^projects/(?P<project>.+?)/datasets/(?P<dataset>.+?)$", path)
224+
m = re.match(
225+
r"^projects/(?P<project>.+?)/locations/(?P<location>.+?)/datasets/(?P<dataset>.+?)$",
226+
path,
227+
)
223228
return m.groupdict() if m else {}
224229

225230
@staticmethod
226231
def dataset_path(
227232
project: str,
228-
location: str,
229233
dataset: str,
230234
) -> str:
231235
"""Returns a fully-qualified dataset string."""
232-
return "projects/{project}/locations/{location}/datasets/{dataset}".format(
236+
return "projects/{project}/datasets/{dataset}".format(
233237
project=project,
234-
location=location,
235238
dataset=dataset,
236239
)
237240

238241
@staticmethod
239242
def parse_dataset_path(path: str) -> Dict[str, str]:
240243
"""Parses a dataset path into its component segments."""
241-
m = re.match(
242-
r"^projects/(?P<project>.+?)/locations/(?P<location>.+?)/datasets/(?P<dataset>.+?)$",
243-
path,
244-
)
244+
m = re.match(r"^projects/(?P<project>.+?)/datasets/(?P<dataset>.+?)$", path)
245245
return m.groupdict() if m else {}
246246

247247
@staticmethod

google/cloud/aiplatform_v1/services/model_garden_service/async_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1009,7 +1009,7 @@ async def list_locations(
10091009
# Done; return the response.
10101010
return response
10111011

1012-
async def __aenter__(self):
1012+
async def __aenter__(self) -> "ModelGardenServiceAsyncClient":
10131013
return self
10141014

10151015
async def __aexit__(self, exc_type, exc, tb):

google/cloud/aiplatform_v1/services/model_service/async_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3125,7 +3125,7 @@ async def list_locations(
31253125
# Done; return the response.
31263126
return response
31273127

3128-
async def __aenter__(self):
3128+
async def __aenter__(self) -> "ModelServiceAsyncClient":
31293129
return self
31303130

31313131
async def __aexit__(self, exc_type, exc, tb):

google/cloud/aiplatform_v1/services/pipeline_service/async_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2102,7 +2102,7 @@ async def list_locations(
21022102
# Done; return the response.
21032103
return response
21042104

2105-
async def __aenter__(self):
2105+
async def __aenter__(self) -> "PipelineServiceAsyncClient":
21062106
return self
21072107

21082108
async def __aexit__(self, exc_type, exc, tb):

google/cloud/aiplatform_v1/services/prediction_service/async_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1394,7 +1394,7 @@ async def list_locations(
13941394
# Done; return the response.
13951395
return response
13961396

1397-
async def __aenter__(self):
1397+
async def __aenter__(self) -> "PredictionServiceAsyncClient":
13981398
return self
13991399

14001400
async def __aexit__(self, exc_type, exc, tb):

google/cloud/aiplatform_v1/services/specialist_pool_service/async_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1563,7 +1563,7 @@ async def list_locations(
15631563
# Done; return the response.
15641564
return response
15651565

1566-
async def __aenter__(self):
1566+
async def __aenter__(self) -> "SpecialistPoolServiceAsyncClient":
15671567
return self
15681568

15691569
async def __aexit__(self, exc_type, exc, tb):

google/cloud/aiplatform_v1/services/tensorboard_service/async_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4487,7 +4487,7 @@ async def list_locations(
44874487
# Done; return the response.
44884488
return response
44894489

4490-
async def __aenter__(self):
4490+
async def __aenter__(self) -> "TensorboardServiceAsyncClient":
44914491
return self
44924492

44934493
async def __aexit__(self, exc_type, exc, tb):

google/cloud/aiplatform_v1/services/vizier_service/async_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2433,7 +2433,7 @@ async def list_locations(
24332433
# Done; return the response.
24342434
return response
24352435

2436-
async def __aenter__(self):
2436+
async def __aenter__(self) -> "VizierServiceAsyncClient":
24372437
return self
24382438

24392439
async def __aexit__(self, exc_type, exc, tb):

google/cloud/aiplatform_v1beta1/services/dataset_service/async_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2334,7 +2334,7 @@ async def list_locations(
23342334
# Done; return the response.
23352335
return response
23362336

2337-
async def __aenter__(self):
2337+
async def __aenter__(self) -> "DatasetServiceAsyncClient":
23382338
return self
23392339

23402340
async def __aexit__(self, exc_type, exc, tb):

google/cloud/aiplatform_v1beta1/services/deployment_resource_pool_service/async_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1579,7 +1579,7 @@ async def list_locations(
15791579
# Done; return the response.
15801580
return response
15811581

1582-
async def __aenter__(self):
1582+
async def __aenter__(self) -> "DeploymentResourcePoolServiceAsyncClient":
15831583
return self
15841584

15851585
async def __aexit__(self, exc_type, exc, tb):

google/cloud/aiplatform_v1beta1/services/endpoint_service/async_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2012,7 +2012,7 @@ async def list_locations(
20122012
# Done; return the response.
20132013
return response
20142014

2015-
async def __aenter__(self):
2015+
async def __aenter__(self) -> "EndpointServiceAsyncClient":
20162016
return self
20172017

20182018
async def __aexit__(self, exc_type, exc, tb):

google/cloud/aiplatform_v1beta1/services/featurestore_online_serving_service/async_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1289,7 +1289,7 @@ async def list_locations(
12891289
# Done; return the response.
12901290
return response
12911291

1292-
async def __aenter__(self):
1292+
async def __aenter__(self) -> "FeaturestoreOnlineServingServiceAsyncClient":
12931293
return self
12941294

12951295
async def __aexit__(self, exc_type, exc, tb):

google/cloud/aiplatform_v1beta1/services/featurestore_service/async_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3769,7 +3769,7 @@ async def list_locations(
37693769
# Done; return the response.
37703770
return response
37713771

3772-
async def __aenter__(self):
3772+
async def __aenter__(self) -> "FeaturestoreServiceAsyncClient":
37733773
return self
37743774

37753775
async def __aexit__(self, exc_type, exc, tb):

google/cloud/aiplatform_v1beta1/services/index_endpoint_service/async_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1931,7 +1931,7 @@ async def list_locations(
19311931
# Done; return the response.
19321932
return response
19331933

1934-
async def __aenter__(self):
1934+
async def __aenter__(self) -> "IndexEndpointServiceAsyncClient":
19351935
return self
19361936

19371937
async def __aexit__(self, exc_type, exc, tb):

google/cloud/aiplatform_v1beta1/services/index_service/async_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1684,7 +1684,7 @@ async def list_locations(
16841684
# Done; return the response.
16851685
return response
16861686

1687-
async def __aenter__(self):
1687+
async def __aenter__(self) -> "IndexServiceAsyncClient":
16881688
return self
16891689

16901690
async def __aexit__(self, exc_type, exc, tb):

google/cloud/aiplatform_v1beta1/services/job_service/async_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5051,7 +5051,7 @@ async def list_locations(
50515051
# Done; return the response.
50525052
return response
50535053

5054-
async def __aenter__(self):
5054+
async def __aenter__(self) -> "JobServiceAsyncClient":
50555055
return self
50565056

50575057
async def __aexit__(self, exc_type, exc, tb):

google/cloud/aiplatform_v1beta1/services/match_service/async_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1069,7 +1069,7 @@ async def list_locations(
10691069
# Done; return the response.
10701070
return response
10711071

1072-
async def __aenter__(self):
1072+
async def __aenter__(self) -> "MatchServiceAsyncClient":
10731073
return self
10741074

10751075
async def __aexit__(self, exc_type, exc, tb):

google/cloud/aiplatform_v1beta1/services/metadata_service/async_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4722,7 +4722,7 @@ async def list_locations(
47224722
# Done; return the response.
47234723
return response
47244724

4725-
async def __aenter__(self):
4725+
async def __aenter__(self) -> "MetadataServiceAsyncClient":
47264726
return self
47274727

47284728
async def __aexit__(self, exc_type, exc, tb):

google/cloud/aiplatform_v1beta1/services/migration_service/async_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1186,7 +1186,7 @@ async def list_locations(
11861186
# Done; return the response.
11871187
return response
11881188

1189-
async def __aenter__(self):
1189+
async def __aenter__(self) -> "MigrationServiceAsyncClient":
11901190
return self
11911191

11921192
async def __aexit__(self, exc_type, exc, tb):

google/cloud/aiplatform_v1beta1/services/migration_service/client.py

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -208,40 +208,40 @@ def parse_annotated_dataset_path(path: str) -> Dict[str, str]:
208208
@staticmethod
209209
def dataset_path(
210210
project: str,
211+
location: str,
211212
dataset: str,
212213
) -> str:
213214
"""Returns a fully-qualified dataset string."""
214-
return "projects/{project}/datasets/{dataset}".format(
215+
return "projects/{project}/locations/{location}/datasets/{dataset}".format(
215216
project=project,
217+
location=location,
216218
dataset=dataset,
217219
)
218220

219221
@staticmethod
220222
def parse_dataset_path(path: str) -> Dict[str, str]:
221223
"""Parses a dataset path into its component segments."""
222-
m = re.match(r"^projects/(?P<project>.+?)/datasets/(?P<dataset>.+?)$", path)
224+
m = re.match(
225+
r"^projects/(?P<project>.+?)/locations/(?P<location>.+?)/datasets/(?P<dataset>.+?)$",
226+
path,
227+
)
223228
return m.groupdict() if m else {}
224229

225230
@staticmethod
226231
def dataset_path(
227232
project: str,
228-
location: str,
229233
dataset: str,
230234
) -> str:
231235
"""Returns a fully-qualified dataset string."""
232-
return "projects/{project}/locations/{location}/datasets/{dataset}".format(
236+
return "projects/{project}/datasets/{dataset}".format(
233237
project=project,
234-
location=location,
235238
dataset=dataset,
236239
)
237240

238241
@staticmethod
239242
def parse_dataset_path(path: str) -> Dict[str, str]:
240243
"""Parses a dataset path into its component segments."""
241-
m = re.match(
242-
r"^projects/(?P<project>.+?)/locations/(?P<location>.+?)/datasets/(?P<dataset>.+?)$",
243-
path,
244-
)
244+
m = re.match(r"^projects/(?P<project>.+?)/datasets/(?P<dataset>.+?)$", path)
245245
return m.groupdict() if m else {}
246246

247247
@staticmethod

google/cloud/aiplatform_v1beta1/services/model_garden_service/async_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1009,7 +1009,7 @@ async def list_locations(
10091009
# Done; return the response.
10101010
return response
10111011

1012-
async def __aenter__(self):
1012+
async def __aenter__(self) -> "ModelGardenServiceAsyncClient":
10131013
return self
10141014

10151015
async def __aexit__(self, exc_type, exc, tb):

google/cloud/aiplatform_v1beta1/services/model_service/async_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3126,7 +3126,7 @@ async def list_locations(
31263126
# Done; return the response.
31273127
return response
31283128

3129-
async def __aenter__(self):
3129+
async def __aenter__(self) -> "ModelServiceAsyncClient":
31303130
return self
31313131

31323132
async def __aexit__(self, exc_type, exc, tb):

google/cloud/aiplatform_v1beta1/services/pipeline_service/async_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2104,7 +2104,7 @@ async def list_locations(
21042104
# Done; return the response.
21052105
return response
21062106

2107-
async def __aenter__(self):
2107+
async def __aenter__(self) -> "PipelineServiceAsyncClient":
21082108
return self
21092109

21102110
async def __aexit__(self, exc_type, exc, tb):

google/cloud/aiplatform_v1beta1/services/prediction_service/async_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1394,7 +1394,7 @@ async def list_locations(
13941394
# Done; return the response.
13951395
return response
13961396

1397-
async def __aenter__(self):
1397+
async def __aenter__(self) -> "PredictionServiceAsyncClient":
13981398
return self
13991399

14001400
async def __aexit__(self, exc_type, exc, tb):

google/cloud/aiplatform_v1beta1/services/schedule_service/async_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1733,7 +1733,7 @@ async def list_locations(
17331733
# Done; return the response.
17341734
return response
17351735

1736-
async def __aenter__(self):
1736+
async def __aenter__(self) -> "ScheduleServiceAsyncClient":
17371737
return self
17381738

17391739
async def __aexit__(self, exc_type, exc, tb):

0 commit comments

Comments
 (0)