tccli 3.0.1388.1__py2.py3-none-any.whl → 3.0.1389.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 (47) hide show
  1. tccli/__init__.py +1 -1
  2. tccli/services/bi/v20220105/api.json +8 -8
  3. tccli/services/bi/v20220105/examples.json +4 -4
  4. tccli/services/cdc/v20201214/api.json +1 -1
  5. tccli/services/cdc/v20201214/examples.json +2 -2
  6. tccli/services/cdn/v20180606/api.json +1 -1
  7. tccli/services/chc/v20230418/api.json +69 -1
  8. tccli/services/ckafka/v20190819/api.json +112 -103
  9. tccli/services/ckafka/v20190819/examples.json +7 -7
  10. tccli/services/cls/v20201016/api.json +81 -4
  11. tccli/services/cls/v20201016/examples.json +1 -1
  12. tccli/services/ctem/v20231128/api.json +40 -0
  13. tccli/services/dc/v20180410/api.json +26 -6
  14. tccli/services/dts/v20211206/api.json +6 -6
  15. tccli/services/dts/v20211206/examples.json +1 -1
  16. tccli/services/emr/v20190103/api.json +172 -11
  17. tccli/services/es/v20180416/api.json +4 -4
  18. tccli/services/es/v20250101/api.json +119 -8
  19. tccli/services/ess/v20201111/api.json +30 -1
  20. tccli/services/essbasic/v20210526/api.json +21 -3
  21. tccli/services/gme/gme_client.py +509 -32
  22. tccli/services/gme/v20180711/api.json +1172 -46
  23. tccli/services/gme/v20180711/examples.json +72 -0
  24. tccli/services/hunyuan/v20230901/api.json +18 -0
  25. tccli/services/ioa/v20220601/api.json +44 -8
  26. tccli/services/ioa/v20220601/examples.json +4 -4
  27. tccli/services/iotexplorer/iotexplorer_client.py +432 -8
  28. tccli/services/iotexplorer/v20190423/api.json +979 -43
  29. tccli/services/iotexplorer/v20190423/examples.json +64 -0
  30. tccli/services/lighthouse/v20200324/api.json +18 -0
  31. tccli/services/live/v20180801/api.json +1 -1
  32. tccli/services/live/v20180801/examples.json +1 -1
  33. tccli/services/lkeap/v20240522/api.json +18 -0
  34. tccli/services/mqtt/v20240516/api.json +89 -0
  35. tccli/services/ocr/ocr_client.py +114 -8
  36. tccli/services/ocr/v20181119/api.json +225 -0
  37. tccli/services/ocr/v20181119/examples.json +28 -0
  38. tccli/services/thpc/v20230321/api.json +1 -1
  39. tccli/services/thpc/v20230321/examples.json +2 -2
  40. tccli/services/tione/v20211111/api.json +9 -9
  41. tccli/services/tsf/v20180326/api.json +2 -2
  42. tccli/services/wsa/v20250508/api.json +2 -2
  43. {tccli-3.0.1388.1.dist-info → tccli-3.0.1389.1.dist-info}/METADATA +2 -2
  44. {tccli-3.0.1388.1.dist-info → tccli-3.0.1389.1.dist-info}/RECORD +47 -47
  45. {tccli-3.0.1388.1.dist-info → tccli-3.0.1389.1.dist-info}/WHEEL +0 -0
  46. {tccli-3.0.1388.1.dist-info → tccli-3.0.1389.1.dist-info}/entry_points.txt +0 -0
  47. {tccli-3.0.1388.1.dist-info → tccli-3.0.1389.1.dist-info}/license_files/LICENSE +0 -0
@@ -8,6 +8,14 @@
8
8
  "title": "成功激活示例"
9
9
  }
10
10
  ],
11
+ "BatchUpdateFirmware": [
12
+ {
13
+ "document": "",
14
+ "input": "https://iotexplorer.tencentcloudapi.com/?Action=BatchUpdateFirmware\n&ProductID=sdfewihf\n&FirmwareVersion=2.0.0\n&FirmwareOriVersion=1.0.0\n&<公共请求参数>",
15
+ "output": "{\n \"Response\": {\n \"RequestId\": \"xxxxxxxxxxxxxxxxxxxxx\",\n \"TaskId\": 1000696\n }\n}",
16
+ "title": "示例"
17
+ }
18
+ ],
11
19
  "BindCloudStorageUser": [
12
20
  {
13
21
  "document": "",
@@ -254,6 +262,14 @@
254
262
  "title": "新建 LoRa 网关"
255
263
  }
256
264
  ],
