tencentcloud-sdk-python-kms 3.1.192__tar.gz → 3.1.203__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.
Files changed (17) hide show
  1. {tencentcloud_sdk_python_kms-3.1.192 → tencentcloud_sdk_python_kms-3.1.203}/PKG-INFO +2 -2
  2. {tencentcloud_sdk_python_kms-3.1.192 → tencentcloud_sdk_python_kms-3.1.203}/setup.py +1 -1
  3. {tencentcloud_sdk_python_kms-3.1.192 → tencentcloud_sdk_python_kms-3.1.203}/tencentcloud/__init__.py +1 -1
  4. {tencentcloud_sdk_python_kms-3.1.192 → tencentcloud_sdk_python_kms-3.1.203}/tencentcloud/kms/v20190118/errorcodes.py +27 -0
  5. {tencentcloud_sdk_python_kms-3.1.192 → tencentcloud_sdk_python_kms-3.1.203}/tencentcloud/kms/v20190118/kms_client.py +23 -0
  6. {tencentcloud_sdk_python_kms-3.1.192 → tencentcloud_sdk_python_kms-3.1.203}/tencentcloud/kms/v20190118/kms_client_async.py +18 -0
  7. {tencentcloud_sdk_python_kms-3.1.192 → tencentcloud_sdk_python_kms-3.1.203}/tencentcloud/kms/v20190118/models.py +279 -52
  8. {tencentcloud_sdk_python_kms-3.1.192 → tencentcloud_sdk_python_kms-3.1.203}/tencentcloud_sdk_python_kms.egg-info/PKG-INFO +2 -2
  9. tencentcloud_sdk_python_kms-3.1.203/tencentcloud_sdk_python_kms.egg-info/requires.txt +1 -0
  10. tencentcloud_sdk_python_kms-3.1.192/tencentcloud_sdk_python_kms.egg-info/requires.txt +0 -1
  11. {tencentcloud_sdk_python_kms-3.1.192 → tencentcloud_sdk_python_kms-3.1.203}/README.rst +0 -0
  12. {tencentcloud_sdk_python_kms-3.1.192 → tencentcloud_sdk_python_kms-3.1.203}/setup.cfg +0 -0
  13. {tencentcloud_sdk_python_kms-3.1.192 → tencentcloud_sdk_python_kms-3.1.203}/tencentcloud/kms/__init__.py +0 -0
  14. {tencentcloud_sdk_python_kms-3.1.192 → tencentcloud_sdk_python_kms-3.1.203}/tencentcloud/kms/v20190118/__init__.py +0 -0
  15. {tencentcloud_sdk_python_kms-3.1.192 → tencentcloud_sdk_python_kms-3.1.203}/tencentcloud_sdk_python_kms.egg-info/SOURCES.txt +0 -0
  16. {tencentcloud_sdk_python_kms-3.1.192 → tencentcloud_sdk_python_kms-3.1.203}/tencentcloud_sdk_python_kms.egg-info/dependency_links.txt +0 -0
  17. {tencentcloud_sdk_python_kms-3.1.192 → tencentcloud_sdk_python_kms-3.1.203}/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.192
3
+ Version: 3.1.203
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.192
18
+ Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.1.203
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.192,<4.0.0"],
11
+ install_requires=["tencentcloud-sdk-python-common>=3.1.203,<4.0.0"],
12
12
 
13
13
  version=tencentcloud.__version__,
14
14
  description='Tencent Cloud Kms SDK for Python',
@@ -14,4 +14,4 @@
14
14
  # limitations under the License.
15
15
 
16
16
 
17
- __version__ = '3.1.192'
17
+ __version__ = '3.1.203'
@@ -32,6 +32,9 @@ FAILEDOPERATION_DECRYPTERROR = 'FailedOperation.DecryptError'
32
32
  # 加密操作失败。
33
33
  FAILEDOPERATION_ENCRYPTIONERROR = 'FailedOperation.EncryptionError'
34
34
 
35
+ # 订单校验失败
36
+ FAILEDOPERATION_ORDERCHECKFAILED = 'FailedOperation.OrderCheckFailed'
37
+
35
38
  # 已有正在进行的轮转任务
36
39
  FAILEDOPERATION_ROTATETASKRUNNING = 'FailedOperation.RotateTaskRunning'
37
40
 
@@ -50,12 +53,18 @@ INTERNALERROR = 'InternalError'
50
53
  # 参数错误。
51
54
  INVALIDPARAMETER = 'InvalidParameter'
52
55
 
56
+ # 后付费传了 ProductVersion/InstanceChargePrepaid
57
+ INVALIDPARAMETER_CONFLICTPARAMETER = 'InvalidParameter.ConflictParameter'
58
+
53
59
  # 解密EncryptedKeyMaterial失败。
54
60
  INVALIDPARAMETER_DECRYPTMATERIALERROR = 'InvalidParameter.DecryptMaterialError'
55
61
 
56
62
  # 计划删除时间参数非法。
57
63
  INVALIDPARAMETER_INVALIDPENDINGWINDOWINDAYS = 'InvalidParameter.InvalidPendingWindowInDays'
58
64
 
65
+ # ProductVersion参数缺失
66
+ INVALIDPARAMETER_MISSINGPRODUCTVERSION = 'InvalidParameter.MissingProductVersion'
67
+
59
68
  # 参数取值错误。
60
69
  INVALIDPARAMETERVALUE = 'InvalidParameterValue'
61
70
 
@@ -89,15 +98,24 @@ INVALIDPARAMETERVALUE_INVALIDHSMCLUSTERID = 'InvalidParameterValue.InvalidHsmClu
89
98
  # 导入的数据密钥合法
90
99
  INVALIDPARAMETERVALUE_INVALIDIMPORTKEYMATERIAL = 'InvalidParameterValue.InvalidImportKeyMaterial'
91
100
 
101
+ # InstanceChargeType类型非法
102
+ INVALIDPARAMETERVALUE_INVALIDINSTANCECHARGETYPE = 'InvalidParameterValue.InvalidInstanceChargeType'
103
+
92
104
  # KeyId不合法。
