tccli 3.0.1248.1__py2.py3-none-any.whl → 3.0.1250.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 (58) hide show
  1. tccli/__init__.py +1 -1
  2. tccli/services/aiart/aiart_client.py +113 -7
  3. tccli/services/aiart/v20221229/api.json +191 -0
  4. tccli/services/aiart/v20221229/examples.json +16 -0
  5. tccli/services/batch/v20170312/api.json +1 -1
  6. tccli/services/cbs/v20170312/api.json +6 -0
  7. tccli/services/cdb/v20170320/api.json +9 -0
  8. tccli/services/cfw/v20190904/api.json +5 -3
  9. tccli/services/cmq/cmq_client.py +4 -799
  10. tccli/services/cmq/v20190304/api.json +135 -1329
  11. tccli/services/cmq/v20190304/examples.json +0 -120
  12. tccli/services/config/config_client.py +110 -4
  13. tccli/services/config/v20220802/api.json +374 -0
  14. tccli/services/config/v20220802/examples.json +16 -0
  15. tccli/services/cvm/v20170312/api.json +1 -1
  16. tccli/services/dc/v20180410/api.json +50 -48
  17. tccli/services/dc/v20180410/examples.json +8 -8
  18. tccli/services/ecm/v20190719/api.json +64 -62
  19. tccli/services/ecm/v20190719/examples.json +5 -5
  20. tccli/services/es/v20180416/api.json +10 -0
  21. tccli/services/ess/v20201111/api.json +163 -163
  22. tccli/services/ess/v20201111/examples.json +15 -21
  23. tccli/services/essbasic/v20210526/api.json +89 -89
  24. tccli/services/essbasic/v20210526/examples.json +2 -2
  25. tccli/services/hai/hai_client.py +60 -7
  26. tccli/services/hai/v20230812/api.json +195 -0
  27. tccli/services/hai/v20230812/examples.json +8 -0
  28. tccli/services/iotexplorer/iotexplorer_client.py +228 -16
  29. tccli/services/iotexplorer/v20190423/api.json +536 -0
  30. tccli/services/iotexplorer/v20190423/examples.json +32 -0
  31. tccli/services/iotvideo/iotvideo_client.py +53 -0
  32. tccli/services/iotvideo/v20211125/api.json +80 -0
  33. tccli/services/iotvideo/v20211125/examples.json +8 -0
  34. tccli/services/lkeap/v20240522/api.json +13 -13
  35. tccli/services/lkeap/v20240522/examples.json +2 -2
  36. tccli/services/mna/v20210119/api.json +24 -24
  37. tccli/services/mna/v20210119/examples.json +2 -2
  38. tccli/services/redis/v20180412/api.json +181 -181
  39. tccli/services/redis/v20180412/examples.json +1 -1
  40. tccli/services/sms/v20190711/api.json +48 -0
  41. tccli/services/sms/v20210111/api.json +48 -0
  42. tccli/services/tcb/v20180608/api.json +173 -145
  43. tccli/services/tcb/v20180608/examples.json +8 -8
  44. tccli/services/tcr/v20190924/api.json +5 -5
  45. tccli/services/tke/v20220501/api.json +1 -1
  46. tccli/services/trro/v20220325/api.json +71 -61
  47. tccli/services/trro/v20220325/examples.json +1 -1
  48. tccli/services/trtc/v20190722/api.json +114 -114
  49. tccli/services/tse/v20201207/api.json +18 -0
  50. tccli/services/vpc/v20170312/api.json +35 -33
  51. tccli/services/vpc/v20170312/examples.json +18 -18
  52. tccli/services/wedata/v20210820/api.json +80 -2
  53. tccli/services/wedata/v20210820/examples.json +1 -1
  54. {tccli-3.0.1248.1.dist-info → tccli-3.0.1250.1.dist-info}/METADATA +2 -2
  55. {tccli-3.0.1248.1.dist-info → tccli-3.0.1250.1.dist-info}/RECORD +58 -58
  56. {tccli-3.0.1248.1.dist-info → tccli-3.0.1250.1.dist-info}/WHEEL +0 -0
  57. {tccli-3.0.1248.1.dist-info → tccli-3.0.1250.1.dist-info}/entry_points.txt +0 -0
  58. {tccli-3.0.1248.1.dist-info → tccli-3.0.1250.1.dist-info}/license_files/LICENSE +0 -0
