tencentcloud-sdk-python-ssl 3.0.1397__tar.gz → 3.0.1404__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 (16) hide show
  1. {tencentcloud-sdk-python-ssl-3.0.1397 → tencentcloud-sdk-python-ssl-3.0.1404}/PKG-INFO +1 -1
  2. {tencentcloud-sdk-python-ssl-3.0.1397 → tencentcloud-sdk-python-ssl-3.0.1404}/setup.py +1 -1
  3. {tencentcloud-sdk-python-ssl-3.0.1397 → tencentcloud-sdk-python-ssl-3.0.1404}/tencentcloud/__init__.py +1 -1
  4. {tencentcloud-sdk-python-ssl-3.0.1397 → tencentcloud-sdk-python-ssl-3.0.1404}/tencentcloud/ssl/v20191205/errorcodes.py +18 -0
  5. {tencentcloud-sdk-python-ssl-3.0.1397 → tencentcloud-sdk-python-ssl-3.0.1404}/tencentcloud/ssl/v20191205/models.py +187 -8
  6. {tencentcloud-sdk-python-ssl-3.0.1397 → tencentcloud-sdk-python-ssl-3.0.1404}/tencentcloud/ssl/v20191205/ssl_client.py +25 -2
  7. {tencentcloud-sdk-python-ssl-3.0.1397 → tencentcloud-sdk-python-ssl-3.0.1404}/tencentcloud_sdk_python_ssl.egg-info/PKG-INFO +1 -1
  8. tencentcloud-sdk-python-ssl-3.0.1404/tencentcloud_sdk_python_ssl.egg-info/requires.txt +1 -0
  9. tencentcloud-sdk-python-ssl-3.0.1397/tencentcloud_sdk_python_ssl.egg-info/requires.txt +0 -1
  10. {tencentcloud-sdk-python-ssl-3.0.1397 → tencentcloud-sdk-python-ssl-3.0.1404}/README.rst +0 -0
  11. {tencentcloud-sdk-python-ssl-3.0.1397 → tencentcloud-sdk-python-ssl-3.0.1404}/setup.cfg +0 -0
  12. {tencentcloud-sdk-python-ssl-3.0.1397 → tencentcloud-sdk-python-ssl-3.0.1404}/tencentcloud/ssl/__init__.py +0 -0
  13. {tencentcloud-sdk-python-ssl-3.0.1397 → tencentcloud-sdk-python-ssl-3.0.1404}/tencentcloud/ssl/v20191205/__init__.py +0 -0
  14. {tencentcloud-sdk-python-ssl-3.0.1397 → tencentcloud-sdk-python-ssl-3.0.1404}/tencentcloud_sdk_python_ssl.egg-info/SOURCES.txt +0 -0
  15. {tencentcloud-sdk-python-ssl-3.0.1397 → tencentcloud-sdk-python-ssl-3.0.1404}/tencentcloud_sdk_python_ssl.egg-info/dependency_links.txt +0 -0
  16. {tencentcloud-sdk-python-ssl-3.0.1397 → tencentcloud-sdk-python-ssl-3.0.1404}/tencentcloud_sdk_python_ssl.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 1.2
2
2
  Name: tencentcloud-sdk-python-ssl
3
- Version: 3.0.1397
3
+ Version: 3.0.1404
4
4
  Summary: Tencent Cloud Ssl SDK for Python
5
5
  Home-page: https://github.com/TencentCloud/tencentcloud-sdk-python
6
6
  Author: Tencent Cloud
@@ -8,7 +8,7 @@ ROOT = os.path.dirname(__file__)
8
8
 
