tencentcloud-sdk-python-tcb 3.1.164__tar.gz → 3.1.166__tar.gz

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 (17) hide show
  1. {tencentcloud_sdk_python_tcb-3.1.164 → tencentcloud_sdk_python_tcb-3.1.166}/PKG-INFO +2 -2
  2. {tencentcloud_sdk_python_tcb-3.1.164 → tencentcloud_sdk_python_tcb-3.1.166}/setup.py +1 -1
  3. {tencentcloud_sdk_python_tcb-3.1.164 → tencentcloud_sdk_python_tcb-3.1.166}/tencentcloud/__init__.py +1 -1
  4. {tencentcloud_sdk_python_tcb-3.1.164 → tencentcloud_sdk_python_tcb-3.1.166}/tencentcloud/tcb/v20180608/errorcodes.py +6 -0
  5. {tencentcloud_sdk_python_tcb-3.1.164 → tencentcloud_sdk_python_tcb-3.1.166}/tencentcloud/tcb/v20180608/models.py +455 -3
  6. {tencentcloud_sdk_python_tcb-3.1.164 → tencentcloud_sdk_python_tcb-3.1.166}/tencentcloud/tcb/v20180608/tcb_client.py +1 -1
  7. {tencentcloud_sdk_python_tcb-3.1.164 → tencentcloud_sdk_python_tcb-3.1.166}/tencentcloud/tcb/v20180608/tcb_client_async.py +1 -1
  8. {tencentcloud_sdk_python_tcb-3.1.164 → tencentcloud_sdk_python_tcb-3.1.166}/tencentcloud_sdk_python_tcb.egg-info/PKG-INFO +2 -2
  9. tencentcloud_sdk_python_tcb-3.1.166/tencentcloud_sdk_python_tcb.egg-info/requires.txt +1 -0
  10. tencentcloud_sdk_python_tcb-3.1.164/tencentcloud_sdk_python_tcb.egg-info/requires.txt +0 -1
  11. {tencentcloud_sdk_python_tcb-3.1.164 → tencentcloud_sdk_python_tcb-3.1.166}/README.rst +0 -0
  12. {tencentcloud_sdk_python_tcb-3.1.164 → tencentcloud_sdk_python_tcb-3.1.166}/setup.cfg +0 -0
  13. {tencentcloud_sdk_python_tcb-3.1.164 → tencentcloud_sdk_python_tcb-3.1.166}/tencentcloud/tcb/__init__.py +0 -0
  14. {tencentcloud_sdk_python_tcb-3.1.164 → tencentcloud_sdk_python_tcb-3.1.166}/tencentcloud/tcb/v20180608/__init__.py +0 -0
  15. {tencentcloud_sdk_python_tcb-3.1.164 → tencentcloud_sdk_python_tcb-3.1.166}/tencentcloud_sdk_python_tcb.egg-info/SOURCES.txt +0 -0
  16. {tencentcloud_sdk_python_tcb-3.1.164 → tencentcloud_sdk_python_tcb-3.1.166}/tencentcloud_sdk_python_tcb.egg-info/dependency_links.txt +0 -0
  17. {tencentcloud_sdk_python_tcb-3.1.164 → tencentcloud_sdk_python_tcb-3.1.166}/tencentcloud_sdk_python_tcb.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: tencentcloud-sdk-python-tcb
3
- Version: 3.1.164
3
+ Version: 3.1.166
4
4
  Summary: Tencent Cloud Tcb SDK for Python
5
5
  Home-page: https://github.com/TencentCloud/tencentcloud-sdk-python
6
6
  Author: Tencent Cloud
@@ -15,7 +15,7 @@ Classifier: Programming Language :: Python :: 2.7
15
15
  Classifier: Programming Language :: Python :: 3
16
16
  Classifier: Programming Language :: Python :: 3.6
17
17
  Classifier: Programming Language :: Python :: 3.7
18
- Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.1.164
18
+ Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.1.166
19
19
 
20
20
  ============================
21
21
  Tencent Cloud SDK for Python
@@ -8,7 +8,7 @@ ROOT = os.path.dirname(__file__)
8
8
 
