Skip to content

Commit 5112a1a

Browse files
1 parent 043107e commit 5112a1a

File tree

1,630 files changed

+44
-675083
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,630 files changed

+44
-675083
lines changed

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

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -230,40 +230,40 @@ def parse_dataset_path(path: str) -> Dict[str, str]:
230230
@staticmethod
231231
def dataset_path(
232232
project: str,
233-
location: str,
234233
dataset: str,
235234
) -> str:
236235
"""Returns a fully-qualified dataset string."""
237-
return "projects/{project}/locations/{location}/datasets/{dataset}".format(
236+
return "projects/{project}/datasets/{dataset}".format(
238237
project=project,
239-
location=location,
240238
dataset=dataset,
241239
)
242240

243241
@staticmethod
244242
def parse_dataset_path(path: str) -> Dict[str, str]:
245243
"""Parses a dataset path into its component segments."""
246-
m = re.match(
247-
r"^projects/(?P<project>.+?)/locations/(?P<location>.+?)/datasets/(?P<dataset>.+?)$",
248-
path,
249-
)
244+
m = re.match(r"^projects/(?P<project>.+?)/datasets/(?P<dataset>.+?)$", path)
250245
return m.groupdict() if m else {}
251246

252247
@staticmethod
253248
def dataset_path(
254249
project: str,
250+
location: str,
255251
dataset: str,
256252
) -> str:
257253
"""Returns a fully-qualified dataset string."""
258-
return "projects/{project}/datasets/{dataset}".format(
254+
return "projects/{project}/locations/{location}/datasets/{dataset}".format(
259255
project=project,
256+
location=location,
260257
dataset=dataset,
261258
)
262259

263260
@staticmethod
264261
def parse_dataset_path(path: str) -> Dict[str, str]:
265262
"""Parses a dataset path into its component segments."""
266-
m = re.match(r"^projects/(?P<project>.+?)/datasets/(?P<dataset>.+?)$", path)
263+
m = re.match(
264+
r"^projects/(?P<project>.+?)/locations/(?P<location>.+?)/datasets/(?P<dataset>.+?)$",
265+
path,
266+
)
267267
return m.groupdict() if m else {}
268268

269269
@staticmethod

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,
212211
dataset: str,
213212
) -> str:
214213
"""Returns a fully-qualified dataset string."""
215-
return "projects/{project}/locations/{location}/datasets/{dataset}".format(
214+
return "projects/{project}/datasets/{dataset}".format(
216215
project=project,
217-
location=location,
218216
dataset=dataset,
219217
)
220218

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

230225
@staticmethod
231226
def dataset_path(
232227
project: str,
228+
location: str,
233229
dataset: str,
234230
) -> str:
235231
"""Returns a fully-qualified dataset string."""
236-
return "projects/{project}/datasets/{dataset}".format(
232+
return "projects/{project}/locations/{location}/datasets/{dataset}".format(
237233
project=project,
234+
location=location,
238235
dataset=dataset,
239236
)
240237

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

247247
@staticmethod

owl-bot-staging/v1/.coveragerc

Lines changed: 0 additions & 13 deletions
This file was deleted.

owl-bot-staging/v1/.flake8

Lines changed: 0 additions & 33 deletions
This file was deleted.

owl-bot-staging/v1/MANIFEST.in

Lines changed: 0 additions & 2 deletions
This file was deleted.

owl-bot-staging/v1/README.rst

Lines changed: 0 additions & 49 deletions
This file was deleted.

owl-bot-staging/v1/docs/aiplatform_v1/dataset_service.rst

Lines changed: 0 additions & 10 deletions
This file was deleted.

owl-bot-staging/v1/docs/aiplatform_v1/endpoint_service.rst

Lines changed: 0 additions & 10 deletions
This file was deleted.

owl-bot-staging/v1/docs/aiplatform_v1/featurestore_online_serving_service.rst

Lines changed: 0 additions & 6 deletions
This file was deleted.

owl-bot-staging/v1/docs/aiplatform_v1/featurestore_service.rst

Lines changed: 0 additions & 10 deletions
This file was deleted.

owl-bot-staging/v1/docs/aiplatform_v1/index_endpoint_service.rst

Lines changed: 0 additions & 10 deletions
This file was deleted.

owl-bot-staging/v1/docs/aiplatform_v1/index_service.rst

Lines changed: 0 additions & 10 deletions
This file was deleted.

owl-bot-staging/v1/docs/aiplatform_v1/job_service.rst

Lines changed: 0 additions & 10 deletions
This file was deleted.

owl-bot-staging/v1/docs/aiplatform_v1/match_service.rst

Lines changed: 0 additions & 6 deletions
This file was deleted.

owl-bot-staging/v1/docs/aiplatform_v1/metadata_service.rst

Lines changed: 0 additions & 10 deletions
This file was deleted.

owl-bot-staging/v1/docs/aiplatform_v1/migration_service.rst

Lines changed: 0 additions & 10 deletions
This file was deleted.

owl-bot-staging/v1/docs/aiplatform_v1/model_garden_service.rst

Lines changed: 0 additions & 6 deletions
This file was deleted.

owl-bot-staging/v1/docs/aiplatform_v1/model_service.rst

Lines changed: 0 additions & 10 deletions
This file was deleted.

owl-bot-staging/v1/docs/aiplatform_v1/pipeline_service.rst

Lines changed: 0 additions & 10 deletions
This file was deleted.

owl-bot-staging/v1/docs/aiplatform_v1/prediction_service.rst

Lines changed: 0 additions & 6 deletions
This file was deleted.

owl-bot-staging/v1/docs/aiplatform_v1/services.rst

Lines changed: 0 additions & 22 deletions
This file was deleted.

owl-bot-staging/v1/docs/aiplatform_v1/specialist_pool_service.rst

Lines changed: 0 additions & 10 deletions
This file was deleted.

owl-bot-staging/v1/docs/aiplatform_v1/tensorboard_service.rst

Lines changed: 0 additions & 10 deletions
This file was deleted.

owl-bot-staging/v1/docs/aiplatform_v1/types.rst

Lines changed: 0 additions & 6 deletions
This file was deleted.

0 commit comments

Comments
 (0)