Class: Google::Apis::RunV2::GoogleCloudRunV2NodeSelector
- Inherits:
-
Object
- Object
- Google::Apis::RunV2::GoogleCloudRunV2NodeSelector
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/run_v2/classes.rb,
lib/google/apis/run_v2/representations.rb,
lib/google/apis/run_v2/representations.rb
Overview
Hardware constraints configuration.
Instance Attribute Summary collapse
-
#accelerator ⇒ String
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudRunV2NodeSelector
constructor
A new instance of GoogleCloudRunV2NodeSelector.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudRunV2NodeSelector
Returns a new instance of GoogleCloudRunV2NodeSelector.
1498 1499 1500 |
# File 'lib/google/apis/run_v2/classes.rb', line 1498 def initialize(**args) update!(**args) end |
Instance Attribute Details
#accelerator ⇒ String
Required. GPU accelerator type to attach to an instance.
Corresponds to the JSON property accelerator
1496 1497 1498 |
# File 'lib/google/apis/run_v2/classes.rb', line 1496 def accelerator @accelerator end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1503 1504 1505 |
# File 'lib/google/apis/run_v2/classes.rb', line 1503 def update!(**args) @accelerator = args[:accelerator] if args.key?(:accelerator) end |