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::V1::ReservationAffinity::Type
Returns
- (::Google::Cloud::Container::V1::ReservationAffinity::Type) — Corresponds to the type of reservation consumption.
#consume_reservation_type=
def consume_reservation_type=(value) -> ::Google::Cloud::Container::V1::ReservationAffinity::Type
Parameter
- value (::Google::Cloud::Container::V1::ReservationAffinity::Type) — Corresponds to the type of reservation consumption.
Returns
- (::Google::Cloud::Container::V1::ReservationAffinity::Type) — Corresponds to the type of reservation consumption.
#key
def key() -> ::String
Returns
- (::String) — Corresponds to the label key of a reservation resource. To target a SPECIFIC_RESERVATION by name, specify "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 "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 "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).