Class: Google::Apis::ComputeAlpha::AllocationSpecificSkuAllocation
- Inherits:
-
Object
- Object
- Google::Apis::ComputeAlpha::AllocationSpecificSkuAllocation
- Defined in:
- generated/google/apis/compute_alpha/classes.rb,
generated/google/apis/compute_alpha/representations.rb,
generated/google/apis/compute_alpha/representations.rb more...
Overview
This allocation type allows to pre allocate specific instance configuration.
Instance Attribute Summary collapse
-
#count ⇒ Fixnum
Specifies number of resources that are allocated.
-
#in_use_count ⇒ Fixnum
[OutputOnly] Indicates how many resource are in use.
-
#instance_properties ⇒ Google::Apis::ComputeAlpha::AllocationSpecificSkuAllocationAllocatedInstanceProperties
Properties of the SKU instances being reserved.
Instance Method Summary collapse
-
#initialize(**args) ⇒ AllocationSpecificSkuAllocation
constructor
A new instance of AllocationSpecificSkuAllocation.
-
#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) ⇒ AllocationSpecificSkuAllocation
Returns a new instance of AllocationSpecificSkuAllocation
1449 1450 1451 |
# File 'generated/google/apis/compute_alpha/classes.rb', line 1449 def initialize(**args) update!(**args) end |
Instance Attribute Details
#count ⇒ Fixnum
Specifies number of resources that are allocated.
Corresponds to the JSON property count
1437 1438 1439 |
# File 'generated/google/apis/compute_alpha/classes.rb', line 1437 def count @count end |
#in_use_count ⇒ Fixnum
[OutputOnly] Indicates how many resource are in use.
Corresponds to the JSON property inUseCount
1442 1443 1444 |
# File 'generated/google/apis/compute_alpha/classes.rb', line 1442 def in_use_count @in_use_count end |
#instance_properties ⇒ Google::Apis::ComputeAlpha::AllocationSpecificSkuAllocationAllocatedInstanceProperties
Properties of the SKU instances being reserved.
Corresponds to the JSON property instanceProperties
1447 1448 1449 |
# File 'generated/google/apis/compute_alpha/classes.rb', line 1447 def instance_properties @instance_properties end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1454 1455 1456 1457 1458 |
# File 'generated/google/apis/compute_alpha/classes.rb', line 1454 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 |