tencentcloud-sdk-es 3.0.1152 → 3.0.1158

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: 4e583f1372fc85bfe805884c25d9b596bd48d15f
4
- data.tar.gz: b8b323123eadeee582f0b6b2aac8ff4d184f3afb
3
+ metadata.gz: 251e2d4ff6365e96595895b83096bef2a90a87a8
4
+ data.tar.gz: 819a8525596ff7ffc4d3c8b6eb606e42bf28e519
5
5
  SHA512:
6
- metadata.gz: 1fca613fdb03356bda15c4e9aad268fa602d56ac1c2ec7635fdb9a0d93e4ff4b8c481c4386496f43d22c2207d7f7a08bae81dbd212a46bb9d1c5708bc9e1fb91
7
- data.tar.gz: c4db0508989a11aab6e33a000d8b1cbe92f3860a252e1b276ce415fa28df0bb817ba34a57bfe845fc812a9d056668c4dba32ff92ac58f6ad30dfcc5a2d14bd22
6
+ metadata.gz: 8dd175294268866851827a51bff605193bc47546b7a4e53f8d771dc20d9d0e347a15c1af5c866522ce46bdbcdd5a11161f34e22a8058e229f0750cfd4dc0f99a
7
+ data.tar.gz: dfad8be0e79951015cac01c9a633cc85c2c1d0aae69ef08e7d176483492a713514d7d8413e73c56c0ef77ba13c4231bccd1454d346ca163f939e9b9d0a32f82f
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.1152
1
+ 3.0.1158
@@ -2,12 +2,12 @@
2
2
 
3
3
  require 'tencentcloud-sdk-common'
4
4
 
5
- require_relative 'v20250101/client'
6
- require_relative 'v20250101/models'
7
-
8
5
  require_relative 'v20180416/client'
9
6
  require_relative 'v20180416/models'
10
7
 
8
+ require_relative 'v20250101/client'
9
+ require_relative 'v20250101/models'
10
+
11
11
  module TencentCloud
12
12
  module Es
13
13
  end
@@ -1656,10 +1656,20 @@ module TencentCloud
1656
1656
  # <li>0, 降序</li>
1657
1657
  # <li>1, 升序</li>
1658
1658
  # @type OrderByType: Integer
1659
+ # @param LogLevels: 日志级别
1660
+ # @type LogLevels: Array
1661
+ # @param NodeIds: 节点ID
1662
+ # @type NodeIds: Array
1663
+ # @param IndexName: 慢日志索引名
1664
+ # @type IndexName: String
1665
+ # @param ShardId: 慢日志索引分片
1666
+ # @type ShardId: String
1667
+ # @param QueryCost: 慢日志查询耗时
1668
+ # @type QueryCost: Integer
1659
1669
 
1660
- attr_accessor :InstanceId, :LogType, :SearchKey, :StartTime, :EndTime, :Offset, :Limit, :OrderByType
1670
+ attr_accessor :InstanceId, :LogType, :SearchKey, :StartTime, :EndTime, :Offset, :Limit, :OrderByType, :LogLevels, :NodeIds, :IndexName, :ShardId, :QueryCost
1661
1671
 
1662
- def initialize(instanceid=nil, logtype=nil, searchkey=nil, starttime=nil, endtime=nil, offset=nil, limit=nil, orderbytype=nil)
1672
+ def initialize(instanceid=nil, logtype=nil, searchkey=nil, starttime=nil, endtime=nil, offset=nil, limit=nil, orderbytype=nil, loglevels=nil, nodeids=nil, indexname=nil, shardid=nil, querycost=nil)
1663
1673
  @InstanceId = instanceid
1664
1674
  @LogType = logtype
1665
1675
  @SearchKey = searchkey
@@ -1668,6 +1678,11 @@ module TencentCloud
1668
1678
  @Offset = offset
1669
1679
  @Limit = limit
1670
1680
  @OrderByType = orderbytype
1681
+ @LogLevels = loglevels
1682
+ @NodeIds = nodeids
1683
+ @IndexName = indexname
1684
+ @ShardId = shardid
1685
+ @QueryCost = querycost
1671
1686
  end
1672
1687
 
1673
1688
  def deserialize(params)
@@ -1679,6 +1694,11 @@ module TencentCloud
1679
1694
  @Offset = params['Offset']
1680
1695
  @Limit = params['Limit']
1681
1696
  @OrderByType = params['OrderByType']
1697
+ @LogLevels = params['LogLevels']
1698
+ @NodeIds = params['NodeIds']
1699
+ @IndexName = params['IndexName']
1700
+ @ShardId = params['ShardId']
1701
+ @QueryCost = params['QueryCost']
1682
1702
  end
