Class: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1DeployRequest
- Inherits:
-
Object
- Object
- Google::Apis::AiplatformV1::GoogleCloudAiplatformV1DeployRequest
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/aiplatform_v1/classes.rb,
lib/google/apis/aiplatform_v1/representations.rb,
lib/google/apis/aiplatform_v1/representations.rb
Overview
Request message for ModelGardenService.Deploy.
Instance Attribute Summary collapse
-
#deploy_config ⇒ Google::Apis::AiplatformV1::GoogleCloudAiplatformV1DeployRequestDeployConfig
The deploy config to use for the deployment.
-
#endpoint_config ⇒ Google::Apis::AiplatformV1::GoogleCloudAiplatformV1DeployRequestEndpointConfig
The endpoint config to use for the deployment.
-
#hugging_face_model_id ⇒ String
The Hugging Face model to deploy.
-
#model_config ⇒ Google::Apis::AiplatformV1::GoogleCloudAiplatformV1DeployRequestModelConfig
The model config to use for the deployment.
-
#publisher_model_name ⇒ String
The Model Garden model to deploy.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudAiplatformV1DeployRequest
constructor
A new instance of GoogleCloudAiplatformV1DeployRequest.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudAiplatformV1DeployRequest
Returns a new instance of GoogleCloudAiplatformV1DeployRequest.
6770 6771 6772 |
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 6770 def initialize(**args) update!(**args) end |
Instance Attribute Details
#deploy_config ⇒ Google::Apis::AiplatformV1::GoogleCloudAiplatformV1DeployRequestDeployConfig
The deploy config to use for the deployment.
Corresponds to the JSON property deployConfig
6745 6746 6747 |
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 6745 def deploy_config @deploy_config end |
#endpoint_config ⇒ Google::Apis::AiplatformV1::GoogleCloudAiplatformV1DeployRequestEndpointConfig
The endpoint config to use for the deployment.
Corresponds to the JSON property endpointConfig
6750 6751 6752 |
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 6750 def endpoint_config @endpoint_config end |
#hugging_face_model_id ⇒ String
The Hugging Face model to deploy. Format: Hugging Face model ID like google/
gemma-2-2b-it.
Corresponds to the JSON property huggingFaceModelId
6756 6757 6758 |
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 6756 def hugging_face_model_id @hugging_face_model_id end |
#model_config ⇒ Google::Apis::AiplatformV1::GoogleCloudAiplatformV1DeployRequestModelConfig
The model config to use for the deployment.
Corresponds to the JSON property modelConfig
6761 6762 6763 |
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 6761 def model_config @model_config end |
#publisher_model_name ⇒ String
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`
6768 6769 6770 |
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 6768 def publisher_model_name @publisher_model_name end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
6775 6776 6777 6778 6779 6780 6781 |
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 6775 def update!(**args) @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 |