tencentcloud-sdk-python 3.0.1316__py2.py3-none-any.whl → 3.0.1318__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.
Files changed (43) hide show
  1. tencentcloud/__init__.py +1 -1
  2. tencentcloud/antiddos/v20200309/models.py +2 -2
  3. tencentcloud/ccc/v20200210/models.py +4 -4
  4. tencentcloud/cdn/v20180606/errorcodes.py +3 -0
  5. tencentcloud/cdn/v20180606/models.py +10 -10
  6. tencentcloud/cls/v20201016/models.py +2 -2
  7. tencentcloud/common/abstract_client.py +37 -18
  8. tencentcloud/common/profile/client_profile.py +4 -3
  9. tencentcloud/common/retry.py +62 -0
  10. tencentcloud/cvm/v20170312/models.py +15 -0
  11. tencentcloud/emr/v20190103/models.py +16 -1
  12. tencentcloud/ess/v20201111/errorcodes.py +3 -0
  13. tencentcloud/ess/v20201111/ess_client.py +73 -0
  14. tencentcloud/ess/v20201111/models.py +695 -97
  15. tencentcloud/gme/v20180711/models.py +64 -26
  16. tencentcloud/hunyuan/v20230901/models.py +8 -16
  17. tencentcloud/lcic/v20220817/lcic_client.py +21 -1
  18. tencentcloud/lcic/v20220817/models.py +0 -24
  19. tencentcloud/lighthouse/v20200324/models.py +0 -10
  20. tencentcloud/lkeap/v20240522/lkeap_client.py +2 -1
  21. tencentcloud/lkeap/v20240522/models.py +826 -39
  22. tencentcloud/mongodb/v20190725/models.py +155 -0
  23. tencentcloud/mongodb/v20190725/mongodb_client.py +23 -0
  24. tencentcloud/mps/v20190612/models.py +60 -0
  25. tencentcloud/ocr/v20181119/models.py +42 -4
  26. tencentcloud/redis/v20180412/models.py +0 -40
  27. tencentcloud/rum/v20210622/models.py +16 -0
  28. tencentcloud/smop/v20201203/models.py +0 -34
  29. tencentcloud/ssl/v20191205/models.py +33 -21
  30. tencentcloud/teo/v20220901/models.py +2 -4
  31. tencentcloud/tke/v20180525/models.py +30 -0
  32. tencentcloud/vms/v20200902/models.py +0 -2
  33. tencentcloud/vpc/v20170312/errorcodes.py +42 -0
  34. tencentcloud/vpc/v20170312/models.py +1853 -53
  35. tencentcloud/vpc/v20170312/vpc_client.py +279 -1
  36. tencentcloud/waf/v20180125/models.py +30 -0
  37. tencentcloud/wedata/v20210820/models.py +331 -0
  38. tencentcloud/wedata/v20210820/wedata_client.py +23 -0
  39. {tencentcloud_sdk_python-3.0.1316.dist-info → tencentcloud_sdk_python-3.0.1318.dist-info}/METADATA +1 -1
  40. {tencentcloud_sdk_python-3.0.1316.dist-info → tencentcloud_sdk_python-3.0.1318.dist-info}/RECORD +43 -42
  41. {tencentcloud_sdk_python-3.0.1316.dist-info → tencentcloud_sdk_python-3.0.1318.dist-info}/LICENSE +0 -0
  42. {tencentcloud_sdk_python-3.0.1316.dist-info → tencentcloud_sdk_python-3.0.1318.dist-info}/WHEEL +0 -0
  43. {tencentcloud_sdk_python-3.0.1316.dist-info → tencentcloud_sdk_python-3.0.1318.dist-info}/top_level.txt +0 -0
tencentcloud/__init__.py CHANGED
@@ -14,4 +14,4 @@
14
14
  # limitations under the License.
15
15
 
16
16
 
17
- __version__ = '3.0.1316'
17
+ __version__ = '3.0.1318'
@@ -4214,7 +4214,7 @@ class CreateBoundIPRequest(AbstractModel):
4214
4214
  :type UnBoundDevList: list of BoundIpInfo
4215
4215
  :param _CopyPolicy: 已弃用,不填
4216
4216
  :type CopyPolicy: str
