tccli 3.0.1391.1__py2.py3-none-any.whl → 3.0.1414.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.

Potentially problematic release.


This version of tccli might be problematic. Click here for more details.

Files changed (226) hide show
  1. tccli/__init__.py +1 -1
  2. tccli/services/__init__.py +2 -1
  3. tccli/services/ai3d/v20250513/api.json +22 -4
  4. tccli/services/aiart/aiart_client.py +173 -67
  5. tccli/services/aiart/v20221229/api.json +193 -0
  6. tccli/services/aiart/v20221229/examples.json +16 -0
  7. tccli/services/apm/apm_client.py +53 -0
  8. tccli/services/apm/v20210622/api.json +354 -0
  9. tccli/services/apm/v20210622/examples.json +8 -0
  10. tccli/services/asr/v20190614/api.json +3 -3
  11. tccli/services/autoscaling/v20180419/api.json +24 -2
  12. tccli/services/batch/v20170312/api.json +1 -1
  13. tccli/services/bda/bda_client.py +15 -704
  14. tccli/services/bda/v20200324/api.json +107 -1819
  15. tccli/services/bda/v20200324/examples.json +0 -176
  16. tccli/services/billing/billing_client.py +326 -8
  17. tccli/services/billing/v20180709/api.json +2200 -255
  18. tccli/services/billing/v20180709/examples.json +48 -0
  19. tccli/services/cam/v20190116/api.json +4 -4
  20. tccli/services/captcha/v20190722/api.json +3 -3
  21. tccli/services/cat/v20180409/api.json +7 -7
  22. tccli/services/ccc/ccc_client.py +235 -76
  23. tccli/services/ccc/v20200210/api.json +502 -18
  24. tccli/services/ccc/v20200210/examples.json +24 -0
  25. tccli/services/cdb/cdb_client.py +106 -0
  26. tccli/services/cdb/v20170320/api.json +257 -44
  27. tccli/services/cdb/v20170320/examples.json +22 -6
  28. tccli/services/cdn/cdn_client.py +4 -163
  29. tccli/services/cdn/v20180606/api.json +61 -310
  30. tccli/services/cdn/v20180606/examples.json +1 -25
  31. tccli/services/cdwdoris/v20211228/api.json +51 -12
  32. tccli/services/cdwpg/v20201230/api.json +11 -1
  33. tccli/services/cdwpg/v20201230/examples.json +1 -1
  34. tccli/services/cfg/v20210820/api.json +11 -1
  35. tccli/services/cfs/cfs_client.py +41 -94
  36. tccli/services/cfs/v20190719/api.json +171 -55
  37. tccli/services/cfs/v20190719/examples.json +1 -9
  38. tccli/services/cfw/v20190904/api.json +122 -10
  39. tccli/services/ckafka/ckafka_client.py +188 -29
  40. tccli/services/ckafka/v20190819/api.json +277 -4
  41. tccli/services/ckafka/v20190819/examples.json +25 -1
  42. tccli/services/clb/clb_client.py +0 -265
  43. tccli/services/clb/v20180317/api.json +130 -296
  44. tccli/services/clb/v20180317/examples.json +12 -40
  45. tccli/services/cloudapp/v20220530/api.json +55 -0
  46. tccli/services/cloudaudit/v20190319/api.json +11 -0
  47. tccli/services/cloudhsm/v20191112/api.json +10 -10
  48. tccli/services/cls/v20201016/api.json +63 -45
  49. tccli/services/cls/v20201016/examples.json +10 -4
  50. tccli/services/csip/v20221121/api.json +53 -3
  51. tccli/services/ctem/v20231128/api.json +320 -0
  52. tccli/services/ctem/v20231128/examples.json +3 -3
  53. tccli/services/cvm/cvm_client.py +0 -212
  54. tccli/services/cvm/v20170312/api.json +91 -843
  55. tccli/services/cvm/v20170312/examples.json +32 -58
  56. tccli/services/cynosdb/cynosdb_client.py +167 -8
  57. tccli/services/cynosdb/v20190107/api.json +1126 -148
  58. tccli/services/cynosdb/v20190107/examples.json +31 -7
  59. tccli/services/dbbrain/dbbrain_client.py +246 -87
  60. tccli/services/dbbrain/v20191016/api.json +74 -62
  61. tccli/services/dbbrain/v20191016/examples.json +1 -1
  62. tccli/services/dbbrain/v20210527/api.json +601 -177
  63. tccli/services/dbbrain/v20210527/examples.json +28 -4
  64. tccli/services/dc/v20180410/api.json +101 -3
  65. tccli/services/dcdb/v20180411/api.json +1 -1
  66. tccli/services/dlc/dlc_client.py +53 -0
  67. tccli/services/dlc/v20210125/api.json +237 -24
  68. tccli/services/dlc/v20210125/examples.json +12 -4
  69. tccli/services/dnspod/dnspod_client.py +106 -0
  70. tccli/services/dnspod/v20210323/api.json +126 -20
  71. tccli/services/dnspod/v20210323/examples.json +17 -7
  72. tccli/services/dsgc/v20190723/api.json +73 -15
  73. tccli/services/dts/v20180330/api.json +4 -4
  74. tccli/services/dts/v20211206/api.json +408 -127
  75. tccli/services/dts/v20211206/examples.json +15 -9
  76. tccli/services/eb/v20210416/api.json +41 -1
  77. tccli/services/eb/v20210416/examples.json +1 -1
  78. tccli/services/emr/v20190103/api.json +56 -9
  79. tccli/services/emr/v20190103/examples.json +5 -5
  80. tccli/services/es/es_client.py +273 -8
  81. tccli/services/es/v20180416/api.json +845 -33
  82. tccli/services/es/v20180416/examples.json +33 -1
  83. tccli/services/es/v20250101/api.json +135 -2
  84. tccli/services/es/v20250101/examples.json +8 -0
  85. tccli/services/ess/ess_client.py +509 -32
  86. tccli/services/ess/v20201111/api.json +1366 -113
  87. tccli/services/ess/v20201111/examples.json +94 -10
  88. tccli/services/essbasic/v20210526/api.json +265 -27
  89. tccli/services/essbasic/v20210526/examples.json +12 -12
  90. tccli/services/facefusion/v20220927/api.json +1 -1
  91. tccli/services/gaap/v20180529/api.json +18 -8
  92. tccli/services/gme/gme_client.py +53 -0
  93. tccli/services/gme/v20180711/api.json +241 -1
  94. tccli/services/gme/v20180711/examples.json +8 -0
  95. tccli/services/gs/gs_client.py +216 -4
  96. tccli/services/gs/v20191118/api.json +202 -1
  97. tccli/services/gs/v20191118/examples.json +32 -0
  98. tccli/services/gwlb/gwlb_client.py +53 -0
  99. tccli/services/gwlb/v20240906/api.json +150 -0
  100. tccli/services/gwlb/v20240906/examples.json +8 -0
  101. tccli/services/hai/v20230812/api.json +5 -5
  102. tccli/services/hunyuan/v20230901/api.json +3 -3
  103. tccli/services/hunyuan/v20230901/examples.json +1 -1
  104. tccli/services/iai/v20180301/api.json +227 -207
  105. tccli/services/iai/v20180301/examples.json +26 -26
  106. tccli/services/iai/v20200303/api.json +4 -4
  107. tccli/services/iai/v20200303/examples.json +1 -1
  108. tccli/services/ioa/ioa_client.py +265 -0
  109. tccli/services/ioa/v20220601/api.json +781 -85
  110. tccli/services/ioa/v20220601/examples.json +46 -0
  111. tccli/services/iotexplorer/iotexplorer_client.py +387 -16
  112. tccli/services/iotexplorer/v20190423/api.json +1183 -63
  113. tccli/services/iotexplorer/v20190423/examples.json +92 -0
  114. tccli/services/keewidb/v20220308/api.json +69 -17
  115. tccli/services/keewidb/v20220308/examples.json +5 -5
  116. tccli/services/lcic/v20220817/api.json +61 -15
  117. tccli/services/lighthouse/v20200324/api.json +193 -24
  118. tccli/services/lighthouse/v20200324/examples.json +9 -3
  119. tccli/services/live/v20180801/api.json +6 -6
  120. tccli/services/live/v20180801/examples.json +7 -1
  121. tccli/services/lke/lke_client.py +40 -93
  122. tccli/services/lke/v20231130/api.json +943 -390
  123. tccli/services/lke/v20231130/examples.json +38 -46
  124. tccli/services/lkeap/v20240522/api.json +39 -12
  125. tccli/services/lkeap/v20240522/examples.json +12 -0
  126. tccli/services/mariadb/v20170312/api.json +1 -1
  127. tccli/services/mna/v20210119/api.json +11 -2
  128. tccli/services/mna/v20210119/examples.json +1 -1
  129. tccli/services/mongodb/mongodb_client.py +334 -16
  130. tccli/services/mongodb/v20190725/api.json +1092 -383
  131. tccli/services/mongodb/v20190725/examples.json +69 -21
  132. tccli/services/monitor/monitor_client.py +106 -0
  133. tccli/services/monitor/v20180724/api.json +383 -12
  134. tccli/services/monitor/v20180724/examples.json +24 -2
  135. tccli/services/mps/mps_client.py +220 -8
  136. tccli/services/mps/v20190612/api.json +1999 -179
  137. tccli/services/mps/v20190612/examples.json +56 -6
  138. tccli/services/mqtt/v20240516/api.json +10 -0
  139. tccli/services/mqtt/v20240516/examples.json +3 -9
  140. tccli/services/nlp/v20190408/api.json +6 -6
  141. tccli/services/oceanus/oceanus_client.py +318 -0
  142. tccli/services/oceanus/v20190422/api.json +461 -26
  143. tccli/services/oceanus/v20190422/examples.json +50 -2
  144. tccli/services/ocr/ocr_client.py +41 -253
  145. tccli/services/ocr/v20181119/api.json +153 -659
  146. tccli/services/ocr/v20181119/examples.json +8 -40
  147. tccli/services/omics/v20221128/api.json +90 -7
  148. tccli/services/organization/v20210331/api.json +46 -7
  149. tccli/services/postgres/v20170312/api.json +333 -77
  150. tccli/services/postgres/v20170312/examples.json +37 -31
  151. tccli/services/privatedns/privatedns_client.py +641 -58
  152. tccli/services/privatedns/v20201028/api.json +930 -19
  153. tccli/services/privatedns/v20201028/examples.json +91 -3
  154. tccli/services/pts/v20210728/api.json +2 -2
  155. tccli/services/redis/v20180412/api.json +303 -109
  156. tccli/services/redis/v20180412/examples.json +12 -12
  157. tccli/services/region/v20220627/api.json +1 -1
  158. tccli/services/rum/v20210622/api.json +22 -4
  159. tccli/services/rum/v20210622/examples.json +2 -2
  160. tccli/services/sms/v20190711/api.json +12 -12
  161. tccli/services/sms/v20190711/examples.json +9 -3
  162. tccli/services/sms/v20210111/api.json +13 -13
  163. tccli/services/sms/v20210111/examples.json +8 -2
  164. tccli/services/sqlserver/v20180328/api.json +46 -7
  165. tccli/services/sqlserver/v20180328/examples.json +2 -2
  166. tccli/services/ssl/v20191205/api.json +28 -0
  167. tccli/services/svp/v20240125/api.json +14 -4
  168. tccli/services/tag/v20180813/api.json +3 -3
  169. tccli/services/tat/v20201028/api.json +22 -3
  170. tccli/services/tcb/v20180608/api.json +1 -1
  171. tccli/services/tcss/tcss_client.py +228 -69
  172. tccli/services/tcss/v20201101/api.json +273 -25
  173. tccli/services/tcss/v20201101/examples.json +26 -2
  174. tccli/services/teo/teo_client.py +317 -52
  175. tccli/services/teo/v20220901/api.json +1824 -242
  176. tccli/services/teo/v20220901/examples.json +109 -21
  177. tccli/services/thpc/thpc_client.py +57 -4
  178. tccli/services/thpc/v20230321/api.json +163 -21
  179. tccli/services/thpc/v20230321/examples.json +13 -5
  180. tccli/services/tione/tione_client.py +163 -4
  181. tccli/services/tione/v20211111/api.json +285 -21
  182. tccli/services/tione/v20211111/examples.json +27 -3
  183. tccli/services/tke/tke_client.py +8 -8
  184. tccli/services/tke/v20180525/api.json +168 -130
  185. tccli/services/tke/v20180525/examples.json +20 -20
  186. tccli/services/tke/v20220501/api.json +215 -3
  187. tccli/services/tke/v20220501/examples.json +8 -0
  188. tccli/services/tms/tms_client.py +106 -0
  189. tccli/services/tms/v20201229/api.json +249 -3
  190. tccli/services/tms/v20201229/examples.json +16 -0
  191. tccli/services/tmt/v20180321/api.json +78 -1
  192. tccli/services/trabbit/v20230418/api.json +271 -4
  193. tccli/services/trabbit/v20230418/examples.json +9 -3
  194. tccli/services/trocket/v20230308/api.json +4 -4
  195. tccli/services/trro/trro_client.py +106 -0
  196. tccli/services/trro/v20220325/api.json +456 -0
  197. tccli/services/trro/v20220325/examples.json +16 -0
  198. tccli/services/trtc/v20190722/api.json +197 -49
  199. tccli/services/trtc/v20190722/examples.json +4 -4
  200. tccli/services/tse/v20201207/api.json +69 -2
  201. tccli/services/tse/v20201207/examples.json +3 -3
  202. tccli/services/tsf/v20180326/api.json +70 -7
  203. tccli/services/tsf/v20180326/examples.json +2 -2
  204. tccli/services/vclm/v20240523/api.json +145 -0
  205. tccli/services/vclm/v20240523/examples.json +16 -0
  206. tccli/services/vclm/vclm_client.py +106 -0
  207. tccli/services/vcube/v20220410/api.json +1 -1
  208. tccli/services/vod/v20180717/api.json +7 -7
  209. tccli/services/vpc/v20170312/api.json +1216 -70
  210. tccli/services/vpc/v20170312/examples.json +139 -3
  211. tccli/services/vpc/vpc_client.py +1023 -122
  212. tccli/services/vrs/v20200824/api.json +11 -11
  213. tccli/services/vrs/v20200824/examples.json +1 -1
  214. tccli/services/vtc/v20240223/api.json +14 -14
  215. tccli/services/waf/v20180125/api.json +812 -143
  216. tccli/services/waf/v20180125/examples.json +2 -2
  217. tccli/services/wedata/v20210820/api.json +1281 -601
  218. tccli/services/wedata/v20210820/examples.json +127 -157
  219. tccli/services/wedata/v20250806/api.json +19335 -0
  220. tccli/services/wedata/v20250806/examples.json +999 -0
  221. tccli/services/wedata/wedata_client.py +7072 -1131
  222. {tccli-3.0.1391.1.dist-info → tccli-3.0.1414.1.dist-info}/METADATA +9 -7
  223. {tccli-3.0.1391.1.dist-info → tccli-3.0.1414.1.dist-info}/RECORD +226 -224
  224. {tccli-3.0.1391.1.dist-info → tccli-3.0.1414.1.dist-info}/WHEEL +1 -1
  225. {tccli-3.0.1391.1.dist-info → tccli-3.0.1414.1.dist-info}/entry_points.txt +0 -0
  226. {tccli-3.0.1391.1.dist-info/license_files → tccli-3.0.1414.1.dist-info/licenses}/LICENSE +0 -0
