tccli-intl-en 3.0.1282.1__py2.py3-none-any.whl → 3.1.33.1__py2.py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (207) hide show
  1. tccli/__init__.py +1 -1
  2. tccli/argument.py +1 -1
  3. tccli/services/__init__.py +15 -0
  4. tccli/services/advisor/advisor_client.py +2 -2
  5. tccli/services/ai3d/__init__.py +4 -0
  6. tccli/services/ai3d/ai3d_client.py +266 -0
  7. tccli/services/ai3d/v20250513/api.json +264 -0
  8. tccli/services/ai3d/v20250513/examples.json +20 -0
  9. tccli/services/aiart/aiart_client.py +1 -1
  10. tccli/services/ams/ams_client.py +4 -4
  11. tccli/services/antiddos/antiddos_client.py +70 -70
  12. tccli/services/apigateway/apigateway_client.py +93 -93
  13. tccli/services/apm/apm_client.py +783 -55
  14. tccli/services/apm/v20210622/api.json +3936 -1145
  15. tccli/services/apm/v20210622/examples.json +133 -23
  16. tccli/services/asr/asr_client.py +2 -2
  17. tccli/services/autoscaling/autoscaling_client.py +58 -58
  18. tccli/services/autoscaling/v20180419/api.json +77 -27
  19. tccli/services/batch/batch_client.py +28 -28
  20. tccli/services/bi/bi_client.py +24 -24
  21. tccli/services/billing/billing_client.py +42 -42
  22. tccli/services/cam/cam_client.py +81 -81
  23. tccli/services/captcha/captcha_client.py +1 -1
  24. tccli/services/car/car_client.py +33 -33
  25. tccli/services/cbs/cbs_client.py +38 -38
  26. tccli/services/ccc/ccc_client.py +70 -70
  27. tccli/services/ccc/v20200210/api.json +71 -26
  28. tccli/services/cdb/cdb_client.py +1262 -422
  29. tccli/services/cdb/v20170320/api.json +2166 -335
  30. tccli/services/cdb/v20170320/examples.json +126 -6
  31. tccli/services/cdc/cdc_client.py +20 -20
  32. tccli/services/cdn/cdn_client.py +44 -44
  33. tccli/services/cdn/v20180606/api.json +22 -22
  34. tccli/services/cdn/v20180606/examples.json +1 -1
  35. tccli/services/cdwdoris/cdwdoris_client.py +77 -77
  36. tccli/services/cdwpg/cdwpg_client.py +24 -24
  37. tccli/services/cdz/cdz_client.py +1 -1
  38. tccli/services/cfg/cfg_client.py +16 -16
  39. tccli/services/cfs/cfs_client.py +39 -39
  40. tccli/services/cfw/cfw_client.py +66 -66
  41. tccli/services/chdfs/chdfs_client.py +29 -29
  42. tccli/services/ciam/ciam_client.py +16 -16
  43. tccli/services/ckafka/ckafka_client.py +468 -76
  44. tccli/services/ckafka/v20190819/api.json +1009 -246
  45. tccli/services/ckafka/v20190819/examples.json +73 -23
  46. tccli/services/clb/clb_client.py +720 -384
  47. tccli/services/clb/v20180317/api.json +2255 -1017
  48. tccli/services/clb/v20180317/examples.json +184 -124
  49. tccli/services/cloudaudit/cloudaudit_client.py +18 -18
  50. tccli/services/cls/cls_client.py +86 -86
  51. tccli/services/cmq/cmq_client.py +2 -2
  52. tccli/services/config/config_client.py +6 -6
  53. tccli/services/controlcenter/controlcenter_client.py +225 -1
  54. tccli/services/controlcenter/v20230110/api.json +528 -5
  55. tccli/services/controlcenter/v20230110/examples.json +32 -0
  56. tccli/services/csip/csip_client.py +34 -34
  57. tccli/services/ctsdb/ctsdb_client.py +2 -2
  58. tccli/services/cvm/cvm_client.py +84 -84
  59. tccli/services/cvm/v20170312/api.json +175 -116
  60. tccli/services/cvm/v20170312/examples.json +93 -93
  61. tccli/services/cwp/cwp_client.py +465 -465
  62. tccli/services/cynosdb/cynosdb_client.py +154 -154
  63. tccli/services/dataintegration/dataintegration_client.py +1 -1
  64. tccli/services/dayu/dayu_client.py +103 -103
  65. tccli/services/dbbrain/dbbrain_client.py +42 -42
  66. tccli/services/dc/dc_client.py +18 -18
  67. tccli/services/dcdb/dcdb_client.py +62 -62
  68. tccli/services/dlc/dlc_client.py +109 -109
  69. tccli/services/dms/dms_client.py +2 -2
  70. tccli/services/dnspod/dnspod_client.py +40 -40
  71. tccli/services/domain/domain_client.py +24 -24
  72. tccli/services/dts/dts_client.py +83 -83
  73. tccli/services/eb/eb_client.py +26 -26
  74. tccli/services/ecdn/ecdn_client.py +15 -15
  75. tccli/services/ecm/ecm_client.py +124 -124
  76. tccli/services/eiam/eiam_client.py +40 -40
  77. tccli/services/emr/emr_client.py +77 -77
  78. tccli/services/emr/v20190103/api.json +6 -6
  79. tccli/services/es/es_client.py +21 -21
  80. tccli/services/facefusion/facefusion_client.py +3 -3
  81. tccli/services/faceid/faceid_client.py +19 -19
  82. tccli/services/faceid/v20180301/api.json +124 -46
  83. tccli/services/gaap/gaap_client.py +88 -88
  84. tccli/services/gme/gme_client.py +10 -10
  85. tccli/services/gpm/gpm_client.py +18 -18
  86. tccli/services/gse/gse_client.py +22 -22
  87. tccli/services/gwlb/gwlb_client.py +18 -18
  88. tccli/services/hunyuan/__init__.py +4 -0
  89. tccli/services/hunyuan/hunyuan_client.py +546 -0
  90. tccli/services/hunyuan/v20230901/api.json +628 -0
  91. tccli/services/hunyuan/v20230901/examples.json +60 -0
  92. tccli/services/iai/iai_client.py +29 -29
  93. tccli/services/iap/iap_client.py +6 -6
  94. tccli/services/ims/ims_client.py +1 -1
  95. tccli/services/intlpartnersmgt/intlpartnersmgt_client.py +42 -42
  96. tccli/services/iotcloud/iotcloud_client.py +20 -20
  97. tccli/services/ip/ip_client.py +6 -6
  98. tccli/services/kms/kms_client.py +68 -68
  99. tccli/services/kms/v20190118/api.json +80 -3
  100. tccli/services/kms/v20190118/examples.json +3 -3
  101. tccli/services/lcic/lcic_client.py +53 -53
  102. tccli/services/lighthouse/lighthouse_client.py +434 -98
  103. tccli/services/lighthouse/v20200324/api.json +488 -0
  104. tccli/services/lighthouse/v20200324/examples.json +54 -0
  105. tccli/services/live/live_client.py +120 -120
  106. tccli/services/lke/lke_client.py +90 -90
  107. tccli/services/lkeap/lkeap_client.py +63 -7
  108. tccli/services/lkeap/v20240522/api.json +134 -0
  109. tccli/services/lkeap/v20240522/examples.json +21 -1
  110. tccli/services/mariadb/mariadb_client.py +50 -50
  111. tccli/services/mdc/mdc_client.py +18 -18
  112. tccli/services/mdl/mdl_client.py +225 -57
  113. tccli/services/mdl/v20200326/api.json +903 -59
  114. tccli/services/mdl/v20200326/examples.json +24 -0
  115. tccli/services/mdp/mdp_client.py +62 -62
  116. tccli/services/mdp/v20200527/api.json +191 -28
  117. tccli/services/message/message_client.py +1 -1
  118. tccli/services/mongodb/mongodb_client.py +1081 -129
  119. tccli/services/mongodb/v20190725/api.json +1798 -141
  120. tccli/services/mongodb/v20190725/examples.json +136 -0
  121. tccli/services/monitor/monitor_client.py +149 -149
  122. tccli/services/monitor/v20180724/api.json +8 -8
  123. tccli/services/mps/mps_client.py +1118 -278
  124. tccli/services/mps/v20190612/api.json +2117 -117
  125. tccli/services/mps/v20190612/examples.json +164 -62
  126. tccli/services/mqtt/__init__.py +4 -0
  127. tccli/services/mqtt/mqtt_client.py +1610 -0
  128. tccli/services/mqtt/v20240516/api.json +3057 -0
  129. tccli/services/mqtt/v20240516/examples.json +213 -0
  130. tccli/services/msp/msp_client.py +7 -7
  131. tccli/services/ocr/ocr_client.py +206 -38
  132. tccli/services/ocr/v20181119/api.json +726 -83
  133. tccli/services/ocr/v20181119/examples.json +36 -6
  134. tccli/services/omics/omics_client.py +20 -20
  135. tccli/services/organization/organization_client.py +116 -116
  136. tccli/services/postgres/postgres_client.py +91 -91
  137. tccli/services/privatedns/privatedns_client.py +31 -31
  138. tccli/services/pts/pts_client.py +48 -48
  139. tccli/services/quota/quota_client.py +5 -5
  140. tccli/services/rce/rce_client.py +1 -1
  141. tccli/services/redis/redis_client.py +109 -109
  142. tccli/services/redis/v20180412/api.json +12 -12
  143. tccli/services/region/region_client.py +3 -3
  144. tccli/services/rum/rum_client.py +60 -60
  145. tccli/services/scf/scf_client.py +42 -42
  146. tccli/services/ses/ses_client.py +29 -29
  147. tccli/services/smh/__init__.py +4 -0
  148. tccli/services/smh/smh_client.py +714 -0
  149. tccli/services/smh/v20210712/api.json +1287 -0
  150. tccli/services/smh/v20210712/examples.json +85 -0
  151. tccli/services/sms/sms_client.py +18 -18
  152. tccli/services/sqlserver/sqlserver_client.py +139 -139
  153. tccli/services/ssl/ssl_client.py +38 -38
  154. tccli/services/ssm/ssm_client.py +24 -24
  155. tccli/services/sts/sts_client.py +5 -5
  156. tccli/services/tag/tag_client.py +30 -30
  157. tccli/services/tat/tat_client.py +19 -19
  158. tccli/services/tbaas/tbaas_client.py +4 -4
  159. tccli/services/tcaplusdb/tcaplusdb_client.py +52 -52
  160. tccli/services/tchd/tchd_client.py +1 -1
  161. tccli/services/tcmpp/tcmpp_client.py +104 -104
  162. tccli/services/tcr/tcr_client.py +76 -76
  163. tccli/services/tcsas/tcsas_client.py +2340 -268
  164. tccli/services/tcsas/v20250106/api.json +8410 -3423
  165. tccli/services/tcsas/v20250106/examples.json +308 -12
  166. tccli/services/tcss/tcss_client.py +330 -330
  167. tccli/services/tdid/tdid_client.py +48 -48
  168. tccli/services/tdmq/tdmq_client.py +2500 -372
  169. tccli/services/tdmq/v20200217/api.json +11607 -3958
  170. tccli/services/tdmq/v20200217/examples.json +562 -264
  171. tccli/services/tem/tem_client.py +56 -56
  172. tccli/services/teo/teo_client.py +466 -298
  173. tccli/services/teo/v20220901/api.json +324 -16
  174. tccli/services/teo/v20220901/examples.json +64 -22
  175. tccli/services/tione/tione_client.py +1 -1
  176. tccli/services/tiw/tiw_client.py +51 -51
  177. tccli/services/tke/tke_client.py +306 -138
  178. tccli/services/tke/v20180525/api.json +227 -0
  179. tccli/services/tke/v20180525/examples.json +24 -0
  180. tccli/services/tms/tms_client.py +1 -1
  181. tccli/services/tmt/tmt_client.py +1 -1
  182. tccli/services/trabbit/trabbit_client.py +29 -29
  183. tccli/services/trocket/__init__.py +4 -0
  184. tccli/services/trocket/trocket_client.py +2450 -0
  185. tccli/services/trocket/v20230308/api.json +6062 -0
  186. tccli/services/trocket/v20230308/examples.json +339 -0
  187. tccli/services/trro/trro_client.py +19 -19
  188. tccli/services/trtc/trtc_client.py +51 -51
  189. tccli/services/trtc/v20190722/api.json +15 -15
  190. tccli/services/tts/tts_client.py +1 -1
  191. tccli/services/vclm/vclm_client.py +2 -2
  192. tccli/services/vm/vm_client.py +4 -4
  193. tccli/services/vod/v20180717/api.json +2929 -296
  194. tccli/services/vod/v20180717/examples.json +40 -6
  195. tccli/services/vod/vod_client.py +459 -179
  196. tccli/services/vpc/v20170312/api.json +99 -29
  197. tccli/services/vpc/v20170312/examples.json +21 -13
  198. tccli/services/vpc/vpc_client.py +357 -301
  199. tccli/services/waf/waf_client.py +107 -107
  200. tccli/services/wedata/wedata_client.py +310 -310
  201. tccli/services/yunjing/yunjing_client.py +71 -71
  202. {tccli_intl_en-3.0.1282.1.dist-info → tccli_intl_en-3.1.33.1.dist-info}/METADATA +2 -2
  203. {tccli_intl_en-3.0.1282.1.dist-info → tccli_intl_en-3.1.33.1.dist-info}/RECORD +207 -187
  204. {tccli_intl_en-3.0.1282.1.dist-info → tccli_intl_en-3.1.33.1.dist-info}/WHEEL +1 -1
  205. {tccli_intl_en-3.0.1282.1.dist-info → tccli_intl_en-3.1.33.1.dist-info}/LICENSE +0 -0
  206. {tccli_intl_en-3.0.1282.1.dist-info → tccli_intl_en-3.1.33.1.dist-info}/entry_points.txt +0 -0
  207. {tccli_intl_en-3.0.1282.1.dist-info → tccli_intl_en-3.1.33.1.dist-info}/top_level.txt +0 -0
@@ -42,7 +42,7 @@ def doDescribeDBInstanceGTID(args, parsed_globals):
42
42
  endpoint=g_param[OptionsDefine.Endpoint],
43
43
  proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
44
44
  )
45
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
45
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
46
46
  if g_param[OptionsDefine.Language]:
47
47
  profile.language = g_param[OptionsDefine.Language]
48
48
  mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
@@ -97,7 +97,7 @@ def doCreateRoInstanceIp(args, parsed_globals):
97
97
  endpoint=g_param[OptionsDefine.Endpoint],
98
98
  proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
99
99
  )
100
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
100
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
101
101
  if g_param[OptionsDefine.Language]:
102
102
  profile.language = g_param[OptionsDefine.Language]
103
103
  mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
@@ -152,7 +152,7 @@ def doCreateAuditPolicy(args, parsed_globals):
152
152
  endpoint=g_param[OptionsDefine.Endpoint],
153
153
  proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
154
154
  )
155
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
155
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
156
156
  if g_param[OptionsDefine.Language]:
157
157
  profile.language = g_param[OptionsDefine.Language]
158
158
  mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
@@ -207,7 +207,7 @@ def doDescribeDBFeatures(args, parsed_globals):
207
207
  endpoint=g_param[OptionsDefine.Endpoint],
208
208
  proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
209
209
  )
210
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
210
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
211
211
  if g_param[OptionsDefine.Language]:
212
212
  profile.language = g_param[OptionsDefine.Language]
213
213
  mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
@@ -237,7 +237,7 @@ def doDescribeDBFeatures(args, parsed_globals):
237
237
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
238
238
 
239
239
 
240
- def doDescribeDataBackupOverview(args, parsed_globals):
240
+ def doCreateAuditRuleTemplate(args, parsed_globals):
241
241
  g_param = parse_global_arg(parsed_globals)
242
242
 
243
243
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -262,18 +262,18 @@ def doDescribeDataBackupOverview(args, parsed_globals):
262
262
  endpoint=g_param[OptionsDefine.Endpoint],
263
263
  proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
264
264
  )
265
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
265
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
266
266
  if g_param[OptionsDefine.Language]:
267
267
  profile.language = g_param[OptionsDefine.Language]
268
268
  mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
269
269
  client = mod.CdbClient(cred, g_param[OptionsDefine.Region], profile)
270
270
  client._sdkVersion += ("_CLI_" + __version__)
271
271
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
272
- model = models.DescribeDataBackupOverviewRequest()
272
+ model = models.CreateAuditRuleTemplateRequest()
273
273
  model.from_json_string(json.dumps(args))
274
274
  start_time = time.time()
275
275
  while True:
276
- rsp = client.DescribeDataBackupOverview(model)
276
+ rsp = client.CreateAuditRuleTemplate(model)
277
277
  result = rsp.to_json_string()
278
278
  try:
279
279
  json_obj = json.loads(result)
@@ -317,7 +317,7 @@ def doBalanceRoGroupLoad(args, parsed_globals):
317
317
  endpoint=g_param[OptionsDefine.Endpoint],
318
318
  proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
319
319
  )
320
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
320
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
321
321
  if g_param[OptionsDefine.Language]:
322
322
  profile.language = g_param[OptionsDefine.Language]
323
323
  mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
@@ -372,7 +372,7 @@ def doIsolateDBInstance(args, parsed_globals):
372
372
  endpoint=g_param[OptionsDefine.Endpoint],
373
373
  proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
374
374
  )
375
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
375
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
376
376
  if g_param[OptionsDefine.Language]:
377
377
  profile.language = g_param[OptionsDefine.Language]
378
378
  mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
@@ -427,7 +427,7 @@ def doDescribeAccounts(args, parsed_globals):
427
427
  endpoint=g_param[OptionsDefine.Endpoint],
428
428
  proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
429
429
  )
430
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
430
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
431
431
  if g_param[OptionsDefine.Language]:
432
432
  profile.language = g_param[OptionsDefine.Language]
433
433
  mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
@@ -482,7 +482,7 @@ def doModifyInstanceTag(args, parsed_globals):
482
482
  endpoint=g_param[OptionsDefine.Endpoint],
483
483
  proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
484
484
  )
485
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
485
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
486
486
  if g_param[OptionsDefine.Language]:
487
487
  profile.language = g_param[OptionsDefine.Language]
488
488
  mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
@@ -537,7 +537,7 @@ def doDescribeTimeWindow(args, parsed_globals):
537
537
  endpoint=g_param[OptionsDefine.Endpoint],
538
538
  proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
539
539
  )
540
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
540
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
541
541
  if g_param[OptionsDefine.Language]:
542
542
  profile.language = g_param[OptionsDefine.Language]
543
543
  mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
@@ -592,7 +592,7 @@ def doDescribeBackupOverview(args, parsed_globals):
592
592
  endpoint=g_param[OptionsDefine.Endpoint],
593
593
  proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
594
594
  )
595
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
595
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
596
596
  if g_param[OptionsDefine.Language]:
597
597
  profile.language = g_param[OptionsDefine.Language]
598
598
  mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
@@ -647,7 +647,7 @@ def doStopReplication(args, parsed_globals):
647
647
  endpoint=g_param[OptionsDefine.Endpoint],
648
648
  proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
649
649
  )
650
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
650
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
651
651
  if g_param[OptionsDefine.Language]:
652
652
  profile.language = g_param[OptionsDefine.Language]
653
653
  mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
@@ -702,7 +702,7 @@ def doModifyDBInstanceLogToCLS(args, parsed_globals):
702
702
  endpoint=g_param[OptionsDefine.Endpoint],
703
703
  proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
704
704
  )
705
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
705
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
706
706
  if g_param[OptionsDefine.Language]:
707
707
  profile.language = g_param[OptionsDefine.Language]
708
708
  mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
@@ -757,7 +757,7 @@ def doStopCpuExpand(args, parsed_globals):
757
757
  endpoint=g_param[OptionsDefine.Endpoint],
758
758
  proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
759
759
  )
760
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
760
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
761
761
  if g_param[OptionsDefine.Language]:
762
762
  profile.language = g_param[OptionsDefine.Language]
763
763
  mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
@@ -812,7 +812,7 @@ def doModifyDBInstanceName(args, parsed_globals):
812
812
  endpoint=g_param[OptionsDefine.Endpoint],
813
813
  proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
814
814
  )
815
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
815
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
816
816
  if g_param[OptionsDefine.Language]:
817
817
  profile.language = g_param[OptionsDefine.Language]
818
818
  mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
@@ -867,7 +867,7 @@ def doDescribeCdbZoneConfig(args, parsed_globals):
867
867
  endpoint=g_param[OptionsDefine.Endpoint],
868
868
  proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
869
869
  )
870
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
870
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
871
871
  if g_param[OptionsDefine.Language]:
872
872
  profile.language = g_param[OptionsDefine.Language]
873
873
  mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
@@ -897,6 +897,61 @@ def doDescribeCdbZoneConfig(args, parsed_globals):
897
897
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
898
898
 
899
899
 
900
+ def doCloseAuditService(args, parsed_globals):
901
+ g_param = parse_global_arg(parsed_globals)
902
+
903
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
904
+ cred = credential.CVMRoleCredential()
905
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
906
+ cred = credential.STSAssumeRoleCredential(
907
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
908
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
909
+ )
910
+ elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
911
+ and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
912
+ and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
913
+ and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
914
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
915
+ else:
916
+ cred = credential.Credential(
917
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
918
+ )
919
+ http_profile = HttpProfile(
920
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
921
+ reqMethod="POST",
922
+ endpoint=g_param[OptionsDefine.Endpoint],
923
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
924
+ )
925
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
926
+ if g_param[OptionsDefine.Language]:
927
+ profile.language = g_param[OptionsDefine.Language]
928
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
929
+ client = mod.CdbClient(cred, g_param[OptionsDefine.Region], profile)
930
+ client._sdkVersion += ("_CLI_" + __version__)
931
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
932
+ model = models.CloseAuditServiceRequest()
933
+ model.from_json_string(json.dumps(args))
934
+ start_time = time.time()
935
+ while True:
936
+ rsp = client.CloseAuditService(model)
937
+ result = rsp.to_json_string()
938
+ try:
939
+ json_obj = json.loads(result)
940
+ except TypeError as e:
941
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
942
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
943
+ break
944
+ cur_time = time.time()
945
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
946
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
947
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
948
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
949
+ else:
950
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
951
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
952
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
953
+
954
+
900
955
  def doStopRollback(args, parsed_globals):
901
956
  g_param = parse_global_arg(parsed_globals)
902
957
 
@@ -922,7 +977,7 @@ def doStopRollback(args, parsed_globals):
922
977
  endpoint=g_param[OptionsDefine.Endpoint],
923
978
  proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
924
979
  )
925
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
980
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
926
981
  if g_param[OptionsDefine.Language]:
927
982
  profile.language = g_param[OptionsDefine.Language]
928
983
  mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
@@ -977,7 +1032,7 @@ def doDescribeRoGroups(args, parsed_globals):
977
1032
  endpoint=g_param[OptionsDefine.Endpoint],
978
1033
  proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
979
1034
  )
980
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
1035
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
981
1036
  if g_param[OptionsDefine.Language]:
982
1037
  profile.language = g_param[OptionsDefine.Language]
983
1038
  mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
@@ -1032,7 +1087,7 @@ def doOfflineIsolatedInstances(args, parsed_globals):
1032
1087
  endpoint=g_param[OptionsDefine.Endpoint],
1033
1088
  proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
1034
1089
  )
1035
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
1090
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
1036
1091
  if g_param[OptionsDefine.Language]:
1037
1092
  profile.language = g_param[OptionsDefine.Language]
1038
1093
  mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
@@ -1062,7 +1117,7 @@ def doOfflineIsolatedInstances(args, parsed_globals):
1062
1117
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
1063
1118
 
1064
1119
 
1065
- def doModifyBackupEncryptionStatus(args, parsed_globals):
1120
+ def doCreateAuditLogFile(args, parsed_globals):
1066
1121
  g_param = parse_global_arg(parsed_globals)
1067
1122
 
1068
1123
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -1087,18 +1142,18 @@ def doModifyBackupEncryptionStatus(args, parsed_globals):
1087
1142
  endpoint=g_param[OptionsDefine.Endpoint],
1088
1143
  proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
1089
1144
  )
1090
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
1145
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
1091
1146
  if g_param[OptionsDefine.Language]:
1092
1147
  profile.language = g_param[OptionsDefine.Language]
1093
1148
  mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
1094
1149
  client = mod.CdbClient(cred, g_param[OptionsDefine.Region], profile)
1095
1150
  client._sdkVersion += ("_CLI_" + __version__)
1096
1151
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
1097
- model = models.ModifyBackupEncryptionStatusRequest()
1152
+ model = models.CreateAuditLogFileRequest()
1098
1153
  model.from_json_string(json.dumps(args))
1099
1154
  start_time = time.time()
1100
1155
  while True:
1101
- rsp = client.ModifyBackupEncryptionStatus(model)
1156
+ rsp = client.CreateAuditLogFile(model)
1102
1157
  result = rsp.to_json_string()
1103
1158
  try:
1104
1159
  json_obj = json.loads(result)
@@ -1142,7 +1197,7 @@ def doOpenDBInstanceGTID(args, parsed_globals):
1142
1197
  endpoint=g_param[OptionsDefine.Endpoint],