93
105
  INVALIDPARAMETERVALUE_INVALIDKEYID = 'InvalidParameterValue.InvalidKeyId'
94
106
 
95
107
  # KeyUsage参数错误。
96
108
  INVALIDPARAMETERVALUE_INVALIDKEYUSAGE = 'InvalidParameterValue.InvalidKeyUsage'
97
109
 
110
+ # Period 越界(1~36)
111
+ INVALIDPARAMETERVALUE_INVALIDPERIOD = 'InvalidParameterValue.InvalidPeriod'
112
+
98
113
  # Plaintext不合法。
99
114
  INVALIDPARAMETERVALUE_INVALIDPLAINTEXT = 'InvalidParameterValue.InvalidPlaintext'
100
115
 
116
+ # ProductVersion不合法
117
+ INVALIDPARAMETERVALUE_INVALIDPRODUCTVERSION = 'InvalidParameterValue.InvalidProductVersion'
118
+
101
119
  # Type参数错误。
102
120
  INVALIDPARAMETERVALUE_INVALIDTYPE = 'InvalidParameterValue.InvalidType'
103
121
 
@@ -119,6 +137,9 @@ LIMITEXCEEDED_DATAKEYLIMITEXCEEDED = 'LimitExceeded.DataKeyLimitExceeded'
119
137
  # 设备指纹个数超过限制。
120
138
  LIMITEXCEEDED_FINGERPRINTSLIMITEXCEEDED = 'LimitExceeded.FingerprintsLimitExceeded'
121
139
 
140
+ # 预付费实例达上限
141
+ LIMITEXCEEDED_INSTANCEQUOTAEXCEEDED = 'LimitExceeded.InstanceQuotaExceeded'
142
+
122
143
  # 创建的密钥个数超过限制。
123
144
  LIMITEXCEEDED_KEYLIMITEXCEEDED = 'LimitExceeded.KeyLimitExceeded'
124
145
 
@@ -128,6 +149,12 @@ MISSINGPARAMETER = 'MissingParameter'
128
149
  # 轮转操作触发限频,默认24小时内仅可轮转一次
129
150
  REQUESTLIMITEXCEEDED_ROTATERATELIMITED = 'RequestLimitExceeded.RotateRateLimited'
130
151
 
152
+ # 存在进行中订单
153
+ RESOURCEINUSE_ORDERINPROGRESS = 'ResourceInUse.OrderInProgress'
154
+
155
+ # 后付费实例已存在
156
+ RESOURCEINUSE_POSTPAIDINSTANCEALREADYEXISTS = 'ResourceInUse.PostpaidInstanceAlreadyExists'
157
+
131
158
  # 资源不存在。
132
159
  RESOURCENOTFOUND = 'ResourceNotFound'
133
160
 
@@ -210,6 +210,29 @@ class KmsClient(AbstractClient):
210
210
  raise TencentCloudSDKException(type(e).__name__, str(e))
211
211
 
212
212
 
213
+ def CreateKmsInstance(self, request):
214
+ r"""购买开通KMS服务
215
+
216
+ :param request: Request instance for CreateKmsInstance.
217
+ :type request: :class:`tencentcloud.kms.v20190118.models.CreateKmsInstanceRequest`
218
+ :rtype: :class:`tencentcloud.kms.v20190118.models.CreateKmsInstanceResponse`
219
+
220
+ """
221
+ try:
222
+ params = request._serialize()
223
+ headers = request.headers
224
+ body = self.call("CreateKmsInstance", params, headers=headers)
225
+ response = json.loads(body)
226
+ model = models.CreateKmsInstanceResponse()
227
+ model._deserialize(response["Response"])
228
+ return model
229
+ except Exception as e:
230
+ if isinstance(e, TencentCloudSDKException):
231
+ raise
232
+ else:
233
+ raise TencentCloudSDKException(type(e).__name__, str(e))
234
+
235
+
213
236
  def CreateWhiteBoxKey(self, request):
214
237
  r"""创建白盒密钥。 密钥个数的上限为 50。
215
238
 
@@ -169,6 +169,24 @@ class KmsClient(AbstractClient):
169
169
 
170
170
  return await self.call_and_deserialize(**kwargs)
171
171
 
172
+ async def CreateKmsInstance(
173
+ self,
174
+ request: models.CreateKmsInstanceRequest,
175
+ opts: Dict = None,
176
+ ) -> models.CreateKmsInstanceResponse:
177
+ """
178
+ 购买开通KMS服务
179
+ """
180
+
181
+ kwargs = {}
182
+ kwargs["action"] = "CreateKmsInstance"
183
+ kwargs["params"] = request._serialize()
184
+ kwargs["resp_cls"] = models.CreateKmsInstanceResponse
185
+ kwargs["headers"] = request.headers
186
+ kwargs["opts"] = opts or {}
187
+
188
+ return await self.call_and_deserialize(**kwargs)
189
+
172
190
  async def CreateWhiteBoxKey(
173
191
  self,
174
192
  request: models.CreateWhiteBoxKeyRequest,
@@ -757,17 +757,17 @@ class CreateKeyRequest(AbstractModel):
757
757
 
758
758
  def __init__(self):
759
759
  r"""
760
- :param _Alias: 作为密钥更容易辨识,更容易被人看懂的别名, 不可为空,1-60个字母数字 - _ 的组合,首字符必须为字母或者数字。以 kms- 作为前缀的用于云产品使用,Alias 不可重复。
760
+ :param _Alias: <p>作为密钥更容易辨识,更容易被人看懂的别名, 不可为空,1-60个字母数字 - _ 的组合,首字符必须为字母或者数字。以 kms- 作为前缀的用于云产品使用,Alias 不可重复。</p>
761
761
  :type Alias: str
762
- :param _Description: CMK 的描述,最大1024字节
762
+ :param _Description: <p>CMK 的描述,最大1024字节</p>
763
763
  :type Description: str