@@ -1158,7 +1158,7 @@
1158
1158
  {
1159
1159
  "document": "查询本企业创建的两个合同的详细信息, FlowIds传了两个合同的ID数组",
1160
1160
  "input": "POST / HTTP/1.1\nHost: essbasic.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeFlowDetailInfo\n<公共请求参数>\n\n{\n \"Agent\": {\n \"AppId\": \"yDwhxUUckp3gl8j5UuFX33LSNozpRsbi\",\n \"ProxyOrganizationOpenId\": \"org_dianziqian\",\n \"ProxyOperator\": {\n \"OpenId\": \"n9527\"\n },\n \"ProxyAppId\": \"\"\n },\n \"FlowIds\": [\n \"yDSLNUUckpos0iylUyzyvt7TwYVXYRh7\",\n \"yDSLKUUckpoq19jtUxflhN4ugLFOCBNT\"\n ]\n}",
1161
- "output": "{\n \"Response\": {\n \"ApplicationId\": \"yDwhxUUckp3gl8j5UuFX33LSNozpRsbi\",\n \"ProxyOrganizationOpenId\": \"org_dianziqian\",\n \"FlowInfo\": [\n {\n \"FlowId\": \"yDSLKUUckpoq19jtUxflhN4ugLFOCBNT\",\n \"FlowName\": \"购买50吨西红柿合同\",\n \"FlowType\": \"采购合同\",\n \"FlowStatus\": \"INIT\",\n \"FlowMessage\": \"\",\n \"CreateOn\": 1698895092,\n \"DeadLine\": 1730431092,\n \"CustomData\": \"\",\n \"FlowApproverInfos\": [\n {\n \"ReceiptId\": \"yDSLOUUckpoj6ocqUyzilW6RdWiojxfG\",\n \"ProxyOrganizationOpenId\": \"org_dianziqian\",\n \"ProxyOperatorOpenId\": \"n9527\",\n \"ProxyOrganizationName\": \"典子谦示例企业\",\n \"Mobile\": \"1850000000\",\n \"SignOrder\": 0,\n \"ApproveName\": \"典子谦\",\n \"ApproveStatus\": \"PENDING\",\n \"ApproveMessage\": \"\",\n \"ApproveTime\": 0,\n \"ApproveType\": \"ORGANIZATION\",\n \"ApproverRoleName\": \"买方\"\n },\n {\n \"ReceiptId\": \"yDSLOUUckpoj6ocjUyzilW6E0SsA8ggh\",\n \"ProxyOrganizationOpenId\": \"\",\n \"ProxyOperatorOpenId\": \"org_zhangsan\",\n \"ProxyOrganizationName\": \"张三谦示例企业\",\n \"Mobile\": \"1730000000\",\n \"SignOrder\": 0,\n \"ApproveName\": \"张三\",\n \"ApproveStatus\": \"PENDING\",\n \"ApproveMessage\": \"\",\n \"ApproveTime\": 0,\n \"ApproveType\": \"ORGANIZATION\",\n \"ApproverRoleName\": \"卖方\"\n }\n ],\n \"CcInfos\": [],\n \"NeedCreateReview\": false\n },\n {\n \"FlowId\": \"yDSLNUUckpos0iylUyzyvt7TwYVXYRh7\",\n \"FlowName\": \"购买50吨西瓜合同\",\n \"FlowType\": \"采购合同\",\n \"FlowStatus\": \"INIT\",\n \"FlowMessage\": \"\",\n \"CreateOn\": 1698978129,\n \"DeadLine\": 1730514129,\n \"CustomData\": \"\",\n \"FlowApproverInfos\": [\n {\n \"ReceiptId\": \"yDSLKUUckpoqohr5UcuKmnx5zDmZ7Tl4\",\n \"ProxyOrganizationOpenId\": \"org_dianziqian\",\n \"ProxyOperatorOpenId\": \"n9527\",\n \"ProxyOrganizationName\": \"典子谦示例企业\",\n \"Mobile\": \"1850000000\",\n \"SignOrder\": 0,\n \"ApproveName\": \"典子谦\",\n \"ApproveStatus\": \"PENDING\",\n \"ApproveMessage\": \"\",\n \"ApproveTime\": 0,\n \"ApproveType\": \"ORGANIZATION\",\n \"ApproverRoleName\": \"买方\"\n },\n {\n \"ReceiptId\": \"yDSLKUUckpoqohr0UcuKmnBmx1YdqgMW\",\n \"ProxyOrganizationOpenId\": \"\",\n \"ProxyOperatorOpenId\": \"org_zhangsan\",\n \"ProxyOrganizationName\": \"张三示例企业\",\n \"Mobile\": \"1730000000\",\n \"SignOrder\": 0,\n \"ApproveName\": \"张三\",\n \"ApproveStatus\": \"PENDING\",\n \"ApproveMessage\": \"\",\n \"ApproveTime\": 0,\n \"ApproveType\": \"ORGANIZATION\",\n \"ApproverRoleName\": \"卖方\"\n }\n ],\n \"CcInfos\": [],\n \"NeedCreateReview\": false\n }\n ],\n \"FlowGroupId\": \"\",\n \"FlowGroupName\": \"\",\n \"RequestId\": \"940b70b6-ef38-4932-ba80-936efe55b601\"\n }\n}",
1161
+ "output": "{\n \"Response\": {\n \"ApplicationId\": \"yDwhxUUckp3gl8j5UuFX33LSNozpRsbi\",\n \"ProxyOrganizationOpenId\": \"org_dianziqian\",\n \"FlowInfo\": [\n {\n \"FlowId\": \"yDSLKUUckpoq19jtUxflhN4ugLFOCBNT\",\n \"FlowName\": \"购买50吨西红柿合同\",\n \"FlowType\": \"采购合同\",\n \"FlowStatus\": \"INIT\",\n \"FlowMessage\": \"\",\n \"CreateOn\": 1698895092,\n \"DeadLine\": 1730431092,\n \"CustomData\": \"\",\n \"FlowApproverInfos\": [\n {\n \"RecipientId\": \"yDSLOUUckpoj6ocqUyzilW6RdWiojxfG\",\n \"ProxyOrganizationOpenId\": \"org_dianziqian\",\n \"ProxyOperatorOpenId\": \"n9527\",\n \"ProxyOrganizationName\": \"典子谦示例企业\",\n \"Mobile\": \"1850000000\",\n \"SignOrder\": 0,\n \"ApproveName\": \"典子谦\",\n \"ApproveStatus\": \"PENDING\",\n \"ApproveMessage\": \"\",\n \"ApproveTime\": 0,\n \"ApproveType\": \"ORGANIZATION\",\n \"ApproverRoleName\": \"买方\"\n },\n {\n \"RecipientId\": \"yDSLOUUckpoj6ocjUyzilW6E0SsA8ggh\",\n \"ProxyOrganizationOpenId\": \"\",\n \"ProxyOperatorOpenId\": \"org_zhangsan\",\n \"ProxyOrganizationName\": \"张三谦示例企业\",\n \"Mobile\": \"1730000000\",\n \"SignOrder\": 0,\n \"ApproveName\": \"张三\",\n \"ApproveStatus\": \"PENDING\",\n \"ApproveMessage\": \"\",\n \"ApproveTime\": 0,\n \"ApproveType\": \"ORGANIZATION\",\n \"ApproverRoleName\": \"卖方\"\n }\n ],\n \"CcInfos\": [],\n \"NeedCreateReview\": false\n },\n {\n \"FlowId\": \"yDSLNUUckpos0iylUyzyvt7TwYVXYRh7\",\n \"FlowName\": \"购买50吨西瓜合同\",\n \"FlowType\": \"采购合同\",\n \"FlowStatus\": \"INIT\",\n \"FlowMessage\": \"\",\n \"CreateOn\": 1698978129,\n \"DeadLine\": 1730514129,\n \"CustomData\": \"\",\n \"FlowApproverInfos\": [\n {\n \"RecipientId\": \"yDSLKUUckpoqohr5UcuKmnx5zDmZ7Tl4\",\n \"ProxyOrganizationOpenId\": \"org_dianziqian\",\n \"ProxyOperatorOpenId\": \"n9527\",\n \"ProxyOrganizationName\": \"典子谦示例企业\",\n \"Mobile\": \"1850000000\",\n \"SignOrder\": 0,\n \"ApproveName\": \"典子谦\",\n \"ApproveStatus\": \"PENDING\",\n \"ApproveMessage\": \"\",\n \"ApproveTime\": 0,\n \"ApproveType\": \"ORGANIZATION\",\n \"ApproverRoleName\": \"买方\"\n },\n {\n \"RecipientId\": \"yDSLKUUckpoqohr0UcuKmnBmx1YdqgMW\",\n \"ProxyOrganizationOpenId\": \"\",\n \"ProxyOperatorOpenId\": \"org_zhangsan\",\n \"ProxyOrganizationName\": \"张三示例企业\",\n \"Mobile\": \"1730000000\",\n \"SignOrder\": 0,\n \"ApproveName\": \"张三\",\n \"ApproveStatus\": \"PENDING\",\n \"ApproveMessage\": \"\",\n \"ApproveTime\": 0,\n \"ApproveType\": \"ORGANIZATION\",\n \"ApproverRoleName\": \"卖方\"\n }\n ],\n \"CcInfos\": [],\n \"NeedCreateReview\": false\n }\n ],\n \"FlowGroupId\": \"\",\n \"FlowGroupName\": \"\",\n \"RequestId\": \"940b70b6-ef38-4932-ba80-936efe55b601\"\n }\n}",
1162
1162
  "title": "查询本企业创建的两个合同的详细信息"
1163
1163
  }
