tencentcloud-sdk-cdn 3.0.914 → 3.0.915

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/lib/VERSION +1 -1
  3. data/lib/v20180606/models.rb +20 -4
  4. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 32ddd5589c2430d616d08e4755fdec4526e7aea1
4
- data.tar.gz: 1caa100c5c81fff8dd5e9a33d7d5d86a4cdc4f7f
3
+ metadata.gz: cacc21b6efaa94dd6fc1dde31960b134863c26b3
4
+ data.tar.gz: da13beec661a89b9f860499775c4af362b5f2748
5
5
  SHA512:
6
- metadata.gz: b5f6838c5ddbf2b5c536ca99c87c43ad02e4216e2320974ddf6ba930522ec6670795a076bc9c42ffe5988405b1fc95719bd7f452d012536fb80c76c740236538
7
- data.tar.gz: e258af4ecbf194313b47480a5df4e29f84f63ca82fa129c445a18dfc03a4d71f76f1fc5659810e2b6fc706326c4ab3783904a8ecc6fc4bfdd6600df14d0e803e
6
+ metadata.gz: 5f90003e75519b9e758f2eb5a08ac2e2f39b89f1c0ef4d4933e80060d19ad0576f8d4fc0e6acad20f32ccec54507b6337b019affdfbb81fa3f4fb280e53449f9
7
+ data.tar.gz: b024a54f46532fe6c5f8f9f222ff090d0d5f30eb6b4a9b2164d83f1b59397534a4d1552d0539f60b7db7125ad40796ede1489f447475fb6223f918a7c2e84232
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.914
1
+ 3.0.915
@@ -2143,15 +2143,22 @@ module TencentCloud
2143
2143
  # 默认为关闭状态
2144
2144
  # 注意:此字段可能返回 null,表示取不到有效值。
2145
2145
  # @type IgnoreSetCookie: String
2146
+ # @param OriginMtimeCheckType: 当缓存过期后,是否开启源站 mtime 校验,配置值为equal、since、none 和 null。默认配置值为equal,会校验源站文件的mtime与长度。2024-09-12 18:00 之前创建的域名默认值 null,行为保持不变。
2147
+ # equal:源站响应mtime必须和缓存mtime一致,若mtime值不一致,清除缓存。
2148
+ # since:若源站响应mtime大于缓存mtime,清除缓存。
2149
+ # none: 缓存过期回源重新获取文件mtime和长度后,不会校验源站响应mtime,若源站响应携带Content-Length头部,只有文件大小改变时才会更新缓存;若源站响应不携带Content-Length头部,会更新缓存。
2150
+ # 注意:此字段可能返回 null,表示取不到有效值。
2151
+ # @type OriginMtimeCheckType: String
2146
2152
 
2147
- attr_accessor :Switch, :CacheTime, :CompareMaxAge, :IgnoreCacheControl, :IgnoreSetCookie
2153
+ attr_accessor :Switch, :CacheTime, :CompareMaxAge, :IgnoreCacheControl, :IgnoreSetCookie, :OriginMtimeCheckType
2148
2154
 
2149
- def initialize(switch=nil, cachetime=nil, comparemaxage=nil, ignorecachecontrol=nil, ignoresetcookie=nil)
2155
+ def initialize(switch=nil, cachetime=nil, comparemaxage=nil, ignorecachecontrol=nil, ignoresetcookie=nil, originmtimechecktype=nil)
2150
2156
  @Switch = switch
2151
2157
  @CacheTime = cachetime
2152
2158
  @CompareMaxAge = comparemaxage
2153
2159
  @IgnoreCacheControl = ignorecachecontrol
2154
2160
  @IgnoreSetCookie = ignoresetcookie
2161
+ @OriginMtimeCheckType = originmtimechecktype
2155
2162
  end
2156
2163
 
2157
2164
  def deserialize(params)
@@ -2160,6 +2167,7 @@ module TencentCloud
2160
2167
  @CompareMaxAge = params['CompareMaxAge']
2161
2168
  @IgnoreCacheControl = params['IgnoreCacheControl']
2162
2169
  @IgnoreSetCookie = params['IgnoreSetCookie']
2170
+ @OriginMtimeCheckType = params['OriginMtimeCheckType']
2163
2171
  end
2164
2172
  end
2165
2173
 
@@ -2172,12 +2180,19 @@ module TencentCloud
2172
2180
  # @param HeuristicCache: 启发式缓存配置
2173
2181
  # 注意:此字段可能返回 null,表示取不到有效值。
2174
2182
  # @type HeuristicCache: :class:`Tencentcloud::Cdn.v20180606.models.HeuristicCache`
2183
+ # @param OriginMtimeCheckType: 当缓存过期后,是否开启源站 mtime 校验,配置值为equal、since、none 和 null。默认配置值为equal,会校验源站文件的mtime与长度。2024-09-12 18:00 之前创建的域名默认值 null,行为保持不变。
2184
+ # equal:源站响应mtime必须和缓存mtime一致,若mtime值不一致,清除缓存。
2185
+ # since:若源站响应mtime大于缓存mtime,清除缓存。
2186
+ # none: 缓存过期回源重新获取文件mtime和长度后,不会校验源站响应mtime,若源站响应携带Content-Length头部,只有文件大小改变时才会更新缓存;若源站响应不携带Content-Length头部,会更新缓存。
2187
+ # 注意:此字段可能返回 null,表示取不到有效值。
2188
+ # @type OriginMtimeCheckType: String
2175
2189
 
2176
- attr_accessor :Switch, :HeuristicCache
2190
+ attr_accessor :Switch, :HeuristicCache, :OriginMtimeCheckType
2177
2191
 
2178
- def initialize(switch=nil, heuristiccache=nil)
2192
+ def initialize(switch=nil, heuristiccache=nil, originmtimechecktype=nil)
2179
2193
  @Switch = switch
2180
2194
  @HeuristicCache = heuristiccache
2195
+ @OriginMtimeCheckType = originmtimechecktype
2181
2196
  end
2182
2197
 
2183
2198
  def deserialize(params)
@@ -2186,6 +2201,7 @@ module TencentCloud
2186
2201
  @HeuristicCache = HeuristicCache.new
2187
2202
  @HeuristicCache.deserialize(params['HeuristicCache'])
2188
2203
  end
2204
+ @OriginMtimeCheckType = params['OriginMtimeCheckType']
2189
2205
  end
2190
2206
  end
2191
2207
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tencentcloud-sdk-cdn
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.914
4
+ version: 3.0.915
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tencent Cloud
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-09-25 00:00:00.000000000 Z
11
+ date: 2024-09-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common