Class: Google::Apis::BackupdrV1::AcceleratorConfig
- Inherits:
-
Object
- Object
- Google::Apis::BackupdrV1::AcceleratorConfig
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/backupdr_v1/classes.rb,
lib/google/apis/backupdr_v1/representations.rb,
lib/google/apis/backupdr_v1/representations.rb
Overview
A specification of the type and number of accelerator cards attached to the instance.
Instance Attribute Summary collapse
-
#accelerator_count ⇒ Fixnum
Optional.
-
#accelerator_type ⇒ String
Optional.
Instance Method Summary collapse
-
#initialize(**args) ⇒ AcceleratorConfig
constructor
A new instance of AcceleratorConfig.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ AcceleratorConfig
Returns a new instance of AcceleratorConfig.
69 70 71 |
# File 'lib/google/apis/backupdr_v1/classes.rb', line 69 def initialize(**args) update!(**args) end |
Instance Attribute Details
#accelerator_count ⇒ Fixnum
Optional. The number of the guest accelerator cards exposed to this instance.
Corresponds to the JSON property acceleratorCount
61 62 63 |
# File 'lib/google/apis/backupdr_v1/classes.rb', line 61 def accelerator_count @accelerator_count end |
#accelerator_type ⇒ String
Optional. Full or partial URL of the accelerator type resource to attach to
this instance.
Corresponds to the JSON property acceleratorType
67 68 69 |
# File 'lib/google/apis/backupdr_v1/classes.rb', line 67 def accelerator_type @accelerator_type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
74 75 76 77 |
# File 'lib/google/apis/backupdr_v1/classes.rb', line 74 def update!(**args) @accelerator_count = args[:accelerator_count] if args.key?(:accelerator_count) @accelerator_type = args[:accelerator_type] if args.key?(:accelerator_type) end |