764
- :param _KeyUsage: 指定key的用途,默认为 "ENCRYPT_DECRYPT" 表示创建对称加解密密钥,其它支持用途 “ASYMMETRIC_DECRYPT_RSA_2048” 表示创建用于加解密的RSA2048非对称密钥,“ASYMMETRIC_DECRYPT_SM2” 表示创建用于加解密的SM2非对称密钥,“ASYMMETRIC_SIGN_VERIFY_SM2” 表示创建用于签名验签的SM2非对称密钥,“ASYMMETRIC_SIGN_VERIFY_ECC” 表示创建用于签名验签的ECC非对称密钥,“ASYMMETRIC_SIGN_VERIFY_RSA_2048” 表示创建用于签名验签的RSA_2048非对称密钥,“ASYMMETRIC_SIGN_VERIFY_ECDSA384”表示创建用于签名验签的 ECDSA384 非对称密钥。完整的密钥用途与算法支持列表可通过 ListAlgorithms 接口获取。
764
+ :param _KeyUsage: <p>指定key的用途,默认为 &quot;ENCRYPT_DECRYPT&quot; 表示创建对称加解密密钥,其它支持用途 “ASYMMETRIC_DECRYPT_RSA_2048” 表示创建用于加解密的RSA2048非对称密钥,“ASYMMETRIC_DECRYPT_RSA_3072”表示创建用于加解密的RSA3072非对称密钥,“ASYMMETRIC_DECRYPT_RSA_4096”表示创建用于加解密的RSA4096非对称密钥,“ASYMMETRIC_DECRYPT_SM2” 表示创建用于加解密的SM2非对称密钥,“ASYMMETRIC_SIGN_VERIFY_SM2” 表示创建用于签名验签的SM2非对称密钥,“ASYMMETRIC_SIGN_VERIFY_ECC” 表示创建用于签名验签的ECC非对称密钥,“ASYMMETRIC_SIGN_VERIFY_RSA_2048” 表示创建用于签名验签的RSA_2048非对称密钥,“ASYMMETRIC_SIGN_VERIFY_RSA_3072” 表示创建用于签名验签的RSA_3072非对称密钥,<br>“ASYMMETRIC_SIGN_VERIFY_RSA_4096” 表示创建用于签名验签的RSA_4096非对称密钥,“ASYMMETRIC_SIGN_VERIFY_ECDSA384”表示创建用于签名验签的 ECDSA384 非对称密钥。完整的密钥用途与算法支持列表可通过 ListAlgorithms 接口获取。</p>
765
765
  :type KeyUsage: str
766
- :param _Type: 指定key类型,默认为1,1表示默认类型,由KMS创建CMK密钥,2 表示EXTERNAL 类型,该类型需要用户导入密钥材料,参考 GetParametersForImport 和 ImportKeyMaterial 接口
766
+ :param _Type: <p>指定key类型,默认为1,1表示默认类型,由KMS创建CMK密钥,2 表示EXTERNAL 类型,该类型需要用户导入密钥材料,参考 GetParametersForImport 和 ImportKeyMaterial 接口</p>
767
767
  :type Type: int
768
- :param _Tags: 标签列表
768
+ :param _Tags: <p>标签列表</p>
769
769
  :type Tags: list of Tag
770
- :param _HsmClusterId: KMS 高级版对应的 HSM 集群 ID(仅对 KMS 独占版/托管版服务实例有效)。
770
+ :param _HsmClusterId: <p>KMS 高级版对应的 HSM 集群 ID(仅对 KMS 独占版/托管版服务实例有效)。</p>
771
771
  :type HsmClusterId: str
772
772
  """
773
773
  self._Alias = None
@@ -779,7 +779,7 @@ class CreateKeyRequest(AbstractModel):
779
779
 
780
780
  @property
781
781
  def Alias(self):
782
- r"""作为密钥更容易辨识,更容易被人看懂的别名, 不可为空,1-60个字母数字 - _ 的组合,首字符必须为字母或者数字。以 kms- 作为前缀的用于云产品使用,Alias 不可重复。
782
+ r"""<p>作为密钥更容易辨识,更容易被人看懂的别名, 不可为空,1-60个字母数字 - _ 的组合,首字符必须为字母或者数字。以 kms- 作为前缀的用于云产品使用,Alias 不可重复。</p>
783
783
  :rtype: str
784
784
  """
785
785
  return self._Alias
@@ -790,7 +790,7 @@ class CreateKeyRequest(AbstractModel):
790
790
 
791
791
  @property
792
792
  def Description(self):
793
- r"""CMK 的描述,最大1024字节
793
+ r"""<p>CMK 的描述,最大1024字节</p>
794
794
  :rtype: str
