tccli 3.0.1215.1__py2.py3-none-any.whl → 3.0.1217.1__py2.py3-none-any.whl

Sign up to get free protection for your applications and to get access to all the features.
Files changed (282) hide show
  1. tccli/__init__.py +1 -1
  2. tccli/argparser.py +1 -1
  3. tccli/command.py +2 -2
  4. tccli/configure.py +46 -1
  5. tccli/credentials.py +25 -0
  6. tccli/main.py +6 -2
  7. tccli/plugins/sso/__init__.py +61 -0
  8. tccli/plugins/sso/configs.py +4 -0
  9. tccli/plugins/sso/configure.py +45 -0
  10. tccli/plugins/sso/login.py +144 -0
  11. tccli/plugins/sso/logout.py +21 -0
  12. tccli/plugins/sso/terminal.py +161 -0
  13. tccli/plugins/sso/texts.py +40 -0
  14. tccli/services/__init__.py +6 -3
  15. tccli/services/acp/v20220105/api.json +7 -7
  16. tccli/services/acp/v20220105/examples.json +2 -2
  17. tccli/services/aiart/v20221229/api.json +29 -29
  18. tccli/services/aiart/v20221229/examples.json +8 -8
  19. tccli/services/apigateway/v20180808/api.json +18 -17
  20. tccli/services/apigateway/v20180808/examples.json +12 -12
  21. tccli/services/apm/v20210622/api.json +118 -4
  22. tccli/services/asr/v20190614/api.json +21 -20
  23. tccli/services/asr/v20190614/examples.json +13 -13
  24. tccli/services/autoscaling/v20180419/api.json +371 -309
  25. tccli/services/autoscaling/v20180419/examples.json +17 -17
  26. tccli/services/batch/v20170312/api.json +7 -7
  27. tccli/services/bda/v20200324/api.json +39 -31
  28. tccli/services/bda/v20200324/examples.json +9 -9
  29. tccli/services/bh/__init__.py +4 -0
  30. tccli/services/bh/bh_client.py +3428 -0
  31. tccli/services/bh/v20230418/api.json +8180 -0
  32. tccli/services/bh/v20230418/examples.json +519 -0
  33. tccli/services/bi/v20220105/api.json +80 -4
  34. tccli/services/bi/v20220105/examples.json +1 -1
  35. tccli/services/billing/billing_client.py +53 -0
  36. tccli/services/billing/v20180709/api.json +330 -24
  37. tccli/services/billing/v20180709/examples.json +8 -0
  38. tccli/services/bsca/v20210811/api.json +223 -18
  39. tccli/services/bsca/v20210811/examples.json +4 -4
  40. tccli/services/btoe/v20210514/api.json +4 -4
  41. tccli/services/btoe/v20210514/examples.json +2 -2
  42. tccli/services/ca/v20230228/api.json +60 -0
  43. tccli/services/cam/v20190116/api.json +11 -11
  44. tccli/services/cat/v20180409/api.json +9 -0
  45. tccli/services/cbs/v20170312/api.json +200 -188
  46. tccli/services/cbs/v20170312/examples.json +4 -4
  47. tccli/services/ccc/ccc_client.py +53 -0
  48. tccli/services/ccc/v20200210/api.json +541 -325
  49. tccli/services/ccc/v20200210/examples.json +26 -18
  50. tccli/services/cdb/cdb_client.py +13 -13
  51. tccli/services/cdb/v20170320/api.json +308 -274
  52. tccli/services/cdb/v20170320/examples.json +38 -38
  53. tccli/services/cdc/v20201214/api.json +283 -270
  54. tccli/services/cdc/v20201214/examples.json +26 -26
  55. tccli/services/cdn/v20180606/api.json +5 -3
  56. tccli/services/cds/v20180420/api.json +82 -76
  57. tccli/services/cds/v20180420/examples.json +1 -1
  58. tccli/services/cdwch/v20200915/api.json +1 -1
  59. tccli/services/cdwdoris/v20211228/api.json +54 -4
  60. tccli/services/cdz/v20221123/api.json +41 -5
  61. tccli/services/cfg/v20210820/api.json +31 -0
  62. tccli/services/cfs/v20190719/api.json +89 -1
  63. tccli/services/cfs/v20190719/examples.json +1 -1
  64. tccli/services/cfw/cfw_client.py +0 -53
  65. tccli/services/cfw/v20190904/api.json +1895 -2011
  66. tccli/services/cfw/v20190904/examples.json +175 -171
  67. tccli/services/ciam/v20220331/api.json +316 -315
  68. tccli/services/ciam/v20220331/examples.json +49 -49
  69. tccli/services/ckafka/v20190819/api.json +104 -75
  70. tccli/services/clb/v20180317/api.json +48 -26
  71. tccli/services/clb/v20180317/examples.json +1 -1
  72. tccli/services/cloudapp/v20220530/api.json +5 -1
  73. tccli/services/cloudaudit/cloudaudit_client.py +30 -30
  74. tccli/services/cloudaudit/v20190319/api.json +254 -211
  75. tccli/services/cloudaudit/v20190319/examples.json +19 -19
  76. tccli/services/cloudstudio/v20230508/api.json +38 -37
  77. tccli/services/cloudstudio/v20230508/examples.json +4 -4
  78. tccli/services/cls/cls_client.py +216 -4
  79. tccli/services/cls/v20201016/api.json +935 -147
  80. tccli/services/cls/v20201016/examples.json +43 -5
  81. tccli/services/csip/v20221121/api.json +2566 -2386
  82. tccli/services/csip/v20221121/examples.json +108 -108
  83. tccli/services/cvm/v20170312/api.json +191 -112
  84. tccli/services/cvm/v20170312/examples.json +2 -2
  85. tccli/services/cwp/cwp_client.py +4 -110
  86. tccli/services/cwp/v20180228/api.json +6498 -6252
  87. tccli/services/cwp/v20180228/examples.json +372 -412
  88. tccli/services/cynosdb/v20190107/api.json +170 -110
  89. tccli/services/cynosdb/v20190107/examples.json +91 -91
  90. tccli/services/dasb/v20191018/api.json +859 -637
  91. tccli/services/dasb/v20191018/examples.json +101 -101
  92. tccli/services/dcdb/dcdb_client.py +114 -61
  93. tccli/services/dcdb/v20180411/api.json +141 -7
  94. tccli/services/dcdb/v20180411/examples.json +32 -0
  95. tccli/services/dlc/v20210125/api.json +21 -11
  96. tccli/services/dnspod/dnspod_client.py +417 -46
  97. tccli/services/dnspod/v20210323/api.json +751 -30
  98. tccli/services/dnspod/v20210323/examples.json +62 -0
  99. tccli/services/domain/v20180808/api.json +3 -3
  100. tccli/services/domain/v20180808/examples.json +3 -3
  101. tccli/services/dts/v20211206/api.json +4 -4
  102. tccli/services/eb/v20210416/api.json +15 -15
  103. tccli/services/eb/v20210416/examples.json +1 -1
  104. tccli/services/ecm/v20190719/api.json +2 -2
  105. tccli/services/emr/v20190103/api.json +339 -114
  106. tccli/services/emr/v20190103/examples.json +64 -82
  107. tccli/services/es/es_client.py +249 -37
  108. tccli/services/es/v20180416/api.json +550 -0
  109. tccli/services/es/v20180416/examples.json +33 -1
  110. tccli/services/ess/ess_client.py +53 -0
  111. tccli/services/ess/v20201111/api.json +192 -38
  112. tccli/services/ess/v20201111/examples.json +35 -9
  113. tccli/services/essbasic/essbasic_client.py +106 -0
  114. tccli/services/essbasic/v20210526/api.json +287 -60
  115. tccli/services/essbasic/v20210526/examples.json +58 -18
  116. tccli/services/facefusion/v20181201/api.json +47 -45
  117. tccli/services/facefusion/v20181201/examples.json +2 -2
  118. tccli/services/facefusion/v20220927/api.json +54 -48
  119. tccli/services/facefusion/v20220927/examples.json +5 -5
  120. tccli/services/faceid/v20180301/api.json +497 -496
  121. tccli/services/faceid/v20180301/examples.json +219 -101
  122. tccli/services/fmu/v20191213/api.json +59 -67
  123. tccli/services/fmu/v20191213/examples.json +22 -22
  124. tccli/services/ft/v20200304/api.json +53 -57
  125. tccli/services/ft/v20200304/examples.json +14 -14
  126. tccli/services/gaap/v20180529/api.json +44 -26
  127. tccli/services/gaap/v20180529/examples.json +24 -30
  128. tccli/services/gme/v20180711/api.json +21 -11
  129. tccli/services/gme/v20180711/examples.json +1 -1
  130. tccli/services/hai/v20230812/api.json +116 -9
  131. tccli/services/hai/v20230812/examples.json +4 -4
  132. tccli/services/hunyuan/hunyuan_client.py +436 -12
  133. tccli/services/hunyuan/v20230901/api.json +1482 -118
  134. tccli/services/hunyuan/v20230901/examples.json +82 -18
  135. tccli/services/iai/v20180301/api.json +23 -19
  136. tccli/services/iai/v20180301/examples.json +2 -2
  137. tccli/services/iai/v20200303/api.json +530 -511
  138. tccli/services/iai/v20200303/examples.json +116 -86
  139. tccli/services/ig/__init__.py +4 -0
  140. tccli/services/ig/ig_client.py +195 -0
  141. tccli/services/ig/v20210518/api.json +83 -0
  142. tccli/services/ig/v20210518/examples.json +13 -0
  143. tccli/services/ioa/ioa_client.py +53 -0
  144. tccli/services/ioa/v20220601/api.json +662 -413
  145. tccli/services/ioa/v20220601/examples.json +24 -10
  146. tccli/services/iotexplorer/v20190423/api.json +73 -13
  147. tccli/services/iotexplorer/v20190423/examples.json +3 -3
  148. tccli/services/iotvideo/iotvideo_client.py +106 -0
  149. tccli/services/iotvideo/v20191126/api.json +256 -24
  150. tccli/services/iotvideo/v20191126/examples.json +19 -3
  151. tccli/services/iotvideo/v20201215/api.json +1 -1
  152. tccli/services/iotvideo/v20201215/examples.json +1 -1
  153. tccli/services/iotvideo/v20211125/api.json +1 -1
  154. tccli/services/iotvideo/v20211125/examples.json +2 -2
  155. tccli/services/iss/iss_client.py +69 -122
  156. tccli/services/iss/v20230517/api.json +10 -54
  157. tccli/services/iss/v20230517/examples.json +0 -14
  158. tccli/services/kms/v20190118/api.json +301 -268
  159. tccli/services/kms/v20190118/examples.json +45 -51
  160. tccli/services/lcic/lcic_client.py +159 -0
  161. tccli/services/lcic/v20220817/api.json +273 -1
  162. tccli/services/lcic/v20220817/examples.json +24 -0
  163. tccli/services/lighthouse/v20200324/api.json +56 -0
  164. tccli/services/live/live_client.py +159 -0
  165. tccli/services/live/v20180801/api.json +279 -9
  166. tccli/services/live/v20180801/examples.json +24 -0
  167. tccli/services/lke/v20231130/api.json +17 -17
  168. tccli/services/lke/v20231130/examples.json +19 -25
  169. tccli/services/mariadb/v20170312/api.json +7 -7
  170. tccli/services/market/v20191010/api.json +3 -3
  171. tccli/services/market/v20191010/examples.json +2 -2
  172. tccli/services/mmps/v20200710/api.json +47 -47
  173. tccli/services/mmps/v20200710/examples.json +3 -3
  174. tccli/services/mongodb/v20190725/api.json +10 -12
  175. tccli/services/monitor/v20180724/api.json +46 -19
  176. tccli/services/mps/v20190612/api.json +282 -5
  177. tccli/services/mps/v20190612/examples.json +25 -1
  178. tccli/services/mqtt/v20240516/api.json +2 -2
  179. tccli/services/mrs/v20200910/api.json +72 -34
  180. tccli/services/mrs/v20200910/examples.json +2 -2
  181. tccli/services/ms/v20180408/api.json +535 -506
  182. tccli/services/ms/v20180408/examples.json +25 -25
  183. tccli/services/oceanus/v20190422/api.json +130 -0
  184. tccli/services/ocr/ocr_client.py +232 -20
  185. tccli/services/ocr/v20181119/api.json +2263 -758
  186. tccli/services/ocr/v20181119/examples.json +200 -180
  187. tccli/services/omics/v20221128/api.json +614 -553
  188. tccli/services/omics/v20221128/examples.json +9 -9
  189. tccli/services/organization/organization_client.py +352 -34
  190. tccli/services/organization/v20210331/api.json +464 -4
  191. tccli/services/organization/v20210331/examples.json +49 -1
  192. tccli/services/partners/v20180321/api.json +244 -234
  193. tccli/services/partners/v20180321/examples.json +19 -19
  194. tccli/services/privatedns/privatedns_client.py +428 -4
  195. tccli/services/privatedns/v20201028/api.json +815 -11
  196. tccli/services/privatedns/v20201028/examples.json +64 -0
  197. tccli/services/pts/v20210728/api.json +18 -0
  198. tccli/services/pts/v20210728/examples.json +1 -1
  199. tccli/services/rce/rce_client.py +53 -0
  200. tccli/services/rce/v20201103/api.json +146 -0
  201. tccli/services/rce/v20201103/examples.json +8 -0
  202. tccli/services/redis/v20180412/api.json +42 -42
  203. tccli/services/redis/v20180412/examples.json +19 -19
  204. tccli/services/region/v20220627/api.json +1 -1
  205. tccli/services/rum/v20210622/api.json +9 -0
  206. tccli/services/scf/scf_client.py +269 -4
  207. tccli/services/scf/v20180416/api.json +569 -15
  208. tccli/services/scf/v20180416/examples.json +47 -1
  209. tccli/services/smop/v20201203/api.json +46 -42
  210. tccli/services/smop/v20201203/examples.json +2 -2
  211. tccli/services/soe/v20180724/api.json +10 -10
  212. tccli/services/sqlserver/v20180328/api.json +21 -8
  213. tccli/services/sqlserver/v20180328/examples.json +5 -5
  214. tccli/services/ssl/v20191205/api.json +98 -5
  215. tccli/services/ssm/v20190923/api.json +292 -231
  216. tccli/services/ssm/v20190923/examples.json +42 -42
  217. tccli/services/tat/v20201028/api.json +124 -122
  218. tccli/services/tat/v20201028/examples.json +24 -30
  219. tccli/services/tchd/v20230306/api.json +5 -5
  220. tccli/services/tchd/v20230306/examples.json +3 -3
  221. tccli/services/tcr/v20190924/api.json +1 -1
  222. tccli/services/tcr/v20190924/examples.json +1 -1
  223. tccli/services/tcss/v20201101/api.json +1984 -1437
  224. tccli/services/tcss/v20201101/examples.json +350 -368
  225. tccli/services/tdmq/v20200217/api.json +603 -464
  226. tccli/services/tdmq/v20200217/examples.json +105 -105
  227. tccli/services/tds/v20220801/api.json +4 -4
  228. tccli/services/tem/v20210701/api.json +429 -372
  229. tccli/services/tem/v20210701/examples.json +85 -85
  230. tccli/services/teo/teo_client.py +277 -12
  231. tccli/services/teo/v20220901/api.json +1029 -124
  232. tccli/services/teo/v20220901/examples.json +84 -8
  233. tccli/services/thpc/v20230321/api.json +5 -5
  234. tccli/services/tke/tke_client.py +270 -58
  235. tccli/services/tke/v20180525/api.json +79 -27
  236. tccli/services/tke/v20180525/examples.json +9 -1
  237. tccli/services/tke/v20220501/api.json +176 -0
  238. tccli/services/tke/v20220501/examples.json +24 -0
  239. tccli/services/tms/tms_client.py +4 -57
  240. tccli/services/tms/v20201229/api.json +0 -354
  241. tccli/services/tms/v20201229/examples.json +0 -8
  242. tccli/services/tmt/v20180321/api.json +38 -8
  243. tccli/services/trp/v20210515/api.json +86 -74
  244. tccli/services/trp/v20210515/examples.json +65 -65
  245. tccli/services/trro/v20220325/api.json +72 -71
  246. tccli/services/trro/v20220325/examples.json +8 -8
  247. tccli/services/trtc/trtc_client.py +8 -61
  248. tccli/services/trtc/v20190722/api.json +293 -52
  249. tccli/services/trtc/v20190722/examples.json +3 -11
  250. tccli/services/tse/tse_client.py +110 -4
  251. tccli/services/tse/v20201207/api.json +122 -7
  252. tccli/services/tse/v20201207/examples.json +25 -9
  253. tccli/services/vclm/v20240523/api.json +225 -82
  254. tccli/services/vclm/v20240523/examples.json +13 -19
  255. tccli/services/vod/v20180717/api.json +431 -4
  256. tccli/services/vod/v20180717/examples.json +25 -5
  257. tccli/services/vod/v20240718/api.json +11 -11
  258. tccli/services/vod/v20240718/examples.json +4 -4
  259. tccli/services/vod/vod_client.py +53 -0
  260. tccli/services/vpc/v20170312/api.json +1195 -892
  261. tccli/services/vpc/v20170312/examples.json +84 -68
  262. tccli/services/vpc/vpc_client.py +168 -62
  263. tccli/services/waf/v20180125/api.json +2611 -2187
  264. tccli/services/waf/v20180125/examples.json +224 -284
  265. tccli/services/waf/waf_client.py +225 -119
  266. tccli/services/wav/v20210129/api.json +48 -48
  267. tccli/services/wav/v20210129/examples.json +4 -4
  268. tccli/services/wedata/v20210820/api.json +1595 -25
  269. tccli/services/wedata/v20210820/examples.json +44 -4
  270. tccli/services/wedata/wedata_client.py +265 -0
  271. tccli/services/weilingwith/v20230427/api.json +6 -6
  272. tccli/services/weilingwith/v20230427/examples.json +3 -3
  273. tccli/sso.py +229 -0
  274. {tccli-3.0.1215.1.dist-info → tccli-3.0.1217.1.dist-info}/METADATA +6 -2
  275. {tccli-3.0.1215.1.dist-info → tccli-3.0.1217.1.dist-info}/RECORD +278 -265
  276. tccli/services/cr/__init__.py +0 -4
  277. tccli/services/cr/cr_client.py +0 -1626
  278. tccli/services/cr/v20180321/api.json +0 -2829
  279. tccli/services/cr/v20180321/examples.json +0 -235
  280. {tccli-3.0.1215.1.dist-info → tccli-3.0.1217.1.dist-info}/WHEEL +0 -0
  281. {tccli-3.0.1215.1.dist-info → tccli-3.0.1217.1.dist-info}/entry_points.txt +0 -0
  282. {tccli-3.0.1215.1.dist-info → tccli-3.0.1217.1.dist-info}/license_files/LICENSE +0 -0
