Skip to content

Commit 58dea8c

Browse files
1 parent 401b489 commit 58dea8c

3,007 files changed

Lines changed: 22 additions & 2816082 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,
297296
dataset: str,
298297
) -> str:
299298
"""Returns a fully-qualified dataset string."""
300-
return "projects/{project}/locations/{location}/datasets/{dataset}".format(
299+
return "projects/{project}/datasets/{dataset}".format(
301300
project=project,
302-
location=location,
303301
dataset=dataset,
304302
)
305303

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

315310
@staticmethod
316311
def dataset_path(
317312
project: str,
313+
location: str,
318314
dataset: str,
319315
) -> str:
320316
"""Returns a fully-qualified dataset string."""
321-
return "projects/{project}/datasets/{dataset}".format(
317+
return "projects/{project}/locations/{location}/datasets/{dataset}".format(
322318
project=project,
319+
location=location,
323320
dataset=dataset,
324321
)
325322

326323
@staticmethod
327324
def parse_dataset_path(path: str) -> Dict[str, str]:
328325
"""Parses a dataset path into its component segments."""
329-
m = re.match(r"^projects/(?P<project>.+?)/datasets/(?P<dataset>.+?)$", path)
326+
m = re.match(
327+
r"^projects/(?P<project>.+?)/locations/(?P<location>.+?)/datasets/(?P<dataset>.+?)$",
328+
path,
329+
)
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)