tencentcloud-sdk-python 3.0.1435__py2.py3-none-any.whl → 3.0.1437__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.

Potentially problematic release.


This version of tencentcloud-sdk-python might be problematic. Click here for more details.

Files changed (44) hide show
  1. tencentcloud/__init__.py +1 -1
  2. tencentcloud/autoscaling/v20180419/models.py +2 -2
  3. tencentcloud/cdn/v20180606/cdn_client.py +0 -575
  4. tencentcloud/cdn/v20180606/errorcodes.py +0 -48
  5. tencentcloud/cdn/v20180606/models.py +12881 -21511
  6. tencentcloud/cfs/v20190719/models.py +16 -18
  7. tencentcloud/cls/v20201016/models.py +46 -20
  8. tencentcloud/dlc/v20210125/dlc_client.py +529 -0
  9. tencentcloud/dlc/v20210125/errorcodes.py +30 -0
  10. tencentcloud/dlc/v20210125/models.py +7909 -2612
  11. tencentcloud/emr/v20190103/models.py +2 -2
  12. tencentcloud/es/v20250101/models.py +70 -0
  13. tencentcloud/ess/v20201111/ess_client.py +55 -3
  14. tencentcloud/ess/v20201111/models.py +686 -2
  15. tencentcloud/hunyuan/v20230901/errorcodes.py +0 -27
  16. tencentcloud/hunyuan/v20230901/hunyuan_client.py +0 -46
  17. tencentcloud/hunyuan/v20230901/models.py +0 -357
  18. tencentcloud/lke/v20231130/models.py +86 -0
  19. tencentcloud/mongodb/v20190725/errorcodes.py +3 -0
  20. tencentcloud/mongodb/v20190725/mongodb_client.py +1 -1
  21. tencentcloud/mps/v20190612/models.py +24 -8
  22. tencentcloud/mqtt/v20240516/models.py +150 -0
  23. tencentcloud/ocr/v20181119/models.py +90 -4
  24. tencentcloud/partners/v20180321/partners_client.py +2 -1
  25. tencentcloud/postgres/v20170312/models.py +28 -24
  26. tencentcloud/postgres/v20170312/postgres_client.py +2 -2
  27. tencentcloud/sqlserver/v20180328/models.py +2 -2
  28. tencentcloud/sqlserver/v20180328/sqlserver_client.py +1 -1
  29. tencentcloud/ssl/v20191205/models.py +6 -6
  30. tencentcloud/tcbr/v20220217/models.py +266 -4
  31. tencentcloud/tcr/v20190924/models.py +2 -2
  32. tencentcloud/teo/v20220901/errorcodes.py +24 -0
  33. tencentcloud/teo/v20220901/models.py +3469 -441
  34. tencentcloud/teo/v20220901/teo_client.py +469 -2
  35. tencentcloud/tione/v20211111/models.py +15 -0
  36. tencentcloud/trtc/v20190722/models.py +70 -6
  37. tencentcloud/waf/v20180125/models.py +1029 -151
  38. tencentcloud/waf/v20180125/waf_client.py +92 -0
  39. tencentcloud/wsa/v20250508/models.py +22 -4
  40. {tencentcloud_sdk_python-3.0.1435.dist-info → tencentcloud_sdk_python-3.0.1437.dist-info}/METADATA +1 -1
  41. {tencentcloud_sdk_python-3.0.1435.dist-info → tencentcloud_sdk_python-3.0.1437.dist-info}/RECORD +44 -44
  42. {tencentcloud_sdk_python-3.0.1435.dist-info → tencentcloud_sdk_python-3.0.1437.dist-info}/LICENSE +0 -0
  43. {tencentcloud_sdk_python-3.0.1435.dist-info → tencentcloud_sdk_python-3.0.1437.dist-info}/WHEEL +0 -0
  44. {tencentcloud_sdk_python-3.0.1435.dist-info → tencentcloud_sdk_python-3.0.1437.dist-info}/top_level.txt +0 -0
@@ -44,9 +44,6 @@ FAILEDOPERATION_IMAGEDECODEFAILED = 'FailedOperation.ImageDecodeFailed'
44
44
  # LogoUrl 或 LogoImage 有误,水印图下载失败。
