Class: Google::Apis::ContainerV1beta1::NodeAffinity

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ NodeAffinity

Returns a new instance of NodeAffinity.



4004
4005
4006
# File 'lib/google/apis/container_v1beta1/classes.rb', line 4004

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#keyString

Key for NodeAffinity. Corresponds to the JSON property key

Returns:

  • (String)


3992
3993
3994
# File 'lib/google/apis/container_v1beta1/classes.rb', line 3992

def key
  @key
end

#operatorString

Operator for NodeAffinity. Corresponds to the JSON property operator

Returns:

  • (String)


3997
3998
3999
# File 'lib/google/apis/container_v1beta1/classes.rb', line 3997

def operator
  @operator
end

#valuesArray<String>

Values for NodeAffinity. Corresponds to the JSON property values

Returns:

  • (Array<String>)


4002
4003
4004
# File 'lib/google/apis/container_v1beta1/classes.rb', line 4002

def values
  @values
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4009
4010
4011
4012
4013
# File 'lib/google/apis/container_v1beta1/classes.rb', line 4009

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