4217
- :param _FilterRegion: 如果该资源实例为域名化资产则,该参数必填
4217
+ :param _FilterRegion: 如果该资源实例为域名化资产以及跨地域绑定则,该参数必填
4218
4218
  :type FilterRegion: str
4219
4219
  """
4220
4220
  self._Business = None
@@ -4281,7 +4281,7 @@ class CreateBoundIPRequest(AbstractModel):
4281
4281
 
4282
4282
  @property
4283
4283
  def FilterRegion(self):
4284
- """如果该资源实例为域名化资产则,该参数必填
4284
+ """如果该资源实例为域名化资产以及跨地域绑定则,该参数必填
4285
4285
  :rtype: str
4286
4286
  """
4287
4287
  return self._FilterRegion
@@ -14247,7 +14247,7 @@ class TelCdrInfo(AbstractModel):
14247
14247
  电话呼出 210 notInService 不在服务区
14248
14248
 
14249
14249
  电话呼入&呼出 211 clientError 客户端错误
14250
-
14250
+ 电话呼出 212 carrierBlocked 运营商拦截
14251
14251
  :type EndStatus: int
14252
14252
  :param _SkillGroup: 技能组名称
14253
14253
  :type SkillGroup: str
@@ -14322,7 +14322,7 @@ class TelCdrInfo(AbstractModel):
14322
14322
  电话呼出 210 notInService 不在服务区
14323
14323
 
14324
14324
  电话呼入&呼出 211 clientError 客户端错误
14325
-
14325
+ 电话呼出 212 carrierBlocked 运营商拦截
14326
14326
  :type EndStatusString: str
14327
14327
  :param _StartTimestamp: 会话开始时间戳,UNIX 秒级时间戳
14328
14328
  :type StartTimestamp: int
@@ -14546,7 +14546,7 @@ NotExists
14546
14546
  电话呼出 210 notInService 不在服务区
14547
14547
 
14548
14548
  电话呼入&呼出 211 clientError 客户端错误
14549
-
14549
+ 电话呼出 212 carrierBlocked 运营商拦截
14550
14550
  :rtype: int
14551
14551
  """
14552
14552
  return self._EndStatus
@@ -14720,7 +14720,7 @@ NotExists
14720
14720
  电话呼出 210 notInService 不在服务区
14721
14721
 
14722
14722
  电话呼入&呼出 211 clientError 客户端错误
14723
-
14723
+ 电话呼出 212 carrierBlocked 运营商拦截
14724
14724
  :rtype: str
14725
14725
  """
14726
14726
  return self._EndStatusString
@@ -26,6 +26,9 @@ FAILEDOPERATION = 'FailedOperation'
26
26
  # 域名配置更新操作失败,请重试或联系客服人员解决。
27
27
  FAILEDOPERATION_CDNCONFIGERROR = 'FailedOperation.CdnConfigError'
28
28
 
29
+ # 证书不存在
30
+ FAILEDOPERATION_SSLCERTNOTFOUND = 'FailedOperation.SslCertNotFound'
31
+
29
32
  # 内部错误。
30
33
  INTERNALERROR = 'InternalError'
31
34
 
@@ -3959,7 +3959,7 @@ off:关闭
3959
3959
  :param _AccessKey: 访问ID。
3960
3960
  注意:此字段可能返回 null,表示取不到有效值。
3961
3961
  :type AccessKey: str
3962
- :param _SecretKey: 密钥。
3962
+ :param _SecretKey: 密钥,字段为脱敏返回。
3963
3963
  注意:此字段可能返回 null,表示取不到有效值。
3964
3964
  :type SecretKey: str
3965
3965
  :param _Region: 地域
@@ -4002,7 +4002,7 @@ off:关闭
4002
4002
 
4003
4003
  @property
4004
4004
  def SecretKey(self):
4005
- """密钥。
4005
+ """密钥,字段为脱敏返回。
4006
4006
  注意:此字段可能返回 null,表示取不到有效值。
4007
4007
  :rtype: str
