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.



18643
18644
18645
18646
18647
# File 'lib/v20180525/models.rb', line 18643

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:

    要匹配的污点效果



18641
18642
18643
# File 'lib/v20180525/models.rb', line 18641

def Effect
  @Effect
end

#KeyObject

Parameters:

  • Key:

    容忍应用到的 taint key

  • Operator:

    键与值的关系

  • Effect:

    要匹配的污点效果



18641
18642
18643
# File 'lib/v20180525/models.rb', line 18641

def Key
  @Key
end

#OperatorObject

Parameters:

  • Key:

    容忍应用到的 taint key

  • Operator:

    键与值的关系

  • Effect:

    要匹配的污点效果



18641
18642
18643
# File 'lib/v20180525/models.rb', line 18641

def Operator
  @Operator
end

Instance Method Details

#deserialize(params) ⇒ Object



18649
18650
18651
18652
18653
# File 'lib/v20180525/models.rb', line 18649

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