Class: TencentCloud::Cdn::V20180606::CacheTagKey

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) ⇒ CacheTagKey

Returns a new instance of CacheTagKey.



1703
1704
1705
1706
# File 'lib/v20180606/models.rb', line 1703

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

Instance Attribute Details

#SwitchObject

on:开启,使用CacheTag作为CacheKey的一部分off:关闭,不使用CacheTag作为CacheKey的一部分注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • Switch:

    使用CacheTag作为CacheKey的一部分配置开关,取值有

  • Value:

    自定义CacheTag的值



1701
1702
1703
# File 'lib/v20180606/models.rb', line 1701

def Switch
  @Switch
end

#ValueObject

on:开启,使用CacheTag作为CacheKey的一部分off:关闭,不使用CacheTag作为CacheKey的一部分注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • Switch:

    使用CacheTag作为CacheKey的一部分配置开关,取值有

  • Value:

    自定义CacheTag的值



1701
1702
1703
# File 'lib/v20180606/models.rb', line 1701

def Value
  @Value
end

Instance Method Details

#deserialize(params) ⇒ Object



1708
1709
1710
1711
# File 'lib/v20180606/models.rb', line 1708

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