Class: TencentCloud::Cdn::V20180606::OriginPullOptimization

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

Overview

跨国回源优化配置,默认为关闭状态 (已下线)

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#OptimizationTypeObject

on:开启 off:关闭 OVToCN:境外回源境内 CNToOV:境内回源境外 注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • Switch:

    跨国回源优化配置开关,取值有:

  • OptimizationType:

    跨国类型



10200
10201
10202
# File 'lib/v20180606/models.rb', line 10200

def OptimizationType
  @OptimizationType
end

#SwitchObject

on:开启 off:关闭 OVToCN:境外回源境内 CNToOV:境内回源境外 注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • Switch:

    跨国回源优化配置开关,取值有:

  • OptimizationType:

    跨国类型



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