tccli 3.0.875.1__py2.py3-none-any.whl → 3.0.877.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 (234) hide show
  1. tccli/__init__.py +1 -1
  2. tccli/services/aa/v20200224/api.json +39 -0
  3. tccli/services/acp/v20220105/api.json +115 -0
  4. tccli/services/advisor/v20200721/api.json +30 -0
  5. tccli/services/af/v20200226/api.json +114 -0
  6. tccli/services/afc/v20200226/api.json +83 -0
  7. tccli/services/aiart/v20221229/api.json +25 -0
  8. tccli/services/ame/v20190916/api.json +329 -0
  9. tccli/services/ams/v20201229/api.json +151 -0
  10. tccli/services/anicloud/v20220923/api.json +36 -0
  11. tccli/services/antiddos/v20200309/api.json +928 -0
  12. tccli/services/apigateway/v20180808/api.json +1115 -0
  13. tccli/services/apm/v20210622/api.json +130 -0
  14. tccli/services/asr/v20190614/api.json +161 -2
  15. tccli/services/asw/v20200722/api.json +84 -0
  16. tccli/services/autoscaling/v20180419/api.json +564 -0
  17. tccli/services/ba/v20200720/api.json +10 -0
  18. tccli/services/batch/v20170312/api.json +514 -6
  19. tccli/services/bda/v20200324/api.json +186 -0
  20. tccli/services/bi/v20220105/api.json +28 -0
  21. tccli/services/billing/v20180709/api.json +515 -0
  22. tccli/services/bm/v20180423/api.json +542 -0
  23. tccli/services/bma/v20210624/api.json +322 -1
  24. tccli/services/bma/v20221115/api.json +137 -1
  25. tccli/services/bmeip/v20180625/api.json +134 -0
  26. tccli/services/bmlb/v20180625/api.json +633 -0
  27. tccli/services/bmvpc/v20180625/api.json +454 -0
  28. tccli/services/bpaas/v20181217/api.json +54 -0
  29. tccli/services/bsca/v20210811/api.json +86 -0
  30. tccli/services/btoe/v20210514/api.json +75 -0
  31. tccli/services/cam/v20190116/api.json +531 -5
  32. tccli/services/cam/v20190116/examples.json +4 -4
  33. tccli/services/captcha/v20190722/api.json +220 -0
  34. tccli/services/car/v20220110/api.json +15 -0
  35. tccli/services/cat/v20180409/api.json +135 -0
  36. tccli/services/cbs/v20170312/api.json +376 -0
  37. tccli/services/ccc/v20200210/api.json +497 -0
  38. tccli/services/cdb/cdb_client.py +53 -0
  39. tccli/services/cdb/v20170320/api.json +1574 -13
  40. tccli/services/cdb/v20170320/examples.json +10 -2
  41. tccli/services/cdc/v20201214/api.json +266 -0
  42. tccli/services/cdn/v20180606/api.json +1591 -171
  43. tccli/services/cds/v20180420/api.json +45 -0
  44. tccli/services/cdwch/v20200915/api.json +241 -0
  45. tccli/services/cfg/v20210820/api.json +203 -11
  46. tccli/services/cfg/v20210820/examples.json +2 -2
  47. tccli/services/cfs/v20190719/api.json +358 -0
  48. tccli/services/cfw/v20190904/api.json +764 -27
  49. tccli/services/cfw/v20190904/examples.json +7 -7
  50. tccli/services/chdfs/v20201112/api.json +128 -0
  51. tccli/services/ciam/v20220331/api.json +211 -0
  52. tccli/services/cii/v20210408/api.json +155 -0
  53. tccli/services/ckafka/v20190819/api.json +1388 -0
  54. tccli/services/clb/v20180317/api.json +873 -7
  55. tccli/services/cloudaudit/v20190319/api.json +158 -0
  56. tccli/services/cloudhsm/v20191112/api.json +159 -0
  57. tccli/services/cloudstudio/v20210524/api.json +201 -0
  58. tccli/services/cls/v20201016/api.json +719 -6
  59. tccli/services/cme/v20191029/api.json +736 -0
  60. tccli/services/cmq/v20190304/api.json +155 -0
  61. tccli/services/cpdp/v20190820/api.json +4099 -0
  62. tccli/services/csip/v20221121/api.json +207 -0
  63. tccli/services/cvm/v20170312/api.json +905 -6
  64. tccli/services/cwp/cwp_client.py +163 -4
  65. tccli/services/cwp/v20180228/api.json +3090 -0
  66. tccli/services/cwp/v20180228/examples.json +24 -0
  67. tccli/services/cynosdb/v20190107/api.json +936 -0
  68. tccli/services/dasb/v20191018/api.json +538 -0
  69. tccli/services/dayu/v20180709/api.json +1067 -0
  70. tccli/services/dbbrain/v20191016/api.json +353 -0
  71. tccli/services/dbbrain/v20210527/api.json +594 -0
  72. tccli/services/dbdc/v20201029/api.json +173 -0
  73. tccli/services/dc/v20180410/api.json +274 -0
  74. tccli/services/dcdb/v20180411/api.json +714 -0
  75. tccli/services/dlc/v20210125/api.json +987 -0
  76. tccli/services/dnspod/v20210323/api.json +622 -0
  77. tccli/services/domain/v20180808/api.json +229 -0
  78. tccli/services/drm/v20181115/api.json +76 -0
  79. tccli/services/ds/v20180523/api.json +99 -0
  80. tccli/services/dts/v20180330/api.json +228 -0
  81. tccli/services/dts/v20211206/api.json +548 -0
  82. tccli/services/eb/v20210416/api.json +256 -0
  83. tccli/services/ecc/v20181213/api.json +70 -0
  84. tccli/services/ecdn/v20191012/api.json +217 -0
  85. tccli/services/ecm/v20190719/api.json +1127 -0
  86. tccli/services/eiam/v20210420/api.json +348 -0
  87. tccli/services/eis/v20210601/api.json +86 -0
  88. tccli/services/emr/v20190103/api.json +754 -0
  89. tccli/services/es/v20180416/api.json +582 -0
  90. tccli/services/ess/v20201111/api.json +624 -1
  91. tccli/services/essbasic/v20210526/api.json +625 -3
  92. tccli/services/facefusion/v20181201/api.json +66 -0
  93. tccli/services/facefusion/v20220927/api.json +38 -0
  94. tccli/services/faceid/v20180301/api.json +370 -0
  95. tccli/services/fmu/v20191213/api.json +72 -0
  96. tccli/services/ft/v20200304/api.json +45 -0
  97. tccli/services/gaap/v20180529/api.json +880 -0
  98. tccli/services/gme/v20180711/api.json +267 -0
  99. tccli/services/goosefs/v20220519/api.json +14 -0
  100. tccli/services/gs/v20191118/api.json +45 -1
  101. tccli/services/hasim/v20210716/api.json +261 -0
  102. tccli/services/hcm/v20181106/api.json +27 -0
  103. tccli/services/iai/v20180301/api.json +363 -0
  104. tccli/services/iai/v20200303/api.json +376 -0
  105. tccli/services/icr/v20211014/api.json +49 -0
  106. tccli/services/ie/v20200304/api.json +401 -0
  107. tccli/services/iecp/v20210914/api.json +923 -0
  108. tccli/services/ims/v20200713/api.json +102 -0
  109. tccli/services/ims/v20201229/api.json +110 -0
  110. tccli/services/iot/v20180123/api.json +322 -0
  111. tccli/services/iotcloud/v20210408/api.json +508 -0
  112. tccli/services/iotexplorer/v20190423/api.json +660 -0
  113. tccli/services/iottid/v20190411/api.json +38 -0
  114. tccli/services/iotvideo/v20191126/api.json +398 -0
  115. tccli/services/iotvideo/v20201215/api.json +583 -0
  116. tccli/services/iotvideo/v20211125/api.json +692 -0
  117. tccli/services/iotvideoindustry/v20201201/api.json +639 -0
  118. tccli/services/irp/v20220805/api.json +152 -0
  119. tccli/services/ivld/v20210903/api.json +258 -0
  120. tccli/services/keewidb/v20220308/api.json +424 -0
  121. tccli/services/kms/v20190118/api.json +230 -0
  122. tccli/services/lcic/v20220817/api.json +414 -0
  123. tccli/services/lighthouse/v20200324/api.json +541 -2
  124. tccli/services/lighthouse/v20200324/examples.json +1 -1
  125. tccli/services/live/v20180801/api.json +1253 -66
  126. tccli/services/live/v20180801/examples.json +16 -16
  127. tccli/services/mariadb/v20170312/api.json +643 -0
  128. tccli/services/market/v20191010/api.json +13 -0
  129. tccli/services/memcached/v20190318/api.json +39 -0
  130. tccli/services/mmps/v20200710/api.json +175 -0
  131. tccli/services/mna/v20210119/api.json +120 -0
  132. tccli/services/mongodb/v20190725/api.json +440 -0
  133. tccli/services/monitor/v20180724/api.json +1599 -3
  134. tccli/services/monitor/v20180724/examples.json +1 -1
  135. tccli/services/mps/v20190612/api.json +2136 -115
  136. tccli/services/mps/v20190612/examples.json +2 -2
  137. tccli/services/mrs/v20200910/api.json +1016 -0
  138. tccli/services/ms/v20180408/api.json +183 -0
  139. tccli/services/msp/v20180319/api.json +54 -0
  140. tccli/services/nlp/v20190408/api.json +189 -0
  141. tccli/services/nlp/v20190408/examples.json +1 -1
  142. tccli/services/oceanus/v20190422/api.json +373 -0
  143. tccli/services/ocr/v20181119/api.json +1585 -7
  144. tccli/services/omics/v20221128/api.json +176 -0
  145. tccli/services/organization/v20181225/api.json +75 -0
  146. tccli/services/organization/v20210331/api.json +155 -0
  147. tccli/services/partners/v20180321/api.json +281 -0
  148. tccli/services/pds/v20210701/api.json +12 -0
  149. tccli/services/postgres/v20170312/api.json +823 -0
  150. tccli/services/privatedns/v20201028/api.json +162 -0
  151. tccli/services/pts/v20210728/api.json +620 -0
  152. tccli/services/rce/v20201103/api.json +85 -0
  153. tccli/services/redis/v20180412/api.json +867 -14
  154. tccli/services/redis/v20180412/examples.json +2 -2
  155. tccli/services/region/v20220627/api.json +30 -0
  156. tccli/services/rkp/v20191209/api.json +50 -0
  157. tccli/services/rum/v20210622/api.json +706 -0
  158. tccli/services/scf/v20180416/api.json +583 -0
  159. tccli/services/ses/v20201002/api.json +178 -0
  160. tccli/services/smh/v20210712/api.json +99 -0
  161. tccli/services/smop/v20201203/api.json +24 -0
  162. tccli/services/smpn/v20190822/api.json +32 -0
  163. tccli/services/sms/v20190711/api.json +153 -0
  164. tccli/services/sms/v20210111/api.json +168 -0
  165. tccli/services/soe/v20180724/api.json +114 -0
  166. tccli/services/sqlserver/v20180328/api.json +1012 -0
  167. tccli/services/ssa/v20180608/api.json +580 -0
  168. tccli/services/ssl/v20191205/api.json +412 -0
  169. tccli/services/sslpod/v20190605/api.json +75 -0
  170. tccli/services/ssm/v20190923/api.json +168 -0
  171. tccli/services/sts/v20180813/api.json +47 -0
  172. tccli/services/taf/v20200210/api.json +55 -0
  173. tccli/services/tag/v20180813/api.json +217 -0
  174. tccli/services/tan/v20220420/api.json +3 -0
  175. tccli/services/tat/v20201028/api.json +213 -0
  176. tccli/services/tbaas/v20180416/api.json +353 -0
  177. tccli/services/tbp/v20190311/api.json +41 -0
  178. tccli/services/tbp/v20190627/api.json +34 -0
  179. tccli/services/tcaplusdb/v20190823/api.json +554 -0
  180. tccli/services/tcbr/v20220217/api.json +188 -0
  181. tccli/services/tcm/v20210413/api.json +235 -0
  182. tccli/services/tcr/v20190924/api.json +711 -0
  183. tccli/services/tcss/v20201101/api.json +3101 -24
  184. tccli/services/tcss/v20201101/examples.json +6 -6
  185. tccli/services/tdcpg/v20211118/api.json +179 -0
  186. tccli/services/tdid/v20210519/api.json +369 -0
  187. tccli/services/tdmq/v20200217/api.json +1166 -0
  188. tccli/services/tds/v20220801/api.json +61 -0
  189. tccli/services/tem/v20210701/api.json +747 -0
  190. tccli/services/teo/v20220106/api.json +81 -0
  191. tccli/services/teo/v20220901/api.json +1234 -17
  192. tccli/services/thpc/v20211109/api.json +93 -0
  193. tccli/services/thpc/v20220401/api.json +216 -0
  194. tccli/services/thpc/v20230321/api.json +222 -0
  195. tccli/services/tic/v20201117/api.json +76 -0
  196. tccli/services/tics/v20181115/api.json +60 -0
  197. tccli/services/tiia/v20190529/api.json +229 -0
  198. tccli/services/tione/v20191022/api.json +228 -0
  199. tccli/services/tione/v20211111/api.json +945 -0
  200. tccli/services/tiw/v20190919/api.json +472 -0
  201. tccli/services/tke/v20180525/api.json +1751 -0
  202. tccli/services/tms/v20201229/api.json +49 -0
  203. tccli/services/tmt/v20180321/api.json +70 -0
  204. tccli/services/tourism/v20230215/api.json +16 -0
  205. tccli/services/trdp/v20220726/api.json +77 -0
  206. tccli/services/trp/v20210515/api.json +468 -0
  207. tccli/services/trro/v20220325/api.json +187 -0
  208. tccli/services/trtc/v20190722/api.json +501 -0
  209. tccli/services/tse/v20201207/api.json +185 -0
  210. tccli/services/tsf/tsf_client.py +57 -4
  211. tccli/services/tsf/v20180326/api.json +2409 -0
  212. tccli/services/tsf/v20180326/examples.json +8 -0
  213. tccli/services/tsw/v20210412/api.json +2 -0
  214. tccli/services/tts/v20190823/api.json +43 -0
  215. tccli/services/ump/v20200918/api.json +168 -0
  216. tccli/services/vm/v20201229/api.json +147 -0
  217. tccli/services/vm/v20210922/api.json +154 -0
  218. tccli/services/vms/v20200902/api.json +15 -0
  219. tccli/services/vod/v20180717/api.json +2787 -0
  220. tccli/services/vpc/v20170312/api.json +2175 -0
  221. tccli/services/vpc/v20170312/examples.json +16 -0
  222. tccli/services/vpc/vpc_client.py +114 -8
  223. tccli/services/vrs/v20200824/api.json +35 -0
  224. tccli/services/waf/v20180125/api.json +607 -0
  225. tccli/services/wav/v20210129/api.json +395 -0
  226. tccli/services/wedata/v20210820/api.json +2154 -0
  227. tccli/services/yinsuda/v20220527/api.json +194 -0
  228. tccli/services/yunsou/v20191115/api.json +50 -0
  229. {tccli-3.0.875.1.dist-info → tccli-3.0.877.1.dist-info}/METADATA +2 -2
  230. {tccli-3.0.875.1.dist-info → tccli-3.0.877.1.dist-info}/RECORD +234 -234
  231. {tccli-3.0.875.1.dist-info → tccli-3.0.877.1.dist-info}/LICENSE +0 -0
  232. {tccli-3.0.875.1.dist-info → tccli-3.0.877.1.dist-info}/WHEEL +0 -0
  233. {tccli-3.0.875.1.dist-info → tccli-3.0.877.1.dist-info}/entry_points.txt +0 -0
  234. {tccli-3.0.875.1.dist-info → tccli-3.0.877.1.dist-info}/top_level.txt +0 -0
