Class: Google::Apis::ContainerV1::NodeTaint

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
generated/google/apis/container_v1/classes.rb,
generated/google/apis/container_v1/representations.rb,
generated/google/apis/container_v1/representations.rb

Overview

Kubernetes taint is comprised of three fields: key, value, and effect. Effect can only be one of three types: NoSchedule, PreferNoSchedule or NoExecute. See here for more information, including usage and the valid values.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ NodeTaint

Returns a new instance of NodeTaint.



2648
2649
2650
# File 'generated/google/apis/container_v1/classes.rb', line 2648

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

Instance Attribute Details

#effectString

Effect for taint. Corresponds to the JSON property effect

Returns:

  • (String)


2636
2637
2638
# File 'generated/google/apis/container_v1/classes.rb', line 2636

def effect
  @effect
end

#keyString

Key for taint. Corresponds to the JSON property key

Returns:

  • (String)


2641
2642
2643
# File 'generated/google/apis/container_v1/classes.rb', line 2641

def key
  @key
end

#valueString

Value for taint. Corresponds to the JSON property value

Returns:

  • (String)


2646
2647
2648
# File 'generated/google/apis/container_v1/classes.rb', line 2646

def value
  @value
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2653
2654
2655
2656
2657
# File 'generated/google/apis/container_v1/classes.rb', line 2653

def update!(**args)
  @effect = args[:effect] if args.key?(:effect)
  @key = args[:key] if args.key?(:key)
  @value = args[:value] if args.key?(:value)
end