GeezerVison is showing github.com — Copybara import of the project: · Russ76/python-aiplatform@8ba9e78
File treeExpand file treeCollapse file tree Open diff view settings samples/generated_samples
Some content is hiddenLarge Commits have some content hidden by default. Use the searchbox below for content that may be hidden. Dismiss bannerExpand file treeCollapse file tree Open diff view settings Collapse file Copy file name to clipboard +6Lines changed: 6 additions & 0 deletions - Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|
| | 1 | +ModelGardenService | | 2 | +------------------------------------ | | 3 | + | | 4 | +.. automodule:: google.cloud.aiplatform_v1.services.model_garden_service | | 5 | + :members: | | 6 | + :inherited-members: |
Collapse file Copy file name to clipboardExpand all lines: docs/aiplatform_v1/services.rst +1Lines changed: 1 addition & 0 deletions - Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|
@@ -13,6 +13,7 @@ Services for Google Cloud Aiplatform v1 API | 13 | 13 | match_service | 14 | 14 | metadata_service | 15 | 15 | migration_service | | 16 | + model_garden_service | 16 | 17 | model_service | 17 | 18 | pipeline_service | 18 | 19 | prediction_service | |
Collapse file Copy file name to clipboardExpand all lines: google/cloud/aiplatform_v1/__init__.py +12Lines changed: 12 additions & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
| 42 | 42 | from .services.metadata_service import MetadataServiceAsyncClient | 43 | 43 | from .services.migration_service import MigrationServiceClient | 44 | 44 | from .services.migration_service import MigrationServiceAsyncClient | | 45 | +from .services.model_garden_service import ModelGardenServiceClient | | 46 | +from .services.model_garden_service import ModelGardenServiceAsyncClient | 45 | 47 | from .services.model_service import ModelServiceClient | 46 | 48 | from .services.model_service import ModelServiceAsyncClient | 47 | 49 | from .services.pipeline_service import PipelineServiceClient | | 369 | 371 | from .types.migration_service import MigrateResourceResponse | 370 | 372 | from .types.migration_service import SearchMigratableResourcesRequest | 371 | 373 | from .types.migration_service import SearchMigratableResourcesResponse | | 374 | +from .types.model import LargeModelReference | 372 | 375 | from .types.model import Model | 373 | 376 | from .types.model import ModelContainerSpec | 374 | 377 | from .types.model import ModelSourceInfo | | 390 | 393 | ) | 391 | 394 | from .types.model_evaluation import ModelEvaluation | 392 | 395 | from .types.model_evaluation_slice import ModelEvaluationSlice | | 396 | +from .types.model_garden_service import GetPublisherModelRequest | | 397 | +from .types.model_garden_service import PublisherModelView | 393 | 398 | from .types.model_monitoring import ModelMonitoringAlertConfig | 394 | 399 | from .types.model_monitoring import ModelMonitoringObjectiveConfig | 395 | 400 | from .types.model_monitoring import SamplingStrategy | | 454 | 459 | from .types.prediction_service import PredictRequest | 455 | 460 | from .types.prediction_service import PredictResponse | 456 | 461 | from .types.prediction_service import RawPredictRequest | | 462 | +from .types.publisher_model import PublisherModel | 457 | 463 | from .types.saved_query import SavedQuery | 458 | 464 | from .types.service_networking import PrivateServiceConnectConfig | 459 | 465 | from .types.specialist_pool import SpecialistPool | | 571 | 577 | "MatchServiceAsyncClient", | 572 | 578 | "MetadataServiceAsyncClient", | 573 | 579 | "MigrationServiceAsyncClient", | | 580 | + "ModelGardenServiceAsyncClient", | 574 | 581 | "ModelServiceAsyncClient", | 575 | 582 | "PipelineServiceAsyncClient", | 576 | 583 | "PredictionServiceAsyncClient", | | 807 | 814 | "GetNasJobRequest", | 808 | 815 | "GetNasTrialDetailRequest", | 809 | 816 | "GetPipelineJobRequest", | | 817 | + "GetPublisherModelRequest", | 810 | 818 | "GetSpecialistPoolRequest", | 811 | 819 | "GetStudyRequest", | 812 | 820 | "GetTensorboardExperimentRequest", | | 837 | 845 | "IntegratedGradientsAttribution", | 838 | 846 | "JobServiceClient", | 839 | 847 | "JobState", | | 848 | + "LargeModelReference", | 840 | 849 | "LineageSubgraph", | 841 | 850 | "ListAnnotationsRequest", | 842 | 851 | "ListAnnotationsResponse", | | 933 | 942 | "ModelEvaluation", | 934 | 943 | "ModelEvaluationSlice", | 935 | 944 | "ModelExplanation", | | 945 | + "ModelGardenServiceClient", | 936 | 946 | "ModelMonitoringAlertConfig", | 937 | 947 | "ModelMonitoringObjectiveConfig", | 938 | 948 | "ModelMonitoringStatsAnomalies", | | 971 | 981 | "Presets", | 972 | 982 | "PrivateEndpoints", | 973 | 983 | "PrivateServiceConnectConfig", | | 984 | + "PublisherModel", | | 985 | + "PublisherModelView", | 974 | 986 | "PurgeArtifactsMetadata", | 975 | 987 | "PurgeArtifactsRequest", | 976 | 988 | "PurgeArtifactsResponse", | |
Collapse file Copy file name to clipboardExpand all lines: google/cloud/aiplatform_v1/gapic_metadata.json +24Lines changed: 24 additions & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
| 1445 | 1445 | } | 1446 | 1446 | } | 1447 | 1447 | }, | | 1448 | + "ModelGardenService": { | | 1449 | + "clients": { | | 1450 | + "grpc": { | | 1451 | + "libraryClient": "ModelGardenServiceClient", | | 1452 | + "rpcs": { | | 1453 | + "GetPublisherModel": { | | 1454 | + "methods": [ | | 1455 | + "get_publisher_model" | | 1456 | + ] | | 1457 | + } | | 1458 | + } | | 1459 | + }, | | 1460 | + "grpc-async": { | | 1461 | + "libraryClient": "ModelGardenServiceAsyncClient", | | 1462 | + "rpcs": { | | 1463 | + "GetPublisherModel": { | | 1464 | + "methods": [ | | 1465 | + "get_publisher_model" | | 1466 | + ] | | 1467 | + } | | 1468 | + } | | 1469 | + } | | 1470 | + } | | 1471 | + }, | 1448 | 1472 | "ModelService": { | 1449 | 1473 | "clients": { | 1450 | 1474 | "grpc": { | |
Collapse file Copy file name to clipboardExpand all lines: google/cloud/aiplatform_v1/services/metadata_service/async_client.py -6Lines changed: 0 additions & 6 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -1146,8 +1146,6 @@ async def sample_update_artifact(): | 1146 | 1146 | update_mask (:class:`google.protobuf.field_mask_pb2.FieldMask`): | 1147 | 1147 | Optional. A FieldMask indicating | 1148 | 1148 | which fields should be updated. | 1149 | | - Functionality of this field is not yet | 1150 | | - supported. | 1151 | 1149 |
| 1152 | 1150 | This corresponds to the ``update_mask`` field | 1153 | 1151 | on the ``request`` instance; if ``request`` is provided, this | @@ -1849,8 +1847,6 @@ async def sample_update_context(): | 1849 | 1847 | update_mask (:class:`google.protobuf.field_mask_pb2.FieldMask`): | 1850 | 1848 | Optional. A FieldMask indicating | 1851 | 1849 | which fields should be updated. | 1852 | | - Functionality of this field is not yet | 1853 | | - supported. | 1854 | 1850 |
| 1855 | 1851 | This corresponds to the ``update_mask`` field | 1856 | 1852 | on the ``request`` instance; if ``request`` is provided, this | @@ -3038,8 +3034,6 @@ async def sample_update_execution(): | 3038 | 3034 | update_mask (:class:`google.protobuf.field_mask_pb2.FieldMask`): | 3039 | 3035 | Optional. A FieldMask indicating | 3040 | 3036 | which fields should be updated. | 3041 | | - Functionality of this field is not yet | 3042 | | - supported. | 3043 | 3037 |
| 3044 | 3038 | This corresponds to the ``update_mask`` field | 3045 | 3039 | on the ``request`` instance; if ``request`` is provided, this | |
Collapse file Copy file name to clipboardExpand all lines: google/cloud/aiplatform_v1/services/metadata_service/client.py -6Lines changed: 0 additions & 6 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -1457,8 +1457,6 @@ def sample_update_artifact(): | 1457 | 1457 | update_mask (google.protobuf.field_mask_pb2.FieldMask): | 1458 | 1458 | Optional. A FieldMask indicating | 1459 | 1459 | which fields should be updated. | 1460 | | - Functionality of this field is not yet | 1461 | | - supported. | 1462 | 1460 |
| 1463 | 1461 | This corresponds to the ``update_mask`` field | 1464 | 1462 | on the ``request`` instance; if ``request`` is provided, this | @@ -2160,8 +2158,6 @@ def sample_update_context(): | 2160 | 2158 | update_mask (google.protobuf.field_mask_pb2.FieldMask): | 2161 | 2159 | Optional. A FieldMask indicating | 2162 | 2160 | which fields should be updated. | 2163 | | - Functionality of this field is not yet | 2164 | | - supported. | 2165 | 2161 |
| 2166 | 2162 | This corresponds to the ``update_mask`` field | 2167 | 2163 | on the ``request`` instance; if ``request`` is provided, this | @@ -3355,8 +3351,6 @@ def sample_update_execution(): | 3355 | 3351 | update_mask (google.protobuf.field_mask_pb2.FieldMask): | 3356 | 3352 | Optional. A FieldMask indicating | 3357 | 3353 | which fields should be updated. | 3358 | | - Functionality of this field is not yet | 3359 | | - supported. | 3360 | 3354 |
| 3361 | 3355 | This corresponds to the ``update_mask`` field | 3362 | 3356 | on the ``request`` instance; if ``request`` is provided, this | |
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 |
|---|
@@ -230,40 +230,40 @@ def parse_dataset_path(path: str) -> Dict[str, str]: | 230 | 230 | @staticmethod | 231 | 231 | def dataset_path( | 232 | 232 | project: str, | | 233 | + location: str, | 233 | 234 | dataset: str, | 234 | 235 | ) -> str: | 235 | 236 | """Returns a fully-qualified dataset string.""" | 236 | | - return "projects/{project}/datasets/{dataset}".format( | | 237 | + return "projects/{project}/locations/{location}/datasets/{dataset}".format( | 237 | 238 | project=project, | | 239 | + location=location, | 238 | 240 | dataset=dataset, | 239 | 241 | ) | 240 | 242 |
| 241 | 243 | @staticmethod | 242 | 244 | def parse_dataset_path(path: str) -> Dict[str, str]: | 243 | 245 | """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 | + ) | 245 | 250 | return m.groupdict() if m else {} | 246 | 251 |
| 247 | 252 | @staticmethod | 248 | 253 | def dataset_path( | 249 | 254 | project: str, | 250 | | - location: str, | 251 | 255 | dataset: str, | 252 | 256 | ) -> str: | 253 | 257 | """Returns a fully-qualified dataset string.""" | 254 | | - return "projects/{project}/locations/{location}/datasets/{dataset}".format( | | 258 | + return "projects/{project}/datasets/{dataset}".format( | 255 | 259 | project=project, | 256 | | - location=location, | 257 | 260 | dataset=dataset, | 258 | 261 | ) | 259 | 262 |
| 260 | 263 | @staticmethod | 261 | 264 | def parse_dataset_path(path: str) -> Dict[str, str]: | 262 | 265 | """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) | 267 | 267 | return m.groupdict() if m else {} | 268 | 268 |
| 269 | 269 | @staticmethod | |
Collapse file Copy file name to clipboard +22Lines changed: 22 additions & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
| | 1 | +# -*- coding: utf-8 -*- | | 2 | +# Copyright 2022 Google LLC | | 3 | +# | | 4 | +# Licensed under the Apache License, Version 2.0 (the "License"); | | 5 | +# you may not use this file except in compliance with the License. | | 6 | +# You may obtain a copy of the License at | | 7 | +# | | 8 | +# http://www.apache.org/licenses/LICENSE-2.0 | | 9 | +# | | 10 | +# Unless required by applicable law or agreed to in writing, software | | 11 | +# distributed under the License is distributed on an "AS IS" BASIS, | | 12 | +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | | 13 | +# See the License for the specific language governing permissions and | | 14 | +# limitations under the License. | | 15 | +# | | 16 | +from .client import ModelGardenServiceClient | | 17 | +from .async_client import ModelGardenServiceAsyncClient | | 18 | + | | 19 | +__all__ = ( | | 20 | + "ModelGardenServiceClient", | | 21 | + "ModelGardenServiceAsyncClient", | | 22 | +) |
|