diff --git a/google/cloud/aiplatform/v1beta1/model_garden_service.proto b/google/cloud/aiplatform/v1beta1/model_garden_service.proto index 1c10b2d616..7ef00cc5c5 100644 --- a/google/cloud/aiplatform/v1beta1/model_garden_service.proto +++ b/google/cloud/aiplatform/v1beta1/model_garden_service.proto @@ -72,8 +72,9 @@ service ModelGardenService { // Deploys publisher models. rpc DeployPublisherModel(DeployPublisherModelRequest) returns (google.longrunning.Operation) { + option deprecated = true; option (google.api.http) = { - post: "/v1beta1/{destination=projects/*/locations/*}:deploy" + post: "/v1beta1/{destination=projects/*/locations/*}:deployPublisherModel" body: "*" }; option (google.longrunning.operation_info) = { @@ -125,6 +126,11 @@ message GetPublisherModelRequest { // Optional. Token used to access Hugging Face gated models. string hugging_face_token = 6 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Whether to cnclude the deployment configs from the equivalent + // Model Garden model if the requested model is a Hugging Face model. + bool include_equivalent_model_garden_model_deployment_configs = 7 + [(google.api.field_behavior) = OPTIONAL]; } // Request message for @@ -273,11 +279,15 @@ message DeployRequest { // Request message for // [ModelGardenService.DeployPublisherModel][google.cloud.aiplatform.v1beta1.ModelGardenService.DeployPublisherModel]. message DeployPublisherModelRequest { - // Required. The name of the PublisherModel resource. + option deprecated = true; + + // Required. The model to deploy. // Format: - // `publishers/{publisher}/models/{publisher_model}@{version_id}`, or - // `publishers/hf-{hugging-face-author}/models/{hugging-face-model-name}@001` - // or Hugging Face model ID like `google/gemma-2-2b-it`. + // 1. `publishers/{publisher}/models/{publisher_model}@{version_id}`, or + // `publishers/hf-{hugging-face-author}/models/{hugging-face-model-name}@001`. + // 2. Hugging Face model ID like `google/gemma-2-2b-it`. + // 3. Custom model Google Cloud Storage URI like `gs://bucket`. + // 4. Custom model zip file like `https://example.com/a.zip`. string model = 1 [(google.api.field_behavior) = REQUIRED]; // Required. The resource name of the Location to deploy the model in. @@ -347,6 +357,8 @@ message DeployResponse { // Response message for // [ModelGardenService.DeployPublisherModel][google.cloud.aiplatform.v1beta1.ModelGardenService.DeployPublisherModel]. message DeployPublisherModelResponse { + option deprecated = true; + // Output only. The name of the PublisherModel resource. // Format: // `publishers/{publisher}/models/{publisher_model}@{version_id}`, or @@ -407,6 +419,8 @@ message DeployOperationMetadata { // Runtime operation information for // [ModelGardenService.DeployPublisherModel][google.cloud.aiplatform.v1beta1.ModelGardenService.DeployPublisherModel]. message DeployPublisherModelOperationMetadata { + option deprecated = true; + // The operation generic information. GenericOperationMetadata generic_metadata = 1;