1164
1164
  ],
@@ -1293,7 +1293,7 @@
1293
1293
  "PrepareFlows": [
1294
1294
  {
1295
1295
  "document": "创建待发起文件",
1296
- "input": "POST / HTTP/1.1\nHost: essbasic.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: PrepareFlows\n<公共请求参数>\n\n{\n \"Agent\": {\n \"ProxyOrganizationOpenId\": \"test\",\n \"ProxyOperator\": {\n \"OpenId\": \"test\"\n },\n \"AppId\": \"x\"\n },\n \"JumpUrl\": \"http://www.test.com\",\n \"FlowInfos\": [\n {\n \"FlowName\": \"测试签署流程一\",\n \"TemplateId\": \"test\",\n \"FlowDescription\": \"测试签署流程一的描述信息\",\n \"FlowType\": \"合同\",\n \"Deadline\": 1604910797,\n \"FormFields\": [\n {\n \"ComponentName\": \"姓名\",\n \"ComponentValue\": \"李四\"\n }\n ],\n \"FlowApprovers\": [\n {\n \"Name\": \"李四\",\n \"Mobile\": \"13888888888\",\n \"Deadline\": 1604910798\n }\n ]\n },\n {\n \"FlowName\": \"测试签署流程二\",\n \"TemplateId\": \"test\",\n \"FlowDescription\": \"测试签署流程二的描述信息\",\n \"FlowType\": \"合同\",\n \"Deadline\": 1604910797,\n \"FormFields\": [\n {\n \"ComponentName\": \"姓名\",\n \"ComponentValue\": \"张三\"\n }\n ],\n \"FlowApprovers\": [\n {\n \"Name\": \"鹅鹅子\",\n \"ApproverType\": \"PERSON\",\n \"Mobile\": \"13200000000\",\n \"Deadline\": 1663336465\n },\n {\n \"Name\": \"发起方\",\n \"ApproverType\": \"ORGANIZATION\",\n \"Mobile\": \"13700000000\",\n \"OpenId\": \"12345678\",\n \"Deadline\": 1663336465\n }\n ]\n }\n ]\n}",
1296
+ "input": "POST / HTTP/1.1\nHost: essbasic.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: PrepareFlows\n<公共请求参数>\n\n{\n \"Agent\": {\n \"ProxyOrganizationOpenId\": \"test\",\n \"ProxyOperator\": {\n \"OpenId\": \"test\"\n },\n \"AppId\": \"yDxZtUyKQD2JuqUuO4zjERYG3XNeEJXw\"\n },\n \"JumpUrl\": \"http://www.test.com\",\n \"FlowInfos\": [\n {\n \"FlowName\": \"测试签署流程一\",\n \"TemplateId\": \"test\",\n \"FlowDescription\": \"测试签署流程一的描述信息\",\n \"FlowType\": \"合同\",\n \"Deadline\": 1604910797,\n \"FormFields\": [\n {\n \"ComponentName\": \"姓名\",\n \"ComponentValue\": \"李四\"\n }\n ],\n \"FlowApprovers\": [\n {\n \"Name\": \"李四\",\n \"Mobile\": \"13888888888\",\n \"Deadline\": 1604910798\n }\n ]\n },\n {\n \"FlowName\": \"测试签署流程二\",\n \"TemplateId\": \"test\",\n \"FlowDescription\": \"测试签署流程二的描述信息\",\n \"FlowType\": \"合同\",\n \"Deadline\": 1604910797,\n \"FormFields\": [\n {\n \"ComponentName\": \"姓名\",\n \"ComponentValue\": \"张三\"\n }\n ],\n \"FlowApprovers\": [\n {\n \"Name\": \"鹅鹅子\",\n \"ApproverType\": \"PERSON\",\n \"Mobile\": \"13200000000\",\n \"Deadline\": 1663336465\n },\n {\n \"Name\": \"发起方\",\n \"ApproverType\": \"ORGANIZATION\",\n \"Mobile\": \"13700000000\",\n \"OpenId\": \"12345678\",\n \"Deadline\": 1663336465\n }\n ]\n }\n ]\n}",
1297
1297
  "output": "{\n \"Response\": {\n \"ConfirmUrl\": \"https://www.xx.com\",\n \"RequestId\": \"id\"\n }\n}",
1298
1298
  "title": "创建待发起文件"
1299
1299
  }
@@ -173,7 +173,7 @@ def doDescribeApplications(args, parsed_globals):
173
173
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
174
174
 
175
175
 
176
- def doDescribeScenes(args, parsed_globals):
176
+ def doDescribeMuskPrompts(args, parsed_globals):
177
177
  g_param = parse_global_arg(parsed_globals)
178
178
 
179
179
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -202,11 +202,11 @@ def doDescribeScenes(args, parsed_globals):
202
202
  client = mod.HaiClient(cred, g_param[OptionsDefine.Region], profile)
203
203
  client._sdkVersion += ("_CLI_" + __version__)
204
204
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
205
- model = models.DescribeScenesRequest()
205
+ model = models.DescribeMuskPromptsRequest()
206
206
  model.from_json_string(json.dumps(args))
207
207
  start_time = time.time()
208
208
  while True:
209
- rsp = client.DescribeScenes(model)
209
+ rsp = client.DescribeMuskPrompts(model)
210
210
  result = rsp.to_json_string()
211
211
  try:
212
212
  json_obj = json.loads(result)
@@ -225,7 +225,7 @@ def doDescribeScenes(args, parsed_globals):
225
225
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
226
226
 
227
227
 
228
- def doDescribeRegions(args, parsed_globals):
228
+ def doDescribeScenes(args, parsed_globals):
229
229
  g_param = parse_global_arg(parsed_globals)
230
230
 
231
231
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -254,11 +254,11 @@ def doDescribeRegions(args, parsed_globals):
254
254
  client = mod.HaiClient(cred, g_param[OptionsDefine.Region], profile)
255
255
  client._sdkVersion += ("_CLI_" + __version__)
256
256
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
257
- model = models.DescribeRegionsRequest()
257
+ model = models.DescribeScenesRequest()
258
258
  model.from_json_string(json.dumps(args))
259
259
  start_time = time.time()
260
260
  while True:
261
- rsp = client.DescribeRegions(model)
261
+ rsp = client.DescribeScenes(model)
262
262
  result = rsp.to_json_string()
263
263
  try:
264
264
  json_obj = json.loads(result)
@@ -329,6 +329,58 @@ def doRunInstances(args, parsed_globals):
329
329
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
330
330
 
331
331
 
332
+ def doDescribeRegions(args, parsed_globals):
333
+ g_param = parse_global_arg(parsed_globals)
334
+
335
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
336
+ cred = credential.CVMRoleCredential()
337
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
338
+ cred = credential.STSAssumeRoleCredential(
339
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
340
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
341
+ )
342
+ 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):
343
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
344
+ else:
345
+ cred = credential.Credential(
346
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
347
+ )
348
+ http_profile = HttpProfile(
349
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
350
+ reqMethod="POST",
351
+ endpoint=g_param[OptionsDefine.Endpoint],
352
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
353
+ )
354
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
355
+ if g_param[OptionsDefine.Language]:
356
+ profile.language = g_param[OptionsDefine.Language]
357
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
358
+ client = mod.HaiClient(cred, g_param[OptionsDefine.Region], profile)
359
+ client._sdkVersion += ("_CLI_" + __version__)
360
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
361
+ model = models.DescribeRegionsRequest()
362
+ model.from_json_string(json.dumps(args))
363
+ start_time = time.time()
364
+ while True:
365
+ rsp = client.DescribeRegions(model)
366
+ result = rsp.to_json_string()
367
+ try:
368
+ json_obj = json.loads(result)
369
+ except TypeError as e:
370
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
371
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
372
+ break
373
+ cur_time = time.time()
374
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
375
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
376
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
377
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
378
+ else:
379
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
380
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
381
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
382
+
383
+
332
384
  def doStartInstance(args, parsed_globals):
