Class: TencentCloud::Cdn::V20180606::RedirectConfig

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

Overview

自定义回源302 follow请求host配置

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(switch = nil, followredirecthost = nil, followredirectbackuphost = nil) ⇒ RedirectConfig

Returns a new instance of RedirectConfig.



11213
11214
11215
11216
11217
# File 'lib/v20180606/models.rb', line 11213

def initialize(switch=nil, followredirecthost=nil, followredirectbackuphost=nil)
  @Switch = switch
  @FollowRedirectHost = followredirecthost
  @FollowRedirectBackupHost = followredirectbackuphost
end

Instance Attribute Details

#FollowRedirectBackupHostObject

on:开启 off:关闭

Parameters:

  • Switch:

    自定义回源302 follow请求host配置开关,取值有:

  • FollowRedirectHost:

    主源站follow302请求时带的自定义的host头部

  • FollowRedirectBackupHost:

    备份源站follow302请求时带的自定义的host头部



11211
11212
11213
# File 'lib/v20180606/models.rb', line 11211

def FollowRedirectBackupHost
  @FollowRedirectBackupHost
end

#FollowRedirectHostObject

on:开启 off:关闭

Parameters:

  • Switch:

    自定义回源302 follow请求host配置开关,取值有:

  • FollowRedirectHost:

    主源站follow302请求时带的自定义的host头部

  • FollowRedirectBackupHost:

    备份源站follow302请求时带的自定义的host头部



11211
11212
11213
# File 'lib/v20180606/models.rb', line 11211

def FollowRedirectHost
  @FollowRedirectHost
end

#SwitchObject

on:开启 off:关闭

Parameters:

  • Switch:

    自定义回源302 follow请求host配置开关,取值有:

  • FollowRedirectHost:

    主源站follow302请求时带的自定义的host头部

  • FollowRedirectBackupHost:

    备份源站follow302请求时带的自定义的host头部



11211
11212
11213
# File 'lib/v20180606/models.rb', line 11211

def Switch
  @Switch
end

Instance Method Details

#deserialize(params) ⇒ Object



11219
11220
11221
11222
11223
# File 'lib/v20180606/models.rb', line 11219

def deserialize(params)
  @Switch = params['Switch']
  @FollowRedirectHost = params['FollowRedirectHost']
  @FollowRedirectBackupHost = params['FollowRedirectBackupHost']
end