Class: TencentCloud::Dayu::V20180709::DescribleNewL7RulesResponse
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Dayu::V20180709::DescribleNewL7RulesResponse
- Defined in:
- lib/v20180709/models.rb
Overview
DescribleNewL7Rules返回参数结构体
Instance Attribute Summary collapse
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(rules = nil, total = nil, healths = nil, requestid = nil) ⇒ DescribleNewL7RulesResponse
constructor
A new instance of DescribleNewL7RulesResponse.
Constructor Details
#initialize(rules = nil, total = nil, healths = nil, requestid = nil) ⇒ DescribleNewL7RulesResponse
Returns a new instance of DescribleNewL7RulesResponse.
6015 6016 6017 6018 6019 6020 |
# File 'lib/v20180709/models.rb', line 6015 def initialize(rules=nil, total=nil, healths=nil, requestid=nil) @Rules = rules @Total = total @Healths = healths @RequestId = requestid end |
Instance Attribute Details
#Healths ⇒ Object
6013 6014 6015 |
# File 'lib/v20180709/models.rb', line 6013 def Healths @Healths end |
#RequestId ⇒ Object
6013 6014 6015 |
# File 'lib/v20180709/models.rb', line 6013 def RequestId @RequestId end |
#Rules ⇒ Object
6013 6014 6015 |
# File 'lib/v20180709/models.rb', line 6013 def Rules @Rules end |
#Total ⇒ Object
6013 6014 6015 |
# File 'lib/v20180709/models.rb', line 6013 def Total @Total end |
Instance Method Details
#deserialize(params) ⇒ Object
6022 6023 6024 6025 6026 6027 6028 6029 6030 6031 6032 6033 6034 6035 6036 6037 6038 6039 6040 6041 |
# File 'lib/v20180709/models.rb', line 6022 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 @Total = params['Total'] unless params['Healths'].nil? @Healths = [] params['Healths'].each do |i| l7rulehealth_tmp = L7RuleHealth.new l7rulehealth_tmp.deserialize(i) @Healths << l7rulehealth_tmp end end @RequestId = params['RequestId'] end |