265
+ "CreateOtaModule": [
266
+ {
267
+ "document": "",
268
+ "input": "POST / HTTP/1.1\nHost: iotexplorer.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateOtaModule\n<公共请求参数>\n\n{\n \"ProductID\": \"8Q7X2QKV59\",\n \"FwType\": \"bms\"\n}",
269
+ "output": "{\n \"Response\": {\n \"RequestId\": \"0970c75a-07e2-429d-bae0-76230b466bbc\"\n }\n}",
270
+ "title": "创建新模块"
271
+ }
272
+ ],
257
273
  "CreatePositionFence": [
258
274
  {
259
275
  "document": "创建围栏",
@@ -404,6 +420,14 @@
404
420
  "title": "删除 LoRa 网关"
405
421
  }
406
422
  ],
423
+ "DeleteOtaModule": [
424
+ {
425
+ "document": "",
426
+ "input": "POST / HTTP/1.1\nHost: iotexplorer.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DeleteOtaModule\n<公共请求参数>\n\n{\n \"ProductID\": \"8Q7X2QKV59\",\n \"FwType\": \"mcu\"\n}",
427
+ "output": "{\n \"Response\": {\n \"RequestId\": \"4c5b5c5e-ddcc-4a30-a933-d306e94b14a7\"\n }\n}",
428
+ "title": "删除ota模块"
429
+ }
430
+ ],
407
431
  "DeletePositionFence": [
408
432
  {
409
433
  "document": "删除围栏",
@@ -746,6 +770,22 @@
746
770
  "title": "查询固件升级任务详情"
747
771
  }
748
772
  ],
773
+ "DescribeFirmwareTaskDevices": [
774
+ {
775
+ "document": "",
776
+ "input": "POST / HTTP/1.1\nHost: iotexplorer.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeFirmwareTaskDevices\n<公共请求参数>\n\n{\n \"ProductID\": \"I6KTCZ170U\",\n \"FirmwareVersion\": \"t.1\"\n}",
777
+ "output": "{\n \"Response\": {\n \"Devices\": [\n {\n \"DeviceName\": \"testota01\",\n \"DstVersion\": \"t.1\",\n \"ErrMsg\": \"firmware no need update.\",\n \"LastProcessTime\": 1599293301,\n \"OriVersion\": \"\",\n \"Percent\": 0,\n \"Retcode\": 0,\n \"Status\": 5,\n \"TaskId\": 1000698\n },\n {\n \"DeviceName\": \"testota01\",\n \"DstVersion\": \"t.1\",\n \"ErrMsg\": \"firmware no need update.\",\n \"LastProcessTime\": 1599293291,\n \"OriVersion\": \"\",\n \"Percent\": 0,\n \"Retcode\": 0,\n \"Status\": 5,\n \"TaskId\": 1000697\n },\n {\n \"DeviceName\": \"testota01\",\n \"DstVersion\": \"t.1\",\n \"ErrMsg\": \"firmware no need update.\",\n \"LastProcessTime\": 1599293161,\n \"OriVersion\": \"\",\n \"Percent\": 0,\n \"Retcode\": 0,\n \"Status\": 5,\n \"TaskId\": 1000696\n },\n {\n \"DeviceName\": \"testota01\",\n \"DstVersion\": \"t.1\",\n \"ErrMsg\": \"firmware no need update.\",\n \"LastProcessTime\": 1599292421,\n \"OriVersion\": \"\",\n \"Percent\": 0,\n \"Retcode\": 0,\n \"Status\": 5,\n \"TaskId\": 1000695\n },\n {\n \"DeviceName\": \"testota01\",\n \"DstVersion\": \"t.1\",\n \"ErrMsg\": \"firmware no need update.\",\n \"LastProcessTime\": 1599292411,\n \"OriVersion\": \"\",\n \"Percent\": 0,\n \"Retcode\": 0,\n \"Status\": 5,\n \"TaskId\": 1000694\n }\n ],\n \"RequestId\": \"95e791e3-dfc4-47fa-9f0b-d3248a5adb55\",\n \"Total\": 5\n }\n}",
778
+ "title": "查询固件升级任务的设备列表"
779
+ }
780
+ ],
781
+ "DescribeFirmwareTasks": [
782
+ {
783
+ "document": "",
784
+ "input": "POST / HTTP/1.1\nHost: iotexplorer.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeFirmwareTasks\n<公共请求参数>\n\n{\n \"ProductID\": \"I6KTCZ170U\",\n \"FirmwareVersion\": \"t.1\",\n \"Offset\": 0,\n \"Limit\": 3\n}",
785
+ "output": "{\n \"Response\": {\n \"RequestId\": \"baffed26-d55b-41bd-a8b3-5c0377cd45d2\",\n \"TaskInfos\": [\n {\n \"CreateTime\": 1599293298,\n \"Status\": 5,\n \"TaskId\": 1000698,\n \"Type\": 1\n },\n {\n \"CreateTime\": 1599293285,\n \"Status\": 5,\n \"TaskId\": 1000697,\n \"Type\": 1\n },\n {\n \"CreateTime\": 1599293158,\n \"Status\": 5,\n \"TaskId\": 1000696,\n \"Type\": 1\n }\n ],\n \"Total\": 6\n }\n}",
786
+ "title": "查询固件升级任务列表"
787
+ }
788
+ ],
749
789
  "DescribeFirmwareUpdateStatus": [
750
790
  {
751
791
  "document": "",
@@ -1238,6 +1278,22 @@
1238
1278
  "title": "示例"
1239
1279
  }
1240
1280
  ],
