Class: Google::Apis::ComputeAlpha::InstanceAllocationAffinity
- Inherits:
-
Object
- Object
- Google::Apis::ComputeAlpha::InstanceAllocationAffinity
- Defined in:
- generated/google/apis/compute_alpha/classes.rb,
generated/google/apis/compute_alpha/representations.rb,
generated/google/apis/compute_alpha/representations.rb
Overview
AllocationAffinity is the configuration of desired allocation which this instance could take capacity from.
Instance Attribute Summary collapse
-
#consume_allocation_type ⇒ String
Corresponds to the JSON property
consumeAllocationType
. -
#key ⇒ String
Corresponds to the label key of Allocation resource.
-
#values ⇒ Array<String>
Corresponds to the label values of allocation resource.
Instance Method Summary collapse
-
#initialize(**args) ⇒ InstanceAllocationAffinity
constructor
A new instance of InstanceAllocationAffinity.
-
#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) ⇒ InstanceAllocationAffinity
Returns a new instance of InstanceAllocationAffinity
9470 9471 9472 |
# File 'generated/google/apis/compute_alpha/classes.rb', line 9470 def initialize(**args) update!(**args) end |
Instance Attribute Details
#consume_allocation_type ⇒ String
Corresponds to the JSON property consumeAllocationType
9458 9459 9460 |
# File 'generated/google/apis/compute_alpha/classes.rb', line 9458 def consume_allocation_type @consume_allocation_type end |
#key ⇒ String
Corresponds to the label key of Allocation resource.
Corresponds to the JSON property key
9463 9464 9465 |
# File 'generated/google/apis/compute_alpha/classes.rb', line 9463 def key @key end |
#values ⇒ Array<String>
Corresponds to the label values of allocation resource.
Corresponds to the JSON property values
9468 9469 9470 |
# File 'generated/google/apis/compute_alpha/classes.rb', line 9468 def values @values end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
9475 9476 9477 9478 9479 |
# File 'generated/google/apis/compute_alpha/classes.rb', line 9475 def update!(**args) @consume_allocation_type = args[:consume_allocation_type] if args.key?(:consume_allocation_type) @key = args[:key] if args.key?(:key) @values = args[:values] if args.key?(:values) end |