tccli 3.0.1004.1__py2.py3-none-any.whl → 3.0.1005.1__py2.py3-none-any.whl

Sign up to get free protection for your applications and to get access to all the features.
Files changed (102) hide show
  1. tccli/__init__.py +1 -1
  2. tccli/examples/cvm/v20170312/CreateLaunchTemplate.md +1 -1
  3. tccli/examples/cvm/v20170312/RenewInstances.md +2 -2
  4. tccli/examples/cvm/v20170312/ResetInstancesPassword.md +1 -1
  5. tccli/examples/cvm/v20170312/StopInstances.md +1 -1
  6. tccli/examples/cwp/v20180228/DescribeMachineInfo.md +20 -20
  7. tccli/examples/cynosdb/v20190107/CreateClusterDatabase.md +9 -9
  8. tccli/examples/cynosdb/v20190107/DescribeClusterParams.md +18 -28
  9. tccli/examples/cynosdb/v20190107/DescribeClusters.md +70 -77
  10. tccli/examples/cynosdb/v20190107/DescribeZones.md +27 -29
  11. tccli/examples/cynosdb/v20190107/ModifyAccountHost.md +5 -5
  12. tccli/examples/cynosdb/v20190107/ModifyProxyDesc.md +4 -4
  13. tccli/examples/cynosdb/v20190107/ReloadBalanceProxyNode.md +5 -5
  14. tccli/examples/essbasic/v20210526/OperateChannelTemplate.md +22 -22
  15. tccli/examples/hai/v20230812/DescribeApplications.md +2 -1
  16. tccli/examples/sqlserver/v20180328/BalanceReadOnlyGroup.md +21 -0
  17. tccli/examples/sqlserver/v20180328/DeleteRestoreTask.md +21 -0
  18. tccli/examples/sqlserver/v20180328/DescribeAccountPrivilegeByDB.md +31 -0
  19. tccli/examples/sqlserver/v20180328/DescribeCollationTimeZone.md +24 -0
  20. tccli/examples/sqlserver/v20180328/DescribeCrossRegions.md +27 -0
  21. tccli/examples/sqlserver/v20180328/DescribeDBPrivilegeByAccount.md +46 -0
  22. tccli/examples/sqlserver/v20180328/DescribeDBRestoreTime.md +31 -0
  23. tccli/examples/sqlserver/v20180328/DescribeDatabaseNames.md +27 -0
  24. tccli/examples/sqlserver/v20180328/DescribeInquiryPriceParameter.md +30 -0
  25. tccli/examples/sqlserver/v20180328/DescribeInstanceTasks.md +36 -0
  26. tccli/examples/sqlserver/v20180328/DescribeInstanceTradeParameter.md +37 -0
  27. tccli/examples/sqlserver/v20180328/DescribeProductSpec.md +81 -0
  28. tccli/examples/sqlserver/v20180328/DescribeReadOnlyGroupAutoWeight.md +60 -0
  29. tccli/examples/sqlserver/v20180328/DescribeRestoreTask.md +46 -0
  30. tccli/examples/sqlserver/v20180328/DescribeSpecSellStatus.md +124 -0
  31. tccli/examples/sqlserver/v20180328/DescribeUpgradeInstanceCheck.md +71 -0
  32. tccli/examples/sqlserver/v20180328/ModifyCloseWanIp.md +21 -0
  33. tccli/examples/sqlserver/v20180328/ModifyDBInstanceNote.md +21 -0
  34. tccli/examples/sqlserver/v20180328/ModifyOpenWanIp.md +21 -0
  35. tccli/examples/sqlserver/v20180328/ModifyPublishSubscribe.md +51 -0
  36. tccli/examples/tbaas/v20180416/DescribeFabricBlock.md +37 -0
  37. tccli/examples/tbaas/v20180416/DescribeFabricTransaction.md +33 -0
  38. tccli/examples/tbaas/v20180416/InvokeFabricChaincode.md +28 -0
  39. tccli/examples/tbaas/v20180416/QueryFabricChaincode.md +27 -0
  40. tccli/examples/tcss/v20201101/AddEditImageAutoAuthorizedRule.md +1 -1
  41. tccli/examples/tcss/v20201101/CreateAssetImageScanSetting.md +4 -4
  42. tccli/examples/tcss/v20201101/DescribeAssetImageDetail.md +28 -27
  43. tccli/examples/tcss/v20201101/DescribeImageAutoAuthorizedRule.md +2 -2
  44. tccli/examples/tcss/v20201101/RenewImageAuthorizeState.md +2 -2
  45. tccli/examples/tke/v20180525/DescribeClusterEndpoints.md +1 -0
  46. tccli/examples/tke/v20180525/DescribeClusterExtraArgs.md +31 -0
  47. tccli/examples/tke/v20180525/DescribeExternalNodeSupportConfig.md +81 -0
  48. tccli/examples/tke/v20180525/DescribeIPAMD.md +26 -0
  49. tccli/examples/trocket/v20230308/ImportSourceClusterConsumerGroups.md +23 -0
  50. tccli/examples/trocket/v20230308/ImportSourceClusterTopics.md +25 -0
  51. tccli/examples/wedata/v20210820/DescribeApproveList.md +43 -161
  52. tccli/examples/wedata/v20210820/DescribeApproveTypeList.md +64 -0
  53. tccli/services/__init__.py +1 -5
  54. tccli/services/billing/v20180709/api.json +10 -10
  55. tccli/services/cdb/v20170320/api.json +10 -1
  56. tccli/services/cloudstudio/cloudstudio_client.py +30 -1042
  57. tccli/services/cvm/v20170312/api.json +68 -68
  58. tccli/services/cvm/v20170312/examples.json +4 -4
  59. tccli/services/cwp/v20180228/api.json +20 -0
  60. tccli/services/cwp/v20180228/examples.json +1 -1
  61. tccli/services/cynosdb/v20190107/api.json +10 -11
  62. tccli/services/cynosdb/v20190107/examples.json +14 -14
  63. tccli/services/dsgc/v20190723/api.json +48 -41
  64. tccli/services/ess/v20201111/api.json +9 -9
  65. tccli/services/essbasic/v20210526/api.json +10 -10
  66. tccli/services/essbasic/v20210526/examples.json +6 -6
  67. tccli/services/hai/v20230812/api.json +69 -69
  68. tccli/services/hai/v20230812/examples.json +1 -1
  69. tccli/services/sqlserver/sqlserver_client.py +1418 -358
  70. tccli/services/sqlserver/v20180328/api.json +2426 -172
  71. tccli/services/sqlserver/v20180328/examples.json +166 -0
  72. tccli/services/tbaas/tbaas_client.py +273 -61
  73. tccli/services/tbaas/v20180416/api.json +539 -0
  74. tccli/services/tbaas/v20180416/examples.json +32 -0
  75. tccli/services/tchd/v20230306/api.json +1 -1
  76. tccli/services/tcss/v20201101/api.json +443 -87
  77. tccli/services/tcss/v20201101/examples.json +7 -7
  78. tccli/services/tdmq/v20200217/api.json +9 -9
  79. tccli/services/tke/tke_client.py +159 -0
  80. tccli/services/tke/v20180525/api.json +375 -0
  81. tccli/services/tke/v20180525/examples.json +25 -1
  82. tccli/services/trocket/trocket_client.py +171 -65
  83. tccli/services/trocket/v20230308/api.json +230 -0
  84. tccli/services/trocket/v20230308/examples.json +16 -0
  85. tccli/services/tse/v20201207/api.json +57 -35
  86. tccli/services/vrs/v20200824/api.json +10 -0
  87. tccli/services/waf/v20180125/api.json +201 -54
  88. tccli/services/wedata/v20210820/api.json +144 -14
  89. tccli/services/wedata/v20210820/examples.json +16 -2
  90. tccli/services/wedata/wedata_client.py +53 -0
  91. tccli/services/weilingwith/v20230427/api.json +13 -13
  92. {tccli-3.0.1004.1.dist-info → tccli-3.0.1005.1.dist-info}/METADATA +2 -2
  93. {tccli-3.0.1004.1.dist-info → tccli-3.0.1005.1.dist-info}/RECORD +96 -72
  94. tccli/services/casb/__init__.py +0 -4
  95. tccli/services/casb/casb_client.py +0 -194
  96. tccli/services/casb/v20200507/api.json +0 -110
  97. tccli/services/casb/v20200507/examples.json +0 -19
  98. tccli/services/cloudstudio/v20210524/api.json +0 -2604
  99. tccli/services/cloudstudio/v20210524/examples.json +0 -205
  100. {tccli-3.0.1004.1.dist-info → tccli-3.0.1005.1.dist-info}/WHEEL +0 -0
  101. {tccli-3.0.1004.1.dist-info → tccli-3.0.1005.1.dist-info}/entry_points.txt +0 -0
  102. {tccli-3.0.1004.1.dist-info → tccli-3.0.1005.1.dist-info}/license_files/LICENSE +0 -0
@@ -17,7 +17,7 @@ from tencentcloud.sqlserver.v20180328 import models as models_v20180328
17
17
  from jmespath import search
18
18
  import time
19
19
 
20
- def doModifyAccountPrivilege(args, parsed_globals):
20
+ def doDescribeMigrations(args, parsed_globals):
21
21
  g_param = parse_global_arg(parsed_globals)
22
22
 
23
23
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -46,11 +46,11 @@ def doModifyAccountPrivilege(args, parsed_globals):
46
46
  client = mod.SqlserverClient(cred, g_param[OptionsDefine.Region], profile)
47
47
  client._sdkVersion += ("_CLI_" + __version__)
48
48
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
49
- model = models.ModifyAccountPrivilegeRequest()
49
+ model = models.DescribeMigrationsRequest()
50
50
  model.from_json_string(json.dumps(args))
51
51
  start_time = time.time()
52
52
  while True:
53
- rsp = client.ModifyAccountPrivilege(model)
53
+ rsp = client.DescribeMigrations(model)
54
54
  result = rsp.to_json_string()
55
55
  try:
56
56
  json_obj = json.loads(result)
@@ -69,7 +69,7 @@ def doModifyAccountPrivilege(args, parsed_globals):
69
69
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
70
70
 
71
71
 
72
- def doDescribeUploadIncrementalInfo(args, parsed_globals):
72
+ def doRecycleReadOnlyGroup(args, parsed_globals):
73
73
  g_param = parse_global_arg(parsed_globals)
74
74
 
75
75
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -98,11 +98,11 @@ def doDescribeUploadIncrementalInfo(args, parsed_globals):
98
98
  client = mod.SqlserverClient(cred, g_param[OptionsDefine.Region], profile)
99
99
  client._sdkVersion += ("_CLI_" + __version__)
100
100
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
101
- model = models.DescribeUploadIncrementalInfoRequest()
101
+ model = models.RecycleReadOnlyGroupRequest()
102
102
  model.from_json_string(json.dumps(args))
103
103
  start_time = time.time()
104
104
  while True:
105
- rsp = client.DescribeUploadIncrementalInfo(model)
105
+ rsp = client.RecycleReadOnlyGroup(model)
106
106
  result = rsp.to_json_string()
107
107
  try:
108
108
  json_obj = json.loads(result)
@@ -121,7 +121,7 @@ def doDescribeUploadIncrementalInfo(args, parsed_globals):
121
121
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
122
122
 
123
123
 
124
- def doRecycleReadOnlyGroup(args, parsed_globals):
124
+ def doDescribeDatabaseNames(args, parsed_globals):
125
125
  g_param = parse_global_arg(parsed_globals)
126
126
 
127
127
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -150,11 +150,11 @@ def doRecycleReadOnlyGroup(args, parsed_globals):
150
150
  client = mod.SqlserverClient(cred, g_param[OptionsDefine.Region], profile)
151
151
  client._sdkVersion += ("_CLI_" + __version__)
152
152
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
153
- model = models.RecycleReadOnlyGroupRequest()
153
+ model = models.DescribeDatabaseNamesRequest()
154
154
  model.from_json_string(json.dumps(args))
155
155
  start_time = time.time()
156
156
  while True:
157
- rsp = client.RecycleReadOnlyGroup(model)
157
+ rsp = client.DescribeDatabaseNames(model)
158
158
  result = rsp.to_json_string()
159
159
  try:
160
160
  json_obj = json.loads(result)
@@ -225,7 +225,7 @@ def doModifyDBInstanceRenewFlag(args, parsed_globals):
225
225
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
226
226
 
227
227
 
228
- def doStartIncrementalMigration(args, parsed_globals):
228
+ def doDescribeSpecSellStatus(args, parsed_globals):
229
229
  g_param = parse_global_arg(parsed_globals)
230
230
 
231
231
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -254,11 +254,11 @@ def doStartIncrementalMigration(args, parsed_globals):
254
254
  client = mod.SqlserverClient(cred, g_param[OptionsDefine.Region], profile)
255
255
  client._sdkVersion += ("_CLI_" + __version__)
256
256
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
257
- model = models.StartIncrementalMigrationRequest()
257
+ model = models.DescribeSpecSellStatusRequest()
258
258
  model.from_json_string(json.dumps(args))
259
259
  start_time = time.time()
260
260
  while True:
261
- rsp = client.StartIncrementalMigration(model)
261
+ rsp = client.DescribeSpecSellStatus(model)
262
262
  result = rsp.to_json_string()
263
263
  try:
264
264
  json_obj = json.loads(result)
@@ -277,7 +277,7 @@ def doStartIncrementalMigration(args, parsed_globals):
277
277
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
278
278
 
279
279
 
280
- def doQueryMigrationCheckProcess(args, parsed_globals):
280
+ def doStartIncrementalMigration(args, parsed_globals):
281
281
  g_param = parse_global_arg(parsed_globals)
282
282
 
283
283
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -306,11 +306,11 @@ def doQueryMigrationCheckProcess(args, parsed_globals):
306
306
  client = mod.SqlserverClient(cred, g_param[OptionsDefine.Region], profile)
307
307
  client._sdkVersion += ("_CLI_" + __version__)
308
308
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
309
- model = models.QueryMigrationCheckProcessRequest()
309
+ model = models.StartIncrementalMigrationRequest()
310
310
  model.from_json_string(json.dumps(args))
311
311
  start_time = time.time()
312
312
  while True:
313
- rsp = client.QueryMigrationCheckProcess(model)
313
+ rsp = client.StartIncrementalMigration(model)
314
314
  result = rsp.to_json_string()
315
315
  try:
316
316
  json_obj = json.loads(result)
@@ -329,7 +329,7 @@ def doQueryMigrationCheckProcess(args, parsed_globals):
329
329
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
330
330
 
331
331
 
332
- def doModifyAccountRemark(args, parsed_globals):
332
+ def doQueryMigrationCheckProcess(args, parsed_globals):
333
333
  g_param = parse_global_arg(parsed_globals)
334
334
 
335
335
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -358,11 +358,11 @@ def doModifyAccountRemark(args, parsed_globals):
358
358
  client = mod.SqlserverClient(cred, g_param[OptionsDefine.Region], profile)
359
359
  client._sdkVersion += ("_CLI_" + __version__)
360
360
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
361
- model = models.ModifyAccountRemarkRequest()
361
+ model = models.QueryMigrationCheckProcessRequest()
362
362
  model.from_json_string(json.dumps(args))
363
363
  start_time = time.time()
364
364
  while True:
365
- rsp = client.ModifyAccountRemark(model)
365
+ rsp = client.QueryMigrationCheckProcess(model)
366
366
  result = rsp.to_json_string()
367
367
  try:
368
368
  json_obj = json.loads(result)
@@ -381,7 +381,7 @@ def doModifyAccountRemark(args, parsed_globals):
381
381
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
382
382
 
383
383
 
384
- def doModifyDBInstanceName(args, parsed_globals):
384
+ def doModifyAccountRemark(args, parsed_globals):
385
385
  g_param = parse_global_arg(parsed_globals)
386
386
 
387
387
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -410,11 +410,11 @@ def doModifyDBInstanceName(args, parsed_globals):
410
410
  client = mod.SqlserverClient(cred, g_param[OptionsDefine.Region], profile)
411
411
  client._sdkVersion += ("_CLI_" + __version__)
412
412
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
413
- model = models.ModifyDBInstanceNameRequest()
413
+ model = models.ModifyAccountRemarkRequest()
414
414
  model.from_json_string(json.dumps(args))
415
415
  start_time = time.time()
416
416
  while True:
417
- rsp = client.ModifyDBInstanceName(model)
417
+ rsp = client.ModifyAccountRemark(model)
418
418
  result = rsp.to_json_string()
419
419
  try:
420
420
  json_obj = json.loads(result)
@@ -433,7 +433,7 @@ def doModifyDBInstanceName(args, parsed_globals):
433
433
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
434
434
 
435
435
 
436
- def doTerminateDBInstance(args, parsed_globals):
436
+ def doModifyPublishSubscribe(args, parsed_globals):
437
437
  g_param = parse_global_arg(parsed_globals)
438
438
 
439
439
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -462,11 +462,11 @@ def doTerminateDBInstance(args, parsed_globals):
462
462
  client = mod.SqlserverClient(cred, g_param[OptionsDefine.Region], profile)
463
463
  client._sdkVersion += ("_CLI_" + __version__)
464
464
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
465
- model = models.TerminateDBInstanceRequest()
465
+ model = models.ModifyPublishSubscribeRequest()
466
466
  model.from_json_string(json.dumps(args))
467
467
  start_time = time.time()
468
468
  while True:
469
- rsp = client.TerminateDBInstance(model)
469
+ rsp = client.ModifyPublishSubscribe(model)
470
470
  result = rsp.to_json_string()
471
471
  try:
472
472
  json_obj = json.loads(result)
@@ -485,7 +485,7 @@ def doTerminateDBInstance(args, parsed_globals):
485
485
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
486
486
 
487
487
 
488
- def doModifyDatabaseMdf(args, parsed_globals):
488
+ def doModifyDBInstanceName(args, parsed_globals):
489
489
  g_param = parse_global_arg(parsed_globals)
490
490
 
491
491
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -514,11 +514,11 @@ def doModifyDatabaseMdf(args, parsed_globals):
514
514
  client = mod.SqlserverClient(cred, g_param[OptionsDefine.Region], profile)
515
515
  client._sdkVersion += ("_CLI_" + __version__)
516
516
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
517
- model = models.ModifyDatabaseMdfRequest()
517
+ model = models.ModifyDBInstanceNameRequest()
518
518
  model.from_json_string(json.dumps(args))
519
519
  start_time = time.time()
520
520
  while True:
521
- rsp = client.ModifyDatabaseMdf(model)
521
+ rsp = client.ModifyDBInstanceName(model)
522
522
  result = rsp.to_json_string()
523
523
  try:
524
524
  json_obj = json.loads(result)
@@ -537,7 +537,7 @@ def doModifyDatabaseMdf(args, parsed_globals):
537
537
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
538
538
 
539
539
 
540
- def doModifyDBRemark(args, parsed_globals):
540
+ def doTerminateDBInstance(args, parsed_globals):
541
541
  g_param = parse_global_arg(parsed_globals)
542
542
 
543
543
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -566,11 +566,11 @@ def doModifyDBRemark(args, parsed_globals):
566
566
  client = mod.SqlserverClient(cred, g_param[OptionsDefine.Region], profile)
567
567
  client._sdkVersion += ("_CLI_" + __version__)
568
568
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
569
- model = models.ModifyDBRemarkRequest()
569
+ model = models.TerminateDBInstanceRequest()
570
570
  model.from_json_string(json.dumps(args))
571
571
  start_time = time.time()
572
572
  while True:
573
- rsp = client.ModifyDBRemark(model)
573
+ rsp = client.TerminateDBInstance(model)
574
574
  result = rsp.to_json_string()
575
575
  try:
576
576
  json_obj = json.loads(result)
@@ -589,7 +589,7 @@ def doModifyDBRemark(args, parsed_globals):
589
589
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
590
590
 
591
591
 
592
- def doDeleteIncrementalMigration(args, parsed_globals):
592
+ def doModifyDatabaseMdf(args, parsed_globals):
593
593
  g_param = parse_global_arg(parsed_globals)
594
594
 
595
595
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -618,11 +618,11 @@ def doDeleteIncrementalMigration(args, parsed_globals):
618
618
  client = mod.SqlserverClient(cred, g_param[OptionsDefine.Region], profile)
619
619
  client._sdkVersion += ("_CLI_" + __version__)
620
620
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
621
- model = models.DeleteIncrementalMigrationRequest()
621
+ model = models.ModifyDatabaseMdfRequest()
622
622
  model.from_json_string(json.dumps(args))
623
623
  start_time = time.time()
624
624
  while True:
625
- rsp = client.DeleteIncrementalMigration(model)
625
+ rsp = client.ModifyDatabaseMdf(model)
626
626
  result = rsp.to_json_string()
627
627
  try:
628
628
  json_obj = json.loads(result)
@@ -641,7 +641,7 @@ def doDeleteIncrementalMigration(args, parsed_globals):
641
641
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
642
642
 
643
643
 
644
- def doModifyDBInstanceNetwork(args, parsed_globals):
644
+ def doModifyDBRemark(args, parsed_globals):
645
645
  g_param = parse_global_arg(parsed_globals)
646
646
 
647
647
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -670,11 +670,11 @@ def doModifyDBInstanceNetwork(args, parsed_globals):
670
670
  client = mod.SqlserverClient(cred, g_param[OptionsDefine.Region], profile)
671
671
  client._sdkVersion += ("_CLI_" + __version__)
672
672
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
673
- model = models.ModifyDBInstanceNetworkRequest()
673
+ model = models.ModifyDBRemarkRequest()
674
674
  model.from_json_string(json.dumps(args))
675
675
  start_time = time.time()
676
676
  while True:
677
- rsp = client.ModifyDBInstanceNetwork(model)
677
+ rsp = client.ModifyDBRemark(model)
678
678
  result = rsp.to_json_string()
679
679
  try:
680
680
  json_obj = json.loads(result)
@@ -693,7 +693,7 @@ def doModifyDBInstanceNetwork(args, parsed_globals):
693
693
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
694
694
 
695
695
 
696
- def doModifyDBInstanceSecurityGroups(args, parsed_globals):
696
+ def doDeleteIncrementalMigration(args, parsed_globals):
697
697
  g_param = parse_global_arg(parsed_globals)
698
698
 
699
699
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -722,11 +722,11 @@ def doModifyDBInstanceSecurityGroups(args, parsed_globals):
722
722
  client = mod.SqlserverClient(cred, g_param[OptionsDefine.Region], profile)
723
723
  client._sdkVersion += ("_CLI_" + __version__)
724
724
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
725
- model = models.ModifyDBInstanceSecurityGroupsRequest()
725
+ model = models.DeleteIncrementalMigrationRequest()
726
726
  model.from_json_string(json.dumps(args))
727
727
  start_time = time.time()
728
728
  while True:
729
- rsp = client.ModifyDBInstanceSecurityGroups(model)
729
+ rsp = client.DeleteIncrementalMigration(model)
730
730
  result = rsp.to_json_string()
731
731
  try:
732
732
  json_obj = json.loads(result)
@@ -745,7 +745,7 @@ def doModifyDBInstanceSecurityGroups(args, parsed_globals):
745
745
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
746
746
 
