tccli 3.0.1391.1__py2.py3-none-any.whl → 3.0.1414.1__py2.py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of tccli might be problematic. Click here for more details.

Files changed (226) hide show
  1. tccli/__init__.py +1 -1
  2. tccli/services/__init__.py +2 -1
  3. tccli/services/ai3d/v20250513/api.json +22 -4
  4. tccli/services/aiart/aiart_client.py +173 -67
  5. tccli/services/aiart/v20221229/api.json +193 -0
  6. tccli/services/aiart/v20221229/examples.json +16 -0
  7. tccli/services/apm/apm_client.py +53 -0
  8. tccli/services/apm/v20210622/api.json +354 -0
  9. tccli/services/apm/v20210622/examples.json +8 -0
  10. tccli/services/asr/v20190614/api.json +3 -3
  11. tccli/services/autoscaling/v20180419/api.json +24 -2
  12. tccli/services/batch/v20170312/api.json +1 -1
  13. tccli/services/bda/bda_client.py +15 -704
  14. tccli/services/bda/v20200324/api.json +107 -1819
  15. tccli/services/bda/v20200324/examples.json +0 -176
  16. tccli/services/billing/billing_client.py +326 -8
  17. tccli/services/billing/v20180709/api.json +2200 -255
  18. tccli/services/billing/v20180709/examples.json +48 -0
  19. tccli/services/cam/v20190116/api.json +4 -4
  20. tccli/services/captcha/v20190722/api.json +3 -3
  21. tccli/services/cat/v20180409/api.json +7 -7
  22. tccli/services/ccc/ccc_client.py +235 -76
  23. tccli/services/ccc/v20200210/api.json +502 -18
  24. tccli/services/ccc/v20200210/examples.json +24 -0
  25. tccli/services/cdb/cdb_client.py +106 -0
  26. tccli/services/cdb/v20170320/api.json +257 -44
  27. tccli/services/cdb/v20170320/examples.json +22 -6
  28. tccli/services/cdn/cdn_client.py +4 -163
  29. tccli/services/cdn/v20180606/api.json +61 -310
  30. tccli/services/cdn/v20180606/examples.json +1 -25
  31. tccli/services/cdwdoris/v20211228/api.json +51 -12
  32. tccli/services/cdwpg/v20201230/api.json +11 -1
  33. tccli/services/cdwpg/v20201230/examples.json +1 -1
  34. tccli/services/cfg/v20210820/api.json +11 -1
  35. tccli/services/cfs/cfs_client.py +41 -94
  36. tccli/services/cfs/v20190719/api.json +171 -55
  37. tccli/services/cfs/v20190719/examples.json +1 -9
  38. tccli/services/cfw/v20190904/api.json +122 -10
  39. tccli/services/ckafka/ckafka_client.py +188 -29
  40. tccli/services/ckafka/v20190819/api.json +277 -4
  41. tccli/services/ckafka/v20190819/examples.json +25 -1
  42. tccli/services/clb/clb_client.py +0 -265
  43. tccli/services/clb/v20180317/api.json +130 -296
  44. tccli/services/clb/v20180317/examples.json +12 -40
  45. tccli/services/cloudapp/v20220530/api.json +55 -0
  46. tccli/services/cloudaudit/v20190319/api.json +11 -0
  47. tccli/services/cloudhsm/v20191112/api.json +10 -10
  48. tccli/services/cls/v20201016/api.json +63 -45
  49. tccli/services/cls/v20201016/examples.json +10 -4
  50. tccli/services/csip/v20221121/api.json +53 -3
  51. tccli/services/ctem/v20231128/api.json +320 -0
  52. tccli/services/ctem/v20231128/examples.json +3 -3
  53. tccli/services/cvm/cvm_client.py +0 -212
  54. tccli/services/cvm/v20170312/api.json +91 -843
  55. tccli/services/cvm/v20170312/examples.json +32 -58
  56. tccli/services/cynosdb/cynosdb_client.py +167 -8
  57. tccli/services/cynosdb/v20190107/api.json +1126 -148
  58. tccli/services/cynosdb/v20190107/examples.json +31 -7
  59. tccli/services/dbbrain/dbbrain_client.py +246 -87
  60. tccli/services/dbbrain/v20191016/api.json +74 -62
  61. tccli/services/dbbrain/v20191016/examples.json +1 -1
  62. tccli/services/dbbrain/v20210527/api.json +601 -177
  63. tccli/services/dbbrain/v20210527/examples.json +28 -4
  64. tccli/services/dc/v20180410/api.json +101 -3
  65. tccli/services/dcdb/v20180411/api.json +1 -1
  66. tccli/services/dlc/dlc_client.py +53 -0
  67. tccli/services/dlc/v20210125/api.json +237 -24
  68. tccli/services/dlc/v20210125/examples.json +12 -4
  69. tccli/services/dnspod/dnspod_client.py +106 -0
  70. tccli/services/dnspod/v20210323/api.json +126 -20
  71. tccli/services/dnspod/v20210323/examples.json +17 -7
  72. tccli/services/dsgc/v20190723/api.json +73 -15
  73. tccli/services/dts/v20180330/api.json +4 -4
  74. tccli/services/dts/v20211206/api.json +408 -127
  75. tccli/services/dts/v20211206/examples.json +15 -9
  76. tccli/services/eb/v20210416/api.json +41 -1
  77. tccli/services/eb/v20210416/examples.json +1 -1
  78. tccli/services/emr/v20190103/api.json +56 -9
  79. tccli/services/emr/v20190103/examples.json +5 -5
  80. tccli/services/es/es_client.py +273 -8
  81. tccli/services/es/v20180416/api.json +845 -33
  82. tccli/services/es/v20180416/examples.json +33 -1
  83. tccli/services/es/v20250101/api.json +135 -2
  84. tccli/services/es/v20250101/examples.json +8 -0
  85. tccli/services/ess/ess_client.py +509 -32
  86. tccli/services/ess/v20201111/api.json +1366 -113
  87. tccli/services/ess/v20201111/examples.json +94 -10
  88. tccli/services/essbasic/v20210526/api.json +265 -27
  89. tccli/services/essbasic/v20210526/examples.json +12 -12
  90. tccli/services/facefusion/v20220927/api.json +1 -1
  91. tccli/services/gaap/v20180529/api.json +18 -8
  92. tccli/services/gme/gme_client.py +53 -0
  93. tccli/services/gme/v20180711/api.json +241 -1
  94. tccli/services/gme/v20180711/examples.json +8 -0
  95. tccli/services/gs/gs_client.py +216 -4
  96. tccli/services/gs/v20191118/api.json +202 -1
  97. tccli/services/gs/v20191118/examples.json +32 -0
  98. tccli/services/gwlb/gwlb_client.py +53 -0
  99. tccli/services/gwlb/v20240906/api.json +150 -0
  100. tccli/services/gwlb/v20240906/examples.json +8 -0
  101. tccli/services/hai/v20230812/api.json +5 -5
  102. tccli/services/hunyuan/v20230901/api.json +3 -3
  103. tccli/services/hunyuan/v20230901/examples.json +1 -1
  104. tccli/services/iai/v20180301/api.json +227 -207
  105. tccli/services/iai/v20180301/examples.json +26 -26
  106. tccli/services/iai/v20200303/api.json +4 -4
  107. tccli/services/iai/v20200303/examples.json +1 -1
  108. tccli/services/ioa/ioa_client.py +265 -0
  109. tccli/services/ioa/v20220601/api.json +781 -85
  110. tccli/services/ioa/v20220601/examples.json +46 -0
  111. tccli/services/iotexplorer/iotexplorer_client.py +387 -16
  112. tccli/services/iotexplorer/v20190423/api.json +1183 -63
  113. tccli/services/iotexplorer/v20190423/examples.json +92 -0
  114. tccli/services/keewidb/v20220308/api.json +69 -17
  115. tccli/services/keewidb/v20220308/examples.json +5 -5
  116. tccli/services/lcic/v20220817/api.json +61 -15
  117. tccli/services/lighthouse/v20200324/api.json +193 -24
  118. tccli/services/lighthouse/v20200324/examples.json +9 -3
  119. tccli/services/live/v20180801/api.json +6 -6
  120. tccli/services/live/v20180801/examples.json +7 -1
  121. tccli/services/lke/lke_client.py +40 -93
  122. tccli/services/lke/v20231130/api.json +943 -390
  123. tccli/services/lke/v20231130/examples.json +38 -46
  124. tccli/services/lkeap/v20240522/api.json +39 -12
  125. tccli/services/lkeap/v20240522/examples.json +12 -0
  126. tccli/services/mariadb/v20170312/api.json +1 -1
  127. tccli/services/mna/v20210119/api.json +11 -2
  128. tccli/services/mna/v20210119/examples.json +1 -1
  129. tccli/services/mongodb/mongodb_client.py +334 -16
  130. tccli/services/mongodb/v20190725/api.json +1092 -383
  131. tccli/services/mongodb/v20190725/examples.json +69 -21
  132. tccli/services/monitor/monitor_client.py +106 -0
  133. tccli/services/monitor/v20180724/api.json +383 -12
  134. tccli/services/monitor/v20180724/examples.json +24 -2
  135. tccli/services/mps/mps_client.py +220 -8
  136. tccli/services/mps/v20190612/api.json +1999 -179
  137. tccli/services/mps/v20190612/examples.json +56 -6
  138. tccli/services/mqtt/v20240516/api.json +10 -0
  139. tccli/services/mqtt/v20240516/examples.json +3 -9
  140. tccli/services/nlp/v20190408/api.json +6 -6
  141. tccli/services/oceanus/oceanus_client.py +318 -0
  142. tccli/services/oceanus/v20190422/api.json +461 -26
  143. tccli/services/oceanus/v20190422/examples.json +50 -2
  144. tccli/services/ocr/ocr_client.py +41 -253
  145. tccli/services/ocr/v20181119/api.json +153 -659
  146. tccli/services/ocr/v20181119/examples.json +8 -40
  147. tccli/services/omics/v20221128/api.json +90 -7
  148. tccli/services/organization/v20210331/api.json +46 -7
  149. tccli/services/postgres/v20170312/api.json +333 -77
  150. tccli/services/postgres/v20170312/examples.json +37 -31
  151. tccli/services/privatedns/privatedns_client.py +641 -58
  152. tccli/services/privatedns/v20201028/api.json +930 -19
  153. tccli/services/privatedns/v20201028/examples.json +91 -3
  154. tccli/services/pts/v20210728/api.json +2 -2
  155. tccli/services/redis/v20180412/api.json +303 -109
  156. tccli/services/redis/v20180412/examples.json +12 -12
  157. tccli/services/region/v20220627/api.json +1 -1
  158. tccli/services/rum/v20210622/api.json +22 -4
  159. tccli/services/rum/v20210622/examples.json +2 -2
  160. tccli/services/sms/v20190711/api.json +12 -12
  161. tccli/services/sms/v20190711/examples.json +9 -3
  162. tccli/services/sms/v20210111/api.json +13 -13
  163. tccli/services/sms/v20210111/examples.json +8 -2
  164. tccli/services/sqlserver/v20180328/api.json +46 -7
  165. tccli/services/sqlserver/v20180328/examples.json +2 -2
  166. tccli/services/ssl/v20191205/api.json +28 -0
  167. tccli/services/svp/v20240125/api.json +14 -4
  168. tccli/services/tag/v20180813/api.json +3 -3
  169. tccli/services/tat/v20201028/api.json +22 -3
  170. tccli/services/tcb/v20180608/api.json +1 -1
  171. tccli/services/tcss/tcss_client.py +228 -69
  172. tccli/services/tcss/v20201101/api.json +273 -25
  173. tccli/services/tcss/v20201101/examples.json +26 -2
  174. tccli/services/teo/teo_client.py +317 -52
  175. tccli/services/teo/v20220901/api.json +1824 -242
  176. tccli/services/teo/v20220901/examples.json +109 -21
  177. tccli/services/thpc/thpc_client.py +57 -4
  178. tccli/services/thpc/v20230321/api.json +163 -21
  179. tccli/services/thpc/v20230321/examples.json +13 -5
  180. tccli/services/tione/tione_client.py +163 -4
  181. tccli/services/tione/v20211111/api.json +285 -21
  182. tccli/services/tione/v20211111/examples.json +27 -3
  183. tccli/services/tke/tke_client.py +8 -8
  184. tccli/services/tke/v20180525/api.json +168 -130
  185. tccli/services/tke/v20180525/examples.json +20 -20
  186. tccli/services/tke/v20220501/api.json +215 -3
  187. tccli/services/tke/v20220501/examples.json +8 -0
  188. tccli/services/tms/tms_client.py +106 -0
  189. tccli/services/tms/v20201229/api.json +249 -3
  190. tccli/services/tms/v20201229/examples.json +16 -0
  191. tccli/services/tmt/v20180321/api.json +78 -1
  192. tccli/services/trabbit/v20230418/api.json +271 -4
  193. tccli/services/trabbit/v20230418/examples.json +9 -3
  194. tccli/services/trocket/v20230308/api.json +4 -4
  195. tccli/services/trro/trro_client.py +106 -0
  196. tccli/services/trro/v20220325/api.json +456 -0
  197. tccli/services/trro/v20220325/examples.json +16 -0
  198. tccli/services/trtc/v20190722/api.json +197 -49
  199. tccli/services/trtc/v20190722/examples.json +4 -4
  200. tccli/services/tse/v20201207/api.json +69 -2
  201. tccli/services/tse/v20201207/examples.json +3 -3
  202. tccli/services/tsf/v20180326/api.json +70 -7
  203. tccli/services/tsf/v20180326/examples.json +2 -2
  204. tccli/services/vclm/v20240523/api.json +145 -0
  205. tccli/services/vclm/v20240523/examples.json +16 -0
  206. tccli/services/vclm/vclm_client.py +106 -0
  207. tccli/services/vcube/v20220410/api.json +1 -1
  208. tccli/services/vod/v20180717/api.json +7 -7
  209. tccli/services/vpc/v20170312/api.json +1216 -70
  210. tccli/services/vpc/v20170312/examples.json +139 -3
  211. tccli/services/vpc/vpc_client.py +1023 -122
  212. tccli/services/vrs/v20200824/api.json +11 -11
  213. tccli/services/vrs/v20200824/examples.json +1 -1
  214. tccli/services/vtc/v20240223/api.json +14 -14
  215. tccli/services/waf/v20180125/api.json +812 -143
  216. tccli/services/waf/v20180125/examples.json +2 -2
  217. tccli/services/wedata/v20210820/api.json +1281 -601
  218. tccli/services/wedata/v20210820/examples.json +127 -157
  219. tccli/services/wedata/v20250806/api.json +19335 -0
  220. tccli/services/wedata/v20250806/examples.json +999 -0
  221. tccli/services/wedata/wedata_client.py +7072 -1131
  222. {tccli-3.0.1391.1.dist-info → tccli-3.0.1414.1.dist-info}/METADATA +9 -7
  223. {tccli-3.0.1391.1.dist-info → tccli-3.0.1414.1.dist-info}/RECORD +226 -224
  224. {tccli-3.0.1391.1.dist-info → tccli-3.0.1414.1.dist-info}/WHEEL +1 -1
  225. {tccli-3.0.1391.1.dist-info → tccli-3.0.1414.1.dist-info}/entry_points.txt +0 -0
  226. {tccli-3.0.1391.1.dist-info/license_files → tccli-3.0.1414.1.dist-info/licenses}/LICENSE +0 -0
