tencentcloud-sdk-es 3.0.781 → 3.0.782

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: fcbcf79fe4e355ec4d9c4118a3c7db64e4cd3982
4
- data.tar.gz: 47df3bf128b2ea8389be3ab9bdd13dd6d55a405b
3
+ metadata.gz: 384671ab573a1b4b01e15feaf6db9bc7e4db6542
4
+ data.tar.gz: 756dadc43299b54742ac23b8179a2f09bce5aae8
5
5
  SHA512:
6
- metadata.gz: d9a62c766c5c8a58679d23661d8634ccb67f98e6060fd87ae78b1dada84f701ca40bef279d081f3991cf001c4aeab11382959b3fc25fb2a89bd72bc5856bdf61
7
- data.tar.gz: 110024fed36651cdc0ff85fa745608e67049d9305c2d3da9d48dc0336a31c171abc501872a0be173a36a6e01ec5636ef1e8fac9bde16641a3b0971cb0c58c375
6
+ metadata.gz: 274ec45a6a927f6ca1bc150b9782192db640f6f1c8a254ea4cb5d48e7af3635bd3129e7cca437325c687306ca3c1e7fbbd5b38c7c9f628ceba5aba6bdcfbfb8b
7
+ data.tar.gz: c185e2a97db3d3b2a502cc6a705211698cb27836643d542b389478ab5809810539da93b03ee62180e260a4aa76fcb23e31a4c47619f0db28ccf1da43190949a8
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.781
1
+ 3.0.782
@@ -29,6 +29,54 @@ module TencentCloud
29
29
  end
30
30
 
31
31
 
32
+ # 检查cos迁移索引元数据
33
+
34
+ # @param request: Request instance for CheckMigrateIndexMetaData.
35
+ # @type request: :class:`Tencentcloud::es::V20180416::CheckMigrateIndexMetaDataRequest`
36
+ # @rtype: :class:`Tencentcloud::es::V20180416::CheckMigrateIndexMetaDataResponse`
37
+ def CheckMigrateIndexMetaData(request)
38
+ body = send_request('CheckMigrateIndexMetaData', request.serialize)
39
+ response = JSON.parse(body)
40
+ if response['Response'].key?('Error') == false
41
+ model = CheckMigrateIndexMetaDataResponse.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
+ # cos迁移流程
57
+
58
+ # @param request: Request instance for CreateCosMigrateToServerlessInstance.
59
+ # @type request: :class:`Tencentcloud::es::V20180416::CreateCosMigrateToServerlessInstanceRequest`
60
+ # @rtype: :class:`Tencentcloud::es::V20180416::CreateCosMigrateToServerlessInstanceResponse`
61
+ def CreateCosMigrateToServerlessInstance(request)
62
+ body = send_request('CreateCosMigrateToServerlessInstance', request.serialize)
63
+ response = JSON.parse(body)
64
+ if response['Response'].key?('Error') == false
65
+ model = CreateCosMigrateToServerlessInstanceResponse.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
+
32
80
  # 创建索引
33
81
 
34
82
  # @param request: Request instance for CreateIndex.
@@ -605,6 +653,30 @@ module TencentCloud
605
653
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
606
654
  end
607
655
 
656
+ # 查询快照信息接口
657
+
658
+ # @param request: Request instance for DescribeUserCosSnapshotList.
659
+ # @type request: :class:`Tencentcloud::es::V20180416::DescribeUserCosSnapshotListRequest`
660
+ # @rtype: :class:`Tencentcloud::es::V20180416::DescribeUserCosSnapshotListResponse`
661
+ def DescribeUserCosSnapshotList(request)
662
+ body = send_request('DescribeUserCosSnapshotList', request.serialize)
663
+ response = JSON.parse(body)
664
+ if response['Response'].key?('Error') == false
665
+ model = DescribeUserCosSnapshotListResponse.new
666
+ model.deserialize(response['Response'])
667
+ model
668
+ else
669
+ code = response['Response']['Error']['Code']
670
+ message = response['Response']['Error']['Message']
671
+ reqid = response['Response']['RequestId']
672
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
673
+ end
674
+ rescue TencentCloud::Common::TencentCloudSDKException => e
675
+ raise e
676
+ rescue StandardError => e
677
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
678
+ end
679
+
608
680
  # 查询集群各视图数据,包括集群维度、节点维度、Kibana维度
