Skip to content

Commit 040ae79

Browse files
1 parent eacdcb5 commit 040ae79

File tree

1,580 files changed

+22
-648897
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,580 files changed

+22
-648897
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
@@ -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

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.

0 commit comments

Comments
 (0)