Class: Google::Apis::DataprocV1::ReservationAffinity
- Inherits:
-
Object
- Object
- Google::Apis::DataprocV1::ReservationAffinity
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/dataproc_v1/classes.rb,
generated/google/apis/dataproc_v1/representations.rb,
generated/google/apis/dataproc_v1/representations.rb
Overview
Reservation Affinity for consuming Zonal reservation.
Instance Attribute Summary collapse
-
#consume_reservation_type ⇒ String
Optional.
-
#key ⇒ String
Optional.
-
#values ⇒ Array<String>
Optional.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ReservationAffinity
constructor
A new instance of ReservationAffinity.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ ReservationAffinity
Returns a new instance of ReservationAffinity.
2560 2561 2562 |
# File 'generated/google/apis/dataproc_v1/classes.rb', line 2560 def initialize(**args) update!(**args) end |
Instance Attribute Details
#consume_reservation_type ⇒ String
Optional. Type of reservation to consume
Corresponds to the JSON property consumeReservationType
2548 2549 2550 |
# File 'generated/google/apis/dataproc_v1/classes.rb', line 2548 def consume_reservation_type @consume_reservation_type end |
#key ⇒ String
Optional. Corresponds to the label key of reservation resource.
Corresponds to the JSON property key
2553 2554 2555 |
# File 'generated/google/apis/dataproc_v1/classes.rb', line 2553 def key @key end |
#values ⇒ Array<String>
Optional. Corresponds to the label values of reservation resource.
Corresponds to the JSON property values
2558 2559 2560 |
# File 'generated/google/apis/dataproc_v1/classes.rb', line 2558 def values @values end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2565 2566 2567 2568 2569 |
# File 'generated/google/apis/dataproc_v1/classes.rb', line 2565 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 |