45
45
  FAILEDOPERATION_IMAGEDOWNLOADERROR = 'FailedOperation.ImageDownloadError'
46
46
 
47
- # 任务不存在。
48
- FAILEDOPERATION_JOBNOTFOUND = 'FailedOperation.JobNotFound'
49
-
50
47
  # 合作伙伴账号不允许开通,请更换账号。
51
48
  FAILEDOPERATION_PARTNERACCOUNTUNSUPPORT = 'FailedOperation.PartnerAccountUnSupport'
52
49
 
@@ -80,24 +77,12 @@ INVALIDPARAMETER_INVALIDPARAMETER = 'InvalidParameter.InvalidParameter'
80
77
  # 参数取值错误。
81
78
  INVALIDPARAMETERVALUE = 'InvalidParameterValue'
82
79
 
83
- # 不支持的图片格式。
84
- INVALIDPARAMETERVALUE_INVALIDIMAGEFORMAT = 'InvalidParameterValue.InvalidImageFormat'
85
-
86
- # 不支持的图片分辨率。
87
- INVALIDPARAMETERVALUE_INVALIDIMAGERESOLUTION = 'InvalidParameterValue.InvalidImageResolution'
88
-
89
- # 图片大小超出限制。
90
- INVALIDPARAMETERVALUE_INVALIDIMAGESIZE = 'InvalidParameterValue.InvalidImageSize'
91
-
92
80
  # 模型不存在。
93
81
  INVALIDPARAMETERVALUE_MODEL = 'InvalidParameterValue.Model'
94
82
 
95
83
  # 参数字段或者值有误
96
84
  INVALIDPARAMETERVALUE_PARAMETERVALUEERROR = 'InvalidParameterValue.ParameterValueError'
97
85
 
98
- # URL格式不合法。
99
- INVALIDPARAMETERVALUE_URLILLEGAL = 'InvalidParameterValue.UrlIllegal'
100
-
101
86
  # 超过配额限制。
102
87
  LIMITEXCEEDED = 'LimitExceeded'
103
88
 
@@ -107,21 +92,9 @@ OPERATIONDENIED_IMAGEILLEGALDETECTED = 'OperationDenied.ImageIllegalDetected'
107
92
  # 文本包含违法违规信息,审核不通过。
108
93
  OPERATIONDENIED_TEXTILLEGALDETECTED = 'OperationDenied.TextIllegalDetected'
109
94
 
110
- # 同时处理的任务数过多,请稍后重试。
111
- REQUESTLIMITEXCEEDED_JOBNUMEXCEED = 'RequestLimitExceeded.JobNumExceed'
112
-
113
- # 资源不足。
114
- RESOURCEINSUFFICIENT = 'ResourceInsufficient'
115
-
116
95
  # 计费资源已耗尽。
117
96
  RESOURCEINSUFFICIENT_CHARGERESOURCEEXHAUST = 'ResourceInsufficient.ChargeResourceExhaust'
118
97
 
119
- # 资源不存在。
120
- RESOURCENOTFOUND = 'ResourceNotFound'
121
-
122
- # 资源不可用。
123
- RESOURCEUNAVAILABLE = 'ResourceUnavailable'
124
-
125
98
  # 账号已欠费。
126
99
  RESOURCEUNAVAILABLE_INARREARS = 'ResourceUnavailable.InArrears'
127
100
 
@@ -392,29 +392,6 @@ class HunyuanClient(AbstractClient):
392
392
  raise TencentCloudSDKException(type(e).__name__, str(e))
393
393
 
394
394
 
