Class: TencentCloud::Waf::V20180125::ModifyDomainWhiteRuleRequest

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

Overview

ModifyDomainWhiteRule请求参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(domain = nil, id = nil, rules = nil, url = nil, function = nil, status = nil) ⇒ ModifyDomainWhiteRuleRequest

Returns a new instance of ModifyDomainWhiteRuleRequest.



10421
10422
10423
10424
10425
10426
10427
10428
# File 'lib/v20180125/models.rb', line 10421

def initialize(domain=nil, id=nil, rules=nil, url=nil, function=nil, status=nil)
  @Domain = domain
  @Id = id
  @Rules = rules
  @Url = url
  @Function = function
  @Status = status
end

Instance Attribute Details

#DomainObject

Parameters:

  • Domain:

    需要更改的规则的域名

  • Id:

    白名单id

  • Rules:

    规则的id列表

  • Url:

    规则匹配路径

  • Function:

    规则匹配方法

  • Status:

    规则的开关状态,0表示关闭开关,1表示打开开关



10419
10420
10421
# File 'lib/v20180125/models.rb', line 10419

def Domain
  @Domain
end

#FunctionObject

Parameters:

  • Domain:

    需要更改的规则的域名

  • Id:

    白名单id

  • Rules:

    规则的id列表

  • Url:

    规则匹配路径

  • Function:

    规则匹配方法

  • Status:

    规则的开关状态,0表示关闭开关,1表示打开开关



10419
10420
10421
# File 'lib/v20180125/models.rb', line 10419

def Function
  @Function
end

#IdObject

Parameters:

  • Domain:

    需要更改的规则的域名

  • Id:

    白名单id

  • Rules:

    规则的id列表

  • Url:

    规则匹配路径

  • Function:

    规则匹配方法

  • Status:

    规则的开关状态,0表示关闭开关,1表示打开开关



10419
10420
10421
# File 'lib/v20180125/models.rb', line 10419

def Id
  @Id
end

#RulesObject

Parameters:

  • Domain:

    需要更改的规则的域名

  • Id:

    白名单id

  • Rules:

    规则的id列表

  • Url:

    规则匹配路径

  • Function:

    规则匹配方法

  • Status:

    规则的开关状态,0表示关闭开关,1表示打开开关



10419
10420
10421
# File 'lib/v20180125/models.rb', line 10419

def Rules
  @Rules
end

#StatusObject

Parameters:

  • Domain:

    需要更改的规则的域名

  • Id:

    白名单id

  • Rules:

    规则的id列表

  • Url:

    规则匹配路径

  • Function:

    规则匹配方法

  • Status:

    规则的开关状态,0表示关闭开关,1表示打开开关



10419
10420
10421
# File 'lib/v20180125/models.rb', line 10419

def Status
  @Status
end

#UrlObject

Parameters:

  • Domain:

    需要更改的规则的域名

  • Id:

    白名单id

  • Rules:

    规则的id列表

  • Url:

    规则匹配路径

  • Function:

    规则匹配方法

  • Status:

    规则的开关状态,0表示关闭开关,1表示打开开关



10419
10420
10421
# File 'lib/v20180125/models.rb', line 10419

def Url
  @Url
end

Instance Method Details

#deserialize(params) ⇒ Object



10430
10431
10432
10433
10434
10435
10436
10437
# File 'lib/v20180125/models.rb', line 10430

def deserialize(params)
  @Domain = params['Domain']
  @Id = params['Id']
  @Rules = params['Rules']
  @Url = params['Url']
  @Function = params['Function']
  @Status = params['Status']
end