Class: Google::Apis::MlV1::GoogleCloudMlV1Capability
- Inherits:
-
Object
- Object
- Google::Apis::MlV1::GoogleCloudMlV1Capability
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/ml_v1/classes.rb,
lib/google/apis/ml_v1/representations.rb,
lib/google/apis/ml_v1/representations.rb
Instance Attribute Summary collapse
-
#available_accelerators ⇒ Array<String>
Available accelerators for the capability.
-
#type ⇒ String
Corresponds to the JSON property
type
.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudMlV1Capability
constructor
A new instance of GoogleCloudMlV1Capability.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudMlV1Capability
Returns a new instance of GoogleCloudMlV1Capability.
663 664 665 |
# File 'lib/google/apis/ml_v1/classes.rb', line 663 def initialize(**args) update!(**args) end |
Instance Attribute Details
#available_accelerators ⇒ Array<String>
Available accelerators for the capability.
Corresponds to the JSON property availableAccelerators
656 657 658 |
# File 'lib/google/apis/ml_v1/classes.rb', line 656 def available_accelerators @available_accelerators end |
#type ⇒ String
Corresponds to the JSON property type
661 662 663 |
# File 'lib/google/apis/ml_v1/classes.rb', line 661 def type @type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
668 669 670 671 |
# File 'lib/google/apis/ml_v1/classes.rb', line 668 def update!(**args) @available_accelerators = args[:available_accelerators] if args.key?(:available_accelerators) @type = args[:type] if args.key?(:type) end |