tencentcloud-sdk-es 1.0.318 → 1.0.319

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: ea340b9b34e8551b183bd97d73c6de1ed1288982
4
- data.tar.gz: d8ef63db516d73e740d0b495a83869d5f3a02fd5
3
+ metadata.gz: d9ceb6e7c56584275bf668113367e072a42dc4a8
4
+ data.tar.gz: 2559795782fbd7cb2e609601532f76d3ed156f24
5
5
  SHA512:
6
- metadata.gz: b46c53100943021fe57c14a2274e66e0d57c95941e18f014231582e5066d12865bce03b14b0993a2814df8445021210ac4811a0c0a4307911a8cbf4c56094292
7
- data.tar.gz: e094a2e8053cf3933ae57b8a6014ac7a774f6989a79031ec15316cff5801b493319831cb8423ccacdcc0782c784d7fce8faf22f278aeea242643fe78b618a83b
6
+ metadata.gz: 53b0085174691ace10c0af021b85cc96a55f60595efc7f6046fd9637748f5ca1e91f761c83edcc4577753c8175be4bf37e5cbb4020add29e0a20fde85eb57f64
7
+ data.tar.gz: 6119173606ff065661311d0950d80b31357fe8941eab67e3d86feff57f30277d6857f4c512c1b891b12488021e21c252057c925a414fc1c5ebe90ac51eb888db
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.318
1
+ 1.0.319
@@ -29,6 +29,30 @@ module TencentCloud
29
29
  end
30
30
 
31
31
 
32
+ # 创建索引
33
+
34
+ # @param request: Request instance for CreateIndex.
35
+ # @type request: :class:`Tencentcloud::es::V20180416::CreateIndexRequest`
36
+ # @rtype: :class:`Tencentcloud::es::V20180416::CreateIndexResponse`
37
+ def CreateIndex(request)
38
+ body = send_request('CreateIndex', request.serialize)
39
+ response = JSON.parse(body)
40
+ if response['Response'].key?('Error') == false
41
+ model = CreateIndexResponse.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
+
32
56
  # 创建指定规格的ES集群实例
33
57
 
34
58
  # @param request: Request instance for CreateInstance.
@@ -53,6 +77,30 @@ module TencentCloud
53
77
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
54
78
  end
55
79
 
80
+ # 删除索引
81
+
82
+ # @param request: Request instance for DeleteIndex.
83
+ # @type request: :class:`Tencentcloud::es::V20180416::DeleteIndexRequest`
84
+ # @rtype: :class:`Tencentcloud::es::V20180416::DeleteIndexResponse`
85
+ def DeleteIndex(request)
86
+ body = send_request('DeleteIndex', request.serialize)
87
+ response = JSON.parse(body)
88
+ if response['Response'].key?('Error') == false
89
+ model = DeleteIndexResponse.new
90
+ model.deserialize(response['Response'])
91
+ model
92
+ else
93
+ code = response['Response']['Error']['Code']
94
+ message = response['Response']['Error']['Message']
95
+ reqid = response['Response']['RequestId']
96
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
97
+ end
98
+ rescue TencentCloud::Common::TencentCloudSDKException => e
99
+ raise e
100
+ rescue StandardError => e
101
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
102
+ end
103
+
56
104
  # 销毁集群实例
57
105
 
58
106
  # @param request: Request instance for DeleteInstance.
@@ -77,6 +125,54 @@ module TencentCloud
77
125
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
78
126
  end
79
127
 
128
+ # 获取索引列表
129
+
130
+ # @param request: Request instance for DescribeIndexList.
131
+ # @type request: :class:`Tencentcloud::es::V20180416::DescribeIndexListRequest`
132
+ # @rtype: :class:`Tencentcloud::es::V20180416::DescribeIndexListResponse`
133
+ def DescribeIndexList(request)
134
+ body = send_request('DescribeIndexList', request.serialize)
135
+ response = JSON.parse(body)
136
+ if response['Response'].key?('Error') == false
137
+ model = DescribeIndexListResponse.new
138
+ model.deserialize(response['Response'])
139
+ model
140
+ else
141
+ code = response['Response']['Error']['Code']
142
+ message = response['Response']['Error']['Message']
143
+ reqid = response['Response']['RequestId']
144
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
145
+ end
146
+ rescue TencentCloud::Common::TencentCloudSDKException => e
147
+ raise e
148
+ rescue StandardError => e
149
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
150
+ end
151
+
152
+ # 获取索引元数据
153
+
154
+ # @param request: Request instance for DescribeIndexMeta.
155
+ # @type request: :class:`Tencentcloud::es::V20180416::DescribeIndexMetaRequest`
156
+ # @rtype: :class:`Tencentcloud::es::V20180416::DescribeIndexMetaResponse`
157
+ def DescribeIndexMeta(request)
158
+ body = send_request('DescribeIndexMeta', request.serialize)
159
+ response = JSON.parse(body)
160
+ if response['Response'].key?('Error') == false
161
+ model = DescribeIndexMetaResponse.new
162
+ model.deserialize(response['Response'])
163
+ model
164
+ else
165
+ code = response['Response']['Error']['Code']
166
+ message = response['Response']['Error']['Message']
167
+ reqid = response['Response']['RequestId']
168
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
169
+ end
170
+ rescue TencentCloud::Common::TencentCloudSDKException => e
171
+ raise e
172
+ rescue StandardError => e
173
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
174
+ end
175
+
80
176
  # 查询用户该地域下符合条件的ES集群的日志
81
177
 
82
178
  # @param request: Request instance for DescribeInstanceLogs.
@@ -341,6 +437,30 @@ module TencentCloud
341
437
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
342
438
  end
343
439
 
440
+ # 更新索引
441
+
442
+ # @param request: Request instance for UpdateIndex.
443
+ # @type request: :class:`Tencentcloud::es::V20180416::UpdateIndexRequest`
444
+ # @rtype: :class:`Tencentcloud::es::V20180416::UpdateIndexResponse`
445
+ def UpdateIndex(request)
446
+ body = send_request('UpdateIndex', request.serialize)
447
+ response = JSON.parse(body)
448
+ if response['Response'].key?('Error') == false
449
+ model = UpdateIndexResponse.new
450
+ model.deserialize(response['Response'])
451
+ model
452
+ else
453
+ code = response['Response']['Error']['Code']
454
+ message = response['Response']['Error']['Message']
455
+ reqid = response['Response']['RequestId']
456
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
457
+ end
458
+ rescue TencentCloud::Common::TencentCloudSDKException => e
459
+ raise e
460
+ rescue StandardError => e
461
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
462
+ end
463
+
344
464
  # 对集群进行节点规格变更,修改实例名称,修改配置,重置密码, 添加Kibana黑白名单等操作。参数中InstanceId为必传参数,ForceRestart为选填参数,剩余参数传递组合及含义如下:
345
465
  # - InstanceName:修改实例名称(仅用于标识实例)
346
466
  # - NodeInfoList: 修改节点配置(节点横向扩缩容,纵向扩缩容,增加主节点,增加冷节点等)
@@ -17,6 +17,43 @@
17
17
  module TencentCloud
18
18
  module Es
19
19
  module V20180416
20
+ # 后备索引元数据字段
21
+ class BackingIndexMetaField < TencentCloud::Common::AbstractModel
22
+ # @param IndexName: 后备索引名
23
+ # 注意:此字段可能返回 null,表示取不到有效值。
24
+ # @type IndexName: String
25
+ # @param IndexStatus: 后备索引状态
26
+ # 注意:此字段可能返回 null,表示取不到有效值。
27
+ # @type IndexStatus: String
28
+ # @param IndexStorage: 后备索引存储大小
29
+ # 注意:此字段可能返回 null,表示取不到有效值。
30
+ # @type IndexStorage: Integer
31
+ # @param IndexPhrase: 后备索引当前生命周期
32
+ # 注意:此字段可能返回 null,表示取不到有效值。
33
+ # @type IndexPhrase: String
34
+ # @param IndexCreateTime: 后备索引创建时间
35
+ # 注意:此字段可能返回 null,表示取不到有效值。
36
+ # @type IndexCreateTime: String
37
+
38
+ attr_accessor :IndexName, :IndexStatus, :IndexStorage, :IndexPhrase, :IndexCreateTime
39
+
40
+ def initialize(indexname=nil, indexstatus=nil, indexstorage=nil, indexphrase=nil, indexcreatetime=nil)
41
+ @IndexName = indexname
42
+ @IndexStatus = indexstatus
43
+ @IndexStorage = indexstorage
44
+ @IndexPhrase = indexphrase
45
+ @IndexCreateTime = indexcreatetime
46
+ end
47
+
48
+ def deserialize(params)
49
+ @IndexName = params['IndexName']
50
+ @IndexStatus = params['IndexStatus']
51
+ @IndexStorage = params['IndexStorage']
52
+ @IndexPhrase = params['IndexPhrase']
53
+ @IndexCreateTime = params['IndexCreateTime']
54
+ end
55
+ end
56
+
20
57
  # 集群维度视图数据
21
58
  class ClusterView < TencentCloud::Common::AbstractModel
22
59
  # @param Health: 集群健康状态
@@ -139,6 +176,58 @@ module TencentCloud
139
176
  end
140
177
  end
141
178
 
179
+ # CreateIndex请求参数结构体
180
+ class CreateIndexRequest < TencentCloud::Common::AbstractModel
181
+ # @param InstanceId: ES集群ID
182
+ # @type InstanceId: String
183
+ # @param IndexType: 创建的索引类型。auto:自治索引;normal:普通索引
184
+ # @type IndexType: String
185
+ # @param IndexName: 创建的索引名
186
+ # @type IndexName: String
187
+ # @param IndexMetaJson: 创建的索引元数据JSON,如mappings、settings
188
+ # @type IndexMetaJson: String
189
+ # @param Username: 集群访问用户名
190
+ # @type Username: String
191
+ # @param Password: 集群访问密码
192
+ # @type Password: String
193
+
194
+ attr_accessor :InstanceId, :IndexType, :IndexName, :IndexMetaJson, :Username, :Password
195
+
196
+ def initialize(instanceid=nil, indextype=nil, indexname=nil, indexmetajson=nil, username=nil, password=nil)
197
+ @InstanceId = instanceid
198
+ @IndexType = indextype
199
+ @IndexName = indexname
200
+ @IndexMetaJson = indexmetajson
201
+ @Username = username
202
+ @Password = password
203
+ end
204
+
205
+ def deserialize(params)
206
+ @InstanceId = params['InstanceId']
207
+ @IndexType = params['IndexType']
208
+ @IndexName = params['IndexName']
209
+ @IndexMetaJson = params['IndexMetaJson']
210
+ @Username = params['Username']
211
+ @Password = params['Password']
212
+ end
213
+ end
214
+
215
+ # CreateIndex返回参数结构体
216
+ class CreateIndexResponse < TencentCloud::Common::AbstractModel
217
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
218
+ # @type RequestId: String
219
+
220
+ attr_accessor :RequestId
221
+
222
+ def initialize(requestid=nil)
223
+ @RequestId = requestid
224
+ end
225
+
226
+ def deserialize(params)
227
+ @RequestId = params['RequestId']
228
+ end
229
+ end
230
+
142
231
  # CreateInstance请求参数结构体
143
232
  class CreateInstanceRequest < TencentCloud::Common::AbstractModel
144
233
  # @param Zone: 可用区
@@ -328,6 +417,58 @@ module TencentCloud
328
417
  end
329
418
  end
330
419
 
420
+ # DeleteIndex请求参数结构体
421
+ class DeleteIndexRequest < TencentCloud::Common::AbstractModel
422
+ # @param InstanceId: ES集群ID
423
+ # @type InstanceId: String
424
+ # @param IndexType: 删除的索引类型。auto:自治索引;normal:普通索引
425
+ # @type IndexType: String
426
+ # @param IndexName: 删除的索引名
427
+ # @type IndexName: String
428
+ # @param Username: 集群访问用户名
429
+ # @type Username: String
430
+ # @param Password: 集群访问密码
431
+ # @type Password: String
432
+ # @param BackingIndexName: 后备索引名
433
+ # @type BackingIndexName: String
434
+
435
+ attr_accessor :InstanceId, :IndexType, :IndexName, :Username, :Password, :BackingIndexName
436
+
437
+ def initialize(instanceid=nil, indextype=nil, indexname=nil, username=nil, password=nil, backingindexname=nil)
438
+ @InstanceId = instanceid
439
+ @IndexType = indextype
440
+ @IndexName = indexname
441
+ @Username = username
442
+ @Password = password
443
+ @BackingIndexName = backingindexname
444
+ end
445
+
446
+ def deserialize(params)
447
+ @InstanceId = params['InstanceId']
448
+ @IndexType = params['IndexType']
449
+ @IndexName = params['IndexName']
450
+ @Username = params['Username']
451
+ @Password = params['Password']
452
+ @BackingIndexName = params['BackingIndexName']
453
+ end
454
+ end
455
+
456
+ # DeleteIndex返回参数结构体
457
+ class DeleteIndexResponse < TencentCloud::Common::AbstractModel
458
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
459
+ # @type RequestId: String
460
+
461
+ attr_accessor :RequestId
462
+
463
+ def initialize(requestid=nil)
464
+ @RequestId = requestid
465
+ end
466
+
467
+ def deserialize(params)
468
+ @RequestId = params['RequestId']
469
+ end
470
+ end
471
+
331
472
  # DeleteInstance请求参数结构体
332
473
  class DeleteInstanceRequest < TencentCloud::Common::AbstractModel
333
474
  # @param InstanceId: 实例ID
@@ -360,6 +501,147 @@ module TencentCloud
360
501
  end
361
502
  end
362
503
 
504
+ # DescribeIndexList请求参数结构体
505
+ class DescribeIndexListRequest < TencentCloud::Common::AbstractModel
506
+ # @param IndexType: 索引类型。auto:自治索引;normal:普通索引
507
+ # @type IndexType: String
508
+ # @param InstanceId: ES集群ID
509
+ # @type InstanceId: String
510
+ # @param IndexName: 索引名,若填空则获取所有索引
511
+ # @type IndexName: String
512
+ # @param Username: 集群访问用户名
513
+ # @type Username: String
514
+ # @param Password: 集群访问密码
515
+ # @type Password: String
516
+ # @param Offset: 分页起始位置
517
+ # @type Offset: Integer
518
+ # @param Limit: 一页展示数量
519
+ # @type Limit: Integer
520
+ # @param OrderBy: 排序字段,支持索引名:IndexName、索引存储量:IndexStorage、索引创建时间:IndexCreateTime
521
+ # @type OrderBy: String
522
+ # @param IndexStatusList: 过滤索引状态
523
+ # @type IndexStatusList: Array
524
+ # @param Order: 排序顺序,支持asc、desc
525
+ # @type Order: String
526
+
527
+ attr_accessor :IndexType, :InstanceId, :IndexName, :Username, :Password, :Offset, :Limit, :OrderBy, :IndexStatusList, :Order
528
+
529
+ def initialize(indextype=nil, instanceid=nil, indexname=nil, username=nil, password=nil, offset=nil, limit=nil, orderby=nil, indexstatuslist=nil, order=nil)
530
+ @IndexType = indextype
531
+ @InstanceId = instanceid
532
+ @IndexName = indexname
533
+ @Username = username
534
+ @Password = password
535
+ @Offset = offset
536
+ @Limit = limit
537
+ @OrderBy = orderby
538
+ @IndexStatusList = indexstatuslist
539
+ @Order = order
540
+ end
541
+
542
+ def deserialize(params)
543
+ @IndexType = params['IndexType']
544
+ @InstanceId = params['InstanceId']
545
+ @IndexName = params['IndexName']
546
+ @Username = params['Username']
547
+ @Password = params['Password']
548
+ @Offset = params['Offset']
549
+ @Limit = params['Limit']
550
+ @OrderBy = params['OrderBy']
551
+ @IndexStatusList = params['IndexStatusList']
552
+ @Order = params['Order']
553
+ end
554
+ end
555
+
556
+ # DescribeIndexList返回参数结构体
557
+ class DescribeIndexListResponse < TencentCloud::Common::AbstractModel
558
+ # @param IndexMetaFields: 索引元数据字段
559
+ # 注意:此字段可能返回 null,表示取不到有效值。
560
+ # @type IndexMetaFields: Array
561
+ # @param TotalCount: 查询总数
562
+ # 注意:此字段可能返回 null,表示取不到有效值。
563
+ # @type TotalCount: Integer
564
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
565
+ # @type RequestId: String
566
+
567
+ attr_accessor :IndexMetaFields, :TotalCount, :RequestId
568
+
569
+ def initialize(indexmetafields=nil, totalcount=nil, requestid=nil)
570
+ @IndexMetaFields = indexmetafields
571
+ @TotalCount = totalcount
572
+ @RequestId = requestid
573
+ end
574
+
575
+ def deserialize(params)
576
+ unless params['IndexMetaFields'].nil?
577
+ @IndexMetaFields = []
578
+ params['IndexMetaFields'].each do |i|
579
+ indexmetafield_tmp = IndexMetaField.new
580
+ indexmetafield_tmp.deserialize(i)
581
+ @IndexMetaFields << indexmetafield_tmp
582
+ end
583
+ end
584
+ @TotalCount = params['TotalCount']
585
+ @RequestId = params['RequestId']
586
+ end
587
+ end
588
+
589
+ # DescribeIndexMeta请求参数结构体
590
+ class DescribeIndexMetaRequest < TencentCloud::Common::AbstractModel
591
+ # @param InstanceId: ES集群ID
592
+ # @type InstanceId: String
593
+ # @param IndexType: 索引类型。auto:自治索引;normal:普通索引
594
+ # @type IndexType: String
595
+ # @param IndexName: 索引名,若填空则获取所有索引
596
+ # @type IndexName: String
597
+ # @param Username: 集群访问用户名
598
+ # @type Username: String
599
+ # @param Password: 集群访问密码
600
+ # @type Password: String
601
+
602
+ attr_accessor :InstanceId, :IndexType, :IndexName, :Username, :Password
603
+
604
+ def initialize(instanceid=nil, indextype=nil, indexname=nil, username=nil, password=nil)
605
+ @InstanceId = instanceid
606
+ @IndexType = indextype
607
+ @IndexName = indexname
608
+ @Username = username
609
+ @Password = password
610
+ end
611
+
612
+ def deserialize(params)
613
+ @InstanceId = params['InstanceId']
614
+ @IndexType = params['IndexType']
615
+ @IndexName = params['IndexName']
616
+ @Username = params['Username']
617
+ @Password = params['Password']
618
+ end
619
+ end
620
+
621
+ # DescribeIndexMeta返回参数结构体
622
+ class DescribeIndexMetaResponse < TencentCloud::Common::AbstractModel
623
+ # @param IndexMetaField: 索引元数据字段
624
+ # 注意:此字段可能返回 null,表示取不到有效值。
625
+ # @type IndexMetaField: :class:`Tencentcloud::Es.v20180416.models.IndexMetaField`
626
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
627
+ # @type RequestId: String
628
+
629
+ attr_accessor :IndexMetaField, :RequestId
630
+
631
+ def initialize(indexmetafield=nil, requestid=nil)
632
+ @IndexMetaField = indexmetafield
633
+ @RequestId = requestid
634
+ end
635
+
636
+ def deserialize(params)
637
+ unless params['IndexMetaField'].nil?
638
+ @IndexMetaField = IndexMetaField.new
639
+ @IndexMetaField.deserialize(params['IndexMetaField'])
640
+ end
641
+ @RequestId = params['RequestId']
642
+ end
643
+ end
644
+
363
645
  # DescribeInstanceLogs请求参数结构体
364
646
  class DescribeInstanceLogsRequest < TencentCloud::Common::AbstractModel
365
647
  # @param InstanceId: 集群实例ID
@@ -746,6 +1028,26 @@ module TencentCloud
746
1028
  end
747
1029
  end
748
1030
 
1031
+ # 配置组信息
1032
+ class EsConfigSetInfo < TencentCloud::Common::AbstractModel
1033
+ # @param Type: 配置组类型,如ldap,ad等
1034
+ # @type Type: String
1035
+ # @param EsConfig: "{\"order\":0,\"url\":\"ldap://10.0.1.72:389\",\"bind_dn\":\"cn=admin,dc=tencent,dc=com\",\"user_search.base_dn\":\"dc=tencent,dc=com\",\"user_search.filter\":\"(cn={0})\",\"group_search.base_dn\":\"dc=tencent,dc=com\"}"
1036
+ # @type EsConfig: String
1037
+
1038
+ attr_accessor :Type, :EsConfig
1039
+
1040
+ def initialize(type=nil, esconfig=nil)
1041
+ @Type = type
1042
+ @EsConfig = esconfig
1043
+ end
1044
+
1045
+ def deserialize(params)
1046
+ @Type = params['Type']
1047
+ @EsConfig = params['EsConfig']
1048
+ end
1049
+ end
1050
+
749
1051
  # ES 词库信息
750
1052
  class EsDictionaryInfo < TencentCloud::Common::AbstractModel
751
1053
  # @param MainDict: 启用词词典列表
@@ -862,6 +1164,215 @@ module TencentCloud
862
1164
  end
863
1165
  end
864
1166
 
1167
+ # 索引元数据字段
1168
+ class IndexMetaField < TencentCloud::Common::AbstractModel
1169
+ # @param IndexType: 索引类型
1170
+ # 注意:此字段可能返回 null,表示取不到有效值。
1171
+ # @type IndexType: String
1172
+ # @param IndexName: 索引名
1173
+ # 注意:此字段可能返回 null,表示取不到有效值。
1174
+ # @type IndexName: String
1175
+ # @param IndexStatus: 索引状态
1176
+ # 注意:此字段可能返回 null,表示取不到有效值。
1177
+ # @type IndexStatus: String
1178
+ # @param IndexStorage: 索引存储大小,单位Byte
1179
+ # 注意:此字段可能返回 null,表示取不到有效值。
1180
+ # @type IndexStorage: Integer
1181
+ # @param IndexCreateTime: 索引创建时间
1182
+ # 注意:此字段可能返回 null,表示取不到有效值。
1183
+ # @type IndexCreateTime: String
1184
+ # @param BackingIndices: 后备索引
1185
+ # 注意:此字段可能返回 null,表示取不到有效值。
1186
+ # @type BackingIndices: Array
1187
+ # @param ClusterId: 索引所属集群ID
1188
+ # 注意:此字段可能返回 null,表示取不到有效值。
1189
+ # @type ClusterId: String
1190
+ # @param ClusterName: 索引所属集群名
1191
+ # 注意:此字段可能返回 null,表示取不到有效值。
1192
+ # @type ClusterName: String
1193
+ # @param ClusterVersion: 索引所属集群版本
1194
+ # 注意:此字段可能返回 null,表示取不到有效值。
1195
+ # @type ClusterVersion: String
1196
+ # @param IndexPolicyField: 索引生命周期字段
1197
+ # 注意:此字段可能返回 null,表示取不到有效值。
1198
+ # @type IndexPolicyField: :class:`Tencentcloud::Es.v20180416.models.IndexPolicyField`
1199
+ # @param IndexOptionsField: 索引自治字段
1200
+ # 注意:此字段可能返回 null,表示取不到有效值。
1201
+ # @type IndexOptionsField: :class:`Tencentcloud::Es.v20180416.models.IndexOptionsField`
1202
+ # @param IndexSettingsField: 索引配置字段
1203
+ # 注意:此字段可能返回 null,表示取不到有效值。
1204
+ # @type IndexSettingsField: :class:`Tencentcloud::Es.v20180416.models.IndexSettingsField`
1205
+ # @param AppId: 索引所属集群APP ID
1206
+ # 注意:此字段可能返回 null,表示取不到有效值。
1207
+ # @type AppId: Integer
1208
+
1209
+ attr_accessor :IndexType, :IndexName, :IndexStatus, :IndexStorage, :IndexCreateTime, :BackingIndices, :ClusterId, :ClusterName, :ClusterVersion, :IndexPolicyField, :IndexOptionsField, :IndexSettingsField, :AppId
1210
+
1211
+ def initialize(indextype=nil, indexname=nil, indexstatus=nil, indexstorage=nil, indexcreatetime=nil, backingindices=nil, clusterid=nil, clustername=nil, clusterversion=nil, indexpolicyfield=nil, indexoptionsfield=nil, indexsettingsfield=nil, appid=nil)
1212
+ @IndexType = indextype
1213
+ @IndexName = indexname
1214
+ @IndexStatus = indexstatus
1215
+ @IndexStorage = indexstorage
1216
+ @IndexCreateTime = indexcreatetime
1217
+ @BackingIndices = backingindices
1218
+ @ClusterId = clusterid
1219
+ @ClusterName = clustername
1220
+ @ClusterVersion = clusterversion
1221
+ @IndexPolicyField = indexpolicyfield
1222
+ @IndexOptionsField = indexoptionsfield
1223
+ @IndexSettingsField = indexsettingsfield
1224
+ @AppId = appid
1225
+ end
1226
+
1227
+ def deserialize(params)
1228
+ @IndexType = params['IndexType']
1229
+ @IndexName = params['IndexName']
1230
+ @IndexStatus = params['IndexStatus']
1231
+ @IndexStorage = params['IndexStorage']
1232
+ @IndexCreateTime = params['IndexCreateTime']
1233
+ unless params['BackingIndices'].nil?
1234
+ @BackingIndices = []
1235
+ params['BackingIndices'].each do |i|
1236
+ backingindexmetafield_tmp = BackingIndexMetaField.new
1237
+ backingindexmetafield_tmp.deserialize(i)
1238
+ @BackingIndices << backingindexmetafield_tmp
1239
+ end
1240
+ end
1241
+ @ClusterId = params['ClusterId']
1242
+ @ClusterName = params['ClusterName']
1243
+ @ClusterVersion = params['ClusterVersion']
1244
+ unless params['IndexPolicyField'].nil?
1245
+ @IndexPolicyField = IndexPolicyField.new
1246
+ @IndexPolicyField.deserialize(params['IndexPolicyField'])
1247
+ end
1248
+ unless params['IndexOptionsField'].nil?
1249
+ @IndexOptionsField = IndexOptionsField.new
1250
+ @IndexOptionsField.deserialize(params['IndexOptionsField'])
1251
+ end
1252
+ unless params['IndexSettingsField'].nil?
1253
+ @IndexSettingsField = IndexSettingsField.new
1254
+ @IndexSettingsField.deserialize(params['IndexSettingsField'])
1255
+ end
1256
+ @AppId = params['AppId']
1257
+ end
1258
+ end
1259
+
1260
+ # 索引自治字段
1261
+ class IndexOptionsField < TencentCloud::Common::AbstractModel
1262
+ # @param ExpireMaxAge: 过期时间
1263
+ # 注意:此字段可能返回 null,表示取不到有效值。
1264
+ # @type ExpireMaxAge: String
1265
+ # @param ExpireMaxSize: 过期大小
1266
+ # 注意:此字段可能返回 null,表示取不到有效值。
1267
+ # @type ExpireMaxSize: String
1268
+ # @param RolloverMaxAge: 滚动周期
1269
+ # 注意:此字段可能返回 null,表示取不到有效值。
1270
+ # @type RolloverMaxAge: String
1271
+ # @param RolloverDynamic: 是否开启动态滚动
1272
+ # 注意:此字段可能返回 null,表示取不到有效值。
1273
+ # @type RolloverDynamic: String
1274
+ # @param ShardNumDynamic: 是否开启动态分片
1275
+ # 注意:此字段可能返回 null,表示取不到有效值。
1276
+ # @type ShardNumDynamic: String
1277
+ # @param TimestampField: 时间分区字段
1278
+ # 注意:此字段可能返回 null,表示取不到有效值。
1279
+ # @type TimestampField: String
1280
+ # @param WriteMode: 写入模式
1281
+ # 注意:此字段可能返回 null,表示取不到有效值。
1282
+ # @type WriteMode: String
1283
+
1284
+ attr_accessor :ExpireMaxAge, :ExpireMaxSize, :RolloverMaxAge, :RolloverDynamic, :ShardNumDynamic, :TimestampField, :WriteMode
1285
+
1286
+ def initialize(expiremaxage=nil, expiremaxsize=nil, rollovermaxage=nil, rolloverdynamic=nil, shardnumdynamic=nil, timestampfield=nil, writemode=nil)
1287
+ @ExpireMaxAge = expiremaxage
1288
+ @ExpireMaxSize = expiremaxsize
1289
+ @RolloverMaxAge = rollovermaxage
1290
+ @RolloverDynamic = rolloverdynamic
1291
+ @ShardNumDynamic = shardnumdynamic
1292
+ @TimestampField = timestampfield
1293
+ @WriteMode = writemode
1294
+ end
1295
+
1296
+ def deserialize(params)
1297
+ @ExpireMaxAge = params['ExpireMaxAge']
1298
+ @ExpireMaxSize = params['ExpireMaxSize']
1299
+ @RolloverMaxAge = params['RolloverMaxAge']
1300
+ @RolloverDynamic = params['RolloverDynamic']
1301
+ @ShardNumDynamic = params['ShardNumDynamic']
1302
+ @TimestampField = params['TimestampField']
1303
+ @WriteMode = params['WriteMode']
1304
+ end
1305
+ end
1306
+
1307
+ # 索引生命周期字段
1308
+ class IndexPolicyField < TencentCloud::Common::AbstractModel
1309
+ # @param WarmEnable: 是否开启warm阶段
1310
+ # 注意:此字段可能返回 null,表示取不到有效值。
1311
+ # @type WarmEnable: String
1312
+ # @param WarmMinAge: warm阶段转入时间
1313
+ # 注意:此字段可能返回 null,表示取不到有效值。
1314
+ # @type WarmMinAge: String
1315
+ # @param ColdEnable: 是否开启cold阶段
1316
+ # 注意:此字段可能返回 null,表示取不到有效值。
1317
+ # @type ColdEnable: String
1318
+ # @param ColdMinAge: cold阶段转入时间
1319
+ # 注意:此字段可能返回 null,表示取不到有效值。
1320
+ # @type ColdMinAge: String
1321
+ # @param FrozenEnable: 是否开启frozen阶段
1322
+ # 注意:此字段可能返回 null,表示取不到有效值。
1323
+ # @type FrozenEnable: String
1324
+ # @param FrozenMinAge: frozen阶段转入时间
1325
+ # 注意:此字段可能返回 null,表示取不到有效值。
1326
+ # @type FrozenMinAge: String
1327
+
1328
+ attr_accessor :WarmEnable, :WarmMinAge, :ColdEnable, :ColdMinAge, :FrozenEnable, :FrozenMinAge
1329
+
1330
+ def initialize(warmenable=nil, warmminage=nil, coldenable=nil, coldminage=nil, frozenenable=nil, frozenminage=nil)
1331
+ @WarmEnable = warmenable
1332
+ @WarmMinAge = warmminage
1333
+ @ColdEnable = coldenable
1334
+ @ColdMinAge = coldminage
1335
+ @FrozenEnable = frozenenable
1336
+ @FrozenMinAge = frozenminage
1337
+ end
1338
+
1339
+ def deserialize(params)
1340
+ @WarmEnable = params['WarmEnable']
1341
+ @WarmMinAge = params['WarmMinAge']
1342
+ @ColdEnable = params['ColdEnable']
1343
+ @ColdMinAge = params['ColdMinAge']
1344
+ @FrozenEnable = params['FrozenEnable']
1345
+ @FrozenMinAge = params['FrozenMinAge']
1346
+ end
1347
+ end
1348
+
1349
+ # 索引配置字段
1350
+ class IndexSettingsField < TencentCloud::Common::AbstractModel
1351
+ # @param NumberOfShards: 索引主分片数
1352
+ # 注意:此字段可能返回 null,表示取不到有效值。
1353
+ # @type NumberOfShards: String
1354
+ # @param NumberOfReplicas: 索引副本分片数
1355
+ # 注意:此字段可能返回 null,表示取不到有效值。
1356
+ # @type NumberOfReplicas: String
1357
+ # @param RefreshInterval: 索引刷新频率
1358
+ # 注意:此字段可能返回 null,表示取不到有效值。
1359
+ # @type RefreshInterval: String
1360
+
1361
+ attr_accessor :NumberOfShards, :NumberOfReplicas, :RefreshInterval
1362
+
1363
+ def initialize(numberofshards=nil, numberofreplicas=nil, refreshinterval=nil)
1364
+ @NumberOfShards = numberofshards
1365
+ @NumberOfReplicas = numberofreplicas
1366
+ @RefreshInterval = refreshinterval
1367
+ end
1368
+
1369
+ def deserialize(params)
1370
+ @NumberOfShards = params['NumberOfShards']
1371
+ @NumberOfReplicas = params['NumberOfReplicas']
1372
+ @RefreshInterval = params['RefreshInterval']
1373
+ end
1374
+ end
1375
+
865
1376
  # 实例详细信息
866
1377
  class InstanceInfo < TencentCloud::Common::AbstractModel
867
1378
  # @param InstanceId: 实例ID
@@ -1969,6 +2480,58 @@ module TencentCloud
1969
2480
  end
1970
2481
  end
1971
2482
 
2483
+ # UpdateIndex请求参数结构体
2484
+ class UpdateIndexRequest < TencentCloud::Common::AbstractModel
2485
+ # @param InstanceId: ES集群ID
2486
+ # @type InstanceId: String
2487
+ # @param IndexType: 更新的索引类型。auto:自治索引;normal:普通索引
2488
+ # @type IndexType: String
2489
+ # @param IndexName: 更新的索引名
2490
+ # @type IndexName: String
2491
+ # @param UpdateMetaJson: 更新的索引元数据JSON,如mappings、settings
2492
+ # @type UpdateMetaJson: String
2493
+ # @param Username: 集群访问用户名
2494
+ # @type Username: String
2495
+ # @param Password: 集群访问密码
2496
+ # @type Password: String
2497
+
2498
+ attr_accessor :InstanceId, :IndexType, :IndexName, :UpdateMetaJson, :Username, :Password
2499
+
2500
+ def initialize(instanceid=nil, indextype=nil, indexname=nil, updatemetajson=nil, username=nil, password=nil)
2501
+ @InstanceId = instanceid
2502
+ @IndexType = indextype
2503
+ @IndexName = indexname
2504
+ @UpdateMetaJson = updatemetajson
2505
+ @Username = username
2506
+ @Password = password
2507
+ end
2508
+
2509
+ def deserialize(params)
2510
+ @InstanceId = params['InstanceId']
2511
+ @IndexType = params['IndexType']
2512
+ @IndexName = params['IndexName']
2513
+ @UpdateMetaJson = params['UpdateMetaJson']
2514
+ @Username = params['Username']
2515
+ @Password = params['Password']
2516
+ end
2517
+ end
2518
+
2519
+ # UpdateIndex返回参数结构体
2520
+ class UpdateIndexResponse < TencentCloud::Common::AbstractModel
2521
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
2522
+ # @type RequestId: String
2523
+
2524
+ attr_accessor :RequestId
2525
+
2526
+ def initialize(requestid=nil)
2527
+ @RequestId = requestid
2528
+ end
2529
+
2530
+ def deserialize(params)
2531
+ @RequestId = params['RequestId']
2532
+ end
2533
+ end
2534
+
1972
2535
  # UpdateInstance请求参数结构体
1973
2536
  class UpdateInstanceRequest < TencentCloud::Common::AbstractModel
1974
2537
  # @param InstanceId: 实例ID
@@ -2035,10 +2598,12 @@ module TencentCloud
2035
2598
  # @type CerebroPublicAccess: String
2036
2599
  # @param CerebroPrivateAccess: Cerebro内网访问状态
2037
2600
  # @type CerebroPrivateAccess: String
2601
+ # @param EsConfigSet: 新增或修改的配置组信息
2602
+ # @type EsConfigSet: :class:`Tencentcloud::Es.v20180416.models.EsConfigSetInfo`
2038
2603
 
2039
- attr_accessor :InstanceId, :InstanceName, :NodeNum, :EsConfig, :Password, :EsAcl, :DiskSize, :NodeType, :MasterNodeNum, :MasterNodeType, :MasterNodeDiskSize, :ForceRestart, :CosBackup, :NodeInfoList, :PublicAccess, :EsPublicAcl, :KibanaPublicAccess, :KibanaPrivateAccess, :BasicSecurityType, :KibanaPrivatePort, :ScaleType, :MultiZoneInfo, :SceneType, :KibanaConfig, :WebNodeTypeInfo, :SwitchPrivateLink, :EnableCerebro, :CerebroPublicAccess, :CerebroPrivateAccess
2604
+ attr_accessor :InstanceId, :InstanceName, :NodeNum, :EsConfig, :Password, :EsAcl, :DiskSize, :NodeType, :MasterNodeNum, :MasterNodeType, :MasterNodeDiskSize, :ForceRestart, :CosBackup, :NodeInfoList, :PublicAccess, :EsPublicAcl, :KibanaPublicAccess, :KibanaPrivateAccess, :BasicSecurityType, :KibanaPrivatePort, :ScaleType, :MultiZoneInfo, :SceneType, :KibanaConfig, :WebNodeTypeInfo, :SwitchPrivateLink, :EnableCerebro, :CerebroPublicAccess, :CerebroPrivateAccess, :EsConfigSet
2040
2605
 
2041
- def initialize(instanceid=nil, instancename=nil, nodenum=nil, esconfig=nil, password=nil, esacl=nil, disksize=nil, nodetype=nil, masternodenum=nil, masternodetype=nil, masternodedisksize=nil, forcerestart=nil, cosbackup=nil, nodeinfolist=nil, publicaccess=nil, espublicacl=nil, kibanapublicaccess=nil, kibanaprivateaccess=nil, basicsecuritytype=nil, kibanaprivateport=nil, scaletype=nil, multizoneinfo=nil, scenetype=nil, kibanaconfig=nil, webnodetypeinfo=nil, switchprivatelink=nil, enablecerebro=nil, cerebropublicaccess=nil, cerebroprivateaccess=nil)
2606
+ def initialize(instanceid=nil, instancename=nil, nodenum=nil, esconfig=nil, password=nil, esacl=nil, disksize=nil, nodetype=nil, masternodenum=nil, masternodetype=nil, masternodedisksize=nil, forcerestart=nil, cosbackup=nil, nodeinfolist=nil, publicaccess=nil, espublicacl=nil, kibanapublicaccess=nil, kibanaprivateaccess=nil, basicsecuritytype=nil, kibanaprivateport=nil, scaletype=nil, multizoneinfo=nil, scenetype=nil, kibanaconfig=nil, webnodetypeinfo=nil, switchprivatelink=nil, enablecerebro=nil, cerebropublicaccess=nil, cerebroprivateaccess=nil, esconfigset=nil)
2042
2607
  @InstanceId = instanceid
2043
2608
  @InstanceName = instancename
2044
2609
  @NodeNum = nodenum
@@ -2068,6 +2633,7 @@ module TencentCloud
2068
2633
  @EnableCerebro = enablecerebro
2069
2634
  @CerebroPublicAccess = cerebropublicaccess
2070
2635
  @CerebroPrivateAccess = cerebroprivateaccess
2636
+ @EsConfigSet = esconfigset
2071
2637
  end
2072
2638
 
2073
2639
  def deserialize(params)
@@ -2126,6 +2692,10 @@ module TencentCloud
2126
2692
  @EnableCerebro = params['EnableCerebro']
2127
2693
  @CerebroPublicAccess = params['CerebroPublicAccess']
2128
2694
  @CerebroPrivateAccess = params['CerebroPrivateAccess']
2695
+ unless params['EsConfigSet'].nil?
2696
+ @EsConfigSet = EsConfigSetInfo.new
2697
+ @EsConfigSet.deserialize(params['EsConfigSet'])
2698
+ end
2129
2699
  end
2130
2700
  end
2131
2701
 
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.318
4
+ version: 1.0.319
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-05-23 00:00:00.000000000 Z
11
+ date: 2022-05-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common