Class: Google::Apis::BackupdrV1::AllocationAffinity
- Inherits:
-
Object
- Object
- Google::Apis::BackupdrV1::AllocationAffinity
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/backupdr_v1/classes.rb,
lib/google/apis/backupdr_v1/representations.rb,
lib/google/apis/backupdr_v1/representations.rb
Overview
Specifies the reservations that this instance can consume from.
Instance Attribute Summary collapse
-
#consume_reservation_type ⇒ String
Optional.
-
#key ⇒ String
Optional.
-
#values ⇒ Array<String>
Optional.
Instance Method Summary collapse
-
#initialize(**args) ⇒ AllocationAffinity
constructor
A new instance of AllocationAffinity.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ AllocationAffinity
Returns a new instance of AllocationAffinity.
237 238 239 |
# File 'lib/google/apis/backupdr_v1/classes.rb', line 237 def initialize(**args) update!(**args) end |
Instance Attribute Details
#consume_reservation_type ⇒ String
Optional. Specifies the type of reservation from which this instance can
consume
Corresponds to the JSON property consumeReservationType
225 226 227 |
# File 'lib/google/apis/backupdr_v1/classes.rb', line 225 def consume_reservation_type @consume_reservation_type end |
#key ⇒ String
Optional. Corresponds to the label key of a reservation resource.
Corresponds to the JSON property key
230 231 232 |
# File 'lib/google/apis/backupdr_v1/classes.rb', line 230 def key @key end |
#values ⇒ Array<String>
Optional. Corresponds to the label values of a reservation resource.
Corresponds to the JSON property values
235 236 237 |
# File 'lib/google/apis/backupdr_v1/classes.rb', line 235 def values @values end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
242 243 244 245 246 |
# File 'lib/google/apis/backupdr_v1/classes.rb', line 242 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 |