tencentcloud-sdk-python-tcb 3.1.158__tar.gz → 3.1.164__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.
- {tencentcloud_sdk_python_tcb-3.1.158 → tencentcloud_sdk_python_tcb-3.1.164}/PKG-INFO +2 -2
- {tencentcloud_sdk_python_tcb-3.1.158 → tencentcloud_sdk_python_tcb-3.1.164}/setup.py +1 -1
- {tencentcloud_sdk_python_tcb-3.1.158 → tencentcloud_sdk_python_tcb-3.1.164}/tencentcloud/__init__.py +1 -1
- {tencentcloud_sdk_python_tcb-3.1.158 → tencentcloud_sdk_python_tcb-3.1.164}/tencentcloud/tcb/v20180608/models.py +235 -20
- {tencentcloud_sdk_python_tcb-3.1.158 → tencentcloud_sdk_python_tcb-3.1.164}/tencentcloud/tcb/v20180608/tcb_client.py +25 -0
- {tencentcloud_sdk_python_tcb-3.1.158 → tencentcloud_sdk_python_tcb-3.1.164}/tencentcloud/tcb/v20180608/tcb_client_async.py +20 -0
- {tencentcloud_sdk_python_tcb-3.1.158 → tencentcloud_sdk_python_tcb-3.1.164}/tencentcloud_sdk_python_tcb.egg-info/PKG-INFO +2 -2
- tencentcloud_sdk_python_tcb-3.1.164/tencentcloud_sdk_python_tcb.egg-info/requires.txt +1 -0
- tencentcloud_sdk_python_tcb-3.1.158/tencentcloud_sdk_python_tcb.egg-info/requires.txt +0 -1
- {tencentcloud_sdk_python_tcb-3.1.158 → tencentcloud_sdk_python_tcb-3.1.164}/README.rst +0 -0
- {tencentcloud_sdk_python_tcb-3.1.158 → tencentcloud_sdk_python_tcb-3.1.164}/setup.cfg +0 -0
- {tencentcloud_sdk_python_tcb-3.1.158 → tencentcloud_sdk_python_tcb-3.1.164}/tencentcloud/tcb/__init__.py +0 -0
- {tencentcloud_sdk_python_tcb-3.1.158 → tencentcloud_sdk_python_tcb-3.1.164}/tencentcloud/tcb/v20180608/__init__.py +0 -0
- {tencentcloud_sdk_python_tcb-3.1.158 → tencentcloud_sdk_python_tcb-3.1.164}/tencentcloud/tcb/v20180608/errorcodes.py +0 -0
- {tencentcloud_sdk_python_tcb-3.1.158 → tencentcloud_sdk_python_tcb-3.1.164}/tencentcloud_sdk_python_tcb.egg-info/SOURCES.txt +0 -0
- {tencentcloud_sdk_python_tcb-3.1.158 → tencentcloud_sdk_python_tcb-3.1.164}/tencentcloud_sdk_python_tcb.egg-info/dependency_links.txt +0 -0
- {tencentcloud_sdk_python_tcb-3.1.158 → tencentcloud_sdk_python_tcb-3.1.164}/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.
|
|
3
|
+
Version: 3.1.164
|
|
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.
|
|
18
|
+
Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.1.164
|
|
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.
|
|
11
|
+
install_requires=["tencentcloud-sdk-python-common>=3.1.164,<4.0.0"],
|
|
12
12
|
|
|
13
13
|
version=tencentcloud.__version__,
|
|
14
14
|
description='Tencent Cloud Tcb SDK for Python',
|
|
@@ -1371,6 +1371,115 @@ class BanConfig(AbstractModel):
|
|
|
1371
1371
|
|
|
1372
1372
|
|
|
1373
1373
|
|
|
1374
|
+
class BindClsRequest(AbstractModel):
|
|
1375
|
+
r"""BindCls请求参数结构体
|
|
1376
|
+
|
|
1377
|
+
"""
|
|
1378
|
+
|
|
1379
|
+
def __init__(self):
|
|
1380
|
+
r"""
|
|
1381
|
+
:param _EnvId: 环境ID
|
|
1382
|
+
:type EnvId: str
|
|
1383
|
+
:param _ClsRegion: CLS地域
|
|
1384
|
+
:type ClsRegion: str
|
|
1385
|
+
:param _ClsLogsetId: CLS 日志集id
|
|
1386
|
+
:type ClsLogsetId: str
|
|
1387
|
+
:param _ClsTopicId: CLS 日志主题ID
|
|
1388
|
+
:type ClsTopicId: str
|
|
1389
|
+
"""
|
|
1390
|
+
self._EnvId = None
|
|
1391
|
+
self._ClsRegion = None
|
|
1392
|
+
self._ClsLogsetId = None
|
|
1393
|
+
self._ClsTopicId = None
|
|
1394
|
+
|
|
1395
|
+
@property
|
|
1396
|
+
def EnvId(self):
|
|
1397
|
+
r"""环境ID
|
|
1398
|
+
:rtype: str
|
|
1399
|
+
"""
|
|
1400
|
+
return self._EnvId
|
|
1401
|
+
|
|
1402
|
+
@EnvId.setter
|
|
1403
|
+
def EnvId(self, EnvId):
|
|
1404
|
+
self._EnvId = EnvId
|
|
1405
|
+
|
|
1406
|
+
@property
|
|
1407
|
+
def ClsRegion(self):
|
|
1408
|
+
r"""CLS地域
|
|
1409
|
+
:rtype: str
|
|
1410
|
+
"""
|
|
1411
|
+
return self._ClsRegion
|
|
1412
|
+
|
|
1413
|
+
@ClsRegion.setter
|
|
1414
|
+
def ClsRegion(self, ClsRegion):
|
|
1415
|
+
self._ClsRegion = ClsRegion
|
|
1416
|
+
|
|
1417
|
+
@property
|
|
1418
|
+
def ClsLogsetId(self):
|
|
1419
|
+
r"""CLS 日志集id
|
|
1420
|
+
:rtype: str
|
|
1421
|
+
"""
|
|
1422
|
+
return self._ClsLogsetId
|
|
1423
|
+
|
|
1424
|
+
@ClsLogsetId.setter
|
|
1425
|
+
def ClsLogsetId(self, ClsLogsetId):
|
|
1426
|
+
self._ClsLogsetId = ClsLogsetId
|
|
1427
|
+
|
|
1428
|
+
@property
|
|
1429
|
+
def ClsTopicId(self):
|
|
1430
|
+
r"""CLS 日志主题ID
|
|
1431
|
+
:rtype: str
|
|
1432
|
+
"""
|
|
1433
|
+
return self._ClsTopicId
|
|
1434
|
+
|
|
1435
|
+
@ClsTopicId.setter
|
|
1436
|
+
def ClsTopicId(self, ClsTopicId):
|
|
1437
|
+
self._ClsTopicId = ClsTopicId
|
|
1438
|
+
|
|
1439
|
+
|
|
1440
|
+
def _deserialize(self, params):
|
|
1441
|
+
self._EnvId = params.get("EnvId")
|
|
1442
|
+
self._ClsRegion = params.get("ClsRegion")
|
|
1443
|
+
self._ClsLogsetId = params.get("ClsLogsetId")
|
|
1444
|
+
self._ClsTopicId = params.get("ClsTopicId")
|
|
1445
|
+
memeber_set = set(params.keys())
|
|
1446
|
+
for name, value in vars(self).items():
|
|
1447
|
+
property_name = name[1:]
|
|
1448
|
+
if property_name in memeber_set:
|
|
1449
|
+
memeber_set.remove(property_name)
|
|
1450
|
+
if len(memeber_set) > 0:
|
|
1451
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
1452
|
+
|
|
1453
|
+
|
|
1454
|
+
|
|
1455
|
+
class BindClsResponse(AbstractModel):
|
|
1456
|
+
r"""BindCls返回参数结构体
|
|
1457
|
+
|
|
1458
|
+
"""
|
|
1459
|
+
|
|
1460
|
+
def __init__(self):
|
|
1461
|
+
r"""
|
|
1462
|
+
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
1463
|
+
:type RequestId: str
|
|
1464
|
+
"""
|
|
1465
|
+
self._RequestId = None
|
|
1466
|
+
|
|
1467
|
+
@property
|
|
1468
|
+
def RequestId(self):
|
|
1469
|
+
r"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
1470
|
+
:rtype: str
|
|
1471
|
+
"""
|
|
1472
|
+
return self._RequestId
|
|
1473
|
+
|
|
1474
|
+
@RequestId.setter
|
|
1475
|
+
def RequestId(self, RequestId):
|
|
1476
|
+
self._RequestId = RequestId
|
|
1477
|
+
|
|
1478
|
+
|
|
1479
|
+
def _deserialize(self, params):
|
|
1480
|
+
self._RequestId = params.get("RequestId")
|
|
1481
|
+
|
|
1482
|
+
|
|
1374
1483
|
class BindStorageSourceRequest(AbstractModel):
|
|
1375
1484
|
r"""BindStorageSource请求参数结构体
|
|
1376
1485
|
|
|
@@ -18401,20 +18510,23 @@ class MgoKeySchema(AbstractModel):
|
|
|
18401
18510
|
|
|
18402
18511
|
def __init__(self):
|
|
18403
18512
|
r"""
|
|
18404
|
-
:param _MgoIndexKeys:
|
|
18513
|
+
:param _MgoIndexKeys: <p>索引字段</p>
|
|
18405
18514
|
:type MgoIndexKeys: list of MgoIndexKeys
|
|
18406
|
-
:param _MgoIsUnique:
|
|
18515
|
+
:param _MgoIsUnique: <p>是否唯一索引</p>
|
|
18407
18516
|
:type MgoIsUnique: bool
|
|
18408
|
-
:param _MgoIsSparse:
|
|
18517
|
+
:param _MgoIsSparse: <p>是否稀疏索引</p>
|
|
18409
18518
|
:type MgoIsSparse: bool
|
|
18519
|
+
:param _PartialFilterExpression: <p>稀疏索引表达式</p>
|
|
18520
|
+
:type PartialFilterExpression: str
|
|
18410
18521
|
"""
|
|
18411
18522
|
self._MgoIndexKeys = None
|
|
18412
18523
|
self._MgoIsUnique = None
|
|
18413
18524
|
self._MgoIsSparse = None
|
|
18525
|
+
self._PartialFilterExpression = None
|
|
18414
18526
|
|
|
18415
18527
|
@property
|
|
18416
18528
|
def MgoIndexKeys(self):
|
|
18417
|
-
r"""
|
|
18529
|
+
r"""<p>索引字段</p>
|
|
18418
18530
|
:rtype: list of MgoIndexKeys
|
|
18419
18531
|
"""
|
|
18420
18532
|
return self._MgoIndexKeys
|
|
@@ -18425,7 +18537,7 @@ class MgoKeySchema(AbstractModel):
|
|
|
18425
18537
|
|
|
18426
18538
|
@property
|
|
18427
18539
|
def MgoIsUnique(self):
|
|
18428
|
-
r"""
|
|
18540
|
+
r"""<p>是否唯一索引</p>
|
|
18429
18541
|
:rtype: bool
|
|
18430
18542
|
"""
|
|
18431
18543
|
return self._MgoIsUnique
|
|
@@ -18436,7 +18548,7 @@ class MgoKeySchema(AbstractModel):
|
|
|
18436
18548
|
|
|
18437
18549
|
@property
|
|
18438
18550
|
def MgoIsSparse(self):
|
|
18439
|
-
r"""
|
|
18551
|
+
r"""<p>是否稀疏索引</p>
|
|
18440
18552
|
:rtype: bool
|
|
18441
18553
|
"""
|
|
18442
18554
|
return self._MgoIsSparse
|
|
@@ -18445,6 +18557,17 @@ class MgoKeySchema(AbstractModel):
|
|
|
18445
18557
|
def MgoIsSparse(self, MgoIsSparse):
|
|
18446
18558
|
self._MgoIsSparse = MgoIsSparse
|
|
18447
18559
|
|
|
18560
|
+
@property
|
|
18561
|
+
def PartialFilterExpression(self):
|
|
18562
|
+
r"""<p>稀疏索引表达式</p>
|
|
18563
|
+
:rtype: str
|
|
18564
|
+
"""
|
|
18565
|
+
return self._PartialFilterExpression
|
|
18566
|
+
|
|
18567
|
+
@PartialFilterExpression.setter
|
|
18568
|
+
def PartialFilterExpression(self, PartialFilterExpression):
|
|
18569
|
+
self._PartialFilterExpression = PartialFilterExpression
|
|
18570
|
+
|
|
18448
18571
|
|
|
18449
18572
|
def _deserialize(self, params):
|
|
18450
18573
|
if params.get("MgoIndexKeys") is not None:
|
|
@@ -18455,6 +18578,7 @@ class MgoKeySchema(AbstractModel):
|
|
|
18455
18578
|
self._MgoIndexKeys.append(obj)
|
|
18456
18579
|
self._MgoIsUnique = params.get("MgoIsUnique")
|
|
18457
18580
|
self._MgoIsSparse = params.get("MgoIsSparse")
|
|
18581
|
+
self._PartialFilterExpression = params.get("PartialFilterExpression")
|
|
18458
18582
|
memeber_set = set(params.keys())
|
|
18459
18583
|
for name, value in vars(self).items():
|
|
18460
18584
|
property_name = name[1:]
|
|
@@ -23666,6 +23790,44 @@ class RunSqlResponse(AbstractModel):
|
|
|
23666
23790
|
self._RequestId = params.get("RequestId")
|
|
23667
23791
|
|
|
23668
23792
|
|
|
23793
|
+
class SMSCloudFunctionConfig(AbstractModel):
|
|
23794
|
+
r"""云函数短信通道配置。适用于第三方短信服务商场景:用户在环境下部署名为 SendVerificationCode 的云函数,平台在发送验证码时调用该函数,函数体内由用户自行调用任意短信服务商 SDK 完成下发。
|
|
23795
|
+
|
|
23796
|
+
"""
|
|
23797
|
+
|
|
23798
|
+
def __init__(self):
|
|
23799
|
+
r"""
|
|
23800
|
+
: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>
|
|
23801
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
23802
|
+
:type FunctionName: str
|
|
23803
|
+
"""
|
|
23804
|
+
self._FunctionName = None
|
|
23805
|
+
|
|
23806
|
+
@property
|
|
23807
|
+
def FunctionName(self):
|
|
23808
|
+
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>
|
|
23809
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
23810
|
+
:rtype: str
|
|
23811
|
+
"""
|
|
23812
|
+
return self._FunctionName
|
|
23813
|
+
|
|
23814
|
+
@FunctionName.setter
|
|
23815
|
+
def FunctionName(self, FunctionName):
|
|
23816
|
+
self._FunctionName = FunctionName
|
|
23817
|
+
|
|
23818
|
+
|
|
23819
|
+
def _deserialize(self, params):
|
|
23820
|
+
self._FunctionName = params.get("FunctionName")
|
|
23821
|
+
memeber_set = set(params.keys())
|
|
23822
|
+
for name, value in vars(self).items():
|
|
23823
|
+
property_name = name[1:]
|
|
23824
|
+
if property_name in memeber_set:
|
|
23825
|
+
memeber_set.remove(property_name)
|
|
23826
|
+
if len(memeber_set) > 0:
|
|
23827
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
23828
|
+
|
|
23829
|
+
|
|
23830
|
+
|
|
23669
23831
|
class SMSProviderTemplateConfig(AbstractModel):
|
|
23670
23832
|
r"""自定义短信服务商模板配置
|
|
23671
23833
|
|
|
@@ -23685,6 +23847,9 @@ class SMSProviderTemplateConfig(AbstractModel):
|
|
|
23685
23847
|
: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>
|
|
23686
23848
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
23687
23849
|
:type SignName: str
|
|
23850
|
+
: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>
|
|
23851
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
23852
|
+
:type AuthType: str
|
|
23688
23853
|
:param _SecretId: <p>调用短信服务商发送短信接口的调用秘钥对应的ID。</p><ul><li>调用api秘钥会保存在云开发平台控制台—扩展功能—授权管理中,如果对于短信调用的api秘钥有删除需求,可在此处进行删除,删除后,短信将无法正常发送。</li><li>腾讯云的调用api秘钥在腾讯云控制台获取,建议使用子账号的秘钥ID,并且按照最小权限配置。</li></ul>
|
|
23689
23854
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
23690
23855
|
:type SecretId: str
|
|
@@ -23697,15 +23862,20 @@ class SMSProviderTemplateConfig(AbstractModel):
|
|
|
23697
23862
|
:param _TemplateExtendParam: <p>当短信自定义模板含多个占位符时,平台只负责生成验证码值,其余占位符由调用方在此提供。</p><ul><li>无需提供验证码对应的占位的值,验证码由云开发平台侧生成。</li><li>如果是命名占位的服务商的短信模板,这里的参数按照需要对应的占位的key和value,会按照对应的key和value在发送短信时,填充到模板中。</li><li>如果是序号占位的服务商的短信模板,这里的参数不需要key, 只需要填写对应的value, 会按照填写的顺序依次填充到模板中。</li></ul>
|
|
23698
23863
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
23699
23864
|
:type TemplateExtendParam: list of SMSTemplateParams
|
|
23865
|
+
: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>
|
|
23866
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
23867
|
+
:type CredentialAuthKeyId: str
|
|
23700
23868
|
"""
|
|
23701
23869
|
self._Vendor = None
|
|
23702
23870
|
self._TemplateId = None
|
|
23703
23871
|
self._SdkAppId = None
|
|
23704
23872
|
self._SignName = None
|
|
23873
|
+
self._AuthType = None
|
|
23705
23874
|
self._SecretId = None
|
|
23706
23875
|
self._SecretKey = None
|
|
23707
23876
|
self._SenderId = None
|
|
23708
23877
|
self._TemplateExtendParam = None
|
|
23878
|
+
self._CredentialAuthKeyId = None
|
|
23709
23879
|
|
|
23710
23880
|
@property
|
|
23711
23881
|
def Vendor(self):
|
|
@@ -23755,6 +23925,18 @@ class SMSProviderTemplateConfig(AbstractModel):
|
|
|
23755
23925
|
def SignName(self, SignName):
|
|
23756
23926
|
self._SignName = SignName
|
|
23757
23927
|
|
|
23928
|
+
@property
|
|
23929
|
+
def AuthType(self):
|
|
23930
|
+
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>
|
|
23931
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
23932
|
+
:rtype: str
|
|
23933
|
+
"""
|
|
23934
|
+
return self._AuthType
|
|
23935
|
+
|
|
23936
|
+
@AuthType.setter
|
|
23937
|
+
def AuthType(self, AuthType):
|
|
23938
|
+
self._AuthType = AuthType
|
|
23939
|
+
|
|
23758
23940
|
@property
|
|
23759
23941
|
def SecretId(self):
|
|
23760
23942
|
r"""<p>调用短信服务商发送短信接口的调用秘钥对应的ID。</p><ul><li>调用api秘钥会保存在云开发平台控制台—扩展功能—授权管理中,如果对于短信调用的api秘钥有删除需求,可在此处进行删除,删除后,短信将无法正常发送。</li><li>腾讯云的调用api秘钥在腾讯云控制台获取,建议使用子账号的秘钥ID,并且按照最小权限配置。</li></ul>
|
|
@@ -23803,12 +23985,25 @@ class SMSProviderTemplateConfig(AbstractModel):
|
|
|
23803
23985
|
def TemplateExtendParam(self, TemplateExtendParam):
|
|
23804
23986
|
self._TemplateExtendParam = TemplateExtendParam
|
|
23805
23987
|
|
|
23988
|
+
@property
|
|
23989
|
+
def CredentialAuthKeyId(self):
|
|
23990
|
+
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>
|
|
23991
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
23992
|
+
:rtype: str
|
|
23993
|
+
"""
|
|
23994
|
+
return self._CredentialAuthKeyId
|
|
23995
|
+
|
|
23996
|
+
@CredentialAuthKeyId.setter
|
|
23997
|
+
def CredentialAuthKeyId(self, CredentialAuthKeyId):
|
|
23998
|
+
self._CredentialAuthKeyId = CredentialAuthKeyId
|
|
23999
|
+
|
|
23806
24000
|
|
|
23807
24001
|
def _deserialize(self, params):
|
|
23808
24002
|
self._Vendor = params.get("Vendor")
|
|
23809
24003
|
self._TemplateId = params.get("TemplateId")
|
|
23810
24004
|
self._SdkAppId = params.get("SdkAppId")
|
|
23811
24005
|
self._SignName = params.get("SignName")
|
|
24006
|
+
self._AuthType = params.get("AuthType")
|
|
23812
24007
|
self._SecretId = params.get("SecretId")
|
|
23813
24008
|
self._SecretKey = params.get("SecretKey")
|
|
23814
24009
|
self._SenderId = params.get("SenderId")
|
|
@@ -23818,6 +24013,7 @@ class SMSProviderTemplateConfig(AbstractModel):
|
|
|
23818
24013
|
obj = SMSTemplateParams()
|
|
23819
24014
|
obj._deserialize(item)
|
|
23820
24015
|
self._TemplateExtendParam.append(obj)
|
|
24016
|
+
self._CredentialAuthKeyId = params.get("CredentialAuthKeyId")
|
|
23821
24017
|
memeber_set = set(params.keys())
|
|
23822
24018
|
for name, value in vars(self).items():
|
|
23823
24019
|
property_name = name[1:]
|
|
@@ -25230,17 +25426,17 @@ class UpdateTableRequest(AbstractModel):
|
|
|
25230
25426
|
|
|
25231
25427
|
def __init__(self):
|
|
25232
25428
|
r"""
|
|
25233
|
-
:param _TableName:
|
|
25429
|
+
:param _TableName: <p>表名</p>
|
|
25234
25430
|
:type TableName: str
|
|
25235
|
-
:param _Tag: FlexDB实例ID
|
|
25431
|
+
:param _Tag: <p>FlexDB实例ID</p>
|
|
25236
25432
|
:type Tag: str
|
|
25237
|
-
:param _DropIndexes:
|
|
25433
|
+
:param _DropIndexes: <p>待删除索引信息</p>
|
|
25238
25434
|
:type DropIndexes: list of DropIndex
|
|
25239
|
-
:param _CreateIndexes:
|
|
25435
|
+
:param _CreateIndexes: <p>待创建索引信息</p>
|
|
25240
25436
|
:type CreateIndexes: list of CreateIndex
|
|
25241
|
-
:param _EnvId:
|
|
25437
|
+
:param _EnvId: <p>云开发环境ID</p>
|
|
25242
25438
|
:type EnvId: str
|
|
25243
|
-
:param _MongoConnector: MongoDB
|
|
25439
|
+
:param _MongoConnector: <p>MongoDB连接器配置</p>
|
|
25244
25440
|
:type MongoConnector: :class:`tencentcloud.tcb.v20180608.models.MongoConnector`
|
|
25245
25441
|
"""
|
|
25246
25442
|
self._TableName = None
|
|
@@ -25252,7 +25448,7 @@ class UpdateTableRequest(AbstractModel):
|
|
|
25252
25448
|
|
|
25253
25449
|
@property
|
|
25254
25450
|
def TableName(self):
|
|
25255
|
-
r"""
|
|
25451
|
+
r"""<p>表名</p>
|
|
25256
25452
|
:rtype: str
|
|
25257
25453
|
"""
|
|
25258
25454
|
return self._TableName
|
|
@@ -25263,7 +25459,7 @@ class UpdateTableRequest(AbstractModel):
|
|
|
25263
25459
|
|
|
25264
25460
|
@property
|
|
25265
25461
|
def Tag(self):
|
|
25266
|
-
r"""FlexDB实例ID
|
|
25462
|
+
r"""<p>FlexDB实例ID</p>
|
|
25267
25463
|
:rtype: str
|
|
25268
25464
|
"""
|
|
25269
25465
|
return self._Tag
|
|
@@ -25274,7 +25470,7 @@ class UpdateTableRequest(AbstractModel):
|
|
|
25274
25470
|
|
|
25275
25471
|
@property
|
|
25276
25472
|
def DropIndexes(self):
|
|
25277
|
-
r"""
|
|
25473
|
+
r"""<p>待删除索引信息</p>
|
|
25278
25474
|
:rtype: list of DropIndex
|
|
25279
25475
|
"""
|
|
25280
25476
|
return self._DropIndexes
|
|
@@ -25285,7 +25481,7 @@ class UpdateTableRequest(AbstractModel):
|
|
|
25285
25481
|
|
|
25286
25482
|
@property
|
|
25287
25483
|
def CreateIndexes(self):
|
|
25288
|
-
r"""
|
|
25484
|
+
r"""<p>待创建索引信息</p>
|
|
25289
25485
|
:rtype: list of CreateIndex
|
|
25290
25486
|
"""
|
|
25291
25487
|
return self._CreateIndexes
|
|
@@ -25296,7 +25492,7 @@ class UpdateTableRequest(AbstractModel):
|
|
|
25296
25492
|
|
|
25297
25493
|
@property
|
|
25298
25494
|
def EnvId(self):
|
|
25299
|
-
r"""
|
|
25495
|
+
r"""<p>云开发环境ID</p>
|
|
25300
25496
|
:rtype: str
|
|
25301
25497
|
"""
|
|
25302
25498
|
return self._EnvId
|
|
@@ -25307,7 +25503,7 @@ class UpdateTableRequest(AbstractModel):
|
|
|
25307
25503
|
|
|
25308
25504
|
@property
|
|
25309
25505
|
def MongoConnector(self):
|
|
25310
|
-
r"""MongoDB
|
|
25506
|
+
r"""<p>MongoDB连接器配置</p>
|
|
25311
25507
|
:rtype: :class:`tencentcloud.tcb.v20180608.models.MongoConnector`
|
|
25312
25508
|
"""
|
|
25313
25509
|
return self._MongoConnector
|
|
@@ -26026,7 +26222,7 @@ class VerificationConfig(AbstractModel):
|
|
|
26026
26222
|
|
|
26027
26223
|
def __init__(self):
|
|
26028
26224
|
r"""
|
|
26029
|
-
:param _Type: <p>短信验证码发送通道类型。</p><p>枚举值:</p><ul><li>default: 使用默认云开发短信包发送短信</li><li>apis: 使用云开发自定义 APIs 作为短信发送通道,需配合 Name 和 Method 参数使用。不传则不修改当前配置。</li><li>template: 自定义短信模板配置,需要配置TemplateProvider</li></ul>
|
|
26225
|
+
: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>
|
|
26030
26226
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
26031
26227
|
:type Type: str
|
|
26032
26228
|
:param _Name: <p>自定义 APIs 数据源唯一标识,当 Type 为 apis 时必填。用于定位微搭 APIs 中对应的数据源。</p>
|
|
@@ -26041,16 +26237,20 @@ class VerificationConfig(AbstractModel):
|
|
|
26041
26237
|
:param _TemplateProvider: <p>自定义短信服务商模板配置</p>
|
|
26042
26238
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
26043
26239
|
:type TemplateProvider: :class:`tencentcloud.tcb.v20180608.models.SMSProviderTemplateConfig`
|
|
26240
|
+
:param _CloudFunction: <p>云函数短信通道配置,当 Type 为 function 时必填</p>
|
|
26241
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
26242
|
+
:type CloudFunction: :class:`tencentcloud.tcb.v20180608.models.SMSCloudFunctionConfig`
|
|
26044
26243
|
"""
|
|
26045
26244
|
self._Type = None
|
|
26046
26245
|
self._Name = None
|
|
26047
26246
|
self._Method = None
|
|
26048
26247
|
self._SmsDayLimit = None
|
|
26049
26248
|
self._TemplateProvider = None
|
|
26249
|
+
self._CloudFunction = None
|
|
26050
26250
|
|
|
26051
26251
|
@property
|
|
26052
26252
|
def Type(self):
|
|
26053
|
-
r"""<p>短信验证码发送通道类型。</p><p>枚举值:</p><ul><li>default: 使用默认云开发短信包发送短信</li><li>apis: 使用云开发自定义 APIs 作为短信发送通道,需配合 Name 和 Method 参数使用。不传则不修改当前配置。</li><li>template: 自定义短信模板配置,需要配置TemplateProvider</li></ul>
|
|
26253
|
+
r"""<p>短信验证码发送通道类型。</p><p>枚举值:</p><ul><li>default: 使用默认云开发短信包发送短信</li><li>apis: 使用云开发自定义 APIs 作为短信发送通道,需配合 Name 和 Method 参数使用。不传则不修改当前配置。</li><li>template: 自定义短信模板配置,需要配置TemplateProvider</li><li>function: 云函数通道(第三方短信服务商),需要配置CloudFunction</li></ul>
|
|
26054
26254
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
26055
26255
|
:rtype: str
|
|
26056
26256
|
"""
|
|
@@ -26108,6 +26308,18 @@ class VerificationConfig(AbstractModel):
|
|
|
26108
26308
|
def TemplateProvider(self, TemplateProvider):
|
|
26109
26309
|
self._TemplateProvider = TemplateProvider
|
|
26110
26310
|
|
|
26311
|
+
@property
|
|
26312
|
+
def CloudFunction(self):
|
|
26313
|
+
r"""<p>云函数短信通道配置,当 Type 为 function 时必填</p>
|
|
26314
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
26315
|
+
:rtype: :class:`tencentcloud.tcb.v20180608.models.SMSCloudFunctionConfig`
|
|
26316
|
+
"""
|
|
26317
|
+
return self._CloudFunction
|
|
26318
|
+
|
|
26319
|
+
@CloudFunction.setter
|
|
26320
|
+
def CloudFunction(self, CloudFunction):
|
|
26321
|
+
self._CloudFunction = CloudFunction
|
|
26322
|
+
|
|
26111
26323
|
|
|
26112
26324
|
def _deserialize(self, params):
|
|
26113
26325
|
self._Type = params.get("Type")
|
|
@@ -26117,6 +26329,9 @@ class VerificationConfig(AbstractModel):
|
|
|
26117
26329
|
if params.get("TemplateProvider") is not None:
|
|
26118
26330
|
self._TemplateProvider = SMSProviderTemplateConfig()
|
|
26119
26331
|
self._TemplateProvider._deserialize(params.get("TemplateProvider"))
|
|
26332
|
+
if params.get("CloudFunction") is not None:
|
|
26333
|
+
self._CloudFunction = SMSCloudFunctionConfig()
|
|
26334
|
+
self._CloudFunction._deserialize(params.get("CloudFunction"))
|
|
26120
26335
|
memeber_set = set(params.keys())
|
|
26121
26336
|
for name, value in vars(self).items():
|
|
26122
26337
|
property_name = name[1:]
|
|
@@ -97,6 +97,31 @@ class TcbClient(AbstractClient):
|
|
|
97
97
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
98
98
|
|
|
99
99
|
|
|
100
|
+
def BindCls(self, request):
|
|
101
|
+
r"""绑定自定义CLS日志主题
|
|
102
|
+
|
|
103
|
+
**绑定自定义 CLS 日志主题需调用腾讯云 CLS「[DescribeTopics](https://cloud.tencent.com/document/api/614/56454)」接口,按传入的 `Region` 拉取用户日志主题列表,仅筛选 `AssumerName` 为空的自有主题,并将其 `LogsetId`、`TopicId` 分别回填为绑定参数 `ClsLogsetId`、`ClsTopicId`(地域取请求参数 `Region` 作为 `ClsRegion`)。**
|
|
104
|
+
|
|
105
|
+
:param request: Request instance for BindCls.
|
|
106
|
+
:type request: :class:`tencentcloud.tcb.v20180608.models.BindClsRequest`
|
|
107
|
+
:rtype: :class:`tencentcloud.tcb.v20180608.models.BindClsResponse`
|
|
108
|
+
|
|
109
|
+
"""
|
|
110
|
+
try:
|
|
111
|
+
params = request._serialize()
|
|
112
|
+
headers = request.headers
|
|
113
|
+
body = self.call("BindCls", params, headers=headers)
|
|
114
|
+
response = json.loads(body)
|
|
115
|
+
model = models.BindClsResponse()
|
|
116
|
+
model._deserialize(response["Response"])
|
|
117
|
+
return model
|
|
118
|
+
except Exception as e:
|
|
119
|
+
if isinstance(e, TencentCloudSDKException):
|
|
120
|
+
raise
|
|
121
|
+
else:
|
|
122
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
123
|
+
|
|
124
|
+
|
|
100
125
|
def BindStorageSource(self, request):
|
|
101
126
|
r"""为云存储绑定外部云存储源。
|
|
102
127
|
将一个用户自有的 COS桶 作为外部存储源绑定到指定云开发环境的云存储。绑定后,该环境的云存储文件操作将指向此桶,通过 BasePath 路径前缀实现与其他环境的数据隔离。
|
|
@@ -81,6 +81,26 @@ class TcbClient(AbstractClient):
|
|
|
81
81
|
|
|
82
82
|
return await self.call_and_deserialize(**kwargs)
|
|
83
83
|
|
|
84
|
+
async def BindCls(
|
|
85
|
+
self,
|
|
86
|
+
request: models.BindClsRequest,
|
|
87
|
+
opts: Dict = None,
|
|
88
|
+
) -> models.BindClsResponse:
|
|
89
|
+
"""
|
|
90
|
+
绑定自定义CLS日志主题
|
|
91
|
+
|
|
92
|
+
**绑定自定义 CLS 日志主题需调用腾讯云 CLS「[DescribeTopics](https://cloud.tencent.com/document/api/614/56454)」接口,按传入的 `Region` 拉取用户日志主题列表,仅筛选 `AssumerName` 为空的自有主题,并将其 `LogsetId`、`TopicId` 分别回填为绑定参数 `ClsLogsetId`、`ClsTopicId`(地域取请求参数 `Region` 作为 `ClsRegion`)。**
|
|
93
|
+
"""
|
|
94
|
+
|
|
95
|
+
kwargs = {}
|
|
96
|
+
kwargs["action"] = "BindCls"
|
|
97
|
+
kwargs["params"] = request._serialize()
|
|
98
|
+
kwargs["resp_cls"] = models.BindClsResponse
|
|
99
|
+
kwargs["headers"] = request.headers
|
|
100
|
+
kwargs["opts"] = opts or {}
|
|
101
|
+
|
|
102
|
+
return await self.call_and_deserialize(**kwargs)
|
|
103
|
+
|
|
84
104
|
async def BindStorageSource(
|
|
85
105
|
self,
|
|
86
106
|
request: models.BindStorageSourceRequest,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: tencentcloud-sdk-python-tcb
|
|
3
|
-
Version: 3.1.
|
|
3
|
+
Version: 3.1.164
|
|
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.
|
|
18
|
+
Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.1.164
|
|
19
19
|
|
|
20
20
|
============================
|
|
21
21
|
Tencent Cloud SDK for Python
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
tencentcloud-sdk-python-common<4.0.0,>=3.1.164
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
tencentcloud-sdk-python-common<4.0.0,>=3.1.158
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|