tencentcloud-sdk-python-kms 3.1.145__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.145 → tencentcloud_sdk_python_kms-3.1.150}/PKG-INFO +2 -2
- {tencentcloud_sdk_python_kms-3.1.145 → tencentcloud_sdk_python_kms-3.1.150}/setup.py +1 -1
- {tencentcloud_sdk_python_kms-3.1.145 → tencentcloud_sdk_python_kms-3.1.150}/tencentcloud/__init__.py +1 -1
- {tencentcloud_sdk_python_kms-3.1.145 → tencentcloud_sdk_python_kms-3.1.150}/tencentcloud/kms/v20190118/errorcodes.py +9 -0
- {tencentcloud_sdk_python_kms-3.1.145 → tencentcloud_sdk_python_kms-3.1.150}/tencentcloud/kms/v20190118/kms_client.py +23 -0
- {tencentcloud_sdk_python_kms-3.1.145 → tencentcloud_sdk_python_kms-3.1.150}/tencentcloud/kms/v20190118/kms_client_async.py +18 -0
- {tencentcloud_sdk_python_kms-3.1.145 → tencentcloud_sdk_python_kms-3.1.150}/tencentcloud/kms/v20190118/models.py +96 -0
- {tencentcloud_sdk_python_kms-3.1.145 → 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.145/tencentcloud_sdk_python_kms.egg-info/requires.txt +0 -1
- {tencentcloud_sdk_python_kms-3.1.145 → tencentcloud_sdk_python_kms-3.1.150}/README.rst +0 -0
- {tencentcloud_sdk_python_kms-3.1.145 → tencentcloud_sdk_python_kms-3.1.150}/setup.cfg +0 -0
- {tencentcloud_sdk_python_kms-3.1.145 → tencentcloud_sdk_python_kms-3.1.150}/tencentcloud/kms/__init__.py +0 -0
- {tencentcloud_sdk_python_kms-3.1.145 → tencentcloud_sdk_python_kms-3.1.150}/tencentcloud/kms/v20190118/__init__.py +0 -0
- {tencentcloud_sdk_python_kms-3.1.145 → tencentcloud_sdk_python_kms-3.1.150}/tencentcloud_sdk_python_kms.egg-info/SOURCES.txt +0 -0
- {tencentcloud_sdk_python_kms-3.1.145 → tencentcloud_sdk_python_kms-3.1.150}/tencentcloud_sdk_python_kms.egg-info/dependency_links.txt +0 -0
- {tencentcloud_sdk_python_kms-3.1.145 → 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,
|
|
@@ -8170,6 +8170,102 @@ class RegionQps(AbstractModel):
|
|
|
8170
8170
|
|
|
8171
8171
|
|
|
8172
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
|
+
|
|
8173
8269
|
class ScheduleDataKeyDeletionRequest(AbstractModel):
|
|
8174
8270
|
r"""ScheduleDataKeyDeletion请求参数结构体
|
|
8175
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.145
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|