1683
1703
  end
1684
1704
 
@@ -4611,15 +4631,24 @@ module TencentCloud
4611
4631
  # @type Message: String
4612
4632
  # @param NodeID: 集群节点ID
4613
4633
  # @type NodeID: String
4634
+ # @param IndexName: 慢日志索引名
4635
+ # @type IndexName: String
4636
+ # @param Shard: 慢日志索引分片
4637
+ # @type Shard: String
4638
+ # @param QueryCost: 慢日志索引查询耗时
4639
+ # @type QueryCost: String
4614
4640
 
4615
- attr_accessor :Time, :Level, :Ip, :Message, :NodeID
4641
+ attr_accessor :Time, :Level, :Ip, :Message, :NodeID, :IndexName, :Shard, :QueryCost
4616
4642
 
4617
- def initialize(time=nil, level=nil, ip=nil, message=nil, nodeid=nil)
4643
+ def initialize(time=nil, level=nil, ip=nil, message=nil, nodeid=nil, indexname=nil, shard=nil, querycost=nil)
4618
4644
  @Time = time
4619
4645
  @Level = level
4620
4646
  @Ip = ip
4621
4647
  @Message = message
4622
4648
  @NodeID = nodeid
4649
+ @IndexName = indexname
4650
+ @Shard = shard
4651
+ @QueryCost = querycost
4623
4652
  end
4624
4653
 
4625
4654
  def deserialize(params)
@@ -4628,6 +4657,9 @@ module TencentCloud
4628
4657
  @Ip = params['Ip']
4629
4658
  @Message = params['Message']
4630
4659
  @NodeID = params['NodeID']
4660
+ @IndexName = params['IndexName']
4661
+ @Shard = params['Shard']
4662
+ @QueryCost = params['QueryCost']
4631
4663
  end
4632
4664
  end
4633
4665
 
@@ -6458,10 +6490,14 @@ module TencentCloud
6458
6490
  # @param TagList: 空间标签信息
6459
6491
  # 注意:此字段可能返回 null,表示取不到有效值。
6460
6492
  # @type TagList: Array
6493
+ # @param EnableMcpAccess: 是否开启mcp服务
6494
+ # @type EnableMcpAccess: Integer
6495
+ # @param McpAccess: mcp的访问地址
6496
+ # @type McpAccess: String
6461
6497
 
6462
- attr_accessor :SpaceId, :SpaceName, :Status, :CreateTime, :IndexCount, :KibanaUrl, :KibanaPrivateUrl, :IndexAccessUrl, :KibanaPublicAcl, :KibanaEmbedUrl, :DiDataList, :VpcInfo, :Region, :Zone, :EnableKibanaPublicAccess, :EnableKibanaPrivateAccess, :AppId, :KibanaLanguage, :ClusterType, :TagList
6498
+ attr_accessor :SpaceId, :SpaceName, :Status, :CreateTime, :IndexCount, :KibanaUrl, :KibanaPrivateUrl, :IndexAccessUrl, :KibanaPublicAcl, :KibanaEmbedUrl, :DiDataList, :VpcInfo, :Region, :Zone, :EnableKibanaPublicAccess, :EnableKibanaPrivateAccess, :AppId, :KibanaLanguage, :ClusterType, :TagList, :EnableMcpAccess, :McpAccess
6463
6499
 
6464
- def initialize(spaceid=nil, spacename=nil, status=nil, createtime=nil, indexcount=nil, kibanaurl=nil, kibanaprivateurl=nil, indexaccessurl=nil, kibanapublicacl=nil, kibanaembedurl=nil, didatalist=nil, vpcinfo=nil, region=nil, zone=nil, enablekibanapublicaccess=nil, enablekibanaprivateaccess=nil, appid=nil, kibanalanguage=nil, clustertype=nil, taglist=nil)
6500
+ def initialize(spaceid=nil, spacename=nil, status=nil, createtime=nil, indexcount=nil, kibanaurl=nil, kibanaprivateurl=nil, indexaccessurl=nil, kibanapublicacl=nil, kibanaembedurl=nil, didatalist=nil, vpcinfo=nil, region=nil, zone=nil, enablekibanapublicaccess=nil, enablekibanaprivateaccess=nil, appid=nil, kibanalanguage=nil, clustertype=nil, taglist=nil, enablemcpaccess=nil, mcpaccess=nil)
6465
6501
  @SpaceId = spaceid
6466
6502
  @SpaceName = spacename
6467
6503
  @Status = status
@@ -6482,6 +6518,8 @@ module TencentCloud
6482
6518
  @KibanaLanguage = kibanalanguage