4008
4008
  """
@@ -20416,7 +20416,7 @@ off:关闭
20416
20416
  :param _AccessKey: 访问 ID
20417
20417
  注意:此字段可能返回 null,表示取不到有效值。
20418
20418
  :type AccessKey: str
20419
- :param _SecretKey: 密钥
20419
+ :param _SecretKey: 密钥,字段为脱敏返回。
20420
20420
  注意:此字段可能返回 null,表示取不到有效值。
20421
20421
  :type SecretKey: str
20422
20422
  :param _Bucket: bucketname
@@ -20455,7 +20455,7 @@ off:关闭
20455
20455
 
20456
20456
  @property
20457
20457
  def SecretKey(self):
20458
- """密钥
20458
+ """密钥,字段为脱敏返回。
20459
20459
  注意:此字段可能返回 null,表示取不到有效值。
20460
20460
  :rtype: str
20461
20461
  """
@@ -25597,7 +25597,7 @@ off:关闭
25597
25597
  :param _AccessKey: 访问ID。
25598
25598
  注意:此字段可能返回 null,表示取不到有效值。
25599
25599
  :type AccessKey: str
25600
- :param _SecretKey: 密钥。
25600
+ :param _SecretKey: 密钥,字段为脱敏返回。
25601
25601
  注意:此字段可能返回 null,表示取不到有效值。
25602
25602
  :type SecretKey: str
25603
25603
  :param _Region: 地域
@@ -25640,7 +25640,7 @@ off:关闭
25640
25640
 
25641
25641
  @property
25642
25642
  def SecretKey(self):
25643
- """密钥。
25643
+ """密钥,字段为脱敏返回。
25644
25644
  注意:此字段可能返回 null,表示取不到有效值。
25645
25645
  :rtype: str
25646
25646
  """
@@ -25705,7 +25705,7 @@ off:关闭
25705
25705
  :param _AccessKey: 访问ID。
25706
25706
  注意:此字段可能返回 null,表示取不到有效值。
25707
25707
  :type AccessKey: str
25708
- :param _SecretKey: 密钥。
25708
+ :param _SecretKey: 密钥,字段位脱敏返回。
25709
25709
  注意:此字段可能返回 null,表示取不到有效值。
25710
25710
  :type SecretKey: str
25711
25711
  :param _Region: 地域。
@@ -25748,7 +25748,7 @@ off:关闭
25748
25748
 
25749
25749
  @property
25750
25750
  def SecretKey(self):
25751
- """密钥。
25751
+ """密钥,字段位脱敏返回。
25752
25752
  注意:此字段可能返回 null,表示取不到有效值。
25753
25753
  :rtype: str
25754
25754
  """
@@ -27550,7 +27550,7 @@ off:关闭
27550
27550
  :param _AccessKey: 访问 ID
27551
27551
  注意:此字段可能返回 null,表示取不到有效值。
27552
27552
  :type AccessKey: str
27553
- :param _SecretKey: 密钥
27553
+ :param _SecretKey: 密钥,字段为脱敏返回。
27554
27554
  :type SecretKey: str
27555
27555
  """
27556
27556
  self._Switch = None
@@ -27584,7 +27584,7 @@ off:关闭
27584
27584
 
27585
27585
  @property
27586
27586
  def SecretKey(self):
27587
- """密钥
27587
+ """密钥,字段为脱敏返回。
27588
27588
  :rtype: str
27589
27589
  """
27590
27590
  return self._SecretKey
@@ -25854,7 +25854,7 @@ class NoticeReceiver(AbstractModel):
25854
25854
  :type ReceiverType: str
25855
25855
  :param _ReceiverIds: 接收者。
