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

Constructor Details

#initialize(**args) ⇒ GoogleCloudMlV1Capability

Returns a new instance of GoogleCloudMlV1Capability.



665
666
667
# File 'generated/google/apis/ml_v1/classes.rb', line 665

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


658
659
660
# File 'generated/google/apis/ml_v1/classes.rb', line 658

def available_accelerators
  @available_accelerators
end

#typeString

Corresponds to the JSON property type

Returns:

  • (String)


663
664
665
# File 'generated/google/apis/ml_v1/classes.rb', line 663

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



670
671
672
673
# File 'generated/google/apis/ml_v1/classes.rb', line 670

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