747
747
 
748
- def doModifyMaintenanceSpan(args, parsed_globals):
748
+ def doModifyDBInstanceNetwork(args, parsed_globals):
749
749
  g_param = parse_global_arg(parsed_globals)
750
750
 
751
751
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -774,11 +774,11 @@ def doModifyMaintenanceSpan(args, parsed_globals):
774
774
  client = mod.SqlserverClient(cred, g_param[OptionsDefine.Region], profile)
775
775
  client._sdkVersion += ("_CLI_" + __version__)
776
776
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
777
- model = models.ModifyMaintenanceSpanRequest()
777
+ model = models.ModifyDBInstanceNetworkRequest()
778
778
  model.from_json_string(json.dumps(args))
779
779
  start_time = time.time()
780
780
  while True:
781
- rsp = client.ModifyMaintenanceSpan(model)
781
+ rsp = client.ModifyDBInstanceNetwork(model)
782
782
  result = rsp.to_json_string()
783
783
  try:
784
784
  json_obj = json.loads(result)
@@ -797,7 +797,7 @@ def doModifyMaintenanceSpan(args, parsed_globals):
797
797
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
798
798
 
799
799
 
800
- def doDescribeMaintenanceSpan(args, parsed_globals):
800
+ def doModifyCloseWanIp(args, parsed_globals):
801
801
  g_param = parse_global_arg(parsed_globals)
802
802
 
803
803
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -826,11 +826,11 @@ def doDescribeMaintenanceSpan(args, parsed_globals):
826
826
  client = mod.SqlserverClient(cred, g_param[OptionsDefine.Region], profile)
827
827
  client._sdkVersion += ("_CLI_" + __version__)
828
828
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
829
- model = models.DescribeMaintenanceSpanRequest()
829
+ model = models.ModifyCloseWanIpRequest()
830
830
  model.from_json_string(json.dumps(args))
831
831
  start_time = time.time()
832
832
  while True:
833
- rsp = client.DescribeMaintenanceSpan(model)
833
+ rsp = client.ModifyCloseWanIp(model)
834
834
  result = rsp.to_json_string()
835
835
  try:
836
836
  json_obj = json.loads(result)
@@ -849,7 +849,7 @@ def doDescribeMaintenanceSpan(args, parsed_globals):
849
849
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
850
850
 
851
851
 
852
- def doDescribeReadOnlyGroupDetails(args, parsed_globals):
852
+ def doModifyDBInstanceSecurityGroups(args, parsed_globals):
853
853
  g_param = parse_global_arg(parsed_globals)
854
854
 
855
855
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -878,11 +878,11 @@ def doDescribeReadOnlyGroupDetails(args, parsed_globals):
878
878
  client = mod.SqlserverClient(cred, g_param[OptionsDefine.Region], profile)
879
879
  client._sdkVersion += ("_CLI_" + __version__)
880
880
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
881
- model = models.DescribeReadOnlyGroupDetailsRequest()
881
+ model = models.ModifyDBInstanceSecurityGroupsRequest()
882
882
  model.from_json_string(json.dumps(args))
883
883
  start_time = time.time()
884
884
  while True:
885
- rsp = client.DescribeReadOnlyGroupDetails(model)
885
+ rsp = client.ModifyDBInstanceSecurityGroups(model)
886
886
  result = rsp.to_json_string()
887
887
  try:
888
888
  json_obj = json.loads(result)
@@ -901,7 +901,7 @@ def doDescribeReadOnlyGroupDetails(args, parsed_globals):
901
901
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
902
902
 
903
903
 
904
- def doCreatePublishSubscribe(args, parsed_globals):
904
+ def doModifyMaintenanceSpan(args, parsed_globals):
905
905
  g_param = parse_global_arg(parsed_globals)
906
906
 
907
907
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -930,11 +930,11 @@ def doCreatePublishSubscribe(args, parsed_globals):
930
930
  client = mod.SqlserverClient(cred, g_param[OptionsDefine.Region], profile)
931
931
  client._sdkVersion += ("_CLI_" + __version__)
932
932
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
933
- model = models.CreatePublishSubscribeRequest()
933
+ model = models.ModifyMaintenanceSpanRequest()
934
934
  model.from_json_string(json.dumps(args))
935
935
  start_time = time.time()
936
936
  while True:
937
- rsp = client.CreatePublishSubscribe(model)
937
+ rsp = client.ModifyMaintenanceSpan(model)
938
938
  result = rsp.to_json_string()
939
939
  try:
940
940
  json_obj = json.loads(result)
@@ -953,7 +953,7 @@ def doCreatePublishSubscribe(args, parsed_globals):
953
953
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
954
954
 
955
955
 
956
- def doDescribeReadOnlyGroupByReadOnlyInstance(args, parsed_globals):
956
+ def doDescribeMaintenanceSpan(args, parsed_globals):
957
957
  g_param = parse_global_arg(parsed_globals)
958
958
 
959
959
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -982,11 +982,11 @@ def doDescribeReadOnlyGroupByReadOnlyInstance(args, parsed_globals):
982
982
  client = mod.SqlserverClient(cred, g_param[OptionsDefine.Region], profile)
983
983
  client._sdkVersion += ("_CLI_" + __version__)
984
984
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
985
- model = models.DescribeReadOnlyGroupByReadOnlyInstanceRequest()
985
+ model = models.DescribeMaintenanceSpanRequest()
986
986
  model.from_json_string(json.dumps(args))
987
987
  start_time = time.time()
988
988
  while True:
989
- rsp = client.DescribeReadOnlyGroupByReadOnlyInstance(model)
989
+ rsp = client.DescribeMaintenanceSpan(model)
990
990
  result = rsp.to_json_string()
991
991
  try:
992
992
  json_obj = json.loads(result)
@@ -1005,7 +1005,7 @@ def doDescribeReadOnlyGroupByReadOnlyInstance(args, parsed_globals):
1005
1005
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
1006
1006
 
1007
1007
 
1008
- def doDescribeRegularBackupPlan(args, parsed_globals):
1008
+ def doDescribeReadOnlyGroupDetails(args, parsed_globals):
1009
1009
  g_param = parse_global_arg(parsed_globals)
1010
1010
 
1011
1011
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -1034,11 +1034,11 @@ def doDescribeRegularBackupPlan(args, parsed_globals):
1034
1034
  client = mod.SqlserverClient(cred, g_param[OptionsDefine.Region], profile)
1035
1035
  client._sdkVersion += ("_CLI_" + __version__)
1036
1036
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
1037
- model = models.DescribeRegularBackupPlanRequest()
1037
+ model = models.DescribeReadOnlyGroupDetailsRequest()
1038
1038
  model.from_json_string(json.dumps(args))
1039
1039
  start_time = time.time()
1040
1040
  while True:
1041
- rsp = client.DescribeRegularBackupPlan(model)
1041
+ rsp = client.DescribeReadOnlyGroupDetails(model)
1042
1042
  result = rsp.to_json_string()
1043
1043
  try:
1044
1044
  json_obj = json.loads(result)
@@ -1057,7 +1057,7 @@ def doDescribeRegularBackupPlan(args, parsed_globals):
1057
1057
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
1058
1058
 
1059
1059
 
1060
- def doDescribePublishSubscribe(args, parsed_globals):
1060
+ def doDescribeBackupFiles(args, parsed_globals):
1061
1061
  g_param = parse_global_arg(parsed_globals)
1062
1062
 
1063
1063
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -1086,11 +1086,11 @@ def doDescribePublishSubscribe(args, parsed_globals):
1086
1086
  client = mod.SqlserverClient(cred, g_param[OptionsDefine.Region], profile)
1087
1087
  client._sdkVersion += ("_CLI_" + __version__)
1088
1088
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
1089
- model = models.DescribePublishSubscribeRequest()
1089
+ model = models.DescribeBackupFilesRequest()
1090
1090
  model.from_json_string(json.dumps(args))
1091
1091
  start_time = time.time()
1092
1092
  while True:
1093
- rsp = client.DescribePublishSubscribe(model)
1093
+ rsp = client.DescribeBackupFiles(model)
1094
1094
  result = rsp.to_json_string()
1095
1095
  try:
1096
1096
  json_obj = json.loads(result)
@@ -1109,7 +1109,7 @@ def doDescribePublishSubscribe(args, parsed_globals):
1109
1109
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
1110
1110
 
1111
1111
 
1112
- def doDescribeDatabases(args, parsed_globals):
1112
+ def doDescribeRollbackTime(args, parsed_globals):
1113
1113
  g_param = parse_global_arg(parsed_globals)
1114
1114
 
1115
1115
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -1138,11 +1138,11 @@ def doDescribeDatabases(args, parsed_globals):
1138
1138
  client = mod.SqlserverClient(cred, g_param[OptionsDefine.Region], profile)
1139
1139
  client._sdkVersion += ("_CLI_" + __version__)
1140
1140
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
1141
- model = models.DescribeDatabasesRequest()
1141
+ model = models.DescribeRollbackTimeRequest()
1142
1142
  model.from_json_string(json.dumps(args))
1143
1143
  start_time = time.time()
1144
1144
  while True:
1145
- rsp = client.DescribeDatabases(model)
1145
+ rsp = client.DescribeRollbackTime(model)
1146
1146
  result = rsp.to_json_string()
1147
1147
  try:
1148
1148
  json_obj = json.loads(result)
@@ -1161,7 +1161,7 @@ def doDescribeDatabases(args, parsed_globals):
1161
1161
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
1162
1162
 
1163
1163
 
1164
- def doDescribeReadOnlyGroupList(args, parsed_globals):
1164
+ def doDescribeReadOnlyGroupByReadOnlyInstance(args, parsed_globals):
1165
1165
  g_param = parse_global_arg(parsed_globals)
1166
1166
 
1167
1167
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -1190,11 +1190,11 @@ def doDescribeReadOnlyGroupList(args, parsed_globals):
1190
1190
  client = mod.SqlserverClient(cred, g_param[OptionsDefine.Region], profile)
1191
1191
  client._sdkVersion += ("_CLI_" + __version__)
1192
1192
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
1193
- model = models.DescribeReadOnlyGroupListRequest()
1193
+ model = models.DescribeReadOnlyGroupByReadOnlyInstanceRequest()
1194
1194
  model.from_json_string(json.dumps(args))
1195
1195
  start_time = time.time()
1196
1196
  while True:
1197
- rsp = client.DescribeReadOnlyGroupList(model)
1197
+ rsp = client.DescribeReadOnlyGroupByReadOnlyInstance(model)
1198
1198
  result = rsp.to_json_string()
1199
1199
  try:
1200
1200
  json_obj = json.loads(result)
@@ -1213,7 +1213,7 @@ def doDescribeReadOnlyGroupList(args, parsed_globals):
1213
1213
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
1214
1214
 
1215
1215
 
1216
- def doCreateBusinessDBInstances(args, parsed_globals):
1216
+ def doDescribeRegularBackupPlan(args, parsed_globals):
1217
1217
  g_param = parse_global_arg(parsed_globals)
1218
1218
 
1219
1219
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -1242,11 +1242,11 @@ def doCreateBusinessDBInstances(args, parsed_globals):
1242
1242
  client = mod.SqlserverClient(cred, g_param[OptionsDefine.Region], profile)
1243
1243
  client._sdkVersion += ("_CLI_" + __version__)
1244
1244
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
1245
- model = models.CreateBusinessDBInstancesRequest()
1245
+ model = models.DescribeRegularBackupPlanRequest()
1246
1246
  model.from_json_string(json.dumps(args))
1247
1247
  start_time = time.time()
1248
1248
  while True:
1249
- rsp = client.CreateBusinessDBInstances(model)
1249
+ rsp = client.DescribeRegularBackupPlan(model)
1250
1250
  result = rsp.to_json_string()
1251
1251
  try:
1252
1252
  json_obj = json.loads(result)
@@ -1265,7 +1265,7 @@ def doCreateBusinessDBInstances(args, parsed_globals):
1265
1265
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
1266
1266
 
1267
1267
 
1268
- def doDescribeBackupCommand(args, parsed_globals):
1268
+ def doDescribePublishSubscribe(args, parsed_globals):
1269
1269
  g_param = parse_global_arg(parsed_globals)
1270
1270
 
1271
1271
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -1294,11 +1294,11 @@ def doDescribeBackupCommand(args, parsed_globals):
1294
1294
  client = mod.SqlserverClient(cred, g_param[OptionsDefine.Region], profile)
1295
1295
  client._sdkVersion += ("_CLI_" + __version__)
1296
1296
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
1297
- model = models.DescribeBackupCommandRequest()
1297
+ model = models.DescribePublishSubscribeRequest()
1298
1298
  model.from_json_string(json.dumps(args))
1299
1299
  start_time = time.time()
1300
1300
  while True:
1301
- rsp = client.DescribeBackupCommand(model)
1301
+ rsp = client.DescribePublishSubscribe(model)
1302
1302
  result = rsp.to_json_string()
1303
1303
  try:
1304
1304
  json_obj = json.loads(result)
@@ -1317,7 +1317,7 @@ def doDescribeBackupCommand(args, parsed_globals):
1317
1317
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
1318
1318
 
1319
1319
 
1320
- def doDescribeUploadBackupInfo(args, parsed_globals):
1320
+ def doDescribeDatabases(args, parsed_globals):
1321
1321
  g_param = parse_global_arg(parsed_globals)
1322
1322
 
1323
1323
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -1346,11 +1346,11 @@ def doDescribeUploadBackupInfo(args, parsed_globals):
1346
1346
  client = mod.SqlserverClient(cred, g_param[OptionsDefine.Region], profile)
1347
1347
  client._sdkVersion += ("_CLI_" + __version__)
1348
1348
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
1349
- model = models.DescribeUploadBackupInfoRequest()
1349
+ model = models.DescribeDatabasesRequest()
1350
1350
  model.from_json_string(json.dumps(args))
1351
1351
  start_time = time.time()
1352
1352
  while True:
1353
- rsp = client.DescribeUploadBackupInfo(model)
1353
+ rsp = client.DescribeDatabases(model)
1354
1354
  result = rsp.to_json_string()
1355
1355
  try:
1356
1356
  json_obj = json.loads(result)
@@ -1369,7 +1369,7 @@ def doDescribeUploadBackupInfo(args, parsed_globals):
1369
1369
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
1370
1370
 
1371
1371
 
1372
- def doDescribeProductConfig(args, parsed_globals):
1372
+ def doDescribeReadOnlyGroupList(args, parsed_globals):
1373
1373
  g_param = parse_global_arg(parsed_globals)
1374
1374
 
1375
1375
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -1398,11 +1398,11 @@ def doDescribeProductConfig(args, parsed_globals):
1398
1398
  client = mod.SqlserverClient(cred, g_param[OptionsDefine.Region], profile)
1399
1399
  client._sdkVersion += ("_CLI_" + __version__)
1400
1400
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
1401
- model = models.DescribeProductConfigRequest()
1401
+ model = models.DescribeReadOnlyGroupListRequest()
1402
1402
  model.from_json_string(json.dumps(args))
1403
1403
  start_time = time.time()
1404
1404
  while True:
1405
- rsp = client.DescribeProductConfig(model)
1405
+ rsp = client.DescribeReadOnlyGroupList(model)
1406
1406
  result = rsp.to_json_string()
1407
1407
  try:
1408
1408
  json_obj = json.loads(result)
@@ -1421,7 +1421,7 @@ def doDescribeProductConfig(args, parsed_globals):
1421
1421
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
1422
1422
 
1423
1423
 
1424
- def doDisassociateSecurityGroups(args, parsed_globals):
1424
+ def doCreateBusinessDBInstances(args, parsed_globals):
1425
1425
  g_param = parse_global_arg(parsed_globals)
1426
1426
 
1427
1427
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -1450,11 +1450,11 @@ def doDisassociateSecurityGroups(args, parsed_globals):
1450
1450
  client = mod.SqlserverClient(cred, g_param[OptionsDefine.Region], profile)
1451
1451
  client._sdkVersion += ("_CLI_" + __version__)
1452
1452
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
1453
- model = models.DisassociateSecurityGroupsRequest()
1453
+ model = models.CreateBusinessDBInstancesRequest()
1454
1454
  model.from_json_string(json.dumps(args))
1455
1455
  start_time = time.time()
1456
1456
  while True:
1457
- rsp = client.DisassociateSecurityGroups(model)
1457
+ rsp = client.CreateBusinessDBInstances(model)
1458
1458
  result = rsp.to_json_string()
1459
1459
  try:
1460
1460
  json_obj = json.loads(result)
@@ -1473,7 +1473,7 @@ def doDisassociateSecurityGroups(args, parsed_globals):
1473
1473
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
1474
1474
 
1475
1475
 
1476
- def doDeleteDBInstance(args, parsed_globals):
1476
+ def doDescribeBackupCommand(args, parsed_globals):
1477
1477
  g_param = parse_global_arg(parsed_globals)
1478
1478
 
1479
1479
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -1502,11 +1502,11 @@ def doDeleteDBInstance(args, parsed_globals):
1502
1502
  client = mod.SqlserverClient(cred, g_param[OptionsDefine.Region], profile)
1503
1503
  client._sdkVersion += ("_CLI_" + __version__)
1504
1504
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
1505
- model = models.DeleteDBInstanceRequest()
1505
+ model = models.DescribeBackupCommandRequest()
1506
1506
  model.from_json_string(json.dumps(args))
1507
1507
  start_time = time.time()
1508
1508
  while True:
1509
- rsp = client.DeleteDBInstance(model)
1509
+ rsp = client.DescribeBackupCommand(model)
1510
1510
  result = rsp.to_json_string()
1511
1511
  try:
1512
1512
  json_obj = json.loads(result)
@@ -1525,7 +1525,7 @@ def doDeleteDBInstance(args, parsed_globals):
1525
1525
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
1526
1526
 
1527
1527
 
1528
- def doDescribeMigrationDetail(args, parsed_globals):
1528
+ def doDescribeUploadBackupInfo(args, parsed_globals):
1529
1529
  g_param = parse_global_arg(parsed_globals)
1530
1530
 
1531
1531
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -1554,11 +1554,11 @@ def doDescribeMigrationDetail(args, parsed_globals):
1554
1554
  client = mod.SqlserverClient(cred, g_param[OptionsDefine.Region], profile)
1555
1555
  client._sdkVersion += ("_CLI_" + __version__)
1556
1556
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
1557
- model = models.DescribeMigrationDetailRequest()
1557
+ model = models.DescribeUploadBackupInfoRequest()
1558
1558
  model.from_json_string(json.dumps(args))
1559
1559
  start_time = time.time()
1560
1560
  while True:
1561
- rsp = client.DescribeMigrationDetail(model)
1561
+ rsp = client.DescribeUploadBackupInfo(model)
1562
1562
  result = rsp.to_json_string()
1563
1563
  try:
1564
1564
  json_obj = json.loads(result)
@@ -1577,7 +1577,7 @@ def doDescribeMigrationDetail(args, parsed_globals):
1577
1577
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
1578
1578
 
1579
1579
 
1580
- def doModifyDBName(args, parsed_globals):
1580
+ def doDescribeProductConfig(args, parsed_globals):
1581
1581
  g_param = parse_global_arg(parsed_globals)
1582
1582
 
1583
1583
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -1606,11 +1606,11 @@ def doModifyDBName(args, parsed_globals):
1606
1606
  client = mod.SqlserverClient(cred, g_param[OptionsDefine.Region], profile)
1607
1607
  client._sdkVersion += ("_CLI_" + __version__)
1608
1608
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
1609
- model = models.ModifyDBNameRequest()
1609
+ model = models.DescribeProductConfigRequest()
1610
1610
  model.from_json_string(json.dumps(args))
1611
1611
  start_time = time.time()
1612
1612
  while True:
1613
- rsp = client.ModifyDBName(model)
1613
+ rsp = client.DescribeProductConfig(model)
1614
1614
  result = rsp.to_json_string()
1615
1615
  try:
1616
1616
  json_obj = json.loads(result)
@@ -1629,7 +1629,7 @@ def doModifyDBName(args, parsed_globals):
1629
1629
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
1630
1630
 
1631
1631
 
1632
- def doInquiryPriceCreateDBInstances(args, parsed_globals):
1632
+ def doDeletePublishSubscribe(args, parsed_globals):
1633
1633
  g_param = parse_global_arg(parsed_globals)
1634
1634
 
1635
1635
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -1658,11 +1658,11 @@ def doInquiryPriceCreateDBInstances(args, parsed_globals):
1658
1658
  client = mod.SqlserverClient(cred, g_param[OptionsDefine.Region], profile)
1659
1659
  client._sdkVersion += ("_CLI_" + __version__)
1660
1660
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
1661
- model = models.InquiryPriceCreateDBInstancesRequest()
1661
+ model = models.DeletePublishSubscribeRequest()
1662
1662
  model.from_json_string(json.dumps(args))
1663
1663
  start_time = time.time()
1664
1664
  while True:
1665
- rsp = client.InquiryPriceCreateDBInstances(model)
1665
+ rsp = client.DeletePublishSubscribe(model)
1666
1666
  result = rsp.to_json_string()
1667
1667
  try:
1668
1668
  json_obj = json.loads(result)
@@ -1681,7 +1681,7 @@ def doInquiryPriceCreateDBInstances(args, parsed_globals):
1681
1681
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
1682
1682
 
1683
1683
 
1684
- def doDescribeCrossRegionZone(args, parsed_globals):
1684
+ def doDisassociateSecurityGroups(args, parsed_globals):
1685
1685
  g_param = parse_global_arg(parsed_globals)
1686
1686
 
1687
1687
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -1710,11 +1710,11 @@ def doDescribeCrossRegionZone(args, parsed_globals):
1710
1710
  client = mod.SqlserverClient(cred, g_param[OptionsDefine.Region], profile)
1711
1711
  client._sdkVersion += ("_CLI_" + __version__)
1712
1712
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
1713
- model = models.DescribeCrossRegionZoneRequest()
1713
+ model = models.DisassociateSecurityGroupsRequest()
1714
1714
  model.from_json_string(json.dumps(args))
1715
1715
  start_time = time.time()
1716
1716
  while True:
1717
- rsp = client.DescribeCrossRegionZone(model)
1717
+ rsp = client.DisassociateSecurityGroups(model)
1718
1718
  result = rsp.to_json_string()
1719
1719
  try:
1720
1720
  json_obj = json.loads(result)
@@ -1733,7 +1733,7 @@ def doDescribeCrossRegionZone(args, parsed_globals):
1733
1733
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
1734
1734
 
1735
1735
 
1736
- def doModifyDatabaseCT(args, parsed_globals):
1736
+ def doDescribeInquiryPriceParameter(args, parsed_globals):
1737
1737
  g_param = parse_global_arg(parsed_globals)
1738
1738
 
1739
1739
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -1762,11 +1762,11 @@ def doModifyDatabaseCT(args, parsed_globals):
1762
1762
  client = mod.SqlserverClient(cred, g_param[OptionsDefine.Region], profile)
1763
1763
  client._sdkVersion += ("_CLI_" + __version__)
