Class: TencentCloud::Dayu::V20180709::CCRule

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

Overview

cc自定义策略配置的规则

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(skey = nil, operator = nil, value = nil) ⇒ CCRule

Returns a new instance of CCRule.



289
290
291
292
293
# File 'lib/v20180709/models.rb', line 289

def initialize(skey=nil, operator=nil, value=nil)
  @Skey = skey
  @Operator = operator
  @Value = value
end

Instance Attribute Details

#OperatorObject

Parameters:

  • Skey:

    规则的key, 可以为host、cgi、ua、referer

  • Operator:

    规则的条件,可以为include、not_include、equal

  • Value:

    规则的值,长度小于31字节



287
288
289
# File 'lib/v20180709/models.rb', line 287

def Operator
  @Operator
end

#SkeyObject

Parameters:

  • Skey:

    规则的key, 可以为host、cgi、ua、referer

  • Operator:

    规则的条件,可以为include、not_include、equal

  • Value:

    规则的值,长度小于31字节



287
288
289
# File 'lib/v20180709/models.rb', line 287

def Skey
  @Skey
end

#ValueObject

Parameters:

  • Skey:

    规则的key, 可以为host、cgi、ua、referer

  • Operator:

    规则的条件,可以为include、not_include、equal

  • Value:

    规则的值,长度小于31字节



287
288
289
# File 'lib/v20180709/models.rb', line 287

def Value
  @Value
end

Instance Method Details

#deserialize(params) ⇒ Object



295
296
297
298
299
# File 'lib/v20180709/models.rb', line 295

def deserialize(params)
  @Skey = params['Skey']
  @Operator = params['Operator']
  @Value = params['Value']
end