tencentcloud-sdk-python-tcb 3.1.162__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.162 → tencentcloud_sdk_python_tcb-3.1.166}/PKG-INFO +2 -2
  2. {tencentcloud_sdk_python_tcb-3.1.162 → tencentcloud_sdk_python_tcb-3.1.166}/setup.py +1 -1
  3. {tencentcloud_sdk_python_tcb-3.1.162 → tencentcloud_sdk_python_tcb-3.1.166}/tencentcloud/__init__.py +1 -1
  4. {tencentcloud_sdk_python_tcb-3.1.162 → tencentcloud_sdk_python_tcb-3.1.166}/tencentcloud/tcb/v20180608/errorcodes.py +6 -0
  5. {tencentcloud_sdk_python_tcb-3.1.162 → tencentcloud_sdk_python_tcb-3.1.166}/tencentcloud/tcb/v20180608/models.py +581 -23
  6. {tencentcloud_sdk_python_tcb-3.1.162 → tencentcloud_sdk_python_tcb-3.1.166}/tencentcloud/tcb/v20180608/tcb_client.py +1 -1
  7. {tencentcloud_sdk_python_tcb-3.1.162 → tencentcloud_sdk_python_tcb-3.1.166}/tencentcloud/tcb/v20180608/tcb_client_async.py +1 -1
  8. {tencentcloud_sdk_python_tcb-3.1.162 → 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.162/tencentcloud_sdk_python_tcb.egg-info/requires.txt +0 -1
  11. {tencentcloud_sdk_python_tcb-3.1.162 → tencentcloud_sdk_python_tcb-3.1.166}/README.rst +0 -0
  12. {tencentcloud_sdk_python_tcb-3.1.162 → tencentcloud_sdk_python_tcb-3.1.166}/setup.cfg +0 -0
  13. {tencentcloud_sdk_python_tcb-3.1.162 → tencentcloud_sdk_python_tcb-3.1.166}/tencentcloud/tcb/__init__.py +0 -0
  14. {tencentcloud_sdk_python_tcb-3.1.162 → tencentcloud_sdk_python_tcb-3.1.166}/tencentcloud/tcb/v20180608/__init__.py +0 -0
  15. {tencentcloud_sdk_python_tcb-3.1.162 → tencentcloud_sdk_python_tcb-3.1.166}/tencentcloud_sdk_python_tcb.egg-info/SOURCES.txt +0 -0
  16. {tencentcloud_sdk_python_tcb-3.1.162 → 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.162 → 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.162
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.162
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.162,<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.162'
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
 
@@ -18510,20 +18962,23 @@ class MgoKeySchema(AbstractModel):
18510
18962
 
18511
18963
  def __init__(self):
18512
18964
  r"""
18513
- :param _MgoIndexKeys: 索引字段
18965
+ :param _MgoIndexKeys: <p>索引字段</p>
18514
18966
  :type MgoIndexKeys: list of MgoIndexKeys
18515
- :param _MgoIsUnique: 是否唯一索引
18967
+ :param _MgoIsUnique: <p>是否唯一索引</p>
18516
18968
  :type MgoIsUnique: bool
18517
- :param _MgoIsSparse: 是否稀疏索引
18969
+ :param _MgoIsSparse: <p>是否稀疏索引</p>
18518
18970
  :type MgoIsSparse: bool
18971
+ :param _PartialFilterExpression: <p>稀疏索引表达式</p>
18972
+ :type PartialFilterExpression: str
18519
18973
  """
18520
18974
  self._MgoIndexKeys = None
18521
18975
  self._MgoIsUnique = None
18522
18976
  self._MgoIsSparse = None
18977
+ self._PartialFilterExpression = None
18523
18978
 
18524
18979
  @property
18525
18980
  def MgoIndexKeys(self):
18526
- r"""索引字段
18981
+ r"""<p>索引字段</p>
18527
18982
  :rtype: list of MgoIndexKeys
18528
18983
  """
18529
18984
  return self._MgoIndexKeys
@@ -18534,7 +18989,7 @@ class MgoKeySchema(AbstractModel):
18534
18989
 
18535
18990
  @property
18536
18991
  def MgoIsUnique(self):
18537
- r"""是否唯一索引
18992
+ r"""<p>是否唯一索引</p>
18538
18993
  :rtype: bool
18539
18994
  """
18540
18995
  return self._MgoIsUnique
@@ -18545,7 +19000,7 @@ class MgoKeySchema(AbstractModel):
18545
19000
 
18546
19001
  @property
18547
19002
  def MgoIsSparse(self):
18548
- r"""是否稀疏索引
19003
+ r"""<p>是否稀疏索引</p>
18549
19004
  :rtype: bool
18550
19005
  """
18551
19006
  return self._MgoIsSparse
@@ -18554,6 +19009,17 @@ class MgoKeySchema(AbstractModel):
18554
19009
  def MgoIsSparse(self, MgoIsSparse):
18555
19010
  self._MgoIsSparse = MgoIsSparse
18556
19011
 
19012
+ @property
19013
+ def PartialFilterExpression(self):
19014
+ r"""<p>稀疏索引表达式</p>
19015
+ :rtype: str
19016
+ """
19017
+ return self._PartialFilterExpression
19018
+
19019
+ @PartialFilterExpression.setter
19020
+ def PartialFilterExpression(self, PartialFilterExpression):
19021
+ self._PartialFilterExpression = PartialFilterExpression
19022
+
18557
19023
 
18558
19024
  def _deserialize(self, params):
18559
19025
  if params.get("MgoIndexKeys") is not None:
@@ -18564,6 +19030,7 @@ class MgoKeySchema(AbstractModel):
18564
19030
  self._MgoIndexKeys.append(obj)
18565
19031
  self._MgoIsUnique = params.get("MgoIsUnique")
18566
19032
  self._MgoIsSparse = params.get("MgoIsSparse")
19033
+ self._PartialFilterExpression = params.get("PartialFilterExpression")
18567
19034
  memeber_set = set(params.keys())
18568
19035
  for name, value in vars(self).items():
18569
19036
  property_name = name[1:]
@@ -23775,6 +24242,44 @@ class RunSqlResponse(AbstractModel):
23775
24242
  self._RequestId = params.get("RequestId")
23776
24243
 
23777
24244
 
24245
+ class SMSCloudFunctionConfig(AbstractModel):
24246
+ r"""云函数短信通道配置。适用于第三方短信服务商场景:用户在环境下部署名为 SendVerificationCode 的云函数,平台在发送验证码时调用该函数,函数体内由用户自行调用任意短信服务商 SDK 完成下发。
24247
+
24248
+ """
24249
+
24250
+ def __init__(self):
24251
+ r"""
24252
+ :param _FunctionName: <p>发送验证码的云函数名,当前仅支持 SendVerificationCode。</p><p>函数入参:</p><ul><li>Mobile:字符串(手机号,连续 E.164 格式,如 +8613800000000)</li><li>VerificationCode:字符串(验证码,如 123456)</li></ul><p>函数返回值:</p><ul><li>ErrorCode:int(0 表示成功,非 0 表示失败)</li><li>ErrorMessage:字符串(ErrorCode 非 0 时返回错误信息)</li></ul>
24253
+ 注意:此字段可能返回 null,表示取不到有效值。
24254
+ :type FunctionName: str
24255
+ """
24256
+ self._FunctionName = None
24257
+
24258
+ @property
24259
+ def FunctionName(self):
24260
+ r"""<p>发送验证码的云函数名,当前仅支持 SendVerificationCode。</p><p>函数入参:</p><ul><li>Mobile:字符串(手机号,连续 E.164 格式,如 +8613800000000)</li><li>VerificationCode:字符串(验证码,如 123456)</li></ul><p>函数返回值:</p><ul><li>ErrorCode:int(0 表示成功,非 0 表示失败)</li><li>ErrorMessage:字符串(ErrorCode 非 0 时返回错误信息)</li></ul>
24261
+ 注意:此字段可能返回 null,表示取不到有效值。
24262
+ :rtype: str
24263
+ """
24264
+ return self._FunctionName
24265
+
24266
+ @FunctionName.setter
24267
+ def FunctionName(self, FunctionName):
24268
+ self._FunctionName = FunctionName
24269
+
24270
+
24271
+ def _deserialize(self, params):
24272
+ self._FunctionName = params.get("FunctionName")
24273
+ memeber_set = set(params.keys())
24274
+ for name, value in vars(self).items():
24275
+ property_name = name[1:]
24276
+ if property_name in memeber_set:
24277
+ memeber_set.remove(property_name)
24278
+ if len(memeber_set) > 0:
24279
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
24280
+
24281
+
24282
+
23778
24283
  class SMSProviderTemplateConfig(AbstractModel):
23779
24284
  r"""自定义短信服务商模板配置
23780
24285
 
@@ -23794,6 +24299,9 @@ class SMSProviderTemplateConfig(AbstractModel):
23794
24299
  :param _SignName: <p>短信服务商侧申请并审核通过的签名,按照服务商的文档和要求填写。</p><ul><li>腾讯云短信服务商,签名信息可前往 <a href="https://console.cloud.tencent.com/smsv2/csms-sign">国内短信</a> 或 <a href="https://console.cloud.tencent.com/smsv2/isms-sign">国际/港澳台短信</a> 的签名管理查看。<br> 注意:<ol><li>发送国内短信该参数必填,且需填写签名内容而非签名ID。</li><li>发送国际/港澳台短信该参数非必填。</li></ol></li></ul>
23795
24300
  注意:此字段可能返回 null,表示取不到有效值。
23796
24301
  :type SignName: str
24302
+ :param _AuthType: <p>凭证获取方式,不传默认为 SMS_AUTH_SECRET_KEY。</p><p>枚举值:</p><ul><li>SMS_AUTH_SECRET_KEY: 密钥授权,适用于跨账号腾讯云短信 / 其它厂商短信,AK/SK 加密托管至云开发平台控制台—扩展功能—授权管理</li><li>SMS_AUTH_ASSUME_ROLE: 策略授权(角色扮演),适用于同账号腾讯云短信,需预先将短信预设策略 QcloudSMSFullAccess 授权给云开发服务角色,平台以临时凭证代发,不保存任何长期密钥。选择该方式时 SecretId / SecretKey / CredentialAuthKeyId 必须为空</li></ul><p>枚举值:</p><ul><li>SMS_AUTH_SECRET_KEY: 密钥授权,适用于跨账号腾讯云短信 / 其它厂商短信,AK/SK 加密托管至云开发平台控制台—扩展功能—授权管理</li><li>SMS_AUTH_ASSUME_ROLE: 策略授权(角色扮演),适用于同账号腾讯云短信,需预先将短信预设策略 QcloudSMSFullAccess 授权给云开发服务角色,平台以临时凭证代发,不保存任何长期密钥。选择该方式时 SecretId / SecretKey / CredentialAuthKeyId 必须为空</li></ul><p>默认值:SMS_AUTH_SECRET_KEY</p>
24303
+ 注意:此字段可能返回 null,表示取不到有效值。
24304
+ :type AuthType: str
23797
24305
  :param _SecretId: <p>调用短信服务商发送短信接口的调用秘钥对应的ID。</p><ul><li>调用api秘钥会保存在云开发平台控制台—扩展功能—授权管理中,如果对于短信调用的api秘钥有删除需求,可在此处进行删除,删除后,短信将无法正常发送。</li><li>腾讯云的调用api秘钥在腾讯云控制台获取,建议使用子账号的秘钥ID,并且按照最小权限配置。</li></ul>
23798
24306
  注意:此字段可能返回 null,表示取不到有效值。
23799
24307
  :type SecretId: str
@@ -23806,15 +24314,20 @@ class SMSProviderTemplateConfig(AbstractModel):
23806
24314
  :param _TemplateExtendParam: <p>当短信自定义模板含多个占位符时,平台只负责生成验证码值,其余占位符由调用方在此提供。</p><ul><li>无需提供验证码对应的占位的值,验证码由云开发平台侧生成。</li><li>如果是命名占位的服务商的短信模板,这里的参数按照需要对应的占位的key和value,会按照对应的key和value在发送短信时,填充到模板中。</li><li>如果是序号占位的服务商的短信模板,这里的参数不需要key, 只需要填写对应的value, 会按照填写的顺序依次填充到模板中。</li></ul>
23807
24315
  注意:此字段可能返回 null,表示取不到有效值。
23808
24316
  :type TemplateExtendParam: list of SMSTemplateParams
24317
+ :param _CredentialAuthKeyId: <p>授权管理中密钥的自定义标识(创建 / 引用二合一),与 SecretId / SecretKey 组合决定行为:</p><ul><li>非空 + 带 SecretId/SecretKey → 以该标识创建新密钥;标识已存在时报错(keyID already exists)</li><li>非空 + 不带 SecretId/SecretKey → 引用授权管理中已存在的密钥(需归属当前环境)</li><li>空 + 带 SecretId/SecretKey → 使用平台按服务商生成的固定标识,覆盖更新(存量兼容)</li><li>空 + 不带 SecretId/SecretKey → 不修改密钥,沿用既有配置</li></ul><p>AuthType 为 SMS_AUTH_ASSUME_ROLE 时此参数必须为空。</p>
24318
+ 注意:此字段可能返回 null,表示取不到有效值。
24319
+ :type CredentialAuthKeyId: str
23809
24320
  """
23810
24321
  self._Vendor = None
23811
24322
  self._TemplateId = None
23812
24323
  self._SdkAppId = None
23813
24324
  self._SignName = None
24325
+ self._AuthType = None
23814
24326
  self._SecretId = None
23815
24327
  self._SecretKey = None
23816
24328
  self._SenderId = None
23817
24329
  self._TemplateExtendParam = None
24330
+ self._CredentialAuthKeyId = None
23818
24331
 
23819
24332
  @property
23820
24333
  def Vendor(self):
@@ -23864,6 +24377,18 @@ class SMSProviderTemplateConfig(AbstractModel):
23864
24377
  def SignName(self, SignName):
23865
24378
  self._SignName = SignName
23866
24379
 
24380
+ @property
24381
+ def AuthType(self):
24382
+ r"""<p>凭证获取方式,不传默认为 SMS_AUTH_SECRET_KEY。</p><p>枚举值:</p><ul><li>SMS_AUTH_SECRET_KEY: 密钥授权,适用于跨账号腾讯云短信 / 其它厂商短信,AK/SK 加密托管至云开发平台控制台—扩展功能—授权管理</li><li>SMS_AUTH_ASSUME_ROLE: 策略授权(角色扮演),适用于同账号腾讯云短信,需预先将短信预设策略 QcloudSMSFullAccess 授权给云开发服务角色,平台以临时凭证代发,不保存任何长期密钥。选择该方式时 SecretId / SecretKey / CredentialAuthKeyId 必须为空</li></ul><p>枚举值:</p><ul><li>SMS_AUTH_SECRET_KEY: 密钥授权,适用于跨账号腾讯云短信 / 其它厂商短信,AK/SK 加密托管至云开发平台控制台—扩展功能—授权管理</li><li>SMS_AUTH_ASSUME_ROLE: 策略授权(角色扮演),适用于同账号腾讯云短信,需预先将短信预设策略 QcloudSMSFullAccess 授权给云开发服务角色,平台以临时凭证代发,不保存任何长期密钥。选择该方式时 SecretId / SecretKey / CredentialAuthKeyId 必须为空</li></ul><p>默认值:SMS_AUTH_SECRET_KEY</p>
24383
+ 注意:此字段可能返回 null,表示取不到有效值。
24384
+ :rtype: str
24385
+ """
24386
+ return self._AuthType
24387
+
24388
+ @AuthType.setter
24389
+ def AuthType(self, AuthType):
24390
+ self._AuthType = AuthType
24391
+
23867
24392
  @property
23868
24393
  def SecretId(self):
23869
24394
  r"""<p>调用短信服务商发送短信接口的调用秘钥对应的ID。</p><ul><li>调用api秘钥会保存在云开发平台控制台—扩展功能—授权管理中,如果对于短信调用的api秘钥有删除需求,可在此处进行删除,删除后,短信将无法正常发送。</li><li>腾讯云的调用api秘钥在腾讯云控制台获取,建议使用子账号的秘钥ID,并且按照最小权限配置。</li></ul>
@@ -23912,12 +24437,25 @@ class SMSProviderTemplateConfig(AbstractModel):
23912
24437
  def TemplateExtendParam(self, TemplateExtendParam):
23913
24438
  self._TemplateExtendParam = TemplateExtendParam
23914
24439
 
24440
+ @property
24441
+ def CredentialAuthKeyId(self):
24442
+ r"""<p>授权管理中密钥的自定义标识(创建 / 引用二合一),与 SecretId / SecretKey 组合决定行为:</p><ul><li>非空 + 带 SecretId/SecretKey → 以该标识创建新密钥;标识已存在时报错(keyID already exists)</li><li>非空 + 不带 SecretId/SecretKey → 引用授权管理中已存在的密钥(需归属当前环境)</li><li>空 + 带 SecretId/SecretKey → 使用平台按服务商生成的固定标识,覆盖更新(存量兼容)</li><li>空 + 不带 SecretId/SecretKey → 不修改密钥,沿用既有配置</li></ul><p>AuthType 为 SMS_AUTH_ASSUME_ROLE 时此参数必须为空。</p>
24443
+ 注意:此字段可能返回 null,表示取不到有效值。
24444
+ :rtype: str
24445
+ """
24446
+ return self._CredentialAuthKeyId
24447
+
24448
+ @CredentialAuthKeyId.setter
24449
+ def CredentialAuthKeyId(self, CredentialAuthKeyId):
24450
+ self._CredentialAuthKeyId = CredentialAuthKeyId
24451
+
23915
24452
 
23916
24453
  def _deserialize(self, params):
23917
24454
  self._Vendor = params.get("Vendor")
23918
24455
  self._TemplateId = params.get("TemplateId")
23919
24456
  self._SdkAppId = params.get("SdkAppId")
23920
24457
  self._SignName = params.get("SignName")
24458
+ self._AuthType = params.get("AuthType")
23921
24459
  self._SecretId = params.get("SecretId")
23922
24460
  self._SecretKey = params.get("SecretKey")
23923
24461
  self._SenderId = params.get("SenderId")
@@ -23927,6 +24465,7 @@ class SMSProviderTemplateConfig(AbstractModel):
23927
24465
  obj = SMSTemplateParams()
23928
24466
  obj._deserialize(item)
23929
24467
  self._TemplateExtendParam.append(obj)
24468
+ self._CredentialAuthKeyId = params.get("CredentialAuthKeyId")
23930
24469
  memeber_set = set(params.keys())
23931
24470
  for name, value in vars(self).items():
23932
24471
  property_name = name[1:]
@@ -25339,17 +25878,17 @@ class UpdateTableRequest(AbstractModel):
25339
25878
 
25340
25879
  def __init__(self):
25341
25880
  r"""
25342
- :param _TableName: 表名
25881
+ :param _TableName: <p>表名</p>
25343
25882
  :type TableName: str
25344
- :param _Tag: FlexDB实例ID
25883
+ :param _Tag: <p>FlexDB实例ID</p>
25345
25884
  :type Tag: str
25346
- :param _DropIndexes: 待删除索引信息
25885
+ :param _DropIndexes: <p>待删除索引信息</p>
25347
25886
  :type DropIndexes: list of DropIndex
25348
- :param _CreateIndexes: 待创建索引信息
25887
+ :param _CreateIndexes: <p>待创建索引信息</p>
25349
25888
  :type CreateIndexes: list of CreateIndex
25350
- :param _EnvId: 云开发环境ID
25889
+ :param _EnvId: <p>云开发环境ID</p>
25351
25890
  :type EnvId: str
25352
- :param _MongoConnector: MongoDB连接器配置
25891
+ :param _MongoConnector: <p>MongoDB连接器配置</p>
25353
25892
  :type MongoConnector: :class:`tencentcloud.tcb.v20180608.models.MongoConnector`
25354
25893
  """
25355
25894
  self._TableName = None
@@ -25361,7 +25900,7 @@ class UpdateTableRequest(AbstractModel):
25361
25900
 
25362
25901
  @property
25363
25902
  def TableName(self):
25364
- r"""表名
25903
+ r"""<p>表名</p>
25365
25904
  :rtype: str
25366
25905
  """
25367
25906
  return self._TableName
@@ -25372,7 +25911,7 @@ class UpdateTableRequest(AbstractModel):
25372
25911
 
25373
25912
  @property
25374
25913
  def Tag(self):
25375
- r"""FlexDB实例ID
25914
+ r"""<p>FlexDB实例ID</p>
25376
25915
  :rtype: str
25377
25916
  """
25378
25917
  return self._Tag
@@ -25383,7 +25922,7 @@ class UpdateTableRequest(AbstractModel):
25383
25922
 
25384
25923
  @property
25385
25924
  def DropIndexes(self):
25386
- r"""待删除索引信息
25925
+ r"""<p>待删除索引信息</p>
25387
25926
  :rtype: list of DropIndex
25388
25927
  """
25389
25928
  return self._DropIndexes
@@ -25394,7 +25933,7 @@ class UpdateTableRequest(AbstractModel):
25394
25933
 
25395
25934
  @property
25396
25935
  def CreateIndexes(self):
25397
- r"""待创建索引信息
25936
+ r"""<p>待创建索引信息</p>
25398
25937
  :rtype: list of CreateIndex
25399
25938
  """
25400
25939
  return self._CreateIndexes
@@ -25405,7 +25944,7 @@ class UpdateTableRequest(AbstractModel):
25405
25944
 
25406
25945
  @property
25407
25946
  def EnvId(self):
25408
- r"""云开发环境ID
25947
+ r"""<p>云开发环境ID</p>
25409
25948
  :rtype: str
25410
25949
  """
25411
25950
  return self._EnvId
@@ -25416,7 +25955,7 @@ class UpdateTableRequest(AbstractModel):
25416
25955
 
25417
25956
  @property
25418
25957
  def MongoConnector(self):
25419
- r"""MongoDB连接器配置
25958
+ r"""<p>MongoDB连接器配置</p>
25420
25959
  :rtype: :class:`tencentcloud.tcb.v20180608.models.MongoConnector`
25421
25960
  """
25422
25961
  return self._MongoConnector
@@ -26135,7 +26674,7 @@ class VerificationConfig(AbstractModel):
26135
26674
 
26136
26675
  def __init__(self):
26137
26676
  r"""
26138
- :param _Type: <p>短信验证码发送通道类型。</p><p>枚举值:</p><ul><li>default: 使用默认云开发短信包发送短信</li><li>apis: 使用云开发自定义 APIs 作为短信发送通道,需配合 Name 和 Method 参数使用。不传则不修改当前配置。</li><li>template: 自定义短信模板配置,需要配置TemplateProvider</li></ul>
26677
+ :param _Type: <p>短信验证码发送通道类型。</p><p>枚举值:</p><ul><li>default: 使用默认云开发短信包发送短信</li><li>apis: 使用云开发自定义 APIs 作为短信发送通道,需配合 Name 和 Method 参数使用。不传则不修改当前配置。</li><li>template: 自定义短信模板配置,需要配置TemplateProvider</li><li>function: 云函数通道(第三方短信服务商),需要配置CloudFunction</li></ul>
26139
26678
  注意:此字段可能返回 null,表示取不到有效值。
26140
26679
  :type Type: str
26141
26680
  :param _Name: <p>自定义 APIs 数据源唯一标识,当 Type 为 apis 时必填。用于定位微搭 APIs 中对应的数据源。</p>
@@ -26150,16 +26689,20 @@ class VerificationConfig(AbstractModel):
26150
26689
  :param _TemplateProvider: <p>自定义短信服务商模板配置</p>
26151
26690
  注意:此字段可能返回 null,表示取不到有效值。
26152
26691
  :type TemplateProvider: :class:`tencentcloud.tcb.v20180608.models.SMSProviderTemplateConfig`
26692
+ :param _CloudFunction: <p>云函数短信通道配置,当 Type 为 function 时必填</p>
26693
+ 注意:此字段可能返回 null,表示取不到有效值。
26694
+ :type CloudFunction: :class:`tencentcloud.tcb.v20180608.models.SMSCloudFunctionConfig`
26153
26695
  """
26154
26696
  self._Type = None
26155
26697
  self._Name = None
26156
26698
  self._Method = None
26157
26699
  self._SmsDayLimit = None
26158
26700
  self._TemplateProvider = None
26701
+ self._CloudFunction = None
26159
26702
 
26160
26703
  @property
26161
26704
  def Type(self):
26162
- r"""<p>短信验证码发送通道类型。</p><p>枚举值:</p><ul><li>default: 使用默认云开发短信包发送短信</li><li>apis: 使用云开发自定义 APIs 作为短信发送通道,需配合 Name 和 Method 参数使用。不传则不修改当前配置。</li><li>template: 自定义短信模板配置,需要配置TemplateProvider</li></ul>
26705
+ r"""<p>短信验证码发送通道类型。</p><p>枚举值:</p><ul><li>default: 使用默认云开发短信包发送短信</li><li>apis: 使用云开发自定义 APIs 作为短信发送通道,需配合 Name 和 Method 参数使用。不传则不修改当前配置。</li><li>template: 自定义短信模板配置,需要配置TemplateProvider</li><li>function: 云函数通道(第三方短信服务商),需要配置CloudFunction</li></ul>
26163
26706
  注意:此字段可能返回 null,表示取不到有效值。
26164
26707
  :rtype: str
26165
26708
  """
@@ -26217,6 +26760,18 @@ class VerificationConfig(AbstractModel):
26217
26760
  def TemplateProvider(self, TemplateProvider):
26218
26761
  self._TemplateProvider = TemplateProvider
26219
26762
 
26763
+ @property
26764
+ def CloudFunction(self):
26765
+ r"""<p>云函数短信通道配置,当 Type 为 function 时必填</p>
26766
+ 注意:此字段可能返回 null,表示取不到有效值。
26767
+ :rtype: :class:`tencentcloud.tcb.v20180608.models.SMSCloudFunctionConfig`
26768
+ """
26769
+ return self._CloudFunction
26770
+
26771
+ @CloudFunction.setter
26772
+ def CloudFunction(self, CloudFunction):
26773
+ self._CloudFunction = CloudFunction
26774
+
26220
26775
 
26221
26776
  def _deserialize(self, params):
26222
26777
  self._Type = params.get("Type")
@@ -26226,6 +26781,9 @@ class VerificationConfig(AbstractModel):
26226
26781
  if params.get("TemplateProvider") is not None:
26227
26782
  self._TemplateProvider = SMSProviderTemplateConfig()
26228
26783
  self._TemplateProvider._deserialize(params.get("TemplateProvider"))
26784
+ if params.get("CloudFunction") is not None:
26785
+ self._CloudFunction = SMSCloudFunctionConfig()
26786
+ self._CloudFunction._deserialize(params.get("CloudFunction"))
26229
26787
  memeber_set = set(params.keys())
26230
26788
  for name, value in vars(self).items():
26231
26789
  property_name = name[1:]
@@ -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.162
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.162
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.162