@@ -367,9 +367,9 @@
367
367
  "DescribeAccounts": [
368
368
  {
369
369
  "document": "",
370
- "input": "https://cdb.tencentcloudapi.com/?Action=DescribeAccounts\n&InstanceId=cdb-f35wr6wj\n&<公共请求参数>",
371
- "output": "{\n \"Response\": {\n \"TotalCount\": 1,\n \"Items\": [\n {\n \"Notes\": \"andy1\",\n \"Host\": \"172.1.1.1\",\n \"User\": \"andy\",\n \"ModifyTime\": \"2020-09-22 00:00:00\",\n \"ModifyPasswordTime\": \"2020-09-22 00:00:00\",\n \"CreateTime\": \"2020-09-22 00:00:00\",\n \"MaxUserConnections\": 20,\n \"OpenCam\": true\n }\n ],\n \"MaxUserConnections\": 20,\n \"RequestId\": \"6EF60BEC-0242-43AF-BB20-270359FB54A7\"\n }\n}",
372
- "title": "查询云数据库的所有账号信息"
370
+ "input": "POST / HTTP/1.1\nHost: cdb.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeAccounts\n<公共请求参数>\n\n{\n \"InstanceId\": \"cdb-b1airfvv\"\n}",
371
+ "output": "{\n \"Response\": {\n \"RequestId\": \"507f6863-2827-4c2c-9c3b-fbbcc32e1ed4\",\n \"Items\": [\n {\n \"CreateTime\": \"2025-09-04 14:56:31\",\n \"Host\": \"%\",\n \"MaxUserConnections\": 0,\n \"ModifyPasswordTime\": \"2025-09-04 14:56:31\",\n \"ModifyTime\": \"2025-09-04 14:59:10\",\n \"Notes\": \"\",\n \"OpenCam\": false,\n \"User\": \"ching\"\n },\n {\n \"CreateTime\": \"2025-09-02 16:18:42\",\n \"Host\": \"%\",\n \"MaxUserConnections\": 0,\n \"ModifyPasswordTime\": \"2025-09-02 16:18:42\",\n \"ModifyTime\": \"2025-09-02 16:18:42\",\n \"Notes\": \"\",\n \"OpenCam\": false,\n \"User\": \"root\"\n }\n ],\n \"MaxUserConnections\": 10240,\n \"TotalCount\": 2\n }\n}",
372
+ "title": "查询用户所有账号信息"
373
373
  }
374
374
  ],
