Reference documentation and code samples for the Google Cloud Compute V1 API class Google::Cloud::Compute::V1::AllocationAggregateReservation.
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.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#in_use_resources
def in_use_resources() -> ::Array<::Google::Cloud::Compute::V1::AllocationAggregateReservationReservedResourceInfo>
Returns
- (::Array<::Google::Cloud::Compute::V1::AllocationAggregateReservationReservedResourceInfo>) — [Output only] List of resources currently in use.
#in_use_resources=
def in_use_resources=(value) -> ::Array<::Google::Cloud::Compute::V1::AllocationAggregateReservationReservedResourceInfo>
Parameter
- value (::Array<::Google::Cloud::Compute::V1::AllocationAggregateReservationReservedResourceInfo>) — [Output only] List of resources currently in use.
Returns
- (::Array<::Google::Cloud::Compute::V1::AllocationAggregateReservationReservedResourceInfo>) — [Output only] List of resources currently in use.
#reserved_resources
def reserved_resources() -> ::Array<::Google::Cloud::Compute::V1::AllocationAggregateReservationReservedResourceInfo>
Returns
- (::Array<::Google::Cloud::Compute::V1::AllocationAggregateReservationReservedResourceInfo>) — List of reserved resources (CPUs, memory, accelerators).
#reserved_resources=
def reserved_resources=(value) -> ::Array<::Google::Cloud::Compute::V1::AllocationAggregateReservationReservedResourceInfo>
Parameter
- value (::Array<::Google::Cloud::Compute::V1::AllocationAggregateReservationReservedResourceInfo>) — List of reserved resources (CPUs, memory, accelerators).
Returns
- (::Array<::Google::Cloud::Compute::V1::AllocationAggregateReservationReservedResourceInfo>) — List of reserved resources (CPUs, memory, accelerators).
#vm_family
def vm_family() -> ::String
Returns
- (::String) — The VM family that all instances scheduled against this reservation must belong to. Check the VmFamily enum for the list of possible values.
#vm_family=
def vm_family=(value) -> ::String
Parameter
- value (::String) — The VM family that all instances scheduled against this reservation must belong to. Check the VmFamily enum for the list of possible values.
Returns
- (::String) — The VM family that all instances scheduled against this reservation must belong to. Check the VmFamily enum for the list of possible values.
#workload_type
def workload_type() -> ::String
Returns
- (::String) — The workload type of the instances that will target this reservation. Check the WorkloadType enum for the list of possible values.
#workload_type=
def workload_type=(value) -> ::String
Parameter
- value (::String) — The workload type of the instances that will target this reservation. Check the WorkloadType enum for the list of possible values.
Returns
- (::String) — The workload type of the instances that will target this reservation. Check the WorkloadType enum for the list of possible values.