tencentcloud-sdk-cdwdoris 3.0.875 → 3.0.877

Sign up to get free protection for your applications and to get access to all the features.
@@ -29,16 +29,808 @@ module TencentCloud
29
29
  end
30
30
 
31
31
 
32
+ # 取消对应的备份实例任务
33
+
34
+ # @param request: Request instance for CancelBackupJob.
35
+ # @type request: :class:`Tencentcloud::cdwdoris::V20211228::CancelBackupJobRequest`
36
+ # @rtype: :class:`Tencentcloud::cdwdoris::V20211228::CancelBackupJobResponse`
37
+ def CancelBackupJob(request)
38
+ body = send_request('CancelBackupJob', request.serialize)
39
+ response = JSON.parse(body)
40
+ if response['Response'].key?('Error') == false
41
+ model = CancelBackupJobResponse.new
42
+ model.deserialize(response['Response'])
43
+ model
44
+ else
45
+ code = response['Response']['Error']['Code']
46
+ message = response['Response']['Error']['Message']
47
+ reqid = response['Response']['RequestId']
48
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
49
+ end
50
+ rescue TencentCloud::Common::TencentCloudSDKException => e
51
+ raise e
52
+ rescue StandardError => e
53
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
54
+ end
55
+
56
+ # 创建或者修改备份策略
57
+
58
+ # @param request: Request instance for CreateBackUpSchedule.
59
+ # @type request: :class:`Tencentcloud::cdwdoris::V20211228::CreateBackUpScheduleRequest`
60
+ # @rtype: :class:`Tencentcloud::cdwdoris::V20211228::CreateBackUpScheduleResponse`
61
+ def CreateBackUpSchedule(request)
62
+ body = send_request('CreateBackUpSchedule', request.serialize)
63
+ response = JSON.parse(body)
64
+ if response['Response'].key?('Error') == false
65
+ model = CreateBackUpScheduleResponse.new
66
+ model.deserialize(response['Response'])
67
+ model
68
+ else
69
+ code = response['Response']['Error']['Code']
70
+ message = response['Response']['Error']['Message']
71
+ reqid = response['Response']['RequestId']
72
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
73
+ end
74
+ rescue TencentCloud::Common::TencentCloudSDKException => e
75
+ raise e
76
+ rescue StandardError => e
77
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
78
+ end
79
+
32
80
  # 通过API创建集群
33
81
 