375
375
  "DescribeAsyncRequestInfo": [
@@ -383,9 +383,9 @@
383
383
  "DescribeAuditConfig": [
384
384
  {
385
385
  "document": "",
386
- "input": "https://cdb.tencentcloudapi.com/?Action=DescribeAuditConfig\n&InstanceId=cdb-txcniupi\n&<公共请求参数>",
387
- "output": "{\n \"Response\": {\n \"RequestId\": \"6EF60BEC-0242-43AF-BB20-270359FB54A7\",\n \"LogExpireDay\": 365,\n \"LogType\": \"storage\",\n \"IsClosing\": \"false\",\n \"CreateTime\": \"2021-07-13 11:34:35\"\n }\n}",
388
- "title": "查询审计服务配置"
386
+ "input": "POST / HTTP/1.1\nHost: cdb.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeAuditConfig\n<公共请求参数>\n\n{\n \"InstanceId\": \"cdbro-6zpy4ei1\"\n}",
387
+ "output": "{\n \"Response\": {\n \"RequestId\": \"507f6863-2827-4c2c-9c3b-fbbcc32e1ed4\",\n \"CreateTime\": \"2025-04-11 15:13:07\",\n \"IsClosing\": \"false\",\n \"IsOpening\": \"false\",\n \"LogExpireDay\": 90,\n \"LogType\": \"storage\"\n }\n}",
388
+ "title": "查询实例配置"
389
389
  }
390
390
  ],
391
391
  "DescribeAuditInstanceList": [
@@ -750,6 +750,14 @@
750
750
  "title": "查询实例的可设置参数列表"
751
751
  }
752
752
  ],
