Class: TencentCloud::Thpc::V20230321::Tag

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

Overview

标签键值对。

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

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

Returns a new instance of Tag.



3676
3677
3678
3679
# File 'lib/v20230321/models.rb', line 3676

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

Instance Attribute Details

#KeyObject

Parameters:

  • 标签键

  • 标签值



3674
3675
3676
# File 'lib/v20230321/models.rb', line 3674

def Key
  @Key
end

#ValueObject

Parameters:

  • 标签键

  • 标签值



3674
3675
3676
# File 'lib/v20230321/models.rb', line 3674

def Value
  @Value
end

Instance Method Details

#deserialize(params) ⇒ Object



3681
3682
3683
3684
# File 'lib/v20230321/models.rb', line 3681

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