Skip to content

Commit b9d3464

Browse files
1 parent 5f2b229 commit b9d3464

File tree

2,943 files changed

+57
-2712834
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,943 files changed

+57
-2712834
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
@@ -243,18 +243,23 @@ def parse_annotated_dataset_path(path: str) -> Dict[str, str]:
243243
@staticmethod
244244
def dataset_path(
245245
project: str,
246+
location: str,
246247
dataset: str,
247248
) -> str:
248249
"""Returns a fully-qualified dataset string."""
249-
return "projects/{project}/datasets/{dataset}".format(
250+
return "projects/{project}/locations/{location}/datasets/{dataset}".format(
250251
project=project,
252+
location=location,
251253
dataset=dataset,
252254
)
253255

254256
@staticmethod
255257
def parse_dataset_path(path: str) -> Dict[str, str]:
256258
"""Parses a dataset path into its component segments."""
257-
m = re.match(r"^projects/(?P<project>.+?)/datasets/(?P<dataset>.+?)$", path)
259+
m = re.match(
260+
r"^projects/(?P<project>.+?)/locations/(?P<location>.+?)/datasets/(?P<dataset>.+?)$",
261+
path,
262+
)
258263
return m.groupdict() if m else {}
259264

260265
@staticmethod
@@ -282,23 +287,18 @@ def parse_dataset_path(path: str) -> Dict[str, str]:
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

google/cloud/aiplatform_v1/types/index_endpoint.py

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -342,13 +342,31 @@ class DeployedIndex(proto.Message):
342342
343343
Note: we only support up to 5 deployment groups(not
344344
including 'default').
345+
deployment_tier (google.cloud.aiplatform_v1.types.DeployedIndex.DeploymentTier):
346+
Optional. The deployment tier that the index is deployed to.
347+
DEPLOYMENT_TIER_UNSPECIFIED will use a system-chosen default
348+
tier.
345349
psc_automation_configs (MutableSequence[google.cloud.aiplatform_v1.types.PSCAutomationConfig]):
346350
Optional. If set for PSC deployed index, PSC connection will
347351
be automatically created after deployment is done and the
348352
endpoint information is populated in
349353
private_endpoints.psc_automated_endpoints.
350354
"""
351355

356+
class DeploymentTier(proto.Enum):
357+
r"""Tiers encapsulate serving time attributes like latency and
358+
throughput.
359+
360+
Values:
361+
DEPLOYMENT_TIER_UNSPECIFIED (0):
362+
Default deployment tier.
363+
STORAGE (2):
364+
Optimized for costs.
365+
"""
366+
367+
DEPLOYMENT_TIER_UNSPECIFIED = 0
368+
STORAGE = 2
369+
352370
id: str = proto.Field(
353371
proto.STRING,
354372
number=1,
@@ -407,6 +425,11 @@ class DeployedIndex(proto.Message):
407425
proto.STRING,
408426
number=11,
409427
)
428+
deployment_tier: DeploymentTier = proto.Field(
429+
proto.ENUM,
430+
number=18,
431+
enum=DeploymentTier,
432+
)
410433
psc_automation_configs: MutableSequence[service_networking.PSCAutomationConfig] = (
411434
proto.RepeatedField(
412435
proto.MESSAGE,

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)