Class: TencentCloud::Antiddos::V20200309::DescribeBGPIPL7RulesResponse
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Antiddos::V20200309::DescribeBGPIPL7RulesResponse
- Defined in:
- lib/v20200309/models.rb
Overview
DescribeBGPIPL7Rules返回参数结构体
Instance Attribute Summary collapse
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(rules = nil, healths = nil, total = nil, requestid = nil) ⇒ DescribeBGPIPL7RulesResponse
constructor
A new instance of DescribeBGPIPL7RulesResponse.
Constructor Details
#initialize(rules = nil, healths = nil, total = nil, requestid = nil) ⇒ DescribeBGPIPL7RulesResponse
Returns a new instance of DescribeBGPIPL7RulesResponse.
3162 3163 3164 3165 3166 3167 |
# File 'lib/v20200309/models.rb', line 3162 def initialize(rules=nil, healths=nil, total=nil, requestid=nil) @Rules = rules @Healths = healths @Total = total @RequestId = requestid end |
Instance Attribute Details
#Healths ⇒ Object
3160 3161 3162 |
# File 'lib/v20200309/models.rb', line 3160 def Healths @Healths end |
#RequestId ⇒ Object
3160 3161 3162 |
# File 'lib/v20200309/models.rb', line 3160 def RequestId @RequestId end |
#Rules ⇒ Object
3160 3161 3162 |
# File 'lib/v20200309/models.rb', line 3160 def Rules @Rules end |
#Total ⇒ Object
3160 3161 3162 |
# File 'lib/v20200309/models.rb', line 3160 def Total @Total end |
Instance Method Details
#deserialize(params) ⇒ Object
3169 3170 3171 3172 3173 3174 3175 3176 3177 3178 3179 3180 3181 3182 3183 3184 3185 3186 3187 3188 |
# File 'lib/v20200309/models.rb', line 3169 def deserialize(params) unless params['Rules'].nil? @Rules = [] params['Rules'].each do |i| bgpipl7ruleentry_tmp = BGPIPL7RuleEntry.new bgpipl7ruleentry_tmp.deserialize(i) @Rules << bgpipl7ruleentry_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 |