395
- def QueryHunyuanTo3DJob(self, request):
396
- """查询混元生3D任务
397
-
398
- :param request: Request instance for QueryHunyuanTo3DJob.
399
- :type request: :class:`tencentcloud.hunyuan.v20230901.models.QueryHunyuanTo3DJobRequest`
400
- :rtype: :class:`tencentcloud.hunyuan.v20230901.models.QueryHunyuanTo3DJobResponse`
401
-
402
- """
403
- try:
404
- params = request._serialize()
405
- headers = request.headers
406
- body = self.call("QueryHunyuanTo3DJob", params, headers=headers)
407
- response = json.loads(body)
408
- model = models.QueryHunyuanTo3DJobResponse()
409
- model._deserialize(response["Response"])
410
- return model
411
- except Exception as e:
412
- if isinstance(e, TencentCloudSDKException):
413
- raise
414
- else:
415
- raise TencentCloudSDKException(type(e).__name__, str(e))
416
-
417
-
418
395
  def RunThread(self, request):
419
396
  """腾讯混元大模型是由腾讯研发的大语言模型,具备强大的中文创作能力,复杂语境下的逻辑推理能力,以及可靠的任务执行能力。本接口支持流式或非流式调用,当使用流式调用时为 SSE 协议。
420
397
 
@@ -513,29 +490,6 @@ class HunyuanClient(AbstractClient):
513
490
  raise TencentCloudSDKException(type(e).__name__, str(e))
514
491
 
515
492
 
516
- def SubmitHunyuanTo3DJob(self, request):
517
- """提交混元生3D任务
518
-
519
- :param request: Request instance for SubmitHunyuanTo3DJob.
520
- :type request: :class:`tencentcloud.hunyuan.v20230901.models.SubmitHunyuanTo3DJobRequest`
521
- :rtype: :class:`tencentcloud.hunyuan.v20230901.models.SubmitHunyuanTo3DJobResponse`
522
-
523
- """
524
- try:
525
- params = request._serialize()
526
- headers = request.headers
527
- body = self.call("SubmitHunyuanTo3DJob", params, headers=headers)
528
- response = json.loads(body)
529
- model = models.SubmitHunyuanTo3DJobResponse()
530
- model._deserialize(response["Response"])
531
- return model
532
- except Exception as e:
533
- if isinstance(e, TencentCloudSDKException):
534
- raise
535
- else:
536
- raise TencentCloudSDKException(type(e).__name__, str(e))
537
-
538
-
539
493
  def TextToImageLite(self, request):
540
494
  """文生图轻量版接口根据输入的文本描述,智能生成与之相关的结果图。
541
495
  文生图轻量版默认提供3个并发任务数,代表最多能同时处理3个已提交的任务,上一个任务处理完毕后才能开始处理下一个任务。
@@ -1812,98 +1812,6 @@ class ErrorMsg(AbstractModel):
1812
1812
 
1813
1813
 
1814
1814
 
1815
- class File3D(AbstractModel):
1816
- """3D文件
1817
-
1818
- """
1819
-
1820
- def __init__(self):
1821
- r"""
1822
- :param _Type: 3D文件的格式。取值范围:GIF, OBJ
1823
- :type Type: str
1824
- :param _Url: 文件的Url(有效期24小时)
1825
- :type Url: str
1826
- """
1827
- self._Type = None
1828
- self._Url = None
1829
-
1830
- @property
1831
- def Type(self):
1832
- """3D文件的格式。取值范围:GIF, OBJ
1833
- :rtype: str
1834
- """
1835
- return self._Type
1836
-
1837
- @Type.setter
1838
- def Type(self, Type):
1839
- self._Type = Type
1840
-
1841
- @property
1842
- def Url(self):
1843
- """文件的Url(有效期24小时)
1844
- :rtype: str
1845
- """
1846
- return self._Url
1847
-
1848
- @Url.setter
1849
- def Url(self, Url):
1850
- self._Url = Url
1851
-
1852
-
1853
- def _deserialize(self, params):
1854
- self._Type = params.get("Type")
1855
- self._Url = params.get("Url")
1856
- memeber_set = set(params.keys())
1857
- for name, value in vars(self).items():
1858
- property_name = name[1:]
1859
- if property_name in memeber_set:
1860
- memeber_set.remove(property_name)
1861
- if len(memeber_set) > 0:
1862
- warnings.warn("%s fileds are useless." % ",".join(memeber_set))
1863
-
1864
-
1865
-
1866
- class File3Ds(AbstractModel):
1867
- """3D文件列表
1868
-
1869
- """
1870
-
1871
- def __init__(self):
1872
- r"""
1873
- :param _File3D: 3D文件列表
1874
- :type File3D: list of File3D
1875
- """
1876
- self._File3D = None
1877
-
1878
- @property
1879
- def File3D(self):
1880
- """3D文件列表
1881
- :rtype: list of File3D
1882
- """
1883
- return self._File3D
1884
-
1885
- @File3D.setter
1886
- def File3D(self, File3D):
1887
- self._File3D = File3D
1888
-
1889
-
1890
- def _deserialize(self, params):
1891
- if params.get("File3D") is not None:
1892
- self._File3D = []
1893
- for item in params.get("File3D"):
1894
- obj = File3D()
1895
- obj._deserialize(item)
1896
- self._File3D.append(obj)
1897
- memeber_set = set(params.keys())
1898
- for name, value in vars(self).items():
1899
- property_name = name[1:]
1900
- if property_name in memeber_set:
1901
- memeber_set.remove(property_name)
1902
- if len(memeber_set) > 0:
1903
- warnings.warn("%s fileds are useless." % ",".join(memeber_set))
1904
-
1905
-
1906
-
1907
1815
  class FileObject(AbstractModel):