@@ -916,6 +916,14 @@
916
916
  "title": "添加协议端口组模板成员"
917
917
  }
918
918
  ],
919
+ "DeleteTrafficPackages": [
920
+ {
921
+ "document": "删除共享流量包",
922
+ "input": "https://vpc.tencentcloudapi.com/?Action=DeleteTrafficPackages\n&TrafficPackageIds.0=tfp-c9gcdb0t\n&<公共请求参数>",
923
+ "output": "{\n \"Response\": {\n \"RequestId\": \"5957a632-12b2-4051-b103-ecd77145ecbd\"\n }\n}",
924
+ "title": "删除流量包"
925
+ }
926
+ ],
919
927
  "DeleteVpc": [
920
928
  {
921
929
  "document": "删除VPC",
@@ -1586,6 +1594,14 @@
1586
1594
  "title": "查询快照策略"
1587
1595
  }
1588
1596
  ],
1597
+ "DescribeSubnetResourceDashboard": [
1598
+ {
1599
+ "document": "查看Subnet资源信息",
1600
+ "input": "https://vpc.tencentcloudapi.com/?Action=DescribeSubnetResourceDashboard\r\n&SubnetIds.0=subnet-12345678\r\n&<公共请求参数>",
1601
+ "output": "{\n \"Response\": {\n \"ResourceStatisticsSet\": [\n {\n \"VpcId\": \"vpc-12345678\",\n \"SubnetId\": \"subnet-12345678\",\n \"Ip\": 14,\n \"ResourceStatisticsItemSet\": [\n {\n \"ResourceType\": \"NetworkDetect\",\n \"ResourceName\": \"NetworkDetect\",\n \"ResourceCount\": 1\n },\n {\n \"ResourceType\": \"LoadBanlancer\",\n \"ResourceName\": \"LoadBanlancer\",\n \"ResourceCount\": 2\n },\n {\n \"ResourceType\": \"MySQL\",\n \"ResourceName\": \"MySQL\",\n \"ResourceCount\": 1\n },\n {\n \"ResourceType\": \"Memcached\",\n \"ResourceName\": \"Memcached\",\n \"ResourceCount\": 1\n },\n {\n \"ResourceType\": \"CTSDB\",\n \"ResourceName\": \"CTSDB\",\n \"ResourceCount\": 0\n },\n {\n \"ResourceType\": \"TDSQL\",\n \"ResourceName\": \"TDSQL\",\n \"ResourceCount\": 0\n },\n {\n \"ResourceType\": \"SQL Server\",\n \"ResourceName\": \"SQL Server\",\n \"ResourceCount\": 0\n },\n {\n \"ResourceType\": \"PostgreSQL\",\n \"ResourceName\": \"PostgreSQL\",\n \"ResourceCount\": 0\n },\n {\n \"ResourceType\": \"NAS\",\n \"ResourceName\": \"NAS\",\n \"ResourceCount\": 0\n },\n {\n \"ResourceType\": \"Snova\",\n \"ResourceName\": \"Snova\",\n \"ResourceCount\": 0\n },\n {\n \"ResourceType\": \"Ckafka\",\n \"ResourceName\": \"Ckafka\",\n \"ResourceCount\": 1\n },\n {\n \"ResourceType\": \"Grocery\",\n \"ResourceName\": \"Grocery\",\n \"ResourceCount\": 0\n },\n {\n \"ResourceType\": \"Cloudhsm\",\n \"ResourceName\": \"Cloudhsm\",\n \"ResourceCount\": 0\n },\n {\n \"ResourceType\": \"MongoDB\",\n \"ResourceName\": \"MongoDB\",\n \"ResourceCount\": 0\n }\n ]\n }\n ],\n \"RequestId\": \"0fee1673-de33-4f0c-9ce4-037cbcf2d7b2\"\n }\n}",
1602
+ "title": "查看Subnet资源信息"
1603
+ }
1604
+ ],
1589
1605
  "DescribeSubnets": [
1590
1606
  {
1591
1607
  "document": "查询子网列表",
@@ -2097,7 +2097,7 @@ def doDescribeAddresses(args, parsed_globals):
2097
2097
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
2098
2098
 
2099
2099
 
2100
- def doDescribeClassicLinkInstances(args, parsed_globals):
2100
+ def doReplaceDirectConnectGatewayCcnRoutes(args, parsed_globals):
2101
2101
  g_param = parse_global_arg(parsed_globals)
2102
2102
 
2103
2103
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -2126,11 +2126,11 @@ def doDescribeClassicLinkInstances(args, parsed_globals):
2126
2126
  client = mod.VpcClient(cred, g_param[OptionsDefine.Region], profile)
2127
2127
  client._sdkVersion += ("_CLI_" + __version__)
2128
2128
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
2129
- model = models.DescribeClassicLinkInstancesRequest()
2129
+ model = models.ReplaceDirectConnectGatewayCcnRoutesRequest()
2130
2130
  model.from_json_string(json.dumps(args))
2131
2131
  start_time = time.time()
2132
2132
  while True:
2133
- rsp = client.DescribeClassicLinkInstances(model)
2133
+ rsp = client.ReplaceDirectConnectGatewayCcnRoutes(model)
2134
2134
  result = rsp.to_json_string()
2135
2135
  try:
2136
2136
  json_obj = json.loads(result)
@@ -3501,6 +3501,58 @@ def doGenerateVpnConnectionDefaultHealthCheckIp(args, parsed_globals):
3501
3501
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
3502
3502
 
3503
3503
 
3504
+ def doDeleteTrafficPackages(args, parsed_globals):
3505
+ g_param = parse_global_arg(parsed_globals)
3506
+
3507
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
3508
+ cred = credential.CVMRoleCredential()
3509
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
3510
+ cred = credential.STSAssumeRoleCredential(
3511
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
3512
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')]
3513
+ )
3514
+ elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
3515
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
3516
+ else:
3517
+ cred = credential.Credential(
3518
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
3519
+ )
3520
+ http_profile = HttpProfile(
3521
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
3522
+ reqMethod="POST",
3523
+ endpoint=g_param[OptionsDefine.Endpoint],
3524
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
3525
+ )
3526
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
3527
+ if g_param[OptionsDefine.Language]:
3528
+ profile.language = g_param[OptionsDefine.Language]
3529
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
3530
+ client = mod.VpcClient(cred, g_param[OptionsDefine.Region], profile)
3531
+ client._sdkVersion += ("_CLI_" + __version__)
3532
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
3533
+ model = models.DeleteTrafficPackagesRequest()
3534
+ model.from_json_string(json.dumps(args))
3535
+ start_time = time.time()
3536
+ while True:
3537
+ rsp = client.DeleteTrafficPackages(model)
3538
+ result = rsp.to_json_string()
3539
+ try:
3540
+ json_obj = json.loads(result)
3541
+ except TypeError as e:
3542
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
3543
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
3544
+ break
3545
+ cur_time = time.time()
3546
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
3547
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
3548
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
3549
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
3550
+ else:
3551
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
3552
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
3553
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
3554
+
3555
+
3504
3556
  def doDescribeTemplateLimits(args, parsed_globals):
3505
3557
  g_param = parse_global_arg(parsed_globals)
3506
3558
 
@@ -7869,6 +7921,58 @@ def doAssociateDhcpIpWithAddressIp(args, parsed_globals):
7869
7921
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
7870
7922
 
7871
7923
 
7924
+ def doDescribeClassicLinkInstances(args, parsed_globals):
7925
+ g_param = parse_global_arg(parsed_globals)
7926
+
7927
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
7928
+ cred = credential.CVMRoleCredential()
7929
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
7930
+ cred = credential.STSAssumeRoleCredential(
7931
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
7932
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')]
7933
+ )
7934
+ elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
7935
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
7936
+ else:
7937
+ cred = credential.Credential(
7938
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
7939
+ )
7940
+ http_profile = HttpProfile(
7941
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
7942
+ reqMethod="POST",
7943
+ endpoint=g_param[OptionsDefine.Endpoint],
7944
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
7945
+ )
7946
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
7947
+ if g_param[OptionsDefine.Language]:
7948
+ profile.language = g_param[OptionsDefine.Language]
7949
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
7950
+ client = mod.VpcClient(cred, g_param[OptionsDefine.Region], profile)
7951
+ client._sdkVersion += ("_CLI_" + __version__)
7952
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
7953
+ model = models.DescribeClassicLinkInstancesRequest()
7954
+ model.from_json_string(json.dumps(args))
7955
+ start_time = time.time()
7956
+ while True:
7957
+ rsp = client.DescribeClassicLinkInstances(model)
7958
+ result = rsp.to_json_string()
7959
+ try:
7960
+ json_obj = json.loads(result)
7961
+ except TypeError as e:
7962
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
7963
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
7964
+ break
7965
+ cur_time = time.time()
7966
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
7967
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
7968
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
7969
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
7970
+ else:
7971
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
7972
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
7973
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
7974
+
7975
+
7872
7976
  def doDeleteServiceTemplate(args, parsed_globals):
7873
7977
  g_param = parse_global_arg(parsed_globals)
7874
7978
 
@@ -12809,7 +12913,7 @@ def doCreateDirectConnectGatewayCcnRoutes(args, parsed_globals):
12809
12913
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
12810
12914
 
12811
12915
 
12812
- def doReplaceDirectConnectGatewayCcnRoutes(args, parsed_globals):
12916
+ def doDescribeSubnetResourceDashboard(args, parsed_globals):
12813
12917
  g_param = parse_global_arg(parsed_globals)
12814
12918
 
12815
12919
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -12838,11 +12942,11 @@ def doReplaceDirectConnectGatewayCcnRoutes(args, parsed_globals):
12838
12942
  client = mod.VpcClient(cred, g_param[OptionsDefine.Region], profile)
12839
12943
  client._sdkVersion += ("_CLI_" + __version__)
12840
12944
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
12841
- model = models.ReplaceDirectConnectGatewayCcnRoutesRequest()
12945
+ model = models.DescribeSubnetResourceDashboardRequest()
12842
12946
  model.from_json_string(json.dumps(args))
12843
12947
  start_time = time.time()
12844
12948
  while True:
12845
- rsp = client.ReplaceDirectConnectGatewayCcnRoutes(model)
12949
+ rsp = client.DescribeSubnetResourceDashboard(model)
12846
12950
  result = rsp.to_json_string()
12847
12951
  try:
12848
12952
  json_obj = json.loads(result)
@@ -15876,7 +15980,7 @@ ACTION_MAP = {
15876
15980
  "DeleteAddressTemplateGroup": doDeleteAddressTemplateGroup,
15877
15981
  "DescribeCustomerGatewayVendors": doDescribeCustomerGatewayVendors,
15878
15982
  "DescribeAddresses": doDescribeAddresses,
15879
- "DescribeClassicLinkInstances": doDescribeClassicLinkInstances,
15983
+ "ReplaceDirectConnectGatewayCcnRoutes": doReplaceDirectConnectGatewayCcnRoutes,
15880
15984
  "DescribeVpcTaskResult": doDescribeVpcTaskResult,
15881
15985
  "DeleteLocalGateway": doDeleteLocalGateway,
15882
15986
  "CreateDirectConnectGateway": doCreateDirectConnectGateway,
@@ -15903,6 +16007,7 @@ ACTION_MAP = {
15903
16007
  "AssociateNetworkAclSubnets": doAssociateNetworkAclSubnets,
15904
16008
  "DisassociateDhcpIpWithAddressIp": doDisassociateDhcpIpWithAddressIp,
15905
16009
  "GenerateVpnConnectionDefaultHealthCheckIp": doGenerateVpnConnectionDefaultHealthCheckIp,
16010
+ "DeleteTrafficPackages": doDeleteTrafficPackages,
15906
16011
  "DescribeTemplateLimits": doDescribeTemplateLimits,
15907
16012
  "CheckNetDetectState": doCheckNetDetectState,
15908
16013
  "DeleteVpnGatewaySslClient": doDeleteVpnGatewaySslClient,
@@ -15987,6 +16092,7 @@ ACTION_MAP = {
15987
16092
  "DescribeCcnRegionBandwidthLimits": doDescribeCcnRegionBandwidthLimits,
15988
16093
  "ReplaceRouteTableAssociation": doReplaceRouteTableAssociation,
15989
16094
  "AssociateDhcpIpWithAddressIp": doAssociateDhcpIpWithAddressIp,
16095
+ "DescribeClassicLinkInstances": doDescribeClassicLinkInstances,
15990
16096
  "DeleteServiceTemplate": doDeleteServiceTemplate,
15991
16097
  "UnassignPrivateIpAddresses": doUnassignPrivateIpAddresses,
15992
16098
  "ModifyAddressTemplateGroupAttribute": doModifyAddressTemplateGroupAttribute,
@@ -16082,7 +16188,7 @@ ACTION_MAP = {
16082
16188
  "DescribeTrafficPackages": doDescribeTrafficPackages,
16083
16189
  "ModifyPrivateIpAddressesAttribute": doModifyPrivateIpAddressesAttribute,
16084
16190
  "CreateDirectConnectGatewayCcnRoutes": doCreateDirectConnectGatewayCcnRoutes,
16085
- "ReplaceDirectConnectGatewayCcnRoutes": doReplaceDirectConnectGatewayCcnRoutes,
16191
+ "DescribeSubnetResourceDashboard": doDescribeSubnetResourceDashboard,
16086
16192
  "CreateLocalGateway": doCreateLocalGateway,
16087
16193
  "ModifyNetworkInterfaceQos": doModifyNetworkInterfaceQos,
16088
16194
  "DetachCcnInstances": doDetachCcnInstances,
@@ -40,6 +40,7 @@
40
40
  "document": "CreateVRSTask请求参数结构体",
41
41
  "members": [
42
42
  {
43
+ "disabled": false,
43
44
  "document": "唯一请求 ID",
44
45
  "example": "无",
45
46
  "member": "string",
@@ -48,6 +49,7 @@
48
49
  "type": "string"
49
50
  },
50
51
  {
52
+ "disabled": false,
51
53
  "document": "音色名称",
52
54
  "example": "无",
53
55
  "member": "string",
@@ -56,6 +58,7 @@
56
58
  "type": "string"
57
59
  },
58
60
  {
61
+ "disabled": false,
59
62
  "document": "音频采样率:\n\n16000:16k",
60
63
  "example": "无",
61
64
  "member": "int64",
@@ -64,6 +67,7 @@
64
67
  "type": "int"
65
68
  },
66
69
  {
70
+ "disabled": false,
67
71
  "document": "音色性别:\n\n1-male\n\n2-female",
68
72
  "example": "无",
69
73
  "member": "int64",
@@ -72,6 +76,7 @@
72
76
  "type": "int"
73
77
  },
74
78
  {
79
+ "disabled": false,
75
80
  "document": "语言类型:\n\n1-中文",
76
81
  "example": "无",
77
82
  "member": "int64",
@@ -80,6 +85,7 @@
80
85
  "type": "int"
81
86
  },
82
87
  {
88
+ "disabled": false,
83
89
  "document": "音频格式,音频类型(wav,mp3,aac,m4a)",
84
90
  "example": "无",
85
91
  "member": "string",
@@ -88,6 +94,7 @@
88
94
  "type": "string"
89
95
  },
90
96
  {
97
+ "disabled": false,
91
98
  "document": "音频ID集合",
92
99
  "example": "无",
93
100
  "member": "string",
@@ -96,6 +103,7 @@
96
103
  "type": "list"
97
104
  },
98
105
  {
106
+ "disabled": false,
99
107
  "document": "回调 URL,用户自行搭建的用于接收结果的服务URL。如果用户使用轮询方式获取识别结果,则无需提交该参数。\n回调采用POST请求方式,Content-Type为application/x-www-form-urlencoded,回调数据格式如下:callback_body=checksum=&data={\"TaskId\":\"xxxxxxxxxxxxxx\",\"Status\":2,\"StatusStr\":\"success\",\"VoiceType\":xxxxx,\"ErrorMsg\":\"\"}",
100
108
  "example": "无",
101
109
  "member": "string",
@@ -110,6 +118,7 @@
110
118
  "document": "声音复刻任务创建响应",
111
119
  "members": [
112
120
  {
121
+ "disabled": false,
113
122
  "document": "任务ID\n注意:此字段可能返回 null,表示取不到有效值。",
114
123
  "example": "ce68122c-0ca8-4fa6-99b1-90a28670626b",
115
124
  "member": "string",
@@ -125,6 +134,7 @@
125
134
  "document": "CreateVRSTask返回参数结构体",
126
135
  "members": [
127
136
  {
137
+ "disabled": false,
128
138
  "document": "创建任务结果",
129
139
  "example": "无",
130
140
  "member": "CreateVRSTaskRespData",
@@ -145,6 +155,7 @@
145
155
  "document": "DescribeVRSTaskStatus请求参数结构体",
146
156
  "members": [
147
157
  {
158
+ "disabled": false,
148
159
  "document": "任务ID",
149
160
  "example": "无",
150
161
  "member": "string",
@@ -159,6 +170,7 @@
159
170
  "document": "任务结果",
160
171
  "members": [
161
172
  {
173
+ "disabled": false,
162
174
  "document": "任务ID\n注意:此字段可能返回 null,表示取不到有效值。",
163
175
  "example": "无",
164
176
  "member": "string",
@@ -168,6 +180,7 @@
168
180
  "value_allowed_null": true
169
181
  },
170
182
  {
183
+ "disabled": false,
171
184
  "document": "任务状态码,0:任务等待,1:任务执行中,2:任务成功,3:任务失败。\n注意:此字段可能返回 null,表示取不到有效值。",
172
185
  "example": "无",
173
186
  "member": "int64",
@@ -177,6 +190,7 @@
177
190
  "value_allowed_null": true
178
191
  },
179
192
  {
193
+ "disabled": false,
180
194
  "document": "任务状态,waiting:任务等待,doing:任务执行中,success:任务成功,failed:任务失败。\n注意:此字段可能返回 null,表示取不到有效值。",
181
195
  "example": "无",
182
196
  "member": "string",
@@ -186,6 +200,7 @@
186
200
  "value_allowed_null": true
187
201
  },
188
202
  {
203
+ "disabled": false,
189
204
  "document": "音色id\n注意:此字段可能返回 null,表示取不到有效值。",
190
205
  "example": "无",
191
206
  "member": "int64",
@@ -195,6 +210,7 @@
195
210
  "value_allowed_null": true
196
211
  },
197
212
  {
213
+ "disabled": false,
198
214
  "document": "失败原因说明。\n注意:此字段可能返回 null,表示取不到有效值。",
199
215
  "example": "无",
200
216
  "member": "string",
@@ -210,6 +226,7 @@
210
226
  "document": "DescribeVRSTaskStatus返回参数结构体",
211
227
  "members": [
212
228
  {
229
+ "disabled": false,
213
230
  "document": "声音复刻任务结果",
214
231
  "example": "无",
215
232
  "member": "DescribeVRSTaskStatusRespData",
@@ -230,6 +247,7 @@
230
247
  "document": "DetectEnvAndSoundQuality请求参数结构体",
231
248
  "members": [
232
249
  {
250
+ "disabled": false,
233
251
  "document": "标注文本信息 ID",
234
252
  "example": "无",
235
253
  "member": "string",
@@ -238,6 +256,7 @@
238
256
  "type": "string"
239
257
  },
240
258
  {
259
+ "disabled": false,
241
260
  "document": "语音数据 要使用base64编码(采用python语言时注意读取文件时需要转成base64字符串编码,例如:str(base64.b64encode(open(\"input.aac\", mode=\"rb\").read()), encoding='utf-8') )。",
242
261
  "example": "无",
243
262
  "member": "string",
@@ -246,6 +265,7 @@
246
265
  "type": "string"
247
266
  },
248
267
  {
268
+ "disabled": false,
249
269
  "document": "音频格式,音频类型(wav,mp3,aac,m4a)",
250
270
  "example": "无",
251
271
  "member": "string",
@@ -254,6 +274,7 @@
254
274
  "type": "string"
255
275
  },
256
276
  {
277
+ "disabled": false,
257
278
  "document": "1:环境检测 2:音质检测",
258
279
  "example": "无",
259
280
  "member": "int64",
@@ -262,6 +283,7 @@
262
283
  "type": "int"
263
284
  },
264
285
  {
286
+ "disabled": false,
265
287
  "document": "音频采样率:\n\n16000:16k(默认)",
266
288
  "example": "无",
267
289
  "member": "int64",
@@ -276,6 +298,7 @@
276
298
  "document": "DetectEnvAndSoundQuality返回参数结构体",
277
299
  "members": [
278
300
  {
301
+ "disabled": false,
279
302
  "document": "检测结果",
280
303
  "example": "无",
281
304
  "member": "DetectionEnvAndSoundQualityRespData",
@@ -296,6 +319,7 @@
296
319
  "document": "环境检测和音频检测响应",
297
320
  "members": [
298
321
  {
322
+ "disabled": false,
299
323
  "document": "音频ID (用于创建任务接口AudioIds),环境检测该值为空,仅在音质检测情况下返回\n注意:此字段可能返回 null,表示取不到有效值。",
300
324
  "example": "vrs8270f89c-51f8-41c9-8bee-19fb5b8b9708",
301
325
  "member": "string",
@@ -305,6 +329,7 @@
305
329
  "value_allowed_null": true
306
330
  },
307
331
  {
332
+ "disabled": false,
308
333
  "document": "检测code \n\n0 表示当前语音通过\n-1 表示检测失败,需要重试\n-2 表示语音检测不通过,提示用户再重新录制一下(通常漏读,错读,或多读)\n-3 表示语音中噪声较大,不通过\n注意:此字段可能返回 null,表示取不到有效值。",
309
334
  "example": "0",
310
335
  "member": "int64",
@@ -314,6 +339,7 @@
314
339
  "value_allowed_null": true
315
340
  },
316
341
  {
342
+ "disabled": false,
317
343
  "document": "检测提示信息\n注意:此字段可能返回 null,表示取不到有效值。",
318
344
  "example": "Success",
319
345
  "member": "string",
@@ -323,6 +349,7 @@
323
349
  "value_allowed_null": true
324
350
  },
325
351
  {
352
+ "disabled": false,
326
353
  "document": "检测提示信息\n注意:此字段可能返回 null,表示取不到有效值。",
327
354
  "example": "无",
328
355
  "member": "Words",
@@ -343,6 +370,7 @@
343
370
  "document": "GetTrainingText返回参数结构体",
344
371
  "members": [
345
372
  {
373
+ "disabled": false,
346
374
  "document": "文本列表",
347
375
  "example": "无",
348
376
  "member": "TrainingTexts",
@@ -363,6 +391,7 @@
363
391
  "document": "训练文本",
364
392
  "members": [
365
393
  {
394
+ "disabled": false,
366
395
  "document": "文本ID\n注意:此字段可能返回 null,表示取不到有效值。",
367
396
  "example": "00001",
368
397
  "member": "string",
@@ -372,6 +401,7 @@
372
401
  "value_allowed_null": true
373
402
  },
374
403
  {
404
+ "disabled": false,
375
405
  "document": "文本\n注意:此字段可能返回 null,表示取不到有效值。",
376
406
  "example": "无",
377
407
  "member": "string",
@@ -387,6 +417,7 @@
387
417
  "document": "训练文本列表",
388
418
  "members": [
389
419
  {
420
+ "disabled": false,
390
421
  "document": "训练文本列表\n注意:此字段可能返回 null,表示取不到有效值。",
391
422
  "example": "[]",
392
423
  "member": "TrainingText",
@@ -402,6 +433,7 @@
402
433
  "document": "音频检测提示信息:\n1.检测字是否存在多读、 少读、 错读等\n2.检测准确度和流畅度",
403
434
  "members": [
404
435
  {
436
+ "disabled": false,
405
437
  "document": "准确度 (<75则认为不合格)\n注意:此字段可能返回 null,表示取不到有效值。",
406
438
  "example": "无",
407
439
  "member": "float",
@@ -411,6 +443,7 @@
411
443
  "value_allowed_null": true
412
444
  },
413
445
  {
446
+ "disabled": false,
414
447
  "document": "流畅度 (<0.95则认为不合格)\n注意:此字段可能返回 null,表示取不到有效值。",
415
448
  "example": "无",
416
449
  "member": "float",
@@ -420,6 +453,7 @@
420
453
  "value_allowed_null": true
421
454
  },
422
455
  {
456
+ "disabled": false,
423
457
  "document": "tag: \n0: match 匹配\n1: insert 多读\n2: delete 少读\n3: replace 错读\n4: oov 待评估字不在发音评估的词库\n5: unknown 未知错误\n注意:此字段可能返回 null,表示取不到有效值。",
424
458
  "example": "无",
425
459
  "member": "int64",
@@ -429,6 +463,7 @@
429
463
  "value_allowed_null": true
430
464
  },
431
465
  {
466
+ "disabled": false,
432
467
  "document": "字\n注意:此字段可能返回 null,表示取不到有效值。",
433
468
  "example": "无",
434
469
  "member": "string",