Class: TencentCloud::Waf::V20180125::UpstreamRule

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

Overview

SAASWAF规则回源时的规则数据结构

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(keyname = nil, symbol = nil, contentlist = nil, addresslist = nil, balancetype = nil) ⇒ UpstreamRule

Returns a new instance of UpstreamRule.



19663
19664
19665
19666
19667
19668
19669
# File 'lib/v20180125/models.rb', line 19663

def initialize(keyname=nil, symbol=nil, contentlist=nil, addresslist=nil, balancetype=nil)
  @KeyName = keyname
  @Symbol = symbol
  @ContentList = contentlist
  @AddressList = addresslist
  @BalanceType = balancetype
end

Instance Attribute Details

#AddressListObject

equal:等于not equal:不等于belong:属于not belong:不属于0:轮询1:IP_HASH

Parameters:

  • KeyName:

    匹配的关键字。目前支持host、uri两种

  • Symbol:

    逻辑符号。

  • ContentList:

    匹配的内容。equal和not equal时,数组只能有一个元素

  • AddressList:

    规则匹配后生效的回源地址。

  • BalanceType:

    回源负载均衡类型,仅多个回源地址时生效。



19661
19662
19663
# File 'lib/v20180125/models.rb', line 19661

def AddressList
  @AddressList
end

#BalanceTypeObject

equal:等于not equal:不等于belong:属于not belong:不属于0:轮询1:IP_HASH

Parameters:

  • KeyName:

    匹配的关键字。目前支持host、uri两种

  • Symbol:

    逻辑符号。

  • ContentList:

    匹配的内容。equal和not equal时,数组只能有一个元素

  • AddressList:

    规则匹配后生效的回源地址。

  • BalanceType:

    回源负载均衡类型,仅多个回源地址时生效。



19661
19662
19663
# File 'lib/v20180125/models.rb', line 19661

def BalanceType
  @BalanceType
end

#ContentListObject

equal:等于not equal:不等于belong:属于not belong:不属于0:轮询1:IP_HASH

Parameters:

  • KeyName:

    匹配的关键字。目前支持host、uri两种

  • Symbol:

    逻辑符号。

  • ContentList:

    匹配的内容。equal和not equal时,数组只能有一个元素

  • AddressList:

    规则匹配后生效的回源地址。

  • BalanceType:

    回源负载均衡类型,仅多个回源地址时生效。



19661
19662
19663
# File 'lib/v20180125/models.rb', line 19661

def ContentList
  @ContentList
end

#KeyNameObject

equal:等于not equal:不等于belong:属于not belong:不属于0:轮询1:IP_HASH

Parameters:

  • KeyName:

    匹配的关键字。目前支持host、uri两种

  • Symbol:

    逻辑符号。

  • ContentList:

    匹配的内容。equal和not equal时,数组只能有一个元素

  • AddressList:

    规则匹配后生效的回源地址。

  • BalanceType:

    回源负载均衡类型,仅多个回源地址时生效。



19661
19662
19663
# File 'lib/v20180125/models.rb', line 19661

def KeyName
  @KeyName
end

#SymbolObject

equal:等于not equal:不等于belong:属于not belong:不属于0:轮询1:IP_HASH

Parameters:

  • KeyName:

    匹配的关键字。目前支持host、uri两种

  • Symbol:

    逻辑符号。

  • ContentList:

    匹配的内容。equal和not equal时,数组只能有一个元素

  • AddressList:

    规则匹配后生效的回源地址。

  • BalanceType:

    回源负载均衡类型,仅多个回源地址时生效。



19661
19662
19663
# File 'lib/v20180125/models.rb', line 19661

def Symbol
  @Symbol
end

Instance Method Details

#deserialize(params) ⇒ Object



19671
19672
19673
19674
19675
19676
19677
# File 'lib/v20180125/models.rb', line 19671

def deserialize(params)
  @KeyName = params['KeyName']
  @Symbol = params['Symbol']
  @ContentList = params['ContentList']
  @AddressList = params['AddressList']
  @BalanceType = params['BalanceType']
end