34
- # @param request: Request instance for CreateInstanceNew.
35
- # @type request: :class:`Tencentcloud::cdwdoris::V20211228::CreateInstanceNewRequest`
36
- # @rtype: :class:`Tencentcloud::cdwdoris::V20211228::CreateInstanceNewResponse`
37
- def CreateInstanceNew(request)
38
- body = send_request('CreateInstanceNew', request.serialize)
82
+ # @param request: Request instance for CreateInstanceNew.
83
+ # @type request: :class:`Tencentcloud::cdwdoris::V20211228::CreateInstanceNewRequest`
84
+ # @rtype: :class:`Tencentcloud::cdwdoris::V20211228::CreateInstanceNewResponse`
85
+ def CreateInstanceNew(request)
86
+ body = send_request('CreateInstanceNew', request.serialize)
87
+ response = JSON.parse(body)
88
+ if response['Response'].key?('Error') == false
89
+ model = CreateInstanceNewResponse.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
+
104
+ # 创建资源组
105
+
106
+ # @param request: Request instance for CreateWorkloadGroup.
107
+ # @type request: :class:`Tencentcloud::cdwdoris::V20211228::CreateWorkloadGroupRequest`
108
+ # @rtype: :class:`Tencentcloud::cdwdoris::V20211228::CreateWorkloadGroupResponse`
109
+ def CreateWorkloadGroup(request)
110
+ body = send_request('CreateWorkloadGroup', request.serialize)
111
+ response = JSON.parse(body)
112
+ if response['Response'].key?('Error') == false
113
+ model = CreateWorkloadGroupResponse.new
114
+ model.deserialize(response['Response'])
115
+ model
116
+ else
117
+ code = response['Response']['Error']['Code']
118
+ message = response['Response']['Error']['Message']
119
+ reqid = response['Response']['RequestId']
120
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
121
+ end
122
+ rescue TencentCloud::Common::TencentCloudSDKException => e
123
+ raise e
124
+ rescue StandardError => e
125
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
126
+ end
127
+
128
+ # 删除备份数据
129
+
130
+ # @param request: Request instance for DeleteBackUpData.
131
+ # @type request: :class:`Tencentcloud::cdwdoris::V20211228::DeleteBackUpDataRequest`
132
+ # @rtype: :class:`Tencentcloud::cdwdoris::V20211228::DeleteBackUpDataResponse`
133
+ def DeleteBackUpData(request)
134
+ body = send_request('DeleteBackUpData', request.serialize)
135
+ response = JSON.parse(body)
136
+ if response['Response'].key?('Error') == false
137
+ model = DeleteBackUpDataResponse.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 DeleteWorkloadGroup.
155
+ # @type request: :class:`Tencentcloud::cdwdoris::V20211228::DeleteWorkloadGroupRequest`
156
+ # @rtype: :class:`Tencentcloud::cdwdoris::V20211228::DeleteWorkloadGroupResponse`
157
+ def DeleteWorkloadGroup(request)
158
+ body = send_request('DeleteWorkloadGroup', request.serialize)
159
+ response = JSON.parse(body)
160
+ if response['Response'].key?('Error') == false
161
+ model = DeleteWorkloadGroupResponse.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
+
176
+ # 集群列表页上显示地域信息及各个地域的集群总数
177
+
178
+ # @param request: Request instance for DescribeAreaRegion.
179
+ # @type request: :class:`Tencentcloud::cdwdoris::V20211228::DescribeAreaRegionRequest`
180
+ # @rtype: :class:`Tencentcloud::cdwdoris::V20211228::DescribeAreaRegionResponse`
181
+ def DescribeAreaRegion(request)
182
+ body = send_request('DescribeAreaRegion', request.serialize)
183
+ response = JSON.parse(body)
184
+ if response['Response'].key?('Error') == false
185
+ model = DescribeAreaRegionResponse.new
186
+ model.deserialize(response['Response'])
187
+ model
188
+ else
189
+ code = response['Response']['Error']['Code']
190
+ message = response['Response']['Error']['Message']
191
+ reqid = response['Response']['RequestId']
192
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
193
+ end
194
+ rescue TencentCloud::Common::TencentCloudSDKException => e
195
+ raise e
196
+ rescue StandardError => e
197
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
198
+ end
199
+
200
+ # 查询备份实例列表
201
+
202
+ # @param request: Request instance for DescribeBackUpJob.
203
+ # @type request: :class:`Tencentcloud::cdwdoris::V20211228::DescribeBackUpJobRequest`
204
+ # @rtype: :class:`Tencentcloud::cdwdoris::V20211228::DescribeBackUpJobResponse`
205
+ def DescribeBackUpJob(request)
206
+ body = send_request('DescribeBackUpJob', request.serialize)
207
+ response = JSON.parse(body)
208
+ if response['Response'].key?('Error') == false
209
+ model = DescribeBackUpJobResponse.new
210
+ model.deserialize(response['Response'])
211
+ model
212
+ else
213
+ code = response['Response']['Error']['Code']
214
+ message = response['Response']['Error']['Message']
215
+ reqid = response['Response']['RequestId']
216
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
217
+ end
218
+ rescue TencentCloud::Common::TencentCloudSDKException => e
219
+ raise e
220
+ rescue StandardError => e
221
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
222
+ end
223
+
224
+ # 查询备份任务详情
225
+
226
+ # @param request: Request instance for DescribeBackUpJobDetail.
227
+ # @type request: :class:`Tencentcloud::cdwdoris::V20211228::DescribeBackUpJobDetailRequest`
228
+ # @rtype: :class:`Tencentcloud::cdwdoris::V20211228::DescribeBackUpJobDetailResponse`
229
+ def DescribeBackUpJobDetail(request)
230
+ body = send_request('DescribeBackUpJobDetail', request.serialize)
231
+ response = JSON.parse(body)
232
+ if response['Response'].key?('Error') == false
233
+ model = DescribeBackUpJobDetailResponse.new
234
+ model.deserialize(response['Response'])
235
+ model
236
+ else
237
+ code = response['Response']['Error']['Code']
238
+ message = response['Response']['Error']['Message']
239
+ reqid = response['Response']['RequestId']
240
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
241
+ end
242
+ rescue TencentCloud::Common::TencentCloudSDKException => e
243
+ raise e
244
+ rescue StandardError => e
245
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
246
+ end
247
+
248
+ # 获取备份、迁移的调度任务信息
249
+
250
+ # @param request: Request instance for DescribeBackUpSchedules.
251
+ # @type request: :class:`Tencentcloud::cdwdoris::V20211228::DescribeBackUpSchedulesRequest`
252
+ # @rtype: :class:`Tencentcloud::cdwdoris::V20211228::DescribeBackUpSchedulesResponse`
253
+ def DescribeBackUpSchedules(request)
254
+ body = send_request('DescribeBackUpSchedules', request.serialize)
255
+ response = JSON.parse(body)
256
+ if response['Response'].key?('Error') == false
257
+ model = DescribeBackUpSchedulesResponse.new
258
+ model.deserialize(response['Response'])
259
+ model
260
+ else
261
+ code = response['Response']['Error']['Code']
262
+ message = response['Response']['Error']['Message']
263
+ reqid = response['Response']['RequestId']
264
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
265
+ end
266
+ rescue TencentCloud::Common::TencentCloudSDKException => e
267
+ raise e
268
+ rescue StandardError => e
269
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
270
+ end
271
+
272
+ # 获取可备份表信息
273
+
274
+ # @param request: Request instance for DescribeBackUpTables.
275
+ # @type request: :class:`Tencentcloud::cdwdoris::V20211228::DescribeBackUpTablesRequest`
276
+ # @rtype: :class:`Tencentcloud::cdwdoris::V20211228::DescribeBackUpTablesResponse`
277
+ def DescribeBackUpTables(request)
278
+ body = send_request('DescribeBackUpTables', request.serialize)
279
+ response = JSON.parse(body)
280
+ if response['Response'].key?('Error') == false
281
+ model = DescribeBackUpTablesResponse.new
282
+ model.deserialize(response['Response'])
283
+ model
284
+ else
285
+ code = response['Response']['Error']['Code']
286
+ message = response['Response']['Error']['Message']
287
+ reqid = response['Response']['RequestId']
288
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
289
+ end
290
+ rescue TencentCloud::Common::TencentCloudSDKException => e
291
+ raise e
292
+ rescue StandardError => e
293
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
294
+ end
295
+
296
+ # 查询备份任务进度详情
297
+
298
+ # @param request: Request instance for DescribeBackUpTaskDetail.
299
+ # @type request: :class:`Tencentcloud::cdwdoris::V20211228::DescribeBackUpTaskDetailRequest`
300
+ # @rtype: :class:`Tencentcloud::cdwdoris::V20211228::DescribeBackUpTaskDetailResponse`
301
+ def DescribeBackUpTaskDetail(request)
302
+ body = send_request('DescribeBackUpTaskDetail', request.serialize)
303
+ response = JSON.parse(body)
304
+ if response['Response'].key?('Error') == false
305
+ model = DescribeBackUpTaskDetailResponse.new
306
+ model.deserialize(response['Response'])
307
+ model
308
+ else
309
+ code = response['Response']['Error']['Code']
310
+ message = response['Response']['Error']['Message']
311
+ reqid = response['Response']['RequestId']
312
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
313
+ end
314
+ rescue TencentCloud::Common::TencentCloudSDKException => e
315
+ raise e
316
+ rescue StandardError => e
317
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
318
+ end
319
+
320
+ # 获取集群的最新的几个配置文件(config.xml、metrika.xml、user.xml)的内容,显示给用户
321
+
322
+ # @param request: Request instance for DescribeClusterConfigs.
323
+ # @type request: :class:`Tencentcloud::cdwdoris::V20211228::DescribeClusterConfigsRequest`
324
+ # @rtype: :class:`Tencentcloud::cdwdoris::V20211228::DescribeClusterConfigsResponse`
325
+ def DescribeClusterConfigs(request)
326
+ body = send_request('DescribeClusterConfigs', request.serialize)
327
+ response = JSON.parse(body)
328
+ if response['Response'].key?('Error') == false
329
+ model = DescribeClusterConfigsResponse.new
330
+ model.deserialize(response['Response'])
331
+ model
332
+ else
333
+ code = response['Response']['Error']['Code']
334
+ message = response['Response']['Error']['Message']
335
+ reqid = response['Response']['RequestId']
336
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
337
+ end
338
+ rescue TencentCloud::Common::TencentCloudSDKException => e
339
+ raise e
340
+ rescue StandardError => e
341
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
342
+ end
343
+
344
+ # 获取集群配置文件修改历史
345
+
346
+ # @param request: Request instance for DescribeClusterConfigsHistory.
347
+ # @type request: :class:`Tencentcloud::cdwdoris::V20211228::DescribeClusterConfigsHistoryRequest`
348
+ # @rtype: :class:`Tencentcloud::cdwdoris::V20211228::DescribeClusterConfigsHistoryResponse`
349
+ def DescribeClusterConfigsHistory(request)
350
+ body = send_request('DescribeClusterConfigsHistory', request.serialize)
351
+ response = JSON.parse(body)
352
+ if response['Response'].key?('Error') == false
353
+ model = DescribeClusterConfigsHistoryResponse.new
354
+ model.deserialize(response['Response'])
355
+ model
356
+ else
357
+ code = response['Response']['Error']['Code']
358
+ message = response['Response']['Error']['Message']
359
+ reqid = response['Response']['RequestId']
360
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
361
+ end
362
+ rescue TencentCloud::Common::TencentCloudSDKException => e
363
+ raise e
364
+ rescue StandardError => e
365
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
366
+ end
367
+
368
+ # 下载数据库审计日志
369
+
370
+ # @param request: Request instance for DescribeDatabaseAuditDownload.
371
+ # @type request: :class:`Tencentcloud::cdwdoris::V20211228::DescribeDatabaseAuditDownloadRequest`
372
+ # @rtype: :class:`Tencentcloud::cdwdoris::V20211228::DescribeDatabaseAuditDownloadResponse`
373
+ def DescribeDatabaseAuditDownload(request)
374
+ body = send_request('DescribeDatabaseAuditDownload', request.serialize)
375
+ response = JSON.parse(body)
376
+ if response['Response'].key?('Error') == false
377
+ model = DescribeDatabaseAuditDownloadResponse.new
378
+ model.deserialize(response['Response'])
379
+ model
380
+ else
381
+ code = response['Response']['Error']['Code']
382
+ message = response['Response']['Error']['Message']
383
+ reqid = response['Response']['RequestId']
384
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
385
+ end
386
+ rescue TencentCloud::Common::TencentCloudSDKException => e
387
+ raise e
388
+ rescue StandardError => e
389
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
390
+ end
391
+
392
+ # 获取数据库审计记录
393
+
394
+ # @param request: Request instance for DescribeDatabaseAuditRecords.
395
+ # @type request: :class:`Tencentcloud::cdwdoris::V20211228::DescribeDatabaseAuditRecordsRequest`
396
+ # @rtype: :class:`Tencentcloud::cdwdoris::V20211228::DescribeDatabaseAuditRecordsResponse`
397
+ def DescribeDatabaseAuditRecords(request)
398
+ body = send_request('DescribeDatabaseAuditRecords', request.serialize)
399
+ response = JSON.parse(body)
400
+ if response['Response'].key?('Error') == false
401
+ model = DescribeDatabaseAuditRecordsResponse.new
402
+ model.deserialize(response['Response'])
403
+ model
404
+ else
405
+ code = response['Response']['Error']['Code']
406
+ message = response['Response']['Error']['Message']
407
+ reqid = response['Response']['RequestId']
408
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
409
+ end
410
+ rescue TencentCloud::Common::TencentCloudSDKException => e
411
+ raise e
412
+ rescue StandardError => e
413
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
414
+ end
415
+
416
+ # 数据库审计数据库、用户等
417
+
418
+ # @param request: Request instance for DescribeDatabaseAuditResource.
419
+ # @type request: :class:`Tencentcloud::cdwdoris::V20211228::DescribeDatabaseAuditResourceRequest`
420
+ # @rtype: :class:`Tencentcloud::cdwdoris::V20211228::DescribeDatabaseAuditResourceResponse`
421
+ def DescribeDatabaseAuditResource(request)
422
+ body = send_request('DescribeDatabaseAuditResource', request.serialize)
423
+ response = JSON.parse(body)
424
+ if response['Response'].key?('Error') == false
425
+ model = DescribeDatabaseAuditResourceResponse.new
426
+ model.deserialize(response['Response'])
427
+ model
428
+ else
429
+ code = response['Response']['Error']['Code']
430
+ message = response['Response']['Error']['Message']
431
+ reqid = response['Response']['RequestId']
432
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
433
+ end
434
+ rescue TencentCloud::Common::TencentCloudSDKException => e
435
+ raise e
436
+ rescue StandardError => e
437
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
438
+ end
439
+
440
+ # 查询sql工作区历史运行记录
441
+
442
+ # @param request: Request instance for DescribeDmsSqlHistory.
443
+ # @type request: :class:`Tencentcloud::cdwdoris::V20211228::DescribeDmsSqlHistoryRequest`
444
+ # @rtype: :class:`Tencentcloud::cdwdoris::V20211228::DescribeDmsSqlHistoryResponse`
445
+ def DescribeDmsSqlHistory(request)
446
+ body = send_request('DescribeDmsSqlHistory', request.serialize)
447
+ response = JSON.parse(body)
448
+ if response['Response'].key?('Error') == false
449
+ model = DescribeDmsSqlHistoryResponse.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
+
464
+ # 展示监控指标文件
465
+
466
+ # @param request: Request instance for DescribeDorisMetricFiles.
467
+ # @type request: :class:`Tencentcloud::cdwdoris::V20211228::DescribeDorisMetricFilesRequest`
468
+ # @rtype: :class:`Tencentcloud::cdwdoris::V20211228::DescribeDorisMetricFilesResponse`
469
+ def DescribeDorisMetricFiles(request)
470
+ body = send_request('DescribeDorisMetricFiles', request.serialize)
471
+ response = JSON.parse(body)
472
+ if response['Response'].key?('Error') == false
473
+ model = DescribeDorisMetricFilesResponse.new
474
+ model.deserialize(response['Response'])
475
+ model
476
+ else
477
+ code = response['Response']['Error']['Code']
478
+ message = response['Response']['Error']['Message']
479
+ reqid = response['Response']['RequestId']
480
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
481
+ end
482
+ rescue TencentCloud::Common::TencentCloudSDKException => e
483
+ raise e
484
+ rescue StandardError => e
485
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
486
+ end
487
+
488
+ # 获取联合身份临时访问凭证
489
+
490
+ # @param request: Request instance for DescribeFederationToken.
491
+ # @type request: :class:`Tencentcloud::cdwdoris::V20211228::DescribeFederationTokenRequest`
492
+ # @rtype: :class:`Tencentcloud::cdwdoris::V20211228::DescribeFederationTokenResponse`
493
+ def DescribeFederationToken(request)
494
+ body = send_request('DescribeFederationToken', request.serialize)
495
+ response = JSON.parse(body)
496
+ if response['Response'].key?('Error') == false
497
+ model = DescribeFederationTokenResponse.new
498
+ model.deserialize(response['Response'])
499
+ model
500
+ else
501
+ code = response['Response']['Error']['Code']
502
+ message = response['Response']['Error']['Message']
503
+ reqid = response['Response']['RequestId']
504
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
505
+ end
506
+ rescue TencentCloud::Common::TencentCloudSDKException => e
507
+ raise e
508
+ rescue StandardError => e
509
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
510
+ end
511
+
512
+ # 查询前端内容
513
+
514
+ # @param request: Request instance for DescribeFrontEnd.
515
+ # @type request: :class:`Tencentcloud::cdwdoris::V20211228::DescribeFrontEndRequest`
516
+ # @rtype: :class:`Tencentcloud::cdwdoris::V20211228::DescribeFrontEndResponse`
517
+ def DescribeFrontEnd(request)
518
+ body = send_request('DescribeFrontEnd', request.serialize)
519
+ response = JSON.parse(body)
520
+ if response['Response'].key?('Error') == false
521
+ model = DescribeFrontEndResponse.new
522
+ model.deserialize(response['Response'])
523
+ model
524
+ else
525
+ code = response['Response']['Error']['Code']
526
+ message = response['Response']['Error']['Message']
527
+ reqid = response['Response']['RequestId']
528
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
529
+ end
530
+ rescue TencentCloud::Common::TencentCloudSDKException => e
531
+ raise e
532
+ rescue StandardError => e
533
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
534
+ end
535
+
536
+ # 生成计费相关接口的GoodsDetail结构
537
+
538
+ # @param request: Request instance for DescribeGoodsDetail.
539
+ # @type request: :class:`Tencentcloud::cdwdoris::V20211228::DescribeGoodsDetailRequest`
540
+ # @rtype: :class:`Tencentcloud::cdwdoris::V20211228::DescribeGoodsDetailResponse`
541
+ def DescribeGoodsDetail(request)
542
+ body = send_request('DescribeGoodsDetail', request.serialize)
543
+ response = JSON.parse(body)
544
+ if response['Response'].key?('Error') == false
545
+ model = DescribeGoodsDetailResponse.new
546
+ model.deserialize(response['Response'])
547
+ model
548
+ else
549
+ code = response['Response']['Error']['Code']
550
+ message = response['Response']['Error']['Message']
551
+ reqid = response['Response']['RequestId']
552
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
553
+ end
554
+ rescue TencentCloud::Common::TencentCloudSDKException => e
555
+ raise e
556
+ rescue StandardError => e
557
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
558
+ end
559
+
560
+ # 根据集群ID查询某个集群的具体信息
561
+
562
+ # @param request: Request instance for DescribeInstance.
563
+ # @type request: :class:`Tencentcloud::cdwdoris::V20211228::DescribeInstanceRequest`
564
+ # @rtype: :class:`Tencentcloud::cdwdoris::V20211228::DescribeInstanceResponse`
565
+ def DescribeInstance(request)
566
+ body = send_request('DescribeInstance', request.serialize)
567
+ response = JSON.parse(body)
568
+ if response['Response'].key?('Error') == false
569
+ model = DescribeInstanceResponse.new
570
+ model.deserialize(response['Response'])
571
+ model
572
+ else
573
+ code = response['Response']['Error']['Code']
574
+ message = response['Response']['Error']['Message']
575
+ reqid = response['Response']['RequestId']
576
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
577
+ end
578
+ rescue TencentCloud::Common::TencentCloudSDKException => e
579
+ raise e
580
+ rescue StandardError => e
581
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
582
+ end
583
+
584
+ # 获取集群节点信息列表
585
+
586
+ # @param request: Request instance for DescribeInstanceNodes.
587
+ # @type request: :class:`Tencentcloud::cdwdoris::V20211228::DescribeInstanceNodesRequest`
588
+ # @rtype: :class:`Tencentcloud::cdwdoris::V20211228::DescribeInstanceNodesResponse`
589
+ def DescribeInstanceNodes(request)
590
+ body = send_request('DescribeInstanceNodes', request.serialize)
591
+ response = JSON.parse(body)
592
+ if response['Response'].key?('Error') == false
593
+ model = DescribeInstanceNodesResponse.new
594
+ model.deserialize(response['Response'])
595
+ model
596
+ else
597
+ code = response['Response']['Error']['Code']
598
+ message = response['Response']['Error']['Message']
599
+ reqid = response['Response']['RequestId']
600
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
601
+ end
602
+ rescue TencentCloud::Common::TencentCloudSDKException => e
603
+ raise e
604
+ rescue StandardError => e
605
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
606
+ end
607
+
608
+ # 获取BE/FE节点角色
609
+
610
+ # @param request: Request instance for DescribeInstanceNodesInfo.
611
+ # @type request: :class:`Tencentcloud::cdwdoris::V20211228::DescribeInstanceNodesInfoRequest`
612
+ # @rtype: :class:`Tencentcloud::cdwdoris::V20211228::DescribeInstanceNodesInfoResponse`
613
+ def DescribeInstanceNodesInfo(request)
614
+ body = send_request('DescribeInstanceNodesInfo', request.serialize)
615
+ response = JSON.parse(body)
616
+ if response['Response'].key?('Error') == false
617
+ model = DescribeInstanceNodesInfoResponse.new
618
+ model.deserialize(response['Response'])
619
+ model
620
+ else
621
+ code = response['Response']['Error']['Code']
622
+ message = response['Response']['Error']['Message']
623
+ reqid = response['Response']['RequestId']
624
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
625
+ end
626
+ rescue TencentCloud::Common::TencentCloudSDKException => e
627
+ raise e
628
+ rescue StandardError => e
629
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
630
+ end
631
+
632
+ # 获取集群节点角色
633
+
634
+ # @param request: Request instance for DescribeInstanceNodesRole.
635
+ # @type request: :class:`Tencentcloud::cdwdoris::V20211228::DescribeInstanceNodesRoleRequest`
636
+ # @rtype: :class:`Tencentcloud::cdwdoris::V20211228::DescribeInstanceNodesRoleResponse`
637
+ def DescribeInstanceNodesRole(request)
638
+ body = send_request('DescribeInstanceNodesRole', request.serialize)
639
+ response = JSON.parse(body)
640
+ if response['Response'].key?('Error') == false
641
+ model = DescribeInstanceNodesRoleResponse.new
642
+ model.deserialize(response['Response'])
643
+ model
644
+ else
645
+ code = response['Response']['Error']['Code']
646
+ message = response['Response']['Error']['Message']
647
+ reqid = response['Response']['RequestId']
648
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
649
+ end
650
+ rescue TencentCloud::Common::TencentCloudSDKException => e
651
+ raise e
652
+ rescue StandardError => e
653
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
654
+ end
655
+
656
+ # 在集群详情页面,拉取该集群的操作
657
+
658
+ # @param request: Request instance for DescribeInstanceOperations.
659
+ # @type request: :class:`Tencentcloud::cdwdoris::V20211228::DescribeInstanceOperationsRequest`
660
+ # @rtype: :class:`Tencentcloud::cdwdoris::V20211228::DescribeInstanceOperationsResponse`
661
+ def DescribeInstanceOperations(request)
662
+ body = send_request('DescribeInstanceOperations', request.serialize)
663
+ response = JSON.parse(body)
664
+ if response['Response'].key?('Error') == false
665
+ model = DescribeInstanceOperationsResponse.new
666
+ model.deserialize(response['Response'])
667
+ model
668
+ else
669
+ code = response['Response']['Error']['Code']
670
+ message = response['Response']['Error']['Message']
671
+ reqid = response['Response']['RequestId']
672
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
673
+ end
674
+ rescue TencentCloud::Common::TencentCloudSDKException => e
675
+ raise e
676
+ rescue StandardError => e
677
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
678
+ end
679
+
680
+ # 集群详情页中显示集群状态、流程进度等
681
+
682
+ # @param request: Request instance for DescribeInstanceState.
683
+ # @type request: :class:`Tencentcloud::cdwdoris::V20211228::DescribeInstanceStateRequest`
684
+ # @rtype: :class:`Tencentcloud::cdwdoris::V20211228::DescribeInstanceStateResponse`
685
+ def DescribeInstanceState(request)
686
+ body = send_request('DescribeInstanceState', request.serialize)
687
+ response = JSON.parse(body)
688
+ if response['Response'].key?('Error') == false
689
+ model = DescribeInstanceStateResponse.new
690
+ model.deserialize(response['Response'])
691
+ model
692
+ else
693
+ code = response['Response']['Error']['Code']
694
+ message = response['Response']['Error']['Message']
695
+ reqid = response['Response']['RequestId']
696
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
697
+ end
698
+ rescue TencentCloud::Common::TencentCloudSDKException => e
699
+ raise e
700
+ rescue StandardError => e
701
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
702
+ end
703
+
704
+ # 获取集群已使用子网信息
705
+
706
+ # @param request: Request instance for DescribeInstanceUsedSubnets.
707
+ # @type request: :class:`Tencentcloud::cdwdoris::V20211228::DescribeInstanceUsedSubnetsRequest`
708
+ # @rtype: :class:`Tencentcloud::cdwdoris::V20211228::DescribeInstanceUsedSubnetsResponse`
709
+ def DescribeInstanceUsedSubnets(request)
710
+ body = send_request('DescribeInstanceUsedSubnets', request.serialize)
711
+ response = JSON.parse(body)
712
+ if response['Response'].key?('Error') == false
713
+ model = DescribeInstanceUsedSubnetsResponse.new
714
+ model.deserialize(response['Response'])
715
+ model
716
+ else
717
+ code = response['Response']['Error']['Code']
718
+ message = response['Response']['Error']['Message']
719
+ reqid = response['Response']['RequestId']
720
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
721
+ end
722
+ rescue TencentCloud::Common::TencentCloudSDKException => e
723
+ raise e
724
+ rescue StandardError => e
725
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
726
+ end
727
+
728
+ # 获取集群列表
729
+
730
+ # @param request: Request instance for DescribeInstances.
731
+ # @type request: :class:`Tencentcloud::cdwdoris::V20211228::DescribeInstancesRequest`
732
+ # @rtype: :class:`Tencentcloud::cdwdoris::V20211228::DescribeInstancesResponse`
733
+ def DescribeInstances(request)
734
+ body = send_request('DescribeInstances', request.serialize)
735
+ response = JSON.parse(body)
736
+ if response['Response'].key?('Error') == false
737
+ model = DescribeInstancesResponse.new
738
+ model.deserialize(response['Response'])
739
+ model
740
+ else
741
+ code = response['Response']['Error']['Code']
742
+ message = response['Response']['Error']['Message']
743
+ reqid = response['Response']['RequestId']
744
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
745
+ end
746
+ rescue TencentCloud::Common::TencentCloudSDKException => e
747
+ raise e
748
+ rescue StandardError => e
749
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
750
+ end
751
+
752
+ # 集群健康检查
753
+
754
+ # @param request: Request instance for DescribeInstancesHealthState.
755
+ # @type request: :class:`Tencentcloud::cdwdoris::V20211228::DescribeInstancesHealthStateRequest`
756
+ # @rtype: :class:`Tencentcloud::cdwdoris::V20211228::DescribeInstancesHealthStateResponse`
757
+ def DescribeInstancesHealthState(request)
758
+ body = send_request('DescribeInstancesHealthState', request.serialize)
759
+ response = JSON.parse(body)
760
+ if response['Response'].key?('Error') == false
761
+ model = DescribeInstancesHealthStateResponse.new
762
+ model.deserialize(response['Response'])
763
+ model
764
+ else
765
+ code = response['Response']['Error']['Code']
766
+ message = response['Response']['Error']['Message']
767
+ reqid = response['Response']['RequestId']
768
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
769
+ end
770
+ rescue TencentCloud::Common::TencentCloudSDKException => e
771
+ raise e
772
+ rescue StandardError => e
773
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
774
+ end
775
+
776
+ # 购买页获取地域及可用区列表、内核版本、网络规则等
777
+
778
+ # @param request: Request instance for DescribeRegionZone.
779
+ # @type request: :class:`Tencentcloud::cdwdoris::V20211228::DescribeRegionZoneRequest`
780
+ # @rtype: :class:`Tencentcloud::cdwdoris::V20211228::DescribeRegionZoneResponse`
781
+ def DescribeRegionZone(request)
782
+ body = send_request('DescribeRegionZone', request.serialize)
783
+ response = JSON.parse(body)
784
+ if response['Response'].key?('Error') == false
785
+ model = DescribeRegionZoneResponse.new
786
+ model.deserialize(response['Response'])
787
+ model
788
+ else
789
+ code = response['Response']['Error']['Code']
790
+ message = response['Response']['Error']['Message']
791
+ reqid = response['Response']['RequestId']
792
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
793
+ end
794
+ rescue TencentCloud::Common::TencentCloudSDKException => e
795
+ raise e
796
+ rescue StandardError => e
797
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
798
+ end
799
+
800
+ # 检查内核版本是否支持新的备份恢复语法
801
+
802
+ # @param request: Request instance for DescribeReplicaVersion.
803
+ # @type request: :class:`Tencentcloud::cdwdoris::V20211228::DescribeReplicaVersionRequest`
804
+ # @rtype: :class:`Tencentcloud::cdwdoris::V20211228::DescribeReplicaVersionResponse`
805
+ def DescribeReplicaVersion(request)
806
+ body = send_request('DescribeReplicaVersion', request.serialize)
807
+ response = JSON.parse(body)
808
+ if response['Response'].key?('Error') == false
809
+ model = DescribeReplicaVersionResponse.new
810
+ model.deserialize(response['Response'])
811
+ model
812
+ else
813
+ code = response['Response']['Error']['Code']
814
+ message = response['Response']['Error']['Message']
815
+ reqid = response['Response']['RequestId']
816
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
817
+ end
818
+ rescue TencentCloud::Common::TencentCloudSDKException => e
819
+ raise e
820
+ rescue StandardError => e
821
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
822
+ end
823
+
824
+ # 查询恢复任务进度详情
825
+
826
+ # @param request: Request instance for DescribeRestoreTaskDetail.
827
+ # @type request: :class:`Tencentcloud::cdwdoris::V20211228::DescribeRestoreTaskDetailRequest`
828
+ # @rtype: :class:`Tencentcloud::cdwdoris::V20211228::DescribeRestoreTaskDetailResponse`
829
+ def DescribeRestoreTaskDetail(request)
830
+ body = send_request('DescribeRestoreTaskDetail', request.serialize)
39
831
  response = JSON.parse(body)