333
385
  g_param = parse_global_arg(parsed_globals)
334
386
 
@@ -655,9 +707,10 @@ ACTION_MAP = {
655
707
  "StopInstance": doStopInstance,
656
708
  "DescribeInstances": doDescribeInstances,
657
709
  "DescribeApplications": doDescribeApplications,
710
+ "DescribeMuskPrompts": doDescribeMuskPrompts,
658
711
  "DescribeScenes": doDescribeScenes,
659
- "DescribeRegions": doDescribeRegions,
660
712
  "RunInstances": doRunInstances,
713
+ "DescribeRegions": doDescribeRegions,
661
714
  "StartInstance": doStartInstance,
662
715
  "CreateMuskPrompt": doCreateMuskPrompt,
663
716
  "DescribeInstanceNetworkStatus": doDescribeInstanceNetworkStatus,
@@ -28,6 +28,13 @@
28
28
  "output": "DescribeInstancesResponse",
29
29
  "status": "online"
30
30
  },
31
+ "DescribeMuskPrompts": {
32
+ "document": "获取prompt任务列表",
33
+ "input": "DescribeMuskPromptsRequest",
34
+ "name": "获取Prompt任务列表",
35
+ "output": "DescribeMuskPromptsResponse",
36
+ "status": "online"
37
+ },
31
38
  "DescribeRegions": {
32
39
  "document": "查询地域列表",
33
40
  "input": "DescribeRegionsRequest",
@@ -456,6 +463,89 @@
456
463
  ],
