Class: TencentCloud::Waf::V20180125::ImportIpAccessControlRequest

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

Overview

ImportIpAccessControl请求参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(data = nil, domain = nil, sourcetype = nil, instanceid = nil) ⇒ ImportIpAccessControlRequest

Returns a new instance of ImportIpAccessControlRequest.



8589
8590
8591
8592
8593
8594
# File 'lib/v20180125/models.rb', line 8589

def initialize(data=nil, domain=nil, sourcetype=nil, instanceid=nil)
  @Data = data
  @Domain = domain
  @SourceType = sourcetype
  @InstanceId = instanceid
end

Instance Attribute Details

#DataObject

全局域名为:global

Parameters:

  • Data:

    导入的IP黑白名单列表

  • Domain:

    具体域名如:test.qcloudwaf.com

  • SourceType:

    是否为批量防护IP黑白名单,当为批量防护IP黑白名单时,取值为batch,否则为空

  • InstanceId:

    实例Id



8587
8588
8589
# File 'lib/v20180125/models.rb', line 8587

def Data
  @Data
end

#DomainObject

全局域名为:global

Parameters:

  • Data:

    导入的IP黑白名单列表

  • Domain:

    具体域名如:test.qcloudwaf.com

  • SourceType:

    是否为批量防护IP黑白名单,当为批量防护IP黑白名单时,取值为batch,否则为空

  • InstanceId:

    实例Id



8587
8588
8589
# File 'lib/v20180125/models.rb', line 8587

def Domain
  @Domain
end

#InstanceIdObject

全局域名为:global

Parameters:

  • Data:

    导入的IP黑白名单列表

  • Domain:

    具体域名如:test.qcloudwaf.com

  • SourceType:

    是否为批量防护IP黑白名单,当为批量防护IP黑白名单时,取值为batch,否则为空

  • InstanceId:

    实例Id



8587
8588
8589
# File 'lib/v20180125/models.rb', line 8587

def InstanceId
  @InstanceId
end

#SourceTypeObject

全局域名为:global

Parameters:

  • Data:

    导入的IP黑白名单列表

  • Domain:

    具体域名如:test.qcloudwaf.com

  • SourceType:

    是否为批量防护IP黑白名单,当为批量防护IP黑白名单时,取值为batch,否则为空

  • InstanceId:

    实例Id



8587
8588
8589
# File 'lib/v20180125/models.rb', line 8587

def SourceType
  @SourceType
end

Instance Method Details

#deserialize(params) ⇒ Object



8596
8597
8598
8599
8600
8601
8602
8603
8604
8605
8606
8607
8608
# File 'lib/v20180125/models.rb', line 8596

def deserialize(params)
  unless params['Data'].nil?
    @Data = []
    params['Data'].each do |i|
      ipaccesscontrolparam_tmp = IpAccessControlParam.new
      ipaccesscontrolparam_tmp.deserialize(i)
      @Data << ipaccesscontrolparam_tmp
    end
  end
  @Domain = params['Domain']
  @SourceType = params['SourceType']
  @InstanceId = params['InstanceId']
end