1764
1764
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
1765
- model = models.ModifyDatabaseCTRequest()
1765
+ model = models.DescribeInquiryPriceParameterRequest()
1766
1766
  model.from_json_string(json.dumps(args))
1767
1767
  start_time = time.time()
1768
1768
  while True:
1769
- rsp = client.ModifyDatabaseCT(model)
1769
+ rsp = client.DescribeInquiryPriceParameter(model)
1770
1770
  result = rsp.to_json_string()
1771
1771
  try:
1772
1772
  json_obj = json.loads(result)
@@ -1785,7 +1785,7 @@ def doModifyDatabaseCT(args, parsed_globals):
1785
1785
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
1786
1786
 
1787
1787
 
1788
- def doDescribeBackups(args, parsed_globals):
1788
+ def doModifyDBInstanceNote(args, parsed_globals):
1789
1789
  g_param = parse_global_arg(parsed_globals)
1790
1790
 
1791
1791
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -1814,11 +1814,11 @@ def doDescribeBackups(args, parsed_globals):
1814
1814
  client = mod.SqlserverClient(cred, g_param[OptionsDefine.Region], profile)
1815
1815
  client._sdkVersion += ("_CLI_" + __version__)
1816
1816
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
1817
- model = models.DescribeBackupsRequest()
1817
+ model = models.ModifyDBInstanceNoteRequest()
1818
1818
  model.from_json_string(json.dumps(args))
1819
1819
  start_time = time.time()
1820
1820
  while True:
1821
- rsp = client.DescribeBackups(model)
1821
+ rsp = client.ModifyDBInstanceNote(model)
1822
1822
  result = rsp.to_json_string()
1823
1823
  try:
1824
1824
  json_obj = json.loads(result)
@@ -1837,7 +1837,7 @@ def doDescribeBackups(args, parsed_globals):
1837
1837
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
1838
1838
 
1839
1839
 
1840
- def doModifyPublishSubscribeName(args, parsed_globals):
1840
+ def doDeleteDBInstance(args, parsed_globals):
1841
1841
  g_param = parse_global_arg(parsed_globals)
1842
1842
 
1843
1843
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -1866,11 +1866,11 @@ def doModifyPublishSubscribeName(args, parsed_globals):
1866
1866
  client = mod.SqlserverClient(cred, g_param[OptionsDefine.Region], profile)
1867
1867
  client._sdkVersion += ("_CLI_" + __version__)
1868
1868
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
1869
- model = models.ModifyPublishSubscribeNameRequest()
1869
+ model = models.DeleteDBInstanceRequest()
1870
1870
  model.from_json_string(json.dumps(args))
1871
1871
  start_time = time.time()
1872
1872
  while True:
1873
- rsp = client.ModifyPublishSubscribeName(model)
1873
+ rsp = client.DeleteDBInstance(model)
1874
1874
  result = rsp.to_json_string()
1875
1875
  try:
1876
1876
  json_obj = json.loads(result)
@@ -1889,7 +1889,7 @@ def doModifyPublishSubscribeName(args, parsed_globals):
1889
1889
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
1890
1890
 
1891
1891
 
1892
- def doRenewPostpaidDBInstance(args, parsed_globals):
1892
+ def doDescribeMigrationDetail(args, parsed_globals):
1893
1893
  g_param = parse_global_arg(parsed_globals)
1894
1894
 
1895
1895
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -1918,11 +1918,11 @@ def doRenewPostpaidDBInstance(args, parsed_globals):
1918
1918
  client = mod.SqlserverClient(cred, g_param[OptionsDefine.Region], profile)
1919
1919
  client._sdkVersion += ("_CLI_" + __version__)
1920
1920
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
1921
- model = models.RenewPostpaidDBInstanceRequest()
1921
+ model = models.DescribeMigrationDetailRequest()
1922
1922
  model.from_json_string(json.dumps(args))
1923
1923
  start_time = time.time()
1924
1924
  while True:
1925
- rsp = client.RenewPostpaidDBInstance(model)
1925
+ rsp = client.DescribeMigrationDetail(model)
1926
1926
  result = rsp.to_json_string()
1927
1927
  try:
1928
1928
  json_obj = json.loads(result)
@@ -1941,7 +1941,7 @@ def doRenewPostpaidDBInstance(args, parsed_globals):
1941
1941
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
1942
1942
 
1943
1943
 
1944
- def doDescribeIncrementalMigration(args, parsed_globals):
1944
+ def doModifyDBName(args, parsed_globals):
1945
1945
  g_param = parse_global_arg(parsed_globals)
1946
1946
 
1947
1947
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -1970,11 +1970,11 @@ def doDescribeIncrementalMigration(args, parsed_globals):
1970
1970
  client = mod.SqlserverClient(cred, g_param[OptionsDefine.Region], profile)
1971
1971
  client._sdkVersion += ("_CLI_" + __version__)
1972
1972
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
1973
- model = models.DescribeIncrementalMigrationRequest()
1973
+ model = models.ModifyDBNameRequest()
1974
1974
  model.from_json_string(json.dumps(args))
1975
1975
  start_time = time.time()
1976
1976
  while True:
1977
- rsp = client.DescribeIncrementalMigration(model)
1977
+ rsp = client.ModifyDBName(model)
1978
1978
  result = rsp.to_json_string()
1979
1979
  try:
1980
1980
  json_obj = json.loads(result)
@@ -1993,7 +1993,7 @@ def doDescribeIncrementalMigration(args, parsed_globals):
1993
1993
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
1994
1994
 
1995
1995
 
1996
- def doCreateBackup(args, parsed_globals):
1996
+ def doInquiryPriceCreateDBInstances(args, parsed_globals):
1997
1997
  g_param = parse_global_arg(parsed_globals)
1998
1998
 
1999
1999
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -2022,11 +2022,11 @@ def doCreateBackup(args, parsed_globals):
2022
2022
  client = mod.SqlserverClient(cred, g_param[OptionsDefine.Region], profile)
2023
2023
  client._sdkVersion += ("_CLI_" + __version__)
2024
2024
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
2025
- model = models.CreateBackupRequest()
2025
+ model = models.InquiryPriceCreateDBInstancesRequest()
2026
2026
  model.from_json_string(json.dumps(args))
2027
2027
  start_time = time.time()
2028
2028
  while True:
2029
- rsp = client.CreateBackup(model)
2029
+ rsp = client.InquiryPriceCreateDBInstances(model)
2030
2030
  result = rsp.to_json_string()
2031
2031
  try:
2032
2032
  json_obj = json.loads(result)
@@ -2045,7 +2045,7 @@ def doCreateBackup(args, parsed_globals):
2045
2045
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
2046
2046
 
2047
2047
 
2048
- def doDescribeBackupMigration(args, parsed_globals):
2048
+ def doDescribeCrossRegionZone(args, parsed_globals):
2049
2049
  g_param = parse_global_arg(parsed_globals)
2050
2050
 
2051
2051
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -2074,11 +2074,11 @@ def doDescribeBackupMigration(args, parsed_globals):
2074
2074
  client = mod.SqlserverClient(cred, g_param[OptionsDefine.Region], profile)
2075
2075
  client._sdkVersion += ("_CLI_" + __version__)
2076
2076
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
2077
- model = models.DescribeBackupMigrationRequest()
2077
+ model = models.DescribeCrossRegionZoneRequest()
2078
2078
  model.from_json_string(json.dumps(args))
2079
2079
  start_time = time.time()
2080
2080
  while True:
2081
- rsp = client.DescribeBackupMigration(model)
2081
+ rsp = client.DescribeCrossRegionZone(model)
2082
2082
  result = rsp.to_json_string()
2083
2083
  try:
2084
2084
  json_obj = json.loads(result)
@@ -2097,7 +2097,7 @@ def doDescribeBackupMigration(args, parsed_globals):
2097
2097
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
2098
2098
 
2099
2099
 
2100
- def doModifyDatabaseCDC(args, parsed_globals):
2100
+ def doModifyDatabaseCT(args, parsed_globals):
2101
2101
  g_param = parse_global_arg(parsed_globals)
2102
2102
 
2103
2103
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -2126,11 +2126,11 @@ def doModifyDatabaseCDC(args, parsed_globals):
2126
2126
  client = mod.SqlserverClient(cred, g_param[OptionsDefine.Region], profile)
2127
2127
  client._sdkVersion += ("_CLI_" + __version__)
2128
2128
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
2129
- model = models.ModifyDatabaseCDCRequest()
2129
+ model = models.ModifyDatabaseCTRequest()
2130
2130
  model.from_json_string(json.dumps(args))
2131
2131
  start_time = time.time()
2132
2132
  while True:
2133
- rsp = client.ModifyDatabaseCDC(model)
2133
+ rsp = client.ModifyDatabaseCT(model)
2134
2134
  result = rsp.to_json_string()
2135
2135
  try:
2136
2136
  json_obj = json.loads(result)
@@ -2149,7 +2149,7 @@ def doModifyDatabaseCDC(args, parsed_globals):
2149
2149
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
2150
2150
 
2151
2151
 
2152
- def doDescribeDBInstanceInter(args, parsed_globals):
2152
+ def doDescribeBackups(args, parsed_globals):
2153
2153
  g_param = parse_global_arg(parsed_globals)
2154
2154
 
2155
2155
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -2178,11 +2178,11 @@ def doDescribeDBInstanceInter(args, parsed_globals):
2178
2178
  client = mod.SqlserverClient(cred, g_param[OptionsDefine.Region], profile)
2179
2179
  client._sdkVersion += ("_CLI_" + __version__)
2180
2180
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
2181
- model = models.DescribeDBInstanceInterRequest()
2181
+ model = models.DescribeBackupsRequest()
2182
2182
  model.from_json_string(json.dumps(args))
2183
2183
  start_time = time.time()
2184
2184
  while True:
2185
- rsp = client.DescribeDBInstanceInter(model)
2185
+ rsp = client.DescribeBackups(model)
2186
2186
  result = rsp.to_json_string()
2187
2187
  try:
2188
2188
  json_obj = json.loads(result)
@@ -2201,7 +2201,7 @@ def doDescribeDBInstanceInter(args, parsed_globals):
2201
2201
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
2202
2202
 
2203
2203
 
2204
- def doCompleteMigration(args, parsed_globals):
2204
+ def doModifyPublishSubscribeName(args, parsed_globals):
2205
2205
  g_param = parse_global_arg(parsed_globals)
2206
2206
 
2207
2207
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -2230,11 +2230,11 @@ def doCompleteMigration(args, parsed_globals):
2230
2230
  client = mod.SqlserverClient(cred, g_param[OptionsDefine.Region], profile)
2231
2231
  client._sdkVersion += ("_CLI_" + __version__)
2232
2232
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
2233
- model = models.CompleteMigrationRequest()
2233
+ model = models.ModifyPublishSubscribeNameRequest()
2234
2234
  model.from_json_string(json.dumps(args))
2235
2235
  start_time = time.time()
2236
2236
  while True:
2237
- rsp = client.CompleteMigration(model)
2237
+ rsp = client.ModifyPublishSubscribeName(model)
2238
2238
  result = rsp.to_json_string()
2239
2239
  try:
2240
2240
  json_obj = json.loads(result)
@@ -2253,7 +2253,7 @@ def doCompleteMigration(args, parsed_globals):
2253
2253
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
2254
2254
 
2255
2255
 
2256
- def doDescribeProjectSecurityGroups(args, parsed_globals):
2256
+ def doRenewPostpaidDBInstance(args, parsed_globals):
2257
2257
  g_param = parse_global_arg(parsed_globals)
2258
2258
 
2259
2259
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -2282,11 +2282,11 @@ def doDescribeProjectSecurityGroups(args, parsed_globals):
2282
2282
  client = mod.SqlserverClient(cred, g_param[OptionsDefine.Region], profile)
2283
2283
  client._sdkVersion += ("_CLI_" + __version__)
2284
2284
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
2285
- model = models.DescribeProjectSecurityGroupsRequest()
2285
+ model = models.RenewPostpaidDBInstanceRequest()
2286
2286
  model.from_json_string(json.dumps(args))
2287
2287
  start_time = time.time()
2288
2288
  while True:
2289
- rsp = client.DescribeProjectSecurityGroups(model)
2289
+ rsp = client.RenewPostpaidDBInstance(model)
2290
2290
  result = rsp.to_json_string()
2291
2291
  try:
2292
2292
  json_obj = json.loads(result)
@@ -2305,7 +2305,7 @@ def doDescribeProjectSecurityGroups(args, parsed_globals):
2305
2305
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
2306
2306
 
2307
2307
 
2308
- def doCreateAccount(args, parsed_globals):
2308
+ def doDescribeIncrementalMigration(args, parsed_globals):
2309
2309
  g_param = parse_global_arg(parsed_globals)
2310
2310
 
2311
2311
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -2334,11 +2334,11 @@ def doCreateAccount(args, parsed_globals):
2334
2334
  client = mod.SqlserverClient(cred, g_param[OptionsDefine.Region], profile)
2335
2335
  client._sdkVersion += ("_CLI_" + __version__)
2336
2336
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
2337
- model = models.CreateAccountRequest()
2337
+ model = models.DescribeIncrementalMigrationRequest()
2338
2338
  model.from_json_string(json.dumps(args))
2339
2339
  start_time = time.time()
2340
2340
  while True:
2341
- rsp = client.CreateAccount(model)
2341
+ rsp = client.DescribeIncrementalMigration(model)
2342
2342
  result = rsp.to_json_string()
2343
2343
  try:
2344
2344
  json_obj = json.loads(result)
@@ -2357,7 +2357,7 @@ def doCreateAccount(args, parsed_globals):
2357
2357
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
2358
2358
 
2359
2359
 
2360
- def doStopMigration(args, parsed_globals):
2360
+ def doCreateBackup(args, parsed_globals):
2361
2361
  g_param = parse_global_arg(parsed_globals)
2362
2362
 
2363
2363
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -2386,11 +2386,11 @@ def doStopMigration(args, parsed_globals):
2386
2386
  client = mod.SqlserverClient(cred, g_param[OptionsDefine.Region], profile)
2387
2387
  client._sdkVersion += ("_CLI_" + __version__)
2388
2388
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
2389
- model = models.StopMigrationRequest()
2389
+ model = models.CreateBackupRequest()
2390
2390
  model.from_json_string(json.dumps(args))
2391
2391
  start_time = time.time()
2392
2392
  while True:
2393
- rsp = client.StopMigration(model)
2393
+ rsp = client.CreateBackup(model)
2394
2394
  result = rsp.to_json_string()
2395
2395
  try:
2396
2396
  json_obj = json.loads(result)
@@ -2409,7 +2409,7 @@ def doStopMigration(args, parsed_globals):
2409
2409
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
2410
2410
 
2411
2411
 
2412
- def doDescribeRegions(args, parsed_globals):
2412
+ def doDescribeDBRestoreTime(args, parsed_globals):
2413
2413
  g_param = parse_global_arg(parsed_globals)
2414
2414
 
2415
2415
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -2438,11 +2438,11 @@ def doDescribeRegions(args, parsed_globals):
2438
2438
  client = mod.SqlserverClient(cred, g_param[OptionsDefine.Region], profile)
2439
2439
  client._sdkVersion += ("_CLI_" + __version__)
2440
2440
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
2441
- model = models.DescribeRegionsRequest()
2441
+ model = models.DescribeDBRestoreTimeRequest()
2442
2442
  model.from_json_string(json.dumps(args))
2443
2443
  start_time = time.time()
2444
2444
  while True:
2445
- rsp = client.DescribeRegions(model)
2445
+ rsp = client.DescribeDBRestoreTime(model)
2446
2446
  result = rsp.to_json_string()
2447
2447
  try:
2448
2448
  json_obj = json.loads(result)
@@ -2461,7 +2461,995 @@ def doDescribeRegions(args, parsed_globals):
2461
2461
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
2462
2462
 
2463
2463
 
