tencentcloud-sdk-cdwdoris 3.0.734 → 3.0.735

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3b53f9b7296845b3fcf2836f55fd533c391f89b6
4
- data.tar.gz: 158fc16ccc0315cdd61b098f25aa925b566f6ff4
3
+ metadata.gz: fcc411ec084a4327bb5879a291746b9a33510f23
4
+ data.tar.gz: 931ac5b0a74369e248ed968578a9599eb4254ca1
5
5
  SHA512:
6
- metadata.gz: 0f9736e29438c795ad57541591faa385d4cc7c66e1deef67674b1e8cbc602a27288717ed34048b53e5e20858fabcdf2b2ab4383a55615d657314e908a4e61c5d
7
- data.tar.gz: 022987f08b4bdbc34d9c8fcf2835a63f34e333d1c255ff59ccec1424daaa4cf4802c166c2198a294c2c2b0977d6439b76a52744a9d441112685c3513448aa192
6
+ metadata.gz: e1bf3f248e8c633ce2e28fb44339869e606b7c75bf1efeffc60b5066e4d964956f15d6faaed139a4a7047ca17b6bc0d7c07fa233c2355247175121d52b879df2
7
+ data.tar.gz: 8dade13e4e63e8813cb2cea7686fb72703f4bbefb9aeb053e7f30f34c886d05015373fe1639b371a427fe40b8f0a7bd0ac7dd7b826db1364b3868027c3f49a3c
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.734
1
+ 3.0.735
@@ -29,6 +29,102 @@ module TencentCloud
29
29
  end
30
30
 
31
31
 
32
+ # 通过API创建集群
33
+
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)
39
+ response = JSON.parse(body)
40
+ if response['Response'].key?('Error') == false
41
+ model = CreateInstanceNewResponse.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
+ # 获取集群的最新的几个配置文件(config.xml、metrika.xml、user.xml)的内容,显示给用户
57
+
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)
63
+ response = JSON.parse(body)
64
+ if response['Response'].key?('Error') == false
65
+ model = DescribeClusterConfigsResponse.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
+
80
+ # 下载数据库审计日志
81
+
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)
87
+ response = JSON.parse(body)
88
+ if response['Response'].key?('Error') == false
89
+ model = DescribeDatabaseAuditDownloadResponse.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 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)
111
+ response = JSON.parse(body)
112
+ if response['Response'].key?('Error') == false
113
+ model = DescribeDatabaseAuditRecordsResponse.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
+
32
128
  # 根据集群ID查询某个集群的具体信息
33
129
 
34
130
  # @param request: Request instance for DescribeInstance.
@@ -77,6 +173,54 @@ module TencentCloud
77
173
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
78
174
  end
79
175
 
176
+ # 获取BE/FE节点角色
177
+
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)
183
+ response = JSON.parse(body)
184
+ if response['Response'].key?('Error') == false
185
+ model = DescribeInstanceNodesInfoResponse.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 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)
207
+ response = JSON.parse(body)
208
+ if response['Response'].key?('Error') == false
209
+ model = DescribeInstanceStateResponse.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
+
80
224
  # 获取集群列表
81
225
 
82
226
  # @param request: Request instance for DescribeInstances.
@@ -101,6 +245,198 @@ module TencentCloud
101
245
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
102
246
  end
103
247
 
248
+ # 获取慢查询列表
249
+
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)
255
+ response = JSON.parse(body)
256
+ if response['Response'].key?('Error') == false
257
+ model = DescribeSlowQueryRecordsResponse.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 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)
279
+ response = JSON.parse(body)
280
+ if response['Response'].key?('Error') == false
281
+ model = DescribeSlowQueryRecordsDownloadResponse.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 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)
303
+ response = JSON.parse(body)
304
+ if response['Response'].key?('Error') == false
305
+ model = DestroyInstanceResponse.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
+ # 修改集群名称
321
+
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)
327
+ response = JSON.parse(body)
328
+ if response['Response'].key?('Error') == false
329
+ model = ModifyInstanceResponse.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 ResizeDisk.
347
+ # @type request: :class:`Tencentcloud::cdwdoris::V20211228::ResizeDiskRequest`
348
+ # @rtype: :class:`Tencentcloud::cdwdoris::V20211228::ResizeDiskResponse`
349
+ def ResizeDisk(request)
350
+ body = send_request('ResizeDisk', request.serialize)
351
+ response = JSON.parse(body)
352
+ if response['Response'].key?('Error') == false
353
+ model = ResizeDiskResponse.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 RestartClusterForNode.
371
+ # @type request: :class:`Tencentcloud::cdwdoris::V20211228::RestartClusterForNodeRequest`
372
+ # @rtype: :class:`Tencentcloud::cdwdoris::V20211228::RestartClusterForNodeResponse`
373
+ def RestartClusterForNode(request)
374
+ body = send_request('RestartClusterForNode', request.serialize)
375
+ response = JSON.parse(body)
376
+ if response['Response'].key?('Error') == false
377
+ model = RestartClusterForNodeResponse.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 ScaleOutInstance.
395
+ # @type request: :class:`Tencentcloud::cdwdoris::V20211228::ScaleOutInstanceRequest`
396
+ # @rtype: :class:`Tencentcloud::cdwdoris::V20211228::ScaleOutInstanceResponse`
397
+ def ScaleOutInstance(request)
398
+ body = send_request('ScaleOutInstance', request.serialize)
399
+ response = JSON.parse(body)
400
+ if response['Response'].key?('Error') == false
401
+ model = ScaleOutInstanceResponse.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 ScaleUpInstance.
419
+ # @type request: :class:`Tencentcloud::cdwdoris::V20211228::ScaleUpInstanceRequest`
420
+ # @rtype: :class:`Tencentcloud::cdwdoris::V20211228::ScaleUpInstanceResponse`
421
+ def ScaleUpInstance(request)
422
+ body = send_request('ScaleUpInstance', request.serialize)
423
+ response = JSON.parse(body)
424
+ if response['Response'].key?('Error') == false
425
+ model = ScaleUpInstanceResponse.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
+
104
440
 
105
441
  end
106
442
  end