Skip to content

Commit 29e52cc

Browse files
1 parent c33328a commit 29e52cc

File tree

1,452 files changed

+50
-597232
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,452 files changed

+50
-597232
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
@@ -196,23 +196,18 @@ def parse_annotated_dataset_path(path: str) -> Dict[str, str]:
196196
@staticmethod
197197
def dataset_path(
198198
project: str,
199-
location: str,
200199
dataset: str,
201200
) -> str:
202201
"""Returns a fully-qualified dataset string."""
203-
return "projects/{project}/locations/{location}/datasets/{dataset}".format(
202+
return "projects/{project}/datasets/{dataset}".format(
204203
project=project,
205-
location=location,
206204
dataset=dataset,
207205
)
208206

209207
@staticmethod
210208
def parse_dataset_path(path: str) -> Dict[str, str]:
211209
"""Parses a dataset path into its component segments."""
212-
m = re.match(
213-
r"^projects/(?P<project>.+?)/locations/(?P<location>.+?)/datasets/(?P<dataset>.+?)$",
214-
path,
215-
)
210+
m = re.match(r"^projects/(?P<project>.+?)/datasets/(?P<dataset>.+?)$", path)
216211
return m.groupdict() if m else {}
217212

218213
@staticmethod
@@ -240,18 +235,23 @@ def parse_dataset_path(path: str) -> Dict[str, str]:
240235
@staticmethod
241236
def dataset_path(
242237
project: str,
238+
location: str,
243239
dataset: str,
244240
) -> str:
245241
"""Returns a fully-qualified dataset string."""
246-
return "projects/{project}/datasets/{dataset}".format(
242+
return "projects/{project}/locations/{location}/datasets/{dataset}".format(
247243
project=project,
244+
location=location,
248245
dataset=dataset,
249246
)
250247

251248
@staticmethod
252249
def parse_dataset_path(path: str) -> Dict[str, str]:
253250
"""Parses a dataset path into its component segments."""
254-
m = re.match(r"^projects/(?P<project>.+?)/datasets/(?P<dataset>.+?)$", path)
251+
m = re.match(
252+
r"^projects/(?P<project>.+?)/locations/(?P<location>.+?)/datasets/(?P<dataset>.+?)$",
253+
path,
254+
)
255255
return m.groupdict() if m else {}
256256

257257
@staticmethod

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

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -218,40 +218,40 @@ def parse_dataset_path(path: str) -> Dict[str, str]:
218218
@staticmethod
219219
def dataset_path(
220220
project: str,
221-
location: str,
222221
dataset: str,
223222
) -> str:
224223
"""Returns a fully-qualified dataset string."""
225-
return "projects/{project}/locations/{location}/datasets/{dataset}".format(
224+
return "projects/{project}/datasets/{dataset}".format(
226225
project=project,
227-
location=location,
228226
dataset=dataset,
229227
)
230228

231229
@staticmethod
232230
def parse_dataset_path(path: str) -> Dict[str, str]:
233231
"""Parses a dataset path into its component segments."""
234-
m = re.match(
235-
r"^projects/(?P<project>.+?)/locations/(?P<location>.+?)/datasets/(?P<dataset>.+?)$",
236-
path,
237-
)
232+
m = re.match(r"^projects/(?P<project>.+?)/datasets/(?P<dataset>.+?)$", path)
238233
return m.groupdict() if m else {}
239234

240235
@staticmethod
241236
def dataset_path(
242237
project: str,
238+
location: str,
243239
dataset: str,
244240
) -> str:
245241
"""Returns a fully-qualified dataset string."""
246-
return "projects/{project}/datasets/{dataset}".format(
242+
return "projects/{project}/locations/{location}/datasets/{dataset}".format(
247243
project=project,
244+
location=location,
248245
dataset=dataset,
249246
)
250247

251248
@staticmethod
252249
def parse_dataset_path(path: str) -> Dict[str, str]:
253250
"""Parses a dataset path into its component segments."""
254-
m = re.match(r"^projects/(?P<project>.+?)/datasets/(?P<dataset>.+?)$", path)
251+
m = re.match(
252+
r"^projects/(?P<project>.+?)/locations/(?P<location>.+?)/datasets/(?P<dataset>.+?)$",
253+
path,
254+
)
255255
return m.groupdict() if m else {}
256256

257257
@staticmethod

owl-bot-staging/v1/.coveragerc

Lines changed: 0 additions & 17 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/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_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 & 20 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 & 7 deletions
This file was deleted.

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

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

0 commit comments

Comments
 (0)