tccli 3.0.1225.1__py2.py3-none-any.whl → 3.0.1227.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 (55) hide show
  1. tccli/__init__.py +1 -1
  2. tccli/services/billing/v20180709/api.json +23 -23
  3. tccli/services/billing/v20180709/examples.json +5 -5
  4. tccli/services/cam/v20190116/api.json +19 -13
  5. tccli/services/cdb/v20170320/api.json +218 -2
  6. tccli/services/cdb/v20170320/examples.json +3 -3
  7. tccli/services/cdwdoris/v20211228/api.json +1 -1
  8. tccli/services/ckafka/v20190819/api.json +1762 -1445
  9. tccli/services/ckafka/v20190819/examples.json +22 -22
  10. tccli/services/cloudapp/v20220530/api.json +2 -2
  11. tccli/services/cloudapp/v20220530/examples.json +1 -1
  12. tccli/services/dts/v20211206/api.json +21 -1
  13. tccli/services/faceid/v20180301/api.json +1 -1
  14. tccli/services/hunyuan/hunyuan_client.py +53 -0
  15. tccli/services/hunyuan/v20230901/api.json +297 -0
  16. tccli/services/hunyuan/v20230901/examples.json +8 -0
  17. tccli/services/ims/v20201229/api.json +2 -2
  18. tccli/services/iotexplorer/iotexplorer_client.py +57 -4
  19. tccli/services/iotexplorer/v20190423/api.json +145 -0
  20. tccli/services/iotexplorer/v20190423/examples.json +14 -0
  21. tccli/services/ivld/v20210903/api.json +245 -192
  22. tccli/services/ivld/v20210903/examples.json +10 -10
  23. tccli/services/lcic/v20220817/api.json +1 -1
  24. tccli/services/live/live_client.py +53 -0
  25. tccli/services/live/v20180801/api.json +204 -35
  26. tccli/services/live/v20180801/examples.json +9 -1
  27. tccli/services/lke/v20231130/api.json +20 -20
  28. tccli/services/mps/v20190612/api.json +186 -25
  29. tccli/services/organization/v20181225/api.json +75 -51
  30. tccli/services/organization/v20181225/examples.json +20 -20
  31. tccli/services/organization/v20210331/api.json +74 -61
  32. tccli/services/organization/v20210331/examples.json +14 -14
  33. tccli/services/rce/v20201103/api.json +1 -1
  34. tccli/services/redis/v20180412/api.json +1 -1
  35. tccli/services/scf/v20180416/api.json +1 -1
  36. tccli/services/teo/v20220901/api.json +3 -3
  37. tccli/services/tke/v20220501/api.json +109 -0
  38. tccli/services/tmt/v20180321/api.json +1 -1
  39. tccli/services/trtc/v20190722/api.json +104 -0
  40. tccli/services/tsf/v20180326/api.json +1287 -118
  41. tccli/services/tsf/v20180326/examples.json +5 -5
  42. tccli/services/tts/v20190823/api.json +2 -2
  43. tccli/services/vclm/v20240523/api.json +77 -6
  44. tccli/services/vclm/v20240523/examples.json +9 -1
  45. tccli/services/vclm/vclm_client.py +53 -0
  46. tccli/services/vdb/v20230616/api.json +29 -0
  47. tccli/services/vod/v20180717/api.json +2 -2
  48. tccli/services/vpc/v20170312/api.json +134 -0
  49. tccli/services/vpc/v20170312/examples.json +8 -0
  50. tccli/services/vpc/vpc_client.py +53 -0
  51. {tccli-3.0.1225.1.dist-info → tccli-3.0.1227.1.dist-info}/METADATA +2 -2
  52. {tccli-3.0.1225.1.dist-info → tccli-3.0.1227.1.dist-info}/RECORD +55 -55
  53. {tccli-3.0.1225.1.dist-info → tccli-3.0.1227.1.dist-info}/WHEEL +0 -0
  54. {tccli-3.0.1225.1.dist-info → tccli-3.0.1227.1.dist-info}/entry_points.txt +0 -0
  55. {tccli-3.0.1225.1.dist-info → tccli-3.0.1227.1.dist-info}/license_files/LICENSE +0 -0
@@ -14,6 +14,13 @@
14
14
  "output": "ChatCompletionsResponse",
15
15
  "status": "online"
16
16
  },
