Class: Google::Apis::ContainerV1::ReservationAffinity
- Inherits:
-
Object
- Object
- Google::Apis::ContainerV1::ReservationAffinity
- Defined in:
- generated/google/apis/container_v1/classes.rb,
generated/google/apis/container_v1/representations.rb,
generated/google/apis/container_v1/representations.rb
Overview
ReservationAffinity is the configuration of desired reservation which instances could take capacity from.
Instance Attribute Summary collapse
-
#consume_reservation_type ⇒ String
Corresponds to the type of reservation consumption.
-
#key ⇒ String
Corresponds to the label key of reservation resource.
-
#values ⇒ Array<String>
Corresponds to the label value(s) of reservation resource(s).
Instance Method Summary collapse
-
#initialize(**args) ⇒ ReservationAffinity
constructor
A new instance of ReservationAffinity.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Google::Apis::Core::JsonObjectSupport
Methods included from Google::Apis::Core::Hashable
Constructor Details
#initialize(**args) ⇒ ReservationAffinity
Returns a new instance of ReservationAffinity.
2674 2675 2676 |
# File 'generated/google/apis/container_v1/classes.rb', line 2674 def initialize(**args) update!(**args) end |
Instance Attribute Details
#consume_reservation_type ⇒ String
Corresponds to the type of reservation consumption.
Corresponds to the JSON property consumeReservationType
2662 2663 2664 |
# File 'generated/google/apis/container_v1/classes.rb', line 2662 def consume_reservation_type @consume_reservation_type end |
#key ⇒ String
Corresponds to the label key of reservation resource.
Corresponds to the JSON property key
2667 2668 2669 |
# File 'generated/google/apis/container_v1/classes.rb', line 2667 def key @key end |
#values ⇒ Array<String>
Corresponds to the label value(s) of reservation resource(s).
Corresponds to the JSON property values
2672 2673 2674 |
# File 'generated/google/apis/container_v1/classes.rb', line 2672 def values @values end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2679 2680 2681 2682 2683 |
# File 'generated/google/apis/container_v1/classes.rb', line 2679 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 |