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.
9742 9743 9744 9745 9746 |
# File 'lib/v20180606/models.rb', line 9742 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,表示取不到有效值。
9740 9741 9742 |
# File 'lib/v20180606/models.rb', line 9740 def MaxAgeCodeRule @MaxAgeCodeRule end |
#MaxAgeRules ⇒ Object
on:开启off:关闭注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。
9740 9741 9742 |
# File 'lib/v20180606/models.rb', line 9740 def MaxAgeRules @MaxAgeRules end |
#Switch ⇒ Object
on:开启off:关闭注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。
9740 9741 9742 |
# File 'lib/v20180606/models.rb', line 9740 def Switch @Switch end |
Instance Method Details
#deserialize(params) ⇒ Object
9748 9749 9750 9751 9752 9753 9754 9755 9756 9757 9758 9759 9760 9761 9762 |
# File 'lib/v20180606/models.rb', line 9748 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 |