Class: Google::Apis::ContainerV1beta1::NodeTaint
- Inherits:
 - 
      Object
      
        
- Object
 - Google::Apis::ContainerV1beta1::NodeTaint
 
 
- 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. For more information, including usage and the valid values, see: https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
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.
 
Methods included from Google::Apis::Core::JsonObjectSupport
Methods included from Google::Apis::Core::Hashable
Constructor Details
#initialize(**args) ⇒ NodeTaint
Returns a new instance of NodeTaint
      2023 2024 2025  | 
    
      # File 'generated/google/apis/container_v1beta1/classes.rb', line 2023 def initialize(**args) update!(**args) end  | 
  
Instance Attribute Details
#effect ⇒ String
Effect for taint.
Corresponds to the JSON property effect
      2011 2012 2013  | 
    
      # File 'generated/google/apis/container_v1beta1/classes.rb', line 2011 def effect @effect end  | 
  
#key ⇒ String
Key for taint.
Corresponds to the JSON property key
      2016 2017 2018  | 
    
      # File 'generated/google/apis/container_v1beta1/classes.rb', line 2016 def key @key end  | 
  
#value ⇒ String
Value for taint.
Corresponds to the JSON property value
      2021 2022 2023  | 
    
      # File 'generated/google/apis/container_v1beta1/classes.rb', line 2021 def value @value end  | 
  
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
      2028 2029 2030 2031 2032  | 
    
      # File 'generated/google/apis/container_v1beta1/classes.rb', line 2028 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  |