@@ -3917,7 +3917,7 @@ def doModifyVpnGatewayAttribute(args, parsed_globals):
3917
3917
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
3918
3918
 
3919
3919
 
3920
- def doUnlockCcns(args, parsed_globals):
3920
+ def doDeleteVpc(args, parsed_globals):
3921
3921
  g_param = parse_global_arg(parsed_globals)
3922
3922
 
3923
3923
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -3946,11 +3946,11 @@ def doUnlockCcns(args, parsed_globals):
3946
3946
  client = mod.VpcClient(cred, g_param[OptionsDefine.Region], profile)
3947
3947
  client._sdkVersion += ("_CLI_" + __version__)
3948
3948
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
3949
- model = models.UnlockCcnsRequest()
3949
+ model = models.DeleteVpcRequest()
3950
3950
  model.from_json_string(json.dumps(args))
3951
3951
  start_time = time.time()
3952
3952
  while True:
3953
- rsp = client.UnlockCcns(model)
3953
+ rsp = client.DeleteVpc(model)
3954
3954
  result = rsp.to_json_string()
3955
3955
  try:
3956
3956
  json_obj = json.loads(result)
@@ -11821,7 +11821,7 @@ def doDeleteNetworkAclEntries(args, parsed_globals):
11821
11821
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
11822
11822
 
