Class: TencentCloud::Cdn::V20180606::OriginPullOptimization
- Inherits:
-
TencentCloud::Common::AbstractModel
- Object
- TencentCloud::Common::AbstractModel
- TencentCloud::Cdn::V20180606::OriginPullOptimization
- Defined in:
- lib/v20180606/models.rb
Overview
跨国回源优化配置,默认为关闭状态 (已下线)
Instance Attribute Summary collapse
-
#OptimizationType ⇒ Object
on:开启 off:关闭 OVToCN:境外回源境内 CNToOV:境内回源境外 注意:此字段可能返回 null,表示取不到有效值。.
-
#Switch ⇒ Object
on:开启 off:关闭 OVToCN:境外回源境内 CNToOV:境内回源境外 注意:此字段可能返回 null,表示取不到有效值。.
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(switch = nil, optimizationtype = nil) ⇒ OriginPullOptimization
constructor
A new instance of OriginPullOptimization.
Constructor Details
#initialize(switch = nil, optimizationtype = nil) ⇒ OriginPullOptimization
Returns a new instance of OriginPullOptimization.
10202 10203 10204 10205 |
# File 'lib/v20180606/models.rb', line 10202 def initialize(switch=nil, optimizationtype=nil) @Switch = switch @OptimizationType = optimizationtype end |
Instance Attribute Details
#OptimizationType ⇒ Object
on:开启 off:关闭 OVToCN:境外回源境内 CNToOV:境内回源境外 注意:此字段可能返回 null,表示取不到有效值。
10200 10201 10202 |
# File 'lib/v20180606/models.rb', line 10200 def OptimizationType @OptimizationType end |
#Switch ⇒ Object
on:开启 off:关闭 OVToCN:境外回源境内 CNToOV:境内回源境外 注意:此字段可能返回 null,表示取不到有效值。
10200 10201 10202 |
# File 'lib/v20180606/models.rb', line 10200 def Switch @Switch end |
Instance Method Details
#deserialize(params) ⇒ Object
10207 10208 10209 10210 |
# File 'lib/v20180606/models.rb', line 10207 def deserialize(params) @Switch = params['Switch'] @OptimizationType = params['OptimizationType'] end |