1143
1198
  proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
1144
1199
  )
1145
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
1200
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
1146
1201
  if g_param[OptionsDefine.Language]:
1147
1202
  profile.language = g_param[OptionsDefine.Language]
1148
1203
  mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
@@ -1197,7 +1252,7 @@ def doDescribeRollbackTaskDetail(args, parsed_globals):
1197
1252
  endpoint=g_param[OptionsDefine.Endpoint],
1198
1253
  proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
1199
1254
  )
1200
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
1255
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
1201
1256
  if g_param[OptionsDefine.Language]:
1202
1257
  profile.language = g_param[OptionsDefine.Language]
1203
1258
  mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
@@ -1252,7 +1307,7 @@ def doModifyBackupDownloadRestriction(args, parsed_globals):
1252
1307
  endpoint=g_param[OptionsDefine.Endpoint],
1253
1308
  proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
1254
1309
  )
1255
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
1310
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
1256
1311
  if g_param[OptionsDefine.Language]:
1257
1312
  profile.language = g_param[OptionsDefine.Language]
1258
1313
  mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
@@ -1307,7 +1362,7 @@ def doCloseCdbProxyAddress(args, parsed_globals):
1307
1362
  endpoint=g_param[OptionsDefine.Endpoint],
1308
1363
  proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
1309
1364
  )
1310
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
1365
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
1311
1366
  if g_param[OptionsDefine.Language]:
1312
1367
  profile.language = g_param[OptionsDefine.Language]
1313
1368
  mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
@@ -1362,7 +1417,7 @@ def doDescribeTasks(args, parsed_globals):
1362
1417
  endpoint=g_param[OptionsDefine.Endpoint],
1363
1418
  proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
1364
1419
  )
1365
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
1420
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
1366
1421
  if g_param[OptionsDefine.Language]:
1367
1422
  profile.language = g_param[OptionsDefine.Language]
1368
1423
  mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
@@ -1417,7 +1472,7 @@ def doDescribeBackupConfig(args, parsed_globals):
1417
1472
  endpoint=g_param[OptionsDefine.Endpoint],
1418
1473
  proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
1419
1474
  )
1420
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
1475
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
1421
1476
  if g_param[OptionsDefine.Language]:
1422
1477
  profile.language = g_param[OptionsDefine.Language]
1423
1478
  mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
@@ -1472,7 +1527,7 @@ def doCloseWanService(args, parsed_globals):
1472
1527
  endpoint=g_param[OptionsDefine.Endpoint],
1473
1528
  proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
1474
1529
  )
1475
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
1530
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
1476
1531
  if g_param[OptionsDefine.Language]:
1477
1532
  profile.language = g_param[OptionsDefine.Language]
1478
1533
  mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
@@ -1527,7 +1582,7 @@ def doDescribeDefaultParams(args, parsed_globals):
1527
1582
  endpoint=g_param[OptionsDefine.Endpoint],
1528
1583
  proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
1529
1584
  )
1530
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
1585
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
1531
1586
  if g_param[OptionsDefine.Language]:
1532
1587
  profile.language = g_param[OptionsDefine.Language]
1533
1588
  mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
@@ -1582,7 +1637,7 @@ def doDescribeAuditPolicies(args, parsed_globals):
1582
1637
  endpoint=g_param[OptionsDefine.Endpoint],
1583
1638
  proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
1584
1639
  )
1585
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
1640
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
1586
1641
  if g_param[OptionsDefine.Language]:
1587
1642
  profile.language = g_param[OptionsDefine.Language]
1588
1643
  mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
@@ -1637,7 +1692,7 @@ def doOpenDBInstanceEncryption(args, parsed_globals):
1637
1692
  endpoint=g_param[OptionsDefine.Endpoint],
1638
1693
  proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
1639
1694
  )
1640
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
1695
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
1641
1696
  if g_param[OptionsDefine.Language]:
1642
1697
  profile.language = g_param[OptionsDefine.Language]
1643
1698
  mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
@@ -1692,7 +1747,7 @@ def doDescribeTagsOfInstanceIds(args, parsed_globals):
1692
1747
  endpoint=g_param[OptionsDefine.Endpoint],
1693
1748
  proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
1694
1749
  )
1695
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
1750
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
1696
1751
  if g_param[OptionsDefine.Language]:
1697
1752
  profile.language = g_param[OptionsDefine.Language]
1698
1753
  mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
@@ -1747,7 +1802,7 @@ def doDescribeDatabases(args, parsed_globals):
1747
1802
  endpoint=g_param[OptionsDefine.Endpoint],
1748
1803
  proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
1749
1804
  )
1750
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
1805
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
1751
1806
  if g_param[OptionsDefine.Language]:
1752
1807
  profile.language = g_param[OptionsDefine.Language]
1753
1808
  mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
@@ -1802,7 +1857,7 @@ def doDescribeErrorLogData(args, parsed_globals):
1802
1857
  endpoint=g_param[OptionsDefine.Endpoint],
1803
1858
  proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
1804
1859
  )
1805
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
1860
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
1806
1861
  if g_param[OptionsDefine.Language]:
1807
1862
  profile.language = g_param[OptionsDefine.Language]
1808
1863
  mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
@@ -1857,7 +1912,7 @@ def doSwitchDBInstanceMasterSlave(args, parsed_globals):
1857
1912
  endpoint=g_param[OptionsDefine.Endpoint],
1858
1913
  proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
1859
1914
  )
1860
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
1915
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
1861
1916
  if g_param[OptionsDefine.Language]:
1862
1917
  profile.language = g_param[OptionsDefine.Language]
1863
1918
  mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
@@ -1887,7 +1942,7 @@ def doSwitchDBInstanceMasterSlave(args, parsed_globals):
1887
1942
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
1888
1943
 
1889
1944
 
1890
- def doDisassociateSecurityGroups(args, parsed_globals):
1945
+ def doCreateDatabase(args, parsed_globals):
1891
1946
  g_param = parse_global_arg(parsed_globals)
1892
1947
 
1893
1948
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -1912,18 +1967,18 @@ def doDisassociateSecurityGroups(args, parsed_globals):
1912
1967
  endpoint=g_param[OptionsDefine.Endpoint],
1913
1968
  proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
1914
1969
  )
1915
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
1970
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
1916
1971
  if g_param[OptionsDefine.Language]:
1917
1972
  profile.language = g_param[OptionsDefine.Language]
1918
1973
  mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
1919
1974
  client = mod.CdbClient(cred, g_param[OptionsDefine.Region], profile)
1920
1975
  client._sdkVersion += ("_CLI_" + __version__)
1921
1976
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
1922
- model = models.DisassociateSecurityGroupsRequest()
1977
+ model = models.CreateDatabaseRequest()
1923
1978
  model.from_json_string(json.dumps(args))
1924
1979
  start_time = time.time()
1925
1980
  while True:
1926
- rsp = client.DisassociateSecurityGroups(model)
1981
+ rsp = client.CreateDatabase(model)
1927
1982
  result = rsp.to_json_string()
1928
1983
  try:
1929
1984
  json_obj = json.loads(result)
@@ -1942,7 +1997,7 @@ def doDisassociateSecurityGroups(args, parsed_globals):
1942
1997
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
1943
1998
 
1944
1999
 
1945
- def doModifyCdbProxyParam(args, parsed_globals):
2000
+ def doDisassociateSecurityGroups(args, parsed_globals):
1946
2001
  g_param = parse_global_arg(parsed_globals)
1947
2002
 
1948
2003
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -1967,18 +2022,18 @@ def doModifyCdbProxyParam(args, parsed_globals):
1967
2022
  endpoint=g_param[OptionsDefine.Endpoint],
1968
2023
  proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
1969
2024
  )
1970
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
2025
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
1971
2026
  if g_param[OptionsDefine.Language]:
1972
2027
  profile.language = g_param[OptionsDefine.Language]
1973
2028
  mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
1974
2029
  client = mod.CdbClient(cred, g_param[OptionsDefine.Region], profile)
1975
2030
  client._sdkVersion += ("_CLI_" + __version__)
1976
2031
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
1977
- model = models.ModifyCdbProxyParamRequest()
2032
+ model = models.DisassociateSecurityGroupsRequest()
1978
2033
  model.from_json_string(json.dumps(args))
1979
2034
  start_time = time.time()
1980
2035
  while True:
1981
- rsp = client.ModifyCdbProxyParam(model)
2036
+ rsp = client.DisassociateSecurityGroups(model)
1982
2037
  result = rsp.to_json_string()
1983
2038
  try:
1984
2039
  json_obj = json.loads(result)
@@ -1997,7 +2052,7 @@ def doModifyCdbProxyParam(args, parsed_globals):
1997
2052
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
1998
2053
 
1999
2054
 
2000
- def doDescribeTables(args, parsed_globals):
2055
+ def doModifyCdbProxyParam(args, parsed_globals):
2001
2056
  g_param = parse_global_arg(parsed_globals)
2002
2057
 
2003
2058
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -2022,18 +2077,18 @@ def doDescribeTables(args, parsed_globals):
2022
2077
  endpoint=g_param[OptionsDefine.Endpoint],
2023
2078
  proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
2024
2079
  )
2025
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
2080
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
2026
2081
  if g_param[OptionsDefine.Language]:
2027
2082
  profile.language = g_param[OptionsDefine.Language]
2028
2083
  mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
2029
2084
  client = mod.CdbClient(cred, g_param[OptionsDefine.Region], profile)
2030
2085
  client._sdkVersion += ("_CLI_" + __version__)
2031
2086
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
2032
- model = models.DescribeTablesRequest()
2087
+ model = models.ModifyCdbProxyParamRequest()
2033
2088
  model.from_json_string(json.dumps(args))
2034
2089
  start_time = time.time()
2035
2090
  while True:
2036
- rsp = client.DescribeTables(model)
2091
+ rsp = client.ModifyCdbProxyParam(model)
2037
2092
  result = rsp.to_json_string()
2038
2093
  try:
2039
2094
  json_obj = json.loads(result)
@@ -2052,7 +2107,7 @@ def doDescribeTables(args, parsed_globals):
2052
2107
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
2053
2108
 
2054
2109
 
2055
- def doDescribeAccountPrivileges(args, parsed_globals):
2110
+ def doDescribeTables(args, parsed_globals):
2056
2111
  g_param = parse_global_arg(parsed_globals)
2057
2112
 
2058
2113
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -2077,18 +2132,18 @@ def doDescribeAccountPrivileges(args, parsed_globals):
2077
2132
  endpoint=g_param[OptionsDefine.Endpoint],
2078
2133
  proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
2079
2134
  )
2080
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
2135
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
2081
2136
  if g_param[OptionsDefine.Language]:
2082
2137
  profile.language = g_param[OptionsDefine.Language]
2083
2138
  mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
2084
2139
  client = mod.CdbClient(cred, g_param[OptionsDefine.Region], profile)
2085
2140
  client._sdkVersion += ("_CLI_" + __version__)
2086
2141
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
2087
- model = models.DescribeAccountPrivilegesRequest()
2142
+ model = models.DescribeTablesRequest()
2088
2143
  model.from_json_string(json.dumps(args))
2089
2144
  start_time = time.time()
2090
2145
  while True:
2091
- rsp = client.DescribeAccountPrivileges(model)
2146
+ rsp = client.DescribeTables(model)
2092
2147
  result = rsp.to_json_string()
2093
2148
  try:
2094
2149
  json_obj = json.loads(result)
@@ -2107,7 +2162,7 @@ def doDescribeAccountPrivileges(args, parsed_globals):
2107
2162
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
2108
2163
 
2109
2164
 
2110
- def doReleaseIsolatedDBInstances(args, parsed_globals):
2165
+ def doDeleteTimeWindow(args, parsed_globals):
2111
2166
  g_param = parse_global_arg(parsed_globals)
2112
2167
 
2113
2168
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -2132,18 +2187,18 @@ def doReleaseIsolatedDBInstances(args, parsed_globals):
2132
2187
  endpoint=g_param[OptionsDefine.Endpoint],
2133
2188
  proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
2134
2189
  )
2135
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
2190
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
2136
2191
  if g_param[OptionsDefine.Language]:
2137
2192
  profile.language = g_param[OptionsDefine.Language]
2138
2193
  mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
2139
2194
  client = mod.CdbClient(cred, g_param[OptionsDefine.Region], profile)
2140
2195
  client._sdkVersion += ("_CLI_" + __version__)
2141
2196
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
2142
- model = models.ReleaseIsolatedDBInstancesRequest()
2197
+ model = models.DeleteTimeWindowRequest()
2143
2198
  model.from_json_string(json.dumps(args))
2144
2199
  start_time = time.time()
2145
2200
  while True:
2146
- rsp = client.ReleaseIsolatedDBInstances(model)
2201
+ rsp = client.DeleteTimeWindow(model)
2147
2202
  result = rsp.to_json_string()
2148
2203
  try:
2149
2204
  json_obj = json.loads(result)
@@ -2162,7 +2217,7 @@ def doReleaseIsolatedDBInstances(args, parsed_globals):
2162
2217
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
2163
2218
 
2164
2219
 
2165
- def doCreateCloneInstance(args, parsed_globals):
2220
+ def doDescribeAccountPrivileges(args, parsed_globals):
2166
2221
  g_param = parse_global_arg(parsed_globals)
2167
2222
 
2168
2223
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -2187,18 +2242,18 @@ def doCreateCloneInstance(args, parsed_globals):
2187
2242
  endpoint=g_param[OptionsDefine.Endpoint],
2188
2243
  proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
2189
2244
  )
2190
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
2245
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
2191
2246
  if g_param[OptionsDefine.Language]:
2192
2247
  profile.language = g_param[OptionsDefine.Language]
2193
2248
  mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
2194
2249
  client = mod.CdbClient(cred, g_param[OptionsDefine.Region], profile)
2195
2250
  client._sdkVersion += ("_CLI_" + __version__)
2196
2251
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
2197
- model = models.CreateCloneInstanceRequest()
2252
+ model = models.DescribeAccountPrivilegesRequest()
2198
2253
  model.from_json_string(json.dumps(args))
2199
2254
  start_time = time.time()
2200
2255
  while True:
2201
- rsp = client.CreateCloneInstance(model)
2256
+ rsp = client.DescribeAccountPrivileges(model)
2202
2257
  result = rsp.to_json_string()
2203
2258
  try:
2204
2259
  json_obj = json.loads(result)
@@ -2217,7 +2272,7 @@ def doCreateCloneInstance(args, parsed_globals):
2217
2272
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
2218
2273
 
2219
2274
 
2220
- def doModifyInstancePasswordComplexity(args, parsed_globals):
2275
+ def doDescribeDataBackupOverview(args, parsed_globals):
2221
2276
  g_param = parse_global_arg(parsed_globals)
2222
2277
 
2223
2278
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -2242,18 +2297,18 @@ def doModifyInstancePasswordComplexity(args, parsed_globals):
2242
2297
  endpoint=g_param[OptionsDefine.Endpoint],
2243
2298
  proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
2244
2299
  )
2245
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
2300
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
2246
2301
  if g_param[OptionsDefine.Language]:
2247
2302
  profile.language = g_param[OptionsDefine.Language]
2248
2303
  mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
2249
2304
  client = mod.CdbClient(cred, g_param[OptionsDefine.Region], profile)
2250
2305
  client._sdkVersion += ("_CLI_" + __version__)
2251
2306
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
2252
- model = models.ModifyInstancePasswordComplexityRequest()
2307
+ model = models.DescribeDataBackupOverviewRequest()
2253
2308
  model.from_json_string(json.dumps(args))
2254
2309
  start_time = time.time()
2255
2310
  while True:
2256
- rsp = client.ModifyInstancePasswordComplexity(model)
2311
+ rsp = client.DescribeDataBackupOverview(model)
2257
2312
  result = rsp.to_json_string()
2258
2313
  try:
2259
2314
  json_obj = json.loads(result)
@@ -2272,7 +2327,7 @@ def doModifyInstancePasswordComplexity(args, parsed_globals):
2272
2327
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
2273
2328
 
2274
2329
 
2275
- def doModifyTimeWindow(args, parsed_globals):
2330
+ def doReleaseIsolatedDBInstances(args, parsed_globals):
2276
2331
  g_param = parse_global_arg(parsed_globals)
2277
2332
 
2278
2333
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -2297,18 +2352,18 @@ def doModifyTimeWindow(args, parsed_globals):
2297
2352
  endpoint=g_param[OptionsDefine.Endpoint],
2298
2353
  proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
2299
2354
  )
2300
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
2355
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
2301
2356
  if g_param[OptionsDefine.Language]:
2302
2357
  profile.language = g_param[OptionsDefine.Language]
2303
2358
  mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
2304
2359
  client = mod.CdbClient(cred, g_param[OptionsDefine.Region], profile)
2305
2360
  client._sdkVersion += ("_CLI_" + __version__)
2306
2361
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
2307
- model = models.ModifyTimeWindowRequest()
2362
+ model = models.ReleaseIsolatedDBInstancesRequest()
2308
2363
  model.from_json_string(json.dumps(args))
2309
2364
  start_time = time.time()
2310
2365
  while True:
2311
- rsp = client.ModifyTimeWindow(model)
2366
+ rsp = client.ReleaseIsolatedDBInstances(model)
2312
2367
  result = rsp.to_json_string()
2313
2368
  try:
2314
2369
  json_obj = json.loads(result)
@@ -2327,7 +2382,7 @@ def doModifyTimeWindow(args, parsed_globals):
2327
2382
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
2328
2383
 
2329
2384
 
2330
- def doSwitchForUpgrade(args, parsed_globals):
2385
+ def doCreateCloneInstance(args, parsed_globals):
2331
2386
  g_param = parse_global_arg(parsed_globals)
2332
2387
 
2333
2388
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -2352,18 +2407,18 @@ def doSwitchForUpgrade(args, parsed_globals):
2352
2407
  endpoint=g_param[OptionsDefine.Endpoint],
2353
2408
  proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
2354
2409
  )
2355
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
2410
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
2356
2411
  if g_param[OptionsDefine.Language]:
2357
2412
  profile.language = g_param[OptionsDefine.Language]
2358
2413
  mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
2359
2414
  client = mod.CdbClient(cred, g_param[OptionsDefine.Region], profile)
2360
2415
  client._sdkVersion += ("_CLI_" + __version__)
2361
2416
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
2362
- model = models.SwitchForUpgradeRequest()
2417
+ model = models.CreateCloneInstanceRequest()
2363
2418
  model.from_json_string(json.dumps(args))
2364
2419
  start_time = time.time()
2365
2420
  while True:
2366
- rsp = client.SwitchForUpgrade(model)
2421
+ rsp = client.CreateCloneInstance(model)
2367
2422
  result = rsp.to_json_string()
2368
2423
  try:
2369
2424
  json_obj = json.loads(result)
@@ -2382,7 +2437,7 @@ def doSwitchForUpgrade(args, parsed_globals):
2382
2437
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
2383
2438
 
2384
2439
 
2385
- def doDeleteParamTemplate(args, parsed_globals):
2440
+ def doModifyAuditConfig(args, parsed_globals):
2386
2441
  g_param = parse_global_arg(parsed_globals)
2387
2442
 
2388
2443
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -2407,18 +2462,18 @@ def doDeleteParamTemplate(args, parsed_globals):
2407
2462
  endpoint=g_param[OptionsDefine.Endpoint],
2408
2463
  proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
2409
2464
  )
2410
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
2465
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
2411
2466
  if g_param[OptionsDefine.Language]:
2412
2467
  profile.language = g_param[OptionsDefine.Language]
2413
2468
  mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
2414
2469
  client = mod.CdbClient(cred, g_param[OptionsDefine.Region], profile)
2415
2470
  client._sdkVersion += ("_CLI_" + __version__)
2416
2471
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
2417
- model = models.DeleteParamTemplateRequest()
2472
+ model = models.ModifyAuditConfigRequest()
2418
2473
  model.from_json_string(json.dumps(args))
2419
2474
  start_time = time.time()
2420
2475
  while True:
2421
- rsp = client.DeleteParamTemplate(model)
2476
+ rsp = client.ModifyAuditConfig(model)
2422
2477
  result = rsp.to_json_string()
2423
2478
  try:
2424
2479
  json_obj = json.loads(result)
@@ -2437,7 +2492,7 @@ def doDeleteParamTemplate(args, parsed_globals):
2437
2492
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
2438
2493
 
2439
2494
 
2440
- def doDescribeBackups(args, parsed_globals):
2495
+ def doModifyInstancePasswordComplexity(args, parsed_globals):
2441
2496
  g_param = parse_global_arg(parsed_globals)
2442
2497
 
2443
2498
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -2462,18 +2517,18 @@ def doDescribeBackups(args, parsed_globals):
2462
2517
  endpoint=g_param[OptionsDefine.Endpoint],
2463
2518
  proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
2464
2519
  )
2465
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
2520
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
2466
2521
  if g_param[OptionsDefine.Language]:
2467
2522
  profile.language = g_param[OptionsDefine.Language]
2468
2523
  mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
2469
2524
  client = mod.CdbClient(cred, g_param[OptionsDefine.Region], profile)
2470
2525
  client._sdkVersion += ("_CLI_" + __version__)
2471
2526
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
2472
- model = models.DescribeBackupsRequest()
2527
+ model = models.ModifyInstancePasswordComplexityRequest()
2473
2528
  model.from_json_string(json.dumps(args))
2474
2529
  start_time = time.time()
2475
2530
  while True:
2476
- rsp = client.DescribeBackups(model)
2531
+ rsp = client.ModifyInstancePasswordComplexity(model)
2477
2532
  result = rsp.to_json_string()
2478
2533
  try:
2479
2534
  json_obj = json.loads(result)
@@ -2492,7 +2547,7 @@ def doDescribeBackups(args, parsed_globals):
2492
2547
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
2493
2548
 
2494
2549
 
2495
- def doCreateParamTemplate(args, parsed_globals):
2550
+ def doModifyTimeWindow(args, parsed_globals):
2496
2551
  g_param = parse_global_arg(parsed_globals)
2497
2552
 
2498
2553
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -2517,18 +2572,18 @@ def doCreateParamTemplate(args, parsed_globals):
2517
2572
  endpoint=g_param[OptionsDefine.Endpoint],
2518
2573
  proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
2519
2574
  )
2520
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
2575
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
2521
2576
  if g_param[OptionsDefine.Language]:
2522
2577
  profile.language = g_param[OptionsDefine.Language]
2523
2578
  mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
2524
2579
  client = mod.CdbClient(cred, g_param[OptionsDefine.Region], profile)
2525
2580
  client._sdkVersion += ("_CLI_" + __version__)
2526
2581
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
2527
- model = models.CreateParamTemplateRequest()
2582
+ model = models.ModifyTimeWindowRequest()
2528
2583
  model.from_json_string(json.dumps(args))
2529
2584
  start_time = time.time()
2530
2585
  while True:
2531
- rsp = client.CreateParamTemplate(model)
2586
+ rsp = client.ModifyTimeWindow(model)
2532
2587
  result = rsp.to_json_string()
2533
2588
  try:
2534
2589
  json_obj = json.loads(result)
@@ -2547,7 +2602,7 @@ def doCreateParamTemplate(args, parsed_globals):
2547
2602
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
2548
2603
 
2549
2604
 
2550
- def doCreateDBInstanceHour(args, parsed_globals):
2605
+ def doSwitchForUpgrade(args, parsed_globals):
2551
2606
  g_param = parse_global_arg(parsed_globals)
2552
2607
 
2553
2608
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -2572,18 +2627,18 @@ def doCreateDBInstanceHour(args, parsed_globals):
2572
2627
  endpoint=g_param[OptionsDefine.Endpoint],
2573
2628
  proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
2574
2629
  )
2575
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
2630
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
2576
2631
  if g_param[OptionsDefine.Language]:
2577
2632
  profile.language = g_param[OptionsDefine.Language]
2578
2633
  mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
2579
2634
  client = mod.CdbClient(cred, g_param[OptionsDefine.Region], profile)
2580
2635
  client._sdkVersion += ("_CLI_" + __version__)
2581
2636
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
2582
- model = models.CreateDBInstanceHourRequest()
2637
+ model = models.SwitchForUpgradeRequest()
2583
2638
  model.from_json_string(json.dumps(args))
2584
2639
  start_time = time.time()
2585
2640
  while True:
2586
- rsp = client.CreateDBInstanceHour(model)
2641
+ rsp = client.SwitchForUpgrade(model)
2587
2642
  result = rsp.to_json_string()
2588
2643
  try:
2589
2644
  json_obj = json.loads(result)
@@ -2602,7 +2657,7 @@ def doCreateDBInstanceHour(args, parsed_globals):
2602
2657
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
2603
2658
 
2604
2659
 
2605
- def doAddTimeWindow(args, parsed_globals):
2660
+ def doDeleteAuditRuleTemplates(args, parsed_globals):
2606
2661
  g_param = parse_global_arg(parsed_globals)
2607
2662
 
2608
2663
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -2627,18 +2682,18 @@ def doAddTimeWindow(args, parsed_globals):
2627
2682
  endpoint=g_param[OptionsDefine.Endpoint],
2628
2683
  proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
2629
2684
  )
2630
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
2685
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
2631
2686
  if g_param[OptionsDefine.Language]:
