Class: TencentCloud::Cdn::V20180606::RemoteAuthenticationRule

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

Overview

远程鉴权规则。

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(server = nil, authmethod = nil, ruletype = nil, rulepaths = nil, authtimeout = nil, authtimeoutaction = nil) ⇒ RemoteAuthenticationRule

Returns a new instance of RemoteAuthenticationRule.



11375
11376
11377
11378
11379
11380
11381
11382
# File 'lib/v20180606/models.rb', line 11375

def initialize(server=nil, authmethod=nil, ruletype=nil, rulepaths=nil, authtimeout=nil, authtimeoutaction=nil)
  @Server = server
  @AuthMethod = authmethod
  @RuleType = ruletype
  @RulePaths = rulepaths
  @AuthTimeout = authtimeout
  @AuthTimeoutAction = authtimeoutaction
end

Instance Attribute Details

#AuthMethodObject

默认值:和上层配置的“Server”一致;all: 表示“遵循终端用户请求方法” 默认值: all all:所有文件生效file:指定文件后缀生效directory:指定目录生效path:指定文件绝对路径生效默认值:all all 时填充 * file 时填充后缀名,如 jpg、txt directory 时填充路径,如 /xxx/test path 时填充绝对路径,如 /xxx/test.html index 时填充 / 默认值:* 取值范围:[1,30 000] 默认值:20000 RETURN_200: 超时后放行;RETURN_403:超时拦截;默认值:RETURN_200

Parameters:

  • Server:

    远程鉴权Server。

  • AuthMethod:
  • RuleType:

    规则类型:

  • RulePaths:

    对应类型下的匹配内容:

  • AuthTimeout:

    请求远程鉴权服务器超时时间,单位毫秒;

  • AuthTimeoutAction:

    请求远程鉴权服务器超时后执行拦截或者放行;



11373
11374
11375
# File 'lib/v20180606/models.rb', line 11373

def AuthMethod
  @AuthMethod
end

#AuthTimeoutObject

默认值:和上层配置的“Server”一致;all: 表示“遵循终端用户请求方法” 默认值: all all:所有文件生效file:指定文件后缀生效directory:指定目录生效path:指定文件绝对路径生效默认值:all all 时填充 * file 时填充后缀名,如 jpg、txt directory 时填充路径,如 /xxx/test path 时填充绝对路径,如 /xxx/test.html index 时填充 / 默认值:* 取值范围:[1,30 000] 默认值:20000 RETURN_200: 超时后放行;RETURN_403:超时拦截;默认值:RETURN_200

Parameters:

  • Server:

    远程鉴权Server。

  • AuthMethod:
  • RuleType:

    规则类型:

  • RulePaths:

    对应类型下的匹配内容:

  • AuthTimeout:

    请求远程鉴权服务器超时时间,单位毫秒;

  • AuthTimeoutAction:

    请求远程鉴权服务器超时后执行拦截或者放行;



11373
11374
11375
# File 'lib/v20180606/models.rb', line 11373

def AuthTimeout
  @AuthTimeout
end

#AuthTimeoutActionObject

默认值:和上层配置的“Server”一致;all: 表示“遵循终端用户请求方法” 默认值: all all:所有文件生效file:指定文件后缀生效directory:指定目录生效path:指定文件绝对路径生效默认值:all all 时填充 * file 时填充后缀名,如 jpg、txt directory 时填充路径,如 /xxx/test path 时填充绝对路径,如 /xxx/test.html index 时填充 / 默认值:* 取值范围:[1,30 000] 默认值:20000 RETURN_200: 超时后放行;RETURN_403:超时拦截;默认值:RETURN_200

Parameters:

  • Server:

    远程鉴权Server。

  • AuthMethod:
  • RuleType:

    规则类型:

  • RulePaths:

    对应类型下的匹配内容:

  • AuthTimeout:

    请求远程鉴权服务器超时时间,单位毫秒;

  • AuthTimeoutAction:

    请求远程鉴权服务器超时后执行拦截或者放行;