11823
11823
 
11824
- def doDescribeBandwidthPackageBillUsage(args, parsed_globals):
11824
+ def doDescribeNatGatewayDirectConnectGatewayRoute(args, parsed_globals):
11825
11825
  g_param = parse_global_arg(parsed_globals)
11826
11826
 
11827
11827
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -11850,11 +11850,11 @@ def doDescribeBandwidthPackageBillUsage(args, parsed_globals):
11850
11850
  client = mod.VpcClient(cred, g_param[OptionsDefine.Region], profile)
11851
11851
  client._sdkVersion += ("_CLI_" + __version__)
11852
11852
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
11853
- model = models.DescribeBandwidthPackageBillUsageRequest()
11853
+ model = models.DescribeNatGatewayDirectConnectGatewayRouteRequest()
11854
11854
  model.from_json_string(json.dumps(args))
11855
11855
  start_time = time.time()
11856
11856
  while True:
11857
- rsp = client.DescribeBandwidthPackageBillUsage(model)
11857
+ rsp = client.DescribeNatGatewayDirectConnectGatewayRoute(model)
11858
11858
  result = rsp.to_json_string()
11859
11859
  try:
11860
11860
  json_obj = json.loads(result)
@@ -11925,7 +11925,7 @@ def doModifyCcnRouteTables(args, parsed_globals):
11925
11925
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
11926
11926
 
