tccli 3.0.1389.1__py2.py3-none-any.whl → 3.0.1391.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.
Files changed (68) hide show
  1. tccli/__init__.py +1 -1
  2. tccli/services/__init__.py +3 -0
  3. tccli/services/ai3d/ai3d_client.py +216 -4
  4. tccli/services/ai3d/v20250513/api.json +326 -0
  5. tccli/services/ai3d/v20250513/examples.json +32 -0
  6. tccli/services/asr/v20190614/api.json +1 -1
  7. tccli/services/batch/v20170312/api.json +3 -3
  8. tccli/services/batch/v20170312/examples.json +3 -3
  9. tccli/services/cam/v20190116/api.json +11 -1
  10. tccli/services/ccc/v20200210/api.json +10 -10
  11. tccli/services/cdb/v20170320/api.json +40 -2
  12. tccli/services/cdz/v20221123/api.json +1 -1
  13. tccli/services/ckafka/v20190819/api.json +31 -23
  14. tccli/services/ckafka/v20190819/examples.json +1 -1
  15. tccli/services/clb/v20180317/api.json +20 -1
  16. tccli/services/cloudapp/cloudapp_client.py +53 -0
  17. tccli/services/cloudapp/v20220530/api.json +68 -0
  18. tccli/services/cloudapp/v20220530/examples.json +14 -0
  19. tccli/services/cls/cls_client.py +167 -8
  20. tccli/services/cls/v20201016/api.json +292 -2
  21. tccli/services/cls/v20201016/examples.json +24 -0
  22. tccli/services/dts/v20211206/api.json +15 -15
  23. tccli/services/dts/v20211206/examples.json +1 -1
  24. tccli/services/es/v20250101/api.json +99 -5
  25. tccli/services/ess/v20201111/api.json +145 -4
  26. tccli/services/ess/v20201111/examples.json +1 -1
  27. tccli/services/gme/v20180711/api.json +7 -7
  28. tccli/services/gs/gs_client.py +57 -4
  29. tccli/services/gs/v20191118/api.json +79 -0
  30. tccli/services/gs/v20191118/examples.json +8 -0
  31. tccli/services/gwlb/v20240906/api.json +117 -0
  32. tccli/services/igtm/v20231024/api.json +3 -3
  33. tccli/services/iotexplorer/v20190423/api.json +19 -1
  34. tccli/services/iotexplorer/v20190423/examples.json +1 -1
  35. tccli/services/lighthouse/lighthouse_client.py +53 -0
  36. tccli/services/lighthouse/v20200324/api.json +228 -35
  37. tccli/services/lighthouse/v20200324/examples.json +8 -0
  38. tccli/services/live/v20180801/api.json +2 -2
  39. tccli/services/lkeap/v20240522/api.json +25 -1
  40. tccli/services/lowcode/lowcode_client.py +163 -4
  41. tccli/services/lowcode/v20210108/api.json +1373 -96
  42. tccli/services/lowcode/v20210108/examples.json +24 -0
  43. tccli/services/mps/v20190612/api.json +804 -47
  44. tccli/services/ocr/v20181119/api.json +4 -4
  45. tccli/services/sqlserver/v20180328/api.json +4 -4
  46. tccli/services/tcbr/v20220217/api.json +51 -0
  47. tccli/services/tdai/__init__.py +4 -0
  48. tccli/services/tdai/tdai_client.py +1108 -0
  49. tccli/services/tdai/v20250717/api.json +1930 -0
  50. tccli/services/tdai/v20250717/examples.json +149 -0
  51. tccli/services/teo/teo_client.py +53 -0
  52. tccli/services/teo/v20220901/api.json +111 -3
  53. tccli/services/teo/v20220901/examples.json +8 -0
  54. tccli/services/tmt/v20180321/api.json +3 -3
  55. tccli/services/trtc/v20190722/api.json +1 -1
  56. tccli/services/tts/v20190823/api.json +11 -11
  57. tccli/services/vpc/v20170312/api.json +37 -7
  58. tccli/services/vpc/v20170312/examples.json +7 -7
  59. tccli/services/vtc/v20240223/api.json +10 -8
  60. tccli/services/vtc/v20240223/examples.json +1 -1
  61. tccli/services/waf/v20180125/api.json +283 -6
  62. tccli/services/waf/v20180125/examples.json +24 -0
  63. tccli/services/waf/waf_client.py +159 -0
  64. {tccli-3.0.1389.1.dist-info → tccli-3.0.1391.1.dist-info}/METADATA +2 -2
  65. {tccli-3.0.1389.1.dist-info → tccli-3.0.1391.1.dist-info}/RECORD +68 -64
  66. {tccli-3.0.1389.1.dist-info → tccli-3.0.1391.1.dist-info}/WHEEL +0 -0
  67. {tccli-3.0.1389.1.dist-info → tccli-3.0.1391.1.dist-info}/entry_points.txt +0 -0
  68. {tccli-3.0.1389.1.dist-info → tccli-3.0.1391.1.dist-info}/license_files/LICENSE +0 -0
