Class: TencentCloud::Tse::V20201207::CloudNativeAPIGatewayCanaryRule

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

Overview

灰度规则

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#BalancedServiceListObject

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

Parameters:

  • Priority:

    优先级,值范围为 0 到 100;值越大,优先级越高;不同规则间优先级不可重复

  • Enabled:

    是否启用规则

  • ConditionList:

    参数匹配条件

  • BalancedServiceList:

    服务的流量百分比配置

  • ServiceId:

    归属服务 ID

  • ServiceName:

    归属服务名称

  • RuleType:

    灰度规则类别

  • MatchType:

    全链路灰度策略多个条件之间的匹配方式,与AND,或OR

  • GroupId:

    泳道组ID

  • GroupName:

    泳道组名称

  • LaneId:

    泳道ID

  • LaneName:

    泳道名称

  • MatchMode:

    泳道匹配规则:严格STRICT|宽松PERMISSIVE

  • LaneTag:

    泳道标签



431
432
433
# File 'lib/v20201207/models.rb', line 431

def BalancedServiceList
  @BalancedServiceList
end

#ConditionListObject

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

Parameters:

  • Priority:

    优先级,值范围为 0 到 100;值越大,优先级越高;不同规则间优先级不可重复

  • Enabled:

    是否启用规则

  • ConditionList:

    参数匹配条件

  • BalancedServiceList:

    服务的流量百分比配置

  • ServiceId:

    归属服务 ID

  • ServiceName:

    归属服务名称

  • RuleType:

    灰度规则类别

  • MatchType:

    全链路灰度策略多个条件之间的匹配方式,与AND,或OR

  • GroupId:

    泳道组ID

  • GroupName:

    泳道组名称

  • LaneId:

    泳道ID

  • LaneName:

    泳道名称

  • MatchMode:

    泳道匹配规则:严格STRICT|宽松PERMISSIVE

  • LaneTag:

    泳道标签



431
432
433
# File 'lib/v20201207/models.rb', line 431

def ConditionList
  @ConditionList
end

#EnabledObject

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

Parameters:

  • Priority:

    优先级,值范围为 0 到 100;值越大,优先级越高;不同规则间优先级不可重复

  • Enabled:

    是否启用规则

  • ConditionList:

    参数匹配条件

  • BalancedServiceList:

    服务的流量百分比配置

  • ServiceId:

    归属服务 ID

  • ServiceName:

    归属服务名称

  • RuleType:

    灰度规则类别

  • MatchType:

    全链路灰度策略多个条件之间的匹配方式,与AND,或OR

  • GroupId:

    泳道组ID

  • GroupName:

    泳道组名称

  • LaneId:

    泳道ID

  • LaneName:

    泳道名称

  • MatchMode:

    泳道匹配规则:严格STRICT|宽松PERMISSIVE

  • LaneTag:

    泳道标签



431
432
433
# File 'lib/v20201207/models.rb', line 431

def Enabled
  @Enabled
end

#GroupIdObject

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

Parameters:

  • Priority:

    优先级,值范围为 0 到 100;值越大,优先级越高;不同规则间优先级不可重复

  • Enabled:

    是否启用规则

  • ConditionList:

    参数匹配条件

  • BalancedServiceList:

    服务的流量百分比配置

  • ServiceId:

    归属服务 ID

  • ServiceName:

    归属服务名称

  • RuleType:

    灰度规则类别

  • MatchType:

    全链路灰度策略多个条件之间的匹配方式,与AND,或OR

  • GroupId:

    泳道组ID

  • GroupName:

    泳道组名称

  • LaneId:

    泳道ID

  • LaneName:

    泳道名称

  • MatchMode:

    泳道匹配规则:严格STRICT|宽松PERMISSIVE

  • LaneTag:

    泳道标签



431
432
433
# File 'lib/v20201207/models.rb', line 431

def GroupId
  @GroupId
end

#GroupNameObject

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

Parameters:

  • Priority:

    优先级,值范围为 0 到 100;值越大,优先级越高;不同规则间优先级不可重复

  • Enabled:

    是否启用规则

  • ConditionList:

    参数匹配条件

  • BalancedServiceList:

    服务的流量百分比配置

  • ServiceId:

    归属服务 ID

  • ServiceName:

    归属服务名称

  • RuleType:

    灰度规则类别

  • MatchType:

    全链路灰度策略多个条件之间的匹配方式,与AND,或OR

  • GroupId:

    泳道组ID

  • GroupName:

    泳道组名称

  • LaneId:

    泳道ID

  • LaneName:

    泳道名称

  • MatchMode:

    泳道匹配规则:严格STRICT|宽松PERMISSIVE

  • LaneTag:

    泳道标签



