Class: TencentCloud::Tke::V20180525::TagSpecification
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Tke::V20180525::TagSpecification
- Defined in:
- lib/v20180525/models.rb
Overview
标签描述列表。通过指定该参数可以同时绑定标签到相应的资源实例,当前仅支持绑定标签到云主机实例。
Instance Attribute Summary collapse
-
#ResourceType ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。.
-
#Tags ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。.
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
Returns a new instance of TagSpecification.
20416 20417 20418 20419 |
# File 'lib/v20180525/models.rb', line 20416 def initialize(resourcetype=nil, =nil) @ResourceType = resourcetype @Tags = end |
Instance Attribute Details
#ResourceType ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。
20414 20415 20416 |
# File 'lib/v20180525/models.rb', line 20414 def ResourceType @ResourceType end |
#Tags ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。
20414 20415 20416 |
# File 'lib/v20180525/models.rb', line 20414 def Tags @Tags end |
Instance Method Details
#deserialize(params) ⇒ Object
20421 20422 20423 20424 20425 20426 20427 20428 20429 20430 20431 |
# File 'lib/v20180525/models.rb', line 20421 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 |