Class: TencentCloud::Tse::V20201207::CloudAPIGatewayCanaryRuleList
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Tse::V20201207::CloudAPIGatewayCanaryRuleList
- Defined in:
- lib/v20201207/models.rb
Overview
灰度规则列表
Instance Attribute Summary collapse
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(canaryrulelist = nil, totalcount = nil) ⇒ CloudAPIGatewayCanaryRuleList
constructor
A new instance of CloudAPIGatewayCanaryRuleList.
Constructor Details
#initialize(canaryrulelist = nil, totalcount = nil) ⇒ CloudAPIGatewayCanaryRuleList
Returns a new instance of CloudAPIGatewayCanaryRuleList.
352 353 354 355 |
# File 'lib/v20201207/models.rb', line 352 def initialize(canaryrulelist=nil, totalcount=nil) @CanaryRuleList = canaryrulelist @TotalCount = totalcount end |
Instance Attribute Details
#CanaryRuleList ⇒ Object
350 351 352 |
# File 'lib/v20201207/models.rb', line 350 def CanaryRuleList @CanaryRuleList end |
#TotalCount ⇒ Object
350 351 352 |
# File 'lib/v20201207/models.rb', line 350 def TotalCount @TotalCount end |
Instance Method Details
#deserialize(params) ⇒ Object
357 358 359 360 361 362 363 364 365 366 367 |
# File 'lib/v20201207/models.rb', line 357 def deserialize(params) unless params['CanaryRuleList'].nil? @CanaryRuleList = [] params['CanaryRuleList'].each do |i| cloudnativeapigatewaycanaryrule_tmp = CloudNativeAPIGatewayCanaryRule.new cloudnativeapigatewaycanaryrule_tmp.deserialize(i) @CanaryRuleList << cloudnativeapigatewaycanaryrule_tmp end end @TotalCount = params['TotalCount'] end |