tencentcloud-sdk-es 1.0.280 → 1.0.281
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/VERSION +1 -1
- data/lib/v20180416/client.rb +24 -0
- data/lib/v20180416/models.rb +56 -0
- 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: 2ff818722665941a52d02ddade3c4958565cd020
|
4
|
+
data.tar.gz: 1a6ff4780f6e973b635fecf7bb8cb7716f815d24
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 58937abc2c3d29bdc0b34ddd2327ab1117700757a4cfe1f26aa10ff088aad454daec8377c6d706283e3611fab0f881a800081eaf35adc1f16f2efecd03dde08e
|
7
|
+
data.tar.gz: 444868debadc8cbe23891c4a0a2dd1a2d7c21a6561de135bb2f3d086574627ae2969a670e292963b1426df9010882b5925004e91cb7d27b3efe9f92bc49513a3
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0.
|
1
|
+
1.0.281
|
data/lib/v20180416/client.rb
CHANGED
@@ -317,6 +317,30 @@ module TencentCloud
|
|
317
317
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
318
318
|
end
|
319
319
|
|
320
|
+
# 更新ES集群词典
|
321
|
+
|
322
|
+
# @param request: Request instance for UpdateDictionaries.
|
323
|
+
# @type request: :class:`Tencentcloud::es::V20180416::UpdateDictionariesRequest`
|
324
|
+
# @rtype: :class:`Tencentcloud::es::V20180416::UpdateDictionariesResponse`
|
325
|
+
def UpdateDictionaries(request)
|
326
|
+
body = send_request('UpdateDictionaries', request.serialize)
|
327
|
+
response = JSON.parse(body)
|
328
|
+
if response['Response'].key?('Error') == false
|
329
|
+
model = UpdateDictionariesResponse.new
|
330
|
+
model.deserialize(response['Response'])
|
331
|
+
model
|
332
|
+
else
|
333
|
+
code = response['Response']['Error']['Code']
|
334
|
+
message = response['Response']['Error']['Message']
|
335
|
+
reqid = response['Response']['RequestId']
|
336
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
337
|
+
end
|
338
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
339
|
+
raise e
|
340
|
+
rescue StandardError => e
|
341
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
342
|
+
end
|
343
|
+
|
320
344
|
# 对集群进行节点规格变更,修改实例名称,修改配置,重置密码, 添加Kibana黑白名单等操作。参数中InstanceId为必传参数,ForceRestart为选填参数,剩余参数传递组合及含义如下:
|
321
345
|
# - InstanceName:修改实例名称(仅用于标识实例)
|
322
346
|
# - NodeInfoList: 修改节点配置(节点横向扩缩容,纵向扩缩容,增加主节点,增加冷节点等)
|
data/lib/v20180416/models.rb
CHANGED
@@ -1908,6 +1908,62 @@ module TencentCloud
|
|
1908
1908
|
end
|
1909
1909
|
end
|
1910
1910
|
|
1911
|
+
# UpdateDictionaries请求参数结构体
|
1912
|
+
class UpdateDictionariesRequest < TencentCloud::Common::AbstractModel
|
1913
|
+
# @param InstanceId: ES实例ID
|
1914
|
+
# @type InstanceId: String
|
1915
|
+
# @param IkMainDicts: IK分词主词典COS地址
|
1916
|
+
# @type IkMainDicts: Array
|
1917
|
+
# @param IkStopwords: IK分词停用词词典COS地址
|
1918
|
+
# @type IkStopwords: Array
|
1919
|
+
# @param Synonym: 同义词词典COS地址
|
1920
|
+
# @type Synonym: Array
|
1921
|
+
# @param QQDict: QQ分词词典COS地址
|
1922
|
+
# @type QQDict: Array
|
1923
|
+
# @param UpdateType: 0:安装;1:删除
|
1924
|
+
# @type UpdateType: Integer
|
1925
|
+
# @param ForceRestart: 是否强制重启集群
|
1926
|
+
# @type ForceRestart: Boolean
|
1927
|
+
|
1928
|
+
attr_accessor :InstanceId, :IkMainDicts, :IkStopwords, :Synonym, :QQDict, :UpdateType, :ForceRestart
|
1929
|
+
|
1930
|
+
def initialize(instanceid=nil, ikmaindicts=nil, ikstopwords=nil, synonym=nil, qqdict=nil, updatetype=nil, forcerestart=nil)
|
1931
|
+
@InstanceId = instanceid
|
1932
|
+
@IkMainDicts = ikmaindicts
|
1933
|
+
@IkStopwords = ikstopwords
|
1934
|
+
@Synonym = synonym
|
1935
|
+
@QQDict = qqdict
|
1936
|
+
@UpdateType = updatetype
|
1937
|
+
@ForceRestart = forcerestart
|
1938
|
+
end
|
1939
|
+
|
1940
|
+
def deserialize(params)
|
1941
|
+
@InstanceId = params['InstanceId']
|
1942
|
+
@IkMainDicts = params['IkMainDicts']
|
1943
|
+
@IkStopwords = params['IkStopwords']
|
1944
|
+
@Synonym = params['Synonym']
|
1945
|
+
@QQDict = params['QQDict']
|
1946
|
+
@UpdateType = params['UpdateType']
|
1947
|
+
@ForceRestart = params['ForceRestart']
|
1948
|
+
end
|
1949
|
+
end
|
1950
|
+
|
1951
|
+
# UpdateDictionaries返回参数结构体
|
1952
|
+
class UpdateDictionariesResponse < TencentCloud::Common::AbstractModel
|
1953
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
1954
|
+
# @type RequestId: String
|
1955
|
+
|
1956
|
+
attr_accessor :RequestId
|
1957
|
+
|
1958
|
+
def initialize(requestid=nil)
|
1959
|
+
@RequestId = requestid
|
1960
|
+
end
|
1961
|
+
|
1962
|
+
def deserialize(params)
|
1963
|
+
@RequestId = params['RequestId']
|
1964
|
+
end
|
1965
|
+
end
|
1966
|
+
|
1911
1967
|
# UpdateInstance请求参数结构体
|
1912
1968
|
class UpdateInstanceRequest < TencentCloud::Common::AbstractModel
|
1913
1969
|
# @param InstanceId: 实例ID
|
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: 1.0.
|
4
|
+
version: 1.0.281
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tencent Cloud
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-03-
|
11
|
+
date: 2022-03-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|