tccli 3.0.1243.1__py2.py3-none-any.whl → 3.0.1244.1__py2.py3-none-any.whl
Sign up to get free protection for your applications and to get access to all the features.
- tccli/__init__.py +1 -1
- tccli/services/aca/v20210323/api.json +107 -107
- tccli/services/aca/v20210323/examples.json +5 -5
- tccli/services/asr/v20190614/examples.json +6 -6
- tccli/services/cbs/v20170312/api.json +9 -0
- tccli/services/cdwdoris/v20211228/api.json +22 -2
- tccli/services/cdwdoris/v20211228/examples.json +1 -1
- tccli/services/cls/v20201016/api.json +185 -156
- tccli/services/cls/v20201016/examples.json +5 -5
- tccli/services/cvm/v20170312/api.json +8 -8
- tccli/services/cvm/v20170312/examples.json +4 -4
- tccli/services/dts/v20211206/api.json +9 -0
- tccli/services/dts/v20211206/examples.json +1 -1
- tccli/services/mna/v20210119/examples.json +1 -1
- tccli/services/ocr/ocr_client.py +38 -91
- tccli/services/ocr/v20181119/api.json +0 -187
- tccli/services/ocr/v20181119/examples.json +0 -8
- tccli/services/scf/scf_client.py +118 -65
- tccli/services/scf/v20180416/api.json +570 -475
- tccli/services/scf/v20180416/examples.json +52 -44
- tccli/services/tcb/v20180608/api.json +13 -13
- tccli/services/tcm/v20210413/api.json +45 -47
- tccli/services/tcr/v20190924/api.json +399 -371
- tccli/services/tcr/v20190924/examples.json +32 -32
- tccli/services/tke/v20180525/api.json +690 -590
- tccli/services/tke/v20180525/examples.json +128 -128
- tccli/services/vpc/v20170312/api.json +162 -134
- tccli/services/vpc/v20170312/examples.json +3 -3
- {tccli-3.0.1243.1.dist-info → tccli-3.0.1244.1.dist-info}/METADATA +2 -2
- {tccli-3.0.1243.1.dist-info → tccli-3.0.1244.1.dist-info}/RECORD +33 -33
- {tccli-3.0.1243.1.dist-info → tccli-3.0.1244.1.dist-info}/WHEEL +0 -0
- {tccli-3.0.1243.1.dist-info → tccli-3.0.1244.1.dist-info}/entry_points.txt +0 -0
- {tccli-3.0.1243.1.dist-info → tccli-3.0.1244.1.dist-info}/license_files/LICENSE +0 -0
@@ -235,7 +235,7 @@
|
|
235
235
|
"CreateWebCallback": [
|
236
236
|
{
|
237
237
|
"document": "创建告警渠道回调配置",
|
238
|
-
"input": "POST / HTTP/1.1\nHost: cls.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateWebCallback\n<公共请求参数>\n\n{\n \"Name\": \"
|
238
|
+
"input": "POST / HTTP/1.1\nHost: cls.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateWebCallback\n<公共请求参数>\n\n{\n \"Name\": \"监控告警专用\",\n \"Type\": \"WeCom\",\n \"Webhook\": \"http://www.xxx.com/send\",\n \"Method\": \"POST\",\n \"Key\": \"AADSHFYFNJKGYENGKVYDNGKFH<\"\n}",
|
239
239
|
"output": "{\n \"Response\": {\n \"WebCallbackId\": \"webcallback-aaa-bbb-ccc-ddd\",\n \"RequestId\": \"abc-abc-abc-abc\"\n }\n}",
|
240
240
|
"title": "创建告警渠道回调配置"
|
241
241
|
}
|
@@ -665,8 +665,8 @@
|
|
665
665
|
"DescribeWebCallbacks": [
|
666
666
|
{
|
667
667
|
"document": "获取告警渠道回调配置列表",
|
668
|
-
"input": "POST / HTTP/1.1\nHost: cls.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeWebCallbacks\n<公共请求参数>\n\n{\n \"Filters\": [\n {\n \"Key\": \"name\",\n \"Values\": [\n \"
|
669
|
-
"output": "{\n \"Response\": {\n \"WebCallbacks\": [\n {\n \"WebCallbackId\": \"webcallback-
|
668
|
+
"input": "POST / HTTP/1.1\nHost: cls.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeWebCallbacks\n<公共请求参数>\n\n{\n \"Filters\": [\n {\n \"Key\": \"name\",\n \"Values\": [\n \"监控告警专用\"\n ]\n }\n ],\n \"Offset\": 0,\n \"Limit\": 10\n}",
|
669
|
+
"output": "{\n \"Response\": {\n \"WebCallbacks\": [\n {\n \"WebCallbackId\": \"webcallback-285a1bef-xxxx-xxxx-b6b3-6fd9326d6876\",\n \"Name\": \"监控告警专用\",\n \"Type\": \"WeCom\",\n \"Webhook\": \"http://www.xxx.com\",\n \"Method\": \"POST\",\n \"Uin\": 100001000000,\n \"SubUin\": 100021900000,\n \"CreateTime\": 1705998110,\n \"UpdateTime\": 1705998110\n }\n ],\n \"TotalCount\": 1,\n \"RequestId\": \"d20a21f7-xxxx-xxxx-ba1b-1aa49be5fed1\"\n }\n}",
|
670
670
|
"title": "获取告警渠道回调配置列表"
|
671
671
|
}
|
672
672
|
],
|
@@ -867,8 +867,8 @@
|
|
867
867
|
"ModifyWebCallback": [
|
868
868
|
{
|
869
869
|
"document": "修改告警渠道回调配置",
|
870
|
-
"input": "POST / HTTP/1.1\nHost: cls.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ModifyWebCallback\n<公共请求参数>\n\n{\n \"WebCallbackId\": \"webcallback-d20a21f7-
|
871
|
-
"output": "{\n \"Response\": {\n \"RequestId\": \"d20a21f7-
|
870
|
+
"input": "POST / HTTP/1.1\nHost: cls.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ModifyWebCallback\n<公共请求参数>\n\n{\n \"WebCallbackId\": \"webcallback-d20a21f7-xxxx-xxxx-ba1b-1aa49be5fed1\",\n \"Name\": \"监控告警专用\",\n \"Type\": \"Http\",\n \"Webhook\": \"http://www.xxx.com\",\n \"Method\": \"POST\",\n \"Key\": \"HHFNIKFKLAUPOISNFIUYIOIA\"\n}",
|
871
|
+
"output": "{\n \"Response\": {\n \"RequestId\": \"d20a21f7-xxxx-xxxx-ba1b-1aa49be5fed1\"\n }\n}",
|
872
872
|
"title": "修改告警渠道回调配置"
|
873
873
|
}
|
874
874
|
],
|
@@ -1256,7 +1256,7 @@
|
|
1256
1256
|
{
|
1257
1257
|
"disabled": false,
|
1258
1258
|
"document": "CHC物理服务器的磁盘信息\n注意:此字段可能返回 null,表示取不到有效值。",
|
1259
|
-
"example": "
|
1259
|
+
"example": "10T",
|
1260
1260
|
"member": "string",
|
1261
1261
|
"name": "Disk",
|
1262
1262
|
"output_required": true,
|
@@ -3527,7 +3527,7 @@
|
|
3527
3527
|
"members": [
|
3528
3528
|
{
|
3529
3529
|
"disabled": false,
|
3530
|
-
"document": "镜像ID列表 。镜像ID如:`img-gvbnzy6f`。array型参数的格式可以参考[API简介](https://cloud.tencent.com/document/api/213/15688)。镜像ID可以通过如下方式获取:<br><li>通过[DescribeImages](https://cloud.tencent.com/document/api/213/15715)接口返回的`ImageId
|
3530
|
+
"document": "镜像ID列表 。镜像ID如:`img-gvbnzy6f`。array型参数的格式可以参考[API简介](https://cloud.tencent.com/document/api/213/15688)。镜像ID可以通过如下方式获取:<br><li>通过[DescribeImages](https://cloud.tencent.com/document/api/213/15715)接口返回的`ImageId`获取。</li><li>通过[镜像控制台](https://console.cloud.tencent.com/cvm/image)获取。</li>",
|
3531
3531
|
"example": "[\"img-gvbnzy6f\"]",
|
3532
3532
|
"member": "string",
|
3533
3533
|
"name": "ImageIds",
|
@@ -3564,7 +3564,7 @@
|
|
3564
3564
|
{
|
3565
3565
|
"disabled": false,
|
3566
3566
|
"document": "实例类型,如 `S1.SMALL1`",
|
3567
|
-
"example": "
|
3567
|
+
"example": "S1.SMALL1",
|
3568
3568
|
"member": "string",
|
3569
3569
|
"name": "InstanceType",
|
3570
3570
|
"required": false,
|
@@ -3582,7 +3582,7 @@
|
|
3582
3582
|
"example": "无",
|
3583
3583
|
"member": "Image",
|
3584
3584
|
"name": "ImageSet",
|
3585
|
-
"
|
3585
|
+
"output_required": true,
|
3586
3586
|
"type": "list",
|
3587
3587
|
"value_allowed_null": false
|
3588
3588
|
},
|
@@ -3592,7 +3592,7 @@
|
|
3592
3592
|
"example": "1",
|
3593
3593
|
"member": "int64",
|
3594
3594
|
"name": "TotalCount",
|
3595
|
-
"
|
3595
|
+
"output_required": true,
|
3596
3596
|
"type": "int",
|
3597
3597
|
"value_allowed_null": false
|
3598
3598
|
},
|
@@ -7968,7 +7968,7 @@
|
|
7968
7968
|
{
|
7969
7969
|
"disabled": false,
|
7970
7970
|
"document": "密钥对名称。",
|
7971
|
-
"example": "
|
7971
|
+
"example": "mySkey",
|
7972
7972
|
"member": "string",
|
7973
7973
|
"name": "KeyName",
|
7974
7974
|
"output_required": true,
|
@@ -8018,7 +8018,7 @@
|
|
8018
8018
|
{
|
8019
8019
|
"disabled": false,
|
8020
8020
|
"document": "密钥关联的实例`ID`列表。",
|
8021
|
-
"example": "
|
8021
|
+
"example": "[\"ins-xxxxx\"]",
|
8022
8022
|
"member": "string",
|
8023
8023
|
"name": "AssociatedInstanceIds",
|
8024
8024
|
"output_required": false,
|
@@ -8753,7 +8753,7 @@
|
|
8753
8753
|
{
|
8754
8754
|
"disabled": false,
|
8755
8755
|
"document": "高性能计算集群新备注。",
|
8756
|
-
"example": "
|
8756
|
+
"example": "myRemark",
|
8757
8757
|
"member": "string",
|
8758
8758
|
"name": "Remark",
|
8759
8759
|
"required": false,
|
@@ -178,7 +178,7 @@
|
|
178
178
|
{
|
179
179
|
"document": "根据CHC物理服务器ID查看实例",
|
180
180
|
"input": "POST / HTTP/1.1\nHost: cvm.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeChcHosts\n<公共请求参数>\n\n{\n \"ChcIds\": [\n \"chc-1a2b3c4d\"\n ]\n}",
|
181
|
-
"output": "{\n \"Response\": {\n \"ChcHostSet\": [\n {\n \"BmcIp\": \"10.0.0.17\",\n \"BmcMAC\": \"52:54:00:71:B5:A1\",\n \"BmcSecurityGroupIds\": [\n \"sg-8l03md6z\"\n ],\n \"BmcVirtualPrivateCloud\": {\n \"SubnetId\": \"subnet-hmpeps7u\",\n \"VpcId\": \"vpc-b9y7wgix\",\n \"AsVpcGateway\": false,\n \"Ipv6AddressCount\": 0,\n \"PrivateIpAddresses\": [\n \"10.10.2.4\"\n ]\n },\n \"CPU\": 64,\n \"ChcId\": \"chc-1a2b3c4d\",\n \"ChcInstanceFamily\": \"CHCS5\",\n \"ChcInstanceFamilyName\": \"高性能计算型CHCS5\",\n \"ChcInstanceType\": \"CHCS5.128C384M\",\n \"CreatedTime\": \"2024-07-19 16:41:20\",\n \"CvmInstanceId\": \"\",\n \"DeployExtraConfig\": {\n \"BootFile\": \"pxelinux.0\",\n \"BootType\": \"x86_uefi\",\n \"MiniOsType\": \"public\",\n \"NextServerAddress\": \"169.254.68.10\"\n },\n \"DeployIp\": \"172.16.0.17\",\n \"DeployMAC\": \"52:54:00:41:8D:7B\",\n \"DeploySecurityGroupIds\": [\n \"sg-8l03md6z\"\n ],\n \"DeployVirtualPrivateCloud\": {\n \"SubnetId\": \"subnet-pad8nabc\",\n \"VpcId\": \"vpc-gbgzjb6r\",\n \"AsVpcGateway\": false,\n \"Ipv6AddressCount\": 0,\n \"PrivateIpAddresses\": [\n \"10.10.2.4\"\n ]\n },\n \"DeviceType\": \"CHCS5\",\n \"Disk\": \"480GB*2/3.84TB*12\",\n \"Gpu\": \"\",\n \"HardwareDescription\": \"64核 256GB 480GB*2/3.84TB*12\",\n \"InstanceName\": \"vlan502\",\n \"InstanceState\": \"PREPARED\",\n \"IsPredefinedType\": true,\n \"Memory\": 256,\n \"NetworkCard\": \"\",\n \"Placement\": {\n \"Zone\": \"ap-guangzhou-2\",\n \"ProjectId\": 0\n },\n \"ResaleAccountId\": \"\",\n \"ResaleAppId\": \"\",\n \"SaleStatus\": \"NOT_FOR_SALE\",\n \"SerialNumber\": \"7DF112345678\",\n \"Tags\": [\n {\n \"Key\": \"
|
181
|
+
"output": "{\n \"Response\": {\n \"ChcHostSet\": [\n {\n \"BmcIp\": \"10.0.0.17\",\n \"BmcMAC\": \"52:54:00:71:B5:A1\",\n \"BmcSecurityGroupIds\": [\n \"sg-8l03md6z\"\n ],\n \"BmcVirtualPrivateCloud\": {\n \"SubnetId\": \"subnet-hmpeps7u\",\n \"VpcId\": \"vpc-b9y7wgix\",\n \"AsVpcGateway\": false,\n \"Ipv6AddressCount\": 0,\n \"PrivateIpAddresses\": [\n \"10.10.2.4\"\n ]\n },\n \"CPU\": 64,\n \"ChcId\": \"chc-1a2b3c4d\",\n \"ChcInstanceFamily\": \"CHCS5\",\n \"ChcInstanceFamilyName\": \"高性能计算型CHCS5\",\n \"ChcInstanceType\": \"CHCS5.128C384M\",\n \"CreatedTime\": \"2024-07-19 16:41:20\",\n \"CvmInstanceId\": \"\",\n \"DeployExtraConfig\": {\n \"BootFile\": \"pxelinux.0\",\n \"BootType\": \"x86_uefi\",\n \"MiniOsType\": \"public\",\n \"NextServerAddress\": \"169.254.68.10\"\n },\n \"DeployIp\": \"172.16.0.17\",\n \"DeployMAC\": \"52:54:00:41:8D:7B\",\n \"DeploySecurityGroupIds\": [\n \"sg-8l03md6z\"\n ],\n \"DeployVirtualPrivateCloud\": {\n \"SubnetId\": \"subnet-pad8nabc\",\n \"VpcId\": \"vpc-gbgzjb6r\",\n \"AsVpcGateway\": false,\n \"Ipv6AddressCount\": 0,\n \"PrivateIpAddresses\": [\n \"10.10.2.4\"\n ]\n },\n \"DeviceType\": \"CHCS5\",\n \"Disk\": \"480GB*2/3.84TB*12\",\n \"Gpu\": \"\",\n \"HardwareDescription\": \"64核 256GB 480GB*2/3.84TB*12\",\n \"InstanceName\": \"vlan502\",\n \"InstanceState\": \"PREPARED\",\n \"IsPredefinedType\": true,\n \"Memory\": 256,\n \"NetworkCard\": \"\",\n \"Placement\": {\n \"Zone\": \"ap-guangzhou-2\",\n \"ProjectId\": 0\n },\n \"ResaleAccountId\": \"\",\n \"ResaleAppId\": \"\",\n \"SaleStatus\": \"NOT_FOR_SALE\",\n \"SerialNumber\": \"7DF112345678\",\n \"Tags\": [\n {\n \"Key\": \"myKey\",\n \"Value\": \"myValue\"\n }\n ],\n \"TenantType\": \"HOSTING\"\n }\n ],\n \"RequestId\": \"d2ab63c0-576f-44c4-b6c1-f519fb58654b\",\n \"TotalCount\": 1\n }\n}",
|
182
182
|
"title": "查看CHC物理服务器实例"
|
183
183
|
}
|
184
184
|
],
|
@@ -242,13 +242,13 @@
|
|
242
242
|
{
|
243
243
|
"document": "已经知道镜像ID,查询镜像相关信息。",
|
244
244
|
"input": "POST / HTTP/1.1\nHost: cvm.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeImages\n<公共请求参数>\n\n{\n \"Filters\": [\n {\n \"Values\": [\n \"img-9qabwvbn\"\n ],\n \"Name\": \"image-id\"\n }\n ]\n}",
|
245
|
-
"output": "{\n \"Response\": {\n \"TotalCount\": 1,\n \"ImageSet\": [\n {\n \"ImageId\": \"img-9qabwvbn\",\n \"OsName\": \"CentOS 7.6 64位\",\n \"ImageSize\": 50,\n \"ImageType\": \"PUBLIC_IMAGE\",\n \"CreatedTime\": \"2020-09-22T00:00:00+00:00\",\n \"ImageState\": \"NORMAL\",\n \"ImageSource\": \"OFFICIAL\",\n \"ImageName\": \"CentOS 7.6 64位\",\n \"ImageDescription\": \"CentOS 7.6 64位\",\n \"ImageCreator\":
|
245
|
+
"output": "{\n \"Response\": {\n \"TotalCount\": 1,\n \"ImageSet\": [\n {\n \"LicenseType\": \"TencentCloud\",\n \"ImageId\": \"img-9qabwvbn\",\n \"OsName\": \"CentOS 7.6 64位\",\n \"ImageSize\": 50,\n \"ImageType\": \"PUBLIC_IMAGE\",\n \"CreatedTime\": \"2020-09-22T00:00:00+00:00\",\n \"ImageState\": \"NORMAL\",\n \"ImageSource\": \"OFFICIAL\",\n \"ImageName\": \"CentOS 7.6 64位\",\n \"ImageDescription\": \"CentOS 7.6 64位\",\n \"ImageCreator\": \"tencent\",\n \"SyncPercent\": 20,\n \"IsSupportCloudinit\": true,\n \"Platform\": \"CentOS\",\n \"Architecture\": \"x86_64\",\n \"SnapshotSet\": [],\n \"Tags\": [\n {\n \"Value\": \"myKey\",\n \"Key\": \"myValue\"\n }\n ]\n }\n ],\n \"RequestId\": \"db145873-3128-4079-8cec-65e05a7c9f89\"\n }\n}",
|
246
246
|
"title": "按镜像ID查询镜像"
|
247
247
|
},
|
248
248
|
{
|
249
249
|
"document": "查询账户下所有私有镜像。",
|
250
250
|
"input": "POST / HTTP/1.1\nHost: cvm.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeImages\n<公共请求参数>\n\n{\n \"Filters\": [\n {\n \"Values\": [\n \"PRIVATE_IMAGE\"\n ],\n \"Name\": \"image-type\"\n }\n ]\n}",
|
251
|
-
"output": "{\n \"Response\": {\n \"TotalCount\": 408,\n \"ImageSet\": [\n {\n \"OsName\": \"CentOS 7.4 64位\",\n \"ImageSize\": 20,\n \"ImageType\": \"PRIVATE_IMAGE\",\n \"CreatedTime\": \"2020-09-22T00:00:00+00:00\",\n \"ImageDescription\": \"test-image\",\n \"ImageSource\": \"CREATE_IMAGE\",\n \"ImageId\": \"img-qlzp4oea\",\n \"ImageName\": \"test-image\",\n \"ImageCreator\": \"3205597606\",\n \"ImageState\": \"NORMAL\",\n \"SyncPercent\": null,\n \"SnapshotSet\": [\n {\n \"SnapshotId\": \"snap-gqa37j2p\",\n \"DiskUsage\": \"SYSTEM_DISK\",\n \"DiskSize\": 20\n }\n ],\n \"Tags\": [\n {\n \"Value\": \"
|
251
|
+
"output": "{\n \"Response\": {\n \"TotalCount\": 408,\n \"ImageSet\": [\n {\n \"LicenseType\": \"TencentCloud\",\n \"OsName\": \"CentOS 7.4 64位\",\n \"ImageSize\": 20,\n \"ImageType\": \"PRIVATE_IMAGE\",\n \"CreatedTime\": \"2020-09-22T00:00:00+00:00\",\n \"ImageDescription\": \"test-image\",\n \"ImageSource\": \"CREATE_IMAGE\",\n \"ImageId\": \"img-qlzp4oea\",\n \"ImageName\": \"test-image\",\n \"ImageCreator\": \"3205597606\",\n \"ImageState\": \"NORMAL\",\n \"SyncPercent\": null,\n \"SnapshotSet\": [\n {\n \"SnapshotId\": \"snap-gqa37j2p\",\n \"DiskUsage\": \"SYSTEM_DISK\",\n \"DiskSize\": 20\n }\n ],\n \"Tags\": [\n {\n \"Value\": \"myKey\",\n \"Key\": \"myValue\"\n }\n ],\n \"Architecture\": \"x86_64\",\n \"Platform\": \"CentOS\",\n \"IsSupportCloudinit\": true\n }\n ],\n \"RequestId\": \"5908394c-5b3f-42e0-a537-8410553890a5\"\n }\n}",
|
252
252
|
"title": "按镜像类型查询镜像"
|
253
253
|
}
|
254
254
|
],
|
@@ -589,7 +589,7 @@
|
|
589
589
|
"ModifyHpcClusterAttribute": [
|
590
590
|
{
|
591
591
|
"document": "修改高性能计算集群名称",
|
592
|
-
"input": "https://cvm.tencentcloudapi.com/?Action=ModifyHpcClusterAttribute\
|
592
|
+
"input": "https://cvm.tencentcloudapi.com/?Action=ModifyHpcClusterAttribute\n&HpcClusterId=hpc-gzahhoy5\n&Name=myCluster\n&<公共请求参数>",
|
593
593
|
"output": "{\n \"Response\": {\n \"RequestId\": \"5834f1a5-cd9c-449d-acba-df1803a8583e\"\n }\n}",
|
594
594
|
"title": "修改高性能计算集群名称"
|
595
595
|
}
|
@@ -2216,6 +2216,15 @@
|
|
2216
2216
|
"required": false,
|
2217
2217
|
"type": "string"
|
2218
2218
|
},
|
2219
|
+
{
|
2220
|
+
"disabled": false,
|
2221
|
+
"document": "购买时长(单位:月),当PayMode值为PrePay则此项配置有意义,默认为1月,取值范围为[1,100]",
|
2222
|
+
"example": "1",
|
2223
|
+
"member": "uint64",
|
2224
|
+
"name": "TimeSpan",
|
2225
|
+
"required": false,
|
2226
|
+
"type": "int"
|
2227
|
+
},
|
2219
2228
|
{
|
2220
2229
|
"disabled": false,
|
2221
2230
|
"document": "标签信息",
|
@@ -113,7 +113,7 @@
|
|
113
113
|
"CreateSyncJob": [
|
114
114
|
{
|
115
115
|
"document": "创建一个同步任务",
|
116
|
-
"input": "POST / HTTP/1.1\nHost: dts.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateSyncJob\n<公共请求参数>\n\n{\n \"Count\": 1,\n \"Specification\": \"Standard\",\n \"PayMode\": \"PrePay\",\n \"DstDatabaseType\": \"mysql\",\n \"DstRegion\": \"ap-guangzhou\",\n \"SrcDatabaseType\": \"mysql\",\n \"SrcRegion\": \"ap-guangzhou\",\n \"ExistedJobId\": \"sync-xascasas\"\n}",
|
116
|
+
"input": "POST / HTTP/1.1\nHost: dts.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateSyncJob\n<公共请求参数>\n\n{\n \"Count\": 1,\n \"TimeSpan\": \"1\",\n \"Specification\": \"Standard\",\n \"PayMode\": \"PrePay\",\n \"DstDatabaseType\": \"mysql\",\n \"DstRegion\": \"ap-guangzhou\",\n \"SrcDatabaseType\": \"mysql\",\n \"SrcRegion\": \"ap-guangzhou\",\n \"ExistedJobId\": \"sync-xascasas\"\n}",
|
117
117
|
"output": "{\n \"Response\": {\n \"JobIds\": [\n \"sync-eivc87yk\"\n ],\n \"RequestId\": \"03a378be-372a-478b-beb7-19e4dd5027e2\"\n }\n}",
|
118
118
|
"title": "创建一个同步任务"
|
119
119
|
}
|
@@ -170,7 +170,7 @@
|
|
170
170
|
{
|
171
171
|
"document": "",
|
172
172
|
"input": "POST / HTTP/1.1\nHost: mna.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: GetGroupDetail\n<公共请求参数>\n\n{\n \"GroupId\": \"cliGrp-xf8rboasb\",\n \"PageSize\": \"10\",\n \"PageNumber\": \"1\"\n}",
|
173
|
-
"output": "{\n \"Response\": {\n \"GroupInfo\": {\n \"GroupId\": \"cliGrp-xf8rboasb\",\n \"GroupName\": \"groupname\",\n \"CreateTime\": \"1711076263000\",\n \"UpdateTime\": \"1711076263000\",\n \"Description\": \"描述\",\n \"DeviceNum\": 0\n },\n \"DeviceInfos\": [\n {\n \"DeviceId\": \"mna-detr244\",\n \"DeviceName\": \"name\",\n \"CreateTime\": \"1711076263000\",\n \"LastTime\": \"1711076263000\",\n \"Remark\": \"mark\",\n \"AccessScope\": 0,\n \"LicensePayMode\": 0,\n \"Payer\": 0,\n \"GroupId\": \"cliGrp-xf8rboasb\",\n \"GroupName\": \"name2\"\n }\n ],\n \"Length\": 0,\n \"TotalPage\": 0,\n \"RequestId\": \"fd429f79-9914-46e7-94c3-c0695ee1c8b9\"\n }\n}",
|
173
|
+
"output": "{\n \"Response\": {\n \"GroupInfo\": {\n \"GroupId\": \"cliGrp-xf8rboasb\",\n \"GroupName\": \"groupname\",\n \"CreateTime\": \"1711076263000\",\n \"UpdateTime\": \"1711076263000\",\n \"Description\": \"GetGroupDetail描述\",\n \"DeviceNum\": 0\n },\n \"DeviceInfos\": [\n {\n \"DeviceId\": \"mna-detr244\",\n \"DeviceName\": \"name\",\n \"CreateTime\": \"1711076263000\",\n \"LastTime\": \"1711076263000\",\n \"Remark\": \"mark\",\n \"AccessScope\": 0,\n \"LicensePayMode\": 0,\n \"Payer\": 0,\n \"GroupId\": \"cliGrp-xf8rboasb\",\n \"GroupName\": \"name2\"\n }\n ],\n \"Length\": 0,\n \"TotalPage\": 0,\n \"RequestId\": \"fd429f79-9914-46e7-94c3-c0695ee1c8b9\"\n }\n}",
|
174
174
|
"title": "示例1"
|
175
175
|
}
|
176
176
|
],
|
tccli/services/ocr/ocr_client.py
CHANGED
@@ -121,7 +121,7 @@ def doImageEnhancement(args, parsed_globals):
|
|
121
121
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
122
122
|
|
123
123
|
|
124
|
-
def
|
124
|
+
def doGeneralBasicOCR(args, parsed_globals):
|
125
125
|
g_param = parse_global_arg(parsed_globals)
|
126
126
|
|
127
127
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -150,11 +150,11 @@ def doSmartStructuralOCRV2(args, parsed_globals):
|
|
150
150
|
client = mod.OcrClient(cred, g_param[OptionsDefine.Region], profile)
|
151
151
|
client._sdkVersion += ("_CLI_" + __version__)
|
152
152
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
153
|
-
model = models.
|
153
|
+
model = models.GeneralBasicOCRRequest()
|
154
154
|
model.from_json_string(json.dumps(args))
|
155
155
|
start_time = time.time()
|
156
156
|
while True:
|
157
|
-
rsp = client.
|
157
|
+
rsp = client.GeneralBasicOCR(model)
|
158
158
|
result = rsp.to_json_string()
|
159
159
|
try:
|
160
160
|
json_obj = json.loads(result)
|
@@ -173,7 +173,7 @@ def doSmartStructuralOCRV2(args, parsed_globals):
|
|
173
173
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
174
174
|
|
175
175
|
|
176
|
-
def
|
176
|
+
def doSmartStructuralOCRV2(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 doEnterpriseLicenseOCR(args, parsed_globals):
|
|
202
202
|
client = mod.OcrClient(cred, g_param[OptionsDefine.Region], profile)
|
203
203
|
client._sdkVersion += ("_CLI_" + __version__)
|
204
204
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
205
|
-
model = models.
|
205
|
+
model = models.SmartStructuralOCRV2Request()
|
206
206
|
model.from_json_string(json.dumps(args))
|
207
207
|
start_time = time.time()
|
208
208
|
while True:
|
209
|
-
rsp = client.
|
209
|
+
rsp = client.SmartStructuralOCRV2(model)
|
210
210
|
result = rsp.to_json_string()
|
211
211
|
try:
|
212
212
|
json_obj = json.loads(result)
|
@@ -225,7 +225,7 @@ def doEnterpriseLicenseOCR(args, parsed_globals):
|
|
225
225
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
226
226
|
|
227
227
|
|
228
|
-
def
|
228
|
+
def doEnterpriseLicenseOCR(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 doBusinessCardOCR(args, parsed_globals):
|
|
254
254
|
client = mod.OcrClient(cred, g_param[OptionsDefine.Region], profile)
|
255
255
|
client._sdkVersion += ("_CLI_" + __version__)
|
256
256
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
257
|
-
model = models.
|
257
|
+
model = models.EnterpriseLicenseOCRRequest()
|
258
258
|
model.from_json_string(json.dumps(args))
|
259
259
|
start_time = time.time()
|
260
260
|
while True:
|
261
|
-
rsp = client.
|
261
|
+
rsp = client.EnterpriseLicenseOCR(model)
|
262
262
|
result = rsp.to_json_string()
|
263
263
|
try:
|
264
264
|
json_obj = json.loads(result)
|
@@ -277,7 +277,7 @@ def doBusinessCardOCR(args, parsed_globals):
|
|
277
277
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
278
278
|
|
279
279
|
|
280
|
-
def
|
280
|
+
def doBusinessCardOCR(args, parsed_globals):
|
281
281
|
g_param = parse_global_arg(parsed_globals)
|
282
282
|
|
283
283
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -306,11 +306,11 @@ def doIDCardOCR(args, parsed_globals):
|
|
306
306
|
client = mod.OcrClient(cred, g_param[OptionsDefine.Region], profile)
|
307
307
|
client._sdkVersion += ("_CLI_" + __version__)
|
308
308
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
309
|
-
model = models.
|
309
|
+
model = models.BusinessCardOCRRequest()
|
310
310
|
model.from_json_string(json.dumps(args))
|
311
311
|
start_time = time.time()
|
312
312
|
while True:
|
313
|
-
rsp = client.
|
313
|
+
rsp = client.BusinessCardOCR(model)
|
314
314
|
result = rsp.to_json_string()
|
315
315
|
try:
|
316
316
|
json_obj = json.loads(result)
|
@@ -329,7 +329,7 @@ def doIDCardOCR(args, parsed_globals):
|
|
329
329
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
330
330
|
|
331
331
|
|
332
|
-
def
|
332
|
+
def doIDCardOCR(args, parsed_globals):
|
333
333
|
g_param = parse_global_arg(parsed_globals)
|
334
334
|
|
335
335
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -358,11 +358,11 @@ def doPassportOCR(args, parsed_globals):
|
|
358
358
|
client = mod.OcrClient(cred, g_param[OptionsDefine.Region], profile)
|
359
359
|
client._sdkVersion += ("_CLI_" + __version__)
|
360
360
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
361
|
-
model = models.
|
361
|
+
model = models.IDCardOCRRequest()
|
362
362
|
model.from_json_string(json.dumps(args))
|
363
363
|
start_time = time.time()
|
364
364
|
while True:
|
365
|
-
rsp = client.
|
365
|
+
rsp = client.IDCardOCR(model)
|
366
366
|
result = rsp.to_json_string()
|
367
367
|
try:
|
368
368
|
json_obj = json.loads(result)
|
@@ -381,7 +381,7 @@ def doPassportOCR(args, parsed_globals):
|
|
381
381
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
382
382
|
|
383
383
|
|
384
|
-
def
|
384
|
+
def doPassportOCR(args, parsed_globals):
|
385
385
|
g_param = parse_global_arg(parsed_globals)
|
386
386
|
|
387
387
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -410,11 +410,11 @@ def doLicensePlateOCR(args, parsed_globals):
|
|
410
410
|
client = mod.OcrClient(cred, g_param[OptionsDefine.Region], profile)
|
411
411
|
client._sdkVersion += ("_CLI_" + __version__)
|
412
412
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
413
|
-
model = models.
|
413
|
+
model = models.PassportOCRRequest()
|
414
414
|
model.from_json_string(json.dumps(args))
|
415
415
|
start_time = time.time()
|
416
416
|
while True:
|
417
|
-
rsp = client.
|
417
|
+
rsp = client.PassportOCR(model)
|
418
418
|
result = rsp.to_json_string()
|
419
419
|
try:
|
420
420
|
json_obj = json.loads(result)
|
@@ -433,7 +433,7 @@ def doLicensePlateOCR(args, parsed_globals):
|
|
433
433
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
434
434
|
|
435
435
|
|
436
|
-
def
|
436
|
+
def doLicensePlateOCR(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 doMLIDCardOCR(args, parsed_globals):
|
|
462
462
|
client = mod.OcrClient(cred, g_param[OptionsDefine.Region], profile)
|
463
463
|
client._sdkVersion += ("_CLI_" + __version__)
|
464
464
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
465
|
-
model = models.
|
465
|
+
model = models.LicensePlateOCRRequest()
|
466
466
|
model.from_json_string(json.dumps(args))
|
467
467
|
start_time = time.time()
|
468
468
|
while True:
|
469
|
-
rsp = client.
|
469
|
+
rsp = client.LicensePlateOCR(model)
|
470
470
|
result = rsp.to_json_string()
|
471
471
|
try:
|
472
472
|
json_obj = json.loads(result)
|
@@ -485,7 +485,7 @@ def doMLIDCardOCR(args, parsed_globals):
|
|
485
485
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
486
486
|
|
487
487
|
|
488
|
-
def
|
488
|
+
def doMLIDCardOCR(args, parsed_globals):
|
489
489
|
g_param = parse_global_arg(parsed_globals)
|
490
490
|
|
491
491
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -514,11 +514,11 @@ def doVatInvoiceVerifyNew(args, parsed_globals):
|
|
514
514
|
client = mod.OcrClient(cred, g_param[OptionsDefine.Region], profile)
|
515
515
|
client._sdkVersion += ("_CLI_" + __version__)
|
516
516
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
517
|
-
model = models.
|
517
|
+
model = models.MLIDCardOCRRequest()
|
518
518
|
model.from_json_string(json.dumps(args))
|
519
519
|
start_time = time.time()
|
520
520
|
while True:
|
521
|
-
rsp = client.
|
521
|
+
rsp = client.MLIDCardOCR(model)
|
522
522
|
result = rsp.to_json_string()
|
523
523
|
try:
|
524
524
|
json_obj = json.loads(result)
|
@@ -537,7 +537,7 @@ def doVatInvoiceVerifyNew(args, parsed_globals):
|
|
537
537
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
538
538
|
|
539
539
|
|
540
|
-
def
|
540
|
+
def doVatInvoiceVerifyNew(args, parsed_globals):
|
541
541
|
g_param = parse_global_arg(parsed_globals)
|
542
542
|
|
543
543
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -566,11 +566,11 @@ def doQrcodeOCR(args, parsed_globals):
|
|
566
566
|
client = mod.OcrClient(cred, g_param[OptionsDefine.Region], profile)
|
567
567
|
client._sdkVersion += ("_CLI_" + __version__)
|
568
568
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
569
|
-
model = models.
|
569
|
+
model = models.VatInvoiceVerifyNewRequest()
|
570
570
|
model.from_json_string(json.dumps(args))
|
571
571
|
start_time = time.time()
|
572
572
|
while True:
|
573
|
-
rsp = client.
|
573
|
+
rsp = client.VatInvoiceVerifyNew(model)
|
574
574
|
result = rsp.to_json_string()
|
575
575
|
try:
|
576
576
|
json_obj = json.loads(result)
|
@@ -589,7 +589,7 @@ def doQrcodeOCR(args, parsed_globals):
|
|
589
589
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
590
590
|
|
591
591
|
|
592
|
-
def
|
592
|
+
def doQrcodeOCR(args, parsed_globals):
|
593
593
|
g_param = parse_global_arg(parsed_globals)
|
594
594
|
|
595
595
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -618,11 +618,11 @@ def doGeneralAccurateOCR(args, parsed_globals):
|
|
618
618
|
client = mod.OcrClient(cred, g_param[OptionsDefine.Region], profile)
|
619
619
|
client._sdkVersion += ("_CLI_" + __version__)
|
620
620
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
621
|
-
model = models.
|
621
|
+
model = models.QrcodeOCRRequest()
|
622
622
|
model.from_json_string(json.dumps(args))
|
623
623
|
start_time = time.time()
|
624
624
|
while True:
|
625
|
-
rsp = client.
|
625
|
+
rsp = client.QrcodeOCR(model)
|
626
626
|
result = rsp.to_json_string()
|
627
627
|
try:
|
628
628
|
json_obj = json.loads(result)
|
@@ -641,7 +641,7 @@ def doGeneralAccurateOCR(args, parsed_globals):
|
|
641
641
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
642
642
|
|
643
643
|
|
644
|
-
def
|
644
|
+
def doGeneralAccurateOCR(args, parsed_globals):
|
645
645
|
g_param = parse_global_arg(parsed_globals)
|
646
646
|
|
647
647
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -670,11 +670,11 @@ def doFlightInvoiceOCR(args, parsed_globals):
|
|
670
670
|
client = mod.OcrClient(cred, g_param[OptionsDefine.Region], profile)
|
671
671
|
client._sdkVersion += ("_CLI_" + __version__)
|
672
672
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
673
|
-
model = models.
|
673
|
+
model = models.GeneralAccurateOCRRequest()
|
674
674
|
model.from_json_string(json.dumps(args))
|
675
675
|
start_time = time.time()
|
676
676
|
while True:
|
677
|
-
rsp = client.
|
677
|
+
rsp = client.GeneralAccurateOCR(model)
|
678
678
|
result = rsp.to_json_string()
|
679
679
|
try:
|
680
680
|
json_obj = json.loads(result)
|
@@ -1993,7 +1993,7 @@ def doWaybillOCR(args, parsed_globals):
|
|
1993
1993
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
1994
1994
|
|
1995
1995
|
|
1996
|
-
def
|
1996
|
+
def doFlightInvoiceOCR(args, parsed_globals):
|
1997
1997
|
g_param = parse_global_arg(parsed_globals)
|
1998
1998
|
|
1999
1999
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -2022,11 +2022,11 @@ def doGeneralBasicOCR(args, parsed_globals):
|
|
2022
2022
|
client = mod.OcrClient(cred, g_param[OptionsDefine.Region], profile)
|
2023
2023
|
client._sdkVersion += ("_CLI_" + __version__)
|
2024
2024
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
2025
|
-
model = models.
|
2025
|
+
model = models.FlightInvoiceOCRRequest()
|
2026
2026
|
model.from_json_string(json.dumps(args))
|
2027
2027
|
start_time = time.time()
|
2028
2028
|
while True:
|
2029
|
-
rsp = client.
|
2029
|
+
rsp = client.FlightInvoiceOCR(model)
|
2030
2030
|
result = rsp.to_json_string()
|
2031
2031
|
try:
|
2032
2032
|
json_obj = json.loads(result)
|
@@ -3449,58 +3449,6 @@ def doVehicleRegCertOCR(args, parsed_globals):
|
|
3449
3449
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
3450
3450
|
|
3451
3451
|
|
3452
|
-
def doBankCardOCR(args, parsed_globals):
|
3453
|
-
g_param = parse_global_arg(parsed_globals)
|
3454
|
-
|
3455
|
-
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
3456
|
-
cred = credential.CVMRoleCredential()
|
3457
|
-
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
3458
|
-
cred = credential.STSAssumeRoleCredential(
|
3459
|
-
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
3460
|
-
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
3461
|
-
)
|
3462
|
-
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):
|
3463
|
-
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
3464
|
-
else:
|
3465
|
-
cred = credential.Credential(
|
3466
|
-
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
3467
|
-
)
|
3468
|
-
http_profile = HttpProfile(
|
3469
|
-
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
3470
|
-
reqMethod="POST",
|
3471
|
-
endpoint=g_param[OptionsDefine.Endpoint],
|
3472
|
-
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
3473
|
-
)
|
3474
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
3475
|
-
if g_param[OptionsDefine.Language]:
|
3476
|
-
profile.language = g_param[OptionsDefine.Language]
|
3477
|
-
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
3478
|
-
client = mod.OcrClient(cred, g_param[OptionsDefine.Region], profile)
|
3479
|
-
client._sdkVersion += ("_CLI_" + __version__)
|
3480
|
-
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
3481
|
-
model = models.BankCardOCRRequest()
|
3482
|
-
model.from_json_string(json.dumps(args))
|
3483
|
-
start_time = time.time()
|
3484
|
-
while True:
|
3485
|
-
rsp = client.BankCardOCR(model)
|
3486
|
-
result = rsp.to_json_string()
|
3487
|
-
try:
|
3488
|
-
json_obj = json.loads(result)
|
3489
|
-
except TypeError as e:
|
3490
|
-
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
3491
|
-
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
3492
|
-
break
|
3493
|
-
cur_time = time.time()
|
3494
|
-
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
3495
|
-
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
3496
|
-
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
3497
|
-
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
3498
|
-
else:
|
3499
|
-
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
3500
|
-
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
3501
|
-
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
3502
|
-
|
3503
|
-
|
3504
3452
|
def doCarInvoiceOCR(args, parsed_globals):
|
3505
3453
|
g_param = parse_global_arg(parsed_globals)
|
3506
3454
|
|
@@ -4450,6 +4398,7 @@ MODELS_MAP = {
|
|
4450
4398
|
ACTION_MAP = {
|
4451
4399
|
"InsuranceBillOCR": doInsuranceBillOCR,
|
4452
4400
|
"ImageEnhancement": doImageEnhancement,
|
4401
|
+
"GeneralBasicOCR": doGeneralBasicOCR,
|
4453
4402
|
"SmartStructuralOCRV2": doSmartStructuralOCRV2,
|
4454
4403
|
"EnterpriseLicenseOCR": doEnterpriseLicenseOCR,
|
4455
4404
|
"BusinessCardOCR": doBusinessCardOCR,
|
@@ -4460,7 +4409,6 @@ ACTION_MAP = {
|
|
4460
4409
|
"VatInvoiceVerifyNew": doVatInvoiceVerifyNew,
|
4461
4410
|
"QrcodeOCR": doQrcodeOCR,
|
4462
4411
|
"GeneralAccurateOCR": doGeneralAccurateOCR,
|
4463
|
-
"FlightInvoiceOCR": doFlightInvoiceOCR,
|
4464
4412
|
"MixedInvoiceOCR": doMixedInvoiceOCR,
|
4465
4413
|
"RecognizeContainerOCR": doRecognizeContainerOCR,
|
4466
4414
|
"RecognizeTableAccurateOCR": doRecognizeTableAccurateOCR,
|
@@ -4486,7 +4434,7 @@ ACTION_MAP = {
|
|
4486
4434
|
"VatInvoiceOCR": doVatInvoiceOCR,
|
4487
4435
|
"CreateAIFormTask": doCreateAIFormTask,
|
4488
4436
|
"WaybillOCR": doWaybillOCR,
|
4489
|
-
"
|
4437
|
+
"FlightInvoiceOCR": doFlightInvoiceOCR,
|
4490
4438
|
"PermitOCR": doPermitOCR,
|
4491
4439
|
"RecognizeTableOCR": doRecognizeTableOCR,
|
4492
4440
|
"RecognizeValidIDCardOCR": doRecognizeValidIDCardOCR,
|
@@ -4514,7 +4462,6 @@ ACTION_MAP = {
|
|
4514
4462
|
"RecognizeMedicalInvoiceOCR": doRecognizeMedicalInvoiceOCR,
|
4515
4463
|
"RideHailingDriverLicenseOCR": doRideHailingDriverLicenseOCR,
|
4516
4464
|
"VehicleRegCertOCR": doVehicleRegCertOCR,
|
4517
|
-
"BankCardOCR": doBankCardOCR,
|
4518
4465
|
"CarInvoiceOCR": doCarInvoiceOCR,
|
4519
4466
|
"RecognizeForeignPermanentResidentIdCard": doRecognizeForeignPermanentResidentIdCard,
|
4520
4467
|
"MainlandPermitOCR": doMainlandPermitOCR,
|