@@ -1,5 +1,13 @@
1
1
  {
2
2
  "actions": {
3
+ "CheckConnectorName": [
4
+ {
5
+ "document": "",
6
+ "input": "POST / HTTP/1.1\nHost: oceanus.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CheckConnectorName\n<公共请求参数>\n\n{\n \"Name\": \"true\"\n}",
7
+ "output": "{\n \"Response\": {\n \"Exists\": true,\n \"RequestId\": \"5f124d6f-b035-4d29-9467-dd62eccdbf23\"\n }\n}",
8
+ "title": "CheckConnectorName"
9
+ }
10
+ ],
3
11
  "CheckSavepoint": [
4
12
  {
5
13
  "document": "",
@@ -22,10 +30,18 @@
22
30
  "title": "复制作业"
23
31
  }
24
32
  ],
33
+ "CreateConnector": [
34
+ {
35
+ "document": "",
36
+ "input": "POST / HTTP/1.1\nHost: oceanus.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateConnector\n<公共请求参数>\n\n{\n \"ConnectionMethod\": \"1\",\n \"Connector\": \"kafka\",\n \"ResourceId\": \"cql-n8yaia0y\",\n \"VersionId\": 1,\n \"WorkSpaceId\": \"2000\"\n}",
37
+ "output": "{\n \"Response\": {\n \"RequestId\": \"5f124d6f-b035-4d29-9467-dd62eccdbf23\"\n }\n}",
38
+ "title": "创建Connector"
39
+ }
40
+ ],
25
41
  "CreateFolder": [
26
42
  {
27
43
  "document": "",
28
- "input": "POST / HTTP/1.1\nHost: oceanus.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateFolder\n<公共请求参数>\n\n{\n \"FolderName\": \"test\",\n \"WorkSpaceId\": \"space-1257058945ap-guangzhou\",\n \"FolderType\": 0,\n \"ParentId\": \"root\"\n}",
44
+ "input": "POST / HTTP/1.1\nHost: oceanus.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateFolder\n<公共请求参数>\n\n{\n \"FolderName\": \"sql\",\n \"WorkSpaceId\": \"space-1257058945ap-guangzhou\",\n \"FolderType\": 0,\n \"ParentId\": \"root\"\n}",
29
45
  "output": "{\n \"Response\": {\n \"FolderId\": \"folder-dhq5omrl\",\n \"RequestId\": \"a6030a9d-d791-4e7f-8f2c-7d908b6449a0\"\n }\n}",
30
46
  "title": "创建文件夹"
31
47
  }
@@ -61,7 +77,7 @@
61
77
  "CreateResource": [
62
78
  {
63
79
  "document": "创建依赖",
64
- "input": "POST / HTTP/1.1\nHost: oceanus.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateResource\n<公共请求参数>\n\n{\n \"ResourceLoc\": {\n \"StorageType\": 1,\n \"Param\": {\n \"Bucket\": \"oceanus-online-resource01-gz-1257058918\",\n \"Path\": \"1257058945/100006386216/upload/20231120142441/flink-hello-world-1.0.0-jar-with-dependencies.jar\",\n \"Region\": \"ap-guangzhou\"\n }\n },\n \"Remark\": \"test\",\n \"Name\": \"flink-hello-world-1.0.0-jar-with-dependencies.jar\",\n \"ResourceType\": 1,\n \"WorkSpaceId\": \"space-53rqk422\"\n}",
80
+ "input": "POST / HTTP/1.1\nHost: oceanus.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateResource\n<公共请求参数>\n\n{\n \"ResourceLoc\": {\n \"StorageType\": 1,\n \"Param\": {\n \"Bucket\": \"oceanus-online-resource01-gz-1257058918\",\n \"Path\": \"1257058945/100006386216/upload/20231120142441/flink-hello-world-1.0.0-jar-with-dependencies.jar\",\n \"Region\": \"ap-guangzhou\"\n }\n },\n \"Remark\": \"connector\",\n \"Name\": \"flink-hello-world-1.0.0-jar-with-dependencies.jar\",\n \"ResourceType\": 1,\n \"WorkSpaceId\": \"space-53rqk422\"\n}",
65
81
  "output": "{\n \"Response\": {\n \"RequestId\": \"1a7f54d8-fbfa-4367-a572-219c46b18058\",\n \"ResourceId\": \"resource-gk2iv5z5\",\n \"Version\": 1\n }\n}",
66
82
  "title": "创建依赖"
67
83
  }
@@ -74,6 +90,14 @@
74
90
  "title": "创建依赖版本"
75
91
  }
76
92
  ],
93
+ "CreateVariable": [
94
+ {
95
+ "document": "",
96
+ "input": "POST / HTTP/1.1\nHost: oceanus.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateVariable\n<公共请求参数>\n\n{\n \"Name\": \"MyPassword\",\n \"Value\": \"abcabc\",\n \"Type\": 2\n}",
97
+ "output": "{\n \"Response\": {\n \"VariableId\": \"var-b035ds\",\n \"RequestId\": \"5f124d6f-b035-4d29-9467-dd62eccdbf23\"\n }\n}",
98
+ "title": "创建变量"
99
+ }
100
+ ],
77
101
  "CreateWorkSpace": [
78
102
  {
79
103
  "document": "",
@@ -268,6 +292,14 @@
268
292
  "title": "分类中的自定义树状结构并筛选"
269
293
  }
270
294
  ],
295
+ "DescribeVariables": [
296
+ {
297
+ "document": "查询变量列表",
298
+ "input": "POST / HTTP/1.1\nHost: oceanus.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeVariables\n<公共请求参数>\n\n{}",
299
+ "output": "{\n \"Response\": {\n \"RequestId\": \"123\"\n }\n}",
300
+ "title": "变量列表展示"
301
+ }
302
+ ],
271
303
  "DescribeWorkSpaces": [
272
304
  {
273
305
  "document": "获取用户的空间列表",
@@ -292,6 +324,14 @@
292
324
  "title": "查询元数据表信息"
293
325
  }
294
326
  ],
327
+ "ModifyConnector": [
328
+ {
329
+ "document": "",
330
+ "input": "POST / HTTP/1.1\nHost: oceanus.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ModifyConnector\n<公共请求参数>\n\n\n\n{\n \"ConnectionMethod\": \"1\",\n \"Connector\": \"kafka\",\n \"ConnectorResourceId\": \"resouce-23s432\",\n \"ResourceId\": \"resouce-23s432\",\n \"VersionId\": 1,\n \"WorkSpaceId\": \"space-test\"\n}",
331
+ "output": "{\n \"Response\": {\n \"RequestId\": \"5f124d6f-b035-4d29-9467-dd62eccdbf23\"\n }\n}",
332
+ "title": "ModifyConnector"
333
+ }
334
+ ],
295
335
  "ModifyFolder": [
296
336
  {
297
337
  "document": "",
@@ -322,6 +362,14 @@
322
362
  "title": "修改项目空间"
323
363
  }
324
364
  ],
365
+ "ParseConnector": [
366
+ {
367
+ "document": "",
368
+ "input": "POST / HTTP/1.1\nHost: oceanus.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ParseConnector\n<公共请求参数>\n\n{\n \"ResourceId\": \"resource-qjgxki5r\",\n \"VersionId\": 1,\n \"WorkSpaceId\": \"space-erzb4bkl\"\n}",
369
+ "output": "{\n \"Response\": {\n \"Connectors\": [\n {\n \"ConnectionMethod\": \"1,3\",\n \"Connector\": \"jdbc\",\n \"Existed\": false\n },\n {\n \"ConnectionMethod\": \"\",\n \"Connector\": \"jdbc\",\n \"Existed\": false\n }\n ],\n \"RequestId\": \"509757a9-f29e-46c8-8e5d-214e8220dd4d\"\n }\n}",
370
+ "title": "解析用户Connector"
371
+ }
372
+ ],
325
373
  "RunJobs": [
326
374
  {
327
375
  "document": "",
@@ -485,7 +485,7 @@ def doTrainTicketOCR(args, parsed_globals):
485
485
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
486
486
 
487
487
 
488
- def doPropOwnerCertOCR(args, parsed_globals):
488
+ def doRecognizeValidIDCardOCR(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 doPropOwnerCertOCR(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.PropOwnerCertOCRRequest()
517
+ model = models.RecognizeValidIDCardOCRRequest()
518
518
  model.from_json_string(json.dumps(args))
519
519
  start_time = time.time()
520
520
  while True:
521
- rsp = client.PropOwnerCertOCR(model)
521
+ rsp = client.RecognizeValidIDCardOCR(model)
522
522
  result = rsp.to_json_string()
523
523
  try:
524
524
  json_obj = json.loads(result)
@@ -693,7 +693,7 @@ def doPermitOCR(args, parsed_globals):
693
693
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
694
694
 
695
695
 
696
- def doBusInvoiceOCR(args, parsed_globals):
696
+ def doQuestionSplitLayoutOCR(args, parsed_globals):
697
697
  g_param = parse_global_arg(parsed_globals)
698
698
 
699
699
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -722,11 +722,11 @@ def doBusInvoiceOCR(args, parsed_globals):
722
722
  client = mod.OcrClient(cred, g_param[OptionsDefine.Region], profile)
723
723
  client._sdkVersion += ("_CLI_" + __version__)
724
724
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
725
- model = models.BusInvoiceOCRRequest()
725
+ model = models.QuestionSplitLayoutOCRRequest()
726
726
  model.from_json_string(json.dumps(args))
727
727
  start_time = time.time()
728
728
  while True:
729
- rsp = client.BusInvoiceOCR(model)
729
+ rsp = client.QuestionSplitLayoutOCR(model)
730
730
  result = rsp.to_json_string()
731
731
  try:
732
732
  json_obj = json.loads(result)
@@ -745,7 +745,7 @@ def doBusInvoiceOCR(args, parsed_globals):
745
745
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
746
746
 
747
747
 
748
- def doEnglishOCR(args, parsed_globals):
748
+ def doBusInvoiceOCR(args, parsed_globals):
749
749
  g_param = parse_global_arg(parsed_globals)
750
750
 
751
751
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -774,11 +774,11 @@ def doEnglishOCR(args, parsed_globals):
774
774
  client = mod.OcrClient(cred, g_param[OptionsDefine.Region], profile)
775
775
  client._sdkVersion += ("_CLI_" + __version__)
776
776
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
777
- model = models.EnglishOCRRequest()
777
+ model = models.BusInvoiceOCRRequest()
778
778
  model.from_json_string(json.dumps(args))
779
779
  start_time = time.time()
780
780
  while True:
781
- rsp = client.EnglishOCR(model)
781
+ rsp = client.BusInvoiceOCR(model)
782
782
  result = rsp.to_json_string()
783
783
  try:
784
784
  json_obj = json.loads(result)
@@ -797,7 +797,7 @@ def doEnglishOCR(args, parsed_globals):
797
797
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
798
798
 
799
799
 
800
- def doSmartStructuralOCR(args, parsed_globals):
800
+ def doEnglishOCR(args, parsed_globals):
801
801
  g_param = parse_global_arg(parsed_globals)
802
802
 
803
803
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -826,11 +826,11 @@ def doSmartStructuralOCR(args, parsed_globals):
826
826
  client = mod.OcrClient(cred, g_param[OptionsDefine.Region], profile)
827
827
  client._sdkVersion += ("_CLI_" + __version__)
828
828
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
829
- model = models.SmartStructuralOCRRequest()
829
+ model = models.EnglishOCRRequest()
830
830
  model.from_json_string(json.dumps(args))
831
831
  start_time = time.time()
832
832
  while True:
833
- rsp = client.SmartStructuralOCR(model)
833
+ rsp = client.EnglishOCR(model)
834
834
  result = rsp.to_json_string()
835
835
  try:
836
836
  json_obj = json.loads(result)
@@ -849,7 +849,7 @@ def doSmartStructuralOCR(args, parsed_globals):
849
849
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
850
850
 
851
851
 
852
- def doClassifyStoreName(args, parsed_globals):
852
+ def doSmartStructuralOCR(args, parsed_globals):
853
853
  g_param = parse_global_arg(parsed_globals)
854
854
 
855
855
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -878,11 +878,11 @@ def doClassifyStoreName(args, parsed_globals):
878
878
  client = mod.OcrClient(cred, g_param[OptionsDefine.Region], profile)
879
879
  client._sdkVersion += ("_CLI_" + __version__)
880
880
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
881
- model = models.ClassifyStoreNameRequest()
881
+ model = models.SmartStructuralOCRRequest()
882
882
  model.from_json_string(json.dumps(args))
883
883
  start_time = time.time()
884
884
  while True:
885
- rsp = client.ClassifyStoreName(model)
885
+ rsp = client.SmartStructuralOCR(model)
886
886
  result = rsp.to_json_string()
887
887
  try:
888
888
  json_obj = json.loads(result)
@@ -901,7 +901,7 @@ def doClassifyStoreName(args, parsed_globals):
901
901
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
902
902
 
903
903
 
904
- def doTaxiInvoiceOCR(args, parsed_globals):
904
+ def doClassifyStoreName(args, parsed_globals):
905
905
  g_param = parse_global_arg(parsed_globals)
906
906
 
907
907
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -930,11 +930,11 @@ def doTaxiInvoiceOCR(args, parsed_globals):
930
930
  client = mod.OcrClient(cred, g_param[OptionsDefine.Region], profile)
931
931
  client._sdkVersion += ("_CLI_" + __version__)
932
932
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
933
- model = models.TaxiInvoiceOCRRequest()
933
+ model = models.ClassifyStoreNameRequest()
934
934
  model.from_json_string(json.dumps(args))
935
935
  start_time = time.time()
936
936
  while True:
937
- rsp = client.TaxiInvoiceOCR(model)
937
+ rsp = client.ClassifyStoreName(model)
938
938
  result = rsp.to_json_string()
939
939
  try:
940
940
  json_obj = json.loads(result)
@@ -953,7 +953,7 @@ 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):
956
+ def doTaxiInvoiceOCR(args, parsed_globals):
957
957
  g_param = parse_global_arg(parsed_globals)
958
958
 
959
959
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -982,11 +982,11 @@ def doDescribeExtractDocAgentJob(args, parsed_globals):
982
982
  client = mod.OcrClient(cred, g_param[OptionsDefine.Region], profile)
983
983
  client._sdkVersion += ("_CLI_" + __version__)
984
984
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
985
- model = models.DescribeExtractDocAgentJobRequest()
985
+ model = models.TaxiInvoiceOCRRequest()
986
986
  model.from_json_string(json.dumps(args))
987
987
  start_time = time.time()
988
988
  while True:
989
- rsp = client.DescribeExtractDocAgentJob(model)
989
+ rsp = client.TaxiInvoiceOCR(model)
990
990
  result = rsp.to_json_string()
991
991
  try:
992
992
  json_obj = json.loads(result)
@@ -1005,7 +1005,7 @@ def doDescribeExtractDocAgentJob(args, parsed_globals):
1005
1005
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
1006
1006
 
1007
1007
 
1008
- def doRideHailingDriverLicenseOCR(args, parsed_globals):
1008
+ def doDescribeExtractDocAgentJob(args, parsed_globals):
1009
1009
  g_param = parse_global_arg(parsed_globals)
1010
1010
 
1011
1011
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -1034,11 +1034,11 @@ def doRideHailingDriverLicenseOCR(args, parsed_globals):
1034
1034
  client = mod.OcrClient(cred, g_param[OptionsDefine.Region], profile)
1035
1035
  client._sdkVersion += ("_CLI_" + __version__)
1036
1036
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
1037
- model = models.RideHailingDriverLicenseOCRRequest()
1037
+ model = models.DescribeExtractDocAgentJobRequest()
1038
1038
  model.from_json_string(json.dumps(args))
1039
1039
  start_time = time.time()
1040
1040
  while True:
1041
- rsp = client.RideHailingDriverLicenseOCR(model)
1041
+ rsp = client.DescribeExtractDocAgentJob(model)
1042
1042
  result = rsp.to_json_string()
1043
1043
  try:
1044
1044
  json_obj = json.loads(result)
@@ -1057,7 +1057,7 @@ def doRideHailingDriverLicenseOCR(args, parsed_globals):
1057
1057
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
1058
1058
 
1059
1059
 
1060
- def doDutyPaidProofOCR(args, parsed_globals):
1060
+ def doRideHailingDriverLicenseOCR(args, parsed_globals):
1061
1061
  g_param = parse_global_arg(parsed_globals)
1062
1062
 
1063
1063
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -1086,11 +1086,11 @@ def doDutyPaidProofOCR(args, parsed_globals):
1086
1086
  client = mod.OcrClient(cred, g_param[OptionsDefine.Region], profile)
1087
1087
  client._sdkVersion += ("_CLI_" + __version__)
1088
1088
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
1089
- model = models.DutyPaidProofOCRRequest()
1089
+ model = models.RideHailingDriverLicenseOCRRequest()
1090
1090
  model.from_json_string(json.dumps(args))
1091
1091
  start_time = time.time()
1092
1092
  while True:
1093
- rsp = client.DutyPaidProofOCR(model)
1093
+ rsp = client.RideHailingDriverLicenseOCR(model)
1094
1094
  result = rsp.to_json_string()
1095
1095
  try:
1096
1096
  json_obj = json.loads(result)
@@ -1889,58 +1889,6 @@ def doEstateCertOCR(args, parsed_globals):
1889
1889
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
1890
1890
 
1891
1891
 
1892
- def doRecognizeValidIDCardOCR(args, parsed_globals):
1893
- g_param = parse_global_arg(parsed_globals)
1894
-
1895
- if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
1896
- cred = credential.CVMRoleCredential()
1897
- elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
1898
- cred = credential.STSAssumeRoleCredential(
1899
- g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
1900
- g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
1901
- )
1902
- 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):
1903
- cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
1904
- else:
1905
- cred = credential.Credential(
1906
- g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
1907
- )
1908
- http_profile = HttpProfile(
1909
- reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
1910
- reqMethod="POST",
1911
- endpoint=g_param[OptionsDefine.Endpoint],
1912
- proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
1913
- )
1914
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
1915
- if g_param[OptionsDefine.Language]:
1916
- profile.language = g_param[OptionsDefine.Language]
1917
- mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
1918
- client = mod.OcrClient(cred, g_param[OptionsDefine.Region], profile)
1919
- client._sdkVersion += ("_CLI_" + __version__)
1920
- models = MODELS_MAP[g_param[OptionsDefine.Version]]
1921
- model = models.RecognizeValidIDCardOCRRequest()
1922
- model.from_json_string(json.dumps(args))
1923
- start_time = time.time()
1924
- while True:
1925
- rsp = client.RecognizeValidIDCardOCR(model)
1926
- result = rsp.to_json_string()
1927
- try:
1928
- json_obj = json.loads(result)
1929
- except TypeError as e:
1930
- json_obj = json.loads(result.decode('utf-8')) # python3.3
1931
- if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
1932
- break
1933
- cur_time = time.time()
1934
- if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
1935
- raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
1936
- (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
1937
- search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
1938
- else:
1939
- print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
1940
- time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
1941
- FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
1942
-
1943
-
1944
1892
  def doBankCardOCR(args, parsed_globals):
1945
1893
  g_param = parse_global_arg(parsed_globals)
1946
1894
 
@@ -2253,110 +2201,6 @@ def doIDCardOCR(args, parsed_globals):
2253
2201
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
2254
2202
 
2255
2203
 
2256
- def doRecognizeGeneralTextImageWarn(args, parsed_globals):
2257
- g_param = parse_global_arg(parsed_globals)
2258
-
2259
- if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
2260
- cred = credential.CVMRoleCredential()
2261
- elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
2262
- cred = credential.STSAssumeRoleCredential(
2263
- g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
2264
- g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
2265
- )
2266
- 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):
2267
- cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
2268
- else:
2269
- cred = credential.Credential(
2270
- g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
2271
- )
2272
- http_profile = HttpProfile(
2273
- reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
2274
- reqMethod="POST",
2275
- endpoint=g_param[OptionsDefine.Endpoint],
2276
- proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
2277
- )
2278
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
2279
- if g_param[OptionsDefine.Language]:
2280
- profile.language = g_param[OptionsDefine.Language]
2281
- mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
2282
- client = mod.OcrClient(cred, g_param[OptionsDefine.Region], profile)
2283
- client._sdkVersion += ("_CLI_" + __version__)
2284
- models = MODELS_MAP[g_param[OptionsDefine.Version]]
2285
- model = models.RecognizeGeneralTextImageWarnRequest()
2286
- model.from_json_string(json.dumps(args))
2287
- start_time = time.time()
2288
- while True:
2289
- rsp = client.RecognizeGeneralTextImageWarn(model)
2290
- result = rsp.to_json_string()
2291
- try:
2292
- json_obj = json.loads(result)
2293
- except TypeError as e:
2294
- json_obj = json.loads(result.decode('utf-8')) # python3.3
2295
- if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
2296
- break
2297
- cur_time = time.time()
2298
- if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
2299
- raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
2300
- (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
2301
- search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
2302
- else:
2303
- print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
2304
- time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
2305
- FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
2306
-
2307
-
2308
- def doInstitutionOCR(args, parsed_globals):
2309
- g_param = parse_global_arg(parsed_globals)
2310
-
2311
- if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
2312
- cred = credential.CVMRoleCredential()
2313
- elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
2314
- cred = credential.STSAssumeRoleCredential(
2315
- g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
2316
- g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
2317
- )
2318
- 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):
2319
- cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
2320
- else:
2321
- cred = credential.Credential(
2322
- g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
2323
- )
2324
- http_profile = HttpProfile(
2325
- reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
2326
- reqMethod="POST",
2327
- endpoint=g_param[OptionsDefine.Endpoint],
2328
- proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
2329
- )
2330
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
2331
- if g_param[OptionsDefine.Language]:
2332
- profile.language = g_param[OptionsDefine.Language]
2333
- mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
2334
- client = mod.OcrClient(cred, g_param[OptionsDefine.Region], profile)
2335
- client._sdkVersion += ("_CLI_" + __version__)
2336
- models = MODELS_MAP[g_param[OptionsDefine.Version]]
2337
- model = models.InstitutionOCRRequest()
2338
- model.from_json_string(json.dumps(args))
2339
- start_time = time.time()
2340
- while True:
2341
- rsp = client.InstitutionOCR(model)
2342
- result = rsp.to_json_string()
2343
- try:
2344
- json_obj = json.loads(result)
2345
- except TypeError as e:
2346
- json_obj = json.loads(result.decode('utf-8')) # python3.3
2347
- if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
2348
- break
2349
- cur_time = time.time()
2350
- if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
2351
- raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
2352
- (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
2353
- search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
2354
- else:
2355
- print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
2356
- time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
2357
- FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
2358
-
2359
-
2360
2204
  def doRecognizeTableAccurateOCR(args, parsed_globals):
2361
2205
  g_param = parse_global_arg(parsed_globals)
2362
2206
 
@@ -3189,7 +3033,7 @@ def doBankSlipOCR(args, parsed_globals):
3189
3033
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
3190
3034
 
3191
3035
 
3192
- def doVehicleRegCertOCR(args, parsed_globals):
3036
+ def doResidenceBookletOCR(args, parsed_globals):
3193
3037
  g_param = parse_global_arg(parsed_globals)
3194
3038
 
3195
3039
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -3218,11 +3062,11 @@ def doVehicleRegCertOCR(args, parsed_globals):
3218
3062
  client = mod.OcrClient(cred, g_param[OptionsDefine.Region], profile)
3219
3063
  client._sdkVersion += ("_CLI_" + __version__)
3220
3064
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
3221
- model = models.VehicleRegCertOCRRequest()
3065
+ model = models.ResidenceBookletOCRRequest()
3222
3066
  model.from_json_string(json.dumps(args))
3223
3067
  start_time = time.time()
3224
3068
  while True:
3225
- rsp = client.VehicleRegCertOCR(model)
3069
+ rsp = client.ResidenceBookletOCR(model)
3226
3070
  result = rsp.to_json_string()
3227
3071
  try:
3228
3072
  json_obj = json.loads(result)
@@ -3969,59 +3813,7 @@ def doVatInvoiceOCR(args, parsed_globals):
3969
3813
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
3970
3814
 
3971
3815
 
3972
- def doRecognizeForeignPermanentResidentIdCard(args, parsed_globals):
3973
- g_param = parse_global_arg(parsed_globals)
3974
-
3975
- if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
3976
- cred = credential.CVMRoleCredential()
3977
- elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
3978
- cred = credential.STSAssumeRoleCredential(
3979
- g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
3980
- g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
3981
- )
3982
- 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):
3983
- cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
3984
- else:
3985
- cred = credential.Credential(
3986
- g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
3987
- )
3988
- http_profile = HttpProfile(
3989
- reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
3990
- reqMethod="POST",
3991
- endpoint=g_param[OptionsDefine.Endpoint],
3992
- proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
3993
- )
3994
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
3995
- if g_param[OptionsDefine.Language]:
3996
- profile.language = g_param[OptionsDefine.Language]
3997
- mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
3998
- client = mod.OcrClient(cred, g_param[OptionsDefine.Region], profile)
3999
- client._sdkVersion += ("_CLI_" + __version__)
4000
- models = MODELS_MAP[g_param[OptionsDefine.Version]]
4001
- model = models.RecognizeForeignPermanentResidentIdCardRequest()
4002
- model.from_json_string(json.dumps(args))
4003
- start_time = time.time()
4004
- while True:
4005
- rsp = client.RecognizeForeignPermanentResidentIdCard(model)
4006
- result = rsp.to_json_string()
4007
- try:
4008
- json_obj = json.loads(result)
4009
- except TypeError as e:
4010
- json_obj = json.loads(result.decode('utf-8')) # python3.3
4011
- if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
4012
- break
4013
- cur_time = time.time()
4014
- if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
4015
- raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
4016
- (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
4017
- search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
4018
- else:
4019
- print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
4020
- time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
4021
- FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
4022
-
4023
-
4024
- def doOrgCodeCertOCR(args, parsed_globals):
3816
+ def doDutyPaidProofOCR(args, parsed_globals):
4025
3817
  g_param = parse_global_arg(parsed_globals)
4026
3818
 
4027
3819
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -4050,11 +3842,11 @@ def doOrgCodeCertOCR(args, parsed_globals):
4050
3842
  client = mod.OcrClient(cred, g_param[OptionsDefine.Region], profile)
4051
3843
  client._sdkVersion += ("_CLI_" + __version__)
4052
3844
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
4053
- model = models.OrgCodeCertOCRRequest()
3845
+ model = models.DutyPaidProofOCRRequest()
4054
3846
  model.from_json_string(json.dumps(args))
4055
3847
  start_time = time.time()
4056
3848
  while True:
4057
- rsp = client.OrgCodeCertOCR(model)
3849
+ rsp = client.DutyPaidProofOCR(model)
4058
3850
  result = rsp.to_json_string()
4059
3851
  try:
4060
3852
  json_obj = json.loads(result)
@@ -4333,7 +4125,7 @@ def doAdvertiseOCR(args, parsed_globals):
4333
4125
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
4334
4126
 
4335
4127
 
4336
- def doResidenceBookletOCR(args, parsed_globals):
4128
+ def doVehicleRegCertOCR(args, parsed_globals):
4337
4129
  g_param = parse_global_arg(parsed_globals)
4338
4130
 
4339
4131
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -4362,11 +4154,11 @@ def doResidenceBookletOCR(args, parsed_globals):
4362
4154
  client = mod.OcrClient(cred, g_param[OptionsDefine.Region], profile)
4363
4155
  client._sdkVersion += ("_CLI_" + __version__)
4364
4156
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
4365
- model = models.ResidenceBookletOCRRequest()
4157
+ model = models.VehicleRegCertOCRRequest()
4366
4158
  model.from_json_string(json.dumps(args))
4367
4159
  start_time = time.time()
4368
4160
  while True:
4369
- rsp = client.ResidenceBookletOCR(model)
4161
+ rsp = client.VehicleRegCertOCR(model)
4370
4162
  result = rsp.to_json_string()
4371
4163
  try:
4372
4164
  json_obj = json.loads(result)
@@ -4717,10 +4509,11 @@ ACTION_MAP = {
4717
4509
  "RecognizeStoreName": doRecognizeStoreName,
4718
4510
  "MLIDPassportOCR": doMLIDPassportOCR,
4719
4511
  "TrainTicketOCR": doTrainTicketOCR,
4720
- "PropOwnerCertOCR": doPropOwnerCertOCR,
4512
+ "RecognizeValidIDCardOCR": doRecognizeValidIDCardOCR,
4721
4513
  "InvoiceGeneralOCR": doInvoiceGeneralOCR,
4722
4514
  "HKIDCardOCR": doHKIDCardOCR,
4723
4515
  "PermitOCR": doPermitOCR,
4516
+ "QuestionSplitLayoutOCR": doQuestionSplitLayoutOCR,
4724
4517
  "BusInvoiceOCR": doBusInvoiceOCR,
4725
4518
  "EnglishOCR": doEnglishOCR,
4726
4519
  "SmartStructuralOCR": doSmartStructuralOCR,
@@ -4728,7 +4521,6 @@ ACTION_MAP = {
4728
4521
  "TaxiInvoiceOCR": doTaxiInvoiceOCR,
4729
4522
  "DescribeExtractDocAgentJob": doDescribeExtractDocAgentJob,
4730
4523
  "RideHailingDriverLicenseOCR": doRideHailingDriverLicenseOCR,
4731
- "DutyPaidProofOCR": doDutyPaidProofOCR,
4732
4524
  "MainlandPermitOCR": doMainlandPermitOCR,
4733
4525
  "GeneralBasicOCR": doGeneralBasicOCR,
4734
4526
  "RecognizeGeneralInvoice": doRecognizeGeneralInvoice,
@@ -4744,15 +4536,12 @@ ACTION_MAP = {
4744
4536
  "TableOCR": doTableOCR,
4745
4537
  "ArithmeticOCR": doArithmeticOCR,
4746
4538
  "EstateCertOCR": doEstateCertOCR,
4747
- "RecognizeValidIDCardOCR": doRecognizeValidIDCardOCR,
4748
4539
  "BankCardOCR": doBankCardOCR,
4749
4540
  "GetOCRToken": doGetOCRToken,
4750
4541
  "EduPaperOCR": doEduPaperOCR,
4751
4542
  "EnterpriseLicenseOCR": doEnterpriseLicenseOCR,
4752
4543
  "BusinessCardOCR": doBusinessCardOCR,
4753
4544
  "IDCardOCR": doIDCardOCR,
4754
- "RecognizeGeneralTextImageWarn": doRecognizeGeneralTextImageWarn,
4755
- "InstitutionOCR": doInstitutionOCR,
4756
4545
  "RecognizeTableAccurateOCR": doRecognizeTableAccurateOCR,
4757
4546
  "MixedInvoiceDetect": doMixedInvoiceDetect,
4758
4547
  "VatRollInvoiceOCR": doVatRollInvoiceOCR,
@@ -4769,7 +4558,7 @@ ACTION_MAP = {
4769
4558
  "RecognizeFormulaOCR": doRecognizeFormulaOCR,
4770
4559
  "SealOCR": doSealOCR,
4771
4560
  "BankSlipOCR": doBankSlipOCR,
4772
- "VehicleRegCertOCR": doVehicleRegCertOCR,
4561
+ "ResidenceBookletOCR": doResidenceBookletOCR,
4773
4562
  "RecognizeTravelCardOCR": doRecognizeTravelCardOCR,
4774
4563
  "SubmitExtractDocAgentJob": doSubmitExtractDocAgentJob,
4775
4564
  "VerifyOfdVatInvoiceOCR": doVerifyOfdVatInvoiceOCR,
@@ -4784,14 +4573,13 @@ ACTION_MAP = {
4784
4573
  "RecognizeTableMultiOCR": doRecognizeTableMultiOCR,
4785
4574
  "GeneralFastOCR": doGeneralFastOCR,
4786
4575
  "VatInvoiceOCR": doVatInvoiceOCR,
4787
- "RecognizeForeignPermanentResidentIdCard": doRecognizeForeignPermanentResidentIdCard,
4788
- "OrgCodeCertOCR": doOrgCodeCertOCR,
4576
+ "DutyPaidProofOCR": doDutyPaidProofOCR,
4789
4577
  "FinanBillSliceOCR": doFinanBillSliceOCR,
4790
4578
  "LicensePlateOCR": doLicensePlateOCR,
4791
4579
  "ExtractDocMulti": doExtractDocMulti,
4792
4580
  "GeneralEfficientOCR": doGeneralEfficientOCR,
4793
4581
  "AdvertiseOCR": doAdvertiseOCR,
4794
- "ResidenceBookletOCR": doResidenceBookletOCR,
4582
+ "VehicleRegCertOCR": doVehicleRegCertOCR,
4795
4583
  "CarInvoiceOCR": doCarInvoiceOCR,
4796
4584
  "GetOCRResult": doGetOCRResult,
4797
4585
  "FormulaOCR": doFormulaOCR,