Class: Google::Apis::ComputeV1::AllocationSpecificSkuReservation
- Inherits:
-
Object
- Object
- Google::Apis::ComputeV1::AllocationSpecificSkuReservation
- 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
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::ComputeV1::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.
Constructor Details
#initialize(**args) ⇒ AllocationSpecificSkuReservation
Returns a new instance of AllocationSpecificSkuReservation.
1178 1179 1180 |
# File 'lib/google/apis/compute_v1/classes.rb', line 1178 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
1166 1167 1168 |
# File 'lib/google/apis/compute_v1/classes.rb', line 1166 def count @count end |
#in_use_count ⇒ Fixnum
[Output Only] Indicates how many instances are in use.
Corresponds to the JSON property inUseCount
1171 1172 1173 |
# File 'lib/google/apis/compute_v1/classes.rb', line 1171 def in_use_count @in_use_count end |
#instance_properties ⇒ Google::Apis::ComputeV1::AllocationSpecificSkuAllocationReservedInstanceProperties
Properties of the SKU instances being reserved. Next ID: 9
Corresponds to the JSON property instanceProperties
1176 1177 1178 |
# File 'lib/google/apis/compute_v1/classes.rb', line 1176 def instance_properties @instance_properties end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1183 1184 1185 1186 1187 |
# File 'lib/google/apis/compute_v1/classes.rb', line 1183 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 |