Class: TencentCloud::Antiddos::V20200309::DescribeNewL7RulesResponse
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Antiddos::V20200309::DescribeNewL7RulesResponse
- Defined in:
- lib/v20200309/models.rb
Overview
DescribeNewL7Rules返回参数结构体
Instance Attribute Summary collapse
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(rules = nil, healths = nil, total = nil, requestid = nil) ⇒ DescribeNewL7RulesResponse
constructor
A new instance of DescribeNewL7RulesResponse.
Constructor Details
#initialize(rules = nil, healths = nil, total = nil, requestid = nil) ⇒ DescribeNewL7RulesResponse
Returns a new instance of DescribeNewL7RulesResponse.
5475 5476 5477 5478 5479 5480 |
# File 'lib/v20200309/models.rb', line 5475 def initialize(rules=nil, healths=nil, total=nil, requestid=nil) @Rules = rules @Healths = healths @Total = total @RequestId = requestid end |
Instance Attribute Details
#Healths ⇒ Object
5473 5474 5475 |
# File 'lib/v20200309/models.rb', line 5473 def Healths @Healths end |
#RequestId ⇒ Object
5473 5474 5475 |
# File 'lib/v20200309/models.rb', line 5473 def RequestId @RequestId end |
#Rules ⇒ Object
5473 5474 5475 |
# File 'lib/v20200309/models.rb', line 5473 def Rules @Rules end |
#Total ⇒ Object
5473 5474 5475 |
# File 'lib/v20200309/models.rb', line 5473 def Total @Total end |
Instance Method Details
#deserialize(params) ⇒ Object
5482 5483 5484 5485 5486 5487 5488 5489 5490 5491 5492 5493 5494 5495 5496 5497 5498 5499 5500 5501 |
# File 'lib/v20200309/models.rb', line 5482 def deserialize(params) unless params['Rules'].nil? @Rules = [] params['Rules'].each do |i| newl7ruleentry_tmp = NewL7RuleEntry.new newl7ruleentry_tmp.deserialize(i) @Rules << newl7ruleentry_tmp end end unless params['Healths'].nil? @Healths = [] params['Healths'].each do |i| l7rulehealth_tmp = L7RuleHealth.new l7rulehealth_tmp.deserialize(i) @Healths << l7rulehealth_tmp end end @Total = params['Total'] @RequestId = params['RequestId'] end |