Class: Google::Apis::MlV1::GoogleCloudMlV1Capability
- Inherits:
-
Object
- Object
- Google::Apis::MlV1::GoogleCloudMlV1Capability
- 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
-
#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.
665 666 667 |
# File 'generated/google/apis/ml_v1/classes.rb', line 665 def initialize(**args) update!(**args) end |
Instance Attribute Details
#available_accelerators ⇒ Array<String>
Available accelerators for the capability.
Corresponds to the JSON property availableAccelerators
658 659 660 |
# File 'generated/google/apis/ml_v1/classes.rb', line 658 def available_accelerators @available_accelerators end |
#type ⇒ String
Corresponds to the JSON property type
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 |