tccli 3.0.1216.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 (252) hide show
  1. tccli/__init__.py +1 -1
  2. tccli/argparser.py +1 -1
  3. tccli/command.py +2 -2
  4. tccli/credentials.py +25 -0
  5. tccli/main.py +6 -2
  6. tccli/plugins/sso/__init__.py +61 -0
  7. tccli/plugins/sso/configs.py +4 -0
  8. tccli/plugins/sso/configure.py +45 -0
  9. tccli/plugins/sso/login.py +144 -0
  10. tccli/plugins/sso/logout.py +21 -0
  11. tccli/plugins/sso/terminal.py +161 -0
  12. tccli/plugins/sso/texts.py +40 -0
  13. tccli/services/__init__.py +6 -0
  14. tccli/services/acp/v20220105/api.json +7 -7
  15. tccli/services/acp/v20220105/examples.json +2 -2
  16. tccli/services/aiart/v20221229/api.json +29 -29
  17. tccli/services/aiart/v20221229/examples.json +8 -8
  18. tccli/services/apigateway/v20180808/api.json +18 -17
  19. tccli/services/apigateway/v20180808/examples.json +12 -12
  20. tccli/services/apm/v20210622/api.json +98 -4
  21. tccli/services/asr/v20190614/api.json +18 -17
  22. tccli/services/asr/v20190614/examples.json +13 -13
  23. tccli/services/autoscaling/v20180419/api.json +371 -309
  24. tccli/services/autoscaling/v20180419/examples.json +17 -17
  25. tccli/services/batch/v20170312/api.json +7 -7
  26. tccli/services/bda/v20200324/api.json +39 -31
  27. tccli/services/bda/v20200324/examples.json +9 -9
  28. tccli/services/bh/__init__.py +4 -0
  29. tccli/services/bh/bh_client.py +3428 -0
  30. tccli/services/bh/v20230418/api.json +8180 -0
  31. tccli/services/bh/v20230418/examples.json +519 -0
  32. tccli/services/bi/v20220105/api.json +48 -0
  33. tccli/services/billing/v20180709/api.json +26 -24
  34. tccli/services/bsca/v20210811/api.json +1 -1
  35. tccli/services/btoe/v20210514/api.json +4 -4
  36. tccli/services/btoe/v20210514/examples.json +2 -2
  37. tccli/services/ca/v20230228/api.json +60 -0
  38. tccli/services/cam/v20190116/api.json +11 -11
  39. tccli/services/cat/v20180409/api.json +9 -0
  40. tccli/services/cbs/v20170312/api.json +200 -188
  41. tccli/services/cbs/v20170312/examples.json +4 -4
  42. tccli/services/ccc/v20200210/api.json +390 -323
  43. tccli/services/ccc/v20200210/examples.json +15 -15
  44. tccli/services/cdb/cdb_client.py +13 -13
  45. tccli/services/cdb/v20170320/api.json +295 -270
  46. tccli/services/cdb/v20170320/examples.json +38 -38
  47. tccli/services/cdc/v20201214/api.json +283 -270
  48. tccli/services/cdc/v20201214/examples.json +26 -26
  49. tccli/services/cds/v20180420/api.json +82 -76
  50. tccli/services/cds/v20180420/examples.json +1 -1
  51. tccli/services/cdwch/v20200915/api.json +1 -1
  52. tccli/services/cdwdoris/v20211228/api.json +42 -2
  53. tccli/services/cdz/v20221123/api.json +41 -5
  54. tccli/services/cfg/v20210820/api.json +31 -0
  55. tccli/services/cfs/v20190719/api.json +89 -1
  56. tccli/services/cfs/v20190719/examples.json +1 -1
  57. tccli/services/cfw/cfw_client.py +0 -53
  58. tccli/services/cfw/v20190904/api.json +1849 -1999
  59. tccli/services/cfw/v20190904/examples.json +157 -159
  60. tccli/services/ckafka/v20190819/api.json +104 -75
  61. tccli/services/clb/v20180317/api.json +48 -26
  62. tccli/services/clb/v20180317/examples.json +1 -1
  63. tccli/services/cloudapp/v20220530/api.json +5 -1
  64. tccli/services/cloudaudit/v20190319/api.json +58 -44
  65. tccli/services/cloudaudit/v20190319/examples.json +6 -6
  66. tccli/services/cloudstudio/v20230508/api.json +38 -37
  67. tccli/services/cloudstudio/v20230508/examples.json +4 -4
  68. tccli/services/cls/cls_client.py +216 -4
  69. tccli/services/cls/v20201016/api.json +536 -47
  70. tccli/services/cls/v20201016/examples.json +34 -2
  71. tccli/services/csip/v20221121/api.json +2562 -2382
  72. tccli/services/csip/v20221121/examples.json +108 -108
  73. tccli/services/cvm/v20170312/api.json +149 -112
  74. tccli/services/cvm/v20170312/examples.json +2 -2
  75. tccli/services/cwp/cwp_client.py +4 -110
  76. tccli/services/cwp/v20180228/api.json +6338 -6146
  77. tccli/services/cwp/v20180228/examples.json +342 -370
  78. tccli/services/cynosdb/v20190107/api.json +93 -81
  79. tccli/services/cynosdb/v20190107/examples.json +70 -70
  80. tccli/services/dasb/v20191018/api.json +796 -651
  81. tccli/services/dasb/v20191018/examples.json +101 -101
  82. tccli/services/dcdb/dcdb_client.py +114 -61
  83. tccli/services/dcdb/v20180411/api.json +141 -7
  84. tccli/services/dcdb/v20180411/examples.json +32 -0
  85. tccli/services/dlc/v20210125/api.json +21 -11
  86. tccli/services/dnspod/dnspod_client.py +417 -46
  87. tccli/services/dnspod/v20210323/api.json +751 -30
  88. tccli/services/dnspod/v20210323/examples.json +62 -0
  89. tccli/services/dts/v20211206/api.json +4 -4
  90. tccli/services/ecm/v20190719/api.json +2 -2
  91. tccli/services/emr/v20190103/api.json +339 -114
  92. tccli/services/emr/v20190103/examples.json +64 -82
  93. tccli/services/es/v20180416/api.json +29 -0
  94. tccli/services/es/v20180416/examples.json +1 -1
  95. tccli/services/ess/v20201111/api.json +49 -31
  96. tccli/services/ess/v20201111/examples.json +20 -8
  97. tccli/services/essbasic/v20210526/api.json +54 -49
  98. tccli/services/essbasic/v20210526/examples.json +36 -18
  99. tccli/services/facefusion/v20181201/api.json +47 -45
  100. tccli/services/facefusion/v20181201/examples.json +2 -2
  101. tccli/services/facefusion/v20220927/api.json +54 -48
  102. tccli/services/facefusion/v20220927/examples.json +5 -5
  103. tccli/services/faceid/v20180301/api.json +497 -496
  104. tccli/services/faceid/v20180301/examples.json +219 -101
  105. tccli/services/fmu/v20191213/api.json +59 -67
  106. tccli/services/fmu/v20191213/examples.json +22 -22
  107. tccli/services/ft/v20200304/api.json +53 -57
  108. tccli/services/ft/v20200304/examples.json +14 -14
  109. tccli/services/gme/v20180711/api.json +21 -11
  110. tccli/services/gme/v20180711/examples.json +1 -1
  111. tccli/services/hai/v20230812/api.json +116 -9
  112. tccli/services/hai/v20230812/examples.json +4 -4
  113. tccli/services/hunyuan/hunyuan_client.py +436 -12
  114. tccli/services/hunyuan/v20230901/api.json +1482 -118
  115. tccli/services/hunyuan/v20230901/examples.json +82 -18
  116. tccli/services/iai/v20180301/api.json +23 -19
  117. tccli/services/iai/v20180301/examples.json +2 -2
  118. tccli/services/iai/v20200303/api.json +530 -511
  119. tccli/services/iai/v20200303/examples.json +116 -86
  120. tccli/services/ig/__init__.py +4 -0
  121. tccli/services/ig/ig_client.py +195 -0
  122. tccli/services/ig/v20210518/api.json +83 -0
  123. tccli/services/ig/v20210518/examples.json +13 -0
  124. tccli/services/ioa/ioa_client.py +53 -0
  125. tccli/services/ioa/v20220601/api.json +662 -413
  126. tccli/services/ioa/v20220601/examples.json +24 -10
  127. tccli/services/iotexplorer/v20190423/api.json +33 -13
  128. tccli/services/iotexplorer/v20190423/examples.json +3 -3
  129. tccli/services/iotvideo/iotvideo_client.py +106 -0
  130. tccli/services/iotvideo/v20191126/api.json +256 -24
  131. tccli/services/iotvideo/v20191126/examples.json +19 -3
  132. tccli/services/iotvideo/v20201215/api.json +1 -1
  133. tccli/services/iotvideo/v20201215/examples.json +1 -1
  134. tccli/services/iotvideo/v20211125/api.json +1 -1
  135. tccli/services/iotvideo/v20211125/examples.json +2 -2
  136. tccli/services/iss/iss_client.py +69 -122
  137. tccli/services/iss/v20230517/api.json +10 -54
  138. tccli/services/iss/v20230517/examples.json +0 -14
  139. tccli/services/kms/v20190118/api.json +301 -268
  140. tccli/services/kms/v20190118/examples.json +45 -51
  141. tccli/services/lcic/lcic_client.py +159 -0
  142. tccli/services/lcic/v20220817/api.json +273 -1
  143. tccli/services/lcic/v20220817/examples.json +24 -0
  144. tccli/services/lighthouse/v20200324/api.json +56 -0
  145. tccli/services/live/live_client.py +159 -0
  146. tccli/services/live/v20180801/api.json +244 -0
  147. tccli/services/live/v20180801/examples.json +24 -0
  148. tccli/services/lke/v20231130/api.json +17 -17
  149. tccli/services/lke/v20231130/examples.json +19 -25
  150. tccli/services/mariadb/v20170312/api.json +7 -7
  151. tccli/services/market/v20191010/api.json +3 -3
  152. tccli/services/market/v20191010/examples.json +2 -2
  153. tccli/services/mmps/v20200710/api.json +47 -47
  154. tccli/services/mmps/v20200710/examples.json +3 -3
  155. tccli/services/mongodb/v20190725/api.json +4 -4
  156. tccli/services/monitor/v20180724/api.json +46 -19
  157. tccli/services/mps/v20190612/api.json +282 -5
  158. tccli/services/mps/v20190612/examples.json +25 -1
  159. tccli/services/mqtt/v20240516/api.json +2 -2
  160. tccli/services/mrs/v20200910/api.json +72 -34
  161. tccli/services/mrs/v20200910/examples.json +2 -2
  162. tccli/services/ms/v20180408/api.json +535 -506
  163. tccli/services/ms/v20180408/examples.json +25 -25
  164. tccli/services/oceanus/v20190422/api.json +130 -0
  165. tccli/services/ocr/ocr_client.py +232 -20
  166. tccli/services/ocr/v20181119/api.json +2265 -760
  167. tccli/services/ocr/v20181119/examples.json +200 -180
  168. tccli/services/omics/v20221128/api.json +614 -553
  169. tccli/services/omics/v20221128/examples.json +9 -9
  170. tccli/services/organization/v20210331/api.json +13 -4
  171. tccli/services/organization/v20210331/examples.json +2 -2
  172. tccli/services/partners/v20180321/api.json +244 -234
  173. tccli/services/partners/v20180321/examples.json +19 -19
  174. tccli/services/privatedns/privatedns_client.py +428 -4
  175. tccli/services/privatedns/v20201028/api.json +815 -11
  176. tccli/services/privatedns/v20201028/examples.json +64 -0
  177. tccli/services/pts/v20210728/api.json +18 -0
  178. tccli/services/pts/v20210728/examples.json +1 -1
  179. tccli/services/rce/rce_client.py +53 -0
  180. tccli/services/rce/v20201103/api.json +146 -0
  181. tccli/services/rce/v20201103/examples.json +8 -0
  182. tccli/services/redis/v20180412/api.json +42 -42
  183. tccli/services/redis/v20180412/examples.json +19 -19
  184. tccli/services/rum/v20210622/api.json +9 -0
  185. tccli/services/scf/v20180416/api.json +15 -15
  186. tccli/services/scf/v20180416/examples.json +1 -1
  187. tccli/services/smop/v20201203/api.json +46 -42
  188. tccli/services/smop/v20201203/examples.json +2 -2
  189. tccli/services/soe/v20180724/api.json +10 -10
  190. tccli/services/sqlserver/v20180328/api.json +21 -8
  191. tccli/services/sqlserver/v20180328/examples.json +5 -5
  192. tccli/services/ssl/v20191205/api.json +97 -4
  193. tccli/services/ssm/v20190923/api.json +292 -231
  194. tccli/services/ssm/v20190923/examples.json +42 -42
  195. tccli/services/tat/v20201028/api.json +97 -97
  196. tccli/services/tat/v20201028/examples.json +20 -26
  197. tccli/services/tchd/v20230306/api.json +5 -5
  198. tccli/services/tchd/v20230306/examples.json +3 -3
  199. tccli/services/tcr/v20190924/api.json +1 -1
  200. tccli/services/tcr/v20190924/examples.json +1 -1
  201. tccli/services/tcss/v20201101/api.json +1973 -1426
  202. tccli/services/tcss/v20201101/examples.json +346 -364
  203. tccli/services/tdmq/v20200217/api.json +539 -401
  204. tccli/services/tdmq/v20200217/examples.json +104 -104
  205. tccli/services/tds/v20220801/api.json +4 -4
  206. tccli/services/tem/v20210701/api.json +287 -271
  207. tccli/services/tem/v20210701/examples.json +59 -59
  208. tccli/services/teo/v20220901/api.json +37 -9
  209. tccli/services/teo/v20220901/examples.json +13 -7
  210. tccli/services/thpc/v20230321/api.json +5 -5
  211. tccli/services/tke/tke_client.py +217 -58
  212. tccli/services/tke/v20180525/api.json +36 -27
  213. tccli/services/tke/v20180525/examples.json +1 -1
  214. tccli/services/tke/v20220501/api.json +176 -0
  215. tccli/services/tke/v20220501/examples.json +24 -0
  216. tccli/services/tmt/v20180321/api.json +38 -8
  217. tccli/services/trp/v20210515/api.json +86 -74
  218. tccli/services/trp/v20210515/examples.json +65 -65
  219. tccli/services/trro/v20220325/api.json +72 -71
  220. tccli/services/trro/v20220325/examples.json +8 -8
  221. tccli/services/trtc/trtc_client.py +8 -61
  222. tccli/services/trtc/v20190722/api.json +72 -30
  223. tccli/services/trtc/v20190722/examples.json +3 -11
  224. tccli/services/tse/tse_client.py +110 -4
  225. tccli/services/tse/v20201207/api.json +122 -7
  226. tccli/services/tse/v20201207/examples.json +25 -9
  227. tccli/services/vclm/v20240523/api.json +225 -82
  228. tccli/services/vclm/v20240523/examples.json +13 -19
  229. tccli/services/vod/v20180717/api.json +431 -4
  230. tccli/services/vod/v20180717/examples.json +25 -5
  231. tccli/services/vod/v20240718/api.json +11 -11
  232. tccli/services/vod/v20240718/examples.json +4 -4
  233. tccli/services/vod/vod_client.py +53 -0
  234. tccli/services/vpc/v20170312/api.json +1090 -862
  235. tccli/services/vpc/v20170312/examples.json +74 -66
  236. tccli/services/vpc/vpc_client.py +61 -8
  237. tccli/services/waf/v20180125/api.json +2540 -2177
  238. tccli/services/waf/v20180125/examples.json +216 -284
  239. tccli/services/waf/waf_client.py +172 -119
  240. tccli/services/wav/v20210129/api.json +48 -48
  241. tccli/services/wav/v20210129/examples.json +4 -4
  242. tccli/services/wedata/v20210820/api.json +909 -25
  243. tccli/services/wedata/v20210820/examples.json +28 -4
  244. tccli/services/wedata/wedata_client.py +159 -0
  245. tccli/services/weilingwith/v20230427/api.json +6 -6
  246. tccli/services/weilingwith/v20230427/examples.json +3 -3
  247. tccli/sso.py +229 -0
  248. {tccli-3.0.1216.1.dist-info → tccli-3.0.1217.1.dist-info}/METADATA +2 -2
  249. {tccli-3.0.1216.1.dist-info → tccli-3.0.1217.1.dist-info}/RECORD +252 -235
  250. {tccli-3.0.1216.1.dist-info → tccli-3.0.1217.1.dist-info}/WHEEL +0 -0
  251. {tccli-3.0.1216.1.dist-info → tccli-3.0.1217.1.dist-info}/entry_points.txt +0 -0
  252. {tccli-3.0.1216.1.dist-info → tccli-3.0.1217.1.dist-info}/license_files/LICENSE +0 -0
