Class: Google::Apis::ContainerV1beta1::NodeTaint
- Inherits:
-
Object
- Object
- Google::Apis::ContainerV1beta1::NodeTaint
- 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 composed 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
-
#effect ⇒ String
Effect for taint.
-
#key ⇒ String
Key for taint.
-
#value ⇒ String
Value for taint.
Instance Method Summary collapse
-
#initialize(**args) ⇒ NodeTaint
constructor
A new instance of NodeTaint.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ NodeTaint
Returns a new instance of NodeTaint.
4509 4510 4511 |
# File 'lib/google/apis/container_v1beta1/classes.rb', line 4509 def initialize(**args) update!(**args) end |
Instance Attribute Details
#effect ⇒ String
Effect for taint.
Corresponds to the JSON property effect
4497 4498 4499 |
# File 'lib/google/apis/container_v1beta1/classes.rb', line 4497 def effect @effect end |
#key ⇒ String
Key for taint.
Corresponds to the JSON property key
4502 4503 4504 |
# File 'lib/google/apis/container_v1beta1/classes.rb', line 4502 def key @key end |
#value ⇒ String
Value for taint.
Corresponds to the JSON property value
4507 4508 4509 |
# File 'lib/google/apis/container_v1beta1/classes.rb', line 4507 def value @value end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
4514 4515 4516 4517 4518 |
# File 'lib/google/apis/container_v1beta1/classes.rb', line 4514 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 |