Class: TencentCloud::Thpc::V20220401::Tag

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



2029
2030
2031
2032
# File 'lib/v20220401/models.rb', line 2029

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

Instance Attribute Details

#KeyObject

Parameters:

  • Key:

    标签键

  • Value:

    标签值



2027
2028
2029
# File 'lib/v20220401/models.rb', line 2027

def Key
  @Key
end

#ValueObject

Parameters:

  • Key:

    标签键

  • Value:

    标签值



2027
2028
2029
# File 'lib/v20220401/models.rb', line 2027

def Value
  @Value
end

Instance Method Details

#deserialize(params) ⇒ Object



2034
2035
2036
2037
# File 'lib/v20220401/models.rb', line 2034

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