431
432
433
# File 'lib/v20201207/models.rb', line 431

def GroupName
  @GroupName
end

#LaneIdObject

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

Parameters:

  • Priority:

    优先级,值范围为 0 到 100;值越大,优先级越高;不同规则间优先级不可重复

  • Enabled:

    是否启用规则

  • ConditionList:

    参数匹配条件

  • BalancedServiceList:

    服务的流量百分比配置

  • ServiceId:

    归属服务 ID

  • ServiceName:

    归属服务名称

  • RuleType:

    灰度规则类别

  • MatchType:

    全链路灰度策略多个条件之间的匹配方式,与AND,或OR

  • GroupId:

    泳道组ID

  • GroupName:

    泳道组名称

  • LaneId:

    泳道ID

  • LaneName:

    泳道名称

  • MatchMode:

    泳道匹配规则:严格STRICT|宽松PERMISSIVE

  • LaneTag:

    泳道标签



431
432
433
# File 'lib/v20201207/models.rb', line 431

def LaneId
  @LaneId
end

#LaneNameObject

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

Parameters:

  • Priority:

    优先级,值范围为 0 到 100;值越大,优先级越高;不同规则间优先级不可重复

  • Enabled:

    是否启用规则

  • ConditionList:

    参数匹配条件

  • BalancedServiceList:

    服务的流量百分比配置

  • ServiceId:

    归属服务 ID

  • ServiceName:

    归属服务名称

  • RuleType:

    灰度规则类别

  • MatchType:

    全链路灰度策略多个条件之间的匹配方式,与AND,或OR

  • GroupId:

    泳道组ID

  • GroupName:

    泳道组名称

  • LaneId:

    泳道ID

  • LaneName:

    泳道名称

  • MatchMode:

    泳道匹配规则:严格STRICT|宽松PERMISSIVE

  • LaneTag:

    泳道标签



431
432
433
# File 'lib/v20201207/models.rb', line 431

def LaneName
  @LaneName
end

#LaneTagObject

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

Parameters:

  • Priority:

    优先级,值范围为 0 到 100;值越大,优先级越高;不同规则间优先级不可重复

  • Enabled:

    是否启用规则

  • ConditionList:

    参数匹配条件

  • BalancedServiceList:

    服务的流量百分比配置

  • ServiceId:

    归属服务 ID

  • ServiceName:

    归属服务名称

  • RuleType:

    灰度规则类别

  • MatchType:

    全链路灰度策略多个条件之间的匹配方式,与AND,或OR

  • GroupId:

    泳道组ID

  • GroupName:

    泳道组名称

  • LaneId:

    泳道ID

  • LaneName:

    泳道名称

  • MatchMode:

    泳道匹配规则:严格STRICT|宽松PERMISSIVE

  • LaneTag:

    泳道标签



431
432
433
# File 'lib/v20201207/models.rb', line 431

def LaneTag
  @LaneTag
end

#MatchModeObject

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

Parameters:

  • Priority:

    优先级,值范围为 0 到 100;值越大,优先级越高;不同规则间优先级不可重复

  • Enabled:

    是否启用规则

  • ConditionList:

    参数匹配条件

  • BalancedServiceList:

    服务的流量百分比配置

  • ServiceId:

    归属服务 ID

  • ServiceName:

    归属服务名称

  • RuleType:

    灰度规则类别

  • MatchType:

    全链路灰度策略多个条件之间的匹配方式,与AND,或OR

  • GroupId:

    泳道组ID

  • GroupName:

    泳道组名称

  • LaneId:

    泳道ID

  • LaneName:

    泳道名称

  • MatchMode:

    泳道匹配规则:严格STRICT|宽松PERMISSIVE

  • LaneTag:

    泳道标签



431
432
433
# File 'lib/v20201207/models.rb', line 431

def MatchMode
  @MatchMode
end

#MatchTypeObject

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

