Class: Google::Apis::GkehubV2::PolicyControllerToleration

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/gkehub_v2/classes.rb,
lib/google/apis/gkehub_v2/representations.rb,
lib/google/apis/gkehub_v2/representations.rb

Overview

Toleration of a node taint.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ PolicyControllerToleration

Returns a new instance of PolicyControllerToleration.



3116
3117
3118
# File 'lib/google/apis/gkehub_v2/classes.rb', line 3116

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

Instance Attribute Details

#effectString

Matches a taint effect. Corresponds to the JSON property effect

Returns:

  • (String)


3099
3100
3101
# File 'lib/google/apis/gkehub_v2/classes.rb', line 3099

def effect
  @effect
end

#keyString

Matches a taint key (not necessarily unique). Corresponds to the JSON property key

Returns:

  • (String)


3104
3105
3106
# File 'lib/google/apis/gkehub_v2/classes.rb', line 3104

def key
  @key
end

#operatorString

Matches a taint operator. Corresponds to the JSON property operator

Returns:

  • (String)


3109
3110
3111
# File 'lib/google/apis/gkehub_v2/classes.rb', line 3109

def operator
  @operator
end

#valueString

Matches a taint value. Corresponds to the JSON property value

Returns:

  • (String)


3114
3115
3116
# File 'lib/google/apis/gkehub_v2/classes.rb', line 3114

def value
  @value
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3121
3122
3123
3124
3125
3126
# File 'lib/google/apis/gkehub_v2/classes.rb', line 3121

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