Class: TencentCloud::Lighthouse::V20200324::FirewallTemplateApplyRecord
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Lighthouse::V20200324::FirewallTemplateApplyRecord
- Defined in:
- lib/v20200324/models.rb
Overview
防火墙模板应用记录。
Instance Attribute Summary collapse
-
#ApplyDetailSet ⇒ Object
- SUCCESS:成功 - RUNNING:运行中 - FAILED:失败.
-
#ApplyState ⇒ Object
- SUCCESS:成功 - RUNNING:运行中 - FAILED:失败.
-
#ApplyTime ⇒ Object
- SUCCESS:成功 - RUNNING:运行中 - FAILED:失败.
-
#FailedCount ⇒ Object
- SUCCESS:成功 - RUNNING:运行中 - FAILED:失败.
-
#RunningCount ⇒ Object
- SUCCESS:成功 - RUNNING:运行中 - FAILED:失败.
-
#SuccessCount ⇒ Object
- SUCCESS:成功 - RUNNING:运行中 - FAILED:失败.
-
#TaskId ⇒ Object
- SUCCESS:成功 - RUNNING:运行中 - FAILED:失败.
-
#TemplateRuleSet ⇒ Object
- SUCCESS:成功 - RUNNING:运行中 - FAILED:失败.
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(taskid = nil, applytime = nil, templateruleset = nil, applystate = nil, successcount = nil, failedcount = nil, runningcount = nil, applydetailset = nil) ⇒ FirewallTemplateApplyRecord
constructor
A new instance of FirewallTemplateApplyRecord.
Constructor Details
#initialize(taskid = nil, applytime = nil, templateruleset = nil, applystate = nil, successcount = nil, failedcount = nil, runningcount = nil, applydetailset = nil) ⇒ FirewallTemplateApplyRecord
Returns a new instance of FirewallTemplateApplyRecord.
5199 5200 5201 5202 5203 5204 5205 5206 5207 5208 |
# File 'lib/v20200324/models.rb', line 5199 def initialize(taskid=nil, applytime=nil, templateruleset=nil, applystate=nil, successcount=nil, failedcount=nil, runningcount=nil, applydetailset=nil) @TaskId = taskid @ApplyTime = applytime @TemplateRuleSet = templateruleset @ApplyState = applystate @SuccessCount = successcount @FailedCount = failedcount @RunningCount = runningcount @ApplyDetailSet = applydetailset end |
Instance Attribute Details
#ApplyDetailSet ⇒ Object
- SUCCESS:成功
- RUNNING:运行中
- FAILED:失败
5197 5198 5199 |
# File 'lib/v20200324/models.rb', line 5197 def ApplyDetailSet @ApplyDetailSet end |
#ApplyState ⇒ Object
- SUCCESS:成功
- RUNNING:运行中
- FAILED:失败
5197 5198 5199 |
# File 'lib/v20200324/models.rb', line 5197 def ApplyState @ApplyState end |
#ApplyTime ⇒ Object
- SUCCESS:成功
- RUNNING:运行中
- FAILED:失败
5197 5198 5199 |
# File 'lib/v20200324/models.rb', line 5197 def ApplyTime @ApplyTime end |
#FailedCount ⇒ Object
- SUCCESS:成功
- RUNNING:运行中
- FAILED:失败
5197 5198 5199 |
# File 'lib/v20200324/models.rb', line 5197 def FailedCount @FailedCount end |
#RunningCount ⇒ Object
- SUCCESS:成功
- RUNNING:运行中
- FAILED:失败
5197 5198 5199 |
# File 'lib/v20200324/models.rb', line 5197 def RunningCount @RunningCount end |
#SuccessCount ⇒ Object
- SUCCESS:成功
- RUNNING:运行中
- FAILED:失败
5197 5198 5199 |
# File 'lib/v20200324/models.rb', line 5197 def SuccessCount @SuccessCount end |
#TaskId ⇒ Object
- SUCCESS:成功
- RUNNING:运行中
- FAILED:失败
5197 5198 5199 |
# File 'lib/v20200324/models.rb', line 5197 def TaskId @TaskId end |
#TemplateRuleSet ⇒ Object
- SUCCESS:成功
- RUNNING:运行中
- FAILED:失败
5197 5198 5199 |
# File 'lib/v20200324/models.rb', line 5197 def TemplateRuleSet @TemplateRuleSet end |
Instance Method Details
#deserialize(params) ⇒ Object
5210 5211 5212 5213 5214 5215 5216 5217 5218 5219 5220 5221 5222 5223 5224 5225 5226 5227 5228 5229 5230 5231 5232 5233 |
# File 'lib/v20200324/models.rb', line 5210 def deserialize(params) @TaskId = params['TaskId'] @ApplyTime = params['ApplyTime'] unless params['TemplateRuleSet'].nil? @TemplateRuleSet = [] params['TemplateRuleSet'].each do |i| firewalltemplaterule_tmp = FirewallTemplateRule.new firewalltemplaterule_tmp.deserialize(i) @TemplateRuleSet << firewalltemplaterule_tmp end end @ApplyState = params['ApplyState'] @SuccessCount = params['SuccessCount'] @FailedCount = params['FailedCount'] @RunningCount = params['RunningCount'] unless params['ApplyDetailSet'].nil? @ApplyDetailSet = [] params['ApplyDetailSet'].each do |i| firewalltemplateapplyrecorddetail_tmp = FirewallTemplateApplyRecordDetail.new firewalltemplateapplyrecorddetail_tmp.deserialize(i) @ApplyDetailSet << firewalltemplateapplyrecorddetail_tmp end end end |