Class: TencentCloud::Cdn::V20180606::MaxAge
- Inherits:
-
TencentCloud::Common::AbstractModel
- Object
- TencentCloud::Common::AbstractModel
- TencentCloud::Cdn::V20180606::MaxAge
- Defined in:
- lib/v20180606/models.rb
Overview
浏览器缓存规则配置,用于设置 MaxAge 默认值,默认为关闭状态
Instance Attribute Summary collapse
-
#MaxAgeCodeRule ⇒ Object
on:开启 off:关闭 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。.
-
#MaxAgeRules ⇒ Object
on:开启 off:关闭 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。.
-
#Switch ⇒ Object
on:开启 off:关闭 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。.
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(switch = nil, maxagerules = nil, maxagecoderule = nil) ⇒ MaxAge
constructor
A new instance of MaxAge.
Constructor Details
#initialize(switch = nil, maxagerules = nil, maxagecoderule = nil) ⇒ MaxAge
Returns a new instance of MaxAge.
7088 7089 7090 7091 7092 |
# File 'lib/v20180606/models.rb', line 7088 def initialize(switch=nil, maxagerules=nil, maxagecoderule=nil) @Switch = switch @MaxAgeRules = maxagerules @MaxAgeCodeRule = maxagecoderule end |
Instance Attribute Details
#MaxAgeCodeRule ⇒ Object
on:开启off:关闭注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。
7086 7087 7088 |
# File 'lib/v20180606/models.rb', line 7086 def MaxAgeCodeRule @MaxAgeCodeRule end |
#MaxAgeRules ⇒ Object
on:开启off:关闭注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。
7086 7087 7088 |
# File 'lib/v20180606/models.rb', line 7086 def MaxAgeRules @MaxAgeRules end |
#Switch ⇒ Object
on:开启off:关闭注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。
7086 7087 7088 |
# File 'lib/v20180606/models.rb', line 7086 def Switch @Switch end |
Instance Method Details
#deserialize(params) ⇒ Object
7094 7095 7096 7097 7098 7099 7100 7101 7102 7103 7104 7105 7106 7107 7108 |
# File 'lib/v20180606/models.rb', line 7094 def deserialize(params) @Switch = params['Switch'] unless params['MaxAgeRules'].nil? @MaxAgeRules = [] params['MaxAgeRules'].each do |i| maxagerule_tmp = MaxAgeRule.new maxagerule_tmp.deserialize(i) @MaxAgeRules << maxagerule_tmp end end unless params['MaxAgeCodeRule'].nil? @MaxAgeCodeRule = MaxAgeCodeRule.new @MaxAgeCodeRule.deserialize(params['MaxAgeCodeRule']) end end |