Class: TencentCloud::Tke::V20180525::Tag

Inherits:
Common::AbstractModel
  • Object
show all
Defined in:
lib/v20180525/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.



18512
18513
18514
18515
# File 'lib/v20180525/models.rb', line 18512

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

Instance Attribute Details

#KeyObject

Parameters:

  • Key:

    标签键

  • Value:

    标签值



18510
18511
18512
# File 'lib/v20180525/models.rb', line 18510

def Key
  @Key
end

#ValueObject

Parameters:

  • Key:

    标签键

  • Value:

    标签值



18510
18511
18512
# File 'lib/v20180525/models.rb', line 18510

def Value
  @Value
end

Instance Method Details

#deserialize(params) ⇒ Object



18517
18518
18519
18520
# File 'lib/v20180525/models.rb', line 18517

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