tencentcloud-sdk-lkeap 3.0.1099 → 3.0.1103
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.
- checksums.yaml +4 -4
- data/lib/VERSION +1 -1
- data/lib/v20240522/client.rb +3 -0
- data/lib/v20240522/models.rb +82 -61
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: acf0615c3157bd1b4ceb29dbcba6ef355765f100
|
4
|
+
data.tar.gz: 0fda53e53d58a28dbe71eebf7625180eaa033cf5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6bba376d48717116880e307c7a22540be9e55c32c65d9ad431100ea296da7ff6d46d63687b851cb3e03178d15488bf63b794a27dd0a860690de50160b551aaea
|
7
|
+
data.tar.gz: fec155b03b8f06d328a7ddcea9cb60fdcaf1b198f19219feb911af60097749534d355702d8a02703d6af4ccf4a3abc49bb600cbd71c1c6d0a032b9ffea7732fc
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.1103
|
data/lib/v20240522/client.rb
CHANGED
@@ -675,6 +675,9 @@ module TencentCloud
|
|
675
675
|
end
|
676
676
|
|
677
677
|
# 准实时文档解析接口,使用HTTP SSE 协议通信。
|
678
|
+
# 支持将图片或PDF文件转换成Markdown格式文件,可解析包括表格、公式、图片、标题、段落、页眉、页脚等内容元素,并将内容智能转换成阅读顺序。
|
679
|
+
# 输入:pdf、ppt、docx、doc、jpg等
|
680
|
+
# 输出:正常阅读顺序的md文件、识别结果的json(可选)等
|
678
681
|
|
679
682
|
# @param request: Request instance for ReconstructDocumentSSE.
|
680
683
|
# @type request: :class:`Tencentcloud::lkeap::V20240522::ReconstructDocumentSSERequest`
|
data/lib/v20240522/models.rb
CHANGED
@@ -406,35 +406,30 @@ module TencentCloud
|
|
406
406
|
# 4:返回全文MD + 每一页的MD,
|
407
407
|
# 默认值为0
|
408
408
|
# @type ResultType: String
|
409
|
+
# @param IgnoreFailedPage: 是否忽略失败页,返回已成功的页数据。默认为true。
|
410
|
+
# @type IgnoreFailedPage: Boolean
|
409
411
|
|
410
|
-
attr_accessor :TableResultType, :ResultType
|
412
|
+
attr_accessor :TableResultType, :ResultType, :IgnoreFailedPage
|
411
413
|
|
412
|
-
def initialize(tableresulttype=nil, resulttype=nil)
|
414
|
+
def initialize(tableresulttype=nil, resulttype=nil, ignorefailedpage=nil)
|
413
415
|
@TableResultType = tableresulttype
|
414
416
|
@ResultType = resulttype
|
417
|
+
@IgnoreFailedPage = ignorefailedpage
|
415
418
|
end
|
416
419
|
|
417
420
|
def deserialize(params)
|
418
421
|
@TableResultType = params['TableResultType']
|
419
422
|
@ResultType = params['ResultType']
|
423
|
+
@IgnoreFailedPage = params['IgnoreFailedPage']
|
420
424
|
end
|
421
425
|
end
|
422
426
|
|
423
427
|
# CreateReconstructDocumentFlow请求参数结构体
|
424
428
|
class CreateReconstructDocumentFlowRequest < TencentCloud::Common::AbstractModel
|
425
|
-
# @param FileType:
|
426
|
-
|
427
|
-
# **支持的文件类型:**
|
428
|
-
# - `PDF`、`DOC`、`DOCX`、`XLS`、`XLSX`、`PPT`、`PPTX`、`MD`、`TXT`、`PNG`、`JPG`、`JPEG`、`CSV`、`HTML`、`EPUB`、`BMP`、`GIF`、`WEBP`、`HEIC`、`EPS`、`ICNS`、`IM`、`PCX`、`PPM`、`TIFF`、`XBM`、`HEIF`、`JP2`
|
429
|
-
|
430
|
-
# **支持的文件大小:**
|
431
|
-
# - `PDF` 最大300M
|
432
|
-
# - `DOCX`、`DOC`、`PPT`、`PPTX` 最大 200M
|
433
|
-
# - `TXT`、`MD` 最大10M
|
434
|
-
# - 其他 最大20M
|
429
|
+
# @param FileType: 文件类型。**支持的文件类型:**- `WPS、PDF`、`DOC`、`DOCX`、`XLS`、`XLSX`、`PPT`、`PPTX`、`MD`、`TXT`、`PNG`、`JPG`、`JPEG`、`CSV`、`HTML`、`EPUB`、`BMP`、`GIF`、`WEBP`、`HEIC`、`EPS`、`ICNS`、`IM`、`PCX`、`PPM`、`TIFF`、`XBM`、`HEIF`、`JP2`**支持的文件大小:** - `PDF` 最大300M - `WPS`、`DOCX`、`DOC`、`PPT`、`PPTX` 最大 200M - `TXT`、`MD` 最大10M - 其他 最大20M
|
435
430
|
# @type FileType: String
|
436
|
-
# @param FileUrl:
|
437
|
-
#
|
431
|
+
# @param FileUrl: 说明:文件的 URL 地址。
|
432
|
+
# 备注:文件存储于腾讯云的 URL 可保障更高的下载速度和稳定性,建议文件存储于腾讯云。 非腾讯云存储的 URL 速度和稳定性可能受一定影响。
|
438
433
|
# 参考:[腾讯云COS文档](https://cloud.tencent.com/document/product/436/7749)
|
439
434
|
# @type FileUrl: String
|
440
435
|
# @param FileBase64: 文件的 Base64 值。
|
@@ -443,13 +438,17 @@ module TencentCloud
|
|
443
438
|
# 支持的图片像素:单边介于20-10000px之间。
|
444
439
|
# 文件的 FileUrl、FileBase64 必须提供一个,如果都提供,只使用 FileUrl。
|
445
440
|
# @type FileBase64: String
|
446
|
-
# @param FileStartPageNumber:
|
447
|
-
#
|
441
|
+
# @param FileStartPageNumber: 说明:文档的起始页码。
|
442
|
+
# 备注:当传入文件是PDF、PDF、PPT、PPTX、DOC类型时,用来指定识别的起始页码,识别的页码包含当前值。
|
443
|
+
# 默认值:无
|
448
444
|
# @type FileStartPageNumber: Integer
|
449
|
-
# @param FileEndPageNumber:
|
450
|
-
#
|
445
|
+
# @param FileEndPageNumber: 说明:文档的结束页码。
|
446
|
+
# 备注:当传入文件是PDF、PDF、PPT、PPTX、DOC类型时,用来指定识别的结束页码,识别的页码包含当前值。
|
447
|
+
# 默认值:无
|
451
448
|
# @type FileEndPageNumber: Integer
|
452
|
-
# @param Config:
|
449
|
+
# @param Config: 说明:创建文档解析任务配置信息。
|
450
|
+
# 备注:可设置结果的返回格式
|
451
|
+
# 默认值:无
|
453
452
|
# @type Config: :class:`Tencentcloud::Lkeap.v20240522.models.CreateReconstructDocumentFlowConfig`
|
454
453
|
|
455
454
|
attr_accessor :FileType, :FileUrl, :FileBase64, :FileStartPageNumber, :FileEndPageNumber, :Config
|
@@ -516,19 +515,22 @@ module TencentCloud
|
|
516
515
|
# @type EnableMllm: Boolean
|
517
516
|
# @param MaxChunkSize: 最大分片长度
|
518
517
|
# @type MaxChunkSize: Integer
|
518
|
+
# @param IgnoreFailedPage: 是否忽略返回失败页码
|
519
|
+
# @type IgnoreFailedPage: Boolean
|
519
520
|
|
520
|
-
attr_accessor :TableResultType, :ResultType, :EnableMllm, :MaxChunkSize
|
521
|
+
attr_accessor :TableResultType, :ResultType, :EnableMllm, :MaxChunkSize, :IgnoreFailedPage
|
521
522
|
extend Gem::Deprecate
|
522
523
|
deprecate :TableResultType, :none, 2025, 7
|
523
524
|
deprecate :TableResultType=, :none, 2025, 7
|
524
525
|
deprecate :ResultType, :none, 2025, 7
|
525
526
|
deprecate :ResultType=, :none, 2025, 7
|
526
527
|
|
527
|
-
def initialize(tableresulttype=nil, resulttype=nil, enablemllm=nil, maxchunksize=nil)
|
528
|
+
def initialize(tableresulttype=nil, resulttype=nil, enablemllm=nil, maxchunksize=nil, ignorefailedpage=nil)
|
528
529
|
@TableResultType = tableresulttype
|
529
530
|
@ResultType = resulttype
|
530
531
|
@EnableMllm = enablemllm
|
531
532
|
@MaxChunkSize = maxchunksize
|
533
|
+
@IgnoreFailedPage = ignorefailedpage
|
532
534
|
end
|
533
535
|
|
534
536
|
def deserialize(params)
|
@@ -536,21 +538,13 @@ module TencentCloud
|
|
536
538
|
@ResultType = params['ResultType']
|
537
539
|
@EnableMllm = params['EnableMllm']
|
538
540
|
@MaxChunkSize = params['MaxChunkSize']
|
541
|
+
@IgnoreFailedPage = params['IgnoreFailedPage']
|
539
542
|
end
|
540
543
|
end
|
541
544
|
|
542
545
|
# CreateSplitDocumentFlow请求参数结构体
|
543
546
|
class CreateSplitDocumentFlowRequest < TencentCloud::Common::AbstractModel
|
544
|
-
# @param FileType:
|
545
|
-
|
546
|
-
# **支持的文件类型:**
|
547
|
-
# - `PDF`、`DOC`、`DOCX`、`XLS`、`XLSX`、`PPT`、`PPTX`、`MD`、`TXT`、`PNG`、`JPG`、`JPEG`、`CSV`、`HTML`、`EPUB`
|
548
|
-
|
549
|
-
# **支持的文件大小:**
|
550
|
-
# - `PDF` 最大300M
|
551
|
-
# - `DOCX`、`DOC`、`PPT`、`PPTX` 最大 200M
|
552
|
-
# - `TXT`、`MD` 最大10M
|
553
|
-
# - 其他 最大20M
|
547
|
+
# @param FileType: 文件类型。**支持的文件类型:**- `WPS`、`PDF`、`DOC`、`DOCX`、`XLS`、`XLSX`、`PPT`、`PPTX`、`MD`、`TXT`、`PNG`、`JPG`、`JPEG`、`CSV`、`HTML`、`EPUB`**支持的文件大小:** - `PDF` 最大300M - `WPS`、`DOCX`、`DOC`、`PPT`、`PPTX` 最大 200M - `TXT`、`MD` 最大10M - 其他 最大20M
|
554
548
|
# @type FileType: String
|
555
549
|
# @param FileUrl: 文件的 URL 地址。
|
556
550
|
# 文件存储于腾讯云的 URL 可保障更高的下载速度和稳定性,建议文件存储于腾讯云。 非腾讯云存储的 URL 速度和稳定性可能受一定影响。
|
@@ -923,18 +917,24 @@ module TencentCloud
|
|
923
917
|
# @type SplitTokens: Integer
|
924
918
|
# @param MllmTokens: mllm消耗的token数
|
925
919
|
# @type MllmTokens: Integer
|
920
|
+
# @param SuccessPageNum: 解析成功页数
|
921
|
+
# @type SuccessPageNum: Integer
|
922
|
+
# @param FailPageNum: 解析失败页数
|
923
|
+
# @type FailPageNum: Integer
|
926
924
|
|
927
|
-
attr_accessor :PageNumber, :TotalToken, :TotalTokens, :SplitTokens, :MllmTokens
|
925
|
+
attr_accessor :PageNumber, :TotalToken, :TotalTokens, :SplitTokens, :MllmTokens, :SuccessPageNum, :FailPageNum
|
928
926
|
extend Gem::Deprecate
|
929
927
|
deprecate :TotalToken, :none, 2025, 7
|
930
928
|
deprecate :TotalToken=, :none, 2025, 7
|
931
929
|
|
932
|
-
def initialize(pagenumber=nil, totaltoken=nil, totaltokens=nil, splittokens=nil, mllmtokens=nil)
|
930
|
+
def initialize(pagenumber=nil, totaltoken=nil, totaltokens=nil, splittokens=nil, mllmtokens=nil, successpagenum=nil, failpagenum=nil)
|
933
931
|
@PageNumber = pagenumber
|
934
932
|
@TotalToken = totaltoken
|
935
933
|
@TotalTokens = totaltokens
|
936
934
|
@SplitTokens = splittokens
|
937
935
|
@MllmTokens = mllmtokens
|
936
|
+
@SuccessPageNum = successpagenum
|
937
|
+
@FailPageNum = failpagenum
|
938
938
|
end
|
939
939
|
|
940
940
|
def deserialize(params)
|
@@ -943,6 +943,8 @@ module TencentCloud
|
|
943
943
|
@TotalTokens = params['TotalTokens']
|
944
944
|
@SplitTokens = params['SplitTokens']
|
945
945
|
@MllmTokens = params['MllmTokens']
|
946
|
+
@SuccessPageNum = params['SuccessPageNum']
|
947
|
+
@FailPageNum = params['FailPageNum']
|
946
948
|
end
|
947
949
|
end
|
948
950
|
|
@@ -1055,7 +1057,8 @@ module TencentCloud
|
|
1055
1057
|
|
1056
1058
|
# GetReconstructDocumentResult请求参数结构体
|
1057
1059
|
class GetReconstructDocumentResultRequest < TencentCloud::Common::AbstractModel
|
1058
|
-
# @param TaskId:
|
1060
|
+
# @param TaskId: 说明:解析任务ID
|
1061
|
+
# 备注:仅支持单个任务ID
|
1059
1062
|
# @type TaskId: String
|
1060
1063
|
|
1061
1064
|
attr_accessor :TaskId
|
@@ -1082,15 +1085,18 @@ module TencentCloud
|
|
1082
1085
|
# @type DocumentRecognizeResultUrl: String
|
1083
1086
|
# @param FailedPages: 文档解析失败的页码
|
1084
1087
|
# @type FailedPages: Array
|
1088
|
+
# @param Usage: 文档拆分任务的用量
|
1089
|
+
# @type Usage: :class:`Tencentcloud::Lkeap.v20240522.models.DocumentUsage`
|
1085
1090
|
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
1086
1091
|
# @type RequestId: String
|
1087
1092
|
|
1088
|
-
attr_accessor :Status, :DocumentRecognizeResultUrl, :FailedPages, :RequestId
|
1093
|
+
attr_accessor :Status, :DocumentRecognizeResultUrl, :FailedPages, :Usage, :RequestId
|
1089
1094
|
|
1090
|
-
def initialize(status=nil, documentrecognizeresulturl=nil, failedpages=nil, requestid=nil)
|
1095
|
+
def initialize(status=nil, documentrecognizeresulturl=nil, failedpages=nil, usage=nil, requestid=nil)
|
1091
1096
|
@Status = status
|
1092
1097
|
@DocumentRecognizeResultUrl = documentrecognizeresulturl
|
1093
1098
|
@FailedPages = failedpages
|
1099
|
+
@Usage = usage
|
1094
1100
|
@RequestId = requestid
|
1095
1101
|
end
|
1096
1102
|
|
@@ -1105,6 +1111,10 @@ module TencentCloud
|
|
1105
1111
|
@FailedPages << reconstructdocumentfailedpage_tmp
|
1106
1112
|
end
|
1107
1113
|
end
|
1114
|
+
unless params['Usage'].nil?
|
1115
|
+
@Usage = DocumentUsage.new
|
1116
|
+
@Usage.deserialize(params['Usage'])
|
1117
|
+
end
|
1108
1118
|
@RequestId = params['RequestId']
|
1109
1119
|
end
|
1110
1120
|
end
|
@@ -1698,14 +1708,17 @@ module TencentCloud
|
|
1698
1708
|
# @type ReturnPageFormat: Boolean
|
1699
1709
|
# @param PageFormat: 自定义输出页码样式,{{p}}为页码占位符,开启ReturnPageFormat生效。未填默认样式:<page_num>page {{p}}</page_num>
|
1700
1710
|
# @type PageFormat: String
|
1711
|
+
# @param IgnoreFailedPage: 是否忽略失败页,返回已成功的页数据
|
1712
|
+
# @type IgnoreFailedPage: Boolean
|
1701
1713
|
|
1702
|
-
attr_accessor :TableResultType, :MarkdownImageResponseType, :ReturnPageFormat, :PageFormat
|
1714
|
+
attr_accessor :TableResultType, :MarkdownImageResponseType, :ReturnPageFormat, :PageFormat, :IgnoreFailedPage
|
1703
1715
|
|
1704
|
-
def initialize(tableresulttype=nil, markdownimageresponsetype=nil, returnpageformat=nil, pageformat=nil)
|
1716
|
+
def initialize(tableresulttype=nil, markdownimageresponsetype=nil, returnpageformat=nil, pageformat=nil, ignorefailedpage=nil)
|
1705
1717
|
@TableResultType = tableresulttype
|
1706
1718
|
@MarkdownImageResponseType = markdownimageresponsetype
|
1707
1719
|
@ReturnPageFormat = returnpageformat
|
1708
1720
|
@PageFormat = pageformat
|
1721
|
+
@IgnoreFailedPage = ignorefailedpage
|
1709
1722
|
end
|
1710
1723
|
|
1711
1724
|
def deserialize(params)
|
@@ -1713,34 +1726,36 @@ module TencentCloud
|
|
1713
1726
|
@MarkdownImageResponseType = params['MarkdownImageResponseType']
|
1714
1727
|
@ReturnPageFormat = params['ReturnPageFormat']
|
1715
1728
|
@PageFormat = params['PageFormat']
|
1729
|
+
@IgnoreFailedPage = params['IgnoreFailedPage']
|
1716
1730
|
end
|
1717
1731
|
end
|
1718
1732
|
|
1719
1733
|
# ReconstructDocumentSSE请求参数结构体
|
1720
1734
|
class ReconstructDocumentSSERequest < TencentCloud::Common::AbstractModel
|
1721
|
-
# @param FileType:
|
1722
|
-
# **支持的文件类型**: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
|
1723
|
-
# **支持的文件大小**:
|
1724
|
-
# - PDF、DOC、DOCX、PPT、PPTX 支持100M
|
1725
|
-
# - MD、TXT、XLS、XLSX、CSV 支持10M
|
1726
|
-
# - 其他支持20M
|
1735
|
+
# @param FileType: 支持解析的文件类型。**支持的文件类型**:WPS、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**支持的文件大小**:- WPS、PDF、DOC、DOCX、PPT、PPTX 支持100M- MD、TXT、XLS、XLSX、CSV 支持10M- 其他支持20M
|
1727
1736
|
# @type FileType: String
|
1728
|
-
# @param FileUrl: 文件的 URL
|
1729
|
-
# 文件存储于腾讯云的 URL 可保障更高的下载速度和稳定性,建议文件存储于腾讯云。 非腾讯云存储的 URL 速度和稳定性可能受一定影响。
|
1737
|
+
# @param FileUrl: 文件的 URL 地址。文件存储于腾讯云的 URL 可保障更高的下载速度和稳定性,建议文件存储于腾讯云。 非腾讯云存储的 URL 速度和稳定性可能受一定影响。文件的 FileUrl、FileBase64 必须提供一个,如果都提供,只使用 FileUrl。
|
1730
1738
|
# 参考:[腾讯云COS文档](https://cloud.tencent.com/document/product/436/7749)
|
1739
|
+
|
1740
|
+
# 默认值:无
|
1731
1741
|
# @type FileUrl: String
|
1732
|
-
# @param FileBase64:
|
1733
|
-
#
|
1734
|
-
# 支持的图片像素:单边介于20-10000px
|
1735
|
-
|
1742
|
+
# @param FileBase64: 说明:文件的 Base64 值。
|
1743
|
+
# 备注:支持的文件大小:所下载文件经Base64编码后不超过 8M。文件下载时间不超过 3 秒。
|
1744
|
+
# 支持的图片像素:单边介于20-10000px之间。文件的 FileUrl、FileBase64 必须提供一个,如果都提供,只使用 FileUrl。
|
1745
|
+
|
1746
|
+
# 默认值:无
|
1736
1747
|
# @type FileBase64: String
|
1737
|
-
# @param FileStartPageNumber:
|
1738
|
-
#
|
1748
|
+
# @param FileStartPageNumber: 说明:文档的起始页码。
|
1749
|
+
# 备注:当传入文件是PDF、PDF、PPT、PPTX、DOC类型时,用来指定识别的起始页码,识别的页码包含当前值。
|
1750
|
+
# 默认值:无
|
1739
1751
|
# @type FileStartPageNumber: Integer
|
1740
|
-
# @param FileEndPageNumber:
|
1741
|
-
#
|
1752
|
+
# @param FileEndPageNumber: 说明:文档的结束页码。
|
1753
|
+
# 备注:当传入文件是PDF、PDF、PPT、PPTX、DOC类型时,用来指定识别的结束页码,识别的页码包含当前值。
|
1754
|
+
# 默认值:无
|
1742
1755
|
# @type FileEndPageNumber: Integer
|
1743
|
-
# @param Config:
|
1756
|
+
# @param Config: 说明:文档解析配置信息
|
1757
|
+
# 备注:可设置返回markdown结果的格式
|
1758
|
+
# 默认值:无
|
1744
1759
|
# @type Config: :class:`Tencentcloud::Lkeap.v20240522.models.ReconstructDocumentSSEConfig`
|
1745
1760
|
|
1746
1761
|
attr_accessor :FileType, :FileUrl, :FileBase64, :FileStartPageNumber, :FileEndPageNumber, :Config
|
@@ -1771,30 +1786,34 @@ module TencentCloud
|
|
1771
1786
|
class ReconstructDocumentSSEResponse < TencentCloud::Common::AbstractModel
|
1772
1787
|
# @param TaskId: 任务ID。本次请求的唯一标识
|
1773
1788
|
# @type TaskId: String
|
1774
|
-
# @param ResponseType: 响应类型。1:返回进度信息,2:返回解析结果
|
1789
|
+
# @param ResponseType: 响应类型。1:返回进度信息, 2:返回解析结果
|
1775
1790
|
# @type ResponseType: String
|
1776
1791
|
# @param Progress: 进度。0~100
|
1777
1792
|
# @type Progress: String
|
1778
1793
|
# @param ProgressMessage: 进度信息。
|
1779
1794
|
# @type ProgressMessage: String
|
1780
|
-
# @param DocumentRecognizeResultUrl:
|
1781
|
-
# 文件类型为zip压缩包,下载链接有效期30分钟。
|
1782
|
-
# 压缩包内包含*.md、*.json以及images文件夹。
|
1795
|
+
# @param DocumentRecognizeResultUrl: 文档解析结果的临时下载地址。文件类型为zip压缩包,下载链接有效期30分钟。压缩包内包含*.md、*.json以及images文件夹。
|
1783
1796
|
# @type DocumentRecognizeResultUrl: String
|
1784
1797
|
# @param FailedPages: 文档解析失败的页码。
|
1785
1798
|
# @type FailedPages: Array
|
1799
|
+
# @param FailPageNum: 文档解析失败页数
|
1800
|
+
# @type FailPageNum: Integer
|
1801
|
+
# @param SuccessPageNum: 文档解析成功页数
|
1802
|
+
# @type SuccessPageNum: Integer
|
1786
1803
|
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。本接口为流式响应接口,当请求成功时,RequestId 会被放在 HTTP 响应的 Header "X-TC-RequestId" 中。
|
1787
1804
|
# @type RequestId: String
|
1788
1805
|
|
1789
|
-
attr_accessor :TaskId, :ResponseType, :Progress, :ProgressMessage, :DocumentRecognizeResultUrl, :FailedPages, :RequestId
|
1806
|
+
attr_accessor :TaskId, :ResponseType, :Progress, :ProgressMessage, :DocumentRecognizeResultUrl, :FailedPages, :FailPageNum, :SuccessPageNum, :RequestId
|
1790
1807
|
|
1791
|
-
def initialize(taskid=nil, responsetype=nil, progress=nil, progressmessage=nil, documentrecognizeresulturl=nil, failedpages=nil, requestid=nil)
|
1808
|
+
def initialize(taskid=nil, responsetype=nil, progress=nil, progressmessage=nil, documentrecognizeresulturl=nil, failedpages=nil, failpagenum=nil, successpagenum=nil, requestid=nil)
|
1792
1809
|
@TaskId = taskid
|
1793
1810
|
@ResponseType = responsetype
|
1794
1811
|
@Progress = progress
|
1795
1812
|
@ProgressMessage = progressmessage
|
1796
1813
|
@DocumentRecognizeResultUrl = documentrecognizeresulturl
|
1797
1814
|
@FailedPages = failedpages
|
1815
|
+
@FailPageNum = failpagenum
|
1816
|
+
@SuccessPageNum = successpagenum
|
1798
1817
|
@RequestId = requestid
|
1799
1818
|
end
|
1800
1819
|
|
@@ -1812,6 +1831,8 @@ module TencentCloud
|
|
1812
1831
|
@FailedPages << reconstructdocumentfailedpage_tmp
|
1813
1832
|
end
|
1814
1833
|
end
|
1834
|
+
@FailPageNum = params['FailPageNum']
|
1835
|
+
@SuccessPageNum = params['SuccessPageNum']
|
1815
1836
|
@RequestId = params['RequestId']
|
1816
1837
|
end
|
1817
1838
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tencentcloud-sdk-lkeap
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0.
|
4
|
+
version: 3.0.1103
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tencent Cloud
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2025-07-
|
11
|
+
date: 2025-07-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|