795
795
  """
796
796
  return self._Description
@@ -801,7 +801,7 @@ class CreateKeyRequest(AbstractModel):
801
801
 
802
802
  @property
803
803
  def KeyUsage(self):
804
- r"""指定key的用途,默认为 "ENCRYPT_DECRYPT" 表示创建对称加解密密钥,其它支持用途 “ASYMMETRIC_DECRYPT_RSA_2048” 表示创建用于加解密的RSA2048非对称密钥,“ASYMMETRIC_DECRYPT_SM2” 表示创建用于加解密的SM2非对称密钥,“ASYMMETRIC_SIGN_VERIFY_SM2” 表示创建用于签名验签的SM2非对称密钥,“ASYMMETRIC_SIGN_VERIFY_ECC” 表示创建用于签名验签的ECC非对称密钥,“ASYMMETRIC_SIGN_VERIFY_RSA_2048” 表示创建用于签名验签的RSA_2048非对称密钥,“ASYMMETRIC_SIGN_VERIFY_ECDSA384”表示创建用于签名验签的 ECDSA384 非对称密钥。完整的密钥用途与算法支持列表可通过 ListAlgorithms 接口获取。
804
+ r"""<p>指定key的用途,默认为 &quot;ENCRYPT_DECRYPT&quot; 表示创建对称加解密密钥,其它支持用途 “ASYMMETRIC_DECRYPT_RSA_2048” 表示创建用于加解密的RSA2048非对称密钥,“ASYMMETRIC_DECRYPT_RSA_3072”表示创建用于加解密的RSA3072非对称密钥,“ASYMMETRIC_DECRYPT_RSA_4096”表示创建用于加解密的RSA4096非对称密钥,“ASYMMETRIC_DECRYPT_SM2” 表示创建用于加解密的SM2非对称密钥,“ASYMMETRIC_SIGN_VERIFY_SM2” 表示创建用于签名验签的SM2非对称密钥,“ASYMMETRIC_SIGN_VERIFY_ECC” 表示创建用于签名验签的ECC非对称密钥,“ASYMMETRIC_SIGN_VERIFY_RSA_2048” 表示创建用于签名验签的RSA_2048非对称密钥,“ASYMMETRIC_SIGN_VERIFY_RSA_3072” 表示创建用于签名验签的RSA_3072非对称密钥,<br>“ASYMMETRIC_SIGN_VERIFY_RSA_4096” 表示创建用于签名验签的RSA_4096非对称密钥,“ASYMMETRIC_SIGN_VERIFY_ECDSA384”表示创建用于签名验签的 ECDSA384 非对称密钥。完整的密钥用途与算法支持列表可通过 ListAlgorithms 接口获取。</p>
805
805
  :rtype: str
806
806
  """
807
807
  return self._KeyUsage
@@ -812,7 +812,7 @@ class CreateKeyRequest(AbstractModel):
812
812
 
813
813
  @property
814
814
  def Type(self):
815
- r"""指定key类型,默认为1,1表示默认类型,由KMS创建CMK密钥,2 表示EXTERNAL 类型,该类型需要用户导入密钥材料,参考 GetParametersForImport 和 ImportKeyMaterial 接口
815
+ r"""<p>指定key类型,默认为1,1表示默认类型,由KMS创建CMK密钥,2 表示EXTERNAL 类型,该类型需要用户导入密钥材料,参考 GetParametersForImport 和 ImportKeyMaterial 接口</p>
816
816
  :rtype: int
817
817
  """
818
818
  return self._Type
@@ -823,7 +823,7 @@ class CreateKeyRequest(AbstractModel):
823
823
 
824
824
  @property
825
825
  def Tags(self):
826
- r"""标签列表
826
+ r"""<p>标签列表</p>
827
827
  :rtype: list of Tag
828
828
  """
829
829
  return self._Tags
@@ -834,7 +834,7 @@ class CreateKeyRequest(AbstractModel):
834
834
 
835
835
  @property
836
836
  def HsmClusterId(self):
837
- r"""KMS 高级版对应的 HSM 集群 ID(仅对 KMS 独占版/托管版服务实例有效)。
837
+ r"""<p>KMS 高级版对应的 HSM 集群 ID(仅对 KMS 独占版/托管版服务实例有效)。</p>
838
838
  :rtype: str
839
839
  """
840
840
  return self._HsmClusterId
@@ -873,23 +873,23 @@ class CreateKeyResponse(AbstractModel):
873
873
 
874
874
  def __init__(self):
875
875
  r"""
876
- :param _KeyId: CMK的全局唯一标识符
876
+ :param _KeyId: <p>CMK的全局唯一标识符</p>
877
877
  :type KeyId: str
878
- :param _Alias: 作为密钥更容易辨识,更容易被人看懂的别名
878
+ :param _Alias: <p>作为密钥更容易辨识,更容易被人看懂的别名</p>
879
879
  :type Alias: str
880
- :param _CreateTime: 密钥创建时间,unix时间戳
880
+ :param _CreateTime: <p>密钥创建时间,unix时间戳</p>
881
881
  :type CreateTime: int
882
- :param _Description: CMK的描述
882
+ :param _Description: <p>CMK的描述</p>
883
883
  :type Description: str
884
- :param _KeyState: CMK的状态
884
+ :param _KeyState: <p>CMK的状态</p>
885
885
  :type KeyState: str
886
- :param _KeyUsage: CMK的用途
886
+ :param _KeyUsage: <p>CMK的用途</p>
887
887
  :type KeyUsage: str
888
- :param _TagCode: 标签操作的返回码. 0: 成功;1: 内部错误;2: 业务处理错误
888
+ :param _TagCode: <p>标签操作的返回码. 0: 成功;1: 内部错误;2: 业务处理错误</p>
889
889
  :type TagCode: int
890
- :param _TagMsg: 标签操作的返回信息
890
+ :param _TagMsg: <p>标签操作的返回信息</p>
891
891
  :type TagMsg: str
892
- :param _HsmClusterId: HSM 集群 ID(仅对 KMS 独占版/托管版服务实例有效)
892
+ :param _HsmClusterId: <p>HSM 集群 ID(仅对 KMS 独占版/托管版服务实例有效)</p>
893
893
  :type HsmClusterId: str
894
894
  :param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
895
895
  :type RequestId: str
@@ -907,7 +907,7 @@ class CreateKeyResponse(AbstractModel):
907
907
 
908
908
  @property
909
909
  def KeyId(self):
910
- r"""CMK的全局唯一标识符
910
+ r"""<p>CMK的全局唯一标识符</p>
911
911
  :rtype: str
912
912
  """
913
913
  return self._KeyId
@@ -918,7 +918,7 @@ class CreateKeyResponse(AbstractModel):
918
918
 
919
919
  @property
920
920
  def Alias(self):
921
- r"""作为密钥更容易辨识,更容易被人看懂的别名
921
+ r"""<p>作为密钥更容易辨识,更容易被人看懂的别名</p>
922
922
  :rtype: str
923
923
  """
924
924
  return self._Alias
@@ -929,7 +929,7 @@ class CreateKeyResponse(AbstractModel):
929
929
 
930
930
  @property
931
931
  def CreateTime(self):