11927
11927
 
11928
- def doModifyHighPriorityRouteECMPAlgorithm(args, parsed_globals):
11928
+ def doModifyCcnRegionBandwidthLimitsType(args, parsed_globals):
11929
11929
  g_param = parse_global_arg(parsed_globals)
11930
11930
 
11931
11931
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -11954,11 +11954,11 @@ def doModifyHighPriorityRouteECMPAlgorithm(args, parsed_globals):
11954
11954
  client = mod.VpcClient(cred, g_param[OptionsDefine.Region], profile)
11955
11955
  client._sdkVersion += ("_CLI_" + __version__)
11956
11956
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
11957
- model = models.ModifyHighPriorityRouteECMPAlgorithmRequest()
11957
+ model = models.ModifyCcnRegionBandwidthLimitsTypeRequest()
11958
11958
  model.from_json_string(json.dumps(args))
11959
11959
  start_time = time.time()
11960
11960
  while True:
11961
- rsp = client.ModifyHighPriorityRouteECMPAlgorithm(model)
11961
+ rsp = client.ModifyCcnRegionBandwidthLimitsType(model)
11962
11962
  result = rsp.to_json_string()
11963
11963
  try:
11964
11964
  json_obj = json.loads(result)
@@ -11977,7 +11977,7 @@ def doModifyHighPriorityRouteECMPAlgorithm(args, parsed_globals):
11977
11977
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
11978
11978
 
11979
11979
 
11980
- def doDeleteNatGatewaySourceIpTranslationNatRule(args, parsed_globals):
11980
+ def doModifyHighPriorityRouteECMPAlgorithm(args, parsed_globals):
11981
11981
  g_param = parse_global_arg(parsed_globals)
11982
11982
 
11983
11983
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -12006,11 +12006,11 @@ def doDeleteNatGatewaySourceIpTranslationNatRule(args, parsed_globals):
12006
12006
  client = mod.VpcClient(cred, g_param[OptionsDefine.Region], profile)
12007
12007
  client._sdkVersion += ("_CLI_" + __version__)
12008
12008
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
12009
- model = models.DeleteNatGatewaySourceIpTranslationNatRuleRequest()
12009
+ model = models.ModifyHighPriorityRouteECMPAlgorithmRequest()
12010
12010
  model.from_json_string(json.dumps(args))
12011
12011
  start_time = time.time()
12012
12012
  while True:
12013
- rsp = client.DeleteNatGatewaySourceIpTranslationNatRule(model)
12013
+ rsp = client.ModifyHighPriorityRouteECMPAlgorithm(model)
12014
12014
  result = rsp.to_json_string()
12015
12015
  try:
12016
12016
  json_obj = json.loads(result)
@@ -12029,7 +12029,7 @@ def doDeleteNatGatewaySourceIpTranslationNatRule(args, parsed_globals):
12029
12029
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
12030
12030
 
12031
12031
 
12032
- def doModifyNatGatewaySourceIpTranslationNatRule(args, parsed_globals):
12032
+ def doDeleteNatGatewaySourceIpTranslationNatRule(args, parsed_globals):
12033
12033
  g_param = parse_global_arg(parsed_globals)
12034
12034
 
12035
12035
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -12058,11 +12058,11 @@ def doModifyNatGatewaySourceIpTranslationNatRule(args, parsed_globals):
12058
12058
  client = mod.VpcClient(cred, g_param[OptionsDefine.Region], profile)
12059
12059
  client._sdkVersion += ("_CLI_" + __version__)
12060
12060
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
12061
- model = models.ModifyNatGatewaySourceIpTranslationNatRuleRequest()
12061
+ model = models.DeleteNatGatewaySourceIpTranslationNatRuleRequest()
12062
12062
  model.from_json_string(json.dumps(args))
12063
12063
  start_time = time.time()
12064
12064
  while True:
12065
- rsp = client.ModifyNatGatewaySourceIpTranslationNatRule(model)
12065
+ rsp = client.DeleteNatGatewaySourceIpTranslationNatRule(model)
12066
12066
  result = rsp.to_json_string()
12067
12067
  try:
12068
12068
  json_obj = json.loads(result)