1908
1816
  """已上传的文件对象。
1909
1817
 
@@ -5362,135 +5270,6 @@ class QueryHunyuanImageJobResponse(AbstractModel):
5362
5270
  self._RequestId = params.get("RequestId")
5363
5271
 
5364
5272
 
5365
- class QueryHunyuanTo3DJobRequest(AbstractModel):
5366
- """QueryHunyuanTo3DJob请求参数结构体
5367
-
5368
- """
5369
-
5370
- def __init__(self):
5371
- r"""
5372
- :param _JobId: 任务ID
5373
- :type JobId: str
5374
- """
5375
- self._JobId = None
5376
-
5377
- @property
5378
- def JobId(self):
5379
- """任务ID
5380
- :rtype: str
5381
- """
5382
- return self._JobId
5383
-
5384
- @JobId.setter
5385
- def JobId(self, JobId):
5386
- self._JobId = JobId
5387
-
5388
-
5389
- def _deserialize(self, params):
5390
- self._JobId = params.get("JobId")
5391
- memeber_set = set(params.keys())
5392
- for name, value in vars(self).items():
5393
- property_name = name[1:]
5394
- if property_name in memeber_set:
5395
- memeber_set.remove(property_name)
5396
- if len(memeber_set) > 0:
5397
- warnings.warn("%s fileds are useless." % ",".join(memeber_set))
5398
-
5399
-
5400
-
5401
- class QueryHunyuanTo3DJobResponse(AbstractModel):
5402
- """QueryHunyuanTo3DJob返回参数结构体
5403
-
5404
- """
5405
-
5406
- def __init__(self):
5407
- r"""
5408
- :param _Status: 任务状态。WAIT:等待中,RUN:执行中,FAIL:任务失败,DONE:任务成功
5409
- :type Status: str
5410
- :param _ResultFile3Ds: 生成的3D文件数组
5411
- :type ResultFile3Ds: list of File3Ds
5412
- :param _ErrorCode: 错误码
5413
- :type ErrorCode: str
5414
- :param _ErrorMessage: 错误信息
5415
- :type ErrorMessage: str
5416
- :param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
5417
- :type RequestId: str
5418
- """
5419
- self._Status = None
5420
- self._ResultFile3Ds = None
5421
- self._ErrorCode = None
5422
- self._ErrorMessage = None
5423
- self._RequestId = None
5424
-
5425
- @property
5426
- def Status(self):
5427
- """任务状态。WAIT:等待中,RUN:执行中,FAIL:任务失败,DONE:任务成功
5428
- :rtype: str
5429
- """
5430
- return self._Status
5431
-
5432
- @Status.setter
5433
- def Status(self, Status):
5434
- self._Status = Status
5435
-
5436
- @property
5437
- def ResultFile3Ds(self):
5438
- """生成的3D文件数组
5439
- :rtype: list of File3Ds
5440
- """
5441
- return self._ResultFile3Ds
5442
-
5443
- @ResultFile3Ds.setter
5444
- def ResultFile3Ds(self, ResultFile3Ds):
5445
- self._ResultFile3Ds = ResultFile3Ds
5446
-
5447
- @property
5448
- def ErrorCode(self):
5449
- """错误码
5450
- :rtype: str
5451
- """
5452
- return self._ErrorCode
5453
-
5454
- @ErrorCode.setter
5455
- def ErrorCode(self, ErrorCode):
5456
- self._ErrorCode = ErrorCode
5457
-
5458
- @property
5459
- def ErrorMessage(self):
5460
- """错误信息
5461
- :rtype: str
5462
- """
5463
- return self._ErrorMessage
5464
-
5465
- @ErrorMessage.setter
5466
- def ErrorMessage(self, ErrorMessage):
5467
- self._ErrorMessage = ErrorMessage
5468
-
5469
- @property
5470
- def RequestId(self):
5471
- """唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
5472
- :rtype: str
5473
- """
5474
- return self._RequestId
5475
-
5476
- @RequestId.setter
5477
- def RequestId(self, RequestId):
5478
- self._RequestId = RequestId
5479
-
5480
-
5481
- def _deserialize(self, params):
5482
- self._Status = params.get("Status")
5483
- if params.get("ResultFile3Ds") is not None:
5484
- self._ResultFile3Ds = []
5485
- for item in params.get("ResultFile3Ds"):
5486
- obj = File3Ds()
5487
- obj._deserialize(item)
5488
- self._ResultFile3Ds.append(obj)
5489
- self._ErrorCode = params.get("ErrorCode")
5490
- self._ErrorMessage = params.get("ErrorMessage")
5491
- self._RequestId = params.get("RequestId")
5492
-
5493
-
5494
5273
  class Reference(AbstractModel):
5495
5274
  """翻译对话参考示例
