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
-
#CanaryRuleList ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。.
-
#TotalCount ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。.
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.
282 283 284 285 |
# File 'lib/v20201207/models.rb', line 282 def initialize(canaryrulelist=nil, totalcount=nil) @CanaryRuleList = canaryrulelist @TotalCount = totalcount end |
Instance Attribute Details
#CanaryRuleList ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。
280 281 282 |
# File 'lib/v20201207/models.rb', line 280 def CanaryRuleList @CanaryRuleList end |
#TotalCount ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。
280 281 282 |
# File 'lib/v20201207/models.rb', line 280 def TotalCount @TotalCount end |
Instance Method Details
#deserialize(params) ⇒ Object
287 288 289 290 291 292 293 294 295 296 297 |
# File 'lib/v20201207/models.rb', line 287 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 |