Class: Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1DeployRequest

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/aiplatform_v1beta1/classes.rb,
lib/google/apis/aiplatform_v1beta1/representations.rb,
lib/google/apis/aiplatform_v1beta1/representations.rb

Overview

Request message for ModelGardenService.Deploy.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudAiplatformV1beta1DeployRequest

Returns a new instance of GoogleCloudAiplatformV1beta1DeployRequest.



14803
14804
14805
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 14803

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#custom_modelGoogle::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1DeployRequestCustomModel

The custom model to deploy from model weights in a Google Cloud Storage URI or Model Registry model. Corresponds to the JSON property customModel



14773
14774
14775
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 14773

def custom_model
  @custom_model
end

#deploy_configGoogle::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1DeployRequestDeployConfig

The deploy config to use for the deployment. Corresponds to the JSON property deployConfig



14778
14779
14780
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 14778

def deploy_config
  @deploy_config
end

#endpoint_configGoogle::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1DeployRequestEndpointConfig

The endpoint config to use for the deployment. Corresponds to the JSON property endpointConfig



14783
14784
14785
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 14783

def endpoint_config
  @endpoint_config
end

#hugging_face_model_idString

The Hugging Face model to deploy. Format: Hugging Face model ID like google/ gemma-2-2b-it. Corresponds to the JSON property huggingFaceModelId

Returns:

  • (String)


14789
14790
14791
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 14789

def hugging_face_model_id
  @hugging_face_model_id
end

#model_configGoogle::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1DeployRequestModelConfig

The model config to use for the deployment. Corresponds to the JSON property modelConfig



14794
14795
14796
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 14794

def model_config
  @model_config
end

#publisher_model_nameString

The Model Garden model to deploy. Format: publishers/publisher/models/ publisher_model@version_id`, orpublishers/hf-hugging-face-author/models/ hugging-face-model-name@001. Corresponds to the JSON propertypublisherModelName`

Returns:

  • (String)


14801
14802
14803
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 14801

def publisher_model_name
  @publisher_model_name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



14808
14809
14810
14811
14812
14813
14814
14815
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 14808

def update!(**args)
  @custom_model = args[:custom_model] if args.key?(:custom_model)
  @deploy_config = args[:deploy_config] if args.key?(:deploy_config)
  @endpoint_config = args[:endpoint_config] if args.key?(:endpoint_config)
  @hugging_face_model_id = args[:hugging_face_model_id] if args.key?(:hugging_face_model_id)
  @model_config = args[:model_config] if args.key?(:model_config)
  @publisher_model_name = args[:publisher_model_name] if args.key?(:publisher_model_name)
end