932
- r"""密钥创建时间,unix时间戳
932
+ r"""<p>密钥创建时间,unix时间戳</p>
933
933
  :rtype: int
934
934
  """
935
935
  return self._CreateTime
@@ -940,7 +940,7 @@ class CreateKeyResponse(AbstractModel):
940
940
 
941
941
  @property
942
942
  def Description(self):
943
- r"""CMK的描述
943
+ r"""<p>CMK的描述</p>
944
944
  :rtype: str
945
945
  """
946
946
  return self._Description
@@ -951,7 +951,7 @@ class CreateKeyResponse(AbstractModel):
951
951
 
952
952
  @property
953
953
  def KeyState(self):
954
- r"""CMK的状态
954
+ r"""<p>CMK的状态</p>
955
955
  :rtype: str
956
956
  """
957
957
  return self._KeyState
@@ -962,7 +962,7 @@ class CreateKeyResponse(AbstractModel):
962
962
 
963
963
  @property
964
964
  def KeyUsage(self):
965
- r"""CMK的用途
965
+ r"""<p>CMK的用途</p>
966
966
  :rtype: str
967
967
  """
968
968
  return self._KeyUsage
@@ -973,7 +973,7 @@ class CreateKeyResponse(AbstractModel):
973
973
 
974
974
  @property
975
975
  def TagCode(self):
976
- r"""标签操作的返回码. 0: 成功;1: 内部错误;2: 业务处理错误
976
+ r"""<p>标签操作的返回码. 0: 成功;1: 内部错误;2: 业务处理错误</p>
977
977
  :rtype: int
978
978
  """
979
979
  return self._TagCode
@@ -984,7 +984,7 @@ class CreateKeyResponse(AbstractModel):
984
984
 
985
985
  @property
986
986
  def TagMsg(self):
987
- r"""标签操作的返回信息
987
+ r"""<p>标签操作的返回信息</p>
988
988
  :rtype: str
989
989
  """
990
990
  return self._TagMsg
@@ -995,7 +995,7 @@ class CreateKeyResponse(AbstractModel):
995
995
 
996
996
  @property
997
997
  def HsmClusterId(self):
998
- r"""HSM 集群 ID(仅对 KMS 独占版/托管版服务实例有效)
998
+ r"""<p>HSM 集群 ID(仅对 KMS 独占版/托管版服务实例有效)</p>
999
999
  :rtype: str
1000
1000
  """
1001
1001
  return self._HsmClusterId
@@ -1029,6 +1029,182 @@ class CreateKeyResponse(AbstractModel):
1029
1029
  self._RequestId = params.get("RequestId")
1030
1030
 
1031
1031
 
1032
+ class CreateKmsInstanceRequest(AbstractModel):
1033
+ r"""CreateKmsInstance请求参数结构体
1034
+
1035
+ """
1036
+
1037
+ def __init__(self):
1038
+ r"""
1039
+ :param _InstanceChargeType: <p>实例付费类型(PREPAID)</p>
1040
+ :type InstanceChargeType: str
1041
+ :param _ProductVersion: <p>版本类型</p><p>枚举值:</p><ul><li>professional: 专业版</li></ul>
1042
+ :type ProductVersion: str
1043
+ :param _InstanceChargePrepaid: <p>预付费实例信息</p>
1044
+ :type InstanceChargePrepaid: :class:`tencentcloud.kms.v20190118.models.InstanceChargePrepaid`
1045
+ :param _ClientToken: <p>可重入客户端ID</p>
1046
+ :type ClientToken: str
1047
+ :param _Tags: <p>实例标签</p>
1048
+ :type Tags: list of Tag
1049
+ """
1050
+ self._InstanceChargeType = None
1051
+ self._ProductVersion = None
1052
+ self._InstanceChargePrepaid = None
1053
+ self._ClientToken = None
1054
+ self._Tags = None
1055
+
1056
+ @property
1057
+ def InstanceChargeType(self):
1058
+ r"""<p>实例付费类型(PREPAID)</p>
1059
+ :rtype: str
1060
+ """
1061
+ return self._InstanceChargeType
1062
+
1063
+ @InstanceChargeType.setter
1064
+ def InstanceChargeType(self, InstanceChargeType):
1065
+ self._InstanceChargeType = InstanceChargeType
1066
+
1067
+ @property
1068
+ def ProductVersion(self):
1069
+ r"""<p>版本类型</p><p>枚举值:</p><ul><li>professional: 专业版</li></ul>
1070
+ :rtype: str
1071
+ """
1072
+ return self._ProductVersion
1073
+
1074
+ @ProductVersion.setter
1075
+ def ProductVersion(self, ProductVersion):
1076
+ self._ProductVersion = ProductVersion
1077
+
1078
+ @property
1079
+ def InstanceChargePrepaid(self):
1080
+ r"""<p>预付费实例信息</p>
1081
+ :rtype: :class:`tencentcloud.kms.v20190118.models.InstanceChargePrepaid`
1082
+ """
1083
+ return self._InstanceChargePrepaid
1084
+
1085
+ @InstanceChargePrepaid.setter
1086
+ def InstanceChargePrepaid(self, InstanceChargePrepaid):
1087
+ self._InstanceChargePrepaid = InstanceChargePrepaid
1088
+
1089
+ @property
1090
+ def ClientToken(self):
1091
+ r"""<p>可重入客户端ID</p>
1092
+ :rtype: str
1093
+ """
1094
+ return self._ClientToken
1095
+
1096
+ @ClientToken.setter
1097
+ def ClientToken(self, ClientToken):
1098
+ self._ClientToken = ClientToken
1099
+
1100
+ @property
1101
+ def Tags(self):
1102
+ r"""<p>实例标签</p>
1103
+ :rtype: list of Tag
1104
+ """
1105
+ return self._Tags
1106
+
1107
+ @Tags.setter
1108
+ def Tags(self, Tags):
1109
+ self._Tags = Tags
1110
+
1111
+
1112
+ def _deserialize(self, params):
1113
+ self._InstanceChargeType = params.get("InstanceChargeType")
1114
+ self._ProductVersion = params.get("ProductVersion")
1115
+ if params.get("InstanceChargePrepaid") is not None:
1116
+ self._InstanceChargePrepaid = InstanceChargePrepaid()
1117
+ self._InstanceChargePrepaid._deserialize(params.get("InstanceChargePrepaid"))
1118
+ self._ClientToken = params.get("ClientToken")
1119
+ if params.get("Tags") is not None:
1120
+ self._Tags = []
1121
+ for item in params.get("Tags"):
1122
+ obj = Tag()
1123
+ obj._deserialize(item)
1124
+ self._Tags.append(obj)
1125
+ memeber_set = set(params.keys())
1126
+ for name, value in vars(self).items():
1127
+ property_name = name[1:]
1128
+ if property_name in memeber_set:
1129
+ memeber_set.remove(property_name)
1130
+ if len(memeber_set) > 0:
1131
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
1132
+
1133
+
1134
+
1135
+ class CreateKmsInstanceResponse(AbstractModel):
1136
+ r"""CreateKmsInstance返回参数结构体
1137
+
1138
+ """
1139
+
1140
+ def __init__(self):
1141
+ r"""
1142
+ :param _InstanceId: <p>实例ID</p>
1143
+ :type InstanceId: str
1144
+ :param _DealName: <p>计费订单号</p>
1145
+ :type DealName: str
1146
+ :param _BillId: <p>计费冻结流水号</p>
1147
+ :type BillId: str
1148
+ :param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
1149
+ :type RequestId: str
1150
+ """
1151
+ self._InstanceId = None
1152
+ self._DealName = None
1153
+ self._BillId = None
1154
+ self._RequestId = None
1155
+
1156
+ @property
1157
+ def InstanceId(self):
1158
+ r"""<p>实例ID</p>
1159
+ :rtype: str
1160
+ """
1161
+ return self._InstanceId
1162
+
1163
+ @InstanceId.setter
1164
+ def InstanceId(self, InstanceId):
1165
+ self._InstanceId = InstanceId
1166
+
1167
+ @property
1168
+ def DealName(self):
1169
+ r"""<p>计费订单号</p>
1170
+ :rtype: str
1171
+ """
1172
+ return self._DealName
1173
+
1174
+ @DealName.setter
1175
+ def DealName(self, DealName):
1176
+ self._DealName = DealName
1177
+
1178
+ @property
1179
+ def BillId(self):
1180
+ r"""<p>计费冻结流水号</p>
1181
+ :rtype: str
1182
+ """
1183
+ return self._BillId
1184
+
1185
+ @BillId.setter
1186
+ def BillId(self, BillId):
1187
+ self._BillId = BillId
1188
+
1189
+ @property
1190
+ def RequestId(self):
1191
+ r"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
1192
+ :rtype: str
1193
+ """
1194
+ return self._RequestId
1195
+
1196
+ @RequestId.setter
1197
+ def RequestId(self, RequestId):
1198
+ self._RequestId = RequestId
1199
+
1200
+
1201
+ def _deserialize(self, params):
1202
+ self._InstanceId = params.get("InstanceId")
1203
+ self._DealName = params.get("DealName")
1204
+ self._BillId = params.get("BillId")
1205
+ self._RequestId = params.get("RequestId")
1206
+
1207
+
1032
1208
  class CreateWhiteBoxKeyRequest(AbstractModel):
