Class: Google::Apis::ComputeV1::AllocationAggregateReservationReservedResourceInfoAccelerator
- Inherits:
-
Object
- Object
- Google::Apis::ComputeV1::AllocationAggregateReservationReservedResourceInfoAccelerator
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/compute_v1/classes.rb,
lib/google/apis/compute_v1/representations.rb,
lib/google/apis/compute_v1/representations.rb
Instance Attribute Summary collapse
-
#accelerator_count ⇒ Fixnum
Number of accelerators of specified type.
-
#accelerator_type ⇒ String
Full or partial URL to accelerator type.
Instance Method Summary collapse
-
#initialize(**args) ⇒ AllocationAggregateReservationReservedResourceInfoAccelerator
constructor
A new instance of AllocationAggregateReservationReservedResourceInfoAccelerator.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ AllocationAggregateReservationReservedResourceInfoAccelerator
Returns a new instance of AllocationAggregateReservationReservedResourceInfoAccelerator.
1472 1473 1474 |
# File 'lib/google/apis/compute_v1/classes.rb', line 1472 def initialize(**args) update!(**args) end |
Instance Attribute Details
#accelerator_count ⇒ Fixnum
Number of accelerators of specified type.
Corresponds to the JSON property acceleratorCount
1464 1465 1466 |
# File 'lib/google/apis/compute_v1/classes.rb', line 1464 def accelerator_count @accelerator_count end |
#accelerator_type ⇒ String
Full or partial URL to accelerator type. e.g.
"projects/PROJECT/zones/ZONE/acceleratorTypes/ct4l"
Corresponds to the JSON property acceleratorType
1470 1471 1472 |
# File 'lib/google/apis/compute_v1/classes.rb', line 1470 def accelerator_type @accelerator_type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1477 1478 1479 1480 |
# File 'lib/google/apis/compute_v1/classes.rb', line 1477 def update!(**args) @accelerator_count = args[:accelerator_count] if args.key?(:accelerator_count) @accelerator_type = args[:accelerator_type] if args.key?(:accelerator_type) end |