tencentcloud-sdk-python 3.0.1422__py2.py3-none-any.whl → 3.0.1424__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 +1 -1
- tencentcloud/ai3d/v20250513/models.py +2 -2
- tencentcloud/ccc/v20200210/models.py +2 -2
- tencentcloud/cdb/v20170320/models.py +4 -4
- tencentcloud/cdn/v20180606/models.py +2 -2
- tencentcloud/cdwch/v20200915/models.py +2 -2
- tencentcloud/cme/v20191029/errorcodes.py +3 -0
- tencentcloud/ctem/v20231128/ctem_client.py +161 -0
- tencentcloud/ctem/v20231128/models.py +3720 -1023
- tencentcloud/cwp/v20180228/models.py +15 -0
- tencentcloud/cynosdb/v20190107/models.py +45 -0
- tencentcloud/ess/v20201111/ess_client.py +52 -0
- tencentcloud/ess/v20201111/models.py +445 -0
- tencentcloud/gme/v20180711/models.py +75 -0
- tencentcloud/iss/v20230517/models.py +4 -8
- tencentcloud/kms/v20190118/models.py +296 -0
- tencentcloud/live/v20180801/models.py +591 -0
- tencentcloud/lke/v20231130/errorcodes.py +0 -33
- tencentcloud/lke/v20231130/lke_client.py +0 -191
- tencentcloud/lke/v20231130/models.py +216 -2159
- tencentcloud/lkeap/v20240522/errorcodes.py +3 -0
- tencentcloud/lkeap/v20240522/lkeap_client.py +3 -0
- tencentcloud/lkeap/v20240522/models.py +190 -48
- tencentcloud/mongodb/v20190725/models.py +4 -2
- tencentcloud/monitor/v20180724/models.py +52 -6
- tencentcloud/monitor/v20230616/errorcodes.py +2 -11
- tencentcloud/monitor/v20230616/models.py +104 -369
- tencentcloud/monitor/v20230616/monitor_client.py +7 -13
- tencentcloud/mps/v20190612/models.py +576 -144
- tencentcloud/mps/v20190612/mps_client.py +26 -0
- tencentcloud/ocr/v20181119/models.py +42 -24
- tencentcloud/omics/v20221128/models.py +15 -0
- tencentcloud/redis/v20180412/models.py +42 -6
- tencentcloud/scf/v20180416/errorcodes.py +24 -0
- tencentcloud/ssl/v20191205/models.py +47 -2
- tencentcloud/teo/v20220901/models.py +7772 -5903
- tencentcloud/teo/v20220901/teo_client.py +322 -0
- tencentcloud/tione/v20211111/models.py +15 -0
- tencentcloud/tke/v20180525/models.py +4 -4
- tencentcloud/tse/v20201207/models.py +347 -0
- tencentcloud/tse/v20201207/tse_client.py +23 -0
- tencentcloud/vpc/v20170312/errorcodes.py +3 -0
- {tencentcloud_sdk_python-3.0.1422.dist-info → tencentcloud_sdk_python-3.0.1424.dist-info}/METADATA +1 -1
- {tencentcloud_sdk_python-3.0.1422.dist-info → tencentcloud_sdk_python-3.0.1424.dist-info}/RECORD +47 -47
- {tencentcloud_sdk_python-3.0.1422.dist-info → tencentcloud_sdk_python-3.0.1424.dist-info}/LICENSE +0 -0
- {tencentcloud_sdk_python-3.0.1422.dist-info → tencentcloud_sdk_python-3.0.1424.dist-info}/WHEEL +0 -0
- {tencentcloud_sdk_python-3.0.1422.dist-info → tencentcloud_sdk_python-3.0.1424.dist-info}/top_level.txt +0 -0
@@ -32,6 +32,9 @@ FAILEDOPERATION_IMAGEDECODEFAILED = 'FailedOperation.ImageDecodeFailed'
|
|
32
32
|
# 暂不支持解析该文件
|
33
33
|
FAILEDOPERATION_NONSUPPORTPARSE = 'FailedOperation.NonsupportParse'
|
34
34
|
|
35
|
+
# FailedOperation.OcrFailed
|
36
|
+
FAILEDOPERATION_OCRFAILED = 'FailedOperation.OcrFailed'
|
37
|
+
|
35
38
|
# 内部未知错误。
|
36
39
|
FAILEDOPERATION_UNKNOWERROR = 'FailedOperation.UnKnowError'
|
37
40
|
|
@@ -646,6 +646,9 @@ class LkeapClient(AbstractClient):
|
|
646
646
|
|
647
647
|
def ReconstructDocumentSSE(self, request):
|
648
648
|
"""准实时文档解析接口,使用HTTP SSE 协议通信。
|
649
|
+
支持将图片或PDF文件转换成Markdown格式文件,可解析包括表格、公式、图片、标题、段落、页眉、页脚等内容元素,并将内容智能转换成阅读顺序。
|
650
|
+
输入:pdf、ppt、docx、doc、jpg等
|
651
|
+
输出:正常阅读顺序的md文件、识别结果的json(可选)等
|
649
652
|
|
650
653
|
:param request: Request instance for ReconstructDocumentSSE.
|
651
654
|
:type request: :class:`tencentcloud.lkeap.v20240522.models.ReconstructDocumentSSERequest`
|
@@ -927,9 +927,12 @@ class CreateReconstructDocumentFlowConfig(AbstractModel):
|
|
927
927
|
4:返回全文MD + 每一页的MD,
|
928
928
|
默认值为0
|
929
929
|
:type ResultType: str
|
930
|
+
:param _IgnoreFailedPage: 是否忽略失败页,返回已成功的页数据。默认为true。
|
931
|
+
:type IgnoreFailedPage: bool
|
930
932
|
"""
|
931
933
|
self._TableResultType = None
|
932
934
|
self._ResultType = None
|
935
|
+
self._IgnoreFailedPage = None
|
933
936
|
|
934
937
|
@property
|
935
938
|
def TableResultType(self):
|
@@ -962,10 +965,22 @@ class CreateReconstructDocumentFlowConfig(AbstractModel):
|
|
962
965
|
def ResultType(self, ResultType):
|
963
966
|
self._ResultType = ResultType
|
964
967
|
|
968
|
+
@property
|
969
|
+
def IgnoreFailedPage(self):
|
970
|
+
"""是否忽略失败页,返回已成功的页数据。默认为true。
|
971
|
+
:rtype: bool
|
972
|
+
"""
|
973
|
+
return self._IgnoreFailedPage
|
974
|
+
|
975
|
+
@IgnoreFailedPage.setter
|
976
|
+
def IgnoreFailedPage(self, IgnoreFailedPage):
|
977
|
+
self._IgnoreFailedPage = IgnoreFailedPage
|
978
|
+
|
965
979
|
|
966
980
|
def _deserialize(self, params):
|
967
981
|
self._TableResultType = params.get("TableResultType")
|
968
982
|
self._ResultType = params.get("ResultType")
|
983
|
+
self._IgnoreFailedPage = params.get("IgnoreFailedPage")
|
969
984
|
memeber_set = set(params.keys())
|
970
985
|
for name, value in vars(self).items():
|
971
986
|
property_name = name[1:]
|
@@ -995,8 +1010,8 @@ class CreateReconstructDocumentFlowRequest(AbstractModel):
|
|
995
1010
|
- 其他 最大20M
|
996
1011
|
|
997
1012
|
:type FileType: str
|
998
|
-
:param _FileUrl:
|
999
|
-
|
1013
|
+
:param _FileUrl: 说明:文件的 URL 地址。
|
1014
|
+
备注:文件存储于腾讯云的 URL 可保障更高的下载速度和稳定性,建议文件存储于腾讯云。 非腾讯云存储的 URL 速度和稳定性可能受一定影响。
|
1000
1015
|
参考:[腾讯云COS文档](https://cloud.tencent.com/document/product/436/7749)
|
1001
1016
|
:type FileUrl: str
|
1002
1017
|
:param _FileBase64: 文件的 Base64 值。
|
@@ -1005,13 +1020,17 @@ class CreateReconstructDocumentFlowRequest(AbstractModel):
|
|
1005
1020
|
支持的图片像素:单边介于20-10000px之间。
|
1006
1021
|
文件的 FileUrl、FileBase64 必须提供一个,如果都提供,只使用 FileUrl。
|
1007
1022
|
:type FileBase64: str
|
1008
|
-
:param _FileStartPageNumber:
|
1009
|
-
|
1023
|
+
:param _FileStartPageNumber: 说明:文档的起始页码。
|
1024
|
+
备注:当传入文件是PDF、PDF、PPT、PPTX、DOC类型时,用来指定识别的起始页码,识别的页码包含当前值。
|
1025
|
+
默认值:无
|
1010
1026
|
:type FileStartPageNumber: int
|
1011
|
-
:param _FileEndPageNumber:
|
1012
|
-
|
1027
|
+
:param _FileEndPageNumber: 说明:文档的结束页码。
|
1028
|
+
备注:当传入文件是PDF、PDF、PPT、PPTX、DOC类型时,用来指定识别的结束页码,识别的页码包含当前值。
|
1029
|
+
默认值:无
|
1013
1030
|
:type FileEndPageNumber: int
|
1014
|
-
:param _Config:
|
1031
|
+
:param _Config: 说明:创建文档解析任务配置信息。
|
1032
|
+
备注:可设置结果的返回格式
|
1033
|
+
默认值:无
|
1015
1034
|
:type Config: :class:`tencentcloud.lkeap.v20240522.models.CreateReconstructDocumentFlowConfig`
|
1016
1035
|
"""
|
1017
1036
|
self._FileType = None
|
@@ -1044,8 +1063,8 @@ class CreateReconstructDocumentFlowRequest(AbstractModel):
|
|
1044
1063
|
|
1045
1064
|
@property
|
1046
1065
|
def FileUrl(self):
|
1047
|
-
"""
|
1048
|
-
|
1066
|
+
"""说明:文件的 URL 地址。
|
1067
|
+
备注:文件存储于腾讯云的 URL 可保障更高的下载速度和稳定性,建议文件存储于腾讯云。 非腾讯云存储的 URL 速度和稳定性可能受一定影响。
|
1049
1068
|
参考:[腾讯云COS文档](https://cloud.tencent.com/document/product/436/7749)
|
1050
1069
|
:rtype: str
|
1051
1070
|
"""
|
@@ -1072,8 +1091,9 @@ class CreateReconstructDocumentFlowRequest(AbstractModel):
|
|
1072
1091
|
|
1073
1092
|
@property
|
1074
1093
|
def FileStartPageNumber(self):
|
1075
|
-
"""
|
1076
|
-
|
1094
|
+
"""说明:文档的起始页码。
|
1095
|
+
备注:当传入文件是PDF、PDF、PPT、PPTX、DOC类型时,用来指定识别的起始页码,识别的页码包含当前值。
|
1096
|
+
默认值:无
|
1077
1097
|
:rtype: int
|
1078
1098
|
"""
|
1079
1099
|
return self._FileStartPageNumber
|
@@ -1084,8 +1104,9 @@ class CreateReconstructDocumentFlowRequest(AbstractModel):
|
|
1084
1104
|
|
1085
1105
|
@property
|
1086
1106
|
def FileEndPageNumber(self):
|
1087
|
-
"""
|
1088
|
-
|
1107
|
+
"""说明:文档的结束页码。
|
1108
|
+
备注:当传入文件是PDF、PDF、PPT、PPTX、DOC类型时,用来指定识别的结束页码,识别的页码包含当前值。
|
1109
|
+
默认值:无
|
1089
1110
|
:rtype: int
|
1090
1111
|
"""
|
1091
1112
|
return self._FileEndPageNumber
|
@@ -1096,7 +1117,9 @@ class CreateReconstructDocumentFlowRequest(AbstractModel):
|
|
1096
1117
|
|
1097
1118
|
@property
|
1098
1119
|
def Config(self):
|
1099
|
-
"""
|
1120
|
+
"""说明:创建文档解析任务配置信息。
|
1121
|
+
备注:可设置结果的返回格式
|
1122
|
+
默认值:无
|
1100
1123
|
:rtype: :class:`tencentcloud.lkeap.v20240522.models.CreateReconstructDocumentFlowConfig`
|
1101
1124
|
"""
|
1102
1125
|
return self._Config
|
@@ -1194,11 +1217,14 @@ class CreateSplitDocumentFlowConfig(AbstractModel):
|
|
1194
1217
|
:type EnableMllm: bool
|
1195
1218
|
:param _MaxChunkSize: 最大分片长度
|
1196
1219
|
:type MaxChunkSize: int
|
1220
|
+
:param _IgnoreFailedPage: 是否忽略返回失败页码
|
1221
|
+
:type IgnoreFailedPage: bool
|
1197
1222
|
"""
|
1198
1223
|
self._TableResultType = None
|
1199
1224
|
self._ResultType = None
|
1200
1225
|
self._EnableMllm = None
|
1201
1226
|
self._MaxChunkSize = None
|
1227
|
+
self._IgnoreFailedPage = None
|
1202
1228
|
|
1203
1229
|
@property
|
1204
1230
|
def TableResultType(self):
|
@@ -1263,12 +1289,24 @@ class CreateSplitDocumentFlowConfig(AbstractModel):
|
|
1263
1289
|
def MaxChunkSize(self, MaxChunkSize):
|
1264
1290
|
self._MaxChunkSize = MaxChunkSize
|
1265
1291
|
|
1292
|
+
@property
|
1293
|
+
def IgnoreFailedPage(self):
|
1294
|
+
"""是否忽略返回失败页码
|
1295
|
+
:rtype: bool
|
1296
|
+
"""
|
1297
|
+
return self._IgnoreFailedPage
|
1298
|
+
|
1299
|
+
@IgnoreFailedPage.setter
|
1300
|
+
def IgnoreFailedPage(self, IgnoreFailedPage):
|
1301
|
+
self._IgnoreFailedPage = IgnoreFailedPage
|
1302
|
+
|
1266
1303
|
|
1267
1304
|
def _deserialize(self, params):
|
1268
1305
|
self._TableResultType = params.get("TableResultType")
|
1269
1306
|
self._ResultType = params.get("ResultType")
|
1270
1307
|
self._EnableMllm = params.get("EnableMllm")
|
1271
1308
|
self._MaxChunkSize = params.get("MaxChunkSize")
|
1309
|
+
self._IgnoreFailedPage = params.get("IgnoreFailedPage")
|
1272
1310
|
memeber_set = set(params.keys())
|
1273
1311
|
for name, value in vars(self).items():
|
1274
1312
|
property_name = name[1:]
|
@@ -2182,12 +2220,18 @@ class DocumentUsage(AbstractModel):
|
|
2182
2220
|
:type SplitTokens: int
|
2183
2221
|
:param _MllmTokens: mllm消耗的token数
|
2184
2222
|
:type MllmTokens: int
|
2223
|
+
:param _SuccessPageNum: 解析成功页数
|
2224
|
+
:type SuccessPageNum: int
|
2225
|
+
:param _FailPageNum: 解析失败页数
|
2226
|
+
:type FailPageNum: int
|
2185
2227
|
"""
|
2186
2228
|
self._PageNumber = None
|
2187
2229
|
self._TotalToken = None
|
2188
2230
|
self._TotalTokens = None
|
2189
2231
|
self._SplitTokens = None
|
2190
2232
|
self._MllmTokens = None
|
2233
|
+
self._SuccessPageNum = None
|
2234
|
+
self._FailPageNum = None
|
2191
2235
|
|
2192
2236
|
@property
|
2193
2237
|
def PageNumber(self):
|
@@ -2248,6 +2292,28 @@ class DocumentUsage(AbstractModel):
|
|
2248
2292
|
def MllmTokens(self, MllmTokens):
|
2249
2293
|
self._MllmTokens = MllmTokens
|
2250
2294
|
|
2295
|
+
@property
|
2296
|
+
def SuccessPageNum(self):
|
2297
|
+
"""解析成功页数
|
2298
|
+
:rtype: int
|
2299
|
+
"""
|
2300
|
+
return self._SuccessPageNum
|
2301
|
+
|
2302
|
+
@SuccessPageNum.setter
|
2303
|
+
def SuccessPageNum(self, SuccessPageNum):
|
2304
|
+
self._SuccessPageNum = SuccessPageNum
|
2305
|
+
|
2306
|
+
@property
|
2307
|
+
def FailPageNum(self):
|
2308
|
+
"""解析失败页数
|
2309
|
+
:rtype: int
|
2310
|
+
"""
|
2311
|
+
return self._FailPageNum
|
2312
|
+
|
2313
|
+
@FailPageNum.setter
|
2314
|
+
def FailPageNum(self, FailPageNum):
|
2315
|
+
self._FailPageNum = FailPageNum
|
2316
|
+
|
2251
2317
|
|
2252
2318
|
def _deserialize(self, params):
|
2253
2319
|
self._PageNumber = params.get("PageNumber")
|
@@ -2255,6 +2321,8 @@ class DocumentUsage(AbstractModel):
|
|
2255
2321
|
self._TotalTokens = params.get("TotalTokens")
|
2256
2322
|
self._SplitTokens = params.get("SplitTokens")
|
2257
2323
|
self._MllmTokens = params.get("MllmTokens")
|
2324
|
+
self._SuccessPageNum = params.get("SuccessPageNum")
|
2325
|
+
self._FailPageNum = params.get("FailPageNum")
|
2258
2326
|
memeber_set = set(params.keys())
|
2259
2327
|
for name, value in vars(self).items():
|
2260
2328
|
property_name = name[1:]
|
@@ -2492,14 +2560,16 @@ class GetReconstructDocumentResultRequest(AbstractModel):
|
|
2492
2560
|
|
2493
2561
|
def __init__(self):
|
2494
2562
|
r"""
|
2495
|
-
:param _TaskId:
|
2563
|
+
:param _TaskId: 说明:解析任务ID
|
2564
|
+
备注:仅支持单个任务ID
|
2496
2565
|
:type TaskId: str
|
2497
2566
|
"""
|
2498
2567
|
self._TaskId = None
|
2499
2568
|
|
2500
2569
|
@property
|
2501
2570
|
def TaskId(self):
|
2502
|
-
"""
|
2571
|
+
"""说明:解析任务ID
|
2572
|
+
备注:仅支持单个任务ID
|
2503
2573
|
:rtype: str
|
2504
2574
|
"""
|
2505
2575
|
return self._TaskId
|
@@ -2539,12 +2609,15 @@ class GetReconstructDocumentResultResponse(AbstractModel):
|
|
2539
2609
|
:type DocumentRecognizeResultUrl: str
|
2540
2610
|
:param _FailedPages: 文档解析失败的页码
|
2541
2611
|
:type FailedPages: list of ReconstructDocumentFailedPage
|
2612
|
+
:param _Usage: 文档拆分任务的用量
|
2613
|
+
:type Usage: :class:`tencentcloud.lkeap.v20240522.models.DocumentUsage`
|
2542
2614
|
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
2543
2615
|
:type RequestId: str
|
2544
2616
|
"""
|
2545
2617
|
self._Status = None
|
2546
2618
|
self._DocumentRecognizeResultUrl = None
|
2547
2619
|
self._FailedPages = None
|
2620
|
+
self._Usage = None
|
2548
2621
|
self._RequestId = None
|
2549
2622
|
|
2550
2623
|
@property
|
@@ -2585,6 +2658,17 @@ class GetReconstructDocumentResultResponse(AbstractModel):
|
|
2585
2658
|
def FailedPages(self, FailedPages):
|
2586
2659
|
self._FailedPages = FailedPages
|
2587
2660
|
|
2661
|
+
@property
|
2662
|
+
def Usage(self):
|
2663
|
+
"""文档拆分任务的用量
|
2664
|
+
:rtype: :class:`tencentcloud.lkeap.v20240522.models.DocumentUsage`
|
2665
|
+
"""
|
2666
|
+
return self._Usage
|
2667
|
+
|
2668
|
+
@Usage.setter
|
2669
|
+
def Usage(self, Usage):
|
2670
|
+
self._Usage = Usage
|
2671
|
+
|
2588
2672
|
@property
|
2589
2673
|
def RequestId(self):
|
2590
2674
|
"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
@@ -2606,6 +2690,9 @@ class GetReconstructDocumentResultResponse(AbstractModel):
|
|
2606
2690
|
obj = ReconstructDocumentFailedPage()
|
2607
2691
|
obj._deserialize(item)
|
2608
2692
|
self._FailedPages.append(obj)
|
2693
|
+
if params.get("Usage") is not None:
|
2694
|
+
self._Usage = DocumentUsage()
|
2695
|
+
self._Usage._deserialize(params.get("Usage"))
|
2609
2696
|
self._RequestId = params.get("RequestId")
|
2610
2697
|
|
2611
2698
|
|
@@ -3974,11 +4061,14 @@ class ReconstructDocumentSSEConfig(AbstractModel):
|
|
3974
4061
|
:type ReturnPageFormat: bool
|
3975
4062
|
:param _PageFormat: 自定义输出页码样式,{{p}}为页码占位符,开启ReturnPageFormat生效。未填默认样式:<page_num>page {{p}}</page_num>
|
3976
4063
|
:type PageFormat: str
|
4064
|
+
:param _IgnoreFailedPage: 是否忽略失败页,返回已成功的页数据
|
4065
|
+
:type IgnoreFailedPage: bool
|
3977
4066
|
"""
|
3978
4067
|
self._TableResultType = None
|
3979
4068
|
self._MarkdownImageResponseType = None
|
3980
4069
|
self._ReturnPageFormat = None
|
3981
4070
|
self._PageFormat = None
|
4071
|
+
self._IgnoreFailedPage = None
|
3982
4072
|
|
3983
4073
|
@property
|
3984
4074
|
def TableResultType(self):
|
@@ -4030,12 +4120,24 @@ class ReconstructDocumentSSEConfig(AbstractModel):
|
|
4030
4120
|
def PageFormat(self, PageFormat):
|
4031
4121
|
self._PageFormat = PageFormat
|
4032
4122
|
|
4123
|
+
@property
|
4124
|
+
def IgnoreFailedPage(self):
|
4125
|
+
"""是否忽略失败页,返回已成功的页数据
|
4126
|
+
:rtype: bool
|
4127
|
+
"""
|
4128
|
+
return self._IgnoreFailedPage
|
4129
|
+
|
4130
|
+
@IgnoreFailedPage.setter
|
4131
|
+
def IgnoreFailedPage(self, IgnoreFailedPage):
|
4132
|
+
self._IgnoreFailedPage = IgnoreFailedPage
|
4133
|
+
|
4033
4134
|
|
4034
4135
|
def _deserialize(self, params):
|
4035
4136
|
self._TableResultType = params.get("TableResultType")
|
4036
4137
|
self._MarkdownImageResponseType = params.get("MarkdownImageResponseType")
|
4037
4138
|
self._ReturnPageFormat = params.get("ReturnPageFormat")
|
4038
4139
|
self._PageFormat = params.get("PageFormat")
|
4140
|
+
self._IgnoreFailedPage = params.get("IgnoreFailedPage")
|
4039
4141
|
memeber_set = set(params.keys())
|
4040
4142
|
for name, value in vars(self).items():
|
4041
4143
|
property_name = name[1:]
|
@@ -4053,7 +4155,7 @@ class ReconstructDocumentSSERequest(AbstractModel):
|
|
4053
4155
|
|
4054
4156
|
def __init__(self):
|
4055
4157
|
r"""
|
4056
|
-
:param _FileType:
|
4158
|
+
:param _FileType: 支持解析的文件类型。
|
4057
4159
|
**支持的文件类型**:PDF、DOC、DOCX、PPT、PPTX、MD、TXT、XLS、XLSX、CSV、PNG、JPG、JPEG、BMP、GIF、WEBP、HEIC、EPS、ICNS、IM、PCX、PPM、TIFF、XBM、HEIF、JP2
|
4058
4160
|
**支持的文件大小**:
|
4059
4161
|
- PDF、DOC、DOCX、PPT、PPTX 支持100M
|
@@ -4061,22 +4163,29 @@ class ReconstructDocumentSSERequest(AbstractModel):
|
|
4061
4163
|
- 其他支持20M
|
4062
4164
|
|
4063
4165
|
:type FileType: str
|
4064
|
-
:param _FileUrl: 文件的 URL
|
4065
|
-
文件存储于腾讯云的 URL 可保障更高的下载速度和稳定性,建议文件存储于腾讯云。 非腾讯云存储的 URL 速度和稳定性可能受一定影响。
|
4166
|
+
:param _FileUrl: 文件的 URL 地址。文件存储于腾讯云的 URL 可保障更高的下载速度和稳定性,建议文件存储于腾讯云。 非腾讯云存储的 URL 速度和稳定性可能受一定影响。文件的 FileUrl、FileBase64 必须提供一个,如果都提供,只使用 FileUrl。
|
4066
4167
|
参考:[腾讯云COS文档](https://cloud.tencent.com/document/product/436/7749)
|
4168
|
+
|
4169
|
+
默认值:无
|
4067
4170
|
:type FileUrl: str
|
4068
|
-
:param _FileBase64:
|
4069
|
-
|
4070
|
-
支持的图片像素:单边介于20-10000px
|
4071
|
-
|
4171
|
+
:param _FileBase64: 说明:文件的 Base64 值。
|
4172
|
+
备注:支持的文件大小:所下载文件经Base64编码后不超过 8M。文件下载时间不超过 3 秒。
|
4173
|
+
支持的图片像素:单边介于20-10000px之间。文件的 FileUrl、FileBase64 必须提供一个,如果都提供,只使用 FileUrl。
|
4174
|
+
|
4175
|
+
默认值:无
|
4072
4176
|
:type FileBase64: str
|
4073
|
-
:param _FileStartPageNumber:
|
4074
|
-
|
4177
|
+
:param _FileStartPageNumber: 说明:文档的起始页码。
|
4178
|
+
备注:当传入文件是PDF、PDF、PPT、PPTX、DOC类型时,用来指定识别的起始页码,识别的页码包含当前值。
|
4179
|
+
默认值:无
|
4075
4180
|
:type FileStartPageNumber: int
|
4076
|
-
:param _FileEndPageNumber:
|
4077
|
-
|
4181
|
+
:param _FileEndPageNumber: 说明:文档的结束页码。
|
4182
|
+
备注:当传入文件是PDF、PDF、PPT、PPTX、DOC类型时,用来指定识别的结束页码,识别的页码包含当前值。
|
4183
|
+
默认值:无
|
4078
4184
|
:type FileEndPageNumber: int
|
4079
|
-
:param _Config:
|
4185
|
+
:param _Config: 说明:文档解析配置信息
|
4186
|
+
备注:可设置返回markdown结果的格式
|
4187
|
+
默认值:无
|
4188
|
+
|
4080
4189
|
:type Config: :class:`tencentcloud.lkeap.v20240522.models.ReconstructDocumentSSEConfig`
|
4081
4190
|
"""
|
4082
4191
|
self._FileType = None
|
@@ -4088,7 +4197,7 @@ class ReconstructDocumentSSERequest(AbstractModel):
|
|
4088
4197
|
|
4089
4198
|
@property
|
4090
4199
|
def FileType(self):
|
4091
|
-
"""
|
4200
|
+
"""支持解析的文件类型。
|
4092
4201
|
**支持的文件类型**:PDF、DOC、DOCX、PPT、PPTX、MD、TXT、XLS、XLSX、CSV、PNG、JPG、JPEG、BMP、GIF、WEBP、HEIC、EPS、ICNS、IM、PCX、PPM、TIFF、XBM、HEIF、JP2
|
4093
4202
|
**支持的文件大小**:
|
4094
4203
|
- PDF、DOC、DOCX、PPT、PPTX 支持100M
|
@@ -4105,9 +4214,10 @@ class ReconstructDocumentSSERequest(AbstractModel):
|
|
4105
4214
|
|
4106
4215
|
@property
|
4107
4216
|
def FileUrl(self):
|
4108
|
-
"""文件的 URL
|
4109
|
-
文件存储于腾讯云的 URL 可保障更高的下载速度和稳定性,建议文件存储于腾讯云。 非腾讯云存储的 URL 速度和稳定性可能受一定影响。
|
4217
|
+
"""文件的 URL 地址。文件存储于腾讯云的 URL 可保障更高的下载速度和稳定性,建议文件存储于腾讯云。 非腾讯云存储的 URL 速度和稳定性可能受一定影响。文件的 FileUrl、FileBase64 必须提供一个,如果都提供,只使用 FileUrl。
|
4110
4218
|
参考:[腾讯云COS文档](https://cloud.tencent.com/document/product/436/7749)
|
4219
|
+
|
4220
|
+
默认值:无
|
4111
4221
|
:rtype: str
|
4112
4222
|
"""
|
4113
4223
|
return self._FileUrl
|
@@ -4118,10 +4228,11 @@ class ReconstructDocumentSSERequest(AbstractModel):
|
|
4118
4228
|
|
4119
4229
|
@property
|
4120
4230
|
def FileBase64(self):
|
4121
|
-
"""
|
4122
|
-
|
4123
|
-
支持的图片像素:单边介于20-10000px
|
4124
|
-
|
4231
|
+
"""说明:文件的 Base64 值。
|
4232
|
+
备注:支持的文件大小:所下载文件经Base64编码后不超过 8M。文件下载时间不超过 3 秒。
|
4233
|
+
支持的图片像素:单边介于20-10000px之间。文件的 FileUrl、FileBase64 必须提供一个,如果都提供,只使用 FileUrl。
|
4234
|
+
|
4235
|
+
默认值:无
|
4125
4236
|
:rtype: str
|
4126
4237
|
"""
|
4127
4238
|
return self._FileBase64
|
@@ -4132,8 +4243,9 @@ class ReconstructDocumentSSERequest(AbstractModel):
|
|
4132
4243
|
|
4133
4244
|
@property
|
4134
4245
|
def FileStartPageNumber(self):
|
4135
|
-
"""
|
4136
|
-
|
4246
|
+
"""说明:文档的起始页码。
|
4247
|
+
备注:当传入文件是PDF、PDF、PPT、PPTX、DOC类型时,用来指定识别的起始页码,识别的页码包含当前值。
|
4248
|
+
默认值:无
|
4137
4249
|
:rtype: int
|
4138
4250
|
"""
|
4139
4251
|
return self._FileStartPageNumber
|
@@ -4144,8 +4256,9 @@ class ReconstructDocumentSSERequest(AbstractModel):
|
|
4144
4256
|
|
4145
4257
|
@property
|
4146
4258
|
def FileEndPageNumber(self):
|
4147
|
-
"""
|
4148
|
-
|
4259
|
+
"""说明:文档的结束页码。
|
4260
|
+
备注:当传入文件是PDF、PDF、PPT、PPTX、DOC类型时,用来指定识别的结束页码,识别的页码包含当前值。
|
4261
|
+
默认值:无
|
4149
4262
|
:rtype: int
|
4150
4263
|
"""
|
4151
4264
|
return self._FileEndPageNumber
|
@@ -4156,7 +4269,10 @@ class ReconstructDocumentSSERequest(AbstractModel):
|
|
4156
4269
|
|
4157
4270
|
@property
|
4158
4271
|
def Config(self):
|
4159
|
-
"""
|
4272
|
+
"""说明:文档解析配置信息
|
4273
|
+
备注:可设置返回markdown结果的格式
|
4274
|
+
默认值:无
|
4275
|
+
|
4160
4276
|
:rtype: :class:`tencentcloud.lkeap.v20240522.models.ReconstructDocumentSSEConfig`
|
4161
4277
|
"""
|
4162
4278
|
return self._Config
|
@@ -4194,19 +4310,21 @@ class ReconstructDocumentSSEResponse(AbstractModel):
|
|
4194
4310
|
r"""
|
4195
4311
|
:param _TaskId: 任务ID。本次请求的唯一标识
|
4196
4312
|
:type TaskId: str
|
4197
|
-
:param _ResponseType: 响应类型。1:返回进度信息,2:返回解析结果
|
4313
|
+
:param _ResponseType: 响应类型。1:返回进度信息, 2:返回解析结果
|
4198
4314
|
:type ResponseType: str
|
4199
4315
|
:param _Progress: 进度。0~100
|
4200
4316
|
:type Progress: str
|
4201
4317
|
:param _ProgressMessage: 进度信息。
|
4202
4318
|
:type ProgressMessage: str
|
4203
|
-
:param _DocumentRecognizeResultUrl:
|
4204
|
-
文件类型为zip压缩包,下载链接有效期30分钟。
|
4205
|
-
压缩包内包含*.md、*.json以及images文件夹。
|
4319
|
+
:param _DocumentRecognizeResultUrl: 文档解析结果的临时下载地址。文件类型为zip压缩包,下载链接有效期30分钟。压缩包内包含*.md、*.json以及images文件夹。
|
4206
4320
|
|
4207
4321
|
:type DocumentRecognizeResultUrl: str
|
4208
4322
|
:param _FailedPages: 文档解析失败的页码。
|
4209
4323
|
:type FailedPages: list of ReconstructDocumentFailedPage
|
4324
|
+
:param _FailPageNum: 文档解析失败页数
|
4325
|
+
:type FailPageNum: int
|
4326
|
+
:param _SuccessPageNum: 文档解析成功页数
|
4327
|
+
:type SuccessPageNum: int
|
4210
4328
|
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。本接口为流式响应接口,当请求成功时,RequestId 会被放在 HTTP 响应的 Header "X-TC-RequestId" 中。
|
4211
4329
|
:type RequestId: str
|
4212
4330
|
"""
|
@@ -4216,6 +4334,8 @@ class ReconstructDocumentSSEResponse(AbstractModel):
|
|
4216
4334
|
self._ProgressMessage = None
|
4217
4335
|
self._DocumentRecognizeResultUrl = None
|
4218
4336
|
self._FailedPages = None
|
4337
|
+
self._FailPageNum = None
|
4338
|
+
self._SuccessPageNum = None
|
4219
4339
|
self._RequestId = None
|
4220
4340
|
|
4221
4341
|
@property
|
@@ -4231,7 +4351,7 @@ class ReconstructDocumentSSEResponse(AbstractModel):
|
|
4231
4351
|
|
4232
4352
|
@property
|
4233
4353
|
def ResponseType(self):
|
4234
|
-
"""响应类型。1:返回进度信息,2:返回解析结果
|
4354
|
+
"""响应类型。1:返回进度信息, 2:返回解析结果
|
4235
4355
|
:rtype: str
|
4236
4356
|
"""
|
4237
4357
|
return self._ResponseType
|
@@ -4264,9 +4384,7 @@ class ReconstructDocumentSSEResponse(AbstractModel):
|
|
4264
4384
|
|
4265
4385
|
@property
|
4266
4386
|
def DocumentRecognizeResultUrl(self):
|
4267
|
-
"""
|
4268
|
-
文件类型为zip压缩包,下载链接有效期30分钟。
|
4269
|
-
压缩包内包含*.md、*.json以及images文件夹。
|
4387
|
+
"""文档解析结果的临时下载地址。文件类型为zip压缩包,下载链接有效期30分钟。压缩包内包含*.md、*.json以及images文件夹。
|
4270
4388
|
|
4271
4389
|
:rtype: str
|
4272
4390
|
"""
|
@@ -4287,6 +4405,28 @@ class ReconstructDocumentSSEResponse(AbstractModel):
|
|
4287
4405
|
def FailedPages(self, FailedPages):
|
4288
4406
|
self._FailedPages = FailedPages
|
4289
4407
|
|
4408
|
+
@property
|
4409
|
+
def FailPageNum(self):
|
4410
|
+
"""文档解析失败页数
|
4411
|
+
:rtype: int
|
4412
|
+
"""
|
4413
|
+
return self._FailPageNum
|
4414
|
+
|
4415
|
+
@FailPageNum.setter
|
4416
|
+
def FailPageNum(self, FailPageNum):
|
4417
|
+
self._FailPageNum = FailPageNum
|
4418
|
+
|
4419
|
+
@property
|
4420
|
+
def SuccessPageNum(self):
|
4421
|
+
"""文档解析成功页数
|
4422
|
+
:rtype: int
|
4423
|
+
"""
|
4424
|
+
return self._SuccessPageNum
|
4425
|
+
|
4426
|
+
@SuccessPageNum.setter
|
4427
|
+
def SuccessPageNum(self, SuccessPageNum):
|
4428
|
+
self._SuccessPageNum = SuccessPageNum
|
4429
|
+
|
4290
4430
|
@property
|
4291
4431
|
def RequestId(self):
|
4292
4432
|
"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。本接口为流式响应接口,当请求成功时,RequestId 会被放在 HTTP 响应的 Header "X-TC-RequestId" 中。
|
@@ -4311,6 +4451,8 @@ class ReconstructDocumentSSEResponse(AbstractModel):
|
|
4311
4451
|
obj = ReconstructDocumentFailedPage()
|
4312
4452
|
obj._deserialize(item)
|
4313
4453
|
self._FailedPages.append(obj)
|
4454
|
+
self._FailPageNum = params.get("FailPageNum")
|
4455
|
+
self._SuccessPageNum = params.get("SuccessPageNum")
|
4314
4456
|
self._RequestId = params.get("RequestId")
|
4315
4457
|
|
4316
4458
|
|
@@ -6788,7 +6788,7 @@ class InquirePriceCreateDBInstancesRequest(AbstractModel):
|
|
6788
6788
|
r"""
|
6789
6789
|
:param _Zone: 实例所属区域及可用区信息。格式:ap-guangzhou-2。
|
6790
6790
|
:type Zone: str
|
6791
|
-
:param _NodeNum: -
|
6791
|
+
:param _NodeNum: - 创建副本集实例,指每个副本集内主从节点数量。每个副本集所支持的最大节点数与最小节点数,请通过接口 [DescribeSpecInfo](https://cloud.tencent.com/document/product/240/38567) 获取。
|
6792
6792
|
- 创建分片集群实例,指每个分片的主从节点数量。每个分片所支持的最大节点数与最小节点数,请通过接口 [DescribeSpecInfo](https://cloud.tencent.com/document/product/240/38567) 获取。
|
6793
6793
|
:type NodeNum: int
|
6794
6794
|
:param _Memory: 实例内存大小。
|
@@ -6871,7 +6871,7 @@ class InquirePriceCreateDBInstancesRequest(AbstractModel):
|
|
6871
6871
|
|
6872
6872
|
@property
|
6873
6873
|
def NodeNum(self):
|
6874
|
-
"""-
|
6874
|
+
"""- 创建副本集实例,指每个副本集内主从节点数量。每个副本集所支持的最大节点数与最小节点数,请通过接口 [DescribeSpecInfo](https://cloud.tencent.com/document/product/240/38567) 获取。
|
6875
6875
|
- 创建分片集群实例,指每个分片的主从节点数量。每个分片所支持的最大节点数与最小节点数,请通过接口 [DescribeSpecInfo](https://cloud.tencent.com/document/product/240/38567) 获取。
|
6876
6876
|
:rtype: int
|
6877
6877
|
"""
|
@@ -9374,6 +9374,7 @@ class ModifyDBInstanceSecurityGroupRequest(AbstractModel):
|
|
9374
9374
|
:param _InstanceId: 实例 ID。例如:cmgo-7pje****。
|
9375
9375
|
:type InstanceId: str
|
9376
9376
|
:param _SecurityGroupIds: 目标安全组 ID。请通过接口[DescribeSecurityGroup](https://cloud.tencent.com/document/product/240/55675)查看具体的安全组 ID。
|
9377
|
+
**注意**:该入参会全量替换存量已有集合,非增量更新。修改需传入预期的全量集合。
|
9377
9378
|
:type SecurityGroupIds: list of str
|
9378
9379
|
"""
|
9379
9380
|
self._InstanceId = None
|
@@ -9393,6 +9394,7 @@ class ModifyDBInstanceSecurityGroupRequest(AbstractModel):
|
|
9393
9394
|
@property
|
9394
9395
|
def SecurityGroupIds(self):
|
9395
9396
|
"""目标安全组 ID。请通过接口[DescribeSecurityGroup](https://cloud.tencent.com/document/product/240/55675)查看具体的安全组 ID。
|
9397
|
+
**注意**:该入参会全量替换存量已有集合,非增量更新。修改需传入预期的全量集合。
|
9396
9398
|
:rtype: list of str
|
9397
9399
|
"""
|
9398
9400
|
return self._SecurityGroupIds
|