Class: Google::Apis::ComputeBeta::AllocationSpecificSkuReservation
- Inherits:
-
Object
- Object
- Google::Apis::ComputeBeta::AllocationSpecificSkuReservation
- Defined in:
- generated/google/apis/compute_beta/classes.rb,
generated/google/apis/compute_beta/representations.rb,
generated/google/apis/compute_beta/representations.rb
Overview
This reservation type allows to pre allocate specific instance configuration.
Instance Attribute Summary collapse
-
#count ⇒ Fixnum
Specifies the number of resources that are allocated.
-
#in_use_count ⇒ Fixnum
[Output Only] Indicates how many instances are in use.
-
#instance_properties ⇒ Google::Apis::ComputeBeta::AllocationSpecificSkuAllocationReservedInstanceProperties
Properties of the SKU instances being reserved.
Instance Method Summary collapse
-
#initialize(**args) ⇒ AllocationSpecificSkuReservation
constructor
A new instance of AllocationSpecificSkuReservation.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Google::Apis::Core::JsonObjectSupport
Methods included from Google::Apis::Core::Hashable
Constructor Details
#initialize(**args) ⇒ AllocationSpecificSkuReservation
Returns a new instance of AllocationSpecificSkuReservation.
1153 1154 1155 |
# File 'generated/google/apis/compute_beta/classes.rb', line 1153 def initialize(**args) update!(**args) end |
Instance Attribute Details
#count ⇒ Fixnum
Specifies the number of resources that are allocated.
Corresponds to the JSON property count
1141 1142 1143 |
# File 'generated/google/apis/compute_beta/classes.rb', line 1141 def count @count end |
#in_use_count ⇒ Fixnum
[Output Only] Indicates how many instances are in use.
Corresponds to the JSON property inUseCount
1146 1147 1148 |
# File 'generated/google/apis/compute_beta/classes.rb', line 1146 def in_use_count @in_use_count end |
#instance_properties ⇒ Google::Apis::ComputeBeta::AllocationSpecificSkuAllocationReservedInstanceProperties
Properties of the SKU instances being reserved.
Corresponds to the JSON property instanceProperties
1151 1152 1153 |
# File 'generated/google/apis/compute_beta/classes.rb', line 1151 def instance_properties @instance_properties end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1158 1159 1160 1161 1162 |
# File 'generated/google/apis/compute_beta/classes.rb', line 1158 def update!(**args) @count = args[:count] if args.key?(:count) @in_use_count = args[:in_use_count] if args.key?(:in_use_count) @instance_properties = args[:instance_properties] if args.key?(:instance_properties) end |