17
+ "ChatTranslations": {
18
+ "document": "腾讯混元大模型是由腾讯研发的大语言模型,具备强大的中文创作能力,复杂语境下的逻辑推理能力,以及可靠的任务执行能力。本接口支持流式或非流式调用,当使用流式调用时为 SSE 协议。\n\n 1. 本接口暂不支持返回图片内容。\n 2. 默认该接口下单账号限制并发数为 5 路,如您有提高并发限制的需求请 [购买](https://buy.cloud.tencent.com/hunyuan) 。\n 3. 请使用 SDK 调用本接口,每种开发语言的 SDK Git 仓库 examples/hunyuan/v20230901/ 目录下有提供示例供参考。SDK 链接在文档下方 “**开发者资源 - SDK**” 部分提供。\n 4. 我们推荐您使用 API Explorer,方便快速地在线调试接口和下载各语言的示例代码,[点击打开](https://console.cloud.tencent.com/api/explorer?Product=hunyuan&Version=2023-09-01&Action=ChatCompletions)。",
19
+ "input": "ChatTranslationsRequest",
20
+ "name": "hunyuan-translations",
21
+ "output": "ChatTranslationsResponse",
22
+ "status": "online"
23
+ },
17
24
  "CreateThread": {
18
25
  "document": "腾讯混元大模型是由腾讯研发的大语言模型,具备强大的中文创作能力,复杂语境下的逻辑推理能力,以及可靠的任务执行能力。本接口支持流式或非流式调用,当使用流式调用时为 SSE 协议。\n\n 1. 本接口暂不支持返回图片内容。\n 2. 默认该接口下单账号限制并发数为 5 路,如您有提高并发限制的需求请 [购买](https://buy.cloud.tencent.com/hunyuan) 。\n 3. 请使用 SDK 调用本接口,每种开发语言的 SDK Git 仓库 examples/hunyuan/v20230901/ 目录下有提供示例供参考。SDK 链接在文档下方 “**开发者资源 - SDK**” 部分提供。\n 4. 我们推荐您使用 API Explorer,方便快速地在线调试接口和下载各语言的示例代码,[点击打开](https://console.cloud.tencent.com/api/explorer?Product=hunyuan&Version=2023-09-01&Action=ChatCompletions)。",
19
26
  "input": "CreateThreadRequest",
@@ -307,6 +314,15 @@
307
314
  "name": "Seed",
308
315
  "required": false,
309
316
  "type": "int"
317
+ },
318
+ {
319
+ "disabled": false,
320
+ "document": "强制搜索增强开关。\n说明:\n1. 未传值时默认关闭。\n2. 开启后,将强制走AI搜索,当AI搜索结果为空时,由大模型回复兜底话术。",
321
+ "example": "false",
322
+ "member": "bool",
323
+ "name": "ForceSearchEnhancement",
324
+ "required": false,
325
+ "type": "bool"
310
326
  }
311
327
  ],
312
328
  "type": "object"
@@ -413,6 +429,147 @@
413
429
  ],
414
430
  "type": "object"
415
431
  },