@@ -12081,7 +12081,7 @@ def doModifyNatGatewaySourceIpTranslationNatRule(args, parsed_globals):
12081
12081
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
12082
12082
 
12083
12083
 
12084
- def doUnassignIpv6SubnetCidrBlock(args, parsed_globals):
12084
+ def doModifyNatGatewaySourceIpTranslationNatRule(args, parsed_globals):
12085
12085
  g_param = parse_global_arg(parsed_globals)
12086
12086
 
12087
12087
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -12110,11 +12110,11 @@ def doUnassignIpv6SubnetCidrBlock(args, parsed_globals):
12110
12110
  client = mod.VpcClient(cred, g_param[OptionsDefine.Region], profile)
12111
12111
  client._sdkVersion += ("_CLI_" + __version__)
12112
12112
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
12113
- model = models.UnassignIpv6SubnetCidrBlockRequest()
12113
+ model = models.ModifyNatGatewaySourceIpTranslationNatRuleRequest()
12114
12114
  model.from_json_string(json.dumps(args))
12115
12115
  start_time = time.time()
12116
12116
  while True:
12117
- rsp = client.UnassignIpv6SubnetCidrBlock(model)
12117
+ rsp = client.ModifyNatGatewaySourceIpTranslationNatRule(model)
12118
12118
  result = rsp.to_json_string()
12119
12119
  try:
12120
12120
  json_obj = json.loads(result)
@@ -12133,7 +12133,7 @@ def doUnassignIpv6SubnetCidrBlock(args, parsed_globals):
12133
12133
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
12134
12134
 
12135
12135
 
12136
- def doDisableRoutes(args, parsed_globals):
12136
+ def doUnassignIpv6SubnetCidrBlock(args, parsed_globals):
12137
12137
  g_param = parse_global_arg(parsed_globals)
12138
12138
 
12139
12139
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -12162,11 +12162,11 @@ def doDisableRoutes(args, parsed_globals):
12162
12162
  client = mod.VpcClient(cred, g_param[OptionsDefine.Region], profile)
12163
12163
  client._sdkVersion += ("_CLI_" + __version__)
12164
12164
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
12165
- model = models.DisableRoutesRequest()
12165
+ model = models.UnassignIpv6SubnetCidrBlockRequest()
12166
12166
  model.from_json_string(json.dumps(args))
12167
12167
  start_time = time.time()
12168
12168
  while True:
12169
- rsp = client.DisableRoutes(model)
12169
+ rsp = client.UnassignIpv6SubnetCidrBlock(model)
12170
12170
  result = rsp.to_json_string()
12171
12171
  try:
12172
12172
  json_obj = json.loads(result)
@@ -12185,7 +12185,7 @@ def doDisableRoutes(args, parsed_globals):
12185
12185
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
12186
12186
 
12187
12187
 
12188
- def doEnableVpnGatewaySslClientCert(args, parsed_globals):
12188
+ def doDisableRoutes(args, parsed_globals):
12189
12189
  g_param = parse_global_arg(parsed_globals)
12190
12190
 
12191
12191
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -12214,11 +12214,11 @@ def doEnableVpnGatewaySslClientCert(args, parsed_globals):
12214
12214
  client = mod.VpcClient(cred, g_param[OptionsDefine.Region], profile)
12215
12215
  client._sdkVersion += ("_CLI_" + __version__)
12216
12216
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
12217
- model = models.EnableVpnGatewaySslClientCertRequest()
12217
+ model = models.DisableRoutesRequest()
12218
12218
  model.from_json_string(json.dumps(args))
12219
12219
  start_time = time.time()
12220
12220
  while True:
12221
- rsp = client.EnableVpnGatewaySslClientCert(model)
12221
+ rsp = client.DisableRoutes(model)
12222
12222
  result = rsp.to_json_string()
12223
12223
  try:
12224
12224
  json_obj = json.loads(result)
@@ -12237,7 +12237,7 @@ def doEnableVpnGatewaySslClientCert(args, parsed_globals):
12237
12237
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
12238
12238
 
12239
12239
 
12240
- def doCreateAssistantCidr(args, parsed_globals):
12240
+ def doEnableVpnGatewaySslClientCert(args, parsed_globals):
12241
12241
  g_param = parse_global_arg(parsed_globals)
12242
12242
 
12243
12243
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -12266,11 +12266,11 @@ def doCreateAssistantCidr(args, parsed_globals):
12266
12266
  client = mod.VpcClient(cred, g_param[OptionsDefine.Region], profile)
12267
12267
  client._sdkVersion += ("_CLI_" + __version__)
12268
12268
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
12269
- model = models.CreateAssistantCidrRequest()
12269
+ model = models.EnableVpnGatewaySslClientCertRequest()
12270
12270
  model.from_json_string(json.dumps(args))
12271
12271
  start_time = time.time()
12272
12272
  while True:
12273
- rsp = client.CreateAssistantCidr(model)
12273
+ rsp = client.EnableVpnGatewaySslClientCert(model)
12274
12274
  result = rsp.to_json_string()
12275
12275
  try:
12276
12276
  json_obj = json.loads(result)
@@ -12289,7 +12289,7 @@ def doCreateAssistantCidr(args, parsed_globals):
12289
12289
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
12290
12290
 
12291
12291
 
12292
- def doDescribeVpnGatewaySslClients(args, parsed_globals):
12292
+ def doCreateAssistantCidr(args, parsed_globals):
12293
12293
  g_param = parse_global_arg(parsed_globals)
12294
12294
 
12295
12295
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -12318,11 +12318,11 @@ def doDescribeVpnGatewaySslClients(args, parsed_globals):
12318
12318
  client = mod.VpcClient(cred, g_param[OptionsDefine.Region], profile)
12319
12319
  client._sdkVersion += ("_CLI_" + __version__)
12320
12320
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
12321
- model = models.DescribeVpnGatewaySslClientsRequest()
12321
+ model = models.CreateAssistantCidrRequest()
12322
12322
  model.from_json_string(json.dumps(args))
12323
12323
  start_time = time.time()
12324
12324
  while True:
12325
- rsp = client.DescribeVpnGatewaySslClients(model)
12325
+ rsp = client.CreateAssistantCidr(model)
12326
12326
  result = rsp.to_json_string()
12327
12327
  try:
12328
12328
  json_obj = json.loads(result)
@@ -12341,7 +12341,7 @@ def doDescribeVpnGatewaySslClients(args, parsed_globals):
12341
12341
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
12342
12342
 
12343
12343
 
