Skip to content

Commit 72fbdb9

Browse files
1 parent 6a3491c commit 72fbdb9

File tree

1,682 files changed

+50
-700672
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,682 files changed

+50
-700672
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
@@ -208,18 +208,23 @@ 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
@@ -247,23 +252,18 @@ def parse_dataset_path(path: str) -> Dict[str, str]:
247252
@staticmethod
248253
def dataset_path(
249254
project: str,
250-
location: str,
251255
dataset: str,
252256
) -> str:
253257
"""Returns a fully-qualified dataset string."""
254-
return "projects/{project}/locations/{location}/datasets/{dataset}".format(
258+
return "projects/{project}/datasets/{dataset}".format(
255259
project=project,
256-
location=location,
257260
dataset=dataset,
258261
)
259262

260263
@staticmethod
261264
def parse_dataset_path(path: str) -> Dict[str, str]:
262265
"""Parses a dataset path into its component segments."""
263-
m = re.match(
264-
r"^projects/(?P<project>.+?)/locations/(?P<location>.+?)/datasets/(?P<dataset>.+?)$",
265-
path,
266-
)
266+
m = re.match(r"^projects/(?P<project>.+?)/datasets/(?P<dataset>.+?)$", path)
267267
return m.groupdict() if m else {}
268268

269269
@staticmethod

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

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -230,40 +230,40 @@ def parse_dataset_path(path: str) -> Dict[str, str]:
230230
@staticmethod
231231
def dataset_path(
232232
project: str,
233+
location: str,
233234
dataset: str,
234235
) -> str:
235236
"""Returns a fully-qualified dataset string."""
236-
return "projects/{project}/datasets/{dataset}".format(
237+
return "projects/{project}/locations/{location}/datasets/{dataset}".format(
237238
project=project,
239+
location=location,
238240
dataset=dataset,
239241
)
240242

241243
@staticmethod
242244
def parse_dataset_path(path: str) -> Dict[str, str]:
243245
"""Parses a dataset path into its component segments."""
244-
m = re.match(r"^projects/(?P<project>.+?)/datasets/(?P<dataset>.+?)$", path)
246+
m = re.match(
247+
r"^projects/(?P<project>.+?)/locations/(?P<location>.+?)/datasets/(?P<dataset>.+?)$",
248+
path,
249+
)
245250
return m.groupdict() if m else {}
246251

247252
@staticmethod
248253
def dataset_path(
249254
project: str,
250-
location: str,
251255
dataset: str,
252256
) -> str:
253257
"""Returns a fully-qualified dataset string."""
254-
return "projects/{project}/locations/{location}/datasets/{dataset}".format(
258+
return "projects/{project}/datasets/{dataset}".format(
255259
project=project,
256-
location=location,
257260
dataset=dataset,
258261
)
259262

260263
@staticmethod
261264
def parse_dataset_path(path: str) -> Dict[str, str]:
262265
"""Parses a dataset path into its component segments."""
263-
m = re.match(
264-
r"^projects/(?P<project>.+?)/locations/(?P<location>.+?)/datasets/(?P<dataset>.+?)$",
265-
path,
266-
)
266+
m = re.match(r"^projects/(?P<project>.+?)/datasets/(?P<dataset>.+?)$", path)
267267
return m.groupdict() if m else {}
268268

269269
@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.

0 commit comments

Comments
 (0)