1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
2089
2090
2091
2092
2093
2094
2095
2096
2097
2098
2099
2100
2101
2102
2103
2104
2105
2106
2107
2108
2109
2110
2111
2112
2113
2114
2115
2116
2117
2118
2119
2120
2121
2122
2123
2124
2125
2126
2127
2128
2129
2130
2131
2132
2133
2134
2135
2136
2137
2138
2139
2140
2141
2142
2143
2144
2145
2146
2147
2148
2149
2150
2151
2152
2153
2154
2155
2156
2157
2158
2159
2160
2161
2162
2163
2164
2165
2166
2167
2168
2169
2170
2171
2172
2173
2174
2175
2176
2177
2178
2179
2180
2181
2182
2183
2184
2185
2186
2187
2188
2189
2190
2191
2192
2193
2194
2195
2196
2197
2198
2199
2200
2201
2202
2203
2204
2205
2206
2207
2208
2209
2210
2211
2212
2213
2214
2215
2216
2217
2218
2219
2220
2221
2222
2223
2224
2225
2226
2227
2228
2229
2230
2231
2232
2233
2234
2235
2236
2237
2238
2239
2240
2241
2242
2243
2244
2245
2246
2247
2248
2249
2250
2251
2252
2253
2254
2255
2256
2257
2258
2259
2260
2261
2262
2263
2264
2265
2266
2267
2268
2269
2270
2271
2272
2273
2274
2275
2276
2277
2278
2279
2280
2281
2282
2283
2284
2285
2286
2287
2288
2289
2290
2291
2292
2293
2294
2295
2296
2297
2298
2299
2300
2301
2302
2303
2304
2305
2306
2307
2308
2309
2310
2311
2312
2313
2314
2315
2316
2317
2318
2319
2320
2321
2322
2323
2324
2325
2326
2327
2328
2329
2330
2331
2332
2333
2334
2335
2336
2337
2338
2339
2340
2341
2342
2343
2344
2345
2346
2347
2348
2349
2350
2351
2352
2353
2354
2355
2356
2357
2358
2359
2360
2361
2362
2363
2364
2365
2366
2367
2368
2369
2370
2371
2372
2373
2374
2375
2376
2377
2378
2379
2380
2381
2382
2383
2384
2385
2386
2387
2388
2389
2390
2391
2392
2393
2394
2395
2396
2397
2398
2399
2400
2401
2402
2403
2404
2405
2406
2407
2408
2409
2410
2411
2412
2413
2414
2415
2416
2417
2418
2419
2420
2421
2422
2423
2424
2425
2426
2427
2428
2429
2430
2431
2432
2433
2434
2435
2436
2437
2438
2439
2440
2441
2442
2443
2444
2445
2446
2447
2448
2449
2450
2451
2452
2453
2454
2455
2456
2457
2458
2459
2460
2461
2462
2463
2464
2465
2466
2467
2468
2469
2470
2471
2472
2473
2474
2475
2476
2477
2478
2479
2480
2481
2482
2483
2484
2485
2486
2487
2488
2489
2490
2491
2492
2493
2494
2495
2496
2497
2498
2499
2500
2501
2502
2503
2504
2505
2506
2507
2508
2509
2510
2511
2512
2513
2514
2515
2516
2517
2518
2519
2520
2521
2522
2523
2524
2525
2526
2527
2528
2529
2530
2531
2532
2533
2534
2535
2536
2537
2538
2539
2540
2541
2542
2543
2544
2545
2546
2547
2548
2549
2550
2551
2552
2553
2554
2555
2556
2557
2558
2559
2560
2561
2562
2563
2564
2565
2566
2567
2568
2569
2570
2571
2572
2573
2574
2575
2576
2577
2578
2579
2580
2581
2582
2583
2584
2585
2586
2587
2588
2589
2590
2591
2592
2593
2594
2595
2596
2597
2598
2599
2600
2601
2602
2603
2604
2605
2606
2607
2608
2609
2610
2611
2612
2613
2614
2615
2616
2617
2618
2619
2620
2621
2622
2623
2624
2625
2626
2627
2628
2629
2630
2631
2632
2633
2634
2635
2636
2637
2638
2639
2640
2641
2642
2643
2644
2645
2646
2647
2648
2649
2650
2651
2652
2653
2654
2655
2656
2657
2658
2659
2660
2661
2662
2663
2664
2665
2666
2667
2668
2669
2670
2671
2672
2673
2674
2675
2676
2677
2678
2679
2680
2681
2682
2683
2684
2685
2686
2687
2688
2689
2690
2691
2692
2693
2694
2695
2696
2697
2698
2699
2700
2701
2702
2703
2704
2705
2706
2707
2708
2709
2710
2711
2712
2713
2714
2715
2716
2717
2718
2719
2720
2721
2722
2723
2724
2725
2726
2727
2728
2729
2730
2731
2732
2733
2734
2735
2736
2737
2738
2739
2740
2741
2742
2743
2744
2745
2746
2747
2748
2749
2750
2751
2752
2753
2754
2755
2756
2757
2758
2759
2760
2761
2762
2763
2764
2765
2766
2767
2768
2769
2770
2771
2772
2773
2774
2775
2776
2777
2778
2779
2780
2781
2782
2783
2784
2785
2786
2787
2788
2789
2790
2791
2792
2793
2794
2795
2796
2797
2798
2799
2800
2801
2802
2803
2804
2805
2806
2807
2808
2809
2810
2811
2812
2813
2814
2815
2816
2817
2818
2819
2820
2821
2822
2823
2824
2825
2826
2827
2828
2829
2830
2831
2832
2833
2834
2835
2836
2837
2838
2839
2840
2841
2842
2843
2844
2845
2846
2847
2848
2849
2850
2851
2852
2853
2854
2855
2856
2857
2858
2859
2860
2861
2862
2863
2864
2865
2866
2867
2868
2869
2870
2871
2872
2873
2874
2875
2876
2877
2878
2879
2880
2881
2882
2883
2884
2885
2886
2887
2888
2889
2890
2891
2892
2893
2894
2895
2896
2897
2898
2899
2900
2901
2902
2903
2904
2905
2906
2907
2908
2909
2910
2911
2912
2913
2914
2915
2916
2917
2918
2919
2920
2921
2922
2923
2924
2925
2926
2927
2928
2929
2930
2931
2932
2933
2934
2935
2936
2937
2938
2939
2940
2941
2942
2943
2944
2945
2946
2947
2948
2949
2950
2951
2952
2953
2954
2955
2956
2957
2958
2959
2960
2961
2962
2963
2964
2965
2966
2967
2968
2969
2970
2971
2972
2973
2974
2975
2976
2977
2978
2979
2980
2981
2982
2983
2984
2985
2986
2987
2988
2989
2990
2991
2992
2993
2994
2995
2996
2997
2998
2999
3000
3001
3002
3003
3004
3005
3006
3007
3008
3009
3010
3011
3012
3013
3014
3015
3016
3017
3018
3019
3020
3021
3022
3023
3024
3025
3026
3027
3028
3029
3030
3031
3032
3033
3034
3035
3036
3037
3038
3039
3040
3041
3042
3043
3044
3045
3046
3047
3048
3049
3050
3051
3052
3053
3054
3055
3056
3057
3058
3059
3060
3061
3062
3063
3064
3065
3066
3067
3068
3069
3070
3071
3072
3073
3074
3075
3076
3077
3078
3079
3080
3081
3082
3083
3084
3085
3086
3087
3088
3089
3090
3091
3092
3093
3094
3095
3096
3097
3098
3099
3100
3101
3102
3103
3104
3105
3106
3107
3108
3109
3110
3111
3112
3113
3114
3115
3116
3117
3118
3119
3120
3121
3122
3123
3124
3125
3126
3127
3128
3129
3130
3131
3132
3133
3134
3135
3136
3137
3138
3139
3140
3141
3142
3143
3144
3145
3146
3147
3148
3149
3150
3151
3152
3153
3154
3155
3156
3157
3158
3159
3160
3161
3162
3163
3164
3165
3166
3167
3168
3169
3170
3171
3172
3173
3174
3175
3176
3177
3178
3179
3180
3181
3182
3183
3184
3185
3186
3187
3188
3189
3190
3191
3192
3193
3194
3195
3196
3197
3198
3199
3200
3201
3202
3203
3204
3205
3206
3207
3208
3209
3210
3211
3212
3213
3214
3215
3216
3217
3218
3219
3220
3221
3222
3223
3224
3225
3226
3227
3228
3229
3230
3231
3232
3233
3234
3235
3236
3237
3238
3239
3240
3241
3242
3243
3244
3245
3246
3247
3248
3249
3250
3251
3252
3253
3254
3255
3256
3257
3258
3259
3260
3261
3262
3263
3264
3265
3266
3267
3268
3269
3270
3271
3272
3273
3274
3275
3276
3277
3278
3279
3280
3281
3282
3283
3284
3285
3286
3287
3288
3289
3290
3291
3292
3293
3294
3295
3296
3297
3298
3299
3300
3301
3302
3303
3304
3305
3306
3307
3308
3309
3310
3311
3312
3313
3314
3315
3316
3317
3318
3319
3320
3321
3322
3323
3324
3325
3326
3327
3328
3329
3330
3331
3332
3333
3334
3335
3336
3337
3338
3339
3340
3341
3342
3343
3344
3345
3346
3347
3348
3349
3350
3351
3352
3353
3354
3355
3356
3357
3358
3359
3360
3361
3362
3363
3364
3365
3366
3367
3368
3369
3370
3371
3372
3373
3374
3375
3376
3377
3378
3379
3380
3381
3382
3383
3384
3385
3386
3387
3388
3389
3390
3391
3392
3393
3394
3395
3396
3397
3398
3399
3400
3401
3402
3403
3404
3405
3406
3407
3408
3409
3410
3411
3412
3413
3414
3415
3416
3417
3418
3419
3420
3421
3422
3423
3424
3425
3426
3427
3428
3429
3430
3431
3432
3433
3434
3435
3436
3437
3438
3439
3440
3441
3442
3443
3444
3445
3446
3447
3448
3449
3450
3451
3452
3453
3454
3455
3456
3457
3458
3459
3460
3461
3462
3463
3464
3465
3466
3467
3468
3469
3470
3471
3472
3473
3474
3475
3476
3477
3478
3479
3480
3481
3482
3483
3484
3485
3486
3487
3488
3489
3490
3491
3492
3493
3494
3495
3496
3497
3498
3499
3500
3501
3502
3503
3504
3505
3506
3507
3508
3509
3510
3511
3512
3513
3514
3515
3516
3517
3518
3519
3520
3521
3522
3523
3524
3525
3526
3527
3528
3529
3530
3531
3532
3533
3534
3535
3536
3537
3538
3539
3540
3541
3542
3543
3544
3545
3546
3547
3548
3549
3550
3551
3552
3553
3554
3555
3556
3557
3558
3559
3560
3561
3562
3563
3564
3565
3566
3567
3568
3569
3570
3571
3572
3573
3574
3575
3576
3577
3578
3579
3580
3581
3582
3583
3584
3585
3586
3587
3588
3589
3590
3591
3592
3593
3594
3595
3596
3597
3598
3599
3600
3601
3602
3603
3604
3605
3606
3607
3608
3609
3610
3611
3612
3613
3614
3615
3616
3617
3618
3619
3620
3621
3622
3623
3624
3625
3626
3627
3628
3629
3630
3631
3632
3633
3634
3635
3636
3637
3638
3639
3640
3641
3642
3643
3644
3645
3646
3647
3648
3649
3650
3651
3652
3653
3654
3655
3656
3657
3658
3659
3660
3661
3662
3663
3664
3665
3666
3667
3668
3669
3670
3671
3672
3673
3674
3675
3676
3677
3678
3679
3680
3681
3682
3683
3684
3685
3686
3687
3688
3689
3690
3691
3692
3693
3694
3695
3696
3697
3698
3699
3700
3701
3702
3703
3704
3705
3706
3707
3708
3709
3710
3711
3712
3713
3714
3715
3716
3717
3718
3719
3720
3721
3722
3723
3724
3725
3726
3727
3728
3729
3730
3731
3732
3733
3734
3735
3736
3737
3738
3739
3740
3741
3742
3743
3744
3745
3746
3747
3748
3749
3750
3751
3752
3753
3754
3755
3756
3757
3758
3759
3760
3761
3762
3763
3764
3765
3766
3767
3768
3769
3770
3771
3772
3773
3774
3775
3776
3777
3778
3779
3780
3781
3782
3783
3784
3785
3786
3787
3788
3789
3790
3791
3792
3793
3794
3795
3796
3797
3798
3799
3800
3801
3802
3803
3804
3805
3806
3807
3808
3809
3810
3811
3812
3813
3814
3815
3816
3817
3818
3819
3820
3821
3822
3823
3824
3825
3826
3827
3828
3829
3830
3831
3832
3833
3834
3835
3836
3837
3838
3839
3840
3841
3842
3843
3844
3845
3846
3847
3848
3849
3850
3851
3852
3853
3854
3855
3856
3857
3858
3859
3860
3861
3862
3863
3864
3865
3866
3867
3868
3869
3870
3871
3872
3873
3874
3875
3876
3877
3878
3879
3880
3881
3882
3883
3884
3885
3886
3887
3888
3889
|
<?php return [
'version' => '1.0',
'info' => ['style' => 'RPC', 'product' => 'alimt', 'version' => '2018-10-12'],
'directories' => [
[
'children' => ['GetBatchTranslate', 'CreateAsyncTranslate', 'GetAsyncTranslate', 'GetDetectLanguage'],
'type' => 'directory',
'title' => 'Text translation',
],
[
'children' => [
[
'children' => ['TranslateImage', 'TranslateImageBatch', 'GetTranslateImageBatchResult'],
'type' => 'directory',
'title' => 'Image translation',
],
[
'children' => ['CreateDocTranslateTask', 'GetDocTranslateTask'],
'type' => 'directory',
'title' => 'Document translation',
],
'TranslateCertificate',
],
'type' => 'directory',
'title' => 'Multimodal translation',
],
[
'children' => ['GetImageTranslate', 'CreateImageTranslateTask', 'GetImageTranslateTask', 'GetImageDiagnose', 'GetTitleDiagnose', 'GetTitleGenerate', 'GetTitleIntelligence'],
'type' => 'directory',
'title' => 'Cross-border e-commerce language tools',
],
[
'children' => ['OpenAlimtService', 'GetTranslateReport'],
'type' => 'directory',
'title' => 'Management',
],
[
'children' => ['TranslateSearch', 'Translate', 'TranslateECommerce', 'TranslateGeneral'],
'type' => 'directory',
'title' => 'Others',
],
],
'components' => [
'schemas' => [],
],
'apis' => [
'CreateAsyncTranslate' => [
'summary' => 'The machine asynchronous translation job creation API supports translation of up to 1 million characters. ',
'methods' => ['post', 'get'],
'schemes' => ['https'],
'security' => [
[
'AK' => [],
],
[
'BearerToken' => [],
],
],
'operationType' => 'readAndWrite',
'deprecated' => false,
'systemTags' => ['operationType' => 'none', 'riskType' => 'none', 'chargeType' => 'free', 'tenantRelevance' => 'publicInformation'],
'parameters' => [
[
'name' => 'SourceLanguage',
'in' => 'formData',
'schema' => ['description' => 'Source language. For language codes, see [Language Code Reference](https://help.aliyun.com/document_detail/158269.html?spm=a2c4g.11186623.6.542.7da22b9fayuNoj). ', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'en', 'title' => ''],
],
[
'name' => 'TargetLanguage',
'in' => 'formData',
'schema' => ['description' => 'Target language. For language codes, see the reference.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'zh', 'title' => ''],
],
[
'name' => 'SourceText',
'in' => 'formData',
'schema' => ['description' => 'Content to be translated ', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'Opinion: We have finally gotten some relief at the pump. But it may not last long', 'title' => ''],
],
[
'name' => 'Scene',
'in' => 'formData',
'schema' => ['description' => 'Scenario. Supported values include: general, title (product title), description (product description), message (buyer-seller communication), medical, social, and tech. ', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'general', 'title' => ''],
],
[
'name' => 'FormatType',
'in' => 'formData',
'schema' => ['description' => 'The format of the text to translate: **html** (web page format; when this parameter is set, both the source text and the translated text are processed as HTML) or **text** (plain text format; when this parameter is set, neither the source text nor the translation result undergoes any formatting treatment and is uniformly handled as plain text).', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'text', 'title' => ''],
],
[
'name' => 'ApiType',
'in' => 'formData',
'schema' => ['description' => '- Version type. You must select one version: '."\n"
."\n"
.'- General-purpose Edition: translate_standard '."\n"
."\n"
.'- Professional Edition: translate_ecommerce ', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'translate_standard', 'title' => ''],
],
],
'responses' => [
200 => [
'schema' => [
'title' => 'Schema of Response',
'description' => 'Schema of Response',
'type' => 'object',
'properties' => [
'RequestId' => ['title' => 'Id of the request', 'description' => 'The unique ID of the request, used for troubleshooting. ', 'type' => 'string', 'example' => 'DC2DCCC9-C3DF-4F59-8D8E-78185729F16D'],
'Code' => ['description' => 'Error code ', 'type' => 'integer', 'format' => 'int32', 'example' => '200', 'title' => ''],
'Message' => ['description' => 'Response message ', 'type' => 'string', 'example' => 'success', 'title' => ''],
'Data' => [
'type' => 'object',
'properties' => [
'JobId' => ['description' => 'Asynchronous task ID. ', 'type' => 'string', 'required' => true, 'example' => '98bbb007-71bb-448b-bab0-2695ce8f8599', 'title' => ''],
'Status' => ['description' => 'Task Status ', 'type' => 'string', 'required' => true, 'example' => 'ready', 'title' => ''],
],
'description' => 'Response data ',
'title' => '',
'example' => '',
],
],
'example' => '',
],
],
],
'errorCodes' => [
101 => [
['errorCode' => '10001', 'errorMessage' => 'The request has timed out.', 'description' => ''],
],
103 => [
['errorCode' => '10003', 'errorMessage' => 'An error occurred while decoding the URL. Verify that the specified URL is encoded.', 'description' => ''],
],
[
['errorCode' => '10004', 'errorMessage' => 'Some required parameters are missing.', 'description' => ''],
],
[
['errorCode' => '10005', 'errorMessage' => 'The specified language pair is not supported.', 'description' => ''],
],
[
['errorCode' => '10006', 'errorMessage' => 'An error occurred while detecting the language.', 'description' => ''],
],
[
['errorCode' => '10007', 'errorMessage' => 'An error occurred while translating.', 'description' => ''],
],
[
['errorCode' => '10008', 'errorMessage' => 'The specified string is too long.', 'description' => ''],
],
400 => [
['errorCode' => '10010', 'errorMessage' => 'You have not activated this service.', 'description' => 'You have not activated this service.'],
['errorCode' => '10013', 'errorMessage' => 'You have not activated the account service or the account service has overdue bills.', 'description' => 'You have not activated the account service or the account service has overdue bills.'],
['errorCode' => '10021', 'errorMessage' => 'The parameter is invalid.', 'description' => ''],
['errorCode' => '10026', 'errorMessage' => 'Failed to translate the certificate. Please check the parameters.', 'description' => ''],
],
403 => [
['errorCode' => '10009', 'errorMessage' => 'The RAM user is not authorized to perform this operation.', 'description' => 'The RAM user is not authorized to perform this operation.'],
],
[
['errorCode' => '10025', 'errorMessage' => 'The specified task does not exist.', 'description' => 'The specified task does not exist.'],
],
500 => [
['errorCode' => '10002', 'errorMessage' => 'A system error occurred.', 'description' => ''],
['errorCode' => '10011', 'errorMessage' => 'An error occurred while invoking the RAM user service.', 'description' => 'An error occurred while invoking the RAM user service.'],
['errorCode' => '10012', 'errorMessage' => 'An error occurred while calling the translation service.', 'description' => 'An error occurred while calling the translation service.'],
],
],
'staticInfo' => ['returnType' => 'synchronous'],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"DC2DCCC9-C3DF-4F59-8D8E-78185729F16D\\",\\n \\"Code\\": 200,\\n \\"Message\\": \\"success\\",\\n \\"Data\\": {\\n \\"JobId\\": \\"98bbb007-71bb-448b-bab0-2695ce8f8599\\",\\n \\"Status\\": \\"ready\\"\\n }\\n}","type":"json"}]',
'title' => 'Create a text asynchronous translation job ',
'description' => '1. The maximum character length for machine asynchronous translation is 1 million characters. 2. For the text asynchronous translation job creation API, refer to the Alibaba Cloud OpenAPI Developer Portal to debug and invoke the API. ',
'responseParamsDescription' => 'Sample '."\n"
.'Normal response example '."\n"
."\n"
.'JSON format '."\n"
."\n"
.'{'."\n"
.' "RequestId": "3AD51F66-4829-1E47-93F7-03BE3C0428F3",'."\n"
.' "Data": {'."\n"
.' "Status": "ready",'."\n"
.' "JobId": "2ff1e8b1-3842-4f1a-9bba-b8eea6b9720b"'."\n"
.' },'."\n"
.' "Code": "200"'."\n"
.'}',
'changeSet' => [],
'ramActions' => [
[
'operationType' => 'none',
'ramAction' => [
'action' => 'alimt:CreateAsyncTranslate',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Alimt', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
],
],
'CreateDocTranslateTask' => [
'summary' => 'Creates a document translation task.',
'methods' => ['post'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'write',
'deprecated' => false,
'systemTags' => ['operationType' => 'create', 'riskType' => 'none', 'chargeType' => 'free'],
'parameters' => [
[
'name' => 'SourceLanguage',
'in' => 'formData',
'schema' => ['description' => 'The source language. For more information, see [Language codes](https://help.aliyun.com/document_detail/158269.html?spm=a2c4g.11186623.6.542.7da22b9fayuNoj).', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'en', 'title' => ''],
],
[
'name' => 'TargetLanguage',
'in' => 'formData',
'schema' => ['description' => 'The target language. For more information, see [Language codes](https://help.aliyun.com/document_detail/158269.html?spm=a2c4g.11186623.6.542.7da22b9fayuNoj).', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'zh', 'title' => ''],
],
[
'name' => 'FileUrl',
'in' => 'formData',
'schema' => ['description' => 'The URL of the document.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'isFileTransferUrl' => true, 'example' => 'http://fileUrl', 'title' => ''],
],
[
'name' => 'Scene',
'in' => 'formData',
'schema' => ['description' => 'The scenario. Valid values: \\`general\\`, \\`title\\` (product titles), \\`description\\` (product descriptions), \\`message\\` (buyer-seller communication), \\`medical\\`, \\`social\\`, and \\`tech\\`.', 'type' => 'string', 'required' => false, 'docRequired' => false, 'default' => 'general', 'example' => 'general', 'title' => ''],
],
[
'name' => 'CallbackUrl',
'in' => 'formData',
'schema' => ['description' => 'The webhook address for the translation result. The server sends a POST request to this address.'."\n"
."\n"
.'Request body'."\n"
."\n"
.'Raw JSON'."\n"
."\n"
.'- Parameter Description'."\n"
."\n"
.'- task\\_id: The task ID.'."\n"
."\n"
.'- status: The task status.'."\n"
."\n"
.'- errCode: The error code.'."\n"
."\n"
.'- errMsg: The error message.'."\n"
."\n"
.'- translateFileUrl: The URL to download the translated file. The URL is valid for 1 hour.'."\n"
."\n"
.'IP address whitelist'."\n"
."\n"
.'59.82.61.52'."\n"
."\n"
.'203.119.241.30'."\n"
."\n"
.'203.119.241.98'."\n"
."\n"
.'59.82.84.90'."\n"
."\n"
.'203.119.241.56'."\n"
."\n"
.'59.82.61.75'."\n"
."\n"
.'Sample callback service: This service is used to receive the translation result through a callback.'."\n"
."\n"
.'```'."\n"
.'import com.alibaba.fastjson.JSON;'."\n"
."\n"
.'import com.alibaba.fastjson.JSONObject;'."\n"
."\n"
.'import org.springframework.web.bind.annotation.RequestBody;'."\n"
."\n"
.'import org.springframework.web.bind.annotation.RequestMapping;'."\n"
."\n"
.'import org.springframework.web.bind.annotation.RequestMethod;'."\n"
."\n"
.'import org.springframework.web.bind.annotation.RestController;'."\n"
."\n"
.'@RestController'."\n"
."\n"
.'public class CallbackController {'."\n"
."\n"
.' @RequestMapping(value = "callback", method = RequestMethod.POST)'."\n"
."\n"
.' public void callback(@RequestBody String body) {'."\n"
."\n"
.' try {'."\n"
."\n"
.' JSONObject result = JSON.parseObject(body);'."\n"
."\n"
.' if (200 != result.getInteger("errCode")) {'."\n"
."\n"
.' System.out.println("fail " + result.getString("errMsg"));'."\n"
."\n"
.' return;'."\n"
."\n"
.' }'."\n"
."\n"
.' System.out.println("task_id:" + result.getString("task_id"));'."\n"
."\n"
.' System.out.println("status:" + result.getString("status"));'."\n"
."\n"
.' System.out.println("translateFileUrl:" + result.getString("translateFileUrl"));'."\n"
."\n"
.' } catch (Exception e) {'."\n"
."\n"
.' e.printStackTrace();'."\n"
."\n"
.' }'."\n"
."\n"
.' }'."\n"
."\n"
.'}'."\n"
.'```', 'type' => 'string', 'required' => false, 'docRequired' => false, 'example' => 'http://callbackUrl', 'title' => ''],
],
[
'name' => 'ClientToken',
'in' => 'formData',
'schema' => ['description' => 'Ensures idempotence. A request with the same client token is processed only once within 3 minutes.', 'type' => 'string', 'required' => false, 'docRequired' => false, 'example' => 'token', 'title' => ''],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'Status' => ['description' => 'The status of the task.', 'type' => 'string', 'example' => 'ready', 'title' => ''],
'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => 'D3920BC3-A395-4CAD-9E84-7C39EB07507B', 'title' => ''],
'TaskId' => ['description' => 'The task ID.', 'type' => 'string', 'example' => '0586df512c8b4bb382d7d9a6a01b5854', 'title' => ''],
],
'description' => '',
'title' => '',
'example' => '',
],
],
],
'errorCodes' => [
109 => [
['errorCode' => '10009', 'errorMessage' => '子账号没有权限', 'description' => ''],
],
[
['errorCode' => '10010', 'errorMessage' => '账号没有开通服务', 'description' => ''],
],
[
['errorCode' => '10011', 'errorMessage' => '子账号服务失败', 'description' => ''],
],
[
['errorCode' => '10012', 'errorMessage' => '翻译服务调用失败', 'description' => ''],
],
[
['errorCode' => '10013', 'errorMessage' => '账号服务没有开通或者欠费', 'description' => ''],
],
199 => [
['errorCode' => '19999', 'errorMessage' => 'An unknown error occurred.', 'description' => ''],
],
400 => [
['errorCode' => '10021', 'errorMessage' => 'The parameter is invalid.', 'description' => ''],
['errorCode' => '10022', 'errorMessage' => 'The parameter fileUrl is invalid.', 'description' => ''],
['errorCode' => '10023', 'errorMessage' => 'The parameter fileUrl is not accessible.', 'description' => ''],
['errorCode' => '10024', 'errorMessage' => 'The parameter callbackUrl is invalid.', 'description' => 'The parameter callbackUrl is invalid.'],
['errorCode' => '10031', 'errorMessage' => 'The specified file type is invalid.', 'description' => 'The type of file is not valid.'],
['errorCode' => 'InvalidAccountStatus', 'errorMessage' => 'The Machine Translation service has not been activated.', 'description' => 'The Machine Translation service has not been activated.'],
['errorCode' => 'RepeatInvoke', 'errorMessage' => 'Repeated calls.', 'description' => 'Repeated calls'],
],
403 => [
['errorCode' => '10029', 'errorMessage' => 'The number of calls per day exceeds the limit.', 'description' => 'The number of calls per day limit exceeded.'],
],
429 => [
['errorCode' => 'REQUESTS.OVER.LIMIT', 'errorMessage' => 'The request is too frequent, please try again later.', 'description' => 'Request too frequent, please try again later'],
],
],
'title' => 'CreateDocTranslateTask',
'description' => '> This operation supports only POST requests.',
'requestParamsDescription' => ' ',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [
['createdAt' => '2024-07-29T03:16:52.000Z', 'description' => 'Error codes changed'],
['createdAt' => '2024-05-09T02:35:40.000Z', 'description' => 'Error codes changed'],
['createdAt' => '2022-11-11T08:44:01.000Z', 'description' => 'Error codes changed'],
],
'ramActions' => [
[
'operationType' => 'create',
'ramAction' => [
'action' => 'alimt:CreateDocTranslateTask',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Alimt', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Status\\": \\"ready\\",\\n \\"RequestId\\": \\"D3920BC3-A395-4CAD-9E84-7C39EB07507B\\",\\n \\"TaskId\\": \\"0586df512c8b4bb382d7d9a6a01b5854\\"\\n}","type":"json"}]',
],
'CreateImageTranslateTask' => [
'summary' => 'Create an asynchronous image translation job. Image translation includes capabilities such as OCR, text translation, and text backfill.',
'methods' => ['post', 'get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => ['operationType' => 'create', 'riskType' => 'high', 'chargeType' => 'paid', 'tenantRelevance' => 'publicInformation'],
'parameters' => [
[
'name' => 'UrlList',
'in' => 'formData',
'schema' => ['description' => 'The URLs of images for translation. Separate multiple image URLs with commas. The number of images cannot exceed 20.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'http://xxx,http://yyy', 'title' => ''],
],
[
'name' => 'SourceLanguage',
'in' => 'formData',
'schema' => ['description' => 'The source language of the image', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'zh', 'title' => ''],
],
[
'name' => 'TargetLanguage',
'in' => 'formData',
'schema' => ['description' => 'The target language for image translation', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'en', 'title' => ''],
],
[
'name' => 'Extra',
'in' => 'formData',
'schema' => ['description' => '- The following JSON format content contains optional parameters. You can omit any parameters you do not need.'."\n"
.'- Example JSON format:'."\n"
.'```'."\n"
.'{'."\n"
.' "have_ocr": "false",'."\n"
.' "without_text": "false",'."\n"
.' "have_psd": "true",'."\n"
.' "ignore_entity": "false"'."\n"
.'}'."\n"
.'```'."\n"
.'- `have_ocr`: Controls whether to return OCR results. true: required, false: not required '."\n"
.'- `without_text`: Controls whether to erase text from the image. true: required, false: not required '."\n"
.'- `have_psd`: Controls whether to return editor data for rendering in the editor. true: required, false: not required '."\n"
.'- `ignore_entity`: Specifies whether to ignore Named Entity Recognition. true: ignore, false: do not ignore', 'type' => 'string', 'required' => false, 'docRequired' => true, 'example' => '{"have_ocr":"false","without_text":"false","have_psd":"true","ignore_entity":"false"}', 'title' => ''],
],
[
'name' => 'ClientToken',
'in' => 'formData',
'schema' => ['description' => 'Provides idempotency. Within 3 minutes, requests with the same value will take effect only once.', 'type' => 'string', 'required' => false, 'example' => '1', 'title' => ''],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'Code' => ['description' => 'The status code. A value of 200 indicates Normal.'."\n", 'type' => 'integer', 'format' => 'int32', 'example' => '200', 'title' => ''],
'Message' => ['description' => 'The error message returned when a fault occurs'."\n", 'type' => 'string', 'example' => 'ok', 'title' => ''],
'RequestId' => ['description' => 'The unique string of the request'."\n", 'type' => 'string', 'example' => 'A41F6E25-8520-4AF0-90EF-AF7E32840108', 'title' => ''],
'Data' => [
'description' => 'The returned data content'."\n",
'type' => 'object',
'properties' => [
'TaskId' => ['description' => 'The job ID returned by the asynchronous image translation. You can use this ID later to retrieve the translation result.', 'type' => 'string', 'example' => 'A41F6E25-8520-4AF0-90EF-111111', 'title' => ''],
],
'title' => '',
'example' => '',
],
],
'description' => '',
'title' => '',
'example' => '',
],
],
],
'errorCodes' => [
101 => [
['errorCode' => 'System.RequestTimeOut', 'errorMessage' => 'The request has timed out.', 'description' => ''],
],
[
['errorCode' => 'System.Error', 'errorMessage' => 'A system error occurred.', 'description' => ''],
],
[
['errorCode' => 'System.UrlDecodingError', 'errorMessage' => 'An error occurred while decoding the URL. Verify that the specified URL is encoded.', 'description' => ''],
],
[
['errorCode' => 'System.ParameterError', 'errorMessage' => 'Some required parameters are missing.', 'description' => ''],
],
[
['errorCode' => 'System.LanguageNotSupported', 'errorMessage' => 'The specified language pair is not supported.', 'description' => ''],
],
[
['errorCode' => 'System.LanguageDetectError', 'errorMessage' => 'An error occurred while detecting the language.', 'description' => ''],
],
[
['errorCode' => 'System.TranslateError', 'errorMessage' => 'An error occurred while translating.', 'description' => ''],
],
[
['errorCode' => 'System.StringTooLong', 'errorMessage' => 'The maximum length of the specified string is exceeded.', 'description' => ''],
],
110 => [
['errorCode' => 'System.AccountNotActivated', 'errorMessage' => 'The account has not activated the service.', 'description' => ''],
],
[
['errorCode' => 'System.SubServiceFailed', 'errorMessage' => 'Sub-account service failed.', 'description' => ''],
],
[
['errorCode' => 'System.TranslateServiceCallFailed', 'errorMessage' => 'Failed to call the translation service.', 'description' => ''],
],
[
['errorCode' => 'System.AccountNotActivatedOrInArrears', 'errorMessage' => 'The service is not activated or the account has an outstanding balance.', 'description' => ''],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Code\\": 200,\\n \\"Message\\": \\"ok\\",\\n \\"RequestId\\": \\"A41F6E25-8520-4AF0-90EF-AF7E32840108\\",\\n \\"Data\\": {\\n \\"TaskId\\": \\"A41F6E25-8520-4AF0-90EF-111111\\"\\n }\\n}","type":"json"}]',
'title' => 'Guide for invoking the asynchronous image translation creation API',
'description' => '><notice>This API is scheduled for unpublishing and is not recommended for continued use.></notice>',
'requestParamsDescription' => ' ',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [],
'ramActions' => [
[
'operationType' => 'create',
'ramAction' => [
'action' => 'alimt:CreateImageTranslateTask',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Alimt', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
],
],
'GetAsyncTranslate' => [
'summary' => 'Retrieve the content of an asynchronous text translation job.',
'methods' => ['post'],
'schemes' => ['https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => ['operationType' => 'none'],
'parameters' => [
[
'name' => 'JobId',
'in' => 'formData',
'schema' => ['description' => 'Asynchronous job ID. This is the JobId returned when you invoke CreateAsyncTranslate to create an asynchronous job.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => '77056ab7-7be1-4c2a-91a1-f20f63894048', 'title' => ''],
],
],
'responses' => [
200 => [
'schema' => [
'title' => 'Schema of Response',
'description' => 'Schema of Response',
'type' => 'object',
'properties' => [
'RequestId' => ['title' => 'Id of the request', 'description' => 'The unique ID of the request, used for troubleshooting purposes.', 'type' => 'string', 'example' => 'DC2DCCC9-C3DF-4F59-8D8E-78185729F16D'],
'Code' => ['description' => 'Status code', 'type' => 'integer', 'format' => 'int32', 'example' => '200', 'title' => ''],
'Message' => ['description' => 'Response message.', 'type' => 'string', 'example' => 'ok', 'title' => ''],
'Data' => [
'description' => 'Data content',
'type' => 'object',
'properties' => [
'Status' => ['description' => 'Task Status', 'type' => 'string', 'example' => 'ready', 'title' => ''],
'TranslatedText' => ['description' => 'Translated Content', 'type' => 'string', 'example' => 'hello', 'title' => ''],
'WordCount' => ['description' => 'Number of characters in the source text', 'type' => 'string', 'example' => '2', 'title' => ''],
'DetectedLanguage' => ['description' => 'Source language code detected when the source language is set to auto', 'type' => 'string', 'example' => 'zh', 'title' => ''],
],
'title' => '',
'example' => '',
],
],
'example' => '',
],
],
],
'errorCodes' => [
109 => [
['errorCode' => 'System.SubNotPermission', 'errorMessage' => 'The sub account is not authorized to perform the operation.', 'description' => ''],
],
400 => [
['errorCode' => 'Parameter.SourceLangError', 'errorMessage' => 'Source languages are not supported.', 'description' => 'Source languages are not supported.'],
['errorCode' => 'Parameter.TargetLangError', 'errorMessage' => 'Target languages are not supported.', 'description' => 'Target languages are not supported.'],
['errorCode' => 'System.AccountNotActivated', 'errorMessage' => 'The account has not activated the service.', 'description' => 'Account is not activated'],
['errorCode' => 'System.AccountNotActivatedOrInArrears', 'errorMessage' => 'The service is not activated or the account has an outstanding balance.', 'description' => 'Account service is not activated or in arrears'],
['errorCode' => 'System.LanguageNotSupported', 'errorMessage' => 'The specified language pair is not supported.', 'description' => 'The specified language pair is not supported.'],
['errorCode' => 'System.ParameterError', 'errorMessage' => 'Some required parameters are missing.', 'description' => 'Some required parameters are missing.'],
['errorCode' => 'System.StringTooLong', 'errorMessage' => 'The maximum length of the specified string is exceeded.', 'description' => 'The specified string is too long.'],
],
403 => [
['errorCode' => 'System.subNotPermission', 'errorMessage' => 'The sub-account is not authorized to perform the operation.', 'description' => 'The sub account does not have permission'],
],
500 => [
['errorCode' => 'System.Error', 'errorMessage' => 'A system error occurred.', 'description' => 'A system error occurred.'],
['errorCode' => 'System.LanguageDetectError', 'errorMessage' => 'An error occurred while detecting the language.', 'description' => 'An error occurred while detecting the language.'],
['errorCode' => 'System.RequestTimeOut', 'errorMessage' => 'The request has timed out.', 'description' => 'The request has timed out.'],
['errorCode' => 'System.SubServiceFailed', 'errorMessage' => 'Sub-account service failed.', 'description' => 'Sub-account service failed'],
['errorCode' => 'System.TranslateError', 'errorMessage' => 'An error occurred while translating.', 'description' => 'An error occurred while translating.'],
['errorCode' => 'System.TranslateServiceCallFailed', 'errorMessage' => 'Failed to call the translation service.', 'description' => 'Translation service call failed'],
['errorCode' => 'System.unknownError', 'errorMessage' => 'An unknown error occurred.', 'description' => 'An unknown error occurred.'],
['errorCode' => 'System.UrlDecodingError', 'errorMessage' => 'An error occurred while decoding the URL. Verify that the specified URL is encoded.', 'description' => 'An error occurred while decoding the URL. Verify that the specified URL is encoded.'],
],
],
'staticInfo' => ['returnType' => 'synchronous'],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"DC2DCCC9-C3DF-4F59-8D8E-78185729F16D\\",\\n \\"Code\\": 200,\\n \\"Message\\": \\"ok\\",\\n \\"Data\\": {\\n \\"Status\\": \\"ready\\",\\n \\"TranslatedText\\": \\"hello\\",\\n \\"WordCount\\": \\"2\\",\\n \\"DetectedLanguage\\": \\"zh\\"\\n }\\n}","type":"json"}]',
'title' => 'Retrieve Text Asynchronous Translation Job',
'description' => 'Obtain the translation content of the corresponding asynchronous job by using the job ID.',
'changeSet' => [],
'ramActions' => [
[
'operationType' => 'none',
'ramAction' => [
'action' => 'alimt:GetAsyncTranslate',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Alimt', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
],
],
'GetBatchTranslate' => [
'summary' => 'Translates multiple text segments in a batch.',
'methods' => ['post', 'get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => ['operationType' => 'get', 'riskType' => 'high', 'chargeType' => 'paid', 'tenantRelevance' => 'publicInformation'],
'parameters' => [
[
'name' => 'FormatType',
'in' => 'formData',
'schema' => ['description' => 'The format of the text to translate. \\`html\\`: The source and translated text are processed as HTML. \\`text\\`: The source and translated text are processed as plain text.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'text ', 'title' => ''],
],
[
'name' => 'TargetLanguage',
'in' => 'formData',
'schema' => ['description' => 'The target language. For more information, see [Language codes](https://help.aliyun.com/document_detail/158269.html?spm=a2c4g.11186623.2.8.53746614hvrF2G). For more information, see [Language codes](https://www.alibabacloud.com/help/zh/doc-detail/158269.html).', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'zh', 'title' => ''],
],
[
'name' => 'SourceLanguage',
'in' => 'formData',
'schema' => ['description' => 'The source language. For more information, see [Language codes](https://help.aliyun.com/document_detail/158269.html?spm=a2c4g.11186623.2.8.53746614hvrF2G). For more information, see [Language codes](https://www.alibabacloud.com/help/zh/doc-detail/158269.html).', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'en', 'title' => ''],
],
[
'name' => 'Scene',
'in' => 'formData',
'schema' => ['description' => '- Scenarios supported by the Professional Edition: product titles (\\`title\\`), product descriptions (\\`description\\`), customer communication (\\`communication\\`), medical (\\`medical\\`), and social (\\`social\\`).'."\n"
."\n"
.'- Scenario supported by the General-purpose Edition: \\`general\\`.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'general', 'title' => ''],
],
[
'name' => 'ApiType',
'in' => 'formData',
'schema' => ['description' => '- The edition type. You must specify an edition.'."\n"
."\n"
.'- General-purpose Edition: \\`translate\\_standard\\`'."\n"
."\n"
.'- Professional Edition: \\`translate\\_ecommerce\\`', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'translate_standard', 'title' => ''],
],
[
'name' => 'SourceText',
'in' => 'formData',
'schema' => ['description' => 'The source text to translate, in JSON format.'."\n"
."\n"
.'key: A unique ID to map the translation result to the source text.'."\n"
."\n"
.'value: The content to translate.'."\n"
."\n"
.'The format is as follows: `{ "11": "hello boy", "12": "go home", "13": "we can" }`'."\n"
."\n"
.'> The number of text segments cannot exceed 50. The length of a single text segment cannot exceed 1,000 characters. The total number of characters cannot exceed 8,000. The key is not included in the character count. Punctuation, spaces, and HTML tags in the content are included in the character count.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'isFileTransferUrl' => false, 'example' => '{"11":"hello boy","12":"go home","13":"we can"}', 'title' => ''],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'Code' => ['description' => 'The error code.', 'type' => 'integer', 'format' => 'int32', 'example' => '200', 'title' => ''],
'Message' => ['description' => 'The message returned.', 'type' => 'string', 'example' => 'success', 'title' => ''],
'RequestId' => ['description' => 'The unique ID of the request. Use this ID for troubleshooting.', 'type' => 'string', 'example' => '86D18195-D89C-4C8C-9DC4-5FCE789CE6D5', 'title' => ''],
'TranslatedList' => [
'type' => 'array',
'items' => ['description' => 'The result, in JSON format.'."\n"
."\n"
.'code: The status code for the translation of a single segment.'."\n"
."\n"
.'wordCount: The number of characters in the source text.'."\n"
."\n"
.'detectedLanguage: The language code of the source language detected when SourceLanguage is set to \\`auto\\`.'."\n"
."\n"
.'index: The key from the input parameters. This unique ID maps the result to the source text.'."\n"
."\n"
.'translated: The translation result.', 'type' => 'object', 'example' => '['."\n"
.' {'."\n"
.' "code": "200",'."\n"
.' "wordCount": "9",'."\n"
.' "detectedLanguage": "en"'."\n"
.' "index": "11",'."\n"
.' "translated": "你好男孩"'."\n"
.' },'."\n"
.' {'."\n"
.' "code": "200",'."\n"
.' "wordCount": "7",'."\n"
.' "detectedLanguage": "en"'."\n"
.' "index": "12",'."\n"
.' "translated": "回家"'."\n"
.' },'."\n"
.' {'."\n"
.' "code": "200",'."\n"
.' "wordCount": "6",'."\n"
.' "detectedLanguage": "en"'."\n"
.' "index": "13",'."\n"
.' "translated": "我们可以"'."\n"
.' }'."\n"
.']', 'title' => ''],
'description' => '',
'title' => '',
'example' => '',
],
],
'description' => '',
'title' => '',
'example' => '',
],
],
],
'errorCodes' => [
101 => [
['errorCode' => 'System.RequestTimeOut', 'errorMessage' => 'The request has timed out.', 'description' => ''],
],
[
['errorCode' => 'System.Error', 'errorMessage' => 'A system error occurred.', 'description' => ''],
],
[
['errorCode' => 'System.UrlDecodingError', 'errorMessage' => 'An error occurred while decoding the URL. Verify that the specified URL is encoded.', 'description' => ''],
],
[
['errorCode' => 'System.ParameterError', 'errorMessage' => 'Some required parameters are missing.', 'description' => ''],
],
[
['errorCode' => 'System.LanguageNotSupported', 'errorMessage' => 'The specified language pair is not supported.', 'description' => ''],
],
[
['errorCode' => 'System.LanguageDetectError', 'errorMessage' => 'An error occurred while detecting the language.', 'description' => ''],
],
[
['errorCode' => 'System.TranslateError', 'errorMessage' => 'An error occurred while translating.', 'description' => ''],
],
[
['errorCode' => 'System.StringTooLong', 'errorMessage' => 'The maximum length of the specified string is exceeded.', 'description' => ''],
],
[
['errorCode' => 'System.SubNotPermission', 'errorMessage' => 'The sub account is not authorized to perform the operation.', 'description' => ''],
['errorCode' => 'System.subNotPermission', 'errorMessage' => 'The sub-account is not authorized to perform the operation.', 'description' => ''],
],
[
['errorCode' => 'System.AccountNotActivated', 'errorMessage' => 'The account has not activated the service.', 'description' => ''],
],
[
['errorCode' => 'System.SubServiceFailed', 'errorMessage' => 'Sub-account service failed.', 'description' => ''],
],
[
['errorCode' => 'System.TranslateServiceCallFailed', 'errorMessage' => 'Failed to call the translation service.', 'description' => ''],
],
[
['errorCode' => 'System.AccountNotActivatedOrInArrears', 'errorMessage' => 'The service is not activated or the account has an outstanding balance.', 'description' => ''],
],
199 => [
['errorCode' => 'System.unknownError', 'errorMessage' => 'An unknown error occurred.', 'description' => ''],
['errorCode' => 'System.UnknownError', 'errorMessage' => 'An unknown system error occurred.', 'description' => ''],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Code\\": 200,\\n \\"Message\\": \\"success\\",\\n \\"RequestId\\": \\"86D18195-D89C-4C8C-9DC4-5FCE789CE6D5\\",\\n \\"TranslatedList\\": [\\n {\\n \\"test\\": \\"test\\",\\n \\"test2\\": 1\\n }\\n ]\\n}","type":"json"}]',
'title' => 'Machine Batch Translation Invocation Guide',
'description' => '1\\. The queries per second (QPS) limit for this API is 50. To request a limit increase, contact us in DingTalk group 23369411. <props="china">2. The maximum length of a single text segment is 1,000 characters. You can translate up to 50 segments in a single request. If your content exceeds these limits, save it to a file and use [Document Translation](https://help.aliyun.com/document_detail/164151.html).</props>'."\n"
.'<props="china">3. Before you use this API, review the billing methods and pricing for the General-purpose and Professional editions.</props>'."\n"
.'<props="china">4. You can use the Alibaba Cloud OpenAPI Developer Portal to [test](https://next.api.aliyun.com/api/alimt/2018-10-12/GetBatchTranslate) this API call.</props>'."\n"
.'<props="intl">2. The maximum length of a single text segment is 1,000 characters. You can translate up to 50 segments in a single request. Before you use this API, review the billing methods and pricing for the General-purpose and Professional editions.</props>',
'requestParamsDescription' => ' ',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [],
'ramActions' => [
[
'operationType' => 'get',
'ramAction' => [
'action' => 'alimt:GetBatchTranslate',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Alimt', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
],
],
'GetDetectLanguage' => [
'summary' => 'This document describes the language detection API.',
'methods' => ['post', 'get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'systemTags' => ['operationType' => 'get', 'riskType' => 'none', 'chargeType' => 'free', 'tenantRelevance' => 'publicInformation'],
'parameters' => [
[
'name' => 'SourceText',
'in' => 'formData',
'schema' => ['description' => 'The language to be detected.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => '你好', 'title' => ''],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'DetectedLanguage' => ['description' => 'The language was detected successfully.', 'type' => 'string', 'example' => 'zh', 'title' => ''],
'RequestId' => ['description' => 'The unique ID of the request.', 'type' => 'string', 'example' => '0C5EC1EC-1A06-4D60-97E6-4D41350945E4', 'title' => ''],
'LanguageProbabilities' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
],
'description' => '',
'title' => '',
'example' => '',
],
],
],
'errorCodes' => [
101 => [
['errorCode' => '10001', 'errorMessage' => 'The request has timed out.', 'description' => ''],
],
[
['errorCode' => '10002', 'errorMessage' => 'A system error occurred.', 'description' => ''],
],
[
['errorCode' => '10003', 'errorMessage' => 'An error occurred while decoding the URL. Verify that the specified URL is encoded.', 'description' => ''],
],
[
['errorCode' => '10004', 'errorMessage' => 'Some required parameters are missing.', 'description' => ''],
],
[
['errorCode' => '10005', 'errorMessage' => 'The specified language pair is not supported.', 'description' => ''],
],
[
['errorCode' => '10006', 'errorMessage' => 'An error occurred while detecting the language.', 'description' => ''],
],
[
['errorCode' => '10007', 'errorMessage' => 'An error occurred while translating.', 'description' => ''],
],
[
['errorCode' => '10008', 'errorMessage' => 'The specified string is too long.', 'description' => ''],
],
[
['errorCode' => '10009', 'errorMessage' => '子账号没有权限', 'description' => ''],
],
[
['errorCode' => '10010', 'errorMessage' => '账号没有开通服务', 'description' => ''],
],
[
['errorCode' => '10011', 'errorMessage' => '子账号服务失败', 'description' => ''],
],
[
['errorCode' => '10012', 'errorMessage' => '翻译服务调用失败', 'description' => ''],
],
[
['errorCode' => '10013', 'errorMessage' => '账号服务没有开通或者欠费', 'description' => ''],
],
199 => [
['errorCode' => '19999', 'errorMessage' => 'An unknown error occurred.', 'description' => ''],
],
400 => [
['errorCode' => 'System.ParameterError', 'errorMessage' => 'Some required parameters are missing.', 'description' => 'Some required parameters are missing.'],
],
503 => [
['errorCode' => 'System.Error', 'errorMessage' => 'A system error occurred.', 'description' => ''],
['errorCode' => 'Internal.Error', 'errorMessage' => 'The internal service connection timeout, please try again later.', 'description' => ''],
],
],
'title' => 'Language Detection',
'description' => '1\\. The maximum text length is 5,000 characters. The maximum number of queries per second (QPS) is 50. To request a higher limit, contact us in the DingTalk group 23369411.'."\n"
."\n"
.'2\\. Before using this API, review the billing methods and pricing for the General-purpose Edition translation service.',
'requestParamsDescription' => ' ',
'responseParamsDescription' => 'For more information about common request parameters, see [RPC invocation mechanism](https://help.aliyun.com/document_detail/315526.html?spm=a2c4g.158244.0.0.34b627b5qv5gmt#sectiondiv-qq5-utu-r7a).',
'extraInfo' => ' ',
'changeSet' => [
['createdAt' => '2024-06-06T08:37:37.000Z', 'description' => 'Response parameters changed'],
],
'ramActions' => [
[
'operationType' => 'get',
'ramAction' => [
'action' => 'alimt:GetDetectLanguage',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Alimt', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"DetectedLanguage\\": \\"zh\\",\\n \\"RequestId\\": \\"0C5EC1EC-1A06-4D60-97E6-4D41350945E4\\",\\n \\"LanguageProbabilities\\": \\"\\"\\n}","type":"json"}]',
],
'GetDocTranslateTask' => [
'summary' => 'Query a document translation job.',
'methods' => ['get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => ['operationType' => 'get', 'riskType' => 'none', 'chargeType' => 'free'],
'parameters' => [
[
'name' => 'TaskId',
'in' => 'query',
'schema' => ['description' => 'Job ID.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => '0586df512c8b4bb382d7d9a6a01b5854', 'title' => ''],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'Status' => ['description' => 'Task Status.', 'type' => 'string', 'example' => 'translated', 'title' => ''],
'RequestId' => ['description' => 'Request ID.', 'type' => 'string', 'example' => '12952E92-FDF3-4D3C-88E3-242D72BA7150', 'title' => ''],
'TranslateFileUrl' => ['description' => 'Download URL of the translated file.', 'type' => 'string', 'example' => 'http://translateFileUrl', 'title' => ''],
'TranslateErrorCode' => ['description' => 'Error code of the job.', 'type' => 'string', 'example' => 'Error', 'title' => ''],
'PageCount' => ['description' => 'Number of pages in the document.', 'type' => 'integer', 'format' => 'int32', 'example' => '20', 'title' => ''],
'TaskId' => ['description' => 'Job ID.', 'type' => 'string', 'example' => '0586df512c8b4bb382d7d9a6a01b5854', 'title' => ''],
'TranslateErrorMessage' => ['description' => 'Error message of the job.', 'type' => 'string', 'example' => 'Fail to get the page number of document.', 'title' => ''],
],
'description' => '',
'title' => '',
'example' => '',
],
],
],
'errorCodes' => [
109 => [
['errorCode' => '10009', 'errorMessage' => '子账号没有权限', 'description' => ''],
],
[
['errorCode' => '10010', 'errorMessage' => '账号没有开通服务', 'description' => ''],
],
[
['errorCode' => '10011', 'errorMessage' => '子账号服务失败', 'description' => ''],
],
[
['errorCode' => '10012', 'errorMessage' => '翻译服务调用失败', 'description' => ''],
],
[
['errorCode' => '10013', 'errorMessage' => '账号服务没有开通或者欠费', 'description' => ''],
],
199 => [
['errorCode' => '19999', 'errorMessage' => 'An unknown error occurred.', 'description' => ''],
],
400 => [
['errorCode' => '10021', 'errorMessage' => 'The parameter is invalid.', 'description' => ''],
['errorCode' => 'InvalidAccountStatus', 'errorMessage' => 'The Machine Translation service has not been activated.', 'description' => 'The Machine Translation service has not been activated.'],
],
404 => [
['errorCode' => '10025', 'errorMessage' => 'The specified task does not exist.', 'description' => 'The specified task does not exist.'],
],
],
'title' => 'Query a document translation job',
'description' => 'Make sure you fully understand the billing method and pricing of the Document Translation product before using this API. '."\n"
.'> Supports invocation only by using the GET method.',
'requestParamsDescription' => ' ',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [
['createdAt' => '2022-11-11T08:44:01.000Z', 'description' => 'Error codes changed'],
],
'ramActions' => [
[
'operationType' => 'get',
'ramAction' => [
'action' => 'alimt:GetDocTranslateTask',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Alimt', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Status\\": \\"translated\\",\\n \\"RequestId\\": \\"12952E92-FDF3-4D3C-88E3-242D72BA7150\\",\\n \\"TranslateFileUrl\\": \\"http://translateFileUrl\\",\\n \\"TranslateErrorCode\\": \\"Error\\",\\n \\"PageCount\\": 20,\\n \\"TaskId\\": \\"0586df512c8b4bb382d7d9a6a01b5854\\",\\n \\"TranslateErrorMessage\\": \\"Fail to get the page number of document.\\"\\n}","type":"json"}]',
],
'GetImageDiagnose' => [
'methods' => ['post', 'get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => ['operationType' => 'get'],
'parameters' => [
[
'name' => 'Url',
'in' => 'formData',
'schema' => ['description' => 'Image link.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'http://xxxxx.oss-cn-shenzhen.aliyuncs.com/jd/41209/xxxxx.jpg', 'title' => ''],
],
[
'name' => 'Extra',
'in' => 'formData',
'schema' => ['description' => '- Format content: '."\n"
.'{'."\n"
.' "product_id": "1",'."\n"
.' "platform": "ae"'."\n"
.'} '."\n"
.'- product_id: Product ID '."\n"
.'- platform: Platform to which the product belongs. Support includes ae, icbu, and lazada.', 'type' => 'string', 'required' => false, 'example' => '{ "product_id": "1", "platform": "ae" }', 'title' => ''],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'Code' => ['description' => 'Status code. A normal request returns 200.', 'type' => 'integer', 'format' => 'int32', 'example' => '200', 'title' => ''],
'Message' => ['description' => 'Returns an error message when a fault occurs.', 'type' => 'string', 'example' => 'ok', 'title' => ''],
'RequestId' => ['description' => 'Unique request ID.', 'type' => 'string', 'example' => 'DC2DCCC9-C3DF-4F59-8D8E-78185729F16D', 'title' => ''],
'Data' => [
'description' => 'Returned result.',
'type' => 'object',
'properties' => [
'Language' => ['description' => 'Language of the text detected in the image.', 'type' => 'string', 'example' => 'zh', 'title' => ''],
],
'title' => '',
'example' => '',
],
],
'description' => '',
'title' => '',
'example' => '',
],
],
],
'errorCodes' => [
101 => [
['errorCode' => 'System.RequestTimeOut', 'errorMessage' => 'The request has timed out.', 'description' => ''],
],
[
['errorCode' => 'System.Error', 'errorMessage' => 'A system error occurred.', 'description' => ''],
],
[
['errorCode' => 'System.UrlDecodingError', 'errorMessage' => 'An error occurred while decoding the URL. Verify that the specified URL is encoded.', 'description' => ''],
],
[
['errorCode' => 'System.ParameterError', 'errorMessage' => 'Some required parameters are missing.', 'description' => ''],
],
[
['errorCode' => 'System.LanguageNotSupported', 'errorMessage' => 'The specified language pair is not supported.', 'description' => ''],
],
[
['errorCode' => 'System.LanguageDetectError', 'errorMessage' => 'An error occurred while detecting the language.', 'description' => ''],
],
[
['errorCode' => 'System.TranslateError', 'errorMessage' => 'An error occurred while translating.', 'description' => ''],
],
[
['errorCode' => 'System.StringTooLong', 'errorMessage' => 'The maximum length of the specified string is exceeded.', 'description' => ''],
],
[
['errorCode' => 'System.subNotPermission', 'errorMessage' => 'The sub-account is not authorized to perform the operation.', 'description' => ''],
],
[
['errorCode' => 'System.AccountNotActivated', 'errorMessage' => 'The account has not activated the service.', 'description' => ''],
],
[
['errorCode' => 'System.SubServiceFailed', 'errorMessage' => 'Sub-account service failed.', 'description' => ''],
],
[
['errorCode' => 'System.TranslateServiceCallFailed', 'errorMessage' => 'Failed to call the translation service.', 'description' => ''],
],
[
['errorCode' => 'System.AccountNotActivatedOrInArrears', 'errorMessage' => 'The service is not activated or the account has an outstanding balance.', 'description' => ''],
],
199 => [
['errorCode' => 'System.unknownError', 'errorMessage' => 'An unknown error occurred.', 'description' => ''],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Code\\": 200,\\n \\"Message\\": \\"ok\\",\\n \\"RequestId\\": \\"DC2DCCC9-C3DF-4F59-8D8E-78185729F16D\\",\\n \\"Data\\": {\\n \\"Language\\": \\"zh\\"\\n }\\n}","type":"json"}]',
'title' => 'Image Diagnosis',
'summary' => 'Detects the language of text in an image.',
'description' => '><notice>This API is scheduled to be unpublished and is not recommended for continued use.></notice>',
'requestParamsDescription' => ' ',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [],
'ramActions' => [
[
'operationType' => 'get',
'ramAction' => [
'action' => 'alimt:GetImageDiagnose',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Alimt', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
],
],
'GetImageTranslate' => [
'summary' => 'Includes capabilities such as OCR, text translation, and text backfill. ',
'methods' => ['post', 'get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => ['operationType' => 'get', 'riskType' => 'none', 'chargeType' => 'free'],
'parameters' => [
[
'name' => 'Url',
'in' => 'formData',
'schema' => ['description' => 'The Image Link that requires translation ', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'http://xxxxxxx.oss-cn-shenzhen.aliyuncs.com/xxxxxx.jpg', 'title' => ''],
],
[
'name' => 'SourceLanguage',
'in' => 'formData',
'schema' => ['description' => 'The language of the text in the image. <props="intl">[Supported language pairs and language codes](https://www.alibabacloud.com/help/zh/doc-detail/182310.html)</props> '."\n"
.'<props="china">[Supported language pairs and language codes](https://help.aliyun.com/document_detail/182310.html?spm=a2c4g.11186623.6.543.106340eblV3QUo)</props> ', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'zh', 'title' => ''],
],
[
'name' => 'TargetLanguage',
'in' => 'formData',
'schema' => ['description' => 'The language into which the text in the image is translated. <props="intl">[Supported languages and language codes](https://www.alibabacloud.com/help/zh/doc-detail/182310.html)</props> '."\n"
.'<props="china">[Supported languages and language codes](https://help.aliyun.com/document_detail/182310.html?spm=a2c4g.11186623.6.543.106340eblV3QUo)</props> ', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'en', 'title' => ''],
],
[
'name' => 'Extra',
'in' => 'formData',
'schema' => ['description' => '- The following JSON format is used. You can omit any optional parameters you do not need. '."\n"
."\n"
.'- JSON format: '."\n"
.'``` '."\n"
.'{ '."\n"
.' "have_ocr": "false", '."\n"
.' "without_text":"true", '."\n"
.' "have_psd": "false", '."\n"
.' "ignore_entity": "false" '."\n"
.'} '."\n"
.'``` '."\n"
.'- have_ocr: Controls whether to return OCR results by using true/false. true means required; false means not required. '."\n"
.'- without_text: Controls whether to erase text from the image. true means required; false means not required. '."\n"
.'- have_psd: Provides PSD data for rendering in the image editor. '."\n"
.'- ignore_entity: Specifies whether to ignore Named Entity Recognition. true means ignore; false means do not ignore. ', 'type' => 'string', 'required' => false, 'docRequired' => true, 'example' => '{"have_ocr": "false", "without_text":"true", "have_psd": "false", "ignore_entity": "false"}', 'title' => ''],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'Code' => ['description' => 'Status code. A value of 200 indicates Normal status. ', 'type' => 'integer', 'format' => 'int32', 'example' => '200', 'title' => ''],
'Message' => ['description' => 'The error message returned when a fault occurs. ', 'type' => 'string', 'example' => 'ok', 'title' => ''],
'RequestId' => ['description' => 'The unique identifier of the request. ', 'type' => 'string', 'example' => 'A41F6E25-8520-4AF0-90EF-AF7E32840108', 'title' => ''],
'Data' => [
'description' => 'The returned data content. ',
'type' => 'object',
'properties' => [
'Url' => ['description' => 'Link to the translated image. ', 'type' => 'string', 'example' => 'https://ae01.alicdn.com/kf/xxxxx.jpeg', 'title' => ''],
'Orc' => ['description' => 'Content after OCR detection. ', 'type' => 'string', 'example' => '{"text":"P翼-至草款","width":750,"wordNum":10}', 'title' => ''],
'PictureEditor' => ['description' => 'PSD data used for rendering in the image editor. ', 'type' => 'string', 'example' => '{"text":"P翼-至草款","width":750,"wordNum":10}', 'title' => ''],
],
'title' => '',
'example' => '',
],
],
'description' => '',
'title' => '',
'example' => '',
],
],
],
'errorCodes' => [
101 => [
['errorCode' => 'System.RequestTimeOut', 'errorMessage' => 'The request has timed out.', 'description' => ''],
],
[
['errorCode' => 'System.Error', 'errorMessage' => 'A system error occurred.', 'description' => ''],
],
[
['errorCode' => 'System.UrlDecodingError', 'errorMessage' => 'An error occurred while decoding the URL. Verify that the specified URL is encoded.', 'description' => ''],
],
[
['errorCode' => 'System.ParameterError', 'errorMessage' => 'Some required parameters are missing.', 'description' => ''],
],
[
['errorCode' => 'System.LanguageNotSupported', 'errorMessage' => 'The specified language pair is not supported.', 'description' => ''],
],
[
['errorCode' => 'System.LanguageDetectError', 'errorMessage' => 'An error occurred while detecting the language.', 'description' => ''],
],
[
['errorCode' => 'System.TranslateError', 'errorMessage' => 'An error occurred while translating.', 'description' => ''],
],
[
['errorCode' => 'System.StringTooLong', 'errorMessage' => 'The maximum length of the specified string is exceeded.', 'description' => ''],
],
[
['errorCode' => 'System.subNotPermission', 'errorMessage' => 'The sub-account is not authorized to perform the operation.', 'description' => ''],
],
[
['errorCode' => 'System.AccountNotActivated', 'errorMessage' => 'The account has not activated the service.', 'description' => ''],
],
[
['errorCode' => 'System.SubServiceFailed', 'errorMessage' => 'Sub-account service failed.', 'description' => ''],
],
[
['errorCode' => 'System.TranslateServiceCallFailed', 'errorMessage' => 'Failed to call the translation service.', 'description' => ''],
],
[
['errorCode' => 'System.AccountNotActivatedOrInArrears', 'errorMessage' => 'The service is not activated or the account has an outstanding balance.', 'description' => ''],
],
199 => [
['errorCode' => 'System.unknownError', 'errorMessage' => 'An unknown error occurred.', 'description' => ''],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Code\\": 200,\\n \\"Message\\": \\"ok\\",\\n \\"RequestId\\": \\"A41F6E25-8520-4AF0-90EF-AF7E32840108\\",\\n \\"Data\\": {\\n \\"Url\\": \\"https://ae01.alicdn.com/kf/xxxxx.jpeg\\",\\n \\"Orc\\": \\"{\\\\\\"text\\\\\\":\\\\\\"P翼-至草款\\\\\\",\\\\\\"width\\\\\\":750,\\\\\\"wordNum\\\\\\":10}\\",\\n \\"PictureEditor\\": \\"{\\\\\\"text\\\\\\":\\\\\\"P翼-至草款\\\\\\",\\\\\\"width\\\\\\":750,\\\\\\"wordNum\\\\\\":10}\\"\\n }\\n}","type":"json"}]',
'title' => 'Intelligent Product Image Translation ',
'description' => '><notice>This API is scheduled for unpublishing and is not recommended for continued use.><notice> '."\n"
.'The replacement API is [Image Translation](https://help.aliyun.com/zh/machine-translation/developer-reference/api-alimt-2018-10-12-translateimage?spm=a2c4g.11186623.0.0.625a288aSx2On0). ',
'requestParamsDescription' => ' ',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [],
'ramActions' => [
[
'operationType' => 'get',
'ramAction' => [
'action' => 'alimt:GetImageTranslate',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Alimt', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
],
],
'GetImageTranslateTask' => [
'summary' => 'Obtain the asynchronous image translation result by job ID. ',
'methods' => ['post', 'get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => ['operationType' => 'get', 'riskType' => 'none', 'chargeType' => 'free'],
'parameters' => [
[
'name' => 'TaskId',
'in' => 'formData',
'schema' => ['description' => 'Job ID of the asynchronous image translation task ', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'xxxxxx', 'title' => ''],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'Code' => ['description' => 'Status code. A value of 200 indicates normal status. '."\n", 'type' => 'integer', 'format' => 'int32', 'example' => '200', 'title' => ''],
'Message' => ['description' => 'The error message returned when a fault occurs. '."\n", 'type' => 'string', 'example' => 'ok', 'title' => ''],
'RequestId' => ['description' => 'The unique string of the request. '."\n", 'type' => 'string', 'example' => 'xxxxxxx', 'title' => ''],
'Data' => [
'description' => 'The returned data content. '."\n",
'type' => 'object',
'properties' => [
'ImageData' => ['description' => '- Structured data of the image translation '."\n"
."\n"
.'```', 'type' => 'string', 'example' => '[{xxxxxx}]', 'title' => ''],
],
'title' => '',
'example' => '',
],
],
'description' => '',
'title' => '',
'example' => '',
],
],
],
'errorCodes' => [
101 => [
['errorCode' => 'System.RequestTimeOut', 'errorMessage' => 'The request has timed out.', 'description' => ''],
],
[
['errorCode' => 'System.Error', 'errorMessage' => 'A system error occurred.', 'description' => ''],
],
[
['errorCode' => 'System.UrlDecodingError', 'errorMessage' => 'An error occurred while decoding the URL. Verify that the specified URL is encoded.', 'description' => ''],
],
[
['errorCode' => 'System.ParameterError', 'errorMessage' => 'Some required parameters are missing.', 'description' => ''],
],
[
['errorCode' => 'System.LanguageNotSupported', 'errorMessage' => 'The specified language pair is not supported.', 'description' => ''],
],
[
['errorCode' => 'System.LanguageDetectError', 'errorMessage' => 'An error occurred while detecting the language.', 'description' => ''],
],
[
['errorCode' => 'System.TranslateError', 'errorMessage' => 'An error occurred while translating.', 'description' => ''],
],
[
['errorCode' => 'System.StringTooLong', 'errorMessage' => 'The maximum length of the specified string is exceeded.', 'description' => ''],
],
110 => [
['errorCode' => 'System.AccountNotActivated', 'errorMessage' => 'The account has not activated the service.', 'description' => ''],
],
[
['errorCode' => 'System.SubServiceFailed', 'errorMessage' => 'Sub-account service failed.', 'description' => ''],
],
[
['errorCode' => 'System.TranslateServiceCallFailed', 'errorMessage' => 'Failed to call the translation service.', 'description' => ''],
],
[
['errorCode' => 'System.AccountNotActivatedOrInArrears', 'errorMessage' => 'The service is not activated or the account has an outstanding balance.', 'description' => ''],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Code\\": 200,\\n \\"Message\\": \\"ok\\",\\n \\"RequestId\\": \\"xxxxxxx\\",\\n \\"Data\\": {\\n \\"ImageData\\": \\"[{xxxxxx}]\\"\\n }\\n}","type":"json"}]',
'title' => 'Obtain asynchronous image translation result ',
'description' => '><notice>This API is scheduled to be unpublished and is not recommended for continued use.></notice> ',
'requestParamsDescription' => ' ',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [],
'ramActions' => [
[
'operationType' => 'get',
'ramAction' => [
'action' => 'alimt:GetImageTranslateTask',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Alimt', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
],
],
'GetTitleDiagnose' => [
'summary' => 'By using the Product title quality Diagnosis service, a visualized title quality score is generated to help sellers gain an intuitive understanding of the quality of their existing product titles. ',
'methods' => ['post', 'get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => ['operationType' => 'get', 'riskType' => 'none', 'chargeType' => 'free'],
'parameters' => [
[
'name' => 'Title',
'in' => 'formData',
'schema' => ['description' => 'Title content ', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'Amroe Japan Comic Theme Uzumaki Naruto Namikaze Minato 3D Visual Cartoon 7 Color USB Touch', 'title' => ''],
],
[
'name' => 'Language',
'in' => 'formData',
'schema' => ['description' => 'Language of the title text. <props="china">[Supported language directions and language codes](https://help.aliyun.com/document_detail/182310.html?spm=a2c4g.11186623.6.543.106340eblV3QUo)</props><props="intl">[Supported language directions and language codes](https://www.alibabacloud.com/help/zh/doc-detail/182310.html)</props> '."\n", 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'zh', 'title' => ''],
],
[
'name' => 'Platform',
'in' => 'formData',
'schema' => ['description' => 'Platform to which the product title belongs. Supported platforms are ae, icbu, and lazada. ', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'ae', 'title' => ''],
],
[
'name' => 'CategoryId',
'in' => 'formData',
'schema' => ['description' => 'Category ID. Pass 0 if no category data is available. ', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => '123', 'title' => ''],
],
[
'name' => 'Extra',
'in' => 'formData',
'schema' => ['description' => '- Optional field '."\n"
."\n"
.'- Format: { '."\n"
.' "product_id": "1", '."\n"
.' "platform": "ae" '."\n"
.'} '."\n"
.'- product_id: Product ID '."\n"
.'- platform: Platform to which the product belongs. Supported platforms are ae, icbu, and lazada. ', 'type' => 'string', 'required' => false, 'docRequired' => true, 'example' => '{ "product_id": "1", "platform": "ae" }', 'title' => ''],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'Code' => ['description' => 'Status code. A normal request returns 200. ', 'type' => 'integer', 'format' => 'int32', 'example' => '200', 'title' => ''],
'Message' => ['description' => 'Status message ', 'type' => 'string', 'example' => 'ok', 'title' => ''],
'RequestId' => ['description' => 'Request ID ', 'type' => 'string', 'example' => 'DC2DCCC9-C3DF-4F59-8D8E-78185729F16D', 'title' => ''],
'Data' => [
'description' => 'Specific returned content ',
'type' => 'object',
'properties' => [
'DuplicateWords' => ['description' => 'Duplicate words (including singular and plural forms) ', 'type' => 'string', 'example' => 'hi', 'title' => ''],
'ContainCoreClasses' => ['description' => 'Whether it contains category core words ', 'type' => 'string', 'example' => 'true', 'title' => ''],
'WordCount' => ['description' => 'Total word count ', 'type' => 'string', 'example' => '10', 'title' => ''],
'LanguageQualityScore' => ['description' => 'Language quality score ', 'type' => 'string', 'example' => '2', 'title' => ''],
'AllUppercaseWords' => ['description' => 'Words in all uppercase ', 'type' => 'string', 'example' => 'Boy', 'title' => ''],
'OverLengthLimit' => ['description' => 'Length limit ', 'type' => 'string', 'example' => '100', 'title' => ''],
'DisableWords' => ['description' => 'Sensitive words ', 'type' => 'string', 'example' => 'baba', 'title' => ''],
'NoFirstUppercaseList' => ['description' => 'Words with first letter not in uppercase ', 'type' => 'string', 'example' => 'no', 'title' => ''],
'TotalScore' => ['description' => 'Total score ', 'type' => 'string', 'example' => '3', 'title' => ''],
'WordSpelledCorrectError' => ['description' => 'Words with spelling errors', 'type' => 'string', 'example' => 'ahk', 'title' => ''],
],
'title' => '',
'example' => '',
],
],
'description' => '',
'title' => '',
'example' => '',
],
],
],
'errorCodes' => [
101 => [
['errorCode' => 'System.RequestTimeOut', 'errorMessage' => 'The request has timed out.', 'description' => ''],
],
[
['errorCode' => 'System.Error', 'errorMessage' => 'A system error occurred.', 'description' => ''],
],
[
['errorCode' => 'System.UrlDecodingError', 'errorMessage' => 'An error occurred while decoding the URL. Verify that the specified URL is encoded.', 'description' => ''],
],
[
['errorCode' => 'System.ParameterError', 'errorMessage' => 'Some required parameters are missing.', 'description' => ''],
],
[
['errorCode' => 'System.LanguageNotSupported', 'errorMessage' => 'The specified language pair is not supported.', 'description' => ''],
],
[
['errorCode' => 'System.LanguageDetectError', 'errorMessage' => 'An error occurred while detecting the language.', 'description' => ''],
],
[
['errorCode' => 'System.TranslateError', 'errorMessage' => 'An error occurred while translating.', 'description' => ''],
],
[
['errorCode' => 'System.StringTooLong', 'errorMessage' => 'The maximum length of the specified string is exceeded.', 'description' => ''],
],
[
['errorCode' => 'System.subNotPermission', 'errorMessage' => 'The sub-account is not authorized to perform the operation.', 'description' => ''],
],
[
['errorCode' => 'System.AccountNotActivated', 'errorMessage' => 'The account has not activated the service.', 'description' => ''],
],
[
['errorCode' => 'System.SubServiceFailed', 'errorMessage' => 'Sub-account service failed.', 'description' => ''],
],
[
['errorCode' => 'System.TranslateServiceCallFailed', 'errorMessage' => 'Failed to call the translation service.', 'description' => ''],
],
[
['errorCode' => 'System.AccountNotActivatedOrInArrears', 'errorMessage' => 'The service is not activated or the account has an outstanding balance.', 'description' => ''],
],
199 => [
['errorCode' => 'System.unknownError', 'errorMessage' => 'An unknown error occurred.', 'description' => ''],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Code\\": 200,\\n \\"Message\\": \\"ok\\",\\n \\"RequestId\\": \\"DC2DCCC9-C3DF-4F59-8D8E-78185729F16D\\",\\n \\"Data\\": {\\n \\"DuplicateWords\\": \\"hi\\",\\n \\"ContainCoreClasses\\": \\"true\\",\\n \\"WordCount\\": \\"10\\",\\n \\"LanguageQualityScore\\": \\"2\\",\\n \\"AllUppercaseWords\\": \\"Boy\\",\\n \\"OverLengthLimit\\": \\"100\\",\\n \\"DisableWords\\": \\"baba\\",\\n \\"NoFirstUppercaseList\\": \\"no\\",\\n \\"TotalScore\\": \\"3\\",\\n \\"WordSpelledCorrectError\\": \\"ahk\\"\\n }\\n}","type":"json"}]',
'title' => 'Title Diagnosis Invocation Guide ',
'description' => '><notice>This API is scheduled to be unpublished and is not recommended for continued invocation.></notice> ',
'requestParamsDescription' => ' ',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [],
'ramActions' => [
[
'operationType' => 'get',
'ramAction' => [
'action' => 'alimt:GetTitleDiagnose',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Alimt', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
],
],
'GetTitleGenerate' => [
'summary' => 'Automatically optimize product titles based on e-commerce big data. ',
'methods' => ['post', 'get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => ['operationType' => 'get', 'riskType' => 'none', 'chargeType' => 'free'],
'parameters' => [
[
'name' => 'Title',
'in' => 'formData',
'schema' => ['description' => 'Title content ', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => '10pcs 80ml Kitchen Disposable', 'title' => ''],
],
[
'name' => 'Language',
'in' => 'formData',
'schema' => ['description' => 'Title language. <props="china">[Supported languages and language codes](https://help.aliyun.com/document_detail/182310.html)</props><props="intl">[Supported languages and language codes](https://www.alibabacloud.com/help/zh/doc-detail/182310.html)</props> ', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'en', 'title' => ''],
],
[
'name' => 'Platform',
'in' => 'formData',
'schema' => ['description' => 'Platform to which the product title belongs; supports ae/icbu ', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'ae', 'title' => ''],
],
[
'name' => 'CategoryId',
'in' => 'formData',
'schema' => ['description' => 'Category ID; pass 0 if no category data is available ', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => '127896018', 'title' => ''],
],
[
'name' => 'HotWords',
'in' => 'formData',
'schema' => ['description' => 'Hot words ', 'type' => 'string', 'required' => false, 'example' => 'None,Plastic', 'title' => ''],
],
[
'name' => 'Attributes',
'in' => 'formData',
'schema' => ['description' => 'Product properties; pass JSON data as shown in the Sample ', 'type' => 'string', 'required' => false, 'example' => '{2:"None",10:"Plastic"}', 'title' => ''],
],
[
'name' => 'Extra',
'in' => 'formData',
'schema' => ['description' => '- Format: '."\n"
.'{ '."\n"
.' "product_id": "1", '."\n"
.' "platform": "ae" '."\n"
.'} '."\n"
.'- product_id: Product ID '."\n"
.'- platform: Platform to which the product belongs ', 'type' => 'string', 'required' => false, 'example' => '{ "product_id": "1", "platform": "ae" }', 'title' => ''],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'Code' => ['description' => 'Status code; returns 200 for Normal status ', 'type' => 'integer', 'format' => 'int32', 'example' => '200', 'title' => ''],
'Message' => ['description' => 'Returns an error message when a fault occurs. ', 'type' => 'string', 'example' => 'ok', 'title' => ''],
'RequestId' => ['description' => 'Unique request ID ', 'type' => 'string', 'example' => 'DC2DCCC9-C3DF-4F59-8D8E-78185729F16D', 'title' => ''],
'Data' => [
'description' => 'Returned content ',
'type' => 'object',
'properties' => [
'Titles' => ['description' => 'Optimized title content ', 'type' => 'string', 'example' => '10pcs 80ml Kitchen Disposable Plastic Sauce Cup Pot Chutney Container', 'title' => ''],
],
'title' => '',
'example' => '',
],
],
'description' => '',
'title' => '',
'example' => '',
],
],
],
'errorCodes' => [
101 => [
['errorCode' => 'System.RequestTimeOut', 'errorMessage' => 'The request has timed out.', 'description' => ''],
],
[
['errorCode' => 'System.Error', 'errorMessage' => 'A system error occurred.', 'description' => ''],
],
[
['errorCode' => 'System.UrlDecodingError', 'errorMessage' => 'An error occurred while decoding the URL. Verify that the specified URL is encoded.', 'description' => ''],
],
[
['errorCode' => 'System.ParameterError', 'errorMessage' => 'Some required parameters are missing.', 'description' => ''],
],
[
['errorCode' => 'System.LanguageNotSupported', 'errorMessage' => 'The specified language pair is not supported.', 'description' => ''],
],
[
['errorCode' => 'System.LanguageDetectError', 'errorMessage' => 'An error occurred while detecting the language.', 'description' => ''],
],
[
['errorCode' => 'System.TranslateError', 'errorMessage' => 'An error occurred while translating.', 'description' => ''],
],
[
['errorCode' => 'System.StringTooLong', 'errorMessage' => 'The maximum length of the specified string is exceeded.', 'description' => ''],
],
[
['errorCode' => 'System.subNotPermission', 'errorMessage' => 'The sub-account is not authorized to perform the operation.', 'description' => ''],
],
[
['errorCode' => 'System.AccountNotActivated', 'errorMessage' => 'The account has not activated the service.', 'description' => ''],
],
[
['errorCode' => 'System.SubServiceFailed', 'errorMessage' => 'Sub-account service failed.', 'description' => ''],
],
[
['errorCode' => 'System.TranslateServiceCallFailed', 'errorMessage' => 'Failed to call the translation service.', 'description' => ''],
],
[
['errorCode' => 'System.AccountNotActivatedOrInArrears', 'errorMessage' => 'The service is not activated or the account has an outstanding balance.', 'description' => ''],
],
199 => [
['errorCode' => 'System.unknownError', 'errorMessage' => 'An unknown error occurred.', 'description' => ''],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Code\\": 200,\\n \\"Message\\": \\"ok\\",\\n \\"RequestId\\": \\"DC2DCCC9-C3DF-4F59-8D8E-78185729F16D\\",\\n \\"Data\\": {\\n \\"Titles\\": \\"10pcs 80ml Kitchen Disposable Plastic Sauce Cup Pot Chutney Container\\"\\n }\\n}","type":"json"}]',
'title' => 'Title Optimization Invocation Guide ',
'description' => '><notice>This API is scheduled to be unpublished and is not recommended for continued invocation.></notice> ',
'requestParamsDescription' => ' ',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [],
'ramActions' => [
[
'operationType' => 'get',
'ramAction' => [
'action' => 'alimt:GetTitleGenerate',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Alimt', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
],
],
'GetTitleIntelligence' => [
'summary' => 'Automatically generate Product titles based on category, platform, and keywords. ',
'methods' => ['post', 'get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => ['operationType' => 'get', 'riskType' => 'none', 'chargeType' => 'free', 'tenantRelevance' => 'publicInformation'],
'parameters' => [
[
'name' => 'Platform',
'in' => 'formData',
'schema' => ['description' => 'Platform where the Product is listed: ae, icbu, or lazada ', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'ae', 'title' => ''],
],
[
'name' => 'Extra',
'in' => 'formData',
'schema' => ['description' => 'Extension information in JSON data format; optional field ', 'type' => 'string', 'required' => false, 'example' => '{"product_id":"1212"}', 'title' => ''],
],
[
'name' => 'CatLevelThreeId',
'in' => 'formData',
'schema' => ['description' => 'Third-level category ID; pass 0 if no category data is available. ', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'docRequired' => true, 'maximum' => '99999999999', 'minimum' => '0', 'example' => '111', 'title' => ''],
],
[
'name' => 'CatLevelTwoId',
'in' => 'formData',
'schema' => ['description' => 'Second-level category ID; pass 0 if no category data is available. ', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'docRequired' => true, 'maximum' => '99999999999', 'minimum' => '0', 'example' => '222', 'title' => ''],
],
[
'name' => 'Keywords',
'in' => 'formData',
'schema' => ['description' => 'Keywords, separated by English commas, such as: hello,apple ', 'type' => 'string', 'required' => false, 'docRequired' => true, 'example' => 'hello,apple', 'title' => ''],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'Code' => ['description' => 'Status code; 200 indicates Normal status. ', 'type' => 'integer', 'format' => 'int32', 'example' => '200', 'title' => ''],
'Message' => ['description' => 'If a fault occurs, an error message will be output. ', 'type' => 'string', 'example' => 'success', 'title' => ''],
'RequestId' => ['description' => 'A Unique request ID to facilitate troubleshooting and issue tracking. ', 'type' => 'string', 'example' => 'D70487B4-8891-4D24-BB64-8788E53671FB', 'title' => ''],
'Data' => [
'description' => 'Returned Data ',
'type' => 'object',
'properties' => [
'Titles' => ['description' => 'Automatically generated title information ', 'type' => 'string', 'example' => 'Custom Hello Kitty PVC Cartoon Apple for Home Garden Complete Apple Bath Shower', 'title' => ''],
],
'title' => '',
'example' => '',
],
],
'description' => '',
'title' => '',
'example' => '',
],
],
],
'errorCodes' => [
101 => [
['errorCode' => 'System.RequestTimeOut', 'errorMessage' => 'The request has timed out.', 'description' => ''],
],
[
['errorCode' => 'System.Error', 'errorMessage' => 'A system error occurred.', 'description' => ''],
],
[
['errorCode' => 'System.UrlDecodingError', 'errorMessage' => 'An error occurred while decoding the URL. Verify that the specified URL is encoded.', 'description' => ''],
],
[
['errorCode' => 'System.ParameterError', 'errorMessage' => 'Some required parameters are missing.', 'description' => ''],
],
[
['errorCode' => 'System.LanguageNotSupported', 'errorMessage' => 'The specified language pair is not supported.', 'description' => ''],
],
[
['errorCode' => 'System.LanguageDetectError', 'errorMessage' => 'An error occurred while detecting the language.', 'description' => ''],
],
[
['errorCode' => 'System.TranslateError', 'errorMessage' => 'An error occurred while translating.', 'description' => ''],
],
[
['errorCode' => 'System.StringTooLong', 'errorMessage' => 'The maximum length of the specified string is exceeded.', 'description' => ''],
],
[
['errorCode' => 'System.subNotPermission', 'errorMessage' => 'The sub-account is not authorized to perform the operation.', 'description' => ''],
],
[
['errorCode' => 'System.AccountNotActivated', 'errorMessage' => 'The account has not activated the service.', 'description' => ''],
],
[
['errorCode' => 'System.SubServiceFailed', 'errorMessage' => 'Sub-account service failed.', 'description' => ''],
],
[
['errorCode' => 'System.TranslateServiceCallFailed', 'errorMessage' => 'Failed to call the translation service.', 'description' => ''],
],
[
['errorCode' => 'System.AccountNotActivatedOrInArrears', 'errorMessage' => 'The service is not activated or the account has an outstanding balance.', 'description' => ''],
],
199 => [
['errorCode' => 'System.unknownError', 'errorMessage' => 'An unknown error occurred.', 'description' => ''],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Code\\": 200,\\n \\"Message\\": \\"success\\",\\n \\"RequestId\\": \\"D70487B4-8891-4D24-BB64-8788E53671FB\\",\\n \\"Data\\": {\\n \\"Titles\\": \\"Custom Hello Kitty PVC Cartoon Apple for Home Garden Complete Apple Bath Shower\\"\\n }\\n}","type":"json"}]',
'title' => 'Intelligent Title Generation API Usage Guide ',
'description' => '><notice>This API is scheduled to be unpublished and is not recommended for continued use.></notice> ',
'requestParamsDescription' => ' ',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [],
'ramActions' => [
[
'operationType' => 'get',
'ramAction' => [
'action' => 'alimt:GetTitleIntelligence',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Alimt', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
],
],
'GetTranslateImageBatchResult' => [
'summary' => 'Retrieve the results of asynchronous batch image translation.',
'methods' => ['post', 'get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => ['operationType' => 'none', 'riskType' => 'none', 'chargeType' => 'free'],
'parameters' => [
[
'name' => 'TaskId',
'in' => 'formData',
'schema' => ['description' => 'The task ID obtained by calling the asynchronous batch image translation API.', 'type' => 'string', 'required' => true, 'example' => 'EEA28E6D-4828-5031-BD8C-8FF1B3216842', 'title' => ''],
],
],
'responses' => [
200 => [
'schema' => [
'title' => 'Schema of Response',
'description' => 'The structure of the request result.',
'type' => 'object',
'properties' => [
'Code' => ['description' => 'The status code of the request result.', 'type' => 'integer', 'format' => 'int32', 'example' => '200', 'title' => ''],
'Message' => ['description' => 'The request message.', 'type' => 'string', 'example' => 'OK', 'title' => ''],
'RequestId' => ['description' => 'The request identity.', 'type' => 'string', 'example' => 'DACD263C-C068-5116-83EC-117245AA35CF', 'title' => ''],
'Data' => [
'description' => 'The data content.',
'type' => 'object',
'properties' => [
'Result' => [
'description' => 'Translation results. If the batch translation task is not complete, this field is an empty array.',
'type' => 'array',
'items' => [
'description' => 'The translation result for a single image.',
'type' => 'object',
'properties' => [
'InPaintingUrl' => ['description' => 'The post-translation Editor background image for a single image.', 'type' => 'string', 'example' => 'https://example.com/example.jpg', 'title' => ''],
'FinalImageUrl' => ['description' => 'The URL of the translated image for a single image.', 'type' => 'string', 'example' => 'https://example.com/example.jpg', 'title' => ''],
'TemplateJson' => ['description' => 'The post-translation Editor template data for a single image.', 'type' => 'string', 'example' => '{"TemplateJson": "Editor Template Json String "}', 'title' => ''],
'SourceImageUrl' => ['description' => 'The URL of the source image for a single image.', 'type' => 'string', 'example' => 'https://example.com/example.jpg', 'title' => ''],
'Code' => ['description' => 'The translation status code for a single image.', 'type' => 'integer', 'format' => 'int32', 'example' => '200', 'title' => ''],
'Message' => ['description' => 'The translation message for a single image.', 'type' => 'string', 'example' => 'OK', 'title' => ''],
'Success' => ['description' => 'Indicates whether a single image was translated successfully.', 'type' => 'boolean', 'example' => 'true', 'title' => ''],
],
'title' => '',
'example' => '',
],
'title' => '',
'example' => '',
],
'Status' => ['description' => 'Indicates the running status of the current task. Possible values and their meanings are as follows:'."\n"
."\n"
.'- `created`: The batch translation task was created successfully and is awaiting execution.'."\n"
."\n"
.'- `running`: The batch translation task is running.'."\n"
."\n"
.'- `finished`: The batch translation task has finished. All images are translated. The `Result` field contains the translation results for each image.'."\n"
."\n"
.'- `invalid`: The provided task ID is invalid, or the task\'s translation results have expired and been cleared.', 'type' => 'string', 'example' => 'finished', 'title' => ''],
],
'title' => '',
'example' => '',
],
],
'example' => '',
],
],
],
'errorCodes' => [
101 => [
['errorCode' => 'System.RequestTimeOut', 'errorMessage' => 'The request has timed out.', 'description' => ''],
],
[
['errorCode' => 'System.Error', 'errorMessage' => 'A system error occurred.', 'description' => ''],
],
[
['errorCode' => 'System.UrlDecodingError', 'errorMessage' => 'An error occurred while decoding the URL. Verify that the specified URL is encoded.', 'description' => ''],
],
[
['errorCode' => 'System.ParameterError', 'errorMessage' => 'Some required parameters are missing.', 'description' => ''],
],
[
['errorCode' => 'System.LanguageNotSupported', 'errorMessage' => 'The specified language pair is not supported.', 'description' => ''],
],
[
['errorCode' => 'System.LanguageDetectError', 'errorMessage' => 'An error occurred while detecting the language.', 'description' => ''],
],
[
['errorCode' => 'System.TranslateError', 'errorMessage' => 'An error occurred while translating.', 'description' => ''],
],
[
['errorCode' => 'System.StringTooLong', 'errorMessage' => 'The maximum length of the specified string is exceeded.', 'description' => ''],
],
110 => [
['errorCode' => 'System.AccountNotActivated', 'errorMessage' => 'The account has not activated the service.', 'description' => ''],
],
[
['errorCode' => 'System.SubServiceFailed', 'errorMessage' => 'Sub-account service failed.', 'description' => ''],
],
[
['errorCode' => 'System.TranslateServiceCallFailed', 'errorMessage' => 'Failed to call the translation service.', 'description' => ''],
],
[
['errorCode' => 'System.AccountNotActivatedOrInArrears', 'errorMessage' => 'The service is not activated or the account has an outstanding balance.', 'description' => ''],
],
],
'staticInfo' => ['returnType' => 'synchronous'],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Code\\": 200,\\n \\"Message\\": \\"OK\\",\\n \\"RequestId\\": \\"DACD263C-C068-5116-83EC-117245AA35CF\\",\\n \\"Data\\": {\\n \\"Result\\": [\\n {\\n \\"InPaintingUrl\\": \\"https://example.com/example.jpg\\",\\n \\"FinalImageUrl\\": \\"https://example.com/example.jpg\\",\\n \\"TemplateJson\\": \\"{\\\\\\"TemplateJson\\\\\\": \\\\\\"Editor Template Json String\\\\t\\\\\\"}\\",\\n \\"SourceImageUrl\\": \\"https://example.com/example.jpg\\",\\n \\"Code\\": 200,\\n \\"Message\\": \\"OK\\",\\n \\"Success\\": true\\n }\\n ],\\n \\"Status\\": \\"finished\\"\\n }\\n}","type":"json"}]',
'title' => 'Retrieve asynchronous batch image translation results',
'description' => 'Before using this API, review the image translation product\'s [billing methods and pricing](https://help.aliyun.com/document_detail/163332.html).'."\n"
."\n"
.'Results of asynchronous batch image translation are saved for 1 hour after translation completes. They are cleared after expiration. Retrieve the results promptly.',
'changeSet' => [],
'ramActions' => [
[
'operationType' => 'none',
'ramAction' => [
'action' => 'alimt:GetTranslateImageBatchResult',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Alimt', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
],
],
'GetTranslateReport' => [
'summary' => 'Obtain the API call report based on the API name and the start and end times, and return the results aggregated by day or hour according to the specified group parameter.',
'methods' => ['post', 'get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'systemTags' => ['operationType' => 'get', 'riskType' => 'none', 'chargeType' => 'free', 'tenantRelevance' => 'publicInformation'],
'parameters' => [
[
'name' => 'BeginTime',
'in' => 'query',
'schema' => ['description' => 'Start time.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => '2021-03-01 00:00:00', 'title' => ''],
],
[
'name' => 'EndTime',
'in' => 'query',
'schema' => ['description' => 'End time', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => '2021-03-01 23:59:59', 'title' => ''],
],
[
'name' => 'ApiName',
'in' => 'query',
'schema' => ['description' => 'API name'."\n"
."\n"
.'- Machine Translation General-purpose Edition: translate_standard'."\n"
.'- Machine Translation Professional Edition: translate_ecommerce'."\n"
.'- Language Detection: predict_detect'."\n"
.'- General Image Translation: it_general'."\n"
.'- E-commerce Image Translation: it_ecommerce'."\n"
.'- Document Translation: dt_page'."\n"
.'- ID Card Translation: ct_idcard'."\n"
.'- Driver\'s License Translation: ct_driving', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'translate_standard', 'title' => ''],
],
[
'name' => 'Group',
'in' => 'query',
'schema' => ['description' => 'Group.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'hour或者day', 'title' => ''],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'Code' => ['description' => 'Error code', 'type' => 'integer', 'format' => 'int32', 'example' => '200', 'title' => ''],
'Message' => ['description' => 'Return message', 'type' => 'string', 'example' => 'success', 'title' => ''],
'Data' => ['description' => 'Return content', 'type' => 'string', 'example' => '{"result":[{"time":"2021-10-21 00:00:00","total":100}]}', 'title' => ''],
'RequestId' => ['description' => 'Request ID', 'type' => 'string', 'example' => '86D18195-D89C-4C8C-9DC4-5FCE789CE6D5', 'title' => ''],
],
'description' => '',
'title' => '',
'example' => '',
],
],
],
'errorCodes' => [
109 => [
['errorCode' => '10009', 'errorMessage' => '子账号没有权限', 'description' => ''],
],
[
['errorCode' => '10010', 'errorMessage' => '账号没有开通服务', 'description' => ''],
],
[
['errorCode' => '10011', 'errorMessage' => '子账号服务失败', 'description' => ''],
],
[
['errorCode' => '10012', 'errorMessage' => '翻译服务调用失败', 'description' => ''],
],
[
['errorCode' => '10013', 'errorMessage' => '账号服务没有开通或者欠费', 'description' => ''],
],
199 => [
['errorCode' => '19999', 'errorMessage' => 'An unknown error occurred.', 'description' => ''],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Code\\": 200,\\n \\"Message\\": \\"success\\",\\n \\"Data\\": \\"{\\\\\\"result\\\\\\":[{\\\\\\"time\\\\\\":\\\\\\"2021-10-21 00:00:00\\\\\\",\\\\\\"total\\\\\\":100}]}\\",\\n \\"RequestId\\": \\"86D18195-D89C-4C8C-9DC4-5FCE789CE6D5\\"\\n}","type":"json"}]',
'title' => 'Obtain API Call Report',
'description' => 'Before using this API, ensure that you fully understand the billing method of the Machine Translation product and its [pricing](https://help.aliyun.com/document_detail/457279.html).',
'changeSet' => [],
'ramActions' => [
[
'operationType' => 'get',
'ramAction' => [
'action' => 'alimt:GetTranslateReport',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Alimt', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
],
],
'OpenAlimtService' => [
'summary' => 'Activate the Product service.',
'methods' => ['post', 'get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
[
'APP' => [],
],
[
'PrivateKey' => [],
],
[
'BearerToken' => [],
],
],
'operationType' => 'readAndWrite',
'deprecated' => false,
'systemTags' => ['operationType' => 'none', 'riskType' => 'none', 'chargeType' => 'free', 'tenantRelevance' => 'publicInformation'],
'parameters' => [
[
'name' => 'Type',
'in' => 'query',
'schema' => ['description' => '- Machine translation: alimt'."\n"
."\n"
.'- Customized translation service: type = automl'."\n"
."\n"
.'- Certificate translation: type = ct'."\n"
."\n"
.'- Document translation: type = dt'."\n"
."\n"
.'- Language detection: type = id'."\n", 'type' => 'string', 'required' => false, 'example' => 'id', 'title' => ''],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'OrderId' => ['description' => 'Order ID.', 'type' => 'string', 'example' => '123456', 'title' => ''],
'RequestId' => ['description' => 'Request ID.', 'type' => 'string', 'example' => 'xxxx-xxxxx', 'title' => ''],
],
'description' => '',
'title' => '',
'example' => '',
],
],
],
'errorCodes' => [
400 => [
['errorCode' => 'ORDER.OPEND', 'errorMessage' => 'You have already open the service. Go to the console to start using it', 'description' => ''],
['errorCode' => 'PRICEING.PLAN.RESULT.NOT.FOUND', 'errorMessage' => 'The order is not found', 'description' => ''],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"OrderId\\": \\"123456\\",\\n \\"RequestId\\": \\"xxxx-xxxxx\\"\\n}","type":"json"}]',
'title' => 'Activate the Product service',
'requestParamsDescription' => ' ',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [],
'ramActions' => [
[
'operationType' => 'none',
'ramAction' => [
'action' => 'alimt:OpenAlimtService',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Alimt', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
],
],
'Translate' => [
'summary' => 'Invoke Machine Translation Professional Edition to obtain translation results. ',
'methods' => ['post', 'get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
[
'BearerToken' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => ['operationType' => 'none', 'riskType' => 'none', 'chargeType' => 'free', 'tenantRelevance' => 'publicInformation'],
'parameters' => [
[
'name' => 'FormatType',
'in' => 'formData',
'schema' => ['description' => 'Format of the text to be translated: **html** (web page format; setting this parameter processes both the source and translated text as HTML) or **text** (plain text format; setting this parameter treats both the input source text and the translation result as plain text without any formatting)', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'text', 'title' => ''],
],
[
'name' => 'TargetLanguage',
'in' => 'formData',
'schema' => ['description' => 'Target language. <props="china">[Refer to language codes](https://help.aliyun.com/document_detail/215387.html)</ph></props><props="intl">[Refer to language codes](https://www.alibabacloud.com/help/zh/machine-translation/latest/machine-translation-language-code-list)</ph></props>', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'en', 'title' => ''],
],
[
'name' => 'SourceLanguage',
'in' => 'formData',
'schema' => ['description' => 'Source language. <props="china">[Refer to language codes](https://help.aliyun.com/document_detail/215387.html)</ph></props><props="intl">[Refer to language codes](https://www.alibabacloud.com/help/zh/machine-translation/latest/machine-translation-language-code-list)</ph></props>', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'zh', 'title' => ''],
],
[
'name' => 'SourceText',
'in' => 'formData',
'schema' => ['description' => 'Content to be translated', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => '你好', 'maxLength' => 256000, 'title' => ''],
],
[
'name' => 'Scene',
'in' => 'formData',
'schema' => ['description' => 'Available values for the scenario parameter: Product title (title), Product description (description), Product communication (communication), Medical (medical), Social (social), Finance (finance)', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'title', 'title' => ''],
],
[
'name' => 'Context',
'in' => 'query',
'schema' => ['title' => '', 'description' => 'Context information (optional)', 'type' => 'string', 'required' => false, 'example' => '早上我在家里吃了面包'],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'Code' => ['description' => 'Error code ', 'type' => 'integer', 'format' => 'int32', 'example' => '200', 'title' => ''],
'Message' => ['description' => 'Error message ', 'type' => 'string', 'example' => 'success', 'title' => ''],
'RequestId' => ['description' => 'Request ID ', 'type' => 'string', 'example' => '86D18195-D89C-4C8C-9DC4-5FCE789CE6D5', 'title' => ''],
'Data' => [
'description' => 'Returned data ',
'type' => 'object',
'properties' => [
'Translated' => ['description' => 'Translation result ', 'type' => 'string', 'example' => 'Hello', 'title' => ''],
'WordCount' => ['description' => 'Total word count ', 'type' => 'string', 'example' => '10', 'title' => ''],
'DetectedLanguage' => ['description' => 'Source language code after language detection when the source language is set to auto ', 'type' => 'string', 'example' => 'zh', 'title' => ''],
],
'title' => '',
'example' => '',
],
],
'description' => '',
'title' => '',
'example' => '',
],
],
],
'errorCodes' => [
101 => [
['errorCode' => '10001', 'errorMessage' => 'The request has timed out.', 'description' => ''],
],
[
['errorCode' => '10002', 'errorMessage' => 'A system error occurred.', 'description' => ''],
],
[
['errorCode' => '10003', 'errorMessage' => 'An error occurred while decoding the URL. Verify that the specified URL is encoded.', 'description' => ''],
],
[
['errorCode' => '10004', 'errorMessage' => 'Some required parameters are missing.', 'description' => ''],
],
[
['errorCode' => '10005', 'errorMessage' => 'The specified language pair is not supported.', 'description' => ''],
],
[
['errorCode' => '10006', 'errorMessage' => 'An error occurred while detecting the language.', 'description' => ''],
],
[
['errorCode' => '10007', 'errorMessage' => 'An error occurred while translating.', 'description' => ''],
],
[
['errorCode' => '10008', 'errorMessage' => 'The specified string is too long.', 'description' => ''],
],
[
['errorCode' => '10009', 'errorMessage' => '子账号没有权限', 'description' => ''],
],
[
['errorCode' => '10010', 'errorMessage' => '账号没有开通服务', 'description' => ''],
],
[
['errorCode' => '10011', 'errorMessage' => '子账号服务失败', 'description' => ''],
],
[
['errorCode' => '10012', 'errorMessage' => '翻译服务调用失败', 'description' => ''],
],
[
['errorCode' => '10013', 'errorMessage' => '账号服务没有开通或者欠费', 'description' => ''],
],
199 => [
['errorCode' => '19999', 'errorMessage' => 'An unknown error occurred.', 'description' => ''],
],
],
'eventInfo' => [
'enable' => false,
'eventNames' => [],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Code\\": 200,\\n \\"Message\\": \\"success\\",\\n \\"RequestId\\": \\"86D18195-D89C-4C8C-9DC4-5FCE789CE6D5\\",\\n \\"Data\\": {\\n \\"Translated\\": \\"Hello\\",\\n \\"WordCount\\": \\"10\\",\\n \\"DetectedLanguage\\": \\"zh\\"\\n }\\n}","type":"json"}]',
'title' => 'Invoke Machine Translation Professional Edition',
'description' => 'Notes '."\n"
.'1. The queries per second (QPS) limit is 50. If you require a higher limit, please contact us. DingTalk group number: 23369411. '."\n"
.'<props="intl">2. Before using this API, ensure you fully understand the billing method and pricing of the Professional Edition translation product.</ph></props> '."\n"
.'<props="china">2. The maximum character length is 5,000 characters. If your input exceeds this limit, save it as a file and use [Document Translation](https://help.aliyun.com/document_detail/164151.html).</ph></props> '."\n"
.'<props="china">3. Before using this API, ensure you fully understand the billing method and pricing of the Professional Edition translation product.</ph></props> ',
'requestParamsDescription' => '### Scenario Description '."\n"
.'We provide different engines optimized specifically for various scenarios. You can control which engine to use by specifying the scene parameter. Valid values for the scene parameter include: product title (title), product description (description), product communication (communication), medical (medical), social (social), and finance (finance). '."\n"
."\n"
.'- **Product Title**: This engine is trained exclusively on Alibaba\'s e-commerce product title data and delivers excellent performance for translating product titles. '."\n"
.'- **Product Description**: Trained specifically on Alibaba\'s detailed product description data, this engine excels at translating comprehensive product descriptions. '."\n"
.'- **Product Communication**: Optimized for buyer-seller communication scenarios in e-commerce, this engine provides high-quality translations for conversational content. '."\n"
.'- **Medical**: This engine is specially trained on medical literature, terminology, and pharmaceutical data, ensuring superior translation quality in medical contexts. '."\n"
.'- **Social**: Designed for colloquial and informal language, this engine produces natural-sounding translations suitable for social interactions. '."\n"
.'- **Finance**: Tailored for the finance domain, this engine delivers accurate translations of financial content. ',
'responseParamsDescription' => '<props="china">For common request parameters, see [Common Request Parameters in "RPC Call Mechanism"](https://help.aliyun.com/document_detail/315526.html?spm=a2c4g.158244.0.0.34b627b5qv5gmt#sectiondiv-qq5-utu-r7a).</ph></props> ',
'extraInfo' => ' ',
'changeSet' => [
['createdAt' => '2024-10-08T08:21:05.000Z', 'description' => 'Request parameters changed'],
['createdAt' => '2023-05-25T09:33:06.000Z', 'description' => 'Response parameters changed'],
],
'ramActions' => [
[
'operationType' => 'none',
'ramAction' => [
'action' => 'alimt:Translate',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Alimt', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
],
],
'TranslateCertificate' => [
'summary' => 'Translate certificates.',
'methods' => ['post'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
[
'BearerToken' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => ['operationType' => 'none', 'riskType' => 'none', 'chargeType' => 'free', 'tenantRelevance' => 'publicInformation'],
'parameters' => [
[
'name' => 'SourceLanguage',
'in' => 'formData',
'schema' => ['description' => 'Source language of the image', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'zh', 'title' => ''],
],
[
'name' => 'TargetLanguage',
'in' => 'formData',
'schema' => ['description' => 'Target language', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'en', 'title' => ''],
],
[
'name' => 'ImageUrl',
'in' => 'formData',
'schema' => ['description' => 'OSS file URL: an HTTP URL that can be accessed without authorization', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'http://imageurl', 'isFileTransferUrl' => true, 'title' => ''],
],
[
'name' => 'CertificateType',
'in' => 'formData',
'schema' => ['description' => 'Type of certificate to translate: ID card (idcard), driver\'s license (driving_license)', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'driving_license', 'title' => ''],
],
[
'name' => 'ResultType',
'in' => 'formData',
'schema' => ['description' => 'Result Type: text or image. If no value is provided, the default is text.', 'type' => 'string', 'required' => false, 'example' => 'text', 'title' => ''],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'RequestId' => ['description' => 'Request ID', 'type' => 'string', 'example' => '6640DE48-201C-4110-AE87-FB8FA34412B9', 'title' => ''],
'Data' => [
'description' => 'Translation result',
'type' => 'object',
'properties' => [
'TranslatedValues' => [
'description' => 'List of translation results',
'type' => 'array',
'items' => [
'type' => 'object',
'properties' => [
'KeyTranslation' => ['description' => 'Translated text corresponding to the key', 'type' => 'string', 'example' => 'name', 'title' => ''],
'Key' => ['description' => 'Title of the certificate content, such as Name or Gender on an ID card', 'type' => 'string', 'example' => '姓名', 'title' => ''],
'Value' => ['description' => 'Original text', 'type' => 'string', 'example' => '庄严', 'title' => ''],
'ValueTranslation' => ['description' => 'Translated text', 'type' => 'string', 'example' => 'Solemn', 'title' => ''],
],
'description' => '',
'title' => '',
'example' => '',
],
'title' => '',
'example' => '',
],
],
'title' => '',
'example' => '',
],
],
'description' => '',
'title' => '',
'example' => '',
],
],
],
'errorCodes' => [
400 => [
['errorCode' => '10026', 'errorMessage' => 'Failed to translate the certificate. Please check the parameters.', 'description' => ''],
],
403 => [
['errorCode' => 'InvalidAccountStatus.ServiceUnavailable', 'errorMessage' => 'The service has not been activated.', 'description' => 'The service has not been activated.'],
],
503 => [
['errorCode' => 'ServiceUnavailable', 'errorMessage' => 'An error occurred while processing your request.', 'description' => 'An error occurred while processing your request.'],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"6640DE48-201C-4110-AE87-FB8FA34412B9\\",\\n \\"Data\\": {\\n \\"TranslatedValues\\": [\\n {\\n \\"KeyTranslation\\": \\"name\\",\\n \\"Key\\": \\"姓名\\",\\n \\"Value\\": \\"庄严\\",\\n \\"ValueTranslation\\": \\"Solemn\\"\\n }\\n ]\\n }\\n}","type":"json"}]',
'title' => 'Certificate Translation',
'description' => 'Before using this API, make sure you fully understand the [pricing and billing method](https://help.aliyun.com/document_detail/163332.html) of the Image Translation product.'."\n"
."\n"
.'This API is designed for **certificate translation**. For general image translation or e-commerce image translation, refer to the [Image Translation API Guide](https://help.aliyun.com/document_detail/2505940.html).'."\n"
."\n\n"
."\n"
.'**Image Requirements** '."\n"
.'File Size limit: 4 MB '."\n"
.'Supported formats: jpg, jpeg, png '."\n"
."\n"
.'API queries per second (QPS) limit: 40 '."\n"
."\n"
.'> This API supports invocation only via POST requests.',
'requestParamsDescription' => ' ',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
'changeSet' => [
['createdAt' => '2022-11-11T08:44:00.000Z', 'description' => 'Error codes changed'],
],
'ramActions' => [
[
'operationType' => 'none',
'ramAction' => [
'action' => 'alimt:TranslateCertificate',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Alimt', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
],
],
'TranslateECommerce' => [
'summary' => 'Calls the Professional Edition of Machine Translation to return translation results.',
'methods' => ['post', 'get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
[
'BearerToken' => [],
],
],
'operationType' => 'read',
'deprecated' => true,
'systemTags' => ['operationType' => 'none', 'riskType' => 'none', 'chargeType' => 'free', 'tenantRelevance' => 'publicInformation'],
'parameters' => [
[
'name' => 'FormatType',
'in' => 'formData',
'schema' => [
'description' => 'The format of the text. Valid values: html and text. If you set this parameter to **html**, the source text and the translated text are processed as HTML. If you set this parameter to **text**, the source text and the translated text are processed as plain text.',
'enumValueTitles' => ['html' => 'html', 'text' => 'text'],
'type' => 'string',
'required' => true,
'docRequired' => true,
'example' => 'text',
'title' => '',
],
],
[
'name' => 'TargetLanguage',
'in' => 'formData',
'schema' => ['description' => 'The target language. For more information about the supported languages, see [Language codes](https://help.aliyun.com/document_detail/163584.html).', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'zh', 'title' => ''],
],
[
'name' => 'SourceLanguage',
'in' => 'formData',
'schema' => ['description' => 'The source language. For more information, see <props="china">[Language codes](https://help.aliyun.com/document_detail/158269.html?spm=a2c4g.11186623.2.8.53746614hvrF2G)</props><props="intl">[Language codes](https://www.alibabacloud.com/help/zh/doc-detail/158269.html)</props>', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'en', 'title' => ''],
],
[
'name' => 'SourceText',
'in' => 'formData',
'schema' => ['description' => 'The content to be translated.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'Hello', 'title' => ''],
],
[
'name' => 'Scene',
'in' => 'formData',
'schema' => [
'description' => 'The translation scenario. Valid values: \\`title\\` (product titles), \\`description\\` (product descriptions), \\`communication\\` (product communications), \\`medical\\`, \\`social\\`, and \\`finance\\`.',
'enumValueTitles' => ['medical' => 'medical', 'social' => 'social', 'description' => 'description', 'communication' => 'communication', 'title' => 'title', 'finance' => 'finance'],
'type' => 'string',
'required' => true,
'docRequired' => true,
'example' => 'social',
'title' => '',
],
],
[
'name' => 'Context',
'in' => 'query',
'schema' => ['description' => 'Context information.', 'type' => 'string', 'example' => 'context信息', 'title' => '', 'required' => false],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'Code' => ['description' => 'The status code. A value of 200 indicates that the request was successful.', 'type' => 'integer', 'format' => 'int32', 'example' => '200', 'title' => ''],
'Message' => ['description' => 'The error message returned if the request fails. If the request is successful, this parameter is empty.', 'type' => 'string', 'example' => 'An error occurred while translating.', 'title' => ''],
'RequestId' => ['description' => 'The unique ID of the request. This is used for troubleshooting.', 'type' => 'string', 'example' => 'CC93BB5C-EAB5-579B-AA44-F61528F48FF8', 'title' => ''],
'Data' => [
'description' => 'The returned data.',
'type' => 'object',
'properties' => [
'Translated' => ['description' => 'The translation result.', 'type' => 'string', 'example' => '你好', 'title' => ''],
'WordCount' => ['description' => 'The number of characters in the source text.', 'type' => 'string', 'example' => '10', 'title' => ''],
'DetectedLanguage' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
],
'title' => '',
'example' => '',
],
],
'description' => '',
'title' => '',
'example' => '',
],
],
],
'errorCodes' => [
101 => [
['errorCode' => '10001', 'errorMessage' => 'The request has timed out.', 'description' => ''],
],
[
['errorCode' => '10002', 'errorMessage' => 'A system error occurred.', 'description' => ''],
],
[
['errorCode' => '10003', 'errorMessage' => 'An error occurred while decoding the URL. Verify that the specified URL is encoded.', 'description' => ''],
],
[
['errorCode' => '10004', 'errorMessage' => 'Some required parameters are missing.', 'description' => ''],
],
[
['errorCode' => '10005', 'errorMessage' => 'The specified language pair is not supported.', 'description' => ''],
],
[
['errorCode' => '10006', 'errorMessage' => 'An error occurred while detecting the language.', 'description' => ''],
],
[
['errorCode' => '10007', 'errorMessage' => 'An error occurred while translating.', 'description' => ''],
],
[
['errorCode' => '10008', 'errorMessage' => 'The specified string is too long.', 'description' => ''],
],
[
['errorCode' => '10009', 'errorMessage' => '子账号没有权限', 'description' => ''],
],
[
['errorCode' => '10010', 'errorMessage' => '账号没有开通服务', 'description' => ''],
],
[
['errorCode' => '10011', 'errorMessage' => '子账号服务失败', 'description' => ''],
],
[
['errorCode' => '10012', 'errorMessage' => '翻译服务调用失败', 'description' => ''],
],
[
['errorCode' => '10013', 'errorMessage' => '账号服务没有开通或者欠费', 'description' => ''],
],
199 => [
['errorCode' => '19999', 'errorMessage' => 'An unknown error occurred.', 'description' => ''],
],
],
'staticInfo' => [
'substitutions' => ['alimt::2018-10-12::Translate'],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Code\\": 200,\\n \\"Message\\": \\"An error occurred while translating.\\",\\n \\"RequestId\\": \\"CC93BB5C-EAB5-579B-AA44-F61528F48FF8\\",\\n \\"Data\\": {\\n \\"Translated\\": \\"你好\\",\\n \\"WordCount\\": \\"10\\",\\n \\"DetectedLanguage\\": \\"\\"\\n }\\n}","type":"json"}]',
'title' => 'Invoke Machine Translation for E-commerce ',
'description' => '1\\. The maximum number of characters is 5,000. The queries per second (QPS) limit for API calls is 50. To increase these limits, contact us in DingTalk group 23369411.'."\n"
."\n"
.'2\\. Before you use this API, make sure that you understand the billing methods and pricing of the Professional Edition of Machine Translation.',
'changeSet' => [
['createdAt' => '2023-12-06T06:36:04.000Z', 'description' => 'Response parameters changed'],
['createdAt' => '2022-08-31T05:28:36.000Z', 'description' => 'Request parameters changed'],
],
'ramActions' => [
[
'operationType' => 'none',
'ramAction' => [
'action' => 'alimt:TranslateECommerce',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Alimt', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
],
],
'TranslateGeneral' => [
'summary' => 'General-purpose translation API call instructions.',
'methods' => ['post', 'get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
[
'BearerToken' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => ['operationType' => 'none', 'riskType' => 'none', 'chargeType' => 'free', 'tenantRelevance' => 'publicInformation'],
'parameters' => [
[
'name' => 'FormatType',
'in' => 'formData',
'schema' => ['description' => 'Format of the text to be translated: html (webpage format; setting this parameter processes both the source and translated text as HTML) or text (plain text format; setting this parameter treats both the input source text and the translation result as plain text without any special formatting). ', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'text', 'title' => ''],
],
[
'name' => 'SourceLanguage',
'in' => 'formData',
'schema' => ['description' => 'Source language. <props="china">[See language codes](https://help.aliyun.com/document_detail/215387.html)</ph></props><props="intl">[See language codes](https://www.alibabacloud.com/help/zh/machine-translation/latest/machine-translation-language-code-list)</ph></props> ', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'zh', 'title' => ''],
],
[
'name' => 'TargetLanguage',
'in' => 'formData',
'schema' => ['description' => 'Target language for translation. <props="china">[Refer to language codes](https://help.aliyun.com/document_detail/215387.html)</ph></props><props="intl">[Refer to language codes](https://www.alibabacloud.com/help/zh/machine-translation/latest/machine-translation-language-code-list)</ph></props> ', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'en', 'title' => ''],
],
[
'name' => 'SourceText',
'in' => 'formData',
'schema' => ['description' => 'Content to be translated ', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => '你好', 'title' => ''],
],
[
'name' => 'Scene',
'in' => 'formData',
'schema' => ['description' => 'The default value for the General-purpose Edition is: general ', 'type' => 'string', 'required' => false, 'docRequired' => true, 'example' => 'general', 'default' => 'general', 'title' => ''],
],
[
'name' => 'Context',
'in' => 'query',
'schema' => ['title' => '', 'description' => 'Context information (optional) ', 'type' => 'string', 'required' => false, 'example' => '早上我在家里吃了面包'],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'Code' => ['description' => 'Error code ', 'type' => 'integer', 'format' => 'int32', 'example' => '200', 'title' => ''],
'Message' => ['description' => 'Return message ', 'type' => 'string', 'example' => 'success', 'title' => ''],
'RequestId' => ['description' => 'Request ID ', 'type' => 'string', 'example' => '86D18195-D89C-4C8C-9DC4-5FCE789CE6D5', 'title' => ''],
'Data' => [
'description' => 'Translation result ',
'type' => 'object',
'properties' => [
'Translated' => ['description' => 'Translated result ', 'type' => 'string', 'example' => 'Hello', 'title' => ''],
'WordCount' => ['description' => 'Total word count ', 'type' => 'string', 'example' => '10', 'title' => ''],
'DetectedLanguage' => ['description' => 'Source language code detected when the source language is set to "auto" ', 'type' => 'string', 'example' => 'zh', 'title' => ''],
],
'title' => '',
'example' => '',
],
],
'description' => '',
'title' => '',
'example' => '',
],
],
],
'errorCodes' => [
101 => [
['errorCode' => '10001', 'errorMessage' => 'The request has timed out.', 'description' => ''],
],
[
['errorCode' => '10002', 'errorMessage' => 'A system error occurred.', 'description' => ''],
],
[
['errorCode' => '10003', 'errorMessage' => 'An error occurred while decoding the URL. Verify that the specified URL is encoded.', 'description' => ''],
],
[
['errorCode' => '10004', 'errorMessage' => 'Some required parameters are missing.', 'description' => ''],
],
[
['errorCode' => '10005', 'errorMessage' => 'The specified language pair is not supported.', 'description' => ''],
],
[
['errorCode' => '10006', 'errorMessage' => 'An error occurred while detecting the language.', 'description' => ''],
],
[
['errorCode' => '10007', 'errorMessage' => 'An error occurred while translating.', 'description' => ''],
],
[
['errorCode' => '10008', 'errorMessage' => 'The specified string is too long.', 'description' => ''],
],
[
['errorCode' => '10009', 'errorMessage' => '子账号没有权限', 'description' => ''],
],
[
['errorCode' => '10010', 'errorMessage' => '账号没有开通服务', 'description' => ''],
],
[
['errorCode' => '10011', 'errorMessage' => '子账号服务失败', 'description' => ''],
],
[
['errorCode' => '10012', 'errorMessage' => '翻译服务调用失败', 'description' => ''],
],
[
['errorCode' => '10013', 'errorMessage' => '账号服务没有开通或者欠费', 'description' => ''],
],
199 => [
['errorCode' => '19999', 'errorMessage' => 'An unknown error occurred.', 'description' => ''],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Code\\": 200,\\n \\"Message\\": \\"success\\",\\n \\"RequestId\\": \\"86D18195-D89C-4C8C-9DC4-5FCE789CE6D5\\",\\n \\"Data\\": {\\n \\"Translated\\": \\"Hello\\",\\n \\"WordCount\\": \\"10\\",\\n \\"DetectedLanguage\\": \\"zh\\"\\n }\\n}","type":"json"}]',
'title' => 'Invoke General-purpose Edition of Machine Translation ',
'description' => 'Notes '."\n"
.'1. The queries per second (QPS) limit is 50. If you need to increase this limit, please contact us. DingTalk group number: 23369411 '."\n"
.'<props="intl">2. Ensure that you fully understand the billing method and pricing of the General-purpose Edition translation product before using this API.</ph></props> '."\n"
.'<props="china">2. The maximum character length is 5,000 characters. If your input exceeds this limit, save it as a file and use [Document Translation](https://help.aliyun.com/document_detail/164151.html).</ph></props> '."\n"
.'<props="china">3. Ensure that you fully understand the billing method and pricing of the General-purpose Edition translation product before using this API.</ph></props> ',
'requestParamsDescription' => ' ',
'responseParamsDescription' => '<props="china">For common request parameters, see the [Common Request Parameters section in "RPC Call Mechanism"](https://help.aliyun.com/document_detail/315526.html?spm=a2c4g.158244.0.0.34b627b5qv5gmt#sectiondiv-qq5-utu-r7a)</ph></props>',
'extraInfo' => ' ',
'changeSet' => [
['createdAt' => '2023-05-25T09:33:06.000Z', 'description' => 'Response parameters changed'],
['createdAt' => '2022-08-31T05:28:36.000Z', 'description' => 'Request parameters changed'],
],
'ramActions' => [
[
'operationType' => 'none',
'ramAction' => [
'action' => 'alimt:TranslateGeneral',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Alimt', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
],
],
'TranslateImage' => [
'summary' => 'Translate text in an image from one language to another and output a new image that is as faithful as possible to the original.',
'methods' => ['post'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
[
'BearerToken' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => ['operationType' => 'none', 'riskType' => 'none', 'chargeType' => 'free', 'tenantRelevance' => 'publicInformation'],
'parameters' => [
[
'name' => 'ImageUrl',
'in' => 'formData',
'schema' => ['description' => 'The URL of the source image. This parameter and Base64 cannot both be empty. Base64 takes precedence.', 'type' => 'string', 'required' => false, 'example' => 'https://example.com/example.jpg', 'title' => ''],
],
[
'name' => 'ImageBase64',
'in' => 'formData',
'schema' => ['description' => 'The Base64-encoded source image. This parameter and URL cannot both be empty. Base64 takes precedence.', 'type' => 'string', 'required' => false, 'example' => '/9j/4...H/9k=', 'title' => ''],
],
[
'name' => 'SourceLanguage',
'in' => 'formData',
'schema' => ['description' => 'Source language. For supported languages, see [Language Reference](https://help.aliyun.com/document_detail/163584.html). This parameter is Required (ignore the "No" listed under "Required" in the table).', 'type' => 'string', 'required' => false, 'example' => 'zh', 'title' => ''],
],
[
'name' => 'TargetLanguage',
'in' => 'formData',
'schema' => ['description' => 'The target language. For supported languages, see [Supported Languages](https://help.aliyun.com/document_detail/163584.html). This parameter is Required (ignore the "No" in the "Required" column of the table).', 'type' => 'string', 'required' => false, 'example' => 'en', 'title' => ''],
],
[
'name' => 'Field',
'in' => 'formData',
'schema' => [
'description' => 'The translation realm. Valid values:'."\n"
.'- `general`: General image translation'."\n"
.'- `e-commerce`: E-commerce image translation'."\n"
."\n"
.'By default, or if the realm is not detected, the image is processed as a general image translation.',
'type' => 'string',
'required' => false,
'enumValueTitles' => [],
'example' => 'general',
'title' => '',
],
],
[
'name' => 'Ext',
'in' => 'formData',
'schema' => ['description' => 'Extension information, in JSON string format. It may contain the following fields: '."\n"
.'- `needEditorData`: A string value of `true` or `false`, defaulting to `false`. Indicates whether to return post-translation editor data in the response. This is used only when [integrating your own post-translation editor](https://help.aliyun.com/document_detail/2507676.html). '."\n"
.'- `ignoreEntityRecognize`: A string value of `true` or `false`, defaulting to `false`. In e-commerce image translation, the system automatically detects whether text appears on the main product entity in the image and skips translation if it does. This field controls whether to perform this detection. It has no effect on general image translation.', 'type' => 'string', 'required' => false, 'example' => '{"needEditorData": "false", "ignoreEntityRecognize": "true"}', 'title' => ''],
],
],
'responses' => [
200 => [
'schema' => [
'description' => 'Result',
'type' => 'object',
'properties' => [
'RequestId' => ['description' => 'Request identity', 'type' => 'string', 'example' => 'D774D33D-F1CB-5A2C-A787-E0A2179239CE', 'title' => ''],
'Code' => ['description' => 'Status code of the request result', 'type' => 'integer', 'format' => 'int32', 'example' => '200', 'title' => ''],
'Message' => ['description' => 'Request error message', 'type' => 'string', 'example' => 'Error Message', 'title' => ''],
'Data' => [
'description' => 'Struct of the image translation result',
'type' => 'object',
'properties' => [
'InPaintingUrl' => ['description' => 'Background image for the post-translation editor', 'type' => 'string', 'example' => 'https://example.com/example.jpg', 'title' => ''],
'TemplateJson' => ['description' => 'Template data for the post-translation editor', 'type' => 'string', 'example' => 'Editor Template Json String', 'title' => ''],
'FinalImageUrl' => ['description' => 'URL of the final translated image', 'type' => 'string', 'example' => 'https://example.com/example.jpg', 'title' => ''],
],
'title' => '',
'example' => '',
],
],
'title' => '',
'example' => '',
],
],
],
'errorCodes' => [
400 => [
['errorCode' => 'Parameter.SourceLangError', 'errorMessage' => 'Source languages are not supported.', 'description' => 'Source languages are not supported.'],
['errorCode' => 'Parameter.TargetLangError', 'errorMessage' => 'Target languages are not supported.', 'description' => 'Target languages are not supported.'],
],
[
['errorCode' => 'System.subNotPermission', 'errorMessage' => 'The sub-account is not authorized to perform the operation.', 'description' => ''],
['errorCode' => 'System.AccountNotActivated', 'errorMessage' => 'The account has not activated the service.', 'description' => ''],
],
406 => [
['errorCode' => 'System.ParameterError', 'errorMessage' => 'Some required parameters are missing.', 'description' => ''],
['errorCode' => 'Parameter.ImageUrlError', 'errorMessage' => 'Failed to obtain the image from the URL.', 'description' => 'Failed to obtain the image from the URL.'],
['errorCode' => 'Parameter.ImageSizeError', 'errorMessage' => 'Image size should be within 15px to 8192px.', 'description' => 'Image size should be within 15px to 8192px.'],
['errorCode' => 'Parameter.ImageFormatError', 'errorMessage' => 'The image format is not supported.', 'description' => 'The image format is not supported.'],
['errorCode' => 'Parameter.ImageFileSizeError', 'errorMessage' => 'The image file size should be within 10 MB.', 'description' => 'The image file size should be within 10 MB.'],
],
500 => [
['errorCode' => 'System.unknownError', 'errorMessage' => 'An unknown error occurred.', 'description' => 'An unknown error occurred.'],
['errorCode' => 'ImageTranslate.TranslationError', 'errorMessage' => 'Image translation error.', 'description' => 'Image translation error.'],
['errorCode' => 'ImageTranslate.FusionError', 'errorMessage' => 'Image fusion error.', 'description' => 'Image fusion error.'],
['errorCode' => 'ImageTranslate.EraseError', 'errorMessage' => 'Image erasing error.', 'description' => 'Image erasing error.'],
['errorCode' => 'ImageTranslate.TextTranslationError', 'errorMessage' => 'Text translation error.', 'description' => 'Text translation error.'],
['errorCode' => 'ImageTranslate.TextToParagraphError', 'errorMessage' => 'Text to paragraph error.', 'description' => 'Text to paragraph error.'],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"D774D33D-F1CB-5A2C-A787-E0A2179239CE\\",\\n \\"Code\\": 200,\\n \\"Message\\": \\"Error Message\\",\\n \\"Data\\": {\\n \\"InPaintingUrl\\": \\"https://example.com/example.jpg\\",\\n \\"TemplateJson\\": \\"Editor Template Json String\\",\\n \\"FinalImageUrl\\": \\"https://example.com/example.jpg\\"\\n }\\n}","type":"json"}]',
'title' => 'Image Translation',
'description' => 'Before using this API, ensure you fully understand the [pricing and billing model](https://help.aliyun.com/document_detail/163332.html) of the Image Translation product.'."\n"
."\n"
.'This API supports **general image translation** and **e-commerce image translation**. '."\n"
.'For certificate translation, refer to the [Certificate Translation Integration Guide](https://help.aliyun.com/document_detail/2505939.html).'."\n"
."\n"
.'**Image Restrictions**'."\n"
."\n"
.'- File Size limit: 10 MB '."\n"
.'- Pixel aspect ratio limit: width-to-height ratio < 10:1 '."\n"
.'- Supported formats: jpg, jpeg, png, bmp, gif (only the first frame is translated), webp'."\n"
."\n"
.'> This API supports invocation only via POST requests.',
'changeSet' => [
['createdAt' => '2024-08-29T08:42:06.000Z', 'description' => 'Response parameters changed'],
['createdAt' => '2023-01-10T08:01:25.000Z', 'description' => 'Error codes changed'],
['createdAt' => '2023-01-05T03:37:40.000Z', 'description' => 'Error codes changed, Response parameters changed'],
['createdAt' => '2021-11-05T06:50:56.000Z', 'description' => 'Error codes changed'],
['createdAt' => '2021-11-05T06:50:56.000Z', 'description' => 'Error codes changed'],
],
'ramActions' => [
[
'operationType' => 'none',
'ramAction' => [
'action' => 'alimt:TranslateImage',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Alimt', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
],
],
'TranslateImageBatch' => [
'summary' => 'Asynchronously translates text in a batch of images from one language to another and returns a new image for each input image.',
'methods' => ['post', 'get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => ['operationType' => 'none', 'riskType' => 'none', 'chargeType' => 'free', 'tenantRelevance' => 'publicInformation'],
'parameters' => [
[
'name' => 'ImageUrls',
'in' => 'formData',
'schema' => ['description' => 'URLs of the source images. Separate multiple URLs with commas. A single request can include up to 20 URLs. Duplicate URLs are processed only once.', 'type' => 'string', 'required' => true, 'example' => 'https://example.com/1.jpg,https://example.com/2.jpg,https://example.com/3.jpg', 'title' => ''],
],
[
'name' => 'SourceLanguage',
'in' => 'formData',
'schema' => ['description' => 'Source language. For supported languages and their codes, see [language codes](https://help.aliyun.com/document_detail/163584.html).', 'type' => 'string', 'required' => true, 'example' => 'zh', 'title' => ''],
],
[
'name' => 'TargetLanguage',
'in' => 'formData',
'schema' => ['description' => 'Target language. For supported languages and their codes, see [language codes](https://help.aliyun.com/document_detail/163584.html).', 'type' => 'string', 'required' => true, 'example' => 'en', 'title' => ''],
],
[
'name' => 'Ext',
'in' => 'formData',
'schema' => ['description' => 'Extended information in JSON string format. Supported fields include the following.'."\n"
."\n"
.'- needEditorData: Set to `true` or `false`. Default is `false`. Set to `true` to return editor data in the response. Use this only when you integrate your own [image translation post-editing editor](https://help.aliyun.com/document_detail/2507676.html).'."\n"
."\n"
.'- ignoreEntityRecognize: Set to `true` or `false`. Default is `false`. For e-commerce image translation, the service automatically detects whether text appears on product entities in the image. If so, it skips translation. Set this field to `true` to disable that detection. This field has no effect on general image translation.', 'type' => 'string', 'required' => false, 'example' => '{"needEditorData": "false", "ignoreEntityRecognize": "true"}', 'title' => ''],
],
[
'name' => 'CustomTaskId',
'in' => 'formData',
'schema' => ['description' => 'Custom task ID. Prevent accidental duplicate requests within a short time. Requests with the same custom task ID are processed only once within three minutes.', 'type' => 'string', 'required' => false, 'example' => 'my_awesome_task_1', 'title' => ''],
],
[
'name' => 'Field',
'in' => 'formData',
'schema' => ['description' => 'Translation domain. Valid values:'."\n"
."\n"
.'- `general`: General image translation'."\n"
."\n"
.'- `e-commerce`: E-commerce image translation'."\n"
."\n"
.'If not specified or unrecognized, the service uses general image translation.', 'type' => 'string', 'required' => false, 'example' => 'general', 'title' => ''],
],
],
'responses' => [
200 => [
'schema' => [
'title' => 'Schema of Response',
'description' => 'Response structure',
'type' => 'object',
'properties' => [
'RequestId' => ['title' => 'Id of the request', 'description' => 'Request identifier', 'type' => 'string', 'example' => 'D774D33D-F1CB-5A2C-A787-E0A2179239CE'],
'Message' => ['description' => 'Information about the request.', 'type' => 'string', 'example' => 'OK', 'title' => ''],
'Code' => ['description' => 'Status code', 'type' => 'integer', 'format' => 'int32', 'example' => '200', 'title' => ''],
'Data' => [
'description' => 'Response data',
'type' => 'object',
'properties' => [
'TaskId' => ['description' => 'Task ID. Use this ID to retrieve translation results later.', 'type' => 'string', 'example' => 'EEA28E6D-4828-5031-BD8C-8FF1B3216842', 'title' => ''],
],
'title' => '',
'example' => '',
],
],
'example' => '',
],
],
],
'errorCodes' => [
101 => [
['errorCode' => 'System.RequestTimeOut', 'errorMessage' => 'The request has timed out.', 'description' => ''],
],
[
['errorCode' => 'System.Error', 'errorMessage' => 'A system error occurred.', 'description' => ''],
],
[
['errorCode' => 'System.UrlDecodingError', 'errorMessage' => 'An error occurred while decoding the URL. Verify that the specified URL is encoded.', 'description' => ''],
],
[
['errorCode' => 'System.ParameterError', 'errorMessage' => 'Some required parameters are missing.', 'description' => ''],
],
[
['errorCode' => 'System.LanguageNotSupported', 'errorMessage' => 'The specified language pair is not supported.', 'description' => ''],
],
[
['errorCode' => 'System.LanguageDetectError', 'errorMessage' => 'An error occurred while detecting the language.', 'description' => ''],
],
[
['errorCode' => 'System.TranslateError', 'errorMessage' => 'An error occurred while translating.', 'description' => ''],
],
[
['errorCode' => 'System.StringTooLong', 'errorMessage' => 'The maximum length of the specified string is exceeded.', 'description' => ''],
],
110 => [
['errorCode' => 'System.AccountNotActivated', 'errorMessage' => 'The account has not activated the service.', 'description' => ''],
],
[
['errorCode' => 'System.SubServiceFailed', 'errorMessage' => 'Sub-account service failed.', 'description' => ''],
],
[
['errorCode' => 'System.TranslateServiceCallFailed', 'errorMessage' => 'Failed to call the translation service.', 'description' => ''],
],
[
['errorCode' => 'System.AccountNotActivatedOrInArrears', 'errorMessage' => 'The service is not activated or the account has an outstanding balance.', 'description' => ''],
],
],
'staticInfo' => ['returnType' => 'synchronous'],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"D774D33D-F1CB-5A2C-A787-E0A2179239CE\\",\\n \\"Message\\": \\"OK\\",\\n \\"Code\\": 200,\\n \\"Data\\": {\\n \\"TaskId\\": \\"EEA28E6D-4828-5031-BD8C-8FF1B3216842\\"\\n }\\n}","type":"json"}]',
'title' => 'Asynchronous Batch Image Translation ',
'description' => 'Before you use this operation, review the [pricing details](https://help.aliyun.com/document_detail/163332.html) for the Image Translation service.'."\n"
."\n"
.'This operation supports **general image translation** and **e-commerce image translation**. For ID document translation, see the [ID document translation guide](https://help.aliyun.com/document_detail/163527.html).'."\n"
."\n"
.'**Image limits**'."\n"
."\n"
.'- File size: up to 10 MB'."\n"
."\n"
.'- Aspect ratio: less than 10:1'."\n"
."\n"
.'- Supported formats: JPG, JPEG, PNG, BMP, GIF (first frame only), and WebP',
'changeSet' => [],
'ramActions' => [
[
'operationType' => 'none',
'ramAction' => [
'action' => 'alimt:TranslateImageBatch',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Alimt', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
],
],
'TranslateSearch' => [
'summary' => 'Translation Search',
'methods' => ['post'],
'schemes' => ['https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'readAndWrite',
'deprecated' => false,
'systemTags' => ['operationType' => 'none', 'riskType' => 'none', 'chargeType' => 'free', 'tenantRelevance' => 'publicInformation'],
'parameters' => [
[
'name' => 'FormatType',
'in' => 'formData',
'allowEmptyValue' => false,
'schema' => ['title' => 'Idempotent parameter', 'type' => 'string', 'required' => true, 'example' => 'text', 'description' => ''],
],
[
'name' => 'SourceLanguage',
'in' => 'formData',
'schema' => ['type' => 'string', 'required' => true, 'example' => 'zh', 'description' => '', 'title' => ''],
],
[
'name' => 'TargetLanguage',
'in' => 'formData',
'schema' => ['type' => 'string', 'required' => true, 'example' => 'en', 'description' => '', 'title' => ''],
],
[
'name' => 'Scene',
'in' => 'formData',
'schema' => ['type' => 'string', 'required' => true, 'example' => 'query', 'description' => '', 'title' => ''],
],
[
'name' => 'SourceText',
'in' => 'formData',
'schema' => ['type' => 'string', 'required' => true, 'example' => '今天天气不错', 'description' => '', 'title' => ''],
],
],
'responses' => [
200 => [
'schema' => [
'title' => 'Schema of Response',
'type' => 'object',
'properties' => [
'RequestId' => ['title' => 'Id of the request', 'type' => 'string', 'description' => '', 'example' => ''],
'Code' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
'Message' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
'Data' => [
'type' => 'object',
'properties' => [
'Translated' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
],
'description' => '',
'title' => '',
'example' => '',
],
],
'description' => '',
'example' => '',
],
],
],
'errorCodes' => [
400 => [
['errorCode' => 'IdempotentParameterMismatch', 'errorMessage' => 'The request uses the same client token as a previous, but non-identical request. Do not reuse a client token with different requests, unless the requests are identical.', 'description' => ''],
],
],
'staticInfo' => ['returnType' => 'synchronous'],
'changeSet' => [],
'ramActions' => [
[
'operationType' => 'none',
'ramAction' => [
'action' => 'alimt:TranslateSearch',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Alimt', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"\\",\\n \\"Code\\": \\"\\",\\n \\"Message\\": \\"\\",\\n \\"Data\\": {\\n \\"Translated\\": \\"\\"\\n }\\n}","type":"json"}]',
'title' => 'TranslateSearch',
],
],
'endpoints' => [
['regionId' => 'ap-northeast-1', 'regionName' => 'Japan (Tokyo)', 'areaId' => 'asiaPacific', 'areaName' => 'Asia Pacific', 'public' => 'mt.aliyuncs.com', 'endpoint' => 'mt.aliyuncs.com', 'vpc' => ''],
['regionId' => 'ap-southeast-1', 'regionName' => 'Singapore', 'areaId' => 'asiaPacific', 'areaName' => 'Asia Pacific', 'public' => 'mt.ap-southeast-1.aliyuncs.com', 'endpoint' => 'mt.ap-southeast-1.aliyuncs.com', 'vpc' => 'mt-vpc.ap-southeast-1.aliyuncs.com'],
['regionId' => 'ap-southeast-2', 'regionName' => 'Australia (Sydney) Closed', 'areaId' => 'asiaPacific', 'areaName' => 'Asia Pacific', 'public' => 'mt.aliyuncs.com', 'endpoint' => 'mt.aliyuncs.com', 'vpc' => ''],
['regionId' => 'ap-southeast-3', 'regionName' => 'Malaysia (Kuala Lumpur)', 'areaId' => 'asiaPacific', 'areaName' => 'Asia Pacific', 'public' => 'mt.aliyuncs.com', 'endpoint' => 'mt.aliyuncs.com', 'vpc' => ''],
['regionId' => 'cn-beijing', 'regionName' => 'China (Beijing)', 'areaId' => 'asiaPacific', 'areaName' => 'Asia Pacific', 'public' => 'mt.aliyuncs.com', 'endpoint' => 'mt.aliyuncs.com', 'vpc' => 'mt-vpc.cn-beijing.aliyuncs.com'],
['regionId' => 'cn-chengdu', 'regionName' => 'China (Chengdu)', 'areaId' => 'asiaPacific', 'areaName' => 'Asia Pacific', 'public' => 'mt.aliyuncs.com', 'endpoint' => 'mt.aliyuncs.com', 'vpc' => ''],
['regionId' => 'cn-hangzhou', 'regionName' => 'China (Hangzhou)', 'areaId' => 'asiaPacific', 'areaName' => 'Asia Pacific', 'public' => 'mt.cn-hangzhou.aliyuncs.com', 'endpoint' => 'mt.cn-hangzhou.aliyuncs.com', 'vpc' => 'mt-inner.vpc-proxy.aliyuncs.com'],
['regionId' => 'cn-hongkong', 'regionName' => 'China (Hong Kong)', 'areaId' => 'asiaPacific', 'areaName' => 'Asia Pacific', 'public' => 'mt.aliyuncs.com', 'endpoint' => 'mt.aliyuncs.com', 'vpc' => ''],
['regionId' => 'cn-huhehaote', 'regionName' => 'China (Hohhot)', 'areaId' => 'asiaPacific', 'areaName' => 'Asia Pacific', 'public' => 'mt.aliyuncs.com', 'endpoint' => 'mt.aliyuncs.com', 'vpc' => ''],
['regionId' => 'cn-qingdao', 'regionName' => 'China (Qingdao)', 'areaId' => 'asiaPacific', 'areaName' => 'Asia Pacific', 'public' => 'mt.aliyuncs.com', 'endpoint' => 'mt.aliyuncs.com', 'vpc' => ''],
['regionId' => 'cn-shanghai', 'regionName' => 'China (Shanghai)', 'areaId' => 'asiaPacific', 'areaName' => 'Asia Pacific', 'public' => 'mt.aliyuncs.com', 'endpoint' => 'mt.aliyuncs.com', 'vpc' => 'mt-vpc.cn-shanghai.aliyuncs.com'],
['regionId' => 'cn-shenzhen', 'regionName' => 'China (Shenzhen)', 'areaId' => 'asiaPacific', 'areaName' => 'Asia Pacific', 'public' => 'mt.aliyuncs.com', 'endpoint' => 'mt.aliyuncs.com', 'vpc' => ''],
['regionId' => 'cn-zhangjiakou', 'regionName' => 'China (Zhangjiakou)', 'areaId' => 'asiaPacific', 'areaName' => 'Asia Pacific', 'public' => 'mt.aliyuncs.com', 'endpoint' => 'mt.aliyuncs.com', 'vpc' => 'mt-inner.vpc-proxy.aliyuncs.com'],
['regionId' => 'us-west-1', 'regionName' => 'US (Silicon Valley)', 'areaId' => 'europeAmerica', 'areaName' => 'Europe & Americas', 'public' => 'mt.aliyuncs.com', 'endpoint' => 'mt.aliyuncs.com', 'vpc' => ''],
['regionId' => 'us-east-1', 'regionName' => 'US (Virginia)', 'areaId' => 'europeAmerica', 'areaName' => 'Europe & Americas', 'public' => 'mt.aliyuncs.com', 'endpoint' => 'mt.aliyuncs.com', 'vpc' => ''],
['regionId' => 'eu-west-1', 'regionName' => 'UK (London)', 'areaId' => 'europeAmerica', 'areaName' => 'Europe & Americas', 'public' => 'mt.aliyuncs.com', 'endpoint' => 'mt.aliyuncs.com', 'vpc' => ''],
['regionId' => 'eu-central-1', 'regionName' => 'Germany (Frankfurt)', 'areaId' => 'europeAmerica', 'areaName' => 'Europe & Americas', 'public' => 'mt.aliyuncs.com', 'endpoint' => 'mt.aliyuncs.com', 'vpc' => ''],
['regionId' => 'me-east-1', 'regionName' => 'UAE (Dubai)', 'areaId' => 'middleEast', 'areaName' => 'Middle East', 'public' => 'alimt.me-east-1.aliyuncs.com', 'endpoint' => 'alimt.me-east-1.aliyuncs.com', 'vpc' => ''],
['regionId' => 'me-central-1', 'regionName' => 'Saudi Arabia (Riyadh)', 'areaId' => 'middleEast', 'areaName' => 'Middle East', 'public' => 'mt.me-central-1.aliyuncs.com', 'endpoint' => 'mt.me-central-1.aliyuncs.com', 'vpc' => 'mt-vpc.me-central-1.aliyuncs.com'],
['regionId' => 'ap-south-1', 'regionName' => 'India (Mumbai) Closed', 'areaId' => 'middleEast', 'areaName' => 'Middle East', 'public' => 'mt.aliyuncs.com', 'endpoint' => 'mt.aliyuncs.com', 'vpc' => ''],
['regionId' => 'cn-shenzhen-finance-1', 'regionName' => 'China South 1 Finance', 'areaId' => 'industryCloud', 'areaName' => 'Industry Cloud', 'public' => 'mt.aliyuncs.com', 'endpoint' => 'mt.aliyuncs.com', 'vpc' => ''],
['regionId' => 'cn-shanghai-finance-1', 'regionName' => 'China East 2 Finance', 'areaId' => 'industryCloud', 'areaName' => 'Industry Cloud', 'public' => 'mt.aliyuncs.com', 'endpoint' => 'mt.aliyuncs.com', 'vpc' => ''],
['regionId' => 'cn-north-2-gov-1', 'regionName' => 'Beijing Government Cloud', 'areaId' => 'industryCloud', 'areaName' => 'Industry Cloud', 'public' => 'mt.aliyuncs.com', 'endpoint' => 'mt.aliyuncs.com', 'vpc' => ''],
['regionId' => 'cn-hangzhou-finance', 'regionName' => 'China East 1 Finance', 'areaId' => 'industryCloud', 'areaName' => 'Industry Cloud', 'public' => 'mt.aliyuncs.com', 'endpoint' => 'mt.aliyuncs.com', 'vpc' => ''],
['regionId' => 'cn-beijing-finance-1', 'regionName' => 'China North 2 Finance (Preview)', 'areaId' => 'industryCloud', 'areaName' => 'Industry Cloud', 'public' => 'mt.aliyuncs.com', 'endpoint' => 'mt.aliyuncs.com', 'vpc' => ''],
],
'errorCodes' => [
['code' => '10002', 'message' => 'A system error occurred.', 'http_code' => 500, 'description' => ''],
['code' => '10009', 'message' => 'The RAM user is not authorized to perform this operation.', 'http_code' => 403, 'description' => 'The RAM user is not authorized to perform this operation.'],
['code' => '10010', 'message' => 'You have not activated this service.', 'http_code' => 400, 'description' => 'You have not activated this service.'],
['code' => '10011', 'message' => 'An error occurred while invoking the RAM user service.', 'http_code' => 500, 'description' => 'An error occurred while invoking the RAM user service.'],
['code' => '10012', 'message' => 'An error occurred while calling the translation service.', 'http_code' => 500, 'description' => 'An error occurred while calling the translation service.'],
['code' => '10013', 'message' => 'You have not activated the account service or the account service has overdue bills.', 'http_code' => 400, 'description' => 'You have not activated the account service or the account service has overdue bills.'],
['code' => '10021', 'message' => 'The parameter is invalid.', 'http_code' => 400, 'description' => ''],
['code' => '10022', 'message' => 'The parameter fileUrl is invalid.', 'http_code' => 400, 'description' => ''],
['code' => '10023', 'message' => 'The parameter fileUrl is not accessible.', 'http_code' => 400, 'description' => ''],
['code' => '10024', 'message' => 'The parameter callbackUrl is invalid.', 'http_code' => 400, 'description' => 'The parameter callbackUrl is invalid.'],
['code' => '10025', 'message' => 'The specified task does not exist.', 'http_code' => 404, 'description' => 'The specified task does not exist.'],
['code' => '10026', 'message' => 'Failed to translate the certificate. Please check the parameters.', 'http_code' => 400, 'description' => ''],
['code' => '10027', 'message' => 'The parameter imageUrl is not accessible.', 'http_code' => 400, 'description' => ''],
['code' => '10028', 'message' => 'The QPS of the API operation exceeds limit.', 'http_code' => 400, 'description' => 'Api qps limit.'],
['code' => '10029', 'message' => 'The number of calls per day exceeds the limit.', 'http_code' => 403, 'description' => 'The number of calls per day limit exceeded.'],
['code' => '10030', 'message' => 'The file size exceeds the limit.', 'http_code' => 400, 'description' => 'The file size exceeds the limit.'],
['code' => '10031', 'message' => 'The specified file type is invalid.', 'http_code' => 400, 'description' => 'The type of file is not valid.'],
['code' => 'CidDebtOverQuota', 'message' => 'Your bill is overdue. Please check your bill.', 'http_code' => 400, 'description' => 'Overdue payments exist in your account.'],
['code' => 'Forbbiden', 'message' => 'You are not authorized to operate on the specified resource.', 'http_code' => 403, 'description' => 'You are not authorized to operate on the specified resource.'],
['code' => 'ImageTranslate.EraseError', 'message' => 'Image erasing error.', 'http_code' => 500, 'description' => 'Image erasing error.'],
['code' => 'ImageTranslate.FusionError', 'message' => 'Image fusion error.', 'http_code' => 500, 'description' => 'Image fusion error.'],
['code' => 'ImageTranslate.TextToParagraphError', 'message' => 'Text to paragraph error.', 'http_code' => 500, 'description' => 'Text to paragraph error.'],
['code' => 'ImageTranslate.TextTranslationError', 'message' => 'Text translation error.', 'http_code' => 500, 'description' => 'Text translation error.'],
['code' => 'ImageTranslate.TranslationError', 'message' => 'Image translation error.', 'http_code' => 500, 'description' => 'Image translation error.'],
['code' => 'ImageTranslateParamsInvalid', 'message' => 'Picture translation parameter error.', 'http_code' => 400, 'description' => 'An invalid parameter for image translation.'],
['code' => 'Internal.Error', 'message' => 'The internal service connection timeout, please try again later.', 'http_code' => 503, 'description' => ''],
['code' => 'InternalError', 'message' => 'An error occurred while processing your request.', 'http_code' => 500, 'description' => 'An unknown error occurred.'],
['code' => 'InvalidAccountStatus', 'message' => 'The Machine Translation service has not been activated.', 'http_code' => 400, 'description' => 'The Machine Translation service has not been activated.'],
['code' => 'InvalidAccountStatus.ServiceUnavailable', 'message' => 'The service has not been activated.', 'http_code' => 403, 'description' => 'The service has not been activated.'],
['code' => 'LanguageSpellingError', 'message' => 'Language spelling error.', 'http_code' => 400, 'description' => 'The language is invalid.'],
['code' => 'Limitexceeded', 'message' => 'Limit exceeded.', 'http_code' => 400, 'description' => 'The number exceeds the maximum limit.'],
['code' => 'NewUserQuotaExceed', 'message' => 'One-day temporary limit for new users exceeded.', 'http_code' => 400, 'description' => 'The daily quota for a new user is exceeded.'],
['code' => 'ORDER.OPEND', 'message' => 'You have already open the service. Go to the console to start using it', 'http_code' => 400, 'description' => ''],
['code' => 'Parameter.ImageFileSizeError', 'message' => 'The image file size should be within 10 MB.', 'http_code' => 406, 'description' => 'The image file size should be within 10 MB.'],
['code' => 'Parameter.ImageFormatError', 'message' => 'The image format is not supported.', 'http_code' => 406, 'description' => 'The image format is not supported.'],
['code' => 'Parameter.ImageSizeError', 'message' => 'Image size should be within 15px to 8192px.', 'http_code' => 406, 'description' => 'Image size should be within 15px to 8192px.'],
['code' => 'Parameter.ImageUrlError', 'message' => 'Failed to obtain the image from the URL.', 'http_code' => 406, 'description' => 'Failed to obtain the image from the URL.'],
['code' => 'Parameter.SourceLangError', 'message' => 'Source languages are not supported.', 'http_code' => 400, 'description' => 'Source languages are not supported.'],
['code' => 'Parameter.TargetLangError', 'message' => 'Target languages are not supported.', 'http_code' => 400, 'description' => 'Target languages are not supported.'],
['code' => 'RepeatInvoke', 'message' => 'Repeated calls.', 'http_code' => 400, 'description' => 'Repeated calls'],
['code' => 'RepeatInvoke', 'message' => 'repeat invoke.', 'http_code' => 400, 'description' => 'Repeated calls'],
['code' => 'REQUESTS.OVER.LIMIT', 'message' => 'The request is too frequent, please try again later.', 'http_code' => 429, 'description' => 'Request too frequent, please try again later'],
['code' => 'ServiceUnavailable', 'message' => 'An error occurred while processing your request.', 'http_code' => 503, 'description' => 'An error occurred while processing your request.'],
['code' => 'SourceTextEmpty', 'message' => 'Originalempty.', 'http_code' => 400, 'description' => 'The request is empty.'],
['code' => 'Sub account service failed', 'message' => 'Subaccountservicefailed.', 'http_code' => 111, 'description' => 'The sub-account service failed.'],
['code' => 'System.AccountNotActivated', 'message' => 'The account has not activated the service.', 'http_code' => 400, 'description' => 'Account is not activated'],
['code' => 'System.AccountNotActivatedOrInArrears', 'message' => 'The service is not activated or the account has an outstanding balance.', 'http_code' => 400, 'description' => 'Account service is not activated or in arrears'],
['code' => 'System.Error', 'message' => 'A system error occurred.', 'http_code' => 500, 'description' => 'A system error occurred.'],
['code' => 'System.LanguageDetectError', 'message' => 'An error occurred while detecting the language.', 'http_code' => 500, 'description' => 'An error occurred while detecting the language.'],
['code' => 'System.LanguageNotSupported', 'message' => 'The specified language pair is not supported.', 'http_code' => 400, 'description' => 'The specified language pair is not supported.'],
['code' => 'System.ParameterError', 'message' => 'Some required parameters are missing.', 'http_code' => 400, 'description' => 'Some required parameters are missing.'],
['code' => 'System.RequestTimeOut', 'message' => 'The request has timed out.', 'http_code' => 500, 'description' => 'The request has timed out.'],
['code' => 'System.StringTooLong', 'message' => 'The maximum length of the specified string is exceeded.', 'http_code' => 400, 'description' => 'The specified string is too long.'],
['code' => 'System.subNotPermission', 'message' => 'The sub-account is not authorized to perform the operation.', 'http_code' => 403, 'description' => 'The sub account does not have permission'],
['code' => 'System.SubServiceFailed', 'message' => 'Sub-account service failed.', 'http_code' => 500, 'description' => 'Sub-account service failed'],
['code' => 'System.TranslateError', 'message' => 'An error occurred while translating.', 'http_code' => 500, 'description' => 'An error occurred while translating.'],
['code' => 'System.TranslateServiceCallFailed', 'message' => 'Failed to call the translation service.', 'http_code' => 500, 'description' => 'Translation service call failed'],
['code' => 'System.unknownError', 'message' => 'An unknown error occurred.', 'http_code' => 500, 'description' => 'An unknown error occurred.'],
['code' => 'System.UrlDecodingError', 'message' => 'An error occurred while decoding the URL. Verify that the specified URL is encoded.', 'http_code' => 500, 'description' => 'An error occurred while decoding the URL. Verify that the specified URL is encoded.'],
['code' => 'Timeout', 'message' => 'Request timeout. Please retry again later.', 'http_code' => 500, 'description' => 'The request timed out.'],
],
'changeSet' => [],
'ram' => [
'productCode' => 'Alimt',
'productName' => 'Machine Translation',
'ramCodes' => ['alimtautoml', 'alimt'],
'ramLevel' => 'OPERATION',
'ramConditions' => [],
'ramActions' => [
[
'apiName' => 'QueryResourcePackage',
'description' => '',
'operationType' => 'none',
'ramAction' => [
'action' => 'alimt:QueryResourcePackage',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Alimt', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
[
'apiName' => 'CreateImageTranslateTask',
'description' => '',
'operationType' => 'create',
'ramAction' => [
'action' => 'alimt:CreateImageTranslateTask',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Alimt', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
[
'apiName' => 'GetTranslateReport',
'description' => '',
'operationType' => 'get',
'ramAction' => [
'action' => 'alimt:GetTranslateReport',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Alimt', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
[
'apiName' => 'GetDocTranslateTask',
'description' => '',
'operationType' => 'get',
'ramAction' => [
'action' => 'alimt:GetDocTranslateTask',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Alimt', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
[
'apiName' => 'GetCertificateUserStatus',
'description' => '',
'operationType' => 'get',
'ramAction' => [
'action' => 'alimt:GetCertificateUserStatus',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Alimt', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
[
'apiName' => 'GetMtUserStatus',
'description' => '',
'operationType' => 'none',
'ramAction' => [
'action' => 'alimt:GetMtUserStatus',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Alimt', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
[
'apiName' => 'OcrPluginService',
'description' => '',
'operationType' => 'none',
'ramAction' => [
'action' => 'alimt:OcrPluginService',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Alimt', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
[
'apiName' => 'DoCheckResource',
'description' => '',
'operationType' => 'none',
'ramAction' => [
'action' => 'alimt:DoCheckResource',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Alimt', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
[
'apiName' => 'DeleteIntervention',
'description' => '',
'operationType' => 'none',
'ramAction' => [
'action' => 'alimt:DeleteIntervention',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Alimt', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
[
'apiName' => 'GetAsyncTranslate',
'description' => '',
'operationType' => 'none',
'ramAction' => [
'action' => 'alimt:GetAsyncTranslate',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Alimt', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
[
'apiName' => 'GetOssInfo',
'description' => '',
'operationType' => 'none',
'ramAction' => [
'action' => 'alimt:GetOssInfo',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Alimt', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
[
'apiName' => 'GetImageTranslate',
'description' => '',
'operationType' => 'get',
'ramAction' => [
'action' => 'alimt:GetImageTranslate',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Alimt', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
[
'apiName' => 'GetBatchTranslate',
'description' => '',
'operationType' => 'get',
'ramAction' => [
'action' => 'alimt:GetBatchTranslate',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Alimt', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
[
'apiName' => 'GetDetectLanguage',
'description' => '',
'operationType' => 'get',
'ramAction' => [
'action' => 'alimt:GetDetectLanguage',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Alimt', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
[
'apiName' => 'UpdateInterventionData',
'description' => '',
'operationType' => 'none',
'ramAction' => [
'action' => 'alimt:UpdateInterventionData',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Alimt', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
[
'apiName' => 'TranslateECommerce',
'description' => '',
'operationType' => 'none',
'ramAction' => [
'action' => 'alimt:TranslateECommerce',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Alimt', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
[
'apiName' => 'DeleteInterventionData',
'description' => '',
'operationType' => 'none',
'ramAction' => [
'action' => 'alimt:DeleteInterventionData',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Alimt', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
[
'apiName' => 'Translate',
'description' => '',
'operationType' => 'none',
'ramAction' => [
'action' => 'alimt:Translate',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Alimt', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
[
'apiName' => 'FindInterventionData',
'description' => '',
'operationType' => 'none',
'ramAction' => [
'action' => 'alimt:FindInterventionData',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Alimt', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
[
'apiName' => 'OpenAlimtService',
'description' => '',
'operationType' => 'none',
'ramAction' => [
'action' => 'alimt:OpenAlimtService',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Alimt', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
[
'apiName' => 'GetImageDiagnose',
'description' => '',
'operationType' => 'get',
'ramAction' => [
'action' => 'alimt:GetImageDiagnose',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Alimt', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
[
'apiName' => 'GetImageTranslateTask',
'description' => '',
'operationType' => 'get',
'ramAction' => [
'action' => 'alimt:GetImageTranslateTask',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Alimt', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
[
'apiName' => 'TranslateBatchProduct',
'description' => '',
'operationType' => 'none',
'ramAction' => [
'action' => 'alimt:TranslateBatchProduct',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Alimt', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
[
'apiName' => 'DomainSearch',
'description' => '',
'operationType' => 'none',
'ramAction' => [
'action' => 'alimt:DomainSearch',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Alimt', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
[
'apiName' => 'TranslateBySPInner',
'description' => '',
'operationType' => 'none',
'ramAction' => [
'action' => 'alimt:TranslateBySPInner',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Alimt', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
[
'apiName' => 'TranslateProduct',
'description' => '',
'operationType' => 'none',
'ramAction' => [
'action' => 'alimt:TranslateProduct',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Alimt', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
[
'apiName' => 'GetDetectLanguageVpc',
'description' => '',
'operationType' => 'get',
'ramAction' => [
'action' => 'alimt:GetDetectLanguageVpc',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Alimt', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
[
'apiName' => 'FindInterventionTask',
'description' => '',
'operationType' => 'none',
'ramAction' => [
'action' => 'alimt:FindInterventionTask',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Alimt', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
[
'apiName' => 'QueryOpenStatusLingjie',
'description' => '',
'operationType' => 'none',
'ramAction' => [
'action' => 'alimt:QueryOpenStatusLingjie',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Alimt', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
[
'apiName' => 'TranslateImageBatch',
'description' => '',
'operationType' => 'none',
'ramAction' => [
'action' => 'alimt:TranslateImageBatch',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Alimt', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
[
'apiName' => 'SaveInterventionData',
'description' => '',
'operationType' => 'none',
'ramAction' => [
'action' => 'alimt:SaveInterventionData',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Alimt', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
[
'apiName' => 'TranslateImage',
'description' => '',
'operationType' => 'none',
'ramAction' => [
'action' => 'alimt:TranslateImage',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Alimt', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
[
'apiName' => 'TranslateSearch',
'description' => '',
'operationType' => 'none',
'ramAction' => [
'action' => 'alimt:TranslateSearch',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Alimt', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
[
'apiName' => 'QueryApiInvokeCountLingjie',
'description' => '',
'operationType' => 'none',
'ramAction' => [
'action' => 'alimt:QueryApiInvokeCountLingjie',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Alimt', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
[
'apiName' => 'GetTranslateImageBatchResult',
'description' => '',
'operationType' => 'none',
'ramAction' => [
'action' => 'alimt:GetTranslateImageBatchResult',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Alimt', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
[
'apiName' => 'GetUser',
'description' => '',
'operationType' => 'none',
'ramAction' => [
'action' => 'alimt:GetUser',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Alimt', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
[
'apiName' => 'QueryOpenStatusDetailLingjie',
'description' => '',
'operationType' => 'none',
'ramAction' => [
'action' => 'alimt:QueryOpenStatusDetailLingjie',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Alimt', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
[
'apiName' => 'RecommendProject',
'description' => '',
'operationType' => 'get',
'ramAction' => [
'action' => 'alimt:RecommendProject',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Alimt', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
[
'apiName' => 'TranslateInterventionDataReview',
'description' => '',
'operationType' => 'none',
'ramAction' => [
'action' => 'alimt:TranslateInterventionDataReview',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Alimt', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
[
'apiName' => 'CreateInterventionTask',
'description' => '',
'operationType' => 'none',
'ramAction' => [
'action' => 'alimt:CreateInterventionTask',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Alimt', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
[
'apiName' => 'GetTranslatedFile',
'description' => '',
'operationType' => 'none',
'ramAction' => [
'action' => 'alimt:GetTranslatedFile',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Alimt', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
[
'apiName' => 'GetTitleDiagnose',
'description' => '',
'operationType' => 'get',
'ramAction' => [
'action' => 'alimt:GetTitleDiagnose',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Alimt', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
[
'apiName' => 'SubmitTranslateFile',
'description' => '',
'operationType' => 'none',
'ramAction' => [
'action' => 'alimt:SubmitTranslateFile',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Alimt', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
[
'apiName' => 'TranslateBySP',
'description' => '',
'operationType' => 'none',
'ramAction' => [
'action' => 'alimt:TranslateBySP',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Alimt', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
[
'apiName' => 'GetTitleIntelligence',
'description' => '',
'operationType' => 'get',
'ramAction' => [
'action' => 'alimt:GetTitleIntelligence',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Alimt', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
[
'apiName' => 'TranslateGeneral',
'description' => '',
'operationType' => 'none',
'ramAction' => [
'action' => 'alimt:TranslateGeneral',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Alimt', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
[
'apiName' => 'TranslateGeneralVpc',
'description' => '',
'operationType' => 'none',
'ramAction' => [
'action' => 'alimt:TranslateGeneralVpc',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Alimt', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
[
'apiName' => 'DolphinDomainSearch',
'description' => '',
'operationType' => 'none',
'ramAction' => [
'action' => 'alimt:DolphinDomainSearch',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Alimt', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
[
'apiName' => 'RecommendCompany',
'description' => '',
'operationType' => 'none',
'ramAction' => [
'action' => 'alimt:RecommendCompany',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Alimt', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
[
'apiName' => 'CreateAsyncTranslate',
'description' => '',
'operationType' => 'none',
'ramAction' => [
'action' => 'alimt:CreateAsyncTranslate',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Alimt', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
[
'apiName' => 'TranslateCertificate',
'description' => '',
'operationType' => 'none',
'ramAction' => [
'action' => 'alimt:TranslateCertificate',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Alimt', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
[
'apiName' => 'GetTitleGenerate',
'description' => '',
'operationType' => 'get',
'ramAction' => [
'action' => 'alimt:GetTitleGenerate',
'authLevel' => 'resource',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Alimt', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
[
'apiName' => 'CreateDocTranslateTask',
'description' => '',
'operationType' => 'create',
'ramAction' => [
'action' => 'alimt:CreateDocTranslateTask',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Alimt', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
[
'apiName' => 'GetBatchTranslateByVPC',
'description' => '',
'operationType' => 'get',
'ramAction' => [
'action' => 'alimt:GetBatchTranslateByVPC',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Alimt', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
[
'apiName' => 'QueryApiInvokeQpsLingjie',
'description' => '',
'operationType' => 'get',
'ramAction' => [
'action' => 'alimt:QueryApiInvokeQpsLingjie',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Alimt', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
],
'resourceTypes' => [
['validationType' => 'always', 'resourceType' => 'QueryResourcePackage', 'arn' => 'acs:alimt::{#accountId}:queryresourcepackage/*'],
['validationType' => 'always', 'resourceType' => 'CreateImageTranslateTask', 'arn' => 'acs:alimt:*:{#accountId}:*'],
['validationType' => 'always', 'resourceType' => 'GetTranslateReport', 'arn' => 'acs:alimt:*:{#accountId}:*'],
['validationType' => 'always', 'resourceType' => 'GetImageTranslate', 'arn' => 'acs:alimt:*:{#accountId}:*'],
['validationType' => 'always', 'resourceType' => 'UpdateInterventionData', 'arn' => 'acs:alimt::{#accountId}:updateinterventiondata/*'],
['validationType' => 'always', 'resourceType' => 'DeleteInterventionData', 'arn' => 'acs:alimt::{#accountId}:deleteinterventiondata/*'],
['validationType' => 'always', 'resourceType' => 'OpenAlimtService', 'arn' => 'acs:alimt:*:{#accountId}:*'],
['validationType' => 'always', 'resourceType' => 'GetImageDiagnose', 'arn' => 'acs:alimt::{#accountId}:getimagediagnose/*'],
['validationType' => 'always', 'resourceType' => 'GetImageTranslateTask', 'arn' => 'acs:alimt:*:{#accountId}:*'],
['validationType' => 'always', 'resourceType' => 'TranslateBatchProduct', 'arn' => 'acs:alimt::{#accountId}:translatebatchproduct/*'],
['validationType' => 'always', 'resourceType' => 'FindInterventionTask', 'arn' => 'acs:alimt::{#accountId}:findinterventiontask/*'],
['validationType' => 'always', 'resourceType' => 'TranslateImageBatch', 'arn' => 'acs:alimt:*:{#accountId}:*'],
['validationType' => 'always', 'resourceType' => 'SaveInterventionData', 'arn' => 'acs:alimt::{#accountId}:saveinterventiondata/*'],
['validationType' => 'always', 'resourceType' => 'GetTranslateImageBatchResult', 'arn' => 'acs:alimt:*:{#accountId}:*'],
['validationType' => 'always', 'resourceType' => 'GetUser', 'arn' => 'acs:alimt:*:{#accountId}:*'],
['validationType' => 'always', 'resourceType' => 'TranslateInterventionDataReview', 'arn' => 'acs:alimt:{#regionId}:{#accountId}:translateinterventiondatareview/*'],
['validationType' => 'always', 'resourceType' => 'GetTitleDiagnose', 'arn' => 'acs:alimt:*:{#accountId}:*'],
['validationType' => 'always', 'resourceType' => 'GetTitleIntelligence', 'arn' => 'acs:alimt:*:{#accountId}:*'],
['validationType' => 'always', 'resourceType' => 'Unrestricted', 'arn' => 'acs:alimt:*:{#accountid}:*'],
['validationType' => 'always', 'resourceType' => 'GetTitleGenerate', 'arn' => 'acs:alimt:*:{#accountId}:*'],
],
],
];
|