tencentcloud-sdk-es 3.0.1094 → 3.0.1115
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/v20250101/models.rb +44 -6
- 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: f9e3a5310ca0b64445cdae3207be4f6c7a6b4a66
|
4
|
+
data.tar.gz: 706c48ee4d7c7bf1cf5a11d45dc10ee9cd31087c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 17c1820a937103aa203311e8573ecbd560beae42d010dc3d6b04135f183a1f180f97fd1877a6b76cb25cbe99268f4bae78b01413f8d6d0b6e02949aefd665ac3
|
7
|
+
data.tar.gz: e84e18bd52d83b7a3265e3726deb7873118377a15dd8336dfa86dbf578e57aed3a59ce88bf720268b59ba85026053f817004f3211c4f037274c8a5ef3d4d1c1b
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.1115
|
data/lib/v20250101/models.rb
CHANGED
@@ -347,14 +347,20 @@ module TencentCloud
|
|
347
347
|
# @type FileContent: String
|
348
348
|
# @param FileName: 文件名称,当使用 base64上传的时候使用。
|
349
349
|
# @type FileName: String
|
350
|
+
# @param FileStartPageNumber: 文档的起始页码
|
351
|
+
# @type FileStartPageNumber: Integer
|
352
|
+
# @param FileEndPageNumber: 文档的结束页码
|
353
|
+
# @type FileEndPageNumber: Integer
|
350
354
|
|
351
|
-
attr_accessor :FileType, :FileUrl, :FileContent, :FileName
|
355
|
+
attr_accessor :FileType, :FileUrl, :FileContent, :FileName, :FileStartPageNumber, :FileEndPageNumber
|
352
356
|
|
353
|
-
def initialize(filetype=nil, fileurl=nil, filecontent=nil, filename=nil)
|
357
|
+
def initialize(filetype=nil, fileurl=nil, filecontent=nil, filename=nil, filestartpagenumber=nil, fileendpagenumber=nil)
|
354
358
|
@FileType = filetype
|
355
359
|
@FileUrl = fileurl
|
356
360
|
@FileContent = filecontent
|
357
361
|
@FileName = filename
|
362
|
+
@FileStartPageNumber = filestartpagenumber
|
363
|
+
@FileEndPageNumber = fileendpagenumber
|
358
364
|
end
|
359
365
|
|
360
366
|
def deserialize(params)
|
@@ -362,6 +368,8 @@ module TencentCloud
|
|
362
368
|
@FileUrl = params['FileUrl']
|
363
369
|
@FileContent = params['FileContent']
|
364
370
|
@FileName = params['FileName']
|
371
|
+
@FileStartPageNumber = params['FileStartPageNumber']
|
372
|
+
@FileEndPageNumber = params['FileEndPageNumber']
|
365
373
|
end
|
366
374
|
end
|
367
375
|
|
@@ -496,15 +504,18 @@ module TencentCloud
|
|
496
504
|
# @param FailedPages: 失败的页码。
|
497
505
|
# 注意:此字段可能返回 null,表示取不到有效值。
|
498
506
|
# @type FailedPages: Array
|
507
|
+
# @param Usage: 消耗页数
|
508
|
+
# @type Usage: :class:`Tencentcloud::Es.v20250101.models.PageUsage`
|
499
509
|
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
500
510
|
# @type RequestId: String
|
501
511
|
|
502
|
-
attr_accessor :Status, :DocumentParseResultUrl, :FailedPages, :RequestId
|
512
|
+
attr_accessor :Status, :DocumentParseResultUrl, :FailedPages, :Usage, :RequestId
|
503
513
|
|
504
|
-
def initialize(status=nil, documentparseresulturl=nil, failedpages=nil, requestid=nil)
|
514
|
+
def initialize(status=nil, documentparseresulturl=nil, failedpages=nil, usage=nil, requestid=nil)
|
505
515
|
@Status = status
|
506
516
|
@DocumentParseResultUrl = documentparseresulturl
|
507
517
|
@FailedPages = failedpages
|
518
|
+
@Usage = usage
|
508
519
|
@RequestId = requestid
|
509
520
|
end
|
510
521
|
|
@@ -512,6 +523,10 @@ module TencentCloud
|
|
512
523
|
@Status = params['Status']
|
513
524
|
@DocumentParseResultUrl = params['DocumentParseResultUrl']
|
514
525
|
@FailedPages = params['FailedPages']
|
526
|
+
unless params['Usage'].nil?
|
527
|
+
@Usage = PageUsage.new
|
528
|
+
@Usage.deserialize(params['Usage'])
|
529
|
+
end
|
515
530
|
@RequestId = params['RequestId']
|
516
531
|
end
|
517
532
|
end
|
@@ -630,6 +645,22 @@ module TencentCloud
|
|
630
645
|
end
|
631
646
|
end
|
632
647
|
|
648
|
+
# 消耗页数
|
649
|
+
class PageUsage < TencentCloud::Common::AbstractModel
|
650
|
+
# @param TotalPages: 消耗总页数
|
651
|
+
# @type TotalPages: Integer
|
652
|
+
|
653
|
+
attr_accessor :TotalPages
|
654
|
+
|
655
|
+
def initialize(totalpages=nil)
|
656
|
+
@TotalPages = totalpages
|
657
|
+
end
|
658
|
+
|
659
|
+
def deserialize(params)
|
660
|
+
@TotalPages = params['TotalPages']
|
661
|
+
end
|
662
|
+
end
|
663
|
+
|
633
664
|
# 文档信息
|
634
665
|
class ParseDocument < TencentCloud::Common::AbstractModel
|
635
666
|
# @param FileType: 文件类型。
|
@@ -750,15 +781,18 @@ module TencentCloud
|
|
750
781
|
# @type DocumentParseResultUrl: String
|
751
782
|
# @param FailedPages: 失败页码。
|
752
783
|
# @type FailedPages: Array
|
784
|
+
# @param Usage: 消耗页数
|
785
|
+
# @type Usage: :class:`Tencentcloud::Es.v20250101.models.PageUsage`
|
753
786
|
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。本接口为流式响应接口,当请求成功时,RequestId 会被放在 HTTP 响应的 Header "X-TC-RequestId" 中。
|
754
787
|
# @type RequestId: String
|
755
788
|
|
756
|
-
attr_accessor :Progress, :DocumentParseResultUrl, :FailedPages, :RequestId
|
789
|
+
attr_accessor :Progress, :DocumentParseResultUrl, :FailedPages, :Usage, :RequestId
|
757
790
|
|
758
|
-
def initialize(progress=nil, documentparseresulturl=nil, failedpages=nil, requestid=nil)
|
791
|
+
def initialize(progress=nil, documentparseresulturl=nil, failedpages=nil, usage=nil, requestid=nil)
|
759
792
|
@Progress = progress
|
760
793
|
@DocumentParseResultUrl = documentparseresulturl
|
761
794
|
@FailedPages = failedpages
|
795
|
+
@Usage = usage
|
762
796
|
@RequestId = requestid
|
763
797
|
end
|
764
798
|
|
@@ -766,6 +800,10 @@ module TencentCloud
|
|
766
800
|
@Progress = params['Progress']
|
767
801
|
@DocumentParseResultUrl = params['DocumentParseResultUrl']
|
768
802
|
@FailedPages = params['FailedPages']
|
803
|
+
unless params['Usage'].nil?
|
804
|
+
@Usage = PageUsage.new
|
805
|
+
@Usage.deserialize(params['Usage'])
|
806
|
+
end
|
769
807
|
@RequestId = params['RequestId']
|
770
808
|
end
|
771
809
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tencentcloud-sdk-es
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0.
|
4
|
+
version: 3.0.1115
|
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-
|
11
|
+
date: 2025-08-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|