40
832
  if response['Response'].key?('Error') == false
41
- model = CreateInstanceNewResponse.new
833
+ model = DescribeRestoreTaskDetailResponse.new
42
834
  model.deserialize(response['Response'])
43
835
  model
44
836
  else
@@ -53,16 +845,16 @@ module TencentCloud
53
845
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
54
846
  end
55
847
 
56
- # 获取集群的最新的几个配置文件(config.xml、metrika.xml、user.xml)的内容,显示给用户
848
+ # 获取慢查询列表
57
849
 
58
- # @param request: Request instance for DescribeClusterConfigs.
59
- # @type request: :class:`Tencentcloud::cdwdoris::V20211228::DescribeClusterConfigsRequest`
60
- # @rtype: :class:`Tencentcloud::cdwdoris::V20211228::DescribeClusterConfigsResponse`
61
- def DescribeClusterConfigs(request)
62
- body = send_request('DescribeClusterConfigs', request.serialize)
850
+ # @param request: Request instance for DescribeSlowQueryRecords.
851
+ # @type request: :class:`Tencentcloud::cdwdoris::V20211228::DescribeSlowQueryRecordsRequest`
852
+ # @rtype: :class:`Tencentcloud::cdwdoris::V20211228::DescribeSlowQueryRecordsResponse`
853
+ def DescribeSlowQueryRecords(request)
854
+ body = send_request('DescribeSlowQueryRecords', request.serialize)
63
855
  response = JSON.parse(body)
