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 返回值中的 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.
8571 8572 8573 8574 |
# File 'lib/v20170312/models.rb', line 8571 def initialize(key=nil, value=nil) @Key = key @Value = value end |
Instance Attribute Details
#Key ⇒ Object
8569 8570 8571 |
# File 'lib/v20170312/models.rb', line 8569 def Key @Key end |
#Value ⇒ Object
8569 8570 8571 |
# File 'lib/v20170312/models.rb', line 8569 def Value @Value end |
Instance Method Details
#deserialize(params) ⇒ Object
8576 8577 8578 8579 |
# File 'lib/v20170312/models.rb', line 8576 def deserialize(params) @Key = params['Key'] @Value = params['Value'] end |