1281
+ "ListOtaModules": [
1282
+ {
1283
+ "document": "",
1284
+ "input": "POST / HTTP/1.1\nHost: iotexplorer.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ListOtaModules\n<公共请求参数>\n\n{\n \"PageNum\": 1,\n \"PageSize\": 10\n}",
1285
+ "output": "{\n \"Response\": {\n \"Modules\": [\n {\n \"CreateTime\": 1756953617,\n \"FwType\": \"bms\",\n \"IsBuildIn\": false,\n \"Name\": \"\",\n \"ProductID\": \"8Q7X2QKV59\",\n \"ProductName\": \"ota测试\",\n \"Remark\": \"\"\n },\n {\n \"CreateTime\": 1756889779,\n \"FwType\": \"mcu\",\n \"IsBuildIn\": true,\n \"Name\": \"\",\n \"ProductID\": \"SR5E1Q7C2A\",\n \"ProductName\": \"yufa\",\n \"Remark\": \"\"\n },\n {\n \"CreateTime\": 1756889779,\n \"FwType\": \"mcu\",\n \"IsBuildIn\": true,\n \"Name\": \"\",\n \"ProductID\": \"186XLZGJM5\",\n \"ProductName\": \"预发测试\",\n \"Remark\": \"\"\n },\n {\n \"CreateTime\": 1756350539,\n \"FwType\": \"default\",\n \"IsBuildIn\": true,\n \"Name\": \"\",\n \"ProductID\": \"SR5E1Q7C2A\",\n \"ProductName\": \"yufa\",\n \"Remark\": \"\"\n }\n ],\n \"RequestId\": \"c2862940-3dd8-4453-a8d8-31dacad30961\",\n \"TotalCount\": 15\n }\n}",
1286
+ "title": "获取OTA模块列表"
1287
+ }
1288
+ ],
1289
+ "ListProductOtaModules": [
1290
+ {
1291
+ "document": "",
1292
+ "input": "POST / HTTP/1.1\nHost: iotexplorer.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ListProductOtaModules\n<公共请求参数>\n\n{\n \"ProductID\": \"8Q7X2QKV59\"\n}",
1293
+ "output": "{\n \"Response\": {\n \"Modules\": [\n {\n \"CreateTime\": 1753261941,\n \"FwType\": \"default\",\n \"IsBuildIn\": true,\n \"Name\": \"\",\n \"ProductID\": \"8Q7X2QKV59\",\n \"ProductName\": \"ota测试\",\n \"Remark\": \"\"\n },\n {\n \"CreateTime\": 1756953617,\n \"FwType\": \"bms\",\n \"IsBuildIn\": false,\n \"Name\": \"\",\n \"ProductID\": \"8Q7X2QKV59\",\n \"ProductName\": \"ota测试\",\n \"Remark\": \"\"\n }\n ],\n \"RequestId\": \"2face868-8e90-4a42-98f9-54810ef3f1f8\"\n }\n}",
1294
+ "title": "获取产品OTA模块列表"
1295
+ }
1296
+ ],
1241
1297
  "ListTopicPolicy": [
1242
1298
  {
1243
1299
  "document": "",
@@ -1582,6 +1638,14 @@
1582
1638
  "title": "更新固件示例"
1583
1639
  }
1584
1640
  ],