64
856
  if response['Response'].key?('Error') == false
65
- model = DescribeClusterConfigsResponse.new
857
+ model = DescribeSlowQueryRecordsResponse.new
66
858
  model.deserialize(response['Response'])
67
859
  model
68
860
  else
@@ -77,16 +869,16 @@ module TencentCloud
77
869
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
78
870
  end
79
871
 
80
- # 下载数据库审计日志
872
+ # 下载慢查询文件
81
873
 
82
- # @param request: Request instance for DescribeDatabaseAuditDownload.
83
- # @type request: :class:`Tencentcloud::cdwdoris::V20211228::DescribeDatabaseAuditDownloadRequest`
84
- # @rtype: :class:`Tencentcloud::cdwdoris::V20211228::DescribeDatabaseAuditDownloadResponse`
85
- def DescribeDatabaseAuditDownload(request)
86
- body = send_request('DescribeDatabaseAuditDownload', request.serialize)
874
+ # @param request: Request instance for DescribeSlowQueryRecordsDownload.
875
+ # @type request: :class:`Tencentcloud::cdwdoris::V20211228::DescribeSlowQueryRecordsDownloadRequest`
876
+ # @rtype: :class:`Tencentcloud::cdwdoris::V20211228::DescribeSlowQueryRecordsDownloadResponse`
877
+ def DescribeSlowQueryRecordsDownload(request)
878
+ body = send_request('DescribeSlowQueryRecordsDownload', request.serialize)
87
879
  response = JSON.parse(body)