753
+ "DescribeInstancePasswordComplexity": [
754
+ {
755
+ "document": "查询实例的密码复杂度",
756
+ "input": "POST / HTTP/1.1\nHost: cdb.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeInstancePasswordComplexity\n<公共请求参数>\n\n{\n \"InstanceId\": \"cdb-1urqrvpf\"\n}",
757
+ "output": "{\n \"Response\": {\n \"Items\": [\n {\n \"CurrentValue\": \"8\",\n \"Default\": \"0\",\n \"Description\": \"The minimum number of characters that validate_password requires passwords to have.\",\n \"EnumValue\": [],\n \"IsNotSupportEdit\": false,\n \"Max\": 64,\n \"MaxFunc\": \"\",\n \"Min\": 0,\n \"MinFunc\": \"\",\n \"Name\": \"validate_password_length\",\n \"NeedReboot\": 0,\n \"ParamType\": \"integer\"\n },\n {\n \"CurrentValue\": \"1\",\n \"Default\": \"0\",\n \"Description\": \"The minimum number of lowercase and uppercase characters that validate_password requires passwords to have if the password policy is MEDIUM or stronger.\",\n \"EnumValue\": [],\n \"IsNotSupportEdit\": false,\n \"Max\": 16,\n \"MaxFunc\": \"\",\n \"Min\": 0,\n \"MinFunc\": \"\",\n \"Name\": \"validate_password_mixed_case_count\",\n \"NeedReboot\": 0,\n \"ParamType\": \"integer\"\n },\n {\n \"CurrentValue\": \"2\",\n \"Default\": \"0\",\n \"Description\": \"The minimum number of numeric (digit) characters that validate_password requires passwords to have if the password policy is MEDIUM or stronger.\",\n \"EnumValue\": [],\n \"IsNotSupportEdit\": false,\n \"Max\": 16,\n \"MaxFunc\": \"\",\n \"Min\": 0,\n \"MinFunc\": \"\",\n \"Name\": \"validate_password_number_count\",\n \"NeedReboot\": 0,\n \"ParamType\": \"integer\"\n },\n {\n \"CurrentValue\": \"MEDIUM\",\n \"Default\": \"LOW\",\n \"Description\": \"The password policy enforced by validate_password. The validate_password.policy value can be specified using numeric values 0, 1, 2.\",\n \"EnumValue\": [\n \"LOW\",\n \"MEDIUM\",\n \"STRONG\"\n ],\n \"IsNotSupportEdit\": false,\n \"Max\": 0,\n \"MaxFunc\": \"\",\n \"Min\": 0,\n \"MinFunc\": \"\",\n \"Name\": \"validate_password_policy\",\n \"NeedReboot\": 0,\n \"ParamType\": \"enum\"\n },\n {\n \"CurrentValue\": \"3\",\n \"Default\": \"0\",\n \"Description\": \"The minimum number of nonalphanumeric characters that validate_password requires passwords to have if the password policy is MEDIUM or stronger.\",\n \"EnumValue\": [],\n \"IsNotSupportEdit\": false,\n \"Max\": 16,\n \"MaxFunc\": \"\",\n \"Min\": 0,\n \"MinFunc\": \"\",\n \"Name\": \"validate_password_special_char_count\",\n \"NeedReboot\": 0,\n \"ParamType\": \"integer\"\n }\n ],\n \"RequestId\": \"103be0cb-4ca7-400b-a6b1-4c3fc7b7227c\",\n \"TotalCount\": 5\n }\n}",
758
+ "title": "查询实例的密码复杂度"
759
+ }
760
+ ],
753
761
  "DescribeInstanceUpgradeCheckJob": [
754
762
  {
755
763
  "document": "无",
@@ -1094,6 +1102,14 @@
1094
1102
  "title": "开启或关闭CDB日志投递CLS"
1095
1103
  }
1096
1104
  ],