609
681
 
610
682
  # @param request: Request instance for DescribeViews.
@@ -54,6 +54,74 @@ module TencentCloud
54
54
  end
55
55
  end
56
56
 
57
+ # CheckMigrateIndexMetaData请求参数结构体
58
+ class CheckMigrateIndexMetaDataRequest < TencentCloud::Common::AbstractModel
59
+ # @param ServerlessId: 索引 id
60
+ # @type ServerlessId: String
61
+ # @param Snapshot: 快照名
62
+ # @type Snapshot: String
63
+ # @param CosBucket: Cos桶名
64
+ # @type CosBucket: String
65
+ # @param BasePath: BasePath路径
66
+ # @type BasePath: String
67
+ # @param ClusterInstanceId: 云上集群名
68
+ # @type ClusterInstanceId: String
69
+ # @param CommonIndexArr: 普通索引名列表
70
+ # @type CommonIndexArr: Array
71
+ # @param DataStreamArr: 自治索引名列表
72
+ # @type DataStreamArr: Array
73
+
74
+ attr_accessor :ServerlessId, :Snapshot, :CosBucket, :BasePath, :ClusterInstanceId, :CommonIndexArr, :DataStreamArr
75
+
76
+ def initialize(serverlessid=nil, snapshot=nil, cosbucket=nil, basepath=nil, clusterinstanceid=nil, commonindexarr=nil, datastreamarr=nil)
77
+ @ServerlessId = serverlessid
78
+ @Snapshot = snapshot
79
+ @CosBucket = cosbucket
80
+ @BasePath = basepath
81
+ @ClusterInstanceId = clusterinstanceid
82
+ @CommonIndexArr = commonindexarr
83
+ @DataStreamArr = datastreamarr
84
+ end
85
+
86
+ def deserialize(params)
87
+ @ServerlessId = params['ServerlessId']
88
+ @Snapshot = params['Snapshot']
89
+ @CosBucket = params['CosBucket']
90
+ @BasePath = params['BasePath']
91
+ @ClusterInstanceId = params['ClusterInstanceId']
92
+ @CommonIndexArr = params['CommonIndexArr']
93
+ @DataStreamArr = params['DataStreamArr']
94
+ end
95
+ end
96
+
97
+ # CheckMigrateIndexMetaData返回参数结构体
98
+ class CheckMigrateIndexMetaDataResponse < TencentCloud::Common::AbstractModel
99
+ # @param MappingTimeFieldCheckFailedIndexArr: 不存在于目标索引时间字段相同的字段
100
+ # @type MappingTimeFieldCheckFailedIndexArr: Array
101
+ # @param MappingTimeTypeCheckFailedIndexArr: @timestamp不为date类型,与目标索引时间字段冲突
102
+ # @type MappingTimeTypeCheckFailedIndexArr: Array
103
+ # @param SettingCheckFailedIndexArr: 索引的创建时间不在 serverless的存储周期内
104
+ # @type SettingCheckFailedIndexArr: Array
105
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
106
+ # @type RequestId: String
107
+
108
+ attr_accessor :MappingTimeFieldCheckFailedIndexArr, :MappingTimeTypeCheckFailedIndexArr, :SettingCheckFailedIndexArr, :RequestId
109
+
110
+ def initialize(mappingtimefieldcheckfailedindexarr=nil, mappingtimetypecheckfailedindexarr=nil, settingcheckfailedindexarr=nil, requestid=nil)
111
+ @MappingTimeFieldCheckFailedIndexArr = mappingtimefieldcheckfailedindexarr
112
+ @MappingTimeTypeCheckFailedIndexArr = mappingtimetypecheckfailedindexarr
113
+ @SettingCheckFailedIndexArr = settingcheckfailedindexarr
114
+ @RequestId = requestid
115
+ end
116
+
117
+ def deserialize(params)
118
+ @MappingTimeFieldCheckFailedIndexArr = params['MappingTimeFieldCheckFailedIndexArr']
119
+ @MappingTimeTypeCheckFailedIndexArr = params['MappingTimeTypeCheckFailedIndexArr']
120
+ @SettingCheckFailedIndexArr = params['SettingCheckFailedIndexArr']
121
+ @RequestId = params['RequestId']
122
+ end
123
+ end
124
+
57
125
  # 集群维度视图数据
58
126
  class ClusterView < TencentCloud::Common::AbstractModel
59
127
  # @param Health: 集群健康状态
@@ -156,6 +224,28 @@ module TencentCloud
156
224
  end
157
225
  end
158
226
 
227
+ # 普通索引信息列表
228
+ class CommonIndexInfo < TencentCloud::Common::AbstractModel
229
+ # @param IndexName: 普通索引名
230
+ # 注意:此字段可能返回 null,表示取不到有效值。
231
+ # @type IndexName: String
232
+ # @param IsShardComplete: 分片状态
233
+ # 注意:此字段可能返回 null,表示取不到有效值。
234
+ # @type IsShardComplete: Integer
235
+
236
+ attr_accessor :IndexName, :IsShardComplete
237
+
238
+ def initialize(indexname=nil, isshardcomplete=nil)
239
+ @IndexName = indexname
240
+ @IsShardComplete = isshardcomplete
241
+ end
242
+
243
+ def deserialize(params)
244
+ @IndexName = params['IndexName']
245
+ @IsShardComplete = params['IsShardComplete']
246
+ end
247
+ end
248
+
159
249
  # ES cos自动备份信息
160
250
  class CosBackup < TencentCloud::Common::AbstractModel
161
251
  # @param IsAutoBackup: 是否开启cos自动备份
@@ -176,6 +266,127 @@ module TencentCloud
176
266
  end
177
267
  end
178
268
 
269
+ # 无
270
+ class CosSnapShotInfo < TencentCloud::Common::AbstractModel
271
+ # @param CosBucket: cos 桶名
272
+ # 注意:此字段可能返回 null,表示取不到有效值。
273
+ # @type CosBucket: String
274
+ # @param BasePath: base path
275
+ # 注意:此字段可能返回 null,表示取不到有效值。
276
+ # @type BasePath: String
277
+ # @param SnapshotName: 快照名
278
+ # 注意:此字段可能返回 null,表示取不到有效值。
279
+ # @type SnapshotName: String
280
+ # @param State: 状态
281
+ # 注意:此字段可能返回 null,表示取不到有效值。
282
+ # @type State: String
283
+ # @param Version: 快照版本
284
+ # 注意:此字段可能返回 null,表示取不到有效值。
285
+ # @type Version: String
286
+ # @param CommonIndexArr: 普通索引信息列表
287
+ # 注意:此字段可能返回 null,表示取不到有效值。
288
+ # @type CommonIndexArr: Array
289
+ # @param DataStreamArr: 自治索引信息列表
290
+ # 注意:此字段可能返回 null,表示取不到有效值。
291
+ # @type DataStreamArr: Array
292
+
293
+ attr_accessor :CosBucket, :BasePath, :SnapshotName, :State, :Version, :CommonIndexArr, :DataStreamArr
294
+
295
+ def initialize(cosbucket=nil, basepath=nil, snapshotname=nil, state=nil, version=nil, commonindexarr=nil, datastreamarr=nil)
296
+ @CosBucket = cosbucket
297
+ @BasePath = basepath
298
+ @SnapshotName = snapshotname
299
+ @State = state
300
+ @Version = version
301
+ @CommonIndexArr = commonindexarr
302
+ @DataStreamArr = datastreamarr
303
+ end
304
+
305
+ def deserialize(params)
306
+ @CosBucket = params['CosBucket']
307
+ @BasePath = params['BasePath']
308
+ @SnapshotName = params['SnapshotName']
309
+ @State = params['State']
310
+ @Version = params['Version']
311
+ unless params['CommonIndexArr'].nil?
312
+ @CommonIndexArr = []
313
+ params['CommonIndexArr'].each do |i|
314
+ commonindexinfo_tmp = CommonIndexInfo.new
315
+ commonindexinfo_tmp.deserialize(i)
316
+ @CommonIndexArr << commonindexinfo_tmp
317
+ end
318
+ end
319
+ unless params['DataStreamArr'].nil?
320
+ @DataStreamArr = []
321
+ params['DataStreamArr'].each do |i|
322
+ datastreaminfo_tmp = DataStreamInfo.new
323
+ datastreaminfo_tmp.deserialize(i)
324
+ @DataStreamArr << datastreaminfo_tmp
325
+ end
326
+ end
327
+ end
328
+ end
329
+
330
+ # CreateCosMigrateToServerlessInstance请求参数结构体
331
+ class CreateCosMigrateToServerlessInstanceRequest < TencentCloud::Common::AbstractModel
332
+ # @param Snapshot: 快照名
333
+ # @type Snapshot: String
334
+ # @param ServerlessId: 索引 id
335
+ # @type ServerlessId: String
336
+ # @param CosBucket: cos 桶名
337
+ # @type CosBucket: String
338
+ # @param BasePath: BasePath 路径
339
+ # @type BasePath: String
340
+ # @param ClusterInstanceId: 云上集群 id
341
+ # @type ClusterInstanceId: String
342
+ # @param CommonIndexArr: 待迁移普通索引名列表
343
+ # @type CommonIndexArr: Array
344
+ # @param DataStreamArr: 待迁移自治索引名列表
345
+ # @type DataStreamArr: Array
346
+
347
+ attr_accessor :Snapshot, :ServerlessId, :CosBucket, :BasePath, :ClusterInstanceId, :CommonIndexArr, :DataStreamArr
348
+
349
+ def initialize(snapshot=nil, serverlessid=nil, cosbucket=nil, basepath=nil, clusterinstanceid=nil, commonindexarr=nil, datastreamarr=nil)
350
+ @Snapshot = snapshot
351
+ @ServerlessId = serverlessid
352
+ @CosBucket = cosbucket
353
+ @BasePath = basepath
354
+ @ClusterInstanceId = clusterinstanceid
355
+ @CommonIndexArr = commonindexarr
356
+ @DataStreamArr = datastreamarr
357
+ end
358
+
359
+ def deserialize(params)
360
+ @Snapshot = params['Snapshot']
361
+ @ServerlessId = params['ServerlessId']
362
+ @CosBucket = params['CosBucket']
363
+ @BasePath = params['BasePath']
364
+ @ClusterInstanceId = params['ClusterInstanceId']
365
+ @CommonIndexArr = params['CommonIndexArr']
366
+ @DataStreamArr = params['DataStreamArr']
367
+ end
368
+ end
369
+
370
+ # CreateCosMigrateToServerlessInstance返回参数结构体
371
+ class CreateCosMigrateToServerlessInstanceResponse < TencentCloud::Common::AbstractModel
372
+ # @param TaskId: 迁移 taskid
373
+ # @type TaskId: String
374
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
375
+ # @type RequestId: String
376
+
377
+ attr_accessor :TaskId, :RequestId
378
+
379
+ def initialize(taskid=nil, requestid=nil)
380
+ @TaskId = taskid
381
+ @RequestId = requestid
382
+ end
383
+
384
+ def deserialize(params)
385
+ @TaskId = params['TaskId']
386
+ @RequestId = params['RequestId']
387
+ end
388
+ end
389
+
179
390
  # CreateIndex请求参数结构体
180
391
  class CreateIndexRequest < TencentCloud::Common::AbstractModel
181
392
  # @param InstanceId: ES集群ID
@@ -708,6 +919,28 @@ module TencentCloud
708
919
  end
709
920
  end
710
921
 
