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
@@ -1217,7 +1217,7 @@ def doDescribeClusterStorageOption(args, parsed_globals):
1217
1217
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
1218
1218
 
1219
1219
 
1220
- def doBindAutoScalingGroup(args, parsed_globals):
1220
+ def doModifyClusterDeletionProtection(args, parsed_globals):
1221
1221
  g_param = parse_global_arg(parsed_globals)
1222
1222
 
1223
1223
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -1246,11 +1246,11 @@ def doBindAutoScalingGroup(args, parsed_globals):
1246
1246
  client = mod.ThpcClient(cred, g_param[OptionsDefine.Region], profile)
1247
1247
  client._sdkVersion += ("_CLI_" + __version__)
1248
1248
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
1249
- model = models.BindAutoScalingGroupRequest()
1249
+ model = models.ModifyClusterDeletionProtectionRequest()
1250
1250
  model.from_json_string(json.dumps(args))
1251
1251
  start_time = time.time()
1252
1252
  while True:
1253
- rsp = client.BindAutoScalingGroup(model)
1253
+ rsp = client.ModifyClusterDeletionProtection(model)
1254
1254
  result = rsp.to_json_string()
1255
1255
  try:
1256
1256
  json_obj = json.loads(result)
@@ -1633,6 +1633,58 @@ def doDeleteJob(args, parsed_globals):
1633
1633
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
1634
1634
 
1635
1635
 
1636
+ def doBindAutoScalingGroup(args, parsed_globals):
1637
+ g_param = parse_global_arg(parsed_globals)
1638
+
1639
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
1640
+ cred = credential.CVMRoleCredential()
1641
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
1642
+ cred = credential.STSAssumeRoleCredential(
1643
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
1644
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
1645
+ )
1646
+ 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):
1647
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
1648
+ else:
1649
+ cred = credential.Credential(
1650
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
1651
+ )
1652
+ http_profile = HttpProfile(
1653
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
1654
+ reqMethod="POST",
1655
+ endpoint=g_param[OptionsDefine.Endpoint],
1656
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
1657
+ )
1658
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
1659
+ if g_param[OptionsDefine.Language]:
1660
+ profile.language = g_param[OptionsDefine.Language]
1661
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
1662
+ client = mod.ThpcClient(cred, g_param[OptionsDefine.Region], profile)
1663
+ client._sdkVersion += ("_CLI_" + __version__)
1664
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
1665
+ model = models.BindAutoScalingGroupRequest()
1666
+ model.from_json_string(json.dumps(args))
1667
+ start_time = time.time()
1668
+ while True:
1669
+ rsp = client.BindAutoScalingGroup(model)
1670
+ result = rsp.to_json_string()
1671
+ try:
1672
+ json_obj = json.loads(result)
1673
+ except TypeError as e:
1674
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
1675
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
1676
+ break
1677
+ cur_time = time.time()
1678
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
1679
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
1680
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
1681
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
1682
+ else:
1683
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
1684
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
1685
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
1686
+
1687
+
1636
1688
  CLIENT_MAP = {
1637
1689
  "v20230321": thpc_client_v20230321,
1638
1690
  "v20220401": thpc_client_v20220401,
@@ -1671,7 +1723,7 @@ ACTION_MAP = {
1671
1723
  "DescribeClusterActivities": doDescribeClusterActivities,
1672
1724
  "SubmitJob": doSubmitJob,
1673
1725
  "DescribeClusterStorageOption": doDescribeClusterStorageOption,
1674
- "BindAutoScalingGroup": doBindAutoScalingGroup,
1726
+ "ModifyClusterDeletionProtection": doModifyClusterDeletionProtection,
1675
1727
  "ModifyInitNodeScripts": doModifyInitNodeScripts,
1676
1728
  "AddClusterStorageOption": doAddClusterStorageOption,
1677
1729
  "DescribeJobsOverview": doDescribeJobsOverview,
@@ -1679,6 +1731,7 @@ ACTION_MAP = {
1679
1731
  "ModifyWorkspacesRenewFlag": doModifyWorkspacesRenewFlag,
1680
1732
  "DeleteQueue": doDeleteQueue,
1681
1733
  "DeleteJob": doDeleteJob,
1734
+ "BindAutoScalingGroup": doBindAutoScalingGroup,
1682
1735
 
1683
1736
  }
1684
1737
 
@@ -161,6 +161,13 @@
161
161
  "output": "DetachNodesResponse",
162
162
  "status": "online"
163
163
  },
164
+ "ModifyClusterDeletionProtection": {
165
+ "document": "修改集群删除保护状态",
166
+ "input": "ModifyClusterDeletionProtectionRequest",
167
+ "name": "修改集群删除保护状态",
168
+ "output": "ModifyClusterDeletionProtectionResponse",
169
+ "status": "online"
170
+ },
164
171
  "ModifyInitNodeScripts": {
165
172
  "document": "本接口 (ModifyInitNodeScripts) 用于修改节点初始化脚本。",
166
173
  "input": "ModifyInitNodeScriptsRequest",
@@ -556,7 +563,7 @@
556
563
  "value_allowed_null": false
557
564
  },
558
565
  {
559
- "disabled": false,
566
+ "disabled": true,
560
567
  "document": "表示所选训练框架,支持可选参数\n \n- PyTorch:表示提交PyTorch训练作业\n- Custom:表示用户自定义作业\n\n默认参数为:Custom",
561
568
  "example": "Custom",
562
569
  "member": "string",
@@ -565,6 +572,17 @@
565
572
  "required": false,
566
573
  "type": "string",
567
574
  "value_allowed_null": false
575
+ },
576
+ {
577
+ "disabled": false,
578
+ "document": "表示所选训练框架,支持可选参数\n \n- PyTorch:表示提交PyTorch训练作业\n- Custom:表示用户自定义作业\n\n默认参数为:Custom",
579
+ "example": "Custom",
580
+ "member": "string",
581
+ "name": "TaskType",
582
+ "output_required": false,
583
+ "required": false,
584
+ "type": "string",
585
+ "value_allowed_null": false
568
586
  }
569
587
  ],
