tencentcloud-sdk-lke 3.0.860 → 3.0.862

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4701e63ede6b61291523962c9f4944d43f920a95
4
- data.tar.gz: fd34b6030fc97a53d12960eff0c82ae163a66b6d
3
+ metadata.gz: cce80a4b78ea473c68cc4a74a278590cfb678139
4
+ data.tar.gz: a2532ac3712bf201c4a66e1a7c025344221fea20
5
5
  SHA512:
6
- metadata.gz: 9c9b51c54836de6e49c9ce5cffefdd733dbc323404dc06a884e42313bcfe464d97fb223fe6b76073ca876aa5e07c74dfb28892224545c98c4ed2ed6fbeafe323
7
- data.tar.gz: 5183ad0eea28ee21ecefee14f1c00e5bda09a6993a9ebd2ac88097c31107593a31680b1749cf5a2f2d4f50e1b2b27f21c44c107f06952e09f8c63fbfb8cc2539
6
+ metadata.gz: 32213f70dc613ca360f735342cd37743e50509f32802c8923a80e646f22767f85c7a329044811f5d8e09d8ef853bd1439f84f0a241bbd7ea0e05ad436098090b
7
+ data.tar.gz: 09e1fc681988a646e5552c3f354b6fd1f4ea1af22be9e7c9c66cbbb0f5970b0f852d09c4b5511fe643f26144ae3c64d7ec4a686e544e12e49faaaf38f81b2ee9
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.860
1
+ 3.0.862
@@ -656,6 +656,30 @@ module TencentCloud
656
656
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
657
657
  end
658
658
 
659
+ # 获取片段详情
660
+
661
+ # @param request: Request instance for DescribeSegments.
662
+ # @type request: :class:`Tencentcloud::lke::V20231130::DescribeSegmentsRequest`
663
+ # @rtype: :class:`Tencentcloud::lke::V20231130::DescribeSegmentsResponse`
664
+ def DescribeSegments(request)
665
+ body = send_request('DescribeSegments', request.serialize)
666
+ response = JSON.parse(body)
667
+ if response['Response'].key?('Error') == false
668
+ model = DescribeSegmentsResponse.new
669
+ model.deserialize(response['Response'])
670
+ model
671
+ else
672
+ code = response['Response']['Error']['Code']
673
+ message = response['Response']['Error']['Message']
674
+ reqid = response['Response']['RequestId']
675
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
676
+ end
677
+ rescue TencentCloud::Common::TencentCloudSDKException => e
678
+ raise e
679
+ rescue StandardError => e
680
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
681
+ end
682
+
659
683
  # 获取文件上传临时密钥
660
684
 
661
685
  # @param request: Request instance for DescribeStorageCredential.
@@ -2024,6 +2024,54 @@ module TencentCloud
2024
2024
  end
2025
2025
  end
2026
2026
 
2027
+ # DescribeSegments请求参数结构体
2028
+ class DescribeSegmentsRequest < TencentCloud::Common::AbstractModel
2029
+ # @param BotBizId: 应用ID
2030
+ # @type BotBizId: String
2031
+ # @param SegBizId: 文档ID
2032
+ # @type SegBizId: Array
2033
+
2034
+ attr_accessor :BotBizId, :SegBizId
2035
+
2036
+ def initialize(botbizid=nil, segbizid=nil)
2037
+ @BotBizId = botbizid
2038
+ @SegBizId = segbizid
2039
+ end
2040
+
2041
+ def deserialize(params)
2042
+ @BotBizId = params['BotBizId']
2043
+ @SegBizId = params['SegBizId']
2044
+ end
2045
+ end
2046
+
2047
+ # DescribeSegments返回参数结构体
2048
+ class DescribeSegmentsResponse < TencentCloud::Common::AbstractModel
2049
+ # @param List: 片段列表
2050
+ # 注意:此字段可能返回 null,表示取不到有效值。
2051
+ # @type List: Array
2052
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
2053
+ # @type RequestId: String
2054
+
2055
+ attr_accessor :List, :RequestId
2056
+
2057
+ def initialize(list=nil, requestid=nil)
2058
+ @List = list
2059
+ @RequestId = requestid
2060
+ end
2061
+
2062
+ def deserialize(params)
2063
+ unless params['List'].nil?
2064
+ @List = []
2065
+ params['List'].each do |i|
2066
+ docsegment_tmp = DocSegment.new
2067
+ docsegment_tmp.deserialize(i)
2068
+ @List << docsegment_tmp
2069
+ end
2070
+ end
2071
+ @RequestId = params['RequestId']
2072
+ end
2073
+ end
2074
+
2027
2075
  # DescribeStorageCredential请求参数结构体