25856
25856
  当ReceiverType为Uin时,ReceiverIds的值为用户uid。[子用户信息查询](https://cloud.tencent.com/document/api/598/53486)
25857
- 当ReceiverType为Group时,ReceiverIds的值为用户组id。[CAM用户组](https://cloud.tencent.com/document/product/598/14985)
25857
+ 当ReceiverType为Group时,ReceiverIds的值为用户组id。[CAM用户组](https://cloud.tencent.com/document/product/598/34589)
25858
25858
  :type ReceiverIds: list of int
25859
25859
  :param _ReceiverChannels: 通知接收渠道。
25860
25860
  - Email - 邮件
@@ -25901,7 +25901,7 @@ class NoticeReceiver(AbstractModel):
25901
25901
  def ReceiverIds(self):
25902
25902
  """接收者。
25903
25903
  当ReceiverType为Uin时,ReceiverIds的值为用户uid。[子用户信息查询](https://cloud.tencent.com/document/api/598/53486)
25904
- 当ReceiverType为Group时,ReceiverIds的值为用户组id。[CAM用户组](https://cloud.tencent.com/document/product/598/14985)
25904
+ 当ReceiverType为Group时,ReceiverIds的值为用户组id。[CAM用户组](https://cloud.tencent.com/document/product/598/34589)
25905
25905
  :rtype: list of int
25906
25906
  """
25907
25907
  return self._ReceiverIds
@@ -39,6 +39,7 @@ from tencentcloud.common.http.request import RequestInternal
39
39
  from tencentcloud.common.profile.client_profile import ClientProfile, RegionBreakerProfile
40
40
  from tencentcloud.common.sign import Sign
41
41
  from tencentcloud.common.circuit_breaker import CircuitBreaker
42
+ from tencentcloud.common.retry import NoopRetryer
42
43
 
43
44
  warnings.filterwarnings("ignore", module="tencentcloud", category=UserWarning)
44
45
 
@@ -428,11 +429,16 @@ class AbstractClient(object):
428
429
  return self.request.send_request(req)
429
430
 
430
431
  def call(self, action, params, options=None, headers=None):
431
- resp = self._call(action, params, options, headers)
432
- self._check_status(resp)
433
- self._check_error(resp)
434
- logger.debug("GetResponse: %s", ResponsePrettyFormatter(resp))
435
- return resp.content
432
+
433
+ def _call_once():
434
+ resp = self._call(action, params, options, headers)
435
+ self._check_status(resp)
436
+ self._check_error(resp)
437
+ logger.debug("GetResponse: %s", ResponsePrettyFormatter(resp))
438
+ return resp
439
+
440
+ retryer = self.profile.retryer or NoopRetryer()
441
+ return retryer.send_request(_call_once).content
436
442
 
437
443
  def _call_with_region_breaker(self, action, params, options=None, headers=None):
438
444
  endpoint = self._get_endpoint()
@@ -508,23 +514,36 @@ class AbstractClient(object):
508
514
  :type options: dict
509
515
  :param options: request options, like {"SkipSign": False, "IsMultipart": False, "IsOctetStream": False, "BinaryParams": []}
510
516
  """
511
- resp = self._call(action, params, options, headers)
512
- self._check_status(resp)
513
- self._check_error(resp)
514
- logger.debug("GetResponse: %s", ResponsePrettyFormatter(resp))
515
- return json.loads(resp.content)
517
+
518
+ def _call_once():
519
+ resp = self._call(action, params, options, headers)
520
+ self._check_status(resp)
521
+ self._check_error(resp)
522
+ logger.debug("GetResponse: %s", ResponsePrettyFormatter(resp))
523
+ return resp
524
+
525
+ retryer = self.profile.retryer or NoopRetryer()
526
+ return json.loads(retryer.send_request(_call_once).content)
516
527
 
517
528
  def call_sse(self, action, params, headers=None, options=None):
518
- resp = self._call(action, params, options, headers)
519
- self._check_status(resp)
520
- self._check_error(resp)
521
- return self._process_response_sse(resp)
529
+ def _call_once():
530
+ resp = self._call(action, params, options, headers)
531
+ self._check_status(resp)
532
+ self._check_error(resp)
533
+ return resp
534
+
535
+ retryer = self.profile.retryer or NoopRetryer()
536
+ return self._process_response_sse(retryer.send_request(_call_once))
522
537
 
523
538
  def _call_and_deserialize(self, action, params, resp_type, headers=None, options=None):
524
- resp = self._call(action, params, options, headers)
525
- self._check_status(resp)
526
- self._check_error(resp)
527
- return self._process_response(resp, resp_type)
539
+ def _call_once():
540
+ resp = self._call(action, params, options, headers)
541
+ self._check_status(resp)
542
+ self._check_error(resp)
543
+ return resp
544
+
545
+ retryer = self.profile.retryer or NoopRetryer()
546
+ return self._process_response(retryer.send_request(_call_once), resp_type)
528
547
 
529
548
  def _process_response(self, resp, resp_type):
530
549
  if resp.headers.get('Content-Type') == "text/event-stream":
@@ -21,7 +21,7 @@ class ClientProfile(object):
21
21
  unsignedPayload = False
22
22
 
23
23
  def __init__(self, signMethod=None, httpProfile=None, language="zh-CN",
24
- disable_region_breaker=True, region_breaker_profile=None, request_client=None):
24
+ disable_region_breaker=True, region_breaker_profile=None, request_client=None, retryer=None):
25
25
  """SDK profile.
26
26
 
27
27
  :param signMethod: The signature method, valid choice: HmacSHA1, HmacSHA256, TC3-HMAC-SHA256
@@ -55,13 +55,15 @@ class ClientProfile(object):
55
55
  elif request_client is not None:
56
56
  warnings.warn("RequestClient not match the regexp: ^[0-9a-zA-Z-_,;.]+$, ignored")
57
57
 
58
+ self.retryer = retryer
59
+
58
60
 
59
61
  class RegionBreakerProfile(object):
60
62
 
61
63
  def __init__(self, backup_endpoint="ap-guangzhou.tencentcloudapi.com",
62
64
  max_fail_num=5,
63
65
  max_fail_percent=0.75,
64
- window_interval=60*5,
66
+ window_interval=60 * 5,
65
67
  timeout=60,
66
68
  max_requests=5):
67
69
  """RegionBreaker profile.
@@ -102,4 +104,3 @@ class RegionBreakerProfile(object):
102
104
  if len(region.split("-")) != 2:
103
105
  return False
104
106
  return True
105
-
@@ -0,0 +1,62 @@
1
+ import logging
2
+ import time
3
+
4
+ from tencentcloud.common.exception import TencentCloudSDKException
5
+
6
+
7
+ class NoopRetryer(object):
8
+ def send_request(self, fn):
9
+ return fn()
10
+
11
+
12
+ class StandardRetryer(object):
13
+ def __init__(self, max_attempts=3, backoff_fn=None, logger=None):
14
+ self._max_attempts = max_attempts
15
+ self._backoff_fn = backoff_fn or self.backoff
16
+ self._logger = logger
17
+
18
+ def send_request(self, fn):
19
+ resp = None
20
+ err = None
21
+
22
+ for n in range(self._max_attempts):
23
+ try:
24
+ resp = fn()
25
+ except TencentCloudSDKException as e:
26
+ err = e
27
+
28
+ if not self.should_retry(resp, err):
29
+ if err:
30
+ raise err
31
+ return resp
32
+
33
+ sleep = self._backoff_fn(n)
34
+ self.on_retry(n, sleep, resp, err)
35
+ time.sleep(sleep)
36
+
37
+ raise err
38
+
39
+ @staticmethod
40
+ def should_retry(resp, err):
41
+ if not err:
42
+ return False
43
+
44
+ if not isinstance(err, TencentCloudSDKException):
45
+ return False
46
+
47
+ ec = err.get_code()
48
+ if ec in (
49
+ "ClientNetworkError", "ServerNetworkError", "RequestLimitExceeded",
50
+ "RequestLimitExceeded.UinLimitExceeded", "RequestLimitExceeded.GlobalRegionUinLimitExceeded"
51
+ ):
52
+ return True
53
+
54
+ return False
55
+
56
+ @staticmethod
57
+ def backoff(n):
58
+ return 2 ** n
59
+
60
+ def on_retry(self, n, sleep, resp, err):
61
+ if self._logger:
62
+ self._logger.debug("retry: n=%d sleep=%ss err=%s", n, sleep, err)
@@ -10528,11 +10528,25 @@ class ImportImageResponse(AbstractModel):
10528
10528
 
10529
10529
  def __init__(self):
10530
10530
  r"""
10531
+ :param _ImageId: 镜像 ID
10532
+ :type ImageId: str
10531
10533
  :param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
10532
10534
  :type RequestId: str
10533
10535
  """
10536
+ self._ImageId = None
10534
10537
  self._RequestId = None
10535
10538
 
10539
+ @property
10540
+ def ImageId(self):
10541
+ """镜像 ID
10542
+ :rtype: str
10543
+ """
10544
+ return self._ImageId
10545
+
10546
+ @ImageId.setter
10547
+ def ImageId(self, ImageId):
10548
+ self._ImageId = ImageId
10549
+
10536
10550
  @property
10537
10551
  def RequestId(self):
10538
10552
  """唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
@@ -10546,6 +10560,7 @@ class ImportImageResponse(AbstractModel):
10546
10560
 
10547
10561
 
10548
10562
  def _deserialize(self, params):
10563
+ self._ImageId = params.get("ImageId")
10549
10564
  self._RequestId = params.get("RequestId")
10550
10565
 
10551
10566
 
@@ -27187,7 +27187,7 @@ class RunJobFlowResponse(AbstractModel):
27187
27187
 
27188
27188
 
27189
27189
  class SLInstanceInfo(AbstractModel):
27190
- """Serverless HBase 实例信息
27190
+ """Serverless HBase实例信息
27191
27191
 
27192
27192
  """
27193
27193
 
@@ -27199,6 +27199,8 @@ class SLInstanceInfo(AbstractModel):
27199
27199
  :type Id: int
27200
27200
  :param _StatusDesc: 状态描述
27201
27201
  :type StatusDesc: str
27202
+ :param _HealthStatus: 健康状态
27203
+ :type HealthStatus: str
27202
27204
  :param _ClusterName: 实例名称
27203
27205
  :type ClusterName: str
27204
27206
  :param _RegionId: 地域ID
@@ -27235,6 +27237,7 @@ class SLInstanceInfo(AbstractModel):
27235
27237
  self._ClusterId = None
27236
27238
  self._Id = None
27237
27239
  self._StatusDesc = None
27240
+ self._HealthStatus = None
27238
27241
  self._ClusterName = None
27239
27242
  self._RegionId = None
27240
27243
  self._ZoneId = None
@@ -27284,6 +27287,17 @@ class SLInstanceInfo(AbstractModel):
27284
27287
  def StatusDesc(self, StatusDesc):
27285
27288
  self._StatusDesc = StatusDesc
27286
27289
 
27290
+ @property
27291
+ def HealthStatus(self):
27292
+ """健康状态
27293
+ :rtype: str
27294
+ """
27295
+ return self._HealthStatus
27296
+
27297
+ @HealthStatus.setter
27298
+ def HealthStatus(self, HealthStatus):
27299
+ self._HealthStatus = HealthStatus
27300
+
27287
27301
  @property
27288
27302
  def ClusterName(self):
27289
27303
  """实例名称
@@ -27456,6 +27470,7 @@ class SLInstanceInfo(AbstractModel):
27456
27470
  self._ClusterId = params.get("ClusterId")
27457
27471
  self._Id = params.get("Id")
27458
27472
  self._StatusDesc = params.get("StatusDesc")
27473
+ self._HealthStatus = params.get("HealthStatus")
27459
27474
  self._ClusterName = params.get("ClusterName")
27460
27475
  self._RegionId = params.get("RegionId")
27461
27476
  self._ZoneId = params.get("ZoneId")
@@ -23,6 +23,9 @@ FAILEDOPERATION = 'FailedOperation'
23
23
  # 年龄限制无法使用电子签服务,请联系客服咨询处理。
24
24
  FAILEDOPERATION_AGENOTACHIEVENORMALLEGAL = 'FailedOperation.AgeNotAchieveNormalLegal'
25
25
 
26
+ # 套餐余额不足。
27
+ FAILEDOPERATION_BALANCENOTENOUGH = 'FailedOperation.BalanceNotEnough'
28
+
26
29
  # 签署流程已有关联文档,请检查参数修改后重试。
27
30
  FAILEDOPERATION_FLOWHASDOCUMENT = 'FailedOperation.FlowHasDocument'
28
31
 
@@ -600,6 +600,31 @@ class EssClient(AbstractClient):
600
600
  raise TencentCloudSDKException(type(e).__name__, str(e))
601
601
 
602
602
 
603
+ def CreateFileCounterSign(self, request):
604
+ """此接口用于发起数字文件CA加签操作。可以使用同步或者异步模式进行。
605
+
606
+ **注意: 1. 文件类型暂时仅支持PDF类型文件。2. 此接口为『数字文件CA加签服务』白名单功能,使用前请联系对接的客户经理沟通。**
607
+
608
+ :param request: Request instance for CreateFileCounterSign.
609
+ :type request: :class:`tencentcloud.ess.v20201111.models.CreateFileCounterSignRequest`
610
+ :rtype: :class:`tencentcloud.ess.v20201111.models.CreateFileCounterSignResponse`
611
+
612
+ """
613
+ try:
614
+ params = request._serialize()
615
+ headers = request.headers
616
+ body = self.call("CreateFileCounterSign", params, headers=headers)
617
+ response = json.loads(body)
618
+ model = models.CreateFileCounterSignResponse()
619
+ model._deserialize(response["Response"])
620
+ return model
621
+ except Exception as e:
622
+ if isinstance(e, TencentCloudSDKException):
623
+ raise
624
+ else:
625
+ raise TencentCloudSDKException(type(e).__name__, str(e))
626
+
627
+
603
628
  def CreateFlow(self, request):
604
629
  """通过模板创建签署流程<br/>
605
630
  适用场景:在标准制式的合同场景中,可通过提前预制好模板文件,每次调用模板文件的id,补充合同内容信息及签署信息生成电子合同。
@@ -2210,6 +2235,31 @@ class EssClient(AbstractClient):
2210
2235
  raise TencentCloudSDKException(type(e).__name__, str(e))
2211
2236
 
2212
2237
 
2238
+ def DescribeFileCounterSignResult(self, request):
2239
+ """文件CA加签任务结果查询接口,用于查询 CreateFileCounterSign接口 发起的异步加签任务。
2240
+
2241
+ 注意:`此接口为『数字文件CA加签服务』白名单功能,使用前请联系对接的客户经理沟通。`
2242
+
2243
+ :param request: Request instance for DescribeFileCounterSignResult.
2244
+ :type request: :class:`tencentcloud.ess.v20201111.models.DescribeFileCounterSignResultRequest`
2245
+ :rtype: :class:`tencentcloud.ess.v20201111.models.DescribeFileCounterSignResultResponse`
2246
+
2247
+ """
2248
+ try:
2249
+ params = request._serialize()
2250
+ headers = request.headers
2251
+ body = self.call("DescribeFileCounterSignResult", params, headers=headers)
2252
+ response = json.loads(body)
2253
+ model = models.DescribeFileCounterSignResultResponse()
2254
+ model._deserialize(response["Response"])
2255
+ return model
2256
+ except Exception as e:
2257
+ if isinstance(e, TencentCloudSDKException):
2258
+ raise
2259
+ else:
2260
+ raise TencentCloudSDKException(type(e).__name__, str(e))
2261
+
2262
+
2213
2263
  def DescribeFileUrls(self, request):
2214
2264
  """本接口(DescribeFileUrls)用于查询文件的下载URL。
2215
2265
  适用场景:通过传参合同流程编号,下载对应的合同PDF文件流到本地。
@@ -3102,6 +3152,29 @@ class EssClient(AbstractClient):
3102
3152
  raise TencentCloudSDKException(type(e).__name__, str(e))
3103
3153
 
3104
3154
 
3155
+ def VerifyDigitFile(self, request):
3156
+ """对加签后的文件进行数字签名验证,判断数字签名是否有效。
3157
+
3158
+ :param request: Request instance for VerifyDigitFile.
3159
+ :type request: :class:`tencentcloud.ess.v20201111.models.VerifyDigitFileRequest`
3160
+ :rtype: :class:`tencentcloud.ess.v20201111.models.VerifyDigitFileResponse`
3161
+
3162
+ """
3163
+ try:
3164
+ params = request._serialize()
3165
+ headers = request.headers
3166
+ body = self.call("VerifyDigitFile", params, headers=headers)
3167
+ response = json.loads(body)
3168
+ model = models.VerifyDigitFileResponse()
3169
+ model._deserialize(response["Response"])
3170
+ return model
3171
+ except Exception as e:
3172
+ if isinstance(e, TencentCloudSDKException):
3173
+ raise
3174
+ else:
3175
+ raise TencentCloudSDKException(type(e).__name__, str(e))
3176
+
3177
+
3105
3178
  def VerifyPdf(self, request):
3106
3179
  """对合同流程文件进行数字签名验证,判断数字签名是否有效,合同文件内容是否被篡改。
3107
3180