tencentcloud-sdk-python-kms 3.0.1410__tar.gz → 3.0.1416__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.0.1410 → tencentcloud-sdk-python-kms-3.0.1416}/PKG-INFO +1 -1
- {tencentcloud-sdk-python-kms-3.0.1410 → tencentcloud-sdk-python-kms-3.0.1416}/setup.py +1 -1
- {tencentcloud-sdk-python-kms-3.0.1410 → tencentcloud-sdk-python-kms-3.0.1416}/tencentcloud/__init__.py +1 -1
- {tencentcloud-sdk-python-kms-3.0.1410 → tencentcloud-sdk-python-kms-3.0.1416}/tencentcloud/kms/v20190118/errorcodes.py +1 -1
- {tencentcloud-sdk-python-kms-3.0.1410 → tencentcloud-sdk-python-kms-3.0.1416}/tencentcloud/kms/v20190118/kms_client.py +1 -1
- {tencentcloud-sdk-python-kms-3.0.1410 → tencentcloud-sdk-python-kms-3.0.1416}/tencentcloud/kms/v20190118/models.py +11 -23
- {tencentcloud-sdk-python-kms-3.0.1410 → tencentcloud-sdk-python-kms-3.0.1416}/tencentcloud_sdk_python_kms.egg-info/PKG-INFO +1 -1
- tencentcloud-sdk-python-kms-3.0.1416/tencentcloud_sdk_python_kms.egg-info/requires.txt +1 -0
- tencentcloud-sdk-python-kms-3.0.1410/tencentcloud_sdk_python_kms.egg-info/requires.txt +0 -1
- {tencentcloud-sdk-python-kms-3.0.1410 → tencentcloud-sdk-python-kms-3.0.1416}/README.rst +0 -0
- {tencentcloud-sdk-python-kms-3.0.1410 → tencentcloud-sdk-python-kms-3.0.1416}/setup.cfg +0 -0
- {tencentcloud-sdk-python-kms-3.0.1410 → tencentcloud-sdk-python-kms-3.0.1416}/tencentcloud/kms/__init__.py +0 -0
- {tencentcloud-sdk-python-kms-3.0.1410 → tencentcloud-sdk-python-kms-3.0.1416}/tencentcloud/kms/v20190118/__init__.py +0 -0
- {tencentcloud-sdk-python-kms-3.0.1410 → tencentcloud-sdk-python-kms-3.0.1416}/tencentcloud_sdk_python_kms.egg-info/SOURCES.txt +0 -0
- {tencentcloud-sdk-python-kms-3.0.1410 → tencentcloud-sdk-python-kms-3.0.1416}/tencentcloud_sdk_python_kms.egg-info/dependency_links.txt +0 -0
- {tencentcloud-sdk-python-kms-3.0.1410 → tencentcloud-sdk-python-kms-3.0.1416}/tencentcloud_sdk_python_kms.egg-info/top_level.txt +0 -0
|
@@ -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.0.
|
|
11
|
+
install_requires=["tencentcloud-sdk-python-common==3.0.1416"],
|
|
12
12
|
version=tencentcloud.__version__,
|
|
13
13
|
description='Tencent Cloud Kms SDK for Python',
|
|
14
14
|
long_description=open('README.rst').read(),
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# -*- coding: utf8 -*-
|
|
2
|
-
# Copyright (c) 2017-
|
|
2
|
+
# Copyright (c) 2017-2025 Tencent. All Rights Reserved.
|
|
3
3
|
#
|
|
4
4
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
5
|
# you may not use this file except in compliance with the License.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# -*- coding: utf8 -*-
|
|
2
|
-
# Copyright (c) 2017-
|
|
2
|
+
# Copyright (c) 2017-2025 Tencent. All Rights Reserved.
|
|
3
3
|
#
|
|
4
4
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
5
|
# you may not use this file except in compliance with the License.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# -*- coding: utf8 -*-
|
|
2
|
-
# Copyright (c) 2017-
|
|
2
|
+
# Copyright (c) 2017-2025 Tencent. All Rights Reserved.
|
|
3
3
|
#
|
|
4
4
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
5
|
# you may not use this file except in compliance with the License.
|
|
@@ -3723,15 +3723,13 @@ class GenerateDataKeyRequest(AbstractModel):
|
|
|
3723
3723
|
:type EncryptionPublicKey: str
|
|
3724
3724
|
:param _EncryptionAlgorithm: 非对称加密算法,配合 EncryptionPublicKey 对返回数据进行加密。目前支持:SM2(以 C1C3C2 格式返回密文),SM2_C1C3C2_ASN1 (以 C1C3C2 ASN1 格式返回密文),RSAES_PKCS1_V1_5,RSAES_OAEP_SHA_1,RSAES_OAEP_SHA_256。若为空,则默认为 SM2。
|
|
3725
3725
|
:type EncryptionAlgorithm: str
|
|
3726
|
-
:param _IsHostedByKms: 表示生成的数据密钥是否被KMS托管。1:表示被KMS托管保存,0:表示KMS
|
|
3726
|
+
:param _IsHostedByKms: 表示生成的数据密钥是否被KMS托管。1:表示被KMS托管保存,0:表示KMS不托管。
|
|
3727
3727
|
:type IsHostedByKms: int
|
|
3728
3728
|
:param _DataKeyName: 数据密钥的名称,当IsHostedByKms为1时,必须填写。当IsHostedByKms为0时,可以不填,KMS不托管。
|
|
3729
3729
|
:type DataKeyName: str
|
|
3730
3730
|
:param _Description: 数据密钥 的描述,最大100字节
|
|
3731
3731
|
:type Description: str
|
|
3732
|
-
:param _HsmClusterId: KMS 独享版对应的 HSM 集群 ID
|
|
3733
|
-
当KeyId 没有传入时有效,如果指定HsmClusterId,会默认在此集群下生成根密钥,然后利用创建的根密钥产生数据密钥。
|
|
3734
|
-
如果没有指定HsmClusterId,则会在公有云共享集群下创建一个根密钥,然后利用创建的根密钥产生数据密钥。
|
|
3732
|
+
:param _HsmClusterId: KMS 独享版对应的 HSM 集群 ID。如果指定HsmClusterId,表明根密钥在此集群里,会校验KeyId是否和HsmClusterId对应。
|
|
3735
3733
|
:type HsmClusterId: str
|
|
3736
3734
|
"""
|
|
3737
3735
|
self._KeyId = None
|
|
@@ -3813,7 +3811,7 @@ class GenerateDataKeyRequest(AbstractModel):
|
|
|
3813
3811
|
|
|
3814
3812
|
@property
|
|
3815
3813
|
def IsHostedByKms(self):
|
|
3816
|
-
"""表示生成的数据密钥是否被KMS托管。1:表示被KMS托管保存,0:表示KMS
|
|
3814
|
+
"""表示生成的数据密钥是否被KMS托管。1:表示被KMS托管保存,0:表示KMS不托管。
|
|
3817
3815
|
:rtype: int
|
|
3818
3816
|
"""
|
|
3819
3817
|
return self._IsHostedByKms
|
|
@@ -3846,9 +3844,7 @@ class GenerateDataKeyRequest(AbstractModel):
|
|
|
3846
3844
|
|
|
3847
3845
|
@property
|
|
3848
3846
|
def HsmClusterId(self):
|
|
3849
|
-
"""KMS 独享版对应的 HSM 集群 ID
|
|
3850
|
-
当KeyId 没有传入时有效,如果指定HsmClusterId,会默认在此集群下生成根密钥,然后利用创建的根密钥产生数据密钥。
|
|
3851
|
-
如果没有指定HsmClusterId,则会在公有云共享集群下创建一个根密钥,然后利用创建的根密钥产生数据密钥。
|
|
3847
|
+
"""KMS 独享版对应的 HSM 集群 ID。如果指定HsmClusterId,表明根密钥在此集群里,会校验KeyId是否和HsmClusterId对应。
|
|
3852
3848
|
:rtype: str
|
|
3853
3849
|
"""
|
|
3854
3850
|
return self._HsmClusterId
|
|
@@ -4921,14 +4917,10 @@ class ImportDataKeyRequest(AbstractModel):
|
|
|
4921
4917
|
:type ImportType: int
|
|
4922
4918
|
:param _Description: 数据密钥 的描述,最大100字节
|
|
4923
4919
|
:type Description: str
|
|
4924
|
-
:param _KeyId:
|
|
4925
|
-
|
|
4926
|
-
如果没有指定独享集群HsmClusterId,则会在公有云共享集群下创建一个根密钥,根据生成的根密钥加密数据密钥。
|
|
4927
|
-
如果KeyId 不为空,根据指定的根密钥加密数据密钥。
|
|
4920
|
+
:param _KeyId: 当导入密文数据密钥时,无需传入根密钥,如果传入会校验此KeyId是否和密文中一致。
|
|
4921
|
+
当导入明文数据密钥,KeyId 不能为空,会根据指定的根密钥加密数据密钥。
|
|
4928
4922
|
:type KeyId: str
|
|
4929
|
-
:param _HsmClusterId: KMS 独享版对应的 HSM 集群 ID
|
|
4930
|
-
当KeyId 没有传入时有效,如果指定了独享集群HsmClusterId,则会在独享集群下创建一个根密钥,根据产生的根密钥加密数据密钥。
|
|
4931
|
-
如果没有指定独享集群HsmClusterId,则会在公有云共享集群下创建一个根密钥,根据产生的根密钥加密数据密钥。
|
|
4923
|
+
:param _HsmClusterId: KMS 独享版对应的 HSM 集群 ID。如果指定HsmClusterId,表明根密钥在此集群里,会校验KeyId是否和HsmClusterId对应。
|
|
4932
4924
|
:type HsmClusterId: str
|
|
4933
4925
|
"""
|
|
4934
4926
|
self._DataKeyName = None
|
|
@@ -4984,10 +4976,8 @@ class ImportDataKeyRequest(AbstractModel):
|
|
|
4984
4976
|
|
|
4985
4977
|
@property
|
|
4986
4978
|
def KeyId(self):
|
|
4987
|
-
"""
|
|
4988
|
-
|
|
4989
|
-
如果没有指定独享集群HsmClusterId,则会在公有云共享集群下创建一个根密钥,根据生成的根密钥加密数据密钥。
|
|
4990
|
-
如果KeyId 不为空,根据指定的根密钥加密数据密钥。
|
|
4979
|
+
"""当导入密文数据密钥时,无需传入根密钥,如果传入会校验此KeyId是否和密文中一致。
|
|
4980
|
+
当导入明文数据密钥,KeyId 不能为空,会根据指定的根密钥加密数据密钥。
|
|
4991
4981
|
:rtype: str
|
|
4992
4982
|
"""
|
|
4993
4983
|
return self._KeyId
|
|
@@ -4998,9 +4988,7 @@ class ImportDataKeyRequest(AbstractModel):
|
|
|
4998
4988
|
|
|
4999
4989
|
@property
|
|
5000
4990
|
def HsmClusterId(self):
|
|
5001
|
-
"""KMS 独享版对应的 HSM 集群 ID
|
|
5002
|
-
当KeyId 没有传入时有效,如果指定了独享集群HsmClusterId,则会在独享集群下创建一个根密钥,根据产生的根密钥加密数据密钥。
|
|
5003
|
-
如果没有指定独享集群HsmClusterId,则会在公有云共享集群下创建一个根密钥,根据产生的根密钥加密数据密钥。
|
|
4991
|
+
"""KMS 独享版对应的 HSM 集群 ID。如果指定HsmClusterId,表明根密钥在此集群里,会校验KeyId是否和HsmClusterId对应。
|
|
5004
4992
|
:rtype: str
|
|
5005
4993
|
"""
|
|
5006
4994
|
return self._HsmClusterId
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
tencentcloud-sdk-python-common==3.0.1416
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
tencentcloud-sdk-python-common==3.0.1410
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|