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.
6853 6854 6855 6856 6857 |
# File 'lib/v20180606/models.rb', line 6853 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,表示取不到有效值。
6851 6852 6853 |
# File 'lib/v20180606/models.rb', line 6851 def MaxAgeCodeRule @MaxAgeCodeRule end |
#MaxAgeRules ⇒ Object
on:开启 off:关闭 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。
6851 6852 6853 |
# File 'lib/v20180606/models.rb', line 6851 def MaxAgeRules @MaxAgeRules end |
#Switch ⇒ Object
on:开启 off:关闭 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。
6851 6852 6853 |
# File 'lib/v20180606/models.rb', line 6851 def Switch @Switch end |
Instance Method Details
#deserialize(params) ⇒ Object
6859 6860 6861 6862 6863 6864 6865 6866 6867 6868 6869 6870 6871 6872 6873 |
# File 'lib/v20180606/models.rb', line 6859 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 |