tencentcloud-sdk-cdwdoris 3.0.875 → 3.0.876

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: 89fed4ac83460a0b16aa577c03b67c05748ffb76
4
- data.tar.gz: 5b4620acc64476c804a3f44727a1f3e66f820aac
3
+ metadata.gz: ca3ba9bb25aed922f94db03a173b1623ccc3e181
4
+ data.tar.gz: fcf2b6d204906c7816780067a7f0b6f056ee23a8
5
5
  SHA512:
6
- metadata.gz: 393c37654a94600fe2402179403ce43a702420bfcfdafc49298f18d73e025f492ebc37c73e0cca0e07bc05f8f1fe41f213122f31df3227d3b93d1076e0ab8e1c
7
- data.tar.gz: 5a23e434504e13f794fcae107989cb0321386aaac7f0c94ef5bc9f0f497d1db854808796ed2aaf9cd4489f7b07bd19b1c4be23348636a7af622cf1de4a801ceb
6
+ metadata.gz: 0cacf020423389d06e3d7a4da6b447abcd35f5649cfba642ef5a6fc9bc807c0c442021acdbb89d67ab3fbed373285a960ec62974c98ab03090367012dce94f02
7
+ data.tar.gz: 00efa4c9d967a8c9e072cb80a3b68e088d9613375790d0a0ff9414630d8c301a78a43fbba9abb8a31f8e628967ddd3d7f5c520c76d3e906201d02ff11c3affa8
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.875
1
+ 3.0.876
@@ -53,6 +53,54 @@ module TencentCloud
53
53
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
54
54
  end
55
55
 
56
+ # 创建资源组
57
+
58
+ # @param request: Request instance for CreateWorkloadGroup.
59
+ # @type request: :class:`Tencentcloud::cdwdoris::V20211228::CreateWorkloadGroupRequest`
60
+ # @rtype: :class:`Tencentcloud::cdwdoris::V20211228::CreateWorkloadGroupResponse`
61
+ def CreateWorkloadGroup(request)
62
+ body = send_request('CreateWorkloadGroup', request.serialize)
63
+ response = JSON.parse(body)
64
+ if response['Response'].key?('Error') == false
65
+ model = CreateWorkloadGroupResponse.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 DeleteWorkloadGroup.
83
+ # @type request: :class:`Tencentcloud::cdwdoris::V20211228::DeleteWorkloadGroupRequest`
84
+ # @rtype: :class:`Tencentcloud::cdwdoris::V20211228::DeleteWorkloadGroupResponse`
85
+ def DeleteWorkloadGroup(request)
86
+ body = send_request('DeleteWorkloadGroup', request.serialize)
87
+ response = JSON.parse(body)
88
+ if response['Response'].key?('Error') == false
89
+ model = DeleteWorkloadGroupResponse.new
90
+ model.deserialize(response['Response'])
91
+ model
92
+ else
93
+ code = response['Response']['Error']['Code']
94
+ message = response['Response']['Error']['Message']
95
+ reqid = response['Response']['RequestId']
96
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
97
+ end
98
+ rescue TencentCloud::Common::TencentCloudSDKException => e
99
+ raise e
100
+ rescue StandardError => e
101
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
102
+ end
103
+
56
104
  # 获取集群的最新的几个配置文件(config.xml、metrika.xml、user.xml)的内容,显示给用户
57
105
 
58
106
  # @param request: Request instance for DescribeClusterConfigs.
@@ -125,6 +173,54 @@ module TencentCloud
125
173
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
126
174
  end
127
175
 
176
+ # 获取联合身份临时访问凭证
177
+
178
+ # @param request: Request instance for DescribeFederationToken.
179
+ # @type request: :class:`Tencentcloud::cdwdoris::V20211228::DescribeFederationTokenRequest`
180
+ # @rtype: :class:`Tencentcloud::cdwdoris::V20211228::DescribeFederationTokenResponse`
181
+ def DescribeFederationToken(request)
182
+ body = send_request('DescribeFederationToken', request.serialize)
183
+ response = JSON.parse(body)
184
+ if response['Response'].key?('Error') == false
185
+ model = DescribeFederationTokenResponse.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
+ # 生成计费相关接口的GoodsDetail结构
201
+
202
+ # @param request: Request instance for DescribeGoodsDetail.
203
+ # @type request: :class:`Tencentcloud::cdwdoris::V20211228::DescribeGoodsDetailRequest`
204
+ # @rtype: :class:`Tencentcloud::cdwdoris::V20211228::DescribeGoodsDetailResponse`
205
+ def DescribeGoodsDetail(request)
206
+ body = send_request('DescribeGoodsDetail', request.serialize)
207
+ response = JSON.parse(body)
208
+ if response['Response'].key?('Error') == false
209
+ model = DescribeGoodsDetailResponse.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
+
128
224
  # 根据集群ID查询某个集群的具体信息
129
225
 
130
226
  # @param request: Request instance for DescribeInstance.
@@ -221,6 +317,30 @@ module TencentCloud
221
317
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
222
318
  end
223
319
 