2632
2687
  profile.language = g_param[OptionsDefine.Language]
2633
2688
  mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
2634
2689
  client = mod.CdbClient(cred, g_param[OptionsDefine.Region], profile)
2635
2690
  client._sdkVersion += ("_CLI_" + __version__)
2636
2691
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
2637
- model = models.AddTimeWindowRequest()
2692
+ model = models.DeleteAuditRuleTemplatesRequest()
2638
2693
  model.from_json_string(json.dumps(args))
2639
2694
  start_time = time.time()
2640
2695
  while True:
2641
- rsp = client.AddTimeWindow(model)
2696
+ rsp = client.DeleteAuditRuleTemplates(model)
2642
2697
  result = rsp.to_json_string()
2643
2698
  try:
2644
2699
  json_obj = json.loads(result)
@@ -2657,7 +2712,7 @@ def doAddTimeWindow(args, parsed_globals):
2657
2712
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
2658
2713
 
2659
2714
 
2660
- def doDescribeProxySupportParam(args, parsed_globals):
2715
+ def doDescribeBackups(args, parsed_globals):
2661
2716
  g_param = parse_global_arg(parsed_globals)
2662
2717
 
2663
2718
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -2682,18 +2737,18 @@ def doDescribeProxySupportParam(args, parsed_globals):
2682
2737
  endpoint=g_param[OptionsDefine.Endpoint],
2683
2738
  proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
2684
2739
  )
2685
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
2740
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
2686
2741
  if g_param[OptionsDefine.Language]:
2687
2742
  profile.language = g_param[OptionsDefine.Language]
2688
2743
  mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
2689
2744
  client = mod.CdbClient(cred, g_param[OptionsDefine.Region], profile)
2690
2745
  client._sdkVersion += ("_CLI_" + __version__)
2691
2746
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
2692
- model = models.DescribeProxySupportParamRequest()
2747
+ model = models.DescribeBackupsRequest()
2693
2748
  model.from_json_string(json.dumps(args))
2694
2749
  start_time = time.time()
2695
2750
  while True:
2696
- rsp = client.DescribeProxySupportParam(model)
2751
+ rsp = client.DescribeBackups(model)
2697
2752
  result = rsp.to_json_string()
2698
2753
  try:
2699
2754
  json_obj = json.loads(result)
@@ -2712,7 +2767,7 @@ def doDescribeProxySupportParam(args, parsed_globals):
2712
2767
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
2713
2768
 
2714
2769
 
2715
- def doDescribeLocalBinlogConfig(args, parsed_globals):
2770
+ def doDescribeAuditInstanceList(args, parsed_globals):
2716
2771
  g_param = parse_global_arg(parsed_globals)
2717
2772
 
2718
2773
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -2737,18 +2792,18 @@ def doDescribeLocalBinlogConfig(args, parsed_globals):
2737
2792
  endpoint=g_param[OptionsDefine.Endpoint],
2738
2793
  proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
2739
2794
  )
2740
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
2795
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
2741
2796
  if g_param[OptionsDefine.Language]:
2742
2797
  profile.language = g_param[OptionsDefine.Language]
2743
2798
  mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
2744
2799
  client = mod.CdbClient(cred, g_param[OptionsDefine.Region], profile)
2745
2800
  client._sdkVersion += ("_CLI_" + __version__)
2746
2801
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
2747
- model = models.DescribeLocalBinlogConfigRequest()
2802
+ model = models.DescribeAuditInstanceListRequest()
2748
2803
  model.from_json_string(json.dumps(args))
2749
2804
  start_time = time.time()
2750
2805
  while True:
2751
- rsp = client.DescribeLocalBinlogConfig(model)
2806
+ rsp = client.DescribeAuditInstanceList(model)
2752
2807
  result = rsp.to_json_string()
2753
2808
  try:
2754
2809
  json_obj = json.loads(result)
@@ -2767,7 +2822,7 @@ def doDescribeLocalBinlogConfig(args, parsed_globals):
2767
2822
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
2768
2823
 
2769
2824
 
2770
- def doCreateBackup(args, parsed_globals):
2825
+ def doCreateParamTemplate(args, parsed_globals):
2771
2826
  g_param = parse_global_arg(parsed_globals)
2772
2827
 
2773
2828
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -2792,18 +2847,18 @@ def doCreateBackup(args, parsed_globals):
2792
2847
  endpoint=g_param[OptionsDefine.Endpoint],
2793
2848
  proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
2794
2849
  )
2795
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
2850
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
2796
2851
  if g_param[OptionsDefine.Language]:
2797
2852
  profile.language = g_param[OptionsDefine.Language]
2798
2853
  mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
2799
2854
  client = mod.CdbClient(cred, g_param[OptionsDefine.Region], profile)
2800
2855
  client._sdkVersion += ("_CLI_" + __version__)
2801
2856
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
2802
- model = models.CreateBackupRequest()
2857
+ model = models.CreateParamTemplateRequest()
2803
2858
  model.from_json_string(json.dumps(args))
2804
2859
  start_time = time.time()
2805
2860
  while True:
2806
- rsp = client.CreateBackup(model)
2861
+ rsp = client.CreateParamTemplate(model)
2807
2862
  result = rsp.to_json_string()
2808
2863
  try:
2809
2864
  json_obj = json.loads(result)
@@ -2822,7 +2877,7 @@ def doCreateBackup(args, parsed_globals):
2822
2877
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
2823
2878
 
2824
2879
 
2825
- def doModifyDBInstanceVipVport(args, parsed_globals):
2880
+ def doCreateDBInstanceHour(args, parsed_globals):
2826
2881
  g_param = parse_global_arg(parsed_globals)
2827
2882
 
2828
2883
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -2847,18 +2902,18 @@ def doModifyDBInstanceVipVport(args, parsed_globals):
2847
2902
  endpoint=g_param[OptionsDefine.Endpoint],
2848
2903
  proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
2849
2904
  )
2850
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
2905
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
2851
2906
  if g_param[OptionsDefine.Language]:
2852
2907
  profile.language = g_param[OptionsDefine.Language]
2853
2908
  mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
2854
2909
  client = mod.CdbClient(cred, g_param[OptionsDefine.Region], profile)
2855
2910
  client._sdkVersion += ("_CLI_" + __version__)
2856
2911
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
2857
- model = models.ModifyDBInstanceVipVportRequest()
2912
+ model = models.CreateDBInstanceHourRequest()
2858
2913
  model.from_json_string(json.dumps(args))
2859
2914
  start_time = time.time()
2860
2915
  while True:
2861
- rsp = client.ModifyDBInstanceVipVport(model)
2916
+ rsp = client.CreateDBInstanceHour(model)
2862
2917
  result = rsp.to_json_string()
2863
2918
  try:
2864
2919
  json_obj = json.loads(result)
@@ -2877,7 +2932,7 @@ def doModifyDBInstanceVipVport(args, parsed_globals):
2877
2932
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
2878
2933
 
2879
2934
 
2880
- def doDescribeDBInstanceConfig(args, parsed_globals):
2935
+ def doAddTimeWindow(args, parsed_globals):
2881
2936
  g_param = parse_global_arg(parsed_globals)
2882
2937
 
2883
2938
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -2902,18 +2957,18 @@ def doDescribeDBInstanceConfig(args, parsed_globals):
2902
2957
  endpoint=g_param[OptionsDefine.Endpoint],
2903
2958
  proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
2904
2959
  )
2905
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
2960
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
2906
2961
  if g_param[OptionsDefine.Language]:
2907
2962
  profile.language = g_param[OptionsDefine.Language]
2908
2963
  mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
2909
2964
  client = mod.CdbClient(cred, g_param[OptionsDefine.Region], profile)
2910
2965
  client._sdkVersion += ("_CLI_" + __version__)
2911
2966
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
2912
- model = models.DescribeDBInstanceConfigRequest()
2967
+ model = models.AddTimeWindowRequest()
2913
2968
  model.from_json_string(json.dumps(args))
2914
2969
  start_time = time.time()
2915
2970
  while True:
2916
- rsp = client.DescribeDBInstanceConfig(model)
2971
+ rsp = client.AddTimeWindow(model)
2917
2972
  result = rsp.to_json_string()
2918
2973
  try:
2919
2974
  json_obj = json.loads(result)
@@ -2932,7 +2987,7 @@ def doDescribeDBInstanceConfig(args, parsed_globals):
2932
2987
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
2933
2988
 
2934
2989
 
2935
- def doCreateCdbProxyAddress(args, parsed_globals):
2990
+ def doDescribeProxySupportParam(args, parsed_globals):
2936
2991
  g_param = parse_global_arg(parsed_globals)
2937
2992
 
2938
2993
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -2957,18 +3012,18 @@ def doCreateCdbProxyAddress(args, parsed_globals):
2957
3012
  endpoint=g_param[OptionsDefine.Endpoint],
2958
3013
  proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
2959
3014
  )
2960
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
3015
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
2961
3016
  if g_param[OptionsDefine.Language]:
2962
3017
  profile.language = g_param[OptionsDefine.Language]
2963
3018
  mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
2964
3019
  client = mod.CdbClient(cred, g_param[OptionsDefine.Region], profile)
2965
3020
  client._sdkVersion += ("_CLI_" + __version__)
2966
3021
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
2967
- model = models.CreateCdbProxyAddressRequest()
3022
+ model = models.DescribeProxySupportParamRequest()
2968
3023
  model.from_json_string(json.dumps(args))
2969
3024
  start_time = time.time()
2970
3025
  while True:
2971
- rsp = client.CreateCdbProxyAddress(model)
3026
+ rsp = client.DescribeProxySupportParam(model)
2972
3027
  result = rsp.to_json_string()
2973
3028
  try:
2974
3029
  json_obj = json.loads(result)
@@ -2987,7 +3042,7 @@ def doCreateCdbProxyAddress(args, parsed_globals):
2987
3042
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
2988
3043
 
2989
3044
 
2990
- def doCreateDatabase(args, parsed_globals):
3045
+ def doDescribeLocalBinlogConfig(args, parsed_globals):
2991
3046
  g_param = parse_global_arg(parsed_globals)
2992
3047
 
2993
3048
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -3012,18 +3067,18 @@ def doCreateDatabase(args, parsed_globals):
3012
3067
  endpoint=g_param[OptionsDefine.Endpoint],
3013
3068
  proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
3014
3069
  )
3015
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
3070
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
3016
3071
  if g_param[OptionsDefine.Language]:
3017
3072
  profile.language = g_param[OptionsDefine.Language]
3018
3073
  mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
3019
3074
  client = mod.CdbClient(cred, g_param[OptionsDefine.Region], profile)
3020
3075
  client._sdkVersion += ("_CLI_" + __version__)
3021
3076
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
3022
- model = models.CreateDatabaseRequest()
3077
+ model = models.DescribeLocalBinlogConfigRequest()
3023
3078
  model.from_json_string(json.dumps(args))
3024
3079
  start_time = time.time()
3025
3080
  while True:
3026
- rsp = client.CreateDatabase(model)
3081
+ rsp = client.DescribeLocalBinlogConfig(model)
3027
3082
  result = rsp.to_json_string()
3028
3083
  try:
3029
3084
  json_obj = json.loads(result)
@@ -3042,7 +3097,7 @@ def doCreateDatabase(args, parsed_globals):
3042
3097
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
3043
3098
 
3044
3099
 
3045
- def doDescribeProjectSecurityGroups(args, parsed_globals):
3100
+ def doCreateBackup(args, parsed_globals):
3046
3101
  g_param = parse_global_arg(parsed_globals)
3047
3102
 
3048
3103
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -3067,18 +3122,18 @@ def doDescribeProjectSecurityGroups(args, parsed_globals):
3067
3122
  endpoint=g_param[OptionsDefine.Endpoint],
3068
3123
  proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
3069
3124
  )
3070
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
3125
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
3071
3126
  if g_param[OptionsDefine.Language]:
3072
3127
  profile.language = g_param[OptionsDefine.Language]
3073
3128
  mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
3074
3129
  client = mod.CdbClient(cred, g_param[OptionsDefine.Region], profile)
3075
3130
  client._sdkVersion += ("_CLI_" + __version__)
3076
3131
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
3077
- model = models.DescribeProjectSecurityGroupsRequest()
3132
+ model = models.CreateBackupRequest()
3078
3133
  model.from_json_string(json.dumps(args))
3079
3134
  start_time = time.time()
3080
3135
  while True:
3081
- rsp = client.DescribeProjectSecurityGroups(model)
3136
+ rsp = client.CreateBackup(model)
3082
3137
  result = rsp.to_json_string()
3083
3138
  try:
3084
3139
  json_obj = json.loads(result)
@@ -3097,7 +3152,7 @@ def doDescribeProjectSecurityGroups(args, parsed_globals):
3097
3152
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
3098
3153
 
3099
3154
 
3100
- def doDescribeSlowLogs(args, parsed_globals):
3155
+ def doModifyDBInstanceVipVport(args, parsed_globals):
3101
3156
  g_param = parse_global_arg(parsed_globals)
3102
3157
 
3103
3158
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -3122,18 +3177,18 @@ def doDescribeSlowLogs(args, parsed_globals):
3122
3177
  endpoint=g_param[OptionsDefine.Endpoint],
3123
3178
  proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
3124
3179
  )
3125
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
3180
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
3126
3181
  if g_param[OptionsDefine.Language]:
3127
3182
  profile.language = g_param[OptionsDefine.Language]
3128
3183
  mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
3129
3184
  client = mod.CdbClient(cred, g_param[OptionsDefine.Region], profile)
3130
3185
  client._sdkVersion += ("_CLI_" + __version__)
3131
3186
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
3132
- model = models.DescribeSlowLogsRequest()
3187
+ model = models.ModifyDBInstanceVipVportRequest()
3133
3188
  model.from_json_string(json.dumps(args))
3134
3189
  start_time = time.time()
3135
3190
  while True:
3136
- rsp = client.DescribeSlowLogs(model)
3191
+ rsp = client.ModifyDBInstanceVipVport(model)
3137
3192
  result = rsp.to_json_string()
3138
3193
  try:
3139
3194
  json_obj = json.loads(result)
@@ -3152,7 +3207,7 @@ def doDescribeSlowLogs(args, parsed_globals):
3152
3207
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
3153
3208
 
3154
3209
 
3155
- def doModifyLocalBinlogConfig(args, parsed_globals):
3210
+ def doDescribeDBInstanceConfig(args, parsed_globals):
3156
3211
  g_param = parse_global_arg(parsed_globals)
3157
3212
 
3158
3213
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -3177,18 +3232,18 @@ def doModifyLocalBinlogConfig(args, parsed_globals):
3177
3232
  endpoint=g_param[OptionsDefine.Endpoint],
3178
3233
  proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
3179
3234
  )
3180
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
3235
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
3181
3236
  if g_param[OptionsDefine.Language]:
3182
3237
  profile.language = g_param[OptionsDefine.Language]
3183
3238
  mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
3184
3239
  client = mod.CdbClient(cred, g_param[OptionsDefine.Region], profile)
3185
3240
  client._sdkVersion += ("_CLI_" + __version__)
3186
3241
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
3187
- model = models.ModifyLocalBinlogConfigRequest()
3242
+ model = models.DescribeDBInstanceConfigRequest()
3188
3243
  model.from_json_string(json.dumps(args))
3189
3244
  start_time = time.time()
3190
3245
  while True:
3191
- rsp = client.ModifyLocalBinlogConfig(model)
3246
+ rsp = client.DescribeDBInstanceConfig(model)
3192
3247
  result = rsp.to_json_string()
3193
3248
  try:
3194
3249
  json_obj = json.loads(result)
@@ -3207,7 +3262,7 @@ def doModifyLocalBinlogConfig(args, parsed_globals):
3207
3262
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
3208
3263
 
3209
3264
 
3210
- def doCreateDBInstance(args, parsed_globals):
3265
+ def doCreateCdbProxyAddress(args, parsed_globals):
3211
3266
  g_param = parse_global_arg(parsed_globals)
3212
3267
 
3213
3268
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -3232,18 +3287,18 @@ def doCreateDBInstance(args, parsed_globals):
3232
3287
  endpoint=g_param[OptionsDefine.Endpoint],
3233
3288
  proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
3234
3289
  )
3235
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
3290
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
3236
3291
  if g_param[OptionsDefine.Language]:
3237
3292
  profile.language = g_param[OptionsDefine.Language]
3238
3293
  mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
3239
3294
  client = mod.CdbClient(cred, g_param[OptionsDefine.Region], profile)
3240
3295
  client._sdkVersion += ("_CLI_" + __version__)
3241
3296
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
3242
- model = models.CreateDBInstanceRequest()
3297
+ model = models.CreateCdbProxyAddressRequest()
3243
3298
  model.from_json_string(json.dumps(args))
3244
3299
  start_time = time.time()
3245
3300
  while True:
3246
- rsp = client.CreateDBInstance(model)
3301
+ rsp = client.CreateCdbProxyAddress(model)
3247
3302
  result = rsp.to_json_string()
3248
3303
  try:
3249
3304
  json_obj = json.loads(result)
@@ -3262,7 +3317,7 @@ def doCreateDBInstance(args, parsed_globals):
3262
3317
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
3263
3318
 
3264
3319
 
3265
- def doModifyParamTemplate(args, parsed_globals):
3320
+ def doDeleteAuditPolicy(args, parsed_globals):
3266
3321
  g_param = parse_global_arg(parsed_globals)
3267
3322
 
3268
3323
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -3287,18 +3342,18 @@ def doModifyParamTemplate(args, parsed_globals):
3287
3342
  endpoint=g_param[OptionsDefine.Endpoint],
3288
3343
  proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
3289
3344
  )
3290
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
3345
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
3291
3346
  if g_param[OptionsDefine.Language]:
3292
3347
  profile.language = g_param[OptionsDefine.Language]
3293
3348
  mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
3294
3349
  client = mod.CdbClient(cred, g_param[OptionsDefine.Region], profile)
3295
3350
  client._sdkVersion += ("_CLI_" + __version__)
3296
3351
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
3297
- model = models.ModifyParamTemplateRequest()
3352
+ model = models.DeleteAuditPolicyRequest()
3298
3353
  model.from_json_string(json.dumps(args))
3299
3354
  start_time = time.time()
3300
3355
  while True:
3301
- rsp = client.ModifyParamTemplate(model)
3356
+ rsp = client.DeleteAuditPolicy(model)
3302
3357
  result = rsp.to_json_string()
3303
3358
  try:
3304
3359
  json_obj = json.loads(result)
@@ -3317,7 +3372,7 @@ def doModifyParamTemplate(args, parsed_globals):
3317
3372
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
3318
3373
 
3319
3374
 
3320
- def doDescribeInstanceParams(args, parsed_globals):
3375
+ def doDescribeProjectSecurityGroups(args, parsed_globals):
3321
3376
  g_param = parse_global_arg(parsed_globals)
3322
3377
 
3323
3378
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -3342,18 +3397,18 @@ def doDescribeInstanceParams(args, parsed_globals):
3342
3397
  endpoint=g_param[OptionsDefine.Endpoint],
3343
3398
  proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
3344
3399
  )
3345
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
3400
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
3346
3401
  if g_param[OptionsDefine.Language]:
3347
3402
  profile.language = g_param[OptionsDefine.Language]
3348
3403
  mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
3349
3404
  client = mod.CdbClient(cred, g_param[OptionsDefine.Region], profile)
3350
3405
  client._sdkVersion += ("_CLI_" + __version__)
3351
3406
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
3352
- model = models.DescribeInstanceParamsRequest()
3407
+ model = models.DescribeProjectSecurityGroupsRequest()
3353
3408
  model.from_json_string(json.dumps(args))
3354
3409
  start_time = time.time()
3355
3410
  while True:
3356
- rsp = client.DescribeInstanceParams(model)
3411
+ rsp = client.DescribeProjectSecurityGroups(model)
3357
3412
  result = rsp.to_json_string()
3358
3413
  try:
3359
3414
  json_obj = json.loads(result)
@@ -3372,7 +3427,7 @@ def doDescribeInstanceParams(args, parsed_globals):
3372
3427
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
3373
3428
 
3374
3429
 
3375
- def doDescribeBackupEncryptionStatus(args, parsed_globals):
3430
+ def doDescribeSlowLogs(args, parsed_globals):
3376
3431
  g_param = parse_global_arg(parsed_globals)
3377
3432
 
3378
3433
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -3397,18 +3452,18 @@ def doDescribeBackupEncryptionStatus(args, parsed_globals):
3397
3452
  endpoint=g_param[OptionsDefine.Endpoint],
3398
3453
  proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
3399
3454
  )
3400
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
3455
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
3401
3456
  if g_param[OptionsDefine.Language]:
3402
3457
  profile.language = g_param[OptionsDefine.Language]
3403
3458
  mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
3404
3459
  client = mod.CdbClient(cred, g_param[OptionsDefine.Region], profile)
3405
3460
  client._sdkVersion += ("_CLI_" + __version__)
3406
3461
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
3407
- model = models.DescribeBackupEncryptionStatusRequest()
3462
+ model = models.DescribeSlowLogsRequest()
3408
3463
  model.from_json_string(json.dumps(args))
3409
3464
  start_time = time.time()
3410
3465
  while True:
3411
- rsp = client.DescribeBackupEncryptionStatus(model)
3466
+ rsp = client.DescribeSlowLogs(model)
3412
3467
  result = rsp.to_json_string()
3413
3468
  try:
3414
3469
  json_obj = json.loads(result)
@@ -3427,7 +3482,7 @@ def doDescribeBackupEncryptionStatus(args, parsed_globals):
3427
3482
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
3428
3483
 
3429
3484
 
3430
- def doModifyCdbProxyAddressDesc(args, parsed_globals):
3485
+ def doModifyInstanceParam(args, parsed_globals):
3431
3486
  g_param = parse_global_arg(parsed_globals)
3432
3487
 
3433
3488
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -3452,18 +3507,18 @@ def doModifyCdbProxyAddressDesc(args, parsed_globals):
3452
3507
  endpoint=g_param[OptionsDefine.Endpoint],
3453
3508
  proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
3454
3509
  )
3455
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
3510
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
3456
3511
  if g_param[OptionsDefine.Language]:
3457
3512
  profile.language = g_param[OptionsDefine.Language]
3458
3513
  mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
3459
3514
  client = mod.CdbClient(cred, g_param[OptionsDefine.Region], profile)
3460
3515
  client._sdkVersion += ("_CLI_" + __version__)
3461
3516
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
3462
- model = models.ModifyCdbProxyAddressDescRequest()
3517
+ model = models.ModifyInstanceParamRequest()
3463
3518
  model.from_json_string(json.dumps(args))
3464
3519
  start_time = time.time()
3465
3520
  while True:
3466
- rsp = client.ModifyCdbProxyAddressDesc(model)
3521
+ rsp = client.ModifyInstanceParam(model)
3467
3522
  result = rsp.to_json_string()
3468
3523
  try:
3469
3524
  json_obj = json.loads(result)
@@ -3482,7 +3537,7 @@ def doModifyCdbProxyAddressDesc(args, parsed_globals):
3482
3537
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
3483
3538
 
3484
3539
 
3485
- def doStopDBImportJob(args, parsed_globals):
3540
+ def doCreateDBInstance(args, parsed_globals):
3486
3541
  g_param = parse_global_arg(parsed_globals)
3487
3542
 
3488
3543
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -3507,18 +3562,18 @@ def doStopDBImportJob(args, parsed_globals):
3507
3562
  endpoint=g_param[OptionsDefine.Endpoint],
3508
3563
  proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
3509
3564
  )
3510
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
3565
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
3511
3566
  if g_param[OptionsDefine.Language]:
3512
3567
  profile.language = g_param[OptionsDefine.Language]
3513
3568
  mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
3514
3569
  client = mod.CdbClient(cred, g_param[OptionsDefine.Region], profile)
3515
3570
  client._sdkVersion += ("_CLI_" + __version__)
3516
3571
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
3517
- model = models.StopDBImportJobRequest()
3572
+ model = models.CreateDBInstanceRequest()
3518
3573
  model.from_json_string(json.dumps(args))
3519
3574
  start_time = time.time()
3520
3575
  while True:
3521
- rsp = client.StopDBImportJob(model)
3576
+ rsp = client.CreateDBInstance(model)
3522
3577
  result = rsp.to_json_string()
3523
3578
  try:
3524
3579
  json_obj = json.loads(result)
@@ -3537,7 +3592,7 @@ def doStopDBImportJob(args, parsed_globals):
3537
3592
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
3538
3593
 
3539
3594
 
3540
- def doAnalyzeAuditLogs(args, parsed_globals):
3595
+ def doModifyParamTemplate(args, parsed_globals):
3541
3596
  g_param = parse_global_arg(parsed_globals)
3542
3597
 
3543
3598
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -3562,18 +3617,18 @@ def doAnalyzeAuditLogs(args, parsed_globals):
3562
3617
  endpoint=g_param[OptionsDefine.Endpoint],
3563
3618
  proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
3564
3619
  )
3565
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
3620
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
3566
3621
  if g_param[OptionsDefine.Language]:
3567
3622
  profile.language = g_param[OptionsDefine.Language]
3568
3623
  mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
3569
3624
  client = mod.CdbClient(cred, g_param[OptionsDefine.Region], profile)