6483
6519
  @ClusterType = clustertype
6484
6520
  @TagList = taglist
6521
+ @EnableMcpAccess = enablemcpaccess
6522
+ @McpAccess = mcpaccess
6485
6523
  end
6486
6524
 
6487
6525
  def deserialize(params)
@@ -6525,6 +6563,8 @@ module TencentCloud
6525
6563
  @TagList << taginfo_tmp
6526
6564
  end
6527
6565
  end
6566
+ @EnableMcpAccess = params['EnableMcpAccess']
6567
+ @McpAccess = params['McpAccess']
6528
6568
  end
6529
6569
  end
6530
6570
 
@@ -152,6 +152,30 @@ module TencentCloud
152
152
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
153
153
  end
154
154
 
155
+ # Embedding是一种将高维数据映射到低维空间的技术,通常用于将非结构化数据,如文本、图像或音频转化为向量表示,使其更容易输入机器模型进行处理,并且向量之间的距离可以反映对象之间的相似性。 本接口有模型维度调用上限控制,单个模型qps限制10,如您有提高并发限制的需求请[联系我们](https://cloud.tencent.com/act/event/Online_service) 。
156
+
157
+ # @param request: Request instance for GetMultiModalEmbedding.
158
+ # @type request: :class:`Tencentcloud::es::V20250101::GetMultiModalEmbeddingRequest`
159
+ # @rtype: :class:`Tencentcloud::es::V20250101::GetMultiModalEmbeddingResponse`
160
+ def GetMultiModalEmbedding(request)
161
+ body = send_request('GetMultiModalEmbedding', request.serialize)
162
+ response = JSON.parse(body)
163
+ if response['Response'].key?('Error') == false
164
+ model = GetMultiModalEmbeddingResponse.new
165
+ model.deserialize(response['Response'])
166
+ model
167
+ else
168
+ code = response['Response']['Error']['Code']
169
+ message = response['Response']['Error']['Message']
170
+ reqid = response['Response']['RequestId']
171
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
172
+ end
173
+ rescue TencentCloud::Common::TencentCloudSDKException => e
174
+ raise e
175
+ rescue StandardError => e
176
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
177
+ end
178
+
155
179
  # Embedding是一种将高维数据映射到低维空间的技术,通常用于将非结构化数据,如文本、图像或音频转化为向量表示,使其更容易输入机器模型进行处理,并且向量之间的距离可以反映对象之间的相似性。
156
180
  # 本接口有模型维度调用上限控制,单个模型qps限制20,如您有提高并发限制的需求请[联系我们](https://cloud.tencent.com/act/event/Online_service) 。
157
181
 
@@ -561,6 +561,64 @@ module TencentCloud
561
561
  end
562
562
  end
563
563
 
564
+ # GetMultiModalEmbedding请求参数结构体
565
+ class GetMultiModalEmbeddingRequest < TencentCloud::Common::AbstractModel
566
+ # @param ModelName: 模型名称,支持WeCLIPv2-Base和WeCLIPv2-Large
567
+ # @type ModelName: String
568
+ # @param Texts: 需进行向量化的文本集,一次输入限10条,单条文本长度限72
569
+ # @type Texts: Array
570
+ # @param ImageData: 输入图片,base64编码格式,一次输入限制8个,单张图片限制1M
571
+ # @type ImageData: Array
572
+ # @param ImageUrl: 输入图片url,一次输入限8个,推荐cos地址,速度更快
573
+ # @type ImageUrl: Array
574
+
575
+ attr_accessor :ModelName, :Texts, :ImageData, :ImageUrl
576
+
577
+ def initialize(modelname=nil, texts=nil, imagedata=nil, imageurl=nil)
578
+ @ModelName = modelname
579
+ @Texts = texts
580
+ @ImageData = imagedata
581
+ @ImageUrl = imageurl
582
+ end
583
+
584
+ def deserialize(params)
585
+ @ModelName = params['ModelName']
586
+ @Texts = params['Texts']
587
+ @ImageData = params['ImageData']
588
+ @ImageUrl = params['ImageUrl']
589
+ end
590
+ end
591
+
592
+ # GetMultiModalEmbedding返回参数结构体
593
+ class GetMultiModalEmbeddingResponse < TencentCloud::Common::AbstractModel
594
+ # @param Data: 多模态特征向量输出
595
+ # @type Data: :class:`Tencentcloud::Es.v20250101.models.MultiModalEmbeddingData`
596
+ # @param Usage: 消耗的tokens和输入图片数量
597
+ # @type Usage: :class:`Tencentcloud::Es.v20250101.models.MultiModalUsage`
598
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
599
+ # @type RequestId: String
600
+
601
+ attr_accessor :Data, :Usage, :RequestId
602
+
603
+ def initialize(data=nil, usage=nil, requestid=nil)
604
+ @Data = data
605
+ @Usage = usage
606
+ @RequestId = requestid
607
+ end
608
+
609
+ def deserialize(params)
610
+ unless params['Data'].nil?
611
+ @Data = MultiModalEmbeddingData.new
612
+ @Data.deserialize(params['Data'])
613
+ end
614
+ unless params['Usage'].nil?
615
+ @Usage = MultiModalUsage.new
616
+ @Usage.deserialize(params['Usage'])
617
+ end
618
+ @RequestId = params['RequestId']
619
+ end
620
+ end
621
+
564
622
  # GetTextEmbedding请求参数结构体
