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.



6031
6032
6033
6034
6035
# File 'lib/v20201207/models.rb', line 6031

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 的时候,传入的服务或路由的列表



6029
6030
6031
# File 'lib/v20201207/models.rb', line 6029

def GatewayId
  @GatewayId
end

#ListObject

  • Global 实例

  • Service 服务

  • Route 路由

  • Object 对象(接口暂不支持)

Parameters:

  • GatewayId:

    网关ID

  • Type:

    防护资源的类型。

  • List:

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



6029
6030
6031
# File 'lib/v20201207/models.rb', line 6029

def List
  @List
end

#TypeObject

  • Global 实例

  • Service 服务

  • Route 路由

  • Object 对象(接口暂不支持)

Parameters:

  • GatewayId:

    网关ID

  • Type:

    防护资源的类型。

  • List:

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



6029
6030
6031
# File 'lib/v20201207/models.rb', line 6029

def Type
  @Type
end

Instance Method Details

#deserialize(params) ⇒ Object



6037
6038
6039
6040
6041
# File 'lib/v20201207/models.rb', line 6037

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