Class: Google::Apis::DataprocV1beta2::AllocationAffinity
- Inherits:
-
Object
- Object
- Google::Apis::DataprocV1beta2::AllocationAffinity
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/dataproc_v1beta2/classes.rb,
generated/google/apis/dataproc_v1beta2/representations.rb,
generated/google/apis/dataproc_v1beta2/representations.rb
Overview
Allocation Affinity for consuming Zonal allocation.
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 Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ AllocationAffinity
Returns a new instance of AllocationAffinity
77 78 79 |
# File 'generated/google/apis/dataproc_v1beta2/classes.rb', line 77 def initialize(**args) update!(**args) end |
Instance Attribute Details
#consume_allocation_type ⇒ String
Corresponds to the JSON property consumeAllocationType
65 66 67 |
# File 'generated/google/apis/dataproc_v1beta2/classes.rb', line 65 def consume_allocation_type @consume_allocation_type end |
#key ⇒ String
Corresponds to the label key of Allocation resource.
Corresponds to the JSON property key
70 71 72 |
# File 'generated/google/apis/dataproc_v1beta2/classes.rb', line 70 def key @key end |
#values ⇒ Array<String>
Corresponds to the label values of allocation resource.
Corresponds to the JSON property values
75 76 77 |
# File 'generated/google/apis/dataproc_v1beta2/classes.rb', line 75 def values @values end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
82 83 84 85 86 |
# File 'generated/google/apis/dataproc_v1beta2/classes.rb', line 82 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 |