2464
- def doDescribeInstanceParams(args, parsed_globals):
2464
+ def doDescribeBackupMigration(args, parsed_globals):
2465
+ g_param = parse_global_arg(parsed_globals)
2466
+
2467
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
2468
+ cred = credential.CVMRoleCredential()
2469
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
2470
+ cred = credential.STSAssumeRoleCredential(
2471
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
2472
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')]
2473
+ )
2474
+ elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
2475
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
2476
+ else:
2477
+ cred = credential.Credential(
2478
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
2479
+ )
2480
+ http_profile = HttpProfile(
2481
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
2482
+ reqMethod="POST",
2483
+ endpoint=g_param[OptionsDefine.Endpoint],
2484
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
2485
+ )
2486
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
2487
+ if g_param[OptionsDefine.Language]:
2488
+ profile.language = g_param[OptionsDefine.Language]
2489
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
2490
+ client = mod.SqlserverClient(cred, g_param[OptionsDefine.Region], profile)
2491
+ client._sdkVersion += ("_CLI_" + __version__)
2492
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
2493
+ model = models.DescribeBackupMigrationRequest()
2494
+ model.from_json_string(json.dumps(args))
2495
+ start_time = time.time()
2496
+ while True:
2497
+ rsp = client.DescribeBackupMigration(model)
2498
+ result = rsp.to_json_string()
2499
+ try:
2500
+ json_obj = json.loads(result)
2501
+ except TypeError as e:
2502
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
2503
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
2504
+ break
2505
+ cur_time = time.time()
2506
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
2507
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
2508
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
2509
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
2510
+ else:
2511
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
2512
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
2513
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
2514
+
2515
+
2516
+ def doBalanceReadOnlyGroup(args, parsed_globals):
2517
+ g_param = parse_global_arg(parsed_globals)
2518
+
2519
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
2520
+ cred = credential.CVMRoleCredential()
2521
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
2522
+ cred = credential.STSAssumeRoleCredential(
2523
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
2524
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')]
2525
+ )
2526
+ elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
2527
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
2528
+ else:
2529
+ cred = credential.Credential(
2530
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
2531
+ )
2532
+ http_profile = HttpProfile(
2533
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
2534
+ reqMethod="POST",
2535
+ endpoint=g_param[OptionsDefine.Endpoint],
2536
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
2537
+ )
2538
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
2539
+ if g_param[OptionsDefine.Language]:
2540
+ profile.language = g_param[OptionsDefine.Language]
2541
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
2542
+ client = mod.SqlserverClient(cred, g_param[OptionsDefine.Region], profile)
2543
+ client._sdkVersion += ("_CLI_" + __version__)
2544
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
2545
+ model = models.BalanceReadOnlyGroupRequest()
2546
+ model.from_json_string(json.dumps(args))
2547
+ start_time = time.time()
2548
+ while True:
2549
+ rsp = client.BalanceReadOnlyGroup(model)
2550
+ result = rsp.to_json_string()
2551
+ try:
2552
+ json_obj = json.loads(result)
2553
+ except TypeError as e:
2554
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
2555
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
2556
+ break
2557
+ cur_time = time.time()
2558
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
2559
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
2560
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
2561
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
2562
+ else:
2563
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
2564
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
2565
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
2566
+
2567
+
2568
+ def doModifyDatabaseCDC(args, parsed_globals):
2569
+ g_param = parse_global_arg(parsed_globals)
2570
+
2571
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
2572
+ cred = credential.CVMRoleCredential()
2573
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
2574
+ cred = credential.STSAssumeRoleCredential(
2575
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
2576
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')]
2577
+ )
2578
+ elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
2579
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
2580
+ else:
2581
+ cred = credential.Credential(
2582
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
2583
+ )
2584
+ http_profile = HttpProfile(
2585
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
2586
+ reqMethod="POST",
2587
+ endpoint=g_param[OptionsDefine.Endpoint],
2588
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
2589
+ )
2590
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
2591
+ if g_param[OptionsDefine.Language]:
2592
+ profile.language = g_param[OptionsDefine.Language]
2593
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
2594
+ client = mod.SqlserverClient(cred, g_param[OptionsDefine.Region], profile)
2595
+ client._sdkVersion += ("_CLI_" + __version__)
2596
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
2597
+ model = models.ModifyDatabaseCDCRequest()
2598
+ model.from_json_string(json.dumps(args))
2599
+ start_time = time.time()
2600
+ while True:
2601
+ rsp = client.ModifyDatabaseCDC(model)
2602
+ result = rsp.to_json_string()
2603
+ try:
2604
+ json_obj = json.loads(result)
2605
+ except TypeError as e:
2606
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
2607
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
2608
+ break
2609
+ cur_time = time.time()
2610
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
2611
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
2612
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
2613
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
2614
+ else:
2615
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
2616
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
2617
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
2618
+
2619
+
2620
+ def doDeleteRestoreTask(args, parsed_globals):
2621
+ g_param = parse_global_arg(parsed_globals)
2622
+
2623
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
2624
+ cred = credential.CVMRoleCredential()
2625
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
2626
+ cred = credential.STSAssumeRoleCredential(
2627
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
2628
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')]
2629
+ )
2630
+ elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
2631
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
2632
+ else:
2633
+ cred = credential.Credential(
2634
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
2635
+ )
2636
+ http_profile = HttpProfile(
2637
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
2638
+ reqMethod="POST",
2639
+ endpoint=g_param[OptionsDefine.Endpoint],
2640
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
2641
+ )
2642
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
2643
+ if g_param[OptionsDefine.Language]:
2644
+ profile.language = g_param[OptionsDefine.Language]
2645
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
2646
+ client = mod.SqlserverClient(cred, g_param[OptionsDefine.Region], profile)
2647
+ client._sdkVersion += ("_CLI_" + __version__)
2648
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
2649
+ model = models.DeleteRestoreTaskRequest()
2650
+ model.from_json_string(json.dumps(args))
2651
+ start_time = time.time()
2652
+ while True:
2653
+ rsp = client.DeleteRestoreTask(model)
2654
+ result = rsp.to_json_string()
2655
+ try:
2656
+ json_obj = json.loads(result)
2657
+ except TypeError as e:
2658
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
2659
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
2660
+ break
2661
+ cur_time = time.time()
2662
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
2663
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
2664
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
2665
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
2666
+ else:
2667
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
2668
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
2669
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
2670
+
2671
+
2672
+ def doCompleteMigration(args, parsed_globals):
2673
+ g_param = parse_global_arg(parsed_globals)
2674
+
2675
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
2676
+ cred = credential.CVMRoleCredential()
2677
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
2678
+ cred = credential.STSAssumeRoleCredential(
2679
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
2680
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')]
2681
+ )
2682
+ elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
2683
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
2684
+ else:
2685
+ cred = credential.Credential(
2686
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
2687
+ )
2688
+ http_profile = HttpProfile(
2689
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
2690
+ reqMethod="POST",
2691
+ endpoint=g_param[OptionsDefine.Endpoint],
2692
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
2693
+ )
2694
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
2695
+ if g_param[OptionsDefine.Language]:
2696
+ profile.language = g_param[OptionsDefine.Language]
2697
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
2698
+ client = mod.SqlserverClient(cred, g_param[OptionsDefine.Region], profile)
2699
+ client._sdkVersion += ("_CLI_" + __version__)
2700
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
2701
+ model = models.CompleteMigrationRequest()
2702
+ model.from_json_string(json.dumps(args))
2703
+ start_time = time.time()
2704
+ while True:
2705
+ rsp = client.CompleteMigration(model)
2706
+ result = rsp.to_json_string()
2707
+ try:
2708
+ json_obj = json.loads(result)
2709
+ except TypeError as e:
2710
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
2711
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
2712
+ break
2713
+ cur_time = time.time()
2714
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
2715
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
2716
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
2717
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
2718
+ else:
2719
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
2720
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
2721
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
2722
+
2723
+
2724
+ def doDescribeProjectSecurityGroups(args, parsed_globals):
2725
+ g_param = parse_global_arg(parsed_globals)
2726
+
2727
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
2728
+ cred = credential.CVMRoleCredential()
2729
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
2730
+ cred = credential.STSAssumeRoleCredential(
2731
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
2732
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')]
2733
+ )
2734
+ elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
2735
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
2736
+ else:
2737
+ cred = credential.Credential(
2738
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
2739
+ )
2740
+ http_profile = HttpProfile(
2741
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
2742
+ reqMethod="POST",
2743
+ endpoint=g_param[OptionsDefine.Endpoint],
2744
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
2745
+ )
2746
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
2747
+ if g_param[OptionsDefine.Language]:
2748
+ profile.language = g_param[OptionsDefine.Language]
2749
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
2750
+ client = mod.SqlserverClient(cred, g_param[OptionsDefine.Region], profile)
2751
+ client._sdkVersion += ("_CLI_" + __version__)
2752
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
2753
+ model = models.DescribeProjectSecurityGroupsRequest()
2754
+ model.from_json_string(json.dumps(args))
2755
+ start_time = time.time()
2756
+ while True:
2757
+ rsp = client.DescribeProjectSecurityGroups(model)
2758
+ result = rsp.to_json_string()
2759
+ try:
2760
+ json_obj = json.loads(result)
2761
+ except TypeError as e:
2762
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
2763
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
2764
+ break
2765
+ cur_time = time.time()
2766
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
2767
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
2768
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
2769
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
2770
+ else:
2771
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
2772
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
2773
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
2774
+
2775
+
2776
+ def doCreateAccount(args, parsed_globals):
2777
+ g_param = parse_global_arg(parsed_globals)
2778
+
2779
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
2780
+ cred = credential.CVMRoleCredential()
2781
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
2782
+ cred = credential.STSAssumeRoleCredential(
2783
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
2784
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')]
2785
+ )
2786
+ elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
2787
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
2788
+ else:
2789
+ cred = credential.Credential(
2790
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
2791
+ )
2792
+ http_profile = HttpProfile(
2793
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
2794
+ reqMethod="POST",
2795
+ endpoint=g_param[OptionsDefine.Endpoint],
2796
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
2797
+ )
2798
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
2799
+ if g_param[OptionsDefine.Language]:
2800
+ profile.language = g_param[OptionsDefine.Language]
2801
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
2802
+ client = mod.SqlserverClient(cred, g_param[OptionsDefine.Region], profile)
2803
+ client._sdkVersion += ("_CLI_" + __version__)
2804
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
2805
+ model = models.CreateAccountRequest()
2806
+ model.from_json_string(json.dumps(args))
2807
+ start_time = time.time()
2808
+ while True:
2809
+ rsp = client.CreateAccount(model)
2810
+ result = rsp.to_json_string()
2811
+ try:
2812
+ json_obj = json.loads(result)
2813
+ except TypeError as e:
2814
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
2815
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
2816
+ break
2817
+ cur_time = time.time()
2818
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
2819
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
2820
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
2821
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
2822
+ else:
2823
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
2824
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
2825
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
2826
+
2827
+
2828
+ def doStopMigration(args, parsed_globals):
2829
+ g_param = parse_global_arg(parsed_globals)
2830
+
2831
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
2832
+ cred = credential.CVMRoleCredential()
2833
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
2834
+ cred = credential.STSAssumeRoleCredential(
2835
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
2836
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')]
2837
+ )
2838
+ elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
2839
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
2840
+ else:
2841
+ cred = credential.Credential(
2842
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
2843
+ )
2844
+ http_profile = HttpProfile(
2845
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
2846
+ reqMethod="POST",
2847
+ endpoint=g_param[OptionsDefine.Endpoint],
2848
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
2849
+ )
2850
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
2851
+ if g_param[OptionsDefine.Language]:
2852
+ profile.language = g_param[OptionsDefine.Language]
2853
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
2854
+ client = mod.SqlserverClient(cred, g_param[OptionsDefine.Region], profile)
2855
+ client._sdkVersion += ("_CLI_" + __version__)
2856
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
2857
+ model = models.StopMigrationRequest()
2858
+ model.from_json_string(json.dumps(args))
2859
+ start_time = time.time()
2860
+ while True:
2861
+ rsp = client.StopMigration(model)
2862
+ result = rsp.to_json_string()
2863
+ try:
2864
+ json_obj = json.loads(result)
2865
+ except TypeError as e:
2866
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
2867
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
2868
+ break
2869
+ cur_time = time.time()
2870
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
2871
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
2872
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
2873
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
2874
+ else:
2875
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
2876
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
2877
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
2878
+
2879
+
2880
+ def doDescribeRegions(args, parsed_globals):
2881
+ g_param = parse_global_arg(parsed_globals)
2882
+
2883
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
2884
+ cred = credential.CVMRoleCredential()
2885
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
2886
+ cred = credential.STSAssumeRoleCredential(
2887
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
2888
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')]
2889
+ )
2890
+ elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
2891
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
2892
+ else:
2893
+ cred = credential.Credential(
2894
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
2895
+ )
2896
+ http_profile = HttpProfile(
2897
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
2898
+ reqMethod="POST",
2899
+ endpoint=g_param[OptionsDefine.Endpoint],
2900
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
2901
+ )
2902
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
2903
+ if g_param[OptionsDefine.Language]:
2904
+ profile.language = g_param[OptionsDefine.Language]
2905
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
2906
+ client = mod.SqlserverClient(cred, g_param[OptionsDefine.Region], profile)
2907
+ client._sdkVersion += ("_CLI_" + __version__)
2908
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
2909
+ model = models.DescribeRegionsRequest()
2910
+ model.from_json_string(json.dumps(args))
2911
+ start_time = time.time()
2912
+ while True:
2913
+ rsp = client.DescribeRegions(model)
2914
+ result = rsp.to_json_string()
2915
+ try:
2916
+ json_obj = json.loads(result)
2917
+ except TypeError as e:
2918
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
2919
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
2920
+ break
2921
+ cur_time = time.time()
2922
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
2923
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
2924
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
2925
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
2926
+ else:
2927
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
2928
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
2929
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
2930
+
2931
+
2932
+ def doDescribeRestoreTask(args, parsed_globals):
2933
+ g_param = parse_global_arg(parsed_globals)
2934
+
2935
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
2936
+ cred = credential.CVMRoleCredential()
2937
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
2938
+ cred = credential.STSAssumeRoleCredential(
2939
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
2940
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')]
2941
+ )
2942
+ elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
2943
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
2944
+ else:
2945
+ cred = credential.Credential(
2946
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
2947
+ )
2948
+ http_profile = HttpProfile(
2949
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
2950
+ reqMethod="POST",
2951
+ endpoint=g_param[OptionsDefine.Endpoint],
2952
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
2953
+ )
2954
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
2955
+ if g_param[OptionsDefine.Language]:
2956
+ profile.language = g_param[OptionsDefine.Language]
2957
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
2958
+ client = mod.SqlserverClient(cred, g_param[OptionsDefine.Region], profile)
2959
+ client._sdkVersion += ("_CLI_" + __version__)
2960
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
2961
+ model = models.DescribeRestoreTaskRequest()
2962
+ model.from_json_string(json.dumps(args))
2963
+ start_time = time.time()
2964
+ while True:
2965
+ rsp = client.DescribeRestoreTask(model)
2966
+ result = rsp.to_json_string()
2967
+ try:
2968
+ json_obj = json.loads(result)
2969
+ except TypeError as e:
2970
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
2971
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
2972
+ break
2973
+ cur_time = time.time()
2974
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
2975
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
2976
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
2977
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
2978
+ else:
2979
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
2980
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
2981
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
2982
+
2983
+
2984
+ def doDescribeInstanceParams(args, parsed_globals):
2985
+ g_param = parse_global_arg(parsed_globals)
2986
+
2987
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
2988
+ cred = credential.CVMRoleCredential()
2989
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
2990
+ cred = credential.STSAssumeRoleCredential(
2991
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
2992
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')]
2993
+ )
2994
+ elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
2995
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
2996
+ else:
2997
+ cred = credential.Credential(
2998
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
2999
+ )
3000
+ http_profile = HttpProfile(
3001
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
3002
+ reqMethod="POST",
3003
+ endpoint=g_param[OptionsDefine.Endpoint],
3004
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
3005
+ )
3006
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
3007
+ if g_param[OptionsDefine.Language]:
3008
+ profile.language = g_param[OptionsDefine.Language]
3009
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
3010
+ client = mod.SqlserverClient(cred, g_param[OptionsDefine.Region], profile)
3011
+ client._sdkVersion += ("_CLI_" + __version__)
3012
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
3013
+ model = models.DescribeInstanceParamsRequest()
3014
+ model.from_json_string(json.dumps(args))
3015
+ start_time = time.time()
3016
+ while True:
3017
+ rsp = client.DescribeInstanceParams(model)
3018
+ result = rsp.to_json_string()
3019
+ try:
3020
+ json_obj = json.loads(result)
3021
+ except TypeError as e:
3022
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
3023
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
3024
+ break
3025
+ cur_time = time.time()
3026
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
3027
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
3028
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
3029
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
3030
+ else:
3031
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
3032
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
3033
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
3034
+
3035
+
3036
+ def doCompleteExpansion(args, parsed_globals):
3037
+ g_param = parse_global_arg(parsed_globals)
3038
+
3039
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
3040
+ cred = credential.CVMRoleCredential()
3041
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
3042
+ cred = credential.STSAssumeRoleCredential(
3043
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
3044
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')]
3045
+ )
3046
+ elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
3047
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
3048
+ else:
3049
+ cred = credential.Credential(
3050
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
3051
+ )
3052
+ http_profile = HttpProfile(
3053
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
3054
+ reqMethod="POST",
3055
+ endpoint=g_param[OptionsDefine.Endpoint],
3056
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
3057
+ )
3058
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
3059
+ if g_param[OptionsDefine.Language]:
3060
+ profile.language = g_param[OptionsDefine.Language]
3061
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
3062
+ client = mod.SqlserverClient(cred, g_param[OptionsDefine.Region], profile)
3063
+ client._sdkVersion += ("_CLI_" + __version__)
3064
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
3065
+ model = models.CompleteExpansionRequest()
3066
+ model.from_json_string(json.dumps(args))
3067
+ start_time = time.time()
3068
+ while True:
3069
+ rsp = client.CompleteExpansion(model)
3070
+ result = rsp.to_json_string()
3071
+ try:
3072
+ json_obj = json.loads(result)
3073
+ except TypeError as e:
3074
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
3075
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
3076
+ break
3077
+ cur_time = time.time()
3078
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
3079
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
3080
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
3081
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
3082
+ else:
3083
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
3084
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
3085
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
3086
+
3087
+
3088
+ def doDescribeBackupStatistical(args, parsed_globals):
3089
+ g_param = parse_global_arg(parsed_globals)
3090
+
3091
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
3092
+ cred = credential.CVMRoleCredential()
3093
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
3094
+ cred = credential.STSAssumeRoleCredential(
3095
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
3096
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')]
3097
+ )
3098
+ elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
3099
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
3100
+ else:
3101
+ cred = credential.Credential(
3102
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
3103
+ )
3104
+ http_profile = HttpProfile(
3105
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
3106
+ reqMethod="POST",
3107
+ endpoint=g_param[OptionsDefine.Endpoint],
3108
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
3109
+ )
3110
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
3111
+ if g_param[OptionsDefine.Language]:
3112
+ profile.language = g_param[OptionsDefine.Language]
3113
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
3114
+ client = mod.SqlserverClient(cred, g_param[OptionsDefine.Region], profile)
3115
+ client._sdkVersion += ("_CLI_" + __version__)
3116
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
3117
+ model = models.DescribeBackupStatisticalRequest()
3118
+ model.from_json_string(json.dumps(args))
3119
+ start_time = time.time()
3120
+ while True:
3121
+ rsp = client.DescribeBackupStatistical(model)
3122
+ result = rsp.to_json_string()
3123
+ try:
3124
+ json_obj = json.loads(result)
3125
+ except TypeError as e:
3126
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
3127
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
3128
+ break
3129
+ cur_time = time.time()
3130
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
3131
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
3132
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
3133
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
3134
+ else:
3135
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
3136
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
3137
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
3138
+
3139
+
3140
+ def doCreateDB(args, parsed_globals):
3141
+ g_param = parse_global_arg(parsed_globals)
3142
+
3143
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
3144
+ cred = credential.CVMRoleCredential()
3145
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
3146
+ cred = credential.STSAssumeRoleCredential(
3147
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
3148
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')]
3149
+ )
3150
+ elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
3151
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
3152
+ else:
3153
+ cred = credential.Credential(
3154
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
3155
+ )
3156
+ http_profile = HttpProfile(
3157
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
3158
+ reqMethod="POST",
3159
+ endpoint=g_param[OptionsDefine.Endpoint],
3160
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
3161
+ )
3162
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
3163
+ if g_param[OptionsDefine.Language]:
3164
+ profile.language = g_param[OptionsDefine.Language]
3165
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
3166
+ client = mod.SqlserverClient(cred, g_param[OptionsDefine.Region], profile)
3167
+ client._sdkVersion += ("_CLI_" + __version__)
3168
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
3169
+ model = models.CreateDBRequest()
3170
+ model.from_json_string(json.dumps(args))
3171
+ start_time = time.time()
3172
+ while True:
3173
+ rsp = client.CreateDB(model)
3174
+ result = rsp.to_json_string()
3175
+ try:
3176
+ json_obj = json.loads(result)
3177
+ except TypeError as e:
3178
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
3179
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
3180
+ break
3181
+ cur_time = time.time()
3182
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
3183
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
3184
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
3185
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
3186
+ else:
3187
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
3188
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
3189
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
3190
+
3191
+
3192
+ def doDeleteDB(args, parsed_globals):
3193
+ g_param = parse_global_arg(parsed_globals)
3194
+
3195
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
3196
+ cred = credential.CVMRoleCredential()
3197
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
3198
+ cred = credential.STSAssumeRoleCredential(
3199
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
3200
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')]
3201
+ )
3202
+ elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
3203
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
3204
+ else:
3205
+ cred = credential.Credential(
3206
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
3207
+ )
3208
+ http_profile = HttpProfile(
3209
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
3210
+ reqMethod="POST",
3211
+ endpoint=g_param[OptionsDefine.Endpoint],
3212
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
3213
+ )
3214
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
3215
+ if g_param[OptionsDefine.Language]:
3216
+ profile.language = g_param[OptionsDefine.Language]
3217
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
3218
+ client = mod.SqlserverClient(cred, g_param[OptionsDefine.Region], profile)
3219
+ client._sdkVersion += ("_CLI_" + __version__)
3220
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
3221
+ model = models.DeleteDBRequest()
3222
+ model.from_json_string(json.dumps(args))
3223
+ start_time = time.time()
3224
+ while True:
3225
+ rsp = client.DeleteDB(model)
3226
+ result = rsp.to_json_string()
3227
+ try:
3228
+ json_obj = json.loads(result)
3229
+ except TypeError as e:
3230
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
3231
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
3232
+ break
3233
+ cur_time = time.time()
3234
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
3235
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
3236
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
3237
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
3238
+ else:
3239
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
3240
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
3241
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
3242
+
3243
+
3244
+ def doCreateCloudDBInstances(args, parsed_globals):
3245
+ g_param = parse_global_arg(parsed_globals)
3246
+
3247
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
3248
+ cred = credential.CVMRoleCredential()
3249
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
3250
+ cred = credential.STSAssumeRoleCredential(
3251
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
3252
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')]
3253
+ )
3254
+ elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
3255
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
3256
+ else:
3257
+ cred = credential.Credential(
3258
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
3259
+ )
3260
+ http_profile = HttpProfile(
3261
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
3262
+ reqMethod="POST",
3263
+ endpoint=g_param[OptionsDefine.Endpoint],
3264
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
3265
+ )
3266
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
3267
+ if g_param[OptionsDefine.Language]:
3268
+ profile.language = g_param[OptionsDefine.Language]
3269
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
3270
+ client = mod.SqlserverClient(cred, g_param[OptionsDefine.Region], profile)
3271
+ client._sdkVersion += ("_CLI_" + __version__)
3272
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
3273
+ model = models.CreateCloudDBInstancesRequest()
3274
+ model.from_json_string(json.dumps(args))
3275
+ start_time = time.time()
3276
+ while True:
3277
+ rsp = client.CreateCloudDBInstances(model)
3278
+ result = rsp.to_json_string()
3279
+ try:
3280
+ json_obj = json.loads(result)
3281
+ except TypeError as e:
3282
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
3283
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
3284
+ break
3285
+ cur_time = time.time()
3286
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
3287
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
3288
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
3289
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
3290
+ else:
3291
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
3292
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
3293
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
3294
+
3295
+
3296
+ def doDescribeCollationTimeZone(args, parsed_globals):
3297
+ g_param = parse_global_arg(parsed_globals)
3298
+
3299
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
3300
+ cred = credential.CVMRoleCredential()
3301
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
3302
+ cred = credential.STSAssumeRoleCredential(
3303
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
3304
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')]
3305
+ )
3306
+ elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
3307
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
3308
+ else:
3309
+ cred = credential.Credential(
3310
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
3311
+ )
3312
+ http_profile = HttpProfile(
3313
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
3314
+ reqMethod="POST",
3315
+ endpoint=g_param[OptionsDefine.Endpoint],
3316
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
3317
+ )
3318
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
3319
+ if g_param[OptionsDefine.Language]:
3320
+ profile.language = g_param[OptionsDefine.Language]
3321
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
3322
+ client = mod.SqlserverClient(cred, g_param[OptionsDefine.Region], profile)
3323
+ client._sdkVersion += ("_CLI_" + __version__)
3324
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
3325
+ model = models.DescribeCollationTimeZoneRequest()
3326
+ model.from_json_string(json.dumps(args))
3327
+ start_time = time.time()
3328
+ while True:
3329
+ rsp = client.DescribeCollationTimeZone(model)
3330
+ result = rsp.to_json_string()
3331
+ try:
3332
+ json_obj = json.loads(result)
3333
+ except TypeError as e:
3334
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
3335
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
3336
+ break
3337
+ cur_time = time.time()
3338
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
3339
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
3340
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
3341
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
3342
+ else:
3343
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
3344
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
3345
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
3346
+
3347
+
3348
+ def doDescribeInstanceParamRecords(args, parsed_globals):
3349
+ g_param = parse_global_arg(parsed_globals)
3350
+
3351
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
3352
+ cred = credential.CVMRoleCredential()
3353
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
3354
+ cred = credential.STSAssumeRoleCredential(
3355
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
3356
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')]
3357
+ )
3358
+ elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
3359
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
3360
+ else:
3361
+ cred = credential.Credential(
3362
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
3363
+ )
3364
+ http_profile = HttpProfile(
3365
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
3366
+ reqMethod="POST",
3367
+ endpoint=g_param[OptionsDefine.Endpoint],
3368
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
3369
+ )
3370
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
3371
+ if g_param[OptionsDefine.Language]:
3372
+ profile.language = g_param[OptionsDefine.Language]
3373
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
3374
+ client = mod.SqlserverClient(cred, g_param[OptionsDefine.Region], profile)
3375
+ client._sdkVersion += ("_CLI_" + __version__)
3376
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
3377
+ model = models.DescribeInstanceParamRecordsRequest()
3378
+ model.from_json_string(json.dumps(args))
3379
+ start_time = time.time()
3380
+ while True:
3381
+ rsp = client.DescribeInstanceParamRecords(model)
3382
+ result = rsp.to_json_string()
3383
+ try:
3384
+ json_obj = json.loads(result)
3385
+ except TypeError as e:
3386
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
3387
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
3388
+ break
3389
+ cur_time = time.time()
3390
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
3391
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
3392
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
3393
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
3394
+ else:
3395
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
3396
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
3397
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
3398
+
3399
+
3400
+ def doCreateBusinessIntelligenceFile(args, parsed_globals):
3401
+ g_param = parse_global_arg(parsed_globals)
3402
+
3403
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
3404
+ cred = credential.CVMRoleCredential()
3405
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
3406
+ cred = credential.STSAssumeRoleCredential(
3407
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
3408
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')]
3409
+ )
3410
+ elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
3411
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
3412
+ else:
3413
+ cred = credential.Credential(
3414
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
3415
+ )
3416
+ http_profile = HttpProfile(
3417
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
3418
+ reqMethod="POST",
3419
+ endpoint=g_param[OptionsDefine.Endpoint],
3420
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
3421
+ )
3422
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
3423
+ if g_param[OptionsDefine.Language]:
3424
+ profile.language = g_param[OptionsDefine.Language]
3425
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
3426
+ client = mod.SqlserverClient(cred, g_param[OptionsDefine.Region], profile)
3427
+ client._sdkVersion += ("_CLI_" + __version__)
3428
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
3429
+ model = models.CreateBusinessIntelligenceFileRequest()
3430
+ model.from_json_string(json.dumps(args))
3431
+ start_time = time.time()
3432
+ while True:
3433
+ rsp = client.CreateBusinessIntelligenceFile(model)
3434
+ result = rsp.to_json_string()
3435
+ try:
3436
+ json_obj = json.loads(result)
3437
+ except TypeError as e:
3438
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
3439
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
3440
+ break
3441
+ cur_time = time.time()
3442
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
3443
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
3444
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
3445
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
3446
+ else:
3447
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
3448
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
3449
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
3450
+
3451
+
3452
+ def doDescribeInstanceTasks(args, parsed_globals):
2465
3453
  g_param = parse_global_arg(parsed_globals)
2466
3454
 
2467
3455
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -2490,11 +3478,11 @@ def doDescribeInstanceParams(args, parsed_globals):
2490
3478
  client = mod.SqlserverClient(cred, g_param[OptionsDefine.Region], profile)
2491
3479
  client._sdkVersion += ("_CLI_" + __version__)
2492
3480
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
2493
- model = models.DescribeInstanceParamsRequest()
3481
+ model = models.DescribeInstanceTasksRequest()
2494
3482
  model.from_json_string(json.dumps(args))
2495
3483
  start_time = time.time()
2496
3484
  while True:
2497
- rsp = client.DescribeInstanceParams(model)
3485
+ rsp = client.DescribeInstanceTasks(model)
2498
3486
  result = rsp.to_json_string()
2499
3487
  try:
2500
3488
  json_obj = json.loads(result)
@@ -2513,7 +3501,7 @@ def doDescribeInstanceParams(args, parsed_globals):
2513
3501
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
2514
3502
 
2515
3503
 
2516
- def doCompleteExpansion(args, parsed_globals):
3504
+ def doDescribeHASwitchLog(args, parsed_globals):
2517
3505
  g_param = parse_global_arg(parsed_globals)
2518
3506
 
