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.



3046
3047
3048
3049
# File 'lib/v20230321/models.rb', line 3046

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

Instance Attribute Details

#KeyObject

Parameters:

  • Key:

    标签键

  • Value:

    标签值



3044
3045
3046
# File 'lib/v20230321/models.rb', line 3044

def Key
  @Key
end

#ValueObject

Parameters:

  • Key:

    标签键

  • Value:

    标签值



3044
3045
3046
# File 'lib/v20230321/models.rb', line 3044

def Value
  @Value
end

Instance Method Details

#deserialize(params) ⇒ Object



3051
3052
3053
3054
# File 'lib/v20230321/models.rb', line 3051

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