tencentcloud-sdk-python-cbs 3.1.25__tar.gz → 3.1.95__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_cbs-3.1.25 → tencentcloud_sdk_python_cbs-3.1.95}/PKG-INFO +2 -2
- {tencentcloud_sdk_python_cbs-3.1.25 → tencentcloud_sdk_python_cbs-3.1.95}/setup.py +1 -1
- {tencentcloud_sdk_python_cbs-3.1.25 → tencentcloud_sdk_python_cbs-3.1.95}/tencentcloud/__init__.py +1 -1
- {tencentcloud_sdk_python_cbs-3.1.25 → tencentcloud_sdk_python_cbs-3.1.95}/tencentcloud/cbs/v20170312/cbs_client.py +23 -0
- {tencentcloud_sdk_python_cbs-3.1.25 → tencentcloud_sdk_python_cbs-3.1.95}/tencentcloud/cbs/v20170312/cbs_client_async.py +18 -0
- {tencentcloud_sdk_python_cbs-3.1.25 → tencentcloud_sdk_python_cbs-3.1.95}/tencentcloud/cbs/v20170312/errorcodes.py +6 -0
- {tencentcloud_sdk_python_cbs-3.1.25 → tencentcloud_sdk_python_cbs-3.1.95}/tencentcloud/cbs/v20170312/models.py +115 -4
- {tencentcloud_sdk_python_cbs-3.1.25 → tencentcloud_sdk_python_cbs-3.1.95}/tencentcloud_sdk_python_cbs.egg-info/PKG-INFO +2 -2
- tencentcloud_sdk_python_cbs-3.1.95/tencentcloud_sdk_python_cbs.egg-info/requires.txt +1 -0
- tencentcloud_sdk_python_cbs-3.1.25/tencentcloud_sdk_python_cbs.egg-info/requires.txt +0 -1
- {tencentcloud_sdk_python_cbs-3.1.25 → tencentcloud_sdk_python_cbs-3.1.95}/README.rst +0 -0
- {tencentcloud_sdk_python_cbs-3.1.25 → tencentcloud_sdk_python_cbs-3.1.95}/setup.cfg +0 -0
- {tencentcloud_sdk_python_cbs-3.1.25 → tencentcloud_sdk_python_cbs-3.1.95}/tencentcloud/cbs/__init__.py +0 -0
- {tencentcloud_sdk_python_cbs-3.1.25 → tencentcloud_sdk_python_cbs-3.1.95}/tencentcloud/cbs/v20170312/__init__.py +0 -0
- {tencentcloud_sdk_python_cbs-3.1.25 → tencentcloud_sdk_python_cbs-3.1.95}/tencentcloud_sdk_python_cbs.egg-info/SOURCES.txt +0 -0
- {tencentcloud_sdk_python_cbs-3.1.25 → tencentcloud_sdk_python_cbs-3.1.95}/tencentcloud_sdk_python_cbs.egg-info/dependency_links.txt +0 -0
- {tencentcloud_sdk_python_cbs-3.1.25 → tencentcloud_sdk_python_cbs-3.1.95}/tencentcloud_sdk_python_cbs.egg-info/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: tencentcloud-sdk-python-cbs
|
|
3
|
-
Version: 3.1.
|
|
3
|
+
Version: 3.1.95
|
|
4
4
|
Summary: Tencent Cloud Cbs 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.95
|
|
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-cbs',
|
|
11
|
-
install_requires=["tencentcloud-sdk-python-common>=3.1.
|
|
11
|
+
install_requires=["tencentcloud-sdk-python-common>=3.1.95,<4.0.0"],
|
|
12
12
|
|
|
13
13
|
version=tencentcloud.__version__,
|
|
14
14
|
description='Tencent Cloud Cbs SDK for Python',
|
|
@@ -158,6 +158,29 @@ class CbsClient(AbstractClient):
|
|
|
158
158
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
159
159
|
|
|
160
160
|
|
|
161
|
+
def CopyAutoSnapshotPolicyCrossAccount(self, request):
|
|
162
|
+
r"""针对白名单内用户实现自动快照策略的跨账号复制功能
|
|
163
|
+
|
|
164
|
+
:param request: Request instance for CopyAutoSnapshotPolicyCrossAccount.
|
|
165
|
+
:type request: :class:`tencentcloud.cbs.v20170312.models.CopyAutoSnapshotPolicyCrossAccountRequest`
|
|
166
|
+
:rtype: :class:`tencentcloud.cbs.v20170312.models.CopyAutoSnapshotPolicyCrossAccountResponse`
|
|
167
|
+
|
|
168
|
+
"""
|
|
169
|
+
try:
|
|
170
|
+
params = request._serialize()
|
|
171
|
+
headers = request.headers
|
|
172
|
+
body = self.call("CopyAutoSnapshotPolicyCrossAccount", params, headers=headers)
|
|
173
|
+
response = json.loads(body)
|
|
174
|
+
model = models.CopyAutoSnapshotPolicyCrossAccountResponse()
|
|
175
|
+
model._deserialize(response["Response"])
|
|
176
|
+
return model
|
|
177
|
+
except Exception as e:
|
|
178
|
+
if isinstance(e, TencentCloudSDKException):
|
|
179
|
+
raise
|
|
180
|
+
else:
|
|
181
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
182
|
+
|
|
183
|
+
|
|
161
184
|
def CopySnapshotCrossRegions(self, request):
|
|
162
185
|
r"""本接口(CopySnapshotCrossRegions)用于快照跨地域复制。
|
|
163
186
|
|
|
@@ -132,6 +132,24 @@ class CbsClient(AbstractClient):
|
|
|
132
132
|
|
|
133
133
|
return await self.call_and_deserialize(**kwargs)
|
|
134
134
|
|
|
135
|
+
async def CopyAutoSnapshotPolicyCrossAccount(
|
|
136
|
+
self,
|
|
137
|
+
request: models.CopyAutoSnapshotPolicyCrossAccountRequest,
|
|
138
|
+
opts: Dict = None,
|
|
139
|
+
) -> models.CopyAutoSnapshotPolicyCrossAccountResponse:
|
|
140
|
+
"""
|
|
141
|
+
针对白名单内用户实现自动快照策略的跨账号复制功能
|
|
142
|
+
"""
|
|
143
|
+
|
|
144
|
+
kwargs = {}
|
|
145
|
+
kwargs["action"] = "CopyAutoSnapshotPolicyCrossAccount"
|
|
146
|
+
kwargs["params"] = request._serialize()
|
|
147
|
+
kwargs["resp_cls"] = models.CopyAutoSnapshotPolicyCrossAccountResponse
|
|
148
|
+
kwargs["headers"] = request.headers
|
|
149
|
+
kwargs["opts"] = opts or {}
|
|
150
|
+
|
|
151
|
+
return await self.call_and_deserialize(**kwargs)
|
|
152
|
+
|
|
135
153
|
async def CopySnapshotCrossRegions(
|
|
136
154
|
self,
|
|
137
155
|
request: models.CopySnapshotCrossRegionsRequest,
|
|
@@ -101,6 +101,9 @@ INVALIDPARAMETERVALUE = 'InvalidParameterValue'
|
|
|
101
101
|
# 标签绑定云盘超过限制。
|
|
102
102
|
INVALIDPARAMETERVALUE_BINDDISKLIMITEXCEEDED = 'InvalidParameterValue.BindDiskLimitExceeded'
|
|
103
103
|
|
|
104
|
+
# 请求接口不存在。
|
|
105
|
+
INVALIDPARAMETERVALUE_INVALIDACTION = 'InvalidParameterValue.InvalidAction'
|
|
106
|
+
|
|
104
107
|
# 参数值数量超过限制。
|
|
105
108
|
INVALIDPARAMETERVALUE_LIMITEXCEEDED = 'InvalidParameterValue.LimitExceeded'
|
|
106
109
|
|
|
@@ -200,6 +203,9 @@ TRADEDEALCONFLICT = 'TradeDealConflict'
|
|
|
200
203
|
# 未授权操作。
|
|
201
204
|
UNAUTHORIZEDOPERATION = 'UnauthorizedOperation'
|
|
202
205
|
|
|
206
|
+
# 鉴权错误。
|
|
207
|
+
UNAUTHORIZEDOPERATION_AUTHFAILURE = 'UnauthorizedOperation.AuthFailure'
|
|
208
|
+
|
|
203
209
|
# CAM鉴权Token不可用。
|
|
204
210
|
UNAUTHORIZEDOPERATION_INVALIDTOKEN = 'UnauthorizedOperation.InvalidToken'
|
|
205
211
|
|
|
@@ -1349,6 +1349,117 @@ class CdcSize(AbstractModel):
|
|
|
1349
1349
|
|
|
1350
1350
|
|
|
1351
1351
|
|
|
1352
|
+
class CopyAutoSnapshotPolicyCrossAccountRequest(AbstractModel):
|
|
1353
|
+
r"""CopyAutoSnapshotPolicyCrossAccount请求参数结构体
|
|
1354
|
+
|
|
1355
|
+
"""
|
|
1356
|
+
|
|
1357
|
+
def __init__(self):
|
|
1358
|
+
r"""
|
|
1359
|
+
:param _AutoSnapshotPolicyIds: 要备份的定期快照策略ID列表
|
|
1360
|
+
:type AutoSnapshotPolicyIds: list of str
|
|
1361
|
+
:param _TargetAccountUin: 目标账户uin
|
|
1362
|
+
:type TargetAccountUin: str
|
|
1363
|
+
"""
|
|
1364
|
+
self._AutoSnapshotPolicyIds = None
|
|
1365
|
+
self._TargetAccountUin = None
|
|
1366
|
+
|
|
1367
|
+
@property
|
|
1368
|
+
def AutoSnapshotPolicyIds(self):
|
|
1369
|
+
r"""要备份的定期快照策略ID列表
|
|
1370
|
+
:rtype: list of str
|
|
1371
|
+
"""
|
|
1372
|
+
return self._AutoSnapshotPolicyIds
|
|
1373
|
+
|
|
1374
|
+
@AutoSnapshotPolicyIds.setter
|
|
1375
|
+
def AutoSnapshotPolicyIds(self, AutoSnapshotPolicyIds):
|
|
1376
|
+
self._AutoSnapshotPolicyIds = AutoSnapshotPolicyIds
|
|
1377
|
+
|
|
1378
|
+
@property
|
|
1379
|
+
def TargetAccountUin(self):
|
|
1380
|
+
r"""目标账户uin
|
|
1381
|
+
:rtype: str
|
|
1382
|
+
"""
|
|
1383
|
+
return self._TargetAccountUin
|
|
1384
|
+
|
|
1385
|
+
@TargetAccountUin.setter
|
|
1386
|
+
def TargetAccountUin(self, TargetAccountUin):
|
|
1387
|
+
self._TargetAccountUin = TargetAccountUin
|
|
1388
|
+
|
|
1389
|
+
|
|
1390
|
+
def _deserialize(self, params):
|
|
1391
|
+
self._AutoSnapshotPolicyIds = params.get("AutoSnapshotPolicyIds")
|
|
1392
|
+
self._TargetAccountUin = params.get("TargetAccountUin")
|
|
1393
|
+
memeber_set = set(params.keys())
|
|
1394
|
+
for name, value in vars(self).items():
|
|
1395
|
+
property_name = name[1:]
|
|
1396
|
+
if property_name in memeber_set:
|
|
1397
|
+
memeber_set.remove(property_name)
|
|
1398
|
+
if len(memeber_set) > 0:
|
|
1399
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
1400
|
+
|
|
1401
|
+
|
|
1402
|
+
|
|
1403
|
+
class CopyAutoSnapshotPolicyCrossAccountResponse(AbstractModel):
|
|
1404
|
+
r"""CopyAutoSnapshotPolicyCrossAccount返回参数结构体
|
|
1405
|
+
|
|
1406
|
+
"""
|
|
1407
|
+
|
|
1408
|
+
def __init__(self):
|
|
1409
|
+
r"""
|
|
1410
|
+
:param _AutoSnapshotPolicyIds: 已备份的定期快照策略ID列表
|
|
1411
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
1412
|
+
:type AutoSnapshotPolicyIds: list of str
|
|
1413
|
+
:param _TargetAccountUin: 目标账户uin
|
|
1414
|
+
:type TargetAccountUin: str
|
|
1415
|
+
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
1416
|
+
:type RequestId: str
|
|
1417
|
+
"""
|
|
1418
|
+
self._AutoSnapshotPolicyIds = None
|
|
1419
|
+
self._TargetAccountUin = None
|
|
1420
|
+
self._RequestId = None
|
|
1421
|
+
|
|
1422
|
+
@property
|
|
1423
|
+
def AutoSnapshotPolicyIds(self):
|
|
1424
|
+
r"""已备份的定期快照策略ID列表
|
|
1425
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
1426
|
+
:rtype: list of str
|
|
1427
|
+
"""
|
|
1428
|
+
return self._AutoSnapshotPolicyIds
|
|
1429
|
+
|
|
1430
|
+
@AutoSnapshotPolicyIds.setter
|
|
1431
|
+
def AutoSnapshotPolicyIds(self, AutoSnapshotPolicyIds):
|
|
1432
|
+
self._AutoSnapshotPolicyIds = AutoSnapshotPolicyIds
|
|
1433
|
+
|
|
1434
|
+
@property
|
|
1435
|
+
def TargetAccountUin(self):
|
|
1436
|
+
r"""目标账户uin
|
|
1437
|
+
:rtype: str
|
|
1438
|
+
"""
|
|
1439
|
+
return self._TargetAccountUin
|
|
1440
|
+
|
|
1441
|
+
@TargetAccountUin.setter
|
|
1442
|
+
def TargetAccountUin(self, TargetAccountUin):
|
|
1443
|
+
self._TargetAccountUin = TargetAccountUin
|
|
1444
|
+
|
|
1445
|
+
@property
|
|
1446
|
+
def RequestId(self):
|
|
1447
|
+
r"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
1448
|
+
:rtype: str
|
|
1449
|
+
"""
|
|
1450
|
+
return self._RequestId
|
|
1451
|
+
|
|
1452
|
+
@RequestId.setter
|
|
1453
|
+
def RequestId(self, RequestId):
|
|
1454
|
+
self._RequestId = RequestId
|
|
1455
|
+
|
|
1456
|
+
|
|
1457
|
+
def _deserialize(self, params):
|
|
1458
|
+
self._AutoSnapshotPolicyIds = params.get("AutoSnapshotPolicyIds")
|
|
1459
|
+
self._TargetAccountUin = params.get("TargetAccountUin")
|
|
1460
|
+
self._RequestId = params.get("RequestId")
|
|
1461
|
+
|
|
1462
|
+
|
|
1352
1463
|
class CopySnapshotCrossRegionsRequest(AbstractModel):
|
|
1353
1464
|
r"""CopySnapshotCrossRegions请求参数结构体
|
|
1354
1465
|
|
|
@@ -3706,14 +3817,14 @@ class DescribeInstancesDiskNumRequest(AbstractModel):
|
|
|
3706
3817
|
|
|
3707
3818
|
def __init__(self):
|
|
3708
3819
|
r"""
|
|
3709
|
-
:param _InstanceIds:
|
|
3820
|
+
:param _InstanceIds: <p>云服务器实例ID,通过<a href="/document/product/213/15728">DescribeInstances</a>接口查询。</p>
|
|
3710
3821
|
:type InstanceIds: list of str
|
|
3711
3822
|
"""
|
|
3712
3823
|
self._InstanceIds = None
|
|
3713
3824
|
|
|
3714
3825
|
@property
|
|
3715
3826
|
def InstanceIds(self):
|
|
3716
|
-
r"""
|
|
3827
|
+
r"""<p>云服务器实例ID,通过<a href="/document/product/213/15728">DescribeInstances</a>接口查询。</p>
|
|
3717
3828
|
:rtype: list of str
|
|
3718
3829
|
"""
|
|
3719
3830
|
return self._InstanceIds
|
|
@@ -3742,7 +3853,7 @@ class DescribeInstancesDiskNumResponse(AbstractModel):
|
|
|
3742
3853
|
|
|
3743
3854
|
def __init__(self):
|
|
3744
3855
|
r"""
|
|
3745
|
-
:param _AttachDetail:
|
|
3856
|
+
:param _AttachDetail: <p>各个云服务器已挂载和可挂载弹性云盘的数量。</p>
|
|
3746
3857
|
:type AttachDetail: list of AttachDetail
|
|
3747
3858
|
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
3748
3859
|
:type RequestId: str
|
|
@@ -3752,7 +3863,7 @@ class DescribeInstancesDiskNumResponse(AbstractModel):
|
|
|
3752
3863
|
|
|
3753
3864
|
@property
|
|
3754
3865
|
def AttachDetail(self):
|
|
3755
|
-
r"""
|
|
3866
|
+
r"""<p>各个云服务器已挂载和可挂载弹性云盘的数量。</p>
|
|
3756
3867
|
:rtype: list of AttachDetail
|
|
3757
3868
|
"""
|
|
3758
3869
|
return self._AttachDetail
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: tencentcloud-sdk-python-cbs
|
|
3
|
-
Version: 3.1.
|
|
3
|
+
Version: 3.1.95
|
|
4
4
|
Summary: Tencent Cloud Cbs 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.95
|
|
19
19
|
|
|
20
20
|
============================
|
|
21
21
|
Tencent Cloud SDK for Python
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
tencentcloud-sdk-python-common<4.0.0,>=3.1.95
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
tencentcloud-sdk-python-common<4.0.0,>=3.1.25
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|