2519
3507
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -2542,11 +3530,11 @@ def doCompleteExpansion(args, parsed_globals):
2542
3530
  client = mod.SqlserverClient(cred, g_param[OptionsDefine.Region], profile)
2543
3531
  client._sdkVersion += ("_CLI_" + __version__)
2544
3532
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
2545
- model = models.CompleteExpansionRequest()
3533
+ model = models.DescribeHASwitchLogRequest()
2546
3534
  model.from_json_string(json.dumps(args))
2547
3535
  start_time = time.time()
2548
3536
  while True:
2549
- rsp = client.CompleteExpansion(model)
3537
+ rsp = client.DescribeHASwitchLog(model)
2550
3538
  result = rsp.to_json_string()
2551
3539
  try:
2552
3540
  json_obj = json.loads(result)
@@ -2565,7 +3553,7 @@ def doCompleteExpansion(args, parsed_globals):
2565
3553
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
2566
3554
 
2567
3555
 
2568
- def doDescribeBackupStatistical(args, parsed_globals):
3556
+ def doDescribeFlowStatus(args, parsed_globals):
2569
3557
  g_param = parse_global_arg(parsed_globals)
2570
3558
 
2571
3559
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -2594,11 +3582,11 @@ def doDescribeBackupStatistical(args, parsed_globals):
2594
3582
  client = mod.SqlserverClient(cred, g_param[OptionsDefine.Region], profile)
2595
3583
  client._sdkVersion += ("_CLI_" + __version__)
2596
3584
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
2597
- model = models.DescribeBackupStatisticalRequest()
3585
+ model = models.DescribeFlowStatusRequest()
2598
3586
  model.from_json_string(json.dumps(args))
2599
3587
  start_time = time.time()
2600
3588
  while True:
2601
- rsp = client.DescribeBackupStatistical(model)
3589
+ rsp = client.DescribeFlowStatus(model)
2602
3590
  result = rsp.to_json_string()
2603
3591
  try:
2604
3592
  json_obj = json.loads(result)
@@ -2617,7 +3605,7 @@ def doDescribeBackupStatistical(args, parsed_globals):
2617
3605
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
2618
3606
 
2619
3607
 
2620
- def doCreateDB(args, parsed_globals):
3608
+ def doDescribeDBCharsets(args, parsed_globals):
2621
3609
  g_param = parse_global_arg(parsed_globals)
2622
3610
 
2623
3611
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -2646,11 +3634,11 @@ def doCreateDB(args, parsed_globals):
2646
3634
  client = mod.SqlserverClient(cred, g_param[OptionsDefine.Region], profile)
2647
3635
  client._sdkVersion += ("_CLI_" + __version__)
2648
3636
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
2649
- model = models.CreateDBRequest()
3637
+ model = models.DescribeDBCharsetsRequest()
2650
3638
  model.from_json_string(json.dumps(args))
2651
3639
  start_time = time.time()
2652
3640
  while True:
2653
- rsp = client.CreateDB(model)
3641
+ rsp = client.DescribeDBCharsets(model)
2654
3642
  result = rsp.to_json_string()
2655
3643
  try:
2656
3644
  json_obj = json.loads(result)
@@ -2669,7 +3657,7 @@ def doCreateDB(args, parsed_globals):
2669
3657
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
2670
3658
 
2671
3659
 
2672
- def doCreateCloudDBInstances(args, parsed_globals):
3660
+ def doDescribeUpgradeInstanceCheck(args, parsed_globals):
2673
3661
  g_param = parse_global_arg(parsed_globals)
2674
3662
 
2675
3663
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -2698,11 +3686,11 @@ def doCreateCloudDBInstances(args, parsed_globals):
2698
3686
  client = mod.SqlserverClient(cred, g_param[OptionsDefine.Region], profile)
2699
3687
  client._sdkVersion += ("_CLI_" + __version__)
2700
3688
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
2701
- model = models.CreateCloudDBInstancesRequest()
3689
+ model = models.DescribeUpgradeInstanceCheckRequest()
2702
3690
  model.from_json_string(json.dumps(args))
2703
3691
  start_time = time.time()
2704
3692
  while True:
2705
- rsp = client.CreateCloudDBInstances(model)
3693
+ rsp = client.DescribeUpgradeInstanceCheck(model)
2706
3694
  result = rsp.to_json_string()
2707
3695
  try:
2708
3696
  json_obj = json.loads(result)
@@ -2721,7 +3709,7 @@ def doCreateCloudDBInstances(args, parsed_globals):
2721
3709
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
2722
3710
 
2723
3711
 
2724
- def doRestoreInstance(args, parsed_globals):
3712
+ def doModifyDatabaseShrinkMDF(args, parsed_globals):
2725
3713
  g_param = parse_global_arg(parsed_globals)
2726
3714
 
2727
3715
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -2750,11 +3738,11 @@ def doRestoreInstance(args, parsed_globals):
2750
3738
  client = mod.SqlserverClient(cred, g_param[OptionsDefine.Region], profile)
2751
3739
  client._sdkVersion += ("_CLI_" + __version__)
2752
3740
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
2753
- model = models.RestoreInstanceRequest()
3741
+ model = models.ModifyDatabaseShrinkMDFRequest()
2754
3742
  model.from_json_string(json.dumps(args))
2755
3743
  start_time = time.time()
2756
3744
  while True:
2757
- rsp = client.RestoreInstance(model)
3745
+ rsp = client.ModifyDatabaseShrinkMDF(model)
2758
3746
  result = rsp.to_json_string()
2759
3747
  try:
2760
3748
  json_obj = json.loads(result)
@@ -2773,7 +3761,7 @@ def doRestoreInstance(args, parsed_globals):
2773
3761
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
2774
3762
 
2775
3763
 
2776
- def doDescribeInstanceParamRecords(args, parsed_globals):
3764
+ def doResetAccountPassword(args, parsed_globals):
2777
3765
  g_param = parse_global_arg(parsed_globals)
2778
3766
 
2779
3767
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -2802,11 +3790,11 @@ def doDescribeInstanceParamRecords(args, parsed_globals):
2802
3790
  client = mod.SqlserverClient(cred, g_param[OptionsDefine.Region], profile)
2803
3791
  client._sdkVersion += ("_CLI_" + __version__)
2804
3792
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
2805
- model = models.DescribeInstanceParamRecordsRequest()
3793
+ model = models.ResetAccountPasswordRequest()
2806
3794
  model.from_json_string(json.dumps(args))
2807
3795
  start_time = time.time()
2808
3796
  while True:
2809
- rsp = client.DescribeInstanceParamRecords(model)
3797
+ rsp = client.ResetAccountPassword(model)
2810
3798
  result = rsp.to_json_string()
2811
3799
  try:
2812
3800
  json_obj = json.loads(result)
@@ -2825,7 +3813,7 @@ def doDescribeInstanceParamRecords(args, parsed_globals):
2825
3813
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
2826
3814
 
2827
3815
 
2828
- def doCreateBusinessIntelligenceFile(args, parsed_globals):
3816
+ def doModifyInstanceParam(args, parsed_globals):
2829
3817
  g_param = parse_global_arg(parsed_globals)
2830
3818
 
2831
3819
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -2854,11 +3842,11 @@ def doCreateBusinessIntelligenceFile(args, parsed_globals):
2854
3842
  client = mod.SqlserverClient(cred, g_param[OptionsDefine.Region], profile)
2855
3843
  client._sdkVersion += ("_CLI_" + __version__)
2856
3844
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
2857
- model = models.CreateBusinessIntelligenceFileRequest()
3845
+ model = models.ModifyInstanceParamRequest()
2858
3846
  model.from_json_string(json.dumps(args))
2859
3847
  start_time = time.time()
2860
3848
  while True:
2861
- rsp = client.CreateBusinessIntelligenceFile(model)
3849
+ rsp = client.ModifyInstanceParam(model)
2862
3850
  result = rsp.to_json_string()
2863
3851
  try:
2864
3852
  json_obj = json.loads(result)
@@ -2877,7 +3865,7 @@ def doCreateBusinessIntelligenceFile(args, parsed_globals):
2877
3865
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
2878
3866
 
2879
3867
 
2880
- def doDescribeHASwitchLog(args, parsed_globals):
3868
+ def doDescribeSlowlogs(args, parsed_globals):
2881
3869
  g_param = parse_global_arg(parsed_globals)
2882
3870
 
2883
3871
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -2906,11 +3894,11 @@ def doDescribeHASwitchLog(args, parsed_globals):
2906
3894
  client = mod.SqlserverClient(cred, g_param[OptionsDefine.Region], profile)
2907
3895
  client._sdkVersion += ("_CLI_" + __version__)
2908
3896
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
2909
- model = models.DescribeHASwitchLogRequest()
3897
+ model = models.DescribeSlowlogsRequest()
2910
3898
  model.from_json_string(json.dumps(args))
2911
3899
  start_time = time.time()
2912
3900
  while True:
2913
- rsp = client.DescribeHASwitchLog(model)
3901
+ rsp = client.DescribeSlowlogs(model)
2914
3902
  result = rsp.to_json_string()
2915
3903
  try:
2916
3904
  json_obj = json.loads(result)
@@ -2929,7 +3917,7 @@ def doDescribeHASwitchLog(args, parsed_globals):
2929
3917
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
2930
3918
 
2931
3919
 
2932
- def doDescribeFlowStatus(args, parsed_globals):
3920
+ def doDescribeUploadIncrementalInfo(args, parsed_globals):
2933
3921
  g_param = parse_global_arg(parsed_globals)
2934
3922
 
2935
3923
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -2958,11 +3946,11 @@ def doDescribeFlowStatus(args, parsed_globals):
2958
3946
  client = mod.SqlserverClient(cred, g_param[OptionsDefine.Region], profile)
2959
3947
  client._sdkVersion += ("_CLI_" + __version__)
2960
3948
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
2961
- model = models.DescribeFlowStatusRequest()
3949
+ model = models.DescribeUploadIncrementalInfoRequest()
2962
3950
  model.from_json_string(json.dumps(args))
2963
3951
  start_time = time.time()
2964
3952
  while True:
2965
- rsp = client.DescribeFlowStatus(model)
3953
+ rsp = client.DescribeUploadIncrementalInfo(model)
2966
3954
  result = rsp.to_json_string()
2967
3955
  try:
2968
3956
  json_obj = json.loads(result)
@@ -2981,7 +3969,7 @@ def doDescribeFlowStatus(args, parsed_globals):
2981
3969
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
2982
3970
 
2983
3971
 
2984
- def doDescribeDBCharsets(args, parsed_globals):
3972
+ def doStartMigrationCheck(args, parsed_globals):
2985
3973
  g_param = parse_global_arg(parsed_globals)
2986
3974
 
2987
3975
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -3010,11 +3998,11 @@ def doDescribeDBCharsets(args, parsed_globals):
3010
3998
  client = mod.SqlserverClient(cred, g_param[OptionsDefine.Region], profile)
3011
3999
  client._sdkVersion += ("_CLI_" + __version__)
3012
4000
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
3013
- model = models.DescribeDBCharsetsRequest()
4001
+ model = models.StartMigrationCheckRequest()
3014
4002
  model.from_json_string(json.dumps(args))
3015
4003
  start_time = time.time()
3016
4004
  while True:
3017
- rsp = client.DescribeDBCharsets(model)
4005
+ rsp = client.StartMigrationCheck(model)
3018
4006
  result = rsp.to_json_string()
3019
4007
  try:
3020
4008
  json_obj = json.loads(result)
@@ -3033,7 +4021,7 @@ def doDescribeDBCharsets(args, parsed_globals):
3033
4021
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
3034
4022
 
3035
4023
 
3036
- def doDeletePublishSubscribe(args, parsed_globals):
4024
+ def doCreateBasicDBInstances(args, parsed_globals):
3037
4025
  g_param = parse_global_arg(parsed_globals)
3038
4026
 
3039
4027
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -3062,11 +4050,11 @@ def doDeletePublishSubscribe(args, parsed_globals):
3062
4050
  client = mod.SqlserverClient(cred, g_param[OptionsDefine.Region], profile)
3063
4051
  client._sdkVersion += ("_CLI_" + __version__)
3064
4052
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
3065
- model = models.DeletePublishSubscribeRequest()
4053
+ model = models.CreateBasicDBInstancesRequest()
3066
4054
  model.from_json_string(json.dumps(args))
3067
4055
  start_time = time.time()
3068
4056
  while True:
3069
- rsp = client.DeletePublishSubscribe(model)
4057
+ rsp = client.CreateBasicDBInstances(model)
3070
4058
  result = rsp.to_json_string()
3071
4059
  try:
3072
4060
  json_obj = json.loads(result)
@@ -3085,7 +4073,7 @@ def doDeletePublishSubscribe(args, parsed_globals):
3085
4073
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
3086
4074
 
3087
4075
 
3088
- def doModifyDatabaseShrinkMDF(args, parsed_globals):
4076
+ def doRestartDBInstance(args, parsed_globals):
3089
4077
  g_param = parse_global_arg(parsed_globals)
3090
4078
 
3091
4079
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -3114,11 +4102,11 @@ def doModifyDatabaseShrinkMDF(args, parsed_globals):
3114
4102
  client = mod.SqlserverClient(cred, g_param[OptionsDefine.Region], profile)
3115
4103
  client._sdkVersion += ("_CLI_" + __version__)
3116
4104
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
3117
- model = models.ModifyDatabaseShrinkMDFRequest()
4105
+ model = models.RestartDBInstanceRequest()
3118
4106
  model.from_json_string(json.dumps(args))
3119
4107
  start_time = time.time()
3120
4108
  while True:
3121
- rsp = client.ModifyDatabaseShrinkMDF(model)
4109
+ rsp = client.RestartDBInstance(model)
3122
4110
  result = rsp.to_json_string()
3123
4111
  try:
3124
4112
  json_obj = json.loads(result)
@@ -3137,7 +4125,7 @@ def doModifyDatabaseShrinkMDF(args, parsed_globals):
3137
4125
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
3138
4126
 
3139
4127
 
3140
- def doResetAccountPassword(args, parsed_globals):
4128
+ def doCreateDBInstances(args, parsed_globals):
3141
4129
  g_param = parse_global_arg(parsed_globals)
3142
4130
 
3143
4131
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -3166,11 +4154,11 @@ def doResetAccountPassword(args, parsed_globals):
3166
4154
  client = mod.SqlserverClient(cred, g_param[OptionsDefine.Region], profile)
3167
4155
  client._sdkVersion += ("_CLI_" + __version__)
3168
4156
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
3169
- model = models.ResetAccountPasswordRequest()
4157
+ model = models.CreateDBInstancesRequest()
3170
4158
  model.from_json_string(json.dumps(args))
3171
4159
  start_time = time.time()
3172
4160
  while True:
3173
- rsp = client.ResetAccountPassword(model)
4161
+ rsp = client.CreateDBInstances(model)
3174
4162
  result = rsp.to_json_string()
3175
4163
  try:
3176
4164
  json_obj = json.loads(result)
@@ -3189,7 +4177,7 @@ def doResetAccountPassword(args, parsed_globals):
3189
4177
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
3190
4178
 
3191
4179
 
3192
- def doModifyInstanceParam(args, parsed_globals):
4180
+ def doCreateMigration(args, parsed_globals):
3193
4181
  g_param = parse_global_arg(parsed_globals)
3194
4182
 
3195
4183
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -3218,11 +4206,11 @@ def doModifyInstanceParam(args, parsed_globals):
3218
4206
  client = mod.SqlserverClient(cred, g_param[OptionsDefine.Region], profile)
3219
4207
  client._sdkVersion += ("_CLI_" + __version__)
3220
4208
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
3221
- model = models.ModifyInstanceParamRequest()
4209
+ model = models.CreateMigrationRequest()
3222
4210
  model.from_json_string(json.dumps(args))
3223
4211
  start_time = time.time()
3224
4212
  while True:
3225
- rsp = client.ModifyInstanceParam(model)
4213
+ rsp = client.CreateMigration(model)
3226
4214
  result = rsp.to_json_string()
3227
4215
  try:
3228
4216
  json_obj = json.loads(result)
@@ -3241,7 +4229,7 @@ def doModifyInstanceParam(args, parsed_globals):
3241
4229
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
3242
4230
 
3243
4231
 
3244
- def doDescribeSlowlogs(args, parsed_globals):
4232
+ def doDeleteBusinessIntelligenceFile(args, parsed_globals):
3245
4233
  g_param = parse_global_arg(parsed_globals)
3246
4234
 
3247
4235
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -3270,11 +4258,11 @@ def doDescribeSlowlogs(args, parsed_globals):
3270
4258
  client = mod.SqlserverClient(cred, g_param[OptionsDefine.Region], profile)
3271
4259
  client._sdkVersion += ("_CLI_" + __version__)
3272
4260
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
3273
- model = models.DescribeSlowlogsRequest()
4261
+ model = models.DeleteBusinessIntelligenceFileRequest()
3274
4262
  model.from_json_string(json.dumps(args))
3275
4263
  start_time = time.time()
3276
4264
  while True:
3277
- rsp = client.DescribeSlowlogs(model)
4265
+ rsp = client.DeleteBusinessIntelligenceFile(model)
3278
4266
  result = rsp.to_json_string()
3279
4267
  try:
3280
4268
  json_obj = json.loads(result)
@@ -3293,7 +4281,7 @@ def doDescribeSlowlogs(args, parsed_globals):
3293
4281
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
3294
4282
 
3295
4283
 
3296
- def doDeleteDB(args, parsed_globals):
4284
+ def doCreateBackupMigration(args, parsed_globals):
3297
4285
  g_param = parse_global_arg(parsed_globals)
3298
4286
 
3299
4287
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -3322,11 +4310,11 @@ def doDeleteDB(args, parsed_globals):
3322
4310
  client = mod.SqlserverClient(cred, g_param[OptionsDefine.Region], profile)
3323
4311
  client._sdkVersion += ("_CLI_" + __version__)
3324
4312
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
3325
- model = models.DeleteDBRequest()
4313
+ model = models.CreateBackupMigrationRequest()
3326
4314
  model.from_json_string(json.dumps(args))
3327
4315
  start_time = time.time()
3328
4316
  while True:
3329
- rsp = client.DeleteDB(model)
4317
+ rsp = client.CreateBackupMigration(model)
3330
4318
  result = rsp.to_json_string()
3331
4319
  try:
3332
4320
  json_obj = json.loads(result)
@@ -3345,7 +4333,7 @@ def doDeleteDB(args, parsed_globals):
3345
4333
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
3346
4334
 
3347
4335
 
3348
- def doStartMigrationCheck(args, parsed_globals):
4336
+ def doDescribeDBInstances(args, parsed_globals):
3349
4337
  g_param = parse_global_arg(parsed_globals)
3350
4338
 
3351
4339
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -3374,11 +4362,11 @@ def doStartMigrationCheck(args, parsed_globals):
3374
4362
  client = mod.SqlserverClient(cred, g_param[OptionsDefine.Region], profile)
3375
4363
  client._sdkVersion += ("_CLI_" + __version__)
3376
4364
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
3377
- model = models.StartMigrationCheckRequest()
4365
+ model = models.DescribeDBInstancesRequest()
3378
4366
  model.from_json_string(json.dumps(args))
3379
4367
  start_time = time.time()
3380
4368
  while True:
3381
- rsp = client.StartMigrationCheck(model)
4369
+ rsp = client.DescribeDBInstances(model)
3382
4370
  result = rsp.to_json_string()
3383
4371
  try:
3384
4372
  json_obj = json.loads(result)
@@ -3397,7 +4385,7 @@ def doStartMigrationCheck(args, parsed_globals):
3397
4385
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
3398
4386
 
3399
4387
 
3400
- def doCreateBasicDBInstances(args, parsed_globals):
4388
+ def doDescribeBusinessIntelligenceFile(args, parsed_globals):
3401
4389
  g_param = parse_global_arg(parsed_globals)
3402
4390
 
3403
4391
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -3426,11 +4414,11 @@ def doCreateBasicDBInstances(args, parsed_globals):
3426
4414
  client = mod.SqlserverClient(cred, g_param[OptionsDefine.Region], profile)
3427
4415
  client._sdkVersion += ("_CLI_" + __version__)
3428
4416
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
3429
- model = models.CreateBasicDBInstancesRequest()
4417
+ model = models.DescribeBusinessIntelligenceFileRequest()
3430
4418
  model.from_json_string(json.dumps(args))
3431
4419
  start_time = time.time()
3432
4420
  while True:
3433
- rsp = client.CreateBasicDBInstances(model)
4421
+ rsp = client.DescribeBusinessIntelligenceFile(model)
3434
4422
  result = rsp.to_json_string()
3435
4423
  try:
3436
4424
  json_obj = json.loads(result)
@@ -3449,7 +4437,7 @@ def doCreateBasicDBInstances(args, parsed_globals):
3449
4437
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
3450
4438
 
3451
4439
 
3452
- def doRestartDBInstance(args, parsed_globals):
4440
+ def doAssociateSecurityGroups(args, parsed_globals):
3453
4441
  g_param = parse_global_arg(parsed_globals)
3454
4442
 
3455
4443
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -3478,11 +4466,11 @@ def doRestartDBInstance(args, parsed_globals):
3478
4466
  client = mod.SqlserverClient(cred, g_param[OptionsDefine.Region], profile)
3479
4467
  client._sdkVersion += ("_CLI_" + __version__)
3480
4468
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
3481
- model = models.RestartDBInstanceRequest()
4469
+ model = models.AssociateSecurityGroupsRequest()
3482
4470
  model.from_json_string(json.dumps(args))
3483
4471
  start_time = time.time()
3484
4472
  while True:
3485
- rsp = client.RestartDBInstance(model)
4473
+ rsp = client.AssociateSecurityGroups(model)
3486
4474
  result = rsp.to_json_string()
3487
4475
  try:
3488
4476
  json_obj = json.loads(result)
@@ -3501,7 +4489,7 @@ def doRestartDBInstance(args, parsed_globals):
3501
4489
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
3502
4490
 
3503
4491
 
3504
- def doCreateDBInstances(args, parsed_globals):
4492
+ def doOpenInterCommunication(args, parsed_globals):
3505
4493
  g_param = parse_global_arg(parsed_globals)
3506
4494
 
3507
4495
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -3530,11 +4518,11 @@ def doCreateDBInstances(args, parsed_globals):
3530
4518
  client = mod.SqlserverClient(cred, g_param[OptionsDefine.Region], profile)
3531
4519
  client._sdkVersion += ("_CLI_" + __version__)
3532
4520
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
3533
- model = models.CreateDBInstancesRequest()
4521
+ model = models.OpenInterCommunicationRequest()
3534
4522
  model.from_json_string(json.dumps(args))
3535
4523
  start_time = time.time()
3536
4524
  while True:
3537
- rsp = client.CreateDBInstances(model)
4525
+ rsp = client.OpenInterCommunication(model)
3538
4526
  result = rsp.to_json_string()
3539
4527
  try:
3540
4528
  json_obj = json.loads(result)
@@ -3553,7 +4541,7 @@ def doCreateDBInstances(args, parsed_globals):
3553
4541
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
3554
4542
 
3555
4543
 
