Class: Google::Apis::MlV1::GoogleCloudMlV1ReplicaConfig

Inherits:
Object
  • Object
show all
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 configuration for a replica in a cluster.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ GoogleCloudMlV1ReplicaConfig

Returns a new instance of GoogleCloudMlV1ReplicaConfig



1169
1170
1171
# File 'generated/google/apis/ml_v1/classes.rb', line 1169

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

Instance Attribute Details

#accelerator_configGoogle::Apis::MlV1::GoogleCloudMlV1AcceleratorConfig

Represents a hardware accelerator request config. Corresponds to the JSON property acceleratorConfig



1160
1161
1162
# File 'generated/google/apis/ml_v1/classes.rb', line 1160

def accelerator_config
  @accelerator_config
end

#image_uriString

The Docker image to run on the replica. This image must be in Container Registry. Learn more about configuring custom containers. Corresponds to the JSON property imageUri

Returns:

  • (String)


1167
1168
1169
# File 'generated/google/apis/ml_v1/classes.rb', line 1167

def image_uri
  @image_uri
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1174
1175
1176
1177
# File 'generated/google/apis/ml_v1/classes.rb', line 1174

def update!(**args)
  @accelerator_config = args[:accelerator_config] if args.key?(:accelerator_config)
  @image_uri = args[:image_uri] if args.key?(:image_uri)
end