Class: TencentCloud::Tse::V20201207::CloudAPIGatewayCanaryRuleList

Inherits:
Common::AbstractModel
  • Object
show all
Defined in:
lib/v20201207/models.rb

Overview

灰度规则列表

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#CanaryRuleListObject

注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • CanaryRuleList:

    灰度规则

  • TotalCount:

    总数



280
281
282
# File 'lib/v20201207/models.rb', line 280

def CanaryRuleList
  @CanaryRuleList
end

#TotalCountObject

注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • CanaryRuleList:

    灰度规则

  • TotalCount:

    总数



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