88
880
  if response['Response'].key?('Error') == false
89
- model = DescribeDatabaseAuditDownloadResponse.new
881
+ model = DescribeSlowQueryRecordsDownloadResponse.new
90
882
  model.deserialize(response['Response'])
91
883
  model
92
884
  else
@@ -101,16 +893,16 @@ module TencentCloud
101
893
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
102
894
  end
103
895
 
104
- # 获取数据库审计记录
896
+ # 购买页拉取集群的数据节点和zookeeper节点的规格列表
105
897
 
106
- # @param request: Request instance for DescribeDatabaseAuditRecords.
107
- # @type request: :class:`Tencentcloud::cdwdoris::V20211228::DescribeDatabaseAuditRecordsRequest`
108
- # @rtype: :class:`Tencentcloud::cdwdoris::V20211228::DescribeDatabaseAuditRecordsResponse`
109
- def DescribeDatabaseAuditRecords(request)
110
- body = send_request('DescribeDatabaseAuditRecords', request.serialize)
898
+ # @param request: Request instance for DescribeSpec.
899
+ # @type request: :class:`Tencentcloud::cdwdoris::V20211228::DescribeSpecRequest`
900
+ # @rtype: :class:`Tencentcloud::cdwdoris::V20211228::DescribeSpecResponse`
901
+ def DescribeSpec(request)
902
+ body = send_request('DescribeSpec', request.serialize)
111
903
  response = JSON.parse(body)