565
623
  class GetTextEmbeddingRequest < TencentCloud::Common::AbstractModel
566
624
  # @param ModelName: 模型名称,可选模型列表:bge-base-zh-v1.5,Conan-embedding-v1,bge-m3,KaLM-embedding-multilingual-mini-v1,Qwen3-Embedding-0.6B。
@@ -650,6 +708,62 @@ module TencentCloud
650
708
  end
651
709
  end
652
710
 
711
+ # 多模态特征向量
712
+ class MultiModalEmbeddingData < TencentCloud::Common::AbstractModel
713
+ # @param TextEmbeddings: 文本特征向量
714
+ # 注意:此字段可能返回 null,表示取不到有效值。
715
+ # @type TextEmbeddings: Array
716
+ # @param ImageEmbeddings: 图片特征向量
717
+ # 注意:此字段可能返回 null,表示取不到有效值。
718
+ # @type ImageEmbeddings: Array
719
+
720
+ attr_accessor :TextEmbeddings, :ImageEmbeddings
721
+
722
+ def initialize(textembeddings=nil, imageembeddings=nil)
723
+ @TextEmbeddings = textembeddings
724
+ @ImageEmbeddings = imageembeddings
725
+ end
726
+
727
+ def deserialize(params)
728
+ unless params['TextEmbeddings'].nil?
729
+ @TextEmbeddings = []
730
+ params['TextEmbeddings'].each do |i|
731
+ embeddingdata_tmp = EmbeddingData.new
732
+ embeddingdata_tmp.deserialize(i)
733
+ @TextEmbeddings << embeddingdata_tmp
734
+ end
735
+ end
736
+ unless params['ImageEmbeddings'].nil?
737
+ @ImageEmbeddings = []
738
+ params['ImageEmbeddings'].each do |i|
739
+ embeddingdata_tmp = EmbeddingData.new
740
+ embeddingdata_tmp.deserialize(i)
741
+ @ImageEmbeddings << embeddingdata_tmp
742
+ end
743
+ end
744
+ end
745
+ end
746
+
747
+ # 多模态向量化消耗tokens和images数量
748
+ class MultiModalUsage < TencentCloud::Common::AbstractModel
749
+ # @param TotalTokens: 消耗tokens
750
+ # @type TotalTokens: Integer
751
+ # @param TotalImages: 输入图片数量
752
+ # @type TotalImages: Integer
753
+
754
+ attr_accessor :TotalTokens, :TotalImages
755
+
756
+ def initialize(totaltokens=nil, totalimages=nil)
757
+ @TotalTokens = totaltokens
758
+ @TotalImages = totalimages
759
+ end
760
+
761
+ def deserialize(params)
762
+ @TotalTokens = params['TotalTokens']
763
+ @TotalImages = params['TotalImages']
764
+ end
765
+ end
766
+
653
767
  # 联网搜索选项。
654
768
  class OnlineSearchOptions < TencentCloud::Common::AbstractModel
655
769
  # @param Engine: 搜索引擎。支持 bing 和 sogou。
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.1152
4
+ version: 3.0.1158
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-10-12 00:00:00.000000000 Z
11
+ date: 2025-10-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common
@@ -33,11 +33,11 @@ executables: []
33
33
  extensions: []
34
34
  extra_rdoc_files: []
35
35
  files:
36
- - lib/v20180416/client.rb
37
36
  - lib/v20180416/models.rb
38
- - lib/v20250101/client.rb
39
- - lib/v20250101/models.rb
37
+ - lib/v20180416/client.rb
40
38
  - lib/tencentcloud-sdk-es.rb
39
+ - lib/v20250101/models.rb
40
+ - lib/v20250101/client.rb
41
41
  - lib/VERSION
42
42
  homepage: https://github.com/TencentCloud/tencentcloud-sdk-ruby
43
43
  licenses: