GeezerVison is showing github.com — Copybara import of the project: · silverdev/python-aiplatform@26dfdfe
File treeExpand file treeCollapse file tree Open diff view settings services/migration_service
Expand file treeCollapse file tree Open diff view settings Collapse file Copy file name to clipboardExpand all lines: google/cloud/aiplatform_v1/services/migration_service/client.py +9-9Lines changed: 9 additions & 9 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -265,40 +265,40 @@ def parse_dataset_path(path: str) -> Dict[str, str]: | 265 | 265 | @staticmethod | 266 | 266 | def dataset_path( | 267 | 267 | project: str, | 268 | | - location: str, | 269 | 268 | dataset: str, | 270 | 269 | ) -> str: | 271 | 270 | """Returns a fully-qualified dataset string.""" | 272 | | - return "projects/{project}/locations/{location}/datasets/{dataset}".format( | | 271 | + return "projects/{project}/datasets/{dataset}".format( | 273 | 272 | project=project, | 274 | | - location=location, | 275 | 273 | dataset=dataset, | 276 | 274 | ) | 277 | 275 |
| 278 | 276 | @staticmethod | 279 | 277 | def parse_dataset_path(path: str) -> Dict[str, str]: | 280 | 278 | """Parses a dataset path into its component segments.""" | 281 | | - m = re.match( | 282 | | - r"^projects/(?P<project>.+?)/locations/(?P<location>.+?)/datasets/(?P<dataset>.+?)$", | 283 | | - path, | 284 | | - ) | | 279 | + m = re.match(r"^projects/(?P<project>.+?)/datasets/(?P<dataset>.+?)$", path) | 285 | 280 | return m.groupdict() if m else {} | 286 | 281 |
| 287 | 282 | @staticmethod | 288 | 283 | def dataset_path( | 289 | 284 | project: str, | | 285 | + location: str, | 290 | 286 | dataset: str, | 291 | 287 | ) -> str: | 292 | 288 | """Returns a fully-qualified dataset string.""" | 293 | | - return "projects/{project}/datasets/{dataset}".format( | | 289 | + return "projects/{project}/locations/{location}/datasets/{dataset}".format( | 294 | 290 | project=project, | | 291 | + location=location, | 295 | 292 | dataset=dataset, | 296 | 293 | ) | 297 | 294 |
| 298 | 295 | @staticmethod | 299 | 296 | def parse_dataset_path(path: str) -> Dict[str, str]: | 300 | 297 | """Parses a dataset path into its component segments.""" | 301 | | - m = re.match(r"^projects/(?P<project>.+?)/datasets/(?P<dataset>.+?)$", path) | | 298 | + m = re.match( | | 299 | + r"^projects/(?P<project>.+?)/locations/(?P<location>.+?)/datasets/(?P<dataset>.+?)$", | | 300 | + path, | | 301 | + ) | 302 | 302 | return m.groupdict() if m else {} | 303 | 303 |
| 304 | 304 | @staticmethod | |
Collapse file Copy file name to clipboardExpand all lines: google/cloud/aiplatform_v1/types/content.py +5-3Lines changed: 5 additions & 3 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -371,9 +371,11 @@ class ReplicatedVoiceConfig(proto.Message): | 371 | 371 |
| 372 | 372 | Attributes: | 373 | 373 | mime_type (str): | 374 | | - Optional. The mimetype of the voice sample. Currently only | 375 | | - mime_type=audio/pcm is supported, which is raw mono 16-bit | 376 | | - signed little-endian pcm data, with 24k sampling rate. | | 374 | + Optional. The mimetype of the voice sample. The only | | 375 | + currently supported value is ``audio/wav``. This represents | | 376 | + 16-bit signed little-endian wav data, with a 24kHz sampling | | 377 | + rate. ``mime_type`` will default to ``audio/wav`` if not | | 378 | + set. | 377 | 379 | voice_sample_audio (bytes): | 378 | 380 | Optional. The sample of the custom voice. | 379 | 381 | """ | |
Collapse file Copy file name to clipboardExpand all lines: google/cloud/aiplatform_v1/types/feature_online_store.py +10Lines changed: 10 additions & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -146,6 +146,12 @@ class Bigtable(proto.Message): | 146 | 146 | bigtable_metadata (google.cloud.aiplatform_v1.types.FeatureOnlineStore.Bigtable.BigtableMetadata): | 147 | 147 | Output only. Metadata of the Bigtable | 148 | 148 | instance. Output only. | | 149 | + zone (str): | | 150 | + Optional. The zone where the underlying | | 151 | + Bigtable cluster for the primary Bigtable | | 152 | + instance will be provisioned. Only the zone must | | 153 | + be provided. For example, only "us-central1-a" | | 154 | + should be provided. | 149 | 155 | """ | 150 | 156 |
| 151 | 157 | class AutoScaling(proto.Message): | @@ -223,6 +229,10 @@ class BigtableMetadata(proto.Message): | 223 | 229 | number=4, | 224 | 230 | message="FeatureOnlineStore.Bigtable.BigtableMetadata", | 225 | 231 | ) | | 232 | + zone: str = proto.Field( | | 233 | + proto.STRING, | | 234 | + number=5, | | 235 | + ) | 226 | 236 |
| 227 | 237 | class Optimized(proto.Message): | 228 | 238 | r"""Optimized storage type""" | |
Collapse file Copy file name to clipboardExpand all lines: google/cloud/aiplatform_v1beta1/__init__.py +2Lines changed: 2 additions & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
| 742 | 742 | from .types.machine_resources import DedicatedResources | 743 | 743 | from .types.machine_resources import DiskSpec | 744 | 744 | from .types.machine_resources import FlexStart | | 745 | +from .types.machine_resources import FullFineTunedResources | 745 | 746 | from .types.machine_resources import MachineSpec | 746 | 747 | from .types.machine_resources import NfsMount | 747 | 748 | from .types.machine_resources import PersistentDiskSpec | | 1767 | 1768 | "FulfillmentInstance", | 1768 | 1769 | "FulfillmentResult", | 1769 | 1770 | "FulfillmentSpec", | | 1771 | + "FullFineTunedResources", | 1770 | 1772 | "FunctionCall", | 1771 | 1773 | "FunctionCallingConfig", | 1772 | 1774 | "FunctionDeclaration", | |
Collapse file Copy file name to clipboardExpand all lines: google/cloud/aiplatform_v1beta1/types/__init__.py +2Lines changed: 2 additions & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
| 769 | 769 | DedicatedResources, | 770 | 770 | DiskSpec, | 771 | 771 | FlexStart, | | 772 | + FullFineTunedResources, | 772 | 773 | MachineSpec, | 773 | 774 | NfsMount, | 774 | 775 | PersistentDiskSpec, | | 2100 | 2101 | "DedicatedResources", | 2101 | 2102 | "DiskSpec", | 2102 | 2103 | "FlexStart", | | 2104 | + "FullFineTunedResources", | 2103 | 2105 | "MachineSpec", | 2104 | 2106 | "NfsMount", | 2105 | 2107 | "PersistentDiskSpec", | |
Collapse file Copy file name to clipboardExpand all lines: google/cloud/aiplatform_v1beta1/types/content.py +5-3Lines changed: 5 additions & 3 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -371,9 +371,11 @@ class ReplicatedVoiceConfig(proto.Message): | 371 | 371 |
| 372 | 372 | Attributes: | 373 | 373 | mime_type (str): | 374 | | - Optional. The mimetype of the voice sample. Currently only | 375 | | - mime_type=audio/pcm is supported, which is raw mono 16-bit | 376 | | - signed little-endian pcm data, with 24k sampling rate. | | 374 | + Optional. The mimetype of the voice sample. The only | | 375 | + currently supported value is ``audio/wav``. This represents | | 376 | + 16-bit signed little-endian wav data, with a 24kHz sampling | | 377 | + rate. ``mime_type`` will default to ``audio/wav`` if not | | 378 | + set. | 377 | 379 | voice_sample_audio (bytes): | 378 | 380 | Optional. The sample of the custom voice. | 379 | 381 | """ | |
Collapse file Copy file name to clipboardExpand all lines: google/cloud/aiplatform_v1beta1/types/endpoint.py +11Lines changed: 11 additions & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -315,6 +315,11 @@ class DeployedModel(proto.Message): | 315 | 315 | deploy on. Format: | 316 | 316 | ``projects/{project}/locations/{location}/deploymentResourcePools/{deployment_resource_pool}`` | 317 | 317 |
| | 318 | + This field is a member of `oneof`_ ``prediction_resources``. | | 319 | + full_fine_tuned_resources (google.cloud.aiplatform_v1beta1.types.FullFineTunedResources): | | 320 | + Optional. Resources for a full fine tuned | | 321 | + model. | | 322 | +
| 318 | 323 | This field is a member of `oneof`_ ``prediction_resources``. | 319 | 324 | id (str): | 320 | 325 | Immutable. The ID of the DeployedModel. If not provided upon | @@ -475,6 +480,12 @@ class Status(proto.Message): | 475 | 480 | number=17, | 476 | 481 | oneof="prediction_resources", | 477 | 482 | ) | | 483 | + full_fine_tuned_resources: machine_resources.FullFineTunedResources = proto.Field( | | 484 | + proto.MESSAGE, | | 485 | + number=36, | | 486 | + oneof="prediction_resources", | | 487 | + message=machine_resources.FullFineTunedResources, | | 488 | + ) | 478 | 489 | id: str = proto.Field( | 479 | 490 | proto.STRING, | 480 | 491 | number=1, | |
Collapse file Copy file name to clipboardExpand all lines: google/cloud/aiplatform_v1beta1/types/feature_online_store.py +10Lines changed: 10 additions & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -151,6 +151,12 @@ class Bigtable(proto.Message): | 151 | 151 | bigtable_metadata (google.cloud.aiplatform_v1beta1.types.FeatureOnlineStore.Bigtable.BigtableMetadata): | 152 | 152 | Metadata of the Bigtable instance. Output | 153 | 153 | only. | | 154 | + zone (str): | | 155 | + Optional. The zone where the underlying | | 156 | + Bigtable cluster for the primary Bigtable | | 157 | + instance will be provisioned. Only the zone must | | 158 | + be provided. For example, only "us-central1-a" | | 159 | + should be provided. | 154 | 160 | """ | 155 | 161 |
| 156 | 162 | class AutoScaling(proto.Message): | @@ -228,6 +234,10 @@ class BigtableMetadata(proto.Message): | 228 | 234 | number=4, | 229 | 235 | message="FeatureOnlineStore.Bigtable.BigtableMetadata", | 230 | 236 | ) | | 237 | + zone: str = proto.Field( | | 238 | + proto.STRING, | | 239 | + number=5, | | 240 | + ) | 231 | 241 |
| 232 | 242 | class Optimized(proto.Message): | 233 | 243 | r"""Optimized storage type""" | |
Collapse file Copy file name to clipboardExpand all lines: google/cloud/aiplatform_v1beta1/types/machine_resources.py +71Lines changed: 71 additions & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
| 35 | 35 | "DedicatedResources", | 36 | 36 | "AutomaticResources", | 37 | 37 | "BatchDedicatedResources", | | 38 | + "FullFineTunedResources", | 38 | 39 | "ResourcesConsumed", | 39 | 40 | "DiskSpec", | 40 | 41 | "PersistentDiskSpec", | @@ -100,6 +101,12 @@ class MachineSpec(proto.Message): | 100 | 101 | Optional. Immutable. Configuration | 101 | 102 | controlling how this resource pool consumes | 102 | 103 | reservation. | | 104 | + min_gpu_driver_version (str): | | 105 | + Optional. Immutable. The minimum GPU driver | | 106 | + version that this machine requires. For example, | | 107 | + "535.104.06". If not specified, the default GPU | | 108 | + driver version will be used by the underlying | | 109 | + infrastructure. | 103 | 110 | """ | 104 | 111 |
| 105 | 112 | machine_type: str = proto.Field( | @@ -132,6 +139,10 @@ class MachineSpec(proto.Message): | 132 | 139 | number=5, | 133 | 140 | message=gca_reservation_affinity.ReservationAffinity, | 134 | 141 | ) | | 142 | + min_gpu_driver_version: str = proto.Field( | | 143 | + proto.STRING, | | 144 | + number=9, | | 145 | + ) | 135 | 146 |
| 136 | 147 |
| 137 | 148 | class DedicatedResources(proto.Message): | @@ -397,6 +408,66 @@ class BatchDedicatedResources(proto.Message): | 397 | 408 | ) | 398 | 409 |
| 399 | 410 |
| | 411 | +class FullFineTunedResources(proto.Message): | | 412 | + r"""Resources for an fft model. | | 413 | +
| | 414 | + Attributes: | | 415 | + deployment_type (google.cloud.aiplatform_v1beta1.types.FullFineTunedResources.DeploymentType): | | 416 | + Required. The kind of deployment. | | 417 | + model_inference_unit_count (int): | | 418 | + Optional. The number of model inference units to use for | | 419 | + this deployment. This can only be specified for | | 420 | + DEPLOYMENT_TYPE_PROD. The following table lists the number | | 421 | + of model inference units for different model types: | | 422 | +
| | 423 | + - Gemini 2.5 Flash | | 424 | +
| | 425 | + - Foundation FMIU: 25 | | 426 | + - Expansion FMIU: 4 | | 427 | +
| | 428 | + - Gemini 2.5 Pro | | 429 | +
| | 430 | + - Foundation FMIU: 32 | | 431 | + - Expansion FMIU: 16 | | 432 | +
| | 433 | + - Veo 3.0 (undistilled) | | 434 | +
| | 435 | + - Foundation FMIU: 63 | | 436 | + - Expansion FMIU: 7 | | 437 | +
| | 438 | + - Veo 3.0 (distilled) | | 439 | +
| | 440 | + - Foundation FMIU: 30 | | 441 | + - Expansion FMIU: 10 | | 442 | + """ | | 443 | + | | 444 | + class DeploymentType(proto.Enum): | | 445 | + r"""The type of deployment. | | 446 | +
| | 447 | + Values: | | 448 | + DEPLOYMENT_TYPE_UNSPECIFIED (0): | | 449 | + Unspecified deployment type. | | 450 | + DEPLOYMENT_TYPE_EVAL (1): | | 451 | + Eval deployment type. | | 452 | + DEPLOYMENT_TYPE_PROD (2): | | 453 | + Prod deployment type. | | 454 | + """ | | 455 | + | | 456 | + DEPLOYMENT_TYPE_UNSPECIFIED = 0 | | 457 | + DEPLOYMENT_TYPE_EVAL = 1 | | 458 | + DEPLOYMENT_TYPE_PROD = 2 | | 459 | + | | 460 | + deployment_type: DeploymentType = proto.Field( | | 461 | + proto.ENUM, | | 462 | + number=1, | | 463 | + enum=DeploymentType, | | 464 | + ) | | 465 | + model_inference_unit_count: int = proto.Field( | | 466 | + proto.INT32, | | 467 | + number=2, | | 468 | + ) | | 469 | + | | 470 | + | 400 | 471 | class ResourcesConsumed(proto.Message): | 401 | 472 | r"""Statistics information about resource consumption. | 402 | 473 |
| |
|