tencentcloud-sdk-lke 3.0.846 → 3.0.847
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/v20231130/client.rb +72 -0
- data/lib/v20231130/models.rb +416 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1e74f8a8a376369e77db813ff0aecb939f11913d
|
4
|
+
data.tar.gz: 392f0d799e9f91f6561ea17a636b42f0bc3a35ef
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7de0e036ca27ddaa8a17357d74f7399236b1f44e32da8cafdc1cd230f6cc29e604c3afdbf30bd61a9e029d04cabfda5548b75a277cbaa1572b47e062d0671563
|
7
|
+
data.tar.gz: 4a55293609557967bbddf1089d4f545814bd2440023f37c314ca6ebbb9ea6d63e8f7e80495613b2c1002c9828ccb8b6c979bee5b8482cb0f33a25a343b82d3ae
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.847
|
data/lib/v20231130/client.rb
CHANGED
@@ -197,6 +197,30 @@ module TencentCloud
|
|
197
197
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
198
198
|
end
|
199
199
|
|
200
|
+
# 文档解析,异步接口。
|
201
|
+
|
202
|
+
# @param request: Request instance for CreateReconstructDocumentFlow.
|
203
|
+
# @type request: :class:`Tencentcloud::lke::V20231130::CreateReconstructDocumentFlowRequest`
|
204
|
+
# @rtype: :class:`Tencentcloud::lke::V20231130::CreateReconstructDocumentFlowResponse`
|
205
|
+
def CreateReconstructDocumentFlow(request)
|
206
|
+
body = send_request('CreateReconstructDocumentFlow', request.serialize)
|
207
|
+
response = JSON.parse(body)
|
208
|
+
if response['Response'].key?('Error') == false
|
209
|
+
model = CreateReconstructDocumentFlowResponse.new
|
210
|
+
model.deserialize(response['Response'])
|
211
|
+
model
|
212
|
+
else
|
213
|
+
code = response['Response']['Error']['Code']
|
214
|
+
message = response['Response']['Error']['Message']
|
215
|
+
reqid = response['Response']['RequestId']
|
216
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
217
|
+
end
|
218
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
219
|
+
raise e
|
220
|
+
rescue StandardError => e
|
221
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
222
|
+
end
|
223
|
+
|
200
224
|
# 创建拒答问题
|
201
225
|
|
202
226
|
# @param request: Request instance for CreateRejectedQuestion.
|
@@ -870,6 +894,30 @@ module TencentCloud
|
|
870
894
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
871
895
|
end
|
872
896
|
|
897
|
+
# 获取文档解析任务执行结果
|
898
|
+
|
899
|
+
# @param request: Request instance for GetReconstructDocumentResult.
|
900
|
+
# @type request: :class:`Tencentcloud::lke::V20231130::GetReconstructDocumentResultRequest`
|
901
|
+
# @rtype: :class:`Tencentcloud::lke::V20231130::GetReconstructDocumentResultResponse`
|
902
|
+
def GetReconstructDocumentResult(request)
|
903
|
+
body = send_request('GetReconstructDocumentResult', request.serialize)
|
904
|
+
response = JSON.parse(body)
|
905
|
+
if response['Response'].key?('Error') == false
|
906
|
+
model = GetReconstructDocumentResultResponse.new
|
907
|
+
model.deserialize(response['Response'])
|
908
|
+
model
|
909
|
+
else
|
910
|
+
code = response['Response']['Error']['Code']
|
911
|
+
message = response['Response']['Error']['Message']
|
912
|
+
reqid = response['Response']['RequestId']
|
913
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
914
|
+
end
|
915
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
916
|
+
raise e
|
917
|
+
rescue StandardError => e
|
918
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
919
|
+
end
|
920
|
+
|
873
921
|
# 获取任务状态
|
874
922
|
|
875
923
|
# @param request: Request instance for GetTaskStatus.
|
@@ -1639,6 +1687,30 @@ module TencentCloud
|
|
1639
1687
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1640
1688
|
end
|
1641
1689
|
|
1690
|
+
# 支持将图片或PDF文件转换成Markdown格式文件,可解析包括表格、公式、图片、标题、段落、页眉、页脚等内容元素,并将内容智能转换成阅读顺序。
|
1691
|
+
|
1692
|
+
# @param request: Request instance for ReconstructDocument.
|
1693
|
+
# @type request: :class:`Tencentcloud::lke::V20231130::ReconstructDocumentRequest`
|
1694
|
+
# @rtype: :class:`Tencentcloud::lke::V20231130::ReconstructDocumentResponse`
|
1695
|
+
def ReconstructDocument(request)
|
1696
|
+
body = send_request('ReconstructDocument', request.serialize)
|
1697
|
+
response = JSON.parse(body)
|
1698
|
+
if response['Response'].key?('Error') == false
|
1699
|
+
model = ReconstructDocumentResponse.new
|
1700
|
+
model.deserialize(response['Response'])
|
1701
|
+
model
|
1702
|
+
else
|
1703
|
+
code = response['Response']['Error']['Code']
|
1704
|
+
message = response['Response']['Error']['Message']
|
1705
|
+
reqid = response['Response']['RequestId']
|
1706
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1707
|
+
end
|
1708
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1709
|
+
raise e
|
1710
|
+
rescue StandardError => e
|
1711
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1712
|
+
end
|
1713
|
+
|
1642
1714
|
# 重置会话
|
1643
1715
|
|
1644
1716
|
# @param request: Request instance for ResetSession.
|
data/lib/v20231130/models.rb
CHANGED
@@ -538,6 +538,26 @@ module TencentCloud
|
|
538
538
|
end
|
539
539
|
end
|
540
540
|
|
541
|
+
# 坐标
|
542
|
+
class Coord < TencentCloud::Common::AbstractModel
|
543
|
+
# @param X: 横坐标
|
544
|
+
# @type X: Integer
|
545
|
+
# @param Y: 纵坐标
|
546
|
+
# @type Y: Integer
|
547
|
+
|
548
|
+
attr_accessor :X, :Y
|
549
|
+
|
550
|
+
def initialize(x=nil, y=nil)
|
551
|
+
@X = x
|
552
|
+
@Y = y
|
553
|
+
end
|
554
|
+
|
555
|
+
def deserialize(params)
|
556
|
+
@X = params['X']
|
557
|
+
@Y = params['Y']
|
558
|
+
end
|
559
|
+
end
|
560
|
+
|
541
561
|
# CreateApp请求参数结构体
|
542
562
|
class CreateAppRequest < TencentCloud::Common::AbstractModel
|
543
563
|
# @param AppType: 应用类型;knowledge_qa-知识问答管理;summary-知识摘要;classifys-知识标签提取
|
@@ -824,6 +844,80 @@ module TencentCloud
|
|
824
844
|
end
|
825
845
|
end
|
826
846
|
|
847
|
+
# 创建智能文档解析任务的配置信息
|
848
|
+
class CreateReconstructDocumentFlowConfig < TencentCloud::Common::AbstractModel
|
849
|
+
# @param TableResultType: Markdown文件中表格返回的形式
|
850
|
+
# 0,表格以MD形式返回
|
851
|
+
# 1,表格以HTML形式返回
|
852
|
+
# 默认为1
|
853
|
+
# @type TableResultType: String
|
854
|
+
|
855
|
+
attr_accessor :TableResultType
|
856
|
+
|
857
|
+
def initialize(tableresulttype=nil)
|
858
|
+
@TableResultType = tableresulttype
|
859
|
+
end
|
860
|
+
|
861
|
+
def deserialize(params)
|
862
|
+
@TableResultType = params['TableResultType']
|
863
|
+
end
|
864
|
+
end
|
865
|
+
|
866
|
+
# CreateReconstructDocumentFlow请求参数结构体
|
867
|
+
class CreateReconstructDocumentFlowRequest < TencentCloud::Common::AbstractModel
|
868
|
+
# @param FileBase64: 图片的 Base64 值。 支持的图片格式:PNG、JPG、JPEG、PDF,暂不支持 GIF 格式。 支持的图片大小:所下载图片经Base64编码后不超过 8M。图片下载时间不超过 3 秒。 支持的图片像素:单边介于20-10000px之间。 图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
|
869
|
+
# @type FileBase64: String
|
870
|
+
# @param FileUrl: 图片的 Url 地址。 支持的图片格式:PNG、JPG、JPEG、PDF,暂不支持 GIF 格式。 支持的图片大小:所下载图片经 Base64 编码后不超过 8M。图片下载时间不超过 3 秒。 支持的图片像素:单边介于20-10000px之间。 图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。 非腾讯云存储的 Url 速度和稳定性可能受一定影响。
|
871
|
+
# @type FileUrl: String
|
872
|
+
# @param FileStartPageNumber: 当传入文件是PDF类型(IsPdf=true)时,用来指定pdf识别的起始页码,识别的页码包含当前值。
|
873
|
+
# @type FileStartPageNumber: Integer
|
874
|
+
# @param FileEndPageNumber: 当传入文件是PDF类型(IsPdf=true)时,用来指定pdf识别的结束页码,识别的页码包含当前值。
|
875
|
+
# @type FileEndPageNumber: Integer
|
876
|
+
# @param Config: 创建智能文档识别任务配置信息
|
877
|
+
# @type Config: :class:`Tencentcloud::Lke.v20231130.models.CreateReconstructDocumentFlowConfig`
|
878
|
+
|
879
|
+
attr_accessor :FileBase64, :FileUrl, :FileStartPageNumber, :FileEndPageNumber, :Config
|
880
|
+
|
881
|
+
def initialize(filebase64=nil, fileurl=nil, filestartpagenumber=nil, fileendpagenumber=nil, config=nil)
|
882
|
+
@FileBase64 = filebase64
|
883
|
+
@FileUrl = fileurl
|
884
|
+
@FileStartPageNumber = filestartpagenumber
|
885
|
+
@FileEndPageNumber = fileendpagenumber
|
886
|
+
@Config = config
|
887
|
+
end
|
888
|
+
|
889
|
+
def deserialize(params)
|
890
|
+
@FileBase64 = params['FileBase64']
|
891
|
+
@FileUrl = params['FileUrl']
|
892
|
+
@FileStartPageNumber = params['FileStartPageNumber']
|
893
|
+
@FileEndPageNumber = params['FileEndPageNumber']
|
894
|
+
unless params['Config'].nil?
|
895
|
+
@Config = CreateReconstructDocumentFlowConfig.new
|
896
|
+
@Config.deserialize(params['Config'])
|
897
|
+
end
|
898
|
+
end
|
899
|
+
end
|
900
|
+
|
901
|
+
# CreateReconstructDocumentFlow返回参数结构体
|
902
|
+
class CreateReconstructDocumentFlowResponse < TencentCloud::Common::AbstractModel
|
903
|
+
# @param TaskId: 任务唯一id
|
904
|
+
# @type TaskId: String
|
905
|
+
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
906
|
+
# @type RequestId: String
|
907
|
+
|
908
|
+
attr_accessor :TaskId, :RequestId
|
909
|
+
|
910
|
+
def initialize(taskid=nil, requestid=nil)
|
911
|
+
@TaskId = taskid
|
912
|
+
@RequestId = requestid
|
913
|
+
end
|
914
|
+
|
915
|
+
def deserialize(params)
|
916
|
+
@TaskId = params['TaskId']
|
917
|
+
@RequestId = params['RequestId']
|
918
|
+
end
|
919
|
+
end
|
920
|
+
|
827
921
|
# CreateRejectedQuestion请求参数结构体
|
828
922
|
class CreateRejectedQuestionRequest < TencentCloud::Common::AbstractModel
|
829
923
|
# @param BotBizId: 机器人ID
|
@@ -1995,6 +2089,127 @@ module TencentCloud
|
|
1995
2089
|
end
|
1996
2090
|
end
|
1997
2091
|
|
2092
|
+
# 文档元素字段
|
2093
|
+
class DocumentElement < TencentCloud::Common::AbstractModel
|
2094
|
+
# @param Index: 文档元素索引
|
2095
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2096
|
+
# @type Index: Integer
|
2097
|
+
# @param Type: 元素类型,包括paragraph、table、formula、figure、title、header、footer、figure_text
|
2098
|
+
|
2099
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2100
|
+
# @type Type: String
|
2101
|
+
# @param Text: 元素内容,当type为figure或formula(公式识别关闭)时该字段内容为图片的位置
|
2102
|
+
|
2103
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2104
|
+
# @type Text: String
|
2105
|
+
# @param Polygon: 元素坐标,左上角(x1, y1),右上角(x2, y2),右下角(x3, y3),左下角(x4, y4)
|
2106
|
+
|
2107
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2108
|
+
# @type Polygon: :class:`Tencentcloud::Lke.v20231130.models.Polygon`
|
2109
|
+
# @param Level: 元素层级
|
2110
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2111
|
+
# @type Level: Integer
|
2112
|
+
# @param InsetImageName: 入参开启EnableInsetImage后返回,表示在InsetImagePackage中的内嵌图片名称
|
2113
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2114
|
+
# @type InsetImageName: String
|
2115
|
+
# @param Elements: 嵌套的文档元素信息,一般包含的是文档内嵌入图片的文字识别结果
|
2116
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2117
|
+
# @type Elements: Array
|
2118
|
+
|
2119
|
+
attr_accessor :Index, :Type, :Text, :Polygon, :Level, :InsetImageName, :Elements
|
2120
|
+
|
2121
|
+
def initialize(index=nil, type=nil, text=nil, polygon=nil, level=nil, insetimagename=nil, elements=nil)
|
2122
|
+
@Index = index
|
2123
|
+
@Type = type
|
2124
|
+
@Text = text
|
2125
|
+
@Polygon = polygon
|
2126
|
+
@Level = level
|
2127
|
+
@InsetImageName = insetimagename
|
2128
|
+
@Elements = elements
|
2129
|
+
end
|
2130
|
+
|
2131
|
+
def deserialize(params)
|
2132
|
+
@Index = params['Index']
|
2133
|
+
@Type = params['Type']
|
2134
|
+
@Text = params['Text']
|
2135
|
+
unless params['Polygon'].nil?
|
2136
|
+
@Polygon = Polygon.new
|
2137
|
+
@Polygon.deserialize(params['Polygon'])
|
2138
|
+
end
|
2139
|
+
@Level = params['Level']
|
2140
|
+
@InsetImageName = params['InsetImageName']
|
2141
|
+
unless params['Elements'].nil?
|
2142
|
+
@Elements = []
|
2143
|
+
params['Elements'].each do |i|
|
2144
|
+
documentelement_tmp = DocumentElement.new
|
2145
|
+
documentelement_tmp.deserialize(i)
|
2146
|
+
@Elements << documentelement_tmp
|
2147
|
+
end
|
2148
|
+
end
|
2149
|
+
end
|
2150
|
+
end
|
2151
|
+
|
2152
|
+
# 单页文档识别的内容
|
2153
|
+
class DocumentRecognizeInfo < TencentCloud::Common::AbstractModel
|
2154
|
+
# @param PageNumber: 输入PDF文件的页码,从1开始。输入图片的话值始终为1
|
2155
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2156
|
+
# @type PageNumber: Integer
|
2157
|
+
# @param Angle: 旋转角度
|
2158
|
+
|
2159
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2160
|
+
# @type Angle: Integer
|
2161
|
+
# @param Height: AI算法识别处理后的图片高度
|
2162
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2163
|
+
# @type Height: Integer
|
2164
|
+
# @param Width: AI算法识别处理后的图片宽度
|
2165
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2166
|
+
# @type Width: Integer
|
2167
|
+
# @param OriginHeight: 图片的原始高度,输入PDF文件则表示单页PDF转图片之后的图片高度
|
2168
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2169
|
+
# @type OriginHeight: Integer
|
2170
|
+
# @param OriginWidth: 图片的原始宽度,输入PDF文件则表示单页PDF转图片之后的图片宽度
|
2171
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2172
|
+
# @type OriginWidth: Integer
|
2173
|
+
# @param Elements: 文档元素信息
|
2174
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2175
|
+
# @type Elements: Array
|
2176
|
+
# @param RotatedAngle: 旋转角度
|
2177
|
+
|
2178
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2179
|
+
# @type RotatedAngle: Float
|
2180
|
+
|
2181
|
+
attr_accessor :PageNumber, :Angle, :Height, :Width, :OriginHeight, :OriginWidth, :Elements, :RotatedAngle
|
2182
|
+
|
2183
|
+
def initialize(pagenumber=nil, angle=nil, height=nil, width=nil, originheight=nil, originwidth=nil, elements=nil, rotatedangle=nil)
|
2184
|
+
@PageNumber = pagenumber
|
2185
|
+
@Angle = angle
|
2186
|
+
@Height = height
|
2187
|
+
@Width = width
|
2188
|
+
@OriginHeight = originheight
|
2189
|
+
@OriginWidth = originwidth
|
2190
|
+
@Elements = elements
|
2191
|
+
@RotatedAngle = rotatedangle
|
2192
|
+
end
|
2193
|
+
|
2194
|
+
def deserialize(params)
|
2195
|
+
@PageNumber = params['PageNumber']
|
2196
|
+
@Angle = params['Angle']
|
2197
|
+
@Height = params['Height']
|
2198
|
+
@Width = params['Width']
|
2199
|
+
@OriginHeight = params['OriginHeight']
|
2200
|
+
@OriginWidth = params['OriginWidth']
|
2201
|
+
unless params['Elements'].nil?
|
2202
|
+
@Elements = []
|
2203
|
+
params['Elements'].each do |i|
|
2204
|
+
documentelement_tmp = DocumentElement.new
|
2205
|
+
documentelement_tmp.deserialize(i)
|
2206
|
+
@Elements << documentelement_tmp
|
2207
|
+
end
|
2208
|
+
end
|
2209
|
+
@RotatedAngle = params['RotatedAngle']
|
2210
|
+
end
|
2211
|
+
end
|
2212
|
+
|
1998
2213
|
# 向量
|
1999
2214
|
class EmbeddingObject < TencentCloud::Common::AbstractModel
|
2000
2215
|
# @param Embedding: 向量
|
@@ -2495,6 +2710,57 @@ module TencentCloud
|
|
2495
2710
|
end
|
2496
2711
|
end
|
2497
2712
|
|
2713
|
+
# GetReconstructDocumentResult请求参数结构体
|
2714
|
+
class GetReconstructDocumentResultRequest < TencentCloud::Common::AbstractModel
|
2715
|
+
# @param TaskId: 任务唯一id
|
2716
|
+
# @type TaskId: String
|
2717
|
+
|
2718
|
+
attr_accessor :TaskId
|
2719
|
+
|
2720
|
+
def initialize(taskid=nil)
|
2721
|
+
@TaskId = taskid
|
2722
|
+
end
|
2723
|
+
|
2724
|
+
def deserialize(params)
|
2725
|
+
@TaskId = params['TaskId']
|
2726
|
+
end
|
2727
|
+
end
|
2728
|
+
|
2729
|
+
# GetReconstructDocumentResult返回参数结构体
|
2730
|
+
class GetReconstructDocumentResultResponse < TencentCloud::Common::AbstractModel
|
2731
|
+
# @param Status: 任务状态: Success->执行完成;Processing->执行中;Failed->执行失败;WaitExecute->等待执行;
|
2732
|
+
# @type Status: String
|
2733
|
+
# @param DocumentRecognizeResultUrl: 输入文件中嵌入的图片中文字内容的识别结果,存储在腾讯云cos的下载地址
|
2734
|
+
# @type DocumentRecognizeResultUrl: String
|
2735
|
+
# @param FailedPages: 还原失败的页
|
2736
|
+
# @type FailedPages: Array
|
2737
|
+
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
2738
|
+
# @type RequestId: String
|
2739
|
+
|
2740
|
+
attr_accessor :Status, :DocumentRecognizeResultUrl, :FailedPages, :RequestId
|
2741
|
+
|
2742
|
+
def initialize(status=nil, documentrecognizeresulturl=nil, failedpages=nil, requestid=nil)
|
2743
|
+
@Status = status
|
2744
|
+
@DocumentRecognizeResultUrl = documentrecognizeresulturl
|
2745
|
+
@FailedPages = failedpages
|
2746
|
+
@RequestId = requestid
|
2747
|
+
end
|
2748
|
+
|
2749
|
+
def deserialize(params)
|
2750
|
+
@Status = params['Status']
|
2751
|
+
@DocumentRecognizeResultUrl = params['DocumentRecognizeResultUrl']
|
2752
|
+
unless params['FailedPages'].nil?
|
2753
|
+
@FailedPages = []
|
2754
|
+
params['FailedPages'].each do |i|
|
2755
|
+
reconstructdocumentfailedpage_tmp = ReconstructDocumentFailedPage.new
|
2756
|
+
reconstructdocumentfailedpage_tmp.deserialize(i)
|
2757
|
+
@FailedPages << reconstructdocumentfailedpage_tmp
|
2758
|
+
end
|
2759
|
+
end
|
2760
|
+
@RequestId = params['RequestId']
|
2761
|
+
end
|
2762
|
+
end
|
2763
|
+
|
2498
2764
|
# GetTaskStatus请求参数结构体
|
2499
2765
|
class GetTaskStatusRequest < TencentCloud::Common::AbstractModel
|
2500
2766
|
# @param TaskId: 任务ID
|
@@ -4951,8 +5217,8 @@ module TencentCloud
|
|
4951
5217
|
|
4952
5218
|
attr_accessor :Name, :Url, :TaskId, :Policy, :Operate
|
4953
5219
|
extend Gem::Deprecate
|
4954
|
-
deprecate :Operate, :none, 2024,
|
4955
|
-
deprecate :Operate=, :none, 2024,
|
5220
|
+
deprecate :Operate, :none, 2024, 6
|
5221
|
+
deprecate :Operate=, :none, 2024, 6
|
4956
5222
|
|
4957
5223
|
def initialize(name=nil, url=nil, taskid=nil, policy=nil, operate=nil)
|
4958
5224
|
@Name = name
|
@@ -4991,6 +5257,47 @@ module TencentCloud
|
|
4991
5257
|
end
|
4992
5258
|
end
|
4993
5259
|
|
5260
|
+
# 文本的坐标,以四个顶点坐标表示
|
5261
|
+
# 注意:此字段可能返回 null,表示取不到有效值
|
5262
|
+
class Polygon < TencentCloud::Common::AbstractModel
|
5263
|
+
# @param LeftTop: 左上顶点坐标
|
5264
|
+
# @type LeftTop: :class:`Tencentcloud::Lke.v20231130.models.Coord`
|
5265
|
+
# @param RightTop: 右上顶点坐标
|
5266
|
+
# @type RightTop: :class:`Tencentcloud::Lke.v20231130.models.Coord`
|
5267
|
+
# @param RightBottom: 右下顶点坐标
|
5268
|
+
# @type RightBottom: :class:`Tencentcloud::Lke.v20231130.models.Coord`
|
5269
|
+
# @param LeftBottom: 左下顶点坐标
|
5270
|
+
# @type LeftBottom: :class:`Tencentcloud::Lke.v20231130.models.Coord`
|
5271
|
+
|
5272
|
+
attr_accessor :LeftTop, :RightTop, :RightBottom, :LeftBottom
|
5273
|
+
|
5274
|
+
def initialize(lefttop=nil, righttop=nil, rightbottom=nil, leftbottom=nil)
|
5275
|
+
@LeftTop = lefttop
|
5276
|
+
@RightTop = righttop
|
5277
|
+
@RightBottom = rightbottom
|
5278
|
+
@LeftBottom = leftbottom
|
5279
|
+
end
|
5280
|
+
|
5281
|
+
def deserialize(params)
|
5282
|
+
unless params['LeftTop'].nil?
|
5283
|
+
@LeftTop = Coord.new
|
5284
|
+
@LeftTop.deserialize(params['LeftTop'])
|
5285
|
+
end
|
5286
|
+
unless params['RightTop'].nil?
|
5287
|
+
@RightTop = Coord.new
|
5288
|
+
@RightTop.deserialize(params['RightTop'])
|
5289
|
+
end
|
5290
|
+
unless params['RightBottom'].nil?
|
5291
|
+
@RightBottom = Coord.new
|
5292
|
+
@RightBottom.deserialize(params['RightBottom'])
|
5293
|
+
end
|
5294
|
+
unless params['LeftBottom'].nil?
|
5295
|
+
@LeftBottom = Coord.new
|
5296
|
+
@LeftBottom.deserialize(params['LeftBottom'])
|
5297
|
+
end
|
5298
|
+
end
|
5299
|
+
end
|
5300
|
+
|
4994
5301
|
# 执行过程信息记录
|
4995
5302
|
class Procedure < TencentCloud::Common::AbstractModel
|
4996
5303
|
# @param Name: 执行过程英语名
|
@@ -5328,6 +5635,113 @@ module TencentCloud
|
|
5328
5635
|
end
|
5329
5636
|
end
|
5330
5637
|
|
5638
|
+
# ReconstructDocument配置选项
|
5639
|
+
class ReconstructDocumentConfig < TencentCloud::Common::AbstractModel
|
5640
|
+
# @param EnableInsetImage: 生成的Markdown中是否嵌入图片
|
5641
|
+
# @type EnableInsetImage: Boolean
|
5642
|
+
|
5643
|
+
attr_accessor :EnableInsetImage
|
5644
|
+
|
5645
|
+
def initialize(enableinsetimage=nil)
|
5646
|
+
@EnableInsetImage = enableinsetimage
|
5647
|
+
end
|
5648
|
+
|
5649
|
+
def deserialize(params)
|
5650
|
+
@EnableInsetImage = params['EnableInsetImage']
|
5651
|
+
end
|
5652
|
+
end
|
5653
|
+
|
5654
|
+
# 文档解析失败记录
|
5655
|
+
class ReconstructDocumentFailedPage < TencentCloud::Common::AbstractModel
|
5656
|
+
# @param PageNumber: 失败页码
|
5657
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
5658
|
+
# @type PageNumber: Integer
|
5659
|
+
|
5660
|
+
attr_accessor :PageNumber
|
5661
|
+
|
5662
|
+
def initialize(pagenumber=nil)
|
5663
|
+
@PageNumber = pagenumber
|
5664
|
+
end
|
5665
|
+
|
5666
|
+
def deserialize(params)
|
5667
|
+
@PageNumber = params['PageNumber']
|
5668
|
+
end
|
5669
|
+
end
|
5670
|
+
|
5671
|
+
# ReconstructDocument请求参数结构体
|
5672
|
+
class ReconstructDocumentRequest < TencentCloud::Common::AbstractModel
|
5673
|
+
# @param FileBase64: 图片的 Base64 值。 支持的图片格式:PNG、JPG、JPEG、PDF,暂不支持 GIF 格式。 支持的图片大小:所下载图片经Base64编码后不超过 8M。图片下载时间不超过 3 秒。 支持的图片像素:单边介于20-10000px之间。 图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
|
5674
|
+
# @type FileBase64: String
|
5675
|
+
# @param FileUrl: 图片的 Url 地址。 支持的图片格式:PNG、JPG、JPEG、PDF,暂不支持 GIF 格式。 支持的图片大小:所下载图片经 Base64 编码后不超过 8M。图片下载时间不超过 3 秒。 支持的图片像素:单边介于20-10000px之间。 图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。 非腾讯云存储的 Url 速度和稳定性可能受一定影响。
|
5676
|
+
# @type FileUrl: String
|
5677
|
+
# @param FileStartPageNumber: 当传入文件是PDF类型(IsPdf=true)时,用来指定pdf识别的起始页码,识别的页码包含当前值。
|
5678
|
+
# @type FileStartPageNumber: Integer
|
5679
|
+
# @param FileEndPageNumber: 当传入文件是PDF类型(IsPdf=true)时,用来指定pdf识别的结束页码,识别的页码包含当前值。
|
5680
|
+
# 单次调用,最多支持10页pdf的智能识别。
|
5681
|
+
# @type FileEndPageNumber: Integer
|
5682
|
+
# @param Config: 配置选项,支持配置是否在生成的Markdown中是否嵌入图片
|
5683
|
+
# @type Config: :class:`Tencentcloud::Lke.v20231130.models.ReconstructDocumentConfig`
|
5684
|
+
|
5685
|
+
attr_accessor :FileBase64, :FileUrl, :FileStartPageNumber, :FileEndPageNumber, :Config
|
5686
|
+
|
5687
|
+
def initialize(filebase64=nil, fileurl=nil, filestartpagenumber=nil, fileendpagenumber=nil, config=nil)
|
5688
|
+
@FileBase64 = filebase64
|
5689
|
+
@FileUrl = fileurl
|
5690
|
+
@FileStartPageNumber = filestartpagenumber
|
5691
|
+
@FileEndPageNumber = fileendpagenumber
|
5692
|
+
@Config = config
|
5693
|
+
end
|
5694
|
+
|
5695
|
+
def deserialize(params)
|
5696
|
+
@FileBase64 = params['FileBase64']
|
5697
|
+
@FileUrl = params['FileUrl']
|
5698
|
+
@FileStartPageNumber = params['FileStartPageNumber']
|
5699
|
+
@FileEndPageNumber = params['FileEndPageNumber']
|
5700
|
+
unless params['Config'].nil?
|
5701
|
+
@Config = ReconstructDocumentConfig.new
|
5702
|
+
@Config.deserialize(params['Config'])
|
5703
|
+
end
|
5704
|
+
end
|
5705
|
+
end
|
5706
|
+
|
5707
|
+
# ReconstructDocument返回参数结构体
|
5708
|
+
class ReconstructDocumentResponse < TencentCloud::Common::AbstractModel
|
5709
|
+
# @param MarkdownBase64: 识别生成的Markdown文件base64编码的字符串
|
5710
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
5711
|
+
# @type MarkdownBase64: String
|
5712
|
+
# @param InsetImagePackage: 输入文件中嵌入的图片放在一个文件夹中打包为.zip压缩文件,识别生成的Markdown文件通过路径关联插入本文件夹中的图片。
|
5713
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
5714
|
+
# @type InsetImagePackage: String
|
5715
|
+
# @param DocumentRecognizeInfo: 输入文件中嵌入的图片中文字内容的识别结果
|
5716
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
5717
|
+
# @type DocumentRecognizeInfo: Array
|
5718
|
+
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
5719
|
+
# @type RequestId: String
|
5720
|
+
|
5721
|
+
attr_accessor :MarkdownBase64, :InsetImagePackage, :DocumentRecognizeInfo, :RequestId
|
5722
|
+
|
5723
|
+
def initialize(markdownbase64=nil, insetimagepackage=nil, documentrecognizeinfo=nil, requestid=nil)
|
5724
|
+
@MarkdownBase64 = markdownbase64
|
5725
|
+
@InsetImagePackage = insetimagepackage
|
5726
|
+
@DocumentRecognizeInfo = documentrecognizeinfo
|
5727
|
+
@RequestId = requestid
|
5728
|
+
end
|
5729
|
+
|
5730
|
+
def deserialize(params)
|
5731
|
+
@MarkdownBase64 = params['MarkdownBase64']
|
5732
|
+
@InsetImagePackage = params['InsetImagePackage']
|
5733
|
+
unless params['DocumentRecognizeInfo'].nil?
|
5734
|
+
@DocumentRecognizeInfo = []
|
5735
|
+
params['DocumentRecognizeInfo'].each do |i|
|
5736
|
+
documentrecognizeinfo_tmp = DocumentRecognizeInfo.new
|
5737
|
+
documentrecognizeinfo_tmp.deserialize(i)
|
5738
|
+
@DocumentRecognizeInfo << documentrecognizeinfo_tmp
|
5739
|
+
end
|
5740
|
+
end
|
5741
|
+
@RequestId = params['RequestId']
|
5742
|
+
end
|
5743
|
+
end
|
5744
|
+
|
5331
5745
|
# 引用来源详情
|
5332
5746
|
class ReferDetail < TencentCloud::Common::AbstractModel
|
5333
5747
|
# @param ReferBizId: 引用ID
|