112
904
  if response['Response'].key?('Error') == false
113
- model = DescribeDatabaseAuditRecordsResponse.new
905
+ model = DescribeSpecResponse.new
114
906
  model.deserialize(response['Response'])
115
907
  model
116
908
  else
@@ -125,16 +917,16 @@ module TencentCloud
125
917
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
126
918
  end
127
919
 
128
- # 根据集群ID查询某个集群的具体信息
920
+ # 针对驱动sql命令查询ck集群接口
129
921
 
130
- # @param request: Request instance for DescribeInstance.
131
- # @type request: :class:`Tencentcloud::cdwdoris::V20211228::DescribeInstanceRequest`
132
- # @rtype: :class:`Tencentcloud::cdwdoris::V20211228::DescribeInstanceResponse`
133
- def DescribeInstance(request)
134
- body = send_request('DescribeInstance', request.serialize)
922
+ # @param request: Request instance for DescribeSqlApis.
923
+ # @type request: :class:`Tencentcloud::cdwdoris::V20211228::DescribeSqlApisRequest`
924
+ # @rtype: :class:`Tencentcloud::cdwdoris::V20211228::DescribeSqlApisResponse`
925
+ def DescribeSqlApis(request)
926
+ body = send_request('DescribeSqlApis', request.serialize)
135
927
  response = JSON.parse(body)
136
928
  if response['Response'].key?('Error') == false
137
- model = DescribeInstanceResponse.new
929
+ model = DescribeSqlApisResponse.new
138
930
  model.deserialize(response['Response'])
139
931
  model
140
932
  else
@@ -149,16 +941,16 @@ module TencentCloud
149
941
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
150
942
  end
151
943
 
152
- # 获取集群节点信息列表
944
+ # 获取当前集群各用户绑定的资源信息
153
945
 
154
- # @param request: Request instance for DescribeInstanceNodes.
155
- # @type request: :class:`Tencentcloud::cdwdoris::V20211228::DescribeInstanceNodesRequest`
156
- # @rtype: :class:`Tencentcloud::cdwdoris::V20211228::DescribeInstanceNodesResponse`
157
- def DescribeInstanceNodes(request)
158
- body = send_request('DescribeInstanceNodes', request.serialize)
946
+ # @param request: Request instance for DescribeUserBindWorkloadGroup.
947
+ # @type request: :class:`Tencentcloud::cdwdoris::V20211228::DescribeUserBindWorkloadGroupRequest`
948
+ # @rtype: :class:`Tencentcloud::cdwdoris::V20211228::DescribeUserBindWorkloadGroupResponse`
949
+ def DescribeUserBindWorkloadGroup(request)
950
+ body = send_request('DescribeUserBindWorkloadGroup', request.serialize)
159
951
  response = JSON.parse(body)
160
952
  if response['Response'].key?('Error') == false
161
- model = DescribeInstanceNodesResponse.new
953
+ model = DescribeUserBindWorkloadGroupResponse.new
162
954
  model.deserialize(response['Response'])
163
955
  model
164
956
  else
@@ -173,16 +965,16 @@ module TencentCloud
173
965
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
174
966
  end
175
967
 
176
- # 获取BE/FE节点角色
968
+ # 获取资源组信息
177
969
 
178
- # @param request: Request instance for DescribeInstanceNodesInfo.
179
- # @type request: :class:`Tencentcloud::cdwdoris::V20211228::DescribeInstanceNodesInfoRequest`
180
- # @rtype: :class:`Tencentcloud::cdwdoris::V20211228::DescribeInstanceNodesInfoResponse`
181
- def DescribeInstanceNodesInfo(request)
182
- body = send_request('DescribeInstanceNodesInfo', request.serialize)
970
+ # @param request: Request instance for DescribeWorkloadGroup.
971
+ # @type request: :class:`Tencentcloud::cdwdoris::V20211228::DescribeWorkloadGroupRequest`
972
+ # @rtype: :class:`Tencentcloud::cdwdoris::V20211228::DescribeWorkloadGroupResponse`
973
+ def DescribeWorkloadGroup(request)
974
+ body = send_request('DescribeWorkloadGroup', request.serialize)
183
975
  response = JSON.parse(body)
184
976
  if response['Response'].key?('Error') == false
185
- model = DescribeInstanceNodesInfoResponse.new
977
+ model = DescribeWorkloadGroupResponse.new
186
978
  model.deserialize(response['Response'])
187
979
  model
188
980
  else
@@ -197,16 +989,16 @@ module TencentCloud
197
989
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
198
990
  end
199
991
 
200
- # 集群详情页中显示集群状态、流程进度等
992
+ # 销毁集群
201
993
 
202
- # @param request: Request instance for DescribeInstanceState.
203
- # @type request: :class:`Tencentcloud::cdwdoris::V20211228::DescribeInstanceStateRequest`
204
- # @rtype: :class:`Tencentcloud::cdwdoris::V20211228::DescribeInstanceStateResponse`
205
- def DescribeInstanceState(request)
206
- body = send_request('DescribeInstanceState', request.serialize)
994
+ # @param request: Request instance for DestroyInstance.
995
+ # @type request: :class:`Tencentcloud::cdwdoris::V20211228::DestroyInstanceRequest`
996
+ # @rtype: :class:`Tencentcloud::cdwdoris::V20211228::DestroyInstanceResponse`
997
+ def DestroyInstance(request)
998
+ body = send_request('DestroyInstance', request.serialize)
207
999
  response = JSON.parse(body)
208
1000
  if response['Response'].key?('Error') == false
209
- model = DescribeInstanceStateResponse.new
1001
+ model = DestroyInstanceResponse.new
210
1002
  model.deserialize(response['Response'])
211
1003
  model
212
1004
  else
@@ -221,16 +1013,16 @@ module TencentCloud
221
1013
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
222
1014
  end
223
1015
 
224
- # 获取集群列表
1016
+ # 给已存在集群,配置日志服务
225
1017
 
226
- # @param request: Request instance for DescribeInstances.
227
- # @type request: :class:`Tencentcloud::cdwdoris::V20211228::DescribeInstancesRequest`
228
- # @rtype: :class:`Tencentcloud::cdwdoris::V20211228::DescribeInstancesResponse`
229
- def DescribeInstances(request)
230
- body = send_request('DescribeInstances', request.serialize)
1018
+ # @param request: Request instance for FitClsLog.
1019
+ # @type request: :class:`Tencentcloud::cdwdoris::V20211228::FitClsLogRequest`
1020
+ # @rtype: :class:`Tencentcloud::cdwdoris::V20211228::FitClsLogResponse`
1021
+ def FitClsLog(request)
1022
+ body = send_request('FitClsLog', request.serialize)
231
1023
  response = JSON.parse(body)