3570
3625
  client._sdkVersion += ("_CLI_" + __version__)
3571
3626
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
3572
- model = models.AnalyzeAuditLogsRequest()
3627
+ model = models.ModifyParamTemplateRequest()
3573
3628
  model.from_json_string(json.dumps(args))
3574
3629
  start_time = time.time()
3575
3630
  while True:
3576
- rsp = client.AnalyzeAuditLogs(model)
3631
+ rsp = client.ModifyParamTemplate(model)
3577
3632
  result = rsp.to_json_string()
3578
3633
  try:
3579
3634
  json_obj = json.loads(result)
@@ -3592,7 +3647,7 @@ def doAnalyzeAuditLogs(args, parsed_globals):
3592
3647
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
3593
3648
 
3594
3649
 
3595
- def doCreateAccounts(args, parsed_globals):
3650
+ def doDescribeInstanceParams(args, parsed_globals):
3596
3651
  g_param = parse_global_arg(parsed_globals)
3597
3652
 
3598
3653
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -3617,18 +3672,18 @@ def doCreateAccounts(args, parsed_globals):
3617
3672
  endpoint=g_param[OptionsDefine.Endpoint],
3618
3673
  proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
3619
3674
  )
3620
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
3675
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
3621
3676
  if g_param[OptionsDefine.Language]:
3622
3677
  profile.language = g_param[OptionsDefine.Language]
3623
3678
  mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
3624
3679
  client = mod.CdbClient(cred, g_param[OptionsDefine.Region], profile)
3625
3680
  client._sdkVersion += ("_CLI_" + __version__)
3626
3681
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
3627
- model = models.CreateAccountsRequest()
3682
+ model = models.DescribeInstanceParamsRequest()
3628
3683
  model.from_json_string(json.dumps(args))
3629
3684
  start_time = time.time()
3630
3685
  while True:
3631
- rsp = client.CreateAccounts(model)
3686
+ rsp = client.DescribeInstanceParams(model)
3632
3687
  result = rsp.to_json_string()
3633
3688
  try:
3634
3689
  json_obj = json.loads(result)
@@ -3647,7 +3702,7 @@ def doCreateAccounts(args, parsed_globals):
3647
3702
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
3648
3703
 
3649
3704
 
3650
- def doAdjustCdbProxy(args, parsed_globals):
3705
+ def doDescribeBackupEncryptionStatus(args, parsed_globals):
3651
3706
  g_param = parse_global_arg(parsed_globals)
3652
3707
 
3653
3708
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -3672,18 +3727,18 @@ def doAdjustCdbProxy(args, parsed_globals):
3672
3727
  endpoint=g_param[OptionsDefine.Endpoint],
3673
3728
  proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
3674
3729
  )
3675
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
3730
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
3676
3731
  if g_param[OptionsDefine.Language]:
3677
3732
  profile.language = g_param[OptionsDefine.Language]
3678
3733
  mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
3679
3734
  client = mod.CdbClient(cred, g_param[OptionsDefine.Region], profile)
3680
3735
  client._sdkVersion += ("_CLI_" + __version__)
3681
3736
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
3682
- model = models.AdjustCdbProxyRequest()
3737
+ model = models.DescribeBackupEncryptionStatusRequest()
3683
3738
  model.from_json_string(json.dumps(args))
3684
3739
  start_time = time.time()
3685
3740
  while True:
3686
- rsp = client.AdjustCdbProxy(model)
3741
+ rsp = client.DescribeBackupEncryptionStatus(model)
3687
3742
  result = rsp.to_json_string()
3688
3743
  try:
3689
3744
  json_obj = json.loads(result)
@@ -3702,7 +3757,7 @@ def doAdjustCdbProxy(args, parsed_globals):
3702
3757
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
3703
3758
 
3704
3759
 
3705
- def doUpgradeDBInstanceEngineVersion(args, parsed_globals):
3760
+ def doModifyCdbProxyAddressDesc(args, parsed_globals):
3706
3761
  g_param = parse_global_arg(parsed_globals)
3707
3762
 
3708
3763
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -3727,18 +3782,18 @@ def doUpgradeDBInstanceEngineVersion(args, parsed_globals):
3727
3782
  endpoint=g_param[OptionsDefine.Endpoint],
3728
3783
  proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
3729
3784
  )
3730
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
3785
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
3731
3786
  if g_param[OptionsDefine.Language]:
3732
3787
  profile.language = g_param[OptionsDefine.Language]
3733
3788
  mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
3734
3789
  client = mod.CdbClient(cred, g_param[OptionsDefine.Region], profile)
3735
3790
  client._sdkVersion += ("_CLI_" + __version__)
3736
3791
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
3737
- model = models.UpgradeDBInstanceEngineVersionRequest()
3792
+ model = models.ModifyCdbProxyAddressDescRequest()
3738
3793
  model.from_json_string(json.dumps(args))
3739
3794
  start_time = time.time()
3740
3795
  while True:
3741
- rsp = client.UpgradeDBInstanceEngineVersion(model)
3796
+ rsp = client.ModifyCdbProxyAddressDesc(model)
3742
3797
  result = rsp.to_json_string()
3743
3798
  try:
3744
3799
  json_obj = json.loads(result)
@@ -3757,7 +3812,7 @@ def doUpgradeDBInstanceEngineVersion(args, parsed_globals):
3757
3812
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
3758
3813
 
3759
3814
 
3760
- def doDescribeBackupDecryptionKey(args, parsed_globals):
3815
+ def doStopDBImportJob(args, parsed_globals):
3761
3816
  g_param = parse_global_arg(parsed_globals)
3762
3817
 
3763
3818
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -3782,18 +3837,18 @@ def doDescribeBackupDecryptionKey(args, parsed_globals):
3782
3837
  endpoint=g_param[OptionsDefine.Endpoint],
3783
3838
  proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
3784
3839
  )
3785
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
3840
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
3786
3841
  if g_param[OptionsDefine.Language]:
3787
3842
  profile.language = g_param[OptionsDefine.Language]
3788
3843
  mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
3789
3844
  client = mod.CdbClient(cred, g_param[OptionsDefine.Region], profile)
3790
3845
  client._sdkVersion += ("_CLI_" + __version__)
3791
3846
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
3792
- model = models.DescribeBackupDecryptionKeyRequest()
3847
+ model = models.StopDBImportJobRequest()
3793
3848
  model.from_json_string(json.dumps(args))
3794
3849
  start_time = time.time()
3795
3850
  while True:
3796
- rsp = client.DescribeBackupDecryptionKey(model)
3851
+ rsp = client.StopDBImportJob(model)
3797
3852
  result = rsp.to_json_string()
3798
3853
  try:
3799
3854
  json_obj = json.loads(result)
@@ -3812,7 +3867,612 @@ def doDescribeBackupDecryptionKey(args, parsed_globals):
3812
3867
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
3813
3868
 
3814
3869
 
3815
- def doDescribeInstanceParamRecords(args, parsed_globals):
3870
+ def doAnalyzeAuditLogs(args, parsed_globals):
3871
+ g_param = parse_global_arg(parsed_globals)
3872
+
3873
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
3874
+ cred = credential.CVMRoleCredential()
3875
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
3876
+ cred = credential.STSAssumeRoleCredential(
3877
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
3878
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
3879
+ )
3880
+ elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
3881
+ and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
3882
+ and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
3883
+ and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
3884
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
3885
+ else:
3886
+ cred = credential.Credential(
3887
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
3888
+ )
3889
+ http_profile = HttpProfile(
3890
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
3891
+ reqMethod="POST",
3892
+ endpoint=g_param[OptionsDefine.Endpoint],
3893
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
3894
+ )
3895
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
3896
+ if g_param[OptionsDefine.Language]:
3897
+ profile.language = g_param[OptionsDefine.Language]
3898
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
3899
+ client = mod.CdbClient(cred, g_param[OptionsDefine.Region], profile)
3900
+ client._sdkVersion += ("_CLI_" + __version__)
3901
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
3902
+ model = models.AnalyzeAuditLogsRequest()
3903
+ model.from_json_string(json.dumps(args))
3904
+ start_time = time.time()
3905
+ while True:
3906
+ rsp = client.AnalyzeAuditLogs(model)
3907
+ result = rsp.to_json_string()
3908
+ try:
3909
+ json_obj = json.loads(result)
3910
+ except TypeError as e:
3911
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
3912
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
3913
+ break
3914
+ cur_time = time.time()
3915
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
3916
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
3917
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
3918
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
3919
+ else:
3920
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
3921
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
3922
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
3923
+
3924
+
3925
+ def doCreateAccounts(args, parsed_globals):
3926
+ g_param = parse_global_arg(parsed_globals)
3927
+
3928
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
3929
+ cred = credential.CVMRoleCredential()
3930
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
3931
+ cred = credential.STSAssumeRoleCredential(
3932
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
3933
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
3934
+ )
3935
+ elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
3936
+ and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
3937
+ and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
3938
+ and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
3939
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
3940
+ else:
3941
+ cred = credential.Credential(
3942
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
3943
+ )
3944
+ http_profile = HttpProfile(
3945
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
3946
+ reqMethod="POST",
3947
+ endpoint=g_param[OptionsDefine.Endpoint],
3948
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
3949
+ )
3950
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
3951
+ if g_param[OptionsDefine.Language]:
3952
+ profile.language = g_param[OptionsDefine.Language]
3953
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
3954
+ client = mod.CdbClient(cred, g_param[OptionsDefine.Region], profile)
3955
+ client._sdkVersion += ("_CLI_" + __version__)
3956
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
3957
+ model = models.CreateAccountsRequest()
3958
+ model.from_json_string(json.dumps(args))
3959
+ start_time = time.time()
3960
+ while True:
3961
+ rsp = client.CreateAccounts(model)
3962
+ result = rsp.to_json_string()
3963
+ try:
3964
+ json_obj = json.loads(result)
3965
+ except TypeError as e:
3966
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
3967
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
3968
+ break
3969
+ cur_time = time.time()
3970
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
3971
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
3972
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
3973
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
3974
+ else:
3975
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
3976
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
3977
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
3978
+
3979
+
3980
+ def doAdjustCdbProxy(args, parsed_globals):
3981
+ g_param = parse_global_arg(parsed_globals)
3982
+
3983
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
3984
+ cred = credential.CVMRoleCredential()
3985
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
3986
+ cred = credential.STSAssumeRoleCredential(
3987
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
3988
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
3989
+ )
3990
+ elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
3991
+ and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
3992
+ and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
3993
+ and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
3994
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
3995
+ else:
3996
+ cred = credential.Credential(
3997
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
3998
+ )
3999
+ http_profile = HttpProfile(
4000
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
4001
+ reqMethod="POST",
4002
+ endpoint=g_param[OptionsDefine.Endpoint],
4003
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
4004
+ )
4005
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
4006
+ if g_param[OptionsDefine.Language]:
4007
+ profile.language = g_param[OptionsDefine.Language]
4008
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
4009
+ client = mod.CdbClient(cred, g_param[OptionsDefine.Region], profile)
4010
+ client._sdkVersion += ("_CLI_" + __version__)
4011
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
4012
+ model = models.AdjustCdbProxyRequest()
4013
+ model.from_json_string(json.dumps(args))
4014
+ start_time = time.time()
4015
+ while True:
4016
+ rsp = client.AdjustCdbProxy(model)
4017
+ result = rsp.to_json_string()
4018
+ try:
4019
+ json_obj = json.loads(result)
4020
+ except TypeError as e:
4021
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
4022
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
4023
+ break
4024
+ cur_time = time.time()
4025
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
4026
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
4027
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
4028
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
4029
+ else:
4030
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
4031
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
4032
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
4033
+
4034
+
4035
+ def doUpgradeDBInstanceEngineVersion(args, parsed_globals):
4036
+ g_param = parse_global_arg(parsed_globals)
4037
+
4038
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
4039
+ cred = credential.CVMRoleCredential()
4040
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
4041
+ cred = credential.STSAssumeRoleCredential(
4042
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
4043
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
4044
+ )
4045
+ elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
4046
+ and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
4047
+ and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
4048
+ and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
4049
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
4050
+ else:
4051
+ cred = credential.Credential(
4052
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
4053
+ )
4054
+ http_profile = HttpProfile(
4055
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
4056
+ reqMethod="POST",
4057
+ endpoint=g_param[OptionsDefine.Endpoint],
4058
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
4059
+ )
4060
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
4061
+ if g_param[OptionsDefine.Language]:
4062
+ profile.language = g_param[OptionsDefine.Language]
4063
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
4064
+ client = mod.CdbClient(cred, g_param[OptionsDefine.Region], profile)
4065
+ client._sdkVersion += ("_CLI_" + __version__)
4066
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
4067
+ model = models.UpgradeDBInstanceEngineVersionRequest()
4068
+ model.from_json_string(json.dumps(args))
4069
+ start_time = time.time()
4070
+ while True:
4071
+ rsp = client.UpgradeDBInstanceEngineVersion(model)
4072
+ result = rsp.to_json_string()
4073
+ try:
4074
+ json_obj = json.loads(result)
4075
+ except TypeError as e:
4076
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
4077
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
4078
+ break
4079
+ cur_time = time.time()
4080
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
4081
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
4082
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
4083
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
4084
+ else:
4085
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
4086
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
4087
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
4088
+
4089
+
4090
+ def doDescribeAuditLogFiles(args, parsed_globals):
4091
+ g_param = parse_global_arg(parsed_globals)
4092
+
4093
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
4094
+ cred = credential.CVMRoleCredential()
4095
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
4096
+ cred = credential.STSAssumeRoleCredential(
4097
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
4098
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
4099
+ )
4100
+ elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
4101
+ and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
4102
+ and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
4103
+ and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
4104
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
4105
+ else:
4106
+ cred = credential.Credential(
4107
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
4108
+ )
4109
+ http_profile = HttpProfile(
4110
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
4111
+ reqMethod="POST",
4112
+ endpoint=g_param[OptionsDefine.Endpoint],
4113
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
4114
+ )
4115
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
4116
+ if g_param[OptionsDefine.Language]:
4117
+ profile.language = g_param[OptionsDefine.Language]
4118
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
4119
+ client = mod.CdbClient(cred, g_param[OptionsDefine.Region], profile)
4120
+ client._sdkVersion += ("_CLI_" + __version__)
4121
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
4122
+ model = models.DescribeAuditLogFilesRequest()
4123
+ model.from_json_string(json.dumps(args))
4124
+ start_time = time.time()
4125
+ while True:
4126
+ rsp = client.DescribeAuditLogFiles(model)
4127
+ result = rsp.to_json_string()
4128
+ try:
4129
+ json_obj = json.loads(result)
4130
+ except TypeError as e:
4131
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
4132
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
4133
+ break
4134
+ cur_time = time.time()
4135
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
4136
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
4137
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
4138
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
4139
+ else:
4140
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
4141
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
4142
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
4143
+
4144
+
4145
+ def doDescribeBackupDecryptionKey(args, parsed_globals):
4146
+ g_param = parse_global_arg(parsed_globals)
4147
+
4148
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
4149
+ cred = credential.CVMRoleCredential()
4150
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
4151
+ cred = credential.STSAssumeRoleCredential(
4152
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
4153
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
4154
+ )
4155
+ elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
4156
+ and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
4157
+ and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
4158
+ and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
4159
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
4160
+ else:
4161
+ cred = credential.Credential(
4162
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
4163
+ )
4164
+ http_profile = HttpProfile(
4165
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
4166
+ reqMethod="POST",
4167
+ endpoint=g_param[OptionsDefine.Endpoint],
4168
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
4169
+ )
4170
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
4171
+ if g_param[OptionsDefine.Language]:
4172
+ profile.language = g_param[OptionsDefine.Language]
4173
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
4174
+ client = mod.CdbClient(cred, g_param[OptionsDefine.Region], profile)
4175
+ client._sdkVersion += ("_CLI_" + __version__)
4176
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
4177
+ model = models.DescribeBackupDecryptionKeyRequest()
4178
+ model.from_json_string(json.dumps(args))
4179
+ start_time = time.time()
4180
+ while True:
4181
+ rsp = client.DescribeBackupDecryptionKey(model)
4182
+ result = rsp.to_json_string()
4183
+ try:
4184
+ json_obj = json.loads(result)
4185
+ except TypeError as e:
4186
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
4187
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
4188
+ break
4189
+ cur_time = time.time()
4190
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
4191
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
4192
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
4193
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
4194
+ else:
4195
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
4196
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
4197
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
4198
+
4199
+
4200
+ def doDescribeInstanceParamRecords(args, parsed_globals):
4201
+ g_param = parse_global_arg(parsed_globals)
4202
+
4203
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
4204
+ cred = credential.CVMRoleCredential()
4205
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
4206
+ cred = credential.STSAssumeRoleCredential(
4207
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
4208
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
4209
+ )
4210
+ elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
4211
+ and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
4212
+ and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
4213
+ and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
4214
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
4215
+ else:
4216
+ cred = credential.Credential(
4217
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
4218
+ )
4219
+ http_profile = HttpProfile(
4220
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
4221
+ reqMethod="POST",
4222
+ endpoint=g_param[OptionsDefine.Endpoint],
4223
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
4224
+ )
4225
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
4226
+ if g_param[OptionsDefine.Language]:
4227
+ profile.language = g_param[OptionsDefine.Language]
4228
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
4229
+ client = mod.CdbClient(cred, g_param[OptionsDefine.Region], profile)
4230
+ client._sdkVersion += ("_CLI_" + __version__)
4231
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
4232
+ model = models.DescribeInstanceParamRecordsRequest()
4233
+ model.from_json_string(json.dumps(args))
4234
+ start_time = time.time()
4235
+ while True:
4236
+ rsp = client.DescribeInstanceParamRecords(model)
4237
+ result = rsp.to_json_string()
4238
+ try:
4239
+ json_obj = json.loads(result)
4240
+ except TypeError as e:
4241
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
4242
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
4243
+ break
4244
+ cur_time = time.time()
4245
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
4246
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
4247
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
4248
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
4249
+ else:
4250
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
4251
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
4252
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
4253
+
4254
+
4255
+ def doDescribeBackupSummaries(args, parsed_globals):
4256
+ g_param = parse_global_arg(parsed_globals)
4257
+
4258
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
4259
+ cred = credential.CVMRoleCredential()
4260
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
4261
+ cred = credential.STSAssumeRoleCredential(
4262
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
4263
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
4264
+ )
4265
+ elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
4266
+ and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
4267
+ and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
4268
+ and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
4269
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
4270
+ else:
4271
+ cred = credential.Credential(
4272
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
4273
+ )
4274
+ http_profile = HttpProfile(
4275
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
4276
+ reqMethod="POST",
4277
+ endpoint=g_param[OptionsDefine.Endpoint],
4278
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
4279
+ )
4280
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
4281
+ if g_param[OptionsDefine.Language]:
4282
+ profile.language = g_param[OptionsDefine.Language]
4283
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
4284
+ client = mod.CdbClient(cred, g_param[OptionsDefine.Region], profile)
4285
+ client._sdkVersion += ("_CLI_" + __version__)
4286
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
4287
+ model = models.DescribeBackupSummariesRequest()
4288
+ model.from_json_string(json.dumps(args))
4289
+ start_time = time.time()
4290
+ while True:
4291
+ rsp = client.DescribeBackupSummaries(model)
4292
+ result = rsp.to_json_string()
4293
+ try:
4294
+ json_obj = json.loads(result)
4295
+ except TypeError as e:
4296
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
4297
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
4298
+ break
4299
+ cur_time = time.time()
4300
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
4301
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
4302
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
4303
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
4304
+ else:
4305
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
4306
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
4307
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
4308
+
4309
+
4310
+ def doDescribeParamTemplateInfo(args, parsed_globals):
4311
+ g_param = parse_global_arg(parsed_globals)
4312
+
4313
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
4314
+ cred = credential.CVMRoleCredential()
4315
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
4316
+ cred = credential.STSAssumeRoleCredential(
4317
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
4318
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
4319
+ )
4320
+ elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
4321
+ and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
4322
+ and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
4323
+ and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
4324
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
4325
+ else:
4326
+ cred = credential.Credential(
4327
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
4328
+ )
4329
+ http_profile = HttpProfile(
4330
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
4331
+ reqMethod="POST",
4332
+ endpoint=g_param[OptionsDefine.Endpoint],
4333
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
4334
+ )
4335
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
4336
+ if g_param[OptionsDefine.Language]:
4337
+ profile.language = g_param[OptionsDefine.Language]
4338
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
4339
+ client = mod.CdbClient(cred, g_param[OptionsDefine.Region], profile)
4340
+ client._sdkVersion += ("_CLI_" + __version__)
4341
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
4342
+ model = models.DescribeParamTemplateInfoRequest()
4343
+ model.from_json_string(json.dumps(args))
4344
+ start_time = time.time()
4345
+ while True:
4346
+ rsp = client.DescribeParamTemplateInfo(model)
4347
+ result = rsp.to_json_string()
4348
+ try:
4349
+ json_obj = json.loads(result)
4350
+ except TypeError as e:
4351
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
4352
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
4353
+ break
4354
+ cur_time = time.time()
4355
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
4356
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
4357
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
4358
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
4359
+ else:
4360
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
4361
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
4362
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
4363
+
4364
+
4365
+ def doDescribeBinlogBackupOverview(args, parsed_globals):
4366
+ g_param = parse_global_arg(parsed_globals)
4367
+
4368
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
4369
+ cred = credential.CVMRoleCredential()
4370
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
4371
+ cred = credential.STSAssumeRoleCredential(
4372
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
4373
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
4374
+ )
4375
+ elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
4376
+ and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
4377
+ and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
4378
+ and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
4379
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
4380
+ else:
4381
+ cred = credential.Credential(
4382
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
4383
+ )
4384
+ http_profile = HttpProfile(
4385
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
4386
+ reqMethod="POST",
4387
+ endpoint=g_param[OptionsDefine.Endpoint],
4388
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
4389
+ )
4390
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
4391
+ if g_param[OptionsDefine.Language]:
4392
+ profile.language = g_param[OptionsDefine.Language]
4393
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
4394
+ client = mod.CdbClient(cred, g_param[OptionsDefine.Region], profile)
4395
+ client._sdkVersion += ("_CLI_" + __version__)
4396
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
4397
+ model = models.DescribeBinlogBackupOverviewRequest()
4398
+ model.from_json_string(json.dumps(args))
4399
+ start_time = time.time()
4400
+ while True:
4401
+ rsp = client.DescribeBinlogBackupOverview(model)
4402
+ result = rsp.to_json_string()
4403
+ try:
4404
+ json_obj = json.loads(result)
4405
+ except TypeError as e:
4406
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
4407
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
4408
+ break
4409
+ cur_time = time.time()
4410
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
4411
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
4412
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
4413
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
4414
+ else:
4415
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
4416
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
4417
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
4418
+
4419
+
4420
+ def doSwitchDrInstanceToMaster(args, parsed_globals):
4421
+ g_param = parse_global_arg(parsed_globals)
4422
+
4423
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
4424
+ cred = credential.CVMRoleCredential()
4425
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
4426
+ cred = credential.STSAssumeRoleCredential(
4427
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
4428
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
4429
+ )
4430
+ elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
4431
+ and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
4432
+ and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
4433
+ and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
4434
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
4435
+ else:
4436
+ cred = credential.Credential(
4437
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
4438
+ )
4439
+ http_profile = HttpProfile(
4440
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
4441
+ reqMethod="POST",
4442
+ endpoint=g_param[OptionsDefine.Endpoint],
4443
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
4444
+ )
4445
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
4446
+ if g_param[OptionsDefine.Language]:
4447
+ profile.language = g_param[OptionsDefine.Language]
4448
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
4449
+ client = mod.CdbClient(cred, g_param[OptionsDefine.Region], profile)
4450
+ client._sdkVersion += ("_CLI_" + __version__)
4451
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
4452
+ model = models.SwitchDrInstanceToMasterRequest()
4453
+ model.from_json_string(json.dumps(args))
4454
+ start_time = time.time()
4455
+ while True:
4456
+ rsp = client.SwitchDrInstanceToMaster(model)
4457
+ result = rsp.to_json_string()
4458
+ try:
4459
+ json_obj = json.loads(result)
4460
+ except TypeError as e:
4461
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
4462
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
4463
+ break
4464
+ cur_time = time.time()
4465
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
4466
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
4467
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
4468
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
4469
+ else:
4470
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
4471
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
4472
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
4473
+
4474
+
4475
+ def doDeleteAccounts(args, parsed_globals):
3816
4476
  g_param = parse_global_arg(parsed_globals)
3817
4477
 
3818
4478
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -3837,18 +4497,18 @@ def doDescribeInstanceParamRecords(args, parsed_globals):
3837
4497
  endpoint=g_param[OptionsDefine.Endpoint],
3838
4498
  proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
3839
4499
  )
3840
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
4500
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
3841
4501
  if g_param[OptionsDefine.Language]:
3842
4502
  profile.language = g_param[OptionsDefine.Language]
3843
4503
  mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
3844
4504
  client = mod.CdbClient(cred, g_param[OptionsDefine.Region], profile)
3845
4505
  client._sdkVersion += ("_CLI_" + __version__)