1641
+ "UpdateOtaModule": [
1642
+ {
1643
+ "document": "",
1644
+ "input": "POST / HTTP/1.1\nHost: iotexplorer.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: UpdateOtaModule\n<公共请求参数>\n\n{\n \"ProductID\": \"8Q7X2QKV59\",\n \"FwType\": \"mcu\",\n \"Name\": \"mcu\"\n}",
1645
+ "output": "{\n \"Response\": {\n \"RequestId\": \"e786a7af-c084-42b0-958d-70d5e567904e\"\n }\n}",
1646
+ "title": "更新模块"
1647
+ }
1648
+ ],
1585
1649
  "UploadFirmware": [
1586
1650
  {
1587
1651
  "document": "",
@@ -9063,6 +9063,15 @@
9063
9063
  "name": "InstanceIds",
9064
9064
  "required": true,
9065
9065
  "type": "list"
9066
+ },
9067
+ {
9068
+ "disabled": false,
9069
+ "document": "关机类型。\n取值范围:\n- SOFT:表示软关机 \n- HARD:表示硬关机 \n- SOFT_FIRST:表示优先软关机,失败再执行硬关机 \n\n默认取值:SOFT_FIRST。",
9070
+ "example": "\"SOFT_FIRST\"",
9071
+ "member": "string",
9072
+ "name": "StopType",
9073
+ "required": false,
9074
+ "type": "string"
9066
9075
  }
9067
9076
  ],
9068
9077
  "type": "object"
@@ -10383,6 +10392,15 @@
10383
10392
  "name": "InstanceIds",
10384
10393
  "required": true,
10385
10394
  "type": "list"
10395
+ },
10396
+ {
10397
+ "disabled": false,
10398
+ "document": "关机类型。\n取值范围: \n\n- SOFT:表示软关机\n- HARD:表示硬关机 \n- SOFT_FIRST:表示优先软关机,失败再执行硬关机 \n\n默认取值:SOFT_FIRST",
10399
+ "example": "\"SOFT_FIRST\"",
10400
+ "member": "string",
10401
+ "name": "StopType",
10402
+ "required": false,
10403
+ "type": "string"
10386
10404
  }
10387
10405
  ],
10388
10406
  "type": "object"
@@ -16238,7 +16238,7 @@
16238
16238
  },
