Skip to content

Commit 47e93b2

Browse files
feat: add enable_private_service_connect field to Endpoint feat: add id field to DeployedModel feat: add service_attachment field to PrivateEndpoints feat: add endpoint_id to CreateEndpointRequest and method signature to CreateEndpoint feat: add method... (#879)
* feat: add enable_private_service_connect field to Endpoint feat: add id field to DeployedModel feat: add service_attachment field to PrivateEndpoints feat: add endpoint_id to CreateEndpointRequest and method signature to CreateEndpoint feat: add method signature to CreateFeatureStore, CreateEntityType, CreateFeature feat: add network and enable_private_service_connect to IndexEndpoint feat: add service_attachment to IndexPrivateEndpoints feat: add stratified_split field to training_pipeline InputDataConfig PiperOrigin-RevId: 413691586 Source-Link: googleapis/googleapis@5915024 Source-Link: googleapis/googleapis-gen@afe7901 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiYWZlNzkwMWU5MmMwYmFiMDg4OGNkMjk3MTlhNmI3NThkN2UwZGQzNSJ9 * 🦉 Updates from OwlBot See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
1 parent ca813be commit 47e93b2

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

52 files changed

+1261
-133
lines changed

google/cloud/aiplatform_v1/__init__.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,7 @@
112112
from .types.event import Event
113113
from .types.execution import Execution
114114
from .types.explanation import Attribution
115+
from .types.explanation import BlurBaselineConfig
115116
from .types.explanation import Explanation
116117
from .types.explanation import ExplanationMetadataOverride
117118
from .types.explanation import ExplanationParameters
@@ -187,6 +188,9 @@
187188
from .types.index_endpoint_service import GetIndexEndpointRequest
188189
from .types.index_endpoint_service import ListIndexEndpointsRequest
189190
from .types.index_endpoint_service import ListIndexEndpointsResponse
191+
from .types.index_endpoint_service import MutateDeployedIndexOperationMetadata
192+
from .types.index_endpoint_service import MutateDeployedIndexRequest
193+
from .types.index_endpoint_service import MutateDeployedIndexResponse
190194
from .types.index_endpoint_service import UndeployIndexOperationMetadata
191195
from .types.index_endpoint_service import UndeployIndexRequest
192196
from .types.index_endpoint_service import UndeployIndexResponse
@@ -445,12 +449,14 @@
445449
from .types.training_pipeline import FractionSplit
446450
from .types.training_pipeline import InputDataConfig
447451
from .types.training_pipeline import PredefinedSplit
452+
from .types.training_pipeline import StratifiedSplit
448453
from .types.training_pipeline import TimestampSplit
449454
from .types.training_pipeline import TrainingPipeline
450455
from .types.types import BoolArray
451456
from .types.types import DoubleArray
452457
from .types.types import Int64Array
453458
from .types.types import StringArray
459+
from .types.unmanaged_container_model import UnmanagedContainerModel
454460
from .types.user_action_reference import UserActionReference
455461
from .types.value import Value
456462
from .types.vizier_service import AddTrialMeasurementRequest
@@ -527,6 +533,7 @@
527533
"BatchReadTensorboardTimeSeriesDataResponse",
528534
"BigQueryDestination",
529535
"BigQuerySource",
536+
"BlurBaselineConfig",
530537
"BoolArray",
531538
"CancelBatchPredictionJobRequest",
532539
"CancelCustomJobRequest",
@@ -810,6 +817,9 @@
810817
"ModelMonitoringObjectiveConfig",
811818
"ModelMonitoringStatsAnomalies",
812819
"ModelServiceClient",
820+
"MutateDeployedIndexOperationMetadata",
821+
"MutateDeployedIndexRequest",
822+
"MutateDeployedIndexResponse",
813823
"NearestNeighborSearchOperationMetadata",
814824
"PauseModelDeploymentMonitoringJobRequest",
815825
"PipelineJob",
@@ -862,6 +872,7 @@
862872
"SpecialistPool",
863873
"SpecialistPoolServiceClient",
864874
"StopTrialRequest",
875+
"StratifiedSplit",
865876
"StreamingReadFeatureValuesRequest",
866877
"StringArray",
867878
"Study",
@@ -891,6 +902,7 @@
891902
"UndeployModelOperationMetadata",
892903
"UndeployModelRequest",
893904
"UndeployModelResponse",
905+
"UnmanagedContainerModel",
894906
"UpdateArtifactRequest",
895907
"UpdateContextRequest",
896908
"UpdateDatasetRequest",

google/cloud/aiplatform_v1/gapic_metadata.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -481,6 +481,11 @@
481481
"list_index_endpoints"
482482
]
483483
},
484+
"MutateDeployedIndex": {
485+
"methods": [
486+
"mutate_deployed_index"
487+
]
488+
},
484489
"UndeployIndex": {
485490
"methods": [
486491
"undeploy_index"
@@ -521,6 +526,11 @@
521526
"list_index_endpoints"
522527
]
523528
},
529+
"MutateDeployedIndex": {
530+
"methods": [
531+
"mutate_deployed_index"
532+
]
533+
},
524534
"UndeployIndex": {
525535
"methods": [
526536
"undeploy_index"

google/cloud/aiplatform_v1/services/endpoint_service/async_client.py

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,6 +191,7 @@ async def create_endpoint(
191191
*,
192192
parent: str = None,
193193
endpoint: gca_endpoint.Endpoint = None,
194+
endpoint_id: str = None,
194195
retry: OptionalRetry = gapic_v1.method.DEFAULT,
195196
timeout: float = None,
196197
metadata: Sequence[Tuple[str, str]] = (),
@@ -214,6 +215,21 @@ async def create_endpoint(
214215
This corresponds to the ``endpoint`` field
215216
on the ``request`` instance; if ``request`` is provided, this
216217
should not be set.
218+
endpoint_id (:class:`str`):
219+
Immutable. The ID to use for endpoint, which will become
220+
the final component of the endpoint resource name. If
221+
not provided, Vertex AI will generate a value for this
222+
ID.
223+
224+
This value should be 1-10 characters, and valid
225+
characters are /[0-9]/. When using HTTP/JSON, this field
226+
is populated based on a query string argument, such as
227+
``?endpoint_id=12345``. This is the fallback for fields
228+
that are not included in either the URI or the body.
229+
230+
This corresponds to the ``endpoint_id`` field
231+
on the ``request`` instance; if ``request`` is provided, this
232+
should not be set.
217233
retry (google.api_core.retry.Retry): Designation of what errors, if any,
218234
should be retried.
219235
timeout (float): The timeout for this request.
@@ -231,7 +247,7 @@ async def create_endpoint(
231247
# Create or coerce a protobuf request object.
232248
# Sanity check: If we got a request object, we should *not* have
233249
# gotten any keyword arguments that map to the request.
234-
has_flattened_params = any([parent, endpoint])
250+
has_flattened_params = any([parent, endpoint, endpoint_id])
235251
if request is not None and has_flattened_params:
236252
raise ValueError(
237253
"If the `request` argument is set, then none of "
@@ -246,6 +262,8 @@ async def create_endpoint(
246262
request.parent = parent
247263
if endpoint is not None:
248264
request.endpoint = endpoint
265+
if endpoint_id is not None:
266+
request.endpoint_id = endpoint_id
249267

250268
# Wrap the RPC method; this adds retry and timeout information,
251269
# and friendly error handling.

google/cloud/aiplatform_v1/services/endpoint_service/client.py

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -424,6 +424,7 @@ def create_endpoint(
424424
*,
425425
parent: str = None,
426426
endpoint: gca_endpoint.Endpoint = None,
427+
endpoint_id: str = None,
427428
retry: OptionalRetry = gapic_v1.method.DEFAULT,
428429
timeout: float = None,
429430
metadata: Sequence[Tuple[str, str]] = (),
@@ -447,6 +448,21 @@ def create_endpoint(
447448
This corresponds to the ``endpoint`` field
448449
on the ``request`` instance; if ``request`` is provided, this
449450
should not be set.
451+
endpoint_id (str):
452+
Immutable. The ID to use for endpoint, which will become
453+
the final component of the endpoint resource name. If
454+
not provided, Vertex AI will generate a value for this
455+
ID.
456+
457+
This value should be 1-10 characters, and valid
458+
characters are /[0-9]/. When using HTTP/JSON, this field
459+
is populated based on a query string argument, such as
460+
``?endpoint_id=12345``. This is the fallback for fields
461+
that are not included in either the URI or the body.
462+
463+
This corresponds to the ``endpoint_id`` field
464+
on the ``request`` instance; if ``request`` is provided, this
465+
should not be set.
450466
retry (google.api_core.retry.Retry): Designation of what errors, if any,
451467
should be retried.
452468
timeout (float): The timeout for this request.
@@ -464,7 +480,7 @@ def create_endpoint(
464480
# Create or coerce a protobuf request object.
465481
# Sanity check: If we got a request object, we should *not* have
466482
# gotten any keyword arguments that map to the request.
467-
has_flattened_params = any([parent, endpoint])
483+
has_flattened_params = any([parent, endpoint, endpoint_id])
468484
if request is not None and has_flattened_params:
469485
raise ValueError(
470486
"If the `request` argument is set, then none of "
@@ -483,6 +499,8 @@ def create_endpoint(
483499
request.parent = parent
484500
if endpoint is not None:
485501
request.endpoint = endpoint
502+
if endpoint_id is not None:
503+
request.endpoint_id = endpoint_id
486504

487505
# Wrap the RPC method; this adds retry and timeout information,
488506
# and friendly error handling.

google/cloud/aiplatform_v1/services/featurestore_service/async_client.py

Lines changed: 58 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -196,6 +196,7 @@ async def create_featurestore(
196196
*,
197197
parent: str = None,
198198
featurestore: gca_featurestore.Featurestore = None,
199+
featurestore_id: str = None,
199200
retry: OptionalRetry = gapic_v1.method.DEFAULT,
200201
timeout: float = None,
201202
metadata: Sequence[Tuple[str, str]] = (),
@@ -220,6 +221,21 @@ async def create_featurestore(
220221
This corresponds to the ``featurestore`` field
221222
on the ``request`` instance; if ``request`` is provided, this
222223
should not be set.
224+
featurestore_id (:class:`str`):
225+
Required. The ID to use for this Featurestore, which
226+
will become the final component of the Featurestore's
227+
resource name.
228+
229+
This value may be up to 60 characters, and valid
230+
characters are ``[a-z0-9_]``. The first character cannot
231+
be a number.
232+
233+
The value must be unique within the project and
234+
location.
235+
236+
This corresponds to the ``featurestore_id`` field
237+
on the ``request`` instance; if ``request`` is provided, this
238+
should not be set.
223239
retry (google.api_core.retry.Retry): Designation of what errors, if any,
224240
should be retried.
225241
timeout (float): The timeout for this request.
@@ -230,7 +246,7 @@ async def create_featurestore(
230246
google.api_core.operation_async.AsyncOperation:
231247
An object representing a long-running operation.
232248
233-
The result type for the operation will be :class:`google.cloud.aiplatform_v1.types.Featurestore` Vertex Feature Store provides a centralized repository for organizing,
249+
The result type for the operation will be :class:`google.cloud.aiplatform_v1.types.Featurestore` Vertex AI Feature Store provides a centralized repository for organizing,
234250
storing, and serving ML features. The Featurestore is
235251
a top-level container for your features and their
236252
values.
@@ -239,7 +255,7 @@ async def create_featurestore(
239255
# Create or coerce a protobuf request object.
240256
# Sanity check: If we got a request object, we should *not* have
241257
# gotten any keyword arguments that map to the request.
242-
has_flattened_params = any([parent, featurestore])
258+
has_flattened_params = any([parent, featurestore, featurestore_id])
243259
if request is not None and has_flattened_params:
244260
raise ValueError(
245261
"If the `request` argument is set, then none of "
@@ -254,6 +270,8 @@ async def create_featurestore(
254270
request.parent = parent
255271
if featurestore is not None:
256272
request.featurestore = featurestore
273+
if featurestore_id is not None:
274+
request.featurestore_id = featurestore_id
257275

258276
# Wrap the RPC method; this adds retry and timeout information,
259277
# and friendly error handling.
@@ -313,7 +331,7 @@ async def get_featurestore(
313331
314332
Returns:
315333
google.cloud.aiplatform_v1.types.Featurestore:
316-
Vertex Feature Store provides a
334+
Vertex AI Feature Store provides a
317335
centralized repository for organizing,
318336
storing, and serving ML features. The
319337
Featurestore is a top-level container
@@ -490,7 +508,7 @@ async def update_featurestore(
490508
google.api_core.operation_async.AsyncOperation:
491509
An object representing a long-running operation.
492510
493-
The result type for the operation will be :class:`google.cloud.aiplatform_v1.types.Featurestore` Vertex Feature Store provides a centralized repository for organizing,
511+
The result type for the operation will be :class:`google.cloud.aiplatform_v1.types.Featurestore` Vertex AI Feature Store provides a centralized repository for organizing,
494512
storing, and serving ML features. The Featurestore is
495513
a top-level container for your features and their
496514
values.
@@ -659,6 +677,7 @@ async def create_entity_type(
659677
*,
660678
parent: str = None,
661679
entity_type: gca_entity_type.EntityType = None,
680+
entity_type_id: str = None,
662681
retry: OptionalRetry = gapic_v1.method.DEFAULT,
663682
timeout: float = None,
664683
metadata: Sequence[Tuple[str, str]] = (),
@@ -682,6 +701,20 @@ async def create_entity_type(
682701
This corresponds to the ``entity_type`` field
683702
on the ``request`` instance; if ``request`` is provided, this
684703
should not be set.
704+
entity_type_id (:class:`str`):
705+
Required. The ID to use for the EntityType, which will
706+
become the final component of the EntityType's resource
707+
name.
708+
709+
This value may be up to 60 characters, and valid
710+
characters are ``[a-z0-9_]``. The first character cannot
711+
be a number.
712+
713+
The value must be unique within a featurestore.
714+
715+
This corresponds to the ``entity_type_id`` field
716+
on the ``request`` instance; if ``request`` is provided, this
717+
should not be set.
685718
retry (google.api_core.retry.Retry): Designation of what errors, if any,
686719
should be retried.
687720
timeout (float): The timeout for this request.
@@ -701,7 +734,7 @@ async def create_entity_type(
701734
# Create or coerce a protobuf request object.
702735
# Sanity check: If we got a request object, we should *not* have
703736
# gotten any keyword arguments that map to the request.
704-
has_flattened_params = any([parent, entity_type])
737+
has_flattened_params = any([parent, entity_type, entity_type_id])
705738
if request is not None and has_flattened_params:
706739
raise ValueError(
707740
"If the `request` argument is set, then none of "
@@ -716,6 +749,8 @@ async def create_entity_type(
716749
request.parent = parent
717750
if entity_type is not None:
718751
request.entity_type = entity_type
752+
if entity_type_id is not None:
753+
request.entity_type_id = entity_type_id
719754

720755
# Wrap the RPC method; this adds retry and timeout information,
721756
# and friendly error handling.
@@ -1115,6 +1150,7 @@ async def create_feature(
11151150
*,
11161151
parent: str = None,
11171152
feature: gca_feature.Feature = None,
1153+
feature_id: str = None,
11181154
retry: OptionalRetry = gapic_v1.method.DEFAULT,
11191155
timeout: float = None,
11201156
metadata: Sequence[Tuple[str, str]] = (),
@@ -1138,6 +1174,20 @@ async def create_feature(
11381174
This corresponds to the ``feature`` field
11391175
on the ``request`` instance; if ``request`` is provided, this
11401176
should not be set.
1177+
feature_id (:class:`str`):
1178+
Required. The ID to use for the Feature, which will
1179+
become the final component of the Feature's resource
1180+
name.
1181+
1182+
This value may be up to 60 characters, and valid
1183+
characters are ``[a-z0-9_]``. The first character cannot
1184+
be a number.
1185+
1186+
The value must be unique within an EntityType.
1187+
1188+
This corresponds to the ``feature_id`` field
1189+
on the ``request`` instance; if ``request`` is provided, this
1190+
should not be set.
11411191
retry (google.api_core.retry.Retry): Designation of what errors, if any,
11421192
should be retried.
11431193
timeout (float): The timeout for this request.
@@ -1156,7 +1206,7 @@ async def create_feature(
11561206
# Create or coerce a protobuf request object.
11571207
# Sanity check: If we got a request object, we should *not* have
11581208
# gotten any keyword arguments that map to the request.
1159-
has_flattened_params = any([parent, feature])
1209+
has_flattened_params = any([parent, feature, feature_id])
11601210
if request is not None and has_flattened_params:
11611211
raise ValueError(
11621212
"If the `request` argument is set, then none of "
@@ -1171,6 +1221,8 @@ async def create_feature(
11711221
request.parent = parent
11721222
if feature is not None:
11731223
request.feature = feature
1224+
if feature_id is not None:
1225+
request.feature_id = feature_id
11741226

11751227
# Wrap the RPC method; this adds retry and timeout information,
11761228
# and friendly error handling.

0 commit comments

Comments
 (0)