Class: TencentCloud::Dayu::V20180709::DescribeNewL4RulesResponse
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Dayu::V20180709::DescribeNewL4RulesResponse
- Defined in:
- lib/v20180709/models.rb
Overview
DescribeNewL4Rules返回参数结构体
Instance Attribute Summary collapse
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(rules = nil, total = nil, healths = nil, requestid = nil) ⇒ DescribeNewL4RulesResponse
constructor
A new instance of DescribeNewL4RulesResponse.
Constructor Details
#initialize(rules = nil, total = nil, healths = nil, requestid = nil) ⇒ DescribeNewL4RulesResponse
Returns a new instance of DescribeNewL4RulesResponse.
5062 5063 5064 5065 5066 5067 |
# File 'lib/v20180709/models.rb', line 5062 def initialize(rules=nil, total=nil, healths=nil, requestid=nil) @Rules = rules @Total = total @Healths = healths @RequestId = requestid end |
Instance Attribute Details
#Healths ⇒ Object
5060 5061 5062 |
# File 'lib/v20180709/models.rb', line 5060 def Healths @Healths end |
#RequestId ⇒ Object
5060 5061 5062 |
# File 'lib/v20180709/models.rb', line 5060 def RequestId @RequestId end |
#Rules ⇒ Object
5060 5061 5062 |
# File 'lib/v20180709/models.rb', line 5060 def Rules @Rules end |
#Total ⇒ Object
5060 5061 5062 |
# File 'lib/v20180709/models.rb', line 5060 def Total @Total end |
Instance Method Details
#deserialize(params) ⇒ Object
5069 5070 5071 5072 5073 5074 5075 5076 5077 5078 5079 5080 5081 5082 5083 5084 5085 5086 5087 5088 |
# File 'lib/v20180709/models.rb', line 5069 def deserialize(params) unless params['Rules'].nil? @Rules = [] params['Rules'].each do |i| newl4ruleentry_tmp = NewL4RuleEntry.new newl4ruleentry_tmp.deserialize(i) @Rules << newl4ruleentry_tmp end end @Total = params['Total'] unless params['Healths'].nil? @Healths = [] params['Healths'].each do |i| l4rulehealth_tmp = L4RuleHealth.new l4rulehealth_tmp.deserialize(i) @Healths << l4rulehealth_tmp end end @RequestId = params['RequestId'] end |