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.
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
#FollowRedirectBackupHost ⇒ Object
on:开启 off:关闭
11211 11212 11213 |
# File 'lib/v20180606/models.rb', line 11211 def FollowRedirectBackupHost @FollowRedirectBackupHost end |
#FollowRedirectHost ⇒ Object
on:开启 off:关闭
11211 11212 11213 |
# File 'lib/v20180606/models.rb', line 11211 def FollowRedirectHost @FollowRedirectHost end |
#Switch ⇒ Object
on:开启 off:关闭
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 |