Class: TencentCloud::Cvm::V20170312::Tag
- Inherits:
-
TencentCloud::Common::AbstractModel
- Object
- TencentCloud::Common::AbstractModel
- TencentCloud::Cvm::V20170312::Tag
- Defined in:
- lib/v20170312/models.rb
Overview
标签键值对,可以通过调用 [DescribeTags](cloud.tencent.com/document/api/651/35316) 返回值中的 Tags 字段来获取。
Instance Attribute Summary collapse
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(key = nil, value = nil) ⇒ Tag
constructor
A new instance of Tag.
Constructor Details
#initialize(key = nil, value = nil) ⇒ Tag
Returns a new instance of Tag.
8638 8639 8640 8641 |
# File 'lib/v20170312/models.rb', line 8638 def initialize(key=nil, value=nil) @Key = key @Value = value end |
Instance Attribute Details
#Key ⇒ Object
8636 8637 8638 |
# File 'lib/v20170312/models.rb', line 8636 def Key @Key end |
#Value ⇒ Object
8636 8637 8638 |
# File 'lib/v20170312/models.rb', line 8636 def Value @Value end |
Instance Method Details
#deserialize(params) ⇒ Object
8643 8644 8645 8646 |
# File 'lib/v20170312/models.rb', line 8643 def deserialize(params) @Key = params['Key'] @Value = params['Value'] end |