12344
- def doCreateNatGateway(args, parsed_globals):
12344
+ def doDescribeVpnGatewaySslClients(args, parsed_globals):
12345
12345
  g_param = parse_global_arg(parsed_globals)
12346
12346
 
12347
12347
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -12370,11 +12370,11 @@ def doCreateNatGateway(args, parsed_globals):
12370
12370
  client = mod.VpcClient(cred, g_param[OptionsDefine.Region], profile)
12371
12371
  client._sdkVersion += ("_CLI_" + __version__)
12372
12372
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
12373
- model = models.CreateNatGatewayRequest()
12373
+ model = models.DescribeVpnGatewaySslClientsRequest()
12374
12374
  model.from_json_string(json.dumps(args))
12375
12375
  start_time = time.time()
12376
12376
  while True:
12377
- rsp = client.CreateNatGateway(model)
12377
+ rsp = client.DescribeVpnGatewaySslClients(model)
12378
12378
  result = rsp.to_json_string()
12379
12379
  try:
12380
12380
  json_obj = json.loads(result)
@@ -12393,7 +12393,7 @@ def doCreateNatGateway(args, parsed_globals):
12393
12393
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
12394
12394
 
12395
12395
 
12396
- def doDeleteNetDetect(args, parsed_globals):
12396
+ def doCreateNatGateway(args, parsed_globals):
12397
12397
  g_param = parse_global_arg(parsed_globals)
12398
12398
 
12399
12399
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -12422,11 +12422,11 @@ def doDeleteNetDetect(args, parsed_globals):
12422
12422
  client = mod.VpcClient(cred, g_param[OptionsDefine.Region], profile)
12423
12423
  client._sdkVersion += ("_CLI_" + __version__)
12424
12424
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
12425
- model = models.DeleteNetDetectRequest()
12425
+ model = models.CreateNatGatewayRequest()
12426
12426
  model.from_json_string(json.dumps(args))
12427
12427
  start_time = time.time()
12428
12428
  while True:
12429
- rsp = client.DeleteNetDetect(model)
12429
+ rsp = client.CreateNatGateway(model)
12430
12430
  result = rsp.to_json_string()
12431
12431
  try:
12432
12432
  json_obj = json.loads(result)
@@ -12445,7 +12445,7 @@ def doDeleteNetDetect(args, parsed_globals):
12445
12445
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
12446
12446
 
12447
12447
 
12448
- def doNotifyRoutes(args, parsed_globals):
12448
+ def doDeleteNetDetect(args, parsed_globals):
12449
12449
  g_param = parse_global_arg(parsed_globals)
12450
12450
 
12451
12451
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -12474,11 +12474,11 @@ def doNotifyRoutes(args, parsed_globals):
12474
12474
  client = mod.VpcClient(cred, g_param[OptionsDefine.Region], profile)
12475
12475
  client._sdkVersion += ("_CLI_" + __version__)
12476
12476
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
12477
- model = models.NotifyRoutesRequest()
12477
+ model = models.DeleteNetDetectRequest()
12478
12478
  model.from_json_string(json.dumps(args))
12479
12479
  start_time = time.time()
12480
12480
  while True:
12481
- rsp = client.NotifyRoutes(model)
12481
+ rsp = client.DeleteNetDetect(model)
12482
12482
  result = rsp.to_json_string()
12483
12483
  try:
12484
12484
  json_obj = json.loads(result)
@@ -12497,7 +12497,7 @@ def doNotifyRoutes(args, parsed_globals):
12497
12497
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
12498
12498
 
12499
12499
 
12500
- def doDeleteVpcEndPoint(args, parsed_globals):
12500
+ def doNotifyRoutes(args, parsed_globals):
12501
12501
  g_param = parse_global_arg(parsed_globals)
12502
12502
 
12503
12503
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -12526,11 +12526,11 @@ def doDeleteVpcEndPoint(args, parsed_globals):
12526
12526
  client = mod.VpcClient(cred, g_param[OptionsDefine.Region], profile)
12527
12527
  client._sdkVersion += ("_CLI_" + __version__)
12528
12528
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
12529
- model = models.DeleteVpcEndPointRequest()
12529
+ model = models.NotifyRoutesRequest()
12530
12530
  model.from_json_string(json.dumps(args))
12531
12531
  start_time = time.time()
12532
12532
  while True:
12533
- rsp = client.DeleteVpcEndPoint(model)
12533
+ rsp = client.NotifyRoutes(model)
12534
12534
  result = rsp.to_json_string()
12535
12535
  try:
12536
12536
  json_obj = json.loads(result)
@@ -12549,7 +12549,7 @@ def doDeleteVpcEndPoint(args, parsed_globals):
12549
12549
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
12550
12550
 
12551
12551
 
12552
- def doDeleteHighPriorityRoutes(args, parsed_globals):
12552
+ def doDeleteVpcEndPoint(args, parsed_globals):
12553
12553
  g_param = parse_global_arg(parsed_globals)
12554
12554
 
12555
12555
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -12578,11 +12578,11 @@ def doDeleteHighPriorityRoutes(args, parsed_globals):
12578
12578
  client = mod.VpcClient(cred, g_param[OptionsDefine.Region], profile)
12579
12579
  client._sdkVersion += ("_CLI_" + __version__)
12580
12580
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
12581
- model = models.DeleteHighPriorityRoutesRequest()
12581
+ model = models.DeleteVpcEndPointRequest()
12582
12582
  model.from_json_string(json.dumps(args))
12583
12583
  start_time = time.time()
12584
12584
  while True:
12585
- rsp = client.DeleteHighPriorityRoutes(model)
12585
+ rsp = client.DeleteVpcEndPoint(model)
12586
12586
  result = rsp.to_json_string()
12587
12587
  try:
12588
12588
  json_obj = json.loads(result)
@@ -12601,7 +12601,7 @@ def doDeleteHighPriorityRoutes(args, parsed_globals):
12601
12601
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
12602
12602
 
12603
12603
 
12604
- def doCreateServiceTemplate(args, parsed_globals):
12604
+ def doDeleteHighPriorityRoutes(args, parsed_globals):
12605
12605
  g_param = parse_global_arg(parsed_globals)
12606
12606
 
12607
12607
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -12630,11 +12630,11 @@ def doCreateServiceTemplate(args, parsed_globals):
12630
12630
  client = mod.VpcClient(cred, g_param[OptionsDefine.Region], profile)
12631
12631
  client._sdkVersion += ("_CLI_" + __version__)
12632
12632
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
12633
- model = models.CreateServiceTemplateRequest()
12633
+ model = models.DeleteHighPriorityRoutesRequest()
12634
12634
  model.from_json_string(json.dumps(args))