1033
1209
  r"""CreateWhiteBoxKey请求参数结构体
1034
1210
 
@@ -5998,6 +6174,57 @@ class ImportKeyMaterialResponse(AbstractModel):
5998
6174
  self._RequestId = params.get("RequestId")
5999
6175
 
6000
6176
 
6177
+ class InstanceChargePrepaid(AbstractModel):
6178
+ r"""预付费计费信息
6179
+
6180
+ """
6181
+
6182
+ def __init__(self):
6183
+ r"""
6184
+ :param _Period: <p>按月购买时长(1~100)月</p>
6185
+ :type Period: int
6186
+ :param _RenewFlag: <p>续费标记(0:用户未设置,1:自动续费 2:不自动续费)</p>
6187
+ :type RenewFlag: int
6188
+ """
6189
+ self._Period = None
6190
+ self._RenewFlag = None
6191
+
6192
+ @property
6193
+ def Period(self):
6194
+ r"""<p>按月购买时长(1~100)月</p>
6195
+ :rtype: int
6196
+ """
6197
+ return self._Period
6198
+
6199
+ @Period.setter
6200
+ def Period(self, Period):
6201
+ self._Period = Period
6202
+
6203
+ @property
6204
+ def RenewFlag(self):
6205
+ r"""<p>续费标记(0:用户未设置,1:自动续费 2:不自动续费)</p>
6206
+ :rtype: int
6207
+ """
6208
+ return self._RenewFlag
6209
+
6210
+ @RenewFlag.setter
6211
+ def RenewFlag(self, RenewFlag):
6212
+ self._RenewFlag = RenewFlag
6213
+
6214
+
6215
+ def _deserialize(self, params):
6216
+ self._Period = params.get("Period")
6217
+ self._RenewFlag = params.get("RenewFlag")
6218
+ memeber_set = set(params.keys())
6219
+ for name, value in vars(self).items():
6220
+ property_name = name[1:]
6221
+ if property_name in memeber_set:
6222
+ memeber_set.remove(property_name)
6223
+ if len(memeber_set) > 0:
6224
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
6225
+
6226
+
6227
+
6001
6228
  class Key(AbstractModel):
6002
6229
  r"""返回CMK列表信息
6003
6230
 
@@ -8555,13 +8782,13 @@ class SignByAsymmetricKeyRequest(AbstractModel):
8555
8782
 
8556
8783
  def __init__(self):
