Class: TencentCloud::Teo::V20220901::CustomTime
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Teo::V20220901::CustomTime
- Defined in:
- lib/v20220901/models.rb
Overview
节点缓存 TTL 自定义缓存时间参数配置。
Instance Attribute Summary collapse
-
#CacheTime ⇒ Object
<li>on:开启;</li> <li>off:关闭。</li> <li>on:开启;</li> <li>off:关闭。</li>注意:当 Switch 为 on 时,此字段必填;当 Switch 为 off 时,无需填写此字段,若填写则不生效。.
-
#IgnoreCacheControl ⇒ Object
<li>on:开启;</li> <li>off:关闭。</li> <li>on:开启;</li> <li>off:关闭。</li>注意:当 Switch 为 on 时,此字段必填;当 Switch 为 off 时,无需填写此字段,若填写则不生效。.
-
#Switch ⇒ Object
<li>on:开启;</li> <li>off:关闭。</li> <li>on:开启;</li> <li>off:关闭。</li>注意:当 Switch 为 on 时,此字段必填;当 Switch 为 off 时,无需填写此字段,若填写则不生效。.
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(switch = nil, ignorecachecontrol = nil, cachetime = nil) ⇒ CustomTime
constructor
A new instance of CustomTime.
Constructor Details
#initialize(switch = nil, ignorecachecontrol = nil, cachetime = nil) ⇒ CustomTime
Returns a new instance of CustomTime.
5947 5948 5949 5950 5951 |
# File 'lib/v20220901/models.rb', line 5947 def initialize(switch=nil, ignorecachecontrol=nil, cachetime=nil) @Switch = switch @IgnoreCacheControl = ignorecachecontrol @CacheTime = cachetime end |
Instance Attribute Details
#CacheTime ⇒ Object
<li>on:开启;</li> <li>off:关闭。</li> <li>on:开启;</li> <li>off:关闭。</li>注意:当 Switch 为 on 时,此字段必填;当 Switch 为 off 时,无需填写此字段,若填写则不生效。
5945 5946 5947 |
# File 'lib/v20220901/models.rb', line 5945 def CacheTime @CacheTime end |
#IgnoreCacheControl ⇒ Object
<li>on:开启;</li> <li>off:关闭。</li> <li>on:开启;</li> <li>off:关闭。</li>注意:当 Switch 为 on 时,此字段必填;当 Switch 为 off 时,无需填写此字段,若填写则不生效。
5945 5946 5947 |
# File 'lib/v20220901/models.rb', line 5945 def IgnoreCacheControl @IgnoreCacheControl end |
#Switch ⇒ Object
<li>on:开启;</li> <li>off:关闭。</li> <li>on:开启;</li> <li>off:关闭。</li>注意:当 Switch 为 on 时,此字段必填;当 Switch 为 off 时,无需填写此字段,若填写则不生效。
5945 5946 5947 |
# File 'lib/v20220901/models.rb', line 5945 def Switch @Switch end |
Instance Method Details
#deserialize(params) ⇒ Object
5953 5954 5955 5956 5957 |
# File 'lib/v20220901/models.rb', line 5953 def deserialize(params) @Switch = params['Switch'] @IgnoreCacheControl = params['IgnoreCacheControl'] @CacheTime = params['CacheTime'] end |