Class: TencentCloud::Tse::V20201207::CanaryPriorityRule

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

Overview

灰度规则 Priority - Rule

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(priority = nil, canaryrule = nil) ⇒ CanaryPriorityRule

Returns a new instance of CanaryPriorityRule.



269
270
271
272
# File 'lib/v20201207/models.rb', line 269

def initialize(priority=nil, canaryrule=nil)
  @Priority = priority
  @CanaryRule = canaryrule
end

Instance Attribute Details

#CanaryRuleObject

Parameters:

  • Priority:

    优先级

  • CanaryRule:

    灰度规则配置



267
268
269
# File 'lib/v20201207/models.rb', line 267

def CanaryRule
  @CanaryRule
end

#PriorityObject

Parameters:

  • Priority:

    优先级

  • CanaryRule:

    灰度规则配置



267
268
269
# File 'lib/v20201207/models.rb', line 267

def Priority
  @Priority
end

Instance Method Details

#deserialize(params) ⇒ Object



274
275
276
277
278
279
280
# File 'lib/v20201207/models.rb', line 274

def deserialize(params)
  @Priority = params['Priority']
  unless params['CanaryRule'].nil?
    @CanaryRule = CloudNativeAPIGatewayCanaryRule.new
    @CanaryRule.deserialize(params['CanaryRule'])
  end
end