Class: TencentCloud::Tse::V20201207::CloudNativeAPIGatewayCanaryRule
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Tse::V20201207::CloudNativeAPIGatewayCanaryRule
- Defined in:
- lib/v20201207/models.rb
Overview
灰度规则
Instance Attribute Summary collapse
-
#BalancedServiceList ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。 Standard|Lane.
-
#ConditionList ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。 Standard|Lane.
-
#Enabled ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。 Standard|Lane.
-
#GroupId ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。 Standard|Lane.
-
#GroupName ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。 Standard|Lane.
-
#LaneId ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。 Standard|Lane.
-
#LaneName ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。 Standard|Lane.
-
#LaneTag ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。 Standard|Lane.
-
#MatchMode ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。 Standard|Lane.
-
#MatchType ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。 Standard|Lane.
-
#Priority ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。 Standard|Lane.
-
#RuleType ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。 Standard|Lane.
-
#ServiceId ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。 Standard|Lane.
-
#ServiceName ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。 Standard|Lane.
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(priority = nil, enabled = nil, conditionlist = nil, balancedservicelist = nil, serviceid = nil, servicename = nil, ruletype = nil, matchtype = nil, groupid = nil, groupname = nil, laneid = nil, lanename = nil, matchmode = nil, lanetag = nil) ⇒ CloudNativeAPIGatewayCanaryRule
constructor
A new instance of CloudNativeAPIGatewayCanaryRule.
Constructor Details
#initialize(priority = nil, enabled = nil, conditionlist = nil, balancedservicelist = nil, serviceid = nil, servicename = nil, ruletype = nil, matchtype = nil, groupid = nil, groupname = nil, laneid = nil, lanename = nil, matchmode = nil, lanetag = nil) ⇒ CloudNativeAPIGatewayCanaryRule
Returns a new instance of CloudNativeAPIGatewayCanaryRule.
433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 |
# File 'lib/v20201207/models.rb', line 433 def initialize(priority=nil, enabled=nil, conditionlist=nil, balancedservicelist=nil, serviceid=nil, servicename=nil, ruletype=nil, matchtype=nil, groupid=nil, groupname=nil, laneid=nil, lanename=nil, matchmode=nil, lanetag=nil) @Priority = priority @Enabled = enabled @ConditionList = conditionlist @BalancedServiceList = balancedservicelist @ServiceId = serviceid @ServiceName = servicename @RuleType = ruletype @MatchType = matchtype @GroupId = groupid @GroupName = groupname @LaneId = laneid @LaneName = lanename @MatchMode = matchmode @LaneTag = lanetag end |
Instance Attribute Details
#BalancedServiceList ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。Standard|Lane
431 432 433 |
# File 'lib/v20201207/models.rb', line 431 def BalancedServiceList @BalancedServiceList end |
#ConditionList ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。Standard|Lane
431 432 433 |
# File 'lib/v20201207/models.rb', line 431 def ConditionList @ConditionList end |
#Enabled ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。Standard|Lane
431 432 433 |
# File 'lib/v20201207/models.rb', line 431 def Enabled @Enabled end |
#GroupId ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。Standard|Lane
431 432 433 |
# File 'lib/v20201207/models.rb', line 431 def GroupId @GroupId end |
#GroupName ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。Standard|Lane
431 432 433 |
# File 'lib/v20201207/models.rb', line 431 def GroupName @GroupName end |
#LaneId ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。Standard|Lane
431 432 433 |
# File 'lib/v20201207/models.rb', line 431 def LaneId @LaneId end |
#LaneName ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。Standard|Lane
431 432 433 |
# File 'lib/v20201207/models.rb', line 431 def LaneName @LaneName end |
#LaneTag ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。Standard|Lane
431 432 433 |
# File 'lib/v20201207/models.rb', line 431 def LaneTag @LaneTag end |
#MatchMode ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。Standard|Lane
431 432 433 |
# File 'lib/v20201207/models.rb', line 431 def MatchMode @MatchMode end |
#MatchType ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。Standard|Lane
431 432 433 |
# File 'lib/v20201207/models.rb', line 431 def MatchType @MatchType end |
#Priority ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。Standard|Lane
431 432 433 |
# File 'lib/v20201207/models.rb', line 431 def Priority @Priority end |
#RuleType ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。Standard|Lane
431 432 433 |
# File 'lib/v20201207/models.rb', line 431 def RuleType @RuleType end |
#ServiceId ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。Standard|Lane
431 432 433 |
# File 'lib/v20201207/models.rb', line 431 def ServiceId @ServiceId end |
#ServiceName ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。Standard|Lane
431 432 433 |
# File 'lib/v20201207/models.rb', line 431 def ServiceName @ServiceName end |
Instance Method Details
#deserialize(params) ⇒ Object
450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 |
# File 'lib/v20201207/models.rb', line 450 def deserialize(params) @Priority = params['Priority'] @Enabled = params['Enabled'] unless params['ConditionList'].nil? @ConditionList = [] params['ConditionList'].each do |i| cloudnativeapigatewaycanaryrulecondition_tmp = CloudNativeAPIGatewayCanaryRuleCondition.new cloudnativeapigatewaycanaryrulecondition_tmp.deserialize(i) @ConditionList << cloudnativeapigatewaycanaryrulecondition_tmp end end unless params['BalancedServiceList'].nil? @BalancedServiceList = [] params['BalancedServiceList'].each do |i| cloudnativeapigatewaybalancedservice_tmp = CloudNativeAPIGatewayBalancedService.new cloudnativeapigatewaybalancedservice_tmp.deserialize(i) @BalancedServiceList << cloudnativeapigatewaybalancedservice_tmp end end @ServiceId = params['ServiceId'] @ServiceName = params['ServiceName'] @RuleType = params['RuleType'] @MatchType = params['MatchType'] @GroupId = params['GroupId'] @GroupName = params['GroupName'] @LaneId = params['LaneId'] @LaneName = params['LaneName'] @MatchMode = params['MatchMode'] @LaneTag = params['LaneTag'] end |