Class: TencentCloud::Tke::V20220501::Tag

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

Overview

标签绑定的资源类型,当前支持类型:"cluster"

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(key = nil, value = nil) ⇒ Tag

Returns a new instance of Tag.



3000
3001
3002
3003
# File 'lib/v20220501/models.rb', line 3000

def initialize(key=nil, value=nil)
  @Key = key
  @Value = value
end

Instance Attribute Details

#KeyObject

Parameters:

  • Key:

    标签键

  • Value:

    标签值



2998
2999
3000
# File 'lib/v20220501/models.rb', line 2998

def Key
  @Key
end

#ValueObject

Parameters:

  • Key:

    标签键

  • Value:

    标签值



2998
2999
3000
# File 'lib/v20220501/models.rb', line 2998

def Value
  @Value
end

Instance Method Details

#deserialize(params) ⇒ Object



3005
3006
3007
3008
# File 'lib/v20220501/models.rb', line 3005

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