tencentcloud-sdk-cdwdoris 3.0.888 → 3.0.889
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/VERSION +1 -1
- data/lib/v20211228/client.rb +145 -169
- data/lib/v20211228/models.rb +537 -832
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 59d62fdfbbddaebefc9044648bb4b8cce33a84f8
|
4
|
+
data.tar.gz: 5edff77cea80b6dbce8609ddd44f709b9a10728d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e6c6f78bb8653012e57afaa874ad8021a7ed9529fc0a93e45c399486c237fc51a83cd8433120a9db32699a6c4a1924ff35f0a49838a50042cfc7f470ac8ac926
|
7
|
+
data.tar.gz: 7510c447c72fd55a0c290a32e6e14baac7d34d8d6757b8885e422c3e26a7f8ea0e8e023316e8ff7c5462c47c767230dbe89f9d0e334dc987fc53e6fc61eb896a
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.889
|
data/lib/v20211228/client.rb
CHANGED
@@ -53,6 +53,30 @@ 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 CheckCoolDownWorkingVariableConfigCorrect.
|
59
|
+
# @type request: :class:`Tencentcloud::cdwdoris::V20211228::CheckCoolDownWorkingVariableConfigCorrectRequest`
|
60
|
+
# @rtype: :class:`Tencentcloud::cdwdoris::V20211228::CheckCoolDownWorkingVariableConfigCorrectResponse`
|
61
|
+
def CheckCoolDownWorkingVariableConfigCorrect(request)
|
62
|
+
body = send_request('CheckCoolDownWorkingVariableConfigCorrect', request.serialize)
|
63
|
+
response = JSON.parse(body)
|
64
|
+
if response['Response'].key?('Error') == false
|
65
|
+
model = CheckCoolDownWorkingVariableConfigCorrectResponse.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
|
+
|
56
80
|
# 创建或者修改备份策略
|
57
81
|
|
58
82
|
# @param request: Request instance for CreateBackUpSchedule.
|
@@ -77,6 +101,30 @@ module TencentCloud
|
|
77
101
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
78
102
|
end
|
79
103
|
|
104
|
+
# 创建冷热分层策略
|
105
|
+
|
106
|
+
# @param request: Request instance for CreateCoolDownPolicy.
|
107
|
+
# @type request: :class:`Tencentcloud::cdwdoris::V20211228::CreateCoolDownPolicyRequest`
|
108
|
+
# @rtype: :class:`Tencentcloud::cdwdoris::V20211228::CreateCoolDownPolicyResponse`
|
109
|
+
def CreateCoolDownPolicy(request)
|
110
|
+
body = send_request('CreateCoolDownPolicy', request.serialize)
|
111
|
+
response = JSON.parse(body)
|
112
|
+
if response['Response'].key?('Error') == false
|
113
|
+
model = CreateCoolDownPolicyResponse.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
|
+
|
80
128
|
# 通过API创建集群
|
81
129
|
|
82
130
|
# @param request: Request instance for CreateInstanceNew.
|
@@ -365,16 +413,16 @@ module TencentCloud
|
|
365
413
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
366
414
|
end
|
367
415
|
|
368
|
-
#
|
416
|
+
# 查询冷热分层backend节点信息列表
|
369
417
|
|
370
|
-
# @param request: Request instance for
|
371
|
-
# @type request: :class:`Tencentcloud::cdwdoris::V20211228::
|
372
|
-
# @rtype: :class:`Tencentcloud::cdwdoris::V20211228::
|
373
|
-
def
|
374
|
-
body = send_request('
|
418
|
+
# @param request: Request instance for DescribeCoolDownBackends.
|
419
|
+
# @type request: :class:`Tencentcloud::cdwdoris::V20211228::DescribeCoolDownBackendsRequest`
|
420
|
+
# @rtype: :class:`Tencentcloud::cdwdoris::V20211228::DescribeCoolDownBackendsResponse`
|
421
|
+
def DescribeCoolDownBackends(request)
|
422
|
+
body = send_request('DescribeCoolDownBackends', request.serialize)
|
375
423
|
response = JSON.parse(body)
|
376
424
|
if response['Response'].key?('Error') == false
|
377
|
-
model =
|
425
|
+
model = DescribeCoolDownBackendsResponse.new
|
378
426
|
model.deserialize(response['Response'])
|
379
427
|
model
|
380
428
|
else
|
@@ -389,16 +437,16 @@ module TencentCloud
|
|
389
437
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
390
438
|
end
|
391
439
|
|
392
|
-
#
|
440
|
+
# 查询冷热分层策略列表
|
393
441
|
|
394
|
-
# @param request: Request instance for
|
395
|
-
# @type request: :class:`Tencentcloud::cdwdoris::V20211228::
|
396
|
-
# @rtype: :class:`Tencentcloud::cdwdoris::V20211228::
|
397
|
-
def
|
398
|
-
body = send_request('
|
442
|
+
# @param request: Request instance for DescribeCoolDownPolicies.
|
443
|
+
# @type request: :class:`Tencentcloud::cdwdoris::V20211228::DescribeCoolDownPoliciesRequest`
|
444
|
+
# @rtype: :class:`Tencentcloud::cdwdoris::V20211228::DescribeCoolDownPoliciesResponse`
|
445
|
+
def DescribeCoolDownPolicies(request)
|
446
|
+
body = send_request('DescribeCoolDownPolicies', request.serialize)
|
399
447
|
response = JSON.parse(body)
|
400
448
|
if response['Response'].key?('Error') == false
|
401
|
-
model =
|
449
|
+
model = DescribeCoolDownPoliciesResponse.new
|
402
450
|
model.deserialize(response['Response'])
|
403
451
|
model
|
404
452
|
else
|
@@ -413,16 +461,16 @@ module TencentCloud
|
|
413
461
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
414
462
|
end
|
415
463
|
|
416
|
-
#
|
464
|
+
# 查询冷热分层Table数据
|
417
465
|
|
418
|
-
# @param request: Request instance for
|
419
|
-
# @type request: :class:`Tencentcloud::cdwdoris::V20211228::
|
420
|
-
# @rtype: :class:`Tencentcloud::cdwdoris::V20211228::
|
421
|
-
def
|
422
|
-
body = send_request('
|
466
|
+
# @param request: Request instance for DescribeCoolDownTableData.
|
467
|
+
# @type request: :class:`Tencentcloud::cdwdoris::V20211228::DescribeCoolDownTableDataRequest`
|
468
|
+
# @rtype: :class:`Tencentcloud::cdwdoris::V20211228::DescribeCoolDownTableDataResponse`
|
469
|
+
def DescribeCoolDownTableData(request)
|
470
|
+
body = send_request('DescribeCoolDownTableData', request.serialize)
|
423
471
|
response = JSON.parse(body)
|
424
472
|
if response['Response'].key?('Error') == false
|
425
|
-
model =
|
473
|
+
model = DescribeCoolDownTableDataResponse.new
|
426
474
|
model.deserialize(response['Response'])
|
427
475
|
model
|
428
476
|
else
|
@@ -437,88 +485,16 @@ module TencentCloud
|
|
437
485
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
438
486
|
end
|
439
487
|
|
440
|
-
#
|
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
|
-
# 查询前端内容
|
488
|
+
# 下载数据库审计日志
|
513
489
|
|
514
|
-
# @param request: Request instance for
|
515
|
-
# @type request: :class:`Tencentcloud::cdwdoris::V20211228::
|
516
|
-
# @rtype: :class:`Tencentcloud::cdwdoris::V20211228::
|
517
|
-
def
|
518
|
-
body = send_request('
|
490
|
+
# @param request: Request instance for DescribeDatabaseAuditDownload.
|
491
|
+
# @type request: :class:`Tencentcloud::cdwdoris::V20211228::DescribeDatabaseAuditDownloadRequest`
|
492
|
+
# @rtype: :class:`Tencentcloud::cdwdoris::V20211228::DescribeDatabaseAuditDownloadResponse`
|
493
|
+
def DescribeDatabaseAuditDownload(request)
|
494
|
+
body = send_request('DescribeDatabaseAuditDownload', request.serialize)
|
519
495
|
response = JSON.parse(body)
|
520
496
|
if response['Response'].key?('Error') == false
|
521
|
-
model =
|
497
|
+
model = DescribeDatabaseAuditDownloadResponse.new
|
522
498
|
model.deserialize(response['Response'])
|
523
499
|
model
|
524
500
|
else
|
@@ -533,16 +509,16 @@ module TencentCloud
|
|
533
509
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
534
510
|
end
|
535
511
|
|
536
|
-
#
|
512
|
+
# 获取数据库审计记录
|
537
513
|
|
538
|
-
# @param request: Request instance for
|
539
|
-
# @type request: :class:`Tencentcloud::cdwdoris::V20211228::
|
540
|
-
# @rtype: :class:`Tencentcloud::cdwdoris::V20211228::
|
541
|
-
def
|
542
|
-
body = send_request('
|
514
|
+
# @param request: Request instance for DescribeDatabaseAuditRecords.
|
515
|
+
# @type request: :class:`Tencentcloud::cdwdoris::V20211228::DescribeDatabaseAuditRecordsRequest`
|
516
|
+
# @rtype: :class:`Tencentcloud::cdwdoris::V20211228::DescribeDatabaseAuditRecordsResponse`
|
517
|
+
def DescribeDatabaseAuditRecords(request)
|
518
|
+
body = send_request('DescribeDatabaseAuditRecords', request.serialize)
|
543
519
|
response = JSON.parse(body)
|
544
520
|
if response['Response'].key?('Error') == false
|
545
|
-
model =
|
521
|
+
model = DescribeDatabaseAuditRecordsResponse.new
|
546
522
|
model.deserialize(response['Response'])
|
547
523
|
model
|
548
524
|
else
|
@@ -773,54 +749,6 @@ module TencentCloud
|
|
773
749
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
774
750
|
end
|
775
751
|
|
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
752
|
# 查询恢复任务进度详情
|
825
753
|
|
826
754
|
# @param request: Request instance for DescribeRestoreTaskDetail.
|
@@ -1037,16 +965,16 @@ module TencentCloud
|
|
1037
965
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1038
966
|
end
|
1039
967
|
|
1040
|
-
#
|
968
|
+
# 修改冷热分层策略
|
1041
969
|
|
1042
|
-
# @param request: Request instance for
|
1043
|
-
# @type request: :class:`Tencentcloud::cdwdoris::V20211228::
|
1044
|
-
# @rtype: :class:`Tencentcloud::cdwdoris::V20211228::
|
1045
|
-
def
|
1046
|
-
body = send_request('
|
970
|
+
# @param request: Request instance for ModifyCoolDownPolicy.
|
971
|
+
# @type request: :class:`Tencentcloud::cdwdoris::V20211228::ModifyCoolDownPolicyRequest`
|
972
|
+
# @rtype: :class:`Tencentcloud::cdwdoris::V20211228::ModifyCoolDownPolicyResponse`
|
973
|
+
def ModifyCoolDownPolicy(request)
|
974
|
+
body = send_request('ModifyCoolDownPolicy', request.serialize)
|
1047
975
|
response = JSON.parse(body)
|
1048
976
|
if response['Response'].key?('Error') == false
|
1049
|
-
model =
|
977
|
+
model = ModifyCoolDownPolicyResponse.new
|
1050
978
|
model.deserialize(response['Response'])
|
1051
979
|
model
|
1052
980
|
else
|
@@ -1253,16 +1181,40 @@ module TencentCloud
|
|
1253
1181
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1254
1182
|
end
|
1255
1183
|
|
1256
|
-
#
|
1184
|
+
# 开始启用冷热分层
|
1257
1185
|
|
1258
|
-
# @param request: Request instance for
|
1259
|
-
# @type request: :class:`Tencentcloud::cdwdoris::V20211228::
|
1260
|
-
# @rtype: :class:`Tencentcloud::cdwdoris::V20211228::
|
1261
|
-
def
|
1262
|
-
body = send_request('
|
1186
|
+
# @param request: Request instance for OpenCoolDown.
|
1187
|
+
# @type request: :class:`Tencentcloud::cdwdoris::V20211228::OpenCoolDownRequest`
|
1188
|
+
# @rtype: :class:`Tencentcloud::cdwdoris::V20211228::OpenCoolDownResponse`
|
1189
|
+
def OpenCoolDown(request)
|
1190
|
+
body = send_request('OpenCoolDown', request.serialize)
|
1263
1191
|
response = JSON.parse(body)
|
1264
1192
|
if response['Response'].key?('Error') == false
|
1265
|
-
model =
|
1193
|
+
model = OpenCoolDownResponse.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 OpenCoolDownPolicy.
|
1211
|
+
# @type request: :class:`Tencentcloud::cdwdoris::V20211228::OpenCoolDownPolicyRequest`
|
1212
|
+
# @rtype: :class:`Tencentcloud::cdwdoris::V20211228::OpenCoolDownPolicyResponse`
|
1213
|
+
def OpenCoolDownPolicy(request)
|
1214
|
+
body = send_request('OpenCoolDownPolicy', request.serialize)
|
1215
|
+
response = JSON.parse(body)
|
1216
|
+
if response['Response'].key?('Error') == false
|
1217
|
+
model = OpenCoolDownPolicyResponse.new
|
1266
1218
|
model.deserialize(response['Response'])
|
1267
1219
|
model
|
1268
1220
|
else
|
@@ -1445,6 +1397,30 @@ module TencentCloud
|
|
1445
1397
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1446
1398
|
end
|
1447
1399
|
|
1400
|
+
# 更新集群冷热分层信息
|
1401
|
+
|
1402
|
+
# @param request: Request instance for UpdateCoolDown.
|
1403
|
+
# @type request: :class:`Tencentcloud::cdwdoris::V20211228::UpdateCoolDownRequest`
|
1404
|
+
# @rtype: :class:`Tencentcloud::cdwdoris::V20211228::UpdateCoolDownResponse`
|
1405
|
+
def UpdateCoolDown(request)
|
1406
|
+
body = send_request('UpdateCoolDown', request.serialize)
|
1407
|
+
response = JSON.parse(body)
|
1408
|
+
if response['Response'].key?('Error') == false
|
1409
|
+
model = UpdateCoolDownResponse.new
|
1410
|
+
model.deserialize(response['Response'])
|
1411
|
+
model
|
1412
|
+
else
|
1413
|
+
code = response['Response']['Error']['Code']
|
1414
|
+
message = response['Response']['Error']['Message']
|
1415
|
+
reqid = response['Response']['RequestId']
|
1416
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1417
|
+
end
|
1418
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1419
|
+
raise e
|
1420
|
+
rescue StandardError => e
|
1421
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1422
|
+
end
|
1423
|
+
|
1448
1424
|
|
1449
1425
|
end
|
1450
1426
|
end
|