3846
4506
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
3847
- model = models.DescribeInstanceParamRecordsRequest()
4507
+ model = models.DeleteAccountsRequest()
3848
4508
  model.from_json_string(json.dumps(args))
3849
4509
  start_time = time.time()
3850
4510
  while True:
3851
- rsp = client.DescribeInstanceParamRecords(model)
4511
+ rsp = client.DeleteAccounts(model)
3852
4512
  result = rsp.to_json_string()
3853
4513
  try:
3854
4514
  json_obj = json.loads(result)
@@ -3867,7 +4527,7 @@ def doDescribeInstanceParamRecords(args, parsed_globals):
3867
4527
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
3868
4528
 
3869
4529
 
3870
- def doDescribeBackupSummaries(args, parsed_globals):
4530
+ def doDescribeDBInstanceInfo(args, parsed_globals):
3871
4531
  g_param = parse_global_arg(parsed_globals)
3872
4532
 
3873
4533
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -3892,18 +4552,18 @@ def doDescribeBackupSummaries(args, parsed_globals):
3892
4552
  endpoint=g_param[OptionsDefine.Endpoint],
3893
4553
  proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
3894
4554
  )
3895
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
4555
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
3896
4556
  if g_param[OptionsDefine.Language]:
3897
4557
  profile.language = g_param[OptionsDefine.Language]
3898
4558
  mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
3899
4559
  client = mod.CdbClient(cred, g_param[OptionsDefine.Region], profile)
3900
4560
  client._sdkVersion += ("_CLI_" + __version__)
3901
4561
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
3902
- model = models.DescribeBackupSummariesRequest()
4562
+ model = models.DescribeDBInstanceInfoRequest()
3903
4563
  model.from_json_string(json.dumps(args))
3904
4564
  start_time = time.time()
3905
4565
  while True:
3906
- rsp = client.DescribeBackupSummaries(model)
4566
+ rsp = client.DescribeDBInstanceInfo(model)
3907
4567
  result = rsp.to_json_string()
3908
4568
  try:
3909
4569
  json_obj = json.loads(result)
@@ -3922,7 +4582,7 @@ def doDescribeBackupSummaries(args, parsed_globals):
3922
4582
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
3923
4583
 
3924
4584
 
3925
- def doDescribeParamTemplateInfo(args, parsed_globals):
4585
+ def doDescribeRollbackRangeTime(args, parsed_globals):
3926
4586
  g_param = parse_global_arg(parsed_globals)
3927
4587
 
3928
4588
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -3947,18 +4607,18 @@ def doDescribeParamTemplateInfo(args, parsed_globals):
3947
4607
  endpoint=g_param[OptionsDefine.Endpoint],
3948
4608
  proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
3949
4609
  )
3950
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
4610
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
3951
4611
  if g_param[OptionsDefine.Language]:
3952
4612
  profile.language = g_param[OptionsDefine.Language]
3953
4613
  mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
3954
4614
  client = mod.CdbClient(cred, g_param[OptionsDefine.Region], profile)
3955
4615
  client._sdkVersion += ("_CLI_" + __version__)
3956
4616
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
3957
- model = models.DescribeParamTemplateInfoRequest()
4617
+ model = models.DescribeRollbackRangeTimeRequest()
3958
4618
  model.from_json_string(json.dumps(args))
3959
4619
  start_time = time.time()
3960
4620
  while True:
3961
- rsp = client.DescribeParamTemplateInfo(model)
4621
+ rsp = client.DescribeRollbackRangeTime(model)
3962
4622
  result = rsp.to_json_string()
3963
4623
  try:
3964
4624
  json_obj = json.loads(result)
@@ -3977,7 +4637,7 @@ def doDescribeParamTemplateInfo(args, parsed_globals):
3977
4637
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
3978
4638
 
3979
4639
 
3980
- def doDescribeBinlogBackupOverview(args, parsed_globals):
4640
+ def doDescribeParamTemplates(args, parsed_globals):
3981
4641
  g_param = parse_global_arg(parsed_globals)
3982
4642
 
3983
4643
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -4002,18 +4662,18 @@ def doDescribeBinlogBackupOverview(args, parsed_globals):
4002
4662
  endpoint=g_param[OptionsDefine.Endpoint],
4003
4663
  proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
4004
4664
  )
4005
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
4665
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
4006
4666
  if g_param[OptionsDefine.Language]:
4007
4667
  profile.language = g_param[OptionsDefine.Language]
4008
4668
  mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
4009
4669
  client = mod.CdbClient(cred, g_param[OptionsDefine.Region], profile)
4010
4670
  client._sdkVersion += ("_CLI_" + __version__)
4011
4671
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
4012
- model = models.DescribeBinlogBackupOverviewRequest()
4672
+ model = models.DescribeParamTemplatesRequest()
4013
4673
  model.from_json_string(json.dumps(args))
4014
4674
  start_time = time.time()
4015
4675
  while True:
4016
- rsp = client.DescribeBinlogBackupOverview(model)
4676
+ rsp = client.DescribeParamTemplates(model)
4017
4677
  result = rsp.to_json_string()
4018
4678
  try:
4019
4679
  json_obj = json.loads(result)
@@ -4032,7 +4692,7 @@ def doDescribeBinlogBackupOverview(args, parsed_globals):
4032
4692
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
4033
4693
 
4034
4694
 
4035
- def doSwitchDrInstanceToMaster(args, parsed_globals):
4695
+ def doDeleteBackup(args, parsed_globals):
4036
4696
  g_param = parse_global_arg(parsed_globals)
4037
4697
 
4038
4698
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -4057,18 +4717,18 @@ def doSwitchDrInstanceToMaster(args, parsed_globals):
4057
4717
  endpoint=g_param[OptionsDefine.Endpoint],
4058
4718
  proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
4059
4719
  )
4060
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
4720
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
4061
4721
  if g_param[OptionsDefine.Language]:
4062
4722
  profile.language = g_param[OptionsDefine.Language]
4063
4723
  mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
4064
4724
  client = mod.CdbClient(cred, g_param[OptionsDefine.Region], profile)
4065
4725
  client._sdkVersion += ("_CLI_" + __version__)
4066
4726
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
4067
- model = models.SwitchDrInstanceToMasterRequest()
4727
+ model = models.DeleteBackupRequest()
4068
4728
  model.from_json_string(json.dumps(args))
4069
4729
  start_time = time.time()
4070
4730
  while True:
4071
- rsp = client.SwitchDrInstanceToMaster(model)
4731
+ rsp = client.DeleteBackup(model)
4072
4732
  result = rsp.to_json_string()
4073
4733
  try:
4074
4734
  json_obj = json.loads(result)
@@ -4087,7 +4747,7 @@ def doSwitchDrInstanceToMaster(args, parsed_globals):
4087
4747
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
4088
4748
 
4089
4749
 
4090
- def doDeleteAccounts(args, parsed_globals):
4750
+ def doDescribeRoMinScale(args, parsed_globals):
4091
4751
  g_param = parse_global_arg(parsed_globals)
4092
4752
 
4093
4753
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -4112,18 +4772,18 @@ def doDeleteAccounts(args, parsed_globals):
4112
4772
  endpoint=g_param[OptionsDefine.Endpoint],
4113
4773
  proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
4114
4774
  )
4115
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
4775
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
4116
4776
  if g_param[OptionsDefine.Language]:
4117
4777
  profile.language = g_param[OptionsDefine.Language]
4118
4778
  mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
4119
4779
  client = mod.CdbClient(cred, g_param[OptionsDefine.Region], profile)
4120
4780
  client._sdkVersion += ("_CLI_" + __version__)
4121
4781
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
4122
- model = models.DeleteAccountsRequest()
4782
+ model = models.DescribeRoMinScaleRequest()
4123
4783
  model.from_json_string(json.dumps(args))
4124
4784
  start_time = time.time()
4125
4785
  while True:
4126
- rsp = client.DeleteAccounts(model)
4786
+ rsp = client.DescribeRoMinScale(model)
4127
4787
  result = rsp.to_json_string()
4128
4788
  try:
4129
4789
  json_obj = json.loads(result)
@@ -4142,7 +4802,7 @@ def doDeleteAccounts(args, parsed_globals):
4142
4802
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
4143
4803
 
4144
4804
 
4145
- def doDescribeDBInstanceInfo(args, parsed_globals):
4805
+ def doDescribeProxyCustomConf(args, parsed_globals):
4146
4806
  g_param = parse_global_arg(parsed_globals)
4147
4807
 
4148
4808
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -4167,18 +4827,18 @@ def doDescribeDBInstanceInfo(args, parsed_globals):
4167
4827
  endpoint=g_param[OptionsDefine.Endpoint],
4168
4828
  proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
4169
4829
  )
4170
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
4830
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
4171
4831
  if g_param[OptionsDefine.Language]:
4172
4832
  profile.language = g_param[OptionsDefine.Language]
4173
4833
  mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
4174
4834
  client = mod.CdbClient(cred, g_param[OptionsDefine.Region], profile)
4175
4835
  client._sdkVersion += ("_CLI_" + __version__)
4176
4836
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
4177
- model = models.DescribeDBInstanceInfoRequest()
4837
+ model = models.DescribeProxyCustomConfRequest()
4178
4838
  model.from_json_string(json.dumps(args))
4179
4839
  start_time = time.time()
4180
4840
  while True:
4181
- rsp = client.DescribeDBInstanceInfo(model)
4841
+ rsp = client.DescribeProxyCustomConf(model)
4182
4842
  result = rsp.to_json_string()
4183
4843
  try:
4184
4844
  json_obj = json.loads(result)
@@ -4197,7 +4857,7 @@ def doDescribeDBInstanceInfo(args, parsed_globals):
4197
4857
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
4198
4858
 
4199
4859
 
4200
- def doDescribeRollbackRangeTime(args, parsed_globals):
4860
+ def doAdjustCdbProxyAddress(args, parsed_globals):
4201
4861
  g_param = parse_global_arg(parsed_globals)
4202
4862
 
4203
4863
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -4222,18 +4882,18 @@ def doDescribeRollbackRangeTime(args, parsed_globals):
4222
4882
  endpoint=g_param[OptionsDefine.Endpoint],
4223
4883
  proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
4224
4884
  )
4225
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
4885
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
4226
4886
  if g_param[OptionsDefine.Language]:
4227
4887
  profile.language = g_param[OptionsDefine.Language]
4228
4888
  mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
4229
4889
  client = mod.CdbClient(cred, g_param[OptionsDefine.Region], profile)
4230
4890
  client._sdkVersion += ("_CLI_" + __version__)
4231
4891
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
4232
- model = models.DescribeRollbackRangeTimeRequest()
4892
+ model = models.AdjustCdbProxyAddressRequest()
4233
4893
  model.from_json_string(json.dumps(args))
4234
4894
  start_time = time.time()
4235
4895
  while True:
4236
- rsp = client.DescribeRollbackRangeTime(model)
4896
+ rsp = client.AdjustCdbProxyAddress(model)
4237
4897
  result = rsp.to_json_string()
4238
4898
  try:
4239
4899
  json_obj = json.loads(result)
@@ -4252,7 +4912,7 @@ def doDescribeRollbackRangeTime(args, parsed_globals):
4252
4912
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
4253
4913
 
4254
4914
 
4255
- def doDescribeParamTemplates(args, parsed_globals):
4915
+ def doDescribeCdbProxyInfo(args, parsed_globals):
4256
4916
  g_param = parse_global_arg(parsed_globals)
4257
4917
 
4258
4918
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -4277,18 +4937,18 @@ def doDescribeParamTemplates(args, parsed_globals):
4277
4937
  endpoint=g_param[OptionsDefine.Endpoint],
4278
4938
  proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
4279
4939
  )
4280
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
4940
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
4281
4941
  if g_param[OptionsDefine.Language]:
4282
4942
  profile.language = g_param[OptionsDefine.Language]
4283
4943
  mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
4284
4944
  client = mod.CdbClient(cred, g_param[OptionsDefine.Region], profile)
4285
4945
  client._sdkVersion += ("_CLI_" + __version__)
4286
4946
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
4287
- model = models.DescribeParamTemplatesRequest()
4947
+ model = models.DescribeCdbProxyInfoRequest()
4288
4948
  model.from_json_string(json.dumps(args))
4289
4949
  start_time = time.time()
4290
4950
  while True:
4291
- rsp = client.DescribeParamTemplates(model)
4951
+ rsp = client.DescribeCdbProxyInfo(model)
4292
4952
  result = rsp.to_json_string()
4293
4953
  try:
4294
4954
  json_obj = json.loads(result)
@@ -4307,7 +4967,7 @@ def doDescribeParamTemplates(args, parsed_globals):
4307
4967
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
4308
4968
 
4309
4969
 
4310
- def doDeleteBackup(args, parsed_globals):
4970
+ def doDescribeAuditConfig(args, parsed_globals):
4311
4971
  g_param = parse_global_arg(parsed_globals)
4312
4972
 
4313
4973
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -4332,18 +4992,18 @@ def doDeleteBackup(args, parsed_globals):
4332
4992
  endpoint=g_param[OptionsDefine.Endpoint],
4333
4993
  proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
4334
4994
  )
4335
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
4995
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
4336
4996
  if g_param[OptionsDefine.Language]:
4337
4997
  profile.language = g_param[OptionsDefine.Language]
4338
4998
  mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
4339
4999
  client = mod.CdbClient(cred, g_param[OptionsDefine.Region], profile)
4340
5000
  client._sdkVersion += ("_CLI_" + __version__)
4341
5001
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
4342
- model = models.DeleteBackupRequest()
5002
+ model = models.DescribeAuditConfigRequest()
4343
5003
  model.from_json_string(json.dumps(args))
4344
5004
  start_time = time.time()
4345
5005
  while True:
4346
- rsp = client.DeleteBackup(model)
5006
+ rsp = client.DescribeAuditConfig(model)
4347
5007
  result = rsp.to_json_string()
4348
5008
  try:
4349
5009
  json_obj = json.loads(result)
@@ -4362,7 +5022,7 @@ def doDeleteBackup(args, parsed_globals):
4362
5022
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
4363
5023
 
4364
5024
 
4365
- def doDescribeRoMinScale(args, parsed_globals):
5025
+ def doModifyLocalBinlogConfig(args, parsed_globals):
4366
5026
  g_param = parse_global_arg(parsed_globals)
4367
5027
 
4368
5028
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -4387,18 +5047,18 @@ def doDescribeRoMinScale(args, parsed_globals):
4387
5047
  endpoint=g_param[OptionsDefine.Endpoint],
4388
5048
  proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
4389
5049
  )
4390
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
5050
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
4391
5051
  if g_param[OptionsDefine.Language]:
4392
5052
  profile.language = g_param[OptionsDefine.Language]
4393
5053
  mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
4394
5054
  client = mod.CdbClient(cred, g_param[OptionsDefine.Region], profile)
4395
5055
  client._sdkVersion += ("_CLI_" + __version__)
4396
5056
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
4397
- model = models.DescribeRoMinScaleRequest()
5057
+ model = models.ModifyLocalBinlogConfigRequest()
4398
5058
  model.from_json_string(json.dumps(args))
4399
5059
  start_time = time.time()
4400
5060
  while True:
4401
- rsp = client.DescribeRoMinScale(model)
5061
+ rsp = client.ModifyLocalBinlogConfig(model)
4402
5062
  result = rsp.to_json_string()
4403
5063
  try:
4404
5064
  json_obj = json.loads(result)
@@ -4417,7 +5077,7 @@ def doDescribeRoMinScale(args, parsed_globals):
4417
5077
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
4418
5078
 
4419
5079
 
4420
- def doDescribeProxyCustomConf(args, parsed_globals):
5080
+ def doCloseCDBProxy(args, parsed_globals):
4421
5081
  g_param = parse_global_arg(parsed_globals)
4422
5082
 
4423
5083
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -4442,18 +5102,18 @@ def doDescribeProxyCustomConf(args, parsed_globals):
4442
5102
  endpoint=g_param[OptionsDefine.Endpoint],
4443
5103
  proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
4444
5104
  )
4445
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
5105
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
4446
5106
  if g_param[OptionsDefine.Language]:
4447
5107
  profile.language = g_param[OptionsDefine.Language]
4448
5108
  mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
4449
5109
  client = mod.CdbClient(cred, g_param[OptionsDefine.Region], profile)
4450
5110
  client._sdkVersion += ("_CLI_" + __version__)
4451
5111
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
4452
- model = models.DescribeProxyCustomConfRequest()
5112
+ model = models.CloseCDBProxyRequest()
4453
5113
  model.from_json_string(json.dumps(args))
4454
5114
  start_time = time.time()
4455
5115
  while True:
4456
- rsp = client.DescribeProxyCustomConf(model)
5116
+ rsp = client.CloseCDBProxy(model)
4457
5117
  result = rsp.to_json_string()
4458
5118
  try:
4459
5119
  json_obj = json.loads(result)
@@ -4472,7 +5132,7 @@ def doDescribeProxyCustomConf(args, parsed_globals):
4472
5132
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
4473
5133
 
4474
5134
 
4475
- def doAdjustCdbProxyAddress(args, parsed_globals):
5135
+ def doDescribeAsyncRequestInfo(args, parsed_globals):
4476
5136
  g_param = parse_global_arg(parsed_globals)
4477
5137
 
4478
5138
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -4497,18 +5157,18 @@ def doAdjustCdbProxyAddress(args, parsed_globals):
4497
5157
  endpoint=g_param[OptionsDefine.Endpoint],
4498
5158
  proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
4499
5159
  )
4500
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
5160
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
4501
5161
  if g_param[OptionsDefine.Language]:
4502
5162
  profile.language = g_param[OptionsDefine.Language]
4503
5163
  mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
4504
5164
  client = mod.CdbClient(cred, g_param[OptionsDefine.Region], profile)
4505
5165
  client._sdkVersion += ("_CLI_" + __version__)
4506
5166
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
4507
- model = models.AdjustCdbProxyAddressRequest()
5167
+ model = models.DescribeAsyncRequestInfoRequest()
4508
5168
  model.from_json_string(json.dumps(args))
4509
5169
  start_time = time.time()
4510
5170
  while True:
4511
- rsp = client.AdjustCdbProxyAddress(model)
5171
+ rsp = client.DescribeAsyncRequestInfo(model)
4512
5172
  result = rsp.to_json_string()
4513
5173
  try:
4514
5174
  json_obj = json.loads(result)
@@ -4527,7 +5187,7 @@ def doAdjustCdbProxyAddress(args, parsed_globals):
4527
5187
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
4528
5188
 
4529
5189
 
4530
- def doDescribeCdbProxyInfo(args, parsed_globals):
5190
+ def doDescribeAuditLogs(args, parsed_globals):
4531
5191
  g_param = parse_global_arg(parsed_globals)
4532
5192
 
4533
5193
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -4552,18 +5212,183 @@ def doDescribeCdbProxyInfo(args, parsed_globals):
4552
5212
  endpoint=g_param[OptionsDefine.Endpoint],
4553
5213
  proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
4554
5214
  )
4555
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
5215
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
4556
5216
  if g_param[OptionsDefine.Language]:
4557
5217
  profile.language = g_param[OptionsDefine.Language]
4558
5218
  mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
4559
5219
  client = mod.CdbClient(cred, g_param[OptionsDefine.Region], profile)
4560
5220
  client._sdkVersion += ("_CLI_" + __version__)
4561
5221
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
4562
- model = models.DescribeCdbProxyInfoRequest()
5222
+ model = models.DescribeAuditLogsRequest()
5223
+ model.from_json_string(json.dumps(args))
5224
+ start_time = time.time()
5225
+ while True:
5226
+ rsp = client.DescribeAuditLogs(model)
5227
+ result = rsp.to_json_string()
5228
+ try:
5229
+ json_obj = json.loads(result)
5230
+ except TypeError as e:
5231
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
5232
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
5233
+ break
5234
+ cur_time = time.time()
5235
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
5236
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
5237
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
5238
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
5239
+ else:
5240
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
5241
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
5242
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
5243
+
5244
+
5245
+ def doDescribeDBInstanceRebootTime(args, parsed_globals):
5246
+ g_param = parse_global_arg(parsed_globals)
5247
+
5248
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
5249
+ cred = credential.CVMRoleCredential()
5250
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
5251
+ cred = credential.STSAssumeRoleCredential(
5252
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
5253
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
5254
+ )
5255
+ elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
5256
+ and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
5257
+ and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
5258
+ and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
5259
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
5260
+ else:
5261
+ cred = credential.Credential(
5262
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
5263
+ )
5264
+ http_profile = HttpProfile(
5265
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
5266
+ reqMethod="POST",
5267
+ endpoint=g_param[OptionsDefine.Endpoint],
5268
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
5269
+ )
5270
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
5271
+ if g_param[OptionsDefine.Language]:
5272
+ profile.language = g_param[OptionsDefine.Language]
5273
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
5274
+ client = mod.CdbClient(cred, g_param[OptionsDefine.Region], profile)
5275
+ client._sdkVersion += ("_CLI_" + __version__)
5276
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
5277
+ model = models.DescribeDBInstanceRebootTimeRequest()
5278
+ model.from_json_string(json.dumps(args))
5279
+ start_time = time.time()
5280
+ while True:
5281
+ rsp = client.DescribeDBInstanceRebootTime(model)
5282
+ result = rsp.to_json_string()
5283
+ try:
5284
+ json_obj = json.loads(result)
5285
+ except TypeError as e:
5286
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
5287
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
5288
+ break
5289
+ cur_time = time.time()
5290
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
5291
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
5292
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
5293
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
5294
+ else:
5295
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
5296
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
5297
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
5298
+
5299
+
5300
+ def doDescribeDBInstances(args, parsed_globals):
5301
+ g_param = parse_global_arg(parsed_globals)
5302
+
5303
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
5304
+ cred = credential.CVMRoleCredential()
5305
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
5306
+ cred = credential.STSAssumeRoleCredential(
5307
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
5308
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
5309
+ )
5310
+ elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
5311
+ and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
5312
+ and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
5313
+ and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
5314
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
5315
+ else:
5316
+ cred = credential.Credential(
5317
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
5318
+ )
5319
+ http_profile = HttpProfile(
5320
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
5321
+ reqMethod="POST",
5322
+ endpoint=g_param[OptionsDefine.Endpoint],
5323
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
5324
+ )
5325
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
5326
+ if g_param[OptionsDefine.Language]:
5327
+ profile.language = g_param[OptionsDefine.Language]
5328
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
5329
+ client = mod.CdbClient(cred, g_param[OptionsDefine.Region], profile)
5330
+ client._sdkVersion += ("_CLI_" + __version__)
5331
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
5332
+ model = models.DescribeDBInstancesRequest()
5333
+ model.from_json_string(json.dumps(args))
5334
+ start_time = time.time()
5335
+ while True:
5336
+ rsp = client.DescribeDBInstances(model)
5337
+ result = rsp.to_json_string()
5338
+ try:
5339
+ json_obj = json.loads(result)
5340
+ except TypeError as e:
5341
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
5342
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
5343
+ break
5344
+ cur_time = time.time()
5345
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
5346
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
5347
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
5348
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
5349
+ else:
5350
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
5351
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
5352
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
5353
+
5354
+
5355
+ def doModifyRoGroupInfo(args, parsed_globals):
5356
+ g_param = parse_global_arg(parsed_globals)
5357
+
5358
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
5359
+ cred = credential.CVMRoleCredential()
5360
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
5361
+ cred = credential.STSAssumeRoleCredential(
5362
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
5363
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
5364
+ )
5365
+ elif os.getenv(OptionsDefine.ENV_TKE_REGION) \
5366
+ and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) \
5367
+ and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) \
5368
+ and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
5369
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
5370
+ else:
5371
+ cred = credential.Credential(
5372
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
5373
+ )
5374
+ http_profile = HttpProfile(
5375
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
5376
+ reqMethod="POST",
5377
+ endpoint=g_param[OptionsDefine.Endpoint],
5378
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
5379
+ )
5380
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
5381
+ if g_param[OptionsDefine.Language]:
5382
+ profile.language = g_param[OptionsDefine.Language]
5383
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
5384
+ client = mod.CdbClient(cred, g_param[OptionsDefine.Region], profile)
5385
+ client._sdkVersion += ("_CLI_" + __version__)
5386
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
5387
+ model = models.ModifyRoGroupInfoRequest()
4563
5388
  model.from_json_string(json.dumps(args))
4564
5389
  start_time = time.time()
4565
5390
  while True:
4566
- rsp = client.DescribeCdbProxyInfo(model)
5391
+ rsp = client.ModifyRoGroupInfo(model)
4567
5392
  result = rsp.to_json_string()
4568
5393
  try:
4569
5394
  json_obj = json.loads(result)
@@ -4582,7 +5407,7 @@ def doDescribeCdbProxyInfo(args, parsed_globals):
4582
5407
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
4583
5408
 
4584
5409
 
4585
- def doModifyInstanceParam(args, parsed_globals):
5410
+ def doDescribeDBInstanceCharset(args, parsed_globals):
4586
5411
  g_param = parse_global_arg(parsed_globals)
4587
5412
 
4588
5413
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -4607,18 +5432,18 @@ def doModifyInstanceParam(args, parsed_globals):
4607
5432
  endpoint=g_param[OptionsDefine.Endpoint],
4608
5433
  proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
4609
5434
  )
