Class: Google::Apis::ContainerV1beta1::NodeTaint

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
generated/google/apis/container_v1beta1/classes.rb,
generated/google/apis/container_v1beta1/representations.rb,
generated/google/apis/container_v1beta1/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.



3083
3084
3085
# File 'generated/google/apis/container_v1beta1/classes.rb', line 3083

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

Instance Attribute Details

#effectString

Effect for taint. Corresponds to the JSON property effect

Returns:

  • (String)


3071
3072
3073
# File 'generated/google/apis/container_v1beta1/classes.rb', line 3071

def effect
  @effect
end

#keyString

Key for taint. Corresponds to the JSON property key

Returns:

  • (String)


3076
3077
3078
# File 'generated/google/apis/container_v1beta1/classes.rb', line 3076

def key
  @key
end

#valueString

Value for taint. Corresponds to the JSON property value

Returns:

  • (String)


3081
3082
3083
# File 'generated/google/apis/container_v1beta1/classes.rb', line 3081

def value
  @value
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3088
3089
3090
3091
3092
# File 'generated/google/apis/container_v1beta1/classes.rb', line 3088

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