Class: Google::Apis::ComputeBeta::AllocationAffinity
- Inherits:
-
Object
- Object
- Google::Apis::ComputeBeta::AllocationAffinity
- 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_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) ⇒ AllocationAffinity
constructor
A new instance of AllocationAffinity.
-
#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) ⇒ AllocationAffinity
Returns a new instance of AllocationAffinity
1143 1144 1145 |
# File 'generated/google/apis/compute_beta/classes.rb', line 1143 def initialize(**args) update!(**args) end |
Instance Attribute Details
#consume_allocation_type ⇒ String
Corresponds to the JSON property consumeAllocationType
1131 1132 1133 |
# File 'generated/google/apis/compute_beta/classes.rb', line 1131 def consume_allocation_type @consume_allocation_type end |
#key ⇒ String
Corresponds to the label key of allocation resource.
Corresponds to the JSON property key
1136 1137 1138 |
# File 'generated/google/apis/compute_beta/classes.rb', line 1136 def key @key end |
#values ⇒ Array<String>
Corresponds to the label values of allocation resource.
Corresponds to the JSON property values
1141 1142 1143 |
# File 'generated/google/apis/compute_beta/classes.rb', line 1141 def values @values end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1148 1149 1150 1151 1152 |
# File 'generated/google/apis/compute_beta/classes.rb', line 1148 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 |