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

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

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.



4308
4309
4310
# File 'lib/google/apis/container_v1beta1/classes.rb', line 4308

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

Instance Attribute Details

#effectString

Effect for taint. Corresponds to the JSON property effect

Returns:

  • (String)


4296
4297
4298
# File 'lib/google/apis/container_v1beta1/classes.rb', line 4296

def effect
  @effect
end

#keyString

Key for taint. Corresponds to the JSON property key

Returns:

  • (String)


4301
4302
4303
# File 'lib/google/apis/container_v1beta1/classes.rb', line 4301

def key
  @key
end

#valueString

Value for taint. Corresponds to the JSON property value

Returns:

  • (String)


4306
4307
4308
# File 'lib/google/apis/container_v1beta1/classes.rb', line 4306

def value
  @value
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4313
4314
4315
4316
4317
# File 'lib/google/apis/container_v1beta1/classes.rb', line 4313

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