Google Cloud Compute V1 API - Class Google::Cloud::Compute::V1::AllocationAggregateReservation (v2.11.0)

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

#in_use_resources=

def in_use_resources=(value) -> ::Array<::Google::Cloud::Compute::V1::AllocationAggregateReservationReservedResourceInfo>
Parameter
Returns

#reserved_resources

def reserved_resources() -> ::Array<::Google::Cloud::Compute::V1::AllocationAggregateReservationReservedResourceInfo>
Returns

#reserved_resources=

def reserved_resources=(value) -> ::Array<::Google::Cloud::Compute::V1::AllocationAggregateReservationReservedResourceInfo>
Parameter
Returns

#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.