tencentcloud-sdk-es 1.0.279 → 1.0.282

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 99bc2f4b4a19cced06fc2b86ae646ec4999d7826
4
- data.tar.gz: 030b8bcab8d66e92312fe03544dbb36ed9d81cd6
3
+ metadata.gz: f280a06819aa078607b3fe22056e570c49fa89be
4
+ data.tar.gz: 2b4bd6c7be103029227597fe2e772fcabda62452
5
5
  SHA512:
6
- metadata.gz: cdbea59ce8e112386f978772fa29cec1921e0ea451965893c44f872b117ebf163c04347daeba60fd5bc5feb7efe1f7ebc55e54e1e0d88d26353187f8c5720743
7
- data.tar.gz: 2e622ab98a0e04d359332382959d77577da6ca6be4d2a9ab062d198b4f4962c52a32b07bb4f093dda973210e557a51efb5d3a4d1658c31b915e7c08b94b1d0ec
6
+ metadata.gz: 564861fee09165b9d5ba8e17ef301dfe52f8f0f1ac50a0fb207ba003dc2a89045d05eb6baac3b34ec66c8fa09ffe83a1cf4bd9c051b21ac074fbe678d63b0146
7
+ data.tar.gz: 17fdcc135b7ab00ee665235596bde1fd27b09c5a1de87b6e245a085ea44190e83a85a9ab132190fdd232c4189c054804271273b81b988c89e18dd2fb5bf54bff
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.279
1
+ 1.0.282
@@ -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: 修改节点配置(节点横向扩缩容,纵向扩缩容,增加主节点,增加冷节点等)
@@ -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.279
4
+ version: 1.0.282
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-18 00:00:00.000000000 Z
11
+ date: 2022-03-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common