4610
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
5435
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
4611
5436
  if g_param[OptionsDefine.Language]:
4612
5437
  profile.language = g_param[OptionsDefine.Language]
4613
5438
  mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
4614
5439
  client = mod.CdbClient(cred, g_param[OptionsDefine.Region], profile)
4615
5440
  client._sdkVersion += ("_CLI_" + __version__)
4616
5441
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
4617
- model = models.ModifyInstanceParamRequest()
5442
+ model = models.DescribeDBInstanceCharsetRequest()
4618
5443
  model.from_json_string(json.dumps(args))
4619
5444
  start_time = time.time()
4620
5445
  while True:
4621
- rsp = client.ModifyInstanceParam(model)
5446
+ rsp = client.DescribeDBInstanceCharset(model)
4622
5447
  result = rsp.to_json_string()
4623
5448
  try:
4624
5449
  json_obj = json.loads(result)
@@ -4637,7 +5462,7 @@ def doModifyInstanceParam(args, parsed_globals):
4637
5462
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
4638
5463
 
4639
5464
 
4640
- def doCloseCDBProxy(args, parsed_globals):
5465
+ def doAssociateSecurityGroups(args, parsed_globals):
4641
5466
  g_param = parse_global_arg(parsed_globals)
4642
5467
 
4643
5468
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -4662,18 +5487,18 @@ def doCloseCDBProxy(args, parsed_globals):
4662
5487
  endpoint=g_param[OptionsDefine.Endpoint],
4663
5488
  proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
4664
5489
  )
4665
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
5490
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
4666
5491
  if g_param[OptionsDefine.Language]:
4667
5492
  profile.language = g_param[OptionsDefine.Language]
4668
5493
  mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
4669
5494
  client = mod.CdbClient(cred, g_param[OptionsDefine.Region], profile)
4670
5495
  client._sdkVersion += ("_CLI_" + __version__)
4671
5496
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
4672
- model = models.CloseCDBProxyRequest()
5497
+ model = models.AssociateSecurityGroupsRequest()
4673
5498
  model.from_json_string(json.dumps(args))
4674
5499
  start_time = time.time()
4675
5500
  while True:
4676
- rsp = client.CloseCDBProxy(model)
5501
+ rsp = client.AssociateSecurityGroups(model)
4677
5502
  result = rsp.to_json_string()
4678
5503
  try:
4679
5504
  json_obj = json.loads(result)
@@ -4692,7 +5517,7 @@ def doCloseCDBProxy(args, parsed_globals):
4692
5517
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
4693
5518
 
4694
5519
 
4695
- def doModifyAccountMaxUserConnections(args, parsed_globals):
5520
+ def doDescribeDBPrice(args, parsed_globals):
4696
5521
  g_param = parse_global_arg(parsed_globals)
4697
5522
 
4698
5523
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -4717,18 +5542,18 @@ def doModifyAccountMaxUserConnections(args, parsed_globals):
4717
5542
  endpoint=g_param[OptionsDefine.Endpoint],
4718
5543
  proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
4719
5544
  )
4720
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
5545
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
4721
5546
  if g_param[OptionsDefine.Language]:
4722
5547
  profile.language = g_param[OptionsDefine.Language]
4723
5548
  mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
4724
5549
  client = mod.CdbClient(cred, g_param[OptionsDefine.Region], profile)
4725
5550
  client._sdkVersion += ("_CLI_" + __version__)
4726
5551
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
4727
- model = models.ModifyAccountMaxUserConnectionsRequest()
5552
+ model = models.DescribeDBPriceRequest()
4728
5553
  model.from_json_string(json.dumps(args))
4729
5554
  start_time = time.time()
4730
5555
  while True:
4731
- rsp = client.ModifyAccountMaxUserConnections(model)
5556
+ rsp = client.DescribeDBPrice(model)
4732
5557
  result = rsp.to_json_string()
4733
5558
  try:
4734
5559
  json_obj = json.loads(result)
@@ -4747,7 +5572,7 @@ def doModifyAccountMaxUserConnections(args, parsed_globals):
4747
5572
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
4748
5573
 
4749
5574
 
4750
- def doDescribeAsyncRequestInfo(args, parsed_globals):
5575
+ def doModifyAccountPrivileges(args, parsed_globals):
4751
5576
  g_param = parse_global_arg(parsed_globals)
4752
5577
 
4753
5578
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -4772,18 +5597,18 @@ def doDescribeAsyncRequestInfo(args, parsed_globals):
4772
5597
  endpoint=g_param[OptionsDefine.Endpoint],
4773
5598
  proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
4774
5599
  )
4775
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
5600
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
4776
5601
  if g_param[OptionsDefine.Language]:
4777
5602
  profile.language = g_param[OptionsDefine.Language]
4778
5603
  mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
4779
5604
  client = mod.CdbClient(cred, g_param[OptionsDefine.Region], profile)
4780
5605
  client._sdkVersion += ("_CLI_" + __version__)
4781
5606
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
4782
- model = models.DescribeAsyncRequestInfoRequest()
5607
+ model = models.ModifyAccountPrivilegesRequest()
4783
5608
  model.from_json_string(json.dumps(args))
4784
5609
  start_time = time.time()
4785
5610
  while True:
4786
- rsp = client.DescribeAsyncRequestInfo(model)
5611
+ rsp = client.ModifyAccountPrivileges(model)
4787
5612
  result = rsp.to_json_string()
4788
5613
  try:
4789
5614
  json_obj = json.loads(result)
@@ -4802,7 +5627,7 @@ def doDescribeAsyncRequestInfo(args, parsed_globals):
4802
5627
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
4803
5628
 
4804
5629
 
4805
- def doDescribeAuditLogs(args, parsed_globals):
5630
+ def doDescribeDBImportRecords(args, parsed_globals):
4806
5631
  g_param = parse_global_arg(parsed_globals)
4807
5632
 
4808
5633
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -4827,18 +5652,18 @@ def doDescribeAuditLogs(args, parsed_globals):
4827
5652
  endpoint=g_param[OptionsDefine.Endpoint],
4828
5653
  proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
4829
5654
  )
4830
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
5655
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
4831
5656
  if g_param[OptionsDefine.Language]:
4832
5657
  profile.language = g_param[OptionsDefine.Language]
4833
5658
  mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
4834
5659
  client = mod.CdbClient(cred, g_param[OptionsDefine.Region], profile)
4835
5660
  client._sdkVersion += ("_CLI_" + __version__)
4836
5661
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
4837
- model = models.DescribeAuditLogsRequest()
5662
+ model = models.DescribeDBImportRecordsRequest()
4838
5663
  model.from_json_string(json.dumps(args))
4839
5664
  start_time = time.time()
4840
5665
  while True:
4841
- rsp = client.DescribeAuditLogs(model)
5666
+ rsp = client.DescribeDBImportRecords(model)
4842
5667
  result = rsp.to_json_string()
4843
5668
  try:
4844
5669
  json_obj = json.loads(result)
@@ -4857,7 +5682,7 @@ def doDescribeAuditLogs(args, parsed_globals):
4857
5682
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
4858
5683
 
4859
5684
 
4860
- def doDescribeDBInstanceRebootTime(args, parsed_globals):
5685
+ def doDescribeDBSwitchRecords(args, parsed_globals):
4861
5686
  g_param = parse_global_arg(parsed_globals)
4862
5687
 
4863
5688
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -4882,18 +5707,18 @@ def doDescribeDBInstanceRebootTime(args, parsed_globals):
4882
5707
  endpoint=g_param[OptionsDefine.Endpoint],
4883
5708
  proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
4884
5709
  )
4885
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
5710
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
4886
5711
  if g_param[OptionsDefine.Language]:
4887
5712
  profile.language = g_param[OptionsDefine.Language]
4888
5713
  mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
4889
5714
  client = mod.CdbClient(cred, g_param[OptionsDefine.Region], profile)
4890
5715
  client._sdkVersion += ("_CLI_" + __version__)
4891
5716
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
4892
- model = models.DescribeDBInstanceRebootTimeRequest()
5717
+ model = models.DescribeDBSwitchRecordsRequest()
4893
5718
  model.from_json_string(json.dumps(args))
4894
5719
  start_time = time.time()
4895
5720
  while True:
4896
- rsp = client.DescribeDBInstanceRebootTime(model)
5721
+ rsp = client.DescribeDBSwitchRecords(model)
4897
5722
  result = rsp.to_json_string()
4898
5723
  try:
4899
5724
  json_obj = json.loads(result)
@@ -4912,7 +5737,7 @@ def doDescribeDBInstanceRebootTime(args, parsed_globals):
4912
5737
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
4913
5738
 
4914
5739
 
4915
- def doDescribeDBInstances(args, parsed_globals):
5740
+ def doCreateRotationPassword(args, parsed_globals):
4916
5741
  g_param = parse_global_arg(parsed_globals)
4917
5742
 
4918
5743
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -4937,18 +5762,18 @@ def doDescribeDBInstances(args, parsed_globals):
4937
5762
  endpoint=g_param[OptionsDefine.Endpoint],
4938
5763
  proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
4939
5764
  )
4940
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
5765
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
4941
5766
  if g_param[OptionsDefine.Language]:
4942
5767
  profile.language = g_param[OptionsDefine.Language]
4943
5768
  mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
4944
5769
  client = mod.CdbClient(cred, g_param[OptionsDefine.Region], profile)
4945
5770
  client._sdkVersion += ("_CLI_" + __version__)
4946
5771
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
4947
- model = models.DescribeDBInstancesRequest()
5772
+ model = models.CreateRotationPasswordRequest()
4948
5773
  model.from_json_string(json.dumps(args))
4949
5774
  start_time = time.time()
4950
5775
  while True:
4951
- rsp = client.DescribeDBInstances(model)
5776
+ rsp = client.CreateRotationPassword(model)
4952
5777
  result = rsp.to_json_string()
4953
5778
  try:
4954
5779
  json_obj = json.loads(result)
@@ -4967,7 +5792,7 @@ def doDescribeDBInstances(args, parsed_globals):
4967
5792
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
4968
5793
 
4969
5794
 
4970
- def doModifyRoGroupInfo(args, parsed_globals):
5795
+ def doCreateDBImportJob(args, parsed_globals):
4971
5796
  g_param = parse_global_arg(parsed_globals)
4972
5797
 
4973
5798
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -4992,18 +5817,18 @@ def doModifyRoGroupInfo(args, parsed_globals):
4992
5817
  endpoint=g_param[OptionsDefine.Endpoint],
4993
5818
  proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
4994
5819
  )
4995
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
5820
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
4996
5821
  if g_param[OptionsDefine.Language]:
4997
5822
  profile.language = g_param[OptionsDefine.Language]
4998
5823
  mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
4999
5824
  client = mod.CdbClient(cred, g_param[OptionsDefine.Region], profile)
5000
5825
  client._sdkVersion += ("_CLI_" + __version__)
5001
5826
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
5002
- model = models.ModifyRoGroupInfoRequest()
5827
+ model = models.CreateDBImportJobRequest()
5003
5828
  model.from_json_string(json.dumps(args))
5004
5829
  start_time = time.time()
5005
5830
  while True:
5006
- rsp = client.ModifyRoGroupInfo(model)
5831
+ rsp = client.CreateDBImportJob(model)
5007
5832
  result = rsp.to_json_string()
5008
5833
  try:
5009
5834
  json_obj = json.loads(result)
@@ -5022,7 +5847,7 @@ def doModifyRoGroupInfo(args, parsed_globals):
5022
5847
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
5023
5848
 
5024
5849
 
5025
- def doDescribeUploadedFiles(args, parsed_globals):
5850
+ def doRestartDBInstances(args, parsed_globals):
5026
5851
  g_param = parse_global_arg(parsed_globals)
5027
5852
 
5028
5853
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -5047,18 +5872,18 @@ def doDescribeUploadedFiles(args, parsed_globals):
5047
5872
  endpoint=g_param[OptionsDefine.Endpoint],
5048
5873
  proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
5049
5874
  )
5050
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
5875
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
5051
5876
  if g_param[OptionsDefine.Language]:
5052
5877
  profile.language = g_param[OptionsDefine.Language]
5053
5878
  mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
5054
5879
  client = mod.CdbClient(cred, g_param[OptionsDefine.Region], profile)
5055
5880
  client._sdkVersion += ("_CLI_" + __version__)
5056
5881
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
5057
- model = models.DescribeUploadedFilesRequest()
5882
+ model = models.RestartDBInstancesRequest()
5058
5883
  model.from_json_string(json.dumps(args))
5059
5884
  start_time = time.time()
5060
5885
  while True:
5061
- rsp = client.DescribeUploadedFiles(model)
5886
+ rsp = client.RestartDBInstances(model)
5062
5887
  result = rsp.to_json_string()
5063
5888
  try:
5064
5889
  json_obj = json.loads(result)
@@ -5077,7 +5902,7 @@ def doDescribeUploadedFiles(args, parsed_globals):
5077
5902
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
5078
5903
 
5079
5904
 
5080
- def doAssociateSecurityGroups(args, parsed_globals):
5905
+ def doDescribeCpuExpandStrategy(args, parsed_globals):
5081
5906
  g_param = parse_global_arg(parsed_globals)
5082
5907
 
5083
5908
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -5102,18 +5927,18 @@ def doAssociateSecurityGroups(args, parsed_globals):
5102
5927
  endpoint=g_param[OptionsDefine.Endpoint],
5103
5928
  proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
5104
5929
  )
5105
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
5930
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
5106
5931
  if g_param[OptionsDefine.Language]:
5107
5932
  profile.language = g_param[OptionsDefine.Language]
5108
5933
  mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
5109
5934
  client = mod.CdbClient(cred, g_param[OptionsDefine.Region], profile)
5110
5935
  client._sdkVersion += ("_CLI_" + __version__)
5111
5936
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
5112
- model = models.AssociateSecurityGroupsRequest()
5937
+ model = models.DescribeCpuExpandStrategyRequest()
5113
5938
  model.from_json_string(json.dumps(args))
5114
5939
  start_time = time.time()
5115
5940
  while True:
5116
- rsp = client.AssociateSecurityGroups(model)
5941
+ rsp = client.DescribeCpuExpandStrategy(model)
5117
5942
  result = rsp.to_json_string()
5118
5943
  try:
5119
5944
  json_obj = json.loads(result)
@@ -5132,7 +5957,7 @@ def doAssociateSecurityGroups(args, parsed_globals):
5132
5957
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
5133
5958
 
5134
5959
 
5135
- def doDescribeDBPrice(args, parsed_globals):
5960
+ def doReloadBalanceProxyNode(args, parsed_globals):
5136
5961
  g_param = parse_global_arg(parsed_globals)
5137
5962
 
5138
5963
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -5157,18 +5982,18 @@ def doDescribeDBPrice(args, parsed_globals):
5157
5982
  endpoint=g_param[OptionsDefine.Endpoint],
5158
5983
  proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
5159
5984
  )
5160
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
5985
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
5161
5986
  if g_param[OptionsDefine.Language]:
5162
5987
  profile.language = g_param[OptionsDefine.Language]
5163
5988
  mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
5164
5989
  client = mod.CdbClient(cred, g_param[OptionsDefine.Region], profile)
5165
5990
  client._sdkVersion += ("_CLI_" + __version__)
5166
5991
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
5167
- model = models.DescribeDBPriceRequest()
5992
+ model = models.ReloadBalanceProxyNodeRequest()
5168
5993
  model.from_json_string(json.dumps(args))
5169
5994
  start_time = time.time()
5170
5995
  while True:
5171
- rsp = client.DescribeDBPrice(model)
5996
+ rsp = client.ReloadBalanceProxyNode(model)
5172
5997
  result = rsp.to_json_string()
5173
5998
  try:
5174
5999
  json_obj = json.loads(result)
@@ -5187,7 +6012,7 @@ def doDescribeDBPrice(args, parsed_globals):
5187
6012
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
5188
6013
 
5189
6014
 
5190
- def doModifyAccountPrivileges(args, parsed_globals):
6015
+ def doModifyBackupEncryptionStatus(args, parsed_globals):
5191
6016
  g_param = parse_global_arg(parsed_globals)
5192
6017
 
5193
6018
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -5212,18 +6037,18 @@ def doModifyAccountPrivileges(args, parsed_globals):
5212
6037
  endpoint=g_param[OptionsDefine.Endpoint],
5213
6038
  proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
5214
6039
  )
5215
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
6040
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
5216
6041
  if g_param[OptionsDefine.Language]:
5217
6042
  profile.language = g_param[OptionsDefine.Language]
5218
6043
  mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
5219
6044
  client = mod.CdbClient(cred, g_param[OptionsDefine.Region], profile)
5220
6045
  client._sdkVersion += ("_CLI_" + __version__)
5221
6046
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
5222
- model = models.ModifyAccountPrivilegesRequest()
6047
+ model = models.ModifyBackupEncryptionStatusRequest()
5223
6048
  model.from_json_string(json.dumps(args))
5224
6049
  start_time = time.time()
5225
6050
  while True:
5226
- rsp = client.ModifyAccountPrivileges(model)
6051
+ rsp = client.ModifyBackupEncryptionStatus(model)
5227
6052
  result = rsp.to_json_string()
5228
6053
  try:
5229
6054
  json_obj = json.loads(result)
@@ -5242,7 +6067,7 @@ def doModifyAccountPrivileges(args, parsed_globals):
5242
6067
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
5243
6068
 
5244
6069
 
5245
- def doDescribeDBImportRecords(args, parsed_globals):
6070
+ def doDescribeBackupDownloadRestriction(args, parsed_globals):
5246
6071
  g_param = parse_global_arg(parsed_globals)
5247
6072
 
5248
6073
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -5267,18 +6092,18 @@ def doDescribeDBImportRecords(args, parsed_globals):
5267
6092
  endpoint=g_param[OptionsDefine.Endpoint],
5268
6093
  proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
5269
6094
  )
5270
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
6095
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
5271
6096
  if g_param[OptionsDefine.Language]:
5272
6097
  profile.language = g_param[OptionsDefine.Language]
5273
6098
  mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
5274
6099
  client = mod.CdbClient(cred, g_param[OptionsDefine.Region], profile)
5275
6100
  client._sdkVersion += ("_CLI_" + __version__)
5276
6101
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
5277
- model = models.DescribeDBImportRecordsRequest()
6102
+ model = models.DescribeBackupDownloadRestrictionRequest()
5278
6103
  model.from_json_string(json.dumps(args))
5279
6104
  start_time = time.time()
5280
6105
  while True:
5281
- rsp = client.DescribeDBImportRecords(model)
6106
+ rsp = client.DescribeBackupDownloadRestriction(model)
5282
6107
  result = rsp.to_json_string()
5283
6108
  try:
5284
6109
  json_obj = json.loads(result)
@@ -5297,7 +6122,7 @@ def doDescribeDBImportRecords(args, parsed_globals):
5297
6122
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
5298
6123
 
5299
6124
 
5300
- def doDescribeDBSwitchRecords(args, parsed_globals):
6125
+ def doResetRootAccount(args, parsed_globals):
5301
6126
  g_param = parse_global_arg(parsed_globals)
5302
6127
 
5303
6128
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -5322,18 +6147,18 @@ def doDescribeDBSwitchRecords(args, parsed_globals):
5322
6147
  endpoint=g_param[OptionsDefine.Endpoint],
5323
6148
  proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
5324
6149
  )
5325
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
6150
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
5326
6151
  if g_param[OptionsDefine.Language]:
5327
6152
  profile.language = g_param[OptionsDefine.Language]
5328
6153
  mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
5329
6154
  client = mod.CdbClient(cred, g_param[OptionsDefine.Region], profile)
5330
6155
  client._sdkVersion += ("_CLI_" + __version__)
5331
6156
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
5332
- model = models.DescribeDBSwitchRecordsRequest()
6157
+ model = models.ResetRootAccountRequest()
5333
6158
  model.from_json_string(json.dumps(args))
5334
6159
  start_time = time.time()
5335
6160
  while True:
5336
- rsp = client.DescribeDBSwitchRecords(model)
6161
+ rsp = client.ResetRootAccount(model)
5337
6162
  result = rsp.to_json_string()
5338
6163
  try:
5339
6164
  json_obj = json.loads(result)
@@ -5352,7 +6177,7 @@ def doDescribeDBSwitchRecords(args, parsed_globals):
5352
6177
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
5353
6178
 
5354
6179
 
5355
- def doCreateDBImportJob(args, parsed_globals):
6180
+ def doModifyAuditRuleTemplates(args, parsed_globals):
5356
6181
  g_param = parse_global_arg(parsed_globals)
5357
6182
 
5358
6183
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -5377,18 +6202,18 @@ def doCreateDBImportJob(args, parsed_globals):
5377
6202
  endpoint=g_param[OptionsDefine.Endpoint],
5378
6203
  proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
5379
6204
  )
5380
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
6205
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
5381
6206
  if g_param[OptionsDefine.Language]:
5382
6207
  profile.language = g_param[OptionsDefine.Language]
5383
6208
  mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
5384
6209
  client = mod.CdbClient(cred, g_param[OptionsDefine.Region], profile)
5385
6210
  client._sdkVersion += ("_CLI_" + __version__)
5386
6211
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
5387
- model = models.CreateDBImportJobRequest()
6212
+ model = models.ModifyAuditRuleTemplatesRequest()
5388
6213
  model.from_json_string(json.dumps(args))
5389
6214
  start_time = time.time()
5390
6215
  while True:
5391
- rsp = client.CreateDBImportJob(model)
6216
+ rsp = client.ModifyAuditRuleTemplates(model)
5392
6217
  result = rsp.to_json_string()
5393
6218
  try:
5394
6219
  json_obj = json.loads(result)
@@ -5407,7 +6232,7 @@ def doCreateDBImportJob(args, parsed_globals):
5407
6232
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
5408
6233
 
5409
6234
 
5410
- def doRestartDBInstances(args, parsed_globals):
6235
+ def doModifyAccountPassword(args, parsed_globals):
5411
6236
  g_param = parse_global_arg(parsed_globals)
5412
6237
 
5413
6238
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -5432,18 +6257,18 @@ def doRestartDBInstances(args, parsed_globals):
5432
6257
  endpoint=g_param[OptionsDefine.Endpoint],
5433
6258
  proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
5434
6259
  )
5435
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
6260
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
5436
6261
  if g_param[OptionsDefine.Language]:
5437
6262
  profile.language = g_param[OptionsDefine.Language]
5438
6263
  mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
5439
6264
  client = mod.CdbClient(cred, g_param[OptionsDefine.Region], profile)
5440
6265
  client._sdkVersion += ("_CLI_" + __version__)
5441
6266
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
5442
- model = models.RestartDBInstancesRequest()
6267
+ model = models.ModifyAccountPasswordRequest()
5443
6268
  model.from_json_string(json.dumps(args))
5444
6269
  start_time = time.time()
5445
6270
  while True:
5446
- rsp = client.RestartDBInstances(model)
6271
+ rsp = client.ModifyAccountPassword(model)
5447
6272
  result = rsp.to_json_string()
5448
6273
  try:
5449
6274
  json_obj = json.loads(result)
@@ -5462,7 +6287,7 @@ def doRestartDBInstances(args, parsed_globals):
5462
6287
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
5463
6288
 
5464
6289
 
5465
- def doDescribeCpuExpandStrategy(args, parsed_globals):
6290
+ def doDescribeUploadedFiles(args, parsed_globals):
5466
6291
  g_param = parse_global_arg(parsed_globals)
5467
6292
 
5468
6293
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -5487,18 +6312,18 @@ def doDescribeCpuExpandStrategy(args, parsed_globals):
5487
6312
  endpoint=g_param[OptionsDefine.Endpoint],
5488
6313
  proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
5489
6314
  )
5490
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
6315
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
5491
6316
  if g_param[OptionsDefine.Language]:
5492
6317
  profile.language = g_param[OptionsDefine.Language]
5493
6318
  mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
5494
6319
  client = mod.CdbClient(cred, g_param[OptionsDefine.Region], profile)
5495
6320
  client._sdkVersion += ("_CLI_" + __version__)
5496
6321
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
5497
- model = models.DescribeCpuExpandStrategyRequest()
6322
+ model = models.DescribeUploadedFilesRequest()
5498
6323
  model.from_json_string(json.dumps(args))
5499
6324
  start_time = time.time()
5500
6325
  while True:
5501
- rsp = client.DescribeCpuExpandStrategy(model)
6326
+ rsp = client.DescribeUploadedFiles(model)
5502
6327
  result = rsp.to_json_string()
5503
6328
  try:
5504
6329
  json_obj = json.loads(result)
@@ -5517,7 +6342,7 @@ def doDescribeCpuExpandStrategy(args, parsed_globals):
5517
6342
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
5518
6343
 
5519
6344
 
5520
- def doReloadBalanceProxyNode(args, parsed_globals):
6345
+ def doModifyAccountDescription(args, parsed_globals):
5521
6346
  g_param = parse_global_arg(parsed_globals)
5522
6347
 
5523
6348
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -5542,18 +6367,18 @@ def doReloadBalanceProxyNode(args, parsed_globals):
5542
6367
  endpoint=g_param[OptionsDefine.Endpoint],
5543
6368
  proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
5544
6369
  )
5545
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
6370
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
5546
6371
  if g_param[OptionsDefine.Language]:
