Class: TencentCloud::Cdn::V20180606::ResponseHeader
- Inherits:
-
TencentCloud::Common::AbstractModel
- Object
- TencentCloud::Common::AbstractModel
- TencentCloud::Cdn::V20180606::ResponseHeader
- Defined in:
- lib/v20180606/models.rb
Overview
自定义响应头配置,默认为关闭状态
Instance Attribute Summary collapse
-
#HeaderRules ⇒ Object
on:开启 off:关闭 注意:此字段可能返回 null,表示取不到有效值。.
-
#Switch ⇒ Object
on:开启 off:关闭 注意:此字段可能返回 null,表示取不到有效值。.
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(switch = nil, headerrules = nil) ⇒ ResponseHeader
constructor
A new instance of ResponseHeader.
Constructor Details
#initialize(switch = nil, headerrules = nil) ⇒ ResponseHeader
Returns a new instance of ResponseHeader.
11584 11585 11586 11587 |
# File 'lib/v20180606/models.rb', line 11584 def initialize(switch=nil, headerrules=nil) @Switch = switch @HeaderRules = headerrules end |
Instance Attribute Details
#HeaderRules ⇒ Object
on:开启 off:关闭 注意:此字段可能返回 null,表示取不到有效值。
11582 11583 11584 |
# File 'lib/v20180606/models.rb', line 11582 def HeaderRules @HeaderRules end |
#Switch ⇒ Object
on:开启 off:关闭 注意:此字段可能返回 null,表示取不到有效值。
11582 11583 11584 |
# File 'lib/v20180606/models.rb', line 11582 def Switch @Switch end |
Instance Method Details
#deserialize(params) ⇒ Object
11589 11590 11591 11592 11593 11594 11595 11596 11597 11598 11599 |
# File 'lib/v20180606/models.rb', line 11589 def deserialize(params) @Switch = params['Switch'] unless params['HeaderRules'].nil? @HeaderRules = [] params['HeaderRules'].each do |i| httpheaderpathrule_tmp = HttpHeaderPathRule.new httpheaderpathrule_tmp.deserialize(i) @HeaderRules << httpheaderpathrule_tmp end end end |