232
1024
  if response['Response'].key?('Error') == false
233
- model = DescribeInstancesResponse.new
1025
+ model = FitClsLogResponse.new
234
1026
  model.deserialize(response['Response'])
235
1027
  model
236
1028
  else
@@ -245,16 +1037,16 @@ module TencentCloud
245
1037
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
246
1038
  end
247
1039
 
248
- # 获取慢查询列表
1040
+ # 修改集群名称
249
1041
 
250
- # @param request: Request instance for DescribeSlowQueryRecords.
251
- # @type request: :class:`Tencentcloud::cdwdoris::V20211228::DescribeSlowQueryRecordsRequest`
252
- # @rtype: :class:`Tencentcloud::cdwdoris::V20211228::DescribeSlowQueryRecordsResponse`
253
- def DescribeSlowQueryRecords(request)
254
- body = send_request('DescribeSlowQueryRecords', request.serialize)
1042
+ # @param request: Request instance for ModifyInstance.
1043
+ # @type request: :class:`Tencentcloud::cdwdoris::V20211228::ModifyInstanceRequest`
1044
+ # @rtype: :class:`Tencentcloud::cdwdoris::V20211228::ModifyInstanceResponse`
1045
+ def ModifyInstance(request)
1046
+ body = send_request('ModifyInstance', request.serialize)
255
1047
  response = JSON.parse(body)
256
1048
  if response['Response'].key?('Error') == false
257
- model = DescribeSlowQueryRecordsResponse.new
1049
+ model = ModifyInstanceResponse.new
258
1050
  model.deserialize(response['Response'])
259
1051
  model
260
1052
  else
@@ -269,16 +1061,16 @@ module TencentCloud
269
1061
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
270
1062
  end
271
1063
 
272
- # 下载慢查询文件
1064
+ # KV模式修改配置接口
273
1065
 
274
- # @param request: Request instance for DescribeSlowQueryRecordsDownload.
275
- # @type request: :class:`Tencentcloud::cdwdoris::V20211228::DescribeSlowQueryRecordsDownloadRequest`
276
- # @rtype: :class:`Tencentcloud::cdwdoris::V20211228::DescribeSlowQueryRecordsDownloadResponse`
277
- def DescribeSlowQueryRecordsDownload(request)
278
- body = send_request('DescribeSlowQueryRecordsDownload', request.serialize)
1066
+ # @param request: Request instance for ModifyInstanceKeyValConfigs.
1067
+ # @type request: :class:`Tencentcloud::cdwdoris::V20211228::ModifyInstanceKeyValConfigsRequest`
1068
+ # @rtype: :class:`Tencentcloud::cdwdoris::V20211228::ModifyInstanceKeyValConfigsResponse`
1069
+ def ModifyInstanceKeyValConfigs(request)
1070
+ body = send_request('ModifyInstanceKeyValConfigs', request.serialize)
279
1071
  response = JSON.parse(body)
280
1072
  if response['Response'].key?('Error') == false
281
- model = DescribeSlowQueryRecordsDownloadResponse.new
1073
+ model = ModifyInstanceKeyValConfigsResponse.new
282
1074
  model.deserialize(response['Response'])
283
1075
  model
284
1076
  else
@@ -293,16 +1085,16 @@ module TencentCloud
293
1085
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
294
1086
  end
295
1087
 
296
- # 销毁集群
1088
+ # 修改节点状态
297
1089
 
298
- # @param request: Request instance for DestroyInstance.
299
- # @type request: :class:`Tencentcloud::cdwdoris::V20211228::DestroyInstanceRequest`
300
- # @rtype: :class:`Tencentcloud::cdwdoris::V20211228::DestroyInstanceResponse`
301
- def DestroyInstance(request)
302
- body = send_request('DestroyInstance', request.serialize)
1090
+ # @param request: Request instance for ModifyNodeStatus.
1091
+ # @type request: :class:`Tencentcloud::cdwdoris::V20211228::ModifyNodeStatusRequest`
1092
+ # @rtype: :class:`Tencentcloud::cdwdoris::V20211228::ModifyNodeStatusResponse`
1093
+ def ModifyNodeStatus(request)
1094
+ body = send_request('ModifyNodeStatus', request.serialize)
303
1095
  response = JSON.parse(body)
304
1096
  if response['Response'].key?('Error') == false
305
- model = DestroyInstanceResponse.new
1097
+ model = ModifyNodeStatusResponse.new
306
1098
  model.deserialize(response['Response'])
307
1099
  model
308
1100
  else
@@ -317,16 +1109,184 @@ module TencentCloud
317
1109
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
318
1110
  end
319
1111
 
320
- # 修改集群名称
1112
+ # 更改安全组
321
1113
 
322
- # @param request: Request instance for ModifyInstance.
323
- # @type request: :class:`Tencentcloud::cdwdoris::V20211228::ModifyInstanceRequest`
324
- # @rtype: :class:`Tencentcloud::cdwdoris::V20211228::ModifyInstanceResponse`
325
- def ModifyInstance(request)
326
- body = send_request('ModifyInstance', request.serialize)
1114
+ # @param request: Request instance for ModifySecurityGroups.
1115
+ # @type request: :class:`Tencentcloud::cdwdoris::V20211228::ModifySecurityGroupsRequest`
1116
+ # @rtype: :class:`Tencentcloud::cdwdoris::V20211228::ModifySecurityGroupsResponse`
1117
+ def ModifySecurityGroups(request)
1118
+ body = send_request('ModifySecurityGroups', request.serialize)
327
1119
  response = JSON.parse(body)
328
1120
  if response['Response'].key?('Error') == false