@@ -28,7 +28,7 @@
28
28
  {
29
29
  "disabled": false,
30
30
  "document": "Host的唯一标识uuid\n注意:此字段可能返回 null,表示取不到有效值。",
31
- "example": "",
31
+ "example": "xxxxx-xxxxx-xxxxx",
32
32
  "member": "string",
33
33
  "name": "HostUuid",
34
34
  "output_required": false,
@@ -38,7 +38,7 @@
38
38
  {
39
39
  "disabled": false,
40
40
  "document": "实例名称数组\n注意:此字段可能返回 null,表示取不到有效值。",
41
- "example": "",
41
+ "example": "['ins-xxxxxxxx']",
42
42
  "member": "string",
43
43
  "name": "InstancesInfo",
44
44
  "output_required": false,
@@ -180,7 +180,7 @@
180
180
  {
181
181
  "disabled": false,
182
182
  "document": "资源统计详情",
183
- "example": "",
183
+ "example": "[ { \"Item\": \"CPU\", \"ItemEn\": \"CPU\", \"Unit\": \"核\", \"UnitEn\": \"核\", \"Total\": \"28160\", \"Usage\": \"27920\", \"UsageRate\": \"99.15%\", \"Remain\": \"240\", \"RemainRate\": \"0.85%\", \"ThisMondayUsageRate\": \"99.15%\", \"ThisMondayUsageGrowthRate\": \"0.00%\", \"LastMondayUsageGrowthRate\": \"0.00%\" } ]",
184
184
  "member": "CloudDedicatedZoneResourceStatisticsInfo",
185
185
  "name": "Statistics",
186
186
  "output_required": false,
@@ -247,7 +247,7 @@
247
247
  {
248
248
  "disabled": false,
249
249
  "document": "返回Host和Host上部署的实例信息之间的关系",
250
- "example": "",
250
+ "example": "[ { \"HostUuid\": \"9e6b54d0-xxxx-xxxx-xxxx-xxxxxxxxxxxx\", \"InstancesInfo\": [ \"ins-xxxxxxxx\" ] } ]",
251
251
  "member": "CloudDedicatedZoneHostsInfo",
252
252
  "name": "CloudDedicatedZoneHostsInfoSet",
253
253
  "output_required": false,
@@ -284,13 +284,23 @@
284
284
  {
285
285
  "disabled": false,
286
286
  "document": "资源水位详情\n注意:此字段可能返回 null,表示取不到有效值。",
287
- "example": "",
287
+ "example": "[ { \"ProductName\": \"云服务器\", \"SubProductName\": \"标准型S5\", \"Statistics\": [ { \"Item\": \"CPU\", \"Unit\": \"核\", \"Total\": \"41996\", \"Usage\": \"32875\", \"UsageRate\": \"78.28%\", \"Remain\": \"9121\", \"RemainRate\": \"21.72%\", \"ThisMondayUsageRate\": \"78.33%\", \"ThisMondayUsageGrowthRate\": \"-0.05%\", \"LastMondayUsageGrowthRate\": \"-4.41%\" } ] } ]",
288
288
  "member": "CloudDedicatedZoneResourceSummaryInfo",
289
289
  "name": "ResourceSummarySet",
290
290
  "output_required": true,
291
291
  "type": "list",
292
292
  "value_allowed_null": true
293
293
  },
294
+ {
295
+ "disabled": false,
296
+ "document": "资源水位扩展信息\n注意:此字段可能返回 null,表示取不到有效值。",
297
+ "example": "{ \"ThisMondayLocalDate\": \"2024-11-11\", \"LastMondayLocalDate\": \"2024-11-04\" }",
298
+ "member": "ExtraInfo",
299
+ "name": "ExtraInfo",
300
+ "output_required": false,
301
+ "type": "object",
302
+ "value_allowed_null": true
303
+ },
294
304
  {
295
305
  "document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
296
306
  "member": "string",
@@ -299,6 +309,32 @@
299
309
  }
300
310
  ],
301
311
  "type": "object"
312
+ },
313
+ "ExtraInfo": {
314
+ "document": "专属可用区资源水位数据扩展信息,包含可用区当地时间等数据。",
315
+ "members": [
316
+ {
317
+ "disabled": false,
318
+ "document": "专属可用区当地时间本周一日期\n注意:此字段可能返回 null,表示取不到有效值。",
319
+ "example": "2024-01-22",
320
+ "member": "string",
321
+ "name": "ThisMondayLocalDate",
322
+ "output_required": false,
323
+ "type": "string",
324
+ "value_allowed_null": true
325
+ },
326
+ {
327
+ "disabled": false,
328
+ "document": "专属可用区当地时间上周一日期\n注意:此字段可能返回 null,表示取不到有效值。",
329
+ "example": "2024-01-15",
330
+ "member": "string",
331
+ "name": "LastMondayLocalDate",
332
+ "output_required": false,
333
+ "type": "string",
334
+ "value_allowed_null": true
335
+ }
336
+ ],
337
+ "usage": "out"
302
338
  }
303
339
  },
304
340
  "version": "1.0"
@@ -2530,6 +2530,7 @@
2530
2530
  "example": "1",
2531
2531
  "member": "int64",
2532
2532
  "name": "TaskGroupActionId",
2533
+ "output_required": true,
2533
2534
  "required": true,
2534
2535
  "type": "int",
2535
2536
  "value_allowed_null": false
@@ -2540,6 +2541,7 @@
2540
2541
  "example": "无",
2541
2542
  "member": "TaskGroupInstance",
2542
2543
  "name": "TaskGroupInstances",
2544
+ "output_required": true,
2543
2545
  "required": true,
2544
2546
  "type": "list",
2545
2547
  "value_allowed_null": false
@@ -2550,6 +2552,7 @@
2550
2552
  "example": "1",
2551
2553
  "member": "int64",
2552
2554
  "name": "ActionId",
2555
+ "output_required": true,
2553
2556
  "required": true,
2554
2557
  "type": "int",
2555
2558
  "value_allowed_null": false
@@ -2560,6 +2563,7 @@
2560
2563
  "example": "1",
2561
2564
  "member": "int64",
2562
2565
  "name": "TaskGroupActionOrder",
2566
+ "output_required": true,
2563
2567
  "required": true,
2564
2568
  "type": "int",
2565
2569
  "value_allowed_null": false
@@ -2570,6 +2574,7 @@
2570
2574
  "example": "{}",
2571
2575
  "member": "string",
2572
2576
  "name": "TaskGroupActionGeneralConfiguration",
2577
+ "output_required": true,
2573
2578
  "required": true,
2574
2579
  "type": "string",
2575
2580
  "value_allowed_null": true
@@ -2580,6 +2585,7 @@
2580
2585
  "example": "{}",
2581
2586
  "member": "string",
2582
2587
  "name": "TaskGroupActionCustomConfiguration",
2588
+ "output_required": true,
2583
2589
  "required": true,
2584
2590
  "type": "string",
2585
2591
  "value_allowed_null": true
@@ -2590,6 +2596,7 @@
2590
2596
  "example": "1",
2591
2597
  "member": "int64",
2592
2598
  "name": "TaskGroupActionStatus",
2599
+ "output_required": true,
2593
2600
  "required": true,
2594
2601
  "type": "int",
2595
2602
  "value_allowed_null": false
@@ -2600,6 +2607,7 @@
2600
2607
  "example": "\"2021-08-17 20:05:04\"",
2601
2608
  "member": "string",
2602
2609
  "name": "TaskGroupActionCreateTime",
2610
+ "output_required": true,
2603
2611
  "required": true,
2604
2612
  "type": "string",
2605
2613
  "value_allowed_null": false
@@ -2610,6 +2618,7 @@
2610
2618
  "example": "\"2021-08-17 20:05:04\"",
2611
2619
  "member": "string",
2612
2620
  "name": "TaskGroupActionUpdateTime",
2621
+ "output_required": true,
2613
2622
  "required": true,
2614
2623
  "type": "string",
2615
2624
  "value_allowed_null": false
@@ -2620,6 +2629,7 @@
2620
2629
  "example": "关机",
2621
2630
  "member": "string",
2622
2631
  "name": "ActionTitle",
2632
+ "output_required": true,
2623
2633
  "required": true,
2624
2634
  "type": "string",
2625
2635
  "value_allowed_null": false
@@ -2630,6 +2640,7 @@
2630
2640
  "example": "0",
2631
2641
  "member": "int64",
2632
2642
  "name": "TaskGroupActionStatusType",
2643
+ "output_required": true,
2633
2644
  "required": true,
2634
2645
  "type": "int",
2635
2646
  "value_allowed_null": false
@@ -2640,6 +2651,7 @@
2640
2651
  "example": "123456",
2641
2652
  "member": "int64",
2642
2653
  "name": "TaskGroupActionRandomId",
2654
+ "output_required": true,
2643
2655
  "required": true,
2644
2656
  "type": "int",
2645
2657
  "value_allowed_null": true
@@ -2650,6 +2662,7 @@
2650
2662
  "example": "123456",
2651
2663
  "member": "int64",
2652
2664
  "name": "TaskGroupActionRecoverId",
2665
+ "output_required": true,
2653
2666
  "required": true,
2654
2667
  "type": "int",
2655
2668
  "value_allowed_null": true
@@ -2660,6 +2673,7 @@
2660
2673
  "example": "123456",
2661
2674
  "member": "int64",
2662
2675
  "name": "TaskGroupActionExecuteId",
2676
+ "output_required": true,
2663
2677
  "required": true,
2664
2678
  "type": "int",
2665
2679
  "value_allowed_null": true
@@ -2670,6 +2684,7 @@
2670
2684
  "example": "0",
2671
2685
  "member": "int64",
2672
2686
  "name": "ActionApiType",
2687
+ "output_required": true,
2673
2688
  "required": false,
2674
2689
  "type": "int",
2675
2690
  "value_allowed_null": true
@@ -2680,6 +2695,7 @@
2680
2695
  "example": "1",
2681
2696
  "member": "int64",
2682
2697
  "name": "ActionAttribute",
2698
+ "output_required": true,
2683
2699
  "required": false,
2684
2700
  "type": "int",
2685
2701
  "value_allowed_null": true
@@ -2690,6 +2706,7 @@
2690
2706
  "example": "平台",
2691
2707
  "member": "string",
2692
2708
  "name": "ActionType",
2709
+ "output_required": true,
2693
2710
  "required": false,
2694
2711
  "type": "string",
2695
2712
  "value_allowed_null": true
@@ -2700,6 +2717,7 @@
2700
2717
  "example": "true",
2701
2718
  "member": "bool",
2702
2719
  "name": "IsExecuteRedo",
2720
+ "output_required": true,
2703
2721
  "required": false,
2704
2722
  "type": "bool",
2705
2723
  "value_allowed_null": true
@@ -2710,6 +2728,7 @@
2710
2728
  "example": "高风险",
2711
2729
  "member": "string",
2712
2730
  "name": "ActionRisk",
2731
+ "output_required": true,
2713
2732
  "required": false,
2714
2733
  "type": "string",
2715
2734
  "value_allowed_null": true
@@ -2720,9 +2739,21 @@
2720
2739
  "example": "10",
2721
2740
  "member": "int64",
2722
2741
  "name": "TaskGroupActionExecuteTime",
2742
+ "output_required": true,
2723
2743
  "required": false,
2724
2744
  "type": "int",
2725
2745
  "value_allowed_null": true
2746
+ },
2747
+ {
2748
+ "disabled": false,
2749
+ "document": "动作开始执行时间",
2750
+ "example": "\"2021-08-17 20:05:04\"",
2751
+ "member": "string",
2752
+ "name": "TaskGroupActionStartTime",
2753
+ "output_required": false,
2754
+ "required": false,
2755
+ "type": "string",
2756
+ "value_allowed_null": false
2726
2757
  }