1105
+ "ModifyDBInstanceModes": [
1106
+ {
1107
+ "document": "",
1108
+ "input": "https://cdb.tencentcloudapi.com/?Action=ModifyDBInstanceModes\n&InstanceId=cdb-xxxx\n&Mode=protectMode\n&ProtectMode=1\n&<公共请求参数>",
1109
+ "output": "{\n \"Response\": {\n \"RequestId\": \"6EF60BEC-0242-43AF-BB20-270359FB54A7\",\n \"AsyncRequestId\": \"9ad9c2d5-88007b27-7d2c8b8c-f2598f12\"\n }\n}",
1110
+ "title": "更改云数据库的模式"
1111
+ }
1112
+ ],
1097
1113
  "ModifyDBInstanceName": [
1098
1114
  {
1099
1115
  "document": "",
@@ -693,7 +693,7 @@ def doDescribeCdnData(args, parsed_globals):
693
693
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
694
694
 
695
695
 
696
- def doDisableCaches(args, parsed_globals):
696
+ def doDescribeHttpsPackages(args, parsed_globals):
697
697
  g_param = parse_global_arg(parsed_globals)
698
698
 
699
699
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -722,11 +722,11 @@ def doDisableCaches(args, parsed_globals):
722
722
  client = mod.CdnClient(cred, g_param[OptionsDefine.Region], profile)
723
723
  client._sdkVersion += ("_CLI_" + __version__)
724
724
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
725
- model = models.DisableCachesRequest()
725
+ model = models.DescribeHttpsPackagesRequest()
726
726
  model.from_json_string(json.dumps(args))
727
727
  start_time = time.time()
728
728
  while True:
729
- rsp = client.DisableCaches(model)
729
+ rsp = client.DescribeHttpsPackages(model)
730
730
  result = rsp.to_json_string()
731
731
  try:
732
732
  json_obj = json.loads(result)
@@ -1733,58 +1733,6 @@ def doDescribePurgeTasks(args, parsed_globals):
1733
1733
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
1734
1734
 
1735
1735
 
1736
- def doDescribeHttpsPackages(args, parsed_globals):
1737
- g_param = parse_global_arg(parsed_globals)
1738
-
1739
- if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
1740
- cred = credential.CVMRoleCredential()
1741
- elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
1742
- cred = credential.STSAssumeRoleCredential(
1743
- g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
1744
- g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
1745
- )
1746
- 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):
1747
- cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
1748
- else:
1749
- cred = credential.Credential(
1750
- g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
1751
- )
1752
- http_profile = HttpProfile(
1753
- reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
1754
- reqMethod="POST",
1755
- endpoint=g_param[OptionsDefine.Endpoint],
1756
- proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
1757
- )
1758
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
1759
- if g_param[OptionsDefine.Language]:
1760
- profile.language = g_param[OptionsDefine.Language]
1761
- mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
1762
- client = mod.CdnClient(cred, g_param[OptionsDefine.Region], profile)
1763
- client._sdkVersion += ("_CLI_" + __version__)
1764
- models = MODELS_MAP[g_param[OptionsDefine.Version]]
1765
- model = models.DescribeHttpsPackagesRequest()
1766
- model.from_json_string(json.dumps(args))
1767
- start_time = time.time()
1768
- while True:
1769
- rsp = client.DescribeHttpsPackages(model)
1770
- result = rsp.to_json_string()
1771
- try:
1772
- json_obj = json.loads(result)
1773
- except TypeError as e:
1774
- json_obj = json.loads(result.decode('utf-8')) # python3.3
1775
- if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
1776
- break
1777
- cur_time = time.time()
1778
- if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
1779
- raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
1780
- (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
1781
- search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
1782
- else:
1783
- print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
1784
- time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
1785
- FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
1786
-
1787
-
1788
1736
  def doDescribeUrlViolations(args, parsed_globals):
1789
1737
  g_param = parse_global_arg(parsed_globals)
1790
1738
 
@@ -2513,58 +2461,6 @@ def doListClsLogTopics(args, parsed_globals):
2513
2461
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
2514
2462
 
2515
2463
 
2516
- def doGetDisableRecords(args, parsed_globals):
2517
- g_param = parse_global_arg(parsed_globals)
2518
-
2519
- if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
2520
- cred = credential.CVMRoleCredential()
2521
- elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
2522
- cred = credential.STSAssumeRoleCredential(
2523
- g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
2524
- g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
2525
- )
2526
- elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
2527
- cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
2528
- else:
2529
- cred = credential.Credential(
2530
- g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
2531
- )
2532
- http_profile = HttpProfile(
2533
- reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
2534
- reqMethod="POST",
2535
- endpoint=g_param[OptionsDefine.Endpoint],
2536
- proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
2537
- )
2538
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
2539
- if g_param[OptionsDefine.Language]:
2540
- profile.language = g_param[OptionsDefine.Language]
2541
- mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
2542
- client = mod.CdnClient(cred, g_param[OptionsDefine.Region], profile)
2543
- client._sdkVersion += ("_CLI_" + __version__)
2544
- models = MODELS_MAP[g_param[OptionsDefine.Version]]
2545
- model = models.GetDisableRecordsRequest()
2546
- model.from_json_string(json.dumps(args))
2547
- start_time = time.time()
2548
- while True:
2549
- rsp = client.GetDisableRecords(model)
2550
- result = rsp.to_json_string()
2551
- try:
2552
- json_obj = json.loads(result)
2553
- except TypeError as e:
2554
- json_obj = json.loads(result.decode('utf-8')) # python3.3
2555
- if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
2556
- break
2557
- cur_time = time.time()
2558
- if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
2559
- raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
2560
- (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
2561
- search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
2562
- else:
2563
- print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
2564
- time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
2565
- FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
2566
-
2567
-
2568
2464
  def doDeleteClsLogTopic(args, parsed_globals):
2569
2465
  g_param = parse_global_arg(parsed_globals)
2570
2466
 
@@ -2981,58 +2877,6 @@ def doUpdatePayType(args, parsed_globals):
2981
2877
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
2982
2878
 
2983
2879
 
2984
- def doEnableCaches(args, parsed_globals):
2985
- g_param = parse_global_arg(parsed_globals)
2986
-
2987
- if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
2988
- cred = credential.CVMRoleCredential()
2989
- elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
2990
- cred = credential.STSAssumeRoleCredential(
2991
- g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
2992
- g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
2993
- )
2994
- elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
2995
- cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
2996
- else:
2997
- cred = credential.Credential(
2998
- g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
2999
- )
3000
- http_profile = HttpProfile(
3001
- reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
3002
- reqMethod="POST",
3003
- endpoint=g_param[OptionsDefine.Endpoint],
3004
- proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
3005
- )
3006
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
3007
- if g_param[OptionsDefine.Language]:
3008
- profile.language = g_param[OptionsDefine.Language]
3009
- mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
3010
- client = mod.CdnClient(cred, g_param[OptionsDefine.Region], profile)
3011
- client._sdkVersion += ("_CLI_" + __version__)
3012
- models = MODELS_MAP[g_param[OptionsDefine.Version]]
3013
- model = models.EnableCachesRequest()
3014
- model.from_json_string(json.dumps(args))
3015
- start_time = time.time()
3016
- while True:
3017
- rsp = client.EnableCaches(model)
3018
- result = rsp.to_json_string()
3019
- try:
3020
- json_obj = json.loads(result)
3021
- except TypeError as e:
3022
- json_obj = json.loads(result.decode('utf-8')) # python3.3
3023
- if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
3024
- break
3025
- cur_time = time.time()
3026
- if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
3027
- raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
3028
- (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
3029
- search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
3030
- else:
3031
- print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
3032
- time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
3033
- FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
3034
-
3035
-
3036
2880
  CLIENT_MAP = {
3037
2881
  "v20180606": cdn_client_v20180606,
3038
2882
 
@@ -3057,7 +2901,7 @@ ACTION_MAP = {
3057
2901
  "AddCdnDomain": doAddCdnDomain,
3058
2902
  "DescribeIpVisit": doDescribeIpVisit,
3059
2903
  "DescribeCdnData": doDescribeCdnData,
3060
- "DisableCaches": doDisableCaches,
2904
+ "DescribeHttpsPackages": doDescribeHttpsPackages,
3061
2905
  "DescribeDomains": doDescribeDomains,
3062
2906
  "CreateVerifyRecord": doCreateVerifyRecord,
3063
2907
  "SearchClsLog": doSearchClsLog,
@@ -3077,7 +2921,6 @@ ACTION_MAP = {
3077
2921
  "DescribeCdnIp": doDescribeCdnIp,
3078
2922
  "PurgePathCache": doPurgePathCache,
3079
2923
  "DescribePurgeTasks": doDescribePurgeTasks,
3080
- "DescribeHttpsPackages": doDescribeHttpsPackages,
3081
2924
  "DescribeUrlViolations": doDescribeUrlViolations,
3082
2925
  "PurgeUrlsCache": doPurgeUrlsCache,
3083
2926
  "DescribeTrafficPackages": doDescribeTrafficPackages,
@@ -3092,7 +2935,6 @@ ACTION_MAP = {
3092
2935
  "PushUrlsCache": doPushUrlsCache,
3093
2936
  "ListClsTopicDomains": doListClsTopicDomains,
3094
2937
  "ListClsLogTopics": doListClsLogTopics,
3095
- "GetDisableRecords": doGetDisableRecords,
3096
2938
  "DeleteClsLogTopic": doDeleteClsLogTopic,
3097
2939
  "DescribeCdnOriginIp": doDescribeCdnOriginIp,
3098
2940
  "DescribeBillingData": doDescribeBillingData,
@@ -3101,7 +2943,6 @@ ACTION_MAP = {
3101
2943
  "DescribeReportData": doDescribeReportData,
3102
2944
  "DescribeDistrictIspData": doDescribeDistrictIspData,
3103
2945
  "UpdatePayType": doUpdatePayType,
3104
- "EnableCaches": doEnableCaches,
3105
2946
 
3106
2947
  }
3107
2948