Class: Google::Apis::CloudbillingV1beta::GuestAccelerator
- Inherits:
-
Object
- Object
- Google::Apis::CloudbillingV1beta::GuestAccelerator
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/cloudbilling_v1beta/classes.rb,
lib/google/apis/cloudbilling_v1beta/representations.rb,
lib/google/apis/cloudbilling_v1beta/representations.rb
Overview
Specification of a set of guest accelerators attached to a machine.
Instance Attribute Summary collapse
-
#accelerator_count ⇒ Fixnum
The number of the guest accelerator cards exposed to each instance.
-
#accelerator_type ⇒ String
The type of the guest accelerator cards.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GuestAccelerator
constructor
A new instance of GuestAccelerator.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GuestAccelerator
Returns a new instance of GuestAccelerator.
2196 2197 2198 |
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 2196 def initialize(**args) update!(**args) end |
Instance Attribute Details
#accelerator_count ⇒ Fixnum
The number of the guest accelerator cards exposed to each instance.
Corresponds to the JSON property acceleratorCount
2189 2190 2191 |
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 2189 def accelerator_count @accelerator_count end |
#accelerator_type ⇒ String
The type of the guest accelerator cards. For example: "nvidia-tesla-t4".
Corresponds to the JSON property acceleratorType
2194 2195 2196 |
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 2194 def accelerator_type @accelerator_type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2201 2202 2203 2204 |
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 2201 def update!(**args) @accelerator_count = args[:accelerator_count] if args.key?(:accelerator_count) @accelerator_type = args[:accelerator_type] if args.key?(:accelerator_type) end |