@@ -77,7 +77,7 @@
77
77
  {
78
78
  "disabled": false,
79
79
  "document": "会话内容,按对话时间从旧到新在数组中排列,长度受模型窗口大小限制。",
80
- "example": "[{}]",
80
+ "example": "",
81
81
  "member": "Message",
82
82
  "name": "Messages",
83
83
  "required": true,
@@ -95,7 +95,7 @@
95
95
  {
96
96
  "disabled": false,
97
97
  "document": "是否以流式接口的形式返回数据,默认true。",
98
- "example": "是否以流式接口的形式返回数据,默认false",
98
+ "example": "true",
99
99
  "member": "bool",
100
100
  "name": "Stream",
101
101
  "required": false,
@@ -131,11 +131,38 @@
131
131
  {
132
132
  "disabled": false,
133
133
  "document": "当 OnlineSearch 为 true 时,指定的搜索引擎,默认为 bing。",
134
- "example": "{\"Engine\": \"bing\"}",
134
+ "example": "",
135
135
  "member": "OnlineSearchOptions",
136
136
  "name": "OnlineSearchOptions",
137
137
  "required": false,
138
138
  "type": "object"
139
+ },
140
+ {
141
+ "disabled": false,
142
+ "document": "可调用的工具列表,当前支持模型:hunyuan-turbo, deepseek-v3。",
143
+ "example": "无",
144
+ "member": "Tool",
145
+ "name": "Tools",
146
+ "required": false,
147
+ "type": "list"
148
+ },
149
+ {
150
+ "disabled": false,
151
+ "document": "工具使用选项,可选值包括 none、auto、custom。说明:1. 仅对 hunyuan-turbo、deepseek-v3 模型生效。2. none:不调用工具;auto:模型自行选择生成回复或调用工具;custom:强制模型调用指定的工具。3. 未设置时,默认值为auto",
152
+ "example": "auto",
153
+ "member": "string",
154
+ "name": "ToolChoice",
155
+ "required": false,
156
+ "type": "string"
157
+ },
158
+ {
159
+ "disabled": false,
160
+ "document": "强制模型调用指定的工具,当参数ToolChoice为custom时,此参数为必填",
161
+ "example": "无",
162
+ "member": "Tool",
163
+ "name": "CustomTool",
164
+ "required": false,
165
+ "type": "object"
139
166
  }
140
167
  ],
141
168
  "type": "object"
@@ -166,7 +193,7 @@
166
193
  {
167
194
  "disabled": false,
168
195
  "document": "token使用量",
169
- "example": "{\"PromptTokens\":324,\"CompletionTokens\":309,\"TotalTokens\":633}",
196
+ "example": "",
170
197
  "member": "TokenUsage",
171
198
  "name": "Usage",
172
199
  "output_required": false,
@@ -176,7 +203,7 @@
176
203
  {
177
204
  "disabled": false,
178
205
  "document": "联网搜索结果。\n注意:此字段可能返回 null,表示取不到有效值。",
179
- "example": "[{}]",
206
+ "example": "",
180
207
  "member": "WebContent",
181
208
  "name": "OnlineSearchContent",
182
209
  "output_required": false,
@@ -1250,6 +1277,34 @@
1250
1277
  ],
1251
1278
  "usage": "both"
1252
1279
  },
1280
+ "Tool": {
1281
+ "document": "用户指定模型使用的工具",
1282
+ "members": [
1283
+ {
1284
+ "disabled": false,
1285
+ "document": "工具类型,当前只支持function",
1286
+ "example": "function",
1287
+ "member": "string",
1288
+ "name": "Type",
1289
+ "output_required": false,
1290
+ "required": true,
1291
+ "type": "string",
1292
+ "value_allowed_null": false
1293
+ },
1294
+ {
1295
+ "disabled": false,
1296
+ "document": "具体要调用的function",
1297
+ "example": "无",
1298
+ "member": "ToolFunction",
1299
+ "name": "Function",
1300
+ "output_required": false,
1301
+ "required": true,
1302
+ "type": "object",
1303
+ "value_allowed_null": false
1304
+ }
1305
+ ],
1306
+ "usage": "both"
1307
+ },
1253
1308
  "ToolCall": {
1254
1309
  "document": "模型生成的工具调用",
1255
1310
  "members": [
@@ -1328,6 +1383,45 @@
1328
1383
  ],
1329
1384
  "usage": "both"
1330
1385
  },
1386
+ "ToolFunction": {
1387
+ "document": "function定义",
1388
+ "members": [
1389
+ {
1390
+ "disabled": false,
1391
+ "document": "function名称,只能包含a-z,A-Z,0-9,_或-",
1392
+ "example": "get_current_weather",
1393
+ "member": "string",
1394
+ "name": "Name",
1395
+ "output_required": false,
1396
+ "required": true,
1397
+ "type": "string",
1398
+ "value_allowed_null": false
1399
+ },
1400
+ {
1401
+ "disabled": false,
1402
+ "document": "function参数,一般为json字符串",
1403
+ "example": "{\"type\":\"object\",\"properties\":{\"location\":{\"type\":\"string\",\"description\":\"The city and state, e.g. San Francisco, CA\"}},\"required\":[\"location\",\"unit\"]}",
1404
+ "member": "string",
1405
+ "name": "Parameters",
1406
+ "output_required": false,
1407
+ "required": true,
1408
+ "type": "string",
1409
+ "value_allowed_null": false
1410
+ },
1411
+ {
1412
+ "disabled": false,
1413
+ "document": "function的简单描述",
1414
+ "example": "获取当前地点的天气",
1415
+ "member": "string",
1416
+ "name": "Description",
1417
+ "output_required": false,
1418
+ "required": false,
1419
+ "type": "string",
1420
+ "value_allowed_null": false
1421
+ }
1422
+ ],
1423
+ "usage": "both"
1424
+ },
1331
1425
  "Usage": {
1332
1426
  "document": "token消耗总数",
1333
1427
  "members": [
@@ -1144,6 +1144,15 @@
1144
1144
  "name": "SignEndpoints",
1145
1145
  "required": false,
1146
1146
  "type": "list"
1147
+ },
1148
+ {
1149
+ "disabled": false,
1150
+ "document": "快速注册相关信息\n",
1151
+ "example": "无",
1152
+ "member": "RegisterInfo",
1153
+ "name": "RegisterInfo",
1154
+ "required": false,
1155
+ "type": "object"
1147
1156
  }
1148
1157
  ],
1149
1158
  "usage": "in"
@@ -3628,7 +3637,7 @@
3628
3637
  },
