tencentcloud-sdk-es 3.0.1139 → 3.0.1143
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/v20180416/client.rb +24 -0
- data/lib/v20180416/models.rb +111 -0
- data/lib/v20250101/models.rb +71 -2
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5fba657ab8a69ea3a2d0971adc753146070c8d68
|
4
|
+
data.tar.gz: 3e17ce4b917d51c71839f8a797ba4ab98f0296ac
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a81d4f481e33d7f5bb8f5e8bcb259a26c60522db90476d1cb874d52d619c675249daef4ac503daa1ff3ebe9d9ee4beec1021cea1f7c2ef57981038cc8fa87fbe
|
7
|
+
data.tar.gz: 520b8cb512365c60d464bf1163a82352d66a294d656dc67586d6e594033f8e6cdb95fddda3a9846c55a32eb4150b89072aa5f0fa66f9fe5d5b20c0cd982a9fa5
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.1143
|
data/lib/v20180416/client.rb
CHANGED
@@ -870,6 +870,30 @@ module TencentCloud
|
|
870
870
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
871
871
|
end
|
872
872
|
|
873
|
+
# 查询IP溯源日志原始数据
|
874
|
+
|
875
|
+
# @param request: Request instance for ExportIpTraceLog.
|
876
|
+
# @type request: :class:`Tencentcloud::es::V20180416::ExportIpTraceLogRequest`
|
877
|
+
# @rtype: :class:`Tencentcloud::es::V20180416::ExportIpTraceLogResponse`
|
878
|
+
def ExportIpTraceLog(request)
|
879
|
+
body = send_request('ExportIpTraceLog', request.serialize)
|
880
|
+
response = JSON.parse(body)
|
881
|
+
if response['Response'].key?('Error') == false
|
882
|
+
model = ExportIpTraceLogResponse.new
|
883
|
+
model.deserialize(response['Response'])
|
884
|
+
model
|
885
|
+
else
|
886
|
+
code = response['Response']['Error']['Code']
|
887
|
+
message = response['Response']['Error']['Message']
|
888
|
+
reqid = response['Response']['RequestId']
|
889
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
890
|
+
end
|
891
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
892
|
+
raise e
|
893
|
+
rescue StandardError => e
|
894
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
895
|
+
end
|
896
|
+
|
873
897
|
# 查看智能运维配置
|
874
898
|
|
875
899
|
# @param request: Request instance for GetDiagnoseSettings.
|
data/lib/v20180416/models.rb
CHANGED
@@ -3508,6 +3508,93 @@ module TencentCloud
|
|
3508
3508
|
end
|
3509
3509
|
end
|
3510
3510
|
|
3511
|
+
# ExportIpTraceLog请求参数结构体
|
3512
|
+
class ExportIpTraceLogRequest < TencentCloud::Common::AbstractModel
|
3513
|
+
# @param InstanceId: ES集群ID
|
3514
|
+
# @type InstanceId: String
|
3515
|
+
# @param StartTime: 开始时间
|
3516
|
+
# @type StartTime: String
|
3517
|
+
# @param EndTime: 结束时间
|
3518
|
+
# @type EndTime: String
|
3519
|
+
# @param Offset: 起始偏移量
|
3520
|
+
# @type Offset: Integer
|
3521
|
+
# @param Limit: 数据条数
|
3522
|
+
# @type Limit: Integer
|
3523
|
+
# @param RemoteIp: 访问IP
|
3524
|
+
# @type RemoteIp: Array
|
3525
|
+
# @param TraceType: Request/Response 请求/返回, 非必填
|
3526
|
+
# @type TraceType: Array
|
3527
|
+
# @param NetType: Public/Private 公网访问/内网访问, 非必填
|
3528
|
+
# @type NetType: Array
|
3529
|
+
# @param ReqTypeOrRspStatus: POST/GET/PUT/DELETE/HEAD/OPTIONS/PATCH/CONNECT/TRACE/CONNECT等, 非必填
|
3530
|
+
# @type ReqTypeOrRspStatus: Array
|
3531
|
+
# @param SearchKey: 关键字模糊查询,支持Lucene Query String
|
3532
|
+
# @type SearchKey: String
|
3533
|
+
# @param Uri: uri搜索
|
3534
|
+
# @type Uri: String
|
3535
|
+
# @param NodeIp: 集群节点IP
|
3536
|
+
# @type NodeIp: Array
|
3537
|
+
|
3538
|
+
attr_accessor :InstanceId, :StartTime, :EndTime, :Offset, :Limit, :RemoteIp, :TraceType, :NetType, :ReqTypeOrRspStatus, :SearchKey, :Uri, :NodeIp
|
3539
|
+
|
3540
|
+
def initialize(instanceid=nil, starttime=nil, endtime=nil, offset=nil, limit=nil, remoteip=nil, tracetype=nil, nettype=nil, reqtypeorrspstatus=nil, searchkey=nil, uri=nil, nodeip=nil)
|
3541
|
+
@InstanceId = instanceid
|
3542
|
+
@StartTime = starttime
|
3543
|
+
@EndTime = endtime
|
3544
|
+
@Offset = offset
|
3545
|
+
@Limit = limit
|
3546
|
+
@RemoteIp = remoteip
|
3547
|
+
@TraceType = tracetype
|
3548
|
+
@NetType = nettype
|
3549
|
+
@ReqTypeOrRspStatus = reqtypeorrspstatus
|
3550
|
+
@SearchKey = searchkey
|
3551
|
+
@Uri = uri
|
3552
|
+
@NodeIp = nodeip
|
3553
|
+
end
|
3554
|
+
|
3555
|
+
def deserialize(params)
|
3556
|
+
@InstanceId = params['InstanceId']
|
3557
|
+
@StartTime = params['StartTime']
|
3558
|
+
@EndTime = params['EndTime']
|
3559
|
+
@Offset = params['Offset']
|
3560
|
+
@Limit = params['Limit']
|
3561
|
+
@RemoteIp = params['RemoteIp']
|
3562
|
+
@TraceType = params['TraceType']
|
3563
|
+
@NetType = params['NetType']
|
3564
|
+
@ReqTypeOrRspStatus = params['ReqTypeOrRspStatus']
|
3565
|
+
@SearchKey = params['SearchKey']
|
3566
|
+
@Uri = params['Uri']
|
3567
|
+
@NodeIp = params['NodeIp']
|
3568
|
+
end
|
3569
|
+
end
|
3570
|
+
|
3571
|
+
# ExportIpTraceLog返回参数结构体
|
3572
|
+
class ExportIpTraceLogResponse < TencentCloud::Common::AbstractModel
|
3573
|
+
# @param IpTraceList: IP时间列表
|
3574
|
+
# @type IpTraceList: Array
|
3575
|
+
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
3576
|
+
# @type RequestId: String
|
3577
|
+
|
3578
|
+
attr_accessor :IpTraceList, :RequestId
|
3579
|
+
|
3580
|
+
def initialize(iptracelist=nil, requestid=nil)
|
3581
|
+
@IpTraceList = iptracelist
|
3582
|
+
@RequestId = requestid
|
3583
|
+
end
|
3584
|
+
|
3585
|
+
def deserialize(params)
|
3586
|
+
unless params['IpTraceList'].nil?
|
3587
|
+
@IpTraceList = []
|
3588
|
+
params['IpTraceList'].each do |i|
|
3589
|
+
iptimepair_tmp = IpTimePair.new
|
3590
|
+
iptimepair_tmp.deserialize(i)
|
3591
|
+
@IpTraceList << iptimepair_tmp
|
3592
|
+
end
|
3593
|
+
end
|
3594
|
+
@RequestId = params['RequestId']
|
3595
|
+
end
|
3596
|
+
end
|
3597
|
+
|
3511
3598
|
# 索引备份失败的数据结构
|
3512
3599
|
class Failures < TencentCloud::Common::AbstractModel
|
3513
3600
|
# @param Index: 备份失败的索引名称
|
@@ -4544,6 +4631,30 @@ module TencentCloud
|
|
4544
4631
|
end
|
4545
4632
|
end
|
4546
4633
|
|
4634
|
+
# 节点IP、访问IP、访问时间
|
4635
|
+
class IpTimePair < TencentCloud::Common::AbstractModel
|
4636
|
+
# @param Ip: IP地址
|
4637
|
+
# @type Ip: String
|
4638
|
+
# @param Timestamp: 时间戳,毫秒
|
4639
|
+
# @type Timestamp: Integer
|
4640
|
+
# @param NodeIp: 集群节点IP
|
4641
|
+
# @type NodeIp: String
|
4642
|
+
|
4643
|
+
attr_accessor :Ip, :Timestamp, :NodeIp
|
4644
|
+
|
4645
|
+
def initialize(ip=nil, timestamp=nil, nodeip=nil)
|
4646
|
+
@Ip = ip
|
4647
|
+
@Timestamp = timestamp
|
4648
|
+
@NodeIp = nodeip
|
4649
|
+
end
|
4650
|
+
|
4651
|
+
def deserialize(params)
|
4652
|
+
@Ip = params['Ip']
|
4653
|
+
@Timestamp = params['Timestamp']
|
4654
|
+
@NodeIp = params['NodeIp']
|
4655
|
+
end
|
4656
|
+
end
|
4657
|
+
|
4547
4658
|
# 智能运维诊断参数
|
4548
4659
|
class JobParam < TencentCloud::Common::AbstractModel
|
4549
4660
|
# @param Jobs: 诊断项列表
|
data/lib/v20250101/models.rb
CHANGED
@@ -33,10 +33,16 @@ module TencentCloud
|
|
33
33
|
# @type OnlineSearch: Boolean
|
34
34
|
# @param OnlineSearchOptions: 当 OnlineSearch 为 true 时,指定的搜索引擎,默认为 bing。
|
35
35
|
# @type OnlineSearchOptions: :class:`Tencentcloud::Es.v20250101.models.OnlineSearchOptions`
|
36
|
+
# @param Tools: 可调用的工具列表,当前支持模型:hunyuan-turbo, deepseek-v3。
|
37
|
+
# @type Tools: Array
|
38
|
+
# @param ToolChoice: 工具使用选项,可选值包括 none、auto、custom。说明:1. 仅对 hunyuan-turbo、deepseek-v3 模型生效。2. none:不调用工具;auto:模型自行选择生成回复或调用工具;custom:强制模型调用指定的工具。3. 未设置时,默认值为auto
|
39
|
+
# @type ToolChoice: String
|
40
|
+
# @param CustomTool: 强制模型调用指定的工具,当参数ToolChoice为custom时,此参数为必填
|
41
|
+
# @type CustomTool: :class:`Tencentcloud::Es.v20250101.models.Tool`
|
36
42
|
|
37
|
-
attr_accessor :Messages, :ModelName, :Stream, :TopP, :Temperature, :OnlineSearch, :OnlineSearchOptions
|
43
|
+
attr_accessor :Messages, :ModelName, :Stream, :TopP, :Temperature, :OnlineSearch, :OnlineSearchOptions, :Tools, :ToolChoice, :CustomTool
|
38
44
|
|
39
|
-
def initialize(messages=nil, modelname=nil, stream=nil, topp=nil, temperature=nil, onlinesearch=nil, onlinesearchoptions=nil)
|
45
|
+
def initialize(messages=nil, modelname=nil, stream=nil, topp=nil, temperature=nil, onlinesearch=nil, onlinesearchoptions=nil, tools=nil, toolchoice=nil, customtool=nil)
|
40
46
|
@Messages = messages
|
41
47
|
@ModelName = modelname
|
42
48
|
@Stream = stream
|
@@ -44,6 +50,9 @@ module TencentCloud
|
|
44
50
|
@Temperature = temperature
|
45
51
|
@OnlineSearch = onlinesearch
|
46
52
|
@OnlineSearchOptions = onlinesearchoptions
|
53
|
+
@Tools = tools
|
54
|
+
@ToolChoice = toolchoice
|
55
|
+
@CustomTool = customtool
|
47
56
|
end
|
48
57
|
|
49
58
|
def deserialize(params)
|
@@ -64,6 +73,19 @@ module TencentCloud
|
|
64
73
|
@OnlineSearchOptions = OnlineSearchOptions.new
|
65
74
|
@OnlineSearchOptions.deserialize(params['OnlineSearchOptions'])
|
66
75
|
end
|
76
|
+
unless params['Tools'].nil?
|
77
|
+
@Tools = []
|
78
|
+
params['Tools'].each do |i|
|
79
|
+
tool_tmp = Tool.new
|
80
|
+
tool_tmp.deserialize(i)
|
81
|
+
@Tools << tool_tmp
|
82
|
+
end
|
83
|
+
end
|
84
|
+
@ToolChoice = params['ToolChoice']
|
85
|
+
unless params['CustomTool'].nil?
|
86
|
+
@CustomTool = Tool.new
|
87
|
+
@CustomTool.deserialize(params['CustomTool'])
|
88
|
+
end
|
67
89
|
end
|
68
90
|
end
|
69
91
|
|
@@ -968,6 +990,29 @@ module TencentCloud
|
|
968
990
|
end
|
969
991
|
end
|
970
992
|
|
993
|
+
# 用户指定模型使用的工具
|
994
|
+
class Tool < TencentCloud::Common::AbstractModel
|
995
|
+
# @param Type: 工具类型,当前只支持function
|
996
|
+
# @type Type: String
|
997
|
+
# @param Function: 具体要调用的function
|
998
|
+
# @type Function: :class:`Tencentcloud::Es.v20250101.models.ToolFunction`
|
999
|
+
|
1000
|
+
attr_accessor :Type, :Function
|
1001
|
+
|
1002
|
+
def initialize(type=nil, function=nil)
|
1003
|
+
@Type = type
|
1004
|
+
@Function = function
|
1005
|
+
end
|
1006
|
+
|
1007
|
+
def deserialize(params)
|
1008
|
+
@Type = params['Type']
|
1009
|
+
unless params['Function'].nil?
|
1010
|
+
@Function = ToolFunction.new
|
1011
|
+
@Function.deserialize(params['Function'])
|
1012
|
+
end
|
1013
|
+
end
|
1014
|
+
end
|
1015
|
+
|
971
1016
|
# 模型生成的工具调用
|
972
1017
|
class ToolCall < TencentCloud::Common::AbstractModel
|
973
1018
|
# @param Id: 工具调用id
|
@@ -1019,6 +1064,30 @@ module TencentCloud
|
|
1019
1064
|
end
|
1020
1065
|
end
|
1021
1066
|
|
1067
|
+
# function定义
|
1068
|
+
class ToolFunction < TencentCloud::Common::AbstractModel
|
1069
|
+
# @param Name: function名称,只能包含a-z,A-Z,0-9,_或-
|
1070
|
+
# @type Name: String
|
1071
|
+
# @param Parameters: function参数,一般为json字符串
|
1072
|
+
# @type Parameters: String
|
1073
|
+
# @param Description: function的简单描述
|
1074
|
+
# @type Description: String
|
1075
|
+
|
1076
|
+
attr_accessor :Name, :Parameters, :Description
|
1077
|
+
|
1078
|
+
def initialize(name=nil, parameters=nil, description=nil)
|
1079
|
+
@Name = name
|
1080
|
+
@Parameters = parameters
|
1081
|
+
@Description = description
|
1082
|
+
end
|
1083
|
+
|
1084
|
+
def deserialize(params)
|
1085
|
+
@Name = params['Name']
|
1086
|
+
@Parameters = params['Parameters']
|
1087
|
+
@Description = params['Description']
|
1088
|
+
end
|
1089
|
+
end
|
1090
|
+
|
1022
1091
|
# token消耗总数
|
1023
1092
|
class Usage < TencentCloud::Common::AbstractModel
|
1024
1093
|
# @param TotalTokens: tokens总数
|
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.1143
|
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-09-
|
11
|
+
date: 2025-09-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|
@@ -34,10 +34,10 @@ extensions: []
|
|
34
34
|
extra_rdoc_files: []
|
35
35
|
files:
|
36
36
|
- lib/tencentcloud-sdk-es.rb
|
37
|
-
- lib/v20250101/models.rb
|
38
37
|
- lib/v20250101/client.rb
|
39
|
-
- lib/
|
38
|
+
- lib/v20250101/models.rb
|
40
39
|
- lib/v20180416/client.rb
|
40
|
+
- lib/v20180416/models.rb
|
41
41
|
- lib/VERSION
|
42
42
|
homepage: https://github.com/TencentCloud/tencentcloud-sdk-ruby
|
43
43
|
licenses:
|