tencentcloud-sdk-es 1.0.200

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,1984 @@
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 Es
19
+ module V20180416
20
+ # ES cos自动备份信息
21
+ class CosBackup < TencentCloud::Common::AbstractModel
22
+ # @param IsAutoBackup: 是否开启cos自动备份
23
+ # @type IsAutoBackup: Boolean
24
+ # @param BackupTime: 自动备份执行时间(精确到小时), e.g. "22:00"
25
+ # @type BackupTime: String
26
+
27
+ attr_accessor :IsAutoBackup, :BackupTime
28
+
29
+ def initialize(isautobackup=nil, backuptime=nil)
30
+ @IsAutoBackup = isautobackup
31
+ @BackupTime = backuptime
32
+ end
33
+
34
+ def deserialize(params)
35
+ @IsAutoBackup = params['IsAutoBackup']
36
+ @BackupTime = params['BackupTime']
37
+ end
38
+ end
39
+
40
+ # CreateInstance请求参数结构体
41
+ class CreateInstanceRequest < TencentCloud::Common::AbstractModel
42
+ # @param Zone: 可用区
43
+ # @type Zone: String
44
+ # @param EsVersion: 实例版本(支持"5.6.4"、"6.4.3"、"6.8.2"、"7.5.1"、"7.10.1")
45
+ # @type EsVersion: String
46
+ # @param VpcId: 私有网络ID
47
+ # @type VpcId: String
48
+ # @param SubnetId: 子网ID
49
+ # @type SubnetId: String
50
+ # @param Password: 访问密码(密码需8到16位,至少包括两项([a-z,A-Z],[0-9]和[-!@#$%&^*+=_:;,.?]的特殊符号)
51
+ # @type Password: String
52
+ # @param InstanceName: 实例名称(1-50 个英文、汉字、数字、连接线-或下划线_)
53
+ # @type InstanceName: String
54
+ # @param NodeNum: 已废弃请使用NodeInfoList
55
+ # 节点数量(2-50个)
56
+ # @type NodeNum: Integer
57
+ # @param ChargeType: 计费类型<li>PREPAID:预付费,即包年包月</li><li>POSTPAID_BY_HOUR:按小时后付费</li>默认值POSTPAID_BY_HOUR
58
+ # @type ChargeType: String
59
+ # @param ChargePeriod: 包年包月购买时长(单位由参数TimeUnit决定)
60
+ # @type ChargePeriod: Integer
61
+ # @param RenewFlag: 自动续费标识<li>RENEW_FLAG_AUTO:自动续费</li><li>RENEW_FLAG_MANUAL:不自动续费,用户手动续费</li>ChargeType为PREPAID时需要设置,如不传递该参数,普通用户默认不自动续费,SVIP用户自动续费
62
+ # @type RenewFlag: String
63
+ # @param NodeType: 已废弃请使用NodeInfoList
64
+ # 节点规格<li>ES.S1.SMALL2:1核2G</li><li>ES.S1.MEDIUM4:2核4G</li><li>ES.S1.MEDIUM8:2核8G</li><li>ES.S1.LARGE16:4核16G</li><li>ES.S1.2XLARGE32:8核32G</li><li>ES.S1.4XLARGE32:16核32G</li><li>ES.S1.4XLARGE64:16核64G</li>
65
+ # @type NodeType: String
66
+ # @param DiskType: 已废弃请使用NodeInfoList
67
+ # 节点磁盘类型<li>CLOUD_SSD:SSD云硬盘</li><li>CLOUD_PREMIUM:高硬能云硬盘</li>默认值CLOUD_SSD
68
+ # @type DiskType: String
69
+ # @param DiskSize: 已废弃请使用NodeInfoList
70
+ # 节点磁盘容量(单位GB)
71
+ # @type DiskSize: Integer
72
+ # @param TimeUnit: 计费时长单位(ChargeType为PREPAID时需要设置,默认值为“m”,表示月,当前只支持“m”)
73
+ # @type TimeUnit: String
74
+ # @param AutoVoucher: 是否自动使用代金券<li>0:不自动使用</li><li>1:自动使用</li>默认值0
75
+ # @type AutoVoucher: Integer
76
+ # @param VoucherIds: 代金券ID列表(目前仅支持指定一张代金券)
77
+ # @type VoucherIds: Array
78
+ # @param EnableDedicatedMaster: 已废弃请使用NodeInfoList
79
+ # 是否创建专用主节点<li>true:开启专用主节点</li><li>false:不开启专用主节点</li>默认值false
80
+ # @type EnableDedicatedMaster: Boolean
81
+ # @param MasterNodeNum: 已废弃请使用NodeInfoList
82
+ # 专用主节点个数(只支持3个和5个,EnableDedicatedMaster为true时该值必传)
83
+ # @type MasterNodeNum: Integer
84
+ # @param MasterNodeType: 已废弃请使用NodeInfoList
85
+ # 专用主节点类型(EnableDedicatedMaster为true时必传)<li>ES.S1.SMALL2:1核2G</li><li>ES.S1.MEDIUM4:2核4G</li><li>ES.S1.MEDIUM8:2核8G</li><li>ES.S1.LARGE16:4核16G</li><li>ES.S1.2XLARGE32:8核32G</li><li>ES.S1.4XLARGE32:16核32G</li><li>ES.S1.4XLARGE64:16核64G</li>
86
+ # @type MasterNodeType: String
87
+ # @param MasterNodeDiskSize: 已废弃请使用NodeInfoList
88
+ # 专用主节点磁盘大小(单位GB,非必传,若传递则必须为50,暂不支持自定义)
89
+ # @type MasterNodeDiskSize: Integer
90
+ # @param ClusterNameInConf: 集群配置文件中的ClusterName(系统默认配置为实例ID,暂不支持自定义)
91
+ # @type ClusterNameInConf: String
92
+ # @param DeployMode: 集群部署方式<li>0:单可用区部署</li><li>1:多可用区部署</li>默认为0
93
+ # @type DeployMode: Integer
94
+ # @param MultiZoneInfo: 多可用区部署时可用区的详细信息(DeployMode为1时必传)
95
+ # @type MultiZoneInfo: Array
96
+ # @param LicenseType: License类型<li>oss:开源版</li><li>basic:基础版</li><li>platinum:白金版</li>默认值platinum
97
+ # @type LicenseType: String
98
+ # @param NodeInfoList: 节点信息列表, 用于描述集群各类节点的规格信息如节点类型,节点个数,节点规格,磁盘类型,磁盘大小等
99
+ # @type NodeInfoList: Array
100
+ # @param TagList: 节点标签信息列表
101
+ # @type TagList: Array
102
+ # @param BasicSecurityType: 6.8(及以上版本)基础版是否开启xpack security认证<li>1:不开启</li><li>2:开启</li>
103
+ # @type BasicSecurityType: Integer
104
+ # @param SceneType: 场景化模板类型 0:不启用 1:通用 2:日志 3:搜索
105
+ # @type SceneType: Integer
106
+ # @param WebNodeTypeInfo: 可视化节点配置
107
+ # @type WebNodeTypeInfo: :class:`Tencentcloud::Es.v20180416.models.WebNodeTypeInfo`
108
+ # @param Protocol: 创建https集群,默认是http
109
+ # @type Protocol: String
110
+
111
+ attr_accessor :Zone, :EsVersion, :VpcId, :SubnetId, :Password, :InstanceName, :NodeNum, :ChargeType, :ChargePeriod, :RenewFlag, :NodeType, :DiskType, :DiskSize, :TimeUnit, :AutoVoucher, :VoucherIds, :EnableDedicatedMaster, :MasterNodeNum, :MasterNodeType, :MasterNodeDiskSize, :ClusterNameInConf, :DeployMode, :MultiZoneInfo, :LicenseType, :NodeInfoList, :TagList, :BasicSecurityType, :SceneType, :WebNodeTypeInfo, :Protocol
112
+
113
+ def initialize(zone=nil, esversion=nil, vpcid=nil, subnetid=nil, password=nil, instancename=nil, nodenum=nil, chargetype=nil, chargeperiod=nil, renewflag=nil, nodetype=nil, disktype=nil, disksize=nil, timeunit=nil, autovoucher=nil, voucherids=nil, enablededicatedmaster=nil, masternodenum=nil, masternodetype=nil, masternodedisksize=nil, clusternameinconf=nil, deploymode=nil, multizoneinfo=nil, licensetype=nil, nodeinfolist=nil, taglist=nil, basicsecuritytype=nil, scenetype=nil, webnodetypeinfo=nil, protocol=nil)
114
+ @Zone = zone
115
+ @EsVersion = esversion
116
+ @VpcId = vpcid
117
+ @SubnetId = subnetid
118
+ @Password = password
119
+ @InstanceName = instancename
120
+ @NodeNum = nodenum
121
+ @ChargeType = chargetype
122
+ @ChargePeriod = chargeperiod
123
+ @RenewFlag = renewflag
124
+ @NodeType = nodetype
125
+ @DiskType = disktype
126
+ @DiskSize = disksize
127
+ @TimeUnit = timeunit
128
+ @AutoVoucher = autovoucher
129
+ @VoucherIds = voucherids
130
+ @EnableDedicatedMaster = enablededicatedmaster
131
+ @MasterNodeNum = masternodenum
132
+ @MasterNodeType = masternodetype
133
+ @MasterNodeDiskSize = masternodedisksize
134
+ @ClusterNameInConf = clusternameinconf
135
+ @DeployMode = deploymode
136
+ @MultiZoneInfo = multizoneinfo
137
+ @LicenseType = licensetype
138
+ @NodeInfoList = nodeinfolist
139
+ @TagList = taglist
140
+ @BasicSecurityType = basicsecuritytype
141
+ @SceneType = scenetype
142
+ @WebNodeTypeInfo = webnodetypeinfo
143
+ @Protocol = protocol
144
+ end
145
+
146
+ def deserialize(params)
147
+ @Zone = params['Zone']
148
+ @EsVersion = params['EsVersion']
149
+ @VpcId = params['VpcId']
150
+ @SubnetId = params['SubnetId']
151
+ @Password = params['Password']
152
+ @InstanceName = params['InstanceName']
153
+ @NodeNum = params['NodeNum']
154
+ @ChargeType = params['ChargeType']
155
+ @ChargePeriod = params['ChargePeriod']
156
+ @RenewFlag = params['RenewFlag']
157
+ @NodeType = params['NodeType']
158
+ @DiskType = params['DiskType']
159
+ @DiskSize = params['DiskSize']
160
+ @TimeUnit = params['TimeUnit']
161
+ @AutoVoucher = params['AutoVoucher']
162
+ @VoucherIds = params['VoucherIds']
163
+ @EnableDedicatedMaster = params['EnableDedicatedMaster']
164
+ @MasterNodeNum = params['MasterNodeNum']
165
+ @MasterNodeType = params['MasterNodeType']
166
+ @MasterNodeDiskSize = params['MasterNodeDiskSize']
167
+ @ClusterNameInConf = params['ClusterNameInConf']
168
+ @DeployMode = params['DeployMode']
169
+ unless params['MultiZoneInfo'].nil?
170
+ @MultiZoneInfo = []
171
+ params['MultiZoneInfo'].each do |i|
172
+ zonedetail_tmp = ZoneDetail.new
173
+ zonedetail_tmp.deserialize(i)
174
+ @MultiZoneInfo << zonedetail_tmp
175
+ end
176
+ end
177
+ @LicenseType = params['LicenseType']
178
+ unless params['NodeInfoList'].nil?
179
+ @NodeInfoList = []
180
+ params['NodeInfoList'].each do |i|
181
+ nodeinfo_tmp = NodeInfo.new
182
+ nodeinfo_tmp.deserialize(i)
183
+ @NodeInfoList << nodeinfo_tmp
184
+ end
185
+ end
186
+ unless params['TagList'].nil?
187
+ @TagList = []
188
+ params['TagList'].each do |i|
189
+ taginfo_tmp = TagInfo.new
190
+ taginfo_tmp.deserialize(i)
191
+ @TagList << taginfo_tmp
192
+ end
193
+ end
194
+ @BasicSecurityType = params['BasicSecurityType']
195
+ @SceneType = params['SceneType']
196
+ unless params['WebNodeTypeInfo'].nil?
197
+ @WebNodeTypeInfo = WebNodeTypeInfo.new
198
+ @WebNodeTypeInfo.deserialize(params['WebNodeTypeInfo'])
199
+ end
200
+ @Protocol = params['Protocol']
201
+ end
202
+ end
203
+
204
+ # CreateInstance返回参数结构体
205
+ class CreateInstanceResponse < TencentCloud::Common::AbstractModel
206
+ # @param InstanceId: 实例ID
207
+ # @type InstanceId: String
208
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
209
+ # @type RequestId: String
210
+
211
+ attr_accessor :InstanceId, :RequestId
212
+
213
+ def initialize(instanceid=nil, requestid=nil)
214
+ @InstanceId = instanceid
215
+ @RequestId = requestid
216
+ end
217
+
218
+ def deserialize(params)
219
+ @InstanceId = params['InstanceId']
220
+ @RequestId = params['RequestId']
221
+ end
222
+ end
223
+
224
+ # DeleteInstance请求参数结构体
225
+ class DeleteInstanceRequest < TencentCloud::Common::AbstractModel
226
+ # @param InstanceId: 实例ID
227
+ # @type InstanceId: String
228
+
229
+ attr_accessor :InstanceId
230
+
231
+ def initialize(instanceid=nil)
232
+ @InstanceId = instanceid
233
+ end
234
+
235
+ def deserialize(params)
236
+ @InstanceId = params['InstanceId']
237
+ end
238
+ end
239
+
240
+ # DeleteInstance返回参数结构体
241
+ class DeleteInstanceResponse < TencentCloud::Common::AbstractModel
242
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
243
+ # @type RequestId: String
244
+
245
+ attr_accessor :RequestId
246
+
247
+ def initialize(requestid=nil)
248
+ @RequestId = requestid
249
+ end
250
+
251
+ def deserialize(params)
252
+ @RequestId = params['RequestId']
253
+ end
254
+ end
255
+
256
+ # DescribeInstanceLogs请求参数结构体
257
+ class DescribeInstanceLogsRequest < TencentCloud::Common::AbstractModel
258
+ # @param InstanceId: 集群实例ID
259
+ # @type InstanceId: String
260
+ # @param LogType: 日志类型,默认值为1
261
+ # <li>1, 主日志</li>
262
+ # <li>2, 搜索慢日志</li>
263
+ # <li>3, 索引慢日志</li>
264
+ # <li>4, GC日志</li>
265
+ # @type LogType: Integer
266
+ # @param SearchKey: 搜索词,支持LUCENE语法,如 level:WARN、ip:1.1.1.1、message:test-index等
267
+ # @type SearchKey: String
268
+ # @param StartTime: 日志开始时间,格式为YYYY-MM-DD HH:MM:SS, 如2019-01-22 20:15:53
269
+ # @type StartTime: String
270
+ # @param EndTime: 日志结束时间,格式为YYYY-MM-DD HH:MM:SS, 如2019-01-22 20:15:53
271
+ # @type EndTime: String
272
+ # @param Offset: 分页起始值, 默认值为0
273
+ # @type Offset: Integer
274
+ # @param Limit: 分页大小,默认值为100,最大值100
275
+ # @type Limit: Integer
276
+ # @param OrderByType: 时间排序方式,默认值为0
277
+ # <li>0, 降序</li>
278
+ # <li>1, 升序</li>
279
+ # @type OrderByType: Integer
280
+
281
+ attr_accessor :InstanceId, :LogType, :SearchKey, :StartTime, :EndTime, :Offset, :Limit, :OrderByType
282
+
283
+ def initialize(instanceid=nil, logtype=nil, searchkey=nil, starttime=nil, endtime=nil, offset=nil, limit=nil, orderbytype=nil)
284
+ @InstanceId = instanceid
285
+ @LogType = logtype
286
+ @SearchKey = searchkey
287
+ @StartTime = starttime
288
+ @EndTime = endtime
289
+ @Offset = offset
290
+ @Limit = limit
291
+ @OrderByType = orderbytype
292
+ end
293
+
294
+ def deserialize(params)
295
+ @InstanceId = params['InstanceId']
296
+ @LogType = params['LogType']
297
+ @SearchKey = params['SearchKey']
298
+ @StartTime = params['StartTime']
299
+ @EndTime = params['EndTime']
300
+ @Offset = params['Offset']
301
+ @Limit = params['Limit']
302
+ @OrderByType = params['OrderByType']
303
+ end
304
+ end
305
+
306
+ # DescribeInstanceLogs返回参数结构体
307
+ class DescribeInstanceLogsResponse < TencentCloud::Common::AbstractModel
308
+ # @param TotalCount: 返回的日志条数
309
+ # @type TotalCount: Integer
310
+ # @param InstanceLogList: 日志详细信息列表
311
+ # @type InstanceLogList: Array
312
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
313
+ # @type RequestId: String
314
+
315
+ attr_accessor :TotalCount, :InstanceLogList, :RequestId
316
+
317
+ def initialize(totalcount=nil, instanceloglist=nil, requestid=nil)
318
+ @TotalCount = totalcount
319
+ @InstanceLogList = instanceloglist
320
+ @RequestId = requestid
321
+ end
322
+
323
+ def deserialize(params)
324
+ @TotalCount = params['TotalCount']
325
+ unless params['InstanceLogList'].nil?
326
+ @InstanceLogList = []
327
+ params['InstanceLogList'].each do |i|
328
+ instancelog_tmp = InstanceLog.new
329
+ instancelog_tmp.deserialize(i)
330
+ @InstanceLogList << instancelog_tmp
331
+ end
332
+ end
333
+ @RequestId = params['RequestId']
334
+ end
335
+ end
336
+
337
+ # DescribeInstanceOperations请求参数结构体
338
+ class DescribeInstanceOperationsRequest < TencentCloud::Common::AbstractModel
339
+ # @param InstanceId: 集群实例ID
340
+ # @type InstanceId: String
341
+ # @param StartTime: 起始时间, e.g. "2019-03-07 16:30:39"
342
+ # @type StartTime: String
343
+ # @param EndTime: 结束时间, e.g. "2019-03-30 20:18:03"
344
+ # @type EndTime: String
345
+ # @param Offset: 分页起始值
346
+ # @type Offset: Integer
347
+ # @param Limit: 分页大小
348
+ # @type Limit: Integer
349
+
350
+ attr_accessor :InstanceId, :StartTime, :EndTime, :Offset, :Limit
351
+
352
+ def initialize(instanceid=nil, starttime=nil, endtime=nil, offset=nil, limit=nil)
353
+ @InstanceId = instanceid
354
+ @StartTime = starttime
355
+ @EndTime = endtime
356
+ @Offset = offset
357
+ @Limit = limit
358
+ end
359
+
360
+ def deserialize(params)
361
+ @InstanceId = params['InstanceId']
362
+ @StartTime = params['StartTime']
363
+ @EndTime = params['EndTime']
364
+ @Offset = params['Offset']
365
+ @Limit = params['Limit']
366
+ end
367
+ end
368
+
369
+ # DescribeInstanceOperations返回参数结构体
370
+ class DescribeInstanceOperationsResponse < TencentCloud::Common::AbstractModel
371
+ # @param TotalCount: 操作记录总数
372
+ # @type TotalCount: Integer
373
+ # @param Operations: 操作记录
374
+ # @type Operations: Array
375
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
376
+ # @type RequestId: String
377
+
378
+ attr_accessor :TotalCount, :Operations, :RequestId
379
+
380
+ def initialize(totalcount=nil, operations=nil, requestid=nil)
381
+ @TotalCount = totalcount
382
+ @Operations = operations
383
+ @RequestId = requestid
384
+ end
385
+
386
+ def deserialize(params)
387
+ @TotalCount = params['TotalCount']
388
+ unless params['Operations'].nil?
389
+ @Operations = []
390
+ params['Operations'].each do |i|
391
+ operation_tmp = Operation.new
392
+ operation_tmp.deserialize(i)
393
+ @Operations << operation_tmp
394
+ end
395
+ end
396
+ @RequestId = params['RequestId']
397
+ end
398
+ end
399
+
400
+ # DescribeInstances请求参数结构体
401
+ class DescribeInstancesRequest < TencentCloud::Common::AbstractModel
402
+ # @param Zone: 集群实例所属可用区,不传则默认所有可用区
403
+ # @type Zone: String
404
+ # @param InstanceIds: 集群实例ID列表
405
+ # @type InstanceIds: Array
406
+ # @param InstanceNames: 集群实例名称列表
407
+ # @type InstanceNames: Array
408
+ # @param Offset: 分页起始值, 默认值0
409
+ # @type Offset: Integer
410
+ # @param Limit: 分页大小,默认值20
411
+ # @type Limit: Integer
412
+ # @param OrderByKey: 排序字段<li>1:实例ID</li><li>2:实例名称</li><li>3:可用区</li><li>4:创建时间</li>若orderKey未传递则按创建时间降序排序
413
+ # @type OrderByKey: Integer
414
+ # @param OrderByType: 排序方式<li>0:升序</li><li>1:降序</li>若传递了orderByKey未传递orderByType, 则默认升序
415
+ # @type OrderByType: Integer
416
+ # @param TagList: 节点标签信息列表
417
+ # @type TagList: Array
418
+ # @param IpList: 私有网络vip列表
419
+ # @type IpList: Array
420
+
421
+ attr_accessor :Zone, :InstanceIds, :InstanceNames, :Offset, :Limit, :OrderByKey, :OrderByType, :TagList, :IpList
422
+
423
+ def initialize(zone=nil, instanceids=nil, instancenames=nil, offset=nil, limit=nil, orderbykey=nil, orderbytype=nil, taglist=nil, iplist=nil)
424
+ @Zone = zone
425
+ @InstanceIds = instanceids
426
+ @InstanceNames = instancenames
427
+ @Offset = offset
428
+ @Limit = limit
429
+ @OrderByKey = orderbykey
430
+ @OrderByType = orderbytype
431
+ @TagList = taglist
432
+ @IpList = iplist
433
+ end
434
+
435
+ def deserialize(params)
436
+ @Zone = params['Zone']
437
+ @InstanceIds = params['InstanceIds']
438
+ @InstanceNames = params['InstanceNames']
439
+ @Offset = params['Offset']
440
+ @Limit = params['Limit']
441
+ @OrderByKey = params['OrderByKey']
442
+ @OrderByType = params['OrderByType']
443
+ unless params['TagList'].nil?
444
+ @TagList = []
445
+ params['TagList'].each do |i|
446
+ taginfo_tmp = TagInfo.new
447
+ taginfo_tmp.deserialize(i)
448
+ @TagList << taginfo_tmp
449
+ end
450
+ end
451
+ @IpList = params['IpList']
452
+ end
453
+ end
454
+
455
+ # DescribeInstances返回参数结构体
456
+ class DescribeInstancesResponse < TencentCloud::Common::AbstractModel
457
+ # @param TotalCount: 返回的实例个数
458
+ # @type TotalCount: Integer
459
+ # @param InstanceList: 实例详细信息列表
460
+ # @type InstanceList: Array
461
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
462
+ # @type RequestId: String
463
+
464
+ attr_accessor :TotalCount, :InstanceList, :RequestId
465
+
466
+ def initialize(totalcount=nil, instancelist=nil, requestid=nil)
467
+ @TotalCount = totalcount
468
+ @InstanceList = instancelist
469
+ @RequestId = requestid
470
+ end
471
+
472
+ def deserialize(params)
473
+ @TotalCount = params['TotalCount']
474
+ unless params['InstanceList'].nil?
475
+ @InstanceList = []
476
+ params['InstanceList'].each do |i|
477
+ instanceinfo_tmp = InstanceInfo.new
478
+ instanceinfo_tmp.deserialize(i)
479
+ @InstanceList << instanceinfo_tmp
480
+ end
481
+ end
482
+ @RequestId = params['RequestId']
483
+ end
484
+ end
485
+
486
+ # DiagnoseInstance请求参数结构体
487
+ class DiagnoseInstanceRequest < TencentCloud::Common::AbstractModel
488
+ # @param InstanceId: ES实例ID
489
+ # @type InstanceId: String
490
+ # @param DiagnoseJobs: 需要触发的诊断项
491
+ # @type DiagnoseJobs: Array
492
+ # @param DiagnoseIndices: 需要诊断的索引,支持通配符
493
+ # @type DiagnoseIndices: String
494
+
495
+ attr_accessor :InstanceId, :DiagnoseJobs, :DiagnoseIndices
496
+
497
+ def initialize(instanceid=nil, diagnosejobs=nil, diagnoseindices=nil)
498
+ @InstanceId = instanceid
499
+ @DiagnoseJobs = diagnosejobs
500
+ @DiagnoseIndices = diagnoseindices
501
+ end
502
+
503
+ def deserialize(params)
504
+ @InstanceId = params['InstanceId']
505
+ @DiagnoseJobs = params['DiagnoseJobs']
506
+ @DiagnoseIndices = params['DiagnoseIndices']
507
+ end
508
+ end
509
+
510
+ # DiagnoseInstance返回参数结构体
511
+ class DiagnoseInstanceResponse < TencentCloud::Common::AbstractModel
512
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
513
+ # @type RequestId: String
514
+
515
+ attr_accessor :RequestId
516
+
517
+ def initialize(requestid=nil)
518
+ @RequestId = requestid
519
+ end
520
+
521
+ def deserialize(params)
522
+ @RequestId = params['RequestId']
523
+ end
524
+ end
525
+
526
+ # ik插件词典信息
527
+ class DictInfo < TencentCloud::Common::AbstractModel
528
+ # @param Key: 词典键值
529
+ # @type Key: String
530
+ # @param Name: 词典名称
531
+ # @type Name: String
532
+ # @param Size: 词典大小,单位B
533
+ # @type Size: Integer
534
+
535
+ attr_accessor :Key, :Name, :Size
536
+
537
+ def initialize(key=nil, name=nil, size=nil)
538
+ @Key = key
539
+ @Name = name
540
+ @Size = size
541
+ end
542
+
543
+ def deserialize(params)
544
+ @Key = params['Key']
545
+ @Name = params['Name']
546
+ @Size = params['Size']
547
+ end
548
+ end
549
+
550
+ # ES集群配置项
551
+ class EsAcl < TencentCloud::Common::AbstractModel
552
+ # @param BlackIpList: kibana访问黑名单
553
+ # @type BlackIpList: Array
554
+ # @param WhiteIpList: kibana访问白名单
555
+ # @type WhiteIpList: Array
556
+
557
+ attr_accessor :BlackIpList, :WhiteIpList
558
+
559
+ def initialize(blackiplist=nil, whiteiplist=nil)
560
+ @BlackIpList = blackiplist
561
+ @WhiteIpList = whiteiplist
562
+ end
563
+
564
+ def deserialize(params)
565
+ @BlackIpList = params['BlackIpList']
566
+ @WhiteIpList = params['WhiteIpList']
567
+ end
568
+ end
569
+
570
+ # ES 词库信息
571
+ class EsDictionaryInfo < TencentCloud::Common::AbstractModel
572
+ # @param MainDict: 启用词词典列表
573
+ # @type MainDict: Array
574
+ # @param Stopwords: 停用词词典列表
575
+ # @type Stopwords: Array
576
+ # @param QQDict: QQ分词词典列表
577
+ # @type QQDict: Array
578
+ # @param Synonym: 同义词词典列表
579
+ # @type Synonym: Array
580
+ # @param UpdateType: 更新词典类型
581
+ # @type UpdateType: String
582
+
583
+ attr_accessor :MainDict, :Stopwords, :QQDict, :Synonym, :UpdateType
584
+
585
+ def initialize(maindict=nil, stopwords=nil, qqdict=nil, synonym=nil, updatetype=nil)
586
+ @MainDict = maindict
587
+ @Stopwords = stopwords
588
+ @QQDict = qqdict
589
+ @Synonym = synonym
590
+ @UpdateType = updatetype
591
+ end
592
+
593
+ def deserialize(params)
594
+ unless params['MainDict'].nil?
595
+ @MainDict = []
596
+ params['MainDict'].each do |i|
597
+ dictinfo_tmp = DictInfo.new
598
+ dictinfo_tmp.deserialize(i)
599
+ @MainDict << dictinfo_tmp
600
+ end
601
+ end
602
+ unless params['Stopwords'].nil?
603
+ @Stopwords = []
604
+ params['Stopwords'].each do |i|
605
+ dictinfo_tmp = DictInfo.new
606
+ dictinfo_tmp.deserialize(i)
607
+ @Stopwords << dictinfo_tmp
608
+ end
609
+ end
610
+ unless params['QQDict'].nil?
611
+ @QQDict = []
612
+ params['QQDict'].each do |i|
613
+ dictinfo_tmp = DictInfo.new
614
+ dictinfo_tmp.deserialize(i)
615
+ @QQDict << dictinfo_tmp
616
+ end
617
+ end
618
+ unless params['Synonym'].nil?
619
+ @Synonym = []
620
+ params['Synonym'].each do |i|
621
+ dictinfo_tmp = DictInfo.new
622
+ dictinfo_tmp.deserialize(i)
623
+ @Synonym << dictinfo_tmp
624
+ end
625
+ end
626
+ @UpdateType = params['UpdateType']
627
+ end
628
+ end
629
+
630
+ # ES公网访问访问控制信息
631
+ class EsPublicAcl < TencentCloud::Common::AbstractModel
632
+ # @param BlackIpList: 访问黑名单
633
+ # @type BlackIpList: Array
634
+ # @param WhiteIpList: 访问白名单
635
+ # @type WhiteIpList: Array
636
+
637
+ attr_accessor :BlackIpList, :WhiteIpList
638
+
639
+ def initialize(blackiplist=nil, whiteiplist=nil)
640
+ @BlackIpList = blackiplist
641
+ @WhiteIpList = whiteiplist
642
+ end
643
+
644
+ def deserialize(params)
645
+ @BlackIpList = params['BlackIpList']
646
+ @WhiteIpList = params['WhiteIpList']
647
+ end
648
+ end
649
+
650
+ # GetRequestTargetNodeTypes请求参数结构体
651
+ class GetRequestTargetNodeTypesRequest < TencentCloud::Common::AbstractModel
652
+ # @param InstanceId: 实例ID
653
+ # @type InstanceId: String
654
+
655
+ attr_accessor :InstanceId
656
+
657
+ def initialize(instanceid=nil)
658
+ @InstanceId = instanceid
659
+ end
660
+
661
+ def deserialize(params)
662
+ @InstanceId = params['InstanceId']
663
+ end
664
+ end
665
+
666
+ # GetRequestTargetNodeTypes返回参数结构体
667
+ class GetRequestTargetNodeTypesResponse < TencentCloud::Common::AbstractModel
668
+ # @param TargetNodeTypes: 接收请求的目标节点类型列表
669
+ # @type TargetNodeTypes: Array
670
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
671
+ # @type RequestId: String
672
+
673
+ attr_accessor :TargetNodeTypes, :RequestId
674
+
675
+ def initialize(targetnodetypes=nil, requestid=nil)
676
+ @TargetNodeTypes = targetnodetypes
677
+ @RequestId = requestid
678
+ end
679
+
680
+ def deserialize(params)
681
+ @TargetNodeTypes = params['TargetNodeTypes']
682
+ @RequestId = params['RequestId']
683
+ end
684
+ end
685
+
686
+ # 实例详细信息
687
+ class InstanceInfo < TencentCloud::Common::AbstractModel
688
+ # @param InstanceId: 实例ID
689
+ # @type InstanceId: String
690
+ # @param InstanceName: 实例名称
691
+ # @type InstanceName: String
692
+ # @param Region: 地域
693
+ # @type Region: String
694
+ # @param Zone: 可用区
695
+ # @type Zone: String
696
+ # @param AppId: 用户ID
697
+ # @type AppId: Integer
698
+ # @param Uin: 用户UIN
699
+ # @type Uin: String
700
+ # @param VpcUid: 实例所属VPC的UID
701
+ # @type VpcUid: String
702
+ # @param SubnetUid: 实例所属子网的UID
703
+ # @type SubnetUid: String
704
+ # @param Status: 实例状态,0:处理中,1:正常,-1停止,-2:销毁中,-3:已销毁
705
+ # @type Status: Integer
706
+ # @param ChargeType: 实例计费模式。取值范围: PREPAID:表示预付费,即包年包月 POSTPAID_BY_HOUR:表示后付费,即按量计费 CDHPAID:CDH付费,即只对CDH计费,不对CDH上的实例计费。
707
+ # @type ChargeType: String
708
+ # @param ChargePeriod: 包年包月购买时长,单位:月
709
+ # @type ChargePeriod: Integer
710
+ # @param RenewFlag: 自动续费标识。取值范围: NOTIFY_AND_AUTO_RENEW:通知过期且自动续费 NOTIFY_AND_MANUAL_RENEW:通知过期不自动续费 DISABLE_NOTIFY_AND_MANUAL_RENEW:不通知过期不自动续费 默认取值:NOTIFY_AND_AUTO_RENEW。若该参数指定为NOTIFY_AND_AUTO_RENEW,在账户余额充足的情况下,实例到期后将按月自动续费。
711
+ # @type RenewFlag: String
712
+ # @param NodeType: 节点规格<li>ES.S1.SMALL2:1核2G</li><li>ES.S1.MEDIUM4:2核4G</li><li>ES.S1.MEDIUM8:2核8G</li><li>ES.S1.LARGE16:4核16G</li><li>ES.S1.2XLARGE32:8核32G</li><li>ES.S1.4XLARGE32:16核32G</li><li>ES.S1.4XLARGE64:16核64G</li>
713
+ # @type NodeType: String
714
+ # @param NodeNum: 节点个数
715
+ # @type NodeNum: Integer
716
+ # @param CpuNum: 节点CPU核数
717
+ # @type CpuNum: Integer
718
+ # @param MemSize: 节点内存大小,单位GB
719
+ # @type MemSize: Integer
720
+ # @param DiskType: 节点磁盘类型
721
+ # @type DiskType: String
722
+ # @param DiskSize: 节点磁盘大小,单位GB
723
+ # @type DiskSize: Integer
724
+ # @param EsDomain: ES域名
725
+ # @type EsDomain: String
726
+ # @param EsVip: ES VIP
727
+ # @type EsVip: String
728
+ # @param EsPort: ES端口
729
+ # @type EsPort: Integer
730
+ # @param KibanaUrl: Kibana访问url
731
+ # @type KibanaUrl: String
732
+ # @param EsVersion: ES版本号
733
+ # @type EsVersion: String
734
+ # @param EsConfig: ES配置项
735
+ # @type EsConfig: String
736
+ # @param EsAcl: Kibana访问控制配置
737
+ # @type EsAcl: :class:`Tencentcloud::Es.v20180416.models.EsAcl`
738
+ # @param CreateTime: 实例创建时间
739
+ # @type CreateTime: String
740
+ # @param UpdateTime: 实例最后修改操作时间
741
+ # @type UpdateTime: String
742
+ # @param Deadline: 实例到期时间
743
+ # @type Deadline: String
744
+ # @param InstanceType: 实例类型(实例类型标识,当前只有1,2两种)
745
+ # @type InstanceType: Integer
746
+ # @param IkConfig: Ik分词器配置
747
+ # @type IkConfig: :class:`Tencentcloud::Es.v20180416.models.EsDictionaryInfo`
748
+ # @param MasterNodeInfo: 专用主节点配置
749
+ # @type MasterNodeInfo: :class:`Tencentcloud::Es.v20180416.models.MasterNodeInfo`
750
+ # @param CosBackup: cos自动备份配置
751
+ # @type CosBackup: :class:`Tencentcloud::Es.v20180416.models.CosBackup`
752
+ # @param AllowCosBackup: 是否允许cos自动备份
753
+ # @type AllowCosBackup: Boolean
754
+ # @param TagList: 实例拥有的标签列表
755
+ # @type TagList: Array
756
+ # @param LicenseType: License类型<li>oss:开源版</li><li>basic:基础版</li><li>platinum:白金版</li>默认值platinum
757
+ # @type LicenseType: String
758
+ # @param EnableHotWarmMode: 是否为冷热集群<li>true: 冷热集群</li><li>false: 非冷热集群</li>
759
+ # 注意:此字段可能返回 null,表示取不到有效值。
760
+ # @type EnableHotWarmMode: Boolean
761
+ # @param WarmNodeType: 冷节点规格<li>ES.S1.SMALL2:1核2G</li><li>ES.S1.MEDIUM4:2核4G</li><li>ES.S1.MEDIUM8:2核8G</li><li>ES.S1.LARGE16:4核16G</li><li>ES.S1.2XLARGE32:8核32G</li><li>ES.S1.4XLARGE32:16核32G</li><li>ES.S1.4XLARGE64:16核64G</li>
762
+ # 注意:此字段可能返回 null,表示取不到有效值。
763
+ # @type WarmNodeType: String
764
+ # @param WarmNodeNum: 冷节点个数
765
+ # 注意:此字段可能返回 null,表示取不到有效值。
766
+ # @type WarmNodeNum: Integer
767
+ # @param WarmCpuNum: 冷节点CPU核数
768
+ # 注意:此字段可能返回 null,表示取不到有效值。
769
+ # @type WarmCpuNum: Integer
770
+ # @param WarmMemSize: 冷节点内存内存大小,单位GB
771
+ # 注意:此字段可能返回 null,表示取不到有效值。
772
+ # @type WarmMemSize: Integer
773
+ # @param WarmDiskType: 冷节点磁盘类型
774
+ # 注意:此字段可能返回 null,表示取不到有效值。
775
+ # @type WarmDiskType: String
776
+ # @param WarmDiskSize: 冷节点磁盘大小,单位GB
777
+ # 注意:此字段可能返回 null,表示取不到有效值。
778
+ # @type WarmDiskSize: Integer
779
+ # @param NodeInfoList: 集群节点信息列表
780
+ # 注意:此字段可能返回 null,表示取不到有效值。
781
+ # @type NodeInfoList: Array
782
+ # @param EsPublicUrl: Es公网地址
783
+ # 注意:此字段可能返回 null,表示取不到有效值。
784
+ # @type EsPublicUrl: String
785
+ # @param MultiZoneInfo: 多可用区网络信息
786
+ # 注意:此字段可能返回 null,表示取不到有效值。
787
+ # @type MultiZoneInfo: Array
788
+ # @param DeployMode: 部署模式<li>0:单可用区</li><li>1:多可用区</li>
789
+ # 注意:此字段可能返回 null,表示取不到有效值。
790
+ # @type DeployMode: Integer
791
+ # @param PublicAccess: ES公网访问状态<li>OPEN:开启</li><li>CLOSE:关闭
792
+ # 注意:此字段可能返回 null,表示取不到有效值。
793
+ # @type PublicAccess: String
794
+ # @param EsPublicAcl: ES公网访问控制配置
795
+ # @type EsPublicAcl: :class:`Tencentcloud::Es.v20180416.models.EsAcl`
796
+ # @param KibanaPrivateUrl: Kibana内网地址
797
+ # 注意:此字段可能返回 null,表示取不到有效值。
798
+ # @type KibanaPrivateUrl: String
799
+ # @param KibanaPublicAccess: Kibana公网访问状态<li>OPEN:开启</li><li>CLOSE:关闭
800
+ # 注意:此字段可能返回 null,表示取不到有效值。
801
+ # @type KibanaPublicAccess: String
802
+ # @param KibanaPrivateAccess: Kibana内网访问状态<li>OPEN:开启</li><li>CLOSE:关闭
803
+ # 注意:此字段可能返回 null,表示取不到有效值。
804
+ # @type KibanaPrivateAccess: String
805
+ # @param SecurityType: 6.8(及以上版本)基础版是否开启xpack security认证<li>1:不开启</li><li>2:开启</li>
806
+ # 注意:此字段可能返回 null,表示取不到有效值。
807
+ # @type SecurityType: Integer
808
+ # @param SceneType: 场景化模板类型:0、不开启;1、通用场景;2、日志场景;3、搜索场景
809
+ # 注意:此字段可能返回 null,表示取不到有效值。
810
+ # @type SceneType: Integer
811
+ # @param KibanaConfig: Kibana配置项
812
+ # 注意:此字段可能返回 null,表示取不到有效值。
813
+ # @type KibanaConfig: String
814
+ # @param KibanaNodeInfo: Kibana节点信息
815
+ # 注意:此字段可能返回 null,表示取不到有效值。
816
+ # @type KibanaNodeInfo: :class:`Tencentcloud::Es.v20180416.models.KibanaNodeInfo`
817
+ # @param WebNodeTypeInfo: 可视化节点配置
818
+ # 注意:此字段可能返回 null,表示取不到有效值。
819
+ # @type WebNodeTypeInfo: :class:`Tencentcloud::Es.v20180416.models.WebNodeTypeInfo`
820
+ # @param Jdk: JDK类型,oracle或kona
821
+ # 注意:此字段可能返回 null,表示取不到有效值。
822
+ # @type Jdk: String
823
+ # @param Protocol: 集群网络通讯协议
824
+ # 注意:此字段可能返回 null,表示取不到有效值。
825
+ # @type Protocol: String
826
+ # @param SecurityGroups: 安全组id
827
+ # 注意:此字段可能返回 null,表示取不到有效值。
828
+ # @type SecurityGroups: Array
829
+
830
+ attr_accessor :InstanceId, :InstanceName, :Region, :Zone, :AppId, :Uin, :VpcUid, :SubnetUid, :Status, :ChargeType, :ChargePeriod, :RenewFlag, :NodeType, :NodeNum, :CpuNum, :MemSize, :DiskType, :DiskSize, :EsDomain, :EsVip, :EsPort, :KibanaUrl, :EsVersion, :EsConfig, :EsAcl, :CreateTime, :UpdateTime, :Deadline, :InstanceType, :IkConfig, :MasterNodeInfo, :CosBackup, :AllowCosBackup, :TagList, :LicenseType, :EnableHotWarmMode, :WarmNodeType, :WarmNodeNum, :WarmCpuNum, :WarmMemSize, :WarmDiskType, :WarmDiskSize, :NodeInfoList, :EsPublicUrl, :MultiZoneInfo, :DeployMode, :PublicAccess, :EsPublicAcl, :KibanaPrivateUrl, :KibanaPublicAccess, :KibanaPrivateAccess, :SecurityType, :SceneType, :KibanaConfig, :KibanaNodeInfo, :WebNodeTypeInfo, :Jdk, :Protocol, :SecurityGroups
831
+
832
+ def initialize(instanceid=nil, instancename=nil, region=nil, zone=nil, appid=nil, uin=nil, vpcuid=nil, subnetuid=nil, status=nil, chargetype=nil, chargeperiod=nil, renewflag=nil, nodetype=nil, nodenum=nil, cpunum=nil, memsize=nil, disktype=nil, disksize=nil, esdomain=nil, esvip=nil, esport=nil, kibanaurl=nil, esversion=nil, esconfig=nil, esacl=nil, createtime=nil, updatetime=nil, deadline=nil, instancetype=nil, ikconfig=nil, masternodeinfo=nil, cosbackup=nil, allowcosbackup=nil, taglist=nil, licensetype=nil, enablehotwarmmode=nil, warmnodetype=nil, warmnodenum=nil, warmcpunum=nil, warmmemsize=nil, warmdisktype=nil, warmdisksize=nil, nodeinfolist=nil, espublicurl=nil, multizoneinfo=nil, deploymode=nil, publicaccess=nil, espublicacl=nil, kibanaprivateurl=nil, kibanapublicaccess=nil, kibanaprivateaccess=nil, securitytype=nil, scenetype=nil, kibanaconfig=nil, kibananodeinfo=nil, webnodetypeinfo=nil, jdk=nil, protocol=nil, securitygroups=nil)
833
+ @InstanceId = instanceid
834
+ @InstanceName = instancename
835
+ @Region = region
836
+ @Zone = zone
837
+ @AppId = appid
838
+ @Uin = uin
839
+ @VpcUid = vpcuid
840
+ @SubnetUid = subnetuid
841
+ @Status = status
842
+ @ChargeType = chargetype
843
+ @ChargePeriod = chargeperiod
844
+ @RenewFlag = renewflag
845
+ @NodeType = nodetype
846
+ @NodeNum = nodenum
847
+ @CpuNum = cpunum
848
+ @MemSize = memsize
849
+ @DiskType = disktype
850
+ @DiskSize = disksize
851
+ @EsDomain = esdomain
852
+ @EsVip = esvip
853
+ @EsPort = esport
854
+ @KibanaUrl = kibanaurl
855
+ @EsVersion = esversion
856
+ @EsConfig = esconfig
857
+ @EsAcl = esacl
858
+ @CreateTime = createtime
859
+ @UpdateTime = updatetime
860
+ @Deadline = deadline
861
+ @InstanceType = instancetype
862
+ @IkConfig = ikconfig
863
+ @MasterNodeInfo = masternodeinfo
864
+ @CosBackup = cosbackup
865
+ @AllowCosBackup = allowcosbackup
866
+ @TagList = taglist
867
+ @LicenseType = licensetype
868
+ @EnableHotWarmMode = enablehotwarmmode
869
+ @WarmNodeType = warmnodetype
870
+ @WarmNodeNum = warmnodenum
871
+ @WarmCpuNum = warmcpunum
872
+ @WarmMemSize = warmmemsize
873
+ @WarmDiskType = warmdisktype
874
+ @WarmDiskSize = warmdisksize
875
+ @NodeInfoList = nodeinfolist
876
+ @EsPublicUrl = espublicurl
877
+ @MultiZoneInfo = multizoneinfo
878
+ @DeployMode = deploymode
879
+ @PublicAccess = publicaccess
880
+ @EsPublicAcl = espublicacl
881
+ @KibanaPrivateUrl = kibanaprivateurl
882
+ @KibanaPublicAccess = kibanapublicaccess
883
+ @KibanaPrivateAccess = kibanaprivateaccess
884
+ @SecurityType = securitytype
885
+ @SceneType = scenetype
886
+ @KibanaConfig = kibanaconfig
887
+ @KibanaNodeInfo = kibananodeinfo
888
+ @WebNodeTypeInfo = webnodetypeinfo
889
+ @Jdk = jdk
890
+ @Protocol = protocol
891
+ @SecurityGroups = securitygroups
892
+ end
893
+
894
+ def deserialize(params)
895
+ @InstanceId = params['InstanceId']
896
+ @InstanceName = params['InstanceName']
897
+ @Region = params['Region']
898
+ @Zone = params['Zone']
899
+ @AppId = params['AppId']
900
+ @Uin = params['Uin']
901
+ @VpcUid = params['VpcUid']
902
+ @SubnetUid = params['SubnetUid']
903
+ @Status = params['Status']
904
+ @ChargeType = params['ChargeType']
905
+ @ChargePeriod = params['ChargePeriod']
906
+ @RenewFlag = params['RenewFlag']
907
+ @NodeType = params['NodeType']
908
+ @NodeNum = params['NodeNum']
909
+ @CpuNum = params['CpuNum']
910
+ @MemSize = params['MemSize']
911
+ @DiskType = params['DiskType']
912
+ @DiskSize = params['DiskSize']
913
+ @EsDomain = params['EsDomain']
914
+ @EsVip = params['EsVip']
915
+ @EsPort = params['EsPort']
916
+ @KibanaUrl = params['KibanaUrl']
917
+ @EsVersion = params['EsVersion']
918
+ @EsConfig = params['EsConfig']
919
+ unless params['EsAcl'].nil?
920
+ @EsAcl = EsAcl.new
921
+ @EsAcl.deserialize(params['EsAcl'])
922
+ end
923
+ @CreateTime = params['CreateTime']
924
+ @UpdateTime = params['UpdateTime']
925
+ @Deadline = params['Deadline']
926
+ @InstanceType = params['InstanceType']
927
+ unless params['IkConfig'].nil?
928
+ @IkConfig = EsDictionaryInfo.new
929
+ @IkConfig.deserialize(params['IkConfig'])
930
+ end
931
+ unless params['MasterNodeInfo'].nil?
932
+ @MasterNodeInfo = MasterNodeInfo.new
933
+ @MasterNodeInfo.deserialize(params['MasterNodeInfo'])
934
+ end
935
+ unless params['CosBackup'].nil?
936
+ @CosBackup = CosBackup.new
937
+ @CosBackup.deserialize(params['CosBackup'])
938
+ end
939
+ @AllowCosBackup = params['AllowCosBackup']
940
+ unless params['TagList'].nil?
941
+ @TagList = []
942
+ params['TagList'].each do |i|
943
+ taginfo_tmp = TagInfo.new
944
+ taginfo_tmp.deserialize(i)
945
+ @TagList << taginfo_tmp
946
+ end
947
+ end
948
+ @LicenseType = params['LicenseType']
949
+ @EnableHotWarmMode = params['EnableHotWarmMode']
950
+ @WarmNodeType = params['WarmNodeType']
951
+ @WarmNodeNum = params['WarmNodeNum']
952
+ @WarmCpuNum = params['WarmCpuNum']
953
+ @WarmMemSize = params['WarmMemSize']
954
+ @WarmDiskType = params['WarmDiskType']
955
+ @WarmDiskSize = params['WarmDiskSize']
956
+ unless params['NodeInfoList'].nil?
957
+ @NodeInfoList = []
958
+ params['NodeInfoList'].each do |i|
959
+ nodeinfo_tmp = NodeInfo.new
960
+ nodeinfo_tmp.deserialize(i)
961
+ @NodeInfoList << nodeinfo_tmp
962
+ end
963
+ end
964
+ @EsPublicUrl = params['EsPublicUrl']
965
+ unless params['MultiZoneInfo'].nil?
966
+ @MultiZoneInfo = []
967
+ params['MultiZoneInfo'].each do |i|
968
+ zonedetail_tmp = ZoneDetail.new
969
+ zonedetail_tmp.deserialize(i)
970
+ @MultiZoneInfo << zonedetail_tmp
971
+ end
972
+ end
973
+ @DeployMode = params['DeployMode']
974
+ @PublicAccess = params['PublicAccess']
975
+ unless params['EsPublicAcl'].nil?
976
+ @EsPublicAcl = EsAcl.new
977
+ @EsPublicAcl.deserialize(params['EsPublicAcl'])
978
+ end
979
+ @KibanaPrivateUrl = params['KibanaPrivateUrl']
980
+ @KibanaPublicAccess = params['KibanaPublicAccess']
981
+ @KibanaPrivateAccess = params['KibanaPrivateAccess']
982
+ @SecurityType = params['SecurityType']
983
+ @SceneType = params['SceneType']
984
+ @KibanaConfig = params['KibanaConfig']
985
+ unless params['KibanaNodeInfo'].nil?
986
+ @KibanaNodeInfo = KibanaNodeInfo.new
987
+ @KibanaNodeInfo.deserialize(params['KibanaNodeInfo'])
988
+ end
989
+ unless params['WebNodeTypeInfo'].nil?
990
+ @WebNodeTypeInfo = WebNodeTypeInfo.new
991
+ @WebNodeTypeInfo.deserialize(params['WebNodeTypeInfo'])
992
+ end
993
+ @Jdk = params['Jdk']
994
+ @Protocol = params['Protocol']
995
+ @SecurityGroups = params['SecurityGroups']
996
+ end
997
+ end
998
+
999
+ # ES集群日志详细信息
1000
+ class InstanceLog < TencentCloud::Common::AbstractModel
1001
+ # @param Time: 日志时间
1002
+ # @type Time: String
1003
+ # @param Level: 日志级别
1004
+ # @type Level: String
1005
+ # @param Ip: 集群节点ip
1006
+ # @type Ip: String
1007
+ # @param Message: 日志内容
1008
+ # @type Message: String
1009
+
1010
+ attr_accessor :Time, :Level, :Ip, :Message
1011
+
1012
+ def initialize(time=nil, level=nil, ip=nil, message=nil)
1013
+ @Time = time
1014
+ @Level = level
1015
+ @Ip = ip
1016
+ @Message = message
1017
+ end
1018
+
1019
+ def deserialize(params)
1020
+ @Time = params['Time']
1021
+ @Level = params['Level']
1022
+ @Ip = params['Ip']
1023
+ @Message = params['Message']
1024
+ end
1025
+ end
1026
+
1027
+ # OperationDetail使用此结构的数组描述新旧配置
1028
+ class KeyValue < TencentCloud::Common::AbstractModel
1029
+ # @param Key: 键
1030
+ # @type Key: String
1031
+ # @param Value: 值
1032
+ # @type Value: String
1033
+
1034
+ attr_accessor :Key, :Value
1035
+
1036
+ def initialize(key=nil, value=nil)
1037
+ @Key = key
1038
+ @Value = value
1039
+ end
1040
+
1041
+ def deserialize(params)
1042
+ @Key = params['Key']
1043
+ @Value = params['Value']
1044
+ end
1045
+ end
1046
+
1047
+ # 实例Kibana节点相关信息
1048
+ class KibanaNodeInfo < TencentCloud::Common::AbstractModel
1049
+ # @param KibanaNodeType: Kibana节点规格
1050
+ # @type KibanaNodeType: String
1051
+ # @param KibanaNodeNum: Kibana节点个数
1052
+ # @type KibanaNodeNum: Integer
1053
+ # @param KibanaNodeCpuNum: Kibana节点CPU数
1054
+ # @type KibanaNodeCpuNum: Integer
1055
+ # @param KibanaNodeMemSize: Kibana节点内存GB
1056
+ # @type KibanaNodeMemSize: Integer
1057
+ # @param KibanaNodeDiskType: Kibana节点磁盘类型
1058
+ # @type KibanaNodeDiskType: String
1059
+ # @param KibanaNodeDiskSize: Kibana节点磁盘大小
1060
+ # @type KibanaNodeDiskSize: Integer
1061
+
1062
+ attr_accessor :KibanaNodeType, :KibanaNodeNum, :KibanaNodeCpuNum, :KibanaNodeMemSize, :KibanaNodeDiskType, :KibanaNodeDiskSize
1063
+
1064
+ def initialize(kibananodetype=nil, kibananodenum=nil, kibananodecpunum=nil, kibananodememsize=nil, kibananodedisktype=nil, kibananodedisksize=nil)
1065
+ @KibanaNodeType = kibananodetype
1066
+ @KibanaNodeNum = kibananodenum
1067
+ @KibanaNodeCpuNum = kibananodecpunum
1068
+ @KibanaNodeMemSize = kibananodememsize
1069
+ @KibanaNodeDiskType = kibananodedisktype
1070
+ @KibanaNodeDiskSize = kibananodedisksize
1071
+ end
1072
+
1073
+ def deserialize(params)
1074
+ @KibanaNodeType = params['KibanaNodeType']
1075
+ @KibanaNodeNum = params['KibanaNodeNum']
1076
+ @KibanaNodeCpuNum = params['KibanaNodeCpuNum']
1077
+ @KibanaNodeMemSize = params['KibanaNodeMemSize']
1078
+ @KibanaNodeDiskType = params['KibanaNodeDiskType']
1079
+ @KibanaNodeDiskSize = params['KibanaNodeDiskSize']
1080
+ end
1081
+ end
1082
+
1083
+ # 节点本地盘信息
1084
+ class LocalDiskInfo < TencentCloud::Common::AbstractModel
1085
+ # @param LocalDiskType: 本地盘类型<li>LOCAL_SATA:大数据型</li><li>NVME_SSD:高IO型</li>
1086
+ # @type LocalDiskType: String
1087
+ # @param LocalDiskSize: 本地盘单盘大小
1088
+ # @type LocalDiskSize: Integer
1089
+ # @param LocalDiskCount: 本地盘块数
1090
+ # @type LocalDiskCount: Integer
1091
+
1092
+ attr_accessor :LocalDiskType, :LocalDiskSize, :LocalDiskCount
1093
+
1094
+ def initialize(localdisktype=nil, localdisksize=nil, localdiskcount=nil)
1095
+ @LocalDiskType = localdisktype
1096
+ @LocalDiskSize = localdisksize
1097
+ @LocalDiskCount = localdiskcount
1098
+ end
1099
+
1100
+ def deserialize(params)
1101
+ @LocalDiskType = params['LocalDiskType']
1102
+ @LocalDiskSize = params['LocalDiskSize']
1103
+ @LocalDiskCount = params['LocalDiskCount']
1104
+ end
1105
+ end
1106
+
1107
+ # 实例专用主节点相关信息
1108
+ class MasterNodeInfo < TencentCloud::Common::AbstractModel
1109
+ # @param EnableDedicatedMaster: 是否启用了专用主节点
1110
+ # @type EnableDedicatedMaster: Boolean
1111
+ # @param MasterNodeType: 专用主节点规格<li>ES.S1.SMALL2:1核2G</li><li>ES.S1.MEDIUM4:2核4G</li><li>ES.S1.MEDIUM8:2核8G</li><li>ES.S1.LARGE16:4核16G</li><li>ES.S1.2XLARGE32:8核32G</li><li>ES.S1.4XLARGE32:16核32G</li><li>ES.S1.4XLARGE64:16核64G</li>
1112
+ # @type MasterNodeType: String
1113
+ # @param MasterNodeNum: 专用主节点个数
1114
+ # @type MasterNodeNum: Integer
1115
+ # @param MasterNodeCpuNum: 专用主节点CPU核数
1116
+ # @type MasterNodeCpuNum: Integer
1117
+ # @param MasterNodeMemSize: 专用主节点内存大小,单位GB
1118
+ # @type MasterNodeMemSize: Integer
1119
+ # @param MasterNodeDiskSize: 专用主节点磁盘大小,单位GB
1120
+ # @type MasterNodeDiskSize: Integer
1121
+ # @param MasterNodeDiskType: 专用主节点磁盘类型
1122
+ # @type MasterNodeDiskType: String
1123
+
1124
+ attr_accessor :EnableDedicatedMaster, :MasterNodeType, :MasterNodeNum, :MasterNodeCpuNum, :MasterNodeMemSize, :MasterNodeDiskSize, :MasterNodeDiskType
1125
+
1126
+ def initialize(enablededicatedmaster=nil, masternodetype=nil, masternodenum=nil, masternodecpunum=nil, masternodememsize=nil, masternodedisksize=nil, masternodedisktype=nil)
1127
+ @EnableDedicatedMaster = enablededicatedmaster
1128
+ @MasterNodeType = masternodetype
1129
+ @MasterNodeNum = masternodenum
1130
+ @MasterNodeCpuNum = masternodecpunum
1131
+ @MasterNodeMemSize = masternodememsize
1132
+ @MasterNodeDiskSize = masternodedisksize
1133
+ @MasterNodeDiskType = masternodedisktype
1134
+ end
1135
+
1136
+ def deserialize(params)
1137
+ @EnableDedicatedMaster = params['EnableDedicatedMaster']
1138
+ @MasterNodeType = params['MasterNodeType']
1139
+ @MasterNodeNum = params['MasterNodeNum']
1140
+ @MasterNodeCpuNum = params['MasterNodeCpuNum']
1141
+ @MasterNodeMemSize = params['MasterNodeMemSize']
1142
+ @MasterNodeDiskSize = params['MasterNodeDiskSize']
1143
+ @MasterNodeDiskType = params['MasterNodeDiskType']
1144
+ end
1145
+ end
1146
+
1147
+ # 集群中一种节点类型(如热数据节点,冷数据节点,专用主节点等)的规格描述信息,包括节点类型,节点个数,节点规格,磁盘类型,磁盘大小等, Type不指定时默认为热数据节点;如果节点为master节点,则DiskType和DiskSize参数会被忽略(主节点无数据盘)
1148
+ class NodeInfo < TencentCloud::Common::AbstractModel
1149
+ # @param NodeNum: 节点数量
1150
+ # @type NodeNum: Integer
1151
+ # @param NodeType: 节点规格<li>ES.S1.SMALL2:1核2G</li><li>ES.S1.MEDIUM4:2核4G</li><li>ES.S1.MEDIUM8:2核8G</li><li>ES.S1.LARGE16:4核16G</li><li>ES.S1.2XLARGE32:8核32G</li><li>ES.S1.4XLARGE32:16核32G</li><li>ES.S1.4XLARGE64:16核64G</li>
1152
+ # @type NodeType: String
1153
+ # @param Type: 节点类型<li>hotData: 热数据节点</li>
1154
+ # <li>warmData: 冷数据节点</li>
1155
+ # <li>dedicatedMaster: 专用主节点</li>
1156
+ # 默认值为hotData
1157
+ # @type Type: String
1158
+ # @param DiskType: 节点磁盘类型<li>CLOUD_SSD:SSD云硬盘</li><li>CLOUD_PREMIUM:高硬能云硬盘</li>默认值CLOUD_SSD
1159
+ # @type DiskType: String
1160
+ # @param DiskSize: 节点磁盘容量(单位GB)
1161
+ # @type DiskSize: Integer
1162
+ # @param LocalDiskInfo: 节点本地盘信息
1163
+ # 注意:此字段可能返回 null,表示取不到有效值。
1164
+ # @type LocalDiskInfo: :class:`Tencentcloud::Es.v20180416.models.LocalDiskInfo`
1165
+ # @param DiskCount: 节点磁盘块数
1166
+ # @type DiskCount: Integer
1167
+ # @param DiskEncrypt: 节点磁盘是否加密 0: 不加密,1: 加密;默认不加密
1168
+ # @type DiskEncrypt: Integer
1169
+
1170
+ attr_accessor :NodeNum, :NodeType, :Type, :DiskType, :DiskSize, :LocalDiskInfo, :DiskCount, :DiskEncrypt
1171
+
1172
+ def initialize(nodenum=nil, nodetype=nil, type=nil, disktype=nil, disksize=nil, localdiskinfo=nil, diskcount=nil, diskencrypt=nil)
1173
+ @NodeNum = nodenum
1174
+ @NodeType = nodetype
1175
+ @Type = type
1176
+ @DiskType = disktype
1177
+ @DiskSize = disksize
1178
+ @LocalDiskInfo = localdiskinfo
1179
+ @DiskCount = diskcount
1180
+ @DiskEncrypt = diskencrypt
1181
+ end
1182
+
1183
+ def deserialize(params)
1184
+ @NodeNum = params['NodeNum']
1185
+ @NodeType = params['NodeType']
1186
+ @Type = params['Type']
1187
+ @DiskType = params['DiskType']
1188
+ @DiskSize = params['DiskSize']
1189
+ unless params['LocalDiskInfo'].nil?
1190
+ @LocalDiskInfo = LocalDiskInfo.new
1191
+ @LocalDiskInfo.deserialize(params['LocalDiskInfo'])
1192
+ end
1193
+ @DiskCount = params['DiskCount']
1194
+ @DiskEncrypt = params['DiskEncrypt']
1195
+ end
1196
+ end
1197
+
1198
+ # ES集群操作详细信息
1199
+ class Operation < TencentCloud::Common::AbstractModel
1200
+ # @param Id: 操作唯一id
1201
+ # @type Id: Integer
1202
+ # @param StartTime: 操作开始时间
1203
+ # @type StartTime: String
1204
+ # @param Type: 操作类型
1205
+ # @type Type: String
1206
+ # @param Detail: 操作详情
1207
+ # @type Detail: :class:`Tencentcloud::Es.v20180416.models.OperationDetail`
1208
+ # @param Result: 操作结果
1209
+ # @type Result: String
1210
+ # @param Tasks: 流程任务信息
1211
+ # @type Tasks: Array
1212
+ # @param Progress: 操作进度
1213
+ # @type Progress: Float
1214
+
1215
+ attr_accessor :Id, :StartTime, :Type, :Detail, :Result, :Tasks, :Progress
1216
+
1217
+ def initialize(id=nil, starttime=nil, type=nil, detail=nil, result=nil, tasks=nil, progress=nil)
1218
+ @Id = id
1219
+ @StartTime = starttime
1220
+ @Type = type
1221
+ @Detail = detail
1222
+ @Result = result
1223
+ @Tasks = tasks
1224
+ @Progress = progress
1225
+ end
1226
+
1227
+ def deserialize(params)
1228
+ @Id = params['Id']
1229
+ @StartTime = params['StartTime']
1230
+ @Type = params['Type']
1231
+ unless params['Detail'].nil?
1232
+ @Detail = OperationDetail.new
1233
+ @Detail.deserialize(params['Detail'])
1234
+ end
1235
+ @Result = params['Result']
1236
+ unless params['Tasks'].nil?
1237
+ @Tasks = []
1238
+ params['Tasks'].each do |i|
1239
+ taskdetail_tmp = TaskDetail.new
1240
+ taskdetail_tmp.deserialize(i)
1241
+ @Tasks << taskdetail_tmp
1242
+ end
1243
+ end
1244
+ @Progress = params['Progress']
1245
+ end
1246
+ end
1247
+
1248
+ # 操作详情
1249
+ class OperationDetail < TencentCloud::Common::AbstractModel
1250
+ # @param OldInfo: 实例原始配置信息
1251
+ # @type OldInfo: Array
1252
+ # @param NewInfo: 实例更新后配置信息
1253
+ # @type NewInfo: Array
1254
+
1255
+ attr_accessor :OldInfo, :NewInfo
1256
+
1257
+ def initialize(oldinfo=nil, newinfo=nil)
1258
+ @OldInfo = oldinfo
1259
+ @NewInfo = newinfo
1260
+ end
1261
+
1262
+ def deserialize(params)
1263
+ unless params['OldInfo'].nil?
1264
+ @OldInfo = []
1265
+ params['OldInfo'].each do |i|
1266
+ keyvalue_tmp = KeyValue.new
1267
+ keyvalue_tmp.deserialize(i)
1268
+ @OldInfo << keyvalue_tmp
1269
+ end
1270
+ end
1271
+ unless params['NewInfo'].nil?
1272
+ @NewInfo = []
1273
+ params['NewInfo'].each do |i|
1274
+ keyvalue_tmp = KeyValue.new
1275
+ keyvalue_tmp.deserialize(i)
1276
+ @NewInfo << keyvalue_tmp
1277
+ end
1278
+ end
1279
+ end
1280
+ end
1281
+
1282
+ # RestartInstance请求参数结构体
1283
+ class RestartInstanceRequest < TencentCloud::Common::AbstractModel
1284
+ # @param InstanceId: 实例ID
1285
+ # @type InstanceId: String
1286
+ # @param ForceRestart: 是否强制重启<li>true:强制重启</li><li>false:不强制重启</li>默认false
1287
+ # @type ForceRestart: Boolean
1288
+ # @param RestartMode: 重启模式:0 滚动重启; 1 全量重启
1289
+ # @type RestartMode: Integer
1290
+
1291
+ attr_accessor :InstanceId, :ForceRestart, :RestartMode
1292
+
1293
+ def initialize(instanceid=nil, forcerestart=nil, restartmode=nil)
1294
+ @InstanceId = instanceid
1295
+ @ForceRestart = forcerestart
1296
+ @RestartMode = restartmode
1297
+ end
1298
+
1299
+ def deserialize(params)
1300
+ @InstanceId = params['InstanceId']
1301
+ @ForceRestart = params['ForceRestart']
1302
+ @RestartMode = params['RestartMode']
1303
+ end
1304
+ end
1305
+
1306
+ # RestartInstance返回参数结构体
1307
+ class RestartInstanceResponse < TencentCloud::Common::AbstractModel
1308
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1309
+ # @type RequestId: String
1310
+
1311
+ attr_accessor :RequestId
1312
+
1313
+ def initialize(requestid=nil)
1314
+ @RequestId = requestid
1315
+ end
1316
+
1317
+ def deserialize(params)
1318
+ @RequestId = params['RequestId']
1319
+ end
1320
+ end
1321
+
1322
+ # RestartKibana请求参数结构体
1323
+ class RestartKibanaRequest < TencentCloud::Common::AbstractModel
1324
+ # @param InstanceId: ES实例ID
1325
+ # @type InstanceId: String
1326
+
1327
+ attr_accessor :InstanceId
1328
+
1329
+ def initialize(instanceid=nil)
1330
+ @InstanceId = instanceid
1331
+ end
1332
+
1333
+ def deserialize(params)
1334
+ @InstanceId = params['InstanceId']
1335
+ end
1336
+ end
1337
+
1338
+ # RestartKibana返回参数结构体
1339
+ class RestartKibanaResponse < TencentCloud::Common::AbstractModel
1340
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1341
+ # @type RequestId: String
1342
+
1343
+ attr_accessor :RequestId
1344
+
1345
+ def initialize(requestid=nil)
1346
+ @RequestId = requestid
1347
+ end
1348
+
1349
+ def deserialize(params)
1350
+ @RequestId = params['RequestId']
1351
+ end
1352
+ end
1353
+
1354
+ # RestartNodes请求参数结构体
1355
+ class RestartNodesRequest < TencentCloud::Common::AbstractModel
1356
+ # @param InstanceId: 集群实例ID
1357
+ # @type InstanceId: String
1358
+ # @param NodeNames: 节点名称列表
1359
+ # @type NodeNames: Array
1360
+ # @param ForceRestart: 是否强制重启
1361
+ # @type ForceRestart: Boolean
1362
+
1363
+ attr_accessor :InstanceId, :NodeNames, :ForceRestart
1364
+
1365
+ def initialize(instanceid=nil, nodenames=nil, forcerestart=nil)
1366
+ @InstanceId = instanceid
1367
+ @NodeNames = nodenames
1368
+ @ForceRestart = forcerestart
1369
+ end
1370
+
1371
+ def deserialize(params)
1372
+ @InstanceId = params['InstanceId']
1373
+ @NodeNames = params['NodeNames']
1374
+ @ForceRestart = params['ForceRestart']
1375
+ end
1376
+ end
1377
+
1378
+ # RestartNodes返回参数结构体
1379
+ class RestartNodesResponse < TencentCloud::Common::AbstractModel
1380
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1381
+ # @type RequestId: String
1382
+
1383
+ attr_accessor :RequestId
1384
+
1385
+ def initialize(requestid=nil)
1386
+ @RequestId = requestid
1387
+ end
1388
+
1389
+ def deserialize(params)
1390
+ @RequestId = params['RequestId']
1391
+ end
1392
+ end
1393
+
1394
+ # 实例操作记录流程任务中的子任务信息(如升级检查任务中的各个检查项)
1395
+ class SubTaskDetail < TencentCloud::Common::AbstractModel
1396
+ # @param Name: 子任务名
1397
+ # @type Name: String
1398
+ # @param Result: 子任务结果
1399
+ # @type Result: Boolean
1400
+ # @param ErrMsg: 子任务错误信息
1401
+ # @type ErrMsg: String
1402
+ # @param Type: 子任务类型
1403
+ # @type Type: String
1404
+ # @param Status: 子任务状态,0处理中 1成功 -1失败
1405
+ # @type Status: Integer
1406
+ # @param FailedIndices: 升级检查失败的索引名
1407
+ # @type FailedIndices: Array
1408
+ # @param FinishTime: 子任务结束时间
1409
+ # @type FinishTime: String
1410
+ # @param Level: 子任务等级,1警告 2失败
1411
+ # @type Level: Integer
1412
+
1413
+ attr_accessor :Name, :Result, :ErrMsg, :Type, :Status, :FailedIndices, :FinishTime, :Level
1414
+
1415
+ def initialize(name=nil, result=nil, errmsg=nil, type=nil, status=nil, failedindices=nil, finishtime=nil, level=nil)
1416
+ @Name = name
1417
+ @Result = result
1418
+ @ErrMsg = errmsg
1419
+ @Type = type
1420
+ @Status = status
1421
+ @FailedIndices = failedindices
1422
+ @FinishTime = finishtime
1423
+ @Level = level
1424
+ end
1425
+
1426
+ def deserialize(params)
1427
+ @Name = params['Name']
1428
+ @Result = params['Result']
1429
+ @ErrMsg = params['ErrMsg']
1430
+ @Type = params['Type']
1431
+ @Status = params['Status']
1432
+ @FailedIndices = params['FailedIndices']
1433
+ @FinishTime = params['FinishTime']
1434
+ @Level = params['Level']
1435
+ end
1436
+ end
1437
+
1438
+ # 实例标签信息
1439
+ class TagInfo < TencentCloud::Common::AbstractModel
1440
+ # @param TagKey: 标签键
1441
+ # @type TagKey: String
1442
+ # @param TagValue: 标签值
1443
+ # @type TagValue: String
1444
+
1445
+ attr_accessor :TagKey, :TagValue
1446
+
1447
+ def initialize(tagkey=nil, tagvalue=nil)
1448
+ @TagKey = tagkey
1449
+ @TagValue = tagvalue
1450
+ end
1451
+
1452
+ def deserialize(params)
1453
+ @TagKey = params['TagKey']
1454
+ @TagValue = params['TagValue']
1455
+ end
1456
+ end
1457
+
1458
+ # 实例操作记录中的流程任务信息
1459
+ class TaskDetail < TencentCloud::Common::AbstractModel
1460
+ # @param Name: 任务名
1461
+ # @type Name: String
1462
+ # @param Progress: 任务进度
1463
+ # @type Progress: Float
1464
+ # @param FinishTime: 任务完成时间
1465
+ # @type FinishTime: String
1466
+ # @param SubTasks: 子任务
1467
+ # @type SubTasks: Array
1468
+
1469
+ attr_accessor :Name, :Progress, :FinishTime, :SubTasks
1470
+
1471
+ def initialize(name=nil, progress=nil, finishtime=nil, subtasks=nil)
1472
+ @Name = name
1473
+ @Progress = progress
1474
+ @FinishTime = finishtime
1475
+ @SubTasks = subtasks
1476
+ end
1477
+
1478
+ def deserialize(params)
1479
+ @Name = params['Name']
1480
+ @Progress = params['Progress']
1481
+ @FinishTime = params['FinishTime']
1482
+ unless params['SubTasks'].nil?
1483
+ @SubTasks = []
1484
+ params['SubTasks'].each do |i|
1485
+ subtaskdetail_tmp = SubTaskDetail.new
1486
+ subtaskdetail_tmp.deserialize(i)
1487
+ @SubTasks << subtaskdetail_tmp
1488
+ end
1489
+ end
1490
+ end
1491
+ end
1492
+
1493
+ # UpdateDiagnoseSettings请求参数结构体
1494
+ class UpdateDiagnoseSettingsRequest < TencentCloud::Common::AbstractModel
1495
+ # @param InstanceId: ES实例ID
1496
+ # @type InstanceId: String
1497
+ # @param Status: 0:开启智能运维;-1:关闭智能运维
1498
+ # @type Status: Integer
1499
+ # @param CronTime: 智能运维每天定时巡检时间
1500
+ # @type CronTime: String
1501
+
1502
+ attr_accessor :InstanceId, :Status, :CronTime
1503
+
1504
+ def initialize(instanceid=nil, status=nil, crontime=nil)
1505
+ @InstanceId = instanceid
1506
+ @Status = status
1507
+ @CronTime = crontime
1508
+ end
1509
+
1510
+ def deserialize(params)
1511
+ @InstanceId = params['InstanceId']
1512
+ @Status = params['Status']
1513
+ @CronTime = params['CronTime']
1514
+ end
1515
+ end
1516
+
1517
+ # UpdateDiagnoseSettings返回参数结构体
1518
+ class UpdateDiagnoseSettingsResponse < TencentCloud::Common::AbstractModel
1519
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1520
+ # @type RequestId: String
1521
+
1522
+ attr_accessor :RequestId
1523
+
1524
+ def initialize(requestid=nil)
1525
+ @RequestId = requestid
1526
+ end
1527
+
1528
+ def deserialize(params)
1529
+ @RequestId = params['RequestId']
1530
+ end
1531
+ end
1532
+
1533
+ # UpdateInstance请求参数结构体
1534
+ class UpdateInstanceRequest < TencentCloud::Common::AbstractModel
1535
+ # @param InstanceId: 实例ID
1536
+ # @type InstanceId: String
1537
+ # @param InstanceName: 实例名称(1-50 个英文、汉字、数字、连接线-或下划线_)
1538
+ # @type InstanceName: String
1539
+ # @param NodeNum: 已废弃请使用NodeInfoList
1540
+ # 节点个数(2-50个)
1541
+ # @type NodeNum: Integer
1542
+ # @param EsConfig: ES配置项(JSON格式字符串)
1543
+ # @type EsConfig: String
1544
+ # @param Password: 默认用户elastic的密码(8到16位,至少包括两项([a-z,A-Z],[0-9]和[-!@#$%&^*+=_:;,.?]的特殊符号)
1545
+ # @type Password: String
1546
+ # @param EsAcl: 访问控制列表
1547
+ # @type EsAcl: :class:`Tencentcloud::Es.v20180416.models.EsAcl`
1548
+ # @param DiskSize: 已废弃请使用NodeInfoList
1549
+ # 磁盘大小(单位GB)
1550
+ # @type DiskSize: Integer
1551
+ # @param NodeType: 已废弃请使用NodeInfoList
1552
+ # 节点规格<li>ES.S1.SMALL2:1核2G</li><li>ES.S1.MEDIUM4:2核4G</li><li>ES.S1.MEDIUM8:2核8G</li><li>ES.S1.LARGE16:4核16G</li><li>ES.S1.2XLARGE32:8核32G</li><li>ES.S1.4XLARGE32:16核32G</li><li>ES.S1.4XLARGE64:16核64G</li>
1553
+ # @type NodeType: String
1554
+ # @param MasterNodeNum: 已废弃请使用NodeInfoList
1555
+ # 专用主节点个数(只支持3个或5个)
1556
+ # @type MasterNodeNum: Integer
1557
+ # @param MasterNodeType: 已废弃请使用NodeInfoList
1558
+ # 专用主节点规格<li>ES.S1.SMALL2:1核2G</li><li>ES.S1.MEDIUM4:2核4G</li><li>ES.S1.MEDIUM8:2核8G</li><li>ES.S1.LARGE16:4核16G</li><li>ES.S1.2XLARGE32:8核32G</li><li>ES.S1.4XLARGE32:16核32G</li><li>ES.S1.4XLARGE64:16核64G</li>
1559
+ # @type MasterNodeType: String
1560
+ # @param MasterNodeDiskSize: 已废弃请使用NodeInfoList
1561
+ # 专用主节点磁盘大小(单位GB系统默认配置为50GB,暂不支持自定义)
1562
+ # @type MasterNodeDiskSize: Integer
1563
+ # @param ForceRestart: 更新配置时是否强制重启<li>true强制重启</li><li>false不强制重启</li>当前仅更新EsConfig时需要设置,默认值为false
1564
+ # @type ForceRestart: Boolean
1565
+ # @param CosBackup: COS自动备份信息
1566
+ # @type CosBackup: :class:`Tencentcloud::Es.v20180416.models.CosBackup`
1567
+ # @param NodeInfoList: 节点信息列表,可以只传递要更新的节点及其对应的规格信息。支持的操作包括<li>修改一种节点的个数</li><li>修改一种节点的节点规格及磁盘大小</li><li>增加一种节点类型(需要同时指定该节点的类型,个数,规格,磁盘等信息)</li>上述操作一次只能进行一种,且磁盘类型不支持修改
1568
+ # @type NodeInfoList: Array
1569
+ # @param PublicAccess: 公网访问状态
1570
+ # @type PublicAccess: String
1571
+ # @param EsPublicAcl: 公网访问控制列表
1572
+ # @type EsPublicAcl: :class:`Tencentcloud::Es.v20180416.models.EsPublicAcl`
1573
+ # @param KibanaPublicAccess: Kibana公网访问状态
1574
+ # @type KibanaPublicAccess: String
1575
+ # @param KibanaPrivateAccess: Kibana内网访问状态
1576
+ # @type KibanaPrivateAccess: String
1577
+ # @param BasicSecurityType: ES 6.8及以上版本基础版开启或关闭用户认证
1578
+ # @type BasicSecurityType: Integer
1579
+ # @param KibanaPrivatePort: Kibana内网端口
1580
+ # @type KibanaPrivatePort: Integer
1581
+ # @param ScaleType: 0: 蓝绿变更方式扩容,集群不重启 (默认) 1: 磁盘解挂载扩容,集群滚动重启
1582
+ # @type ScaleType: Integer
1583
+ # @param MultiZoneInfo: 多可用区部署
1584
+ # @type MultiZoneInfo: Array
1585
+ # @param SceneType: 场景化模板类型 -1:不启用 1:通用 2:日志 3:搜索
1586
+ # @type SceneType: Integer
1587
+ # @param KibanaConfig: Kibana配置项(JSON格式字符串)
1588
+ # @type KibanaConfig: String
1589
+ # @param WebNodeTypeInfo: 可视化节点配置
1590
+ # @type WebNodeTypeInfo: :class:`Tencentcloud::Es.v20180416.models.WebNodeTypeInfo`
1591
+ # @param SwitchPrivateLink: 切换到新网络架构
1592
+ # @type SwitchPrivateLink: String
1593
+ # @param EnableCerebro: 启用Cerebro
1594
+ # @type EnableCerebro: Boolean
1595
+ # @param CerebroPublicAccess: Cerebro公网访问状态
1596
+ # @type CerebroPublicAccess: String
1597
+ # @param CerebroPrivateAccess: Cerebro内网访问状态
1598
+ # @type CerebroPrivateAccess: String
1599
+
1600
+ 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
1601
+
1602
+ 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)
1603
+ @InstanceId = instanceid
1604
+ @InstanceName = instancename
1605
+ @NodeNum = nodenum
1606
+ @EsConfig = esconfig
1607
+ @Password = password
1608
+ @EsAcl = esacl
1609
+ @DiskSize = disksize
1610
+ @NodeType = nodetype
1611
+ @MasterNodeNum = masternodenum
1612
+ @MasterNodeType = masternodetype
1613
+ @MasterNodeDiskSize = masternodedisksize
1614
+ @ForceRestart = forcerestart
1615
+ @CosBackup = cosbackup
1616
+ @NodeInfoList = nodeinfolist
1617
+ @PublicAccess = publicaccess
1618
+ @EsPublicAcl = espublicacl
1619
+ @KibanaPublicAccess = kibanapublicaccess
1620
+ @KibanaPrivateAccess = kibanaprivateaccess
1621
+ @BasicSecurityType = basicsecuritytype
1622
+ @KibanaPrivatePort = kibanaprivateport
1623
+ @ScaleType = scaletype
1624
+ @MultiZoneInfo = multizoneinfo
1625
+ @SceneType = scenetype
1626
+ @KibanaConfig = kibanaconfig
1627
+ @WebNodeTypeInfo = webnodetypeinfo
1628
+ @SwitchPrivateLink = switchprivatelink
1629
+ @EnableCerebro = enablecerebro
1630
+ @CerebroPublicAccess = cerebropublicaccess
1631
+ @CerebroPrivateAccess = cerebroprivateaccess
1632
+ end
1633
+
1634
+ def deserialize(params)
1635
+ @InstanceId = params['InstanceId']
1636
+ @InstanceName = params['InstanceName']
1637
+ @NodeNum = params['NodeNum']
1638
+ @EsConfig = params['EsConfig']
1639
+ @Password = params['Password']
1640
+ unless params['EsAcl'].nil?
1641
+ @EsAcl = EsAcl.new
1642
+ @EsAcl.deserialize(params['EsAcl'])
1643
+ end
1644
+ @DiskSize = params['DiskSize']
1645
+ @NodeType = params['NodeType']
1646
+ @MasterNodeNum = params['MasterNodeNum']
1647
+ @MasterNodeType = params['MasterNodeType']
1648
+ @MasterNodeDiskSize = params['MasterNodeDiskSize']
1649
+ @ForceRestart = params['ForceRestart']
1650
+ unless params['CosBackup'].nil?
1651
+ @CosBackup = CosBackup.new
1652
+ @CosBackup.deserialize(params['CosBackup'])
1653
+ end
1654
+ unless params['NodeInfoList'].nil?
1655
+ @NodeInfoList = []
1656
+ params['NodeInfoList'].each do |i|
1657
+ nodeinfo_tmp = NodeInfo.new
1658
+ nodeinfo_tmp.deserialize(i)
1659
+ @NodeInfoList << nodeinfo_tmp
1660
+ end
1661
+ end
1662
+ @PublicAccess = params['PublicAccess']
1663
+ unless params['EsPublicAcl'].nil?
1664
+ @EsPublicAcl = EsPublicAcl.new
1665
+ @EsPublicAcl.deserialize(params['EsPublicAcl'])
1666
+ end
1667
+ @KibanaPublicAccess = params['KibanaPublicAccess']
1668
+ @KibanaPrivateAccess = params['KibanaPrivateAccess']
1669
+ @BasicSecurityType = params['BasicSecurityType']
1670
+ @KibanaPrivatePort = params['KibanaPrivatePort']
1671
+ @ScaleType = params['ScaleType']
1672
+ unless params['MultiZoneInfo'].nil?
1673
+ @MultiZoneInfo = []
1674
+ params['MultiZoneInfo'].each do |i|
1675
+ zonedetail_tmp = ZoneDetail.new
1676
+ zonedetail_tmp.deserialize(i)
1677
+ @MultiZoneInfo << zonedetail_tmp
1678
+ end
1679
+ end
1680
+ @SceneType = params['SceneType']
1681
+ @KibanaConfig = params['KibanaConfig']
1682
+ unless params['WebNodeTypeInfo'].nil?
1683
+ @WebNodeTypeInfo = WebNodeTypeInfo.new
1684
+ @WebNodeTypeInfo.deserialize(params['WebNodeTypeInfo'])
1685
+ end
1686
+ @SwitchPrivateLink = params['SwitchPrivateLink']
1687
+ @EnableCerebro = params['EnableCerebro']
1688
+ @CerebroPublicAccess = params['CerebroPublicAccess']
1689
+ @CerebroPrivateAccess = params['CerebroPrivateAccess']
1690
+ end
1691
+ end
1692
+
1693
+ # UpdateInstance返回参数结构体
1694
+ class UpdateInstanceResponse < TencentCloud::Common::AbstractModel
1695
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1696
+ # @type RequestId: String
1697
+
1698
+ attr_accessor :RequestId
1699
+
1700
+ def initialize(requestid=nil)
1701
+ @RequestId = requestid
1702
+ end
1703
+
1704
+ def deserialize(params)
1705
+ @RequestId = params['RequestId']
1706
+ end
1707
+ end
1708
+
1709
+ # UpdateJdk请求参数结构体
1710
+ class UpdateJdkRequest < TencentCloud::Common::AbstractModel
1711
+ # @param InstanceId: ES实例ID
1712
+ # @type InstanceId: String
1713
+ # @param Jdk: Jdk类型,支持kona和oracle
1714
+ # @type Jdk: String
1715
+ # @param Gc: Gc类型,支持g1和cms
1716
+ # @type Gc: String
1717
+ # @param ForceRestart: 是否强制重启
1718
+ # @type ForceRestart: Boolean
1719
+
1720
+ attr_accessor :InstanceId, :Jdk, :Gc, :ForceRestart
1721
+
1722
+ def initialize(instanceid=nil, jdk=nil, gc=nil, forcerestart=nil)
1723
+ @InstanceId = instanceid
1724
+ @Jdk = jdk
1725
+ @Gc = gc
1726
+ @ForceRestart = forcerestart
1727
+ end
1728
+
1729
+ def deserialize(params)
1730
+ @InstanceId = params['InstanceId']
1731
+ @Jdk = params['Jdk']
1732
+ @Gc = params['Gc']
1733
+ @ForceRestart = params['ForceRestart']
1734
+ end
1735
+ end
1736
+
1737
+ # UpdateJdk返回参数结构体
1738
+ class UpdateJdkResponse < TencentCloud::Common::AbstractModel
1739
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1740
+ # @type RequestId: String
1741
+
1742
+ attr_accessor :RequestId
1743
+
1744
+ def initialize(requestid=nil)
1745
+ @RequestId = requestid
1746
+ end
1747
+
1748
+ def deserialize(params)
1749
+ @RequestId = params['RequestId']
1750
+ end
1751
+ end
1752
+
1753
+ # UpdatePlugins请求参数结构体
1754
+ class UpdatePluginsRequest < TencentCloud::Common::AbstractModel
1755
+ # @param InstanceId: 实例ID
1756
+ # @type InstanceId: String
1757
+ # @param InstallPluginList: 需要安装的插件名列表
1758
+ # @type InstallPluginList: Array
1759
+ # @param RemovePluginList: 需要卸载的插件名列表
1760
+ # @type RemovePluginList: Array
1761
+ # @param ForceRestart: 是否强制重启
1762
+ # @type ForceRestart: Boolean
1763
+ # @param ForceUpdate: 是否重新安装
1764
+ # @type ForceUpdate: Boolean
1765
+
1766
+ attr_accessor :InstanceId, :InstallPluginList, :RemovePluginList, :ForceRestart, :ForceUpdate
1767
+
1768
+ def initialize(instanceid=nil, installpluginlist=nil, removepluginlist=nil, forcerestart=nil, forceupdate=nil)
1769
+ @InstanceId = instanceid
1770
+ @InstallPluginList = installpluginlist
1771
+ @RemovePluginList = removepluginlist
1772
+ @ForceRestart = forcerestart
1773
+ @ForceUpdate = forceupdate
1774
+ end
1775
+
1776
+ def deserialize(params)
1777
+ @InstanceId = params['InstanceId']
1778
+ @InstallPluginList = params['InstallPluginList']
1779
+ @RemovePluginList = params['RemovePluginList']
1780
+ @ForceRestart = params['ForceRestart']
1781
+ @ForceUpdate = params['ForceUpdate']
1782
+ end
1783
+ end
1784
+
1785
+ # UpdatePlugins返回参数结构体
1786
+ class UpdatePluginsResponse < TencentCloud::Common::AbstractModel
1787
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1788
+ # @type RequestId: String
1789
+
1790
+ attr_accessor :RequestId
1791
+
1792
+ def initialize(requestid=nil)
1793
+ @RequestId = requestid
1794
+ end
1795
+
1796
+ def deserialize(params)
1797
+ @RequestId = params['RequestId']
1798
+ end
1799
+ end
1800
+
1801
+ # UpdateRequestTargetNodeTypes请求参数结构体
1802
+ class UpdateRequestTargetNodeTypesRequest < TencentCloud::Common::AbstractModel
1803
+ # @param InstanceId: 实例ID
1804
+ # @type InstanceId: String
1805
+ # @param TargetNodeTypes: 接收请求的目标节点类型列表
1806
+ # @type TargetNodeTypes: Array
1807
+
1808
+ attr_accessor :InstanceId, :TargetNodeTypes
1809
+
1810
+ def initialize(instanceid=nil, targetnodetypes=nil)
1811
+ @InstanceId = instanceid
1812
+ @TargetNodeTypes = targetnodetypes
1813
+ end
1814
+
1815
+ def deserialize(params)
1816
+ @InstanceId = params['InstanceId']
1817
+ @TargetNodeTypes = params['TargetNodeTypes']
1818
+ end
1819
+ end
1820
+
1821
+ # UpdateRequestTargetNodeTypes返回参数结构体
1822
+ class UpdateRequestTargetNodeTypesResponse < TencentCloud::Common::AbstractModel
1823
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1824
+ # @type RequestId: String
1825
+
1826
+ attr_accessor :RequestId
1827
+
1828
+ def initialize(requestid=nil)
1829
+ @RequestId = requestid
1830
+ end
1831
+
1832
+ def deserialize(params)
1833
+ @RequestId = params['RequestId']
1834
+ end
1835
+ end
1836
+
1837
+ # UpgradeInstance请求参数结构体
1838
+ class UpgradeInstanceRequest < TencentCloud::Common::AbstractModel
1839
+ # @param InstanceId: 实例ID
1840
+ # @type InstanceId: String
1841
+ # @param EsVersion: 目标ES版本,支持:”6.4.3“, "6.8.2","7.5.1"
1842
+ # @type EsVersion: String
1843
+ # @param CheckOnly: 是否只做升级检查,默认值为false
1844
+ # @type CheckOnly: Boolean
1845
+ # @param LicenseType: 目标商业特性版本:<li>oss 开源版</li><li>basic 基础版</li>当前仅在5.6.4升级6.x版本时使用,默认值为basic
1846
+ # @type LicenseType: String
1847
+ # @param BasicSecurityType: 6.8(及以上版本)基础版是否开启xpack security认证<li>1:不开启</li><li>2:开启</li>
1848
+ # @type BasicSecurityType: Integer
1849
+ # @param UpgradeMode: 升级方式:<li>scale 蓝绿变更</li><li>restart 滚动重启</li>默认值为scale
1850
+ # @type UpgradeMode: String
1851
+
1852
+ attr_accessor :InstanceId, :EsVersion, :CheckOnly, :LicenseType, :BasicSecurityType, :UpgradeMode
1853
+
1854
+ def initialize(instanceid=nil, esversion=nil, checkonly=nil, licensetype=nil, basicsecuritytype=nil, upgrademode=nil)
1855
+ @InstanceId = instanceid
1856
+ @EsVersion = esversion
1857
+ @CheckOnly = checkonly
1858
+ @LicenseType = licensetype
1859
+ @BasicSecurityType = basicsecuritytype
1860
+ @UpgradeMode = upgrademode
1861
+ end
1862
+
1863
+ def deserialize(params)
1864
+ @InstanceId = params['InstanceId']
1865
+ @EsVersion = params['EsVersion']
1866
+ @CheckOnly = params['CheckOnly']
1867
+ @LicenseType = params['LicenseType']
1868
+ @BasicSecurityType = params['BasicSecurityType']
1869
+ @UpgradeMode = params['UpgradeMode']
1870
+ end
1871
+ end
1872
+
1873
+ # UpgradeInstance返回参数结构体
1874
+ class UpgradeInstanceResponse < TencentCloud::Common::AbstractModel
1875
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1876
+ # @type RequestId: String
1877
+
1878
+ attr_accessor :RequestId
1879
+
1880
+ def initialize(requestid=nil)
1881
+ @RequestId = requestid
1882
+ end
1883
+
1884
+ def deserialize(params)
1885
+ @RequestId = params['RequestId']
1886
+ end
1887
+ end
1888
+
1889
+ # UpgradeLicense请求参数结构体
1890
+ class UpgradeLicenseRequest < TencentCloud::Common::AbstractModel
1891
+ # @param InstanceId: 实例ID
1892
+ # @type InstanceId: String
1893
+ # @param LicenseType: License类型<li>oss:开源版</li><li>basic:基础版</li><li>platinum:白金版</li>默认值platinum
1894
+ # @type LicenseType: String
1895
+ # @param AutoVoucher: 是否自动使用代金券<li>0:不自动使用</li><li>1:自动使用</li>默认值0
1896
+ # @type AutoVoucher: Integer
1897
+ # @param VoucherIds: 代金券ID列表(目前仅支持指定一张代金券)
1898
+ # @type VoucherIds: Array
1899
+ # @param BasicSecurityType: 6.8(及以上版本)基础版是否开启xpack security认证<li>1:不开启</li><li>2:开启</li>
1900
+ # @type BasicSecurityType: Integer
1901
+ # @param ForceRestart: 是否强制重启<li>true强制重启</li><li>false不强制重启</li> 默认值false
1902
+ # @type ForceRestart: Boolean
1903
+
1904
+ attr_accessor :InstanceId, :LicenseType, :AutoVoucher, :VoucherIds, :BasicSecurityType, :ForceRestart
1905
+
1906
+ def initialize(instanceid=nil, licensetype=nil, autovoucher=nil, voucherids=nil, basicsecuritytype=nil, forcerestart=nil)
1907
+ @InstanceId = instanceid
1908
+ @LicenseType = licensetype
1909
+ @AutoVoucher = autovoucher
1910
+ @VoucherIds = voucherids
1911
+ @BasicSecurityType = basicsecuritytype
1912
+ @ForceRestart = forcerestart
1913
+ end
1914
+
1915
+ def deserialize(params)
1916
+ @InstanceId = params['InstanceId']
1917
+ @LicenseType = params['LicenseType']
1918
+ @AutoVoucher = params['AutoVoucher']
1919
+ @VoucherIds = params['VoucherIds']
1920
+ @BasicSecurityType = params['BasicSecurityType']
1921
+ @ForceRestart = params['ForceRestart']
1922
+ end
1923
+ end
1924
+
1925
+ # UpgradeLicense返回参数结构体
1926
+ class UpgradeLicenseResponse < TencentCloud::Common::AbstractModel
1927
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1928
+ # @type RequestId: String
1929
+
1930
+ attr_accessor :RequestId
1931
+
1932
+ def initialize(requestid=nil)
1933
+ @RequestId = requestid
1934
+ end
1935
+
1936
+ def deserialize(params)
1937
+ @RequestId = params['RequestId']
1938
+ end
1939
+ end
1940
+
1941
+ # 可视化节点配置
1942
+ class WebNodeTypeInfo < TencentCloud::Common::AbstractModel
1943
+ # @param NodeNum: 可视化节点个数,固定为1
1944
+ # @type NodeNum: Integer
1945
+ # @param NodeType: 可视化节点规格
1946
+ # @type NodeType: String
1947
+
1948
+ attr_accessor :NodeNum, :NodeType
1949
+
1950
+ def initialize(nodenum=nil, nodetype=nil)
1951
+ @NodeNum = nodenum
1952
+ @NodeType = nodetype
1953
+ end
1954
+
1955
+ def deserialize(params)
1956
+ @NodeNum = params['NodeNum']
1957
+ @NodeType = params['NodeType']
1958
+ end
1959
+ end
1960
+
1961
+ # 多可用区部署时可用区的详细信息
1962
+ class ZoneDetail < TencentCloud::Common::AbstractModel
1963
+ # @param Zone: 可用区
1964
+ # @type Zone: String
1965
+ # @param SubnetId: 子网ID
1966
+ # @type SubnetId: String
1967
+
1968
+ attr_accessor :Zone, :SubnetId
1969
+
1970
+ def initialize(zone=nil, subnetid=nil)
1971
+ @Zone = zone
1972
+ @SubnetId = subnetid
1973
+ end
1974
+
1975
+ def deserialize(params)
1976
+ @Zone = params['Zone']
1977
+ @SubnetId = params['SubnetId']
1978
+ end
1979
+ end
1980
+
1981
+ end
1982
+ end
1983
+ end
1984
+