457
464
  "type": "object"
458
465
  },
466
+ "DescribeMuskPromptsRequest": {
467
+ "document": "DescribeMuskPrompts请求参数结构体",
468
+ "members": [
469
+ {
470
+ "disabled": false,
471
+ "document": "workgroup id",
472
+ "example": "4a3f3be9-f35b-40bf-b6bb-2af812dd63cb",
473
+ "member": "string",
474
+ "name": "WorkgroupId",
475
+ "required": true,
476
+ "type": "string"
477
+ },
478
+ {
479
+ "disabled": false,
480
+ "document": "workflow id",
481
+ "example": "wf-b9dbb48a-f4cd-40f3-9a68-2af4c78d31a7",
482
+ "member": "string",
483
+ "name": "WorkflowId",
484
+ "required": true,
485
+ "type": "string"
486
+ },
487
+ {
488
+ "disabled": false,
489
+ "document": "offset ",
490
+ "example": "0",
491
+ "member": "uint64",
492
+ "name": "Offset",
493
+ "required": true,
494
+ "type": "int"
495
+ },
496
+ {
497
+ "disabled": false,
498
+ "document": "limit",
499
+ "example": "20",
500
+ "member": "uint64",
501
+ "name": "Limit",
502
+ "required": true,
503
+ "type": "int"
504
+ },
505
+ {
506
+ "disabled": false,
507
+ "document": "过滤参数 支持过滤的键值: PromptId,Status",
508
+ "example": "[{\"Name\":\"PromptId\", Values:[\"dhfhds-dhdhd-xxdfdf-iejmrhf\"]}]",
509
+ "member": "Filter",
510
+ "name": "Filters",
511
+ "required": false,
512
+ "type": "list"
513
+ }
514
+ ],
515
+ "type": "object"
516
+ },
517
+ "DescribeMuskPromptsResponse": {
518
+ "document": "DescribeMuskPrompts返回参数结构体",
519
+ "members": [
520
+ {
521
+ "disabled": false,
522
+ "document": "total count",
523
+ "example": "1",
524
+ "member": "uint64",
525
+ "name": "TotalCount",
526
+ "output_required": true,
527
+ "type": "int",
528
+ "value_allowed_null": false
529
+ },
530
+ {
531
+ "disabled": false,
532
+ "document": "prompt列表详情",
533
+ "example": "无",
534
+ "member": "MuskPromptInfo",
535
+ "name": "MuskPromptInfos",
536
+ "output_required": true,
537
+ "type": "list",
538
+ "value_allowed_null": false
539
+ },
540
+ {
541
+ "document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
542
+ "member": "string",
543
+ "name": "RequestId",
544
+ "type": "string"
545
+ }
546
+ ],
547
+ "type": "object"
548
+ },
459
549
  "DescribeRegionsRequest": {
460
550
  "document": "DescribeRegions请求参数结构体",
461
551
  "members": [],
@@ -1102,6 +1192,111 @@
1102
1192
  ],