Parameters:

  • Priority:

    优先级,值范围为 0 到 100;值越大,优先级越高;不同规则间优先级不可重复

  • Enabled:

    是否启用规则

  • ConditionList:

    参数匹配条件

  • BalancedServiceList:

    服务的流量百分比配置

  • ServiceId:

    归属服务 ID

  • ServiceName:

    归属服务名称

  • RuleType:

    灰度规则类别

  • MatchType:

    全链路灰度策略多个条件之间的匹配方式,与AND,或OR

  • GroupId:

    泳道组ID

  • GroupName:

    泳道组名称

  • LaneId:

    泳道ID

  • LaneName:

    泳道名称

  • MatchMode:

    泳道匹配规则:严格STRICT|宽松PERMISSIVE

  • LaneTag:

    泳道标签



431
432
433
# File 'lib/v20201207/models.rb', line 431

def MatchType
  @MatchType
end

#PriorityObject

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

Parameters:

  • Priority:

    优先级,值范围为 0 到 100;值越大,优先级越高;不同规则间优先级不可重复

  • Enabled:

    是否启用规则

  • ConditionList:

    参数匹配条件

  • BalancedServiceList:

    服务的流量百分比配置

  • ServiceId:

    归属服务 ID

  • ServiceName:

    归属服务名称

  • RuleType:

    灰度规则类别

  • MatchType:

    全链路灰度策略多个条件之间的匹配方式,与AND,或OR

  • GroupId:

    泳道组ID

  • GroupName:

    泳道组名称

  • LaneId:

    泳道ID

  • LaneName:

    泳道名称

  • MatchMode:

    泳道匹配规则:严格STRICT|宽松PERMISSIVE

  • LaneTag:

    泳道标签



431
432
433
# File 'lib/v20201207/models.rb', line 431

def Priority
  @Priority
end

#RuleTypeObject

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

Parameters:

  • Priority:

    优先级,值范围为 0 到 100;值越大,优先级越高;不同规则间优先级不可重复

  • Enabled:

    是否启用规则

  • ConditionList:

    参数匹配条件

  • BalancedServiceList:

    服务的流量百分比配置

  • ServiceId:

    归属服务 ID

  • ServiceName:

    归属服务名称

  • RuleType:

    灰度规则类别

  • MatchType:

    全链路灰度策略多个条件之间的匹配方式,与AND,或OR

  • GroupId:

    泳道组ID

  • GroupName:

    泳道组名称

  • LaneId:

    泳道ID

  • LaneName:

    泳道名称

  • MatchMode:

    泳道匹配规则:严格STRICT|宽松PERMISSIVE

  • LaneTag:

    泳道标签



431
432
433
# File 'lib/v20201207/models.rb', line 431

def RuleType
  @RuleType
end

#ServiceIdObject

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

Parameters:

  • Priority:

    优先级,值范围为 0 到 100;值越大,优先级越高;不同规则间优先级不可重复

  • Enabled:

    是否启用规则

  • ConditionList:

    参数匹配条件

  • BalancedServiceList:

    服务的流量百分比配置

  • ServiceId:

    归属服务 ID

  • ServiceName:

    归属服务名称

  • RuleType:

    灰度规则类别

  • MatchType:

    全链路灰度策略多个条件之间的匹配方式,与AND,或OR

  • GroupId:

    泳道组ID

  • GroupName:

    泳道组名称

  • LaneId:

    泳道ID

  • LaneName:

    泳道名称

  • MatchMode:

    泳道匹配规则:严格STRICT|宽松PERMISSIVE

  • LaneTag:

    泳道标签



431
432
433
# File 'lib/v20201207/models.rb', line 431

def ServiceId
  @ServiceId
end

#ServiceNameObject

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

Parameters:

  • Priority:

    优先级,值范围为 0 到 100;值越大,优先级越高;不同规则间优先级不可重复

  • Enabled:

    是否启用规则

  • ConditionList:

    参数匹配条件

  • BalancedServiceList:

    服务的流量百分比配置

  • ServiceId:

    归属服务 ID

  • ServiceName:

    归属服务名称

  • RuleType:

    灰度规则类别

  • MatchType:

    全链路灰度策略多个条件之间的匹配方式,与AND,或OR

  • GroupId:

    泳道组ID

  • GroupName:

    泳道组名称

  • LaneId:

    泳道ID

  • LaneName:

    泳道名称

  • MatchMode:

    泳道匹配规则:严格STRICT|宽松PERMISSIVE

  • LaneTag:

    泳道标签



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