Class: Google::Apis::MlV1::GoogleCloudMlV1ReplicaConfig
- Inherits:
-
Object
- Object
- Google::Apis::MlV1::GoogleCloudMlV1ReplicaConfig
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/ml_v1/classes.rb,
generated/google/apis/ml_v1/representations.rb,
generated/google/apis/ml_v1/representations.rb
Overview
Represents the configration for a replica in a cluster.
Instance Attribute Summary collapse
-
#accelerator_config ⇒ Google::Apis::MlV1::GoogleCloudMlV1AcceleratorConfig
Represents a hardware accelerator request config.
-
#image_uri ⇒ String
The docker image to run on worker.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudMlV1ReplicaConfig
constructor
A new instance of GoogleCloudMlV1ReplicaConfig.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ GoogleCloudMlV1ReplicaConfig
Returns a new instance of GoogleCloudMlV1ReplicaConfig
1097 1098 1099 |
# File 'generated/google/apis/ml_v1/classes.rb', line 1097 def initialize(**args) update!(**args) end |
Instance Attribute Details
#accelerator_config ⇒ Google::Apis::MlV1::GoogleCloudMlV1AcceleratorConfig
Represents a hardware accelerator request config.
Corresponds to the JSON property acceleratorConfig
1089 1090 1091 |
# File 'generated/google/apis/ml_v1/classes.rb', line 1089 def accelerator_config @accelerator_config end |
#image_uri ⇒ String
The docker image to run on worker.
This image must be in Google Container Registry.
Corresponds to the JSON property imageUri
1095 1096 1097 |
# File 'generated/google/apis/ml_v1/classes.rb', line 1095 def image_uri @image_uri end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1102 1103 1104 1105 |
# File 'generated/google/apis/ml_v1/classes.rb', line 1102 def update!(**args) @accelerator_config = args[:accelerator_config] if args.key?(:accelerator_config) @image_uri = args[:image_uri] if args.key?(:image_uri) end |