320
+ # 获取集群已使用子网信息
321
+
322
+ # @param request: Request instance for DescribeInstanceUsedSubnets.
323
+ # @type request: :class:`Tencentcloud::cdwdoris::V20211228::DescribeInstanceUsedSubnetsRequest`
324
+ # @rtype: :class:`Tencentcloud::cdwdoris::V20211228::DescribeInstanceUsedSubnetsResponse`
325
+ def DescribeInstanceUsedSubnets(request)
326
+ body = send_request('DescribeInstanceUsedSubnets', request.serialize)
327
+ response = JSON.parse(body)
328
+ if response['Response'].key?('Error') == false
329
+ model = DescribeInstanceUsedSubnetsResponse.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
+
224
344
  # 获取集群列表
225
345
 
226
346
  # @param request: Request instance for DescribeInstances.
@@ -245,6 +365,78 @@ module TencentCloud
245
365
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
246
366
  end
247
367
 
368
+ # 购买页获取地域及可用区列表、内核版本、网络规则等
369
+
370
+ # @param request: Request instance for DescribeRegionZone.
371
+ # @type request: :class:`Tencentcloud::cdwdoris::V20211228::DescribeRegionZoneRequest`
372
+ # @rtype: :class:`Tencentcloud::cdwdoris::V20211228::DescribeRegionZoneResponse`
373
+ def DescribeRegionZone(request)
374
+ body = send_request('DescribeRegionZone', request.serialize)
375
+ response = JSON.parse(body)
376
+ if response['Response'].key?('Error') == false
377
+ model = DescribeRegionZoneResponse.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 DescribeReplicaVersion.
395
+ # @type request: :class:`Tencentcloud::cdwdoris::V20211228::DescribeReplicaVersionRequest`
396
+ # @rtype: :class:`Tencentcloud::cdwdoris::V20211228::DescribeReplicaVersionResponse`
397
+ def DescribeReplicaVersion(request)
398
+ body = send_request('DescribeReplicaVersion', request.serialize)
399
+ response = JSON.parse(body)
400
+ if response['Response'].key?('Error') == false
401
+ model = DescribeReplicaVersionResponse.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 DescribeRestoreTaskDetail.
419
+ # @type request: :class:`Tencentcloud::cdwdoris::V20211228::DescribeRestoreTaskDetailRequest`
420
+ # @rtype: :class:`Tencentcloud::cdwdoris::V20211228::DescribeRestoreTaskDetailResponse`
421
+ def DescribeRestoreTaskDetail(request)
422
+ body = send_request('DescribeRestoreTaskDetail', request.serialize)
423
+ response = JSON.parse(body)
424
+ if response['Response'].key?('Error') == false
425
+ model = DescribeRestoreTaskDetailResponse.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
+
248
440
  # 获取慢查询列表
249
441
 
250
442
  # @param request: Request instance for DescribeSlowQueryRecords.
@@ -293,6 +485,78 @@ module TencentCloud
293
485
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
294
486
  end
295
487
 
488
+ # 针对驱动sql命令查询ck集群接口
489
+
490
+ # @param request: Request instance for DescribeSqlApis.
491
+ # @type request: :class:`Tencentcloud::cdwdoris::V20211228::DescribeSqlApisRequest`
492
+ # @rtype: :class:`Tencentcloud::cdwdoris::V20211228::DescribeSqlApisResponse`
493
+ def DescribeSqlApis(request)
494
+ body = send_request('DescribeSqlApis', request.serialize)
495
+ response = JSON.parse(body)
496
+ if response['Response'].key?('Error') == false
497
+ model = DescribeSqlApisResponse.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 DescribeUserBindWorkloadGroup.
515
+ # @type request: :class:`Tencentcloud::cdwdoris::V20211228::DescribeUserBindWorkloadGroupRequest`
516
+ # @rtype: :class:`Tencentcloud::cdwdoris::V20211228::DescribeUserBindWorkloadGroupResponse`
517
+ def DescribeUserBindWorkloadGroup(request)
518
+ body = send_request('DescribeUserBindWorkloadGroup', request.serialize)
519
+ response = JSON.parse(body)
520
+ if response['Response'].key?('Error') == false
521
+ model = DescribeUserBindWorkloadGroupResponse.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
+ # 获取资源组信息
537
+
538
+ # @param request: Request instance for DescribeWorkloadGroup.
539
+ # @type request: :class:`Tencentcloud::cdwdoris::V20211228::DescribeWorkloadGroupRequest`
540
+ # @rtype: :class:`Tencentcloud::cdwdoris::V20211228::DescribeWorkloadGroupResponse`
541
+ def DescribeWorkloadGroup(request)
542
+ body = send_request('DescribeWorkloadGroup', request.serialize)
543
+ response = JSON.parse(body)
544
+ if response['Response'].key?('Error') == false
545
+ model = DescribeWorkloadGroupResponse.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
+
296
560
  # 销毁集群
297
561
 
298
562
  # @param request: Request instance for DestroyInstance.
@@ -317,6 +581,30 @@ module TencentCloud
317
581
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
318
582
  end
319
583
 
