Skip to content

Commit e9644f1

Browse files
1 parent e6bb5ff commit e9644f1

File tree

2,941 files changed

+22
-2712846
lines changed

Some content is hidden

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

2,941 files changed

+22
-2712846
lines changed

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

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -265,40 +265,40 @@ def parse_dataset_path(path: str) -> Dict[str, str]:
265265
@staticmethod
266266
def dataset_path(
267267
project: str,
268+
location: str,
268269
dataset: str,
269270
) -> str:
270271
"""Returns a fully-qualified dataset string."""
271-
return "projects/{project}/datasets/{dataset}".format(
272+
return "projects/{project}/locations/{location}/datasets/{dataset}".format(
272273
project=project,
274+
location=location,
273275
dataset=dataset,
274276
)
275277

276278
@staticmethod
277279
def parse_dataset_path(path: str) -> Dict[str, str]:
278280
"""Parses a dataset path into its component segments."""
279-
m = re.match(r"^projects/(?P<project>.+?)/datasets/(?P<dataset>.+?)$", path)
281+
m = re.match(
282+
r"^projects/(?P<project>.+?)/locations/(?P<location>.+?)/datasets/(?P<dataset>.+?)$",
283+
path,
284+
)
280285
return m.groupdict() if m else {}
281286

282287
@staticmethod
283288
def dataset_path(
284289
project: str,
285-
location: str,
286290
dataset: str,
287291
) -> str:
288292
"""Returns a fully-qualified dataset string."""
289-
return "projects/{project}/locations/{location}/datasets/{dataset}".format(
293+
return "projects/{project}/datasets/{dataset}".format(
290294
project=project,
291-
location=location,
292295
dataset=dataset,
293296
)
294297

295298
@staticmethod
296299
def parse_dataset_path(path: str) -> Dict[str, str]:
297300
"""Parses a dataset path into its component segments."""
298-
m = re.match(
299-
r"^projects/(?P<project>.+?)/locations/(?P<location>.+?)/datasets/(?P<dataset>.+?)$",
300-
path,
301-
)
301+
m = re.match(r"^projects/(?P<project>.+?)/datasets/(?P<dataset>.+?)$", path)
302302
return m.groupdict() if m else {}
303303

304304
@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)