Class: TencentCloud::Tke::V20180525::Toleration

Inherits:
Common::AbstractModel
  • Object
show all
Defined in:
lib/v20180525/models.rb

Overview

kubernetes Taint

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(key = nil, operator = nil, effect = nil) ⇒ Toleration

Returns a new instance of Toleration.



20154
20155
20156
20157
20158
# File 'lib/v20180525/models.rb', line 20154

def initialize(key=nil, operator=nil, effect=nil)
  @Key = key
  @Operator = operator
  @Effect = effect
end

Instance Attribute Details

#EffectObject

Parameters:

  • Key:

    容忍应用到的 taint key

  • Operator:

    键与值的关系

  • Effect:

    要匹配的污点效果



20152
20153
20154
# File 'lib/v20180525/models.rb', line 20152

def Effect
  @Effect
end

#KeyObject

Parameters:

  • Key:

    容忍应用到的 taint key

  • Operator:

    键与值的关系

  • Effect:

    要匹配的污点效果



20152
20153
20154
# File 'lib/v20180525/models.rb', line 20152

def Key
  @Key
end

#OperatorObject

Parameters:

  • Key:

    容忍应用到的 taint key

  • Operator:

    键与值的关系

  • Effect:

    要匹配的污点效果



20152
20153
20154
# File 'lib/v20180525/models.rb', line 20152

def Operator
  @Operator
end

Instance Method Details

#deserialize(params) ⇒ Object



20160
20161
20162
20163
20164
# File 'lib/v20180525/models.rb', line 20160

def deserialize(params)
  @Key = params['Key']
  @Operator = params['Operator']
  @Effect = params['Effect']
end