2727
2758
  ],
2728
2759
  "usage": "both"
@@ -309,6 +309,42 @@
309
309
  "serviceShortName": "cfs"
310
310
  },
311
311
  "objects": {
312
+ "AutoScaleUpRule": {
313
+ "document": "自动扩容规则",
314
+ "members": [
315
+ {
316
+ "disabled": false,
317
+ "document": "自动扩容策略开启,关闭",
318
+ "example": "open,close",
319
+ "member": "string",
320
+ "name": "Status",
321
+ "required": false,
322
+ "type": "string",
323
+ "value_allowed_null": false
324
+ },
325
+ {
326
+ "disabled": false,
327
+ "document": "集群用量占比,到达这个值后开始扩容,范围[10-90]",
328
+ "example": "80",
329
+ "member": "uint64",
330
+ "name": "ScaleThreshold",
331
+ "required": false,
332
+ "type": "int",
333
+ "value_allowed_null": false
334
+ },
335
+ {
336
+ "disabled": false,
337
+ "document": "扩容后使用量跟集群总量比例,范围[1-90]",
338
+ "example": "90",
339
+ "member": "uint64",
340
+ "name": "TargetThreshold",
341
+ "required": false,
342
+ "type": "int",
343
+ "value_allowed_null": false
344
+ }
345
+ ],
346
+ "usage": "both"
347
+ },
312
348
  "AutoSnapshotPolicyInfo": {
313
349
  "document": "快照策略信息",
314
350
  "members": [
@@ -2310,7 +2346,7 @@
2310
2346
  },
2311
2347
  {
2312
2348
  "disabled": false,
2313
- "document": "过滤条件。\n<br>SnapshotId - Array of String - 是否必填:否 -(过滤条件)按快照ID过滤。\n<br>SnapshotName - Array of String - 是否必填:否 -(过滤条件)按照快照名称过滤。\n<br>FileSystemId - Array of String - 是否必填:否 -(过滤条件)按文件系统ID过滤。\n<br>FsName - Array of String - 是否必填:否 -(过滤条件)按文件系统名过滤。\n<br>Status - Array of String - 是否必填:否 -(过滤条件)按按照快照状态过滤。(creating:表示创建中 | available:表示可用。| rollbacking:表示回滚。| rollbacking_new:表示由快照创建新文件系统中。\n<br>tag-key - Array of String - 是否必填:否 -(过滤条件)按照标签键进行过滤。\n<br>tag:tag-key - Array of String - 是否必填:否 -(过滤条件)按照标签键值对进行过滤。 tag-key使用具体的标签键进行替换。",
2349
+ "document": "过滤条件。\n<br>SnapshotId - Array of String - 是否必填:否 -(过滤条件)按快照ID过滤。\n<br>SnapshotName - Array of String - 是否必填:否 -(过滤条件)按照快照名称过滤。\n<br>FileSystemId - Array of String - 是否必填:否 -(过滤条件)按文件系统ID过滤。\n<br>FsName - Array of String - 是否必填:否 -(过滤条件)按文件系统名过滤。\n<br>Status - Array of String - 是否必填:否 -(过滤条件)按照快照状态过滤\n(creating:表示创建中 | available:表示可用。| rollbacking:表示回滚。| rollbacking_new:表示由快照创建新文件系统中)\n<br>tag-key - Array of String - 是否必填:否 -(过滤条件)按照标签键进行过滤。\n<br>tag:tag-key - Array of String - 是否必填:否 -(过滤条件)按照标签键值对进行过滤。 tag-key使用具体的标签键进行替换。",
2314
2350
  "example": "无",
2315
2351
  "member": "Filter",
2316
2352
  "name": "Filters",
@@ -2956,6 +2992,26 @@
2956
2992
  "type": "float",
2957
2993
  "value_allowed_null": false
2958
2994
  },
2995
+ {
2996
+ "disabled": false,
2997
+ "document": "文件系统关联的快照策略",
2998
+ "example": "无",
2999
+ "member": "string",
3000
+ "name": "AutoSnapshotPolicyId",
3001
+ "output_required": true,
3002
+ "type": "string",
3003
+ "value_allowed_null": false
3004
+ },
3005
+ {
3006
+ "disabled": false,
3007
+ "document": "文件系统处理快照状态",
3008
+ "example": "snapping",
3009
+ "member": "string",
3010
+ "name": "SnapStatus",
3011
+ "output_required": true,
3012
+ "type": "string",
3013
+ "value_allowed_null": false
3014
+ },
2959
3015
  {
2960
3016
  "disabled": false,
2961
3017
  "document": "文件系统容量规格上限\n单位:GiB",
@@ -2995,6 +3051,26 @@
2995
3051
  "output_required": true,
2996
3052
  "type": "object",
2997
3053
  "value_allowed_null": true
3054
+ },
3055
+ {
3056
+ "disabled": false,
3057
+ "document": "文件系统自动扩容策略\n注意:此字段可能返回 null,表示取不到有效值。",
3058
+ "example": "\"Status\":close",
3059
+ "member": "AutoScaleUpRule",
3060
+ "name": "AutoScaleUpRule",
3061
+ "output_required": true,
3062
+ "type": "object",
3063
+ "value_allowed_null": true
3064
+ },
3065
+ {
3066
+ "disabled": false,
3067
+ "document": "文件系统版本\n注意:此字段可能返回 null,表示取不到有效值。",
3068
+ "example": "v1.0",
3069
+ "member": "string",
3070
+ "name": "Version",
3071
+ "output_required": false,
3072
+ "type": "string",
3073
+ "value_allowed_null": true
2998
3074
  }
2999
3075
  ],
3000
3076
  "usage": "out"
@@ -4124,9 +4200,21 @@
4124
4200
  "example": "100",
4125
4201
  "member": "int64",
4126
4202
  "name": "TieringSizeInBytes",
4203
+ "output_required": true,
4127
4204
  "required": false,
4128
4205
  "type": "int",
4129
4206
  "value_allowed_null": true
4207
+ },
4208
+ {
4209
+ "disabled": false,
4210
+ "document": "冷存储容量",
4211
+ "example": "100",
4212
+ "member": "int64",
4213
+ "name": "SecondaryTieringSizeInBytes",
4214
+ "output_required": true,
4215
+ "required": false,
4216
+ "type": "int",
4217
+ "value_allowed_null": false
4130
4218
  }
