Class: Google::Apis::ContainerV1beta1::NodeAffinity
- Inherits:
-
Object
- Object
- Google::Apis::ContainerV1beta1::NodeAffinity
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/container_v1beta1/classes.rb,
lib/google/apis/container_v1beta1/representations.rb,
lib/google/apis/container_v1beta1/representations.rb
Overview
Specifies the NodeAffinity key, values, and affinity operator according to shared sole tenant node group affinities.
Instance Attribute Summary collapse
-
#key ⇒ String
Key for NodeAffinity.
-
#operator ⇒ String
Operator for NodeAffinity.
-
#values ⇒ Array<String>
Values for NodeAffinity.
Instance Method Summary collapse
-
#initialize(**args) ⇒ NodeAffinity
constructor
A new instance of NodeAffinity.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ NodeAffinity
Returns a new instance of NodeAffinity.
4256 4257 4258 |
# File 'lib/google/apis/container_v1beta1/classes.rb', line 4256 def initialize(**args) update!(**args) end |
Instance Attribute Details
#key ⇒ String
Key for NodeAffinity.
Corresponds to the JSON property key
4244 4245 4246 |
# File 'lib/google/apis/container_v1beta1/classes.rb', line 4244 def key @key end |
#operator ⇒ String
Operator for NodeAffinity.
Corresponds to the JSON property operator
4249 4250 4251 |
# File 'lib/google/apis/container_v1beta1/classes.rb', line 4249 def operator @operator end |
#values ⇒ Array<String>
Values for NodeAffinity.
Corresponds to the JSON property values
4254 4255 4256 |
# File 'lib/google/apis/container_v1beta1/classes.rb', line 4254 def values @values end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
4261 4262 4263 4264 4265 |
# File 'lib/google/apis/container_v1beta1/classes.rb', line 4261 def update!(**args) @key = args[:key] if args.key?(:key) @operator = args[:operator] if args.key?(:operator) @values = args[:values] if args.key?(:values) end |