3556
- def doCreateMigration(args, parsed_globals):
4544
+ def doCreateIncrementalMigration(args, parsed_globals):
3557
4545
  g_param = parse_global_arg(parsed_globals)
3558
4546
 
3559
4547
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -3582,11 +4570,11 @@ def doCreateMigration(args, parsed_globals):
3582
4570
  client = mod.SqlserverClient(cred, g_param[OptionsDefine.Region], profile)
3583
4571
  client._sdkVersion += ("_CLI_" + __version__)
3584
4572
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
3585
- model = models.CreateMigrationRequest()
4573
+ model = models.CreateIncrementalMigrationRequest()
3586
4574
  model.from_json_string(json.dumps(args))
3587
4575
  start_time = time.time()
3588
4576
  while True:
3589
- rsp = client.CreateMigration(model)
4577
+ rsp = client.CreateIncrementalMigration(model)
3590
4578
  result = rsp.to_json_string()
3591
4579
  try:
3592
4580
  json_obj = json.loads(result)
@@ -3605,7 +4593,7 @@ def doCreateMigration(args, parsed_globals):
3605
4593
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
3606
4594
 
3607
4595
 
3608
- def doDeleteBusinessIntelligenceFile(args, parsed_globals):
4596
+ def doDescribeBackupUploadSize(args, parsed_globals):
3609
4597
  g_param = parse_global_arg(parsed_globals)
3610
4598
 
3611
4599
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -3634,11 +4622,11 @@ def doDeleteBusinessIntelligenceFile(args, parsed_globals):
3634
4622
  client = mod.SqlserverClient(cred, g_param[OptionsDefine.Region], profile)
3635
4623
  client._sdkVersion += ("_CLI_" + __version__)
3636
4624
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
3637
- model = models.DeleteBusinessIntelligenceFileRequest()
4625
+ model = models.DescribeBackupUploadSizeRequest()
3638
4626
  model.from_json_string(json.dumps(args))
3639
4627
  start_time = time.time()
3640
4628
  while True:
3641
- rsp = client.DeleteBusinessIntelligenceFile(model)
4629
+ rsp = client.DescribeBackupUploadSize(model)
3642
4630
  result = rsp.to_json_string()
3643
4631
  try:
3644
4632
  json_obj = json.loads(result)
@@ -3657,7 +4645,7 @@ def doDeleteBusinessIntelligenceFile(args, parsed_globals):
3657
4645
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
3658
4646
 
3659
4647
 
3660
- def doCreateBackupMigration(args, parsed_globals):
4648
+ def doStartInstanceXEvent(args, parsed_globals):
3661
4649
  g_param = parse_global_arg(parsed_globals)
3662
4650
 
3663
4651
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -3686,11 +4674,11 @@ def doCreateBackupMigration(args, parsed_globals):
3686
4674
  client = mod.SqlserverClient(cred, g_param[OptionsDefine.Region], profile)
3687
4675
  client._sdkVersion += ("_CLI_" + __version__)
3688
4676
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
3689
- model = models.CreateBackupMigrationRequest()
4677
+ model = models.StartInstanceXEventRequest()
3690
4678
  model.from_json_string(json.dumps(args))
3691
4679
  start_time = time.time()
3692
4680
  while True:
3693
- rsp = client.CreateBackupMigration(model)
4681
+ rsp = client.StartInstanceXEvent(model)
3694
4682
  result = rsp.to_json_string()
3695
4683
  try:
3696
4684
  json_obj = json.loads(result)
@@ -3709,7 +4697,7 @@ def doCreateBackupMigration(args, parsed_globals):
3709
4697
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
3710
4698
 
3711
4699
 
3712
- def doDescribeDBInstances(args, parsed_globals):
4700
+ def doDeleteMigration(args, parsed_globals):
3713
4701
  g_param = parse_global_arg(parsed_globals)
3714
4702
 
3715
4703
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -3738,11 +4726,11 @@ def doDescribeDBInstances(args, parsed_globals):
3738
4726
  client = mod.SqlserverClient(cred, g_param[OptionsDefine.Region], profile)
3739
4727
  client._sdkVersion += ("_CLI_" + __version__)
3740
4728
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
3741
- model = models.DescribeDBInstancesRequest()
4729
+ model = models.DeleteMigrationRequest()
3742
4730
  model.from_json_string(json.dumps(args))
3743
4731
  start_time = time.time()
3744
4732
  while True:
3745
- rsp = client.DescribeDBInstances(model)
4733
+ rsp = client.DeleteMigration(model)
3746
4734
  result = rsp.to_json_string()
3747
4735
  try:
3748
4736
  json_obj = json.loads(result)
@@ -3761,7 +4749,7 @@ def doDescribeDBInstances(args, parsed_globals):
3761
4749
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
3762
4750
 
3763
4751
 
3764
- def doDescribeBusinessIntelligenceFile(args, parsed_globals):
4752
+ def doModifyInstanceEncryptAttributes(args, parsed_globals):
3765
4753
  g_param = parse_global_arg(parsed_globals)
3766
4754
 
3767
4755
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -3790,11 +4778,11 @@ def doDescribeBusinessIntelligenceFile(args, parsed_globals):
3790
4778
  client = mod.SqlserverClient(cred, g_param[OptionsDefine.Region], profile)
3791
4779
  client._sdkVersion += ("_CLI_" + __version__)
3792
4780
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
3793
- model = models.DescribeBusinessIntelligenceFileRequest()
4781
+ model = models.ModifyInstanceEncryptAttributesRequest()
3794
4782
  model.from_json_string(json.dumps(args))
3795
4783
  start_time = time.time()
3796
4784
  while True:
3797
- rsp = client.DescribeBusinessIntelligenceFile(model)
4785
+ rsp = client.ModifyInstanceEncryptAttributes(model)
3798
4786
  result = rsp.to_json_string()
3799
4787
  try:
3800
4788
  json_obj = json.loads(result)
@@ -3813,7 +4801,7 @@ def doDescribeBusinessIntelligenceFile(args, parsed_globals):
3813
4801
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
3814
4802
 
3815
4803
 
3816
- def doAssociateSecurityGroups(args, parsed_globals):
4804
+ def doModifyBackupName(args, parsed_globals):
3817
4805
  g_param = parse_global_arg(parsed_globals)
3818
4806
 
3819
4807
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -3842,11 +4830,11 @@ def doAssociateSecurityGroups(args, parsed_globals):
3842
4830
  client = mod.SqlserverClient(cred, g_param[OptionsDefine.Region], profile)
3843
4831
  client._sdkVersion += ("_CLI_" + __version__)
3844
4832
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
3845
- model = models.AssociateSecurityGroupsRequest()
4833
+ model = models.ModifyBackupNameRequest()
3846
4834
  model.from_json_string(json.dumps(args))
3847
4835
  start_time = time.time()
3848
4836
  while True:
3849
- rsp = client.AssociateSecurityGroups(model)
4837
+ rsp = client.ModifyBackupName(model)
3850
4838
  result = rsp.to_json_string()
3851
4839
  try:
3852
4840
  json_obj = json.loads(result)
@@ -3865,7 +4853,59 @@ def doAssociateSecurityGroups(args, parsed_globals):
3865
4853
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
3866
4854
 
3867
4855
 
3868
- def doOpenInterCommunication(args, parsed_globals):
4856
+ def doDescribeInstanceByOrders(args, parsed_globals):
4857
+ g_param = parse_global_arg(parsed_globals)
4858
+
4859
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
4860
+ cred = credential.CVMRoleCredential()
4861
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
4862
+ cred = credential.STSAssumeRoleCredential(
4863
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
4864
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')]
4865
+ )
4866
+ elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
4867
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
4868
+ else:
4869
+ cred = credential.Credential(
4870
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
4871
+ )
4872
+ http_profile = HttpProfile(
4873
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
4874
+ reqMethod="POST",
4875
+ endpoint=g_param[OptionsDefine.Endpoint],
4876
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
4877
+ )
4878
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
4879
+ if g_param[OptionsDefine.Language]:
4880
+ profile.language = g_param[OptionsDefine.Language]
4881
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
4882
+ client = mod.SqlserverClient(cred, g_param[OptionsDefine.Region], profile)
4883
+ client._sdkVersion += ("_CLI_" + __version__)
4884
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
4885
+ model = models.DescribeInstanceByOrdersRequest()
4886
+ model.from_json_string(json.dumps(args))
4887
+ start_time = time.time()
4888
+ while True:
4889
+ rsp = client.DescribeInstanceByOrders(model)
4890
+ result = rsp.to_json_string()
4891
+ try:
4892
+ json_obj = json.loads(result)
4893
+ except TypeError as e:
4894
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
4895
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
4896
+ break
4897
+ cur_time = time.time()
4898
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
4899
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
4900
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
4901
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
4902
+ else:
4903
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
4904
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
4905
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
4906
+
4907
+
4908
+ def doDescribeAccounts(args, parsed_globals):
3869
4909
  g_param = parse_global_arg(parsed_globals)
3870
4910
 
3871
4911
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -3894,11 +4934,11 @@ def doOpenInterCommunication(args, parsed_globals):
3894
4934
  client = mod.SqlserverClient(cred, g_param[OptionsDefine.Region], profile)
3895
4935
  client._sdkVersion += ("_CLI_" + __version__)
3896
4936
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
3897
- model = models.OpenInterCommunicationRequest()
4937
+ model = models.DescribeAccountsRequest()
3898
4938
  model.from_json_string(json.dumps(args))
3899
4939
  start_time = time.time()
3900
4940
  while True:
3901
- rsp = client.OpenInterCommunication(model)
4941
+ rsp = client.DescribeAccounts(model)
3902
4942
  result = rsp.to_json_string()
3903
4943
  try:
3904
4944
  json_obj = json.loads(result)
@@ -3917,7 +4957,7 @@ def doOpenInterCommunication(args, parsed_globals):
3917
4957
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
3918
4958
 
3919
4959
 
3920
- def doCreateIncrementalMigration(args, parsed_globals):
4960
+ def doModifyIncrementalMigration(args, parsed_globals):
3921
4961
  g_param = parse_global_arg(parsed_globals)
3922
4962
 
3923
4963
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -3946,11 +4986,11 @@ def doCreateIncrementalMigration(args, parsed_globals):
3946
4986
  client = mod.SqlserverClient(cred, g_param[OptionsDefine.Region], profile)
3947
4987
  client._sdkVersion += ("_CLI_" + __version__)
3948
4988
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
3949
- model = models.CreateIncrementalMigrationRequest()
4989
+ model = models.ModifyIncrementalMigrationRequest()
3950
4990
  model.from_json_string(json.dumps(args))
3951
4991
  start_time = time.time()
3952
4992
  while True:
3953
- rsp = client.CreateIncrementalMigration(model)
4993
+ rsp = client.ModifyIncrementalMigration(model)
3954
4994
  result = rsp.to_json_string()
3955
4995
  try:
3956
4996
  json_obj = json.loads(result)
@@ -3969,7 +5009,7 @@ def doCreateIncrementalMigration(args, parsed_globals):
3969
5009
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
3970
5010
 
3971
5011
 
3972
- def doDescribeBackupUploadSize(args, parsed_globals):
5012
+ def doModifyDBEncryptAttributes(args, parsed_globals):
3973
5013
  g_param = parse_global_arg(parsed_globals)
3974
5014
 
3975
5015
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -3998,11 +5038,11 @@ def doDescribeBackupUploadSize(args, parsed_globals):
3998
5038
  client = mod.SqlserverClient(cred, g_param[OptionsDefine.Region], profile)
3999
5039
  client._sdkVersion += ("_CLI_" + __version__)
4000
5040
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
4001
- model = models.DescribeBackupUploadSizeRequest()
5041
+ model = models.ModifyDBEncryptAttributesRequest()
4002
5042
  model.from_json_string(json.dumps(args))
4003
5043
  start_time = time.time()
4004
5044
  while True:
4005
- rsp = client.DescribeBackupUploadSize(model)
5045
+ rsp = client.ModifyDBEncryptAttributes(model)
4006
5046
  result = rsp.to_json_string()
4007
5047
  try:
4008
5048
  json_obj = json.loads(result)
@@ -4021,7 +5061,7 @@ def doDescribeBackupUploadSize(args, parsed_globals):
4021
5061
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
4022
5062
 
4023
5063
 
4024
- def doStartInstanceXEvent(args, parsed_globals):
5064
+ def doDescribeCrossRegions(args, parsed_globals):
4025
5065
  g_param = parse_global_arg(parsed_globals)
4026
5066
 
4027
5067
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -4050,11 +5090,11 @@ def doStartInstanceXEvent(args, parsed_globals):
4050
5090
  client = mod.SqlserverClient(cred, g_param[OptionsDefine.Region], profile)
4051
5091
  client._sdkVersion += ("_CLI_" + __version__)
4052
5092
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
4053
- model = models.StartInstanceXEventRequest()
5093
+ model = models.DescribeCrossRegionsRequest()
4054
5094
  model.from_json_string(json.dumps(args))
4055
5095
  start_time = time.time()
4056
5096
  while True:
4057
- rsp = client.StartInstanceXEvent(model)
5097
+ rsp = client.DescribeCrossRegions(model)
4058
5098
  result = rsp.to_json_string()
4059
5099
  try:
4060
5100
  json_obj = json.loads(result)
@@ -4073,7 +5113,7 @@ def doStartInstanceXEvent(args, parsed_globals):
4073
5113
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
4074
5114
 
4075
5115
 
4076
- def doDeleteMigration(args, parsed_globals):
5116
+ def doDescribeDBInstanceInter(args, parsed_globals):
4077
5117
  g_param = parse_global_arg(parsed_globals)
4078
5118
 
4079
5119
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -4102,11 +5142,11 @@ def doDeleteMigration(args, parsed_globals):
4102
5142
  client = mod.SqlserverClient(cred, g_param[OptionsDefine.Region], profile)
4103
5143
  client._sdkVersion += ("_CLI_" + __version__)
4104
5144
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
4105
- model = models.DeleteMigrationRequest()
5145
+ model = models.DescribeDBInstanceInterRequest()
4106
5146
  model.from_json_string(json.dumps(args))
4107
5147
  start_time = time.time()
4108
5148
  while True:
4109
- rsp = client.DeleteMigration(model)
5149
+ rsp = client.DescribeDBInstanceInter(model)
4110
5150
  result = rsp.to_json_string()
4111
5151
  try:
4112
5152
  json_obj = json.loads(result)
@@ -4125,7 +5165,7 @@ def doDeleteMigration(args, parsed_globals):
4125
5165
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
4126
5166
 
4127
5167
 
4128
- def doModifyInstanceEncryptAttributes(args, parsed_globals):
5168
+ def doRemoveBackups(args, parsed_globals):
4129
5169
  g_param = parse_global_arg(parsed_globals)
4130
5170
 
4131
5171
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -4154,11 +5194,11 @@ def doModifyInstanceEncryptAttributes(args, parsed_globals):
4154
5194
  client = mod.SqlserverClient(cred, g_param[OptionsDefine.Region], profile)
4155
5195
  client._sdkVersion += ("_CLI_" + __version__)
4156
5196
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
4157
- model = models.ModifyInstanceEncryptAttributesRequest()
5197
+ model = models.RemoveBackupsRequest()
4158
5198
  model.from_json_string(json.dumps(args))
4159
5199
  start_time = time.time()
4160
5200
  while True:
4161
- rsp = client.ModifyInstanceEncryptAttributes(model)
5201
+ rsp = client.RemoveBackups(model)
4162
5202
  result = rsp.to_json_string()
4163
5203
  try:
4164
5204
  json_obj = json.loads(result)
@@ -4177,7 +5217,7 @@ def doModifyInstanceEncryptAttributes(args, parsed_globals):
4177
5217
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
4178
5218
 
4179
5219
 
4180
- def doModifyBackupName(args, parsed_globals):
5220
+ def doDescribeMigrationDatabases(args, parsed_globals):
4181
5221
  g_param = parse_global_arg(parsed_globals)
4182
5222
 
4183
5223
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -4206,11 +5246,11 @@ def doModifyBackupName(args, parsed_globals):
4206
5246
  client = mod.SqlserverClient(cred, g_param[OptionsDefine.Region], profile)
4207
5247
  client._sdkVersion += ("_CLI_" + __version__)
4208
5248
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
4209
- model = models.ModifyBackupNameRequest()
5249
+ model = models.DescribeMigrationDatabasesRequest()
4210
5250
  model.from_json_string(json.dumps(args))
4211
5251
  start_time = time.time()
4212
5252
  while True:
4213
- rsp = client.ModifyBackupName(model)
5253
+ rsp = client.DescribeMigrationDatabases(model)
4214
5254
  result = rsp.to_json_string()
4215
5255
  try:
4216
5256
  json_obj = json.loads(result)
@@ -4229,7 +5269,7 @@ def doModifyBackupName(args, parsed_globals):
4229
5269
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
4230
5270
 
4231
5271
 
4232
- def doDescribeInstanceByOrders(args, parsed_globals):
5272
+ def doRunMigration(args, parsed_globals):
4233
5273
  g_param = parse_global_arg(parsed_globals)
4234
5274
 
4235
5275
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -4258,11 +5298,11 @@ def doDescribeInstanceByOrders(args, parsed_globals):
4258
5298
  client = mod.SqlserverClient(cred, g_param[OptionsDefine.Region], profile)
4259
5299
  client._sdkVersion += ("_CLI_" + __version__)
4260
5300
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
4261
- model = models.DescribeInstanceByOrdersRequest()
5301
+ model = models.RunMigrationRequest()
4262
5302
  model.from_json_string(json.dumps(args))
4263
5303
  start_time = time.time()
4264
5304
  while True:
4265
- rsp = client.DescribeInstanceByOrders(model)
5305
+ rsp = client.RunMigration(model)
4266
5306
  result = rsp.to_json_string()
4267
5307
  try:
4268
5308
  json_obj = json.loads(result)
@@ -4281,7 +5321,7 @@ def doDescribeInstanceByOrders(args, parsed_globals):
4281
5321
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
4282
5322
 
4283
5323
 
4284
- def doDescribeAccounts(args, parsed_globals):
5324
+ def doCreateReadOnlyDBInstances(args, parsed_globals):
4285
5325
  g_param = parse_global_arg(parsed_globals)
4286
5326
 
4287
5327
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -4310,11 +5350,11 @@ def doDescribeAccounts(args, parsed_globals):
4310
5350
  client = mod.SqlserverClient(cred, g_param[OptionsDefine.Region], profile)
4311
5351
  client._sdkVersion += ("_CLI_" + __version__)
4312
5352
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
4313
- model = models.DescribeAccountsRequest()
5353
+ model = models.CreateReadOnlyDBInstancesRequest()
4314
5354
  model.from_json_string(json.dumps(args))
4315
5355
  start_time = time.time()
4316
5356
  while True:
4317
- rsp = client.DescribeAccounts(model)
5357
+ rsp = client.CreateReadOnlyDBInstances(model)
4318
5358
  result = rsp.to_json_string()
4319
5359
  try:
4320
5360
  json_obj = json.loads(result)
@@ -4333,7 +5373,7 @@ def doDescribeAccounts(args, parsed_globals):
4333
5373
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
4334
5374
 
4335
5375
 
4336
- def doModifyIncrementalMigration(args, parsed_globals):
5376
+ def doSwitchCloudInstanceHA(args, parsed_globals):
4337
5377
  g_param = parse_global_arg(parsed_globals)
4338
5378
 
4339
5379
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -4362,11 +5402,11 @@ def doModifyIncrementalMigration(args, parsed_globals):
4362
5402
  client = mod.SqlserverClient(cred, g_param[OptionsDefine.Region], profile)
4363
5403
  client._sdkVersion += ("_CLI_" + __version__)
4364
5404
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
4365
- model = models.ModifyIncrementalMigrationRequest()
5405
+ model = models.SwitchCloudInstanceHARequest()
4366
5406
  model.from_json_string(json.dumps(args))
4367
5407
  start_time = time.time()
4368
5408
  while True:
4369
- rsp = client.ModifyIncrementalMigration(model)
5409
+ rsp = client.SwitchCloudInstanceHA(model)
4370
5410
  result = rsp.to_json_string()
4371
5411
  try:
4372
5412
  json_obj = json.loads(result)
@@ -4385,7 +5425,7 @@ def doModifyIncrementalMigration(args, parsed_globals):
4385
5425
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
4386
5426
 
4387
5427
 
4388
- def doModifyDBEncryptAttributes(args, parsed_globals):
5428
+ def doCreateCloudReadOnlyDBInstances(args, parsed_globals):
4389
5429
  g_param = parse_global_arg(parsed_globals)
4390
5430
 
4391
5431
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -4414,11 +5454,11 @@ def doModifyDBEncryptAttributes(args, parsed_globals):
4414
5454
  client = mod.SqlserverClient(cred, g_param[OptionsDefine.Region], profile)
4415
5455
  client._sdkVersion += ("_CLI_" + __version__)
4416
5456
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
4417
- model = models.ModifyDBEncryptAttributesRequest()
5457
+ model = models.CreateCloudReadOnlyDBInstancesRequest()
4418
5458
  model.from_json_string(json.dumps(args))
4419
5459
  start_time = time.time()
4420
5460
  while True:
4421
- rsp = client.ModifyDBEncryptAttributes(model)
5461
+ rsp = client.CreateCloudReadOnlyDBInstances(model)
4422
5462
  result = rsp.to_json_string()
4423
5463
  try:
4424
5464
  json_obj = json.loads(result)
@@ -4437,7 +5477,7 @@ def doModifyDBEncryptAttributes(args, parsed_globals):
4437
5477
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
4438
5478
 
4439
5479
 
4440
- def doRemoveBackups(args, parsed_globals):
5480
+ def doCloseInterCommunication(args, parsed_globals):
4441
5481
  g_param = parse_global_arg(parsed_globals)
4442
5482
 
4443
5483
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -4466,11 +5506,11 @@ def doRemoveBackups(args, parsed_globals):
4466
5506
  client = mod.SqlserverClient(cred, g_param[OptionsDefine.Region], profile)
4467
5507
  client._sdkVersion += ("_CLI_" + __version__)
4468
5508
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
4469
- model = models.RemoveBackupsRequest()
5509
+ model = models.CloseInterCommunicationRequest()
4470
5510
  model.from_json_string(json.dumps(args))
4471
5511
  start_time = time.time()
4472
5512
  while True:
4473
- rsp = client.RemoveBackups(model)
5513
+ rsp = client.CloseInterCommunication(model)
4474
5514
  result = rsp.to_json_string()
4475
5515
  try:
4476
5516
  json_obj = json.loads(result)
@@ -4489,7 +5529,7 @@ def doRemoveBackups(args, parsed_globals):
4489
5529
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
4490
5530
 
4491
5531
 
4492
- def doDescribeMigrationDatabases(args, parsed_globals):
5532
+ def doDescribeBackupSummary(args, parsed_globals):
4493
5533
  g_param = parse_global_arg(parsed_globals)
4494
5534
 
4495
5535
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -4518,11 +5558,11 @@ def doDescribeMigrationDatabases(args, parsed_globals):
4518
5558
  client = mod.SqlserverClient(cred, g_param[OptionsDefine.Region], profile)
