Class: TencentCloud::Dayu::V20180709::DescribleL7RulesResponse
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Dayu::V20180709::DescribleL7RulesResponse
- Defined in:
- lib/v20180709/models.rb
Overview
DescribleL7Rules返回参数结构体
Instance Attribute Summary collapse
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(rules = nil, total = nil, healths = nil, requestid = nil) ⇒ DescribleL7RulesResponse
constructor
A new instance of DescribleL7RulesResponse.
Constructor Details
#initialize(rules = nil, total = nil, healths = nil, requestid = nil) ⇒ DescribleL7RulesResponse
Returns a new instance of DescribleL7RulesResponse.
5933 5934 5935 5936 5937 5938 |
# File 'lib/v20180709/models.rb', line 5933 def initialize(rules=nil, total=nil, healths=nil, requestid=nil) @Rules = rules @Total = total @Healths = healths @RequestId = requestid end |
Instance Attribute Details
#Healths ⇒ Object
5931 5932 5933 |
# File 'lib/v20180709/models.rb', line 5931 def Healths @Healths end |
#RequestId ⇒ Object
5931 5932 5933 |
# File 'lib/v20180709/models.rb', line 5931 def RequestId @RequestId end |
#Rules ⇒ Object
5931 5932 5933 |
# File 'lib/v20180709/models.rb', line 5931 def Rules @Rules end |
#Total ⇒ Object
5931 5932 5933 |
# File 'lib/v20180709/models.rb', line 5931 def Total @Total end |
Instance Method Details
#deserialize(params) ⇒ Object
5940 5941 5942 5943 5944 5945 5946 5947 5948 5949 5950 5951 5952 5953 5954 5955 5956 5957 5958 5959 |
# File 'lib/v20180709/models.rb', line 5940 def deserialize(params) unless params['Rules'].nil? @Rules = [] params['Rules'].each do |i| l7ruleentry_tmp = L7RuleEntry.new l7ruleentry_tmp.deserialize(i) @Rules << l7ruleentry_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 |