16239
16239
  {
16240
16240
  "disabled": false,
16241
- "document": "导播台的描述\n最大允许长度256",
16241
+ "document": "导播台的描述,最大允许长度256",
16242
16242
  "example": "example caster",
16243
16243
  "member": "string",
16244
16244
  "name": "Description",
@@ -788,7 +788,7 @@
788
788
  {
789
789
  "document": "",
790
790
  "input": "https://live.tencentcloudapi.com/?Action=DescribeLiveDomainCert\n&DomainName=5000.liveplay.myqcloud.com\n&<公共请求参数>",
791
- "output": "{\n \"Response\": {\n \"DomainCertInfo\": {\n \"CertId\": 1000,\n \"CertName\": \"testName\",\n \"Description\": \"testDesc\",\n \"CreateTime\": \"2018-11-30T15:50:12Z\",\n \"HttpsCrt\": \"fsgfdsfsdfdsfd\",\n \"CertType\": 0,\n \"CertExpireTime\": \"2018-12-30T15:50:12Z\",\n \"DomainName\": \"5000.livepush.play.com\",\n \"Status\": 1,\n \"CertDomains\": [\n \"*.play.com\"\n ],\n \"CloudCertId\": \"sfrsfvdf\"\n },\n \"RequestId\": \"3c140219-cfe9-470e-b241-907877d6fb03\"\n }\n}",
791
+ "output": "{\n \"Response\": {\n \"DomainCertInfo\": {\n \"CertId\": 1000,\n \"CertName\": \"tName\",\n \"Description\": \"tDesc\",\n \"CreateTime\": \"2018-11-30T15:50:12Z\",\n \"HttpsCrt\": \"fsgfdsfsdfdsfd\",\n \"CertType\": 0,\n \"CertExpireTime\": \"2018-12-30T15:50:12Z\",\n \"DomainName\": \"5000.livepush.play.com\",\n \"Status\": 1,\n \"CertDomains\": [\n \"*.play.com\"\n ],\n \"CloudCertId\": \"sfrsfvdf\"\n },\n \"RequestId\": \"3c140219-cfe9-470e-b241-907877d6fb03\"\n }\n}",
792
792
  "title": "请求示例"
793
793
  }
794
794
  ],
@@ -1406,6 +1406,24 @@
1406
1406
  "name": "Inputs",
1407
1407
  "required": true,
1408
1408
  "type": "list"
1409
+ },
1410
+ {
1411
+ "disabled": false,
1412
+ "document": "说明:文本向量化的类型,为使得检索任务有更好的检索效果,建议区分查询文本(query)和文档文本(document)类型, 聚类、分类等对称任务可以不用特殊指定,采用系统默认值document即可。",
1413
+ "example": "document",
1414
+ "member": "string",
1415
+ "name": "TextType",
1416
+ "required": false,
1417
+ "type": "string"
1418
+ },
1419
+ {
1420
+ "disabled": false,
1421
+ "document": "说明:自定义任务指令词,当且仅当TextType=query时,生效",
1422
+ "example": "问题:",
1423
+ "member": "string",
1424
+ "name": "Instruction",
1425
+ "required": false,
1426
+ "type": "string"
1409
1427
  }
1410
1428
  ],
1411
1429
  "type": "object"
@@ -3346,6 +3346,26 @@
3346
3346
  "type": "int",
3347
3347
  "value_allowed_null": false
3348
3348
  },
3349
+ {
3350
+ "disabled": false,
3351
+ "document": "topic前缀最大层级",
3352
+ "example": "3",
3353
+ "member": "int64",
3354
+ "name": "TopicPrefixSlashLimit",
3355
+ "output_required": false,
3356
+ "type": "int",
3357
+ "value_allowed_null": false
3358
+ },
3359
+ {
3360
+ "disabled": false,
3361
+ "document": "单客户端发送消息限速,单位 条/秒",
3362
+ "example": "10",
3363
+ "member": "int64",
3364
+ "name": "MessageRate",
3365
+ "output_required": false,
3366
+ "type": "int",
3367
+ "value_allowed_null": false
3368
+ },
3349
3369
  {
3350
3370
  "document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
3351
3371
  "member": "string",
@@ -3525,6 +3545,66 @@
3525
3545
  "type": "string",
3526
3546
  "value_allowed_null": false
3527
3547
  },