570
588
  "usage": "both"
@@ -900,7 +918,7 @@
900
918
  {
901
919
  "disabled": false,
902
920
  "document": "集群位置信息。",
903
- "example": "{ \"Zone\": \"ap-guangzhou-6\" }\t",
921
+ "example": "",
904
922
  "member": "Placement",
905
923
  "name": "Placement",
906
924
  "output_required": true,
@@ -910,7 +928,7 @@
910
928
  {
911
929
  "disabled": false,
912
930
  "document": "集群创建时间。",
913
- "example": "2024-12-18T13:46:34Z\t",
931
+ "example": "2025-10-29T09:55:45Z",
914
932
  "member": "datetime_iso",
915
933
  "name": "CreateTime",
916
934
  "output_required": true,
@@ -950,7 +968,7 @@
950
968
  {
951
969
  "disabled": false,
952
970
  "document": "计算节点概览。",
953
- "example": "[{\"NodeId\":\"ins-riredadfj6\"},{\"NodeId\":\"ins-mdafdsai\"},{\"NodeId\":\"ins-5icofadac\"},{\"NodeId\":\"ins-icfdadfy\"}]\t",
971
+ "example": "",
954
972
  "member": "ComputeNodeOverview",
955
973
  "name": "ComputeNodeSet",
956
974
  "output_required": true,
@@ -970,7 +988,7 @@
970
988
  {
971
989
  "disabled": false,
972
990
  "document": "管控节点概览。",
973
- "example": "[{\"NodeId\":\"node-rirfdafa\"}]\t",
991
+ "example": "",
974
992
  "member": "ManagerNodeOverview",
975
993
  "name": "ManagerNodeSet",
976
994
  "output_required": true,
@@ -980,7 +998,7 @@
980
998
  {
981
999
  "disabled": false,
982
1000
  "document": "登录节点概览。",
983
- "example": "[{\"NodeId\":\"ins-riredadfj6\"},{\"NodeId\":\"ins-mdafdsai\"},{\"NodeId\":\"ins-5icofadac\"},{\"NodeId\":\"ins-icfdadfy\"}]\t",
1001
+ "example": "",
984
1002
  "member": "LoginNodeOverview",
985
1003
  "name": "LoginNodeSet",
986
1004
  "output_required": true,
@@ -1026,6 +1044,16 @@
1026
1044
  "output_required": false,
1027
1045
  "type": "string",
1028
1046
  "value_allowed_null": false
1047
+ },
1048
+ {
1049
+ "disabled": false,
1050
+ "document": "集群销毁保护开关状态,当前支持参数:\n\n- ON: 集群销毁保护打开\n- OFF: 集群销毁保护关闭",
1051
+ "example": "OFF",
1052
+ "member": "string",
1053
+ "name": "DeletionProtection",
1054
+ "output_required": true,
1055
+ "type": "string",
1056
+ "value_allowed_null": false
1029
1057
  }
1030
1058
  ],
1031
1059
  "usage": "out"
@@ -1156,16 +1184,16 @@
1156
1184
  {
1157
1185
  "disabled": false,
1158
1186
  "document": "集群中实例所在的位置。",
1159
- "example": "{ \"Zone\": \"ap-guangzhou-6\" }\t",
1187
+ "example": "",
1160
1188
  "member": "Placement",
1161
1189
  "name": "Placement",
1162
- "required": true,
1190
+ "required": false,
1163
1191
  "type": "object"
1164
1192
  },
1165
1193
  {
1166
1194
  "disabled": false,
1167
1195
  "document": "指定管理节点。",
1168
- "example": "{\"InstanceType\": \"S2.SMALL2\"}",
1196
+ "example": "",
1169
1197
  "member": "ManagerNode",
1170
1198
  "name": "ManagerNode",
1171
1199
  "required": false,
@@ -1183,7 +1211,7 @@
1183
1211
  {
1184
1212
  "disabled": false,
1185
1213
  "document": "指定计算节点。",
1186
- "example": "{\"InstanceType\": \"S2.SMALL2\"}",
1214
+ "example": "",
1187
1215
  "member": "ComputeNode",
1188
1216
  "name": "ComputeNode",
1189
1217
  "required": false,
@@ -1228,7 +1256,7 @@
1228
1256
  {
1229
1257
  "disabled": false,
1230
1258
  "document": "私有网络相关信息配置。",
1231
- "example": "{ \"VpcId\": \"vpc-rhfaxx31\", \"SubnetId\": \"subnet-x7vxgqe\" }",
1259
+ "example": "",
1232
1260
  "member": "VirtualPrivateCloud",
1233
1261
  "name": "VirtualPrivateCloud",
1234
1262
  "required": false,
@@ -1237,7 +1265,7 @@
1237
1265
  {
1238
1266
  "disabled": false,
1239
1267
  "document": "集群登录设置。",
1240
- "example": "{ \"KeyIds\": [ \"skey-9tzxxb4j\" ] }",
1268
+ "example": "",
1241
1269
  "member": "LoginSettings",
1242
1270
  "name": "LoginSettings",
1243
1271
  "required": false,
@@ -1264,7 +1292,7 @@
1264
1292
  {
1265
1293
  "disabled": false,
1266
1294
  "document": "是否只预检此次请求。\ntrue:发送检查请求,不会创建实例。检查项包括是否填写了必需参数,请求格式,业务限制和云服务器库存。\n如果检查不通过,则返回对应错误码;\n如果检查通过,则返回RequestId.\nfalse(默认):发送正常请求,通过检查后直接创建实例",
1267
- "example": "False",
1295
+ "example": "false",
1268
1296
  "member": "bool",
1269
1297
  "name": "DryRun",
1270
1298
  "required": false,
@@ -1291,7 +1319,7 @@
1291
1319
  {
1292
1320
  "disabled": false,
1293
1321
  "document": "集群存储选项",
1294
- "example": "{\"CFSOptions\":[{\"LocalPath\":\"/mnt/\",\"RemotePath\":\"127.0.0.1@tcp0:/test/cfs/\",\"Protocol\":\"TURBO\",\"StorageType\":\"TP\"}]}\t",
1322
+ "example": "",
1295
1323
  "member": "StorageOption",
1296
1324
  "name": "StorageOption",
1297
1325
  "required": false,
@@ -1300,7 +1328,7 @@
1300
1328
  {
1301
1329
  "disabled": false,
1302
1330
  "document": "指定登录节点。",
1303
- "example": "{\"InstanceType\": \"S2.SMALL2\"}",
1331
+ "example": "",
1304
1332
  "member": "LoginNode",
1305
1333
  "name": "LoginNode",
1306
1334
  "required": false,
@@ -1318,7 +1346,7 @@
1318
1346
  {
1319
1347
  "disabled": false,
1320
1348
  "document": "创建集群时同时绑定的标签对说明。",
1321
- "example": "[{\"Key\": \"test\", \"Value\": \"test\"}]",
1349
+ "example": "",
1322
1350
  "member": "Tag",
1323
1351
  "name": "Tags",
1324
1352
  "required": false,
@@ -1336,7 +1364,7 @@
1336
1364
  {
1337
1365
  "disabled": false,
1338
1366
  "document": "节点初始化脚本信息列表。",
1339
- "example": "{\"ScriptPath\": \"cos://demo-xxxxxxxx.cos.ap-guangzhou.myqcloud.com/test/echo.sh\", \"Timeout\": \"30\"}",
1367
+ "example": "",
1340
1368
  "member": "NodeScript",
1341
1369
  "name": "InitNodeScripts",
1342
1370
  "required": false,
@@ -1489,7 +1517,7 @@
1489
1517
  },
1490
1518
  {
1491
1519
  "disabled": false,
1492
- "document": "工作空间登陆设置",
1520
+ "document": "工作空间登录设置",
1493
1521
  "example": "{ \"KeyIds\": [ \"skey-9tzxxb4j\" ] }",
1494
1522
  "member": "LoginSettings",
1495
1523
  "name": "LoginSettings",
@@ -2123,12 +2151,52 @@
2123
2151
  },
2124
2152
  "DescribeJobsOverviewRequest": {
2125
2153
  "document": "DescribeJobsOverview请求参数结构体",
2126
- "members": [],
2154
+ "members": [
2155
+ {
2156
+ "disabled": false,
2157
+ "document": "集群ID",
2158
+ "example": "hpc-xxx",
2159
+ "member": "string",
2160
+ "name": "ClusterId",
2161
+ "required": true,
2162
+ "type": "string"
2163
+ }
2164
+ ],
2127
2165
  "type": "object"
2128
2166
  },
2129
2167
  "DescribeJobsOverviewResponse": {
2130
2168
  "document": "DescribeJobsOverview返回参数结构体",
2131
2169
  "members": [
2170
+ {
2171
+ "disabled": false,
2172
+ "document": "作业任务数量",
2173
+ "example": "10",
2174
+ "member": "uint64",
2175
+ "name": "JobTotal",
2176
+ "output_required": true,
2177
+ "type": "int",
2178
+ "value_allowed_null": false
2179
+ },
2180
+ {
2181
+ "disabled": false,
2182
+ "document": "排队中的作业任务数量",
2183
+ "example": "2",
2184
+ "member": "uint64",
2185
+ "name": "QueuingJobTotal",
2186
+ "output_required": true,
2187
+ "type": "int",
2188
+ "value_allowed_null": false
2189
+ },
2190
+ {
2191
+ "disabled": false,
2192
+ "document": "运行中的作业数量",
2193
+ "example": "3",
2194
+ "member": "uint64",
2195
+ "name": "RunningJobTotal",
2196
+ "output_required": true,
2197
+ "type": "int",
2198
+ "value_allowed_null": false
2199
+ },
2132
2200
  {
2133
2201
  "document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
2134
2202
  "member": "string",
@@ -2144,7 +2212,7 @@
2144
2212
  {
2145
2213
  "disabled": false,
2146
2214
  "document": "作业任务ID列表",
2147
- "example": "",
2215
+ "example": "[\"job-xxx\"]",
2148
2216
  "member": "string",
2149
2217
  "name": "JobIds",
2150
2218
  "required": false,
@@ -3297,6 +3365,42 @@
3297
3365
  ],
3298
3366
  "usage": "out"
3299
3367
  },
3368
+ "ModifyClusterDeletionProtectionRequest": {
3369
+ "document": "ModifyClusterDeletionProtection请求参数结构体",
3370
+ "members": [
3371
+ {
3372
+ "disabled": false,
3373
+ "document": "集群ID。",
3374
+ "example": "hpc-cjaqo2i7",
3375
+ "member": "string",
3376
+ "name": "ClusterId",
3377
+ "required": true,
3378
+ "type": "string"
3379
+ },
3380
+ {
3381
+ "disabled": false,
3382
+ "document": "集群删除保护开关。 \n可选值:<li>OFF:关闭集群删除保护。</li><li>ON:打开集群删除保护。</li>",
3383
+ "example": "OFF",
3384
+ "member": "string",
3385
+ "name": "DeletionProtection",
3386
+ "required": true,
3387
+ "type": "string"
3388
+ }
3389
+ ],
3390
+ "type": "object"
3391
+ },
3392
+ "ModifyClusterDeletionProtectionResponse": {
3393
+ "document": "ModifyClusterDeletionProtection返回参数结构体",
3394
+ "members": [
3395
+ {
3396
+ "document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
3397
+ "member": "string",
3398
+ "name": "RequestId",
3399
+ "type": "string"
3400
+ }
3401
+ ],
3402
+ "type": "object"
3403
+ },
3300
3404
  "ModifyInitNodeScriptsRequest": {
3301
3405
  "document": "ModifyInitNodeScripts请求参数结构体",
3302
3406
  "members": [
@@ -4624,12 +4728,50 @@
4624
4728
  },
4625
4729
  "SubmitJobRequest": {
4626
4730
  "document": "SubmitJob请求参数结构体",
4627
- "members": [],
4731
+ "members": [
4732
+ {
4733
+ "disabled": false,
4734
+ "document": "集群id",
4735
+ "example": "hpc-cy4pnyp9",
4736
+ "member": "string",
4737
+ "name": "ClusterId",
4738
+ "required": true,
4739
+ "type": "string"
4740
+ },
4741
+ {
4742
+ "disabled": false,
4743
+ "document": "作业任务参数配置",
4744
+ "example": "无",
4745
+ "member": "Job",
4746
+ "name": "Job",
4747
+ "required": true,
4748
+ "type": "object"
4749
+ },
4750
+ {
4751
+ "disabled": false,
4752
+ "document": "队列名称。不指定则为默认队列:\nSLURM默认队列为:compute。 \nSGE默认队列为:all.q。",
4753
+ "example": "compute",
4754
+ "member": "string",
4755
+ "name": "QueueName",
4756
+ "required": false,
4757
+ "type": "string"
4758
+ }
4759
+ ],
4628
4760
  "type": "object"
4629
4761
  },
4630
4762
  "SubmitJobResponse": {
4631
4763
  "document": "SubmitJob返回参数结构体",
4632
4764
  "members": [
4765
+ {
4766
+ "disabled": false,
4767
+ "document": "作业任务ID",
4768
+ "example": "job-xxxx",
4769
+ "member": "string",
4770
+ "name": "JobId",
4771
+ "output_required": false,
4772
+ "type": "string",
4773
+ "value_allowed_null": false
4774
+ },
4633
4775
  {
4634
4776
  "document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
4635
4777
  "member": "string",
@@ -140,15 +140,15 @@
140
140
  {
141
141
  "document": "查询指定作业ID的任务列表信息",
142
142
  "input": "POST / HTTP/1.1\nHost: thpc.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeJobs\n<公共请求参数>\n\n{\n \"JobIds\": [\n \"job-mudo8mj\"\n ]\n}",
143
- "output": "{\n \"Response\": {\n \"JobSet\": [\n {\n \"ClusterId\": \"hpc-59wddafa\",\n \"CreateTime\": \"2024-12-17 15:31:14\",\n \"EndTime\": \"1753-01-01 00:00:00\",\n \"JobDescription\": \"job test\",\n \"JobId\": \"job-mudo8mij\",\n \"JobName\": \"nj-test\",\n \"JobState\": \"RUNNING\",\n \"Priority\": 1,\n \"QueueName\": \"compute\"\n }\n ],\n \"RequestId\": \"a0a8bfa0-43cd-424e-9b12-eb01fadfadc6c1\",\n \"TotalCount\": 1\n }\n}",
143
+ "output": "{\n \"Response\": {\n \"JobSet\": [\n {\n \"ClusterId\": \"hpc-59wddafa\",\n \"CreateTime\": \"2024-12-17 15:31:14\",\n \"EndTime\": \"1753-01-01 00:00:00\",\n \"JobDescription\": \"job test\",\n \"JobId\": \"job-mudo8mij\",\n \"JobName\": \"nj-test\",\n \"JobState\": \"RUNNING\",\n \"Priority\": 1,\n \"QueueName\": \"compute\",\n \"OccupyResources\": \"计算节点: 2\"\n }\n ],\n \"RequestId\": \"a0a8bfa0-43cd-424e-9b12-eb01fadfadc6c1\",\n \"TotalCount\": 1\n }\n}",
144
144
  "title": "查询指定作业ID的任务列表信息"
145
145
  }
146
146
  ],
147
147
  "DescribeJobsOverview": [
148
148
  {
149
149
  "document": "thpc查看集群下的作业概览信息",
150
- "input": "POST / HTTP/1.1\nHost: thpc.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeJobs\n<公共请求参数>\n\n{}",
151
- "output": "{\n \"Response\": {\n \"RequestId\": \"a0a8bfa0-43cd-424e-9b12-eb01fadfadc6c1\"\n }\n}",
150
+ "input": "POST / HTTP/1.1\nHost: thpc.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeJobs\n<公共请求参数>\n\n{\n \"ClusterId\": \"hpc-xxx\"\n}",
151
+ "output": "{\n \"Response\": {\n \"JobTotal\": 3,\n \"QueuingJobTotal\": 2,\n \"RunningJobTotal\": 1,\n \"RequestId\": \"a0a8bfa0-43cd-424e-9b12-eb01fadfadc6c1\"\n }\n}",
152
152
  "title": "thpc查看集群下的作业概览信息"
153
153
  }
154
154
  ],
@@ -184,6 +184,14 @@
184
184
  "title": "从集群解绑计算节点"
185
185
  }
186
186
  ],
187
+ "ModifyClusterDeletionProtection": [
188
+ {
189
+ "document": "",
190
+ "input": "POST / HTTP/1.1\nHost: thpc.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ModifyClusterDeletionProtection\n<公共请求参数>\n\n{\n \"ClusterId\": \"hpc-cjaqo2i7\",\n \"DeletionProtection\": \"OFF\"\n}",
191
+ "output": "{\n \"Response\": {\n \"RequestId\": \"efbbe00e-0175-4ee7-92c5-debc5763142d\"\n }\n}",
192
+ "title": "关闭集群删除保护状态"
193
+ }
194
+ ],
187
195
  "ModifyInitNodeScripts": [
188
196
  {
189
197
  "document": "修改节点初始化脚本。",
@@ -219,8 +227,8 @@
219
227
  "SubmitJob": [
220
228
  {
221
229
  "document": "提交一个\"hello world\"作业任务",
222
- "input": "POST / HTTP/1.1\nHost: thpc.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: SubmitJob\n<公共请求参数>\n\n{}",
223
- "output": "{\n \"Response\": {\n \"RequestId\": \"ef8a9572-db7f-450b-b736-265feffafda34\"\n }\n}",
230
+ "input": "POST / HTTP/1.1\nHost: thpc.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: SubmitJob\n<公共请求参数>\n\n{\n \"ClusterId\": \"hpc-5fdafdsas\",\n \"Job\": {\n \"Tasks\": [\n {\n \"Application\": {\n \"Commands\": [\n {\n \"Command\": \"echo hello world\"\n }\n ],\n \"StorageMounts\": [\n {\n \"Source\": \"/mnt/\",\n \"Target\": \"/data/\"\n }\n ],\n \"EnvVars\": [\n {\n \"Name\": \"ENV\",\n \"Value\": \"prod\"\n }\n ],\n \"Docker\": {\n \"Image\": \"test:test\",\n \"RunArgs\": [\n \"--privileged\",\n \"--cap-add=IPC_LOCK\",\n \"--net=host\",\n \"--ipc=host\",\n \" --gpus all\"\n ]\n },\n \"OutputRedirect\": {\n \"Driver\": \"local\",\n \"Options\": [\n \"stdout=/data/${BATCH_JOB_ID}.log\",\n \"stderr=/data/${BATCH_JOB_ID}.log\"\n ]\n }\n },\n \"TaskName\": \"task-test-v1\",\n \"TaskInstanceNum\": 2,\n \"Timeout\": 3600\n }\n ],\n \"JobName\": \"hello world\",\n \"JobDescription\": \"job test\",\n \"Priority\": 1\n },\n \"QueueName\": \"compute\"\n}",
231
+ "output": "{\n \"Response\": {\n \"JobId\": \"job-mudfdafada\",\n \"RequestId\": \"ef8a9572-db7f-450b-b736-265feffafda34\"\n }\n}",
224
232
  "title": "提交一个\"hello world\"作业任务"
225
233
  }
226
234
  ],