5496
5275
 
@@ -6823,142 +6602,6 @@ class SubmitHunyuanImageJobResponse(AbstractModel):
6823
6602
  self._RequestId = params.get("RequestId")
6824
6603
 
6825
6604
 
6826
- class SubmitHunyuanTo3DJobRequest(AbstractModel):
6827
- """SubmitHunyuanTo3DJob请求参数结构体
6828
-
6829
- """
6830
-
6831
- def __init__(self):
6832
- r"""
6833
- :param _Prompt: 3D内容的描述,中文正向提示词。最多支持200个 utf-8 字符,ImageBase64、ImageUrl和 Prompt必填其一,且Prompt和ImageBase64/ImageUrl不能同时存在。
6834
- :type Prompt: str
6835
- :param _ImageBase64: 输入图 Base64 数据。
6836
- 大小:单边分辨率要求不小于50,不大于5000。大小不超过8m(base64编码后会大30%左右,建议实际输入图片不超过6m)
6837
- 格式:jpg,png,jpeg,webp。
6838
- ImageBase64、ImageUrl和 Prompt必填其一,且Prompt和ImageBase64/ImageUrl不能同时存在。
6839
- :type ImageBase64: str
6840
- :param _ImageUrl: 输入图Url。
6841
- 大小:单边分辨率要求不小于50,不大于5000。大小不超过8m(base64编码后会大30%左右,建议实际输入图片不超过6m)
6842
- 格式:jpg,png,jpeg,webp。
6843
- ImageBase64/ImageUrl和 Prompt必填其一,且Prompt和ImageBase64/ImageUrl不能同时存在。
6844
- :type ImageUrl: str
6845
- :param _Num: 生成数量。默认1,当前限制只能为1。
6846
- :type Num: int
6847
- """
6848
- self._Prompt = None
6849
- self._ImageBase64 = None
6850
- self._ImageUrl = None
6851
- self._Num = None
6852
-
6853
- @property
6854
- def Prompt(self):
6855
- """3D内容的描述,中文正向提示词。最多支持200个 utf-8 字符,ImageBase64、ImageUrl和 Prompt必填其一,且Prompt和ImageBase64/ImageUrl不能同时存在。
6856
- :rtype: str
6857
- """
6858
- return self._Prompt
6859
-
6860
- @Prompt.setter
6861
- def Prompt(self, Prompt):
6862
- self._Prompt = Prompt
6863
-
6864
- @property
6865
- def ImageBase64(self):
6866
- """输入图 Base64 数据。
6867
- 大小:单边分辨率要求不小于50,不大于5000。大小不超过8m(base64编码后会大30%左右,建议实际输入图片不超过6m)
6868
- 格式:jpg,png,jpeg,webp。
6869
- ImageBase64、ImageUrl和 Prompt必填其一,且Prompt和ImageBase64/ImageUrl不能同时存在。
6870
- :rtype: str
6871
- """
6872
- return self._ImageBase64
6873
-
6874
- @ImageBase64.setter
6875
- def ImageBase64(self, ImageBase64):
6876
- self._ImageBase64 = ImageBase64
6877
-
6878
- @property
6879
- def ImageUrl(self):
6880
- """输入图Url。
6881
- 大小:单边分辨率要求不小于50,不大于5000。大小不超过8m(base64编码后会大30%左右,建议实际输入图片不超过6m)
6882
- 格式:jpg,png,jpeg,webp。
6883
- ImageBase64/ImageUrl和 Prompt必填其一,且Prompt和ImageBase64/ImageUrl不能同时存在。
6884
- :rtype: str
6885
- """
6886
- return self._ImageUrl
6887
-
6888
- @ImageUrl.setter
6889
- def ImageUrl(self, ImageUrl):
6890
- self._ImageUrl = ImageUrl
6891
-
6892
- @property
6893
- def Num(self):
6894
- """生成数量。默认1,当前限制只能为1。
6895
- :rtype: int
6896
- """
6897
- return self._Num
6898
-
6899
- @Num.setter
6900
- def Num(self, Num):
6901
- self._Num = Num
6902
-
6903
-
6904
- def _deserialize(self, params):
6905
- self._Prompt = params.get("Prompt")
6906
- self._ImageBase64 = params.get("ImageBase64")
6907
- self._ImageUrl = params.get("ImageUrl")
6908
- self._Num = params.get("Num")
6909
- memeber_set = set(params.keys())
6910
- for name, value in vars(self).items():
6911
- property_name = name[1:]
6912
- if property_name in memeber_set:
6913
- memeber_set.remove(property_name)
6914
- if len(memeber_set) > 0:
6915
- warnings.warn("%s fileds are useless." % ",".join(memeber_set))
6916
-
6917
-
6918
-
6919
- class SubmitHunyuanTo3DJobResponse(AbstractModel):
6920
- """SubmitHunyuanTo3DJob返回参数结构体
6921
-
6922
- """
6923
-
6924
- def __init__(self):
6925
- r"""
6926
- :param _JobId: 任务id(有效期24小时)
6927
- :type JobId: str
6928
- :param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
6929
- :type RequestId: str
6930
- """
6931
- self._JobId = None
6932
- self._RequestId = None
6933
-
6934
- @property
6935
- def JobId(self):
6936
- """任务id(有效期24小时)
6937
- :rtype: str
6938
- """
6939
- return self._JobId
6940
-
6941
- @JobId.setter
6942
- def JobId(self, JobId):
6943
- self._JobId = JobId
6944
-
6945
- @property
6946
- def RequestId(self):
6947
- """唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
6948
- :rtype: str
6949
- """
6950
- return self._RequestId
6951
-
6952
- @RequestId.setter
6953
- def RequestId(self, RequestId):
6954
- self._RequestId = RequestId
6955
-
6956
-
6957
- def _deserialize(self, params):
6958
- self._JobId = params.get("JobId")
6959
- self._RequestId = params.get("RequestId")
6960
-
6961
-
6962
6605
  class TextToImageLiteRequest(AbstractModel):
