Skip to content

Commit ea781ed

Browse files
1 parent 0496617 commit ea781ed

3,007 files changed

Lines changed: 22 additions & 2815037 deletions

File tree

Some content is hidden

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

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

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -293,40 +293,40 @@ def parse_dataset_path(path: str) -> Dict[str, str]:
293293
@staticmethod
294294
def dataset_path(
295295
project: str,
296+
location: str,
296297
dataset: str,
297298
) -> str:
298299
"""Returns a fully-qualified dataset string."""
299-
return "projects/{project}/datasets/{dataset}".format(
300+
return "projects/{project}/locations/{location}/datasets/{dataset}".format(
300301
project=project,
302+
location=location,
301303
dataset=dataset,
302304
)
303305

304306
@staticmethod
305307
def parse_dataset_path(path: str) -> Dict[str, str]:
306308
"""Parses a dataset path into its component segments."""
307-
m = re.match(r"^projects/(?P<project>.+?)/datasets/(?P<dataset>.+?)$", path)
309+
m = re.match(
310+
r"^projects/(?P<project>.+?)/locations/(?P<location>.+?)/datasets/(?P<dataset>.+?)$",
311+
path,
312+
)
308313
return m.groupdict() if m else {}
309314

310315
@staticmethod
311316
def dataset_path(
312317
project: str,
313-
location: str,
314318
dataset: str,
315319
) -> str:
316320
"""Returns a fully-qualified dataset string."""
317-
return "projects/{project}/locations/{location}/datasets/{dataset}".format(
321+
return "projects/{project}/datasets/{dataset}".format(
318322
project=project,
319-
location=location,
320323
dataset=dataset,
321324
)
322325

323326
@staticmethod
324327
def parse_dataset_path(path: str) -> Dict[str, str]:
325328
"""Parses a dataset path into its component segments."""
326-
m = re.match(
327-
r"^projects/(?P<project>.+?)/locations/(?P<location>.+?)/datasets/(?P<dataset>.+?)$",
328-
path,
329-
)
329+
m = re.match(r"^projects/(?P<project>.+?)/datasets/(?P<dataset>.+?)$", path)
330330
return m.groupdict() if m else {}
331331

332332
@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 & 34 deletions
This file was deleted.

owl-bot-staging/v1/LICENSE

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

owl-bot-staging/v1/MANIFEST.in

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

0 commit comments

Comments
 (0)