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.



2394
2395
2396
2397
# File 'lib/v20220501/models.rb', line 2394

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

Instance Attribute Details

#KeyObject

Parameters:

  • Key:

    标签键

  • Value:

    标签值



2392
2393
2394
# File 'lib/v20220501/models.rb', line 2392

def Key
  @Key
end

#ValueObject

Parameters:

  • Key:

    标签键

  • Value:

    标签值



2392
2393
2394
# File 'lib/v20220501/models.rb', line 2392

def Value
  @Value
end

Instance Method Details

#deserialize(params) ⇒ Object



2399
2400
2401
2402
# File 'lib/v20220501/models.rb', line 2399

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