Class: TencentCloud::Cdn::V20180606::StatusCodeCache
- Inherits:
-
TencentCloud::Common::AbstractModel
- Object
- TencentCloud::Common::AbstractModel
- TencentCloud::Cdn::V20180606::StatusCodeCache
- Defined in:
- lib/v20180606/models.rb
Overview
状态码缓存过期配置,默认情况下会对 404 状态码缓存 10 秒
Instance Attribute Summary collapse
-
#CacheRules ⇒ Object
on:开启 off:关闭 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。.
-
#Switch ⇒ Object
on:开启 off:关闭 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。.
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(switch = nil, cacherules = nil) ⇒ StatusCodeCache
constructor
A new instance of StatusCodeCache.
Constructor Details
#initialize(switch = nil, cacherules = nil) ⇒ StatusCodeCache
Returns a new instance of StatusCodeCache.
13072 13073 13074 13075 |
# File 'lib/v20180606/models.rb', line 13072 def initialize(switch=nil, cacherules=nil) @Switch = switch @CacheRules = cacherules end |
Instance Attribute Details
#CacheRules ⇒ Object
on:开启off:关闭注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。
13070 13071 13072 |
# File 'lib/v20180606/models.rb', line 13070 def CacheRules @CacheRules end |
#Switch ⇒ Object
on:开启off:关闭注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。
13070 13071 13072 |
# File 'lib/v20180606/models.rb', line 13070 def Switch @Switch end |
Instance Method Details
#deserialize(params) ⇒ Object
13077 13078 13079 13080 13081 13082 13083 13084 13085 13086 13087 |
# File 'lib/v20180606/models.rb', line 13077 def deserialize(params) @Switch = params['Switch'] unless params['CacheRules'].nil? @CacheRules = [] params['CacheRules'].each do |i| statuscodecacherule_tmp = StatusCodeCacheRule.new statuscodecacherule_tmp.deserialize(i) @CacheRules << statuscodecacherule_tmp end end end |