4131
4219
  ],
4132
4220
  "usage": "both"
@@ -156,7 +156,7 @@
156
156
  {
157
157
  "document": "查询文件系统",
158
158
  "input": "POST / HTTP/1.1\nHost: cfs.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeCfsFileSystems\n<公共请求参数>\n\n{\n \"FileSystemId\": \"cfs-12345\"\n}",
159
- "output": "{\n \"Response\": {\n \"FileSystems\": [\n {\n \"CreationTime\": \"abc\",\n \"CreationToken\": \"abc\",\n \"FileSystemId\": \"abc\",\n \"LifeCycleState\": \"abc\",\n \"SizeByte\": 1,\n \"SizeLimit\": 1,\n \"ZoneId\": 1,\n \"Zone\": \"abc\",\n \"Protocol\": \"abc\",\n \"StorageType\": \"abc\",\n \"StorageResourcePkg\": \"abc\",\n \"BandwidthResourcePkg\": \"abc\",\n \"PGroup\": {\n \"PGroupId\": \"abc\",\n \"Name\": \"abc\"\n },\n \"FsName\": \"abc\",\n \"Encrypted\": true,\n \"KmsKeyId\": \"abc\",\n \"AppId\": 0,\n \"BandwidthLimit\": 0,\n \"Capacity\": 1,\n \"Tags\": [\n {\n \"TagKey\": \"abc\",\n \"TagValue\": \"abc\"\n }\n ],\n \"TieringState\": \"abc\",\n \"TieringDetail\": {\n \"TieringSizeInBytes\": 0\n }\n }\n ],\n \"TotalCount\": 1,\n \"RequestId\": \"abc\"\n }\n}",
159
+ "output": "{\n \"Response\": {\n \"FileSystems\": [\n {\n \"CreationTime\": \"abc\",\n \"CreationToken\": \"abc\",\n \"FileSystemId\": \"abc\",\n \"LifeCycleState\": \"abc\",\n \"SizeByte\": 1,\n \"SizeLimit\": 1,\n \"ZoneId\": 1,\n \"Zone\": \"abc\",\n \"Protocol\": \"abc\",\n \"StorageType\": \"abc\",\n \"StorageResourcePkg\": \"abc\",\n \"BandwidthResourcePkg\": \"abc\",\n \"PGroup\": {\n \"PGroupId\": \"abc\",\n \"Name\": \"abc\"\n },\n \"FsName\": \"abc\",\n \"Encrypted\": true,\n \"KmsKeyId\": \"abc\",\n \"AppId\": 0,\n \"BandwidthLimit\": 0,\n \"AutoSnapshotPolicyId\": \"abc\",\n \"SnapStatus\": \"abc\",\n \"Capacity\": 1,\n \"Tags\": [\n {\n \"TagKey\": \"abc\",\n \"TagValue\": \"abc\"\n }\n ],\n \"TieringState\": \"abc\",\n \"TieringDetail\": {\n \"TieringSizeInBytes\": 0\n },\n \"AutoScaleUpRule\": {\n \"Status\": \"abc\",\n \"ScaleThreshold\": 1,\n \"TargetThreshold\": 1\n }\n }\n ],\n \"TotalCount\": 1,\n \"RequestId\": \"abc\"\n }\n}",
160
160
  "title": "查询文件系统"
161
161
  }