6963
6606
  """TextToImageLite请求参数结构体
6964
6607
 
@@ -12577,6 +12577,57 @@ class DocSegment(AbstractModel):
12577
12577
 
12578
12578
 
12579
12579
 
12580
+ class DuplicateFileHandle(AbstractModel):
12581
+ """重复文档处理方式
12582
+
12583
+ """
12584
+
12585
+ def __init__(self):
12586
+ r"""
12587
+ :param _CheckType: 重复文档判断方式,1:按文档内容,即cos_hash字段判断是否重复
12588
+ :type CheckType: int
12589
+ :param _HandleType: 重复文档处理方式,1:返回报错,2:跳过,返回重复的文档业务ID
12590
+ :type HandleType: int
12591
+ """
12592
+ self._CheckType = None
12593
+ self._HandleType = None
12594
+
12595
+ @property
12596
+ def CheckType(self):
12597
+ """重复文档判断方式,1:按文档内容,即cos_hash字段判断是否重复
12598
+ :rtype: int
12599
+ """
12600
+ return self._CheckType
12601
+
12602
+ @CheckType.setter
12603
+ def CheckType(self, CheckType):
12604
+ self._CheckType = CheckType
12605
+
12606
+ @property
12607
+ def HandleType(self):
12608
+ """重复文档处理方式,1:返回报错,2:跳过,返回重复的文档业务ID
12609
+ :rtype: int
12610
+ """
12611
+ return self._HandleType
12612
+
12613
+ @HandleType.setter
12614
+ def HandleType(self, HandleType):
12615
+ self._HandleType = HandleType
12616
+
12617
+
12618
+ def _deserialize(self, params):
12619
+ self._CheckType = params.get("CheckType")
12620
+ self._HandleType = params.get("HandleType")
12621
+ memeber_set = set(params.keys())
12622
+ for name, value in vars(self).items():
12623
+ property_name = name[1:]
12624
+ if property_name in memeber_set:
12625
+ memeber_set.remove(property_name)
12626
+ if len(memeber_set) > 0:
12627
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
12628
+
12629
+
12630
+
12580
12631
  class ExportAttributeLabelRequest(AbstractModel):
12581
12632
  """ExportAttributeLabel请求参数结构体
