Kubernetes Engine V1beta1 API - Class Google::Cloud::Container::V1beta1::ReservationAffinity (v0.16.0)

Reference documentation and code samples for the Kubernetes Engine V1beta1 API class Google::Cloud::Container::V1beta1::ReservationAffinity.

ReservationAffinity is the configuration of desired reservation which instances could take capacity from.

Inherits

  • Object

Extended By

  • Google::Protobuf::MessageExts::ClassMethods

Includes

  • Google::Protobuf::MessageExts

Methods

#consume_reservation_type

def consume_reservation_type() -> ::Google::Cloud::Container::V1beta1::ReservationAffinity::Type
Returns

#consume_reservation_type=

def consume_reservation_type=(value) -> ::Google::Cloud::Container::V1beta1::ReservationAffinity::Type
Parameter
Returns

#key

def key() -> ::String
Returns
  • (::String) — Corresponds to the label key of a reservation resource. To target a SPECIFIC_RESERVATION by name, specify "compute.googleapis.com/reservation-name" as the key and specify the name of your reservation as its value.

#key=

def key=(value) -> ::String
Parameter
  • value (::String) — Corresponds to the label key of a reservation resource. To target a SPECIFIC_RESERVATION by name, specify "compute.googleapis.com/reservation-name" as the key and specify the name of your reservation as its value.
Returns
  • (::String) — Corresponds to the label key of a reservation resource. To target a SPECIFIC_RESERVATION by name, specify "compute.googleapis.com/reservation-name" as the key and specify the name of your reservation as its value.

#values

def values() -> ::Array<::String>
Returns
  • (::Array<::String>) — Corresponds to the label value(s) of reservation resource(s).

#values=

def values=(value) -> ::Array<::String>
Parameter
  • value (::Array<::String>) — Corresponds to the label value(s) of reservation resource(s).
Returns
  • (::Array<::String>) — Corresponds to the label value(s) of reservation resource(s).