tencentcloud-sdk-python 3.0.1308__py2.py3-none-any.whl → 3.0.1309__py2.py3-none-any.whl

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/__init__.py CHANGED
@@ -14,4 +14,4 @@
14
14
  # limitations under the License.
15
15
 
16
16
 
17
- __version__ = '3.0.1308'
17
+ __version__ = '3.0.1309'
@@ -828,9 +828,11 @@ class CreateRecTaskRequest(AbstractModel):
828
828
  • **16k_zh_large:**普方英大模型引擎【大模型版】。当前模型同时支持中文、英文、[多种中文方言](https://cloud.tencent.com/document/product/1093/35682)等语言的识别,模型参数量极大,语言模型性能增强,针对噪声大、回音大、人声小、人声远等低质量音频的识别准确率极大提升,[点击这里](https://console.cloud.tencent.com/asr/demonstrate) 对比中文普通话常规版本与普方英大模型版本的识别效果;
829
829
  • **16k_multi_lang:**多语种大模型引擎【大模型版】。当前模型同时支持英语、日语、韩语、阿拉伯语、菲律宾语、法语、印地语、印尼语、马来语、葡萄牙语、西班牙语、泰语、土耳其语、越南语、德语的识别,可实现15个语种的自动识别(句子/段落级别);
830
830
  • **16k_zh_dialect:**中文普通话+多方言混合引擎,除普通话外支持23种方言(上海话、四川话、武汉话、贵阳话、昆明话、西安话、郑州话、太原话、兰州话、银川话、西宁话、南京话、合肥话、南昌话、长沙话、苏州话、杭州话、济南话、天津话、石家庄话、黑龙江话、吉林话、辽宁话);
831
+ • **16k_zh_en**:中英大模型引擎【大模型版】。当前模型同时支持中文、英语识别,模型参数量极大,语言模型性能增强,针对噪声大、回音大、人声小、人声远等低质量音频的识别准确率极大提升;
831
832
  • **16k_en:**英语;
832
833
  • **16k_yue:**粤语;
833
834
  • **16k_zh-PY:**中英粤混合引擎,使用一个引擎同时识别中文普通话、英语、粤语三个语言;
835
+ • **16k_zh-TW**:中文繁体;
834
836
  • **16k_ja:**日语;
835
837
  • **16k_ko:**韩语;
836
838
  • **16k_vi:**越南语;
@@ -1040,9 +1042,11 @@ class CreateRecTaskRequest(AbstractModel):
1040
1042
  • **16k_zh_large:**普方英大模型引擎【大模型版】。当前模型同时支持中文、英文、[多种中文方言](https://cloud.tencent.com/document/product/1093/35682)等语言的识别,模型参数量极大,语言模型性能增强,针对噪声大、回音大、人声小、人声远等低质量音频的识别准确率极大提升,[点击这里](https://console.cloud.tencent.com/asr/demonstrate) 对比中文普通话常规版本与普方英大模型版本的识别效果;
1041
1043
  • **16k_multi_lang:**多语种大模型引擎【大模型版】。当前模型同时支持英语、日语、韩语、阿拉伯语、菲律宾语、法语、印地语、印尼语、马来语、葡萄牙语、西班牙语、泰语、土耳其语、越南语、德语的识别,可实现15个语种的自动识别(句子/段落级别);
1042
1044
  • **16k_zh_dialect:**中文普通话+多方言混合引擎,除普通话外支持23种方言(上海话、四川话、武汉话、贵阳话、昆明话、西安话、郑州话、太原话、兰州话、银川话、西宁话、南京话、合肥话、南昌话、长沙话、苏州话、杭州话、济南话、天津话、石家庄话、黑龙江话、吉林话、辽宁话);
1045
+ • **16k_zh_en**:中英大模型引擎【大模型版】。当前模型同时支持中文、英语识别,模型参数量极大,语言模型性能增强,针对噪声大、回音大、人声小、人声远等低质量音频的识别准确率极大提升;
1043
1046
  • **16k_en:**英语;
1044
1047
  • **16k_yue:**粤语;
1045
1048
  • **16k_zh-PY:**中英粤混合引擎,使用一个引擎同时识别中文普通话、英语、粤语三个语言;
1049
+ • **16k_zh-TW**:中文繁体;
1046
1050
  • **16k_ja:**日语;
1047
1051
  • **16k_ko:**韩语;
1048
1052
  • **16k_vi:**越南语;
@@ -4822,7 +4822,7 @@ class DescribeUserRoleListResponse(AbstractModel):
4822
4822
  :param _ErrorInfo: 自定义错误信息对象
4823
4823
  注意:此字段可能返回 null,表示取不到有效值。
4824
4824
  :type ErrorInfo: :class:`tencentcloud.bi.v20220105.models.ErrorInfo`
4825
- :param _Extra: 扩展
4825
+ :param _Extra: 扩展描述信息(提供更多异常信息,用于辅助判断)
4826
4826
  注意:此字段可能返回 null,表示取不到有效值。
4827
4827
  :type Extra: str
4828
4828
  :param _Data: 数据
@@ -4854,7 +4854,7 @@ class DescribeUserRoleListResponse(AbstractModel):
4854
4854
 
4855
4855
  @property
4856
4856
  def Extra(self):
4857
- """扩展
4857
+ """扩展描述信息(提供更多异常信息,用于辅助判断)
4858
4858
  注意:此字段可能返回 null,表示取不到有效值。
4859
4859
  :rtype: str
4860
4860
  """
@@ -7262,6 +7262,8 @@ class DescribeRedisTopHotKeysRequest(AbstractModel):
7262
7262
  :type InstanceNodeIds: list of str
7263
7263
  :param _Limit: top 数目,默认为20,最大值为100。
7264
7264
  :type Limit: int
7265
+ :param _Offset: 偏移量,默认为0。
7266
+ :type Offset: int
7265
7267
  """
7266
7268
  self._InstanceId = None
7267
7269
  self._StartTime = None
@@ -7269,6 +7271,7 @@ class DescribeRedisTopHotKeysRequest(AbstractModel):
7269
7271
  self._Product = None
7270
7272
  self._InstanceNodeIds = None
7271
7273
  self._Limit = None
7274
+ self._Offset = None
7272
7275
 
7273
7276
  @property
7274
7277
  def InstanceId(self):
@@ -7336,6 +7339,17 @@ class DescribeRedisTopHotKeysRequest(AbstractModel):
7336
7339
  def Limit(self, Limit):
7337
7340
  self._Limit = Limit
7338
7341
 
7342
+ @property
7343
+ def Offset(self):
7344
+ """偏移量,默认为0。
7345
+ :rtype: int
7346
+ """
7347
+ return self._Offset
7348
+
7349
+ @Offset.setter
7350
+ def Offset(self, Offset):
7351
+ self._Offset = Offset
7352
+
7339
7353
 
7340
7354
  def _deserialize(self, params):
7341
7355
  self._InstanceId = params.get("InstanceId")
@@ -7344,6 +7358,7 @@ class DescribeRedisTopHotKeysRequest(AbstractModel):
7344
7358
  self._Product = params.get("Product")
7345
7359
  self._InstanceNodeIds = params.get("InstanceNodeIds")
7346
7360
  self._Limit = params.get("Limit")
7361
+ self._Offset = params.get("Offset")
7347
7362
  memeber_set = set(params.keys())
7348
7363
  for name, value in vars(self).items():
7349
7364
  property_name = name[1:]
@@ -1655,6 +1655,34 @@ class EssbasicClient(AbstractClient):
1655
1655
  raise TencentCloudSDKException(type(e).__name__, str(e))
1656
1656
 
1657
1657
 
1658
+ def CreateBatchOrganizationAuthorizationUrl(self, request):
1659
+ """此接口用于获取企业批量认证链接-单链接包含多条认证流。
1660
+
1661
+ 前提条件:已调用 [CreateBatchOrganizationRegistrationTasks创建子企业批量认证链接任务接口](https://qian.tencent.com/developers/partnerApis/accounts/CreateBatchOrganizationRegistrationTasks) 和[查询子企业批量认证链接DescribeBatchOrganizationRegistrationUrls](https://qian.tencent.com/developers/partnerApis/accounts/DescribeBatchOrganizationRegistrationUrls) 确保认证任务已经完成。
1662
+
1663
+ 异步任务的处理完成时间视当前已提交的任务量、任务的复杂程度等因素决定,正常情况下 3~5 秒即可完成,但也可能需要更长的时间。
1664
+ 此链接包含多条认证流程,使用该链接可以批量的对企业进行认证。
1665
+
1666
+ :param request: Request instance for CreateBatchOrganizationAuthorizationUrl.
1667
+ :type request: :class:`tencentcloud.essbasic.v20210526.models.CreateBatchOrganizationAuthorizationUrlRequest`
1668
+ :rtype: :class:`tencentcloud.essbasic.v20210526.models.CreateBatchOrganizationAuthorizationUrlResponse`
1669
+
1670
+ """
1671
+ try:
1672
+ params = request._serialize()
1673
+ headers = request.headers
1674
+ body = self.call("CreateBatchOrganizationAuthorizationUrl", params, headers=headers)
1675
+ response = json.loads(body)
1676
+ model = models.CreateBatchOrganizationAuthorizationUrlResponse()
1677
+ model._deserialize(response["Response"])
1678
+ return model
1679
+ except Exception as e:
1680
+ if isinstance(e, TencentCloudSDKException):
1681
+ raise
1682
+ else:
1683
+ raise TencentCloudSDKException(type(e).__name__, str(e))
1684
+
1685
+
1658
1686
  def CreateBatchOrganizationRegistrationTasks(self, request):
1659
1687
  """该接口用于批量创建企业认证链接, 可以支持PC浏览器,H5和小程序三种途径。
1660
1688
  此接口为异步提交任务接口,需要与[查询子企业批量认证链接](https://qcloudimg.tencent-cloud.cn/raw/1d3737991b2a3be78002bd78a47d6917.png)配合使用,整体流程如下图。
@@ -13336,6 +13336,215 @@ class CreateBatchInitOrganizationUrlResponse(AbstractModel):
13336
13336
  self._RequestId = params.get("RequestId")
13337
13337
 
13338
13338
 
13339
+ class CreateBatchOrganizationAuthorizationUrlRequest(AbstractModel):
13340
+ """CreateBatchOrganizationAuthorizationUrl请求参数结构体
13341
+
13342
+ """
13343
+
13344
+ def __init__(self):
13345
+ r"""
13346
+ :param _Agent: 应用相关信息。 此接口Agent.AppId 必填。
13347
+ :type Agent: :class:`tencentcloud.essbasic.v20210526.models.Agent`
13348
+ :param _AdminName: 组织机构超管姓名。 在注册流程中,必须是超管本人进行操作。此参数需要跟[创建子企业批量认证链接](https://qian.tencent.com/developers/partnerApis/accounts/CreateBatchOrganizationRegistrationTasks)中 AdminName 保持一致。
13349
+ :type AdminName: str
13350
+ :param _AdminMobile: 组织机构超管手机号。 在注册流程中,必须是超管本人进行操作。此参数需要跟[创建子企业批量认证链接](https://qian.tencent.com/developers/partnerApis/accounts/CreateBatchOrganizationRegistrationTasks)中 Admin Mobile保持一致。
13351
+ :type AdminMobile: str
13352
+ :param _SubTaskIds: 企业批量认证链接的子任务 SubTaskId,该 SubTaskId 是通过接口 查询企业批量认证链接 DescribeBatchOrganizationRegistrationUrls 获得。此参数需与超管个人三要素(AdminName,AdminMobile,AdminIdCardNumber)配合使用。若 SubTaskId 不属于传入的超级管理员,将进行筛选。
13353
+ :type SubTaskIds: list of str
13354
+ :param _AdminIdCardType: 组织机构超管证件类型支持以下类型
13355
+ - ID_CARD : 居民身份证 (默认值)
13356
+ - HONGKONG_AND_MACAO : 港澳居民来往内地通行证
13357
+ - HONGKONG_MACAO_AND_TAIWAN : 港澳台居民居住证(格式同居民身份证)
13358
+ 此参数需要跟[创建子企业批量认证链接](https://qian.tencent.com/developers/partnerApis/accounts/CreateBatchOrganizationRegistrationTasks)中 AdminIdCardType保持一致。
13359
+ :type AdminIdCardType: str
13360
+ :param _AdminIdCardNumber: 组织机构超管证件号。 在注册流程中,必须是超管本人进行操作。此参数需要跟[创建子企业批量认证链接](https://qian.tencent.com/developers/partnerApis/accounts/CreateBatchOrganizationRegistrationTasks)中 AdminIdCardNumber保持一致。
13361
+ :type AdminIdCardNumber: str
13362
+ :param _Endpoint: 要跳转的链接类型<ul><li> **HTTP**:跳转电子签小程序的http_url, 短信通知或者H5跳转适合此类型 ,此时返回长链 (默认类型)</li><li>**HTTP_SHORT_URL**:跳转电子签小程序的http_url, 短信通知或者H5跳转适合此类型,此时返回短链</li><li>**APP**: 第三方APP或小程序跳转电子签小程序的path, APP或者小程序跳转适合此类型</li><li>**QR_CODE**: 跳转电子签小程序的http_url的二维码形式, 可以在页面展示适合此类型</li></ul>
13363
+ :type Endpoint: str
13364
+ """
13365
+ self._Agent = None
13366
+ self._AdminName = None
13367
+ self._AdminMobile = None
13368
+ self._SubTaskIds = None
13369
+ self._AdminIdCardType = None
13370
+ self._AdminIdCardNumber = None
13371
+ self._Endpoint = None
13372
+
13373
+ @property
13374
+ def Agent(self):
13375
+ """应用相关信息。 此接口Agent.AppId 必填。
13376
+ :rtype: :class:`tencentcloud.essbasic.v20210526.models.Agent`
13377
+ """
13378
+ return self._Agent
13379
+
13380
+ @Agent.setter
13381
+ def Agent(self, Agent):
13382
+ self._Agent = Agent
13383
+
13384
+ @property
13385
+ def AdminName(self):
13386
+ """组织机构超管姓名。 在注册流程中,必须是超管本人进行操作。此参数需要跟[创建子企业批量认证链接](https://qian.tencent.com/developers/partnerApis/accounts/CreateBatchOrganizationRegistrationTasks)中 AdminName 保持一致。
13387
+ :rtype: str
13388
+ """
13389
+ return self._AdminName
13390
+
13391
+ @AdminName.setter
13392
+ def AdminName(self, AdminName):
13393
+ self._AdminName = AdminName
13394
+
13395
+ @property
13396
+ def AdminMobile(self):
13397
+ """组织机构超管手机号。 在注册流程中,必须是超管本人进行操作。此参数需要跟[创建子企业批量认证链接](https://qian.tencent.com/developers/partnerApis/accounts/CreateBatchOrganizationRegistrationTasks)中 Admin Mobile保持一致。
13398
+ :rtype: str
13399
+ """
13400
+ return self._AdminMobile
13401
+
13402
+ @AdminMobile.setter
13403
+ def AdminMobile(self, AdminMobile):
13404
+ self._AdminMobile = AdminMobile
13405
+
13406
+ @property
13407
+ def SubTaskIds(self):
13408
+ """企业批量认证链接的子任务 SubTaskId,该 SubTaskId 是通过接口 查询企业批量认证链接 DescribeBatchOrganizationRegistrationUrls 获得。此参数需与超管个人三要素(AdminName,AdminMobile,AdminIdCardNumber)配合使用。若 SubTaskId 不属于传入的超级管理员,将进行筛选。
13409
+ :rtype: list of str
13410
+ """
13411
+ return self._SubTaskIds
13412
+
13413
+ @SubTaskIds.setter
13414
+ def SubTaskIds(self, SubTaskIds):
13415
+ self._SubTaskIds = SubTaskIds
13416
+
13417
+ @property
13418
+ def AdminIdCardType(self):
13419
+ """组织机构超管证件类型支持以下类型
13420
+ - ID_CARD : 居民身份证 (默认值)
13421
+ - HONGKONG_AND_MACAO : 港澳居民来往内地通行证
13422
+ - HONGKONG_MACAO_AND_TAIWAN : 港澳台居民居住证(格式同居民身份证)
13423
+ 此参数需要跟[创建子企业批量认证链接](https://qian.tencent.com/developers/partnerApis/accounts/CreateBatchOrganizationRegistrationTasks)中 AdminIdCardType保持一致。
13424
+ :rtype: str
13425
+ """
13426
+ return self._AdminIdCardType
13427
+
13428
+ @AdminIdCardType.setter
13429
+ def AdminIdCardType(self, AdminIdCardType):
13430
+ self._AdminIdCardType = AdminIdCardType
13431
+
13432
+ @property
13433
+ def AdminIdCardNumber(self):
13434
+ """组织机构超管证件号。 在注册流程中,必须是超管本人进行操作。此参数需要跟[创建子企业批量认证链接](https://qian.tencent.com/developers/partnerApis/accounts/CreateBatchOrganizationRegistrationTasks)中 AdminIdCardNumber保持一致。
13435
+ :rtype: str
13436
+ """
13437
+ return self._AdminIdCardNumber
13438
+
13439
+ @AdminIdCardNumber.setter
13440
+ def AdminIdCardNumber(self, AdminIdCardNumber):
13441
+ self._AdminIdCardNumber = AdminIdCardNumber
13442
+
13443
+ @property
13444
+ def Endpoint(self):
13445
+ """要跳转的链接类型<ul><li> **HTTP**:跳转电子签小程序的http_url, 短信通知或者H5跳转适合此类型 ,此时返回长链 (默认类型)</li><li>**HTTP_SHORT_URL**:跳转电子签小程序的http_url, 短信通知或者H5跳转适合此类型,此时返回短链</li><li>**APP**: 第三方APP或小程序跳转电子签小程序的path, APP或者小程序跳转适合此类型</li><li>**QR_CODE**: 跳转电子签小程序的http_url的二维码形式, 可以在页面展示适合此类型</li></ul>
13446
+ :rtype: str
13447
+ """
13448
+ return self._Endpoint
13449
+
13450
+ @Endpoint.setter
13451
+ def Endpoint(self, Endpoint):
13452
+ self._Endpoint = Endpoint
13453
+
13454
+
13455
+ def _deserialize(self, params):
13456
+ if params.get("Agent") is not None:
13457
+ self._Agent = Agent()
13458
+ self._Agent._deserialize(params.get("Agent"))
13459
+ self._AdminName = params.get("AdminName")
13460
+ self._AdminMobile = params.get("AdminMobile")
13461
+ self._SubTaskIds = params.get("SubTaskIds")
13462
+ self._AdminIdCardType = params.get("AdminIdCardType")
13463
+ self._AdminIdCardNumber = params.get("AdminIdCardNumber")
13464
+ self._Endpoint = params.get("Endpoint")
13465
+ memeber_set = set(params.keys())
13466
+ for name, value in vars(self).items():
13467
+ property_name = name[1:]
13468
+ if property_name in memeber_set:
13469
+ memeber_set.remove(property_name)
13470
+ if len(memeber_set) > 0:
13471
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
13472
+
13473
+
13474
+
13475
+ class CreateBatchOrganizationAuthorizationUrlResponse(AbstractModel):
13476
+ """CreateBatchOrganizationAuthorizationUrl返回参数结构体
13477
+
13478
+ """
13479
+
13480
+ def __init__(self):
13481
+ r"""
13482
+ :param _AuthUrl: 批量企业注册链接-单链接包含多条认证流,根据Endpoint的不同设置,返回不同的链接地址。失效时间:7天跳转链接, 链接的有效期根据企业,员工状态和终端等有区别, 可以参考下表<table> <thead> <tr> <th>Endpoint</th> <th>示例</th> <th>链接有效期限</th> </tr> </thead> <tbody> <tr> <td>HTTP</td> <td>https://res.ess.tencent.cn/cdn/h5-activity-dev/jump-mp.html?to=AUTHORIZATION_ENTERPRISE_FOR_BATCH_SUBMIT&shortKey=yDCHHURDfBxSB2rj2Bfa</td> <td>7天</td> </tr> <tr> <td>HTTP_SHORT_URL</td> <td>https://test.essurl.cn/8gDKUBAWK8</td> <td>7天</td> </tr> <tr> <td>APP</td> <td>pages/guide/index?to=AUTHORIZATION_ENTERPRISE_FOR_BATCH_SUBMIT&shortKey=yDCHpURDfR6iEkdpsDde</td> <td>7天</td> </tr><tr> <td>QR_CODE</td> <td>https://dyn.test.ess.tencent.cn/imgs/qrcode_urls/authorization_enterprise_for_batch_submit/yDCHHUUckpbdauq9UEjnoFDCCumAMmv1.png</td> <td>7天</td> </tr> </tbody> </table>注: `1.创建的链接应避免被转义,如:&被转义为\u0026;如使用Postman请求后,请选择响应类型为 JSON,否则链接将被转义`
13483
+ :type AuthUrl: str
13484
+ :param _ErrorMessages: 认证流认证失败信息
13485
+ :type ErrorMessages: list of str
13486
+ :param _ExpireTime: 链接过期时间,为 7 天后,创建时间,格式为Unix标准时间戳(秒)。
13487
+ :type ExpireTime: int
13488
+ :param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
13489
+ :type RequestId: str
13490
+ """
13491
+ self._AuthUrl = None
13492
+ self._ErrorMessages = None
13493
+ self._ExpireTime = None
13494
+ self._RequestId = None
13495
+
13496
+ @property
13497
+ def AuthUrl(self):
13498
+ """批量企业注册链接-单链接包含多条认证流,根据Endpoint的不同设置,返回不同的链接地址。失效时间:7天跳转链接, 链接的有效期根据企业,员工状态和终端等有区别, 可以参考下表<table> <thead> <tr> <th>Endpoint</th> <th>示例</th> <th>链接有效期限</th> </tr> </thead> <tbody> <tr> <td>HTTP</td> <td>https://res.ess.tencent.cn/cdn/h5-activity-dev/jump-mp.html?to=AUTHORIZATION_ENTERPRISE_FOR_BATCH_SUBMIT&shortKey=yDCHHURDfBxSB2rj2Bfa</td> <td>7天</td> </tr> <tr> <td>HTTP_SHORT_URL</td> <td>https://test.essurl.cn/8gDKUBAWK8</td> <td>7天</td> </tr> <tr> <td>APP</td> <td>pages/guide/index?to=AUTHORIZATION_ENTERPRISE_FOR_BATCH_SUBMIT&shortKey=yDCHpURDfR6iEkdpsDde</td> <td>7天</td> </tr><tr> <td>QR_CODE</td> <td>https://dyn.test.ess.tencent.cn/imgs/qrcode_urls/authorization_enterprise_for_batch_submit/yDCHHUUckpbdauq9UEjnoFDCCumAMmv1.png</td> <td>7天</td> </tr> </tbody> </table>注: `1.创建的链接应避免被转义,如:&被转义为\u0026;如使用Postman请求后,请选择响应类型为 JSON,否则链接将被转义`
13499
+ :rtype: str
13500
+ """
13501
+ return self._AuthUrl
13502
+
13503
+ @AuthUrl.setter
13504
+ def AuthUrl(self, AuthUrl):
13505
+ self._AuthUrl = AuthUrl
13506
+
13507
+ @property
13508
+ def ErrorMessages(self):
13509
+ """认证流认证失败信息
13510
+ :rtype: list of str
13511
+ """
13512
+ return self._ErrorMessages
13513
+
13514
+ @ErrorMessages.setter
13515
+ def ErrorMessages(self, ErrorMessages):
13516
+ self._ErrorMessages = ErrorMessages
13517
+
13518
+ @property
13519
+ def ExpireTime(self):
13520
+ """链接过期时间,为 7 天后,创建时间,格式为Unix标准时间戳(秒)。
13521
+ :rtype: int
13522
+ """
13523
+ return self._ExpireTime
13524
+
13525
+ @ExpireTime.setter
13526
+ def ExpireTime(self, ExpireTime):
13527
+ self._ExpireTime = ExpireTime
13528
+
13529
+ @property
13530
+ def RequestId(self):
13531
+ """唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
13532
+ :rtype: str
13533
+ """
13534
+ return self._RequestId
13535
+
13536
+ @RequestId.setter
13537
+ def RequestId(self, RequestId):
13538
+ self._RequestId = RequestId
13539
+
13540
+
13541
+ def _deserialize(self, params):
13542
+ self._AuthUrl = params.get("AuthUrl")
13543
+ self._ErrorMessages = params.get("ErrorMessages")
13544
+ self._ExpireTime = params.get("ExpireTime")
13545
+ self._RequestId = params.get("RequestId")
13546
+
13547
+
13339
13548
  class CreateBatchOrganizationRegistrationTasksRequest(AbstractModel):
13340
13549
  """CreateBatchOrganizationRegistrationTasks请求参数结构体
13341
13550
 
@@ -2641,6 +2641,87 @@ class CheckCertificateDomainVerificationResponse(AbstractModel):
2641
2641
  self._RequestId = params.get("RequestId")
2642
2642
 
2643
2643
 
2644
+ class CheckCertificateExistRequest(AbstractModel):
2645
+ """CheckCertificateExist请求参数结构体
2646
+
2647
+ """
2648
+
2649
+ def __init__(self):
2650
+ r"""
2651
+ :param _CertificatePublicKey: 证书公钥内容, 包含证书链
2652
+ :type CertificatePublicKey: str
2653
+ """
2654
+ self._CertificatePublicKey = None
2655
+
2656
+ @property
2657
+ def CertificatePublicKey(self):
2658
+ """证书公钥内容, 包含证书链
2659
+ :rtype: str
2660
+ """
2661
+ return self._CertificatePublicKey
2662
+
2663
+ @CertificatePublicKey.setter
2664
+ def CertificatePublicKey(self, CertificatePublicKey):
2665
+ self._CertificatePublicKey = CertificatePublicKey
2666
+
2667
+
2668
+ def _deserialize(self, params):
2669
+ self._CertificatePublicKey = params.get("CertificatePublicKey")
2670
+ memeber_set = set(params.keys())
2671
+ for name, value in vars(self).items():
2672
+ property_name = name[1:]
2673
+ if property_name in memeber_set:
2674
+ memeber_set.remove(property_name)
2675
+ if len(memeber_set) > 0:
2676
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
2677
+
2678
+
2679
+
2680
+ class CheckCertificateExistResponse(AbstractModel):
2681
+ """CheckCertificateExist返回参数结构体
2682
+
2683
+ """
2684
+
2685
+ def __init__(self):
2686
+ r"""
2687
+ :param _RepeatCertId: 重复的证书ID
2688
+ 注意:此字段可能返回 null,表示取不到有效值。
2689
+ :type RepeatCertId: str
2690
+ :param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
2691
+ :type RequestId: str
2692
+ """
2693
+ self._RepeatCertId = None
2694
+ self._RequestId = None
2695
+
2696
+ @property
2697
+ def RepeatCertId(self):
2698
+ """重复的证书ID
2699
+ 注意:此字段可能返回 null,表示取不到有效值。
2700
+ :rtype: str
2701
+ """
2702
+ return self._RepeatCertId
2703
+
2704
+ @RepeatCertId.setter
2705
+ def RepeatCertId(self, RepeatCertId):
2706
+ self._RepeatCertId = RepeatCertId
2707
+
2708
+ @property
2709
+ def RequestId(self):
2710
+ """唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
2711
+ :rtype: str
2712
+ """
2713
+ return self._RequestId
2714
+
2715
+ @RequestId.setter
2716
+ def RequestId(self, RequestId):
2717
+ self._RequestId = RequestId
2718
+
2719
+
2720
+ def _deserialize(self, params):
2721
+ self._RepeatCertId = params.get("RepeatCertId")
2722
+ self._RequestId = params.get("RequestId")
2723
+
2724
+
2644
2725
  class ClbInstanceDetail(AbstractModel):
2645
2726
  """clb实例详情
2646
2727
 
@@ -141,6 +141,29 @@ class SslClient(AbstractClient):
141
141
  raise TencentCloudSDKException(type(e).__name__, str(e))
142
142
 
143
143
 
144
+ def CheckCertificateExist(self, request):
145
+ """根据证书内容检测当前账号下是否存在一致的证书, 存在则返回证书ID, 不存在则返回空
146
+
147
+ :param request: Request instance for CheckCertificateExist.
148
+ :type request: :class:`tencentcloud.ssl.v20191205.models.CheckCertificateExistRequest`
149
+ :rtype: :class:`tencentcloud.ssl.v20191205.models.CheckCertificateExistResponse`
150
+
151
+ """
152
+ try:
153
+ params = request._serialize()
154
+ headers = request.headers
155
+ body = self.call("CheckCertificateExist", params, headers=headers)
156
+ response = json.loads(body)
157
+ model = models.CheckCertificateExistResponse()
158
+ model._deserialize(response["Response"])
159
+ return model
160
+ except Exception as e:
161
+ if isinstance(e, TencentCloudSDKException):
162
+ raise
163
+ else:
164
+ raise TencentCloudSDKException(type(e).__name__, str(e))
165
+
166
+
144
167
  def CommitCertificateInformation(self, request):
145
168
  """提交证书订单到CA机构。
146
169
 
File without changes
File without changes
@@ -0,0 +1,36 @@
1
+ # -*- coding: utf8 -*-
2
+ # Copyright (c) 2017-2021 THL A29 Limited, a Tencent company. All Rights Reserved.
3
+ #
4
+ # Licensed under the Apache License, Version 2.0 (the "License");
5
+ # you may not use this file except in compliance with the License.
6
+ # You may obtain a copy of the License at
7
+ #
8
+ # http://www.apache.org/licenses/LICENSE-2.0
9
+ #
10
+ # Unless required by applicable law or agreed to in writing, software
11
+ # distributed under the License is distributed on an "AS IS" BASIS,
12
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ # See the License for the specific language governing permissions and
14
+ # limitations under the License.
15
+
16
+
17
+ # 操作失败。
18
+ FAILEDOPERATION = 'FailedOperation'
19
+
20
+ # 内部错误。
21
+ INTERNALERROR = 'InternalError'
22
+
23
+ # 参数错误。
24
+ INVALIDPARAMETER = 'InvalidParameter'
25
+
26
+ # 时间格式异常,仅支持:YYYY-mm-dd HH:MM:SS
27
+ INVALIDPARAMETER_INVALIDTIMEFORMAT = 'InvalidParameter.InvalidTimeFormat'
28
+
29
+ # 无效的时间,结束时间应大于起始时间
30
+ INVALIDPARAMETER_INVALIDTIMEPARAMETER = 'InvalidParameter.InvalidTimeParameter'
31
+
32
+ # 集群未处于运行状态
33
+ RESOURCEUNAVAILABLE_CLUSTERUNAVAILABLE = 'ResourceUnavailable.ClusterUnavailable'
34
+
35
+ # 该用户禁止当前操作
36
+ UNAUTHORIZEDOPERATION_USERNOTALLOWOPERATION = 'UnauthorizedOperation.UserNotAllowOperation'