1103
1193
  "usage": "out"
1104
1194
  },
1195
+ "MuskPromptInfo": {
1196
+ "document": "musk prompt详情",
1197
+ "members": [
1198
+ {
1199
+ "disabled": false,
1200
+ "document": "workflow id",
1201
+ "example": "wf-c23b5551-4008-4c9f-844a-4c4dd30f84f7",
1202
+ "member": "string",
1203
+ "name": "WorkflowId",
1204
+ "output_required": true,
1205
+ "required": false,
1206
+ "type": "string",
1207
+ "value_allowed_null": false
1208
+ },
1209
+ {
1210
+ "disabled": false,
1211
+ "document": "workgroup id",
1212
+ "example": "wg-4a3f3be9-f35b-40bf-b6bb-2af812dd63cb",
1213
+ "member": "string",
1214
+ "name": "WorkgroupId",
1215
+ "output_required": true,
1216
+ "required": false,
1217
+ "type": "string",
1218
+ "value_allowed_null": false
1219
+ },
1220
+ {
1221
+ "disabled": false,
1222
+ "document": "prompt id",
1223
+ "example": "4a3f3be9-f35b-40bf-b6bb-2af812dd63cb",
1224
+ "member": "string",
1225
+ "name": "PromptId",
1226
+ "output_required": true,
1227
+ "required": false,
1228
+ "type": "string",
1229
+ "value_allowed_null": false
1230
+ },
1231
+ {
1232
+ "disabled": false,
1233
+ "document": "生成的内容",
1234
+ "example": "[\"image\"]",
1235
+ "member": "string",
1236
+ "name": "OutputResource",
1237
+ "output_required": true,
1238
+ "required": false,
1239
+ "type": "list",
1240
+ "value_allowed_null": false
1241
+ },
1242
+ {
1243
+ "disabled": false,
1244
+ "document": "prompt status \n0: 执行中\n1: 执行成功\n2: 执行失败",
1245
+ "example": "1",
1246
+ "member": "uint64",
1247
+ "name": "Status",
1248
+ "output_required": true,
1249
+ "required": false,
1250
+ "type": "int",
1251
+ "value_allowed_null": false
1252
+ },
1253
+ {
1254
+ "disabled": false,
1255
+ "document": "创建时间",
1256
+ "example": "2024-12-30",
1257
+ "member": "string",
1258
+ "name": "CreateTime",
1259
+ "output_required": true,
1260
+ "required": false,
1261
+ "type": "string",
1262
+ "value_allowed_null": false
1263
+ },
1264
+ {
1265
+ "disabled": false,
1266
+ "document": "更新时间",
1267
+ "example": "2024-12-30",
1268
+ "member": "string",
1269
+ "name": "UpdateTime",
1270
+ "output_required": true,
1271
+ "required": false,
1272
+ "type": "string",
1273
+ "value_allowed_null": false
1274
+ },
1275
+ {
1276
+ "disabled": false,
1277
+ "document": "任务执行耗时,单位毫秒",
1278
+ "example": "0",
1279
+ "member": "uint64",
1280
+ "name": "Cost",
1281
+ "output_required": false,
1282
+ "required": false,
1283
+ "type": "int",
1284
+ "value_allowed_null": false
1285
+ },
1286
+ {
1287
+ "disabled": false,
1288
+ "document": "任务执行失败错误信息",
1289
+ "example": " ",
1290
+ "member": "string",
1291
+ "name": "ErrorMessage",
1292
+ "output_required": false,
1293
+ "required": false,
1294
+ "type": "string",
1295
+ "value_allowed_null": false
1296
+ }
1297
+ ],
1298
+ "usage": "both"
1299
+ },
1105
1300
  "NetworkStatus": {
1106
1301
  "document": "HAI 实例的网络配置和消耗情况",
1107
1302
  "members": [
@@ -32,6 +32,14 @@
32
32
  "title": "查看指定实例hai-jklfaded的信息"
33
33
  }
34
34
  ],
