class Google::Apis::DataprocV1::ReservationAffinity
Reservation Affinity for consuming Zonal reservation.
Attributes
consume_reservation_type[RW]
Optional. Type of reservation to consume Corresponds to the JSON property `consumeReservationType` @return [String]
key[RW]
Optional. Corresponds to the label key of reservation resource. Corresponds to the JSON property `key` @return [String]
values[RW]
Optional. Corresponds to the label values of reservation resource. Corresponds to the JSON property `values` @return [Array<String>]
Public Class Methods
new(**args)
click to toggle source
# File lib/google/apis/dataproc_v1/classes.rb, line 2999 def initialize(**args) update!(**args) end
Public Instance Methods
update!(**args)
click to toggle source
Update properties of this object
# File lib/google/apis/dataproc_v1/classes.rb, line 3004 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