432
+ "ChatTranslationsRequest": {
433
+ "document": "ChatTranslations请求参数结构体",
434
+ "members": [
435
+ {
436
+ "disabled": false,
437
+ "document": "模型名称,可选值包括 hunyuan-translation、hunyuan-translation-lite。\n各模型介绍请阅读 [产品概述](https://cloud.tencent.com/document/product/1729/104753) 中的说明。\n\n注意:\n不同的模型计费不同,请根据 [购买指南](https://cloud.tencent.com/document/product/1729/97731) 按需调用。",
438
+ "example": "hunyuan-translation",
439
+ "member": "string",
440
+ "name": "Model",
441
+ "required": true,
442
+ "type": "string"
443
+ },
444
+ {
445
+ "disabled": false,
446
+ "document": "流式调用开关。\n说明:\n1. 未传值时默认为非流式调用(false)。\n2. 流式调用时以 SSE 协议增量返回结果(返回值取 Choices[n].Delta 中的值,需要拼接增量数据才能获得完整结果)。\n3. 非流式调用时:\n调用方式与普通 HTTP 请求无异。\n接口响应耗时较长,**如需更低时延建议设置为 true**。\n只返回一次最终结果(返回值取 Choices[n].Message 中的值)。\n\n注意:\n通过 SDK 调用时,流式和非流式调用需用**不同的方式**获取返回值,具体参考 SDK 中的注释或示例(在各语言 SDK 代码仓库的 examples/hunyuan/v20230901/ 目录中)。",
447
+ "example": "false",
448
+ "member": "bool",
449
+ "name": "Stream",
450
+ "required": false,
451
+ "type": "bool"
452
+ },
453
+ {
454
+ "disabled": false,
455
+ "document": "待翻译的文本",
456
+ "example": "Playing video games leads to lasting improvements in cognitive abilities.",
457
+ "member": "string",
458
+ "name": "Text",
459
+ "required": false,
460
+ "type": "string"
461
+ },
462
+ {
463
+ "disabled": false,
464
+ "document": "源语言。\n支持语言列表: 1. 简体中文:zh,2. 粤语:yue,3. 英语:en,4. 法语:fr,5. 葡萄牙语:pt,6. 西班牙语:es,7. 日语:ja,8. 土耳其语:tr,9. 俄语:ru,10. 阿拉伯语:ar,11. 韩语:ko,12. 泰语:th,13. 意大利语:it,14. 德语:de,15. 越南语:vi,16. 马来语:ms,17. 印尼语:id",
465
+ "example": "en",
466
+ "member": "string",
467
+ "name": "Source",
468
+ "required": false,
469
+ "type": "string"
470
+ },
471
+ {
472
+ "disabled": false,
473
+ "document": "目标语言。\n支持语言列表: 1. 简体中文:zh,2. 粤语:yue,3. 英语:en,4. 法语:fr,5. 葡萄牙语:pt,6. 西班牙语:es,7. 日语:ja,8. 土耳其语:tr,9. 俄语:ru,10. 阿拉伯语:ar,11. 韩语:ko,12. 泰语:th,13. 意大利语:it,14. 德语:de,15. 越南语:vi,16. 马来语:ms,17. 印尼语:id",
474
+ "example": "zh",
475
+ "member": "string",
476
+ "name": "Target",
477
+ "required": false,
478
+ "type": "string"
479
+ },
480
+ {
481
+ "disabled": false,
482
+ "document": "待翻译文本所属领域,例如游戏剧情等",
483
+ "example": "游戏剧情",
484
+ "member": "string",
485
+ "name": "Field",
486
+ "required": false,
487
+ "type": "string"
488
+ },
489
+ {
490
+ "disabled": false,
491
+ "document": "参考示例,最多10个",
492
+ "example": "无",
493
+ "member": "Reference",
494
+ "name": "References",
495
+ "required": false,
496
+ "type": "list"
497
+ }
498
+ ],
499
+ "type": "object"
500
+ },
501
+ "ChatTranslationsResponse": {
502
+ "document": "ChatTranslations返回参数结构体",
503
+ "members": [
504
+ {
505
+ "disabled": false,
506
+ "document": "本次请求的 RequestId。",
507
+ "example": "9c772634-8824-43e8-bc24-8bc4c19b9151",
508
+ "member": "string",
509
+ "name": "Id",
510
+ "output_required": false,
511
+ "type": "string",
512
+ "value_allowed_null": false
513
+ },
514
+ {
515
+ "disabled": false,
516
+ "document": "免责声明。",
517
+ "example": "以上内容为AI生成,不代表开发者立场,请勿删除或修改本标记",
518
+ "member": "string",
519
+ "name": "Note",
520
+ "output_required": false,
521
+ "type": "string",
522
+ "value_allowed_null": false
523
+ },
524
+ {
525
+ "disabled": false,
526
+ "document": "Unix 时间戳,单位为秒。",
527
+ "example": "1705634032",
528
+ "member": "int64",
529
+ "name": "Created",
530
+ "output_required": false,
531
+ "type": "int",
532
+ "value_allowed_null": false
533
+ },
534
+ {
535
+ "disabled": false,
536
+ "document": "Token 统计信息。\n按照总 Token 数量计费。",
537
+ "example": "无",
538
+ "member": "Usage",
539
+ "name": "Usage",
540
+ "output_required": false,
541
+ "type": "object",
542
+ "value_allowed_null": false
543
+ },
544
+ {
545
+ "disabled": false,
546
+ "document": "回复内容。",
547
+ "example": "无",
548
+ "member": "TranslationChoice",
549
+ "name": "Choices",
550
+ "output_required": false,
551
+ "type": "list",
552
+ "value_allowed_null": false
553
+ },
554
+ {
555
+ "disabled": false,
556
+ "document": "错误信息。\n如果流式返回中服务处理异常,返回该错误信息。",
557
+ "example": "无",
558
+ "member": "ErrorMsg",
559
+ "name": "ErrorMsg",
560
+ "output_required": false,
561
+ "type": "object",
562
+ "value_allowed_null": false
563
+ },
564
+ {
565
+ "document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。本接口为流式响应接口,当请求成功时,RequestId 会被放在 HTTP 响应的 Header \"X-TC-RequestId\" 中。",
566
+ "member": "string",
567
+ "name": "RequestId",
568
+ "type": "string"
569
+ }
570
+ ],
571
+ "type": "object"
572
+ },
416
573
  "Choice": {
417
574
  "document": "返回的回复, 支持多个",
418
575
  "members": [
@@ -1933,6 +2090,39 @@
1933
2090
  ],
1934
2091
  "type": "object"
1935
2092
  },
