Class: Google::Apis::MlV1::GoogleCloudMlV1Capability

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

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) ⇒ GoogleCloudMlV1Capability

Returns a new instance of GoogleCloudMlV1Capability



171
172
173
# File 'generated/google/apis/ml_v1/classes.rb', line 171

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

Instance Attribute Details

#available_acceleratorsArray<String>

Available accelerators for the capability. Corresponds to the JSON property availableAccelerators

Returns:

  • (Array<String>)


164
165
166
# File 'generated/google/apis/ml_v1/classes.rb', line 164

def available_accelerators
  @available_accelerators
end

#typeString

Corresponds to the JSON property type

Returns:

  • (String)


169
170
171
# File 'generated/google/apis/ml_v1/classes.rb', line 169

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



176
177
178
179
# File 'generated/google/apis/ml_v1/classes.rb', line 176

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