tencentcloud-sdk-python-tcb 3.1.158__tar.gz → 3.1.162__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.162}/PKG-INFO +2 -2
- {tencentcloud_sdk_python_tcb-3.1.158 → tencentcloud_sdk_python_tcb-3.1.162}/setup.py +1 -1
- {tencentcloud_sdk_python_tcb-3.1.158 → tencentcloud_sdk_python_tcb-3.1.162}/tencentcloud/__init__.py +1 -1
- {tencentcloud_sdk_python_tcb-3.1.158 → tencentcloud_sdk_python_tcb-3.1.162}/tencentcloud/tcb/v20180608/models.py +109 -0
- {tencentcloud_sdk_python_tcb-3.1.158 → tencentcloud_sdk_python_tcb-3.1.162}/tencentcloud/tcb/v20180608/tcb_client.py +25 -0
- {tencentcloud_sdk_python_tcb-3.1.158 → tencentcloud_sdk_python_tcb-3.1.162}/tencentcloud/tcb/v20180608/tcb_client_async.py +20 -0
- {tencentcloud_sdk_python_tcb-3.1.158 → tencentcloud_sdk_python_tcb-3.1.162}/tencentcloud_sdk_python_tcb.egg-info/PKG-INFO +2 -2
- tencentcloud_sdk_python_tcb-3.1.162/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.162}/README.rst +0 -0
- {tencentcloud_sdk_python_tcb-3.1.158 → tencentcloud_sdk_python_tcb-3.1.162}/setup.cfg +0 -0
- {tencentcloud_sdk_python_tcb-3.1.158 → tencentcloud_sdk_python_tcb-3.1.162}/tencentcloud/tcb/__init__.py +0 -0
- {tencentcloud_sdk_python_tcb-3.1.158 → tencentcloud_sdk_python_tcb-3.1.162}/tencentcloud/tcb/v20180608/__init__.py +0 -0
- {tencentcloud_sdk_python_tcb-3.1.158 → tencentcloud_sdk_python_tcb-3.1.162}/tencentcloud/tcb/v20180608/errorcodes.py +0 -0
- {tencentcloud_sdk_python_tcb-3.1.158 → tencentcloud_sdk_python_tcb-3.1.162}/tencentcloud_sdk_python_tcb.egg-info/SOURCES.txt +0 -0
- {tencentcloud_sdk_python_tcb-3.1.158 → tencentcloud_sdk_python_tcb-3.1.162}/tencentcloud_sdk_python_tcb.egg-info/dependency_links.txt +0 -0
- {tencentcloud_sdk_python_tcb-3.1.158 → tencentcloud_sdk_python_tcb-3.1.162}/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.162
|
|
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.162
|
|
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.162,<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
|
|
|
@@ -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.162
|
|
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.162
|
|
19
19
|
|
|
20
20
|
============================
|
|
21
21
|
Tencent Cloud SDK for Python
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
tencentcloud-sdk-python-common<4.0.0,>=3.1.162
|
|
@@ -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
|