Class: TencentCloud::Tse::V20201207::CloudNativeAPIGatewayCanaryRuleCondition

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

Overview

灰度规则中的条件配置

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(type = nil, key = nil, operator = nil, value = nil, delimiter = nil, globalconfigid = nil, globalconfigname = nil) ⇒ CloudNativeAPIGatewayCanaryRuleCondition

Returns a new instance of CloudNativeAPIGatewayCanaryRuleCondition.



414
415
416
417
418
419
420
421
422
# File 'lib/v20201207/models.rb', line 414

def initialize(type=nil, key=nil, operator=nil, value=nil, delimiter=nil, globalconfigid=nil, globalconfigname=nil)
  @Type = type
  @Key = key
  @Operator = operator
  @Value = value
  @Delimiter = delimiter
  @GlobalConfigId = globalconfigid
  @GlobalConfigName = globalconfigname
end

Instance Attribute Details

#DelimiterObject

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

Parameters:

  • Type:

    条件类型,支持 path, method, query, header, cookie, body 和 system。

  • Key:

    参数名

  • Operator:

    操作符,支持 “le”, “eq”, “lt”, “ne”, “ge”, “gt”, “regex”, “exists”, “in”, “not in”, “prefix” ,“exact”, “regex” 等

  • Value:

    目标参数值

  • Delimiter:

    分隔符,当 Operator 为 in 或者 not in 时生效。支持值为英文逗号,英文分号,空格,换行符。

  • GlobalConfigId:

    全局配置 Id

  • GlobalConfigName:

    全局配置名称



412
413
414
# File 'lib/v20201207/models.rb', line 412

def Delimiter
  @Delimiter
end

#GlobalConfigIdObject

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

Parameters:

  • Type:

    条件类型,支持 path, method, query, header, cookie, body 和 system。

  • Key:

    参数名

  • Operator:

    操作符,支持 “le”, “eq”, “lt”, “ne”, “ge”, “gt”, “regex”, “exists”, “in”, “not in”, “prefix” ,“exact”, “regex” 等

  • Value:

    目标参数值

  • Delimiter:

    分隔符,当 Operator 为 in 或者 not in 时生效。支持值为英文逗号,英文分号,空格,换行符。

  • GlobalConfigId:

    全局配置 Id

  • GlobalConfigName:

    全局配置名称



412
413
414
# File 'lib/v20201207/models.rb', line 412

def GlobalConfigId
  @GlobalConfigId
end

#GlobalConfigNameObject

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

Parameters:

  • Type:

    条件类型,支持 path, method, query, header, cookie, body 和 system。

  • Key:

    参数名

  • Operator:

    操作符,支持 “le”, “eq”, “lt”, “ne”, “ge”, “gt”, “regex”, “exists”, “in”, “not in”, “prefix” ,“exact”, “regex” 等

  • Value:

    目标参数值

  • Delimiter:

    分隔符,当 Operator 为 in 或者 not in 时生效。支持值为英文逗号,英文分号,空格,换行符。

  • GlobalConfigId:

    全局配置 Id

  • GlobalConfigName:

    全局配置名称



412
413
414
# File 'lib/v20201207/models.rb', line 412

def GlobalConfigName
  @GlobalConfigName
end

#KeyObject

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

Parameters:

  • Type:

    条件类型,支持 path, method, query, header, cookie, body 和 system。

  • Key:

    参数名

  • Operator:

    操作符,支持 “le”, “eq”, “lt”, “ne”, “ge”, “gt”, “regex”, “exists”, “in”, “not in”, “prefix” ,“exact”, “regex” 等

  • Value:

    目标参数值

  • Delimiter:

    分隔符,当 Operator 为 in 或者 not in 时生效。支持值为英文逗号,英文分号,空格,换行符。

  • GlobalConfigId:

    全局配置 Id

  • GlobalConfigName:

    全局配置名称



412
413
414
# File 'lib/v20201207/models.rb', line 412

def Key
  @Key
end

#OperatorObject

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

Parameters:

  • Type:

    条件类型,支持 path, method, query, header, cookie, body 和 system。

  • Key:

    参数名

  • Operator:

    操作符,支持 “le”, “eq”, “lt”, “ne”, “ge”, “gt”, “regex”, “exists”, “in”, “not in”, “prefix” ,“exact”, “regex” 等

  • Value:

    目标参数值

  • Delimiter:

    分隔符,当 Operator 为 in 或者 not in 时生效。支持值为英文逗号,英文分号,空格,换行符。

  • GlobalConfigId:

    全局配置 Id

  • GlobalConfigName:

    全局配置名称



412
413
414
# File 'lib/v20201207/models.rb', line 412

def Operator
  @Operator
end

#TypeObject

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

Parameters:

  • Type:

    条件类型,支持 path, method, query, header, cookie, body 和 system。

  • Key:

    参数名

  • Operator:

    操作符,支持 “le”, “eq”, “lt”, “ne”, “ge”, “gt”, “regex”, “exists”, “in”, “not in”, “prefix” ,“exact”, “regex” 等

  • Value:

    目标参数值

  • Delimiter:

    分隔符,当 Operator 为 in 或者 not in 时生效。支持值为英文逗号,英文分号,空格,换行符。

  • GlobalConfigId:

    全局配置 Id

  • GlobalConfigName:

    全局配置名称



412
413
414
# File 'lib/v20201207/models.rb', line 412

def Type
  @Type
end

#ValueObject

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

Parameters:

  • Type:

    条件类型,支持 path, method, query, header, cookie, body 和 system。

  • Key:

    参数名

  • Operator:

    操作符,支持 “le”, “eq”, “lt”, “ne”, “ge”, “gt”, “regex”, “exists”, “in”, “not in”, “prefix” ,“exact”, “regex” 等

  • Value:

    目标参数值

  • Delimiter:

    分隔符,当 Operator 为 in 或者 not in 时生效。支持值为英文逗号,英文分号,空格,换行符。

  • GlobalConfigId:

    全局配置 Id

  • GlobalConfigName:

    全局配置名称



412
413
414
# File 'lib/v20201207/models.rb', line 412

def Value
  @Value
end

Instance Method Details

#deserialize(params) ⇒ Object



424
425
426
427
428
429
430
431
432
# File 'lib/v20201207/models.rb', line 424

def deserialize(params)
  @Type = params['Type']
  @Key = params['Key']
  @Operator = params['Operator']
  @Value = params['Value']
  @Delimiter = params['Delimiter']
  @GlobalConfigId = params['GlobalConfigId']
  @GlobalConfigName = params['GlobalConfigName']
end