8557
8784
  r"""
8558
- :param _Algorithm: 签名算法,支持的算法:SM2DSA,ECC_P256_R1,RSA_PSS_SHA_256,RSA_PKCS1_SHA_256 等。更多支持的算法可通过 ListAlgorithms 接口进行查询。
8785
+ :param _Algorithm: <p>签名算法,支持的算法:SM2DSA,ECC_P256_R1,ECDSA384_SHA384,RSA_PSS_SHA_256,RSA_PKCS1_SHA_256,RSA_PSS_SHA_384,RSA_PKCS1_SHA_384,RSA_PSS_SHA_512,RSA_PKCS1_SHA_512 等。更多支持的算法可通过 ListAlgorithms 接口进行查询。</p>
8559
8786
  :type Algorithm: str
8560
- :param _Message: 消息原文或消息摘要。如果提供的是消息原文,则消息原文的长度(Base64编码前的长度)不超过4096字节。如果提供的是消息摘要,消息摘要长度(Base64编码前的长度)必须等于32字节
8787
+ :param _Message: <p>消息原文或消息摘要。如果提供的是消息原文,则消息原文的长度(Base64编码前的长度)不超过4096字节。如果提供的是消息摘要,消息摘要长度(Base64编码前的长度)必须等于32字节</p>
8561
8788
  :type Message: str
8562
- :param _KeyId: 密钥的唯一标识
8789
+ :param _KeyId: <p>密钥的唯一标识</p>
8563
8790
  :type KeyId: str
8564
- :param _MessageType: 消息类型:RAW,DIGEST,如果不传,默认为RAW,表示消息原文。
8791
+ :param _MessageType: <p>消息类型:RAW,DIGEST,如果不传,默认为RAW,表示消息原文。</p>
8565
8792
  :type MessageType: str
8566
8793
  """
8567
8794
  self._Algorithm = None
@@ -8571,7 +8798,7 @@ class SignByAsymmetricKeyRequest(AbstractModel):
8571
8798
 
8572
8799
  @property
8573
8800
  def Algorithm(self):
8574
- r"""签名算法,支持的算法:SM2DSA,ECC_P256_R1,RSA_PSS_SHA_256,RSA_PKCS1_SHA_256 等。更多支持的算法可通过 ListAlgorithms 接口进行查询。
8801
+ r"""<p>签名算法,支持的算法:SM2DSA,ECC_P256_R1,ECDSA384_SHA384,RSA_PSS_SHA_256,RSA_PKCS1_SHA_256,RSA_PSS_SHA_384,RSA_PKCS1_SHA_384,RSA_PSS_SHA_512,RSA_PKCS1_SHA_512 等。更多支持的算法可通过 ListAlgorithms 接口进行查询。</p>
8575
8802
  :rtype: str
8576
8803
  """
8577
8804
  return self._Algorithm
@@ -8582,7 +8809,7 @@ class SignByAsymmetricKeyRequest(AbstractModel):
8582
8809
 
8583
8810
  @property
8584
8811
  def Message(self):
8585
- r"""消息原文或消息摘要。如果提供的是消息原文,则消息原文的长度(Base64编码前的长度)不超过4096字节。如果提供的是消息摘要,消息摘要长度(Base64编码前的长度)必须等于32字节
8812
+ r"""<p>消息原文或消息摘要。如果提供的是消息原文,则消息原文的长度(Base64编码前的长度)不超过4096字节。如果提供的是消息摘要,消息摘要长度(Base64编码前的长度)必须等于32字节</p>
8586
8813
  :rtype: str
8587
8814
  """
8588
8815
  return self._Message
@@ -8593,7 +8820,7 @@ class SignByAsymmetricKeyRequest(AbstractModel):
8593
8820
 
8594
8821
  @property
8595
8822
  def KeyId(self):
8596
- r"""密钥的唯一标识
8823
+ r"""<p>密钥的唯一标识</p>
8597
8824
  :rtype: str
8598
8825
  """
8599
8826
  return self._KeyId
@@ -8604,7 +8831,7 @@ class SignByAsymmetricKeyRequest(AbstractModel):
8604
8831
 
8605
8832
  @property
8606
8833
  def MessageType(self):
8607
- r"""消息类型:RAW,DIGEST,如果不传,默认为RAW,表示消息原文。
8834
+ r"""<p>消息类型:RAW,DIGEST,如果不传,默认为RAW,表示消息原文。</p>
8608
8835
  :rtype: str
8609
8836
  """
8610
8837
  return self._MessageType
@@ -8636,7 +8863,7 @@ class SignByAsymmetricKeyResponse(AbstractModel):
8636
8863
 
8637
8864
  def __init__(self):
8638
8865
  r"""
8639
- :param _Signature: 签名,Base64编码
8866
+ :param _Signature: <p>签名,Base64编码</p>
8640
8867
  :type Signature: str
8641
8868
  :param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
8642
8869
  :type RequestId: str
@@ -8646,7 +8873,7 @@ class SignByAsymmetricKeyResponse(AbstractModel):
8646
8873
 
8647
8874
  @property
8648
8875
  def Signature(self):
8649
- r"""签名,Base64编码
8876
+ r"""<p>签名,Base64编码</p>
8650
8877
  :rtype: str
8651
8878
  """
8652
8879
  return self._Signature
@@ -9259,15 +9486,15 @@ class VerifyByAsymmetricKeyRequest(AbstractModel):
9259
9486
 
9260
9487
  def __init__(self):
