tencentcloud-sdk-yunsou 1.0.200
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 +7 -0
- data/lib/VERSION +1 -0
- data/lib/tencentcloud-sdk-yunsou.rb +14 -0
- data/lib/v20180504/client.rb +84 -0
- data/lib/v20180504/models.rb +195 -0
- data/lib/v20191115/client.rb +84 -0
- data/lib/v20191115/models.rb +370 -0
- metadata +68 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 4f3e872d6be617758e119904917b71633861f24c
|
4
|
+
data.tar.gz: 4def08102a2a4c690e181aada6234537901fc6d2
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 55303d628dd1f867845044da7e993dd8ba3e84fca711d5ea2bfec7e2acfcb1a8a1fa2244f6473de9f3fe04c6220e383fcba33732001aa7fd459f21acf32bf805
|
7
|
+
data.tar.gz: f8561198654b9c948d3df7919d712bf92f1f0f9b247c6ae0897e5ca2ea3d37e69002519065e38c9fd223e4a1a04283d6b7c1f9c61382605bc79b9f16d9a1ff34
|
data/lib/VERSION
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
1.0.200
|
@@ -0,0 +1,14 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require 'tencentcloud-sdk-common'
|
4
|
+
|
5
|
+
require_relative 'v20191115/client'
|
6
|
+
require_relative 'v20191115/models'
|
7
|
+
|
8
|
+
require_relative 'v20180504/client'
|
9
|
+
require_relative 'v20180504/models'
|
10
|
+
|
11
|
+
module TencentCloud
|
12
|
+
module Yunsou
|
13
|
+
end
|
14
|
+
end
|
@@ -0,0 +1,84 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
|
4
|
+
#
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
+
# you may not use this file except in compliance with the License.
|
7
|
+
# You may obtain a copy of the License at
|
8
|
+
#
|
9
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
10
|
+
#
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
+
# See the License for the specific language governing permissions and
|
15
|
+
# limitations under the License.
|
16
|
+
|
17
|
+
require 'json'
|
18
|
+
|
19
|
+
module TencentCloud
|
20
|
+
module Yunsou
|
21
|
+
module V20180504
|
22
|
+
class Client < TencentCloud::Common::AbstractClient
|
23
|
+
|
24
|
+
def initialize(credential, region, profile = nil)
|
25
|
+
api_version = '2018-05-04'
|
26
|
+
api_endpoint = 'yunsou.tencentcloudapi.com'
|
27
|
+
sdk_version = 'YUNSOU_' + File.read(File.expand_path('../VERSION', __dir__)).strip
|
28
|
+
super(credential, region, api_version, api_endpoint, sdk_version, profile)
|
29
|
+
end
|
30
|
+
|
31
|
+
|
32
|
+
# 上传云搜数据的API接口
|
33
|
+
|
34
|
+
# @param request: Request instance for DataManipulation.
|
35
|
+
# @type request: :class:`Tencentcloud::yunsou::V20180504::DataManipulationRequest`
|
36
|
+
# @rtype: :class:`Tencentcloud::yunsou::V20180504::DataManipulationResponse`
|
37
|
+
def DataManipulation(request)
|
38
|
+
body = send_request('DataManipulation', request.serialize)
|
39
|
+
response = JSON.parse(body)
|
40
|
+
if response['Response'].key?('Error') == false
|
41
|
+
model = DataManipulationResponse.new
|
42
|
+
model.deserialize(response['Response'])
|
43
|
+
model
|
44
|
+
else
|
45
|
+
code = response['Response']['Error']['Code']
|
46
|
+
message = response['Response']['Error']['Message']
|
47
|
+
reqid = response['Response']['RequestId']
|
48
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
49
|
+
end
|
50
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
51
|
+
raise e
|
52
|
+
rescue StandardError => e
|
53
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
54
|
+
end
|
55
|
+
|
56
|
+
# 用于检索云搜中的数据
|
57
|
+
|
58
|
+
# @param request: Request instance for DataSearch.
|
59
|
+
# @type request: :class:`Tencentcloud::yunsou::V20180504::DataSearchRequest`
|
60
|
+
# @rtype: :class:`Tencentcloud::yunsou::V20180504::DataSearchResponse`
|
61
|
+
def DataSearch(request)
|
62
|
+
body = send_request('DataSearch', request.serialize)
|
63
|
+
response = JSON.parse(body)
|
64
|
+
if response['Response'].key?('Error') == false
|
65
|
+
model = DataSearchResponse.new
|
66
|
+
model.deserialize(response['Response'])
|
67
|
+
model
|
68
|
+
else
|
69
|
+
code = response['Response']['Error']['Code']
|
70
|
+
message = response['Response']['Error']['Message']
|
71
|
+
reqid = response['Response']['RequestId']
|
72
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
73
|
+
end
|
74
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
75
|
+
raise e
|
76
|
+
rescue StandardError => e
|
77
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
78
|
+
end
|
79
|
+
|
80
|
+
|
81
|
+
end
|
82
|
+
end
|
83
|
+
end
|
84
|
+
end
|
@@ -0,0 +1,195 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
|
4
|
+
#
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
+
# you may not use this file except in compliance with the License.
|
7
|
+
# You may obtain a copy of the License at
|
8
|
+
#
|
9
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
10
|
+
#
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
+
# See the License for the specific language governing permissions and
|
15
|
+
# limitations under the License.
|
16
|
+
|
17
|
+
module TencentCloud
|
18
|
+
module Yunsou
|
19
|
+
module V20180504
|
20
|
+
# DataManipulation请求参数结构体
|
21
|
+
class DataManipulationRequest < TencentCloud::Common::AbstractModel
|
22
|
+
# @param OpType: 操作类型,add或del
|
23
|
+
# @type OpType: String
|
24
|
+
# @param Encoding: 数据编码类型
|
25
|
+
# @type Encoding: String
|
26
|
+
# @param Contents: 数据
|
27
|
+
# @type Contents: String
|
28
|
+
# @param ResourceId: 应用Id
|
29
|
+
# @type ResourceId: Integer
|
30
|
+
|
31
|
+
attr_accessor :OpType, :Encoding, :Contents, :ResourceId
|
32
|
+
|
33
|
+
def initialize(optype=nil, encoding=nil, contents=nil, resourceid=nil)
|
34
|
+
@OpType = optype
|
35
|
+
@Encoding = encoding
|
36
|
+
@Contents = contents
|
37
|
+
@ResourceId = resourceid
|
38
|
+
end
|
39
|
+
|
40
|
+
def deserialize(params)
|
41
|
+
@OpType = params['OpType']
|
42
|
+
@Encoding = params['Encoding']
|
43
|
+
@Contents = params['Contents']
|
44
|
+
@ResourceId = params['ResourceId']
|
45
|
+
end
|
46
|
+
end
|
47
|
+
|
48
|
+
# DataManipulation返回参数结构体
|
49
|
+
class DataManipulationResponse < TencentCloud::Common::AbstractModel
|
50
|
+
# @param RetMsg: 返回信息
|
51
|
+
# @type RetMsg: String
|
52
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
53
|
+
# @type RequestId: String
|
54
|
+
|
55
|
+
attr_accessor :RetMsg, :RequestId
|
56
|
+
|
57
|
+
def initialize(retmsg=nil, requestid=nil)
|
58
|
+
@RetMsg = retmsg
|
59
|
+
@RequestId = requestid
|
60
|
+
end
|
61
|
+
|
62
|
+
def deserialize(params)
|
63
|
+
@RetMsg = params['RetMsg']
|
64
|
+
@RequestId = params['RequestId']
|
65
|
+
end
|
66
|
+
end
|
67
|
+
|
68
|
+
# DataSearch请求参数结构体
|
69
|
+
class DataSearchRequest < TencentCloud::Common::AbstractModel
|
70
|
+
# @param ResourceId: 云搜的业务ID,用以表明当前数据请求的业务
|
71
|
+
# @type ResourceId: Integer
|
72
|
+
# @param SearchQuery: 检索串
|
73
|
+
# @type SearchQuery: String
|
74
|
+
# @param PageId: 当前页,从第0页开始计算
|
75
|
+
# @type PageId: Integer
|
76
|
+
# @param NumPerPage: 每页结果数
|
77
|
+
# @type NumPerPage: Integer
|
78
|
+
# @param SearchId: 当前检索号,用于定位问题,建议指定并且全局唯一
|
79
|
+
# @type SearchId: String
|
80
|
+
# @param QueryEncode: 请求编码,0表示utf8,1表示gbk,建议指定
|
81
|
+
# @type QueryEncode: Integer
|
82
|
+
# @param RankType: 排序类型
|
83
|
+
# @type RankType: Integer
|
84
|
+
# @param NumFilter: 数值过滤,结果中按属性过滤
|
85
|
+
# @type NumFilter: String
|
86
|
+
# @param ClFilter: 分类过滤,导航类检索请求
|
87
|
+
# @type ClFilter: String
|
88
|
+
# @param Extra: 检索用户相关字段
|
89
|
+
# @type Extra: String
|
90
|
+
# @param SourceId: 检索来源
|
91
|
+
# @type SourceId: Integer
|
92
|
+
# @param SecondSearch: 是否进行二次检索,0关闭,1打开
|
93
|
+
# @type SecondSearch: Integer
|
94
|
+
# @param MaxDocReturn: 指定返回最大篇数,无特殊原因不建议指定
|
95
|
+
# @type MaxDocReturn: Integer
|
96
|
+
# @param IsSmartbox: 是否smartbox检索,0关闭,1打开
|
97
|
+
# @type IsSmartbox: Integer
|
98
|
+
# @param EnableAbsHighlight: 是否打开高红标亮,0关闭,1打开
|
99
|
+
# @type EnableAbsHighlight: Integer
|
100
|
+
# @param QcBid: 指定访问QC纠错业务ID
|
101
|
+
# @type QcBid: Integer
|
102
|
+
# @param GroupBy: 按指定字段进行group by,只能对数值字段进行操作
|
103
|
+
# @type GroupBy: String
|
104
|
+
# @param Distinct: 按指定字段进行distinct,只能对数值字段进行操作
|
105
|
+
# @type Distinct: String
|
106
|
+
# @param L4RankExpression: 高级排序参数,具体参见高级排序说明
|
107
|
+
# @type L4RankExpression: String
|
108
|
+
# @param MatchValue: 高级排序参数,具体参见高级排序说明
|
109
|
+
# @type MatchValue: String
|
110
|
+
# @param Longitude: 经度信息
|
111
|
+
# @type Longitude: Float
|
112
|
+
# @param Latitude: 纬度信息
|
113
|
+
# @type Latitude: Float
|
114
|
+
# @param MultiFilter: 分类过滤并集
|
115
|
+
# @type MultiFilter: Array
|
116
|
+
|
117
|
+
attr_accessor :ResourceId, :SearchQuery, :PageId, :NumPerPage, :SearchId, :QueryEncode, :RankType, :NumFilter, :ClFilter, :Extra, :SourceId, :SecondSearch, :MaxDocReturn, :IsSmartbox, :EnableAbsHighlight, :QcBid, :GroupBy, :Distinct, :L4RankExpression, :MatchValue, :Longitude, :Latitude, :MultiFilter
|
118
|
+
|
119
|
+
def initialize(resourceid=nil, searchquery=nil, pageid=nil, numperpage=nil, searchid=nil, queryencode=nil, ranktype=nil, numfilter=nil, clfilter=nil, extra=nil, sourceid=nil, secondsearch=nil, maxdocreturn=nil, issmartbox=nil, enableabshighlight=nil, qcbid=nil, groupby=nil, distinct=nil, l4rankexpression=nil, matchvalue=nil, longitude=nil, latitude=nil, multifilter=nil)
|
120
|
+
@ResourceId = resourceid
|
121
|
+
@SearchQuery = searchquery
|
122
|
+
@PageId = pageid
|
123
|
+
@NumPerPage = numperpage
|
124
|
+
@SearchId = searchid
|
125
|
+
@QueryEncode = queryencode
|
126
|
+
@RankType = ranktype
|
127
|
+
@NumFilter = numfilter
|
128
|
+
@ClFilter = clfilter
|
129
|
+
@Extra = extra
|
130
|
+
@SourceId = sourceid
|
131
|
+
@SecondSearch = secondsearch
|
132
|
+
@MaxDocReturn = maxdocreturn
|
133
|
+
@IsSmartbox = issmartbox
|
134
|
+
@EnableAbsHighlight = enableabshighlight
|
135
|
+
@QcBid = qcbid
|
136
|
+
@GroupBy = groupby
|
137
|
+
@Distinct = distinct
|
138
|
+
@L4RankExpression = l4rankexpression
|
139
|
+
@MatchValue = matchvalue
|
140
|
+
@Longitude = longitude
|
141
|
+
@Latitude = latitude
|
142
|
+
@MultiFilter = multifilter
|
143
|
+
end
|
144
|
+
|
145
|
+
def deserialize(params)
|
146
|
+
@ResourceId = params['ResourceId']
|
147
|
+
@SearchQuery = params['SearchQuery']
|
148
|
+
@PageId = params['PageId']
|
149
|
+
@NumPerPage = params['NumPerPage']
|
150
|
+
@SearchId = params['SearchId']
|
151
|
+
@QueryEncode = params['QueryEncode']
|
152
|
+
@RankType = params['RankType']
|
153
|
+
@NumFilter = params['NumFilter']
|
154
|
+
@ClFilter = params['ClFilter']
|
155
|
+
@Extra = params['Extra']
|
156
|
+
@SourceId = params['SourceId']
|
157
|
+
@SecondSearch = params['SecondSearch']
|
158
|
+
@MaxDocReturn = params['MaxDocReturn']
|
159
|
+
@IsSmartbox = params['IsSmartbox']
|
160
|
+
@EnableAbsHighlight = params['EnableAbsHighlight']
|
161
|
+
@QcBid = params['QcBid']
|
162
|
+
@GroupBy = params['GroupBy']
|
163
|
+
@Distinct = params['Distinct']
|
164
|
+
@L4RankExpression = params['L4RankExpression']
|
165
|
+
@MatchValue = params['MatchValue']
|
166
|
+
@Longitude = params['Longitude']
|
167
|
+
@Latitude = params['Latitude']
|
168
|
+
@MultiFilter = params['MultiFilter']
|
169
|
+
end
|
170
|
+
end
|
171
|
+
|
172
|
+
# DataSearch返回参数结构体
|
173
|
+
class DataSearchResponse < TencentCloud::Common::AbstractModel
|
174
|
+
# @param RetMsg: 数据返回信息
|
175
|
+
# @type RetMsg: String
|
176
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
177
|
+
# @type RequestId: String
|
178
|
+
|
179
|
+
attr_accessor :RetMsg, :RequestId
|
180
|
+
|
181
|
+
def initialize(retmsg=nil, requestid=nil)
|
182
|
+
@RetMsg = retmsg
|
183
|
+
@RequestId = requestid
|
184
|
+
end
|
185
|
+
|
186
|
+
def deserialize(params)
|
187
|
+
@RetMsg = params['RetMsg']
|
188
|
+
@RequestId = params['RequestId']
|
189
|
+
end
|
190
|
+
end
|
191
|
+
|
192
|
+
end
|
193
|
+
end
|
194
|
+
end
|
195
|
+
|
@@ -0,0 +1,84 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
|
4
|
+
#
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
+
# you may not use this file except in compliance with the License.
|
7
|
+
# You may obtain a copy of the License at
|
8
|
+
#
|
9
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
10
|
+
#
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
+
# See the License for the specific language governing permissions and
|
15
|
+
# limitations under the License.
|
16
|
+
|
17
|
+
require 'json'
|
18
|
+
|
19
|
+
module TencentCloud
|
20
|
+
module Yunsou
|
21
|
+
module V20191115
|
22
|
+
class Client < TencentCloud::Common::AbstractClient
|
23
|
+
|
24
|
+
def initialize(credential, region, profile = nil)
|
25
|
+
api_version = '2019-11-15'
|
26
|
+
api_endpoint = 'yunsou.tencentcloudapi.com'
|
27
|
+
sdk_version = 'YUNSOU_' + File.read(File.expand_path('../VERSION', __dir__)).strip
|
28
|
+
super(credential, region, api_version, api_endpoint, sdk_version, profile)
|
29
|
+
end
|
30
|
+
|
31
|
+
|
32
|
+
# 上传云搜数据的API接口。
|
33
|
+
|
34
|
+
# @param request: Request instance for DataManipulation.
|
35
|
+
# @type request: :class:`Tencentcloud::yunsou::V20191115::DataManipulationRequest`
|
36
|
+
# @rtype: :class:`Tencentcloud::yunsou::V20191115::DataManipulationResponse`
|
37
|
+
def DataManipulation(request)
|
38
|
+
body = send_request('DataManipulation', request.serialize)
|
39
|
+
response = JSON.parse(body)
|
40
|
+
if response['Response'].key?('Error') == false
|
41
|
+
model = DataManipulationResponse.new
|
42
|
+
model.deserialize(response['Response'])
|
43
|
+
model
|
44
|
+
else
|
45
|
+
code = response['Response']['Error']['Code']
|
46
|
+
message = response['Response']['Error']['Message']
|
47
|
+
reqid = response['Response']['RequestId']
|
48
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
49
|
+
end
|
50
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
51
|
+
raise e
|
52
|
+
rescue StandardError => e
|
53
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
54
|
+
end
|
55
|
+
|
56
|
+
# 用于检索云搜中的数据。
|
57
|
+
|
58
|
+
# @param request: Request instance for DataSearch.
|
59
|
+
# @type request: :class:`Tencentcloud::yunsou::V20191115::DataSearchRequest`
|
60
|
+
# @rtype: :class:`Tencentcloud::yunsou::V20191115::DataSearchResponse`
|
61
|
+
def DataSearch(request)
|
62
|
+
body = send_request('DataSearch', request.serialize)
|
63
|
+
response = JSON.parse(body)
|
64
|
+
if response['Response'].key?('Error') == false
|
65
|
+
model = DataSearchResponse.new
|
66
|
+
model.deserialize(response['Response'])
|
67
|
+
model
|
68
|
+
else
|
69
|
+
code = response['Response']['Error']['Code']
|
70
|
+
message = response['Response']['Error']['Message']
|
71
|
+
reqid = response['Response']['RequestId']
|
72
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
73
|
+
end
|
74
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
75
|
+
raise e
|
76
|
+
rescue StandardError => e
|
77
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
78
|
+
end
|
79
|
+
|
80
|
+
|
81
|
+
end
|
82
|
+
end
|
83
|
+
end
|
84
|
+
end
|
@@ -0,0 +1,370 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
|
4
|
+
#
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
+
# you may not use this file except in compliance with the License.
|
7
|
+
# You may obtain a copy of the License at
|
8
|
+
#
|
9
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
10
|
+
#
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
+
# See the License for the specific language governing permissions and
|
15
|
+
# limitations under the License.
|
16
|
+
|
17
|
+
module TencentCloud
|
18
|
+
module Yunsou
|
19
|
+
module V20191115
|
20
|
+
# DataManipulation请求参数结构体
|
21
|
+
class DataManipulationRequest < TencentCloud::Common::AbstractModel
|
22
|
+
# @param OpType: 操作类型,add或del
|
23
|
+
# @type OpType: String
|
24
|
+
# @param Encoding: 数据编码类型
|
25
|
+
# @type Encoding: String
|
26
|
+
# @param Contents: 数据
|
27
|
+
# @type Contents: String
|
28
|
+
# @param ResourceId: 应用Id
|
29
|
+
# @type ResourceId: Integer
|
30
|
+
|
31
|
+
attr_accessor :OpType, :Encoding, :Contents, :ResourceId
|
32
|
+
|
33
|
+
def initialize(optype=nil, encoding=nil, contents=nil, resourceid=nil)
|
34
|
+
@OpType = optype
|
35
|
+
@Encoding = encoding
|
36
|
+
@Contents = contents
|
37
|
+
@ResourceId = resourceid
|
38
|
+
end
|
39
|
+
|
40
|
+
def deserialize(params)
|
41
|
+
@OpType = params['OpType']
|
42
|
+
@Encoding = params['Encoding']
|
43
|
+
@Contents = params['Contents']
|
44
|
+
@ResourceId = params['ResourceId']
|
45
|
+
end
|
46
|
+
end
|
47
|
+
|
48
|
+
# DataManipulation返回参数结构体
|
49
|
+
class DataManipulationResponse < TencentCloud::Common::AbstractModel
|
50
|
+
# @param Data: 数据操作结果
|
51
|
+
# @type Data: :class:`Tencentcloud::Yunsou.v20191115.models.DataManipulationResult`
|
52
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
53
|
+
# @type RequestId: String
|
54
|
+
|
55
|
+
attr_accessor :Data, :RequestId
|
56
|
+
|
57
|
+
def initialize(data=nil, requestid=nil)
|
58
|
+
@Data = data
|
59
|
+
@RequestId = requestid
|
60
|
+
end
|
61
|
+
|
62
|
+
def deserialize(params)
|
63
|
+
unless params['Data'].nil?
|
64
|
+
@Data = DataManipulationResult.new
|
65
|
+
@Data.deserialize(params['Data'])
|
66
|
+
end
|
67
|
+
@RequestId = params['RequestId']
|
68
|
+
end
|
69
|
+
end
|
70
|
+
|
71
|
+
# 数据操作结果
|
72
|
+
class DataManipulationResult < TencentCloud::Common::AbstractModel
|
73
|
+
# @param AppId: 应用ID
|
74
|
+
# @type AppId: Integer
|
75
|
+
# @param Seq: 序号
|
76
|
+
# @type Seq: Integer
|
77
|
+
# @param TotalResult: 结果
|
78
|
+
# @type TotalResult: String
|
79
|
+
# @param Result: 操作结果明细
|
80
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
81
|
+
# @type Result: Array
|
82
|
+
# @param ErrorResult: 异常信息
|
83
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
84
|
+
# @type ErrorResult: String
|
85
|
+
|
86
|
+
attr_accessor :AppId, :Seq, :TotalResult, :Result, :ErrorResult
|
87
|
+
|
88
|
+
def initialize(appid=nil, seq=nil, totalresult=nil, result=nil, errorresult=nil)
|
89
|
+
@AppId = appid
|
90
|
+
@Seq = seq
|
91
|
+
@TotalResult = totalresult
|
92
|
+
@Result = result
|
93
|
+
@ErrorResult = errorresult
|
94
|
+
end
|
95
|
+
|
96
|
+
def deserialize(params)
|
97
|
+
@AppId = params['AppId']
|
98
|
+
@Seq = params['Seq']
|
99
|
+
@TotalResult = params['TotalResult']
|
100
|
+
unless params['Result'].nil?
|
101
|
+
@Result = []
|
102
|
+
params['Result'].each do |i|
|
103
|
+
datamanipulationresultitem_tmp = DataManipulationResultItem.new
|
104
|
+
datamanipulationresultitem_tmp.deserialize(i)
|
105
|
+
@Result << datamanipulationresultitem_tmp
|
106
|
+
end
|
107
|
+
end
|
108
|
+
@ErrorResult = params['ErrorResult']
|
109
|
+
end
|
110
|
+
end
|
111
|
+
|
112
|
+
# 数据操作结果明细
|
113
|
+
class DataManipulationResultItem < TencentCloud::Common::AbstractModel
|
114
|
+
# @param Result: 结果
|
115
|
+
# @type Result: String
|
116
|
+
# @param DocId: 文档ID
|
117
|
+
# @type DocId: String
|
118
|
+
# @param Errno: 错误码
|
119
|
+
# @type Errno: Integer
|
120
|
+
|
121
|
+
attr_accessor :Result, :DocId, :Errno
|
122
|
+
|
123
|
+
def initialize(result=nil, docid=nil, errno=nil)
|
124
|
+
@Result = result
|
125
|
+
@DocId = docid
|
126
|
+
@Errno = errno
|
127
|
+
end
|
128
|
+
|
129
|
+
def deserialize(params)
|
130
|
+
@Result = params['Result']
|
131
|
+
@DocId = params['DocId']
|
132
|
+
@Errno = params['Errno']
|
133
|
+
end
|
134
|
+
end
|
135
|
+
|
136
|
+
# DataSearch请求参数结构体
|
137
|
+
class DataSearchRequest < TencentCloud::Common::AbstractModel
|
138
|
+
# @param ResourceId: 云搜的业务ID,用以表明当前数据请求的业务
|
139
|
+
# @type ResourceId: Integer
|
140
|
+
# @param SearchQuery: 检索串
|
141
|
+
# @type SearchQuery: String
|
142
|
+
# @param PageId: 当前页,从第0页开始计算
|
143
|
+
# @type PageId: Integer
|
144
|
+
# @param NumPerPage: 每页结果数
|
145
|
+
# @type NumPerPage: Integer
|
146
|
+
# @param SearchId: 当前检索号,用于定位问题,建议指定并且全局唯一
|
147
|
+
# @type SearchId: String
|
148
|
+
# @param QueryEncode: 请求编码,0表示utf8,1表示gbk,建议指定
|
149
|
+
# @type QueryEncode: Integer
|
150
|
+
# @param RankType: 排序类型
|
151
|
+
# @type RankType: Integer
|
152
|
+
# @param NumFilter: 数值过滤,结果中按属性过滤
|
153
|
+
# @type NumFilter: String
|
154
|
+
# @param ClFilter: 分类过滤,导航类检索请求
|
155
|
+
# @type ClFilter: String
|
156
|
+
# @param Extra: 检索用户相关字段
|
157
|
+
# @type Extra: String
|
158
|
+
# @param SourceId: 检索来源
|
159
|
+
# @type SourceId: Integer
|
160
|
+
# @param SecondSearch: 是否进行二次检索,0关闭,1打开
|
161
|
+
# @type SecondSearch: Integer
|
162
|
+
# @param MaxDocReturn: 指定返回最大篇数,无特殊原因不建议指定
|
163
|
+
# @type MaxDocReturn: Integer
|
164
|
+
# @param IsSmartbox: 是否smartbox检索,0关闭,1打开
|
165
|
+
# @type IsSmartbox: Integer
|
166
|
+
# @param EnableAbsHighlight: 是否打开高红标亮,0关闭,1打开
|
167
|
+
# @type EnableAbsHighlight: Integer
|
168
|
+
# @param QcBid: 指定访问QC纠错业务ID
|
169
|
+
# @type QcBid: Integer
|
170
|
+
# @param GroupBy: 按指定字段进行group by,只能对数值字段进行操作
|
171
|
+
# @type GroupBy: String
|
172
|
+
# @param Distinct: 按指定字段进行distinct,只能对数值字段进行操作
|
173
|
+
# @type Distinct: String
|
174
|
+
# @param L4RankExpression: 高级排序参数,具体参见高级排序说明
|
175
|
+
# @type L4RankExpression: String
|
176
|
+
# @param MatchValue: 高级排序参数,具体参见高级排序说明
|
177
|
+
# @type MatchValue: String
|
178
|
+
# @param Longitude: 经度信息
|
179
|
+
# @type Longitude: Float
|
180
|
+
# @param Latitude: 纬度信息
|
181
|
+
# @type Latitude: Float
|
182
|
+
# @param MultiFilter: 分类过滤并集
|
183
|
+
# @type MultiFilter: Array
|
184
|
+
|
185
|
+
attr_accessor :ResourceId, :SearchQuery, :PageId, :NumPerPage, :SearchId, :QueryEncode, :RankType, :NumFilter, :ClFilter, :Extra, :SourceId, :SecondSearch, :MaxDocReturn, :IsSmartbox, :EnableAbsHighlight, :QcBid, :GroupBy, :Distinct, :L4RankExpression, :MatchValue, :Longitude, :Latitude, :MultiFilter
|
186
|
+
|
187
|
+
def initialize(resourceid=nil, searchquery=nil, pageid=nil, numperpage=nil, searchid=nil, queryencode=nil, ranktype=nil, numfilter=nil, clfilter=nil, extra=nil, sourceid=nil, secondsearch=nil, maxdocreturn=nil, issmartbox=nil, enableabshighlight=nil, qcbid=nil, groupby=nil, distinct=nil, l4rankexpression=nil, matchvalue=nil, longitude=nil, latitude=nil, multifilter=nil)
|
188
|
+
@ResourceId = resourceid
|
189
|
+
@SearchQuery = searchquery
|
190
|
+
@PageId = pageid
|
191
|
+
@NumPerPage = numperpage
|
192
|
+
@SearchId = searchid
|
193
|
+
@QueryEncode = queryencode
|
194
|
+
@RankType = ranktype
|
195
|
+
@NumFilter = numfilter
|
196
|
+
@ClFilter = clfilter
|
197
|
+
@Extra = extra
|
198
|
+
@SourceId = sourceid
|
199
|
+
@SecondSearch = secondsearch
|
200
|
+
@MaxDocReturn = maxdocreturn
|
201
|
+
@IsSmartbox = issmartbox
|
202
|
+
@EnableAbsHighlight = enableabshighlight
|
203
|
+
@QcBid = qcbid
|
204
|
+
@GroupBy = groupby
|
205
|
+
@Distinct = distinct
|
206
|
+
@L4RankExpression = l4rankexpression
|
207
|
+
@MatchValue = matchvalue
|
208
|
+
@Longitude = longitude
|
209
|
+
@Latitude = latitude
|
210
|
+
@MultiFilter = multifilter
|
211
|
+
end
|
212
|
+
|
213
|
+
def deserialize(params)
|
214
|
+
@ResourceId = params['ResourceId']
|
215
|
+
@SearchQuery = params['SearchQuery']
|
216
|
+
@PageId = params['PageId']
|
217
|
+
@NumPerPage = params['NumPerPage']
|
218
|
+
@SearchId = params['SearchId']
|
219
|
+
@QueryEncode = params['QueryEncode']
|
220
|
+
@RankType = params['RankType']
|
221
|
+
@NumFilter = params['NumFilter']
|
222
|
+
@ClFilter = params['ClFilter']
|
223
|
+
@Extra = params['Extra']
|
224
|
+
@SourceId = params['SourceId']
|
225
|
+
@SecondSearch = params['SecondSearch']
|
226
|
+
@MaxDocReturn = params['MaxDocReturn']
|
227
|
+
@IsSmartbox = params['IsSmartbox']
|
228
|
+
@EnableAbsHighlight = params['EnableAbsHighlight']
|
229
|
+
@QcBid = params['QcBid']
|
230
|
+
@GroupBy = params['GroupBy']
|
231
|
+
@Distinct = params['Distinct']
|
232
|
+
@L4RankExpression = params['L4RankExpression']
|
233
|
+
@MatchValue = params['MatchValue']
|
234
|
+
@Longitude = params['Longitude']
|
235
|
+
@Latitude = params['Latitude']
|
236
|
+
@MultiFilter = params['MultiFilter']
|
237
|
+
end
|
238
|
+
end
|
239
|
+
|
240
|
+
# DataSearch返回参数结构体
|
241
|
+
class DataSearchResponse < TencentCloud::Common::AbstractModel
|
242
|
+
# @param Data: 检索结果
|
243
|
+
# @type Data: :class:`Tencentcloud::Yunsou.v20191115.models.SearchResult`
|
244
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
245
|
+
# @type RequestId: String
|
246
|
+
|
247
|
+
attr_accessor :Data, :RequestId
|
248
|
+
|
249
|
+
def initialize(data=nil, requestid=nil)
|
250
|
+
@Data = data
|
251
|
+
@RequestId = requestid
|
252
|
+
end
|
253
|
+
|
254
|
+
def deserialize(params)
|
255
|
+
unless params['Data'].nil?
|
256
|
+
@Data = SearchResult.new
|
257
|
+
@Data.deserialize(params['Data'])
|
258
|
+
end
|
259
|
+
@RequestId = params['RequestId']
|
260
|
+
end
|
261
|
+
end
|
262
|
+
|
263
|
+
# 搜索结果
|
264
|
+
class SearchResult < TencentCloud::Common::AbstractModel
|
265
|
+
# @param CostTime: 检索耗时,单位ms
|
266
|
+
# @type CostTime: Integer
|
267
|
+
# @param DisplayNum: 搜索最多可以展示的结果数,多页
|
268
|
+
# @type DisplayNum: Integer
|
269
|
+
# @param Echo: 和检索请求中的echo相对应
|
270
|
+
# @type Echo: String
|
271
|
+
# @param EResultNum: 检索结果的估算篇数,由索引平台估算
|
272
|
+
# @type EResultNum: Integer
|
273
|
+
# @param ResultNum: 检索返回的当前页码结果数
|
274
|
+
# @type ResultNum: Integer
|
275
|
+
# @param ResultList: 检索结果列表
|
276
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
277
|
+
# @type ResultList: Array
|
278
|
+
# @param SegList: 检索的分词结果,array类型,可包含多个
|
279
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
280
|
+
# @type SegList: Array
|
281
|
+
|
282
|
+
attr_accessor :CostTime, :DisplayNum, :Echo, :EResultNum, :ResultNum, :ResultList, :SegList
|
283
|
+
|
284
|
+
def initialize(costtime=nil, displaynum=nil, echo=nil, eresultnum=nil, resultnum=nil, resultlist=nil, seglist=nil)
|
285
|
+
@CostTime = costtime
|
286
|
+
@DisplayNum = displaynum
|
287
|
+
@Echo = echo
|
288
|
+
@EResultNum = eresultnum
|
289
|
+
@ResultNum = resultnum
|
290
|
+
@ResultList = resultlist
|
291
|
+
@SegList = seglist
|
292
|
+
end
|
293
|
+
|
294
|
+
def deserialize(params)
|
295
|
+
@CostTime = params['CostTime']
|
296
|
+
@DisplayNum = params['DisplayNum']
|
297
|
+
@Echo = params['Echo']
|
298
|
+
@EResultNum = params['EResultNum']
|
299
|
+
@ResultNum = params['ResultNum']
|
300
|
+
unless params['ResultList'].nil?
|
301
|
+
@ResultList = []
|
302
|
+
params['ResultList'].each do |i|
|
303
|
+
searchresultitem_tmp = SearchResultItem.new
|
304
|
+
searchresultitem_tmp.deserialize(i)
|
305
|
+
@ResultList << searchresultitem_tmp
|
306
|
+
end
|
307
|
+
end
|
308
|
+
unless params['SegList'].nil?
|
309
|
+
@SegList = []
|
310
|
+
params['SegList'].each do |i|
|
311
|
+
searchresultseg_tmp = SearchResultSeg.new
|
312
|
+
searchresultseg_tmp.deserialize(i)
|
313
|
+
@SegList << searchresultseg_tmp
|
314
|
+
end
|
315
|
+
end
|
316
|
+
end
|
317
|
+
end
|
318
|
+
|
319
|
+
# 搜索结果元素
|
320
|
+
class SearchResultItem < TencentCloud::Common::AbstractModel
|
321
|
+
# @param DocAbs: 动态摘要信息
|
322
|
+
# @type DocAbs: String
|
323
|
+
# @param DocId: 检索文档id
|
324
|
+
# @type DocId: String
|
325
|
+
# @param DocMeta: 原始文档信息
|
326
|
+
# @type DocMeta: String
|
327
|
+
# @param L2Score: 精计算得分
|
328
|
+
# @type L2Score: Float
|
329
|
+
# @param SearchDebuginfo: 文档级回传信息
|
330
|
+
# @type SearchDebuginfo: String
|
331
|
+
|
332
|
+
attr_accessor :DocAbs, :DocId, :DocMeta, :L2Score, :SearchDebuginfo
|
333
|
+
|
334
|
+
def initialize(docabs=nil, docid=nil, docmeta=nil, l2score=nil, searchdebuginfo=nil)
|
335
|
+
@DocAbs = docabs
|
336
|
+
@DocId = docid
|
337
|
+
@DocMeta = docmeta
|
338
|
+
@L2Score = l2score
|
339
|
+
@SearchDebuginfo = searchdebuginfo
|
340
|
+
end
|
341
|
+
|
342
|
+
def deserialize(params)
|
343
|
+
@DocAbs = params['DocAbs']
|
344
|
+
@DocId = params['DocId']
|
345
|
+
@DocMeta = params['DocMeta']
|
346
|
+
@L2Score = params['L2Score']
|
347
|
+
@SearchDebuginfo = params['SearchDebuginfo']
|
348
|
+
end
|
349
|
+
end
|
350
|
+
|
351
|
+
# SearchResultSeg
|
352
|
+
class SearchResultSeg < TencentCloud::Common::AbstractModel
|
353
|
+
# @param SegStr: 分词
|
354
|
+
# @type SegStr: String
|
355
|
+
|
356
|
+
attr_accessor :SegStr
|
357
|
+
|
358
|
+
def initialize(segstr=nil)
|
359
|
+
@SegStr = segstr
|
360
|
+
end
|
361
|
+
|
362
|
+
def deserialize(params)
|
363
|
+
@SegStr = params['SegStr']
|
364
|
+
end
|
365
|
+
end
|
366
|
+
|
367
|
+
end
|
368
|
+
end
|
369
|
+
end
|
370
|
+
|
metadata
ADDED
@@ -0,0 +1,68 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: tencentcloud-sdk-yunsou
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 1.0.200
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Tencent Cloud
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2021-11-11 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: tencentcloud-sdk-common
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '1.0'
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '1.0'
|
27
|
+
description: Tencent Cloud Ruby SDK is the official software development kit, which
|
28
|
+
allows Ruby developers to write software that makes use of Tencent Cloud service
|
29
|
+
YUNSOU.
|
30
|
+
email:
|
31
|
+
- tencentcloudapi@tencent.com
|
32
|
+
executables: []
|
33
|
+
extensions: []
|
34
|
+
extra_rdoc_files: []
|
35
|
+
files:
|
36
|
+
- lib/VERSION
|
37
|
+
- lib/tencentcloud-sdk-yunsou.rb
|
38
|
+
- lib/v20180504/client.rb
|
39
|
+
- lib/v20180504/models.rb
|
40
|
+
- lib/v20191115/client.rb
|
41
|
+
- lib/v20191115/models.rb
|
42
|
+
homepage: https://github.com/TencentCloud/tencentcloud-sdk-ruby
|
43
|
+
licenses:
|
44
|
+
- Apache-2.0
|
45
|
+
metadata:
|
46
|
+
source_code_uri: https://github.com/TencentCloud/tencentcloud-sdk-ruby/tencentcloud-sdk-yunsou
|
47
|
+
changelog_uri: https://github.com/TencentCloud/tencentcloud-sdk-ruby/blob/master/CHANGELOG.md
|
48
|
+
post_install_message:
|
49
|
+
rdoc_options: []
|
50
|
+
require_paths:
|
51
|
+
- lib
|
52
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
53
|
+
requirements:
|
54
|
+
- - ">="
|
55
|
+
- !ruby/object:Gem::Version
|
56
|
+
version: '0'
|
57
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - ">="
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0'
|
62
|
+
requirements: []
|
63
|
+
rubyforge_project:
|
64
|
+
rubygems_version: 2.6.14
|
65
|
+
signing_key:
|
66
|
+
specification_version: 4
|
67
|
+
summary: Tencent Cloud SDK for Ruby - YUNSOU
|
68
|
+
test_files: []
|