11373
11374
11375
# File 'lib/v20180606/models.rb', line 11373

def AuthTimeoutAction
  @AuthTimeoutAction
end

#RulePathsObject

默认值:和上层配置的“Server”一致;all: 表示“遵循终端用户请求方法” 默认值: all all:所有文件生效file:指定文件后缀生效directory:指定目录生效path:指定文件绝对路径生效默认值:all all 时填充 * file 时填充后缀名,如 jpg、txt directory 时填充路径,如 /xxx/test path 时填充绝对路径,如 /xxx/test.html index 时填充 / 默认值:* 取值范围:[1,30 000] 默认值:20000 RETURN_200: 超时后放行;RETURN_403:超时拦截;默认值:RETURN_200

Parameters:

  • Server:

    远程鉴权Server。

  • AuthMethod:
  • RuleType:

    规则类型:

  • RulePaths:

    对应类型下的匹配内容:

  • AuthTimeout:

    请求远程鉴权服务器超时时间,单位毫秒;

  • AuthTimeoutAction:

    请求远程鉴权服务器超时后执行拦截或者放行;



11373
11374
11375
# File 'lib/v20180606/models.rb', line 11373

def RulePaths
  @RulePaths
end

#RuleTypeObject

默认值:和上层配置的“Server”一致;all: 表示“遵循终端用户请求方法” 默认值: all all:所有文件生效file:指定文件后缀生效directory:指定目录生效path:指定文件绝对路径生效默认值:all all 时填充 * file 时填充后缀名,如 jpg、txt directory 时填充路径,如 /xxx/test path 时填充绝对路径,如 /xxx/test.html index 时填充 / 默认值:* 取值范围:[1,30 000] 默认值:20000 RETURN_200: 超时后放行;RETURN_403:超时拦截;默认值:RETURN_200

Parameters:

  • Server:

    远程鉴权Server。

  • AuthMethod:
  • RuleType:

    规则类型:

  • RulePaths:

    对应类型下的匹配内容:

  • AuthTimeout:

    请求远程鉴权服务器超时时间,单位毫秒;

  • AuthTimeoutAction:

    请求远程鉴权服务器超时后执行拦截或者放行;



11373
11374
11375
# File 'lib/v20180606/models.rb', line 11373

def RuleType
  @RuleType
end

#ServerObject

默认值:和上层配置的“Server”一致;all: 表示“遵循终端用户请求方法” 默认值: all all:所有文件生效file:指定文件后缀生效directory:指定目录生效path:指定文件绝对路径生效默认值:all all 时填充 * file 时填充后缀名,如 jpg、txt directory 时填充路径,如 /xxx/test path 时填充绝对路径,如 /xxx/test.html index 时填充 / 默认值:* 取值范围:[1,30 000] 默认值:20000 RETURN_200: 超时后放行;RETURN_403:超时拦截;默认值:RETURN_200

Parameters:

  • Server:

    远程鉴权Server。

  • AuthMethod:
  • RuleType:

    规则类型:

  • RulePaths:

    对应类型下的匹配内容:

  • AuthTimeout:

    请求远程鉴权服务器超时时间,单位毫秒;

  • AuthTimeoutAction:

    请求远程鉴权服务器超时后执行拦截或者放行;



11373
11374
11375
# File 'lib/v20180606/models.rb', line 11373

def Server
  @Server
end

Instance Method Details

#deserialize(params) ⇒ Object



11384
11385
11386
11387
11388
11389
11390
11391
# File 'lib/v20180606/models.rb', line 11384

def deserialize(params)
  @Server = params['Server']
  @AuthMethod = params['AuthMethod']
  @RuleType = params['RuleType']
  @RulePaths = params['RulePaths']
  @AuthTimeout = params['AuthTimeout']
  @AuthTimeoutAction = params['AuthTimeoutAction']
end