Class: TencentCloud::Waf::V20180125::DeleteIpAccessControlRequest

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

Overview

DeleteIpAccessControl请求参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(domain = nil, items = nil, isid = nil, deleteall = nil, sourcetype = nil, actiontype = nil) ⇒ DeleteIpAccessControlRequest

Returns a new instance of DeleteIpAccessControlRequest.



2578
2579
2580
2581
2582
2583
2584
2585
# File 'lib/v20180125/models.rb', line 2578

def initialize(domain=nil, items=nil, isid=nil, deleteall=nil, sourcetype=nil, actiontype=nil)
  @Domain = domain
  @Items = items
  @IsId = isid
  @DeleteAll = deleteall
  @SourceType = sourcetype
  @ActionType = actiontype
end

Instance Attribute Details

#ActionTypeObject

Parameters:

  • Domain:

    域名

  • Items:

    删除的ip数组

  • IsId:

    若IsId字段为True,则Items列表元素需为Id,否则为IP

  • DeleteAll:

    是否删除对应的域名下的所有黑/白IP名单,true表示全部删除,false表示只删除指定ip名单

  • SourceType:

    是否为多域名黑白名单

  • ActionType:

    IP黑白名单类型,40为IP白名单,42为IP黑名单



2576
2577
2578
# File 'lib/v20180125/models.rb', line 2576

def ActionType
  @ActionType
end

#DeleteAllObject

Parameters:

  • Domain:

    域名

  • Items:

    删除的ip数组

  • IsId:

    若IsId字段为True,则Items列表元素需为Id,否则为IP

  • DeleteAll:

    是否删除对应的域名下的所有黑/白IP名单,true表示全部删除,false表示只删除指定ip名单

  • SourceType:

    是否为多域名黑白名单

  • ActionType:

    IP黑白名单类型,40为IP白名单,42为IP黑名单



2576
2577
2578
# File 'lib/v20180125/models.rb', line 2576

def DeleteAll
  @DeleteAll
end

#DomainObject

Parameters:

  • Domain:

    域名

  • Items:

    删除的ip数组

  • IsId:

    若IsId字段为True,则Items列表元素需为Id,否则为IP

  • DeleteAll:

    是否删除对应的域名下的所有黑/白IP名单,true表示全部删除,false表示只删除指定ip名单

  • SourceType:

    是否为多域名黑白名单

  • ActionType:

    IP黑白名单类型,40为IP白名单,42为IP黑名单



2576
2577
2578
# File 'lib/v20180125/models.rb', line 2576

def Domain
  @Domain
end

#IsIdObject

Parameters:

  • Domain:

    域名

  • Items:

    删除的ip数组

  • IsId:

    若IsId字段为True,则Items列表元素需为Id,否则为IP

  • DeleteAll:

    是否删除对应的域名下的所有黑/白IP名单,true表示全部删除,false表示只删除指定ip名单

  • SourceType:

    是否为多域名黑白名单

  • ActionType:

    IP黑白名单类型,40为IP白名单,42为IP黑名单



2576
2577
2578
# File 'lib/v20180125/models.rb', line 2576

def IsId
  @IsId
end

#ItemsObject

Parameters:

  • Domain:

    域名

  • Items:

    删除的ip数组

  • IsId:

    若IsId字段为True,则Items列表元素需为Id,否则为IP

  • DeleteAll:

    是否删除对应的域名下的所有黑/白IP名单,true表示全部删除,false表示只删除指定ip名单

  • SourceType:

    是否为多域名黑白名单

  • ActionType:

    IP黑白名单类型,40为IP白名单,42为IP黑名单



2576
2577
2578
# File 'lib/v20180125/models.rb', line 2576

def Items
  @Items
end

#SourceTypeObject

Parameters:

  • Domain:

    域名

  • Items:

    删除的ip数组

  • IsId:

    若IsId字段为True,则Items列表元素需为Id,否则为IP

  • DeleteAll:

    是否删除对应的域名下的所有黑/白IP名单,true表示全部删除,false表示只删除指定ip名单

  • SourceType:

    是否为多域名黑白名单

  • ActionType:

    IP黑白名单类型,40为IP白名单,42为IP黑名单



2576
2577
2578
# File 'lib/v20180125/models.rb', line 2576

def SourceType
  @SourceType
end

Instance Method Details

#deserialize(params) ⇒ Object



2587
2588
2589
2590
2591
2592
2593
2594
# File 'lib/v20180125/models.rb', line 2587

def deserialize(params)
  @Domain = params['Domain']
  @Items = params['Items']
  @IsId = params['IsId']
  @DeleteAll = params['DeleteAll']
  @SourceType = params['SourceType']
  @ActionType = params['ActionType']
end