162
162
  ],
@@ -3293,58 +3293,6 @@ def doCreateChooseVpcs(args, parsed_globals):
3293
3293
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
3294
3294
 
3295
3295
 
3296
- def doDescribeNatSwitchList(args, parsed_globals):
3297
- g_param = parse_global_arg(parsed_globals)
3298
-
3299
- if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
3300
- cred = credential.CVMRoleCredential()
3301
- elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
3302
- cred = credential.STSAssumeRoleCredential(
3303
- g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
3304
- g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
3305
- )
3306
- elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
3307
- cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
3308
- else:
3309
- cred = credential.Credential(
3310
- g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
3311
- )
3312
- http_profile = HttpProfile(
3313
- reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
3314
- reqMethod="POST",
3315
- endpoint=g_param[OptionsDefine.Endpoint],
3316
- proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
3317
- )
3318
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
3319
- if g_param[OptionsDefine.Language]:
3320
- profile.language = g_param[OptionsDefine.Language]
3321
- mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
3322
- client = mod.CfwClient(cred, g_param[OptionsDefine.Region], profile)
3323
- client._sdkVersion += ("_CLI_" + __version__)
3324
- models = MODELS_MAP[g_param[OptionsDefine.Version]]
3325
- model = models.DescribeNatSwitchListRequest()
3326
- model.from_json_string(json.dumps(args))
3327
- start_time = time.time()
3328
- while True:
3329
- rsp = client.DescribeNatSwitchList(model)
3330
- result = rsp.to_json_string()
3331
- try:
3332
- json_obj = json.loads(result)
3333
- except TypeError as e:
3334
- json_obj = json.loads(result.decode('utf-8')) # python3.3
3335
- if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
3336
- break
3337
- cur_time = time.time()
3338
- if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
3339
- raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
3340
- (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
3341
- search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
3342
- else:
3343
- print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
3344
- time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
3345
- FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
3346
-
3347
-
3348
3296
  def doModifyAssetScan(args, parsed_globals):
3349
3297
  g_param = parse_global_arg(parsed_globals)
3350
3298
 
@@ -6071,7 +6019,6 @@ ACTION_MAP = {
6071
6019
  "CreateAlertCenterIsolate": doCreateAlertCenterIsolate,
6072
6020
  "ModifyBlockIgnoreList": doModifyBlockIgnoreList,
6073
6021
  "CreateChooseVpcs": doCreateChooseVpcs,
6074
- "DescribeNatSwitchList": doDescribeNatSwitchList,
6075
6022
  "ModifyAssetScan": doModifyAssetScan,
6076
6023
  "DeleteIdsWhiteRule": doDeleteIdsWhiteRule,
6077
6024
  "ModifySequenceRules": doModifySequenceRules,