Class: TencentCloud::Tse::V20201207::OpenWafProtectionRequest

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

Overview

OpenWafProtection请求参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(gatewayid = nil, type = nil, list = nil) ⇒ OpenWafProtectionRequest

Returns a new instance of OpenWafProtectionRequest.



10917
10918
10919
10920
10921
# File 'lib/v20201207/models.rb', line 10917

def initialize(gatewayid=nil, type=nil, list=nil)
  @GatewayId = gatewayid
  @Type = type
  @List = list
end

Instance Attribute Details

#GatewayIdObject

  • Global 实例
  • Service 服务
  • Route 路由
  • Object 对象(接口暂不支持)

Parameters:

  • GatewayId:

    网关ID

  • Type:

    防护资源的类型。

  • List:

    当资源类型 Type 是 Service 或 Route 的时候,传入的服务或路由的列表



10915
10916
10917
# File 'lib/v20201207/models.rb', line 10915

def GatewayId
  @GatewayId
end

#ListObject

  • Global 实例
  • Service 服务
  • Route 路由
  • Object 对象(接口暂不支持)

Parameters:

  • GatewayId:

    网关ID

  • Type:

    防护资源的类型。

  • List:

    当资源类型 Type 是 Service 或 Route 的时候,传入的服务或路由的列表



10915
10916
10917
# File 'lib/v20201207/models.rb', line 10915

def List
  @List
end

#TypeObject

  • Global 实例
  • Service 服务
  • Route 路由
  • Object 对象(接口暂不支持)

Parameters:

  • GatewayId:

    网关ID

  • Type:

    防护资源的类型。

  • List:

    当资源类型 Type 是 Service 或 Route 的时候,传入的服务或路由的列表



10915
10916
10917
# File 'lib/v20201207/models.rb', line 10915

def Type
  @Type
end

Instance Method Details

#deserialize(params) ⇒ Object



10923
10924
10925
10926
10927
# File 'lib/v20201207/models.rb', line 10923

def deserialize(params)
  @GatewayId = params['GatewayId']
  @Type = params['Type']
  @List = params['List']
end