584
+ # 给已存在集群,配置日志服务
585
+
586
+ # @param request: Request instance for FitClsLog.
587
+ # @type request: :class:`Tencentcloud::cdwdoris::V20211228::FitClsLogRequest`
588
+ # @rtype: :class:`Tencentcloud::cdwdoris::V20211228::FitClsLogResponse`
589
+ def FitClsLog(request)
590
+ body = send_request('FitClsLog', request.serialize)
591
+ response = JSON.parse(body)
592
+ if response['Response'].key?('Error') == false
593
+ model = FitClsLogResponse.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
+
320
608
  # 修改集群名称
321
609
 
322
610
  # @param request: Request instance for ModifyInstance.
@@ -341,6 +629,174 @@ module TencentCloud
341
629
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
342
630
  end
343
631
 
632
+ # KV模式修改配置接口
633
+
634
+ # @param request: Request instance for ModifyInstanceKeyValConfigs.
635
+ # @type request: :class:`Tencentcloud::cdwdoris::V20211228::ModifyInstanceKeyValConfigsRequest`
636
+ # @rtype: :class:`Tencentcloud::cdwdoris::V20211228::ModifyInstanceKeyValConfigsResponse`
637
+ def ModifyInstanceKeyValConfigs(request)
638
+ body = send_request('ModifyInstanceKeyValConfigs', request.serialize)
639
+ response = JSON.parse(body)
640
+ if response['Response'].key?('Error') == false
641
+ model = ModifyInstanceKeyValConfigsResponse.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 ModifySecurityGroups.
659
+ # @type request: :class:`Tencentcloud::cdwdoris::V20211228::ModifySecurityGroupsRequest`
660
+ # @rtype: :class:`Tencentcloud::cdwdoris::V20211228::ModifySecurityGroupsResponse`
661
+ def ModifySecurityGroups(request)
662
+ body = send_request('ModifySecurityGroups', request.serialize)
663
+ response = JSON.parse(body)
664
+ if response['Response'].key?('Error') == false
665
+ model = ModifySecurityGroupsResponse.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 ModifyUserBindWorkloadGroup.
683
+ # @type request: :class:`Tencentcloud::cdwdoris::V20211228::ModifyUserBindWorkloadGroupRequest`
684
+ # @rtype: :class:`Tencentcloud::cdwdoris::V20211228::ModifyUserBindWorkloadGroupResponse`
685
+ def ModifyUserBindWorkloadGroup(request)
686
+ body = send_request('ModifyUserBindWorkloadGroup', request.serialize)
687
+ response = JSON.parse(body)
688
+ if response['Response'].key?('Error') == false
689
+ model = ModifyUserBindWorkloadGroupResponse.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
+ # 修改用户权限,支持catalog,全部db,部分db表三种权限设置类别
705
+
706
+ # @param request: Request instance for ModifyUserPrivilegesV3.
707
+ # @type request: :class:`Tencentcloud::cdwdoris::V20211228::ModifyUserPrivilegesV3Request`
708
+ # @rtype: :class:`Tencentcloud::cdwdoris::V20211228::ModifyUserPrivilegesV3Response`
709
+ def ModifyUserPrivilegesV3(request)
710
+ body = send_request('ModifyUserPrivilegesV3', request.serialize)
711
+ response = JSON.parse(body)
712
+ if response['Response'].key?('Error') == false
713
+ model = ModifyUserPrivilegesV3Response.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 ModifyWorkloadGroup.
731
+ # @type request: :class:`Tencentcloud::cdwdoris::V20211228::ModifyWorkloadGroupRequest`
732
+ # @rtype: :class:`Tencentcloud::cdwdoris::V20211228::ModifyWorkloadGroupResponse`
733
+ def ModifyWorkloadGroup(request)
734
+ body = send_request('ModifyWorkloadGroup', request.serialize)
735
+ response = JSON.parse(body)
736
+ if response['Response'].key?('Error') == false
737
+ model = ModifyWorkloadGroupResponse.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 ModifyWorkloadGroupStatus.
755
+ # @type request: :class:`Tencentcloud::cdwdoris::V20211228::ModifyWorkloadGroupStatusRequest`
756
+ # @rtype: :class:`Tencentcloud::cdwdoris::V20211228::ModifyWorkloadGroupStatusResponse`
757
+ def ModifyWorkloadGroupStatus(request)
758
+ body = send_request('ModifyWorkloadGroupStatus', request.serialize)
759
+ response = JSON.parse(body)
760
+ if response['Response'].key?('Error') == false
761
+ model = ModifyWorkloadGroupStatusResponse.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 ReduceInstance.
779
+ # @type request: :class:`Tencentcloud::cdwdoris::V20211228::ReduceInstanceRequest`
780
+ # @rtype: :class:`Tencentcloud::cdwdoris::V20211228::ReduceInstanceResponse`
781
+ def ReduceInstance(request)
782
+ body = send_request('ReduceInstance', request.serialize)
783
+ response = JSON.parse(body)
784
+ if response['Response'].key?('Error') == false
785
+ model = ReduceInstanceResponse.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
+
344
800
  # 扩容云盘
345
801
 
346
802
  # @param request: Request instance for ResizeDisk.