Class: Google::Apis::ComputeAlpha::AllocationAggregateReservation
- Inherits:
-
Object
- Object
- Google::Apis::ComputeAlpha::AllocationAggregateReservation
- 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 is specified by total resource amounts (e.g. total count of CPUs) and can account for multiple instance SKUs. In other words, one can create instances of varying shapes against this reservation.
Instance Attribute Summary collapse
-
#in_use_resources ⇒ Array<Google::Apis::ComputeAlpha::AllocationAggregateReservationReservedResourceInfo>
[Output only] List of resources currently in use.
-
#reserved_resources ⇒ Array<Google::Apis::ComputeAlpha::AllocationAggregateReservationReservedResourceInfo>
List of reserved resources (CPUs, memory, accelerators).
-
#vm_family ⇒ String
The VM family that all instances scheduled against this reservation must belong to.
Instance Method Summary collapse
-
#initialize(**args) ⇒ AllocationAggregateReservation
constructor
A new instance of AllocationAggregateReservation.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ AllocationAggregateReservation
Returns a new instance of AllocationAggregateReservation.
1261 1262 1263 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 1261 def initialize(**args) update!(**args) end |
Instance Attribute Details
#in_use_resources ⇒ Array<Google::Apis::ComputeAlpha::AllocationAggregateReservationReservedResourceInfo>
[Output only] List of resources currently in use.
Corresponds to the JSON property inUseResources
1248 1249 1250 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 1248 def in_use_resources @in_use_resources end |
#reserved_resources ⇒ Array<Google::Apis::ComputeAlpha::AllocationAggregateReservationReservedResourceInfo>
List of reserved resources (CPUs, memory, accelerators).
Corresponds to the JSON property reservedResources
1253 1254 1255 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 1253 def reserved_resources @reserved_resources end |
#vm_family ⇒ String
The VM family that all instances scheduled against this reservation must
belong to.
Corresponds to the JSON property vmFamily
1259 1260 1261 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 1259 def vm_family @vm_family end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1266 1267 1268 1269 1270 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 1266 def update!(**args) @in_use_resources = args[:in_use_resources] if args.key?(:in_use_resources) @reserved_resources = args[:reserved_resources] if args.key?(:reserved_resources) @vm_family = args[:vm_family] if args.key?(:vm_family) end |