329
- model = ModifyInstanceResponse.new
1121
+ model = ModifySecurityGroupsResponse.new
1122
+ model.deserialize(response['Response'])
1123
+ model
1124
+ else
1125
+ code = response['Response']['Error']['Code']
1126
+ message = response['Response']['Error']['Message']
1127
+ reqid = response['Response']['RequestId']
1128
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
1129
+ end
1130
+ rescue TencentCloud::Common::TencentCloudSDKException => e
1131
+ raise e
1132
+ rescue StandardError => e
1133
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1134
+ end
1135
+
1136
+ # 修改用户绑定的资源组
1137
+
1138
+ # @param request: Request instance for ModifyUserBindWorkloadGroup.
1139
+ # @type request: :class:`Tencentcloud::cdwdoris::V20211228::ModifyUserBindWorkloadGroupRequest`
1140
+ # @rtype: :class:`Tencentcloud::cdwdoris::V20211228::ModifyUserBindWorkloadGroupResponse`
1141
+ def ModifyUserBindWorkloadGroup(request)
1142
+ body = send_request('ModifyUserBindWorkloadGroup', request.serialize)
1143
+ response = JSON.parse(body)
1144
+ if response['Response'].key?('Error') == false
1145
+ model = ModifyUserBindWorkloadGroupResponse.new
1146
+ model.deserialize(response['Response'])
1147
+ model
1148
+ else
1149
+ code = response['Response']['Error']['Code']
1150
+ message = response['Response']['Error']['Message']
1151
+ reqid = response['Response']['RequestId']
1152
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
1153
+ end
1154
+ rescue TencentCloud::Common::TencentCloudSDKException => e
1155
+ raise e
1156
+ rescue StandardError => e
1157
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1158
+ end
1159
+
1160
+ # 修改用户权限,支持catalog,全部db,部分db表三种权限设置类别
1161
+
1162
+ # @param request: Request instance for ModifyUserPrivilegesV3.
1163
+ # @type request: :class:`Tencentcloud::cdwdoris::V20211228::ModifyUserPrivilegesV3Request`
1164
+ # @rtype: :class:`Tencentcloud::cdwdoris::V20211228::ModifyUserPrivilegesV3Response`
1165
+ def ModifyUserPrivilegesV3(request)
1166
+ body = send_request('ModifyUserPrivilegesV3', request.serialize)
1167
+ response = JSON.parse(body)
1168
+ if response['Response'].key?('Error') == false
1169
+ model = ModifyUserPrivilegesV3Response.new
1170
+ model.deserialize(response['Response'])
1171
+ model
1172
+ else
1173
+ code = response['Response']['Error']['Code']
1174
+ message = response['Response']['Error']['Message']
1175
+ reqid = response['Response']['RequestId']
1176
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
1177
+ end
1178
+ rescue TencentCloud::Common::TencentCloudSDKException => e
1179
+ raise e
1180
+ rescue StandardError => e
1181
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1182
+ end
1183
+
1184
+ # 修改资源组信息
1185
+
1186
+ # @param request: Request instance for ModifyWorkloadGroup.
1187
+ # @type request: :class:`Tencentcloud::cdwdoris::V20211228::ModifyWorkloadGroupRequest`
1188
+ # @rtype: :class:`Tencentcloud::cdwdoris::V20211228::ModifyWorkloadGroupResponse`
1189
+ def ModifyWorkloadGroup(request)
1190
+ body = send_request('ModifyWorkloadGroup', request.serialize)
1191
+ response = JSON.parse(body)
1192
+ if response['Response'].key?('Error') == false
1193
+ model = ModifyWorkloadGroupResponse.new
1194
+ model.deserialize(response['Response'])
1195
+ model
1196
+ else
1197
+ code = response['Response']['Error']['Code']
1198
+ message = response['Response']['Error']['Message']
1199
+ reqid = response['Response']['RequestId']
1200
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
1201
+ end
1202
+ rescue TencentCloud::Common::TencentCloudSDKException => e
1203
+ raise e
1204
+ rescue StandardError => e
1205
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1206
+ end
1207
+
1208
+ # 开启或关闭资源组
1209
+
1210
+ # @param request: Request instance for ModifyWorkloadGroupStatus.
1211
+ # @type request: :class:`Tencentcloud::cdwdoris::V20211228::ModifyWorkloadGroupStatusRequest`
1212
+ # @rtype: :class:`Tencentcloud::cdwdoris::V20211228::ModifyWorkloadGroupStatusResponse`
1213
+ def ModifyWorkloadGroupStatus(request)
1214
+ body = send_request('ModifyWorkloadGroupStatus', request.serialize)
1215
+ response = JSON.parse(body)
1216
+ if response['Response'].key?('Error') == false
1217
+ model = ModifyWorkloadGroupStatusResponse.new
1218
+ model.deserialize(response['Response'])
1219
+ model
1220
+ else
1221
+ code = response['Response']['Error']['Code']
1222
+ message = response['Response']['Error']['Message']
1223
+ reqid = response['Response']['RequestId']
1224
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
1225
+ end
1226
+ rescue TencentCloud::Common::TencentCloudSDKException => e
1227
+ raise e
1228
+ rescue StandardError => e
1229
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1230
+ end
1231
+
1232
+ # 开启或者关闭策略
1233
+
1234
+ # @param request: Request instance for OpenBackUp.
1235
+ # @type request: :class:`Tencentcloud::cdwdoris::V20211228::OpenBackUpRequest`
1236
+ # @rtype: :class:`Tencentcloud::cdwdoris::V20211228::OpenBackUpResponse`
1237
+ def OpenBackUp(request)
1238
+ body = send_request('OpenBackUp', request.serialize)
1239
+ response = JSON.parse(body)
1240
+ if response['Response'].key?('Error') == false
1241
+ model = OpenBackUpResponse.new
1242
+ model.deserialize(response['Response'])
1243
+ model
1244
+ else
1245
+ code = response['Response']['Error']['Code']
1246
+ message = response['Response']['Error']['Message']
1247
+ reqid = response['Response']['RequestId']
1248
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
1249
+ end
1250
+ rescue TencentCloud::Common::TencentCloudSDKException => e
1251
+ raise e
1252
+ rescue StandardError => e
1253
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1254
+ end
1255
+
1256
+ # 备份恢复
1257
+
1258
+ # @param request: Request instance for RecoverBackUpJob.
1259
+ # @type request: :class:`Tencentcloud::cdwdoris::V20211228::RecoverBackUpJobRequest`
1260
+ # @rtype: :class:`Tencentcloud::cdwdoris::V20211228::RecoverBackUpJobResponse`
1261
+ def RecoverBackUpJob(request)
1262
+ body = send_request('RecoverBackUpJob', request.serialize)
1263
+ response = JSON.parse(body)
1264
+ if response['Response'].key?('Error') == false
1265
+ model = RecoverBackUpJobResponse.new
1266
+ model.deserialize(response['Response'])
1267
+ model
1268
+ else
1269
+ code = response['Response']['Error']['Code']
1270
+ message = response['Response']['Error']['Message']
1271
+ reqid = response['Response']['RequestId']
1272
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
1273
+ end
1274
+ rescue TencentCloud::Common::TencentCloudSDKException => e
1275
+ raise e
1276
+ rescue StandardError => e
1277
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1278
+ end
1279
+
1280
+ # 集群缩容
1281
+
1282
+ # @param request: Request instance for ReduceInstance.
1283
+ # @type request: :class:`Tencentcloud::cdwdoris::V20211228::ReduceInstanceRequest`
1284
+ # @rtype: :class:`Tencentcloud::cdwdoris::V20211228::ReduceInstanceResponse`
1285
+ def ReduceInstance(request)
1286
+ body = send_request('ReduceInstance', request.serialize)
1287
+ response = JSON.parse(body)
1288
+ if response['Response'].key?('Error') == false
1289
+ model = ReduceInstanceResponse.new
330
1290
  model.deserialize(response['Response'])
331
1291
  model
332
1292
  else
@@ -365,6 +1325,30 @@ module TencentCloud
365
1325
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
366
1326
  end
367
1327
 
1328
+ # 重启集群让配置文件生效
1329
+
1330
+ # @param request: Request instance for RestartClusterForConfigs.
1331
+ # @type request: :class:`Tencentcloud::cdwdoris::V20211228::RestartClusterForConfigsRequest`
1332
+ # @rtype: :class:`Tencentcloud::cdwdoris::V20211228::RestartClusterForConfigsResponse`
1333
+ def RestartClusterForConfigs(request)
1334
+ body = send_request('RestartClusterForConfigs', request.serialize)
1335
+ response = JSON.parse(body)
1336
+ if response['Response'].key?('Error') == false
1337
+ model = RestartClusterForConfigsResponse.new
1338
+ model.deserialize(response['Response'])
1339
+ model
1340
+ else
1341
+ code = response['Response']['Error']['Code']
1342
+ message = response['Response']['Error']['Message']
1343
+ reqid = response['Response']['RequestId']
1344
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
1345
+ end
1346
+ rescue TencentCloud::Common::TencentCloudSDKException => e
1347
+ raise e
1348
+ rescue StandardError => e
1349
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1350
+ end
1351
+
368
1352
  # 集群滚动重启
369
1353
 
370
1354
  # @param request: Request instance for RestartClusterForNode.