Class: Google::Apis::ComputeBeta::ReservationAffinity
- Inherits:
-
Object
- Object
- Google::Apis::ComputeBeta::ReservationAffinity
- Defined in:
- generated/google/apis/compute_beta/classes.rb,
generated/google/apis/compute_beta/representations.rb,
generated/google/apis/compute_beta/representations.rb
Overview
AllocationAffinity is the configuration of desired allocation which this instance could take capacity from.
Instance Attribute Summary collapse
-
#consume_reservation_type ⇒ String
Specifies the type of reservation from which this instance can consume resources: ANY_RESERVATION (default), SPECIFIC_RESERVATION, or NO_RESERVATION.
-
#key ⇒ String
Corresponds to the label key of reservation resource.
-
#values ⇒ Array<String>
Corresponds to the label values of reservation resource.
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
20707 20708 20709 |
# File 'generated/google/apis/compute_beta/classes.rb', line 20707 def initialize(**args) update!(**args) end |
Instance Attribute Details
#consume_reservation_type ⇒ String
Specifies the type of reservation from which this instance can consume
resources: ANY_RESERVATION (default), SPECIFIC_RESERVATION, or NO_RESERVATION.
See Consuming reserved instances for examples.
Corresponds to the JSON property consumeReservationType
20695 20696 20697 |
# File 'generated/google/apis/compute_beta/classes.rb', line 20695 def consume_reservation_type @consume_reservation_type end |
#key ⇒ String
Corresponds to the label key of reservation resource.
Corresponds to the JSON property key
20700 20701 20702 |
# File 'generated/google/apis/compute_beta/classes.rb', line 20700 def key @key end |
#values ⇒ Array<String>
Corresponds to the label values of reservation resource.
Corresponds to the JSON property values
20705 20706 20707 |
# File 'generated/google/apis/compute_beta/classes.rb', line 20705 def values @values end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
20712 20713 20714 20715 20716 |
# File 'generated/google/apis/compute_beta/classes.rb', line 20712 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 |