tencentcloud-sdk-python-kms 3.1.131__tar.gz → 3.1.150__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_kms-3.1.131 → tencentcloud_sdk_python_kms-3.1.150}/PKG-INFO +2 -2
- {tencentcloud_sdk_python_kms-3.1.131 → tencentcloud_sdk_python_kms-3.1.150}/setup.py +1 -1
- {tencentcloud_sdk_python_kms-3.1.131 → tencentcloud_sdk_python_kms-3.1.150}/tencentcloud/__init__.py +1 -1
- {tencentcloud_sdk_python_kms-3.1.131 → tencentcloud_sdk_python_kms-3.1.150}/tencentcloud/kms/v20190118/errorcodes.py +9 -0
- {tencentcloud_sdk_python_kms-3.1.131 → tencentcloud_sdk_python_kms-3.1.150}/tencentcloud/kms/v20190118/kms_client.py +23 -0
- {tencentcloud_sdk_python_kms-3.1.131 → tencentcloud_sdk_python_kms-3.1.150}/tencentcloud/kms/v20190118/kms_client_async.py +18 -0
- {tencentcloud_sdk_python_kms-3.1.131 → tencentcloud_sdk_python_kms-3.1.150}/tencentcloud/kms/v20190118/models.py +204 -48
- {tencentcloud_sdk_python_kms-3.1.131 → tencentcloud_sdk_python_kms-3.1.150}/tencentcloud_sdk_python_kms.egg-info/PKG-INFO +2 -2
- tencentcloud_sdk_python_kms-3.1.150/tencentcloud_sdk_python_kms.egg-info/requires.txt +1 -0
- tencentcloud_sdk_python_kms-3.1.131/tencentcloud_sdk_python_kms.egg-info/requires.txt +0 -1
- {tencentcloud_sdk_python_kms-3.1.131 → tencentcloud_sdk_python_kms-3.1.150}/README.rst +0 -0
- {tencentcloud_sdk_python_kms-3.1.131 → tencentcloud_sdk_python_kms-3.1.150}/setup.cfg +0 -0
- {tencentcloud_sdk_python_kms-3.1.131 → tencentcloud_sdk_python_kms-3.1.150}/tencentcloud/kms/__init__.py +0 -0
- {tencentcloud_sdk_python_kms-3.1.131 → tencentcloud_sdk_python_kms-3.1.150}/tencentcloud/kms/v20190118/__init__.py +0 -0
- {tencentcloud_sdk_python_kms-3.1.131 → tencentcloud_sdk_python_kms-3.1.150}/tencentcloud_sdk_python_kms.egg-info/SOURCES.txt +0 -0
- {tencentcloud_sdk_python_kms-3.1.131 → tencentcloud_sdk_python_kms-3.1.150}/tencentcloud_sdk_python_kms.egg-info/dependency_links.txt +0 -0
- {tencentcloud_sdk_python_kms-3.1.131 → tencentcloud_sdk_python_kms-3.1.150}/tencentcloud_sdk_python_kms.egg-info/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: tencentcloud-sdk-python-kms
|
|
3
|
-
Version: 3.1.
|
|
3
|
+
Version: 3.1.150
|
|
4
4
|
Summary: Tencent Cloud Kms 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.150
|
|
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-kms',
|
|
11
|
-
install_requires=["tencentcloud-sdk-python-common>=3.1.
|
|
11
|
+
install_requires=["tencentcloud-sdk-python-common>=3.1.150,<4.0.0"],
|
|
12
12
|
|
|
13
13
|
version=tencentcloud.__version__,
|
|
14
14
|
description='Tencent Cloud Kms SDK for Python',
|
|
@@ -32,6 +32,9 @@ FAILEDOPERATION_DECRYPTERROR = 'FailedOperation.DecryptError'
|
|
|
32
32
|
# 加密操作失败。
|
|
33
33
|
FAILEDOPERATION_ENCRYPTIONERROR = 'FailedOperation.EncryptionError'
|
|
34
34
|
|
|
35
|
+
# 已有正在进行的轮转任务
|
|
36
|
+
FAILEDOPERATION_ROTATETASKRUNNING = 'FailedOperation.RotateTaskRunning'
|
|
37
|
+
|
|
35
38
|
# 标签服务错误。
|
|
36
39
|
FAILEDOPERATION_TAGGINGERROR = 'FailedOperation.TaggingError'
|
|
37
40
|
|
|
@@ -116,6 +119,9 @@ LIMITEXCEEDED_KEYLIMITEXCEEDED = 'LimitExceeded.KeyLimitExceeded'
|
|
|
116
119
|
# 缺少参数错误。
|
|
117
120
|
MISSINGPARAMETER = 'MissingParameter'
|
|
118
121
|
|
|
122
|
+
# 轮转操作触发限频,默认24小时内仅可轮转一次
|
|
123
|
+
REQUESTLIMITEXCEEDED_ROTATERATELIMITED = 'RequestLimitExceeded.RotateRateLimited'
|
|
124
|
+
|
|
119
125
|
# 资源不存在。
|
|
120
126
|
RESOURCENOTFOUND = 'ResourceNotFound'
|
|
121
127
|
|
|
@@ -185,6 +191,9 @@ UNSUPPORTEDOPERATION_NOTROLEOPERATION = 'UnsupportedOperation.NotRoleOperation'
|
|
|
185
191
|
# 仅支持对用户自己创建的CMK做更新。
|
|
186
192
|
UNSUPPORTEDOPERATION_NOTUSERCREATEDCMK = 'UnsupportedOperation.NotUserCreatedCmk'
|
|
187
193
|
|
|
194
|
+
# 不支持轮转(未开启轮转、外部密钥、副本密钥)
|
|
195
|
+
UNSUPPORTEDOPERATION_ROTATENOTSUPPORTED = 'UnsupportedOperation.RotateNotSupported'
|
|
196
|
+
|
|
188
197
|
# 服务暂时不可用。
|
|
189
198
|
UNSUPPORTEDOPERATION_SERVICETEMPORARYUNAVAILABLE = 'UnsupportedOperation.ServiceTemporaryUnavailable'
|
|
190
199
|
|
|
@@ -1384,6 +1384,29 @@ class KmsClient(AbstractClient):
|
|
|
1384
1384
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
1385
1385
|
|
|
1386
1386
|
|
|
1387
|
+
def RotateKey(self, request):
|
|
1388
|
+
r"""对指定的CMK(用户主密钥)执行立即轮转操作。可以通过调用DescribeKey,返回上次轮转时间和下次轮转时间,判断是否轮转成功。
|
|
1389
|
+
|
|
1390
|
+
:param request: Request instance for RotateKey.
|
|
1391
|
+
:type request: :class:`tencentcloud.kms.v20190118.models.RotateKeyRequest`
|
|
1392
|
+
:rtype: :class:`tencentcloud.kms.v20190118.models.RotateKeyResponse`
|
|
1393
|
+
|
|
1394
|
+
"""
|
|
1395
|
+
try:
|
|
1396
|
+
params = request._serialize()
|
|
1397
|
+
headers = request.headers
|
|
1398
|
+
body = self.call("RotateKey", params, headers=headers)
|
|
1399
|
+
response = json.loads(body)
|
|
1400
|
+
model = models.RotateKeyResponse()
|
|
1401
|
+
model._deserialize(response["Response"])
|
|
1402
|
+
return model
|
|
1403
|
+
except Exception as e:
|
|
1404
|
+
if isinstance(e, TencentCloudSDKException):
|
|
1405
|
+
raise
|
|
1406
|
+
else:
|
|
1407
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
1408
|
+
|
|
1409
|
+
|
|
1387
1410
|
def ScheduleDataKeyDeletion(self, request):
|
|
1388
1411
|
r"""计划删除数据密钥
|
|
1389
1412
|
|
|
@@ -1088,6 +1088,24 @@ class KmsClient(AbstractClient):
|
|
|
1088
1088
|
|
|
1089
1089
|
return await self.call_and_deserialize(**kwargs)
|
|
1090
1090
|
|
|
1091
|
+
async def RotateKey(
|
|
1092
|
+
self,
|
|
1093
|
+
request: models.RotateKeyRequest,
|
|
1094
|
+
opts: Dict = None,
|
|
1095
|
+
) -> models.RotateKeyResponse:
|
|
1096
|
+
"""
|
|
1097
|
+
对指定的CMK(用户主密钥)执行立即轮转操作。可以通过调用DescribeKey,返回上次轮转时间和下次轮转时间,判断是否轮转成功。
|
|
1098
|
+
"""
|
|
1099
|
+
|
|
1100
|
+
kwargs = {}
|
|
1101
|
+
kwargs["action"] = "RotateKey"
|
|
1102
|
+
kwargs["params"] = request._serialize()
|
|
1103
|
+
kwargs["resp_cls"] = models.RotateKeyResponse
|
|
1104
|
+
kwargs["headers"] = request.headers
|
|
1105
|
+
kwargs["opts"] = opts or {}
|
|
1106
|
+
|
|
1107
|
+
return await self.call_and_deserialize(**kwargs)
|
|
1108
|
+
|
|
1091
1109
|
async def ScheduleDataKeyDeletion(
|
|
1092
1110
|
self,
|
|
1093
1111
|
request: models.ScheduleDataKeyDeletionRequest,
|
|
@@ -1261,54 +1261,56 @@ class DataKeyMetadata(AbstractModel):
|
|
|
1261
1261
|
|
|
1262
1262
|
def __init__(self):
|
|
1263
1263
|
r"""
|
|
1264
|
-
:param _DataKeyId: DataKey
|
|
1264
|
+
:param _DataKeyId: <p>DataKey的全局唯一标识</p>
|
|
1265
1265
|
:type DataKeyId: str
|
|
1266
|
-
:param _KeyId: CMK
|
|
1266
|
+
:param _KeyId: <p>CMK的全局唯一标识</p>
|
|
1267
1267
|
:type KeyId: str
|
|
1268
|
-
:param _KeyName: CMK
|
|
1268
|
+
:param _KeyName: <p>CMK的名称</p>
|
|
1269
1269
|
:type KeyName: str
|
|
1270
|
-
:param _DataKeyName:
|
|
1270
|
+
:param _DataKeyName: <p>作为密钥更容易辨识,更容易被人看懂的数据密钥名称</p>
|
|
1271
1271
|
:type DataKeyName: str
|
|
1272
|
-
:param _NumberOfBytes:
|
|
1272
|
+
:param _NumberOfBytes: <p>数据密钥的长度,单位字节</p>
|
|
1273
1273
|
:type NumberOfBytes: int
|
|
1274
|
-
:param _CreateTime:
|
|
1274
|
+
:param _CreateTime: <p>密钥创建时间</p>
|
|
1275
1275
|
:type CreateTime: int
|
|
1276
|
-
:param _Description: DataKey
|
|
1276
|
+
:param _Description: <p>DataKey的描述</p>
|
|
1277
1277
|
:type Description: str
|
|
1278
|
-
:param _KeyState: DataKey的状态, 取值为:Enabled | Disabled | PendingDelete
|
|
1278
|
+
:param _KeyState: <p>DataKey的状态, 取值为:Enabled | Disabled | PendingDelete</p>
|
|
1279
1279
|
:type KeyState: str
|
|
1280
|
-
:param _CreatorUin:
|
|
1280
|
+
:param _CreatorUin: <p>创建者</p>
|
|
1281
1281
|
:type CreatorUin: int
|
|
1282
|
-
:param _Owner:
|
|
1282
|
+
:param _Owner: <p>数据密钥的创建者,用户创建的为 user,授权各云产品自动创建的为对应的产品名</p>
|
|
1283
1283
|
:type Owner: str
|
|
1284
|
-
:param _DeletionDate:
|
|
1284
|
+
:param _DeletionDate: <p>计划删除的时间</p>
|
|
1285
1285
|
:type DeletionDate: int
|
|
1286
|
-
:param _Origin: DataKey 密钥材料类型,由KMS创建的为: TENCENT_KMS, 由用户导入的类型为:EXTERNAL
|
|
1286
|
+
:param _Origin: <p>DataKey 密钥材料类型,由KMS创建的为: TENCENT_KMS, 由用户导入的类型为:EXTERNAL</p>
|
|
1287
1287
|
:type Origin: str
|
|
1288
|
-
:param _HsmClusterId: HSM 集群 ID(仅对 KMS
|
|
1288
|
+
:param _HsmClusterId: <p>HSM 集群 ID(仅对 KMS 独占版/托管版服务实例有效)</p>
|
|
1289
1289
|
:type HsmClusterId: str
|
|
1290
|
-
:param _ResourceId:
|
|
1290
|
+
:param _ResourceId: <p>资源ID,格式:creatorUin/$creatorUin/$dataKeyId</p>
|
|
1291
1291
|
:type ResourceId: str
|
|
1292
|
-
:param _IsSyncReplica:
|
|
1292
|
+
:param _IsSyncReplica: <p>密钥是否是主副本。0:主本,1:同步副本。</p>
|
|
1293
1293
|
:type IsSyncReplica: int
|
|
1294
|
-
:param _SourceRegion:
|
|
1294
|
+
:param _SourceRegion: <p>同步的原始地域</p>
|
|
1295
1295
|
:type SourceRegion: str
|
|
1296
|
-
:param _SyncStatus:
|
|
1296
|
+
:param _SyncStatus: <p>密钥同步的状态,0:未同步,1:同步成功,2:同步失败,3:同步中。</p>
|
|
1297
1297
|
:type SyncStatus: int
|
|
1298
|
-
:param _SyncMessages:
|
|
1298
|
+
:param _SyncMessages: <p>同步的结果描述</p>
|
|
1299
1299
|
:type SyncMessages: str
|
|
1300
|
-
:param _SyncStartTime:
|
|
1300
|
+
:param _SyncStartTime: <p>同步的开始时间</p>
|
|
1301
1301
|
:type SyncStartTime: int
|
|
1302
|
-
:param _SyncEndTime:
|
|
1302
|
+
:param _SyncEndTime: <p>同步的结束时间</p>
|
|
1303
1303
|
:type SyncEndTime: int
|
|
1304
|
-
:param _SourceHsmClusterId:
|
|
1304
|
+
:param _SourceHsmClusterId: <p>同步的原始集群,如果为空,是公有云公共集群</p>
|
|
1305
1305
|
:type SourceHsmClusterId: str
|
|
1306
|
-
:param _AccountAppId:
|
|
1306
|
+
:param _AccountAppId: <p>成员账号appId</p>
|
|
1307
1307
|
:type AccountAppId: int
|
|
1308
|
-
:param _AccountUin:
|
|
1308
|
+
:param _AccountUin: <p>成员账号uin</p>
|
|
1309
1309
|
:type AccountUin: int
|
|
1310
|
-
:param _AccountName:
|
|
1310
|
+
:param _AccountName: <p>成员账号名称</p>
|
|
1311
1311
|
:type AccountName: str
|
|
1312
|
+
:param _CreatorUinString: <p>创建者UIN</p>
|
|
1313
|
+
:type CreatorUinString: str
|
|
1312
1314
|
"""
|
|
1313
1315
|
self._DataKeyId = None
|
|
1314
1316
|
self._KeyId = None
|
|
@@ -1334,10 +1336,11 @@ class DataKeyMetadata(AbstractModel):
|
|
|
1334
1336
|
self._AccountAppId = None
|
|
1335
1337
|
self._AccountUin = None
|
|
1336
1338
|
self._AccountName = None
|
|
1339
|
+
self._CreatorUinString = None
|
|
1337
1340
|
|
|
1338
1341
|
@property
|
|
1339
1342
|
def DataKeyId(self):
|
|
1340
|
-
r"""DataKey
|
|
1343
|
+
r"""<p>DataKey的全局唯一标识</p>
|
|
1341
1344
|
:rtype: str
|
|
1342
1345
|
"""
|
|
1343
1346
|
return self._DataKeyId
|
|
@@ -1348,7 +1351,7 @@ class DataKeyMetadata(AbstractModel):
|
|
|
1348
1351
|
|
|
1349
1352
|
@property
|
|
1350
1353
|
def KeyId(self):
|
|
1351
|
-
r"""CMK
|
|
1354
|
+
r"""<p>CMK的全局唯一标识</p>
|
|
1352
1355
|
:rtype: str
|
|
1353
1356
|
"""
|
|
1354
1357
|
return self._KeyId
|
|
@@ -1359,7 +1362,7 @@ class DataKeyMetadata(AbstractModel):
|
|
|
1359
1362
|
|
|
1360
1363
|
@property
|
|
1361
1364
|
def KeyName(self):
|
|
1362
|
-
r"""CMK
|
|
1365
|
+
r"""<p>CMK的名称</p>
|
|
1363
1366
|
:rtype: str
|
|
1364
1367
|
"""
|
|
1365
1368
|
return self._KeyName
|
|
@@ -1370,7 +1373,7 @@ class DataKeyMetadata(AbstractModel):
|
|
|
1370
1373
|
|
|
1371
1374
|
@property
|
|
1372
1375
|
def DataKeyName(self):
|
|
1373
|
-
r"""
|
|
1376
|
+
r"""<p>作为密钥更容易辨识,更容易被人看懂的数据密钥名称</p>
|
|
1374
1377
|
:rtype: str
|
|
1375
1378
|
"""
|
|
1376
1379
|
return self._DataKeyName
|
|
@@ -1381,7 +1384,7 @@ class DataKeyMetadata(AbstractModel):
|
|
|
1381
1384
|
|
|
1382
1385
|
@property
|
|
1383
1386
|
def NumberOfBytes(self):
|
|
1384
|
-
r"""
|
|
1387
|
+
r"""<p>数据密钥的长度,单位字节</p>
|
|
1385
1388
|
:rtype: int
|
|
1386
1389
|
"""
|
|
1387
1390
|
return self._NumberOfBytes
|
|
@@ -1392,7 +1395,7 @@ class DataKeyMetadata(AbstractModel):
|
|
|
1392
1395
|
|
|
1393
1396
|
@property
|
|
1394
1397
|
def CreateTime(self):
|
|
1395
|
-
r"""
|
|
1398
|
+
r"""<p>密钥创建时间</p>
|
|
1396
1399
|
:rtype: int
|
|
1397
1400
|
"""
|
|
1398
1401
|
return self._CreateTime
|
|
@@ -1403,7 +1406,7 @@ class DataKeyMetadata(AbstractModel):
|
|
|
1403
1406
|
|
|
1404
1407
|
@property
|
|
1405
1408
|
def Description(self):
|
|
1406
|
-
r"""DataKey
|
|
1409
|
+
r"""<p>DataKey的描述</p>
|
|
1407
1410
|
:rtype: str
|
|
1408
1411
|
"""
|
|
1409
1412
|
return self._Description
|
|
@@ -1414,7 +1417,7 @@ class DataKeyMetadata(AbstractModel):
|
|
|
1414
1417
|
|
|
1415
1418
|
@property
|
|
1416
1419
|
def KeyState(self):
|
|
1417
|
-
r"""DataKey的状态, 取值为:Enabled | Disabled | PendingDelete
|
|
1420
|
+
r"""<p>DataKey的状态, 取值为:Enabled | Disabled | PendingDelete</p>
|
|
1418
1421
|
:rtype: str
|
|
1419
1422
|
"""
|
|
1420
1423
|
return self._KeyState
|
|
@@ -1425,7 +1428,7 @@ class DataKeyMetadata(AbstractModel):
|
|
|
1425
1428
|
|
|
1426
1429
|
@property
|
|
1427
1430
|
def CreatorUin(self):
|
|
1428
|
-
r"""
|
|
1431
|
+
r"""<p>创建者</p>
|
|
1429
1432
|
:rtype: int
|
|
1430
1433
|
"""
|
|
1431
1434
|
return self._CreatorUin
|
|
@@ -1436,7 +1439,7 @@ class DataKeyMetadata(AbstractModel):
|
|
|
1436
1439
|
|
|
1437
1440
|
@property
|
|
1438
1441
|
def Owner(self):
|
|
1439
|
-
r"""
|
|
1442
|
+
r"""<p>数据密钥的创建者,用户创建的为 user,授权各云产品自动创建的为对应的产品名</p>
|
|
1440
1443
|
:rtype: str
|
|
1441
1444
|
"""
|
|
1442
1445
|
return self._Owner
|
|
@@ -1447,7 +1450,7 @@ class DataKeyMetadata(AbstractModel):
|
|
|
1447
1450
|
|
|
1448
1451
|
@property
|
|
1449
1452
|
def DeletionDate(self):
|
|
1450
|
-
r"""
|
|
1453
|
+
r"""<p>计划删除的时间</p>
|
|
1451
1454
|
:rtype: int
|
|
1452
1455
|
"""
|
|
1453
1456
|
return self._DeletionDate
|
|
@@ -1458,7 +1461,7 @@ class DataKeyMetadata(AbstractModel):
|
|
|
1458
1461
|
|
|
1459
1462
|
@property
|
|
1460
1463
|
def Origin(self):
|
|
1461
|
-
r"""DataKey 密钥材料类型,由KMS创建的为: TENCENT_KMS, 由用户导入的类型为:EXTERNAL
|
|
1464
|
+
r"""<p>DataKey 密钥材料类型,由KMS创建的为: TENCENT_KMS, 由用户导入的类型为:EXTERNAL</p>
|
|
1462
1465
|
:rtype: str
|
|
1463
1466
|
"""
|
|
1464
1467
|
return self._Origin
|
|
@@ -1469,7 +1472,7 @@ class DataKeyMetadata(AbstractModel):
|
|
|
1469
1472
|
|
|
1470
1473
|
@property
|
|
1471
1474
|
def HsmClusterId(self):
|
|
1472
|
-
r"""HSM 集群 ID(仅对 KMS
|
|
1475
|
+
r"""<p>HSM 集群 ID(仅对 KMS 独占版/托管版服务实例有效)</p>
|
|
1473
1476
|
:rtype: str
|
|
1474
1477
|
"""
|
|
1475
1478
|
return self._HsmClusterId
|
|
@@ -1480,7 +1483,7 @@ class DataKeyMetadata(AbstractModel):
|
|
|
1480
1483
|
|
|
1481
1484
|
@property
|
|
1482
1485
|
def ResourceId(self):
|
|
1483
|
-
r"""
|
|
1486
|
+
r"""<p>资源ID,格式:creatorUin/$creatorUin/$dataKeyId</p>
|
|
1484
1487
|
:rtype: str
|
|
1485
1488
|
"""
|
|
1486
1489
|
return self._ResourceId
|
|
@@ -1491,7 +1494,7 @@ class DataKeyMetadata(AbstractModel):
|
|
|
1491
1494
|
|
|
1492
1495
|
@property
|
|
1493
1496
|
def IsSyncReplica(self):
|
|
1494
|
-
r"""
|
|
1497
|
+
r"""<p>密钥是否是主副本。0:主本,1:同步副本。</p>
|
|
1495
1498
|
:rtype: int
|
|
1496
1499
|
"""
|
|
1497
1500
|
return self._IsSyncReplica
|
|
@@ -1502,7 +1505,7 @@ class DataKeyMetadata(AbstractModel):
|
|
|
1502
1505
|
|
|
1503
1506
|
@property
|
|
1504
1507
|
def SourceRegion(self):
|
|
1505
|
-
r"""
|
|
1508
|
+
r"""<p>同步的原始地域</p>
|
|
1506
1509
|
:rtype: str
|
|
1507
1510
|
"""
|
|
1508
1511
|
return self._SourceRegion
|
|
@@ -1513,7 +1516,7 @@ class DataKeyMetadata(AbstractModel):
|
|
|
1513
1516
|
|
|
1514
1517
|
@property
|
|
1515
1518
|
def SyncStatus(self):
|
|
1516
|
-
r"""
|
|
1519
|
+
r"""<p>密钥同步的状态,0:未同步,1:同步成功,2:同步失败,3:同步中。</p>
|
|
1517
1520
|
:rtype: int
|
|
1518
1521
|
"""
|
|
1519
1522
|
return self._SyncStatus
|
|
@@ -1524,7 +1527,7 @@ class DataKeyMetadata(AbstractModel):
|
|
|
1524
1527
|
|
|
1525
1528
|
@property
|
|
1526
1529
|
def SyncMessages(self):
|
|
1527
|
-
r"""
|
|
1530
|
+
r"""<p>同步的结果描述</p>
|
|
1528
1531
|
:rtype: str
|
|
1529
1532
|
"""
|
|
1530
1533
|
return self._SyncMessages
|
|
@@ -1535,7 +1538,7 @@ class DataKeyMetadata(AbstractModel):
|
|
|
1535
1538
|
|
|
1536
1539
|
@property
|
|
1537
1540
|
def SyncStartTime(self):
|
|
1538
|
-
r"""
|
|
1541
|
+
r"""<p>同步的开始时间</p>
|
|
1539
1542
|
:rtype: int
|
|
1540
1543
|
"""
|
|
1541
1544
|
return self._SyncStartTime
|
|
@@ -1546,7 +1549,7 @@ class DataKeyMetadata(AbstractModel):
|
|
|
1546
1549
|
|
|
1547
1550
|
@property
|
|
1548
1551
|
def SyncEndTime(self):
|
|
1549
|
-
r"""
|
|
1552
|
+
r"""<p>同步的结束时间</p>
|
|
1550
1553
|
:rtype: int
|
|
1551
1554
|
"""
|
|
1552
1555
|
return self._SyncEndTime
|
|
@@ -1557,7 +1560,7 @@ class DataKeyMetadata(AbstractModel):
|
|
|
1557
1560
|
|
|
1558
1561
|
@property
|
|
1559
1562
|
def SourceHsmClusterId(self):
|
|
1560
|
-
r"""
|
|
1563
|
+
r"""<p>同步的原始集群,如果为空,是公有云公共集群</p>
|
|
1561
1564
|
:rtype: str
|
|
1562
1565
|
"""
|
|
1563
1566
|
return self._SourceHsmClusterId
|
|
@@ -1568,7 +1571,7 @@ class DataKeyMetadata(AbstractModel):
|
|
|
1568
1571
|
|
|
1569
1572
|
@property
|
|
1570
1573
|
def AccountAppId(self):
|
|
1571
|
-
r"""
|
|
1574
|
+
r"""<p>成员账号appId</p>
|
|
1572
1575
|
:rtype: int
|
|
1573
1576
|
"""
|
|
1574
1577
|
return self._AccountAppId
|
|
@@ -1579,7 +1582,7 @@ class DataKeyMetadata(AbstractModel):
|
|
|
1579
1582
|
|
|
1580
1583
|
@property
|
|
1581
1584
|
def AccountUin(self):
|
|
1582
|
-
r"""
|
|
1585
|
+
r"""<p>成员账号uin</p>
|
|
1583
1586
|
:rtype: int
|
|
1584
1587
|
"""
|
|
1585
1588
|
return self._AccountUin
|
|
@@ -1590,7 +1593,7 @@ class DataKeyMetadata(AbstractModel):
|
|
|
1590
1593
|
|
|
1591
1594
|
@property
|
|
1592
1595
|
def AccountName(self):
|
|
1593
|
-
r"""
|
|
1596
|
+
r"""<p>成员账号名称</p>
|
|
1594
1597
|
:rtype: str
|
|
1595
1598
|
"""
|
|
1596
1599
|
return self._AccountName
|
|
@@ -1599,6 +1602,17 @@ class DataKeyMetadata(AbstractModel):
|
|
|
1599
1602
|
def AccountName(self, AccountName):
|
|
1600
1603
|
self._AccountName = AccountName
|
|
1601
1604
|
|
|
1605
|
+
@property
|
|
1606
|
+
def CreatorUinString(self):
|
|
1607
|
+
r"""<p>创建者UIN</p>
|
|
1608
|
+
:rtype: str
|
|
1609
|
+
"""
|
|
1610
|
+
return self._CreatorUinString
|
|
1611
|
+
|
|
1612
|
+
@CreatorUinString.setter
|
|
1613
|
+
def CreatorUinString(self, CreatorUinString):
|
|
1614
|
+
self._CreatorUinString = CreatorUinString
|
|
1615
|
+
|
|
1602
1616
|
|
|
1603
1617
|
def _deserialize(self, params):
|
|
1604
1618
|
self._DataKeyId = params.get("DataKeyId")
|
|
@@ -1625,6 +1639,7 @@ class DataKeyMetadata(AbstractModel):
|
|
|
1625
1639
|
self._AccountAppId = params.get("AccountAppId")
|
|
1626
1640
|
self._AccountUin = params.get("AccountUin")
|
|
1627
1641
|
self._AccountName = params.get("AccountName")
|
|
1642
|
+
self._CreatorUinString = params.get("CreatorUinString")
|
|
1628
1643
|
memeber_set = set(params.keys())
|
|
1629
1644
|
for name, value in vars(self).items():
|
|
1630
1645
|
property_name = name[1:]
|
|
@@ -5284,6 +5299,10 @@ class GetServiceStatusResponse(AbstractModel):
|
|
|
5284
5299
|
:type QpsTotalLimit: int
|
|
5285
5300
|
:param _RegionsQps: <p>地域下的QPS</p>
|
|
5286
5301
|
:type RegionsQps: list of RegionQps
|
|
5302
|
+
:param _ResourceZone: <p>资源的地域信息</p>
|
|
5303
|
+
:type ResourceZone: int
|
|
5304
|
+
:param _ResourceRegion: <p>资源的地域可用区信息</p>
|
|
5305
|
+
:type ResourceRegion: int
|
|
5287
5306
|
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
5288
5307
|
:type RequestId: str
|
|
5289
5308
|
"""
|
|
@@ -5308,6 +5327,8 @@ class GetServiceStatusResponse(AbstractModel):
|
|
|
5308
5327
|
self._QpsLimit = None
|
|
5309
5328
|
self._QpsTotalLimit = None
|
|
5310
5329
|
self._RegionsQps = None
|
|
5330
|
+
self._ResourceZone = None
|
|
5331
|
+
self._ResourceRegion = None
|
|
5311
5332
|
self._RequestId = None
|
|
5312
5333
|
|
|
5313
5334
|
@property
|
|
@@ -5541,6 +5562,28 @@ class GetServiceStatusResponse(AbstractModel):
|
|
|
5541
5562
|
def RegionsQps(self, RegionsQps):
|
|
5542
5563
|
self._RegionsQps = RegionsQps
|
|
5543
5564
|
|
|
5565
|
+
@property
|
|
5566
|
+
def ResourceZone(self):
|
|
5567
|
+
r"""<p>资源的地域信息</p>
|
|
5568
|
+
:rtype: int
|
|
5569
|
+
"""
|
|
5570
|
+
return self._ResourceZone
|
|
5571
|
+
|
|
5572
|
+
@ResourceZone.setter
|
|
5573
|
+
def ResourceZone(self, ResourceZone):
|
|
5574
|
+
self._ResourceZone = ResourceZone
|
|
5575
|
+
|
|
5576
|
+
@property
|
|
5577
|
+
def ResourceRegion(self):
|
|
5578
|
+
r"""<p>资源的地域可用区信息</p>
|
|
5579
|
+
:rtype: int
|
|
5580
|
+
"""
|
|
5581
|
+
return self._ResourceRegion
|
|
5582
|
+
|
|
5583
|
+
@ResourceRegion.setter
|
|
5584
|
+
def ResourceRegion(self, ResourceRegion):
|
|
5585
|
+
self._ResourceRegion = ResourceRegion
|
|
5586
|
+
|
|
5544
5587
|
@property
|
|
5545
5588
|
def RequestId(self):
|
|
5546
5589
|
r"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
@@ -5590,6 +5633,8 @@ class GetServiceStatusResponse(AbstractModel):
|
|
|
5590
5633
|
obj = RegionQps()
|
|
5591
5634
|
obj._deserialize(item)
|
|
5592
5635
|
self._RegionsQps.append(obj)
|
|
5636
|
+
self._ResourceZone = params.get("ResourceZone")
|
|
5637
|
+
self._ResourceRegion = params.get("ResourceRegion")
|
|
5593
5638
|
self._RequestId = params.get("RequestId")
|
|
5594
5639
|
|
|
5595
5640
|
|
|
@@ -6022,6 +6067,8 @@ class KeyMetadata(AbstractModel):
|
|
|
6022
6067
|
:type AccountUin: int
|
|
6023
6068
|
:param _AccountName: <p>成员账号名称</p>
|
|
6024
6069
|
:type AccountName: str
|
|
6070
|
+
:param _CreatorUinString: <p>创建者UIN</p>
|
|
6071
|
+
:type CreatorUinString: str
|
|
6025
6072
|
"""
|
|
6026
6073
|
self._KeyId = None
|
|
6027
6074
|
self._Alias = None
|
|
@@ -6051,6 +6098,7 @@ class KeyMetadata(AbstractModel):
|
|
|
6051
6098
|
self._AccountAppId = None
|
|
6052
6099
|
self._AccountUin = None
|
|
6053
6100
|
self._AccountName = None
|
|
6101
|
+
self._CreatorUinString = None
|
|
6054
6102
|
|
|
6055
6103
|
@property
|
|
6056
6104
|
def KeyId(self):
|
|
@@ -6360,6 +6408,17 @@ class KeyMetadata(AbstractModel):
|
|
|
6360
6408
|
def AccountName(self, AccountName):
|
|
6361
6409
|
self._AccountName = AccountName
|
|
6362
6410
|
|
|
6411
|
+
@property
|
|
6412
|
+
def CreatorUinString(self):
|
|
6413
|
+
r"""<p>创建者UIN</p>
|
|
6414
|
+
:rtype: str
|
|
6415
|
+
"""
|
|
6416
|
+
return self._CreatorUinString
|
|
6417
|
+
|
|
6418
|
+
@CreatorUinString.setter
|
|
6419
|
+
def CreatorUinString(self, CreatorUinString):
|
|
6420
|
+
self._CreatorUinString = CreatorUinString
|
|
6421
|
+
|
|
6363
6422
|
|
|
6364
6423
|
def _deserialize(self, params):
|
|
6365
6424
|
self._KeyId = params.get("KeyId")
|
|
@@ -6390,6 +6449,7 @@ class KeyMetadata(AbstractModel):
|
|
|
6390
6449
|
self._AccountAppId = params.get("AccountAppId")
|
|
6391
6450
|
self._AccountUin = params.get("AccountUin")
|
|
6392
6451
|
self._AccountName = params.get("AccountName")
|
|
6452
|
+
self._CreatorUinString = params.get("CreatorUinString")
|
|
6393
6453
|
memeber_set = set(params.keys())
|
|
6394
6454
|
for name, value in vars(self).items():
|
|
6395
6455
|
property_name = name[1:]
|
|
@@ -8110,6 +8170,102 @@ class RegionQps(AbstractModel):
|
|
|
8110
8170
|
|
|
8111
8171
|
|
|
8112
8172
|
|
|
8173
|
+
class RotateKeyRequest(AbstractModel):
|
|
8174
|
+
r"""RotateKey请求参数结构体
|
|
8175
|
+
|
|
8176
|
+
"""
|
|
8177
|
+
|
|
8178
|
+
def __init__(self):
|
|
8179
|
+
r"""
|
|
8180
|
+
:param _KeyId: <p>CMK的全局唯一标识符</p>
|
|
8181
|
+
:type KeyId: str
|
|
8182
|
+
:param _MemberAccount: <p>成员账号信息,用于多账号场景</p>
|
|
8183
|
+
:type MemberAccount: :class:`tencentcloud.kms.v20190118.models.MemberAccount`
|
|
8184
|
+
"""
|
|
8185
|
+
self._KeyId = None
|
|
8186
|
+
self._MemberAccount = None
|
|
8187
|
+
|
|
8188
|
+
@property
|
|
8189
|
+
def KeyId(self):
|
|
8190
|
+
r"""<p>CMK的全局唯一标识符</p>
|
|
8191
|
+
:rtype: str
|
|
8192
|
+
"""
|
|
8193
|
+
return self._KeyId
|
|
8194
|
+
|
|
8195
|
+
@KeyId.setter
|
|
8196
|
+
def KeyId(self, KeyId):
|
|
8197
|
+
self._KeyId = KeyId
|
|
8198
|
+
|
|
8199
|
+
@property
|
|
8200
|
+
def MemberAccount(self):
|
|
8201
|
+
r"""<p>成员账号信息,用于多账号场景</p>
|
|
8202
|
+
:rtype: :class:`tencentcloud.kms.v20190118.models.MemberAccount`
|
|
8203
|
+
"""
|
|
8204
|
+
return self._MemberAccount
|
|
8205
|
+
|
|
8206
|
+
@MemberAccount.setter
|
|
8207
|
+
def MemberAccount(self, MemberAccount):
|
|
8208
|
+
self._MemberAccount = MemberAccount
|
|
8209
|
+
|
|
8210
|
+
|
|
8211
|
+
def _deserialize(self, params):
|
|
8212
|
+
self._KeyId = params.get("KeyId")
|
|
8213
|
+
if params.get("MemberAccount") is not None:
|
|
8214
|
+
self._MemberAccount = MemberAccount()
|
|
8215
|
+
self._MemberAccount._deserialize(params.get("MemberAccount"))
|
|
8216
|
+
memeber_set = set(params.keys())
|
|
8217
|
+
for name, value in vars(self).items():
|
|
8218
|
+
property_name = name[1:]
|
|
8219
|
+
if property_name in memeber_set:
|
|
8220
|
+
memeber_set.remove(property_name)
|
|
8221
|
+
if len(memeber_set) > 0:
|
|
8222
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
8223
|
+
|
|
8224
|
+
|
|
8225
|
+
|
|
8226
|
+
class RotateKeyResponse(AbstractModel):
|
|
8227
|
+
r"""RotateKey返回参数结构体
|
|
8228
|
+
|
|
8229
|
+
"""
|
|
8230
|
+
|
|
8231
|
+
def __init__(self):
|
|
8232
|
+
r"""
|
|
8233
|
+
:param _TaskId: <p>轮转任务ID,用于标识本次轮转任务。可以通过调用DescribeKey,返回上次轮转时间和下次轮转时间,判断是否轮转成功。</p>
|
|
8234
|
+
:type TaskId: str
|
|
8235
|
+
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
8236
|
+
:type RequestId: str
|
|
8237
|
+
"""
|
|
8238
|
+
self._TaskId = None
|
|
8239
|
+
self._RequestId = None
|
|
8240
|
+
|
|
8241
|
+
@property
|
|
8242
|
+
def TaskId(self):
|
|
8243
|
+
r"""<p>轮转任务ID,用于标识本次轮转任务。可以通过调用DescribeKey,返回上次轮转时间和下次轮转时间,判断是否轮转成功。</p>
|
|
8244
|
+
:rtype: str
|
|
8245
|
+
"""
|
|
8246
|
+
return self._TaskId
|
|
8247
|
+
|
|
8248
|
+
@TaskId.setter
|
|
8249
|
+
def TaskId(self, TaskId):
|
|
8250
|
+
self._TaskId = TaskId
|
|
8251
|
+
|
|
8252
|
+
@property
|
|
8253
|
+
def RequestId(self):
|
|
8254
|
+
r"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
8255
|
+
:rtype: str
|
|
8256
|
+
"""
|
|
8257
|
+
return self._RequestId
|
|
8258
|
+
|
|
8259
|
+
@RequestId.setter
|
|
8260
|
+
def RequestId(self, RequestId):
|
|
8261
|
+
self._RequestId = RequestId
|
|
8262
|
+
|
|
8263
|
+
|
|
8264
|
+
def _deserialize(self, params):
|
|
8265
|
+
self._TaskId = params.get("TaskId")
|
|
8266
|
+
self._RequestId = params.get("RequestId")
|
|
8267
|
+
|
|
8268
|
+
|
|
8113
8269
|
class ScheduleDataKeyDeletionRequest(AbstractModel):
|
|
8114
8270
|
r"""ScheduleDataKeyDeletion请求参数结构体
|
|
8115
8271
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: tencentcloud-sdk-python-kms
|
|
3
|
-
Version: 3.1.
|
|
3
|
+
Version: 3.1.150
|
|
4
4
|
Summary: Tencent Cloud Kms 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.150
|
|
19
19
|
|
|
20
20
|
============================
|
|
21
21
|
Tencent Cloud SDK for Python
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
tencentcloud-sdk-python-common<4.0.0,>=3.1.150
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
tencentcloud-sdk-python-common<4.0.0,>=3.1.131
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|