922
+ # 自治索引信息
923
+ class DataStreamInfo < TencentCloud::Common::AbstractModel
924
+ # @param DataStreamName: 自治索引名
925
+ # 注意:此字段可能返回 null,表示取不到有效值。
926
+ # @type DataStreamName: String
927
+ # @param IsShardComplete: 分片状态
928
+ # 注意:此字段可能返回 null,表示取不到有效值。
929
+ # @type IsShardComplete: Integer
930
+
931
+ attr_accessor :DataStreamName, :IsShardComplete
932
+
933
+ def initialize(datastreamname=nil, isshardcomplete=nil)
934
+ @DataStreamName = datastreamname
935
+ @IsShardComplete = isshardcomplete
936
+ end
937
+
938
+ def deserialize(params)
939
+ @DataStreamName = params['DataStreamName']
940
+ @IsShardComplete = params['IsShardComplete']
941
+ end
942
+ end
943
+
711
944
  # DeleteIndex请求参数结构体
712
945
  class DeleteIndexRequest < TencentCloud::Common::AbstractModel
713
946
  # @param InstanceId: ES集群ID
@@ -1889,6 +2122,61 @@ module TencentCloud
1889
2122
  end
1890
2123
  end
1891
2124
 
2125
+ # DescribeUserCosSnapshotList请求参数结构体
2126
+ class DescribeUserCosSnapshotListRequest < TencentCloud::Common::AbstractModel
2127
+ # @param CosBucket: cos桶名
2128
+ # @type CosBucket: String
2129
+ # @param BasePath: bucket 桶下的备份路径
2130
+ # @type BasePath: String
2131
+ # @param ClusterInstanceId: 云上集群迁移集群名
2132
+ # @type ClusterInstanceId: String
2133
+
2134
+ attr_accessor :CosBucket, :BasePath, :ClusterInstanceId
2135
+
2136
+ def initialize(cosbucket=nil, basepath=nil, clusterinstanceid=nil)
2137
+ @CosBucket = cosbucket
2138
+ @BasePath = basepath
2139
+ @ClusterInstanceId = clusterinstanceid
2140
+ end
2141
+
2142
+ def deserialize(params)
2143
+ @CosBucket = params['CosBucket']
2144
+ @BasePath = params['BasePath']
2145
+ @ClusterInstanceId = params['ClusterInstanceId']
2146
+ end
2147
+ end
2148
+
2149
+ # DescribeUserCosSnapshotList返回参数结构体
2150
+ class DescribeUserCosSnapshotListResponse < TencentCloud::Common::AbstractModel
2151
+ # @param CosSnapshotInfoList: cos 快照信息列表
2152
+ # @type CosSnapshotInfoList: Array
2153
+ # @param TotalCount: cos 快照数量
2154
+ # @type TotalCount: Integer
2155
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
2156
+ # @type RequestId: String
2157
+
2158
+ attr_accessor :CosSnapshotInfoList, :TotalCount, :RequestId
2159
+
2160
+ def initialize(cossnapshotinfolist=nil, totalcount=nil, requestid=nil)
2161
+ @CosSnapshotInfoList = cossnapshotinfolist
2162
+ @TotalCount = totalcount
2163
+ @RequestId = requestid
2164
+ end
2165
+
2166
+ def deserialize(params)
2167
+ unless params['CosSnapshotInfoList'].nil?
2168
+ @CosSnapshotInfoList = []
2169
+ params['CosSnapshotInfoList'].each do |i|
2170
+ cossnapshotinfo_tmp = CosSnapShotInfo.new
2171
+ cossnapshotinfo_tmp.deserialize(i)
2172
+ @CosSnapshotInfoList << cossnapshotinfo_tmp
2173
+ end
2174
+ end
2175
+ @TotalCount = params['TotalCount']
2176
+ @RequestId = params['RequestId']
2177
+ end
2178
+ end
2179
+
1892
2180
  # DescribeViews请求参数结构体
1893
2181
  class DescribeViewsRequest < TencentCloud::Common::AbstractModel
1894
2182
  # @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: 3.0.781
4
+ version: 3.0.782
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tencent Cloud
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-03-13 00:00:00.000000000 Z
11
+ date: 2024-03-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common