4519
5559
  client._sdkVersion += ("_CLI_" + __version__)
4520
5560
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
4521
- model = models.DescribeMigrationDatabasesRequest()
5561
+ model = models.DescribeBackupSummaryRequest()
4522
5562
  model.from_json_string(json.dumps(args))
4523
5563
  start_time = time.time()
4524
5564
  while True:
4525
- rsp = client.DescribeMigrationDatabases(model)
5565
+ rsp = client.DescribeBackupSummary(model)
4526
5566
  result = rsp.to_json_string()
4527
5567
  try:
4528
5568
  json_obj = json.loads(result)
@@ -4541,7 +5581,7 @@ def doDescribeMigrationDatabases(args, parsed_globals):
4541
5581
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
4542
5582
 
4543
5583
 
4544
- def doRunMigration(args, parsed_globals):
5584
+ def doModifyMigration(args, parsed_globals):
4545
5585
  g_param = parse_global_arg(parsed_globals)
4546
5586
 
4547
5587
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -4570,11 +5610,11 @@ def doRunMigration(args, parsed_globals):
4570
5610
  client = mod.SqlserverClient(cred, g_param[OptionsDefine.Region], profile)
4571
5611
  client._sdkVersion += ("_CLI_" + __version__)
4572
5612
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
4573
- model = models.RunMigrationRequest()
5613
+ model = models.ModifyMigrationRequest()
4574
5614
  model.from_json_string(json.dumps(args))
4575
5615
  start_time = time.time()
4576
5616
  while True:
4577
- rsp = client.RunMigration(model)
5617
+ rsp = client.ModifyMigration(model)
4578
5618
  result = rsp.to_json_string()
4579
5619
  try:
4580
5620
  json_obj = json.loads(result)
@@ -4593,7 +5633,7 @@ def doRunMigration(args, parsed_globals):
4593
5633
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
4594
5634
 
4595
5635
 
4596
- def doCreateReadOnlyDBInstances(args, parsed_globals):
5636
+ def doModifyCrossBackupStrategy(args, parsed_globals):
4597
5637
  g_param = parse_global_arg(parsed_globals)
4598
5638
 
4599
5639
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -4622,11 +5662,11 @@ def doCreateReadOnlyDBInstances(args, parsed_globals):
4622
5662
  client = mod.SqlserverClient(cred, g_param[OptionsDefine.Region], profile)
4623
5663
  client._sdkVersion += ("_CLI_" + __version__)
4624
5664
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
4625
- model = models.CreateReadOnlyDBInstancesRequest()
5665
+ model = models.ModifyCrossBackupStrategyRequest()
4626
5666
  model.from_json_string(json.dumps(args))
4627
5667
  start_time = time.time()
4628
5668
  while True:
4629
- rsp = client.CreateReadOnlyDBInstances(model)
5669
+ rsp = client.ModifyCrossBackupStrategy(model)
4630
5670
  result = rsp.to_json_string()
4631
5671
  try:
4632
5672
  json_obj = json.loads(result)
@@ -4645,7 +5685,7 @@ def doCreateReadOnlyDBInstances(args, parsed_globals):
4645
5685
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
4646
5686
 
4647
5687
 
4648
- def doSwitchCloudInstanceHA(args, parsed_globals):
5688
+ def doDescribeInstanceTradeParameter(args, parsed_globals):
4649
5689
  g_param = parse_global_arg(parsed_globals)
4650
5690
 
4651
5691
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -4674,11 +5714,11 @@ def doSwitchCloudInstanceHA(args, parsed_globals):
4674
5714
  client = mod.SqlserverClient(cred, g_param[OptionsDefine.Region], profile)
4675
5715
  client._sdkVersion += ("_CLI_" + __version__)
4676
5716
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
4677
- model = models.SwitchCloudInstanceHARequest()
5717
+ model = models.DescribeInstanceTradeParameterRequest()
4678
5718
  model.from_json_string(json.dumps(args))
4679
5719
  start_time = time.time()
4680
5720
  while True:
4681
- rsp = client.SwitchCloudInstanceHA(model)
5721
+ rsp = client.DescribeInstanceTradeParameter(model)
4682
5722
  result = rsp.to_json_string()
4683
5723
  try:
4684
5724
  json_obj = json.loads(result)
@@ -4697,7 +5737,7 @@ def doSwitchCloudInstanceHA(args, parsed_globals):
4697
5737
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
4698
5738
 
4699
5739
 
4700
- def doCreateCloudReadOnlyDBInstances(args, parsed_globals):
5740
+ def doDescribeOrders(args, parsed_globals):
4701
5741
  g_param = parse_global_arg(parsed_globals)
4702
5742
 
4703
5743
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -4726,11 +5766,11 @@ def doCreateCloudReadOnlyDBInstances(args, parsed_globals):
4726
5766
  client = mod.SqlserverClient(cred, g_param[OptionsDefine.Region], profile)
4727
5767
  client._sdkVersion += ("_CLI_" + __version__)
4728
5768
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
4729
- model = models.CreateCloudReadOnlyDBInstancesRequest()
5769
+ model = models.DescribeOrdersRequest()
4730
5770
  model.from_json_string(json.dumps(args))
4731
5771
  start_time = time.time()
4732
5772
  while True:
4733
- rsp = client.CreateCloudReadOnlyDBInstances(model)
5773
+ rsp = client.DescribeOrders(model)
4734
5774
  result = rsp.to_json_string()
4735
5775
  try:
4736
5776
  json_obj = json.loads(result)
@@ -4749,7 +5789,7 @@ def doCreateCloudReadOnlyDBInstances(args, parsed_globals):
4749
5789
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
4750
5790
 
4751
5791
 
4752
- def doCloseInterCommunication(args, parsed_globals):
5792
+ def doRecycleDBInstance(args, parsed_globals):
4753
5793
  g_param = parse_global_arg(parsed_globals)
4754
5794
 
4755
5795
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -4778,11 +5818,11 @@ def doCloseInterCommunication(args, parsed_globals):
4778
5818
  client = mod.SqlserverClient(cred, g_param[OptionsDefine.Region], profile)
4779
5819
  client._sdkVersion += ("_CLI_" + __version__)
4780
5820
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
4781
- model = models.CloseInterCommunicationRequest()
5821
+ model = models.RecycleDBInstanceRequest()
4782
5822
  model.from_json_string(json.dumps(args))
4783
5823
  start_time = time.time()
4784
5824
  while True:
4785
- rsp = client.CloseInterCommunication(model)
5825
+ rsp = client.RecycleDBInstance(model)
4786
5826
  result = rsp.to_json_string()
4787
5827
  try:
4788
5828
  json_obj = json.loads(result)
@@ -4801,7 +5841,7 @@ def doCloseInterCommunication(args, parsed_globals):
4801
5841
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
4802
5842
 
4803
5843
 
4804
- def doDescribeBackupSummary(args, parsed_globals):
5844
+ def doDescribeBackupMonitor(args, parsed_globals):
4805
5845
  g_param = parse_global_arg(parsed_globals)
4806
5846
 
4807
5847
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -4830,11 +5870,11 @@ def doDescribeBackupSummary(args, parsed_globals):
4830
5870
  client = mod.SqlserverClient(cred, g_param[OptionsDefine.Region], profile)
4831
5871
  client._sdkVersion += ("_CLI_" + __version__)
4832
5872
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
4833
- model = models.DescribeBackupSummaryRequest()
5873
+ model = models.DescribeBackupMonitorRequest()
4834
5874
  model.from_json_string(json.dumps(args))
4835
5875
  start_time = time.time()
4836
5876
  while True:
4837
- rsp = client.DescribeBackupSummary(model)
5877
+ rsp = client.DescribeBackupMonitor(model)
4838
5878
  result = rsp.to_json_string()
4839
5879
  try:
4840
5880
  json_obj = json.loads(result)
@@ -4853,7 +5893,7 @@ def doDescribeBackupSummary(args, parsed_globals):
4853
5893
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
4854
5894
 
4855
5895
 
4856
- def doModifyMigration(args, parsed_globals):
5896
+ def doCloneDB(args, parsed_globals):
4857
5897
  g_param = parse_global_arg(parsed_globals)
4858
5898
 
4859
5899
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -4882,11 +5922,11 @@ def doModifyMigration(args, parsed_globals):
4882
5922
  client = mod.SqlserverClient(cred, g_param[OptionsDefine.Region], profile)
4883
5923
  client._sdkVersion += ("_CLI_" + __version__)
4884
5924
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
4885
- model = models.ModifyMigrationRequest()
5925
+ model = models.CloneDBRequest()
4886
5926
  model.from_json_string(json.dumps(args))
4887
5927
  start_time = time.time()
4888
5928
  while True:
4889
- rsp = client.ModifyMigration(model)
5929
+ rsp = client.CloneDB(model)
4890
5930
  result = rsp.to_json_string()
4891
5931
  try:
4892
5932
  json_obj = json.loads(result)
@@ -4905,7 +5945,7 @@ def doModifyMigration(args, parsed_globals):
4905
5945
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
4906
5946
 
4907
5947
 
4908
- def doModifyCrossBackupStrategy(args, parsed_globals):
5948
+ def doRestoreInstance(args, parsed_globals):
4909
5949
  g_param = parse_global_arg(parsed_globals)
4910
5950
 
4911
5951
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -4934,11 +5974,11 @@ def doModifyCrossBackupStrategy(args, parsed_globals):
4934
5974
  client = mod.SqlserverClient(cred, g_param[OptionsDefine.Region], profile)
4935
5975
  client._sdkVersion += ("_CLI_" + __version__)
4936
5976
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
4937
- model = models.ModifyCrossBackupStrategyRequest()
5977
+ model = models.RestoreInstanceRequest()
4938
5978
  model.from_json_string(json.dumps(args))
4939
5979
  start_time = time.time()
4940
5980
  while True:
4941
- rsp = client.ModifyCrossBackupStrategy(model)
5981
+ rsp = client.RestoreInstance(model)
4942
5982
  result = rsp.to_json_string()
4943
5983
  try:
4944
5984
  json_obj = json.loads(result)
@@ -4957,7 +5997,7 @@ def doModifyCrossBackupStrategy(args, parsed_globals):
4957
5997
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
4958
5998
 
4959
5999
 
4960
- def doDescribeOrders(args, parsed_globals):
6000
+ def doModifyDBInstanceProject(args, parsed_globals):
4961
6001
  g_param = parse_global_arg(parsed_globals)
4962
6002
 
4963
6003
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -4986,11 +6026,11 @@ def doDescribeOrders(args, parsed_globals):
4986
6026
  client = mod.SqlserverClient(cred, g_param[OptionsDefine.Region], profile)
4987
6027
  client._sdkVersion += ("_CLI_" + __version__)
4988
6028
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
4989
- model = models.DescribeOrdersRequest()
6029
+ model = models.ModifyDBInstanceProjectRequest()
4990
6030
  model.from_json_string(json.dumps(args))
4991
6031
  start_time = time.time()
4992
6032
  while True:
4993
- rsp = client.DescribeOrders(model)
6033
+ rsp = client.ModifyDBInstanceProject(model)
4994
6034
  result = rsp.to_json_string()
4995
6035
  try:
4996
6036
  json_obj = json.loads(result)
@@ -5009,7 +6049,7 @@ def doDescribeOrders(args, parsed_globals):
5009
6049
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
5010
6050
 
5011
6051
 
5012
- def doRecycleDBInstance(args, parsed_globals):
6052
+ def doDescribeCrossBackupStatistical(args, parsed_globals):
5013
6053
  g_param = parse_global_arg(parsed_globals)
5014
6054
 
5015
6055
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -5038,11 +6078,11 @@ def doRecycleDBInstance(args, parsed_globals):
5038
6078
  client = mod.SqlserverClient(cred, g_param[OptionsDefine.Region], profile)
5039
6079
  client._sdkVersion += ("_CLI_" + __version__)
5040
6080
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
5041
- model = models.RecycleDBInstanceRequest()
6081
+ model = models.DescribeCrossBackupStatisticalRequest()
5042
6082
  model.from_json_string(json.dumps(args))
5043
6083
  start_time = time.time()
5044
6084
  while True:
5045
- rsp = client.RecycleDBInstance(model)
6085
+ rsp = client.DescribeCrossBackupStatistical(model)
5046
6086
  result = rsp.to_json_string()
5047
6087
  try:
5048
6088
  json_obj = json.loads(result)
@@ -5061,7 +6101,7 @@ def doRecycleDBInstance(args, parsed_globals):
5061
6101
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
5062
6102
 
5063
6103
 
5064
- def doDescribeBackupMonitor(args, parsed_globals):
6104
+ def doDeleteAccount(args, parsed_globals):
5065
6105
  g_param = parse_global_arg(parsed_globals)
5066
6106
 
5067
6107
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -5090,11 +6130,11 @@ def doDescribeBackupMonitor(args, parsed_globals):
5090
6130
  client = mod.SqlserverClient(cred, g_param[OptionsDefine.Region], profile)
5091
6131
  client._sdkVersion += ("_CLI_" + __version__)
5092
6132
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
5093
- model = models.DescribeBackupMonitorRequest()
6133
+ model = models.DeleteAccountRequest()
5094
6134
  model.from_json_string(json.dumps(args))
5095
6135
  start_time = time.time()
5096
6136
  while True:
5097
- rsp = client.DescribeBackupMonitor(model)
6137
+ rsp = client.DeleteAccount(model)
5098
6138
  result = rsp.to_json_string()
5099
6139
  try:
5100
6140
  json_obj = json.loads(result)
@@ -5113,7 +6153,7 @@ def doDescribeBackupMonitor(args, parsed_globals):
5113
6153
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
5114
6154
 
5115
6155
 
5116
- def doCloneDB(args, parsed_globals):
6156
+ def doModifyBackupStrategy(args, parsed_globals):
5117
6157
  g_param = parse_global_arg(parsed_globals)
5118
6158
 
5119
6159
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -5142,11 +6182,11 @@ def doCloneDB(args, parsed_globals):
5142
6182
  client = mod.SqlserverClient(cred, g_param[OptionsDefine.Region], profile)
5143
6183
  client._sdkVersion += ("_CLI_" + __version__)
5144
6184
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
5145
- model = models.CloneDBRequest()
6185
+ model = models.ModifyBackupStrategyRequest()
5146
6186
  model.from_json_string(json.dumps(args))
5147
6187
  start_time = time.time()
5148
6188
  while True:
5149
- rsp = client.CloneDB(model)
6189
+ rsp = client.ModifyBackupStrategy(model)
5150
6190
  result = rsp.to_json_string()
5151
6191
  try:
5152
6192
  json_obj = json.loads(result)
@@ -5165,7 +6205,7 @@ def doCloneDB(args, parsed_globals):
5165
6205
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
5166
6206
 
5167
6207
 
5168
- def doModifyDBInstanceProject(args, parsed_globals):
6208
+ def doDescribeDBsNormal(args, parsed_globals):
5169
6209
  g_param = parse_global_arg(parsed_globals)
5170
6210
 
5171
6211
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -5194,11 +6234,11 @@ def doModifyDBInstanceProject(args, parsed_globals):
5194
6234
  client = mod.SqlserverClient(cred, g_param[OptionsDefine.Region], profile)
5195
6235
  client._sdkVersion += ("_CLI_" + __version__)
5196
6236
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
5197
- model = models.ModifyDBInstanceProjectRequest()
6237
+ model = models.DescribeDBsNormalRequest()
5198
6238
  model.from_json_string(json.dumps(args))
5199
6239
  start_time = time.time()
5200
6240
  while True:
5201
- rsp = client.ModifyDBInstanceProject(model)
6241
+ rsp = client.DescribeDBsNormal(model)
5202
6242
  result = rsp.to_json_string()
5203
6243
  try:
5204
6244
  json_obj = json.loads(result)
@@ -5217,7 +6257,7 @@ def doModifyDBInstanceProject(args, parsed_globals):
5217
6257
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
5218
6258
 
5219
6259
 
5220
- def doDescribeCrossBackupStatistical(args, parsed_globals):
6260
+ def doModifyAccountPrivilege(args, parsed_globals):
5221
6261
  g_param = parse_global_arg(parsed_globals)
5222
6262
 
5223
6263
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -5246,11 +6286,11 @@ def doDescribeCrossBackupStatistical(args, parsed_globals):
5246
6286
  client = mod.SqlserverClient(cred, g_param[OptionsDefine.Region], profile)
5247
6287
  client._sdkVersion += ("_CLI_" + __version__)
5248
6288
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
5249
- model = models.DescribeCrossBackupStatisticalRequest()
6289
+ model = models.ModifyAccountPrivilegeRequest()
5250
6290
  model.from_json_string(json.dumps(args))
5251
6291
  start_time = time.time()
5252
6292
  while True:
5253
- rsp = client.DescribeCrossBackupStatistical(model)
6293
+ rsp = client.ModifyAccountPrivilege(model)
5254
6294
  result = rsp.to_json_string()
5255
6295
  try:
5256
6296
  json_obj = json.loads(result)
@@ -5269,7 +6309,7 @@ def doDescribeCrossBackupStatistical(args, parsed_globals):
5269
6309
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
5270
6310
 
5271
6311
 
5272
- def doDeleteAccount(args, parsed_globals):
6312
+ def doDescribeDBPrivilegeByAccount(args, parsed_globals):
5273
6313
  g_param = parse_global_arg(parsed_globals)
5274
6314
 
5275
6315
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -5298,11 +6338,11 @@ def doDeleteAccount(args, parsed_globals):
5298
6338
  client = mod.SqlserverClient(cred, g_param[OptionsDefine.Region], profile)
5299
6339
  client._sdkVersion += ("_CLI_" + __version__)
5300
6340
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
5301
- model = models.DeleteAccountRequest()
6341
+ model = models.DescribeDBPrivilegeByAccountRequest()
5302
6342
  model.from_json_string(json.dumps(args))
5303
6343
  start_time = time.time()
5304
6344
  while True:
5305
- rsp = client.DeleteAccount(model)
6345
+ rsp = client.DescribeDBPrivilegeByAccount(model)
5306
6346
  result = rsp.to_json_string()
5307
6347
  try:
5308
6348
  json_obj = json.loads(result)
@@ -5321,7 +6361,7 @@ def doDeleteAccount(args, parsed_globals):
5321
6361
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
5322
6362
 
5323
6363
 
5324
- def doModifyBackupStrategy(args, parsed_globals):
6364
+ def doDescribeDatabasesNormal(args, parsed_globals):
5325
6365
  g_param = parse_global_arg(parsed_globals)
5326
6366
 
5327
6367
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -5350,11 +6390,11 @@ def doModifyBackupStrategy(args, parsed_globals):
5350
6390
  client = mod.SqlserverClient(cred, g_param[OptionsDefine.Region], profile)
5351
6391
  client._sdkVersion += ("_CLI_" + __version__)
5352
6392
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
5353
- model = models.ModifyBackupStrategyRequest()
6393
+ model = models.DescribeDatabasesNormalRequest()
5354
6394
  model.from_json_string(json.dumps(args))
5355
6395
  start_time = time.time()
5356
6396
  while True:
5357
- rsp = client.ModifyBackupStrategy(model)
6397
+ rsp = client.DescribeDatabasesNormal(model)
5358
6398
  result = rsp.to_json_string()
5359
6399
  try:
5360
6400
  json_obj = json.loads(result)
@@ -5373,7 +6413,7 @@ def doModifyBackupStrategy(args, parsed_globals):
5373
6413
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
5374
6414
 
5375
6415
 
5376
- def doDescribeDBsNormal(args, parsed_globals):
6416
+ def doRollbackInstance(args, parsed_globals):
5377
6417
  g_param = parse_global_arg(parsed_globals)
5378
6418
 
5379
6419
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -5402,11 +6442,11 @@ def doDescribeDBsNormal(args, parsed_globals):
5402
6442
  client = mod.SqlserverClient(cred, g_param[OptionsDefine.Region], profile)
5403
6443
  client._sdkVersion += ("_CLI_" + __version__)
5404
6444
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
5405
- model = models.DescribeDBsNormalRequest()
6445
+ model = models.RollbackInstanceRequest()
5406
6446
  model.from_json_string(json.dumps(args))
5407
6447
  start_time = time.time()
5408
6448
  while True:
5409
- rsp = client.DescribeDBsNormal(model)
6449
+ rsp = client.RollbackInstance(model)
5410
6450
  result = rsp.to_json_string()
5411
6451
  try:
5412
6452
  json_obj = json.loads(result)
@@ -5425,7 +6465,7 @@ def doDescribeDBsNormal(args, parsed_globals):
5425
6465
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
5426
6466
 
5427
6467
 
5428
- def doDescribeMigrations(args, parsed_globals):
6468
+ def doDescribeDBs(args, parsed_globals):
5429
6469
  g_param = parse_global_arg(parsed_globals)
5430
6470
 
5431
6471
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -5454,11 +6494,11 @@ def doDescribeMigrations(args, parsed_globals):
5454
6494
  client = mod.SqlserverClient(cred, g_param[OptionsDefine.Region], profile)
5455
6495
  client._sdkVersion += ("_CLI_" + __version__)
5456
6496
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
5457
- model = models.DescribeMigrationsRequest()
6497
+ model = models.DescribeDBsRequest()
5458
6498
  model.from_json_string(json.dumps(args))
5459
6499
  start_time = time.time()
5460
6500
  while True:
5461
- rsp = client.DescribeMigrations(model)
6501
+ rsp = client.DescribeDBs(model)
5462
6502
  result = rsp.to_json_string()
5463
6503
  try:
5464
6504
  json_obj = json.loads(result)
@@ -5477,7 +6517,7 @@ def doDescribeMigrations(args, parsed_globals):
5477
6517
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
5478
6518
 
5479
6519
 
5480
- def doDescribeDatabasesNormal(args, parsed_globals):
6520
+ def doDescribeZones(args, parsed_globals):
5481
6521
  g_param = parse_global_arg(parsed_globals)
5482
6522
 
5483
6523
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -5506,11 +6546,11 @@ def doDescribeDatabasesNormal(args, parsed_globals):
5506
6546
  client = mod.SqlserverClient(cred, g_param[OptionsDefine.Region], profile)
5507
6547
  client._sdkVersion += ("_CLI_" + __version__)
5508
6548
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
5509
- model = models.DescribeDatabasesNormalRequest()
6549
+ model = models.DescribeZonesRequest()
5510
6550
  model.from_json_string(json.dumps(args))
5511
6551
  start_time = time.time()
5512
6552
  while True:
5513
- rsp = client.DescribeDatabasesNormal(model)
6553
+ rsp = client.DescribeZones(model)
5514
6554
  result = rsp.to_json_string()
5515
6555
  try:
5516
6556
  json_obj = json.loads(result)
@@ -5529,7 +6569,7 @@ def doDescribeDatabasesNormal(args, parsed_globals):
5529
6569
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
5530
6570
 
5531
6571
 
5532
- def doRollbackInstance(args, parsed_globals):
6572
+ def doRenewDBInstance(args, parsed_globals):
5533
6573
  g_param = parse_global_arg(parsed_globals)
5534
6574
 