2093
+ "Reference": {
2094
+ "document": "翻译对话参考示例",
2095
+ "members": [
2096
+ {
2097
+ "disabled": false,
2098
+ "document": "翻译文本类型,枚举\"sentence\"表示句子, \"term\"表示术语",
2099
+ "example": "sentence",
2100
+ "member": "string",
2101
+ "name": "Type",
2102
+ "required": false,
2103
+ "type": "string"
2104
+ },
2105
+ {
2106
+ "disabled": false,
2107
+ "document": "原文",
2108
+ "example": "Computer games are a perfect recipe for strengthening our cognitive skills",
2109
+ "member": "string",
2110
+ "name": "Text",
2111
+ "required": false,
2112
+ "type": "string"
2113
+ },
2114
+ {
2115
+ "disabled": false,
2116
+ "document": "译文",
2117
+ "example": "电脑游戏是增强我们认知能力的完美秘诀",
2118
+ "member": "string",
2119
+ "name": "Translation",
2120
+ "required": false,
2121
+ "type": "string"
2122
+ }
2123
+ ],
2124
+ "usage": "in"
2125
+ },
1936
2126
  "RelevantEntity": {
1937
2127
  "document": "相关组织及人物",
1938
2128
  "members": [
@@ -2471,6 +2661,15 @@
2471
2661
  "required": false,
2472
2662
  "type": "int"
2473
2663
  },
2664
+ {
2665
+ "disabled": false,
2666
+ "document": "超分选项,默认不做超分,可选开启。\n x2:2倍超分\n x4:4倍超分",
2667
+ "example": "x2",
2668
+ "member": "string",
2669
+ "name": "Clarity",
2670
+ "required": false,
2671
+ "type": "string"
2672
+ },
2474
2673
  {
2475
2674
  "disabled": false,
2476
2675
  "document": "prompt 扩写开关。1为开启,0为关闭,不传默认开启。\n开启扩写后,将自动扩写原始输入的 prompt 并使用扩写后的 prompt 生成图片,返回生成图片结果时将一并返回扩写后的 prompt 文本。\n如果关闭扩写,将直接使用原始输入的 prompt 生成图片。\n建议开启,在多数场景下可提升生成图片效果、丰富生成图片细节。",
@@ -3024,6 +3223,104 @@
3024
3223
  ],
3025
3224
  "usage": "in"
3026
3225
  },
3226
+ "TranslationChoice": {
3227
+ "document": "翻译接口返回的回复,支持多个",
3228
+ "members": [
3229
+ {
3230
+ "disabled": false,
3231
+ "document": "结束标志位,可能为 stop、 sensitive。\nstop 表示输出正常结束。\nsensitive 只在开启流式输出审核时会出现,表示安全审核未通过。",
3232
+ "example": "stop",
3233
+ "member": "string",
3234
+ "name": "FinishReason",
3235
+ "output_required": false,
3236
+ "type": "string",
3237
+ "value_allowed_null": false
3238
+ },
3239
+ {
3240
+ "disabled": false,
3241
+ "document": "索引值,流式调用时使用该字段。",
3242
+ "example": "0",
3243
+ "member": "int64",
3244
+ "name": "Index",
3245
+ "output_required": false,
3246
+ "type": "int",
3247
+ "value_allowed_null": false
3248
+ },
3249
+ {
3250
+ "disabled": false,
3251
+ "document": "增量返回值,流式调用时使用该字段。",
3252
+ "example": "无",
3253
+ "member": "TranslationDelta",
3254
+ "name": "Delta",
3255
+ "output_required": false,
3256
+ "type": "object",
3257
+ "value_allowed_null": false
3258
+ },
3259
+ {
3260
+ "disabled": false,
3261
+ "document": "返回值,非流式调用时使用该字段。",
3262
+ "example": "无",
3263
+ "member": "TranslationMessage",
3264
+ "name": "Message",
3265
+ "output_required": false,
3266
+ "type": "object",
3267
+ "value_allowed_null": false
3268
+ }
3269
+ ],
3270
+ "usage": "out"
3271
+ },
3272
+ "TranslationDelta": {
3273
+ "document": "翻译接口返回的内容(流式返回)",
3274
+ "members": [
3275
+ {
3276
+ "disabled": false,
3277
+ "document": "角色名称。",
3278
+ "example": "assistant",
3279
+ "member": "string",
3280
+ "name": "Role",
3281
+ "output_required": false,
3282
+ "type": "string",
3283
+ "value_allowed_null": false
3284
+ },
3285
+ {
3286
+ "disabled": false,
3287
+ "document": "内容详情。",
3288
+ "example": "你好!请问有什么我可以帮助你的吗?",
3289
+ "member": "string",
3290
+ "name": "Content",
3291
+ "output_required": false,
3292
+ "type": "string",
3293
+ "value_allowed_null": false
3294
+ }
3295
+ ],
3296
+ "usage": "out"
3297
+ },
3298
+ "TranslationMessage": {
3299
+ "document": "翻译接口会话内容",
3300
+ "members": [
3301
+ {
3302
+ "disabled": false,
3303
+ "document": "角色,可选值包括 system、user、assistant、 tool。",
3304
+ "example": "user",
3305
+ "member": "string",
3306
+ "name": "Role",
3307
+ "output_required": false,
3308
+ "type": "string",
3309
+ "value_allowed_null": false
3310
+ },
3311
+ {
3312
+ "disabled": false,
3313
+ "document": "文本内容",
3314
+ "example": "你好!",
3315
+ "member": "string",
3316
+ "name": "Content",
3317
+ "output_required": false,
3318
+ "type": "string",
3319
+ "value_allowed_null": false
3320
+ }
3321
+ ],
3322
+ "usage": "out"
3323
+ },
3027
3324
  "Usage": {
3028
3325
  "document": "Token 数量",
3029
3326
  "members": [
@@ -70,6 +70,14 @@
70
70
  "title": "深度研究示例"
71
71
  }
72
72
  ],
