@@ -72,8 +72,9 @@ service ModelGardenService {
7272 // Deploys publisher models.
7373 rpc DeployPublisherModel (DeployPublisherModelRequest )
7474 returns (google.longrunning.Operation ) {
75+ option deprecated = true ;
7576 option (google.api.http ) = {
76- post : "/v1beta1/{destination=projects/*/locations/*}:deploy "
77+ post : "/v1beta1/{destination=projects/*/locations/*}:deployPublisherModel "
7778 body : "*"
7879 };
7980 option (google.longrunning.operation_info ) = {
@@ -125,6 +126,11 @@ message GetPublisherModelRequest {
125126
126127 // Optional. Token used to access Hugging Face gated models.
127128 string hugging_face_token = 6 [(google.api.field_behavior ) = OPTIONAL ];
129+
130+ // Optional. Whether to cnclude the deployment configs from the equivalent
131+ // Model Garden model if the requested model is a Hugging Face model.
132+ bool include_equivalent_model_garden_model_deployment_configs = 7
133+ [(google.api.field_behavior ) = OPTIONAL ];
128134}
129135
130136// Request message for
@@ -273,11 +279,15 @@ message DeployRequest {
273279// Request message for
274280// [ModelGardenService.DeployPublisherModel][google.cloud.aiplatform.v1beta1.ModelGardenService.DeployPublisherModel].
275281message DeployPublisherModelRequest {
276- // Required. The name of the PublisherModel resource.
282+ option deprecated = true ;
283+
284+ // Required. The model to deploy.
277285 // Format:
278- // `publishers/{publisher}/models/{publisher_model}@{version_id}`, or
279- // `publishers/hf-{hugging-face-author}/models/{hugging-face-model-name}@001`
280- // or Hugging Face model ID like `google/gemma-2-2b-it`.
286+ // 1. `publishers/{publisher}/models/{publisher_model}@{version_id}`, or
287+ // `publishers/hf-{hugging-face-author}/models/{hugging-face-model-name}@001`.
288+ // 2. Hugging Face model ID like `google/gemma-2-2b-it`.
289+ // 3. Custom model Google Cloud Storage URI like `gs://bucket`.
290+ // 4. Custom model zip file like `https://example.com/a.zip`.
281291 string model = 1 [(google.api.field_behavior ) = REQUIRED ];
282292
283293 // Required. The resource name of the Location to deploy the model in.
@@ -347,6 +357,8 @@ message DeployResponse {
347357// Response message for
348358// [ModelGardenService.DeployPublisherModel][google.cloud.aiplatform.v1beta1.ModelGardenService.DeployPublisherModel].
349359message DeployPublisherModelResponse {
360+ option deprecated = true ;
361+
350362 // Output only. The name of the PublisherModel resource.
351363 // Format:
352364 // `publishers/{publisher}/models/{publisher_model}@{version_id}`, or
@@ -407,6 +419,8 @@ message DeployOperationMetadata {
407419// Runtime operation information for
408420// [ModelGardenService.DeployPublisherModel][google.cloud.aiplatform.v1beta1.ModelGardenService.DeployPublisherModel].
409421message DeployPublisherModelOperationMetadata {
422+ option deprecated = true ;
423+
410424 // The operation generic information.
411425 GenericOperationMetadata generic_metadata = 1 ;
412426
0 commit comments