From 0b24d03e9fce0161815012125bd43acab83d6798 Mon Sep 17 00:00:00 2001 From: Google APIs Date: Tue, 19 Jul 2022 14:08:05 -0700 Subject: [PATCH] feat: add a DeploymentResourcePool API resource_definition feat: add shared_resources for supported prediction_resources PiperOrigin-RevId: 461971827 --- google/cloud/aiplatform/v1beta1/endpoint.proto | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/google/cloud/aiplatform/v1beta1/endpoint.proto b/google/cloud/aiplatform/v1beta1/endpoint.proto index 11e1025157ad9..e9959086471c3 100644 --- a/google/cloud/aiplatform/v1beta1/endpoint.proto +++ b/google/cloud/aiplatform/v1beta1/endpoint.proto @@ -31,6 +31,10 @@ option java_outer_classname = "EndpointProto"; option java_package = "com.google.cloud.aiplatform.v1beta1"; option php_namespace = "Google\\Cloud\\AIPlatform\\V1beta1"; option ruby_package = "Google::Cloud::AIPlatform::V1beta1"; +option (google.api.resource_definition) = { + type: "aiplatform.googleapis.com/DeploymentResourcePool" + pattern: "projects/{project}/locations/{location}/deploymentResourcePools/{deployment_resource_pool}" +}; // Models are deployed into it, and afterwards Endpoint is called to obtain // predictions and explanations. @@ -146,6 +150,13 @@ message DeployedModel { // A description of resources that to large degree are decided by Vertex // AI, and require only a modest additional configuration. AutomaticResources automatic_resources = 8; + + // The resource name of the shared DeploymentResourcePool to deploy on. + // Format: + // projects/{project}/locations/{location}/deploymentResourcePools/{deployment_resource_pool} + string shared_resources = 17 [(google.api.resource_reference) = { + type: "aiplatform.googleapis.com/DeploymentResourcePool" + }]; } // Immutable. The ID of the DeployedModel. If not provided upon deployment, Vertex AI