Class: TencentCloud::Waf::V20180125::UpsertIpAccessControlRequest

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

Overview

UpsertIpAccessControl请求参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(domain = nil, items = nil, instanceid = nil, edition = nil, sourcetype = nil) ⇒ UpsertIpAccessControlRequest

Returns a new instance of UpsertIpAccessControlRequest.



12930
12931
12932
12933
12934
12935
12936
# File 'lib/v20180125/models.rb', line 12930

def initialize(domain=nil, items=nil, instanceid=nil, edition=nil, sourcetype=nil)
  @Domain = domain
  @Items = items
  @InstanceId = instanceid
  @Edition = edition
  @SourceType = sourcetype
end

Instance Attribute Details

#DomainObject

全局域名为:global

Parameters:

  • Domain:

    具体域名如:test.qcloudwaf.com

  • Items:

    IP 参数列表,json数组由IP,source,note,action,valid_ts组成。IP对应配置的IP地址,source固定为custom值,note为注释,action值42为黑名单,40为白名单,valid_ts为有效日期,值为秒级时间戳((如1680570420代表2023-04-04 09:07:00))

  • InstanceId:

    实例Id

  • Edition:

    WAF实例类型,sparta-waf表示SAAS型WAF,clb-waf表示负载均衡型WAF

  • SourceType:

    可选值为:batch(批量添加)、bot、cc、custom(非批量添加时的默认值)



12928
12929
12930
# File 'lib/v20180125/models.rb', line 12928

def Domain
  @Domain
end

#EditionObject

全局域名为:global

Parameters:

  • Domain:

    具体域名如:test.qcloudwaf.com

  • Items:

    IP 参数列表,json数组由IP,source,note,action,valid_ts组成。IP对应配置的IP地址,source固定为custom值,note为注释,action值42为黑名单,40为白名单,valid_ts为有效日期,值为秒级时间戳((如1680570420代表2023-04-04 09:07:00))

  • InstanceId:

    实例Id

  • Edition:

    WAF实例类型,sparta-waf表示SAAS型WAF,clb-waf表示负载均衡型WAF

  • SourceType:

    可选值为:batch(批量添加)、bot、cc、custom(非批量添加时的默认值)



12928
12929
12930
# File 'lib/v20180125/models.rb', line 12928

def Edition
  @Edition
end

#InstanceIdObject

全局域名为:global

Parameters:

  • Domain:

    具体域名如:test.qcloudwaf.com

  • Items:

    IP 参数列表,json数组由IP,source,note,action,valid_ts组成。IP对应配置的IP地址,source固定为custom值,note为注释,action值42为黑名单,40为白名单,valid_ts为有效日期,值为秒级时间戳((如1680570420代表2023-04-04 09:07:00))

  • InstanceId:

    实例Id

  • Edition:

    WAF实例类型,sparta-waf表示SAAS型WAF,clb-waf表示负载均衡型WAF

  • SourceType:

    可选值为:batch(批量添加)、bot、cc、custom(非批量添加时的默认值)



12928
12929
12930
# File 'lib/v20180125/models.rb', line 12928

def InstanceId
  @InstanceId
end

#ItemsObject

全局域名为:global

Parameters:

  • Domain:

    具体域名如:test.qcloudwaf.com

  • Items:

    IP 参数列表,json数组由IP,source,note,action,valid_ts组成。IP对应配置的IP地址,source固定为custom值,note为注释,action值42为黑名单,40为白名单,valid_ts为有效日期,值为秒级时间戳((如1680570420代表2023-04-04 09:07:00))

  • InstanceId:

    实例Id

  • Edition:

    WAF实例类型,sparta-waf表示SAAS型WAF,clb-waf表示负载均衡型WAF

  • SourceType:

    可选值为:batch(批量添加)、bot、cc、custom(非批量添加时的默认值)



12928
12929
12930
# File 'lib/v20180125/models.rb', line 12928

def Items
  @Items
end

#SourceTypeObject

全局域名为:global

Parameters:

  • Domain:

    具体域名如:test.qcloudwaf.com

  • Items:

    IP 参数列表,json数组由IP,source,note,action,valid_ts组成。IP对应配置的IP地址,source固定为custom值,note为注释,action值42为黑名单,40为白名单,valid_ts为有效日期,值为秒级时间戳((如1680570420代表2023-04-04 09:07:00))

  • InstanceId:

    实例Id

  • Edition:

    WAF实例类型,sparta-waf表示SAAS型WAF,clb-waf表示负载均衡型WAF

  • SourceType:

    可选值为:batch(批量添加)、bot、cc、custom(非批量添加时的默认值)



12928
12929
12930
# File 'lib/v20180125/models.rb', line 12928

def SourceType
  @SourceType
end

Instance Method Details

#deserialize(params) ⇒ Object



12938
12939
12940
12941
12942
12943
12944
# File 'lib/v20180125/models.rb', line 12938

def deserialize(params)
  @Domain = params['Domain']
  @Items = params['Items']
  @InstanceId = params['InstanceId']
  @Edition = params['Edition']
  @SourceType = params['SourceType']
end