2028
2076
  class DescribeStorageCredentialRequest < TencentCloud::Common::AbstractModel
2029
2077
  # @param BotBizId: 应用ID
@@ -2167,6 +2215,68 @@ module TencentCloud
2167
2215
  end
2168
2216
  end
2169
2217
 
2218
+ # 文档片段
2219
+ class DocSegment < TencentCloud::Common::AbstractModel
2220
+ # @param Id: 片段ID
2221
+ # 注意:此字段可能返回 null,表示取不到有效值。
2222
+ # @type Id: String
2223
+ # @param BusinessId: 业务ID
2224
+ # 注意:此字段可能返回 null,表示取不到有效值。
2225
+ # @type BusinessId: String
2226
+ # @param FileType: 文件类型(markdown,word,txt)
2227
+ # 注意:此字段可能返回 null,表示取不到有效值。
2228
+ # @type FileType: String
2229
+ # @param SegmentType: 文档切片类型(segment-文档切片 table-表格)
2230
+ # 注意:此字段可能返回 null,表示取不到有效值。
2231
+ # @type SegmentType: String
2232
+ # @param Title: 标题
2233
+ # 注意:此字段可能返回 null,表示取不到有效值。
2234
+ # @type Title: String
2235
+ # @param PageContent: 段落内容
2236
+ # 注意:此字段可能返回 null,表示取不到有效值。
2237
+ # @type PageContent: String
2238
+ # @param OrgData: 段落原文
2239
+ # 注意:此字段可能返回 null,表示取不到有效值。
2240
+ # @type OrgData: String
2241
+ # @param DocId: 文章ID
2242
+ # 注意:此字段可能返回 null,表示取不到有效值。
2243
+ # @type DocId: String
2244
+ # @param DocBizId: 文档业务ID
2245
+ # 注意:此字段可能返回 null,表示取不到有效值。
2246
+ # @type DocBizId: String
2247
+ # @param DocUrl: 文档链接
2248
+ # 注意:此字段可能返回 null,表示取不到有效值。
2249
+ # @type DocUrl: String
2250
+
2251
+ attr_accessor :Id, :BusinessId, :FileType, :SegmentType, :Title, :PageContent, :OrgData, :DocId, :DocBizId, :DocUrl
2252
+
2253
+ def initialize(id=nil, businessid=nil, filetype=nil, segmenttype=nil, title=nil, pagecontent=nil, orgdata=nil, docid=nil, docbizid=nil, docurl=nil)
2254
+ @Id = id
2255
+ @BusinessId = businessid
2256
+ @FileType = filetype
2257
+ @SegmentType = segmenttype
2258
+ @Title = title
2259
+ @PageContent = pagecontent
2260
+ @OrgData = orgdata
2261
+ @DocId = docid
2262
+ @DocBizId = docbizid
2263
+ @DocUrl = docurl
2264
+ end
2265
+
2266
+ def deserialize(params)
2267
+ @Id = params['Id']
2268
+ @BusinessId = params['BusinessId']
2269
+ @FileType = params['FileType']
2270
+ @SegmentType = params['SegmentType']
2271
+ @Title = params['Title']
2272
+ @PageContent = params['PageContent']
2273
+ @OrgData = params['OrgData']
2274
+ @DocId = params['DocId']
2275
+ @DocBizId = params['DocBizId']
2276
+ @DocUrl = params['DocUrl']
2277
+ end
2278
+ end
2279
+
2170
2280
  # 文档元素字段
2171
2281
  class DocumentElement < TencentCloud::Common::AbstractModel
2172
2282
  # @param Index: 文档元素索引
@@ -6597,7 +6707,7 @@ module TencentCloud
6597
6707
  # @type ExpireEnd: String
6598
6708
  # @param IsRefer: 是否引用链接
6599
6709
  # @type IsRefer: Boolean
6600
- # @param Opt: 文档操作类型:1:批量导入;2:文档导入
6710
+ # @param Opt: 文档操作类型:1:批量导入(批量导入问答对);2:文档导入(正常导入单个文档)
6601
6711
  # @type Opt: Integer
6602
6712
 
6603
6713
  attr_accessor :BotBizId, :FileName, :FileType, :CosUrl, :ETag, :CosHash, :Size, :AttrRange, :Source, :WebUrl, :AttrLabels, :ReferUrlType, :ExpireStart, :ExpireEnd, :IsRefer, :Opt
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tencentcloud-sdk-lke
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.860
4
+ version: 3.0.862
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tencent Cloud
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-07-08 00:00:00.000000000 Z
11
+ date: 2024-07-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common