class Google::Apis::ContainerV1beta1::ReservationAffinity
[ReservationAffinity](cloud.google.com/compute/docs/instances/ reserving-zonal-resources) is the configuration of desired reservation which instances could take capacity from.
Attributes
consume_reservation_type[RW]
Corresponds to the type of reservation consumption. Corresponds to the JSON property `consumeReservationType` @return [String]
key[RW]
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. Corresponds to the JSON property `key` @return [String]
values[RW]
Corresponds to the label value(s) of reservation resource(s). Corresponds to the JSON property `values` @return [Array<String>]
Public Class Methods
new(**args)
click to toggle source
# File lib/google/apis/container_v1beta1/classes.rb, line 4045 def initialize(**args) update!(**args) end
Public Instance Methods
update!(**args)
click to toggle source
Update properties of this object
# File lib/google/apis/container_v1beta1/classes.rb, line 4050 def update!(**args) @consume_reservation_type = args[:consume_reservation_type] if args.key?(:consume_reservation_type) @key = args[:key] if args.key?(:key) @values = args[:values] if args.key?(:values) end