Class: TencentCloud::Cdn::V20180606::RedirectConfig
- Inherits:
-
TencentCloud::Common::AbstractModel
- Object
- TencentCloud::Common::AbstractModel
- TencentCloud::Cdn::V20180606::RedirectConfig
- Defined in:
- lib/v20180606/models.rb
Overview
自定义回源302 follow请求host配置
Instance Attribute Summary collapse
-
#FollowRedirectBackupHost ⇒ Object
on:开启 off:关闭.
-
#FollowRedirectHost ⇒ Object
on:开启 off:关闭.
-
#Switch ⇒ Object
on:开启 off:关闭.
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(switch = nil, followredirecthost = nil, followredirectbackuphost = nil) ⇒ RedirectConfig
constructor
A new instance of RedirectConfig.
Constructor Details
#initialize(switch = nil, followredirecthost = nil, followredirectbackuphost = nil) ⇒ RedirectConfig
Returns a new instance of RedirectConfig.
8304 8305 8306 8307 8308 |
# File 'lib/v20180606/models.rb', line 8304 def initialize(switch=nil, followredirecthost=nil, followredirectbackuphost=nil) @Switch = switch @FollowRedirectHost = followredirecthost @FollowRedirectBackupHost = followredirectbackuphost end |
Instance Attribute Details
#FollowRedirectBackupHost ⇒ Object
on:开启 off:关闭
8302 8303 8304 |
# File 'lib/v20180606/models.rb', line 8302 def FollowRedirectBackupHost @FollowRedirectBackupHost end |
#FollowRedirectHost ⇒ Object
on:开启 off:关闭
8302 8303 8304 |
# File 'lib/v20180606/models.rb', line 8302 def FollowRedirectHost @FollowRedirectHost end |
#Switch ⇒ Object
on:开启 off:关闭
8302 8303 8304 |
# File 'lib/v20180606/models.rb', line 8302 def Switch @Switch end |
Instance Method Details
#deserialize(params) ⇒ Object
8310 8311 8312 8313 8314 |
# File 'lib/v20180606/models.rb', line 8310 def deserialize(params) @Switch = params['Switch'] @FollowRedirectHost = params['FollowRedirectHost'] @FollowRedirectBackupHost = params['FollowRedirectBackupHost'] end |