73
+ "ChatTranslations": [
74
+ {
75
+ "document": "非流式调用翻译接口",
76
+ "input": "POST / HTTP/1.1\nHost: hunyuan.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ChatTranslations\n<公共请求参数>\n\n{\n \"Model\": \"hunyuan-translation\",\n \"Stream\": false,\n \"Text\": \"Playing video games leads to lasting improvements in cognitive abilities.\",\n \"Source\": \"en\",\n \"Target\": \"zh\",\n \"Field\": \"游戏剧情\",\n \"References\": [\n {\n \"Type\": \"sentence\",\n \"Text\": \"Computer games are a perfect recipe for strengthening our cognitive skills\",\n \"Translation\": \"电脑游戏是增强我们认知能力的完美秘诀\"\n }\n ]\n}",
77
+ "output": "{\n \"Response\": {\n \"RequestId\": \"e638f0a0-a2a5-4c43-a1c6-798a7cbfbb18\",\n \"Id\": \"e638f0a0-a2a5-4c43-a1c6-798a7cbfbb18\",\n \"Created\": 1733133524,\n \"Choices\": [\n {\n \"Index\": 0,\n \"Message\": {\n \"Role\": \"assistant\",\n \"Content\": \"玩视频游戏会导致认知能力持久的提升。\"\n },\n \"FinishReason\": \"stop\"\n }\n ],\n \"Usage\": {\n \"PromptTokens\": 96,\n \"CompletionTokens\": 10,\n \"TotalTokens\": 106\n },\n \"Note\": \"以上内容为AI生成,不代表开发者立场,请勿删除或修改本标记\"\n }\n}",
78
+ "title": "非流式调用翻译接口"
79
+ }
80
+ ],
73
81
  "CreateThread": [
74
82
  {
75
83
  "document": "创建会话",
@@ -240,7 +240,7 @@
240
240
  },
241
241
  {
242
242
  "disabled": false,
243
- "document": "该字段表示待检测图片文件内容的Base64编码,由于云API对请求包体有大小限制,图片的**Base64编码内容大小不得超过10MB**。<br/>备注:**该字段与FileUrl必须选择输入其中一个**。<br />",
243
+ "document": "该字段表示待检测图片文件内容的Base64编码,由于云API对请求包体有大小限制,图片的**Base64编码内容大小不得超过10MB**。<br/>备注:**该字段与FileUrl必须选择输入其中一个**。",
244
244
  "example": "aHR0cDovL2lubmVycG9ybnNjcmVlbnNob3QtMTI1MjgxMzg1MC5jb3MuYXAtZ3Vh",
245
245
  "member": "string",
246
246
  "name": "FileContent",
@@ -249,7 +249,7 @@
249
249
  },
250
250
  {
251
251
  "disabled": false,
252
- "document": "该字段表示待检测图片文件的访问链接,URL源图**大小不超过30MB**。<br />备注:该字段与FileContent必须选择输入其中一个。 <br />",
252
+ "document": "该字段表示待检测图片文件的访问链接,URL源图**大小不超过30MB**。<br />备注:该字段与FileContent必须选择输入其中一个。",
253
253
  "example": "https://cmstest-123.cos.ap-guangzhou.myqcloud.com/image.jpg",
254
254
  "member": "string",
255
255
  "name": "FileUrl",
@@ -433,7 +433,7 @@ def doCreateCloudStorageAIService(args, parsed_globals):
433
433
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
434
434
 
435
435
 
436
- def doGetProjectList(args, parsed_globals):
436
+ def doInvokeCloudStorageAIServiceTask(args, parsed_globals):
437
437
  g_param = parse_global_arg(parsed_globals)
438
438
 
439
439
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -462,11 +462,11 @@ def doGetProjectList(args, parsed_globals):
462
462
  client = mod.IotexplorerClient(cred, g_param[OptionsDefine.Region], profile)
463
463
  client._sdkVersion += ("_CLI_" + __version__)
464
464
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
465
- model = models.GetProjectListRequest()
465
+ model = models.InvokeCloudStorageAIServiceTaskRequest()
466
466
  model.from_json_string(json.dumps(args))
467
467
  start_time = time.time()
468
468
  while True:
469
- rsp = client.GetProjectList(model)
469
+ rsp = client.InvokeCloudStorageAIServiceTask(model)
470
470
  result = rsp.to_json_string()
471
471
  try:
472
472
  json_obj = json.loads(result)
@@ -4333,6 +4333,58 @@ def doUploadFirmware(args, parsed_globals):
4333
4333
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
4334
4334
 
4335
4335
 
4336
+ def doGetProjectList(args, parsed_globals):
4337
+ g_param = parse_global_arg(parsed_globals)
4338
+
4339
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
4340
+ cred = credential.CVMRoleCredential()
4341
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
4342
+ cred = credential.STSAssumeRoleCredential(
4343
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
4344
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
4345
+ )
4346
+ 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):
4347
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
4348
+ else:
4349
+ cred = credential.Credential(
4350
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
4351
+ )
4352
+ http_profile = HttpProfile(
4353
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
4354
+ reqMethod="POST",
4355
+ endpoint=g_param[OptionsDefine.Endpoint],
4356
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
4357
+ )
4358
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
4359
+ if g_param[OptionsDefine.Language]:
4360
+ profile.language = g_param[OptionsDefine.Language]
4361
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
4362
+ client = mod.IotexplorerClient(cred, g_param[OptionsDefine.Region], profile)
4363
+ client._sdkVersion += ("_CLI_" + __version__)
4364
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
4365
+ model = models.GetProjectListRequest()
4366
+ model.from_json_string(json.dumps(args))
4367
+ start_time = time.time()
4368
+ while True:
4369
+ rsp = client.GetProjectList(model)
4370
+ result = rsp.to_json_string()
4371
+ try:
4372
+ json_obj = json.loads(result)
4373
+ except TypeError as e:
4374
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
4375
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
4376
+ break
4377
+ cur_time = time.time()
4378
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
4379
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
4380
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
4381
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
4382
+ else:
4383
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
4384
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
4385
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
4386
+
4387
+
4336
4388
  def doGetTWeCallPkgList(args, parsed_globals):
4337
4389
  g_param = parse_global_arg(parsed_globals)
4338
4390
 
@@ -7576,7 +7628,7 @@ ACTION_MAP = {
7576
7628
  "DescribeDevice": doDescribeDevice,
7577
7629
  "DescribeTopicPolicy": doDescribeTopicPolicy,
7578
7630
  "CreateCloudStorageAIService": doCreateCloudStorageAIService,
7579
- "GetProjectList": doGetProjectList,
7631
+ "InvokeCloudStorageAIServiceTask": doInvokeCloudStorageAIServiceTask,
7580
7632
  "CallDeviceActionSync": doCallDeviceActionSync,
7581
7633
  "DescribeGatewayBindDevices": doDescribeGatewayBindDevices,
7582
7634
  "DeleteStudioProduct": doDeleteStudioProduct,
@@ -7651,6 +7703,7 @@ ACTION_MAP = {
7651
7703
  "PublishRRPCMessage": doPublishRRPCMessage,
7652
7704
  "DescribeCloudStorage": doDescribeCloudStorage,
7653
7705
  "UploadFirmware": doUploadFirmware,
7706
+ "GetProjectList": doGetProjectList,
7654
7707
  "GetTWeCallPkgList": doGetTWeCallPkgList,
7655
7708
  "UpdateDevicesEnableState": doUpdateDevicesEnableState,
7656
7709
  "ModifyProject": doModifyProject,
@@ -756,6 +756,13 @@
756
756
  "output": "InheritCloudStorageUserResponse",
757
757
  "status": "online"
758
758
  },
759
+ "InvokeCloudStorageAIServiceTask": {
760
+ "document": "同步执行设备云存 AI 分析任务",
761
+ "input": "InvokeCloudStorageAIServiceTaskRequest",
762
+ "name": "同步执行设备云存AI分析任务",
763
+ "output": "InvokeCloudStorageAIServiceTaskResponse",
764
+ "status": "online"
765
+ },
759
766
  "InvokeExternalSourceAIServiceTask": {
760
767
  "document": "创建外部视频 AI 分析任务",
761
768
  "input": "InvokeExternalSourceAIServiceTaskRequest",
@@ -10128,6 +10135,144 @@
10128
10135
  ],
10129
10136
  "usage": "out"
10130
10137
  },
10138
+ "InvokeCloudStorageAIServiceTaskRequest": {
10139
+ "document": "InvokeCloudStorageAIServiceTask请求参数结构体",
10140
+ "members": [
10141
+ {
10142
+ "disabled": false,
10143
+ "document": "产品 ID",
10144
+ "example": "TQBDY6RPI9",
10145
+ "member": "string",
10146
+ "name": "ProductId",
10147
+ "required": true,
10148
+ "type": "string"
10149
+ },
10150
+ {
10151
+ "disabled": false,
10152
+ "document": "设备名称",
10153
+ "example": "cs_112114601_2",
10154
+ "member": "string",
10155
+ "name": "DeviceName",
10156
+ "required": true,
10157
+ "type": "string"
10158
+ },
10159
+ {
10160
+ "disabled": false,
10161
+ "document": "云存 AI 服务类型。可选值:\n- `RealtimeObjectDetect`:目标检测\n- `Highlight`:视频浓缩\n- `VideoToText`:视频语义理解",
10162
+ "example": "Highlight",
10163
+ "member": "string",
10164
+ "name": "ServiceType",
10165
+ "required": true,
10166
+ "type": "string"
10167
+ },
10168
+ {
10169
+ "disabled": false,
10170
+ "document": "待分析云存的起始时间",
10171
+ "example": "1704038400",
10172
+ "member": "uint64",
10173
+ "name": "StartTime",
10174
+ "required": true,
10175
+ "type": "int"
10176
+ },
10177
+ {
10178
+ "disabled": false,
10179
+ "document": "待分析云存的结束时间",
10180
+ "example": "1704124800",
10181
+ "member": "uint64",
10182
+ "name": "EndTime",
10183
+ "required": true,
10184
+ "type": "int"
10185
+ },
10186
+ {
10187
+ "disabled": false,
10188
+ "document": "通道 ID",
10189
+ "example": "1",
10190
+ "member": "uint64",
10191
+ "name": "ChannelId",
10192
+ "required": false,
10193
+ "type": "int"
10194
+ },
10195
+ {
10196
+ "disabled": false,
10197
+ "document": "视频分析配置参数",
10198
+ "example": "{\"param1\":\"value1\"}",
10199
+ "member": "string",
10200
+ "name": "Config",
10201
+ "required": false,
10202
+ "type": "string"
10203
+ },
10204
+ {
10205
+ "disabled": false,
10206
+ "document": "视频分析识别区域",
10207
+ "example": "{}",
10208
+ "member": "string",
10209
+ "name": "ROI",
10210
+ "required": false,
10211
+ "type": "string"
10212
+ },
10213
+ {
10214
+ "disabled": false,
10215
+ "document": "分析外部传入的视频 URL 列表,支持 HLS 点播(m3u8)及常见视频格式(mp4 等)",
10216
+ "example": "[\"https://example.com/timeshift.m3u8\"]",
10217
+ "member": "string",
10218
+ "name": "VideoURLs",
10219
+ "required": false,
10220
+ "type": "list"
10221
+ },
10222
+ {
10223
+ "disabled": false,
10224
+ "document": "自定义任务 ID",
10225
+ "example": "event-123",
10226
+ "member": "string",
10227
+ "name": "CustomId",
10228
+ "required": false,
10229
+ "type": "string"
10230
+ }
10231
+ ],
10232
+ "type": "object"
10233
+ },
10234
+ "InvokeCloudStorageAIServiceTaskResponse": {
10235
+ "document": "InvokeCloudStorageAIServiceTask返回参数结构体",
10236
+ "members": [
10237
+ {
10238
+ "disabled": false,
10239
+ "document": "任务是否执行完成",
10240
+ "example": "true",
10241
+ "member": "bool",
10242
+ "name": "Completed",
10243
+ "output_required": true,
10244
+ "type": "bool",
10245
+ "value_allowed_null": false
10246
+ },
10247
+ {
10248
+ "disabled": false,
10249
+ "document": "任务 ID",
10250
+ "example": "fb066d7a-baac-4706-acda-058f56f82759",
10251
+ "member": "string",
10252
+ "name": "TaskId",
10253
+ "output_required": true,
10254
+ "type": "string",
10255
+ "value_allowed_null": false
10256
+ },
10257
+ {
10258
+ "disabled": false,
10259
+ "document": "任务信息",
10260
+ "example": "无",
10261
+ "member": "CloudStorageAIServiceTask",
10262
+ "name": "TaskInfo",
10263
+ "output_required": true,
10264
+ "type": "object",
10265
+ "value_allowed_null": false
10266
+ },
10267
+ {
10268
+ "document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
10269
+ "member": "string",
10270
+ "name": "RequestId",
10271
+ "type": "string"
10272
+ }
10273
+ ],
10274
+ "type": "object"
10275
+ },
10131
10276
  "InvokeExternalSourceAIServiceTaskRequest": {
10132
10277
  "document": "InvokeExternalSourceAIServiceTask请求参数结构体",
10133
10278
  "members": [
@@ -942,6 +942,20 @@
942
942
  "title": "继承云存用户"
943
943
  }
944
944
  ],
945
+ "InvokeCloudStorageAIServiceTask": [
946
+ {
947
+ "document": "",
948
+ "input": "POST / HTTP/1.1\nHost: iotexplorer.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: InvokeCloudStorageAIServiceTask\n<公共请求参数>\n\n{\n \"ProductId\": \"TSLFHRWDSD\",\n \"DeviceName\": \"dev002\",\n \"ServiceType\": \"VideoToText\",\n \"StartTime\": 1732780832,\n \"EndTime\": 1732780835,\n \"VideoURLs\": [\n \"https://example.com/video.mp4\"\n ]\n}",
949
+ "output": "{\n \"Response\": {\n \"Completed\": true,\n \"RequestId\": \"5acdfd09-5634-4ae3-8ebd-1d4c33bb7dd7\",\n \"TaskId\": \"019371d2-da8b-7171-a6de-fc077173b205\",\n \"TaskInfo\": {\n \"ChannelId\": 0,\n \"CreateTime\": 1732781464,\n \"DeviceName\": \"dev002\",\n \"EndTime\": 1732780835,\n \"Files\": [],\n \"ProductId\": \"TSLFHRWDSD\",\n \"Result\": \"{\\\"DetectedClassifications\\\": [\\\"person\\\"], \\\"Summary\\\": \\\"白衣人走在湿漉漉的路面上\\\"}\",\n \"ServiceType\": \"VideoToText\",\n \"StartTime\": 1732780832,\n \"Status\": 3,\n \"TaskId\": \"019371d2-da8b-7171-a6de-fc077173b205\",\n \"UpdateTime\": 1732781466\n }\n }\n}",
950
+ "title": "创建设备云存 AI 分析任务(执行成功)"
951
+ },
952
+ {
953
+ "document": "",
954
+ "input": "POST / HTTP/1.1\nHost: iotexplorer.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: InvokeCloudStorageAIServiceTask\n<公共请求参数>\n\n{\n \"ProductId\": \"TSLFHRWDSD\",\n \"DeviceName\": \"dev002\",\n \"ServiceType\": \"VideoToText\",\n \"StartTime\": 1732780832,\n \"EndTime\": 1732780835,\n \"VideoURLs\": [\n \"https://example.com/video.mp4\"\n ]\n}",
955
+ "output": "{\n \"Response\": {\n \"Completed\": false,\n \"RequestId\": \"5acdfd09-5634-4ae3-8ebd-1d4c33bb7dd7\",\n \"TaskId\": \"019371d2-da8b-7171-a6de-fc077173b205\",\n \"TaskInfo\": {\n \"ChannelId\": 0,\n \"CreateTime\": 1732781464,\n \"DeviceName\": \"dev002\",\n \"EndTime\": 1732780835,\n \"Files\": [],\n \"ProductId\": \"TSLFHRWDSD\",\n \"Result\": \"\",\n \"ServiceType\": \"VideoToText\",\n \"StartTime\": 1732780832,\n \"Status\": 4,\n \"TaskId\": \"019371d2-da8b-7171-a6de-fc077173b205\",\n \"UpdateTime\": 1732781464\n }\n }\n}",
956
+ "title": "创建设备云存 AI 分析任务(超时未完成,转异步)"
957
+ }
958
+ ],
945
959
  "InvokeExternalSourceAIServiceTask": [
946
960
  {
947
961
  "document": "",