12582
12633
 
@@ -28229,6 +28280,8 @@ cos_hash为文档唯一性标识,与文件名无关 相同的cos_hash会被判
28229
28280
  :type CateBizId: str
28230
28281
  :param _IsDownload: 是否可下载,IsRefer为true并且ReferUrlType为0时,该值才有意义
28231
28282
  :type IsDownload: bool
28283
+ :param _DuplicateFileHandles: 重复文档处理方式,按顺序匹配第一个满足条件的方式处理
28284
+ :type DuplicateFileHandles: list of DuplicateFileHandle
28232
28285
  """
28233
28286
  self._BotBizId = None
28234
28287
  self._FileName = None
@@ -28248,6 +28301,7 @@ cos_hash为文档唯一性标识,与文件名无关 相同的cos_hash会被判
28248
28301
  self._Opt = None
28249
28302
  self._CateBizId = None
28250
28303
  self._IsDownload = None
28304
+ self._DuplicateFileHandles = None
28251
28305
 
28252
28306
  @property
28253
28307
  def BotBizId(self):
@@ -28457,6 +28511,17 @@ cos_hash为文档唯一性标识,与文件名无关 相同的cos_hash会被判
28457
28511
  def IsDownload(self, IsDownload):
28458
28512
  self._IsDownload = IsDownload
28459
28513
 
28514
+ @property
28515
+ def DuplicateFileHandles(self):
28516
+ """重复文档处理方式,按顺序匹配第一个满足条件的方式处理
28517
+ :rtype: list of DuplicateFileHandle
28518
+ """
28519
+ return self._DuplicateFileHandles
28520
+
28521
+ @DuplicateFileHandles.setter
28522
+ def DuplicateFileHandles(self, DuplicateFileHandles):
28523
+ self._DuplicateFileHandles = DuplicateFileHandles
28524
+
28460
28525
 
28461
28526
  def _deserialize(self, params):
28462
28527
  self._BotBizId = params.get("BotBizId")
@@ -28482,6 +28547,12 @@ cos_hash为文档唯一性标识,与文件名无关 相同的cos_hash会被判
28482
28547
  self._Opt = params.get("Opt")
28483
28548
  self._CateBizId = params.get("CateBizId")
28484
28549
  self._IsDownload = params.get("IsDownload")
28550
+ if params.get("DuplicateFileHandles") is not None:
28551
+ self._DuplicateFileHandles = []
28552
+ for item in params.get("DuplicateFileHandles"):
28553
+ obj = DuplicateFileHandle()
28554
+ obj._deserialize(item)
28555
+ self._DuplicateFileHandles.append(obj)
28485
28556
  memeber_set = set(params.keys())
28486
28557
  for name, value in vars(self).items():
28487
28558
  property_name = name[1:]
@@ -28507,6 +28578,8 @@ class SaveDocResponse(AbstractModel):
28507
28578
  :type ErrorLink: str
28508
28579
  :param _ErrorLinkText: 错误链接文本
28509
28580
  :type ErrorLinkText: str
28581
+ :param _DuplicateFileCheckType: 重复类型,0:未重复,其他取值请参考入参DuplicateFileHandle结构体的CheckType字段
28582
+ :type DuplicateFileCheckType: int
28510
28583
  :param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
28511
28584
  :type RequestId: str
28512
28585
  """