5535
6575
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -5558,11 +6598,11 @@ def doRollbackInstance(args, parsed_globals):
5558
6598
  client = mod.SqlserverClient(cred, g_param[OptionsDefine.Region], profile)
5559
6599
  client._sdkVersion += ("_CLI_" + __version__)
5560
6600
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
5561
- model = models.RollbackInstanceRequest()
6601
+ model = models.RenewDBInstanceRequest()
5562
6602
  model.from_json_string(json.dumps(args))
5563
6603
  start_time = time.time()
5564
6604
  while True:
5565
- rsp = client.RollbackInstance(model)
6605
+ rsp = client.RenewDBInstance(model)
5566
6606
  result = rsp.to_json_string()
5567
6607
  try:
5568
6608
  json_obj = json.loads(result)
@@ -5581,7 +6621,7 @@ def doRollbackInstance(args, parsed_globals):
5581
6621
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
5582
6622
 
5583
6623
 
5584
- def doDescribeDBs(args, parsed_globals):
6624
+ def doInquiryPriceUpgradeDBInstance(args, parsed_globals):
5585
6625
  g_param = parse_global_arg(parsed_globals)
5586
6626
 
5587
6627
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -5610,11 +6650,11 @@ def doDescribeDBs(args, parsed_globals):
5610
6650
  client = mod.SqlserverClient(cred, g_param[OptionsDefine.Region], profile)
5611
6651
  client._sdkVersion += ("_CLI_" + __version__)
5612
6652
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
5613
- model = models.DescribeDBsRequest()
6653
+ model = models.InquiryPriceUpgradeDBInstanceRequest()
5614
6654
  model.from_json_string(json.dumps(args))
5615
6655
  start_time = time.time()
5616
6656
  while True:
5617
- rsp = client.DescribeDBs(model)
6657
+ rsp = client.InquiryPriceUpgradeDBInstance(model)
5618
6658
  result = rsp.to_json_string()
5619
6659
  try:
5620
6660
  json_obj = json.loads(result)
@@ -5633,7 +6673,7 @@ def doDescribeDBs(args, parsed_globals):
5633
6673
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
5634
6674
 
5635
6675
 
5636
- def doDescribeZones(args, parsed_globals):
6676
+ def doDescribeReadOnlyGroupAutoWeight(args, parsed_globals):
5637
6677
  g_param = parse_global_arg(parsed_globals)
5638
6678
 
5639
6679
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -5662,11 +6702,11 @@ def doDescribeZones(args, parsed_globals):
5662
6702
  client = mod.SqlserverClient(cred, g_param[OptionsDefine.Region], profile)
5663
6703
  client._sdkVersion += ("_CLI_" + __version__)
5664
6704
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
5665
- model = models.DescribeZonesRequest()
6705
+ model = models.DescribeReadOnlyGroupAutoWeightRequest()
5666
6706
  model.from_json_string(json.dumps(args))
5667
6707
  start_time = time.time()
5668
6708
  while True:
5669
- rsp = client.DescribeZones(model)
6709
+ rsp = client.DescribeReadOnlyGroupAutoWeight(model)
5670
6710
  result = rsp.to_json_string()
5671
6711
  try:
5672
6712
  json_obj = json.loads(result)
@@ -5685,7 +6725,7 @@ def doDescribeZones(args, parsed_globals):
5685
6725
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
5686
6726
 
5687
6727
 
5688
- def doRenewDBInstance(args, parsed_globals):
6728
+ def doInquiryPriceRenewDBInstance(args, parsed_globals):
5689
6729
  g_param = parse_global_arg(parsed_globals)
5690
6730
 
5691
6731
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -5714,11 +6754,11 @@ def doRenewDBInstance(args, parsed_globals):
5714
6754
  client = mod.SqlserverClient(cred, g_param[OptionsDefine.Region], profile)
5715
6755
  client._sdkVersion += ("_CLI_" + __version__)
5716
6756
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
5717
- model = models.RenewDBInstanceRequest()
6757
+ model = models.InquiryPriceRenewDBInstanceRequest()
5718
6758
  model.from_json_string(json.dumps(args))
5719
6759
  start_time = time.time()
5720
6760
  while True:
5721
- rsp = client.RenewDBInstance(model)
6761
+ rsp = client.InquiryPriceRenewDBInstance(model)
5722
6762
  result = rsp.to_json_string()
5723
6763
  try:
5724
6764
  json_obj = json.loads(result)
@@ -5737,7 +6777,7 @@ def doRenewDBInstance(args, parsed_globals):
5737
6777
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
5738
6778
 
5739
6779
 
5740
- def doInquiryPriceUpgradeDBInstance(args, parsed_globals):
6780
+ def doDescribeXEvents(args, parsed_globals):
5741
6781
  g_param = parse_global_arg(parsed_globals)
5742
6782
 
5743
6783
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -5766,11 +6806,11 @@ def doInquiryPriceUpgradeDBInstance(args, parsed_globals):
5766
6806
  client = mod.SqlserverClient(cred, g_param[OptionsDefine.Region], profile)
5767
6807
  client._sdkVersion += ("_CLI_" + __version__)
5768
6808
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
5769
- model = models.InquiryPriceUpgradeDBInstanceRequest()
6809
+ model = models.DescribeXEventsRequest()
5770
6810
  model.from_json_string(json.dumps(args))
5771
6811
  start_time = time.time()
5772
6812
  while True:
5773
- rsp = client.InquiryPriceUpgradeDBInstance(model)
6813
+ rsp = client.DescribeXEvents(model)
5774
6814
  result = rsp.to_json_string()
5775
6815
  try:
5776
6816
  json_obj = json.loads(result)
@@ -5789,7 +6829,7 @@ def doInquiryPriceUpgradeDBInstance(args, parsed_globals):
5789
6829
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
5790
6830
 
5791
6831
 
5792
- def doInquiryPriceRenewDBInstance(args, parsed_globals):
6832
+ def doModifyBackupMigration(args, parsed_globals):
5793
6833
  g_param = parse_global_arg(parsed_globals)
5794
6834
 
5795
6835
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -5818,11 +6858,11 @@ def doInquiryPriceRenewDBInstance(args, parsed_globals):
5818
6858
  client = mod.SqlserverClient(cred, g_param[OptionsDefine.Region], profile)
5819
6859
  client._sdkVersion += ("_CLI_" + __version__)
5820
6860
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
5821
- model = models.InquiryPriceRenewDBInstanceRequest()
6861
+ model = models.ModifyBackupMigrationRequest()
5822
6862
  model.from_json_string(json.dumps(args))
5823
6863
  start_time = time.time()
5824
6864
  while True:
5825
- rsp = client.InquiryPriceRenewDBInstance(model)
6865
+ rsp = client.ModifyBackupMigration(model)
5826
6866
  result = rsp.to_json_string()
5827
6867
  try:
5828
6868
  json_obj = json.loads(result)
@@ -5841,7 +6881,7 @@ def doInquiryPriceRenewDBInstance(args, parsed_globals):
5841
6881
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
5842
6882
 
5843
6883
 
5844
- def doDescribeXEvents(args, parsed_globals):
6884
+ def doStartBackupMigration(args, parsed_globals):
5845
6885
  g_param = parse_global_arg(parsed_globals)
5846
6886
 
5847
6887
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -5870,11 +6910,11 @@ def doDescribeXEvents(args, parsed_globals):
5870
6910
  client = mod.SqlserverClient(cred, g_param[OptionsDefine.Region], profile)
5871
6911
  client._sdkVersion += ("_CLI_" + __version__)
5872
6912
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
5873
- model = models.DescribeXEventsRequest()
6913
+ model = models.StartBackupMigrationRequest()
5874
6914
  model.from_json_string(json.dumps(args))
5875
6915
  start_time = time.time()
5876
6916
  while True:
5877
- rsp = client.DescribeXEvents(model)
6917
+ rsp = client.StartBackupMigration(model)
5878
6918
  result = rsp.to_json_string()
5879
6919
  try:
5880
6920
  json_obj = json.loads(result)
@@ -5893,7 +6933,7 @@ def doDescribeXEvents(args, parsed_globals):
5893
6933
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
5894
6934
 
5895
6935
 
5896
- def doModifyBackupMigration(args, parsed_globals):
6936
+ def doDescribeAccountPrivilegeByDB(args, parsed_globals):
5897
6937
  g_param = parse_global_arg(parsed_globals)
5898
6938
 
5899
6939
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -5922,11 +6962,11 @@ def doModifyBackupMigration(args, parsed_globals):
5922
6962
  client = mod.SqlserverClient(cred, g_param[OptionsDefine.Region], profile)
5923
6963
  client._sdkVersion += ("_CLI_" + __version__)
5924
6964
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
5925
- model = models.ModifyBackupMigrationRequest()
6965
+ model = models.DescribeAccountPrivilegeByDBRequest()
5926
6966
  model.from_json_string(json.dumps(args))
5927
6967
  start_time = time.time()
5928
6968
  while True:
5929
- rsp = client.ModifyBackupMigration(model)
6969
+ rsp = client.DescribeAccountPrivilegeByDB(model)
5930
6970
  result = rsp.to_json_string()
5931
6971
  try:
5932
6972
  json_obj = json.loads(result)
@@ -5945,7 +6985,7 @@ def doModifyBackupMigration(args, parsed_globals):
5945
6985
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
5946
6986
 
5947
6987
 
5948
- def doStartBackupMigration(args, parsed_globals):
6988
+ def doDescribeProductSpec(args, parsed_globals):
5949
6989
  g_param = parse_global_arg(parsed_globals)
5950
6990
 
5951
6991
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -5974,11 +7014,11 @@ def doStartBackupMigration(args, parsed_globals):
5974
7014
  client = mod.SqlserverClient(cred, g_param[OptionsDefine.Region], profile)
5975
7015
  client._sdkVersion += ("_CLI_" + __version__)
5976
7016
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
5977
- model = models.StartBackupMigrationRequest()
7017
+ model = models.DescribeProductSpecRequest()
5978
7018
  model.from_json_string(json.dumps(args))
5979
7019
  start_time = time.time()
5980
7020
  while True:
5981
- rsp = client.StartBackupMigration(model)
7021
+ rsp = client.DescribeProductSpec(model)
5982
7022
  result = rsp.to_json_string()
5983
7023
  try:
5984
7024
  json_obj = json.loads(result)
@@ -6049,7 +7089,7 @@ def doDescribeBackupByFlowId(args, parsed_globals):
6049
7089
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
6050
7090
 
6051
7091
 
6052
- def doDescribeRollbackTime(args, parsed_globals):
7092
+ def doModifyOpenWanIp(args, parsed_globals):
6053
7093
  g_param = parse_global_arg(parsed_globals)
6054
7094
 
6055
7095
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -6078,11 +7118,11 @@ def doDescribeRollbackTime(args, parsed_globals):
6078
7118
  client = mod.SqlserverClient(cred, g_param[OptionsDefine.Region], profile)
6079
7119
  client._sdkVersion += ("_CLI_" + __version__)
6080
7120
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
6081
- model = models.DescribeRollbackTimeRequest()
7121
+ model = models.ModifyOpenWanIpRequest()
6082
7122
  model.from_json_string(json.dumps(args))
6083
7123
  start_time = time.time()
6084
7124
  while True:
6085
- rsp = client.DescribeRollbackTime(model)
7125
+ rsp = client.ModifyOpenWanIp(model)
6086
7126
  result = rsp.to_json_string()
6087
7127
  try:
6088
7128
  json_obj = json.loads(result)
@@ -6361,7 +7401,7 @@ def doModifyReadOnlyGroupDetails(args, parsed_globals):
6361
7401
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
6362
7402
 
6363
7403
 
6364
- def doDescribeBackupFiles(args, parsed_globals):
7404
+ def doCreatePublishSubscribe(args, parsed_globals):
6365
7405
  g_param = parse_global_arg(parsed_globals)
6366
7406
 
6367
7407
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -6390,11 +7430,11 @@ def doDescribeBackupFiles(args, parsed_globals):
6390
7430
  client = mod.SqlserverClient(cred, g_param[OptionsDefine.Region], profile)
6391
7431
  client._sdkVersion += ("_CLI_" + __version__)
6392
7432
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
6393
- model = models.DescribeBackupFilesRequest()
7433
+ model = models.CreatePublishSubscribeRequest()
6394
7434
  model.from_json_string(json.dumps(args))
6395
7435
  start_time = time.time()
6396
7436
  while True:
6397
- rsp = client.DescribeBackupFiles(model)
7437
+ rsp = client.CreatePublishSubscribe(model)
6398
7438
  result = rsp.to_json_string()
6399
7439
  try:
6400
7440
  json_obj = json.loads(result)
@@ -6424,24 +7464,28 @@ MODELS_MAP = {
6424
7464
  }
6425
7465
 
6426
7466
  ACTION_MAP = {
6427
- "ModifyAccountPrivilege": doModifyAccountPrivilege,
6428
- "DescribeUploadIncrementalInfo": doDescribeUploadIncrementalInfo,
7467
+ "DescribeMigrations": doDescribeMigrations,
6429
7468
  "RecycleReadOnlyGroup": doRecycleReadOnlyGroup,
7469
+ "DescribeDatabaseNames": doDescribeDatabaseNames,
6430
7470
  "ModifyDBInstanceRenewFlag": doModifyDBInstanceRenewFlag,
7471
+ "DescribeSpecSellStatus": doDescribeSpecSellStatus,
6431
7472
  "StartIncrementalMigration": doStartIncrementalMigration,
6432
7473
  "QueryMigrationCheckProcess": doQueryMigrationCheckProcess,
6433
7474
  "ModifyAccountRemark": doModifyAccountRemark,
7475
+ "ModifyPublishSubscribe": doModifyPublishSubscribe,
6434
7476
  "ModifyDBInstanceName": doModifyDBInstanceName,
6435
7477
  "TerminateDBInstance": doTerminateDBInstance,
6436
7478
  "ModifyDatabaseMdf": doModifyDatabaseMdf,
6437
7479
  "ModifyDBRemark": doModifyDBRemark,
6438
7480
  "DeleteIncrementalMigration": doDeleteIncrementalMigration,
6439
7481
  "ModifyDBInstanceNetwork": doModifyDBInstanceNetwork,
7482
+ "ModifyCloseWanIp": doModifyCloseWanIp,
6440
7483
  "ModifyDBInstanceSecurityGroups": doModifyDBInstanceSecurityGroups,
6441
7484
  "ModifyMaintenanceSpan": doModifyMaintenanceSpan,
6442
7485
  "DescribeMaintenanceSpan": doDescribeMaintenanceSpan,
6443
7486
  "DescribeReadOnlyGroupDetails": doDescribeReadOnlyGroupDetails,
6444
- "CreatePublishSubscribe": doCreatePublishSubscribe,
7487
+ "DescribeBackupFiles": doDescribeBackupFiles,
7488
+ "DescribeRollbackTime": doDescribeRollbackTime,
6445
7489
  "DescribeReadOnlyGroupByReadOnlyInstance": doDescribeReadOnlyGroupByReadOnlyInstance,
6446
7490
  "DescribeRegularBackupPlan": doDescribeRegularBackupPlan,
6447
7491
  "DescribePublishSubscribe": doDescribePublishSubscribe,
@@ -6451,7 +7495,10 @@ ACTION_MAP = {
6451
7495
  "DescribeBackupCommand": doDescribeBackupCommand,
6452
7496
  "DescribeUploadBackupInfo": doDescribeUploadBackupInfo,
6453
7497
  "DescribeProductConfig": doDescribeProductConfig,
7498
+ "DeletePublishSubscribe": doDeletePublishSubscribe,
6454
7499
  "DisassociateSecurityGroups": doDisassociateSecurityGroups,
7500
+ "DescribeInquiryPriceParameter": doDescribeInquiryPriceParameter,
7501
+ "ModifyDBInstanceNote": doModifyDBInstanceNote,
6455
7502
  "DeleteDBInstance": doDeleteDBInstance,
6456
7503
  "DescribeMigrationDetail": doDescribeMigrationDetail,
6457
7504
  "ModifyDBName": doModifyDBName,
@@ -6463,31 +7510,36 @@ ACTION_MAP = {
6463
7510
  "RenewPostpaidDBInstance": doRenewPostpaidDBInstance,
6464
7511
  "DescribeIncrementalMigration": doDescribeIncrementalMigration,
6465
7512
  "CreateBackup": doCreateBackup,
7513
+ "DescribeDBRestoreTime": doDescribeDBRestoreTime,
6466
7514
  "DescribeBackupMigration": doDescribeBackupMigration,
7515
+ "BalanceReadOnlyGroup": doBalanceReadOnlyGroup,
6467
7516
  "ModifyDatabaseCDC": doModifyDatabaseCDC,
6468
- "DescribeDBInstanceInter": doDescribeDBInstanceInter,
7517
+ "DeleteRestoreTask": doDeleteRestoreTask,
6469
7518
  "CompleteMigration": doCompleteMigration,
6470
7519
  "DescribeProjectSecurityGroups": doDescribeProjectSecurityGroups,
6471
7520
  "CreateAccount": doCreateAccount,
6472
7521
  "StopMigration": doStopMigration,
6473
7522
  "DescribeRegions": doDescribeRegions,
7523
+ "DescribeRestoreTask": doDescribeRestoreTask,
6474
7524
  "DescribeInstanceParams": doDescribeInstanceParams,
6475
7525
  "CompleteExpansion": doCompleteExpansion,
6476
7526
  "DescribeBackupStatistical": doDescribeBackupStatistical,
6477
7527
  "CreateDB": doCreateDB,
7528
+ "DeleteDB": doDeleteDB,
6478
7529
  "CreateCloudDBInstances": doCreateCloudDBInstances,
6479
- "RestoreInstance": doRestoreInstance,
7530
+ "DescribeCollationTimeZone": doDescribeCollationTimeZone,
6480
7531
  "DescribeInstanceParamRecords": doDescribeInstanceParamRecords,
6481
7532
  "CreateBusinessIntelligenceFile": doCreateBusinessIntelligenceFile,
7533
+ "DescribeInstanceTasks": doDescribeInstanceTasks,
6482
7534
  "DescribeHASwitchLog": doDescribeHASwitchLog,
6483
7535
  "DescribeFlowStatus": doDescribeFlowStatus,
6484
7536
  "DescribeDBCharsets": doDescribeDBCharsets,
6485
- "DeletePublishSubscribe": doDeletePublishSubscribe,
7537
+ "DescribeUpgradeInstanceCheck": doDescribeUpgradeInstanceCheck,
6486
7538
  "ModifyDatabaseShrinkMDF": doModifyDatabaseShrinkMDF,
6487
7539
  "ResetAccountPassword": doResetAccountPassword,
6488
7540
  "ModifyInstanceParam": doModifyInstanceParam,
6489
7541
  "DescribeSlowlogs": doDescribeSlowlogs,
6490
- "DeleteDB": doDeleteDB,
7542
+ "DescribeUploadIncrementalInfo": doDescribeUploadIncrementalInfo,
6491
7543
  "StartMigrationCheck": doStartMigrationCheck,
6492
7544
  "CreateBasicDBInstances": doCreateBasicDBInstances,
6493
7545
  "RestartDBInstance": doRestartDBInstance,
@@ -6509,6 +7561,8 @@ ACTION_MAP = {
6509
7561
  "DescribeAccounts": doDescribeAccounts,
6510
7562
  "ModifyIncrementalMigration": doModifyIncrementalMigration,
6511
7563
  "ModifyDBEncryptAttributes": doModifyDBEncryptAttributes,
7564
+ "DescribeCrossRegions": doDescribeCrossRegions,
7565
+ "DescribeDBInstanceInter": doDescribeDBInstanceInter,
6512
7566
  "RemoveBackups": doRemoveBackups,
6513
7567
  "DescribeMigrationDatabases": doDescribeMigrationDatabases,
6514
7568
  "RunMigration": doRunMigration,
@@ -6519,34 +7573,40 @@ ACTION_MAP = {
6519
7573
  "DescribeBackupSummary": doDescribeBackupSummary,
6520
7574
  "ModifyMigration": doModifyMigration,
6521
7575
  "ModifyCrossBackupStrategy": doModifyCrossBackupStrategy,
7576
+ "DescribeInstanceTradeParameter": doDescribeInstanceTradeParameter,
6522
7577
  "DescribeOrders": doDescribeOrders,
6523
7578
  "RecycleDBInstance": doRecycleDBInstance,
6524
7579
  "DescribeBackupMonitor": doDescribeBackupMonitor,
6525
7580
  "CloneDB": doCloneDB,
7581
+ "RestoreInstance": doRestoreInstance,
6526
7582
  "ModifyDBInstanceProject": doModifyDBInstanceProject,
6527
7583
  "DescribeCrossBackupStatistical": doDescribeCrossBackupStatistical,
6528
7584
  "DeleteAccount": doDeleteAccount,
6529
7585
  "ModifyBackupStrategy": doModifyBackupStrategy,
6530
7586
  "DescribeDBsNormal": doDescribeDBsNormal,
6531
- "DescribeMigrations": doDescribeMigrations,
7587
+ "ModifyAccountPrivilege": doModifyAccountPrivilege,
7588
+ "DescribeDBPrivilegeByAccount": doDescribeDBPrivilegeByAccount,
6532
7589
  "DescribeDatabasesNormal": doDescribeDatabasesNormal,
6533
7590
  "RollbackInstance": doRollbackInstance,
6534
7591
  "DescribeDBs": doDescribeDBs,
6535
7592
  "DescribeZones": doDescribeZones,
6536
7593
  "RenewDBInstance": doRenewDBInstance,
6537
7594
  "InquiryPriceUpgradeDBInstance": doInquiryPriceUpgradeDBInstance,
7595
+ "DescribeReadOnlyGroupAutoWeight": doDescribeReadOnlyGroupAutoWeight,
6538
7596
  "InquiryPriceRenewDBInstance": doInquiryPriceRenewDBInstance,
6539
7597
  "DescribeXEvents": doDescribeXEvents,
6540
7598
  "ModifyBackupMigration": doModifyBackupMigration,
6541
7599
  "StartBackupMigration": doStartBackupMigration,
7600
+ "DescribeAccountPrivilegeByDB": doDescribeAccountPrivilegeByDB,
7601
+ "DescribeProductSpec": doDescribeProductSpec,
6542
7602
  "DescribeBackupByFlowId": doDescribeBackupByFlowId,
6543
- "DescribeRollbackTime": doDescribeRollbackTime,
7603
+ "ModifyOpenWanIp": doModifyOpenWanIp,
6544
7604
  "DescribeDBSecurityGroups": doDescribeDBSecurityGroups,
6545
7605
  "DeleteBackupMigration": doDeleteBackupMigration,
6546
7606
  "DescribeDBInstancesAttribute": doDescribeDBInstancesAttribute,
6547
7607
  "UpgradeDBInstance": doUpgradeDBInstance,
6548
7608
  "ModifyReadOnlyGroupDetails": doModifyReadOnlyGroupDetails,
6549
- "DescribeBackupFiles": doDescribeBackupFiles,
7609
+ "CreatePublishSubscribe": doCreatePublishSubscribe,
6550
7610
 
6551
7611
  }
6552
7612