Class: TencentCloud::Teo::V20220901::CacheConfigCustomTime
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Teo::V20220901::CacheConfigCustomTime
- Defined in:
- lib/v20220901/models.rb
Overview
节点缓存 TTL 自定义缓存时间配置参数。
Instance Attribute Summary collapse
-
#CacheTime ⇒ Object
<li>on:开启;</li> <li>off:关闭。</li>.
-
#Switch ⇒ Object
<li>on:开启;</li> <li>off:关闭。</li>.
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(switch = nil, cachetime = nil) ⇒ CacheConfigCustomTime
constructor
A new instance of CacheConfigCustomTime.
Constructor Details
#initialize(switch = nil, cachetime = nil) ⇒ CacheConfigCustomTime
Returns a new instance of CacheConfigCustomTime.
2389 2390 2391 2392 |
# File 'lib/v20220901/models.rb', line 2389 def initialize(switch=nil, cachetime=nil) @Switch = switch @CacheTime = cachetime end |
Instance Attribute Details
#CacheTime ⇒ Object
<li>on:开启;</li> <li>off:关闭。</li>
2387 2388 2389 |
# File 'lib/v20220901/models.rb', line 2387 def CacheTime @CacheTime end |
#Switch ⇒ Object
<li>on:开启;</li> <li>off:关闭。</li>
2387 2388 2389 |
# File 'lib/v20220901/models.rb', line 2387 def Switch @Switch end |
Instance Method Details
#deserialize(params) ⇒ Object
2394 2395 2396 2397 |
# File 'lib/v20220901/models.rb', line 2394 def deserialize(params) @Switch = params['Switch'] @CacheTime = params['CacheTime'] end |