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.



2757
2758
2759
2760
# File 'lib/v20220501/models.rb', line 2757

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

Instance Attribute Details

#KeyObject

Parameters:

  • Key:

    标签键

  • Value:

    标签值



2755
2756
2757
# File 'lib/v20220501/models.rb', line 2755

def Key
  @Key
end

#ValueObject

Parameters:

  • Key:

    标签键

  • Value:

    标签值



2755
2756
2757
# File 'lib/v20220501/models.rb', line 2755

def Value
  @Value
end

Instance Method Details

#deserialize(params) ⇒ Object



2762
2763
2764
2765
# File 'lib/v20220501/models.rb', line 2762

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