3548
+ {
3549
+ "disabled": false,
3550
+ "document": "内容类型(MQTT5)\n含义:指示消息载荷的内容类型,使用标准的 MIME 类型格式。这帮助接收方正确解析和处理消息内容。\n示例:\napplication/json:表示载荷是 JSON 格式的数据。\ntext/plain:表示载荷是纯文本。\napplication/octet-stream:表示载荷是二进制数据。",
3551
+ "example": "application/json",
3552
+ "member": "string",
3553
+ "name": "ContentType",
3554
+ "output_required": false,
3555
+ "type": "string",
3556
+ "value_allowed_null": false
3557
+ },
3558
+ {
3559
+ "disabled": false,
3560
+ "document": "载荷格式指示符(MQTT5)\n含义:指示载荷的格式,是一个布尔值。0表示未指定格式(二进制),1表示 UTF-8 编码的字符串。\n示例:\n值为0:当载荷是二进制数据,如图片、音频等。\n值为1:当载荷是 UTF-8 编码的文本,如 JSON 字符串、XML 等。",
3561
+ "example": "0",
3562
+ "member": "int64",
3563
+ "name": "PayloadFormatIndicator",
3564
+ "output_required": false,
3565
+ "type": "int",
3566
+ "value_allowed_null": false
3567
+ },
3568
+ {
3569
+ "disabled": false,
3570
+ "document": "消息过期间隔(MQTT5)\n含义:指定消息在被丢弃前的有效时间(秒)。如果消息在过期前未能送达,则会被 MQTT 服务器丢弃。\n示例:\n值为60:表示消息在发布后的 60 秒内有效,过期后未送达则被丢弃。\n值为0:表示消息不过期,永久有效(直到被接收或会话结束)。",
3571
+ "example": "60",
3572
+ "member": "int64",
3573
+ "name": "MessageExpiryInterval",
3574
+ "output_required": false,
3575
+ "type": "int",
3576
+ "value_allowed_null": false
3577
+ },
3578
+ {
3579
+ "disabled": false,
3580
+ "document": "响应主题(MQTT5)\n含义:指定一个主题,用于请求 - 响应模式中的响应消息。发送方可以指定接收方应该将响应发送到哪个主题。\n示例:\n发送方发布请求到主题devices/device1/commands,并设置ResponseTopic为devices/device1/responses。\n接收方处理请求后,将响应发布到devices/device1/responses主题。",
3581
+ "example": "home/room1",
3582
+ "member": "string",
3583
+ "name": "ResponseTopic",
3584
+ "output_required": false,
3585
+ "type": "string",
3586
+ "value_allowed_null": false
3587
+ },
3588
+ {
3589
+ "disabled": false,
3590
+ "document": "关联数据(MQTT5)\n含义:用于关联请求和响应的标识符,通常是一个字节数组。在请求 - 响应模式中,发送方设置此值,接收方在响应中包含相同的值,以便发送方识别响应对应的请求。\n示例:\n发送方生成一个唯一 ID(如 UUID 的字节数组)作为CorrelationData,附加到请求消息中。\n接收方在响应消息中包含相同的CorrelationData,发送方通过比较此值来匹配响应和请求。",
3591
+ "example": "uuid",
3592
+ "member": "string",
3593
+ "name": "CorrelationData",
3594
+ "output_required": false,
3595
+ "type": "string",
3596
+ "value_allowed_null": false
3597
+ },
3598
+ {
3599
+ "disabled": false,
3600
+ "document": "订阅标识符(MQTT5)\n含义:为订阅分配的唯一标识符,用于标识客户端的特定订阅。当服务器向客户端发送消息时,可以包含此标识符,帮助客户端识别消息对应的订阅。\n示例:\n客户端订阅主题devices/+/temperature,并设置SubscriptionIdentifier为123。\n当服务器向客户端发送此主题的消息时,会在消息中包含SubscriptionIdentifier: 123,客户端可以根据此值知道消息是通过哪个订阅接收的。",
3601
+ "example": "subs-1",
3602
+ "member": "string",
3603
+ "name": "SubscriptionIdentifier",
3604
+ "output_required": false,
3605
+ "type": "string",
3606
+ "value_allowed_null": false
3607
+ },
3528
3608
  {
3529
3609
  "document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
3530
3610
  "member": "string",
@@ -5576,6 +5656,15 @@
5576
5656
  "name": "X509Mode",
5577
5657
  "required": false,
5578
5658
  "type": "string"
5659
+ },
5660
+ {
5661
+ "disabled": false,
5662
+ "document": "单客户端消息收发限速单位 条/秒",
5663
+ "example": "10",
5664
+ "member": "int64",
5665
+ "name": "MessageRate",
5666
+ "required": false,
5667
+ "type": "int"
5579
5668
  }
5580
5669
  ],
5581
5670
  "type": "object"
@@ -953,6 +953,58 @@ def doTaxiInvoiceOCR(args, parsed_globals):
953
953
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
954
954
 