5547
6372
  profile.language = g_param[OptionsDefine.Language]
5548
6373
  mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
5549
6374
  client = mod.CdbClient(cred, g_param[OptionsDefine.Region], profile)
5550
6375
  client._sdkVersion += ("_CLI_" + __version__)
5551
6376
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
5552
- model = models.ReloadBalanceProxyNodeRequest()
6377
+ model = models.ModifyAccountDescriptionRequest()
5553
6378
  model.from_json_string(json.dumps(args))
5554
6379
  start_time = time.time()
5555
6380
  while True:
5556
- rsp = client.ReloadBalanceProxyNode(model)
6381
+ rsp = client.ModifyAccountDescription(model)
5557
6382
  result = rsp.to_json_string()
5558
6383
  try:
5559
6384
  json_obj = json.loads(result)
@@ -5572,7 +6397,7 @@ def doReloadBalanceProxyNode(args, parsed_globals):
5572
6397
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
5573
6398
 
5574
6399
 
5575
- def doDescribeBackupDownloadRestriction(args, parsed_globals):
6400
+ def doDescribeSlowLogData(args, parsed_globals):
5576
6401
  g_param = parse_global_arg(parsed_globals)
5577
6402
 
5578
6403
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -5597,18 +6422,18 @@ def doDescribeBackupDownloadRestriction(args, parsed_globals):
5597
6422
  endpoint=g_param[OptionsDefine.Endpoint],
5598
6423
  proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
5599
6424
  )
5600
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
6425
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
5601
6426
  if g_param[OptionsDefine.Language]:
5602
6427
  profile.language = g_param[OptionsDefine.Language]
5603
6428
  mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
5604
6429
  client = mod.CdbClient(cred, g_param[OptionsDefine.Region], profile)
5605
6430
  client._sdkVersion += ("_CLI_" + __version__)
5606
6431
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
5607
- model = models.DescribeBackupDownloadRestrictionRequest()
6432
+ model = models.DescribeSlowLogDataRequest()
5608
6433
  model.from_json_string(json.dumps(args))
5609
6434
  start_time = time.time()
5610
6435
  while True:
5611
- rsp = client.DescribeBackupDownloadRestriction(model)
6436
+ rsp = client.DescribeSlowLogData(model)
5612
6437
  result = rsp.to_json_string()
5613
6438
  try:
5614
6439
  json_obj = json.loads(result)
@@ -5627,7 +6452,7 @@ def doDescribeBackupDownloadRestriction(args, parsed_globals):
5627
6452
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
5628
6453
 
5629
6454
 
5630
- def doResetRootAccount(args, parsed_globals):
6455
+ def doOpenAuditService(args, parsed_globals):
5631
6456
  g_param = parse_global_arg(parsed_globals)
5632
6457
 
5633
6458
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -5652,18 +6477,18 @@ def doResetRootAccount(args, parsed_globals):
5652
6477
  endpoint=g_param[OptionsDefine.Endpoint],
5653
6478
  proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
5654
6479
  )
5655
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
6480
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
5656
6481
  if g_param[OptionsDefine.Language]:
5657
6482
  profile.language = g_param[OptionsDefine.Language]
5658
6483
  mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
5659
6484
  client = mod.CdbClient(cred, g_param[OptionsDefine.Region], profile)
5660
6485
  client._sdkVersion += ("_CLI_" + __version__)
5661
6486
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
5662
- model = models.ResetRootAccountRequest()
6487
+ model = models.OpenAuditServiceRequest()
5663
6488
  model.from_json_string(json.dumps(args))
5664
6489
  start_time = time.time()
5665
6490
  while True:
5666
- rsp = client.ResetRootAccount(model)
6491
+ rsp = client.OpenAuditService(model)
5667
6492
  result = rsp.to_json_string()
5668
6493
  try:
5669
6494
  json_obj = json.loads(result)
@@ -5682,7 +6507,7 @@ def doResetRootAccount(args, parsed_globals):
5682
6507
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
5683
6508
 
5684
6509
 
5685
- def doModifyAccountPassword(args, parsed_globals):
6510
+ def doDeleteAuditLogFile(args, parsed_globals):
5686
6511
  g_param = parse_global_arg(parsed_globals)
5687
6512
 
5688
6513
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -5707,18 +6532,18 @@ def doModifyAccountPassword(args, parsed_globals):
5707
6532
  endpoint=g_param[OptionsDefine.Endpoint],
5708
6533
  proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
5709
6534
  )
5710
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
6535
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
5711
6536
  if g_param[OptionsDefine.Language]:
5712
6537
  profile.language = g_param[OptionsDefine.Language]
5713
6538
  mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
5714
6539
  client = mod.CdbClient(cred, g_param[OptionsDefine.Region], profile)
5715
6540
  client._sdkVersion += ("_CLI_" + __version__)
5716
6541
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
5717
- model = models.ModifyAccountPasswordRequest()
6542
+ model = models.DeleteAuditLogFileRequest()
5718
6543
  model.from_json_string(json.dumps(args))
5719
6544
  start_time = time.time()
5720
6545
  while True:
5721
- rsp = client.ModifyAccountPassword(model)
6546
+ rsp = client.DeleteAuditLogFile(model)
5722
6547
  result = rsp.to_json_string()
5723
6548
  try:
5724
6549
  json_obj = json.loads(result)
@@ -5737,7 +6562,7 @@ def doModifyAccountPassword(args, parsed_globals):
5737
6562
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
5738
6563
 
5739
6564
 
5740
- def doDescribeDBInstanceCharset(args, parsed_globals):
6565
+ def doDescribeAuditRuleTemplates(args, parsed_globals):
5741
6566
  g_param = parse_global_arg(parsed_globals)
5742
6567
 
5743
6568
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -5762,18 +6587,18 @@ def doDescribeDBInstanceCharset(args, parsed_globals):
5762
6587
  endpoint=g_param[OptionsDefine.Endpoint],
5763
6588
  proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
5764
6589
  )
5765
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
6590
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
5766
6591
  if g_param[OptionsDefine.Language]:
5767
6592
  profile.language = g_param[OptionsDefine.Language]
5768
6593
  mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
5769
6594
  client = mod.CdbClient(cred, g_param[OptionsDefine.Region], profile)
5770
6595
  client._sdkVersion += ("_CLI_" + __version__)
5771
6596
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
5772
- model = models.DescribeDBInstanceCharsetRequest()
6597
+ model = models.DescribeAuditRuleTemplatesRequest()
5773
6598
  model.from_json_string(json.dumps(args))
5774
6599
  start_time = time.time()
5775
6600
  while True:
5776
- rsp = client.DescribeDBInstanceCharset(model)
6601
+ rsp = client.DescribeAuditRuleTemplates(model)
5777
6602
  result = rsp.to_json_string()
5778
6603
  try:
5779
6604
  json_obj = json.loads(result)
@@ -5792,7 +6617,7 @@ def doDescribeDBInstanceCharset(args, parsed_globals):
5792
6617
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
5793
6618
 
5794
6619
 
5795
- def doModifyAccountDescription(args, parsed_globals):
6620
+ def doModifyBackupConfig(args, parsed_globals):
5796
6621
  g_param = parse_global_arg(parsed_globals)
5797
6622
 
5798
6623
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -5817,18 +6642,18 @@ def doModifyAccountDescription(args, parsed_globals):
5817
6642
  endpoint=g_param[OptionsDefine.Endpoint],
5818
6643
  proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
5819
6644
  )
5820
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
6645
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
5821
6646
  if g_param[OptionsDefine.Language]:
5822
6647
  profile.language = g_param[OptionsDefine.Language]
5823
6648
  mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
5824
6649
  client = mod.CdbClient(cred, g_param[OptionsDefine.Region], profile)
5825
6650
  client._sdkVersion += ("_CLI_" + __version__)
5826
6651
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
5827
- model = models.ModifyAccountDescriptionRequest()
6652
+ model = models.ModifyBackupConfigRequest()
5828
6653
  model.from_json_string(json.dumps(args))
5829
6654
  start_time = time.time()
5830
6655
  while True:
5831
- rsp = client.ModifyAccountDescription(model)
6656
+ rsp = client.ModifyBackupConfig(model)
5832
6657
  result = rsp.to_json_string()
5833
6658
  try:
5834
6659
  json_obj = json.loads(result)
@@ -5847,7 +6672,7 @@ def doModifyAccountDescription(args, parsed_globals):
5847
6672
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
5848
6673
 
5849
6674
 
5850
- def doDescribeSlowLogData(args, parsed_globals):
6675
+ def doDescribeAuditRules(args, parsed_globals):
5851
6676
  g_param = parse_global_arg(parsed_globals)
5852
6677
 
5853
6678
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -5872,18 +6697,18 @@ def doDescribeSlowLogData(args, parsed_globals):
5872
6697
  endpoint=g_param[OptionsDefine.Endpoint],
5873
6698
  proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
5874
6699
  )
5875
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
6700
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
5876
6701
  if g_param[OptionsDefine.Language]:
5877
6702
  profile.language = g_param[OptionsDefine.Language]
5878
6703
  mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
5879
6704
  client = mod.CdbClient(cred, g_param[OptionsDefine.Region], profile)
5880
6705
  client._sdkVersion += ("_CLI_" + __version__)
5881
6706
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
5882
- model = models.DescribeSlowLogDataRequest()
6707
+ model = models.DescribeAuditRulesRequest()
5883
6708
  model.from_json_string(json.dumps(args))
5884
6709
  start_time = time.time()
5885
6710
  while True:
5886
- rsp = client.DescribeSlowLogData(model)
6711
+ rsp = client.DescribeAuditRules(model)
5887
6712
  result = rsp.to_json_string()
5888
6713
  try:
5889
6714
  json_obj = json.loads(result)
@@ -5902,7 +6727,7 @@ def doDescribeSlowLogData(args, parsed_globals):
5902
6727
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
5903
6728
 
5904
6729
 
5905
- def doOpenAuditService(args, parsed_globals):
6730
+ def doDescribeRemoteBackupConfig(args, parsed_globals):
5906
6731
  g_param = parse_global_arg(parsed_globals)
5907
6732
 
5908
6733
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -5927,18 +6752,18 @@ def doOpenAuditService(args, parsed_globals):
5927
6752
  endpoint=g_param[OptionsDefine.Endpoint],
5928
6753
  proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
5929
6754
  )
5930
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
6755
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
5931
6756
  if g_param[OptionsDefine.Language]:
5932
6757
  profile.language = g_param[OptionsDefine.Language]
5933
6758
  mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
5934
6759
  client = mod.CdbClient(cred, g_param[OptionsDefine.Region], profile)
5935
6760
  client._sdkVersion += ("_CLI_" + __version__)
5936
6761
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
5937
- model = models.OpenAuditServiceRequest()
6762
+ model = models.DescribeRemoteBackupConfigRequest()
5938
6763
  model.from_json_string(json.dumps(args))
5939
6764
  start_time = time.time()
5940
6765
  while True:
5941
- rsp = client.OpenAuditService(model)
6766
+ rsp = client.DescribeRemoteBackupConfig(model)
5942
6767
  result = rsp.to_json_string()
5943
6768
  try:
5944
6769
  json_obj = json.loads(result)
@@ -5957,7 +6782,7 @@ def doOpenAuditService(args, parsed_globals):
5957
6782
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
5958
6783
 
5959
6784
 
5960
- def doModifyBackupConfig(args, parsed_globals):
6785
+ def doModifyCdbProxyAddressVipAndVPort(args, parsed_globals):
5961
6786
  g_param = parse_global_arg(parsed_globals)
5962
6787
 
5963
6788
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -5982,18 +6807,18 @@ def doModifyBackupConfig(args, parsed_globals):
5982
6807
  endpoint=g_param[OptionsDefine.Endpoint],
5983
6808
  proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
5984
6809
  )
5985
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
6810
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
5986
6811
  if g_param[OptionsDefine.Language]:
5987
6812
  profile.language = g_param[OptionsDefine.Language]
5988
6813
  mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
5989
6814
  client = mod.CdbClient(cred, g_param[OptionsDefine.Region], profile)
5990
6815
  client._sdkVersion += ("_CLI_" + __version__)
5991
6816
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
5992
- model = models.ModifyBackupConfigRequest()
6817
+ model = models.ModifyCdbProxyAddressVipAndVPortRequest()
5993
6818
  model.from_json_string(json.dumps(args))
5994
6819
  start_time = time.time()
5995
6820
  while True:
5996
- rsp = client.ModifyBackupConfig(model)
6821
+ rsp = client.ModifyCdbProxyAddressVipAndVPort(model)
5997
6822
  result = rsp.to_json_string()
5998
6823
  try:
5999
6824
  json_obj = json.loads(result)
@@ -6012,7 +6837,7 @@ def doModifyBackupConfig(args, parsed_globals):
6012
6837
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
6013
6838
 
6014
6839
 
6015
- def doDescribeAuditRules(args, parsed_globals):
6840
+ def doDescribeDBInstanceLogToCLS(args, parsed_globals):
6016
6841
  g_param = parse_global_arg(parsed_globals)
6017
6842
 
6018
6843
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -6037,18 +6862,18 @@ def doDescribeAuditRules(args, parsed_globals):
6037
6862
  endpoint=g_param[OptionsDefine.Endpoint],
6038
6863
  proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
6039
6864
  )
6040
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
6865
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
6041
6866
  if g_param[OptionsDefine.Language]:
6042
6867
  profile.language = g_param[OptionsDefine.Language]
6043
6868
  mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
6044
6869
  client = mod.CdbClient(cred, g_param[OptionsDefine.Region], profile)
6045
6870
  client._sdkVersion += ("_CLI_" + __version__)
6046
6871
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
6047
- model = models.DescribeAuditRulesRequest()
6872
+ model = models.DescribeDBInstanceLogToCLSRequest()
6048
6873
  model.from_json_string(json.dumps(args))
6049
6874
  start_time = time.time()
6050
6875
  while True:
6051
- rsp = client.DescribeAuditRules(model)
6876
+ rsp = client.DescribeDBInstanceLogToCLS(model)
6052
6877
  result = rsp.to_json_string()
6053
6878
  try:
6054
6879
  json_obj = json.loads(result)
@@ -6067,7 +6892,7 @@ def doDescribeAuditRules(args, parsed_globals):
6067
6892
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
6068
6893
 
6069
6894
 
6070
- def doDescribeRemoteBackupConfig(args, parsed_globals):
6895
+ def doDescribeAuditRuleTemplateModifyHistory(args, parsed_globals):
6071
6896
  g_param = parse_global_arg(parsed_globals)
6072
6897
 
6073
6898
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -6092,18 +6917,18 @@ def doDescribeRemoteBackupConfig(args, parsed_globals):
6092
6917
  endpoint=g_param[OptionsDefine.Endpoint],
6093
6918
  proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
6094
6919
  )
6095
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
6920
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
6096
6921
  if g_param[OptionsDefine.Language]:
6097
6922
  profile.language = g_param[OptionsDefine.Language]
6098
6923
  mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
6099
6924
  client = mod.CdbClient(cred, g_param[OptionsDefine.Region], profile)
6100
6925
  client._sdkVersion += ("_CLI_" + __version__)
6101
6926
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
6102
- model = models.DescribeRemoteBackupConfigRequest()
6927
+ model = models.DescribeAuditRuleTemplateModifyHistoryRequest()
6103
6928
  model.from_json_string(json.dumps(args))
6104
6929
  start_time = time.time()
6105
6930
  while True:
6106
- rsp = client.DescribeRemoteBackupConfig(model)
6931
+ rsp = client.DescribeAuditRuleTemplateModifyHistory(model)
6107
6932
  result = rsp.to_json_string()
6108
6933
  try:
6109
6934
  json_obj = json.loads(result)
@@ -6122,7 +6947,7 @@ def doDescribeRemoteBackupConfig(args, parsed_globals):
6122
6947
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
6123
6948
 
6124
6949
 
6125
- def doModifyCdbProxyAddressVipAndVPort(args, parsed_globals):
6950
+ def doCreateCdbProxy(args, parsed_globals):
6126
6951
  g_param = parse_global_arg(parsed_globals)
6127
6952
 
6128
6953
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -6147,18 +6972,18 @@ def doModifyCdbProxyAddressVipAndVPort(args, parsed_globals):
6147
6972
  endpoint=g_param[OptionsDefine.Endpoint],
6148
6973
  proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
6149
6974
  )
6150
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
6975
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
6151
6976
  if g_param[OptionsDefine.Language]:
6152
6977
  profile.language = g_param[OptionsDefine.Language]
6153
6978
  mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
6154
6979
  client = mod.CdbClient(cred, g_param[OptionsDefine.Region], profile)
6155
6980
  client._sdkVersion += ("_CLI_" + __version__)
6156
6981
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
6157
- model = models.ModifyCdbProxyAddressVipAndVPortRequest()
6982
+ model = models.CreateCdbProxyRequest()
6158
6983
  model.from_json_string(json.dumps(args))
6159
6984
  start_time = time.time()
6160
6985
  while True:
6161
- rsp = client.ModifyCdbProxyAddressVipAndVPort(model)
6986
+ rsp = client.CreateCdbProxy(model)
6162
6987
  result = rsp.to_json_string()
6163
6988
  try:
6164
6989
  json_obj = json.loads(result)
@@ -6177,7 +7002,7 @@ def doModifyCdbProxyAddressVipAndVPort(args, parsed_globals):
6177
7002
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
6178
7003
 
6179
7004
 
6180
- def doDescribeDBInstanceLogToCLS(args, parsed_globals):
7005
+ def doModifyAutoRenewFlag(args, parsed_globals):
6181
7006
  g_param = parse_global_arg(parsed_globals)
6182
7007
 
6183
7008
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -6202,18 +7027,18 @@ def doDescribeDBInstanceLogToCLS(args, parsed_globals):
6202
7027
  endpoint=g_param[OptionsDefine.Endpoint],
6203
7028
  proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
6204
7029
  )
6205
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
7030
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
6206
7031
  if g_param[OptionsDefine.Language]:
6207
7032
  profile.language = g_param[OptionsDefine.Language]
6208
7033
  mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
6209
7034
  client = mod.CdbClient(cred, g_param[OptionsDefine.Region], profile)
6210
7035
  client._sdkVersion += ("_CLI_" + __version__)
6211
7036
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
6212
- model = models.DescribeDBInstanceLogToCLSRequest()
7037
+ model = models.ModifyAutoRenewFlagRequest()
6213
7038
  model.from_json_string(json.dumps(args))
6214
7039
  start_time = time.time()
6215
7040
  while True:
6216
- rsp = client.DescribeDBInstanceLogToCLS(model)
7041
+ rsp = client.ModifyAutoRenewFlag(model)
6217
7042
  result = rsp.to_json_string()
6218
7043
  try:
6219
7044
  json_obj = json.loads(result)
@@ -6232,7 +7057,7 @@ def doDescribeDBInstanceLogToCLS(args, parsed_globals):
6232
7057
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
6233
7058
 
6234
7059
 
6235
- def doCreateCdbProxy(args, parsed_globals):
7060
+ def doSwitchCDBProxy(args, parsed_globals):
6236
7061
  g_param = parse_global_arg(parsed_globals)
6237
7062
 
6238
7063
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -6257,18 +7082,18 @@ def doCreateCdbProxy(args, parsed_globals):
6257
7082
  endpoint=g_param[OptionsDefine.Endpoint],
6258
7083
  proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
6259
7084
  )
6260
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
7085
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
6261
7086
  if g_param[OptionsDefine.Language]:
6262
7087
  profile.language = g_param[OptionsDefine.Language]
6263
7088
  mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
6264
7089
  client = mod.CdbClient(cred, g_param[OptionsDefine.Region], profile)
6265
7090
  client._sdkVersion += ("_CLI_" + __version__)
6266
7091
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
6267
- model = models.CreateCdbProxyRequest()
7092
+ model = models.SwitchCDBProxyRequest()
6268
7093
  model.from_json_string(json.dumps(args))
6269
7094
  start_time = time.time()
6270
7095
  while True:
6271
- rsp = client.CreateCdbProxy(model)
7096
+ rsp = client.SwitchCDBProxy(model)
6272
7097
  result = rsp.to_json_string()
6273
7098
  try:
6274
7099
  json_obj = json.loads(result)
@@ -6287,7 +7112,7 @@ def doCreateCdbProxy(args, parsed_globals):
6287
7112
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
6288
7113
 
6289
7114
 
6290
- def doModifyAutoRenewFlag(args, parsed_globals):
7115
+ def doModifyAuditService(args, parsed_globals):
6291
7116
  g_param = parse_global_arg(parsed_globals)
6292
7117
 
6293
7118
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -6312,18 +7137,18 @@ def doModifyAutoRenewFlag(args, parsed_globals):
6312
7137
  endpoint=g_param[OptionsDefine.Endpoint],
6313
7138
  proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
6314
7139
  )
6315
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
7140
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
6316
7141
  if g_param[OptionsDefine.Language]:
6317
7142
  profile.language = g_param[OptionsDefine.Language]
6318
7143
  mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
6319
7144
  client = mod.CdbClient(cred, g_param[OptionsDefine.Region], profile)
6320
7145
  client._sdkVersion += ("_CLI_" + __version__)
6321
7146
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
6322
- model = models.ModifyAutoRenewFlagRequest()
7147
+ model = models.ModifyAuditServiceRequest()
6323
7148
  model.from_json_string(json.dumps(args))
6324
7149
  start_time = time.time()
6325
7150
  while True:
6326
- rsp = client.ModifyAutoRenewFlag(model)
7151
+ rsp = client.ModifyAuditService(model)
6327
7152
  result = rsp.to_json_string()
6328
7153
  try:
6329
7154
  json_obj = json.loads(result)
@@ -6342,7 +7167,7 @@ def doModifyAutoRenewFlag(args, parsed_globals):
6342
7167
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
6343
7168
 
6344
7169
 
6345
- def doSwitchCDBProxy(args, parsed_globals):
7170
+ def doRenewDBInstance(args, parsed_globals):
6346
7171
  g_param = parse_global_arg(parsed_globals)
6347
7172
 
6348
7173
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -6367,18 +7192,18 @@ def doSwitchCDBProxy(args, parsed_globals):
6367
7192
  endpoint=g_param[OptionsDefine.Endpoint],
6368
7193
  proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
6369
7194
  )
6370
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
7195
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
6371
7196
  if g_param[OptionsDefine.Language]:
6372
7197
  profile.language = g_param[OptionsDefine.Language]
6373
7198
  mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
6374
7199
  client = mod.CdbClient(cred, g_param[OptionsDefine.Region], profile)
6375
7200
  client._sdkVersion += ("_CLI_" + __version__)
6376
7201
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
6377
- model = models.SwitchCDBProxyRequest()
7202
+ model = models.RenewDBInstanceRequest()
6378
7203
  model.from_json_string(json.dumps(args))
6379
7204
  start_time = time.time()
6380
7205
  while True:
6381
- rsp = client.SwitchCDBProxy(model)
7206
+ rsp = client.RenewDBInstance(model)
6382
7207
  result = rsp.to_json_string()
6383
7208
  try:
6384
7209
  json_obj = json.loads(result)
@@ -6397,7 +7222,7 @@ def doSwitchCDBProxy(args, parsed_globals):
6397
7222
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
6398
7223
 
6399
7224
 
6400
- def doRenewDBInstance(args, parsed_globals):
7225
+ def doStartBatchRollback(args, parsed_globals):
6401
7226
  g_param = parse_global_arg(parsed_globals)
6402
7227
 
6403
7228
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -6422,18 +7247,18 @@ def doRenewDBInstance(args, parsed_globals):
6422
7247
  endpoint=g_param[OptionsDefine.Endpoint],
6423
7248
  proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
6424
7249
  )
6425
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
7250
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
6426
7251
  if g_param[OptionsDefine.Language]:
6427
7252
  profile.language = g_param[OptionsDefine.Language]
6428
7253
  mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
6429
7254
  client = mod.CdbClient(cred, g_param[OptionsDefine.Region], profile)
6430
7255
  client._sdkVersion += ("_CLI_" + __version__)
6431
7256
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
6432
- model = models.RenewDBInstanceRequest()
7257
+ model = models.StartBatchRollbackRequest()
6433
7258
  model.from_json_string(json.dumps(args))
6434
7259
  start_time = time.time()
6435
7260
  while True:
6436
- rsp = client.RenewDBInstance(model)
7261
+ rsp = client.StartBatchRollback(model)
6437
7262
  result = rsp.to_json_string()
6438
7263
  try:
6439
7264
  json_obj = json.loads(result)
@@ -6452,7 +7277,7 @@ def doRenewDBInstance(args, parsed_globals):
6452
7277
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
6453
7278
 
6454
7279
 
6455
- def doStartBatchRollback(args, parsed_globals):
7280
+ def doDescribeDeviceMonitorInfo(args, parsed_globals):
6456
7281
  g_param = parse_global_arg(parsed_globals)
6457
7282
 
6458
7283
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -6477,18 +7302,18 @@ def doStartBatchRollback(args, parsed_globals):
6477
7302
  endpoint=g_param[OptionsDefine.Endpoint],
6478
7303
  proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
6479
7304
  )
6480
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
7305
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
6481
7306
  if g_param[OptionsDefine.Language]:
