Class: TencentCloud::Cdn::V20180606::HeaderKey

Inherits:
TencentCloud::Common::AbstractModel
  • Object
show all
Defined in:
lib/v20180606/models.rb

Overview

组成CacheKey

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(switch = nil, value = nil) ⇒ HeaderKey

Returns a new instance of HeaderKey.



7780
7781
7782
7783
# File 'lib/v20180606/models.rb', line 7780

def initialize(switch=nil, value=nil)
  @Switch = switch
  @Value = value
end

Instance Attribute Details

#SwitchObject

on:开启off:关闭注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • Switch:

    组成Cachekey配置开关,取值有:

  • Value:

    组成CacheKey的header数组,‘;’ 分割



7778
7779
7780
# File 'lib/v20180606/models.rb', line 7778

def Switch
  @Switch
end

#ValueObject

on:开启off:关闭注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • Switch:

    组成Cachekey配置开关,取值有:

  • Value:

    组成CacheKey的header数组,‘;’ 分割



7778
7779
7780
# File 'lib/v20180606/models.rb', line 7778

def Value
  @Value
end

Instance Method Details

#deserialize(params) ⇒ Object



7785
7786
7787
7788
# File 'lib/v20180606/models.rb', line 7785

def deserialize(params)
  @Switch = params['Switch']
  @Value = params['Value']
end