955
955
 
956
+ def doDescribeExtractDocAgentJob(args, parsed_globals):
957
+ g_param = parse_global_arg(parsed_globals)
958
+
959
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
960
+ cred = credential.CVMRoleCredential()
961
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
962
+ cred = credential.STSAssumeRoleCredential(
963
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
964
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
965
+ )
966
+ 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):
967
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
968
+ else:
969
+ cred = credential.Credential(
970
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
971
+ )
972
+ http_profile = HttpProfile(
973
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
974
+ reqMethod="POST",
975
+ endpoint=g_param[OptionsDefine.Endpoint],
976
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
977
+ )
978
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
979
+ if g_param[OptionsDefine.Language]:
980
+ profile.language = g_param[OptionsDefine.Language]
981
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
982
+ client = mod.OcrClient(cred, g_param[OptionsDefine.Region], profile)
983
+ client._sdkVersion += ("_CLI_" + __version__)
984
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
985
+ model = models.DescribeExtractDocAgentJobRequest()
986
+ model.from_json_string(json.dumps(args))
987
+ start_time = time.time()
988
+ while True:
989
+ rsp = client.DescribeExtractDocAgentJob(model)
990
+ result = rsp.to_json_string()
991
+ try:
992
+ json_obj = json.loads(result)
993
+ except TypeError as e:
994
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
995
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
996
+ break
997
+ cur_time = time.time()
998
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
999
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
1000
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
1001
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
1002
+ else:
1003
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
1004
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
1005
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
1006
+
1007
+
956
1008
  def doRideHailingDriverLicenseOCR(args, parsed_globals):
957
1009
  g_param = parse_global_arg(parsed_globals)
958
1010
 
@@ -3137,7 +3189,7 @@ def doBankSlipOCR(args, parsed_globals):
3137
3189
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
3138
3190
 
3139
3191
 
3140
- def doResidenceBookletOCR(args, parsed_globals):
3192
+ def doVehicleRegCertOCR(args, parsed_globals):
3141
3193
  g_param = parse_global_arg(parsed_globals)
3142
3194
 
3143
3195
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -3166,11 +3218,11 @@ def doResidenceBookletOCR(args, parsed_globals):
3166
3218
  client = mod.OcrClient(cred, g_param[OptionsDefine.Region], profile)
3167
3219
  client._sdkVersion += ("_CLI_" + __version__)
3168
3220
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
3169
- model = models.ResidenceBookletOCRRequest()
3221
+ model = models.VehicleRegCertOCRRequest()
3170
3222
  model.from_json_string(json.dumps(args))
3171
3223
  start_time = time.time()
3172
3224
  while True:
3173
- rsp = client.ResidenceBookletOCR(model)
3225
+ rsp = client.VehicleRegCertOCR(model)
3174
3226
  result = rsp.to_json_string()
3175
3227
  try:
3176
3228
  json_obj = json.loads(result)
@@ -3241,6 +3293,58 @@ def doRecognizeTravelCardOCR(args, parsed_globals):
3241
3293
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
3242
3294
 
3243
3295
 
3296
+ def doSubmitExtractDocAgentJob(args, parsed_globals):
3297
+ g_param = parse_global_arg(parsed_globals)
3298
+
3299
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
3300
+ cred = credential.CVMRoleCredential()
3301
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
3302
+ cred = credential.STSAssumeRoleCredential(
3303
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
3304
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
3305
+ )
3306
+ 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):
3307
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
3308
+ else:
3309
+ cred = credential.Credential(
3310
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
3311
+ )
3312
+ http_profile = HttpProfile(
3313
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
3314
+ reqMethod="POST",
3315
+ endpoint=g_param[OptionsDefine.Endpoint],
3316
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
3317
+ )
3318
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
3319
+ if g_param[OptionsDefine.Language]:
3320
+ profile.language = g_param[OptionsDefine.Language]
3321
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
3322
+ client = mod.OcrClient(cred, g_param[OptionsDefine.Region], profile)
3323
+ client._sdkVersion += ("_CLI_" + __version__)
3324
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
3325
+ model = models.SubmitExtractDocAgentJobRequest()
3326
+ model.from_json_string(json.dumps(args))
3327
+ start_time = time.time()
3328
+ while True:
3329
+ rsp = client.SubmitExtractDocAgentJob(model)
3330
+ result = rsp.to_json_string()
3331
+ try:
3332
+ json_obj = json.loads(result)
3333
+ except TypeError as e:
3334
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
3335
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
3336
+ break
3337
+ cur_time = time.time()
3338
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
3339
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
3340
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
3341
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
3342
+ else:
3343
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
3344
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
3345
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
3346
+
3347
+
3244
3348
  def doVerifyOfdVatInvoiceOCR(args, parsed_globals):
