tencentcloud-sdk-cynosdb 3.0.576 → 3.0.577
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/v20190107/client.rb +576 -0
- data/lib/v20190107/models.rb +1556 -57
- metadata +2 -2
data/lib/v20190107/client.rb
CHANGED
@@ -149,6 +149,78 @@ module TencentCloud
|
|
149
149
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
150
150
|
end
|
151
151
|
|
152
|
+
# 本接口(CloseClusterPasswordComplexity)用于关闭集群密码复杂度
|
153
|
+
|
154
|
+
# @param request: Request instance for CloseClusterPasswordComplexity.
|
155
|
+
# @type request: :class:`Tencentcloud::cynosdb::V20190107::CloseClusterPasswordComplexityRequest`
|
156
|
+
# @rtype: :class:`Tencentcloud::cynosdb::V20190107::CloseClusterPasswordComplexityResponse`
|
157
|
+
def CloseClusterPasswordComplexity(request)
|
158
|
+
body = send_request('CloseClusterPasswordComplexity', request.serialize)
|
159
|
+
response = JSON.parse(body)
|
160
|
+
if response['Response'].key?('Error') == false
|
161
|
+
model = CloseClusterPasswordComplexityResponse.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
|
+
# 本接口(CloseWan)用于关闭外网
|
177
|
+
|
178
|
+
# @param request: Request instance for CloseWan.
|
179
|
+
# @type request: :class:`Tencentcloud::cynosdb::V20190107::CloseWanRequest`
|
180
|
+
# @rtype: :class:`Tencentcloud::cynosdb::V20190107::CloseWanResponse`
|
181
|
+
def CloseWan(request)
|
182
|
+
body = send_request('CloseWan', request.serialize)
|
183
|
+
response = JSON.parse(body)
|
184
|
+
if response['Response'].key?('Error') == false
|
185
|
+
model = CloseWanResponse.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
|
+
# 本接口(CopyClusterPasswordComplexity)用于复制集群密码复杂度
|
201
|
+
|
202
|
+
# @param request: Request instance for CopyClusterPasswordComplexity.
|
203
|
+
# @type request: :class:`Tencentcloud::cynosdb::V20190107::CopyClusterPasswordComplexityRequest`
|
204
|
+
# @rtype: :class:`Tencentcloud::cynosdb::V20190107::CopyClusterPasswordComplexityResponse`
|
205
|
+
def CopyClusterPasswordComplexity(request)
|
206
|
+
body = send_request('CopyClusterPasswordComplexity', request.serialize)
|
207
|
+
response = JSON.parse(body)
|
208
|
+
if response['Response'].key?('Error') == false
|
209
|
+
model = CopyClusterPasswordComplexityResponse.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
|
+
|
152
224
|
# 创建账号
|
153
225
|
|
154
226
|
# @param request: Request instance for CreateAccounts.
|
@@ -245,6 +317,30 @@ module TencentCloud
|
|
245
317
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
246
318
|
end
|
247
319
|
|
320
|
+
# 创建数据库
|
321
|
+
|
322
|
+
# @param request: Request instance for CreateClusterDatabase.
|
323
|
+
# @type request: :class:`Tencentcloud::cynosdb::V20190107::CreateClusterDatabaseRequest`
|
324
|
+
# @rtype: :class:`Tencentcloud::cynosdb::V20190107::CreateClusterDatabaseResponse`
|
325
|
+
def CreateClusterDatabase(request)
|
326
|
+
body = send_request('CreateClusterDatabase', request.serialize)
|
327
|
+
response = JSON.parse(body)
|
328
|
+
if response['Response'].key?('Error') == false
|
329
|
+
model = CreateClusterDatabaseResponse.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
|
+
|
248
344
|
# 创建集群
|
249
345
|
|
250
346
|
# @param request: Request instance for CreateClusters.
|
@@ -269,6 +365,54 @@ module TencentCloud
|
|
269
365
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
270
366
|
end
|
271
367
|
|
368
|
+
# 本接口(CreateParamTemplate)用于创建参数模版
|
369
|
+
|
370
|
+
# @param request: Request instance for CreateParamTemplate.
|
371
|
+
# @type request: :class:`Tencentcloud::cynosdb::V20190107::CreateParamTemplateRequest`
|
372
|
+
# @rtype: :class:`Tencentcloud::cynosdb::V20190107::CreateParamTemplateResponse`
|
373
|
+
def CreateParamTemplate(request)
|
374
|
+
body = send_request('CreateParamTemplate', request.serialize)
|
375
|
+
response = JSON.parse(body)
|
376
|
+
if response['Response'].key?('Error') == false
|
377
|
+
model = CreateParamTemplateResponse.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 DeleteAccounts.
|
395
|
+
# @type request: :class:`Tencentcloud::cynosdb::V20190107::DeleteAccountsRequest`
|
396
|
+
# @rtype: :class:`Tencentcloud::cynosdb::V20190107::DeleteAccountsResponse`
|
397
|
+
def DeleteAccounts(request)
|
398
|
+
body = send_request('DeleteAccounts', request.serialize)
|
399
|
+
response = JSON.parse(body)
|
400
|
+
if response['Response'].key?('Error') == false
|
401
|
+
model = DeleteAccountsResponse.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
|
+
|
272
416
|
# 本接口(DeleteAuditLogFile)用于删除云数据库实例的审计日志文件。
|
273
417
|
|
274
418
|
# @param request: Request instance for DeleteAuditLogFile.
|
@@ -341,6 +485,54 @@ module TencentCloud
|
|
341
485
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
342
486
|
end
|
343
487
|
|
488
|
+
# 删除数据库
|
489
|
+
|
490
|
+
# @param request: Request instance for DeleteClusterDatabase.
|
491
|
+
# @type request: :class:`Tencentcloud::cynosdb::V20190107::DeleteClusterDatabaseRequest`
|
492
|
+
# @rtype: :class:`Tencentcloud::cynosdb::V20190107::DeleteClusterDatabaseResponse`
|
493
|
+
def DeleteClusterDatabase(request)
|
494
|
+
body = send_request('DeleteClusterDatabase', request.serialize)
|
495
|
+
response = JSON.parse(body)
|
496
|
+
if response['Response'].key?('Error') == false
|
497
|
+
model = DeleteClusterDatabaseResponse.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
|
+
# 本接口(DeleteParamTemplate)用于删除用户创建的参数模版。
|
513
|
+
|
514
|
+
# @param request: Request instance for DeleteParamTemplate.
|
515
|
+
# @type request: :class:`Tencentcloud::cynosdb::V20190107::DeleteParamTemplateRequest`
|
516
|
+
# @rtype: :class:`Tencentcloud::cynosdb::V20190107::DeleteParamTemplateResponse`
|
517
|
+
def DeleteParamTemplate(request)
|
518
|
+
body = send_request('DeleteParamTemplate', request.serialize)
|
519
|
+
response = JSON.parse(body)
|
520
|
+
if response['Response'].key?('Error') == false
|
521
|
+
model = DeleteParamTemplateResponse.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
|
+
|
344
536
|
# 账号所有权限
|
345
537
|
|
346
538
|
# @param request: Request instance for DescribeAccountAllGrantPrivileges.
|
@@ -365,6 +557,30 @@ module TencentCloud
|
|
365
557
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
366
558
|
end
|
367
559
|
|
560
|
+
# 查询账号已有权限
|
561
|
+
|
562
|
+
# @param request: Request instance for DescribeAccountPrivileges.
|
563
|
+
# @type request: :class:`Tencentcloud::cynosdb::V20190107::DescribeAccountPrivilegesRequest`
|
564
|
+
# @rtype: :class:`Tencentcloud::cynosdb::V20190107::DescribeAccountPrivilegesResponse`
|
565
|
+
def DescribeAccountPrivileges(request)
|
566
|
+
body = send_request('DescribeAccountPrivileges', request.serialize)
|
567
|
+
response = JSON.parse(body)
|
568
|
+
if response['Response'].key?('Error') == false
|
569
|
+
model = DescribeAccountPrivilegesResponse.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
|
+
|
368
584
|
# 本接口(DescribeAccounts)用于查询数据库管理账号。
|
369
585
|
|
370
586
|
# @param request: Request instance for DescribeAccounts.
|
@@ -653,6 +869,30 @@ module TencentCloud
|
|
653
869
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
654
870
|
end
|
655
871
|
|
872
|
+
# 查询数据库列表
|
873
|
+
|
874
|
+
# @param request: Request instance for DescribeClusterDetailDatabases.
|
875
|
+
# @type request: :class:`Tencentcloud::cynosdb::V20190107::DescribeClusterDetailDatabasesRequest`
|
876
|
+
# @rtype: :class:`Tencentcloud::cynosdb::V20190107::DescribeClusterDetailDatabasesResponse`
|
877
|
+
def DescribeClusterDetailDatabases(request)
|
878
|
+
body = send_request('DescribeClusterDetailDatabases', request.serialize)
|
879
|
+
response = JSON.parse(body)
|
880
|
+
if response['Response'].key?('Error') == false
|
881
|
+
model = DescribeClusterDetailDatabasesResponse.new
|
882
|
+
model.deserialize(response['Response'])
|
883
|
+
model
|
884
|
+
else
|
885
|
+
code = response['Response']['Error']['Code']
|
886
|
+
message = response['Response']['Error']['Message']
|
887
|
+
reqid = response['Response']['RequestId']
|
888
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
889
|
+
end
|
890
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
891
|
+
raise e
|
892
|
+
rescue StandardError => e
|
893
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
894
|
+
end
|
895
|
+
|
656
896
|
# 本接口(DescribeClusterInstanceGrps)用于查询实例组信息。
|
657
897
|
|
658
898
|
# @param request: Request instance for DescribeClusterInstanceGrps.
|
@@ -725,6 +965,30 @@ module TencentCloud
|
|
725
965
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
726
966
|
end
|
727
967
|
|
968
|
+
# 本接口(DescribeClusterPasswordComplexity)用于查看集群密码复杂度详情
|
969
|
+
|
970
|
+
# @param request: Request instance for DescribeClusterPasswordComplexity.
|
971
|
+
# @type request: :class:`Tencentcloud::cynosdb::V20190107::DescribeClusterPasswordComplexityRequest`
|
972
|
+
# @rtype: :class:`Tencentcloud::cynosdb::V20190107::DescribeClusterPasswordComplexityResponse`
|
973
|
+
def DescribeClusterPasswordComplexity(request)
|
974
|
+
body = send_request('DescribeClusterPasswordComplexity', request.serialize)
|
975
|
+
response = JSON.parse(body)
|
976
|
+
if response['Response'].key?('Error') == false
|
977
|
+
model = DescribeClusterPasswordComplexityResponse.new
|
978
|
+
model.deserialize(response['Response'])
|
979
|
+
model
|
980
|
+
else
|
981
|
+
code = response['Response']['Error']['Code']
|
982
|
+
message = response['Response']['Error']['Message']
|
983
|
+
reqid = response['Response']['RequestId']
|
984
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
985
|
+
end
|
986
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
987
|
+
raise e
|
988
|
+
rescue StandardError => e
|
989
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
990
|
+
end
|
991
|
+
|
728
992
|
# 查询集群列表
|
729
993
|
|
730
994
|
# @param request: Request instance for DescribeClusters.
|
@@ -845,6 +1109,30 @@ module TencentCloud
|
|
845
1109
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
846
1110
|
end
|
847
1111
|
|
1112
|
+
# 该接口(DescribeInstanceParams)查询实例参数列表
|
1113
|
+
|
1114
|
+
# @param request: Request instance for DescribeInstanceParams.
|
1115
|
+
# @type request: :class:`Tencentcloud::cynosdb::V20190107::DescribeInstanceParamsRequest`
|
1116
|
+
# @rtype: :class:`Tencentcloud::cynosdb::V20190107::DescribeInstanceParamsResponse`
|
1117
|
+
def DescribeInstanceParams(request)
|
1118
|
+
body = send_request('DescribeInstanceParams', request.serialize)
|
1119
|
+
response = JSON.parse(body)
|
1120
|
+
if response['Response'].key?('Error') == false
|
1121
|
+
model = DescribeInstanceParamsResponse.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
|
+
|
848
1136
|
# 此接口(DescribeInstanceSlowQueries)用于查询实例慢查询日志。
|
849
1137
|
|
850
1138
|
# @param request: Request instance for DescribeInstanceSlowQueries.
|
@@ -941,6 +1229,30 @@ module TencentCloud
|
|
941
1229
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
942
1230
|
end
|
943
1231
|
|
1232
|
+
# 本接口(DescribeParamTemplateDetail)用于查询用户参数模版详情
|
1233
|
+
|
1234
|
+
# @param request: Request instance for DescribeParamTemplateDetail.
|
1235
|
+
# @type request: :class:`Tencentcloud::cynosdb::V20190107::DescribeParamTemplateDetailRequest`
|
1236
|
+
# @rtype: :class:`Tencentcloud::cynosdb::V20190107::DescribeParamTemplateDetailResponse`
|
1237
|
+
def DescribeParamTemplateDetail(request)
|
1238
|
+
body = send_request('DescribeParamTemplateDetail', request.serialize)
|
1239
|
+
response = JSON.parse(body)
|
1240
|
+
if response['Response'].key?('Error') == false
|
1241
|
+
model = DescribeParamTemplateDetailResponse.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
|
+
|
944
1256
|
# 查询用户指定产品下的所有参数模板信息
|
945
1257
|
|
946
1258
|
# @param request: Request instance for DescribeParamTemplates.
|
@@ -1277,6 +1589,54 @@ module TencentCloud
|
|
1277
1589
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1278
1590
|
end
|
1279
1591
|
|
1592
|
+
# 本接口(ModifyAccountDescription)用于修改数据库账号描述信息。
|
1593
|
+
|
1594
|
+
# @param request: Request instance for ModifyAccountDescription.
|
1595
|
+
# @type request: :class:`Tencentcloud::cynosdb::V20190107::ModifyAccountDescriptionRequest`
|
1596
|
+
# @rtype: :class:`Tencentcloud::cynosdb::V20190107::ModifyAccountDescriptionResponse`
|
1597
|
+
def ModifyAccountDescription(request)
|
1598
|
+
body = send_request('ModifyAccountDescription', request.serialize)
|
1599
|
+
response = JSON.parse(body)
|
1600
|
+
if response['Response'].key?('Error') == false
|
1601
|
+
model = ModifyAccountDescriptionResponse.new
|
1602
|
+
model.deserialize(response['Response'])
|
1603
|
+
model
|
1604
|
+
else
|
1605
|
+
code = response['Response']['Error']['Code']
|
1606
|
+
message = response['Response']['Error']['Message']
|
1607
|
+
reqid = response['Response']['RequestId']
|
1608
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1609
|
+
end
|
1610
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1611
|
+
raise e
|
1612
|
+
rescue StandardError => e
|
1613
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1614
|
+
end
|
1615
|
+
|
1616
|
+
# 修改账号主机
|
1617
|
+
|
1618
|
+
# @param request: Request instance for ModifyAccountHost.
|
1619
|
+
# @type request: :class:`Tencentcloud::cynosdb::V20190107::ModifyAccountHostRequest`
|
1620
|
+
# @rtype: :class:`Tencentcloud::cynosdb::V20190107::ModifyAccountHostResponse`
|
1621
|
+
def ModifyAccountHost(request)
|
1622
|
+
body = send_request('ModifyAccountHost', request.serialize)
|
1623
|
+
response = JSON.parse(body)
|
1624
|
+
if response['Response'].key?('Error') == false
|
1625
|
+
model = ModifyAccountHostResponse.new
|
1626
|
+
model.deserialize(response['Response'])
|
1627
|
+
model
|
1628
|
+
else
|
1629
|
+
code = response['Response']['Error']['Code']
|
1630
|
+
message = response['Response']['Error']['Message']
|
1631
|
+
reqid = response['Response']['RequestId']
|
1632
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1633
|
+
end
|
1634
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1635
|
+
raise e
|
1636
|
+
rescue StandardError => e
|
1637
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1638
|
+
end
|
1639
|
+
|
1280
1640
|
# 修改账号参数
|
1281
1641
|
|
1282
1642
|
# @param request: Request instance for ModifyAccountParams.
|
@@ -1301,6 +1661,30 @@ module TencentCloud
|
|
1301
1661
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1302
1662
|
end
|
1303
1663
|
|
1664
|
+
# 修改账号权限
|
1665
|
+
|
1666
|
+
# @param request: Request instance for ModifyAccountPrivileges.
|
1667
|
+
# @type request: :class:`Tencentcloud::cynosdb::V20190107::ModifyAccountPrivilegesRequest`
|
1668
|
+
# @rtype: :class:`Tencentcloud::cynosdb::V20190107::ModifyAccountPrivilegesResponse`
|
1669
|
+
def ModifyAccountPrivileges(request)
|
1670
|
+
body = send_request('ModifyAccountPrivileges', request.serialize)
|
1671
|
+
response = JSON.parse(body)
|
1672
|
+
if response['Response'].key?('Error') == false
|
1673
|
+
model = ModifyAccountPrivilegesResponse.new
|
1674
|
+
model.deserialize(response['Response'])
|
1675
|
+
model
|
1676
|
+
else
|
1677
|
+
code = response['Response']['Error']['Code']
|
1678
|
+
message = response['Response']['Error']['Message']
|
1679
|
+
reqid = response['Response']['RequestId']
|
1680
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1681
|
+
end
|
1682
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1683
|
+
raise e
|
1684
|
+
rescue StandardError => e
|
1685
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1686
|
+
end
|
1687
|
+
|
1304
1688
|
# 修改审计规则模版
|
1305
1689
|
|
1306
1690
|
# @param request: Request instance for ModifyAuditRuleTemplates.
|
@@ -1397,6 +1781,54 @@ module TencentCloud
|
|
1397
1781
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1398
1782
|
end
|
1399
1783
|
|
1784
|
+
# 此接口(ModifyBinlogSaveDays)用于修改集群Binlog保留天数。
|
1785
|
+
|
1786
|
+
# @param request: Request instance for ModifyBinlogSaveDays.
|
1787
|
+
# @type request: :class:`Tencentcloud::cynosdb::V20190107::ModifyBinlogSaveDaysRequest`
|
1788
|
+
# @rtype: :class:`Tencentcloud::cynosdb::V20190107::ModifyBinlogSaveDaysResponse`
|
1789
|
+
def ModifyBinlogSaveDays(request)
|
1790
|
+
body = send_request('ModifyBinlogSaveDays', request.serialize)
|
1791
|
+
response = JSON.parse(body)
|
1792
|
+
if response['Response'].key?('Error') == false
|
1793
|
+
model = ModifyBinlogSaveDaysResponse.new
|
1794
|
+
model.deserialize(response['Response'])
|
1795
|
+
model
|
1796
|
+
else
|
1797
|
+
code = response['Response']['Error']['Code']
|
1798
|
+
message = response['Response']['Error']['Message']
|
1799
|
+
reqid = response['Response']['RequestId']
|
1800
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1801
|
+
end
|
1802
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1803
|
+
raise e
|
1804
|
+
rescue StandardError => e
|
1805
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1806
|
+
end
|
1807
|
+
|
1808
|
+
# 修改数据库
|
1809
|
+
|
1810
|
+
# @param request: Request instance for ModifyClusterDatabase.
|
1811
|
+
# @type request: :class:`Tencentcloud::cynosdb::V20190107::ModifyClusterDatabaseRequest`
|
1812
|
+
# @rtype: :class:`Tencentcloud::cynosdb::V20190107::ModifyClusterDatabaseResponse`
|
1813
|
+
def ModifyClusterDatabase(request)
|
1814
|
+
body = send_request('ModifyClusterDatabase', request.serialize)
|
1815
|
+
response = JSON.parse(body)
|
1816
|
+
if response['Response'].key?('Error') == false
|
1817
|
+
model = ModifyClusterDatabaseResponse.new
|
1818
|
+
model.deserialize(response['Response'])
|
1819
|
+
model
|
1820
|
+
else
|
1821
|
+
code = response['Response']['Error']['Code']
|
1822
|
+
message = response['Response']['Error']['Message']
|
1823
|
+
reqid = response['Response']['RequestId']
|
1824
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1825
|
+
end
|
1826
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1827
|
+
raise e
|
1828
|
+
rescue StandardError => e
|
1829
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1830
|
+
end
|
1831
|
+
|
1400
1832
|
# 修改集群名称
|
1401
1833
|
|
1402
1834
|
# @param request: Request instance for ModifyClusterName.
|
@@ -1445,6 +1877,30 @@ module TencentCloud
|
|
1445
1877
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1446
1878
|
end
|
1447
1879
|
|
1880
|
+
# 本接口(ModifyClusterPasswordComplexity)用于修改/开启集群密码复杂度
|
1881
|
+
|
1882
|
+
# @param request: Request instance for ModifyClusterPasswordComplexity.
|
1883
|
+
# @type request: :class:`Tencentcloud::cynosdb::V20190107::ModifyClusterPasswordComplexityRequest`
|
1884
|
+
# @rtype: :class:`Tencentcloud::cynosdb::V20190107::ModifyClusterPasswordComplexityResponse`
|
1885
|
+
def ModifyClusterPasswordComplexity(request)
|
1886
|
+
body = send_request('ModifyClusterPasswordComplexity', request.serialize)
|
1887
|
+
response = JSON.parse(body)
|
1888
|
+
if response['Response'].key?('Error') == false
|
1889
|
+
model = ModifyClusterPasswordComplexityResponse.new
|
1890
|
+
model.deserialize(response['Response'])
|
1891
|
+
model
|
1892
|
+
else
|
1893
|
+
code = response['Response']['Error']['Code']
|
1894
|
+
message = response['Response']['Error']['Message']
|
1895
|
+
reqid = response['Response']['RequestId']
|
1896
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1897
|
+
end
|
1898
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1899
|
+
raise e
|
1900
|
+
rescue StandardError => e
|
1901
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1902
|
+
end
|
1903
|
+
|
1448
1904
|
# 修改从可用区
|
1449
1905
|
|
1450
1906
|
# @param request: Request instance for ModifyClusterSlaveZone.
|
@@ -1541,6 +1997,30 @@ module TencentCloud
|
|
1541
1997
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1542
1998
|
end
|
1543
1999
|
|
2000
|
+
# 本接口(ModifyInstanceParam)用于修改实例参数。
|
2001
|
+
|
2002
|
+
# @param request: Request instance for ModifyInstanceParam.
|
2003
|
+
# @type request: :class:`Tencentcloud::cynosdb::V20190107::ModifyInstanceParamRequest`
|
2004
|
+
# @rtype: :class:`Tencentcloud::cynosdb::V20190107::ModifyInstanceParamResponse`
|
2005
|
+
def ModifyInstanceParam(request)
|
2006
|
+
body = send_request('ModifyInstanceParam', request.serialize)
|
2007
|
+
response = JSON.parse(body)
|
2008
|
+
if response['Response'].key?('Error') == false
|
2009
|
+
model = ModifyInstanceParamResponse.new
|
2010
|
+
model.deserialize(response['Response'])
|
2011
|
+
model
|
2012
|
+
else
|
2013
|
+
code = response['Response']['Error']['Code']
|
2014
|
+
message = response['Response']['Error']['Message']
|
2015
|
+
reqid = response['Response']['RequestId']
|
2016
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
2017
|
+
end
|
2018
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
2019
|
+
raise e
|
2020
|
+
rescue StandardError => e
|
2021
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
2022
|
+
end
|
2023
|
+
|
1544
2024
|
# 修改维护时间配置
|
1545
2025
|
|
1546
2026
|
# @param request: Request instance for ModifyMaintainPeriodConfig.
|
@@ -1565,6 +2045,30 @@ module TencentCloud
|
|
1565
2045
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1566
2046
|
end
|
1567
2047
|
|
2048
|
+
# 本接口(ModifyParamTemplate)用于修改用户参数模版。
|
2049
|
+
|
2050
|
+
# @param request: Request instance for ModifyParamTemplate.
|
2051
|
+
# @type request: :class:`Tencentcloud::cynosdb::V20190107::ModifyParamTemplateRequest`
|
2052
|
+
# @rtype: :class:`Tencentcloud::cynosdb::V20190107::ModifyParamTemplateResponse`
|
2053
|
+
def ModifyParamTemplate(request)
|
2054
|
+
body = send_request('ModifyParamTemplate', request.serialize)
|
2055
|
+
response = JSON.parse(body)
|
2056
|
+
if response['Response'].key?('Error') == false
|
2057
|
+
model = ModifyParamTemplateResponse.new
|
2058
|
+
model.deserialize(response['Response'])
|
2059
|
+
model
|
2060
|
+
else
|
2061
|
+
code = response['Response']['Error']['Code']
|
2062
|
+
message = response['Response']['Error']['Message']
|
2063
|
+
reqid = response['Response']['RequestId']
|
2064
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
2065
|
+
end
|
2066
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
2067
|
+
raise e
|
2068
|
+
rescue StandardError => e
|
2069
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
2070
|
+
end
|
2071
|
+
|
1568
2072
|
# 修改实例组ip,端口
|
1569
2073
|
|
1570
2074
|
# @param request: Request instance for ModifyVipVport.
|
@@ -1661,6 +2165,30 @@ module TencentCloud
|
|
1661
2165
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1662
2166
|
end
|
1663
2167
|
|
2168
|
+
# 本接口(OpenClusterPasswordComplexity)用于开启集群密码复杂度
|
2169
|
+
|
2170
|
+
# @param request: Request instance for OpenClusterPasswordComplexity.
|
2171
|
+
# @type request: :class:`Tencentcloud::cynosdb::V20190107::OpenClusterPasswordComplexityRequest`
|
2172
|
+
# @rtype: :class:`Tencentcloud::cynosdb::V20190107::OpenClusterPasswordComplexityResponse`
|
2173
|
+
def OpenClusterPasswordComplexity(request)
|
2174
|
+
body = send_request('OpenClusterPasswordComplexity', request.serialize)
|
2175
|
+
response = JSON.parse(body)
|
2176
|
+
if response['Response'].key?('Error') == false
|
2177
|
+
model = OpenClusterPasswordComplexityResponse.new
|
2178
|
+
model.deserialize(response['Response'])
|
2179
|
+
model
|
2180
|
+
else
|
2181
|
+
code = response['Response']['Error']['Code']
|
2182
|
+
message = response['Response']['Error']['Message']
|
2183
|
+
reqid = response['Response']['RequestId']
|
2184
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
2185
|
+
end
|
2186
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
2187
|
+
raise e
|
2188
|
+
rescue StandardError => e
|
2189
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
2190
|
+
end
|
2191
|
+
|
1664
2192
|
# 开通只读实例独有访问接入组
|
1665
2193
|
|
1666
2194
|
# @param request: Request instance for OpenReadOnlyInstanceExclusiveAccess.
|
@@ -1685,6 +2213,30 @@ module TencentCloud
|
|
1685
2213
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1686
2214
|
end
|
1687
2215
|
|
2216
|
+
# 本接口(OpenWan)用于开通外网
|
2217
|
+
|
2218
|
+
# @param request: Request instance for OpenWan.
|
2219
|
+
# @type request: :class:`Tencentcloud::cynosdb::V20190107::OpenWanRequest`
|
2220
|
+
# @rtype: :class:`Tencentcloud::cynosdb::V20190107::OpenWanResponse`
|
2221
|
+
def OpenWan(request)
|
2222
|
+
body = send_request('OpenWan', request.serialize)
|
2223
|
+
response = JSON.parse(body)
|
2224
|
+
if response['Response'].key?('Error') == false
|
2225
|
+
model = OpenWanResponse.new
|
2226
|
+
model.deserialize(response['Response'])
|
2227
|
+
model
|
2228
|
+
else
|
2229
|
+
code = response['Response']['Error']['Code']
|
2230
|
+
message = response['Response']['Error']['Message']
|
2231
|
+
reqid = response['Response']['RequestId']
|
2232
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
2233
|
+
end
|
2234
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
2235
|
+
raise e
|
2236
|
+
rescue StandardError => e
|
2237
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
2238
|
+
end
|
2239
|
+
|
1688
2240
|
# 暂停serverless集群
|
1689
2241
|
|
1690
2242
|
# @param request: Request instance for PauseServerless.
|
@@ -1997,6 +2549,30 @@ module TencentCloud
|
|
1997
2549
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1998
2550
|
end
|
1999
2551
|
|
2552
|
+
# 更新集群Cynos内核版本
|
2553
|
+
|
2554
|
+
# @param request: Request instance for UpgradeClusterVersion.
|
2555
|
+
# @type request: :class:`Tencentcloud::cynosdb::V20190107::UpgradeClusterVersionRequest`
|
2556
|
+
# @rtype: :class:`Tencentcloud::cynosdb::V20190107::UpgradeClusterVersionResponse`
|
2557
|
+
def UpgradeClusterVersion(request)
|
2558
|
+
body = send_request('UpgradeClusterVersion', request.serialize)
|
2559
|
+
response = JSON.parse(body)
|
2560
|
+
if response['Response'].key?('Error') == false
|
2561
|
+
model = UpgradeClusterVersionResponse.new
|
2562
|
+
model.deserialize(response['Response'])
|
2563
|
+
model
|
2564
|
+
else
|
2565
|
+
code = response['Response']['Error']['Code']
|
2566
|
+
message = response['Response']['Error']['Message']
|
2567
|
+
reqid = response['Response']['RequestId']
|
2568
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
2569
|
+
end
|
2570
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
2571
|
+
raise e
|
2572
|
+
rescue StandardError => e
|
2573
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
2574
|
+
end
|
2575
|
+
|
2000
2576
|
# 升级实例
|
2001
2577
|
|
2002
2578
|
# @param request: Request instance for UpgradeInstance.
|