3629
3638
  {
3630
3639
  "disabled": false,
3631
- "document": "是否为预览模式,取值如下:\n<ul><li> **false**:非预览模式(默认),会产生合同流程并返回合同流程编号FlowId。</li> \n<li> **true**:预览模式,不产生合同流程,不返回合同流程编号FlowId,而是返回预览链接PreviewUrl,有效期为300秒,用于查看真实发起后合同的样子。 <font color=\"red\">注意: 以预览模式创建的合同仅供查看,因此参与方无法进行签署操作</font> </li></ul>\n注: `当使用的模板中存在动态表格控件时,预览结果中没有动态表格的填写内容,动态表格合成完后会触发文档合成完成的回调通知`",
3640
+ "document": "是否为预览模式,取值如下:<ul><li> **false**:非预览模式(默认),会产生合同流程并返回合同流程编号FlowId。</li> <li> **true**:预览模式,不产生合同流程,不返回合同流程编号FlowId,而是返回预览链接PreviewUrl,有效期为300秒,用于查看真实发起后合同的样子。 <font color=\"red\">注意: 1.以预览模式创建的合同仅供查看,因此参与方无法进行签署操作;;2.以预览模式调用该接口返回的FlowId为临时Flowld,无法用于发起和拉取信息。</font> </li></ul>注: `当使用的模板中存在动态表格控件时,预览结果中没有动态表格的填写内容,动态表格合成完后会触发文档合成完成的回调通知`",
3632
3641
  "example": "false",
3633
3642
  "member": "bool",
3634
3643
  "name": "NeedPreview",
@@ -10880,8 +10889,8 @@
10880
10889
  "members": [
10881
10890
  {
10882
10891
  "disabled": false,
10883
- "document": "信息提取任务结果",
10884
- "example": "[{\"Description\":\"PDF文件中的机构名称\",\"Name\":\"机构名称\",\"Type\":\"TEXT\",\"Values\":[\"广州xxxx有限公司\"]},{\"Description\":\"\",\"Name\":\"社会信用代码\",\"Type\":\"TEXT\",\"Values\":[\"91440xxxxT\"]}]",
10892
+ "document": "合同信息提取字段信息",
10893
+ "example": "",
10885
10894
  "member": "ExtractionField",
10886
10895
  "name": "Fields",
10887
10896
  "output_required": false,
@@ -10908,6 +10917,16 @@
10908
10917
  "type": "string",
10909
10918
  "value_allowed_null": false
10910
10919
  },
10920
+ {
10921
+ "disabled": false,
10922
+ "document": "合同信息提取结果信息",
10923
+ "example": "无",
10924
+ "member": "ExtractionTaskResult",
10925
+ "name": "Results",
10926
+ "output_required": false,
10927
+ "type": "list",
10928
+ "value_allowed_null": false
10929
+ },
10911
10930
  {
10912
10931
  "document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
10913
10932
  "member": "string",
@@ -12352,6 +12371,117 @@
12352
12371
  ],
12353
12372
  "usage": "both"
12354
12373
  },
12374
+ "ExtractionFieldResult": {
12375
+ "document": "合同信息提取字段值信息。",
12376
+ "members": [
12377
+ {
12378
+ "disabled": false,
12379
+ "document": "字段ID",
12380
+ "example": "yDxxxxx",
12381
+ "member": "string",
12382
+ "name": "Id",
12383
+ "output_required": false,
12384
+ "required": false,
12385
+ "type": "string",
12386
+ "value_allowed_null": false
12387
+ },
12388
+ {
12389
+ "disabled": false,
12390
+ "document": "用于合同智能提取的字段名称。",
12391
+ "example": "甲方",
12392
+ "member": "string",
12393
+ "name": "Name",
12394
+ "output_required": false,
12395
+ "required": false,
12396
+ "type": "string",
12397
+ "value_allowed_null": false
12398
+ },
12399
+ {
12400
+ "disabled": false,
12401
+ "document": "合同智能提取的字段类型,目前仅支持TEXT、DATE、NUMBER、OPTION类型。\n\n类型支持如下: 1、TEXT(文本) 2、DATE(日期) 3、NUMBER(数字) 4、OPTION(选项值)",
12402
+ "example": "TEXT",
12403
+ "member": "string",
12404
+ "name": "Type",
12405
+ "output_required": false,
12406
+ "required": false,
12407
+ "type": "string",
12408
+ "value_allowed_null": false
12409
+ },
12410
+ {
12411
+ "disabled": false,
12412
+ "document": "提取出合同中的字段信息。",
12413
+ "example": "[\"张三\"]",
12414
+ "member": "string",
12415
+ "name": "Values",
12416
+ "output_required": false,
12417
+ "required": false,
12418
+ "type": "list",
12419
+ "value_allowed_null": false
12420
+ },
12421
+ {
12422
+ "disabled": false,
12423
+ "document": "是否需要语义提取,默认为false",
12424
+ "example": "false",
12425
+ "member": "bool",
12426
+ "name": "RequiresSemanticExtraction",
12427
+ "output_required": false,
12428
+ "required": false,
12429
+ "type": "bool",
12430
+ "value_allowed_null": false
12431
+ },
12432
+ {
12433
+ "disabled": false,
12434
+ "document": "提取出值在合同中的坐标位置信息",
12435
+ "example": "无",
12436
+ "member": "PositionInfo",
12437
+ "name": "Positions",
12438
+ "output_required": false,
12439
+ "required": false,
12440
+ "type": "list",
12441
+ "value_allowed_null": false
12442
+ }
12443
+ ],
12444
+ "usage": "both"
12445
+ },
12446
+ "ExtractionTaskResult": {
12447
+ "document": "合同信息提取结果",
12448
+ "members": [
12449
+ {
12450
+ "disabled": false,
12451
+ "document": "用于合同信息提取的资源ID。",
12452
+ "example": "yDtIgUU2vxu",
12453
+ "member": "string",
12454
+ "name": "ResourceId",
12455
+ "output_required": false,
12456
+ "required": false,
12457
+ "type": "string",
12458
+ "value_allowed_null": false
12459
+ },
12460
+ {
12461
+ "disabled": false,
12462
+ "document": "用于合同信息提取的资源名称。",
12463
+ "example": "示例文件.pdf",
12464
+ "member": "string",
12465
+ "name": "ResourceName",
12466
+ "output_required": false,
12467
+ "required": false,
12468
+ "type": "string",
12469
+ "value_allowed_null": false
12470
+ },
12471
+ {
12472
+ "disabled": false,
12473
+ "document": "根据当前合同提取出的字段信息",
12474
+ "example": "无",
12475
+ "member": "ExtractionFieldResult",
12476
+ "name": "ExtractionFieldResults",
12477
+ "output_required": false,
12478
+ "required": false,
12479
+ "type": "list",
12480
+ "value_allowed_null": false
12481
+ }
12482
+ ],
12483
+ "usage": "both"
12484
+ },
12355
12485
  "FailedCreateRoleData": {
12356
12486
  "document": "绑定角色失败信息",
12357
12487
  "members": [
@@ -16560,7 +16690,7 @@
16560
16690
  {
16561
16691
  "disabled": true,
16562
16692
  "document": "社会统一信用代码\n注意:此字段可能返回 null,表示取不到有效值。",
16563
- "example": "",
16693
+ "example": "91110108772551611J",
16564
16694
  "member": "string",
16565
16695
  "name": "Uscc",
16566
16696
  "output_required": false,
@@ -16579,6 +16709,17 @@
16579
16709
  "type": "string",
16580
16710
  "value_allowed_null": false
16581
16711
  },
16712
+ {
16713
+ "disabled": false,
16714
+ "document": "组织机构企业注册地址。 请确认该企业注册地址与企业营业执照中注册的地址一致。",
16715
+ "example": "深圳市南山区高新区科技中一路腾讯大厦",
16716
+ "member": "string",
16717
+ "name": "OrganizationAddress",
16718
+ "output_required": false,
16719
+ "required": false,
16720
+ "type": "string",
16721
+ "value_allowed_null": false
16722
+ },
16582
16723
  {
16583
16724
  "disabled": true,
16584
16725
  "document": "指定企业认证的授权方式 支持多选:\n\n<ul>\n<li><strong>2</strong>: 法人授权方式</li>\n<li><strong>5</strong>: 授权书+对公打款方式</li>\n</ul>",
@@ -1654,7 +1654,7 @@
1654
1654
  {
1655
1655
  "document": "",
1656
1656
  "input": "POST / HTTP/1.1\nHost: ess.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeInformationExtractionTask\n<公共请求参数>\n\n{\n \"Operator\": {\n \"UserId\": \"yDx************************xxx\"\n },\n \"TaskId\": \"yDx************************yyy\"\n}",
1657
- "output": "{\n \"Response\": {\n \"Fields\": [\n {\n \"Name\": \"甲方\",\n \"Values\": [\n \"张三\",\n \"李四\"\n ],\n \"Type\": \"Text\",\n \"Description\": \"提取甲方信息\"\n }\n ],\n \"Status\": 3,\n \"Url\": \"https://file.ess.tencent.cn/bresource/resource/resource/0/0.XLSX?hkey=c83cf852247f9075f675f350e6d6ebeda61fa2d74d136f8efccdde201dc72cb280dcd8992c91808c55817c57c4bf87f718adfa54bf152500e9a45beb6cc9f697a0c938dc46f2abe3288a77d1fddf145d4cd2027ed8e4b6030b2f95355be37221\",\n \"RequestId\": \"s1735294966632123121\"\n }\n}",
1657
+ "output": "{\n \"Response\": {\n \"Fields\": [\n {\n \"Description\": \"\",\n \"Name\": \"甲方姓名\",\n \"Type\": \"TEXT\"\n },\n {\n \"Description\": \"\",\n \"Name\": \"甲方证件类型\",\n \"Type\": \"TEXT\"\n },\n {\n \"Description\": \"\",\n \"Name\": \"甲方证件号码\",\n \"Type\": \"TEXT\"\n },\n {\n \"Description\": \"\",\n \"Name\": \"甲方联系电话\",\n \"Type\": \"TEXT\"\n }\n ],\n \"RequestId\": \"s1757917252782050716\",\n \"Results\": [\n {\n \"ExtractionFieldResults\": [\n {\n \"Id\": \"yDtrwUUckp9wybmjUut60LQwZBsJBCb7\",\n \"Name\": \"甲方姓名\",\n \"Positions\": [\n {\n \"Height\": 62.85014245014244,\n \"Id\": \"c356ac4e-e519-4926-96e8-3f3802068587\",\n \"PageIndex\": 0,\n \"Width\": 276.866935483871,\n \"X\": 87.81048387096774,\n \"Y\": 101.7116809116809\n }\n ],\n \"RequiresSemanticExtraction\": true,\n \"Type\": \"TEXT\",\n \"Values\": [\n \"张三\"\n ]\n },\n {\n \"Id\": \"yDtrwUUckp9wybm8Uut60LQ8gfPP8SwF\",\n \"Name\": \"甲方证件类型\",\n \"Positions\": [\n {\n \"Height\": 62.85014245014244,\n \"Id\": \"41355563-8548-4295-b71c-4c2d5933a743\",\n \"PageIndex\": 0,\n \"Width\": 276.866935483871,\n \"X\": 87.81048387096774,\n \"Y\": 101.7116809116809\n }\n ],\n \"RequiresSemanticExtraction\": true,\n \"Type\": \"TEXT\",\n \"Values\": [\n \"统一社会信用代码/注册号\"\n ]\n },\n {\n \"Id\": \"yDtrwUUckp9wybmhUut60LQuyWcyz0XK\",\n \"Name\": \"甲方证件号码\",\n \"Positions\": [\n {\n \"Height\": 62.85014245014244,\n \"Id\": \"18c51f7f-0052-4918-839c-09f3ee53dfb5\",\n \"PageIndex\": 0,\n \"Width\": 276.866935483871,\n \"X\": 87.81048387096774,\n \"Y\": 101.7116809116809\n }\n ],\n \"RequiresSemanticExtraction\": true,\n \"Type\": \"TEXT\",\n \"Values\": [\n \"91xxxx3\"\n ]\n },\n {\n \"Id\": \"yDtrwUUckp9wybm2Uut60LQBKQ75zwdk\",\n \"Name\": \"甲方联系电话\",\n \"Positions\": [\n {\n \"Height\": 39.34131054131055,\n \"Id\": \"be7257bc-e35f-4ac9-9911-121870978a05\",\n \"PageIndex\": 0,\n \"Width\": 341.6451612903226,\n \"X\": 87.81048387096774,\n \"Y\": 174.15726495726494\n }\n ],\n \"RequiresSemanticExtraction\": true,\n \"Type\": \"TEXT\",\n \"Values\": [\n \"18888889999\"\n ]\n }\n ],\n \"ResourceId\": \"yDtrwUUckp9wa8mhUxBlpETSqyoBrgzT\",\n \"ResourceName\": \"【示例】某企业办公设备采购协议.pdf\"\n }\n ],\n \"Status\": 3,\n \"Url\": \"https://file.test.ess.tencent.cn/bresource/resource/resource/0/0.XLSX?hkey=c83cf852247f9075f675f350e6d6ebed68667f1e41dc9a6a5c2217df8e41ee87e0de0559839c7737f186b6aa90c51814914e54ef9a4d669e56c01d6442b0cb21c7fbdf6ad38dfcee4c1d4dce9f6bf8f429f525fe2506634e16c8d3a57959978c\"\n }\n}",
1658
1658
  "title": "获取合同智能提取任务详情"
1659
1659
  }
1660
1660
  ],
@@ -1310,7 +1310,7 @@
1310
1310
  },
1311
1311
  {
1312
1312
  "disabled": false,
1313
- "document": "需要新增送检的用户号。示例:\"1234\"\n(若UserIdString不填,则UserId必填;两者选其一;两者都填以UserIdString为准)",
1313
+ "document": "需要新增送检的用户号,长度不超过1024字符。示例:\"1234\"(若UserIdString不填,则UserId必填;两者选其一;两者都填以UserIdString为准)",
1314
1314
  "example": "\"1\"",
1315
1315
  "member": "string",
1316
1316
  "name": "UserIdString",
@@ -1574,7 +1574,7 @@
1574
1574
  {
1575
1575
  "disabled": false,
1576
1576
  "document": "应用ID,登录控制台 - 服务管理创建应用得到的AppID",
1577
- "example": "1 ",
1577
+ "example": "1400000000",
1578
1578
  "member": "uint64",
1579
1579
  "name": "BizId",
1580
1580
  "required": true,
@@ -1591,7 +1591,7 @@
1591
1591
  },
1592
1592
  {
1593
1593
  "disabled": false,
1594
- "document": "需要删除送检的用户号。示例:\"1234\"\n(若UserIdString不填,则UserId必填;两者选其一;两者都填以UserIdString为准)",
1594
+ "document": "需要删除送检的用户号,长度不超过1024字符。示例:\"1234\"(若UserIdString不填,则UserId必填;两者选其一;两者都填以UserIdString为准)",
1595
1595
  "example": "“1”",
1596
1596
  "member": "string",
1597
1597
  "name": "UserIdString",
@@ -4360,7 +4360,7 @@
4360
4360
  },
4361
4361
  {
4362
4362
  "disabled": false,
4363
- "document": "需要送检的所有房间号。多个房间号之间用\",\"分隔。示例:\"0001,0002,0003\"",
4363
+ "document": "需要送检的所有房间号。多个房间号之间用\",\"分隔,长度不超过1024字符。示例:\"0001,0002,0003\"",
4364
4364
  "example": "\"1\"",
4365
4365
  "member": "string",
4366
4366
  "name": "RoomIdString",
@@ -4369,7 +4369,7 @@
4369
4369
  },
4370
4370
  {
4371
4371
  "disabled": false,
4372
- "document": "符合此正则表达式规则的房间号将被送检。示例:^6.*(表示所有以6开头的房间号将被送检)",
4372
+ "document": "符合此正则表达式规则的房间号将被送检,最大不能超过10个。示例:^6.*(表示所有以6开头的房间号将被送检)",
4373
4373
  "example": "[\"1\"]",
4374
4374
  "member": "string",
4375
4375
  "name": "RoomIdRegex",
@@ -4415,7 +4415,7 @@
4415
4415
  },
4416
4416
  {
4417
4417
  "disabled": false,
4418
- "document": "需要送检的所有用户号。多个用户号之间用\",\"分隔。示例:\"0001,0002,0003\"",
4418
+ "document": "需要送检的所有用户号。多个用户号之间用\",\"分隔,长度不超过1024字符。示例:\"0001,0002,0003\"",
4419
4419
  "example": "\"1\"",
4420
4420
  "member": "string",
4421
4421
  "name": "UserIdString",
@@ -4424,7 +4424,7 @@
4424
4424
  },
4425
4425
  {
4426
4426
  "disabled": false,
4427
- "document": "符合此正则表达式规则的用户号将被送检。示例:[\"^6.*\"] 表示所有以6开头的用户号将被送检",
4427
+ "document": "符合此正则表达式规则的用户号将被送检,最大不能超过10个。示例:[\"^6.*\"] 表示所有以6开头的用户号将被送检",
4428
4428
  "example": "[\"1\"]",
4429
4429
  "member": "string",
4430
4430
  "name": "UserIdRegex",
@@ -693,6 +693,58 @@ def doModifyAndroidInstancesProperties(args, parsed_globals):
693
693
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
694
694
 
695
695
 
696
+ def doCreateSession(args, parsed_globals):
697
+ g_param = parse_global_arg(parsed_globals)
698
+
699
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
700
+ cred = credential.CVMRoleCredential()
701
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
702
+ cred = credential.STSAssumeRoleCredential(
703
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
704
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
705
+ )
706
+ 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):
707
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
708
+ else:
709
+ cred = credential.Credential(
710
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
711
+ )
712
+ http_profile = HttpProfile(
713
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
714
+ reqMethod="POST",
715
+ endpoint=g_param[OptionsDefine.Endpoint],
716
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
717
+ )
718
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
719
+ if g_param[OptionsDefine.Language]:
720
+ profile.language = g_param[OptionsDefine.Language]
721
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
722
+ client = mod.GsClient(cred, g_param[OptionsDefine.Region], profile)
723
+ client._sdkVersion += ("_CLI_" + __version__)
724
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
725
+ model = models.CreateSessionRequest()
726
+ model.from_json_string(json.dumps(args))
727
+ start_time = time.time()
728
+ while True:
729
+ rsp = client.CreateSession(model)
730
+ result = rsp.to_json_string()
731
+ try:
732
+ json_obj = json.loads(result)
733
+ except TypeError as e:
734
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
735
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
736
+ break
737
+ cur_time = time.time()
738
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
739
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
740
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
741
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
742
+ else:
743
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
744
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
745
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
746
+
747
+
696
748
  def doModifyAndroidInstancesInformation(args, parsed_globals):
697
749
  g_param = parse_global_arg(parsed_globals)
698
750
 
@@ -1369,7 +1421,7 @@ def doDeleteAndroidInstanceLabel(args, parsed_globals):
1369
1421
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
1370
1422
 
1371
1423
 
1372
- def doCreateSession(args, parsed_globals):
1424
+ def doDistributeAndroidInstanceImageToHosts(args, parsed_globals):
1373
1425
  g_param = parse_global_arg(parsed_globals)
1374
1426
 
1375
1427
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -1398,11 +1450,11 @@ def doCreateSession(args, parsed_globals):
1398
1450
  client = mod.GsClient(cred, g_param[OptionsDefine.Region], profile)
1399
1451
  client._sdkVersion += ("_CLI_" + __version__)
1400
1452
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
1401
- model = models.CreateSessionRequest()
1453
+ model = models.DistributeAndroidInstanceImageToHostsRequest()
1402
1454
  model.from_json_string(json.dumps(args))
1403
1455
  start_time = time.time()
1404
1456
  while True:
1405
- rsp = client.CreateSession(model)
1457
+ rsp = client.DistributeAndroidInstanceImageToHosts(model)
1406
1458
  result = rsp.to_json_string()
1407
1459
  try:
1408
1460
  json_obj = json.loads(result)
@@ -3993,6 +4045,7 @@ ACTION_MAP = {
3993
4045
  "UninstallAndroidInstancesApp": doUninstallAndroidInstancesApp,
3994
4046
  "CreateAndroidInstanceImage": doCreateAndroidInstanceImage,
3995
4047
  "ModifyAndroidInstancesProperties": doModifyAndroidInstancesProperties,
4048
+ "CreateSession": doCreateSession,
3996
4049
  "ModifyAndroidInstancesInformation": doModifyAndroidInstancesInformation,
3997
4050
  "DeleteAndroidInstanceImages": doDeleteAndroidInstanceImages,
3998
4051
  "DistributeFileToAndroidInstances": doDistributeFileToAndroidInstances,
@@ -4006,7 +4059,7 @@ ACTION_MAP = {
4006
4059
  "RestartAndroidInstancesApp": doRestartAndroidInstancesApp,
4007
4060
  "ModifyAndroidInstancesResolution": doModifyAndroidInstancesResolution,
4008
4061
  "DeleteAndroidInstanceLabel": doDeleteAndroidInstanceLabel,
4009
- "CreateSession": doCreateSession,
4062
+ "DistributeAndroidInstanceImageToHosts": doDistributeAndroidInstanceImageToHosts,
4010
4063
  "CreateAndroidInstanceLabel": doCreateAndroidInstanceLabel,
4011
4064
  "RenewAndroidInstancesAccessToken": doRenewAndroidInstancesAccessToken,
4012
4065
  "CreateAndroidApp": doCreateAndroidApp,
@@ -231,6 +231,13 @@
231
231
  "output": "DisconnectAndroidInstanceResponse",
232
232
  "status": "online"
233
233
  },
234
+ "DistributeAndroidInstanceImageToHosts": {
235
+ "document": "分发安卓实例镜像至宿主机",
236
+ "input": "DistributeAndroidInstanceImageToHostsRequest",
237
+ "name": "分发安卓实例镜像到宿主机",
238
+ "output": "DistributeAndroidInstanceImageToHostsResponse",
239
+ "status": "online"
240
+ },
234
241
  "DistributeFileToAndroidInstances": {
235
242
  "document": "将一个文件批量分发到多个实例,一次接口调用触发一次文件分发,一次文件分发只会从公网下载一次,然后文件会走内网分发到实例列表中的实例。",
236
243
  "input": "DistributeFileToAndroidInstancesRequest",
@@ -1133,6 +1140,32 @@
1133
1140
  ],
1134
1141
  "usage": "both"
1135
1142
  },
1143
+ "AndroidInstanceHostTask": {
1144
+ "document": "安卓实例宿主机任务信息",
1145
+ "members": [
1146
+ {
1147
+ "disabled": false,
1148
+ "document": "任务 ID",
1149
+ "example": "a28c6f9c-e794-4d48-b711-d17e51a5d745",
1150
+ "member": "string",
1151
+ "name": "TaskId",
1152
+ "output_required": true,
1153
+ "type": "string",
1154
+ "value_allowed_null": false
1155
+ },
1156
+ {
1157
+ "disabled": false,
1158
+ "document": "宿主机序列号",
1159
+ "example": "RK5838P1262201165",
1160
+ "member": "string",
1161
+ "name": "HostSerialNumber",
1162
+ "output_required": true,
1163
+ "type": "string",
1164
+ "value_allowed_null": false
1165
+ }
1166
+ ],
1167
+ "usage": "out"
1168
+ },
1136
1169
  "AndroidInstanceImage": {
1137
1170
  "document": "安卓实例镜像信息",
1138
1171
  "members": [
@@ -3684,6 +3717,52 @@
3684
3717
  ],
3685
3718
  "type": "object"
3686
3719
  },
3720
+ "DistributeAndroidInstanceImageToHostsRequest": {
3721
+ "document": "DistributeAndroidInstanceImageToHosts请求参数结构体",
3722
+ "members": [
3723
+ {
3724
+ "disabled": false,
3725
+ "document": "宿主机序列号数组",
3726
+ "example": "[\"RK5838P1262201165\"]",
3727
+ "member": "string",
3728
+ "name": "HostSerialNumbers",
3729
+ "required": true,
3730
+ "type": "list"
3731
+ },
3732
+ {
3733
+ "disabled": false,
3734
+ "document": "实例镜像 ID",
3735
+ "example": "image-a5drda9q",
3736
+ "member": "string",
3737
+ "name": "ImageId",
3738
+ "required": true,
3739
+ "type": "string"
3740
+ }
3741
+ ],
3742
+ "type": "object"
3743
+ },
3744
+ "DistributeAndroidInstanceImageToHostsResponse": {
3745
+ "document": "DistributeAndroidInstanceImageToHosts返回参数结构体",
3746
+ "members": [
3747
+ {
3748
+ "disabled": false,
3749
+ "document": "任务集合",
3750
+ "example": "无",
3751
+ "member": "AndroidInstanceHostTask",
3752
+ "name": "TaskSet",
3753
+ "output_required": true,
3754
+ "type": "list",
3755
+ "value_allowed_null": false
3756
+ },
3757
+ {
3758
+ "document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
3759
+ "member": "string",
3760
+ "name": "RequestId",
3761
+ "type": "string"
3762
+ }
3763
+ ],
3764
+ "type": "object"
3765
+ },
3687
3766
  "DistributeFileToAndroidInstancesRequest": {
3688
3767
  "document": "DistributeFileToAndroidInstances请求参数结构体",
3689
3768
  "members": [
@@ -270,6 +270,14 @@
270
270
  "title": "示例"
271
271
  }
272
272
  ],
273
+ "DistributeAndroidInstanceImageToHosts": [
274
+ {
275
+ "document": "",
276
+ "input": "POST / HTTP/1.1\nHost: gs.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DistributeAndroidInstanceImageToHosts\n<公共请求参数>\n\n{\n \"HostSerialNumbers\": [\n \"RK8S50P1402309016\",\n \"RK8S50P1402309017\"\n ],\n \"ImageId\": \"image-49va6apu\"\n}",
277
+ "output": "{\n \"Response\": {\n \"RequestId\": \"cb50f61b-6058-4500-b742-a692e06d3ef3\",\n \"TaskSet\": [\n {\n \"HostSerialNumber\": \"RK8S50P1402309016\",\n \"TaskId\": \"4e4af02c-7977-4612-8974-5b6a8493fa0c\"\n },\n {\n \"HostSerialNumber\": \"RK8S50P1402309017\",\n \"TaskId\": \"873b2107-4422-426f-9356-0a7ecb605297\"\n }\n ]\n }\n}",
278
+ "title": "示例"
279
+ }
280
+ ],
273
281
  "DistributeFileToAndroidInstances": [
274
282
  {
275
283
  "document": "示例",