Class: Google::Apis::ComputeAlpha::AllocationSpecificSkuReservation
- Inherits:
-
Object
- Object
- Google::Apis::ComputeAlpha::AllocationSpecificSkuReservation
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/compute_alpha/classes.rb,
lib/google/apis/compute_alpha/representations.rb,
lib/google/apis/compute_alpha/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::ComputeAlpha::AllocationSpecificSkuAllocationReservedInstanceProperties
Properties of the SKU instances being reserved.
-
#source_instance_template ⇒ String
Specific URL of the instance template used in the reservation Corresponds to the JSON property
sourceInstanceTemplate
.
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.
1335 1336 1337 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 1335 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
1313 1314 1315 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 1313 def assured_count @assured_count end |
#count ⇒ Fixnum
Specifies the number of resources that are allocated.
Corresponds to the JSON property count
1318 1319 1320 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 1318 def count @count end |
#in_use_count ⇒ Fixnum
[Output Only] Indicates how many instances are in use.
Corresponds to the JSON property inUseCount
1323 1324 1325 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 1323 def in_use_count @in_use_count end |
#instance_properties ⇒ Google::Apis::ComputeAlpha::AllocationSpecificSkuAllocationReservedInstanceProperties
Properties of the SKU instances being reserved. Next ID: 9
Corresponds to the JSON property instanceProperties
1328 1329 1330 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 1328 def instance_properties @instance_properties end |
#source_instance_template ⇒ String
Specific URL of the instance template used in the reservation
Corresponds to the JSON property sourceInstanceTemplate
1333 1334 1335 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 1333 def source_instance_template @source_instance_template end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1340 1341 1342 1343 1344 1345 1346 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 1340 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) @source_instance_template = args[:source_instance_template] if args.key?(:source_instance_template) end |