12635
12635
  start_time = time.time()
12636
12636
  while True:
12637
- rsp = client.CreateServiceTemplate(model)
12637
+ rsp = client.DeleteHighPriorityRoutes(model)
12638
12638
  result = rsp.to_json_string()
12639
12639
  try:
12640
12640
  json_obj = json.loads(result)
@@ -12653,7 +12653,7 @@ def doCreateServiceTemplate(args, parsed_globals):
12653
12653
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
12654
12654
 
12655
12655
 
12656
- def doDeleteVpc(args, parsed_globals):
12656
+ def doCreateServiceTemplate(args, parsed_globals):
12657
12657
  g_param = parse_global_arg(parsed_globals)
12658
12658
 
12659
12659
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -12682,11 +12682,11 @@ def doDeleteVpc(args, parsed_globals):
12682
12682
  client = mod.VpcClient(cred, g_param[OptionsDefine.Region], profile)
12683
12683
  client._sdkVersion += ("_CLI_" + __version__)
12684
12684
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
12685
- model = models.DeleteVpcRequest()
12685
+ model = models.CreateServiceTemplateRequest()
12686
12686
  model.from_json_string(json.dumps(args))
12687
12687
  start_time = time.time()
12688
12688
  while True:
12689
- rsp = client.DeleteVpc(model)
12689
+ rsp = client.CreateServiceTemplate(model)
12690
12690
  result = rsp.to_json_string()
12691
12691
  try:
12692
12692
  json_obj = json.loads(result)
@@ -14733,7 +14733,7 @@ def doDescribeNetDetects(args, parsed_globals):
14733
14733
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
14734
14734
 
14735
14735
 
14736
- def doModifyCcnRegionBandwidthLimitsType(args, parsed_globals):
14736
+ def doModifyAddressesRenewFlag(args, parsed_globals):
14737
14737
  g_param = parse_global_arg(parsed_globals)
14738
14738
 
14739
14739
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -14762,11 +14762,11 @@ def doModifyCcnRegionBandwidthLimitsType(args, parsed_globals):
14762
14762
  client = mod.VpcClient(cred, g_param[OptionsDefine.Region], profile)
14763
14763
  client._sdkVersion += ("_CLI_" + __version__)
14764
14764
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
14765
- model = models.ModifyCcnRegionBandwidthLimitsTypeRequest()
14765
+ model = models.ModifyAddressesRenewFlagRequest()
14766
14766
  model.from_json_string(json.dumps(args))
14767
14767
  start_time = time.time()
14768
14768
  while True:
14769
- rsp = client.ModifyCcnRegionBandwidthLimitsType(model)
14769
+ rsp = client.ModifyAddressesRenewFlag(model)
14770
14770
  result = rsp.to_json_string()
14771
14771
  try:
14772
14772
  json_obj = json.loads(result)
@@ -17073,6 +17073,58 @@ def doDescribeVpcEndPointServiceWhiteList(args, parsed_globals):
17073
17073
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
17074
17074
 
17075
17075
 
17076
+ def doModifyBandwidthPackageBandwidth(args, parsed_globals):
17077
+ g_param = parse_global_arg(parsed_globals)
17078
+
17079
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
17080
+ cred = credential.CVMRoleCredential()
17081
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
17082
+ cred = credential.STSAssumeRoleCredential(
17083
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
17084
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
17085
+ )
17086
+ elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
17087
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
17088
+ else:
17089
+ cred = credential.Credential(
17090
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
17091
+ )
17092
+ http_profile = HttpProfile(
17093
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
17094
+ reqMethod="POST",
17095
+ endpoint=g_param[OptionsDefine.Endpoint],
17096
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
17097
+ )
17098
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
17099
+ if g_param[OptionsDefine.Language]:
17100
+ profile.language = g_param[OptionsDefine.Language]
17101
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
17102
+ client = mod.VpcClient(cred, g_param[OptionsDefine.Region], profile)
17103
+ client._sdkVersion += ("_CLI_" + __version__)
17104
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
17105
+ model = models.ModifyBandwidthPackageBandwidthRequest()
17106
+ model.from_json_string(json.dumps(args))
17107
+ start_time = time.time()
17108
+ while True:
17109
+ rsp = client.ModifyBandwidthPackageBandwidth(model)
17110
+ result = rsp.to_json_string()
17111
+ try:
17112
+ json_obj = json.loads(result)
17113
+ except TypeError as e:
17114
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
17115
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
17116
+ break
17117
+ cur_time = time.time()
17118
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
17119
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
17120
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
17121
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
17122
+ else:
17123
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
17124
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
17125
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
17126
+
17127
+
17076
17128
  def doDescribePrivateNatGatewayLimits(args, parsed_globals):
17077
17129
  g_param = parse_global_arg(parsed_globals)
17078
17130
 
@@ -17749,7 +17801,7 @@ def doHaVipDisassociateAddressIp(args, parsed_globals):
17749
17801
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
17750
17802
 
17751
17803
 
17752
- def doDescribeNatGatewayDirectConnectGatewayRoute(args, parsed_globals):
17804
+ def doDescribeBandwidthPackageBillUsage(args, parsed_globals):
17753
17805
  g_param = parse_global_arg(parsed_globals)
17754
17806
 
17755
17807
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -17778,11 +17830,63 @@ def doDescribeNatGatewayDirectConnectGatewayRoute(args, parsed_globals):
17778
17830
  client = mod.VpcClient(cred, g_param[OptionsDefine.Region], profile)
17779
17831
  client._sdkVersion += ("_CLI_" + __version__)
17780
17832
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
17781
- model = models.DescribeNatGatewayDirectConnectGatewayRouteRequest()
17833
+ model = models.DescribeBandwidthPackageBillUsageRequest()
17782
17834
  model.from_json_string(json.dumps(args))
17783
17835
  start_time = time.time()
17784
17836
  while True:
