Class: TencentCloud::Cvm::V20170312::TagSpecification
- Inherits:
-
TencentCloud::Common::AbstractModel
- Object
- TencentCloud::Common::AbstractModel
- TencentCloud::Cvm::V20170312::TagSpecification
- Defined in:
- lib/v20170312/models.rb
Overview
创建资源实例时同时绑定的标签对说明
Instance Attribute Summary collapse
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(resourcetype = nil, tags = nil) ⇒ TagSpecification
constructor
A new instance of TagSpecification.
Constructor Details
#initialize(resourcetype = nil, tags = nil) ⇒ TagSpecification
8591 8592 8593 8594 |
# File 'lib/v20170312/models.rb', line 8591 def initialize(resourcetype=nil, =nil) @ResourceType = resourcetype @Tags = end |
Instance Attribute Details
#ResourceType ⇒ Object
8589 8590 8591 |
# File 'lib/v20170312/models.rb', line 8589 def ResourceType @ResourceType end |
#Tags ⇒ Object
8589 8590 8591 |
# File 'lib/v20170312/models.rb', line 8589 def Tags @Tags end |
Instance Method Details
#deserialize(params) ⇒ Object
8596 8597 8598 8599 8600 8601 8602 8603 8604 8605 8606 |
# File 'lib/v20170312/models.rb', line 8596 def deserialize(params) @ResourceType = params['ResourceType'] unless params['Tags'].nil? @Tags = [] params['Tags'].each do |i| tag_tmp = Tag.new tag_tmp.deserialize(i) @Tags << tag_tmp end end end |