Class: TencentCloud::Tse::V20201207::CanaryPriorityRule
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Tse::V20201207::CanaryPriorityRule
- Defined in:
- lib/v20201207/models.rb
Overview
灰度规则 Priority - Rule
Instance Attribute Summary collapse
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(priority = nil, canaryrule = nil) ⇒ CanaryPriorityRule
constructor
A new instance of CanaryPriorityRule.
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
#CanaryRule ⇒ Object
267 268 269 |
# File 'lib/v20201207/models.rb', line 267 def CanaryRule @CanaryRule end |
#Priority ⇒ Object
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 |