6482
7307
  profile.language = g_param[OptionsDefine.Language]
6483
7308
  mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
6484
7309
  client = mod.CdbClient(cred, g_param[OptionsDefine.Region], profile)
6485
7310
  client._sdkVersion += ("_CLI_" + __version__)
6486
7311
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
6487
- model = models.StartBatchRollbackRequest()
7312
+ model = models.DescribeDeviceMonitorInfoRequest()
6488
7313
  model.from_json_string(json.dumps(args))
6489
7314
  start_time = time.time()
6490
7315
  while True:
6491
- rsp = client.StartBatchRollback(model)
7316
+ rsp = client.DescribeDeviceMonitorInfo(model)
6492
7317
  result = rsp.to_json_string()
6493
7318
  try:
6494
7319
  json_obj = json.loads(result)
@@ -6507,7 +7332,7 @@ def doStartBatchRollback(args, parsed_globals):
6507
7332
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
6508
7333
 
6509
7334
 
6510
- def doDescribeDeviceMonitorInfo(args, parsed_globals):
7335
+ def doOpenWanService(args, parsed_globals):
6511
7336
  g_param = parse_global_arg(parsed_globals)
6512
7337
 
6513
7338
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -6532,18 +7357,18 @@ def doDescribeDeviceMonitorInfo(args, parsed_globals):
6532
7357
  endpoint=g_param[OptionsDefine.Endpoint],
6533
7358
  proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
6534
7359
  )
6535
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
7360
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
6536
7361
  if g_param[OptionsDefine.Language]:
6537
7362
  profile.language = g_param[OptionsDefine.Language]
6538
7363
  mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
6539
7364
  client = mod.CdbClient(cred, g_param[OptionsDefine.Region], profile)
6540
7365
  client._sdkVersion += ("_CLI_" + __version__)
6541
7366
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
6542
- model = models.DescribeDeviceMonitorInfoRequest()
7367
+ model = models.OpenWanServiceRequest()
6543
7368
  model.from_json_string(json.dumps(args))
6544
7369
  start_time = time.time()
6545
7370
  while True:
6546
- rsp = client.DescribeDeviceMonitorInfo(model)
7371
+ rsp = client.OpenWanService(model)
6547
7372
  result = rsp.to_json_string()
6548
7373
  try:
6549
7374
  json_obj = json.loads(result)
@@ -6562,7 +7387,7 @@ def doDescribeDeviceMonitorInfo(args, parsed_globals):
6562
7387
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
6563
7388
 
6564
7389
 
6565
- def doOpenWanService(args, parsed_globals):
7390
+ def doModifyDBInstanceSecurityGroups(args, parsed_globals):
6566
7391
  g_param = parse_global_arg(parsed_globals)
6567
7392
 
6568
7393
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -6587,18 +7412,18 @@ def doOpenWanService(args, parsed_globals):
6587
7412
  endpoint=g_param[OptionsDefine.Endpoint],
6588
7413
  proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
6589
7414
  )
6590
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
7415
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
6591
7416
  if g_param[OptionsDefine.Language]:
6592
7417
  profile.language = g_param[OptionsDefine.Language]
6593
7418
  mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
6594
7419
  client = mod.CdbClient(cred, g_param[OptionsDefine.Region], profile)
6595
7420
  client._sdkVersion += ("_CLI_" + __version__)
6596
7421
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
6597
- model = models.OpenWanServiceRequest()
7422
+ model = models.ModifyDBInstanceSecurityGroupsRequest()
6598
7423
  model.from_json_string(json.dumps(args))
6599
7424
  start_time = time.time()
6600
7425
  while True:
6601
- rsp = client.OpenWanService(model)
7426
+ rsp = client.ModifyDBInstanceSecurityGroups(model)
6602
7427
  result = rsp.to_json_string()
6603
7428
  try:
6604
7429
  json_obj = json.loads(result)
@@ -6617,7 +7442,7 @@ def doOpenWanService(args, parsed_globals):
6617
7442
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
6618
7443
 
6619
7444
 
6620
- def doModifyDBInstanceSecurityGroups(args, parsed_globals):
7445
+ def doModifyDBInstanceProject(args, parsed_globals):
6621
7446
  g_param = parse_global_arg(parsed_globals)
6622
7447
 
6623
7448
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -6642,18 +7467,18 @@ def doModifyDBInstanceSecurityGroups(args, parsed_globals):
6642
7467
  endpoint=g_param[OptionsDefine.Endpoint],
6643
7468
  proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
6644
7469
  )
6645
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
7470
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
6646
7471
  if g_param[OptionsDefine.Language]:
6647
7472
  profile.language = g_param[OptionsDefine.Language]
6648
7473
  mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
6649
7474
  client = mod.CdbClient(cred, g_param[OptionsDefine.Region], profile)
6650
7475
  client._sdkVersion += ("_CLI_" + __version__)
6651
7476
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
6652
- model = models.ModifyDBInstanceSecurityGroupsRequest()
7477
+ model = models.ModifyDBInstanceProjectRequest()
6653
7478
  model.from_json_string(json.dumps(args))
6654
7479
  start_time = time.time()
6655
7480
  while True:
6656
- rsp = client.ModifyDBInstanceSecurityGroups(model)
7481
+ rsp = client.ModifyDBInstanceProject(model)
6657
7482
  result = rsp.to_json_string()
6658
7483
  try:
6659
7484
  json_obj = json.loads(result)
@@ -6672,7 +7497,7 @@ def doModifyDBInstanceSecurityGroups(args, parsed_globals):
6672
7497
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
6673
7498
 
6674
7499
 
6675
- def doModifyDBInstanceProject(args, parsed_globals):
7500
+ def doStartCpuExpand(args, parsed_globals):
6676
7501
  g_param = parse_global_arg(parsed_globals)
6677
7502
 
6678
7503
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -6697,18 +7522,18 @@ def doModifyDBInstanceProject(args, parsed_globals):
6697
7522
  endpoint=g_param[OptionsDefine.Endpoint],
6698
7523
  proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
6699
7524
  )
6700
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
7525
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
6701
7526
  if g_param[OptionsDefine.Language]:
6702
7527
  profile.language = g_param[OptionsDefine.Language]
6703
7528
  mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
6704
7529
  client = mod.CdbClient(cred, g_param[OptionsDefine.Region], profile)
6705
7530
  client._sdkVersion += ("_CLI_" + __version__)
6706
7531
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
6707
- model = models.ModifyDBInstanceProjectRequest()
7532
+ model = models.StartCpuExpandRequest()
6708
7533
  model.from_json_string(json.dumps(args))
6709
7534
  start_time = time.time()
6710
7535
  while True:
6711
- rsp = client.ModifyDBInstanceProject(model)
7536
+ rsp = client.StartCpuExpand(model)
6712
7537
  result = rsp.to_json_string()
6713
7538
  try:
6714
7539
  json_obj = json.loads(result)
@@ -6727,7 +7552,7 @@ def doModifyDBInstanceProject(args, parsed_globals):
6727
7552
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
6728
7553
 
6729
7554
 
6730
- def doStartCpuExpand(args, parsed_globals):
7555
+ def doDescribeSupportedPrivileges(args, parsed_globals):
6731
7556
  g_param = parse_global_arg(parsed_globals)
6732
7557
 
6733
7558
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -6752,18 +7577,18 @@ def doStartCpuExpand(args, parsed_globals):
6752
7577
  endpoint=g_param[OptionsDefine.Endpoint],
6753
7578
  proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
6754
7579
  )
6755
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
7580
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
6756
7581
  if g_param[OptionsDefine.Language]:
6757
7582
  profile.language = g_param[OptionsDefine.Language]
6758
7583
  mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
6759
7584
  client = mod.CdbClient(cred, g_param[OptionsDefine.Region], profile)
6760
7585
  client._sdkVersion += ("_CLI_" + __version__)
6761
7586
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
6762
- model = models.StartCpuExpandRequest()
7587
+ model = models.DescribeSupportedPrivilegesRequest()
6763
7588
  model.from_json_string(json.dumps(args))
6764
7589
  start_time = time.time()
6765
7590
  while True:
6766
- rsp = client.StartCpuExpand(model)
7591
+ rsp = client.DescribeSupportedPrivileges(model)
6767
7592
  result = rsp.to_json_string()
6768
7593
  try:
6769
7594
  json_obj = json.loads(result)
@@ -6782,7 +7607,7 @@ def doStartCpuExpand(args, parsed_globals):
6782
7607
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
6783
7608
 
6784
7609
 
6785
- def doDescribeSupportedPrivileges(args, parsed_globals):
7610
+ def doDeleteParamTemplate(args, parsed_globals):
6786
7611
  g_param = parse_global_arg(parsed_globals)
6787
7612
 
6788
7613
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -6807,18 +7632,18 @@ def doDescribeSupportedPrivileges(args, parsed_globals):
6807
7632
  endpoint=g_param[OptionsDefine.Endpoint],
6808
7633
  proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
6809
7634
  )
6810
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
7635
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
6811
7636
  if g_param[OptionsDefine.Language]:
6812
7637
  profile.language = g_param[OptionsDefine.Language]
6813
7638
  mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
6814
7639
  client = mod.CdbClient(cred, g_param[OptionsDefine.Region], profile)
6815
7640
  client._sdkVersion += ("_CLI_" + __version__)
6816
7641
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
6817
- model = models.DescribeSupportedPrivilegesRequest()
7642
+ model = models.DeleteParamTemplateRequest()
6818
7643
  model.from_json_string(json.dumps(args))
6819
7644
  start_time = time.time()
6820
7645
  while True:
6821
- rsp = client.DescribeSupportedPrivileges(model)
7646
+ rsp = client.DeleteParamTemplate(model)
6822
7647
  result = rsp.to_json_string()
6823
7648
  try:
6824
7649
  json_obj = json.loads(result)
@@ -6862,7 +7687,7 @@ def doDescribeBinlogs(args, parsed_globals):
6862
7687
  endpoint=g_param[OptionsDefine.Endpoint],
6863
7688
  proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
6864
7689
  )
6865
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
7690
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
6866
7691
  if g_param[OptionsDefine.Language]:
6867
7692
  profile.language = g_param[OptionsDefine.Language]
6868
7693
  mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
@@ -6917,7 +7742,7 @@ def doDescribeDBSecurityGroups(args, parsed_globals):
6917
7742
  endpoint=g_param[OptionsDefine.Endpoint],
6918
7743
  proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
6919
7744
  )
6920
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
7745
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
6921
7746
  if g_param[OptionsDefine.Language]:
6922
7747
  profile.language = g_param[OptionsDefine.Language]
6923
7748
  mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
@@ -6972,7 +7797,7 @@ def doStartReplication(args, parsed_globals):
6972
7797
  endpoint=g_param[OptionsDefine.Endpoint],
6973
7798
  proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
6974
7799
  )
6975
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
7800
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
6976
7801
  if g_param[OptionsDefine.Language]:
6977
7802
  profile.language = g_param[OptionsDefine.Language]
6978
7803
  mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
@@ -7027,7 +7852,7 @@ def doDescribeCloneList(args, parsed_globals):
7027
7852
  endpoint=g_param[OptionsDefine.Endpoint],
7028
7853
  proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
7029
7854
  )
7030
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
7855
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
7031
7856
  if g_param[OptionsDefine.Language]:
7032
7857
  profile.language = g_param[OptionsDefine.Language]
7033
7858
  mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
@@ -7082,7 +7907,7 @@ def doModifyNameOrDescByDpId(args, parsed_globals):
7082
7907
  endpoint=g_param[OptionsDefine.Endpoint],
7083
7908
  proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
7084
7909
  )
7085
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
7910
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
7086
7911
  if g_param[OptionsDefine.Language]:
7087
7912
  profile.language = g_param[OptionsDefine.Language]
7088
7913
  mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
@@ -7137,7 +7962,7 @@ def doUpgradeDBInstance(args, parsed_globals):
7137
7962
  endpoint=g_param[OptionsDefine.Endpoint],
7138
7963
  proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
7139
7964
  )
7140
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
7965
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
7141
7966
  if g_param[OptionsDefine.Language]:
7142
7967
  profile.language = g_param[OptionsDefine.Language]
7143
7968
  mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
@@ -7192,7 +8017,7 @@ def doUpgradeCDBProxyVersion(args, parsed_globals):
7192
8017
  endpoint=g_param[OptionsDefine.Endpoint],
7193
8018
  proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
7194
8019
  )
7195
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
8020
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
7196
8021
  if g_param[OptionsDefine.Language]:
7197
8022
  profile.language = g_param[OptionsDefine.Language]
7198
8023
  mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
@@ -7247,7 +8072,7 @@ def doModifyRemoteBackupConfig(args, parsed_globals):
7247
8072
  endpoint=g_param[OptionsDefine.Endpoint],
7248
8073
  proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
7249
8074
  )
7250
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
8075
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
7251
8076
  if g_param[OptionsDefine.Language]:
7252
8077
  profile.language = g_param[OptionsDefine.Language]
7253
8078
  mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
@@ -7277,7 +8102,7 @@ def doModifyRemoteBackupConfig(args, parsed_globals):
7277
8102
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
7278
8103
 
7279
8104
 
7280
- def doDeleteTimeWindow(args, parsed_globals):
8105
+ def doModifyAccountMaxUserConnections(args, parsed_globals):
7281
8106
  g_param = parse_global_arg(parsed_globals)
7282
8107
 
7283
8108
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -7302,18 +8127,18 @@ def doDeleteTimeWindow(args, parsed_globals):
7302
8127
  endpoint=g_param[OptionsDefine.Endpoint],
7303
8128
  proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
7304
8129
  )
7305
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
8130
+ profile = ClientProfile(httpProfile=http_profile, signMethod="TC3-HMAC-SHA256")
7306
8131
  if g_param[OptionsDefine.Language]:
7307
8132
  profile.language = g_param[OptionsDefine.Language]
7308
8133
  mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
7309
8134
  client = mod.CdbClient(cred, g_param[OptionsDefine.Region], profile)
7310
8135
  client._sdkVersion += ("_CLI_" + __version__)
7311
8136
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
7312
- model = models.DeleteTimeWindowRequest()
8137
+ model = models.ModifyAccountMaxUserConnectionsRequest()
7313
8138
  model.from_json_string(json.dumps(args))
7314
8139
  start_time = time.time()
7315
8140
  while True:
7316
- rsp = client.DeleteTimeWindow(model)
8141
+ rsp = client.ModifyAccountMaxUserConnections(model)
7317
8142
  result = rsp.to_json_string()
7318
8143
  try:
7319
8144
  json_obj = json.loads(result)
@@ -7347,7 +8172,7 @@ ACTION_MAP = {
7347
8172
  "CreateRoInstanceIp": doCreateRoInstanceIp,
7348
8173
  "CreateAuditPolicy": doCreateAuditPolicy,
7349
8174
  "DescribeDBFeatures": doDescribeDBFeatures,
7350
- "DescribeDataBackupOverview": doDescribeDataBackupOverview,
8175
+ "CreateAuditRuleTemplate": doCreateAuditRuleTemplate,
7351
8176
  "BalanceRoGroupLoad": doBalanceRoGroupLoad,
7352
8177
  "IsolateDBInstance": doIsolateDBInstance,
7353
8178
  "DescribeAccounts": doDescribeAccounts,
@@ -7359,10 +8184,11 @@ ACTION_MAP = {
7359
8184
  "StopCpuExpand": doStopCpuExpand,
7360
8185
  "ModifyDBInstanceName": doModifyDBInstanceName,
7361
8186
  "DescribeCdbZoneConfig": doDescribeCdbZoneConfig,
8187
+ "CloseAuditService": doCloseAuditService,
7362
8188
  "StopRollback": doStopRollback,
7363
8189
  "DescribeRoGroups": doDescribeRoGroups,
7364
8190
  "OfflineIsolatedInstances": doOfflineIsolatedInstances,
7365
- "ModifyBackupEncryptionStatus": doModifyBackupEncryptionStatus,
8191
+ "CreateAuditLogFile": doCreateAuditLogFile,
7366
8192
  "OpenDBInstanceGTID": doOpenDBInstanceGTID,
7367
8193
  "DescribeRollbackTaskDetail": doDescribeRollbackTaskDetail,
7368
8194
  "ModifyBackupDownloadRestriction": doModifyBackupDownloadRestriction,
@@ -7377,17 +8203,22 @@ ACTION_MAP = {
7377
8203
  "DescribeDatabases": doDescribeDatabases,
7378
8204
  "DescribeErrorLogData": doDescribeErrorLogData,
7379
8205
  "SwitchDBInstanceMasterSlave": doSwitchDBInstanceMasterSlave,
8206
+ "CreateDatabase": doCreateDatabase,
7380
8207
  "DisassociateSecurityGroups": doDisassociateSecurityGroups,
7381
8208
  "ModifyCdbProxyParam": doModifyCdbProxyParam,
7382
8209
  "DescribeTables": doDescribeTables,
8210
+ "DeleteTimeWindow": doDeleteTimeWindow,
7383
8211
  "DescribeAccountPrivileges": doDescribeAccountPrivileges,
8212
+ "DescribeDataBackupOverview": doDescribeDataBackupOverview,
7384
8213
  "ReleaseIsolatedDBInstances": doReleaseIsolatedDBInstances,
7385
8214
  "CreateCloneInstance": doCreateCloneInstance,
8215
+ "ModifyAuditConfig": doModifyAuditConfig,
7386
8216
  "ModifyInstancePasswordComplexity": doModifyInstancePasswordComplexity,
7387
8217
  "ModifyTimeWindow": doModifyTimeWindow,
7388
8218
  "SwitchForUpgrade": doSwitchForUpgrade,
7389
- "DeleteParamTemplate": doDeleteParamTemplate,
8219
+ "DeleteAuditRuleTemplates": doDeleteAuditRuleTemplates,
7390
8220
  "DescribeBackups": doDescribeBackups,
8221
+ "DescribeAuditInstanceList": doDescribeAuditInstanceList,
7391
8222
  "CreateParamTemplate": doCreateParamTemplate,
7392
8223
  "CreateDBInstanceHour": doCreateDBInstanceHour,
7393
8224
  "AddTimeWindow": doAddTimeWindow,
@@ -7397,10 +8228,10 @@ ACTION_MAP = {
7397
8228
  "ModifyDBInstanceVipVport": doModifyDBInstanceVipVport,
7398
8229
  "DescribeDBInstanceConfig": doDescribeDBInstanceConfig,
7399
8230
  "CreateCdbProxyAddress": doCreateCdbProxyAddress,
7400
- "CreateDatabase": doCreateDatabase,
8231
+ "DeleteAuditPolicy": doDeleteAuditPolicy,
7401
8232
  "DescribeProjectSecurityGroups": doDescribeProjectSecurityGroups,
7402
8233
  "DescribeSlowLogs": doDescribeSlowLogs,
7403
- "ModifyLocalBinlogConfig": doModifyLocalBinlogConfig,
8234
+ "ModifyInstanceParam": doModifyInstanceParam,
7404
8235
  "CreateDBInstance": doCreateDBInstance,
7405
8236
  "ModifyParamTemplate": doModifyParamTemplate,
7406
8237
  "DescribeInstanceParams": doDescribeInstanceParams,
@@ -7411,6 +8242,7 @@ ACTION_MAP = {
7411
8242
  "CreateAccounts": doCreateAccounts,
7412
8243
  "AdjustCdbProxy": doAdjustCdbProxy,
7413
8244
  "UpgradeDBInstanceEngineVersion": doUpgradeDBInstanceEngineVersion,
8245
+ "DescribeAuditLogFiles": doDescribeAuditLogFiles,
7414
8246
  "DescribeBackupDecryptionKey": doDescribeBackupDecryptionKey,
7415
8247
  "DescribeInstanceParamRecords": doDescribeInstanceParamRecords,
7416
8248
  "DescribeBackupSummaries": doDescribeBackupSummaries,
@@ -7426,39 +8258,46 @@ ACTION_MAP = {
7426
8258
  "DescribeProxyCustomConf": doDescribeProxyCustomConf,
7427
8259
  "AdjustCdbProxyAddress": doAdjustCdbProxyAddress,
7428
8260
  "DescribeCdbProxyInfo": doDescribeCdbProxyInfo,
7429
- "ModifyInstanceParam": doModifyInstanceParam,
8261
+ "DescribeAuditConfig": doDescribeAuditConfig,
8262
+ "ModifyLocalBinlogConfig": doModifyLocalBinlogConfig,
7430
8263
  "CloseCDBProxy": doCloseCDBProxy,
7431
- "ModifyAccountMaxUserConnections": doModifyAccountMaxUserConnections,
7432
8264
  "DescribeAsyncRequestInfo": doDescribeAsyncRequestInfo,
7433
8265
  "DescribeAuditLogs": doDescribeAuditLogs,
7434
8266
  "DescribeDBInstanceRebootTime": doDescribeDBInstanceRebootTime,
7435
8267
  "DescribeDBInstances": doDescribeDBInstances,
7436
8268
  "ModifyRoGroupInfo": doModifyRoGroupInfo,
7437
- "DescribeUploadedFiles": doDescribeUploadedFiles,
8269
+ "DescribeDBInstanceCharset": doDescribeDBInstanceCharset,
7438
8270
  "AssociateSecurityGroups": doAssociateSecurityGroups,
7439
8271
  "DescribeDBPrice": doDescribeDBPrice,
7440
8272
  "ModifyAccountPrivileges": doModifyAccountPrivileges,
7441
8273
  "DescribeDBImportRecords": doDescribeDBImportRecords,
7442
8274
  "DescribeDBSwitchRecords": doDescribeDBSwitchRecords,
8275
+ "CreateRotationPassword": doCreateRotationPassword,
7443
8276
  "CreateDBImportJob": doCreateDBImportJob,
7444
8277
  "RestartDBInstances": doRestartDBInstances,
7445
8278
  "DescribeCpuExpandStrategy": doDescribeCpuExpandStrategy,
7446
8279
  "ReloadBalanceProxyNode": doReloadBalanceProxyNode,
8280
+ "ModifyBackupEncryptionStatus": doModifyBackupEncryptionStatus,
7447
8281
  "DescribeBackupDownloadRestriction": doDescribeBackupDownloadRestriction,
7448
8282
  "ResetRootAccount": doResetRootAccount,
8283
+ "ModifyAuditRuleTemplates": doModifyAuditRuleTemplates,
7449
8284
  "ModifyAccountPassword": doModifyAccountPassword,
7450
- "DescribeDBInstanceCharset": doDescribeDBInstanceCharset,
8285
+ "DescribeUploadedFiles": doDescribeUploadedFiles,
7451
8286
  "ModifyAccountDescription": doModifyAccountDescription,
7452
8287
  "DescribeSlowLogData": doDescribeSlowLogData,
7453
8288
  "OpenAuditService": doOpenAuditService,
8289
+ "DeleteAuditLogFile": doDeleteAuditLogFile,
8290
+ "DescribeAuditRuleTemplates": doDescribeAuditRuleTemplates,
7454
8291
  "ModifyBackupConfig": doModifyBackupConfig,
7455
8292
  "DescribeAuditRules": doDescribeAuditRules,
7456
8293
  "DescribeRemoteBackupConfig": doDescribeRemoteBackupConfig,
7457
8294
  "ModifyCdbProxyAddressVipAndVPort": doModifyCdbProxyAddressVipAndVPort,
7458
8295
  "DescribeDBInstanceLogToCLS": doDescribeDBInstanceLogToCLS,
8296
+ "DescribeAuditRuleTemplateModifyHistory": doDescribeAuditRuleTemplateModifyHistory,
7459
8297
  "CreateCdbProxy": doCreateCdbProxy,
7460
8298
  "ModifyAutoRenewFlag": doModifyAutoRenewFlag,
7461
8299
  "SwitchCDBProxy": doSwitchCDBProxy,
8300
+ "ModifyAuditService": doModifyAuditService,
7462
8301
  "RenewDBInstance": doRenewDBInstance,
7463
8302
  "StartBatchRollback": doStartBatchRollback,
7464
8303
  "DescribeDeviceMonitorInfo": doDescribeDeviceMonitorInfo,
@@ -7467,6 +8306,7 @@ ACTION_MAP = {
7467
8306
  "ModifyDBInstanceProject": doModifyDBInstanceProject,
7468
8307
  "StartCpuExpand": doStartCpuExpand,
7469
8308
  "DescribeSupportedPrivileges": doDescribeSupportedPrivileges,
8309
+ "DeleteParamTemplate": doDeleteParamTemplate,
7470
8310
  "DescribeBinlogs": doDescribeBinlogs,
7471
8311
  "DescribeDBSecurityGroups": doDescribeDBSecurityGroups,
7472
8312
  "StartReplication": doStartReplication,
@@ -7475,7 +8315,7 @@ ACTION_MAP = {
7475
8315
  "UpgradeDBInstance": doUpgradeDBInstance,
7476
8316
  "UpgradeCDBProxyVersion": doUpgradeCDBProxyVersion,
7477
8317
  "ModifyRemoteBackupConfig": doModifyRemoteBackupConfig,
7478
- "DeleteTimeWindow": doDeleteTimeWindow,
8318
+ "ModifyAccountMaxUserConnections": doModifyAccountMaxUserConnections,
7479
8319
 
7480
8320
  }
7481
8321