9
9
  setup(
10
10
  name='tencentcloud-sdk-python-tcb',
11
- install_requires=["tencentcloud-sdk-python-common>=3.1.164,<4.0.0"],
11
+ install_requires=["tencentcloud-sdk-python-common>=3.1.166,<4.0.0"],
12
12
 
13
13
  version=tencentcloud.__version__,
14
14
  description='Tencent Cloud Tcb SDK for Python',
@@ -14,4 +14,4 @@
14
14
  # limitations under the License.
15
15
 
16
16
 
17
- __version__ = '3.1.164'
17
+ __version__ = '3.1.166'
@@ -86,6 +86,9 @@ FAILEDOPERATION_SYNTAXERROR = 'FailedOperation.SyntaxError'
86
86
  # Instance is resuming, please try connecting again.
87
87
  FAILEDOPERATION_TDSQLPAUSED = 'FailedOperation.TdsqlPaused'
88
88
 
89
+ # 请求第三方服务,第三方服务返回报错信息
90
+ FAILEDOPERATION_THIRDSERVICEERROR = 'FailedOperation.ThirdServiceError'
91
+
89
92
  # FailedOperation.Timeout
90
93
  FAILEDOPERATION_TIMEOUT = 'FailedOperation.Timeout'
91
94
 
@@ -101,6 +104,9 @@ INTERNALERROR_DATABASE = 'InternalError.Database'
101
104
  # 系统内部异常。
102
105
  INTERNALERROR_SYS_ERR = 'InternalError.SYS_ERR'
103
106
 
107
+ # 服务超时。
108
+ INTERNALERROR_TIMEOUT = 'InternalError.Timeout'
109
+
104
110
  # 参数格式或类型错误,如 Uin、EnvId、Domain 缺失或非法。
105
111
  INVALIDPARAMETER = 'InvalidParameter'
106
112
 
@@ -15302,6 +15302,375 @@ class GetProvidersResponse(AbstractModel):
15302
15302
  self._RequestId = params.get("RequestId")
15303
15303
 
15304
15304
 
15305
+ class HTTPServiceCacheAction(AbstractModel):
15306
+ r"""HTTPService缓存动作(Type + 具体子字段的标签联合,Type 与被设置的子字段必须一一对应)
15307
+
15308
+ """
15309
+
15310
+ def __init__(self):
15311
+ r"""
15312
+ :param _Type: <p>HTTPService 缓存动作类型</p><p>枚举值:</p><ul><li>Cache: 节点缓存 + 浏览器缓存统一动作(节点秒数 CacheTime、浏览器秒数 MaxAgeTime)</li><li>CacheKey: 仅开启EO边缘加速通道下发</li></ul>
15313
+ :type Type: str
15314
+ :param _Cache: <p>节点缓存配置。Type=Cache 时必填</p>
15315
+ :type Cache: :class:`tencentcloud.tcb.v20180608.models.HTTPServiceCacheParams`
15316
+ :param _CacheKey: <p>自定义缓存键。Type=CacheKey 时必填</p>
15317
+ :type CacheKey: :class:`tencentcloud.tcb.v20180608.models.HTTPServiceCacheKeyParams`
15318
+ """
15319
+ self._Type = None
15320
+ self._Cache = None
15321
+ self._CacheKey = None
15322
+
15323
+ @property
15324
+ def Type(self):
15325
+ r"""<p>HTTPService 缓存动作类型</p><p>枚举值:</p><ul><li>Cache: 节点缓存 + 浏览器缓存统一动作(节点秒数 CacheTime、浏览器秒数 MaxAgeTime)</li><li>CacheKey: 仅开启EO边缘加速通道下发</li></ul>
15326
+ :rtype: str
15327
+ """
15328
+ return self._Type
15329
+
15330
+ @Type.setter
15331
+ def Type(self, Type):
15332
+ self._Type = Type
15333
+
15334
+ @property
15335
+ def Cache(self):
15336
+ r"""<p>节点缓存配置。Type=Cache 时必填</p>
15337
+ :rtype: :class:`tencentcloud.tcb.v20180608.models.HTTPServiceCacheParams`
15338
+ """
15339
+ return self._Cache
15340
+
15341
+ @Cache.setter
15342
+ def Cache(self, Cache):
15343
+ self._Cache = Cache
15344
+
15345
+ @property
15346
+ def CacheKey(self):
15347
+ r"""<p>自定义缓存键。Type=CacheKey 时必填</p>
15348
+ :rtype: :class:`tencentcloud.tcb.v20180608.models.HTTPServiceCacheKeyParams`
15349
+ """
15350
+ return self._CacheKey
15351
+
15352
+ @CacheKey.setter
15353
+ def CacheKey(self, CacheKey):
15354
+ self._CacheKey = CacheKey
15355
+
15356
+
15357
+ def _deserialize(self, params):
15358
+ self._Type = params.get("Type")
15359
+ if params.get("Cache") is not None:
15360
+ self._Cache = HTTPServiceCacheParams()
15361
+ self._Cache._deserialize(params.get("Cache"))
15362
+ if params.get("CacheKey") is not None:
15363
+ self._CacheKey = HTTPServiceCacheKeyParams()
15364
+ self._CacheKey._deserialize(params.get("CacheKey"))
15365
+ memeber_set = set(params.keys())
15366
+ for name, value in vars(self).items():
15367
+ property_name = name[1:]
15368
+ if property_name in memeber_set:
15369
+ memeber_set.remove(property_name)
15370
+ if len(memeber_set) > 0:
15371
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
15372
+
15373
+
15374
+
15375
+ class HTTPServiceCacheKeyParams(AbstractModel):
15376
+ r"""自定义缓存键参数。约束:FullURLCache=on 与 QueryStringSwitch=on 互斥
15377
+ 使用示例:
15378
+ - 整 URL 参与缓存键:{FullURLCache: "on", QueryStringSwitch: "off"}
15379
+ - URL 路径 + 仅保留 x/y:{FullURLCache: "off", QueryStringSwitch: "on", QueryStringAction: "includeCustom", QueryStringValues: ["x", "y"]}
15380
+ - URL 路径 + 忽略 debug:{FullURLCache: "off", QueryStringSwitch: "on", QueryStringAction: "excludeCustom", QueryStringValues: ["debug"]}
15381
+
15382
+ """
15383
+
15384
+ def __init__(self):
15385
+ r"""
15386
+ :param _FullURLCache: <p>全 URL 缓存开关</p><p>枚举值:</p><ul><li>on: 开启</li><li>off: 关闭</li></ul>
15387
+ :type FullURLCache: str
15388
+ :param _QueryStringSwitch: <p>查询参数是否参与缓存键</p><p>枚举值:</p><ul><li>on: 开启</li><li>off: 关闭</li></ul>
15389
+ :type QueryStringSwitch: str
15390
+ :param _QueryStringAction: <p>QueryStringSwitch=on 时必填</p><p>枚举值:</p><ul><li>includeCustom: 白名单</li><li>excludeCustom: 黑名单</li></ul>
15391
+ :type QueryStringAction: str
15392
+ :param _QueryStringValues: <p>参数名列表</p><p>入参限制:最多 100 项,单项 1~128 字节</p>
15393
+ :type QueryStringValues: list of str
15394
+ """
15395
+ self._FullURLCache = None
15396
+ self._QueryStringSwitch = None
15397
+ self._QueryStringAction = None
15398
+ self._QueryStringValues = None
15399
+
15400
+ @property
15401
+ def FullURLCache(self):
15402
+ r"""<p>全 URL 缓存开关</p><p>枚举值:</p><ul><li>on: 开启</li><li>off: 关闭</li></ul>
15403
+ :rtype: str
15404
+ """
15405
+ return self._FullURLCache
15406
+
15407
+ @FullURLCache.setter
15408
+ def FullURLCache(self, FullURLCache):
15409
+ self._FullURLCache = FullURLCache
15410
+
15411
+ @property
15412
+ def QueryStringSwitch(self):
15413
+ r"""<p>查询参数是否参与缓存键</p><p>枚举值:</p><ul><li>on: 开启</li><li>off: 关闭</li></ul>
15414
+ :rtype: str
15415
+ """
15416
+ return self._QueryStringSwitch
15417
+
15418
+ @QueryStringSwitch.setter
15419
+ def QueryStringSwitch(self, QueryStringSwitch):
15420
+ self._QueryStringSwitch = QueryStringSwitch
15421
+
15422
+ @property
15423
+ def QueryStringAction(self):
15424
+ r"""<p>QueryStringSwitch=on 时必填</p><p>枚举值:</p><ul><li>includeCustom: 白名单</li><li>excludeCustom: 黑名单</li></ul>
15425
+ :rtype: str
15426
+ """
15427
+ return self._QueryStringAction
15428
+
15429
+ @QueryStringAction.setter
15430
+ def QueryStringAction(self, QueryStringAction):
15431
+ self._QueryStringAction = QueryStringAction
15432
+
15433
+ @property
15434
+ def QueryStringValues(self):
15435
+ r"""<p>参数名列表</p><p>入参限制:最多 100 项,单项 1~128 字节</p>
15436
+ :rtype: list of str
15437
+ """
15438
+ return self._QueryStringValues
15439
+
15440
+ @QueryStringValues.setter
15441
+ def QueryStringValues(self, QueryStringValues):
15442
+ self._QueryStringValues = QueryStringValues
15443
+
15444
+
15445
+ def _deserialize(self, params):
15446
+ self._FullURLCache = params.get("FullURLCache")
15447
+ self._QueryStringSwitch = params.get("QueryStringSwitch")
15448
+ self._QueryStringAction = params.get("QueryStringAction")
15449
+ self._QueryStringValues = params.get("QueryStringValues")
15450
+ memeber_set = set(params.keys())
15451
+ for name, value in vars(self).items():
15452
+ property_name = name[1:]
15453
+ if property_name in memeber_set:
15454
+ memeber_set.remove(property_name)
15455
+ if len(memeber_set) > 0:
15456
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
15457
+
15458
+
15459
+
15460
+ class HTTPServiceCacheParams(AbstractModel):
15461
+ r"""HTTPService 缓存参数(节点缓存 + 浏览器缓存共用行为模式)。
15462
+ FollowOrigin / NoCache / (CacheTime||MaxAgeTime) 三者互斥,必须开启其一:
15463
+ - FollowOrigin=true:节点与浏览器缓存均遵循源站;
15464
+ - NoCache=true:节点与浏览器缓存均不缓存(Cache-Control: no-cache);
15465
+ - CacheTime>0 或 MaxAgeTime>0:至少设置其一,分别控制节点、浏览器缓存秒数,可独立设置。
15466
+
15467
+ """
15468
+
15469
+ def __init__(self):
15470
+ r"""
15471
+ :param _FollowOrigin: <p>遵循源站</p>
15472
+ :type FollowOrigin: bool
15473
+ :param _NoCache: <p>不缓存</p>
15474
+ :type NoCache: bool
15475
+ :param _CacheTime: <p>自定义缓存时间(秒)</p><p>取值范围:[0, 31536000]</p><p>单位:秒</p>
15476
+ :type CacheTime: int
15477
+ :param _MaxAgeTime: <p>浏览器缓存秒数(对应 max-age)</p><p>取值范围:[0, 31536000]</p><p>单位:秒</p>
15478
+ :type MaxAgeTime: int
15479
+ """
15480
+ self._FollowOrigin = None
15481
+ self._NoCache = None
15482
+ self._CacheTime = None
15483
+ self._MaxAgeTime = None
15484
+
15485
+ @property
15486
+ def FollowOrigin(self):
15487
+ r"""<p>遵循源站</p>
15488
+ :rtype: bool
15489
+ """
15490
+ return self._FollowOrigin
15491
+
15492
+ @FollowOrigin.setter
15493
+ def FollowOrigin(self, FollowOrigin):
15494
+ self._FollowOrigin = FollowOrigin
15495
+
15496
+ @property
15497
+ def NoCache(self):
15498
+ r"""<p>不缓存</p>
15499
+ :rtype: bool
15500
+ """
15501
+ return self._NoCache
15502
+
15503
+ @NoCache.setter
15504
+ def NoCache(self, NoCache):
15505
+ self._NoCache = NoCache
15506
+
15507
+ @property
15508
+ def CacheTime(self):
15509
+ r"""<p>自定义缓存时间(秒)</p><p>取值范围:[0, 31536000]</p><p>单位:秒</p>
15510
+ :rtype: int
15511
+ """
15512
+ return self._CacheTime
15513
+
15514
+ @CacheTime.setter
15515
+ def CacheTime(self, CacheTime):
15516
+ self._CacheTime = CacheTime
15517
+
15518
+ @property
15519
+ def MaxAgeTime(self):
15520
+ r"""<p>浏览器缓存秒数(对应 max-age)</p><p>取值范围:[0, 31536000]</p><p>单位:秒</p>
15521
+ :rtype: int
15522
+ """
15523
+ return self._MaxAgeTime
15524
+
15525
+ @MaxAgeTime.setter
15526
+ def MaxAgeTime(self, MaxAgeTime):
15527
+ self._MaxAgeTime = MaxAgeTime
15528
+
15529
+
15530
+ def _deserialize(self, params):
15531
+ self._FollowOrigin = params.get("FollowOrigin")
15532
+ self._NoCache = params.get("NoCache")
15533
+ self._CacheTime = params.get("CacheTime")
15534
+ self._MaxAgeTime = params.get("MaxAgeTime")
15535
+ memeber_set = set(params.keys())
15536
+ for name, value in vars(self).items():
15537
+ property_name = name[1:]
15538
+ if property_name in memeber_set:
15539
+ memeber_set.remove(property_name)
15540
+ if len(memeber_set) > 0:
15541
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
15542
+
15543
+
15544
+
15545
+ class HTTPServiceCacheRule(AbstractModel):
15546
+ r"""HTTPService 缓存规则条目
15547
+
15548
+ """
15549
+
15550
+ def __init__(self):
15551
+ r"""
15552
+ :param _Description: <p>自定义描述,最多 128 字节</p>
15553
+ :type Description: str
15554
+ :param _Enable: <p>规则开关:nil/true 启用,false 禁用</p>
15555
+ :type Enable: bool
15556
+ :param _Condition: <p>HTTPService 规则匹配条件(必填)</p>
15557
+ :type Condition: :class:`tencentcloud.tcb.v20180608.models.HTTPServiceRuleCondition`
15558
+ :param _Actions: <p>HTTPService 缓存动作列表,同一规则内相同 Type 至多一个</p>
15559
+ :type Actions: list of HTTPServiceCacheAction
15560
+ """
15561
+ self._Description = None
15562
+ self._Enable = None
15563
+ self._Condition = None
15564
+ self._Actions = None
15565
+
15566
+ @property
15567
+ def Description(self):
15568
+ r"""<p>自定义描述,最多 128 字节</p>
15569
+ :rtype: str
15570
+ """
15571
+ return self._Description
15572
+
15573
+ @Description.setter
15574
+ def Description(self, Description):
15575
+ self._Description = Description
15576
+
15577
+ @property
15578
+ def Enable(self):
15579
+ r"""<p>规则开关:nil/true 启用,false 禁用</p>
15580
+ :rtype: bool
15581
+ """
15582
+ return self._Enable
15583
+
15584
+ @Enable.setter
15585
+ def Enable(self, Enable):
15586
+ self._Enable = Enable
15587
+
15588
+ @property
15589
+ def Condition(self):
15590
+ r"""<p>HTTPService 规则匹配条件(必填)</p>
15591
+ :rtype: :class:`tencentcloud.tcb.v20180608.models.HTTPServiceRuleCondition`
15592
+ """
15593
+ return self._Condition
15594
+
15595
+ @Condition.setter
15596
+ def Condition(self, Condition):
15597
+ self._Condition = Condition
15598
+
15599
+ @property
15600
+ def Actions(self):
15601
+ r"""<p>HTTPService 缓存动作列表,同一规则内相同 Type 至多一个</p>
15602
+ :rtype: list of HTTPServiceCacheAction
15603
+ """
15604
+ return self._Actions
15605
+
15606
+ @Actions.setter
15607
+ def Actions(self, Actions):
15608
+ self._Actions = Actions
15609
+
15610
+
15611
+ def _deserialize(self, params):
15612
+ self._Description = params.get("Description")
15613
+ self._Enable = params.get("Enable")
15614
+ if params.get("Condition") is not None:
15615
+ self._Condition = HTTPServiceRuleCondition()
15616
+ self._Condition._deserialize(params.get("Condition"))
15617
+ if params.get("Actions") is not None:
15618
+ self._Actions = []
15619
+ for item in params.get("Actions"):
15620
+ obj = HTTPServiceCacheAction()
15621
+ obj._deserialize(item)
15622
+ self._Actions.append(obj)
15623
+ memeber_set = set(params.keys())
15624
+ for name, value in vars(self).items():
15625
+ property_name = name[1:]
15626
+ if property_name in memeber_set:
15627
+ memeber_set.remove(property_name)
15628
+ if len(memeber_set) > 0:
15629
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
15630
+
15631
+
15632
+
15633
+ class HTTPServiceCacheSet(AbstractModel):
15634
+ r"""HTTPService 缓存配置(域名维度)
15635
+
15636
+ """
15637
+
15638
+ def __init__(self):
15639
+ r"""
15640
+ :param _Rules: <p>HTTPService 缓存配置列表。Rules 按数组顺序为优先级顺序,Rules[n-1] 优先级最高</p>
15641
+ :type Rules: list of HTTPServiceCacheRule
15642
+ """
15643
+ self._Rules = None
15644
+
15645
+ @property
15646
+ def Rules(self):
15647
+ r"""<p>HTTPService 缓存配置列表。Rules 按数组顺序为优先级顺序,Rules[n-1] 优先级最高</p>
15648
+ :rtype: list of HTTPServiceCacheRule
15649
+ """
15650
+ return self._Rules
15651
+
15652
+ @Rules.setter
15653
+ def Rules(self, Rules):
15654
+ self._Rules = Rules
15655
+
15656
+
15657
+ def _deserialize(self, params):
15658
+ if params.get("Rules") is not None:
15659
+ self._Rules = []
15660
+ for item in params.get("Rules"):
15661
+ obj = HTTPServiceCacheRule()
15662
+ obj._deserialize(item)
15663
+ self._Rules.append(obj)
15664
+ memeber_set = set(params.keys())
15665
+ for name, value in vars(self).items():
15666
+ property_name = name[1:]
15667
+ if property_name in memeber_set:
15668
+ memeber_set.remove(property_name)
15669
+ if len(memeber_set) > 0:
15670
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
15671
+
15672
+
15673
+
15305
15674
  class HTTPServiceDomain(AbstractModel):
15306
15675
  r"""查询HTTP访问服务输出的域名信息,每个域名内包含所有路由信息
15307
15676
 
@@ -15704,20 +16073,23 @@ class HTTPServiceDomainParam(AbstractModel):
15704
16073
 
15705
16074
 
15706
16075
  class HTTPServiceExtension(AbstractModel):
15707
- r"""HTTP访问服务路由扩展字段
16076
+ r"""HTTPService 路由扩展字段
15708
16077
 
15709
16078
  """
15710
16079
 
15711
16080
  def __init__(self):
15712
16081
  r"""
15713
- :param _HeadersHandler: 添加请求头列表
16082
+ :param _HeadersHandler: <p>添加请求头列表</p>
15714
16083
  :type HeadersHandler: :class:`tencentcloud.tcb.v20180608.models.HTTPServiceHeadersHandler`
16084
+ :param _Cache: <p>HTTPService 缓存配置,包含Cache 节点缓存 / MaxAge 浏览器缓存 / CacheKey 自定义缓存键</p>
16085
+ :type Cache: :class:`tencentcloud.tcb.v20180608.models.HTTPServiceCacheSet`
15715
16086
  """
15716
16087
  self._HeadersHandler = None
16088
+ self._Cache = None
15717
16089
 
15718
16090
  @property
15719
16091
  def HeadersHandler(self):
15720
- r"""添加请求头列表
16092
+ r"""<p>添加请求头列表</p>
15721
16093
  :rtype: :class:`tencentcloud.tcb.v20180608.models.HTTPServiceHeadersHandler`
15722
16094
  """
15723
16095
  return self._HeadersHandler
@@ -15726,11 +16098,25 @@ class HTTPServiceExtension(AbstractModel):
15726
16098
  def HeadersHandler(self, HeadersHandler):
15727
16099
  self._HeadersHandler = HeadersHandler
15728
16100
 
16101
+ @property
16102
+ def Cache(self):
16103
+ r"""<p>HTTPService 缓存配置,包含Cache 节点缓存 / MaxAge 浏览器缓存 / CacheKey 自定义缓存键</p>
16104
+ :rtype: :class:`tencentcloud.tcb.v20180608.models.HTTPServiceCacheSet`
16105
+ """
16106
+ return self._Cache
16107
+
16108
+ @Cache.setter
16109
+ def Cache(self, Cache):
16110
+ self._Cache = Cache
16111
+
15729
16112
 
15730
16113
  def _deserialize(self, params):
15731
16114
  if params.get("HeadersHandler") is not None:
15732
16115
  self._HeadersHandler = HTTPServiceHeadersHandler()
15733
16116
  self._HeadersHandler._deserialize(params.get("HeadersHandler"))
16117
+ if params.get("Cache") is not None:
16118
+ self._Cache = HTTPServiceCacheSet()
16119
+ self._Cache._deserialize(params.get("Cache"))
15734
16120
  memeber_set = set(params.keys())
15735
16121
  for name, value in vars(self).items():
15736
16122
  property_name = name[1:]
@@ -16422,6 +16808,72 @@ class HTTPServiceRouteQPSPolicy(AbstractModel):
16422
16808
 
16423
16809
 
16424
16810
 
16811
+ class HTTPServiceRuleCondition(AbstractModel):
16812
+ r"""HTTPService缓存规则匹配条件(必填)
16813
+
16814
+ """
16815
+
16816
+ def __init__(self):
16817
+ r"""
16818
+ :param _Target: <p>Target 匹配对象</p><p>枚举值:</p><ul><li>url_path: 请求 URI 路径(不含查询串),例:/static/logo.jpg</li><li>file_extension: 请求文件扩展名(EO 从 path 中解析),例:jpg</li><li>full_uri: 完整 URI(路径 + 查询串),例:/download?type=hd</li></ul>
16819
+ :type Target: str
16820
+ :param _MatchType: <p>MatchType 字符串匹配类型</p><p>枚举值:</p><ul><li>prefix: 前缀匹配</li><li>suffix: 后缀匹配</li><li>contains: 包含匹配</li><li>exact: 精确匹配</li></ul>
16821
+ :type MatchType: str
16822
+ :param _Values: <p>Values 匹配值集合,Values 内任一命中即认为条件成立(OR 语义)</p><p>入参限制:单项 1~1024 字节,最多 100 条</p>
16823
+ :type Values: list of str
16824
+ """
16825
+ self._Target = None
16826
+ self._MatchType = None
16827
+ self._Values = None
16828
+
16829
+ @property
16830
+ def Target(self):
16831
+ r"""<p>Target 匹配对象</p><p>枚举值:</p><ul><li>url_path: 请求 URI 路径(不含查询串),例:/static/logo.jpg</li><li>file_extension: 请求文件扩展名(EO 从 path 中解析),例:jpg</li><li>full_uri: 完整 URI(路径 + 查询串),例:/download?type=hd</li></ul>
16832
+ :rtype: str
16833
+ """
16834
+ return self._Target
16835
+
16836
+ @Target.setter
16837
+ def Target(self, Target):
16838
+ self._Target = Target
16839
+
16840
+ @property
16841
+ def MatchType(self):
16842
+ r"""<p>MatchType 字符串匹配类型</p><p>枚举值:</p><ul><li>prefix: 前缀匹配</li><li>suffix: 后缀匹配</li><li>contains: 包含匹配</li><li>exact: 精确匹配</li></ul>
16843
+ :rtype: str
16844
+ """
16845
+ return self._MatchType
16846
+
16847
+ @MatchType.setter
16848
+ def MatchType(self, MatchType):
16849
+ self._MatchType = MatchType
16850
+
16851
+ @property
16852
+ def Values(self):
16853
+ r"""<p>Values 匹配值集合,Values 内任一命中即认为条件成立(OR 语义)</p><p>入参限制:单项 1~1024 字节,最多 100 条</p>
16854
+ :rtype: list of str
16855
+ """
16856
+ return self._Values
16857
+
16858
+ @Values.setter
16859
+ def Values(self, Values):
16860
+ self._Values = Values
16861
+
16862
+
16863
+ def _deserialize(self, params):
16864
+ self._Target = params.get("Target")
16865
+ self._MatchType = params.get("MatchType")
16866
+ self._Values = params.get("Values")
16867
+ memeber_set = set(params.keys())
16868
+ for name, value in vars(self).items():
16869
+ property_name = name[1:]
16870
+ if property_name in memeber_set:
16871
+ memeber_set.remove(property_name)
16872
+ if len(memeber_set) > 0:
16873
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
16874
+
16875
+
16876
+
16425
16877
  class HpaPolicy(AbstractModel):
16426
16878
  r"""扩缩容策略
16427
16879
 
@@ -1380,7 +1380,7 @@ class TcbClient(AbstractClient):
1380
1380
 
1381
1381
 
1382
1382
  def DescribeHTTPServiceRoute(self, request):
1383
- r"""本接口DescribeHTTPServiceRoute用于查询环境下HTTP访问服务路由信息。可通过Filters过滤。如果不存在不会返回错误。HTTP访问服务提供了默认域名,通过本接口可直接获取默认域名。
1383
+ r"""本接口DescribeHTTPServiceRoute用于查询环境下HTTP访问服务路由信息。可通过Filters过滤。如果不存在不会返回错误。HTTP访问服务提供了默认域名,通过本接口可直接获取默认域名。前置需已开通 HTTP 访问服务;调用CreateHTTPServiceRoute或者ModifyHTTPServiceRoute后可使用本接口查询创建或者修改结果
1384
1384
 
1385
1385
  :param request: Request instance for DescribeHTTPServiceRoute.
1386
1386
  :type request: :class:`tencentcloud.tcb.v20180608.models.DescribeHTTPServiceRouteRequest`
@@ -1109,7 +1109,7 @@ class TcbClient(AbstractClient):
1109
1109
  opts: Dict = None,
1110
1110
  ) -> models.DescribeHTTPServiceRouteResponse:
1111
1111
  """
1112
- 本接口DescribeHTTPServiceRoute用于查询环境下HTTP访问服务路由信息。可通过Filters过滤。如果不存在不会返回错误。HTTP访问服务提供了默认域名,通过本接口可直接获取默认域名。
1112
+ 本接口DescribeHTTPServiceRoute用于查询环境下HTTP访问服务路由信息。可通过Filters过滤。如果不存在不会返回错误。HTTP访问服务提供了默认域名,通过本接口可直接获取默认域名。前置需已开通 HTTP 访问服务;调用CreateHTTPServiceRoute或者ModifyHTTPServiceRoute后可使用本接口查询创建或者修改结果
1113
1113
  """
1114
1114
 
1115
1115
  kwargs = {}
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: tencentcloud-sdk-python-tcb
3
- Version: 3.1.164
3
+ Version: 3.1.166
4
4
  Summary: Tencent Cloud Tcb SDK for Python
5
5
  Home-page: https://github.com/TencentCloud/tencentcloud-sdk-python
6
6
  Author: Tencent Cloud
@@ -15,7 +15,7 @@ Classifier: Programming Language :: Python :: 2.7
15
15
  Classifier: Programming Language :: Python :: 3
16
16
  Classifier: Programming Language :: Python :: 3.6
17
17
  Classifier: Programming Language :: Python :: 3.7
18
- Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.1.164
18
+ Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.1.166
19
19
 
20
20
  ============================
21
21
  Tencent Cloud SDK for Python
@@ -0,0 +1 @@
1
+ tencentcloud-sdk-python-common<4.0.0,>=3.1.166
@@ -1 +0,0 @@
1
- tencentcloud-sdk-python-common<4.0.0,>=3.1.164