@@ -28514,6 +28587,7 @@ class SaveDocResponse(AbstractModel):
28514
28587
  self._ErrorMsg = None
28515
28588
  self._ErrorLink = None
28516
28589
  self._ErrorLinkText = None
28590
+ self._DuplicateFileCheckType = None
28517
28591
  self._RequestId = None
28518
28592
 
28519
28593
  @property
@@ -28560,6 +28634,17 @@ class SaveDocResponse(AbstractModel):
28560
28634
  def ErrorLinkText(self, ErrorLinkText):
28561
28635
  self._ErrorLinkText = ErrorLinkText
28562
28636
 
28637
+ @property
28638
+ def DuplicateFileCheckType(self):
28639
+ """重复类型,0:未重复,其他取值请参考入参DuplicateFileHandle结构体的CheckType字段
28640
+ :rtype: int
28641
+ """
28642
+ return self._DuplicateFileCheckType
28643
+
28644
+ @DuplicateFileCheckType.setter
28645
+ def DuplicateFileCheckType(self, DuplicateFileCheckType):
28646
+ self._DuplicateFileCheckType = DuplicateFileCheckType
28647
+
28563
28648
  @property
28564
28649
  def RequestId(self):
28565
28650
  """唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
@@ -28577,6 +28662,7 @@ class SaveDocResponse(AbstractModel):
28577
28662
  self._ErrorMsg = params.get("ErrorMsg")
28578
28663
  self._ErrorLink = params.get("ErrorLink")
28579
28664
  self._ErrorLinkText = params.get("ErrorLinkText")
28665
+ self._DuplicateFileCheckType = params.get("DuplicateFileCheckType")
28580
28666
  self._RequestId = params.get("RequestId")
28581
28667
 
28582
28668
 
@@ -20,6 +20,9 @@ AUTHFAILURE = 'AuthFailure'
20
20
  # 操作失败。
21
21
  FAILEDOPERATION = 'FailedOperation'
22
22
 
23
+ # 实例开启了销毁保护,不允许销毁
24
+ FAILEDOPERATION_DELETIONPROTECTIONENABLED = 'FailedOperation.DeletionProtectionEnabled'
25
+
23
26
  # 按key回档未开启
24
27
  FAILEDOPERATION_FLASHBACKBYKEYNOTOPEN = 'FailedOperation.FlashbackByKeyNotOpen'
25
28
 
@@ -1206,7 +1206,7 @@ class MongodbClient(AbstractClient):
1206
1206
 
1207
1207
 
1208
1208
  def TerminateDBInstances(self, request):
1209
- """本接口(TerminateDBInstances)可将包年包月实例退还隔离。
1209
+ """本接口(TerminateDBInstances)用于退还包年包月计费实例。
1210
1210
 
1211
1211
  :param request: Request instance for TerminateDBInstances.
1212
1212
  :type request: :class:`tencentcloud.mongodb.v20190725.models.TerminateDBInstancesRequest`