9261
9488
  r"""
9262
- :param _KeyId: 密钥的唯一标识
9489
+ :param _KeyId: <p>密钥的唯一标识</p>
9263
9490
  :type KeyId: str
9264
- :param _SignatureValue: 签名值,通过调用KMS签名接口生成
9491
+ :param _SignatureValue: <p>签名值,通过调用KMS签名接口生成</p>
9265
9492
  :type SignatureValue: str
9266
- :param _Message: 消息原文或消息摘要。如果提供的是消息原文,则消息原文的长度(Base64编码前的长度)不超过4096字节。如果提供的是消息摘要,则消息摘要长度(Base64编码前的长度)必须等于32字节
9493
+ :param _Message: <p>消息原文或消息摘要。如果提供的是消息原文,则消息原文的长度(Base64编码前的长度)不超过4096字节。如果提供的是消息摘要,则消息摘要长度(Base64编码前的长度)必须等于32字节</p>
9267
9494
  :type Message: str
9268
- :param _Algorithm: 签名算法,支持的算法:SM2DSA,ECC_P256_R1,RSA_PSS_SHA_256,RSA_PKCS1_SHA_256 等。更多支持的算法可通过 ListAlgorithms 接口进行查询。
9495
+ :param _Algorithm: <p>签名算法,支持的算法:SM2DSA,ECC_P256_R1,ECDSA384_SHA384,RSA_PSS_SHA_256,RSA_PKCS1_SHA_256,RSA_PSS_SHA_384,RSA_PKCS1_SHA_384,RSA_PSS_SHA_512,RSA_PKCS1_SHA_512 等。更多支持的算法可通过 ListAlgorithms 接口进行查询</p>
9269
9496
  :type Algorithm: str
9270
- :param _MessageType: 消息类型:RAW,DIGEST,如果不传,默认为RAW,表示消息原文。
9497
+ :param _MessageType: <p>消息类型:RAW,DIGEST,如果不传,默认为RAW,表示消息原文。</p>
9271
9498
  :type MessageType: str
9272
9499
  """
9273
9500
  self._KeyId = None
@@ -9278,7 +9505,7 @@ class VerifyByAsymmetricKeyRequest(AbstractModel):
9278
9505
 
9279
9506
  @property
9280
9507
  def KeyId(self):
9281
- r"""密钥的唯一标识
9508
+ r"""<p>密钥的唯一标识</p>
9282
9509
  :rtype: str
9283
9510
  """
9284
9511
  return self._KeyId
@@ -9289,7 +9516,7 @@ class VerifyByAsymmetricKeyRequest(AbstractModel):
9289
9516
 
9290
9517
  @property
9291
9518
  def SignatureValue(self):
9292
- r"""签名值,通过调用KMS签名接口生成
9519
+ r"""<p>签名值,通过调用KMS签名接口生成</p>
9293
9520
  :rtype: str
9294
9521
  """
9295
9522
  return self._SignatureValue
@@ -9300,7 +9527,7 @@ class VerifyByAsymmetricKeyRequest(AbstractModel):
9300
9527
 
9301
9528
  @property
9302
9529
  def Message(self):
9303
- r"""消息原文或消息摘要。如果提供的是消息原文,则消息原文的长度(Base64编码前的长度)不超过4096字节。如果提供的是消息摘要,则消息摘要长度(Base64编码前的长度)必须等于32字节
9530
+ r"""<p>消息原文或消息摘要。如果提供的是消息原文,则消息原文的长度(Base64编码前的长度)不超过4096字节。如果提供的是消息摘要,则消息摘要长度(Base64编码前的长度)必须等于32字节</p>
9304
9531
  :rtype: str
9305
9532
  """
9306
9533
  return self._Message
@@ -9311,7 +9538,7 @@ class VerifyByAsymmetricKeyRequest(AbstractModel):
9311
9538
 
9312
9539
  @property
9313
9540
  def Algorithm(self):
9314
- r"""签名算法,支持的算法:SM2DSA,ECC_P256_R1,RSA_PSS_SHA_256,RSA_PKCS1_SHA_256 等。更多支持的算法可通过 ListAlgorithms 接口进行查询。
9541
+ r"""<p>签名算法,支持的算法:SM2DSA,ECC_P256_R1,ECDSA384_SHA384,RSA_PSS_SHA_256,RSA_PKCS1_SHA_256,RSA_PSS_SHA_384,RSA_PKCS1_SHA_384,RSA_PSS_SHA_512,RSA_PKCS1_SHA_512 等。更多支持的算法可通过 ListAlgorithms 接口进行查询</p>
9315
9542
  :rtype: str
9316
9543
  """
9317
9544
  return self._Algorithm
@@ -9322,7 +9549,7 @@ class VerifyByAsymmetricKeyRequest(AbstractModel):
9322
9549
 
9323
9550
  @property
9324
9551
  def MessageType(self):
9325
- r"""消息类型:RAW,DIGEST,如果不传,默认为RAW,表示消息原文。
9552
+ r"""<p>消息类型:RAW,DIGEST,如果不传,默认为RAW,表示消息原文。</p>
9326
9553
  :rtype: str
9327
9554
  """
9328
9555
  return self._MessageType
@@ -9355,7 +9582,7 @@ class VerifyByAsymmetricKeyResponse(AbstractModel):
9355
9582
 
9356
9583
  def __init__(self):
9357
9584
  r"""
9358
- :param _SignatureValid: 签名是否有效。true:签名有效,false:签名无效。
9585
+ :param _SignatureValid: <p>签名是否有效。true:签名有效,false:签名无效。</p>
9359
9586
  :type SignatureValid: bool
9360
9587
  :param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
9361
9588
  :type RequestId: str
@@ -9365,7 +9592,7 @@ class VerifyByAsymmetricKeyResponse(AbstractModel):
9365
9592
 
9366
9593
  @property
9367
9594
  def SignatureValid(self):
9368
- r"""签名是否有效。true:签名有效,false:签名无效。
9595
+ r"""<p>签名是否有效。true:签名有效,false:签名无效。</p>
9369
9596
  :rtype: bool
9370
9597
  """
9371
9598
  return self._SignatureValid
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: tencentcloud-sdk-python-kms
3
- Version: 3.1.192
3
+ Version: 3.1.203
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.192
18
+ Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.1.203
19
19
 
20
20
  ============================
21
21
  Tencent Cloud SDK for Python
@@ -0,0 +1 @@
1
+ tencentcloud-sdk-python-common<4.0.0,>=3.1.203
@@ -1 +0,0 @@
1
- tencentcloud-sdk-python-common<4.0.0,>=3.1.192