Class: Google::Apis::ComputeBeta::AllocationSpecificSkuReservation
- Inherits:
-
Object
- Object
- Google::Apis::ComputeBeta::AllocationSpecificSkuReservation
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/compute_beta/classes.rb,
lib/google/apis/compute_beta/representations.rb,
lib/google/apis/compute_beta/representations.rb
Overview
This reservation type allows to pre allocate specific instance configuration. Next ID: 6
Instance Attribute Summary collapse
-
#assured_count ⇒ Fixnum
[Output Only] Indicates how many instances are actually usable currently.
-
#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.
Constructor Details
#initialize(**args) ⇒ AllocationSpecificSkuReservation
Returns a new instance of AllocationSpecificSkuReservation.
1306 1307 1308 |
# File 'lib/google/apis/compute_beta/classes.rb', line 1306 def initialize(**args) update!(**args) end |
Instance Attribute Details
#assured_count ⇒ Fixnum
[Output Only] Indicates how many instances are actually usable currently.
Corresponds to the JSON property assuredCount
1289 1290 1291 |
# File 'lib/google/apis/compute_beta/classes.rb', line 1289 def assured_count @assured_count end |
#count ⇒ Fixnum
Specifies the number of resources that are allocated.
Corresponds to the JSON property count
1294 1295 1296 |
# File 'lib/google/apis/compute_beta/classes.rb', line 1294 def count @count end |
#in_use_count ⇒ Fixnum
[Output Only] Indicates how many instances are in use.
Corresponds to the JSON property inUseCount
1299 1300 1301 |
# File 'lib/google/apis/compute_beta/classes.rb', line 1299 def in_use_count @in_use_count end |
#instance_properties ⇒ Google::Apis::ComputeBeta::AllocationSpecificSkuAllocationReservedInstanceProperties
Properties of the SKU instances being reserved. Next ID: 9
Corresponds to the JSON property instanceProperties
1304 1305 1306 |
# File 'lib/google/apis/compute_beta/classes.rb', line 1304 def instance_properties @instance_properties end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1311 1312 1313 1314 1315 1316 |
# File 'lib/google/apis/compute_beta/classes.rb', line 1311 def update!(**args) @assured_count = args[:assured_count] if args.key?(:assured_count) @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 |