35
+ "DescribeMuskPrompts": [
36
+ {
37
+ "document": "获取prompt任务详情",
38
+ "input": "POST / HTTP/1.1\nHost: hai.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeMuskPrompts\n<公共请求参数>\n\n{\n \"WorkgroupId\": \"4a3f3be9-f35b-40bf-b6bb-2af812dd63cb\",\n \"WorkflowId\": \"wf-b9dbb48a-f4cd-40f3-9a68-2af4c78d31a7\",\n \"Offset\": 0,\n \"Limit\": 20\n}",
39
+ "output": "{\n \"Response\": {\n \"MuskPromptInfos\": [\n {\n \"CreateTime\": \"2024-12-24 12:07:22\",\n \"OutputResource\": [],\n \"PromptId\": \"edc6e6ec-072c-41dd-8672-c956b739fd31\",\n \"Status\": 2,\n \"UpdateTime\": \"2024-12-24 12:09:22\",\n \"WorkflowId\": \"wf-b9dbb48a-f4cd-40f3-9a68-2af4c78d31a7\",\n \"WorkgroupId\": \"4a3f3be9-f35b-40bf-b6bb-2af812dd63cb\"\n }\n ],\n \"RequestId\": \"a8a7930a-b642-4a3e-a3df-2d4a6bd389cc\",\n \"TotalCount\": 1\n }\n}",
40
+ "title": "获取prompt任务详情"
41
+ }
42
+ ],
35
43
  "DescribeRegions": [
36
44
  {
37
45
  "document": "查询地域列表",