Class: TencentCloud::Cdn::V20180606::FollowRedirect
- Inherits:
-
TencentCloud::Common::AbstractModel
- Object
- TencentCloud::Common::AbstractModel
- TencentCloud::Cdn::V20180606::FollowRedirect
- Defined in:
- lib/v20180606/models.rb
Overview
回源 301/302 状态码自动跟随配置,默认为关闭状态
Instance Attribute Summary collapse
-
#RedirectConfig ⇒ Object
on:开启 off:关闭 注意:此字段可能返回 null,表示取不到有效值。.
-
#Switch ⇒ Object
on:开启 off:关闭 注意:此字段可能返回 null,表示取不到有效值。.
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(switch = nil, redirectconfig = nil) ⇒ FollowRedirect
constructor
A new instance of FollowRedirect.
Constructor Details
#initialize(switch = nil, redirectconfig = nil) ⇒ FollowRedirect
Returns a new instance of FollowRedirect.
7624 7625 7626 7627 |
# File 'lib/v20180606/models.rb', line 7624 def initialize(switch=nil, redirectconfig=nil) @Switch = switch @RedirectConfig = redirectconfig end |
Instance Attribute Details
#RedirectConfig ⇒ Object
on:开启 off:关闭 注意:此字段可能返回 null,表示取不到有效值。
7622 7623 7624 |
# File 'lib/v20180606/models.rb', line 7622 def RedirectConfig @RedirectConfig end |
#Switch ⇒ Object
on:开启 off:关闭 注意:此字段可能返回 null,表示取不到有效值。
7622 7623 7624 |
# File 'lib/v20180606/models.rb', line 7622 def Switch @Switch end |
Instance Method Details
#deserialize(params) ⇒ Object
7629 7630 7631 7632 7633 7634 7635 |
# File 'lib/v20180606/models.rb', line 7629 def deserialize(params) @Switch = params['Switch'] unless params['RedirectConfig'].nil? @RedirectConfig = RedirectConfig.new @RedirectConfig.deserialize(params['RedirectConfig']) end end |