9
9
  setup(
10
10
  name='tencentcloud-sdk-python-ssl',
11
- install_requires=["tencentcloud-sdk-python-common==3.0.1397"],
11
+ install_requires=["tencentcloud-sdk-python-common==3.0.1404"],
12
12
  version=tencentcloud.__version__,
13
13
  description='Tencent Cloud Ssl SDK for Python',
14
14
  long_description=open('README.rst').read(),
@@ -14,4 +14,4 @@
14
14
  # limitations under the License.
15
15
 
16
16
 
17
- __version__ = '3.0.1397'
17
+ __version__ = '3.0.1404'
@@ -143,6 +143,9 @@ FAILEDOPERATION_CERTIFICATEORDERSUBMITROOTCAINVALID = 'FailedOperation.Certifica
143
143
  # 解析失败,请检查证书是否符合标准,请留意是否有多余的空格
144
144
  FAILEDOPERATION_CERTIFICATEPARSEERROR = 'FailedOperation.CertificateParseError'
145
145
 
146
+ # 您输入的邮箱格式有误,请您核对后重新提交
147
+ FAILEDOPERATION_CERTIFICATEPREVERIFYEMAILINVALID = 'FailedOperation.CertificatePreVerifyEmailInvalid'
148
+
146
149
  # 当前证书状态不允许下载。
147
150
  FAILEDOPERATION_CERTIFICATESTATUSNOTALLOWDOWNLOAD = 'FailedOperation.CertificateStatusNotAllowDownload'
148
151
 
@@ -152,6 +155,12 @@ FAILEDOPERATION_CERTIFICATESTATUSNOTALLOWRESUBMIT = 'FailedOperation.Certificate
152
155
  # 证书当前状态不允许进行域名验证。
153
156
  FAILEDOPERATION_CERTIFICATESTATUSNOTALLOWVERIFY = 'FailedOperation.CertificateStatusNotAllowVerify'
154
157
 
158
+ # 上传证书的托管续费证书不能手动提交订单
159
+ FAILEDOPERATION_CERTIFICATESUBMITHOSTINGCERTERROR = 'FailedOperation.CertificateSubmitHostingCertError'
160
+
161
+ # 证书操作参数无效,证书ID数量超过100。
162
+ FAILEDOPERATION_CERTIFICATESYNCTASKCERTIFICATEIDCOUNTINVALID = 'FailedOperation.CertificateSyncTaskCertificateIdCountInvalid'
163
+
155
164
  # 证书关联云资源查询任务ID无效
156
165
  FAILEDOPERATION_CERTIFICATESYNCTASKIDINVALID = 'FailedOperation.CertificateSyncTaskIdInvalid'
157
166
 
@@ -251,6 +260,12 @@ FAILEDOPERATION_SYSTEMERROR = 'FailedOperation.SystemError'
251
260
  # 计费中心错误。
252
261
  FAILEDOPERATION_TRADEERROR = 'FailedOperation.TradeError'
253
262
 
263
+ # 当前接口不支持上传确认函功能,请去腾讯云控制台进行操作
264
+ FAILEDOPERATION_UPLOADCONFIRMCERTIFICATENOTSUPPORT = 'FailedOperation.UploadConfirmCertificateNotSupport'
265
+
266
+ # 当前证书是DV证书,不支持上传确认函
267
+ FAILEDOPERATION_UPLOADCONFIRMCERTIFICATENOTSUPPORTDV = 'FailedOperation.UploadConfirmCertificateNotSupportDV'
268
+
254
269
  # 内部错误。
255
270
  INTERNALERROR = 'InternalError'
256
271
 
@@ -293,6 +308,9 @@ INVALIDPARAMETER_PERIODINVALID = 'InvalidParameter.PeriodInvalid'
293
308
  # 产品PID无效。
294
309
  INVALIDPARAMETER_PRODUCTPIDINVALID = 'InvalidParameter.ProductPidInvalid'
295
310
 
311
+ # Region不允许为空
312
+ INVALIDPARAMETER_REGIONNOTEMPTY = 'InvalidParameter.RegionNotEmpty'
313
+
296
314
  # 算法无效。
297
315
  INVALIDPARAMETER_RENEWALGORITHMINVALID = 'InvalidParameter.RenewAlgorithmInvalid'
298
316
 
@@ -1520,11 +1520,10 @@ FILE:手动添加域名文件验证。 需要用户手动在域名站点根目
1520
1520
  :type ContactEmail: str
1521
1521
  :param _AutoRenewFlag: 是否开启自动续费: 0, 不开启; 1, 开启; 默认为0
1522
1522
  :type AutoRenewFlag: int
1523
- :param _CsrKeyParameter: 密钥对参数,RSA支持2048,4096。ECC仅支持prime256v1。加密算法选择ECC时,此参数必填
1524
- 国密证书类型本字段不用传
1523
+ :param _CsrKeyParameter: 密钥对参数,RSA支持2048,4096。ECC仅支持prime256v1。当 CSR 生成方式为online的时候,此参数必填。
1524
+
1525
1525
  :type CsrKeyParameter: str
1526
- :param _CsrEncryptAlgo: 加密算法,取值为ECC、RSA, 默认为RSA
1527
- 国密证书类型本字段不用传
1526
+ :param _CsrEncryptAlgo: 加密算法,取值为ECC、RSA, 默认为RSA。当 CSR 生成方式为online的时候,此参数必填。
1528
1527
  :type CsrEncryptAlgo: str
1529
1528
  :param _ManagerId: 管理人ID,在 [腾讯云控制台](https://console.cloud.tencent.com/ssl/info) 可进行查看,若无满足的管理人信息, 则本参数传0 ; 若存在满足当前订单的管理人信息, 可以根据 [DescribeManagers](https://cloud.tencent.com/document/product/400/52672) 查看管理人ID; 若传了管理人ID,则Org开头、Admin开头、Tech开头的参数可不传; 管理人ID会包含公司信息
1530
1529
 
@@ -1958,8 +1957,8 @@ FILE:手动添加域名文件验证。 需要用户手动在域名站点根目
1958
1957
 
1959
1958
  @property
1960
1959
  def CsrKeyParameter(self):
1961
- """密钥对参数,RSA支持2048,4096。ECC仅支持prime256v1。加密算法选择ECC时,此参数必填
1962
- 国密证书类型本字段不用传
1960
+ """密钥对参数,RSA支持2048,4096。ECC仅支持prime256v1。当 CSR 生成方式为online的时候,此参数必填。
1961
+
1963
1962
  :rtype: str
1964
1963
  """
1965
1964
  return self._CsrKeyParameter
@@ -1970,8 +1969,7 @@ FILE:手动添加域名文件验证。 需要用户手动在域名站点根目
1970
1969
 
1971
1970
  @property
1972
1971
  def CsrEncryptAlgo(self):
1973
- """加密算法,取值为ECC、RSA, 默认为RSA
1974
- 国密证书类型本字段不用传
1972
+ """加密算法,取值为ECC、RSA, 默认为RSA。当 CSR 生成方式为online的时候,此参数必填。
1975
1973
  :rtype: str
1976
1974
  """
1977
1975
  return self._CsrEncryptAlgo
@@ -21325,6 +21323,187 @@ class UploadRevokeLetterResponse(AbstractModel):
21325
21323
  self._RequestId = params.get("RequestId")
21326
21324
 
21327
21325
 
21326
+ class UploadUpdateCertificateInstanceRequest(AbstractModel):
21327
+ """UploadUpdateCertificateInstance请求参数结构体
21328
+
21329
+ """
21330
+
21331
+ def __init__(self):
21332
+ r"""
21333
+ :param _OldCertificateId: 一键更新的旧证书ID。 通过查询该证书ID绑定的云资源,然后使用新证书对这些云资源进行更新
21334
+ :type OldCertificateId: str
21335
+ :param _ResourceTypes: 需要部署的资源类型,参数值可选(小写):clb
21336
+ :type ResourceTypes: list of str
21337
+ :param _CertificatePublicKey: 公钥证书
21338
+ :type CertificatePublicKey: str
21339
+ :param _CertificatePrivateKey: 私钥证书
21340
+ :type CertificatePrivateKey: str
21341
+ :param _ResourceTypesRegions: 云资源需要部署的地域列表,支持地域的云资源类型必传,取值:clb
21342
+ :type ResourceTypesRegions: list of ResourceTypeRegions
21343
+ """
21344
+ self._OldCertificateId = None
21345
+ self._ResourceTypes = None
21346
+ self._CertificatePublicKey = None
21347
+ self._CertificatePrivateKey = None
21348
+ self._ResourceTypesRegions = None
21349
+
21350
+ @property
21351
+ def OldCertificateId(self):
21352
+ """一键更新的旧证书ID。 通过查询该证书ID绑定的云资源,然后使用新证书对这些云资源进行更新
21353
+ :rtype: str
21354
+ """
21355
+ return self._OldCertificateId
21356
+
21357
+ @OldCertificateId.setter
21358
+ def OldCertificateId(self, OldCertificateId):
21359
+ self._OldCertificateId = OldCertificateId
21360
+
21361
+ @property
21362
+ def ResourceTypes(self):
21363
+ """需要部署的资源类型,参数值可选(小写):clb
21364
+ :rtype: list of str
21365
+ """
21366
+ return self._ResourceTypes
21367
+
21368
+ @ResourceTypes.setter
21369
+ def ResourceTypes(self, ResourceTypes):
21370
+ self._ResourceTypes = ResourceTypes
21371
+
21372
+ @property
21373
+ def CertificatePublicKey(self):
21374
+ """公钥证书
21375
+ :rtype: str
21376
+ """
21377
+ return self._CertificatePublicKey
21378
+
21379
+ @CertificatePublicKey.setter
21380
+ def CertificatePublicKey(self, CertificatePublicKey):
21381
+ self._CertificatePublicKey = CertificatePublicKey
21382
+
21383
+ @property
21384
+ def CertificatePrivateKey(self):
21385
+ """私钥证书
21386
+ :rtype: str
21387
+ """
21388
+ return self._CertificatePrivateKey
21389
+
21390
+ @CertificatePrivateKey.setter
21391
+ def CertificatePrivateKey(self, CertificatePrivateKey):
21392
+ self._CertificatePrivateKey = CertificatePrivateKey
21393
+
21394
+ @property
21395
+ def ResourceTypesRegions(self):
21396
+ """云资源需要部署的地域列表,支持地域的云资源类型必传,取值:clb
21397
+ :rtype: list of ResourceTypeRegions
21398
+ """
21399
+ return self._ResourceTypesRegions
21400
+
21401
+ @ResourceTypesRegions.setter
21402
+ def ResourceTypesRegions(self, ResourceTypesRegions):
21403
+ self._ResourceTypesRegions = ResourceTypesRegions
21404
+
21405
+
21406
+ def _deserialize(self, params):
21407
+ self._OldCertificateId = params.get("OldCertificateId")
21408
+ self._ResourceTypes = params.get("ResourceTypes")
21409
+ self._CertificatePublicKey = params.get("CertificatePublicKey")
21410
+ self._CertificatePrivateKey = params.get("CertificatePrivateKey")
21411
+ if params.get("ResourceTypesRegions") is not None:
21412
+ self._ResourceTypesRegions = []
21413
+ for item in params.get("ResourceTypesRegions"):
21414
+ obj = ResourceTypeRegions()
21415
+ obj._deserialize(item)
21416
+ self._ResourceTypesRegions.append(obj)
21417
+ memeber_set = set(params.keys())
21418
+ for name, value in vars(self).items():
21419
+ property_name = name[1:]
21420
+ if property_name in memeber_set:
21421
+ memeber_set.remove(property_name)
21422
+ if len(memeber_set) > 0:
21423
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
21424
+
21425
+
21426
+
21427
+ class UploadUpdateCertificateInstanceResponse(AbstractModel):
21428
+ """UploadUpdateCertificateInstance返回参数结构体
21429
+
21430
+ """
21431
+
21432
+ def __init__(self):
21433
+ r"""
21434
+ :param _DeployRecordId: 云资源更新任务ID, DeployRecordId为0表示任务进行中, 重复请求这个接口, 当返回DeployRecordId大于0则表示任务创建成功。 未创建成功则会抛出异常
21435
+ :type DeployRecordId: int
21436
+ :param _DeployStatus: 更新任务创建状态;1表示创建成功; 0表示当前存在更新中的任务,未创建新的更新任务;返回值DeployRecordId为更新中的任务ID
21437
+ :type DeployStatus: int
21438
+ :param _UpdateSyncProgress: 更新异步创建任务进度详情
21439
+ 注意:此字段可能返回 null,表示取不到有效值。
21440
+ :type UpdateSyncProgress: list of UpdateSyncProgress
21441
+ :param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
21442
+ :type RequestId: str
21443
+ """
21444
+ self._DeployRecordId = None
21445
+ self._DeployStatus = None
21446
+ self._UpdateSyncProgress = None
21447
+ self._RequestId = None
21448
+
21449
+ @property
21450
+ def DeployRecordId(self):
21451
+ """云资源更新任务ID, DeployRecordId为0表示任务进行中, 重复请求这个接口, 当返回DeployRecordId大于0则表示任务创建成功。 未创建成功则会抛出异常
21452
+ :rtype: int
21453
+ """
21454
+ return self._DeployRecordId
21455
+
21456
+ @DeployRecordId.setter
21457
+ def DeployRecordId(self, DeployRecordId):
21458
+ self._DeployRecordId = DeployRecordId
21459
+
21460
+ @property
21461
+ def DeployStatus(self):
21462
+ """更新任务创建状态;1表示创建成功; 0表示当前存在更新中的任务,未创建新的更新任务;返回值DeployRecordId为更新中的任务ID
21463
+ :rtype: int
21464
+ """
21465
+ return self._DeployStatus
21466
+
21467
+ @DeployStatus.setter
21468
+ def DeployStatus(self, DeployStatus):
21469
+ self._DeployStatus = DeployStatus
21470
+
21471
+ @property
21472
+ def UpdateSyncProgress(self):
21473
+ """更新异步创建任务进度详情
21474
+ 注意:此字段可能返回 null,表示取不到有效值。
21475
+ :rtype: list of UpdateSyncProgress
21476
+ """
21477
+ return self._UpdateSyncProgress
21478
+
21479
+ @UpdateSyncProgress.setter
21480
+ def UpdateSyncProgress(self, UpdateSyncProgress):
21481
+ self._UpdateSyncProgress = UpdateSyncProgress
21482
+
21483
+ @property
21484
+ def RequestId(self):
21485
+ """唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
21486
+ :rtype: str
21487
+ """
21488
+ return self._RequestId
21489
+
21490
+ @RequestId.setter
21491
+ def RequestId(self, RequestId):
21492
+ self._RequestId = RequestId
21493
+
21494
+
21495
+ def _deserialize(self, params):
21496
+ self._DeployRecordId = params.get("DeployRecordId")
21497
+ self._DeployStatus = params.get("DeployStatus")
21498
+ if params.get("UpdateSyncProgress") is not None:
21499
+ self._UpdateSyncProgress = []
21500
+ for item in params.get("UpdateSyncProgress"):
21501
+ obj = UpdateSyncProgress()
21502
+ obj._deserialize(item)
21503
+ self._UpdateSyncProgress.append(obj)
21504
+ self._RequestId = params.get("RequestId")
21505
+
21506
+
21328
21507
  class VODInstanceList(AbstractModel):
21329
21508
  """vod实例详情 - 异步关联云资源数据结构
21330
21509
 
@@ -1414,7 +1414,7 @@ class SslClient(AbstractClient):
1414
1414
 
1415
1415
 
1416
1416
  def UploadConfirmLetter(self, request):
1417
- """本接口(UploadConfirmLetter)用于上传证书确认函。
1417
+ """本接口(UploadConfirmLetter)上传证书确认函,不再维护其功能,请用户前往腾讯云证书控制台上传证书确认函
1418
1418
 
1419
1419
  :param request: Request instance for UploadConfirmLetter.
1420
1420
  :type request: :class:`tencentcloud.ssl.v20191205.models.UploadConfirmLetterRequest`
@@ -1437,7 +1437,7 @@ class SslClient(AbstractClient):
1437
1437
 
1438
1438
 
1439
1439
  def UploadRevokeLetter(self, request):
1440
- """本接口(UploadRevokeLetter)用于上传证书吊销确认函。
1440
+ """本接口(UploadRevokeLetter)上传证书吊销确认函,不再维护其功能,请用户前往腾讯云证书控制台上传证书吊销确认函
1441
1441
 
1442
1442
  :param request: Request instance for UploadRevokeLetter.
1443
1443
  :type request: :class:`tencentcloud.ssl.v20191205.models.UploadRevokeLetterRequest`
@@ -1459,6 +1459,29 @@ class SslClient(AbstractClient):
1459
1459
  raise TencentCloudSDKException(type(e).__name__, str(e))
1460
1460
 
1461
1461
 
1462
+ def UploadUpdateCertificateInstance(self, request):
1463
+ """更新证书内容(证书ID不变)并更新关联的云资源,本接口为异步接口, 调用之后DeployRecordId为0表示任务进行中, 重复请求这个接口, 当返回DeployRecordId大于0则表示任务创建成功。 未创建成功则会抛出异常
1464
+
1465
+ :param request: Request instance for UploadUpdateCertificateInstance.
1466
+ :type request: :class:`tencentcloud.ssl.v20191205.models.UploadUpdateCertificateInstanceRequest`
1467
+ :rtype: :class:`tencentcloud.ssl.v20191205.models.UploadUpdateCertificateInstanceResponse`
1468
+
1469
+ """
1470
+ try:
1471
+ params = request._serialize()
1472
+ headers = request.headers
1473
+ body = self.call("UploadUpdateCertificateInstance", params, headers=headers)
1474
+ response = json.loads(body)
1475
+ model = models.UploadUpdateCertificateInstanceResponse()
1476
+ model._deserialize(response["Response"])
1477
+ return model
1478
+ except Exception as e:
1479
+ if isinstance(e, TencentCloudSDKException):
1480
+ raise
1481
+ else:
1482
+ raise TencentCloudSDKException(type(e).__name__, str(e))
1483
+
1484
+
1462
1485
  def VerifyManager(self, request):
1463
1486
  """重新核验管理人
1464
1487
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 1.2
2
2
  Name: tencentcloud-sdk-python-ssl
3
- Version: 3.0.1397
3
+ Version: 3.0.1404
4
4
  Summary: Tencent Cloud Ssl SDK for Python
5
5
  Home-page: https://github.com/TencentCloud/tencentcloud-sdk-python
6
6
  Author: Tencent Cloud
@@ -0,0 +1 @@
1
+ tencentcloud-sdk-python-common==3.0.1404
@@ -1 +0,0 @@
1
- tencentcloud-sdk-python-common==3.0.1397