3245
3349
  g_param = parse_global_arg(parsed_globals)
3246
3350
 
@@ -4229,7 +4333,7 @@ def doAdvertiseOCR(args, parsed_globals):
4229
4333
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
4230
4334
 
4231
4335
 
4232
- def doVehicleRegCertOCR(args, parsed_globals):
4336
+ def doResidenceBookletOCR(args, parsed_globals):
4233
4337
  g_param = parse_global_arg(parsed_globals)
4234
4338
 
4235
4339
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -4258,11 +4362,11 @@ def doVehicleRegCertOCR(args, parsed_globals):
4258
4362
  client = mod.OcrClient(cred, g_param[OptionsDefine.Region], profile)
4259
4363
  client._sdkVersion += ("_CLI_" + __version__)
4260
4364
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
4261
- model = models.VehicleRegCertOCRRequest()
4365
+ model = models.ResidenceBookletOCRRequest()
4262
4366
  model.from_json_string(json.dumps(args))
4263
4367
  start_time = time.time()
4264
4368
  while True:
4265
- rsp = client.VehicleRegCertOCR(model)
4369
+ rsp = client.ResidenceBookletOCR(model)
4266
4370
  result = rsp.to_json_string()
4267
4371
  try:
4268
4372
  json_obj = json.loads(result)
@@ -4622,6 +4726,7 @@ ACTION_MAP = {
4622
4726
  "SmartStructuralOCR": doSmartStructuralOCR,
4623
4727
  "ClassifyStoreName": doClassifyStoreName,
4624
4728
  "TaxiInvoiceOCR": doTaxiInvoiceOCR,
4729
+ "DescribeExtractDocAgentJob": doDescribeExtractDocAgentJob,
4625
4730
  "RideHailingDriverLicenseOCR": doRideHailingDriverLicenseOCR,
4626
4731
  "DutyPaidProofOCR": doDutyPaidProofOCR,
4627
4732
  "MainlandPermitOCR": doMainlandPermitOCR,
@@ -4664,8 +4769,9 @@ ACTION_MAP = {
4664
4769
  "RecognizeFormulaOCR": doRecognizeFormulaOCR,
4665
4770
  "SealOCR": doSealOCR,
4666
4771
  "BankSlipOCR": doBankSlipOCR,
4667
- "ResidenceBookletOCR": doResidenceBookletOCR,
4772
+ "VehicleRegCertOCR": doVehicleRegCertOCR,
4668
4773
  "RecognizeTravelCardOCR": doRecognizeTravelCardOCR,
4774
+ "SubmitExtractDocAgentJob": doSubmitExtractDocAgentJob,
4669
4775
  "VerifyOfdVatInvoiceOCR": doVerifyOfdVatInvoiceOCR,
4670
4776
  "DriverLicenseOCR": doDriverLicenseOCR,
4671
4777
  "FinanBillOCR": doFinanBillOCR,
@@ -4685,7 +4791,7 @@ ACTION_MAP = {
4685
4791
  "ExtractDocMulti": doExtractDocMulti,
4686
4792
  "GeneralEfficientOCR": doGeneralEfficientOCR,
4687
4793
  "AdvertiseOCR": doAdvertiseOCR,
4688
- "VehicleRegCertOCR": doVehicleRegCertOCR,
4794
+ "ResidenceBookletOCR": doResidenceBookletOCR,
4689
4795
  "CarInvoiceOCR": doCarInvoiceOCR,
4690
4796
  "GetOCRResult": doGetOCRResult,
4691
4797
  "FormulaOCR": doFormulaOCR,