17785
- rsp = client.DescribeNatGatewayDirectConnectGatewayRoute(model)
17837
+ rsp = client.DescribeBandwidthPackageBillUsage(model)
17838
+ result = rsp.to_json_string()
17839
+ try:
17840
+ json_obj = json.loads(result)
17841
+ except TypeError as e:
17842
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
17843
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
17844
+ break
17845
+ cur_time = time.time()
17846
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
17847
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
17848
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
17849
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
17850
+ else:
17851
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
17852
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
17853
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
17854
+
17855
+
17856
+ def doUnlockCcns(args, parsed_globals):
17857
+ g_param = parse_global_arg(parsed_globals)
17858
+
17859
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
17860
+ cred = credential.CVMRoleCredential()
17861
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
17862
+ cred = credential.STSAssumeRoleCredential(
17863
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
17864
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
17865
+ )
17866
+ elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
17867
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
17868
+ else:
17869
+ cred = credential.Credential(
17870
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
17871
+ )
17872
+ http_profile = HttpProfile(
17873
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
17874
+ reqMethod="POST",
17875
+ endpoint=g_param[OptionsDefine.Endpoint],
17876
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
17877
+ )
17878
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
17879
+ if g_param[OptionsDefine.Language]:
17880
+ profile.language = g_param[OptionsDefine.Language]
17881
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
17882
+ client = mod.VpcClient(cred, g_param[OptionsDefine.Region], profile)
17883
+ client._sdkVersion += ("_CLI_" + __version__)
17884
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
17885
+ model = models.UnlockCcnsRequest()
17886
+ model.from_json_string(json.dumps(args))
17887
+ start_time = time.time()
17888
+ while True:
17889
+ rsp = client.UnlockCcns(model)
17786
17890
  result = rsp.to_json_string()
17787
17891
  try:
17788
17892
  json_obj = json.loads(result)
@@ -19343,7 +19447,7 @@ ACTION_MAP = {
19343
19447
  "ModifyBandwidthPackageAttribute": doModifyBandwidthPackageAttribute,
19344
19448
  "CreateVpnGatewaySslServer": doCreateVpnGatewaySslServer,
19345
19449
  "ModifyVpnGatewayAttribute": doModifyVpnGatewayAttribute,
19346
- "UnlockCcns": doUnlockCcns,
19450
+ "DeleteVpc": doDeleteVpc,
19347
19451
  "DescribeSubnets": doDescribeSubnets,
19348
19452
  "ModifyPrivateNatGatewayTranslationAclRule": doModifyPrivateNatGatewayTranslationAclRule,
19349
19453
  "ModifyPrivateIpAddressesAttribute": doModifyPrivateIpAddressesAttribute,
@@ -19495,8 +19599,9 @@ ACTION_MAP = {
19495
19599
  "DeleteCustomerGateway": doDeleteCustomerGateway,
19496
19600
  "DescribeLocalGateway": doDescribeLocalGateway,
19497
19601
  "DeleteNetworkAclEntries": doDeleteNetworkAclEntries,
19498
- "DescribeBandwidthPackageBillUsage": doDescribeBandwidthPackageBillUsage,
19602
+ "DescribeNatGatewayDirectConnectGatewayRoute": doDescribeNatGatewayDirectConnectGatewayRoute,
19499
19603
  "ModifyCcnRouteTables": doModifyCcnRouteTables,
19604
+ "ModifyCcnRegionBandwidthLimitsType": doModifyCcnRegionBandwidthLimitsType,
19500
19605
  "ModifyHighPriorityRouteECMPAlgorithm": doModifyHighPriorityRouteECMPAlgorithm,
19501
19606
  "DeleteNatGatewaySourceIpTranslationNatRule": doDeleteNatGatewaySourceIpTranslationNatRule,
19502
19607
  "ModifyNatGatewaySourceIpTranslationNatRule": doModifyNatGatewaySourceIpTranslationNatRule,
@@ -19511,7 +19616,6 @@ ACTION_MAP = {
19511
19616
  "DeleteVpcEndPoint": doDeleteVpcEndPoint,
19512
19617
  "DeleteHighPriorityRoutes": doDeleteHighPriorityRoutes,
19513
19618
  "CreateServiceTemplate": doCreateServiceTemplate,
19514
- "DeleteVpc": doDeleteVpc,
19515
19619
  "ModifyDirectConnectGatewayAttribute": doModifyDirectConnectGatewayAttribute,
19516
19620
  "ModifySubnetAttribute": doModifySubnetAttribute,
19517
19621
  "DescribeSgSnapshotFileContent": doDescribeSgSnapshotFileContent,
@@ -19551,7 +19655,7 @@ ACTION_MAP = {
19551
19655
  "DisassociateNetworkInterfaceSecurityGroups": doDisassociateNetworkInterfaceSecurityGroups,
19552
19656
  "ResetRoutes": doResetRoutes,
19553
19657
  "DescribeNetDetects": doDescribeNetDetects,
19554
- "ModifyCcnRegionBandwidthLimitsType": doModifyCcnRegionBandwidthLimitsType,
19658
+ "ModifyAddressesRenewFlag": doModifyAddressesRenewFlag,
19555
19659
  "DescribeCcnRouteTableInputPolicys": doDescribeCcnRouteTableInputPolicys,
19556
19660
  "CloneSecurityGroup": doCloneSecurityGroup,
19557
19661
  "DeleteSnapshotPolicies": doDeleteSnapshotPolicies,
@@ -19596,6 +19700,7 @@ ACTION_MAP = {
19596
19700
  "CreateNetworkAclQuintupleEntries": doCreateNetworkAclQuintupleEntries,
19597
19701
  "DeleteVpnGateway": doDeleteVpnGateway,
19598
19702
  "DescribeVpcEndPointServiceWhiteList": doDescribeVpcEndPointServiceWhiteList,
19703
+ "ModifyBandwidthPackageBandwidth": doModifyBandwidthPackageBandwidth,
19599
19704
  "DescribePrivateNatGatewayLimits": doDescribePrivateNatGatewayLimits,
19600
19705
  "ModifySecurityGroupPolicies": doModifySecurityGroupPolicies,
19601
19706
  "ModifyCcnAttribute": doModifyCcnAttribute,
@@ -19609,7 +19714,8 @@ ACTION_MAP = {
19609
19714
  "DetachSnapshotInstances": doDetachSnapshotInstances,
19610
19715
  "DescribeServiceTemplates": doDescribeServiceTemplates,
19611
19716
  "HaVipDisassociateAddressIp": doHaVipDisassociateAddressIp,
19612
- "DescribeNatGatewayDirectConnectGatewayRoute": doDescribeNatGatewayDirectConnectGatewayRoute,
19717
+ "DescribeBandwidthPackageBillUsage": doDescribeBandwidthPackageBillUsage,
19718
+ "UnlockCcns": doUnlockCcns,
19613
19719
  "HaVipAssociateAddressIp": doHaVipAssociateAddressIp,
19614
19720
  "CheckDefaultSubnet": doCheckDefaultSubnet,
19615
19721
  "AssociateNetworkInterfaceSecurityGroups": doAssociateNetworkInterfaceSecurityGroups,