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
3890
3891
3892
3893
3894
3895
3896
3897
3898
3899
3900
3901
3902
3903
3904
3905
3906
3907
3908
3909
3910
3911
3912
3913
3914
3915
3916
3917
3918
3919
3920
3921
3922
3923
3924
3925
3926
3927
3928
3929
3930
3931
3932
3933
3934
3935
3936
3937
3938
3939
3940
3941
3942
3943
3944
3945
3946
3947
3948
3949
3950
3951
3952
3953
3954
3955
3956
3957
3958
3959
3960
3961
3962
3963
3964
3965
3966
3967
3968
3969
3970
3971
3972
3973
3974
3975
3976
3977
3978
3979
3980
3981
3982
3983
3984
3985
3986
3987
3988
3989
3990
3991
3992
3993
3994
3995
3996
3997
3998
3999
4000
4001
4002
4003
4004
4005
4006
4007
4008
4009
4010
4011
4012
4013
4014
4015
4016
4017
4018
4019
4020
4021
4022
4023
4024
4025
4026
4027
4028
4029
4030
4031
4032
4033
4034
4035
4036
4037
4038
4039
4040
4041
4042
4043
4044
4045
4046
4047
4048
4049
4050
4051
4052
4053
4054
4055
4056
4057
4058
4059
4060
4061
4062
4063
4064
4065
4066
4067
4068
4069
4070
4071
4072
4073
4074
4075
4076
4077
4078
4079
4080
4081
4082
4083
4084
4085
4086
4087
4088
4089
4090
4091
4092
4093
4094
4095
4096
4097
4098
4099
4100
4101
4102
4103
4104
4105
4106
4107
4108
4109
4110
4111
4112
4113
4114
4115
4116
4117
4118
4119
4120
4121
4122
4123
4124
4125
4126
4127
4128
4129
4130
4131
4132
4133
4134
4135
4136
4137
4138
4139
4140
4141
4142
4143
4144
4145
4146
4147
4148
4149
4150
4151
4152
4153
4154
4155
4156
4157
4158
4159
4160
4161
4162
4163
4164
4165
4166
4167
4168
4169
4170
4171
4172
4173
4174
4175
4176
4177
4178
4179
4180
4181
4182
4183
4184
4185
4186
4187
4188
4189
4190
4191
4192
4193
4194
4195
4196
4197
4198
4199
4200
4201
4202
4203
4204
4205
4206
4207
4208
4209
4210
4211
4212
4213
4214
4215
4216
4217
4218
4219
4220
4221
4222
4223
4224
4225
4226
4227
4228
4229
4230
4231
4232
4233
4234
4235
4236
4237
4238
4239
4240
4241
4242
4243
4244
4245
4246
4247
4248
4249
4250
4251
4252
4253
4254
4255
4256
4257
4258
4259
4260
4261
4262
4263
4264
4265
4266
4267
4268
4269
4270
4271
4272
4273
4274
4275
4276
4277
4278
4279
4280
4281
4282
4283
4284
4285
4286
4287
4288
4289
4290
4291
4292
4293
4294
4295
4296
4297
4298
4299
4300
4301
4302
4303
4304
4305
4306
4307
4308
4309
4310
4311
4312
4313
4314
4315
4316
4317
4318
4319
4320
4321
4322
4323
4324
4325
4326
4327
4328
4329
4330
4331
4332
4333
4334
4335
4336
4337
4338
4339
4340
4341
4342
4343
4344
4345
4346
4347
4348
4349
4350
4351
4352
4353
4354
4355
4356
4357
4358
4359
4360
4361
4362
4363
4364
4365
4366
4367
4368
4369
4370
4371
4372
4373
4374
4375
4376
4377
4378
4379
4380
4381
4382
4383
4384
4385
4386
4387
4388
4389
4390
4391
4392
4393
4394
4395
4396
4397
4398
4399
4400
4401
4402
4403
4404
4405
4406
4407
4408
4409
4410
4411
4412
4413
4414
4415
4416
4417
4418
4419
4420
4421
4422
4423
4424
4425
4426
4427
4428
4429
4430
4431
4432
4433
4434
4435
4436
4437
4438
4439
4440
4441
4442
4443
4444
4445
4446
4447
4448
4449
4450
4451
4452
4453
4454
4455
4456
4457
4458
4459
4460
4461
4462
4463
4464
4465
4466
4467
4468
4469
4470
4471
4472
4473
4474
4475
4476
4477
4478
4479
4480
4481
4482
4483
4484
4485
4486
4487
4488
4489
4490
4491
4492
4493
4494
4495
4496
4497
4498
4499
4500
4501
4502
4503
4504
4505
4506
4507
4508
4509
4510
4511
4512
4513
4514
4515
4516
4517
4518
4519
4520
4521
4522
4523
4524
4525
4526
4527
4528
4529
4530
4531
4532
4533
4534
4535
4536
4537
4538
4539
4540
4541
4542
4543
4544
4545
4546
4547
4548
4549
4550
4551
4552
4553
4554
4555
4556
4557
4558
4559
4560
4561
4562
4563
4564
4565
4566
4567
4568
4569
4570
4571
4572
4573
4574
4575
4576
4577
4578
4579
4580
4581
4582
4583
4584
4585
4586
4587
4588
4589
4590
4591
4592
4593
4594
4595
4596
4597
4598
4599
4600
4601
4602
4603
4604
4605
4606
4607
4608
4609
4610
4611
4612
4613
4614
4615
4616
4617
4618
4619
4620
4621
4622
4623
4624
4625
4626
4627
4628
4629
4630
4631
4632
4633
4634
4635
4636
4637
4638
4639
4640
4641
4642
4643
4644
4645
4646
4647
4648
4649
4650
4651
4652
4653
4654
4655
4656
4657
4658
4659
4660
4661
4662
4663
4664
4665
4666
4667
4668
4669
4670
4671
4672
4673
4674
4675
4676
4677
4678
4679
4680
4681
4682
4683
4684
4685
4686
4687
4688
4689
4690
4691
4692
4693
4694
4695
4696
4697
4698
4699
4700
4701
4702
4703
4704
4705
4706
4707
4708
4709
4710
4711
4712
4713
4714
4715
4716
4717
4718
4719
4720
4721
4722
4723
4724
4725
4726
4727
4728
4729
4730
4731
4732
4733
4734
4735
4736
4737
4738
4739
4740
4741
4742
4743
4744
4745
4746
4747
4748
4749
4750
4751
4752
4753
4754
4755
4756
4757
4758
4759
4760
4761
4762
4763
4764
4765
4766
4767
4768
4769
4770
4771
4772
4773
4774
4775
4776
4777
4778
4779
4780
4781
4782
4783
4784
4785
4786
4787
4788
4789
4790
4791
4792
4793
4794
4795
4796
4797
4798
4799
4800
4801
4802
4803
4804
4805
4806
4807
4808
4809
4810
4811
4812
4813
4814
4815
4816
4817
4818
4819
4820
4821
4822
4823
4824
4825
4826
4827
4828
4829
4830
4831
4832
4833
4834
4835
4836
4837
4838
4839
4840
4841
4842
4843
4844
4845
4846
4847
4848
4849
4850
4851
4852
4853
4854
4855
4856
4857
4858
4859
4860
4861
4862
4863
4864
4865
4866
4867
4868
4869
4870
4871
4872
4873
4874
4875
4876
4877
4878
4879
4880
4881
4882
4883
4884
4885
4886
4887
4888
4889
4890
4891
4892
4893
4894
4895
4896
4897
4898
4899
4900
4901
4902
4903
4904
4905
4906
4907
4908
4909
4910
4911
4912
4913
4914
4915
4916
4917
4918
4919
4920
4921
4922
4923
4924
4925
4926
4927
4928
4929
4930
4931
4932
4933
4934
4935
4936
4937
4938
4939
4940
4941
4942
4943
4944
4945
4946
4947
4948
4949
4950
4951
4952
4953
4954
4955
4956
4957
4958
4959
4960
4961
4962
4963
4964
4965
4966
4967
4968
4969
4970
4971
4972
4973
4974
4975
4976
4977
4978
4979
4980
4981
4982
4983
4984
4985
4986
4987
4988
4989
4990
4991
4992
4993
4994
4995
4996
4997
4998
4999
5000
5001
5002
5003
5004
5005
5006
5007
5008
5009
5010
5011
5012
5013
5014
5015
5016
5017
5018
5019
5020
5021
5022
5023
5024
5025
5026
5027
5028
5029
5030
5031
5032
5033
5034
5035
5036
5037
5038
5039
5040
5041
5042
5043
5044
5045
5046
5047
5048
5049
5050
|
<?php return [
'version' => '1.0',
'info' => ['style' => 'ROA', 'product' => 'Devs', 'version' => '2023-07-14'],
'directories' => [
[
'children' => ['UpdateToolset', 'ListToolsets', 'GetToolset', 'DeleteToolset', 'CreateToolset'],
'type' => 'directory',
'title' => 'Toolkit',
],
[
'children' => ['RenderServicesByTemplate'],
'type' => 'directory',
'title' => 'Template',
],
[
'children' => ['FetchArtifactDownloadUrl', 'FetchArtifactTempBucketToken', 'GetArtifact', 'PutArtifact', 'DeleteArtifact', 'CreateArtifact'],
'type' => 'directory',
'title' => 'Artifacts',
],
[
'children' => ['DeployEnvironment', 'GetEnvironmentDeployment', 'GetServiceDeployment', 'ListServiceDeployments', 'PreviewEnvironment', 'CreateEnvironment', 'DeleteEnvironment', 'UpdateEnvironment', 'ListEnvironments', 'GetEnvironment'],
'type' => 'directory',
'title' => 'Environment',
],
[
'children' => ['DeleteConnection', 'ListConnections'],
'type' => 'directory',
'title' => 'Identity binding',
],
[
'children' => ['GetRepository'],
'type' => 'directory',
'title' => 'Repository binding',
],
[
'children' => ['CreatePipeline', 'ListPipelines', 'GetPipeline', 'StartPipeline', 'CancelPipeline', 'PutPipelineStatus'],
'type' => 'directory',
'title' => 'Pipelines',
],
[
'children' => ['CreateTask', 'ListTasks', 'GetTask', 'StartTask', 'RetryTask', 'ResumeTask', 'CancelTask', 'PutTaskStatus'],
'type' => 'directory',
'title' => 'Pipeline tasks',
],
[
'children' => ['ActivateConnection', 'FetchConnectionCredential'],
'type' => 'directory',
'title' => 'Other',
],
[
'children' => ['CreateProject', 'DeleteProject', 'GetProject', 'ListProjects', 'UpdateProject'],
'title' => 'Others',
'type' => 'directory',
],
],
'components' => [
'schemas' => [
'Authorization' => [
'title' => '认证鉴权参数',
'type' => 'object',
'properties' => [
'type' => [
'title' => '鉴权类型。当前仅支持API Key鉴权(APIKey)',
'description' => 'The authorization type.',
'type' => 'string',
'example' => 'APIKey',
'required' => true,
'enum' => ['APIKey', 'Credentials'],
],
'parameters' => [
'title' => '鉴权请求参数',
'type' => 'object',
'properties' => [
'apiKeyParameter' => ['title' => 'API Key鉴权参数', 'description' => 'The location and name of the API key.', 'example' => '', '$ref' => '#/components/schemas/APIKeyAuthParameter'],
'credentials' => [
'title' => '访问凭证',
'type' => 'object',
'additionalProperties' => ['description' => '', 'title' => '', 'example' => '', '$ref' => '#/components/schemas/Variable'],
'description' => 'The value of a credential property.',
'example' => '',
],
],
'required' => true,
'description' => 'The parameters for the selected authorization type.',
'example' => '',
],
],
'description' => 'The API\'s authorization settings.',
'example' => '',
],
'Checkout' => [
'title' => '代码拉取信息',
'description' => '拉取代码所需信息',
'visibility' => 'Public',
'type' => 'object',
'properties' => [
'remote' => ['title' => '拉取代码时所需的仓库信息', 'description' => '拉取代码时所需的仓库信息', 'visibility' => 'Public', 'type' => 'string', 'example' => 'https:/your_token/@github.com/buptwzj/test-initRepo4.git', 'backendName' => 'remote'],
'ref' => ['title' => '拉取代码时所需的版本信息', 'description' => '拉取代码时所需的版本信息', 'visibility' => 'Public', 'type' => 'string', 'example' => '+001691d0768ca49e9550beeb59fbc163f33b7e88:refs/remotes/origin/master', 'backendName' => 'ref'],
],
],
'CodeupEventPayload' => [
'title' => 'A short description of struct',
'description' => 'Code流水线触发事件消息体',
'visibility' => 'Public',
'type' => 'object',
'properties' => [
'originalPayload' => ['title' => 'Codeup原始消息体', 'description' => 'Codeup原始消息体', 'visibility' => 'Public', 'type' => 'string', 'format' => 'byte', 'example' => '{'."\n"
.' "before": "03b7be6d28af70ab38ca2ce8b42c3533c622d925",'."\n"
.' "checkout_sha": "baf09c10ee5f28b5f36cec35e5e0e5c0abdcfa8a",'."\n"
.' "object_kind": "push",'."\n"
.' "ref": "refs/heads/test",'."\n"
.' "commits": ['."\n"
.' {'."\n"
.' "id": "baf09c10ee5f28b5f36cec35e5e0e5c0abdcfa8a",'."\n"
.' "message": "fix:recommend\\n"'."\n"
.' }'."\n"
.' ],'."\n"
.' "after": "baf09c10ee5f28b5f36cec35e5e0e5c0abdcfa8a"'."\n"
.'}'."\n"
.'-- 必须使用原始的codeup发出的webhook事件', 'backendName' => 'originalPayload'],
],
],
'ComfyUIWorkflowTemplate' => [
'type' => 'object',
'properties' => [
'name' => ['description' => 'A unique name for the resource.', 'type' => 'string', 'title' => '', 'example' => ''],
'kind' => ['description' => 'The resource type. The value is always `ComfyUIWorkflowTemplate`.', 'type' => 'string', 'title' => '', 'example' => ''],
'uid' => ['description' => 'A system-generated, immutable, unique identifier (UID) for the resource.', 'type' => 'string', 'title' => '', 'example' => ''],
'createdTime' => ['description' => 'The creation timestamp for the resource, in RFC 3339 format.', 'type' => 'string', 'title' => '', 'example' => ''],
'description' => ['description' => '', 'title' => '', 'example' => '', 'type' => 'string'],
'spec' => ['description' => '', 'title' => '', 'example' => '', '$ref' => '#/components/schemas/ComfyUIWorkflowTemplateSpec'],
'installCount' => ['description' => 'The number of times the template has been installed.', 'type' => 'integer', 'title' => '', 'example' => '', 'format' => 'int32'],
'viewerUids' => ['description' => 'A comma-separated list of user UIDs allowed to view this template.', 'type' => 'string', 'title' => '', 'example' => ''],
'labels' => [
'type' => 'object',
'additionalProperties' => ['description' => 'The value of a label.', 'type' => 'string', 'title' => '', 'example' => ''],
'description' => 'A set of key-value pairs used to organize and categorize the resource. Labels can be used for filtering and querying.',
'title' => '',
'example' => '',
],
],
'description' => 'The `ComfyUIWorkflowTemplate` object represents a reusable workflow template for ComfyUI.',
'title' => '',
'example' => '',
],
'Condition' => [
'title' => '执行条件',
'description' => 'Specifies an execution condition.',
'type' => 'object',
'properties' => [
'expression' => ['title' => '返回值为bool类型的表达式', 'description' => 'An expression that evaluates to a boolean value.', 'type' => 'string', 'example' => 'enable == true'."\n"
.'-- 表示ctx.data.enable的值为true时为真', 'visibility' => 'Public', 'backendName' => 'expression'],
],
'example' => '',
'visibility' => 'Public',
],
'Connection' => [
'title' => '身份绑定',
'description' => 'Represents a Connection.',
'type' => 'object',
'properties' => [
'uid' => ['title' => '当前阿里云主账号的ID,只读', 'description' => 'The unique ID of the Alibaba Cloud account. read-only.', 'type' => 'string', 'required' => false, 'example' => '1455541096***548', 'visibility' => 'Public', 'backendName' => 'uid'],
'kind' => ['title' => '当前资源的名称,只读', 'description' => 'The resource type. read-only.', 'type' => 'string', 'example' => 'Connection', 'visibility' => 'Public', 'backendName' => 'kind'],
'createdTime' => ['title' => '表示创建此对象时服务器的时间,只读', 'description' => 'The time the resource was created. read-only.', 'type' => 'string', 'example' => '2021-11-19T09:34:38Z', 'visibility' => 'Public', 'backendName' => 'createdTime'],
'name' => ['title' => '当前资源的名称。它需要是唯一的,且无法变更', 'description' => 'The name of the resource. Must be unique and immutable.', 'type' => 'string', 'required' => true, 'example' => 'my-connection', 'maxLength' => 40, 'minLength' => 1, 'pattern' => '[a-z](?!-)[a-z0-9-]{1,40}(?<!-)', 'visibility' => 'Public', 'backendName' => 'name'],
'spec' => ['title' => '身份绑定配置', 'description' => 'The identity binding configuration.', 'required' => true, '$ref' => '#/components/schemas/ConnectionSpec', 'example' => '', 'visibility' => 'Public', 'backendName' => 'spec'],
'labels' => [
'title' => '资源的标签',
'description' => 'The resource labels.',
'type' => 'object',
'additionalProperties' => ['description' => 'A key-value pair used as a label.', 'type' => 'string', 'example' => 'key=value', 'title' => '', 'visibility' => 'Public'],
'example' => '',
'visibility' => 'Public',
'backendName' => 'labels',
],
'description' => ['title' => '描述信息', 'description' => 'A description of the resource.', 'type' => 'string', 'example' => 'test-description', 'visibility' => 'Public', 'backendName' => 'description'],
'status' => ['title' => '当前资源的状态信息,只读', 'description' => 'The current status of the resource. read-only.', '$ref' => '#/components/schemas/ConnectionStatus', 'example' => '', 'visibility' => 'Public', 'backendName' => 'status'],
],
'example' => '',
'visibility' => 'Public',
],
'ConnectionSpec' => [
'title' => '',
'description' => 'The repository configuration.',
'type' => 'object',
'properties' => [
'platform' => ['title' => '', 'description' => 'The type of the third-party code hosting platform. Valid values: github, gitee, gitlab, and codeup.', 'type' => 'string', 'required' => true, 'example' => 'github'],
'account' => ['title' => '', 'description' => 'The account information of the code hosting platform.', '$ref' => '#/components/schemas/GitAccount', 'example' => ''],
'gitlabConfig' => ['title' => '', 'description' => 'The configuration required to connect to the GitLab code hosting platform.', '$ref' => '#/components/schemas/GitLabConfig', 'example' => ''],
],
'example' => '',
],
'ConnectionStatus' => [
'title' => '',
'description' => 'The identity binding status.',
'type' => 'object',
'properties' => [
'installation' => ['title' => '', 'description' => 'The current status of the identity binding process.', '$ref' => '#/components/schemas/Installation', 'example' => '', 'visibility' => 'Public', 'backendName' => 'installation'],
],
'example' => '',
'visibility' => 'Public',
],
'Context' => [
'title' => 'A short description of struct',
'description' => 'json字符串,存储执行上下文',
'visibility' => 'Public',
'type' => 'object',
'properties' => [
'data' => ['title' => 'data是一个JSON结构的数据,描述执行的上下文数据', 'description' => 'data是一个JSON结构的数据,描述执行的上下文数据', 'visibility' => 'Public', 'type' => 'object', 'backendName' => 'data'],
],
],
'DifyPluginInstallationConfig' => [
'type' => 'object',
'properties' => [
'provider' => ['title' => '插件供应商', 'description' => 'Specifies the plugin provider. Currently, only `dify` is supported.', 'type' => 'string', 'example' => ''],
'source' => [
'title' => '插件来源',
'type' => 'object',
'properties' => [
'marketplace' => [
'title' => 'Dify插件市场配置',
'type' => 'object',
'properties' => [
'pluginId' => ['title' => '插件市场中的插件ID', 'description' => 'The plugin ID from the marketplace.', 'type' => 'string', 'example' => ''],
'version' => ['title' => '插件版本', 'description' => 'The plugin version to install.', 'type' => 'string', 'example' => ''],
'uniqueIdentifier' => ['title' => '插件唯一定位符', 'description' => 'The unique identifier for the installation, often associated with a user or tenant.', 'type' => 'string', 'example' => ''],
],
'description' => 'Specifies the configuration to install a plugin from the marketplace.',
'example' => '',
],
'github' => [
'title' => 'Github仓库配置',
'type' => 'object',
'properties' => [
'repository' => ['title' => '仓库名称', 'description' => 'The GitHub repository path in the `owner/repo` format.', 'type' => 'string', 'example' => ''],
'version' => ['title' => '仓库release版本', 'description' => 'The Git tag, branch, or commit hash specifying the plugin version.', 'type' => 'string', 'example' => ''],
'package' => ['title' => '插件安装包名', 'description' => 'The name of the plugin package. Required if the repository contains multiple packages.', 'type' => 'string', 'example' => ''],
],
'description' => 'Specifies the configuration to install a plugin from a GitHub repository.',
'example' => '',
],
'downloadUrl' => ['title' => '自定义下载地址', 'description' => 'The direct download URL of the plugin package. The package must be a publicly accessible ZIP file.', 'type' => 'string', 'example' => ''],
'oss' => [
'title' => 'OSS对象存储配置',
'type' => 'object',
'properties' => [
'bucket' => ['title' => '存储桶名称', 'description' => 'The name of the OSS bucket where the plugin object is stored.', 'type' => 'string', 'example' => ''],
'object' => ['title' => '对象名称', 'description' => 'The object key (its file path) in the OSS bucket.', 'type' => 'string', 'example' => ''],
'endpoint' => ['title' => 'oss服务端点', 'description' => 'The service endpoint for the OSS region. For example, `oss-us-west-1.aliyuncs.com`.', 'type' => 'string', 'example' => ''],
],
'description' => 'Specifies the configuration to install a plugin from an Alibaba Cloud OSS bucket.',
'example' => '',
],
],
'description' => 'Defines the plugin source configuration. You must specify one of the following sources: `marketplace`, `github`, `downloadUrl`, or `oss`.',
'example' => '',
],
],
'description' => 'Defines the configuration for installing a Dify plugin.',
'title' => '',
'example' => '',
],
'DifyToolSchema' => [
'type' => 'object',
'properties' => [
'name' => ['title' => '工具名称', 'description' => 'The name of the tool. This name must be unique within the tool set.', 'type' => 'string', 'example' => ''],
'description' => ['title' => '工具描述', 'description' => 'A detailed explanation of the tool\'s purpose, capabilities, and ideal use cases. The model uses this description to determine when to call the tool.', 'type' => 'string', 'example' => ''],
'inputSchema' => ['title' => '输入schema', 'description' => 'A JSON Schema object that defines the tool\'s input parameters.', 'type' => 'object', 'example' => ''],
'outputSchema' => ['title' => '自定义输出schema', 'description' => 'A JSON Schema object that defines the structure of the tool\'s output. This allows the model to interpret the tool\'s response.', 'type' => 'object', 'example' => ''],
],
'description' => 'Defines the schema for a tool. This schema specifies the tool\'s name, purpose, and input/output structures.',
'title' => '',
'example' => '',
],
'EfmModel' => [
'title' => '部署单元模型服务',
'type' => 'object',
'properties' => [
'uid' => ['title' => '当前阿里云主账号的ID,只读', 'type' => 'string'],
'kind' => ['title' => '当前资源类型的名称,只读', 'type' => 'string'],
'createdTime' => ['title' => '表示创建此对象时服务器的时间,只读', 'type' => 'string'],
'updatedTime' => ['title' => '表示最后更新此对象时服务器的时间,只读', 'type' => 'string'],
'name' => ['title' => '当前模型服务的的名称。它需要是唯一的,且无法变更', 'type' => 'string', 'required' => true],
'resourceVersion' => ['title' => '当前状态的自增的序列号,由系统填充,只读。当资源更新时递增', 'type' => 'integer', 'format' => 'int32'],
'description' => ['title' => '描述信息'."\n", 'type' => 'string'],
'generation' => ['title' => '当前模型服务的自增的序列号,由系统填充,只读。当spec更新时递增', 'type' => 'string'],
'spec' => ['title' => '部署单元模型服务配置', 'required' => true, '$ref' => '#/components/schemas/EfmModelSpec'],
'status' => ['title' => '当前模型服务的状态信息,只读', '$ref' => '#/components/schemas/EfmModelStatus'],
'labels' => [
'title' => '模型服务部署单元的标签',
'type' => 'object',
'additionalProperties' => ['type' => 'string'],
],
],
],
'EfmModelSpec' => [
'title' => '部署单元配置',
'type' => 'object',
'properties' => [
'capacity' => ['title' => '表示实际分配给模型的资源单元数量,必须是base_capacity的整数倍', 'type' => 'integer', 'format' => 'int32', 'required' => true],
'suffix' => ['title' => '模型部署后,将生成新的模型名称,suffix用于指定新模型名称的后缀,最大长度为8个字符且需全局唯一', 'type' => 'string'],
'modelName' => ['title' => '模型名称', 'type' => 'string', 'required' => true],
'token' => ['title' => '访问数据链路时候的 apiKey', 'type' => 'string'],
'disableURLInternet' => ['title' => '是否禁用公网', 'type' => 'boolean', 'default' => 'false'],
'modelUnitType' => ['title' => '模型单元', 'type' => 'string', 'required' => true],
],
],
'EfmModelStatus' => [
'title' => '模型服务状态, 比如 RUNNING',
'type' => 'object',
'properties' => [
'status' => ['title' => '', 'type' => 'string'],
'deployedName' => ['type' => 'string'],
'readyCapacity' => ['type' => 'integer', 'format' => 'int32'],
'workspaceId' => ['type' => 'string'],
'urlInternet' => ['type' => 'string'],
'token' => ['type' => 'string'],
'baseCapacity' => ['type' => 'integer', 'format' => 'int32'],
'urlIntranet' => ['type' => 'string'],
'disableURLInternet' => ['type' => 'boolean'],
],
],
'Environment' => [
'title' => '环境定义',
'description' => 'An environment can be associated with a specific branch for development, or with an infrastructure stack to deploy services.',
'type' => 'object',
'properties' => [
'name' => ['title' => '环境名称,项目下唯一,不可修改', 'description' => 'The name of the environment. It must be unique within the project and cannot be changed.', 'type' => 'string', 'required' => true, 'example' => 'demo-env', 'visibility' => 'Public', 'backendName' => 'name'],
'kind' => ['title' => '当前资源的类型,只读', 'description' => 'The type of the resource. This property is read-only.', 'type' => 'string', 'example' => 'Environment', 'visibility' => 'Public', 'backendName' => 'kind'],
'uid' => ['title' => '当前阿里云主账号的ID,只读', 'description' => 'The ID of the owning Alibaba Cloud account. This property is read-only.', 'type' => 'string', 'required' => false, 'example' => '1455541096***548', 'visibility' => 'Public', 'backendName' => 'uid'],
'createdTime' => ['title' => '创建此对象时服务器的时间,只读', 'description' => 'The server-side timestamp indicating when the resource was created. This property is read-only.', 'type' => 'string', 'example' => '2021-11-19T09:34:38Z', 'visibility' => 'Public', 'backendName' => 'createdTime'],
'description' => ['title' => '资源描述', 'description' => 'The description of the environment.', 'type' => 'string', 'example' => 'test env', 'visibility' => 'Public', 'backendName' => 'description'],
'spec' => ['title' => '环境配置', 'description' => 'The environment configuration.', 'required' => true, '$ref' => '#/components/schemas/EnvironmentSpec', 'example' => '', 'visibility' => 'Public', 'backendName' => 'spec'],
'labels' => [
'title' => '资源的标签',
'description' => 'The key-value labels for the environment.',
'type' => 'object',
'additionalProperties' => ['type' => 'string', 'description' => '', 'example' => 'value to the label key.', 'title' => '', 'visibility' => 'Public'],
'example' => '',
'visibility' => 'Public',
'backendName' => 'labels',
],
'status' => ['title' => '当前环境的状态', 'description' => 'The current status of the environment.', '$ref' => '#/components/schemas/EnvironmentStatus', 'example' => '', 'visibility' => 'Public', 'backendName' => 'status'],
'projectName' => ['title' => '环境所属的项目名称,只读', 'description' => 'The name of the project that contains the environment. This property is read-only.', 'type' => 'string', 'example' => 'demo-project', 'visibility' => 'Public', 'backendName' => 'projectName'],
'generation' => ['title' => '当前资源的自增的序列号,由系统填充,只读,当spec、labels、description更新时递增。如果指定,系统会加入并发写校验,generation必须和系统中的状态值一致', 'description' => 'A system-generated, auto-incrementing number representing the configuration generation. This property is read-only and increments each time the `spec` is updated.', 'type' => 'integer', 'format' => 'int32', 'example' => '1', 'visibility' => 'Public', 'backendName' => 'generation'],
],
'example' => '',
'visibility' => 'Public',
],
'EnvironmentSpec' => [
'title' => '环境配置描述',
'description' => 'The configuration settings for the environment.',
'type' => 'object',
'properties' => [
'type' => [
'title' => '环境类型,只能在testing、staging、production中选择',
'description' => 'The environment type. Valid values are testing, staging, and production.',
'type' => 'string',
'example' => 'Testing',
'default' => 'Production',
'enum' => ['Testing', 'Staging', 'Production'],
'visibility' => 'Public',
'backendName' => 'type',
],
'roleArn' => ['title' => '环境角色', 'description' => 'The Alibaba Cloud Resource Name (ARN) of the environment role.', 'type' => 'string', 'example' => 'acs:ram::*******:role/aliyundevsdefaultrole', 'visibility' => 'Public', 'backendName' => 'roleArn'],
'stagedConfigs' => ['title' => '环境下保存的配置,可以通过部署达到该配置状态', 'description' => 'The staged configs for the environment, which can be applied by a deployment.', 'example' => '', '$ref' => '#/components/schemas/EnvironmentStagedConfigs', 'visibility' => 'Public', 'backendName' => 'stagedConfigs'],
],
'example' => '',
'visibility' => 'Public',
],
'EnvironmentStatus' => [
'title' => '环境状态',
'description' => 'The current status of the environment.',
'type' => 'object',
'properties' => [
'servicesInstances' => [
'title' => '项目下的服务使用当前环境中的配置进行部署后产生的服务实例',
'description' => 'Service instances created by deploying project services using the current environment\'s configuration.',
'type' => 'object',
'additionalProperties' => ['description' => '', 'title' => '', 'example' => '', '$ref' => '#/components/schemas/ServiceInstance', 'visibility' => 'Public'],
'example' => '',
'visibility' => 'Public',
'backendName' => 'servicesInstances',
],
'latestEnvironmentDeploymentName' => ['title' => '最近一次部署计划的名称。每次环境部署都会产生一个部署计划,涉及若干个服务的部署', 'description' => 'The name of the deployment plan for the most recent deployment. Each environment deployment generates a deployment plan that may include one or more services.', 'type' => 'string', 'example' => '', 'visibility' => 'Public', 'backendName' => 'latestEnvironmentDeploymentName'],
'servicesWithPendingChanges' => [
'title' => '存在未部署的变更的服务名称列表',
'description' => 'A list of service names that have pending changes.',
'type' => 'array',
'items' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => '服务名称', 'visibility' => 'Public', 'extendType' => 'true'],
'example' => '',
'visibility' => 'Public',
'backendName' => 'servicesWithPendingChanges',
],
'observedGeneration' => ['title' => '资源最近的一次状态更新时的资源generation', 'description' => 'The most recent generation of the resource observed by the system.', 'type' => 'integer', 'format' => 'int64', 'example' => '1', 'visibility' => 'Public', 'backendName' => 'observedGeneration'],
'observedTime' => ['title' => '资源最近的一次状态更新时间', 'description' => 'The timestamp when the status was last observed.', 'type' => 'string', 'example' => '2021-11-19T09:34:38Z', 'visibility' => 'Public', 'backendName' => 'observedTime'],
],
'example' => '',
'visibility' => 'Public',
],
'EventFilterConfig' => [
'title' => '',
'description' => 'The event filtering configuration.',
'type' => 'object',
'properties' => [
'branch' => ['title' => '', 'description' => 'The branch where the change event occurs.', 'example' => '', '$ref' => '#/components/schemas/BranchFilter', 'visibility' => 'Public', 'backendName' => 'branch'],
],
'example' => '',
'visibility' => 'Public',
],
'EventPayload' => [
'title' => 'A short description of struct',
'description' => '流水线触发事件消息体',
'visibility' => 'Public',
'type' => 'object',
'properties' => [
'github' => ['description' => 'Github流水线触发事件消息体', 'visibility' => 'Public', 'backendName' => 'github', '$ref' => '#/components/schemas/GithubEventPayload'],
'gitlab' => ['description' => 'Gitlab流水线触发事件消息体', 'visibility' => 'Public', 'backendName' => 'gitlab', '$ref' => '#/components/schemas/GitlabEventPayload'],
'codeup' => ['description' => 'Codeup流水线触发事件消息体', 'visibility' => 'Public', 'backendName' => 'codeup', '$ref' => '#/components/schemas/CodeupEventPayload'],
'gitee' => ['description' => 'Gitee流水线触发事件消息体', 'visibility' => 'Public', 'backendName' => 'gitee', '$ref' => '#/components/schemas/GiteeEventPayload'],
'manual' => ['description' => '手动触发流水线事件消息体', 'visibility' => 'Public', 'backendName' => 'manual', '$ref' => '#/components/schemas/ManualEventPayload'],
],
],
'FileManagerTask' => [
'type' => 'object',
'properties' => [
'name' => ['type' => 'string'],
'id' => ['type' => 'string'],
'startTime' => ['type' => 'integer', 'format' => 'int64'],
'updateTime' => ['type' => 'integer', 'format' => 'int64'],
'finishedTime' => ['type' => 'integer', 'format' => 'int64'],
'finished' => ['type' => 'boolean'],
'success' => ['type' => 'boolean'],
'errorMessage' => ['type' => 'string'],
'parameters' => ['type' => 'any'],
'progress' => [
'type' => 'object',
'properties' => [
'currentBytes' => ['type' => 'integer', 'format' => 'int64'],
'totalBytes' => ['type' => 'integer', 'format' => 'int64'],
],
],
'result' => ['type' => 'any'],
'errorCode' => ['type' => 'string'],
],
],
'GitAccount' => [
'title' => 'A short description of struct',
'description' => 'Represents an OAuth credential.',
'type' => 'object',
'properties' => [
'name' => ['title' => '代码托管平台的登录账号名,在每种代码托管平台下唯一', 'description' => 'The username on the code hosting platform. This value is unique per platform.', 'type' => 'string', 'required' => false, 'example' => 'your_username', 'visibility' => 'Public', 'backendName' => 'name'],
'displayName' => ['title' => '代码托管平台中的昵称,可以为空且不唯一', 'description' => 'The display name on the code hosting platform. It can be empty and does not need to be unique.', 'type' => 'string', 'example' => 'your_displayname', 'visibility' => 'Public', 'backendName' => 'displayName'],
'id' => ['title' => '代码托管平台账号的ID,在每种代码托管平台下唯一', 'description' => 'The ID of the account on the code hosting platform. This ID is unique per platform.', 'type' => 'string', 'example' => '1', 'visibility' => 'Public', 'backendName' => 'id'],
'avatar' => ['title' => '代码托管平台账号的头像链接', 'description' => 'The user\'s avatar URL on the code hosting platform.', 'type' => 'string', 'required' => false, 'example' => 'https://gitee.com/assets/no_portrait.png', 'visibility' => 'Public', 'backendName' => 'avatar'],
'uri' => ['title' => '代码托管平台的地址,仅在自建GitLab时使用', 'description' => 'The URL of the code hosting platform. Used only for self-hosted GitLab instances.', 'type' => 'string', 'required' => false, 'example' => 'https://gitlab.com', 'visibility' => 'Public', 'backendName' => 'uri'],
],
'example' => '',
'visibility' => 'Public',
],
'GiteeEventPayload' => [
'title' => 'A short description of struct',
'description' => 'Gitee流水线触发事件消息体',
'visibility' => 'Public',
'type' => 'object',
'properties' => [
'originalPayload' => ['title' => 'gitee原始消息体', 'description' => 'gitee原始消息体', 'visibility' => 'Public', 'type' => 'string', 'format' => 'byte', 'example' => '{}{'."\n"
.' "after": "75008ebafa504ffc6d3fe2236b780b1a04663fbb",'."\n"
.' "before": "f4abefc293a6df4d3be23945c4474f9d54f67645",'."\n"
.' "commits": ['."\n"
.' {'."\n"
.' "id": "75008ebafa504ffc6d3fe2236b780b1a04663fbb",'."\n"
.' "message": "update\\\\n"'."\n"
.' }'."\n"
.' ],'."\n"
.' "ref": "refs/heads/master"'."\n"
.'}'."\n"
.'-- 必须使用原始的gitee发出的webhook事件', 'backendName' => 'originalPayload'],
],
],
'GitEventSnapshot' => [
'title' => 'Git提交事件快照',
'description' => 'Git事件快照',
'visibility' => 'Public',
'type' => 'object',
'properties' => [
'branch' => ['title' => '本次发布关联的分支,如果是PR或MR事件,为源分支', 'description' => '本次发布关联的分支,如果是PR或MR事件,为源分支', 'visibility' => 'Public', 'type' => 'string', 'example' => 'main', 'backendName' => 'branch'],
'commitID' => ['title' => '本次发布关联的commitID', 'description' => '本次发布关联的commitID', 'visibility' => 'Public', 'type' => 'string', 'example' => '12721ec262d03a93809ba2bbc717963cb298ceca', 'backendName' => 'commitID'],
'tag' => ['title' => '本次发布关联的tag', 'description' => '本次发布关联的tag', 'visibility' => 'Public', 'type' => 'string', 'example' => '1.0', 'backendName' => 'tag'],
],
],
'GithubEventPayload' => [
'title' => 'A short description of struct',
'description' => 'Github流水线触发事件消息体',
'visibility' => 'Public',
'type' => 'object',
'properties' => [
'originalPayload' => ['title' => 'github事件原始消息体', 'description' => 'github事件原始消息体', 'visibility' => 'Public', 'type' => 'string', 'format' => 'byte', 'example' => '{'."\n"
.' "ref": "refs/heads/master",'."\n"
.' "before": "1d4344d7eeda61c26c8a6d945d83b205b422f3e3",'."\n"
.' "after": "9f3221a7e63f979281e3926bf619b193646ff561",'."\n"
.' "commits": ['."\n"
.' {'."\n"
.' "id": "9f3221a7e63f979281e3926bf619b193646ff561",'."\n"
.' "message": "update"'."\n"
.' }'."\n"
.' ],'."\n"
.' "head_commit": {'."\n"
.' "id": "9f3221a7e63f979281e3926bf619b193646ff561",'."\n"
.' "message": "update"'."\n"
.' }'."\n"
.'}'."\n"
.'-- 必须使用原始的github发出的webhook事件', 'backendName' => 'originalPayload'],
],
],
'GitLabConfig' => [
'title' => 'A short description of struct',
'description' => '描述连接GitLab代码托管平台所需的信息',
'visibility' => 'Public',
'type' => 'object',
'properties' => [
'isFixedIP' => ['title' => '是否固定公网IP访问Gitlab', 'description' => '是否固定公网IP访问Gitlab', 'visibility' => 'Public', 'type' => 'boolean', 'backendName' => 'isFixedIP'],
'uri' => ['title' => 'GitLab的域名,默认为https://gitlab.com;当您使用自建GitLab时需要指定', 'description' => 'GitLab的域名,默认为https://gitlab.com;当您使用自建GitLab时需要指定', 'visibility' => 'Public', 'type' => 'string', 'example' => 'http://gitlab.c16194660f14898a0810408171302ac.cn-shanghai.alicontainer.com/', 'backendName' => 'uri'],
'token' => ['title' => 'GitLab私有Token,参考以下文档在GitLab控制台获取:https://docs.gitlab.com/ee/user/profile/personal_access_tokens.html?spm=5176.fcnext.0.0.1aa378c8E3yBHw#create-a-personal-access-token', 'description' => 'GitLab私有Token,参考以下文档在GitLab控制台获取:https://docs.gitlab.com/ee/user/profile/personal_access_tokens.html?spm=5176.fcnext.0.0.1aa378c8E3yBHw#create-a-personal-access-token', 'visibility' => 'Public', 'type' => 'string', 'example' => 'your-token', 'backendName' => 'token'],
],
],
'GitlabEventPayload' => [
'title' => 'A short description of struct',
'description' => 'Gitlab流水线触发事件消息体',
'visibility' => 'Public',
'type' => 'object',
'properties' => [
'originalPayload' => ['title' => 'gitlab事件原始消息体', 'description' => 'gitlab事件原始消息体', 'visibility' => 'Public', 'type' => 'string', 'format' => 'byte', 'example' => '{'."\n"
.' "object_kind": "push",'."\n"
.' "event_name": "push",'."\n"
.' "before": "a08b7d82ceaabc27394f526f35c22ff581a18a39",'."\n"
.' "after": "787ef6aa092e4b9ed30fe29c7fc5c9cf4ac194d8",'."\n"
.' "ref": "refs/heads/main",'."\n"
.' "checkout_sha": "787ef6aa092e4b9ed30fe29c7fc5c9cf4ac194d8",'."\n"
.' "commits": ['."\n"
.' {'."\n"
.' "id": "787ef6aa092e4b9ed30fe29c7fc5c9cf4ac194d8",'."\n"
.' "message": "my message",'."\n"
.' "title": "my message"'."\n"
.' }'."\n"
.' ]'."\n"
.'}'."\n"
.'-- 必须使用原始的gitlab发出的webhook事件', 'backendName' => 'originalPayload'],
],
],
'Installation' => [
'title' => '账号绑定流程',
'description' => '指导用户完成OAuth授权流程',
'visibility' => 'Public',
'type' => 'object',
'properties' => [
'stage' => ['title' => '账号绑定流程的当前阶段,包括:pending、finished、invalid', 'description' => '账号绑定流程的当前阶段,包括:pending、finished、invalid', 'visibility' => 'Public', 'type' => 'string', 'example' => 'finished', 'backendName' => 'stage'],
'message' => ['title' => '账号绑定流程的指导信息,提示您如何完成账号绑定', 'description' => '账号绑定流程的指导信息,提示您如何完成账号绑定', 'visibility' => 'Public', 'type' => 'string', 'example' => 'Please click \'actionUri\' to complete the OAuth authorization process', 'backendName' => 'message'],
'actionUri' => ['title' => '完成账号绑定流程的当前步骤所需的链接', 'description' => '完成账号绑定流程的当前步骤所需的链接', 'visibility' => 'Public', 'type' => 'string', 'example' => 'https://github.com/login/oauth/authorize?client_id=86059a1b2bb20d3e5fc3&scope=repo,repo:status,delete_repo', 'backendName' => 'actionUri'],
],
],
'ManualEventPayload' => [
'title' => 'A short description of struct',
'description' => '手动触发流水线事件消息体',
'visibility' => 'Public',
'type' => 'object',
'properties' => [
'commitID' => ['title' => '本次触发的commitID', 'description' => '本次触发的commitID', 'visibility' => 'Public', 'type' => 'string', 'example' => '090e797efdabd2347b93b1cf331a9a3009df05c8', 'backendName' => 'commitID'],
'branch' => ['title' => '本次触发的分支名称', 'description' => '本次触发的分支名称', 'visibility' => 'Public', 'type' => 'string', 'example' => 'master', 'backendName' => 'branch'],
'tag' => ['title' => '本次触发的tag名称', 'description' => '本次触发的tag名称', 'visibility' => 'Public', 'type' => 'string', 'example' => 'prod-v1', 'backendName' => 'tag'],
'templateConfig' => ['title' => '本次触发的模板信息,比Git触发优先级更高', 'description' => '本次触发的模板信息,比Git触发优先级更高', 'visibility' => 'Public', 'backendName' => 'templateConfig', '$ref' => '#/components/schemas/TemplateConfig'],
],
],
'MCPGatewayConfig' => [
'title' => 'MCP Gateway配置详情',
'type' => 'object',
'properties' => [
'routes' => [
'title' => '路由配置',
'type' => 'array',
'items' => [
'type' => 'object',
'properties' => [
'backends' => [
'title' => '后端配置',
'type' => 'array',
'items' => [
'type' => 'object',
'properties' => [
'name' => [
'title' => '后端名称',
'type' => 'string',
'enum' => ['MCP', 'OpenAPI', 'Toolset'],
],
'type' => [
'title' => '后端类型',
'type' => 'string',
'enum' => ['OpenAPI', 'MCP', 'Toolset'],
],
'details' => [
'title' => '后端配置详情',
'type' => 'object',
'properties' => [
'mcpInstallation' => ['title' => 'MCP服务器安装配置', '$ref' => '#/components/schemas/MCPServerInstallationConfig'],
'toolsetSelector' => [
'title' => '工具集选择器',
'type' => 'object',
'properties' => [
'toolsetName' => ['title' => '工具集名称', 'type' => 'string'],
'toolName' => ['title' => '工具名称', 'type' => 'string'],
],
],
'openAPISchema' => ['title' => 'OpenAPI schema配置', 'type' => 'string'],
],
],
],
],
],
'policies' => [
'title' => '策略配置',
'type' => 'object',
'properties' => [
'authorization' => ['title' => '第三方鉴权配置', '$ref' => '#/components/schemas/Authorization'],
],
],
],
],
],
],
],
'OAuthCredential' => [
'title' => '身份绑定凭证',
'description' => 'The OAuth credential.',
'type' => 'object',
'properties' => [
'token' => ['title' => '代码托管平台访问凭证,开发平台使用该凭证访问第三方代码托管平台', 'description' => 'An access credential for a third-party code hosting platform.', 'type' => 'string', 'required' => true, 'example' => '4e84246b6b3962cd3d207aad1ea2f911', 'visibility' => 'Public', 'backendName' => 'token'],
'type' => ['title' => '凭证的类型', 'description' => 'The type of the credential.', 'type' => 'string', 'example' => 'bearer', 'visibility' => 'Public', 'backendName' => 'type'],
'scope' => ['title' => '凭证包含的权限范围', 'description' => 'The permissions granted by the credential.', 'type' => 'string', 'example' => 'user_info projects pull_requests hook gists emails', 'visibility' => 'Public', 'backendName' => 'scope'],
'expiration' => ['title' => '凭证到期时间,时间戳形式,-1表示永久有效', 'description' => 'The credential\'s expiration time, specified as a Unix timestamp. A value of -1 means the credential never expires.', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '1716263324603', 'visibility' => 'Public', 'backendName' => 'expiration'],
'createdTime' => ['title' => '凭证生成时间,时间戳形式', 'description' => 'The credential\'s creation time, specified as a Unix timestamp.', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '1716176924603', 'visibility' => 'Public', 'backendName' => 'createdTime'],
'refreshToken' => ['title' => '刷新凭证时所需的信息', 'description' => 'Used to obtain a new access credential.', 'type' => 'string', 'example' => '4d77bfae284770d94ebeed6b0199ebfd65e3943ba4f1e44dc36d792a93ba0d13', 'visibility' => 'Public', 'backendName' => 'refreshToken'],
],
'example' => '',
'visibility' => 'Public',
],
'Pipeline' => [
'title' => 'A short description of struct',
'description' => 'A Pipeline resource.',
'type' => 'object',
'properties' => [
'spec' => ['description' => 'Specifies the desired state of the Pipeline.', '$ref' => '#/components/schemas/PipelineSpec', 'title' => '', 'example' => '', 'visibility' => 'Public', 'backendName' => 'spec'],
'status' => ['description' => 'The observed, read-only state of the Pipeline, populated by the system.', '$ref' => '#/components/schemas/PipelineStatus', 'title' => '', 'example' => '', 'visibility' => 'Public', 'backendName' => 'status'],
'uid' => ['title' => '当前阿里云主账号的ID,只读', 'description' => 'The read-only ID of the Alibaba Cloud account that owns the resource.', 'type' => 'string', 'required' => false, 'example' => '1455541096***548', 'visibility' => 'Public', 'backendName' => 'uid'],
'generation' => ['title' => '当前配置的自增的序列号,由系统填充,只读。当spec更新时递增', 'description' => 'A read-only sequence number representing a specific generation of the desired state. The system increments this value each time the `spec` field is updated.', 'type' => 'integer', 'format' => 'int32', 'example' => '1', 'visibility' => 'Public', 'backendName' => 'generation'],
'description' => ['title' => '流水线描述信息', 'description' => 'A human-readable description of the Pipeline.', 'type' => 'string', 'example' => 'Pipeline example.', 'visibility' => 'Public', 'backendName' => 'description'],
'kind' => ['title' => '当前资源的名称,只读', 'description' => 'The read-only type of the resource.', 'type' => 'string', 'example' => 'Pipeline', 'visibility' => 'Public', 'backendName' => 'kind'],
'createdTime' => ['title' => '表示创建此对象时服务器的时间,只读', 'description' => 'A read-only, server-generated timestamp indicating when the resource was created.', 'type' => 'string', 'example' => '2021-11-19T09:34:38Z', 'visibility' => 'Public', 'backendName' => 'createdTime'],
'name' => ['title' => '当前资源的名称。它需要是唯一的,且无法变更', 'description' => 'The unique, immutable name of the resource.', 'type' => 'string', 'required' => true, 'example' => 'my-pipeline', 'maxLength' => 40, 'minLength' => 1, 'pattern' => '[a-z](?!-)[a-z0-9-]{1,40}(?<!-)', 'visibility' => 'Public', 'backendName' => 'name'],
'labels' => [
'title' => '资源的标签',
'description' => 'Key-value pairs used to organize and select resources.',
'type' => 'object',
'additionalProperties' => ['description' => 'The value of a label key.', 'type' => 'string', 'example' => 'value to the label key.', 'title' => '', 'visibility' => 'Public'],
'example' => '',
'visibility' => 'Public',
'backendName' => 'labels',
],
'resourceVersion' => ['title' => '当前状态的自增的序列号,由系统填充,只读。当资源更新时递增', 'description' => 'A read-only, monotonically increasing sequence number for the current state. The system increments this value each time the resource is updated.', 'type' => 'integer', 'format' => 'int32', 'example' => '1', 'visibility' => 'Public', 'backendName' => 'resourceVersion'],
],
'example' => '',
'visibility' => 'Public',
],
'PipelineSpec' => [
'title' => '',
'description' => 'The pipeline configuration.',
'type' => 'object',
'properties' => [
'templateName' => ['title' => '', 'description' => 'The name of the pipeline template.', 'type' => 'string', 'example' => 'my-pipeline-template', 'visibility' => 'Public', 'backendName' => 'templateName'],
'context' => ['title' => '', 'description' => 'The execution context of the pipeline.', '$ref' => '#/components/schemas/Context', 'example' => '', 'visibility' => 'Public', 'backendName' => 'context'],
'templateSpec' => ['title' => '', 'description' => 'The description of the pipeline execution flow. This parameter takes priority over templateName. When this parameter is specified, you do not need to create a PipelineTemplate in advance for pipeline execution.', '$ref' => '#/components/schemas/PipelineTemplateSpec', 'example' => '', 'visibility' => 'Public', 'backendName' => 'templateSpec'],
],
'example' => '',
'visibility' => 'Public',
],
'PipelineStatus' => [
'title' => 'A short description of struct',
'description' => 'Indicates the execution status of a pipeline.',
'type' => 'object',
'properties' => [
'phase' => ['title' => '当前流水线执行的阶段', 'description' => 'The pipeline\'s current phase.', 'type' => 'string', 'example' => 'Success', 'visibility' => 'Public', 'backendName' => 'phase'],
'latestExecError' => ['title' => '流水线出现的最近一次任务异常', 'description' => 'Details about the latest task execution error.', '$ref' => '#/components/schemas/TaskExecError', 'example' => '', 'visibility' => 'Public', 'backendName' => 'latestExecError'],
],
'example' => '',
'visibility' => 'Public',
],
'PipelineTemplate' => [
'title' => 'A short description of struct',
'description' => 'A Pipeline Template.',
'type' => 'object',
'properties' => [
'uid' => ['title' => '当前阿里云主账号的ID,只读', 'description' => 'The ID of the Alibaba Cloud Account. Read-only.', 'type' => 'string', 'required' => false, 'example' => '1455541096***548', 'visibility' => 'Public', 'backendName' => 'uid'],
'generation' => ['title' => '当前配置的自增的序列号,由系统填充,只读。当spec更新时递增', 'description' => 'A system-populated Sequence Number that is incremented each time the `spec` is updated. Read-only.', 'type' => 'integer', 'format' => 'int32', 'example' => '1', 'visibility' => 'Public', 'backendName' => 'generation'],
'description' => ['title' => '流水线模板描述信息', 'description' => 'The description of the Pipeline Template.', 'type' => 'string', 'example' => 'PipelineTemplate example.', 'visibility' => 'Public', 'backendName' => 'description'],
'kind' => ['title' => '当前资源的名称,只读', 'description' => 'The Resource type. This value is always `PipelineTemplate`. Read-only.', 'type' => 'string', 'example' => 'PipelineTemplate', 'visibility' => 'Public', 'backendName' => 'kind'],
'createdTime' => ['title' => '表示创建此对象时服务器的时间,只读', 'description' => 'The server time when this Resource was created. Read-only.', 'type' => 'string', 'example' => '2021-11-19T09:34:38Z', 'visibility' => 'Public', 'backendName' => 'createdTime'],
'name' => ['title' => '当前资源的名称。它需要是唯一的,且无法变更', 'description' => 'The unique and immutable name of the Resource.', 'type' => 'string', 'required' => true, 'example' => 'my-pipeline-template', 'maxLength' => 40, 'minLength' => 1, 'pattern' => '[a-z](?!-)[a-z0-9-]{1,40}(?<!-)', 'visibility' => 'Public', 'backendName' => 'name'],
'deletionTime' => ['title' => '资源删除时间,只读', 'description' => 'The deletion timestamp for the Resource. Read-only.', 'type' => 'string', 'example' => '2021-11-19T09:34:38Z', 'visibility' => 'Public', 'backendName' => 'deletionTime'],
'spec' => ['description' => 'The Specification of the Pipeline Template.', '$ref' => '#/components/schemas/PipelineTemplateSpec', 'title' => '', 'example' => '', 'visibility' => 'Public', 'backendName' => 'spec'],
'labels' => [
'title' => '资源的标签',
'description' => 'Key-value pairs attached to the Resource.',
'type' => 'object',
'additionalProperties' => ['description' => 'The value of the Label.', 'type' => 'string', 'example' => 'value to the label key.', 'title' => '', 'visibility' => 'Public'],
'example' => '',
'visibility' => 'Public',
'backendName' => 'labels',
],
'resourceVersion' => ['title' => '当前状态的自增的序列号,由系统填充,只读。当资源更新时递增', 'description' => 'A system-populated Sequence Number that tracks the current state of the Resource and is incremented with each update. Read-only.', 'type' => 'integer', 'format' => 'int32', 'example' => '1', 'visibility' => 'Public', 'backendName' => 'resourceVersion'],
],
'example' => '',
'visibility' => 'Public',
],
'PipelineTemplateSpec' => [
'title' => 'A short description of struct',
'description' => 'The pipeline template configuration.',
'type' => 'object',
'properties' => [
'context' => ['title' => '流水线的执行上下文', 'description' => 'The pipeline\'s execution context.', '$ref' => '#/components/schemas/Context', 'example' => '', 'visibility' => 'Public', 'backendName' => 'context'],
'tasks' => [
'title' => '任务执行列表',
'description' => 'The tasks to execute.',
'type' => 'array',
'items' => ['description' => 'A task execution configuration.', '$ref' => '#/components/schemas/TaskExec', 'title' => '', 'example' => '', 'visibility' => 'Public', 'extendType' => 'true'],
'example' => '',
'visibility' => 'Public',
'backendName' => 'tasks',
],
],
'example' => '',
'visibility' => 'Public',
],
'PipelineTrigger' => [
'title' => '流水线触发器',
'description' => '描述git事件触发流水线的规则',
'visibility' => 'Public',
'type' => 'object',
'properties' => [
'uid' => ['title' => '当前阿里云主账号的ID,只读', 'description' => '当前阿里云主账号的ID,只读', 'visibility' => 'Public', 'type' => 'string', 'required' => false, 'example' => '1455541096***548', 'backendName' => 'uid'],
'generation' => ['title' => '当前配置的自增的序列号,由系统填充,只读。当spec更新时递增', 'description' => '当前配置的自增的序列号,由系统填充,只读。当spec更新时递增', 'visibility' => 'Public', 'type' => 'integer', 'format' => 'int32', 'example' => '1', 'backendName' => 'generation'],
'description' => ['title' => '流水线触发器描述信息', 'description' => '流水线触发器描述信息', 'visibility' => 'Public', 'type' => 'string', 'example' => 'PipelineTrigger example.', 'backendName' => 'description'],
'kind' => ['title' => '当前资源的名称,只读', 'description' => '当前资源的名称,只读', 'visibility' => 'Public', 'type' => 'string', 'example' => 'PipelineTrigger', 'backendName' => 'kind'],
'createdTime' => ['title' => '表示创建此对象时服务器的时间,只读', 'description' => '表示创建此对象时服务器的时间,只读', 'visibility' => 'Public', 'type' => 'string', 'example' => '2021-11-19T09:34:38Z', 'backendName' => 'createdTime'],
'name' => ['title' => '当前资源的名称。在项目中,它需要是唯一的,且无法变更', 'description' => '当前资源的名称。在项目中,它需要是唯一的,且无法变更', 'visibility' => 'Public', 'type' => 'string', 'required' => true, 'example' => 'my-pipeline-trigger', 'maxLength' => 63, 'minLength' => 1, 'pattern' => '^(?![0-9]+$)(?!-)[a-zA-Z0-9-_]{0,63}(?<!-)$', 'backendName' => 'name'],
'spec' => ['description' => '流水线触发器配置', 'visibility' => 'Public', 'backendName' => 'spec', '$ref' => '#/components/schemas/PipelineTriggerSpec'],
'labels' => [
'title' => '资源的标签',
'description' => '资源的标签',
'visibility' => 'Public',
'type' => 'object',
'additionalProperties' => ['description' => '标签', 'visibility' => 'Public', 'type' => 'string', 'example' => 'value to the label key.'],
'backendName' => 'labels',
],
'resourceVersion' => ['title' => '当前状态的自增的序列号,由系统填充,只读。当资源更新时递增', 'description' => '当前状态的自增的序列号,由系统填充,只读。当资源更新时递增', 'visibility' => 'Public', 'type' => 'integer', 'format' => 'int32', 'example' => '1', 'backendName' => 'resourceVersion'],
],
],
'PipelineTriggerEvent' => [
'title' => '流水线触发器触发事件',
'description' => '记录触发器触发事件',
'visibility' => 'Public',
'type' => 'object',
'properties' => [
'uid' => ['title' => '当前阿里云主账号的ID,只读', 'description' => '当前阿里云主账号的ID,只读', 'visibility' => 'Public', 'type' => 'string', 'required' => false, 'example' => '1455541096***548', 'backendName' => 'uid'],
'generation' => ['title' => '当前配置的自增的序列号,由系统填充,只读。当spec更新时递增', 'description' => '当前配置的自增的序列号,由系统填充,只读。当spec更新时递增', 'visibility' => 'Public', 'type' => 'integer', 'format' => 'int32', 'example' => '1', 'backendName' => 'generation'],
'description' => ['title' => '流水线触发器触发事件的描述信息', 'description' => '流水线触发器触发事件的描述信息', 'visibility' => 'Public', 'type' => 'string', 'example' => 'PipelineTriggerEvent example.', 'backendName' => 'description'],
'kind' => ['title' => '当前资源的名称,只读', 'description' => '当前资源的名称,只读', 'visibility' => 'Public', 'type' => 'string', 'example' => 'PipelineTriggerEvent', 'backendName' => 'kind'],
'createdTime' => ['title' => '表示创建此对象时服务器的时间,只读', 'description' => '表示创建此对象时服务器的时间,只读', 'visibility' => 'Public', 'type' => 'string', 'example' => '2021-11-19T09:34:38Z', 'backendName' => 'createdTime'],
'name' => ['title' => '当前资源的名称。在项目中,它需要是唯一的,且无法变更', 'description' => '当前资源的名称。在项目中,它需要是唯一的,且无法变更', 'visibility' => 'Public', 'type' => 'string', 'required' => true, 'example' => 'my-pipeline-trigger', 'maxLength' => 63, 'minLength' => 1, 'pattern' => '^(?![0-9]+$)(?!-)[a-zA-Z0-9-_]{0,63}(?<!-)$', 'backendName' => 'name'],
'status' => ['title' => '触发器触发记录的状态', 'description' => '触发器触发记录的状态', 'visibility' => 'Public', 'backendName' => 'status', '$ref' => '#/components/schemas/PipelineTriggerEventStatus'],
'labels' => [
'title' => '资源的标签',
'description' => '资源的标签',
'visibility' => 'Public',
'type' => 'object',
'additionalProperties' => ['description' => '标签', 'visibility' => 'Public', 'type' => 'string', 'example' => 'value to the label key.'],
'backendName' => 'labels',
],
'resourceVersion' => ['title' => '当前状态的自增的序列号,由系统填充,只读。当资源更新时递增', 'description' => '当前状态的自增的序列号,由系统填充,只读。当资源更新时递增', 'visibility' => 'Public', 'type' => 'integer', 'format' => 'int32', 'example' => '1', 'backendName' => 'resourceVersion'],
'spec' => ['description' => '流水线触发配置', 'visibility' => 'Public', 'backendName' => 'spec', '$ref' => '#/components/schemas/PipelineTriggerEventSpec'],
],
],
'PipelineTriggerEventSpec' => [
'title' => 'A short description of struct',
'description' => '流水线触发事件详情',
'visibility' => 'Public',
'type' => 'object',
'properties' => [
'payload' => ['description' => '流水线触发事件消息体', 'visibility' => 'Public', 'backendName' => 'payload', '$ref' => '#/components/schemas/EventPayload'],
'triggerName' => ['title' => '触发器名称', 'description' => '触发器名称', 'visibility' => 'Public', 'type' => 'string', 'example' => 'my-pipeline-trigger', 'backendName' => 'triggerName'],
],
],
'PipelineTriggerEventStatus' => [
'title' => '流水线触发器触发历史记录状态',
'description' => '流水线触发器触发历史记录状态',
'visibility' => 'Public',
'type' => 'object',
'properties' => [
'status' => ['title' => '触发器触发记录的状态', 'description' => '触发器触发记录的状态', 'visibility' => 'Public', 'type' => 'string', 'example' => 'Skipped,Fired,Running,Failed,Success', 'backendName' => 'status'],
'firedPipelineName' => ['title' => '触发器触发记录的流水线名称', 'description' => '触发器触发记录的流水线名称', 'visibility' => 'Public', 'type' => 'string', 'example' => 'my-pipeline', 'backendName' => 'firedPipelineName'],
'releaseDetail' => ['title' => '发布详情', 'description' => '发布详情', 'visibility' => 'Public', 'backendName' => 'releaseDetail', '$ref' => '#/components/schemas/ReleaseDetail'],
'errorMessage' => ['title' => '触发器触发的异常信息', 'description' => '触发器触发的异常信息', 'visibility' => 'Public', 'type' => 'string', 'example' => 'failed to create and start pipeline, error=message', 'backendName' => 'errorMessage'],
],
],
'PipelineTriggerSpec' => [
'title' => '流水线触发器配置',
'description' => '描述触发器的触发规则与运行的流水线',
'visibility' => 'Public',
'type' => 'object',
'properties' => [
'eventFilter' => ['title' => '事件过滤配置,只有满足条件的事件才可以触发流水线', 'description' => '事件过滤配置,只有满足条件的事件才可以触发流水线', 'visibility' => 'Public', 'required' => true, 'backendName' => 'eventFilter', '$ref' => '#/components/schemas/EventFilterConfig'],
'runPipeline' => ['title' => '触发流水线执行配置', 'description' => '触发流水线执行配置', 'visibility' => 'Public', 'backendName' => 'runPipeline', '$ref' => '#/components/schemas/RunPipelineConfig'],
],
],
'Project' => [
'title' => '项目',
'description' => 'A container for organizing your resources.',
'type' => 'object',
'properties' => [
'uid' => ['title' => '当前阿里云主账号的ID,只读', 'description' => 'The ID of the Alibaba Cloud master account. Read-only.', 'type' => 'string', 'required' => false, 'example' => '1455541096***548', 'visibility' => 'Public', 'backendName' => 'uid'],
'kind' => ['title' => '当前资源的名称,只读', 'description' => 'The type of the resource. Read-only.', 'type' => 'string', 'example' => 'Project', 'visibility' => 'Public', 'backendName' => 'kind'],
'createdTime' => ['title' => '表示创建此对象时服务器的时间,只读', 'description' => 'The timestamp generated by the server when the resource was created. Read-only.', 'type' => 'string', 'example' => '2021-11-19T09:34:38Z', 'visibility' => 'Public', 'backendName' => 'createdTime'],
'name' => ['title' => '当前资源的名称。它需要是唯一的,且无法变更', 'description' => 'The name of the resource. The name must be unique and cannot be changed after creation.', 'type' => 'string', 'required' => true, 'example' => 'my-project', 'maxLength' => 40, 'minLength' => 1, 'pattern' => '[a-z](?!-)[a-z0-9-]{1,40}(?<!-)', 'visibility' => 'Public', 'backendName' => 'name'],
'labels' => [
'title' => '资源的标签',
'description' => 'Key-value pairs for organizing and categorizing resources.',
'type' => 'object',
'additionalProperties' => ['type' => 'string', 'example' => 'key=value', 'description' => '', 'title' => '', 'visibility' => 'Public'],
'example' => '',
'visibility' => 'Public',
'backendName' => 'labels',
],
'description' => ['title' => '描述信息', 'description' => 'A user-provided description of the resource.', 'type' => 'string', 'example' => 'test-description', 'visibility' => 'Public', 'backendName' => 'description'],
'status' => ['title' => '', 'description' => '', '$ref' => '#/components/schemas/ProjectStatus', 'example' => '', 'visibility' => 'Public', 'backendName' => 'status'],
],
'example' => '',
'visibility' => 'Public',
],
'ProjectSpec' => [
'title' => '项目配置',
'description' => 'Configuration for one-click deployments.',
'type' => 'object',
'properties' => [],
'example' => '',
'visibility' => 'Public',
],
'ProjectStatus' => [
'title' => '项目状态',
'description' => 'One-click deployment configuration.',
'type' => 'object',
'properties' => [
'services' => [
'title' => '项目下的服务列表',
'description' => 'A list of services in the project.',
'type' => 'array',
'items' => ['description' => '', 'title' => '', 'example' => '', '$ref' => '#/components/schemas/ServiceMeta', 'visibility' => 'Public', 'extendType' => 'true'],
'example' => '',
'visibility' => 'Public',
'backendName' => 'services',
],
],
'example' => '',
'visibility' => 'Public',
],
'PublishTaskSpec' => [
'type' => 'object',
'properties' => [
'type' => ['type' => 'string'],
'options' => [
'type' => 'object',
'properties' => [
'autoSave' => ['type' => 'boolean'],
],
],
'rawResourceConfig' => [
'type' => 'object',
'additionalProperties' => ['type' => 'any'],
],
],
],
'PublishTaskStatus' => [
'type' => 'object',
'properties' => [
'phase' => ['type' => 'string'],
'phases' => [
'type' => 'object',
'additionalProperties' => [
'type' => 'object',
'properties' => [
'attempts' => ['type' => 'integer', 'format' => 'int32'],
'status' => ['type' => 'string'],
'startTime' => ['type' => 'string'],
'finishTime' => ['type' => 'string'],
'details' => [
'type' => 'object',
'additionalProperties' => ['type' => 'any'],
],
'error' => [
'type' => 'object',
'properties' => [
'message' => ['type' => 'string'],
'code' => ['type' => 'string'],
],
],
],
],
],
],
],
'PullRequestFilter' => [
'title' => 'PR或MR事件过滤配置',
'description' => 'PR或MR事件过滤配置',
'visibility' => 'Public',
'type' => 'object',
'properties' => [
'sourceBranch' => ['title' => 'PR或MR的来源分支名称正则表达式,不填则表示所有分支', 'description' => 'PR或MR的来源分支名称正则表达式,不填则表示所有分支', 'visibility' => 'Public', 'type' => 'string', 'required' => false, 'example' => 'feature-.*', 'backendName' => 'sourceBranch'],
'targetBranch' => ['title' => 'PR或MR的目标分支名称正则表达式,不填则表示所有分支', 'description' => 'PR或MR的目标分支名称正则表达式,不填则表示所有分支', 'visibility' => 'Public', 'type' => 'string', 'required' => false, 'example' => 'master', 'backendName' => 'targetBranch'],
'types' => [
'title' => 'PR或MR的类型,为空则表示所有类型。TODO:场景类型',
'description' => 'PR或MR的类型,为空则表示所有类型。',
'visibility' => 'Public',
'type' => 'array',
'items' => ['description' => '可枚举的类型。包括:(opened、closed、merged、reopened、updated)', 'visibility' => 'Public', 'type' => 'string', 'example' => 'opened', 'extendType' => 'true'],
'backendName' => 'types',
],
],
],
'PushFilter' => [
'title' => '推送事件过滤配置',
'description' => '推送事件过滤配置',
'visibility' => 'Public',
'type' => 'object',
'properties' => [
'branch' => ['title' => '推送的分支名称正则表达式', 'description' => '推送的分支名称正则表达式', 'visibility' => 'Public', 'type' => 'string', 'required' => false, 'example' => 'master', 'backendName' => 'branch'],
'tag' => ['title' => '推送的tag名称正则表达式', 'description' => '推送的tag名称正则表达式', 'visibility' => 'Public', 'type' => 'string', 'required' => false, 'example' => 'prod-.*', 'backendName' => 'tag'],
],
],
'ReleaseDetail' => [
'title' => '流水线发布结果详情',
'description' => '流水线发布结果的详情',
'visibility' => 'Public',
'type' => 'object',
'properties' => [
'pipelineTriggerEventName' => ['title' => '本次发布对应的流水线触发事件名称', 'description' => '本次发布对应的流水线触发事件名称', 'visibility' => 'Public', 'type' => 'string', 'example' => 'p-codeup-1714271977972-pa4w', 'backendName' => 'pipelineTriggerEventName'],
'bizStatus' => ['title' => '本次发布的状态,受流水线与流水线任务执行状态影响。包括的状态以及含义如下: Running: 部署中 HangUp: 挂起等待审批中 Finished: 部署完成 Failed: 部署失败 Canceled: 已取消', 'description' => '本次发布的状态,受流水线与流水线任务执行状态影响。包括的状态以及含义如下: Running: 部署中 HangUp: 挂起等待审批中 Finished: 部署完成 Failed: 部署失败 Canceled: 已取消', 'visibility' => 'Public', 'type' => 'string', 'example' => 'Running', 'backendName' => 'bizStatus'],
'pipelineName' => ['title' => '本次发布对应的流水线名称', 'description' => '本次发布对应的流水线名称', 'visibility' => 'Public', 'type' => 'string', 'example' => 'p-1704952599751-wUOczb', 'backendName' => 'pipelineName'],
'templateConfigSnapshot' => ['title' => '本次发布所使用的模板配置快照。只有关联模板的项目存在该字段', 'description' => '本次发布所使用的模板配置快照。只有关联模板的项目存在该字段', 'visibility' => 'Public', 'backendName' => 'templateConfigSnapshot', '$ref' => '#/components/schemas/TemplateConfig'],
'releaseOutputs' => ['title' => '本次发布的输出结果。包含本次发布的资源信息等', 'description' => '本次发布的输出结果。包含本次发布的资源信息等', 'visibility' => 'Public', 'type' => 'object', 'example' => '{"framework":{"region":"cn-hangzhou","service":{"serviceName":"web-framework","description":"Serverless Devs Web Framework Service","role":"","logConfig":{"project":"","logstore":"","enableRequestMetrics":false,"enableInstanceMetrics":false,"logBeginRule":"None"},"serviceId":"4c9d0e79-16b8-4951-a6b8-169d2037d217","createdTime":"2021-12-07T09:24:08Z","lastModifiedTime":"2022-04-09T09:16:51Z","vpcConfig":{"vpcId":"","vSwitchIds":[],"securityGroupId":"","role":""},"internetAccess":true,"nasConfig":{"userId":-1,"groupId":-1,"mountPoints":[]},"tracingConfig":{},"name":"web-framework"},"function":{"functionId":"e81904f0-24d0-45df-bb53-06da64d01395","functionName":"todolist","description":"Serverless Devs Web Framework Function","runtime":"nodejs12","handler":"index.handler","timeout":60,"initializer":"","initializationTimeout":3,"codeSize":1757093,"codeChecksum":"7185648203525194222","memorySize":256,"environmentVariables":{},"createdTime":"2022-03-15T15:36:22Z","lastModifiedTime":"2022-04-09T09:16:50Z","instanceConcurrency":1,"instanceType":"e1","instanceLifecycleConfig":{"preFreeze":{"handler":"","timeout":3},"preStop":{"handler":"","timeout":3}},"name":"todolist"},"triggers":[{"triggerName":"httpTrigger","description":"","triggerId":"7f2373ce-df1a-4013-b4e5-899989d9b27e","triggerType":"http","triggerConfig":{"methods":["GET","POST"],"authType":"anonymous"},"createdTime":"2022-03-15T15:36:23Z","lastModifiedTime":"2022-04-09T09:16:51Z","name":"httpTrigger"}],"customDomains":[{"domainName":"todolist.web-framework.1835799444022432.cn-hangzhou.fc.devsapp.net","accountId":"1835799444022432","protocol":"HTTP","certConfig":{},"tlsConfig":{},"apiVersion":"2016-08-15","routeConfig":{"routes":[{"path":"/*","serviceName":"web-framework","functionName":"todolist","methods":["GET","POST"]}]},"createdTime":"2022-03-15T15:36:28Z","lastModifiedTime":"2022-04-09T09:17:00Z"}]}}', 'backendName' => 'releaseOutputs'],
'finishedTime' => ['title' => '本次发布的完成时间', 'description' => '本次发布的完成时间', 'visibility' => 'Public', 'type' => 'string', 'example' => '2021-11-19T09:34:38Z', 'backendName' => 'finishedTime'],
'repositorySnapshot' => ['title' => '本次发布所使用的仓库配置快照。只有关联仓库的项目存在该字段', 'description' => '本次发布所使用的仓库配置快照。只有关联仓库的项目存在该字段', 'visibility' => 'Public', 'backendName' => 'repositorySnapshot', '$ref' => '#/components/schemas/RepositorySpec'],
'gitEventSnapshot' => ['title' => '本次发布的Git事件快照。只有关联仓库的项目存在该字段', 'description' => '本次发布的Git事件快照。只有关联仓库的项目存在该字段', 'visibility' => 'Public', 'backendName' => 'gitEventSnapshot', '$ref' => '#/components/schemas/GitEventSnapshot'],
'message' => ['title' => '本次发布的信息', 'description' => '本次发布的信息', 'visibility' => 'Public', 'type' => 'string', 'example' => 'Triggered manually.', 'backendName' => 'message'],
'latestTaskExecError' => ['title' => '本次发布过程中,最近一次流水线任务执行失败的详情信息', 'description' => '本次发布过程中,最近一次流水线任务执行失败的详情信息', 'visibility' => 'Public', 'backendName' => 'latestTaskExecError', '$ref' => '#/components/schemas/TaskExecError'],
'envName' => ['title' => '本次发布对应的环境名', 'description' => '本次发布对应的环境名', 'visibility' => 'Public', 'type' => 'string', 'example' => 'dev', 'backendName' => 'envName'],
],
],
'Repository' => [
'title' => '仓库绑定',
'description' => 'The metadata of the repository.',
'type' => 'object',
'properties' => [
'uid' => ['title' => '当前阿里云主账号的ID,只读', 'description' => 'The read-only ID of the Alibaba Cloud main account.', 'type' => 'string', 'required' => false, 'example' => '1455541096***548', 'visibility' => 'Public', 'backendName' => 'uid'],
'kind' => ['title' => '当前资源的名称,只读', 'description' => 'The read-only type of the resource.', 'type' => 'string', 'example' => 'Repository', 'visibility' => 'Public', 'backendName' => 'kind'],
'createdTime' => ['title' => '表示创建此对象时服务器的时间,只读', 'description' => 'The read-only, server-generated timestamp that indicates when the resource was created.', 'type' => 'string', 'example' => '2021-11-19T09:34:38Z', 'visibility' => 'Public', 'backendName' => 'createdTime'],
'name' => ['title' => '当前资源的名称。它需要是唯一的,且无法变更', 'description' => 'The unique name of the repository. It cannot be changed after creation.', 'type' => 'string', 'required' => true, 'example' => 'my-repository', 'maxLength' => 40, 'minLength' => 1, 'pattern' => '[a-z](?!-)[a-z0-9-]{1,40}(?<!-)', 'visibility' => 'Public', 'backendName' => 'name'],
'spec' => ['title' => '仓库绑定配置', 'description' => 'The configuration details for the repository.', 'required' => true, '$ref' => '#/components/schemas/RepositorySpec', 'example' => '', 'visibility' => 'Public', 'backendName' => 'spec'],
'labels' => [
'title' => '资源的标签',
'description' => 'The labels attached to the resource, formatted as key-value pairs.',
'type' => 'object',
'additionalProperties' => ['type' => 'string', 'example' => 'key=value', 'description' => '', 'title' => '', 'visibility' => 'Public'],
'example' => '',
'visibility' => 'Public',
'backendName' => 'labels',
],
'description' => ['title' => '描述信息', 'description' => 'The description of the repository.', 'type' => 'string', 'example' => 'test-description', 'visibility' => 'Public', 'backendName' => 'description'],
],
'example' => '',
'visibility' => 'Public',
],
'RepositoryConfig' => [
'title' => 'A short description of struct',
'description' => '代码仓库配置',
'visibility' => 'Public',
'type' => 'object',
'properties' => [
'repositoryName' => ['title' => '关联的开发平台侧代码仓库实体的名称', 'description' => '关联的开发平台侧代码仓库实体的名称', 'visibility' => 'Public', 'type' => 'string', 'required' => true, 'example' => 'my-repository', 'backendName' => 'repositoryName'],
'branchName' => ['title' => '仓库分支名', 'description' => '仓库分支名', 'visibility' => 'Public', 'type' => 'string', 'required' => true, 'example' => 'master', 'backendName' => 'branchName'],
'manifest' => ['title' => '指定资源描述文件(s.yaml)的文件名,该路径为代码仓库下的相对路径', 'description' => '指定资源描述文件(s.yaml)的文件名,该路径为代码仓库下的相对路径', 'visibility' => 'Public', 'type' => 'string', 'example' => 'src/s.yaml', 'backendName' => 'manifest'],
],
],
'RepositorySpec' => [
'title' => '仓库绑定配置',
'description' => 'The repository configuration.',
'type' => 'object',
'properties' => [
'connectionName' => ['title' => '仓库所使用的身份绑定信息。通过关联的Connection可以获取到代码托管平台账号和凭证等信息', 'description' => 'The identity binding information used by the repository. Through the associated Connection, you can obtain information such as the code hosting platform account and credentials.', 'type' => 'string', 'required' => true, 'example' => 'awesome-connection', 'visibility' => 'Public', 'backendName' => 'connectionName'],
'cloneUrl' => ['title' => '拉取仓库代码(git clone)所需的链接,支持HTTPS和SSH形式。', 'description' => 'The link required to clone the repository code (git clone), supporting both HTTPS and SSH formats.', 'type' => 'string', 'required' => true, 'example' => 'https://github.com/DDofDD/start-springboot-lfgy.git', 'visibility' => 'Public', 'backendName' => 'cloneUrl'],
'platform' => ['title' => '只读,仓库所属代码托管平台的类型,支持github、gitee、gitlab、codeup', 'description' => 'Read-only. The type of code hosting platform for the repository. Supported platforms include GitHub, Gitee, GitLab, and Codeup.', 'type' => 'string', 'example' => 'github', 'visibility' => 'Public', 'backendName' => 'platform'],
'id' => ['title' => '只读,代码托管平台中的仓库ID,平台内唯一', 'description' => 'Read-only. The repository ID in the code hosting platform, unique within the platform.', 'type' => 'integer', 'format' => 'int64', 'example' => '312649', 'visibility' => 'Public', 'backendName' => 'id'],
'owner' => ['title' => '只读,代码托管平台中仓库所属账号名或组织名', 'description' => 'Read-only. The account name or organization name to which the repository belongs in the code hosting platform.', 'type' => 'string', 'example' => 'my-org-name', 'visibility' => 'Public', 'backendName' => 'owner'],
'displayName' => ['title' => '只读,代码托管平台中的仓库名', 'description' => 'Read-only. The repository name in the code hosting platform.', 'type' => 'string', 'example' => 'my-repo-name', 'visibility' => 'Public', 'backendName' => 'displayName'],
'webUrl' => ['title' => '只读,仓库主页链接', 'description' => 'Read-only. The repository homepage link.', 'type' => 'string', 'example' => 'https://github.com/my-org-name/my-repo-name', 'visibility' => 'Public', 'backendName' => 'webUrl'],
],
'example' => '',
'visibility' => 'Public',
],
'ResourceDrift' => [
'title' => '基础设施堆栈资源漂移',
'description' => '资源漂移',
'visibility' => 'Public',
'type' => 'object',
'properties' => [
'address' => ['title' => '资源全局地址,可以唯一定位一个资源', 'description' => '资源全局地址,可以唯一定位一个资源', 'visibility' => 'Public', 'type' => 'string', 'example' => 'alicloud_fc_trigger.cn-shanghai-fc-stable-diffusion-sd', 'backendName' => 'address'],
'mode' => ['title' => '纳管方式', 'description' => '纳管方式', 'visibility' => 'Public', 'type' => 'string', 'example' => 'managed', 'backendName' => 'mode'],
'type' => ['title' => '资源类型', 'description' => '资源类型', 'visibility' => 'Public', 'type' => 'string', 'example' => 'alicloud_fc_trigger', 'backendName' => 'type'],
'name' => ['title' => '资源名称', 'description' => '资源名称', 'visibility' => 'Public', 'type' => 'string', 'example' => 'cn-shanghai-fc-stable-diffusion-sd', 'backendName' => 'name'],
'change' => [
'title' => '详细漂移结果',
'description' => '详细漂移结果',
'visibility' => 'Public',
'type' => 'object',
'properties' => [
'actions' => [
'title' => '漂移行为',
'description' => '漂移行为',
'visibility' => 'Public',
'type' => 'array',
'items' => ['visibility' => 'Public', 'type' => 'string', 'example' => 'update', 'extendType' => 'true'],
'backendName' => 'actions',
],
'before' => ['title' => '执行漂移检查之前的详情', 'description' => '执行漂移检查之前的详情', 'visibility' => 'Public', 'type' => 'any', 'example' => '{"description":"modelscope deployment","id":"fc-demo-model-scope","internet_access":true,"last_modified":"2024-04-17T13:20:56Z","log_config":[],"name":"fc-demo-model-scope","name_prefix":null,"nas_config":[{"group_id":0,"mount_points":[{"mount_dir":"/mnt/auto","server_addr":"mock-addr.cn-shanghai.nas.aliyuncs.com:/fc-demo-model-scope"}],"user_id":0}],"publish":null,"role":"acs:ram::mock-role:role/aliyunfcdefaultrole","service_id":"mock-service","tags":null,"tracing_config":[],"version":null,"vpc_config":[{"security_group_id":"sg-mock","vpc_id":"vpc-mock","vswitch_ids":["vsw-mock"]}]}', 'backendName' => 'before'],
'after' => ['title' => '执行漂移检查之后的详情', 'description' => '执行漂移检查之后的详情', 'visibility' => 'Public', 'type' => 'any', 'example' => '{"description":"mock deployment","id":"fc-demo-model-scope","internet_access":true,"last_modified":"2024-04-17T13:20:56Z","log_config":[],"name":"fc-demo-model-scope","name_prefix":null,"nas_config":[{"group_id":0,"mount_points":[{"mount_dir":"/mnt/auto","server_addr":"mock-addr.cn-shanghai.nas.aliyuncs.com:/fc-demo-model-scope"}],"user_id":0}],"publish":null,"role":"acs:ram::mock-role:role/aliyunfcdefaultrole","service_id":"mock-service","tags":null,"tracing_config":[],"version":null,"vpc_config":[{"security_group_id":"sg-mock","vpc_id":"vpc-mock","vswitch_ids":["vsw-mock"]}]}', 'backendName' => 'after'],
],
'backendName' => 'change',
],
],
],
'RunAfter' => [
'title' => '任务依赖,必须在依赖结束后执行',
'description' => 'Describe dependencies',
'visibility' => 'Public',
'type' => 'object',
'properties' => [
'name' => ['title' => '执行依赖的任务代称', 'description' => '执行依赖的任务代称', 'visibility' => 'Public', 'type' => 'string', 'example' => 'task-1', 'backendName' => 'name'],
],
],
'RunPipelineConfig' => [
'title' => '触发后运行流水线配置',
'description' => '触发后运行流水线配置',
'visibility' => 'Public',
'type' => 'object',
'properties' => [
'yamlFilePath' => ['title' => '触发流水线执行的cicd.yaml在仓库中的位置,适用于DevOps的场景。此配置拥有最高优先级,所有流水线执行相关的配置都需要在cicd.yaml文件中定义,其他流水线执行配置均不生效。如果cicd.yaml不存在,则在触发执行时会出错。', 'description' => '触发流水线执行的cicd.yaml在仓库中的位置,适用于DevOps的场景。此配置拥有最高优先级,所有流水线执行相关的配置都需要在cicd.yaml文件中定义,其他流水线执行配置均不生效。如果cicd.yaml不存在,则在触发执行时会出错。', 'visibility' => 'Public', 'type' => 'string', 'example' => 'cd.yaml', 'backendName' => 'yamlFilePath'],
'yamlFileContent' => ['title' => '触发流水线执行的cicd.yaml的内容。此配置拥有仅次于yamlFilePath的优先级。所有流水线执行相关的配置都需要在cicd.yaml文件中定义,流水线执行配置均不生效。', 'description' => '触发流水线执行的cicd.yaml的内容。此配置拥有仅次于yamlFilePath的优先级。所有流水线执行相关的配置都需要在cicd.yaml文件中定义,流水线执行配置均不生效。', 'visibility' => 'Public', 'type' => 'string', 'example' => 'kind: Pipeline'."\n"
.' # 流水线执行名称,需要全局唯一。如果流水线模板存在,则不能成功提交流水线执行'."\n"
.' # 推荐使用commitID与时间戳构造唯一的名称'."\n"
.' name: "p-<% .git.shortCommitId %>-<% .currentTimestampMs %>"'."\n"
.' # 一些任意的描述信息'."\n"
.' description: \'demo pipeline\''."\n"
.' # 添加任意的labels,用于查询过滤'."\n"
.' # 应用中心会在提交时也会添加其他labels'."\n"
.' labels:'."\n"
.' myLabel: my-cicd-example'."\n"
.' spec:'."\n"
.' context:'."\n"
.' data:'."\n"
.' appName: <% .appName %>'."\n"
.' envName: <% .envName %>'."\n"
.' deployFile: s.yaml'."\n"
.' templateSpec:'."\n"
.' # 要执行的任务,默认所有任务会一同尝试执行'."\n"
.' # 执行会满足runAfters引入的先后约束,任务必须在runAfters声明的任务执行完毕后才可以被执行'."\n"
.' # 用户可以使用此特性,达到DAG描述的效果'."\n"
.' tasks:'."\n"
.' # 构建前检查'."\n"
.' - name: pre-check'."\n"
.' context:'."\n"
.' data:'."\n"
.' displayName: "前置检查"'."\n"
.' # 打开任务执行,默认是关闭的'."\n"
.' enable: true'."\n"
.' # 同样可以在此处声明钉钉告警配置,修改告警模板'."\n"
.' # dingdingNotification:'."\n"
.' # 同样可以在此处声明或修改RunnerConfig'."\n"
.' # runnerConfig:'."\n"
.' # 执行步骤。下述步骤将会采用开源项目serverless-cd提供的engine进行执行'."\n"
.' steps:'."\n"
.' # 第一步,初始化s工具'."\n"
.' - plugin: "@serverless-cd/s-setup"'."\n"
.' # 第二步,checkout代码'."\n"
.' # 这里采用了plugin机制,运行serverless-cd社区的插件'."\n"
.' # @serverless-cd/checkout是一个社区提供的插件,它会将代码checkout到默认路径'."\n"
.' # 我们会陆续为社区提供更多的插件'."\n"
.' - plugin: "@serverless-cd/checkout"'."\n"
.' # 执行s-plan,并打印输出内容'."\n"
.' # 这里为了说明engine能力,将它拆分成了多个step执行'."\n"
.' - run: s plan -t ${{ ctx.data.deployFile || "s.yaml" }}'."\n"
.' - run: echo "s plan finished."'."\n"
.' # 任务模板。这里使用了内置的模板serverless-runner-task'."\n"
.' taskTemplate: serverless-runner-task'."\n"
.' # 执行顺序,当前任务执行依赖runAfters任务都执行成功'."\n"
.' runAfters: []'."\n"
.' # 构建并部署'."\n"
.' - name: build-and-deploy'."\n"
.' context:'."\n"
.' data:'."\n"
.' # 打开任务执行,默认是关闭的'."\n"
.' enable: true'."\n"
.' # 同样可以在此处声明钉钉告警配置,修改告警模板'."\n"
.' # dingdingNotification:'."\n"
.' # 同样可以在此处声明或修改RunnerConfig'."\n"
.' # runnerConfig:'."\n"
.' # 执行步骤。下述步骤将会采用开源项目serverless-cd提供的engine进行执行'."\n"
.' steps:'."\n"
.' # 每个Task都是独立运行的Serverless实例,需要再次初始化s工具'."\n"
.' - plugin: "@serverless-cd/s-setup"'."\n"
.' # 同理,需要重新checkout'."\n"
.' - plugin: "@serverless-cd/checkout"'."\n"
.' # 执行s-deploy'."\n"
.' - plugin: "@serverless-cd/s-deploy"'."\n"
.' taskTemplate: serverless-runner-task'."\n"
.' # 执行顺序,当前任务执行依赖runAfters任务都执行成功'."\n"
.' runAfters:'."\n"
.' # 在approval后执行'."\n"
.' - name: pre-check', 'backendName' => 'yamlFileContent'],
'pipelineSpec' => ['title' => '流水线执行的配置描述', 'description' => '流水线执行的配置描述', 'visibility' => 'Public', 'backendName' => 'pipelineSpec', '$ref' => '#/components/schemas/PipelineSpec'],
'variables' => [
'title' => '流水线环境变量,可以在流水线执行时引用',
'description' => '流水线环境变量,可以在流水线执行时引用',
'visibility' => 'Public',
'type' => 'array',
'items' => ['description' => '变量', 'visibility' => 'Public', 'extendType' => 'true', '$ref' => '#/components/schemas/Variable'],
'backendName' => 'variables',
],
],
],
'Task' => [
'title' => 'A short description of struct',
'description' => 'Represents a task run.',
'type' => 'object',
'properties' => [
'spec' => ['description' => 'The desired state of the task.', '$ref' => '#/components/schemas/TaskSpec', 'title' => '', 'example' => '', 'visibility' => 'Public', 'backendName' => 'spec'],
'status' => ['description' => 'The most recently observed state of the task.', '$ref' => '#/components/schemas/TaskStatus', 'title' => '', 'example' => '', 'visibility' => 'Public', 'backendName' => 'status'],
'uid' => ['title' => '当前阿里云主账号的ID,只读', 'description' => 'The ID of the Alibaba Cloud account. This field is read-only.', 'type' => 'string', 'required' => false, 'example' => '1455541096***548', 'visibility' => 'Public', 'backendName' => 'uid'],
'generation' => ['title' => '当前配置的自增的序列号,由系统填充,只读。当spec更新时递增', 'description' => 'A sequence number for the `spec` that the system increments when the spec is updated. This field is read-only.', 'type' => 'integer', 'format' => 'int32', 'example' => '1', 'visibility' => 'Public', 'backendName' => 'generation'],
'description' => ['title' => '任务描述信息', 'description' => 'A description of the task.', 'type' => 'string', 'example' => 'Task example.', 'visibility' => 'Public', 'backendName' => 'description'],
'kind' => ['title' => '当前资源的名称,只读', 'description' => 'The type of the resource. This field is read-only and its value is always `Task`.', 'type' => 'string', 'example' => 'Task', 'visibility' => 'Public', 'backendName' => 'kind'],
'createdTime' => ['title' => '表示创建此对象时服务器的时间,只读', 'description' => 'The server timestamp when the resource was created. This field is read-only.', 'type' => 'string', 'example' => '2021-11-19T09:34:38Z', 'visibility' => 'Public', 'backendName' => 'createdTime'],
'name' => ['title' => '当前资源的名称。它需要是唯一的,且无法变更', 'description' => 'The name of the resource. The name must be unique and is immutable.', 'type' => 'string', 'required' => true, 'example' => 'my-task', 'maxLength' => 40, 'minLength' => 1, 'pattern' => '[a-z](?!-)[a-z0-9-]{1,40}(?<!-)', 'visibility' => 'Public', 'backendName' => 'name'],
'labels' => [
'title' => '资源的标签',
'description' => 'Key-value pairs that categorize and organize the resource.',
'type' => 'object',
'additionalProperties' => ['description' => 'The value of the label.', 'type' => 'string', 'example' => 'value to the label key.', 'title' => '', 'visibility' => 'Public'],
'example' => '',
'visibility' => 'Public',
'backendName' => 'labels',
],
'resourceVersion' => ['title' => '当前状态的自增的序列号,由系统填充,只读。当资源更新时递增', 'description' => 'A sequence number for the resource that the system increments when the resource is updated. This field is read-only.', 'type' => 'integer', 'format' => 'int32', 'example' => '1', 'visibility' => 'Public', 'backendName' => 'resourceVersion'],
],
'example' => '',
'visibility' => 'Public',
],
'TaskExec' => [
'title' => 'A short description of struct',
'description' => 'Represents a single task execution.',
'type' => 'object',
'properties' => [
'name' => ['title' => '当前任务代称', 'description' => 'The name of the task.', 'type' => 'string', 'example' => 'task-1', 'visibility' => 'Public', 'backendName' => 'name'],
'context' => ['title' => '执行上下文', 'description' => 'The execution context.', '$ref' => '#/components/schemas/Context', 'example' => '', 'visibility' => 'Public', 'backendName' => 'context'],
'taskTemplate' => ['title' => '任务模板名称', 'description' => 'The name of the task template.', 'type' => 'string', 'example' => 'serverless-runner', 'visibility' => 'Public', 'backendName' => 'taskTemplate'],
'runAfters' => [
'title' => '执行顺序,必须在所有依赖任务执行完毕后才能被执行',
'description' => 'Specifies the dependencies that must complete before this task runs.',
'type' => 'array',
'items' => ['description' => 'The name of a dependency.', '$ref' => '#/components/schemas/RunAfter', 'title' => '', 'example' => '', 'visibility' => 'Public', 'extendType' => 'true'],
'example' => '',
'visibility' => 'Public',
'backendName' => 'runAfters',
],
],
'example' => '',
'visibility' => 'Public',
],
'TaskExecError' => [
'title' => '任务执行出现的异常描述',
'description' => 'Describes a task execution error.',
'type' => 'object',
'properties' => [
'title' => ['title' => '错误描述', 'description' => 'A summary of the error.', 'type' => 'string', 'example' => '权限不足错误', 'visibility' => 'Public', 'backendName' => 'title'],
'message' => ['title' => '错误信息', 'description' => 'A detailed, human-readable description of the error.', 'type' => 'string', 'example' => '部署服务[_appcenter-xxx]失败,权限不足', 'visibility' => 'Public', 'backendName' => 'message'],
'code' => ['title' => '错误码', 'description' => 'The error code returned by the service.', 'type' => 'string', 'example' => 'AccessDenied', 'visibility' => 'Public', 'backendName' => 'code'],
'requestId' => ['title' => '请求ID', 'description' => 'The unique request ID for the operation. Use this ID for tracking and troubleshooting.', 'type' => 'string', 'example' => '1-26d1287xxxxx', 'visibility' => 'Public', 'backendName' => 'requestId'],
'extraInfo' => ['title' => '对解决错误有帮助的额外信息', 'description' => 'Additional details to help resolve the error.', 'type' => 'string', 'example' => '部署辅助函数权限不足,需要添加额外的权限以解决问题', 'visibility' => 'Public', 'backendName' => 'extraInfo'],
],
'example' => '',
'visibility' => 'Public',
],
'TaskInvocation' => [
'title' => 'A short description of struct',
'description' => 'Contains information about a task invocation.',
'type' => 'object',
'properties' => [
'invocationID' => ['title' => '调用ID,任务在函数计算中的调用ID', 'description' => 'The unique invocation ID for the task in Function Compute.', 'type' => 'string', 'example' => 'E099843B-10A2-4936-9964-4E0EE263D564', 'visibility' => 'Public', 'backendName' => 'invocationID'],
'requestID' => ['title' => '请求ID,任务在函数计算中的请求ID', 'description' => 'The unique request ID for the task in Function Compute.', 'type' => 'string', 'example' => '1B3058B1-F1C9-457C-B95C-2C250A4B3118', 'visibility' => 'Public', 'backendName' => 'requestID'],
'invocationTarget' => ['title' => '调用目标', 'description' => 'The identifier for the invocation target.', 'type' => 'string', 'example' => 'acs:fc:cn-hangzhou:143xxxx:services/xxx.LATEST/functions/xxx', 'visibility' => 'Public', 'backendName' => 'invocationTarget'],
'status' => ['title' => '上一次观测到的调用状态。', 'description' => 'The latest reported invocation status.', 'type' => 'string', 'example' => 'success', 'visibility' => 'Public', 'backendName' => 'status'],
'output' => ['title' => '调用结果', 'description' => 'The invocation result.', 'type' => 'string', 'example' => '{"key1":"value1","key2":"value2"}', 'visibility' => 'Public', 'backendName' => 'output'],
'instanceID' => ['title' => '调用命中的实例ID', 'description' => 'The ID of the instance that processed the invocation.', 'type' => 'string', 'example' => 'c-nkj8shz7xxxx', 'visibility' => 'Public', 'backendName' => 'instanceID'],
'slsProject' => ['title' => '日志投递到SLS产品的Project名称', 'description' => 'The name of the Project in Log Service that receives the logs.', 'type' => 'string', 'example' => 'my-sls-project', 'visibility' => 'Public', 'backendName' => 'slsProject'],
'slsLogStore' => ['title' => '日志投递到SLS产品的Logstore名称', 'description' => 'The name of the Logstore in Log Service that receives the logs.', 'type' => 'string', 'example' => 'my-sls-logstore', 'visibility' => 'Public', 'backendName' => 'slsLogStore'],
],
'example' => '',
'visibility' => 'Public',
],
'TaskSpec' => [
'title' => 'A short description of struct',
'description' => 'The execution configuration for a task.',
'type' => 'object',
'properties' => [
'templateName' => ['title' => '任务模板名称', 'description' => 'The name of the task template.', 'type' => 'string', 'example' => 'my-task-template', 'visibility' => 'Public', 'backendName' => 'templateName'],
'context' => ['title' => '任务的执行上下文', 'description' => 'The execution context for the task.', '$ref' => '#/components/schemas/Context', 'example' => '', 'visibility' => 'Public', 'backendName' => 'context'],
],
'example' => '',
'visibility' => 'Public',
],
'TaskStatus' => [
'title' => 'A short description of struct',
'description' => 'Describes the current execution status of the task.',
'type' => 'object',
'properties' => [
'statusGeneration' => ['title' => '状态版本号', 'description' => 'A version number that increments with each status update.', 'type' => 'integer', 'format' => 'int64', 'example' => '123', 'visibility' => 'Public', 'backendName' => 'statusGeneration'],
'phase' => ['title' => '当前执行阶段', 'description' => 'The current execution phase of the task.', 'type' => 'string', 'example' => 'Success', 'visibility' => 'Public', 'backendName' => 'phase'],
'executionDetails' => [
'title' => '执行详情',
'description' => 'An array of strings containing details about the execution process.',
'type' => 'array',
'items' => ['description' => 'Each string represents a step in the execution process.', 'type' => 'string', 'example' => 'step1: start task.', 'title' => '', 'visibility' => 'Public', 'extendType' => 'true'],
'example' => '',
'visibility' => 'Public',
'backendName' => 'executionDetails',
],
'invocations' => [
'title' => '执行历史',
'description' => 'The task\'s invocation history.',
'type' => 'array',
'items' => ['description' => 'Each element represents a single invocation of the task.', '$ref' => '#/components/schemas/TaskInvocation', 'title' => '', 'example' => '', 'visibility' => 'Public', 'extendType' => 'true'],
'example' => '',
'visibility' => 'Public',
'backendName' => 'invocations',
],
'latestExecError' => ['title' => '最近一次任务执行错误', 'description' => 'The most recent task execution error.', '$ref' => '#/components/schemas/TaskExecError', 'example' => '', 'visibility' => 'Public', 'backendName' => 'latestExecError'],
],
'example' => '',
'visibility' => 'Public',
],
'TaskTemplate' => [
'description' => 'Represents a TaskTemplate resource.',
'type' => 'object',
'properties' => [
'uid' => ['title' => '当前阿里云主账号的ID,只读', 'description' => 'The ID of the Alibaba Cloud account. Read-only.', 'type' => 'string', 'required' => false, 'example' => '1455541096***548', 'visibility' => 'Public', 'backendName' => 'uid'],
'generation' => ['title' => '当前配置的自增的序列号,由系统填充,只读。当spec更新时递增', 'description' => 'A system-populated, auto-incrementing sequence number for the configuration. This value is incremented when the `spec` is updated. Read-only.', 'type' => 'integer', 'format' => 'int32', 'example' => '1', 'visibility' => 'Public', 'backendName' => 'generation'],
'description' => ['title' => '任务模板描述信息', 'description' => 'A description of the task template.', 'type' => 'string', 'example' => 'TaskTemplate example.', 'visibility' => 'Public', 'backendName' => 'description'],
'kind' => ['title' => '当前资源的名称,只读', 'description' => 'The resource type identifier. Read-only.', 'type' => 'string', 'example' => 'TaskTemplate', 'visibility' => 'Public', 'backendName' => 'kind'],
'createdTime' => ['title' => '表示创建此对象时服务器的时间,只读', 'description' => 'The server-side creation timestamp for the resource. Read-only.', 'type' => 'string', 'example' => '2021-11-19T09:34:38Z', 'visibility' => 'Public', 'backendName' => 'createdTime'],
'name' => ['title' => '当前资源的名称。它需要是唯一的,且无法变更', 'description' => 'The unique and immutable name of the resource.', 'type' => 'string', 'required' => true, 'example' => 'my-task-template', 'maxLength' => 40, 'minLength' => 1, 'pattern' => '[a-z](?!-)[a-z0-9-]{1,40}(?<!-)', 'visibility' => 'Public', 'backendName' => 'name'],
'deletionTime' => ['title' => '资源删除时间,只读', 'description' => 'The time when the resource was marked for deletion. Read-only.', 'type' => 'string', 'example' => '2021-11-19T09:34:38Z', 'visibility' => 'Public', 'backendName' => 'deletionTime'],
'spec' => ['title' => '资源的配置属性', 'description' => 'The specification of the resource.', '$ref' => '#/components/schemas/TaskTemplateSpec', 'example' => '', 'visibility' => 'Public', 'backendName' => 'spec'],
'labels' => [
'title' => '资源的标签',
'description' => 'Key-value pairs attached to the resource.',
'type' => 'object',
'additionalProperties' => ['description' => 'The key for the label.', 'type' => 'string', 'example' => '资源标签的值', 'title' => '', 'visibility' => 'Public'],
'example' => '',
'visibility' => 'Public',
'backendName' => 'labels',
],
'resourceVersion' => ['title' => '当前状态的自增的序列号,由系统填充,只读。当资源更新时递增', 'description' => 'A system-populated, auto-incrementing sequence number for the resource\'s current state. This value is incremented on each update to the resource. Read-only.', 'type' => 'integer', 'format' => 'int32', 'example' => '1', 'visibility' => 'Public', 'backendName' => 'resourceVersion'],
],
'title' => '',
'example' => '',
'visibility' => 'Public',
],
'TaskTemplateSpec' => [
'title' => 'A short description of struct',
'description' => '任务模板描述',
'visibility' => 'Public',
'type' => 'object',
'properties' => [
'description' => ['title' => '任务执行的描述信息', 'description' => '任务执行的描述信息', 'visibility' => 'Public', 'type' => 'string', 'example' => 'build&deploy.', 'backendName' => 'description'],
'worker' => ['title' => '任务节点的描述', 'description' => '任务节点的描述', 'visibility' => 'Public', 'backendName' => 'worker', '$ref' => '#/components/schemas/TaskWorker'],
'context' => ['title' => '任务的执行上下文', 'description' => '任务的执行上下文', 'visibility' => 'Public', 'backendName' => 'context', '$ref' => '#/components/schemas/Context'],
'contextSchema' => ['title' => '执行上下文的JSON Schema描述信息', 'description' => '执行上下文的JSON Schema描述信息', 'visibility' => 'Private', 'type' => 'object', 'nullable' => false, 'backendName' => 'contextSchema'],
'executeCondition' => ['title' => '任务执行的条件', 'description' => '任务执行的条件', 'visibility' => 'Public', 'backendName' => 'executeCondition', '$ref' => '#/components/schemas/Condition'],
],
],
'TaskWorker' => [
'title' => 'A short description of struct',
'description' => '描述任务执行方式',
'visibility' => 'Public',
'type' => 'object',
'properties' => [
'presetWorker' => ['title' => '系统预设的任务类型。它会执行预设的逻辑。', 'description' => '系统预设的任务类型。它会执行预设的逻辑。', 'visibility' => 'Public', 'type' => 'string', 'example' => 'serverless-runner', 'backendName' => 'presetWorker'],
],
],
'TemplateConfig' => [
'title' => '模板部署服务输入',
'description' => 'Configuration for a project template.',
'type' => 'object',
'properties' => [
'variableValues' => ['title' => '模板变量', 'description' => 'The values for the template variables.', 'example' => '', '$ref' => '#/components/schemas/TemplateVariableValueMap', 'visibility' => 'Public', 'backendName' => 'variableValues'],
'templateName' => ['title' => '模板名称', 'description' => 'The template name.', 'type' => 'string', 'required' => true, 'example' => 'start-springboot', 'visibility' => 'Public', 'backendName' => 'templateName'],
'parameters' => [
'title' => '模板参数',
'description' => 'The template parameters.',
'type' => 'object',
'required' => false,
'example' => '{"region":"cn-hangzhou"}',
'additionalProperties' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => '{"region":"cn-hangzhou"}', 'visibility' => 'Public'],
'visibility' => 'Public',
'backendName' => 'parameters',
],
'serviceNameChanges' => [
'title' => '服务名称变化,key是模板原始服务名,value是需要修改的目标服务名',
'description' => 'A map for renaming services from the template, where the key is the original service name and the value is the new name.',
'type' => 'object',
'additionalProperties' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => '{"originName": "newName"}', 'visibility' => 'Public'],
'example' => '{"svc1":"svc2"}',
'visibility' => 'Public',
'backendName' => 'serviceNameChanges',
],
],
'example' => '',
'visibility' => 'Public',
],
'Toolset' => [
'title' => '',
'description' => 'The toolset.',
'type' => 'object',
'properties' => [
'generation' => ['title' => '', 'description' => 'The auto-increment sequence number of the current resource. This parameter is populated by the system and is read-only. The value increments when spec, labels, or description is updated. If specified, the system performs concurrent write verification, and the generation value must match the current state value in the system.', 'type' => 'integer', 'format' => 'int64', 'example' => '1', 'visibility' => 'Public', 'backendName' => 'generation'],
'uid' => ['title' => '', 'description' => 'The ID of the current Alibaba Cloud account. This parameter is read-only.', 'type' => 'string', 'required' => false, 'example' => '1455541096***548', 'visibility' => 'Public', 'backendName' => 'uid'],
'kind' => ['title' => '', 'description' => 'The name of the current resource. This parameter is read-only.', 'type' => 'string', 'example' => 'Toolset', 'visibility' => 'Public', 'backendName' => 'kind'],
'name' => ['title' => '', 'description' => 'The name of the current resource. The name must be unique and cannot be changed.', 'type' => 'string', 'required' => true, 'example' => 'my-toolset', 'visibility' => 'Public', 'backendName' => 'name'],
'createdTime' => ['title' => '', 'description' => 'The server time when this object was created. This parameter is read-only.', 'type' => 'string', 'example' => '2021-11-19T09:34:38Z', 'visibility' => 'Public', 'backendName' => 'createdTime'],
'description' => ['title' => '', 'description' => 'The description of the toolset.', 'type' => 'string', 'example' => 'test-description', 'visibility' => 'Public', 'backendName' => 'description'],
'spec' => ['title' => '', 'description' => 'The specific configuration of the toolset.', '$ref' => '#/components/schemas/ToolsetSpec', 'example' => '', 'visibility' => 'Public', 'backendName' => 'spec'],
'labels' => [
'title' => '',
'description' => 'The labels of the resource.',
'type' => 'object',
'additionalProperties' => ['description' => '标签', 'type' => 'string', 'example' => 'key=value', 'title' => '', 'visibility' => 'Public'],
'example' => '',
'visibility' => 'Public',
'backendName' => 'labels',
],
'status' => ['title' => '', 'description' => 'The status of the toolset.', '$ref' => '#/components/schemas/ToolsetStatus', 'example' => '', 'visibility' => 'Public', 'backendName' => 'status'],
],
'example' => '',
'visibility' => 'Public',
],
'ToolsetSchema' => [
'title' => '工具集接口规范与配置',
'description' => 'Specifies the toolset schema.',
'type' => 'object',
'properties' => [
'type' => ['title' => '工具集 Schema 类型', 'description' => 'The toolset schema type.', 'type' => 'string', 'example' => 'OpenAPI'],
'detail' => ['title' => '工具集 Schema 详情', 'description' => 'The OpenAPI specification that defines the toolset schema.', 'type' => 'string', 'example' => 'openapi: 3.0.1'."\n"
.'info:'."\n"
.' title: web-search-baidu-balabala'."\n"
.' description: 使用百度搜索查询实时新闻消息。'."\n"
.' version: v1'."\n"
.'servers:'."\n"
.' - url: https://baidu-ehd-brwxrpgffd.cn-hangzhou.fcapp.run'."\n"
.'paths:'."\n"
.' /invoke:'."\n"
.' post:'."\n"
.' operationId: baidu_search'."\n"
.' summary: 使用百度查询信息获取信息列表'."\n"
.' requestBody:'."\n"
.' required: true'."\n"
.' content:'."\n"
.' application/json:'."\n"
.' schema:'."\n"
.' type: object'."\n"
.' required:'."\n"
.' - search_input'."\n"
.' properties:'."\n"
.' search_input:'."\n"
.' type: string'."\n"
.' description: 要搜索的内容'."\n"
.' responses:'."\n"
.' \'200\':'."\n"
.' description: 查询成功'."\n"
.' content:'."\n"
.' application/json:'."\n"
.' schema:'."\n"
.' type: object'."\n"
.' required:'."\n"
.' - content'."\n"
.' properties:'."\n"
.' content:'."\n"
.' type: string'."\n"
.' description: 查询结果'."\n", 'deprecated' => false],
'config' => [
'type' => 'object',
'properties' => [
'mcpInstallation' => ['title' => 'MCP服务器安装配置,只针对type为MCP时有效', '$ref' => '#/components/schemas/MCPInstallationConfig', 'description' => '', 'example' => ''],
'openAPISchema' => ['title' => 'OpenAPI Schema详情,仅针对type为OpenAPI时有效', 'type' => 'string', 'description' => '', 'example' => ''],
'mcpGateway' => ['title' => 'MCP网关配置,仅针对type为MCPGateway时有效', '$ref' => '#/components/schemas/MCPGatewayConfig', 'description' => '', 'example' => ''],
'difyPluginInstallation' => ['title' => 'Dify插件安装配置', '$ref' => '#/components/schemas/DifyPluginInstallationConfig', 'description' => '', 'example' => ''],
],
'description' => 'Configuration settings for the toolset.',
'title' => '',
'example' => '',
],
],
'example' => '',
],
'ToolsetSpec' => [
'title' => '工具集配置',
'description' => 'The toolset configuration.',
'type' => 'object',
'properties' => [
'schema' => ['title' => '工具集schema结构', 'description' => 'The toolset schema.', '$ref' => '#/components/schemas/ToolsetSchema', 'example' => ''],
'networkConfig' => [
'title' => '工具集网络配置',
'type' => 'object',
'properties' => [
'internetAccess' => ['title' => '是否允许工具集函数访问公网', 'type' => 'boolean', 'description' => '', 'example' => ''],
'vpcConfig' => [
'title' => '工具集vpc配置',
'type' => 'object',
'properties' => [
'vpcId' => ['title' => 'vpd id', 'type' => 'string', 'description' => '', 'example' => ''],
'vSwitchIds' => [
'title' => '交换机列表',
'type' => 'array',
'items' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
'description' => '',
'example' => '',
],
'securityGroupId' => ['title' => '安全组id', 'type' => 'string', 'description' => '', 'example' => ''],
],
'description' => '',
'example' => '',
],
],
'description' => 'The network configuration.',
'example' => '',
],
'authConfig' => ['description' => 'The authorization configuration.', 'title' => '', '$ref' => '#/components/schemas/Authorization', 'example' => ''],
],
'example' => '',
],
'ToolsetStatus' => [
'description' => 'The status of the toolset.',
'type' => 'object',
'properties' => [
'phase' => ['title' => '工具集状态。Pending:初始状态;Installing:安装中,只有uvx、npx托管时才进入该状态;Installed:成功状态,表示成功安装;Failed:失败状态,安装失败会进入到该状;Invalid:无效状态,当导入存量的mcp server时,访问该server的url执行listTools失败会进入到该状态', 'description' => 'The current phase of the toolset. Valid values include: `Pending`: The initial phase. `Installing`: The toolset is being installed. This phase applies only to managed toolsets such as `uvx` and `npx`. `Installed`: The toolset is successfully installed. `Failed`: The toolset installation failed. `Invalid`: Occurs when an existing MCP server is imported and the `listTools` operation on the server\'s URL fails.', 'type' => 'string', 'example' => 'Installed'],
'outputs' => [
'description' => 'The outputs generated by the toolset.',
'type' => 'object',
'properties' => [
'functionArn' => ['title' => '函数资源定位符。当工具集托管资源时存在该字段', 'description' => 'The Amazon Resource Name (ARN) of the function. Available only when the toolset includes a managed resource.', 'type' => 'string', 'example' => 'acs:fc:cn-qingdao:0000:functions/aliyun_merchant_login_egistration'],
'urls' => [
'title' => '工具集访问地址。仅当工具集托管资源时存在该字段',
'description' => 'The access URLs for the toolset. Available only when the toolset includes a managed resource.',
'type' => 'object',
'properties' => [
'internetUrl' => ['title' => '公网访问地址', 'description' => 'The public access URL.', 'type' => 'string', 'example' => 'https://mock.cn-hangzhou.fcapp.run/sse'],
'intranetUrl' => ['title' => '内网访问地址', 'description' => 'The internal access URL.', 'type' => 'string', 'example' => 'https://mock.cn-hangzhou-vpc.fcapp.run/sse'],
],
'example' => '',
],
'mcpServerConfig' => [
'title' => 'MCP服务器访问配置。仅当MCP类型的工具集存在该字段',
'description' => 'The MCP server access configuration. Available only for toolsets of type `MCP`.',
'type' => 'object',
'properties' => [
'url' => ['title' => 'MCP服务器访问地址', 'description' => 'The access URL for the MCP server.', 'type' => 'string', 'example' => 'https://mock.cn-hangzhou.fcapp.run/sse'],
'transportType' => ['title' => 'MCP服务器传输类型。SSE、StreamableHttp', 'description' => 'The transport type for the MCP server. Supported values: `sse` and `StreamableHttp`.', 'type' => 'string', 'example' => 'sse'],
'headers' => [
'description' => 'The request headers.',
'type' => 'object',
'additionalProperties' => ['description' => 'The value of the request header.', 'type' => 'string', 'example' => '{\'Authorization\': Bearer xxxx}', 'title' => ''],
'title' => '',
'example' => '',
],
],
'example' => '',
],
'openApiTools' => [
'title' => 'OpenAPI类型的工具集工具列表,仅当OpenAPI类型的工具集存在该字段',
'description' => 'A list of tools, available only for toolsets of type `OpenAPI`.',
'type' => 'array',
'items' => ['description' => 'Information about an OpenAPI tool.', '$ref' => '#/components/schemas/OpenAPIToolMeta', 'title' => '', 'example' => ''],
'example' => '',
],
'tools' => [
'title' => 'MCP类型的工具集工具列表,仅当MCP类型的工具集存在该字段',
'description' => 'A list of tools, available only for toolsets of type `MCP`.',
'type' => 'array',
'items' => ['description' => 'Information about an MCP tool.', '$ref' => '#/components/schemas/MCPToolMeta', 'title' => '', 'example' => ''],
'example' => '',
],
'difyTools' => [
'title' => 'Dify类型的工具集工具列表,仅当DifyPlugin类型的工具集存在该字段',
'type' => 'array',
'items' => ['$ref' => '#/components/schemas/DifyToolSchema', 'description' => '', 'title' => '', 'example' => ''],
'description' => 'A list of Dify tools.',
'example' => '',
],
],
'title' => '',
'example' => '',
],
'observedGeneration' => ['title' => '资源最近的一次状态更新时的资源generation', 'description' => 'The resource generation observed during the last status update.', 'type' => 'integer', 'format' => 'int64', 'example' => '10'],
'observedTime' => ['title' => '资源最近的一次状态更新时间', 'description' => 'The timestamp of the last status observation.', 'type' => 'string', 'example' => '2025-07-28T14:03:19Z'],
],
'title' => '',
'example' => '',
],
'Variable' => [
'title' => '变量',
'description' => '变量',
'visibility' => 'Public',
'type' => 'object',
'properties' => [
'value' => ['title' => '变量的值', 'description' => '变量的值', 'visibility' => 'Public', 'type' => 'any', 'example' => 'object_value', 'backendName' => 'value'],
'sensitive' => ['title' => '变量是否敏感', 'description' => '变量是否敏感', 'visibility' => 'Public', 'type' => 'boolean', 'example' => 'false', 'backendName' => 'sensitive'],
'encrypted' => ['title' => '变量是否被加密', 'description' => '变量是否被加密', 'visibility' => 'Public', 'type' => 'boolean', 'example' => 'false', 'backendName' => 'encrypted'],
],
],
],
],
'apis' => [
'ActivateConnection' => [
'path' => '/2023-07-14/connections/{name}/activate',
'methods' => ['patch'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'consumes' => ['application/json'],
'produces' => ['application/json'],
'operationType' => 'readAndWrite',
'deprecated' => false,
'systemTags' => [
'operationType' => 'update',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeNodes' => ['FEATUREdevsTN0KZI'],
'tenantRelevance' => 'publicInformation',
],
'parameters' => [
[
'name' => 'name',
'in' => 'path',
'schema' => ['description' => 'The name of the connection.', 'type' => 'string', 'example' => 'demo-name', 'title' => '', 'required' => false],
],
[
'name' => 'body',
'in' => 'body',
'style' => 'json',
'schema' => [
'title' => '',
'description' => 'The information required to activate the connection.',
'type' => 'object',
'properties' => [
'account' => ['description' => 'The account information on the code hosting platform.', '$ref' => '#/components/schemas/GitAccount', 'title' => '', 'required' => false, 'example' => ''],
'credential' => ['description' => 'The credential obtained from the OAuth authorization flow. It grants access to the code hosting platform\'s APIs.', '$ref' => '#/components/schemas/OAuthCredential', 'title' => '', 'required' => false, 'example' => ''],
],
'required' => false,
'example' => '',
],
],
],
'responses' => [
200 => [
'schema' => ['description' => 'The activated connection.', '$ref' => '#/components/schemas/Connection', 'title' => '', 'example' => ''],
],
],
'title' => 'Activate Identity Binding',
'summary' => 'This operation activates a connection. After a user completes the OAuth authorization flow, the development platform activates the specified connection. Third-party code hosting platforms such as GitHub, Gitee, and Codeup use this authorization method.',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [],
],
'ramActions' => [
[
'operationType' => 'update',
'ramAction' => [
'action' => 'devs:ActivateConnection',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Devs', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"uid\\": \\"1455541096***548\\",\\n \\"kind\\": \\"Connection\\",\\n \\"createdTime\\": \\"2021-11-19T09:34:38Z\\",\\n \\"name\\": \\"my-connection\\",\\n \\"spec\\": {\\n \\"platform\\": \\"github\\",\\n \\"account\\": {\\n \\"name\\": \\"your_username\\",\\n \\"displayName\\": \\"your_displayname\\",\\n \\"id\\": \\"1\\",\\n \\"avatar\\": \\"https://gitee.com/assets/no_portrait.png\\",\\n \\"uri\\": \\"https://gitlab.com\\"\\n },\\n \\"gitlabConfig\\": {\\n \\"isFixedIP\\": true,\\n \\"uri\\": \\"http://gitlab.c16194660f14898a0810408171302ac.cn-shanghai.alicontainer.com/\\",\\n \\"token\\": \\"your-token\\"\\n }\\n },\\n \\"labels\\": {\\n \\"key\\": \\"key=value\\"\\n },\\n \\"description\\": \\"test-description\\",\\n \\"status\\": {\\n \\"installation\\": {\\n \\"stage\\": \\"finished\\",\\n \\"message\\": \\"Please click \'actionUri\' to complete the OAuth authorization process\\",\\n \\"actionUri\\": \\"https://github.com/login/oauth/authorize?client_id=86059a1b2bb20d3e5fc3&scope=repo,repo:status,delete_repo\\"\\n }\\n }\\n}","type":"json"}]',
],
'CancelPipeline' => [
'summary' => 'Cancels the specified pipeline execution and its associated tasks as soon as possible.',
'path' => '/2023-07-14/pipelines/{name}/cancel',
'methods' => ['put'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'consumes' => ['application/json'],
'produces' => ['application/json'],
'operationType' => 'readAndWrite',
'deprecated' => false,
'systemTags' => ['operationType' => 'update'],
'parameters' => [
[
'name' => 'name',
'in' => 'path',
'schema' => ['description' => 'The name of the pipeline.', 'type' => 'string', 'example' => 'demo-name', 'title' => '', 'required' => false],
],
],
'responses' => [
200 => [
'schema' => ['description' => 'The pipeline execution object.', '$ref' => '#/components/schemas/Pipeline', 'title' => '', 'example' => ''],
],
],
'title' => 'Cancel pipeline execution',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [],
],
'ramActions' => [
[
'operationType' => 'update',
'ramAction' => [
'action' => 'devs:CancelPipeline',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Devs', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"spec\\": {\\n \\"templateName\\": \\"my-pipeline-template\\",\\n \\"context\\": {\\n \\"data\\": {\\n \\"test\\": \\"test\\",\\n \\"test2\\": 1\\n }\\n },\\n \\"templateSpec\\": {\\n \\"context\\": {\\n \\"data\\": {\\n \\"test\\": \\"test\\",\\n \\"test2\\": 1\\n }\\n },\\n \\"tasks\\": [\\n {\\n \\"name\\": \\"task-1\\",\\n \\"context\\": {\\n \\"data\\": {\\n \\"test\\": \\"test\\",\\n \\"test2\\": 1\\n }\\n },\\n \\"taskTemplate\\": \\"serverless-runner\\",\\n \\"runAfters\\": [\\n {\\n \\"name\\": \\"task-1\\"\\n }\\n ]\\n }\\n ]\\n }\\n },\\n \\"status\\": {\\n \\"phase\\": \\"Success\\",\\n \\"latestExecError\\": {\\n \\"title\\": \\"权限不足错误\\",\\n \\"message\\": \\"部署服务[_appcenter-xxx]失败,权限不足\\",\\n \\"code\\": \\"AccessDenied\\",\\n \\"requestId\\": \\"1-26d1287xxxxx\\",\\n \\"extraInfo\\": \\"部署辅助函数权限不足,需要添加额外的权限以解决问题\\"\\n }\\n },\\n \\"uid\\": \\"1455541096***548\\",\\n \\"generation\\": 1,\\n \\"description\\": \\"Pipeline example.\\",\\n \\"kind\\": \\"Pipeline\\",\\n \\"createdTime\\": \\"2021-11-19T09:34:38Z\\",\\n \\"name\\": \\"my-pipeline\\",\\n \\"labels\\": {\\n \\"key\\": \\"value to the label key.\\"\\n },\\n \\"resourceVersion\\": 1\\n}","type":"json"}]',
],
'CancelTask' => [
'summary' => 'Cancels a pipeline task.',
'path' => '/2023-07-14/tasks/{name}/cancel',
'methods' => ['put'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'consumes' => ['application/json'],
'produces' => ['application/json'],
'operationType' => 'readAndWrite',
'deprecated' => false,
'systemTags' => [
'operationType' => 'update',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeNodes' => ['FEATUREdevsJWJ2XN'],
'tenantRelevance' => 'publicInformation',
],
'parameters' => [
[
'name' => 'name',
'in' => 'path',
'schema' => ['description' => 'The name of the pipeline task.', 'type' => 'string', 'example' => 'demo-name', 'title' => '', 'required' => false],
],
],
'responses' => [
200 => [
'schema' => ['description' => 'The details of the pipeline task.', '$ref' => '#/components/schemas/Task', 'title' => '', 'example' => ''],
],
],
'title' => 'Cancel pipeline job execution',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [],
],
'ramActions' => [
[
'operationType' => 'update',
'ramAction' => [
'action' => 'devs:CancelTask',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Devs', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"spec\\": {\\n \\"templateName\\": \\"my-task-template\\",\\n \\"context\\": {\\n \\"data\\": {\\n \\"test\\": \\"test\\",\\n \\"test2\\": 1\\n }\\n }\\n },\\n \\"status\\": {\\n \\"statusGeneration\\": 123,\\n \\"phase\\": \\"Success\\",\\n \\"executionDetails\\": [\\n \\"step1: start task.\\"\\n ],\\n \\"invocations\\": [\\n {\\n \\"invocationID\\": \\"E099843B-10A2-4936-9964-4E0EE263D564\\",\\n \\"requestID\\": \\"1B3058B1-F1C9-457C-B95C-2C250A4B3118\\",\\n \\"invocationTarget\\": \\"acs:fc:cn-hangzhou:143xxxx:services/xxx.LATEST/functions/xxx\\",\\n \\"status\\": \\"success\\",\\n \\"output\\": \\"{\\\\\\"key1\\\\\\":\\\\\\"value1\\\\\\",\\\\\\"key2\\\\\\":\\\\\\"value2\\\\\\"}\\",\\n \\"instanceID\\": \\"c-nkj8shz7xxxx\\",\\n \\"slsProject\\": \\"my-sls-project\\",\\n \\"slsLogStore\\": \\"my-sls-logstore\\"\\n }\\n ],\\n \\"latestExecError\\": {\\n \\"title\\": \\"权限不足错误\\",\\n \\"message\\": \\"部署服务[_appcenter-xxx]失败,权限不足\\",\\n \\"code\\": \\"AccessDenied\\",\\n \\"requestId\\": \\"1-26d1287xxxxx\\",\\n \\"extraInfo\\": \\"部署辅助函数权限不足,需要添加额外的权限以解决问题\\"\\n }\\n },\\n \\"uid\\": \\"1455541096***548\\",\\n \\"generation\\": 1,\\n \\"description\\": \\"Task example.\\",\\n \\"kind\\": \\"Task\\",\\n \\"createdTime\\": \\"2021-11-19T09:34:38Z\\",\\n \\"name\\": \\"my-task\\",\\n \\"labels\\": {\\n \\"key\\": \\"value to the label key.\\"\\n },\\n \\"resourceVersion\\": 1\\n}","type":"json"}]',
],
'CreateArtifact' => [
'path' => '/2023-07-14/artifacts',
'methods' => ['post'],
'schemes' => ['https'],
'security' => [
[
'AK' => [],
],
],
'consumes' => ['application/json'],
'produces' => ['application/json'],
'operationType' => 'readAndWrite',
'deprecated' => false,
'systemTags' => [
'operationType' => 'create',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeNodes' => ['FEATUREdevsJWJ2XN'],
'tenantRelevance' => 'publicInformation',
],
'parameters' => [
[
'name' => 'body',
'in' => 'body',
'style' => 'json',
'schema' => ['description' => 'The artifact configuration.', '$ref' => '#/components/schemas/Artifact', 'title' => '', 'required' => false, 'example' => ''],
],
],
'responses' => [
200 => [
'schema' => ['description' => 'The artifact configuration.', '$ref' => '#/components/schemas/Artifact', 'title' => '', 'example' => ''],
],
],
'staticInfo' => ['returnType' => 'synchronous'],
'title' => 'Create artifact ',
'summary' => 'Creates an artifact.',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [],
],
'ramActions' => [
[
'operationType' => 'create',
'ramAction' => [
'action' => 'devs:CreateArtifact',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Devs', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
],
],
'CreateEnvironment' => [
'summary' => 'Creates an environment within a project and optionally deploys it automatically from a template. You deploy services to a specific environment. You can link an environment to a branch in a code repository or to a project template. An environment can also have a dedicated infrastructure stack, which is shared by all services running within it.',
'path' => '/2023-07-14/projects/{projectName}/environments',
'methods' => ['post'],
'schemes' => ['https'],
'security' => [
[
'AK' => [],
],
],
'consumes' => ['application/json'],
'produces' => ['application/json'],
'operationType' => 'readAndWrite',
'deprecated' => false,
'systemTags' => [
'operationType' => 'create',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeNodes' => ['FEATUREdevsXL1PN1'],
'tenantRelevance' => 'publicInformation',
],
'parameters' => [
[
'name' => 'body',
'in' => 'body',
'schema' => ['description' => 'The environment entity.', '$ref' => '#/components/schemas/Environment', 'title' => '', 'required' => false, 'example' => ''],
],
[
'name' => 'projectName',
'in' => 'path',
'schema' => ['title' => 'Project name ', 'description' => 'The project name.', 'type' => 'string', 'required' => true, 'example' => 'demo-project'],
],
],
'responses' => [
200 => [
'schema' => ['description' => 'The environment entity.', '$ref' => '#/components/schemas/Environment', 'title' => '', 'example' => ''],
],
],
'staticInfo' => ['returnType' => 'synchronous'],
'eventInfo' => [
'enable' => false,
'eventNames' => [],
],
'title' => 'Create Environment ',
'description' => 'Usage notes:'."\n"
."\n"
.'- If the `Environment.Spec.TemplateConfig` parameter is not empty, the development platform uses the specified template information to asynchronously deploy the project after the environment is created. This process creates `PipelineTrigger`, `PipelineTriggerEvent`, and `Pipeline` entities.'."\n"
."\n"
.'- If the `Environment.Spec.TemplateConfig` parameter is empty, this operation only creates the environment entity. You must then manually complete the deployment by calling the relevant `PipelineTrigger` and `PipelineTriggerEvent` APIs.'."\n"
."\n"
.'><notice>'."\n"
."\n"
.'Deploying a project from a template is free of charge. After deployment, the cloud resources specified in the project template are billed according to the pricing of their respective cloud products.'."\n"
."\n"
.'></notice>',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [],
],
'ramActions' => [
[
'operationType' => 'create',
'ramAction' => [
'action' => 'devs:CreateEnvironment',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Devs', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
],
],
'CreatePipeline' => [
'summary' => 'Creates a pipeline execution that runs asynchronously and generates pipeline tasks based on its configuration.',
'path' => '/2023-07-14/pipelines',
'methods' => ['post'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'consumes' => ['application/json'],
'produces' => ['application/json'],
'operationType' => 'readAndWrite',
'deprecated' => false,
'systemTags' => ['operationType' => 'create'],
'parameters' => [
[
'name' => 'body',
'in' => 'body',
'style' => 'json',
'schema' => ['description' => 'The pipeline execution to create.', '$ref' => '#/components/schemas/Pipeline', 'title' => '', 'required' => false, 'example' => ''],
],
],
'responses' => [
200 => [
'schema' => ['description' => 'The created pipeline execution.', '$ref' => '#/components/schemas/Pipeline', 'title' => '', 'example' => ''],
],
],
'title' => 'Create pipeline execution',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [],
],
'ramActions' => [
[
'operationType' => 'create',
'ramAction' => [
'action' => 'devs:CreatePipeline',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Devs', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"spec\\": {\\n \\"templateName\\": \\"my-pipeline-template\\",\\n \\"context\\": {\\n \\"data\\": {\\n \\"test\\": \\"test\\",\\n \\"test2\\": 1\\n }\\n },\\n \\"templateSpec\\": {\\n \\"context\\": {\\n \\"data\\": {\\n \\"test\\": \\"test\\",\\n \\"test2\\": 1\\n }\\n },\\n \\"tasks\\": [\\n {\\n \\"name\\": \\"task-1\\",\\n \\"context\\": {\\n \\"data\\": {\\n \\"test\\": \\"test\\",\\n \\"test2\\": 1\\n }\\n },\\n \\"taskTemplate\\": \\"serverless-runner\\",\\n \\"runAfters\\": [\\n {\\n \\"name\\": \\"task-1\\"\\n }\\n ]\\n }\\n ]\\n }\\n },\\n \\"status\\": {\\n \\"phase\\": \\"Success\\",\\n \\"latestExecError\\": {\\n \\"title\\": \\"权限不足错误\\",\\n \\"message\\": \\"部署服务[_appcenter-xxx]失败,权限不足\\",\\n \\"code\\": \\"AccessDenied\\",\\n \\"requestId\\": \\"1-26d1287xxxxx\\",\\n \\"extraInfo\\": \\"部署辅助函数权限不足,需要添加额外的权限以解决问题\\"\\n }\\n },\\n \\"uid\\": \\"1455541096***548\\",\\n \\"generation\\": 1,\\n \\"description\\": \\"Pipeline example.\\",\\n \\"kind\\": \\"Pipeline\\",\\n \\"createdTime\\": \\"2021-11-19T09:34:38Z\\",\\n \\"name\\": \\"my-pipeline\\",\\n \\"labels\\": {\\n \\"key\\": \\"value to the label key.\\"\\n },\\n \\"resourceVersion\\": 1\\n}","type":"json"}]',
],
'CreateProject' => [
'summary' => 'Creates a project and automatically deploys it if a template configuration is specified.',
'path' => '/2023-07-14/projects',
'methods' => ['post'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'consumes' => ['application/json'],
'produces' => ['application/json'],
'operationType' => 'readAndWrite',
'deprecated' => false,
'systemTags' => [
'operationType' => 'create',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeNodes' => ['FEATUREdevsXL1PN1'],
'tenantRelevance' => 'publicInformation',
],
'parameters' => [
[
'name' => 'body',
'in' => 'body',
'style' => 'json',
'schema' => ['description' => 'The project entity.', '$ref' => '#/components/schemas/Project', 'required' => false, 'title' => '', 'example' => ''],
],
],
'responses' => [
200 => [
'schema' => ['description' => 'The created project entity.', '$ref' => '#/components/schemas/Project', 'title' => '', 'example' => ''],
],
],
'staticInfo' => ['returnType' => 'synchronous'],
'eventInfo' => [
'enable' => false,
'eventNames' => [],
],
'title' => 'Create Project',
'description' => '1. If a template configuration is provided in `Project.Spec.TemplateConfig`, the development platform automatically starts an asynchronous deployment after the project is created. This process creates the `Environment`, `PipelineTrigger`, `PipelineTriggerEvent`, and `Pipeline` entities.'."\n"
."\n"
.'2. If `Project.Spec.TemplateConfig` is not specified, the operation creates only the project entity. You must then manually call the `Environment`, `PipelineTrigger`, and `PipelineTriggerEvent` APIs to complete the deployment.'."\n"
."\n"
.'><notice>'."\n"
."\n"
.'Deployment from a template is free. After the deployment, the resulting cloud resources are billed according to the pricing of each cloud product.'."\n"
."\n"
.'></notice>',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [],
],
'ramActions' => [
[
'operationType' => 'create',
'ramAction' => [
'action' => 'devs:CreateProject',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Devs', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
],
],
'CreateTask' => [
'path' => '/2023-07-14/tasks',
'methods' => ['post'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'consumes' => ['application/json'],
'produces' => ['application/json'],
'operationType' => 'readAndWrite',
'deprecated' => false,
'systemTags' => [
'operationType' => 'create',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeNodes' => ['FEATUREdevsJWJ2XN'],
'tenantRelevance' => 'publicInformation',
],
'parameters' => [
[
'name' => 'body',
'in' => 'body',
'style' => 'json',
'schema' => ['description' => 'Specifies the pipeline task to create.', '$ref' => '#/components/schemas/Task', 'title' => '', 'required' => false, 'example' => ''],
],
],
'responses' => [
200 => [
'schema' => ['description' => 'The created pipeline task.', '$ref' => '#/components/schemas/Task', 'title' => '', 'example' => ''],
],
],
'title' => 'Create a pipeline job execution',
'summary' => 'Starts a pipeline task.',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [],
],
'ramActions' => [
[
'operationType' => 'create',
'ramAction' => [
'action' => 'devs:CreateTask',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Devs', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"spec\\": {\\n \\"templateName\\": \\"my-task-template\\",\\n \\"context\\": {\\n \\"data\\": {\\n \\"test\\": \\"test\\",\\n \\"test2\\": 1\\n }\\n }\\n },\\n \\"status\\": {\\n \\"statusGeneration\\": 123,\\n \\"phase\\": \\"Success\\",\\n \\"executionDetails\\": [\\n \\"step1: start task.\\"\\n ],\\n \\"invocations\\": [\\n {\\n \\"invocationID\\": \\"E099843B-10A2-4936-9964-4E0EE263D564\\",\\n \\"requestID\\": \\"1B3058B1-F1C9-457C-B95C-2C250A4B3118\\",\\n \\"invocationTarget\\": \\"acs:fc:cn-hangzhou:143xxxx:services/xxx.LATEST/functions/xxx\\",\\n \\"status\\": \\"success\\",\\n \\"output\\": \\"{\\\\\\"key1\\\\\\":\\\\\\"value1\\\\\\",\\\\\\"key2\\\\\\":\\\\\\"value2\\\\\\"}\\",\\n \\"instanceID\\": \\"c-nkj8shz7xxxx\\",\\n \\"slsProject\\": \\"my-sls-project\\",\\n \\"slsLogStore\\": \\"my-sls-logstore\\"\\n }\\n ],\\n \\"latestExecError\\": {\\n \\"title\\": \\"权限不足错误\\",\\n \\"message\\": \\"部署服务[_appcenter-xxx]失败,权限不足\\",\\n \\"code\\": \\"AccessDenied\\",\\n \\"requestId\\": \\"1-26d1287xxxxx\\",\\n \\"extraInfo\\": \\"部署辅助函数权限不足,需要添加额外的权限以解决问题\\"\\n }\\n },\\n \\"uid\\": \\"1455541096***548\\",\\n \\"generation\\": 1,\\n \\"description\\": \\"Task example.\\",\\n \\"kind\\": \\"Task\\",\\n \\"createdTime\\": \\"2021-11-19T09:34:38Z\\",\\n \\"name\\": \\"my-task\\",\\n \\"labels\\": {\\n \\"key\\": \\"value to the label key.\\"\\n },\\n \\"resourceVersion\\": 1\\n}","type":"json"}]',
],
'CreateToolset' => [
'path' => '/2023-07-14/toolsets',
'methods' => ['post'],
'schemes' => ['https'],
'security' => [
[
'AK' => [],
],
],
'consumes' => ['application/json'],
'produces' => ['application/json'],
'operationType' => 'readAndWrite',
'deprecated' => false,
'systemTags' => [
'operationType' => 'create',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeNodes' => ['FEATUREdevsJVP2BW'],
'tenantRelevance' => 'publicInformation',
],
'parameters' => [
[
'name' => 'body',
'in' => 'body',
'style' => 'json',
'schema' => ['description' => 'The toolset entity.', '$ref' => '#/components/schemas/Toolset', 'required' => false, 'title' => '', 'example' => ''],
],
],
'responses' => [
200 => [
'schema' => ['description' => 'The created toolset entity.', '$ref' => '#/components/schemas/Toolset', 'title' => '', 'example' => ''],
],
],
'staticInfo' => ['returnType' => 'synchronous'],
'eventInfo' => [
'enable' => false,
'eventNames' => [],
],
'title' => 'Create a tool set ',
'summary' => 'Creates a toolset.',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [],
],
'ramActions' => [
[
'operationType' => 'create',
'ramAction' => [
'action' => 'devs:CreateToolset',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Devs', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
],
],
'DeleteArtifact' => [
'path' => '/2023-07-14/artifacts/{name}',
'methods' => ['delete'],
'schemes' => ['https'],
'security' => [
[
'AK' => [],
],
],
'consumes' => ['application/json'],
'produces' => ['application/json'],
'operationType' => 'write',
'deprecated' => false,
'systemTags' => [
'operationType' => 'delete',
'riskType' => 'high',
'chargeType' => 'free',
'abilityTreeNodes' => ['FEATUREdevsQ39RNT'],
'tenantRelevance' => 'publicInformation',
],
'parameters' => [
[
'name' => 'name',
'in' => 'path',
'schema' => ['description' => 'The name of the artifact.', 'type' => 'string', 'title' => '', 'required' => false, 'example' => 'demo-artifact'],
],
],
'responses' => [],
'staticInfo' => ['returnType' => 'synchronous'],
'title' => 'Delete deliverable ',
'summary' => 'Deletes an artifact.',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [],
],
'ramActions' => [
[
'operationType' => 'delete',
'ramAction' => [
'action' => 'devs:DeleteArtifact',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Devs', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{}","type":"json"}]',
],
'DeleteConnection' => [
'summary' => 'Deletes a connection.',
'path' => '/2023-07-14/connections/{name}',
'methods' => ['delete'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'consumes' => ['application/json'],
'produces' => ['application/json'],
'operationType' => 'write',
'deprecated' => false,
'systemTags' => [
'operationType' => 'delete',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeNodes' => ['FEATUREdevsTN0KZI'],
'tenantRelevance' => 'publicInformation',
],
'parameters' => [
[
'name' => 'name',
'in' => 'path',
'schema' => ['description' => 'The name of the connection to delete.', 'type' => 'string', 'example' => 'demo-name', 'title' => '', 'required' => false],
],
[
'name' => 'force',
'in' => 'query',
'schema' => ['description' => 'Specifies whether to forcibly delete the connection. By default, you cannot delete a connection that is associated with a repository. Set this parameter to `true` to force the deletion.'."\n"
."\n"
.'><notice>'."\n"
."\n"
.'Deleting a connection does not delete any associated repository.'."\n"
."\n"
.'></notice>', 'type' => 'boolean', 'title' => '', 'required' => false, 'example' => 'true'],
],
],
'responses' => [
200 => [
'schema' => [
'title' => 'Schema of Response',
'description' => 'The data returned for the request.',
'type' => 'object',
'properties' => [
'requestId' => ['title' => 'Id of the request', 'description' => 'The request ID.', 'type' => 'string', 'example' => 'A5152937-1C8A-5260-90FA-520CEF028D2D'],
],
'example' => '',
],
],
],
'eventInfo' => [
'enable' => false,
'eventNames' => [],
],
'title' => 'Delete identity binding',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [],
],
'ramActions' => [
[
'operationType' => 'delete',
'ramAction' => [
'action' => 'devs:DeleteConnection',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Devs', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"A5152937-1C8A-5260-90FA-520CEF028D2D\\"\\n}","type":"json"}]',
],
'DeleteEnvironment' => [
'summary' => 'Deletes a specified environment along with its associated entities in the project, including pipeline triggers, pipeline trigger records, pipeline templates, and pipelines.',
'path' => '/2023-07-14/projects/{projectName}/environments/{name}',
'methods' => ['delete'],
'schemes' => ['https'],
'security' => [
[
'AK' => [],
],
],
'consumes' => ['application/json'],
'produces' => ['application/json'],
'operationType' => 'write',
'deprecated' => false,
'systemTags' => [
'operationType' => 'delete',
'riskType' => 'high',
'chargeType' => 'free',
'abilityTreeNodes' => ['FEATUREdevsXL1PN1'],
'tenantRelevance' => 'publicInformation',
],
'parameters' => [
[
'name' => 'projectName',
'in' => 'path',
'schema' => ['title' => 'Project name', 'description' => 'The project name.', 'type' => 'string', 'required' => true, 'example' => 'demo-project'],
],
[
'name' => 'name',
'in' => 'path',
'schema' => ['description' => 'The environment name.', 'type' => 'string', 'required' => true, 'example' => 'demo-env', 'title' => ''],
],
],
'responses' => [],
'staticInfo' => ['returnType' => 'synchronous'],
'title' => 'Delete Environment',
'description' => 'Deleting an environment does not currently delete its associated cloud resources. You must delete these resources manually.',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [],
],
'ramActions' => [
[
'operationType' => 'delete',
'ramAction' => [
'action' => 'devs:DeleteEnvironment',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Devs', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{}","type":"json"}]',
],
'DeleteProject' => [
'summary' => 'Deletes a project and cascades the deletion to all its related entities, including environments, pipeline triggers, pipeline trigger records, pipeline templates, and pipelines.',
'path' => '/2023-07-14/projects/{name}',
'methods' => ['delete'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'consumes' => ['application/json'],
'produces' => ['application/json'],
'operationType' => 'write',
'deprecated' => false,
'systemTags' => [
'operationType' => 'delete',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeNodes' => ['FEATUREdevsXL1PN1'],
'tenantRelevance' => 'publicInformation',
],
'parameters' => [
[
'name' => 'name',
'in' => 'path',
'schema' => ['description' => 'The project name.', 'type' => 'string', 'example' => 'demo-name', 'title' => '', 'required' => false],
],
[
'name' => 'force',
'in' => 'query',
'schema' => ['description' => 'Specifies whether to forcibly delete a project that contains multiple environments. If this parameter is set to `true`, this operation deletes the project and all its related entities. If this parameter is set to `false` or omitted, the operation fails with an exception. You must first delete the additional environments.', 'type' => 'boolean', 'title' => '', 'required' => false, 'example' => 'true'],
],
],
'responses' => [],
'staticInfo' => ['returnType' => 'synchronous'],
'title' => 'Delete Project',
'description' => '1. If a project contains no environments or only the default environment, this operation deletes the project and all its related entities. These entities include pipeline triggers, pipeline trigger records, pipeline templates, and pipelines.'."\n"
."\n"
.'2. If a project has multiple environments and the `force` parameter is set to `true`, this operation forcibly deletes the project and all entities in every environment. If `force` is set to `false` or is omitted, the operation fails with an exception. You must first delete the additional environments.'."\n"
."\n"
.'> This operation does not delete cloud resources deployed within the project, such as functions and custom domain names.',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [],
],
'ramActions' => [
[
'operationType' => 'delete',
'ramAction' => [
'action' => 'devs:DeleteProject',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Devs', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{}","type":"json"}]',
],
'DeleteToolset' => [
'summary' => 'Deletes a specified toolset.',
'path' => '/2023-07-14/toolsets/{name}',
'methods' => ['delete'],
'schemes' => ['https'],
'security' => [
[
'AK' => [],
],
],
'consumes' => ['application/json'],
'produces' => ['application/json'],
'operationType' => 'write',
'deprecated' => false,
'systemTags' => [
'operationType' => 'delete',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeNodes' => ['FEATUREdevs6LLJT1'],
'tenantRelevance' => 'publicInformation',
],
'parameters' => [
[
'name' => 'name',
'in' => 'path',
'schema' => ['description' => 'The name of the toolset.', 'type' => 'string', 'example' => 'my-toolset', 'title' => '', 'required' => false],
],
],
'responses' => [],
'staticInfo' => ['returnType' => 'synchronous'],
'title' => 'Delete Tool Set ',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [],
],
'ramActions' => [
[
'operationType' => 'delete',
'ramAction' => [
'action' => 'devs:DeleteToolset',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Devs', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{}","type":"json"}]',
],
'DeployEnvironment' => [
'summary' => 'Triggers a manual environment deployment.',
'path' => '/2023-07-14/projects/{projectName}/environments/{name}/deploy',
'methods' => ['patch'],
'schemes' => ['https'],
'security' => [
[
'AK' => [],
],
],
'consumes' => ['application/json'],
'produces' => ['application/json'],
'operationType' => 'readAndWrite',
'deprecated' => false,
'systemTags' => [
'operationType' => 'update',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeNodes' => ['FEATUREdevsXL1PN1'],
'autoTest' => true,
'tenantRelevance' => 'publicInformation',
],
'parameters' => [
[
'name' => 'projectName',
'in' => 'path',
'schema' => ['description' => 'The project name.', 'type' => 'string', 'example' => 'demo-name', 'title' => '', 'required' => false],
],
[
'name' => 'name',
'in' => 'path',
'schema' => ['description' => 'The environment name.', 'type' => 'string', 'example' => 'demo-name', 'title' => '', 'required' => false],
],
[
'name' => 'body',
'in' => 'body',
'style' => 'json',
'schema' => ['description' => 'The deployment options.', '$ref' => '#/components/schemas/DeployEnvironmentOptions', 'title' => '', 'required' => false, 'example' => ''],
],
],
'responses' => [
200 => [
'schema' => ['description' => 'Details of the environment deployment.', '$ref' => '#/components/schemas/EnvironmentDeployment', 'title' => '', 'example' => ''],
],
],
'staticInfo' => ['returnType' => 'synchronous'],
'eventInfo' => [
'enable' => false,
'eventNames' => [],
],
'title' => 'Deploy environment',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [],
],
'ramActions' => [
[
'operationType' => 'update',
'ramAction' => [
'action' => 'devs:DeployEnvironment',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Devs', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
],
],
'FetchArtifactDownloadUrl' => [
'path' => '/2023-07-14/artifacts/{name}/fetchCode',
'methods' => ['get'],
'schemes' => ['https'],
'security' => [
[
'AK' => [],
],
],
'consumes' => [],
'produces' => ['application/json'],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => [
'operationType' => 'get',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeNodes' => ['FEATUREdevsQ39RNT'],
],
'parameters' => [
[
'name' => 'name',
'in' => 'path',
'schema' => ['description' => 'The artifact name.', 'type' => 'string', 'title' => '', 'required' => false, 'example' => 'demo-name'],
],
],
'responses' => [
200 => [
'schema' => ['description' => 'An object that contains the artifact\'s temporary download URL and checksum.', '$ref' => '#/components/schemas/ArtifactCode', 'title' => '', 'example' => ''],
],
],
'staticInfo' => ['returnType' => 'synchronous'],
'title' => 'Obtain the temporary download URL of the deliverable ',
'summary' => 'Retrieves a temporary download URL for an artifact\'s ZIP package.',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [],
],
'ramActions' => [
[
'operationType' => 'get',
'ramAction' => [
'action' => 'devs:FetchArtifactDownloadUrl',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Devs', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
],
],
'FetchArtifactTempBucketToken' => [
'summary' => 'Retrieves the `bucket`, `object` path, and temporary Security Token Service (STS) credentials for uploading an `artifact`.',
'path' => '/2023-07-14/artifacts/action/fetchTempBucketToken',
'methods' => ['get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'produces' => ['application/json'],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => [
'operationType' => 'get',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeNodes' => ['FEATUREdevsQ39RNT'],
'tenantRelevance' => 'publicInformation',
],
'parameters' => [],
'responses' => [
200 => [
'schema' => ['description' => 'Contains the `object` name, `bucket` name, `region`, and temporary `credentials` for uploading an `artifact`.', '$ref' => '#/components/schemas/ArtifactTempBucketToken', 'title' => '', 'example' => ''],
],
[],
],
'title' => 'Obtain temporary upload token for deliverables',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [],
],
'ramActions' => [
[
'operationType' => 'get',
'ramAction' => [
'action' => 'devs:FetchArtifactTempBucketToken',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Devs', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
],
],
'FetchConnectionCredential' => [
'path' => '/2023-07-14/connections/{name}/fetchCredential',
'methods' => ['get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'consumes' => ['application/json'],
'produces' => ['application/json'],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => [
'operationType' => 'get',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeNodes' => ['FEATUREdevsJWJ2XN'],
'tenantRelevance' => 'publicInformation',
],
'parameters' => [
[
'name' => 'name',
'in' => 'path',
'schema' => ['description' => 'The name of the connection.', 'type' => 'string', 'example' => 'demo-name', 'title' => '', 'required' => false],
],
],
'responses' => [
200 => [
'schema' => ['description' => 'The identity-bound credential.', '$ref' => '#/components/schemas/OAuthCredential', 'title' => '', 'example' => ''],
],
],
'title' => 'Obtain identity binding Credential ',
'summary' => 'Retrieves the identity-bound credential created after the authorization flow is complete. The development platform uses this credential to access a third-party code hosting platform.',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [],
],
'ramActions' => [
[
'operationType' => 'get',
'ramAction' => [
'action' => 'devs:FetchConnectionCredential',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Devs', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"token\\": \\"4e84246b6b3962cd3d207aad1ea2f911\\",\\n \\"type\\": \\"bearer\\",\\n \\"scope\\": \\"user_info projects pull_requests hook gists emails\\",\\n \\"expiration\\": 1716263324603,\\n \\"createdTime\\": 1716176924603,\\n \\"refreshToken\\": \\"4d77bfae284770d94ebeed6b0199ebfd65e3943ba4f1e44dc36d792a93ba0d13\\"\\n}","type":"json"}]',
],
'GetArtifact' => [
'summary' => 'Retrieves a specific artifact.',
'path' => '/2023-07-14/artifacts/{name}',
'methods' => ['get'],
'schemes' => ['https'],
'security' => [
[
'AK' => [],
],
],
'produces' => ['application/json'],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => [
'operationType' => 'get',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeNodes' => ['FEATUREdevsQ39RNT'],
],
'parameters' => [
[
'name' => 'name',
'in' => 'path',
'schema' => ['description' => 'The name of the artifact.', 'type' => 'string', 'title' => '', 'required' => false, 'example' => 'demo-artifact'],
],
],
'responses' => [
200 => [
'schema' => ['description' => 'Contains details of the artifact.', '$ref' => '#/components/schemas/Artifact', 'title' => '', 'example' => ''],
],
],
'staticInfo' => ['returnType' => 'synchronous'],
'title' => 'Query deliverables ',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [],
],
'ramActions' => [
[
'operationType' => 'get',
'ramAction' => [
'action' => 'devs:GetArtifact',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Devs', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
],
],
'GetEnvironment' => [
'summary' => 'Retrieves information about an environment.',
'path' => '/2023-07-14/projects/{projectName}/environments/{name}',
'methods' => ['get'],
'schemes' => ['https'],
'security' => [
[
'AK' => [],
],
],
'consumes' => ['application/json'],
'produces' => ['application/json'],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => [
'operationType' => 'get',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeNodes' => ['FEATUREdevsXL1PN1'],
'tenantRelevance' => 'publicInformation',
],
'parameters' => [
[
'name' => 'projectName',
'in' => 'path',
'schema' => ['title' => 'Project name', 'description' => 'The project name.', 'type' => 'string', 'required' => true, 'example' => 'demo-project'],
],
[
'name' => 'name',
'in' => 'path',
'schema' => ['description' => 'The environment name.', 'type' => 'string', 'required' => true, 'example' => 'demo-env', 'title' => ''],
],
],
'responses' => [
200 => [
'schema' => ['description' => 'The environment entity.', '$ref' => '#/components/schemas/Environment', 'title' => '', 'example' => ''],
],
],
'staticInfo' => ['returnType' => 'synchronous'],
'eventInfo' => [
'enable' => false,
'eventNames' => [],
],
'title' => 'Query environment',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [],
],
'ramActions' => [
[
'operationType' => 'get',
'ramAction' => [
'action' => 'devs:GetEnvironment',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Devs', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
],
],
'GetEnvironmentDeployment' => [
'path' => '/2023-07-14/environmentdeployments/{name}',
'methods' => ['get'],
'schemes' => ['https'],
'security' => [
[
'AK' => [],
],
],
'produces' => ['application/json'],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => [
'operationType' => 'get',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeNodes' => ['FEATUREdevsJWJ2XN'],
'autoTest' => true,
'tenantRelevance' => 'publicInformation',
],
'parameters' => [
[
'name' => 'name',
'in' => 'path',
'schema' => ['description' => 'The name of the environment deployment.', 'type' => 'string', 'example' => 'demo-name', 'title' => '', 'required' => false],
],
],
'responses' => [
200 => [
'schema' => ['description' => 'Details of the environment deployment.', '$ref' => '#/components/schemas/EnvironmentDeployment', 'title' => '', 'example' => ''],
],
],
'eventInfo' => [
'enable' => false,
'eventNames' => [],
],
'title' => 'Query environment deployment details ',
'summary' => 'Retrieves the details of an environment deployment.',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [],
],
'ramActions' => [
[
'operationType' => 'get',
'ramAction' => [
'action' => 'devs:GetEnvironmentDeployment',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Devs', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
],
],
'GetPipeline' => [
'path' => '/2023-07-14/pipelines/{name}',
'methods' => ['get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'consumes' => ['application/json'],
'produces' => ['application/json'],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => ['operationType' => 'get'],
'parameters' => [
[
'name' => 'name',
'in' => 'path',
'schema' => ['description' => 'The name of the pipeline.', 'type' => 'string', 'example' => 'demo-name', 'title' => '', 'required' => false],
],
],
'responses' => [
200 => [
'schema' => ['description' => 'The pipeline execution.', '$ref' => '#/components/schemas/Pipeline', 'title' => '', 'example' => ''],
],
],
'title' => 'Query pipeline executions',
'summary' => 'Retrieves a pipeline execution.',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [],
],
'ramActions' => [
[
'operationType' => 'get',
'ramAction' => [
'action' => 'devs:GetPipeline',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Devs', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"spec\\": {\\n \\"templateName\\": \\"my-pipeline-template\\",\\n \\"context\\": {\\n \\"data\\": {\\n \\"test\\": \\"test\\",\\n \\"test2\\": 1\\n }\\n },\\n \\"templateSpec\\": {\\n \\"context\\": {\\n \\"data\\": {\\n \\"test\\": \\"test\\",\\n \\"test2\\": 1\\n }\\n },\\n \\"tasks\\": [\\n {\\n \\"name\\": \\"task-1\\",\\n \\"context\\": {\\n \\"data\\": {\\n \\"test\\": \\"test\\",\\n \\"test2\\": 1\\n }\\n },\\n \\"taskTemplate\\": \\"serverless-runner\\",\\n \\"runAfters\\": [\\n {\\n \\"name\\": \\"task-1\\"\\n }\\n ]\\n }\\n ]\\n }\\n },\\n \\"status\\": {\\n \\"phase\\": \\"Success\\",\\n \\"latestExecError\\": {\\n \\"title\\": \\"权限不足错误\\",\\n \\"message\\": \\"部署服务[_appcenter-xxx]失败,权限不足\\",\\n \\"code\\": \\"AccessDenied\\",\\n \\"requestId\\": \\"1-26d1287xxxxx\\",\\n \\"extraInfo\\": \\"部署辅助函数权限不足,需要添加额外的权限以解决问题\\"\\n }\\n },\\n \\"uid\\": \\"1455541096***548\\",\\n \\"generation\\": 1,\\n \\"description\\": \\"Pipeline example.\\",\\n \\"kind\\": \\"Pipeline\\",\\n \\"createdTime\\": \\"2021-11-19T09:34:38Z\\",\\n \\"name\\": \\"my-pipeline\\",\\n \\"labels\\": {\\n \\"key\\": \\"value to the label key.\\"\\n },\\n \\"resourceVersion\\": 1\\n}","type":"json"}]',
],
'GetProject' => [
'summary' => 'Gets a specified project.',
'path' => '/2023-07-14/projects/{name}',
'methods' => ['get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'produces' => ['application/json'],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => [
'operationType' => 'get',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeNodes' => ['FEATUREdevsXL1PN1'],
'tenantRelevance' => 'publicInformation',
],
'parameters' => [
[
'name' => 'name',
'in' => 'path',
'schema' => ['description' => 'The name of the project.', 'type' => 'string', 'example' => 'demo-name', 'title' => '', 'required' => false],
],
],
'responses' => [
200 => [
'schema' => ['description' => 'The project entity.', '$ref' => '#/components/schemas/Project', 'title' => '', 'example' => ''],
],
],
'staticInfo' => ['returnType' => 'synchronous'],
'eventInfo' => [
'enable' => false,
'eventNames' => [],
],
'title' => 'Query project ',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [],
],
'ramActions' => [
[
'operationType' => 'get',
'ramAction' => [
'action' => 'devs:GetProject',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Devs', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
],
],
'GetRepository' => [
'path' => '/2023-07-14/repositories/{name}',
'methods' => ['get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'consumes' => ['application/json'],
'produces' => ['application/json'],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => [
'operationType' => 'get',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeNodes' => ['FEATUREdevsTN0KZI'],
'tenantRelevance' => 'publicInformation',
],
'parameters' => [
[
'name' => 'name',
'in' => 'path',
'schema' => ['description' => 'The name of the repository.', 'type' => 'string', 'example' => 'demo-name', 'title' => '', 'required' => false],
],
],
'responses' => [
200 => [
'schema' => ['description' => 'The repository binding entity.', '$ref' => '#/components/schemas/Repository', 'title' => '', 'example' => ''],
],
],
'title' => 'Query repository binding',
'summary' => 'Retrieves a repository binding entity.',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [],
],
'ramActions' => [
[
'operationType' => 'get',
'ramAction' => [
'action' => 'devs:GetRepository',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Devs', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"uid\\": \\"1455541096***548\\",\\n \\"kind\\": \\"Repository\\",\\n \\"createdTime\\": \\"2021-11-19T09:34:38Z\\",\\n \\"name\\": \\"my-repository\\",\\n \\"spec\\": {\\n \\"connectionName\\": \\"awesome-connection\\",\\n \\"cloneUrl\\": \\"https://github.com/DDofDD/start-springboot-lfgy.git\\",\\n \\"platform\\": \\"github\\",\\n \\"id\\": 312649,\\n \\"owner\\": \\"my-org-name\\",\\n \\"displayName\\": \\"my-repo-name\\",\\n \\"webUrl\\": \\"https://github.com/my-org-name/my-repo-name\\"\\n },\\n \\"labels\\": {\\n \\"key\\": \\"key=value\\"\\n },\\n \\"description\\": \\"test-description\\"\\n}","type":"json"}]',
],
'GetServiceDeployment' => [
'path' => '/2023-07-14/servicedeployments/{name}',
'methods' => ['get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'produces' => ['application/json'],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => [
'operationType' => 'get',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeNodes' => ['FEATUREdevsJWJ2XN'],
'autoTest' => true,
'tenantRelevance' => 'publicInformation',
],
'parameters' => [
[
'name' => 'name',
'in' => 'path',
'schema' => ['description' => 'The name of the service deployment.', 'type' => 'string', 'example' => 'demo-name', 'title' => '', 'required' => false],
],
],
'responses' => [
200 => [
'schema' => ['description' => 'Details of the service deployment.', '$ref' => '#/components/schemas/ServiceDeployment', 'title' => '', 'example' => ''],
],
],
'title' => 'Query service deployment details ',
'summary' => 'Retrieves information about a service deployment.',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [],
],
'ramActions' => [
[
'operationType' => 'get',
'ramAction' => [
'action' => 'devs:GetServiceDeployment',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Devs', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
],
],
'GetTask' => [
'summary' => 'Retrieves the execution details of a specific pipeline task.',
'path' => '/2023-07-14/tasks/{name}',
'methods' => ['get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'produces' => ['application/json'],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => [
'operationType' => 'get',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeNodes' => ['FEATUREdevsJWJ2XN'],
'tenantRelevance' => 'publicInformation',
],
'parameters' => [
[
'name' => 'name',
'in' => 'path',
'schema' => ['description' => 'The name of the task.', 'type' => 'string', 'example' => 'demo-name', 'title' => '', 'required' => false],
],
],
'responses' => [
200 => [
'schema' => ['description' => 'The execution details of the pipeline task.', '$ref' => '#/components/schemas/Task', 'title' => '', 'example' => ''],
],
],
'title' => 'Query pipeline job execution',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [],
],
'ramActions' => [
[
'operationType' => 'get',
'ramAction' => [
'action' => 'devs:GetTask',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Devs', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"spec\\": {\\n \\"templateName\\": \\"my-task-template\\",\\n \\"context\\": {\\n \\"data\\": {\\n \\"test\\": \\"test\\",\\n \\"test2\\": 1\\n }\\n }\\n },\\n \\"status\\": {\\n \\"statusGeneration\\": 123,\\n \\"phase\\": \\"Success\\",\\n \\"executionDetails\\": [\\n \\"step1: start task.\\"\\n ],\\n \\"invocations\\": [\\n {\\n \\"invocationID\\": \\"E099843B-10A2-4936-9964-4E0EE263D564\\",\\n \\"requestID\\": \\"1B3058B1-F1C9-457C-B95C-2C250A4B3118\\",\\n \\"invocationTarget\\": \\"acs:fc:cn-hangzhou:143xxxx:services/xxx.LATEST/functions/xxx\\",\\n \\"status\\": \\"success\\",\\n \\"output\\": \\"{\\\\\\"key1\\\\\\":\\\\\\"value1\\\\\\",\\\\\\"key2\\\\\\":\\\\\\"value2\\\\\\"}\\",\\n \\"instanceID\\": \\"c-nkj8shz7xxxx\\",\\n \\"slsProject\\": \\"my-sls-project\\",\\n \\"slsLogStore\\": \\"my-sls-logstore\\"\\n }\\n ],\\n \\"latestExecError\\": {\\n \\"title\\": \\"权限不足错误\\",\\n \\"message\\": \\"部署服务[_appcenter-xxx]失败,权限不足\\",\\n \\"code\\": \\"AccessDenied\\",\\n \\"requestId\\": \\"1-26d1287xxxxx\\",\\n \\"extraInfo\\": \\"部署辅助函数权限不足,需要添加额外的权限以解决问题\\"\\n }\\n },\\n \\"uid\\": \\"1455541096***548\\",\\n \\"generation\\": 1,\\n \\"description\\": \\"Task example.\\",\\n \\"kind\\": \\"Task\\",\\n \\"createdTime\\": \\"2021-11-19T09:34:38Z\\",\\n \\"name\\": \\"my-task\\",\\n \\"labels\\": {\\n \\"key\\": \\"value to the label key.\\"\\n },\\n \\"resourceVersion\\": 1\\n}","type":"json"}]',
],
'GetToolset' => [
'summary' => 'Gets a specific toolset.',
'path' => '/2023-07-14/toolsets/{name}',
'methods' => ['get'],
'schemes' => ['https'],
'security' => [
[
'AK' => [],
],
],
'consumes' => ['application/json'],
'produces' => ['application/json'],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => [
'operationType' => 'get',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeNodes' => ['FEATUREdevsJVP2BW'],
'tenantRelevance' => 'publicInformation',
],
'parameters' => [
[
'name' => 'name',
'in' => 'path',
'schema' => ['description' => 'The name of the toolset.', 'type' => 'string', 'example' => 'my-toolset', 'title' => '', 'required' => false],
],
],
'responses' => [
200 => [
'schema' => ['description' => 'The toolset object.', '$ref' => '#/components/schemas/Toolset', 'title' => '', 'example' => ''],
],
],
'staticInfo' => ['returnType' => 'synchronous'],
'eventInfo' => [
'enable' => false,
'eventNames' => [],
],
'title' => 'Obtain a tool set ',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [],
],
'ramActions' => [
[
'operationType' => 'get',
'ramAction' => [
'action' => 'devs:GetToolset',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Devs', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
],
],
'ListConnections' => [
'summary' => 'Retrieves a list of connections that match the specified filters.',
'path' => '/2023-07-14/connections',
'methods' => ['get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'consumes' => [],
'produces' => ['application/json'],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => [
'operationType' => 'list',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeNodes' => ['FEATUREdevsTN0KZI'],
'tenantRelevance' => 'publicInformation',
],
'parameters' => [
[
'name' => 'labelSelector',
'in' => 'query',
'style' => 'simple',
'schema' => [
'title' => '',
'description' => 'An array of label selectors to filter results. Returns connections that match all specified labels. Each selector acts as an AND condition.',
'type' => 'array',
'items' => ['description' => 'A single filter condition in the `labelSelector` array. The format must be `key=value`.', 'type' => 'string', 'example' => 'platform=github'."\n", 'title' => '', 'required' => false],
'required' => false,
'example' => '',
],
],
[
'name' => 'pageNumber',
'in' => 'query',
'schema' => ['description' => 'The page number of the results to return. The value must be 1 or greater and defaults to 1 if not specified.', 'type' => 'integer', 'format' => 'int64', 'title' => '', 'required' => false, 'example' => '1'],
],
[
'name' => 'pageSize',
'in' => 'query',
'schema' => ['description' => 'The number of results to return on each page. The value must be between 1 and 100 and defaults to 100 if not specified.', 'type' => 'integer', 'format' => 'int64', 'title' => '', 'required' => false, 'example' => '100'],
],
[
'name' => 'keyword',
'in' => 'query',
'schema' => ['description' => 'A keyword for a fuzzy search on the `name` field of the entity. The search is case-insensitive.', 'type' => 'string', 'title' => '', 'required' => false, 'example' => 'auto-'],
],
],
'responses' => [
200 => [
'schema' => [
'title' => '',
'description' => 'Paginated query results.',
'type' => 'object',
'properties' => [
'pageNumber' => ['description' => 'The current page number.', 'type' => 'integer', 'format' => 'int64', 'title' => '', 'example' => '1'],
'pageSize' => ['description' => 'The number of results on the current page.', 'type' => 'integer', 'format' => 'int64', 'title' => '', 'example' => '100'],
'totalCount' => ['description' => 'The total number of results that match the query.', 'type' => 'integer', 'format' => 'int64', 'title' => '', 'example' => '1'],
'data' => [
'title' => '',
'description' => 'An array of `Connection` objects.',
'type' => 'array',
'items' => ['description' => 'A `Connection` object that matches the query criteria.', '$ref' => '#/components/schemas/Connection', 'title' => '', 'example' => ''],
'example' => '',
],
],
'example' => '',
],
],
],
'eventInfo' => [
'enable' => false,
'eventNames' => [],
],
'title' => 'Batch query identity bindings',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [],
],
'ramActions' => [
[
'operationType' => 'list',
'ramAction' => [
'action' => 'devs:ListConnections',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Devs', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"pageNumber\\": 1,\\n \\"pageSize\\": 100,\\n \\"totalCount\\": 1,\\n \\"data\\": [\\n {\\n \\"uid\\": \\"1455541096***548\\",\\n \\"kind\\": \\"Connection\\",\\n \\"createdTime\\": \\"2021-11-19T09:34:38Z\\",\\n \\"name\\": \\"my-connection\\",\\n \\"spec\\": {\\n \\"platform\\": \\"github\\",\\n \\"account\\": {\\n \\"name\\": \\"your_username\\",\\n \\"displayName\\": \\"your_displayname\\",\\n \\"id\\": \\"1\\",\\n \\"avatar\\": \\"https://gitee.com/assets/no_portrait.png\\",\\n \\"uri\\": \\"https://gitlab.com\\"\\n },\\n \\"gitlabConfig\\": {\\n \\"isFixedIP\\": true,\\n \\"uri\\": \\"http://gitlab.c16194660f14898a0810408171302ac.cn-shanghai.alicontainer.com/\\",\\n \\"token\\": \\"your-token\\"\\n }\\n },\\n \\"labels\\": {\\n \\"key\\": \\"key=value\\"\\n },\\n \\"description\\": \\"test-description\\",\\n \\"status\\": {\\n \\"installation\\": {\\n \\"stage\\": \\"finished\\",\\n \\"message\\": \\"Please click \'actionUri\' to complete the OAuth authorization process\\",\\n \\"actionUri\\": \\"https://github.com/login/oauth/authorize?client_id=86059a1b2bb20d3e5fc3&scope=repo,repo:status,delete_repo\\"\\n }\\n }\\n }\\n ]\\n}","type":"json"}]',
],
'ListEnvironments' => [
'path' => '/2023-07-14/projects/{projectName}/environments/',
'methods' => ['get'],
'schemes' => ['https'],
'security' => [
[
'AK' => [],
],
],
'consumes' => ['application/json'],
'produces' => ['application/json'],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => [
'operationType' => 'list',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeNodes' => ['FEATUREdevsXL1PN1'],
'tenantRelevance' => 'publicInformation',
],
'parameters' => [
[
'name' => 'projectName',
'in' => 'path',
'schema' => ['title' => 'Project Name ', 'description' => 'The name of the project.', 'type' => 'string', 'required' => true, 'example' => 'demo-project'],
],
[
'name' => 'labelSelector',
'in' => 'query',
'style' => 'simple',
'schema' => [
'title' => '',
'description' => 'Selectors used to filter environments by their `labels`. Only environments that match all selectors are returned. The selectors are combined by using AND logic.',
'type' => 'array',
'items' => ['description' => 'A filter condition in the `labelSelector` array, in the format `key=value`.', 'type' => 'string', 'example' => 'branch=main', 'title' => '', 'required' => false],
'required' => false,
'example' => 'demo-project',
],
],
[
'name' => 'pageNumber',
'in' => 'query',
'schema' => ['description' => 'The page number to retrieve, starting from 1. Defaults to 1 if not specified.', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '1', 'title' => ''],
],
[
'name' => 'pageSize',
'in' => 'query',
'schema' => ['description' => 'The number of entries to return on each page. Defaults to 100. Valid values: 1 to 100.', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '10', 'title' => ''],
],
[
'name' => 'keyword',
'in' => 'query',
'schema' => ['description' => 'The keyword for a case-insensitive fuzzy search on the `name` field of the entity.', 'type' => 'string', 'example' => 'dev', 'title' => '', 'required' => false],
],
],
'responses' => [
200 => [
'schema' => [
'title' => '',
'description' => 'The paginated results of the query.',
'type' => 'object',
'properties' => [
'pageNumber' => ['description' => 'The current page number. This value starts from 1.', 'type' => 'integer', 'format' => 'int64', 'example' => '1', 'title' => ''],
'pageSize' => ['description' => 'The number of entries returned on the current page.', 'type' => 'integer', 'format' => 'int64', 'example' => '50', 'title' => ''],
'totalCount' => ['description' => 'The total number of entries that match the query.', 'type' => 'integer', 'format' => 'int64', 'example' => '100', 'title' => ''],
'data' => [
'title' => '',
'description' => 'An array of environment objects.',
'type' => 'array',
'items' => ['description' => 'An environment object.', '$ref' => '#/components/schemas/Environment', 'title' => '', 'example' => ''],
'example' => '',
],
],
'example' => '',
],
],
],
'staticInfo' => ['returnType' => 'synchronous'],
'title' => 'Batch query environments',
'summary' => 'Lists environments that match the specified criteria.',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [],
],
'ramActions' => [
[
'operationType' => 'list',
'ramAction' => [
'action' => 'devs:ListEnvironments',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Devs', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
],
],
'ListPipelines' => [
'path' => '/2023-07-14/pipelines',
'methods' => ['get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'consumes' => [],
'produces' => ['application/json'],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => ['operationType' => 'list'],
'parameters' => [
[
'name' => 'labelSelector',
'in' => 'query',
'style' => 'simple',
'schema' => [
'title' => '',
'description' => 'A selector to filter resources by labels. The API returns only resources that match all specified `key=value` pairs.',
'type' => 'array',
'items' => ['description' => 'A single label query in the `key=value` format.', 'type' => 'string', 'example' => 'label_key1=value1', 'title' => '', 'required' => false],
'required' => false,
'example' => '',
],
],
],
'responses' => [
200 => [
'schema' => [
'title' => '',
'description' => 'A list of Pipeline objects.',
'type' => 'array',
'items' => ['description' => 'A Pipeline object.', '$ref' => '#/components/schemas/Pipeline', 'title' => '', 'example' => ''],
'example' => '',
],
],
],
'title' => 'Batch query pipeline executions ',
'summary' => 'Lists Pipeline resources. Specify query parameters to narrow the results.',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [],
],
'ramActions' => [
[
'operationType' => 'list',
'ramAction' => [
'action' => 'devs:ListPipelines',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Devs', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"[\\n {\\n \\"spec\\": {\\n \\"templateName\\": \\"my-pipeline-template\\",\\n \\"context\\": {\\n \\"data\\": {\\n \\"test\\": \\"test\\",\\n \\"test2\\": 1\\n }\\n },\\n \\"templateSpec\\": {\\n \\"context\\": {\\n \\"data\\": {\\n \\"test\\": \\"test\\",\\n \\"test2\\": 1\\n }\\n },\\n \\"tasks\\": [\\n {\\n \\"name\\": \\"task-1\\",\\n \\"context\\": {\\n \\"data\\": {\\n \\"test\\": \\"test\\",\\n \\"test2\\": 1\\n }\\n },\\n \\"taskTemplate\\": \\"serverless-runner\\",\\n \\"runAfters\\": [\\n {\\n \\"name\\": \\"task-1\\"\\n }\\n ]\\n }\\n ]\\n }\\n },\\n \\"status\\": {\\n \\"phase\\": \\"Success\\",\\n \\"latestExecError\\": {\\n \\"title\\": \\"权限不足错误\\",\\n \\"message\\": \\"部署服务[_appcenter-xxx]失败,权限不足\\",\\n \\"code\\": \\"AccessDenied\\",\\n \\"requestId\\": \\"1-26d1287xxxxx\\",\\n \\"extraInfo\\": \\"部署辅助函数权限不足,需要添加额外的权限以解决问题\\"\\n }\\n },\\n \\"uid\\": \\"1455541096***548\\",\\n \\"generation\\": 1,\\n \\"description\\": \\"Pipeline example.\\",\\n \\"kind\\": \\"Pipeline\\",\\n \\"createdTime\\": \\"2021-11-19T09:34:38Z\\",\\n \\"name\\": \\"my-pipeline\\",\\n \\"labels\\": {\\n \\"key\\": \\"value to the label key.\\"\\n },\\n \\"resourceVersion\\": 1\\n }\\n]","type":"json"}]',
],
'ListProjects' => [
'summary' => 'Lists projects that match the specified criteria.',
'path' => '/2023-07-14/projects',
'methods' => ['get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'consumes' => [],
'produces' => ['application/json'],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => [
'operationType' => 'list',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeNodes' => ['FEATUREdevsXL1PN1'],
'tenantRelevance' => 'publicInformation',
],
'parameters' => [
[
'name' => 'labelSelector',
'in' => 'query',
'style' => 'simple',
'schema' => [
'title' => '',
'description' => 'An array of label selectors to filter projects based on the `labels` field. The operation returns only projects that match all specified selectors. The selectors are combined with a logical AND.',
'type' => 'array',
'items' => ['description' => 'A single filter condition in the `labelSelector` array, in the format `key=value`.', 'type' => 'string', 'example' => 'templateName=spring-boot-v3', 'title' => '', 'required' => false],
'required' => false,
'example' => '',
],
],
[
'name' => 'pageNumber',
'in' => 'query',
'schema' => ['description' => 'The page number to return. Defaults to 1.', 'type' => 'integer', 'format' => 'int64', 'title' => '', 'required' => false, 'example' => '1'],
],
[
'name' => 'pageSize',
'in' => 'query',
'schema' => ['description' => 'The number of projects to return per page. The value must be between 1 and 100. Defaults to 100.', 'type' => 'integer', 'format' => 'int64', 'title' => '', 'required' => false, 'example' => '100'],
],
[
'name' => 'keyword',
'in' => 'query',
'schema' => ['description' => 'A keyword for a case-insensitive fuzzy search on the `name` field of projects.', 'type' => 'string', 'title' => '', 'required' => false, 'example' => 'spring-boot'],
],
],
'responses' => [
200 => [
'schema' => [
'title' => '',
'description' => 'A paginated result of the query.',
'type' => 'object',
'properties' => [
'pageNumber' => ['description' => 'The returned page number.', 'type' => 'integer', 'format' => 'int64', 'title' => '', 'example' => '1'],
'pageSize' => ['description' => 'The number of projects per page.', 'type' => 'integer', 'format' => 'int64', 'title' => '', 'example' => '100'],
'totalCount' => ['description' => 'The total number of matching projects.', 'type' => 'integer', 'format' => 'int64', 'title' => '', 'example' => '1'],
'data' => [
'title' => '',
'description' => 'A list of projects.',
'type' => 'array',
'items' => ['description' => 'A Project object.', '$ref' => '#/components/schemas/Project', 'title' => '', 'example' => ''],
'example' => '',
],
],
'example' => '',
],
],
],
'staticInfo' => ['returnType' => 'synchronous'],
'title' => 'Batch Query Projects',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [],
],
'ramActions' => [
[
'operationType' => 'list',
'ramAction' => [
'action' => 'devs:ListProjects',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Devs', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
],
],
'ListServiceDeployments' => [
'summary' => 'Lists service deployments.',
'path' => '/2023-07-14/servicedeployments',
'methods' => ['get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'consumes' => [],
'produces' => ['application/json'],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => [
'operationType' => 'get',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeNodes' => ['FEATUREdevsJWJ2XN'],
'autoTest' => true,
'tenantRelevance' => 'publicInformation',
],
'parameters' => [
[
'name' => 'labelSelector',
'in' => 'query',
'style' => 'simple',
'schema' => [
'title' => '',
'description' => 'Filters service deployments by the specified labels.',
'type' => 'array',
'items' => ['description' => 'A label expression, such as `appName=my-app`.', 'type' => 'string', 'example' => 'label_key1=value1', 'title' => '', 'required' => false],
'required' => false,
'example' => '',
],
],
[
'name' => 'pageNumber',
'in' => 'query',
'schema' => ['description' => 'The page number.', 'type' => 'integer', 'format' => 'int64', 'title' => '', 'required' => false, 'example' => '1'],
],
[
'name' => 'pageSize',
'in' => 'query',
'schema' => ['description' => 'The number of items to return on each page.', 'type' => 'integer', 'format' => 'int64', 'title' => '', 'required' => false, 'example' => '10'],
],
[
'name' => 'keyword',
'in' => 'query',
'schema' => ['description' => 'The keyword used to filter service deployments.', 'type' => 'string', 'title' => '', 'required' => false, 'example' => 'demo'],
],
],
'responses' => [
200 => [
'schema' => [
'title' => '',
'description' => 'The result of the request.',
'type' => 'object',
'properties' => [
'pageNumber' => ['description' => 'The page number.', 'type' => 'integer', 'format' => 'int64', 'title' => '', 'example' => '1'],
'pageSize' => ['description' => 'The number of items per page.', 'type' => 'integer', 'format' => 'int64', 'title' => '', 'example' => '10'],
'totalCount' => ['description' => 'The total count of matching items.', 'type' => 'integer', 'format' => 'int64', 'title' => '', 'example' => '50'],
'data' => [
'title' => '',
'description' => 'An array of service deployment objects.',
'type' => 'array',
'items' => ['description' => 'A service deployment object.', '$ref' => '#/components/schemas/ServiceDeployment', 'title' => '', 'example' => ''],
'example' => '',
],
],
'example' => '',
],
],
],
'title' => 'Batch query service deployment information',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [],
],
'ramActions' => [
[
'operationType' => 'get',
'ramAction' => [
'action' => 'devs:ListServiceDeployments',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Devs', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
],
],
'ListTasks' => [
'summary' => 'Lists pipeline task executions.',
'path' => '/2023-07-14/tasks',
'methods' => ['get'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'consumes' => [],
'produces' => ['application/json'],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => [
'operationType' => 'get',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeNodes' => ['FEATUREdevsJWJ2XN'],
'autoTest' => true,
'tenantRelevance' => 'publicInformation',
],
'parameters' => [
[
'name' => 'labelSelector',
'in' => 'query',
'style' => 'simple',
'schema' => [
'title' => '',
'description' => 'The labels used to filter the results. This operation returns only the tasks that match all specified labels. These labels are combined with a logical AND.',
'type' => 'array',
'items' => ['description' => 'A label for filtering, specified in the \'key=value\' format.', 'type' => 'string', 'example' => 'label_key1=value1', 'title' => '', 'required' => false],
'required' => false,
'example' => '',
],
],
],
'responses' => [
200 => [
'schema' => [
'title' => '',
'description' => 'A list of pipeline tasks.',
'type' => 'array',
'items' => ['description' => 'A pipeline task.', '$ref' => '#/components/schemas/Task', 'title' => '', 'example' => ''],
'example' => '',
],
],
],
'title' => 'Batch query pipeline task executions',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [],
],
'ramActions' => [
[
'operationType' => 'get',
'ramAction' => [
'action' => 'devs:ListTasks',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Devs', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"[\\n {\\n \\"spec\\": {\\n \\"templateName\\": \\"my-task-template\\",\\n \\"context\\": {\\n \\"data\\": {\\n \\"test\\": \\"test\\",\\n \\"test2\\": 1\\n }\\n }\\n },\\n \\"status\\": {\\n \\"statusGeneration\\": 123,\\n \\"phase\\": \\"Success\\",\\n \\"executionDetails\\": [\\n \\"step1: start task.\\"\\n ],\\n \\"invocations\\": [\\n {\\n \\"invocationID\\": \\"E099843B-10A2-4936-9964-4E0EE263D564\\",\\n \\"requestID\\": \\"1B3058B1-F1C9-457C-B95C-2C250A4B3118\\",\\n \\"invocationTarget\\": \\"acs:fc:cn-hangzhou:143xxxx:services/xxx.LATEST/functions/xxx\\",\\n \\"status\\": \\"success\\",\\n \\"output\\": \\"{\\\\\\"key1\\\\\\":\\\\\\"value1\\\\\\",\\\\\\"key2\\\\\\":\\\\\\"value2\\\\\\"}\\",\\n \\"instanceID\\": \\"c-nkj8shz7xxxx\\",\\n \\"slsProject\\": \\"my-sls-project\\",\\n \\"slsLogStore\\": \\"my-sls-logstore\\"\\n }\\n ],\\n \\"latestExecError\\": {\\n \\"title\\": \\"权限不足错误\\",\\n \\"message\\": \\"部署服务[_appcenter-xxx]失败,权限不足\\",\\n \\"code\\": \\"AccessDenied\\",\\n \\"requestId\\": \\"1-26d1287xxxxx\\",\\n \\"extraInfo\\": \\"部署辅助函数权限不足,需要添加额外的权限以解决问题\\"\\n }\\n },\\n \\"uid\\": \\"1455541096***548\\",\\n \\"generation\\": 1,\\n \\"description\\": \\"Task example.\\",\\n \\"kind\\": \\"Task\\",\\n \\"createdTime\\": \\"2021-11-19T09:34:38Z\\",\\n \\"name\\": \\"my-task\\",\\n \\"labels\\": {\\n \\"key\\": \\"value to the label key.\\"\\n },\\n \\"resourceVersion\\": 1\\n }\\n]","type":"json"}]',
],
'ListToolsets' => [
'summary' => 'Lists toolsets.',
'path' => '/2023-07-14/toolsets',
'methods' => ['get'],
'schemes' => ['https'],
'security' => [
[
'AK' => [],
],
],
'consumes' => ['application/json'],
'produces' => ['application/json'],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => [
'operationType' => 'list',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeNodes' => ['FEATUREdevsJVP2BW'],
'tenantRelevance' => 'publicInformation',
],
'parameters' => [
[
'name' => 'labelSelector',
'in' => 'query',
'style' => 'simple',
'schema' => [
'title' => '',
'description' => 'Filters the list by the `labels` field of each entity. All conditions in the array must match (logical AND).',
'type' => 'array',
'items' => ['description' => 'A filter condition in the `labelSelector` array. The format is ${key}=${value}.', 'type' => 'string', 'example' => 'label_key1=value1', 'title' => '', 'required' => false],
'required' => false,
'example' => '',
],
],
[
'name' => 'pageNumber',
'in' => 'query',
'schema' => ['description' => 'The page number. Pages are 1-indexed. The default is 1.', 'type' => 'integer', 'format' => 'int64', 'title' => '', 'required' => false, 'example' => '1'],
],
[
'name' => 'pageSize',
'in' => 'query',
'schema' => ['description' => 'The number of entries per page. The default value is 100. Valid values: 1 to 100.', 'type' => 'integer', 'format' => 'int64', 'title' => '', 'required' => false, 'example' => '10'],
],
[
'name' => 'keyword',
'in' => 'query',
'schema' => ['description' => 'A keyword for a case-insensitive fuzzy search on the entity\'s `name` field.', 'type' => 'string', 'title' => '', 'required' => false, 'example' => 'demo'],
],
],
'responses' => [
200 => [
'schema' => [
'title' => '',
'description' => 'The paginated result of the query.',
'type' => 'object',
'properties' => [
'pageNumber' => ['description' => 'The returned page number.', 'type' => 'integer', 'format' => 'int64', 'title' => '', 'example' => '1'],
'pageSize' => ['description' => 'The number of entries per page.', 'type' => 'integer', 'format' => 'int64', 'title' => '', 'example' => '10'],
'totalCount' => ['description' => 'The total number of matched toolsets.', 'type' => 'integer', 'format' => 'int64', 'title' => '', 'example' => '10'],
'data' => [
'title' => '',
'description' => 'The list of resource entities returned by the query.',
'type' => 'array',
'items' => ['description' => 'A toolset that matches the query.', '$ref' => '#/components/schemas/Toolset', 'title' => '', 'example' => ''],
'example' => '',
],
],
'example' => '',
],
],
],
'staticInfo' => ['returnType' => 'synchronous'],
'title' => 'Batch Query Toolset ',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [],
],
'ramActions' => [
[
'operationType' => 'list',
'ramAction' => [
'action' => 'devs:ListToolsets',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Devs', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
],
],
'PreviewEnvironment' => [
'summary' => 'Gets a preview of changes for an environment.',
'path' => '/2023-07-14/projects/{projectName}/environments/{name}/preview',
'methods' => ['get'],
'schemes' => ['https'],
'security' => [
[
'AK' => [],
],
],
'consumes' => ['application/json'],
'produces' => ['application/json'],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => ['operationType' => 'get', 'riskType' => 'none', 'chargeType' => 'free'],
'parameters' => [
[
'name' => 'projectName',
'in' => 'path',
'schema' => ['description' => 'The project name.', 'type' => 'string', 'required' => true, 'example' => 'demo-project', 'title' => ''],
],
[
'name' => 'name',
'in' => 'path',
'schema' => ['description' => 'The environment name.', 'type' => 'string', 'required' => true, 'example' => 'demo-env', 'title' => ''],
],
],
'responses' => [
200 => [
'schema' => ['description' => 'The environment deployment specification.', '$ref' => '#/components/schemas/EnvironmentDeploymentSpec', 'title' => '', 'example' => ''],
],
],
'staticInfo' => ['returnType' => 'synchronous'],
'eventInfo' => [
'enable' => false,
'eventNames' => [],
],
'title' => 'Preview environment change information ',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [],
],
'ramActions' => [
[
'operationType' => 'get',
'ramAction' => [
'action' => 'devs:PreviewEnvironment',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Devs', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
],
],
'PutArtifact' => [
'summary' => 'Updates an artifact.',
'path' => '/2023-07-14/artifacts/{name}',
'methods' => ['put'],
'schemes' => ['https'],
'security' => [
[
'AK' => [],
],
],
'consumes' => ['application/json'],
'produces' => ['application/json'],
'operationType' => 'readAndWrite',
'deprecated' => false,
'systemTags' => [
'operationType' => 'none',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeNodes' => ['FEATUREdevsQ39RNT'],
],
'parameters' => [
[
'name' => 'body',
'in' => 'body',
'style' => 'json',
'schema' => ['description' => 'The configuration of the artifact.', '$ref' => '#/components/schemas/Artifact', 'title' => '', 'required' => false, 'example' => ''],
],
[
'name' => 'name',
'in' => 'path',
'schema' => ['description' => 'The name of the artifact.', 'type' => 'string', 'title' => '', 'required' => false, 'example' => 'demo-artifact'],
],
[
'name' => 'force',
'in' => 'query',
'schema' => ['description' => 'Forces an update of the artifact.', 'type' => 'boolean', 'title' => '', 'required' => false, 'example' => 'false'],
],
],
'responses' => [
200 => [
'schema' => ['description' => 'The configuration of the artifact.', '$ref' => '#/components/schemas/Artifact', 'title' => '', 'example' => ''],
],
],
'staticInfo' => ['returnType' => 'synchronous'],
'title' => 'Update deliverable',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [],
],
'ramActions' => [
[
'operationType' => 'none',
'ramAction' => [
'action' => 'devs:PutArtifact',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Devs', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
],
],
'PutPipelineStatus' => [
'path' => '/2023-07-14/pipelines/{name}/status',
'methods' => ['put'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'consumes' => ['application/json'],
'produces' => ['application/json'],
'operationType' => 'readAndWrite',
'deprecated' => false,
'systemTags' => ['operationType' => 'update'],
'parameters' => [
[
'name' => 'name',
'in' => 'path',
'schema' => ['description' => 'The name of the pipeline.', 'type' => 'string', 'example' => 'demo-name', 'title' => '', 'required' => false],
],
[
'name' => 'body',
'in' => 'body',
'schema' => ['description' => 'The object representing the pipeline execution.', '$ref' => '#/components/schemas/Pipeline', 'title' => '', 'required' => false, 'example' => ''],
],
[
'name' => 'force',
'in' => 'query',
'schema' => ['description' => 'Specifies whether to force the update. If set to `true`, the request overwrites the current pipeline regardless of its version.', 'type' => 'boolean', 'title' => '', 'required' => false, 'example' => 'false'],
],
],
'responses' => [
200 => [
'schema' => ['description' => 'The object representing the pipeline execution.', '$ref' => '#/components/schemas/Pipeline', 'title' => '', 'example' => ''],
],
],
'title' => 'Replace pipeline execution status',
'summary' => 'Updates the pipeline execution status.',
'description' => 'This API uses optimistic locking to prevent conflicting updates. If you omit the `force` parameter, the request must use the latest pipeline version. Submitting a request with an outdated version causes a conflict error.',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [],
],
'ramActions' => [
[
'operationType' => 'update',
'ramAction' => [
'action' => 'devs:PutPipelineStatus',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Devs', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"spec\\": {\\n \\"templateName\\": \\"my-pipeline-template\\",\\n \\"context\\": {\\n \\"data\\": {\\n \\"test\\": \\"test\\",\\n \\"test2\\": 1\\n }\\n },\\n \\"templateSpec\\": {\\n \\"context\\": {\\n \\"data\\": {\\n \\"test\\": \\"test\\",\\n \\"test2\\": 1\\n }\\n },\\n \\"tasks\\": [\\n {\\n \\"name\\": \\"task-1\\",\\n \\"context\\": {\\n \\"data\\": {\\n \\"test\\": \\"test\\",\\n \\"test2\\": 1\\n }\\n },\\n \\"taskTemplate\\": \\"serverless-runner\\",\\n \\"runAfters\\": [\\n {\\n \\"name\\": \\"task-1\\"\\n }\\n ]\\n }\\n ]\\n }\\n },\\n \\"status\\": {\\n \\"phase\\": \\"Success\\",\\n \\"latestExecError\\": {\\n \\"title\\": \\"权限不足错误\\",\\n \\"message\\": \\"部署服务[_appcenter-xxx]失败,权限不足\\",\\n \\"code\\": \\"AccessDenied\\",\\n \\"requestId\\": \\"1-26d1287xxxxx\\",\\n \\"extraInfo\\": \\"部署辅助函数权限不足,需要添加额外的权限以解决问题\\"\\n }\\n },\\n \\"uid\\": \\"1455541096***548\\",\\n \\"generation\\": 1,\\n \\"description\\": \\"Pipeline example.\\",\\n \\"kind\\": \\"Pipeline\\",\\n \\"createdTime\\": \\"2021-11-19T09:34:38Z\\",\\n \\"name\\": \\"my-pipeline\\",\\n \\"labels\\": {\\n \\"key\\": \\"value to the label key.\\"\\n },\\n \\"resourceVersion\\": 1\\n}","type":"json"}]',
],
'PutTaskStatus' => [
'summary' => 'Updates the execution status of a pipeline task.',
'path' => '/2023-07-14/tasks/{name}/status',
'methods' => ['put'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'consumes' => ['application/json'],
'produces' => ['application/json'],
'operationType' => 'readAndWrite',
'deprecated' => false,
'systemTags' => [
'operationType' => 'update',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeNodes' => ['FEATUREdevsJWJ2XN'],
'tenantRelevance' => 'publicInformation',
],
'parameters' => [
[
'name' => 'name',
'in' => 'path',
'schema' => ['description' => 'The pipeline task name.', 'type' => 'string', 'example' => 'demo-name', 'title' => '', 'required' => false],
],
[
'name' => 'body',
'in' => 'body',
'schema' => ['description' => 'The pipeline task object.', '$ref' => '#/components/schemas/Task', 'title' => '', 'required' => false, 'example' => ''],
],
[
'name' => 'force',
'in' => 'query',
'schema' => ['description' => 'Specifies whether to force the update, which ignores the resource version check.', 'type' => 'boolean', 'title' => '', 'required' => false, 'example' => 'false'],
],
],
'responses' => [
200 => [
'schema' => ['description' => 'The pipeline task object.', '$ref' => '#/components/schemas/Task', 'title' => '', 'example' => ''],
],
],
'title' => 'Replace the execution status of a pipeline Job',
'description' => 'This API uses optimistic locking to prevent conflicting updates. When you update a pipeline task, your request must be based on the most recent resource version. If a newer version exists, the update fails unless you set the `force` parameter to true.',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [],
],
'ramActions' => [
[
'operationType' => 'update',
'ramAction' => [
'action' => 'devs:PutTaskStatus',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Devs', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"spec\\": {\\n \\"templateName\\": \\"my-task-template\\",\\n \\"context\\": {\\n \\"data\\": {\\n \\"test\\": \\"test\\",\\n \\"test2\\": 1\\n }\\n }\\n },\\n \\"status\\": {\\n \\"statusGeneration\\": 123,\\n \\"phase\\": \\"Success\\",\\n \\"executionDetails\\": [\\n \\"step1: start task.\\"\\n ],\\n \\"invocations\\": [\\n {\\n \\"invocationID\\": \\"E099843B-10A2-4936-9964-4E0EE263D564\\",\\n \\"requestID\\": \\"1B3058B1-F1C9-457C-B95C-2C250A4B3118\\",\\n \\"invocationTarget\\": \\"acs:fc:cn-hangzhou:143xxxx:services/xxx.LATEST/functions/xxx\\",\\n \\"status\\": \\"success\\",\\n \\"output\\": \\"{\\\\\\"key1\\\\\\":\\\\\\"value1\\\\\\",\\\\\\"key2\\\\\\":\\\\\\"value2\\\\\\"}\\",\\n \\"instanceID\\": \\"c-nkj8shz7xxxx\\",\\n \\"slsProject\\": \\"my-sls-project\\",\\n \\"slsLogStore\\": \\"my-sls-logstore\\"\\n }\\n ],\\n \\"latestExecError\\": {\\n \\"title\\": \\"权限不足错误\\",\\n \\"message\\": \\"部署服务[_appcenter-xxx]失败,权限不足\\",\\n \\"code\\": \\"AccessDenied\\",\\n \\"requestId\\": \\"1-26d1287xxxxx\\",\\n \\"extraInfo\\": \\"部署辅助函数权限不足,需要添加额外的权限以解决问题\\"\\n }\\n },\\n \\"uid\\": \\"1455541096***548\\",\\n \\"generation\\": 1,\\n \\"description\\": \\"Task example.\\",\\n \\"kind\\": \\"Task\\",\\n \\"createdTime\\": \\"2021-11-19T09:34:38Z\\",\\n \\"name\\": \\"my-task\\",\\n \\"labels\\": {\\n \\"key\\": \\"value to the label key.\\"\\n },\\n \\"resourceVersion\\": 1\\n}","type":"json"}]',
],
'RenderServicesByTemplate' => [
'summary' => 'Parses service and variable configurations from a template.',
'path' => '/2023-07-14/templates/action/renderServices',
'methods' => ['post'],
'schemes' => ['https'],
'security' => [
[
'AK' => [],
],
],
'consumes' => ['application/json'],
'produces' => ['application/json'],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => [
'operationType' => 'none',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeCode' => '231991',
'abilityTreeNodes' => ['FEATUREdevsRH0LAC'],
'autoTest' => true,
'tenantRelevance' => 'publicInformation',
],
'parameters' => [
[
'name' => 'body',
'in' => 'body',
'style' => 'json',
'schema' => [
'title' => '',
'description' => 'Template configuration',
'type' => 'object',
'properties' => [
'templateName' => ['description' => 'Template name', 'type' => 'string', 'required' => true, 'example' => 'start-springboot', 'title' => ''],
'parameters' => ['description' => 'Template parameters', 'type' => 'object', 'required' => false, 'example' => '{"region":"cn-hangzhou"}', 'title' => ''],
'variableValues' => ['description' => 'Template variables', '$ref' => '#/components/schemas/TemplateVariableValueMap', 'title' => '', 'required' => false, 'example' => ''],
'serviceNameChanges' => [
'title' => '',
'description' => 'A map for renaming services. The key is the original service name from the template, and the value is the new service name.',
'type' => 'object',
'required' => false,
'additionalProperties' => ['description' => 'New service name', 'type' => 'string', 'example' => '{"originName": "newName"}', 'title' => ''],
'example' => '{"svc1":"svc2"}',
],
'projectName' => ['description' => 'The name of the project to which services will be added. When a project name is provided, the operation checks for naming conflicts between services in the template and those already in the project. If a conflict is found, the operation automatically generates a unique service name.', 'type' => 'string', 'title' => '', 'required' => false, 'example' => 'my-project'],
],
'required' => false,
'example' => '',
],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'services' => [
'description' => 'A map of the parsed services.',
'type' => 'object',
'additionalProperties' => ['description' => 'Service configuration', '$ref' => '#/components/schemas/ServiceConfig', 'title' => '', 'example' => ''],
'title' => '',
'example' => '',
],
'variables' => [
'description' => 'A map of the parsed variables.',
'type' => 'object',
'additionalProperties' => ['description' => 'Variable configuration', '$ref' => '#/components/schemas/Variable', 'title' => '', 'example' => ''],
'title' => '',
'example' => '',
],
'changedServiceNames' => [
'description' => 'A map of changed service names where the key is the new service name and the value is the original service name. This tracking enables you to modify names multiple times before deployment.',
'type' => 'object',
'additionalProperties' => ['description' => 'Original service name', 'type' => 'string', 'title' => '', 'example' => 'demo-service'],
'title' => '',
'example' => '',
],
],
'description' => '',
'title' => '',
'example' => '',
],
],
],
'staticInfo' => ['returnType' => 'synchronous'],
'title' => 'Parse the service and variable configuration in the template.',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [],
],
'ramActions' => [
[
'operationType' => 'none',
'ramAction' => [
'action' => 'devs:RenderServicesByTemplate',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Devs', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
],
],
'ResumeTask' => [
'path' => '/2023-07-14/tasks/{name}/resume',
'methods' => ['put'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'consumes' => ['application/json'],
'produces' => ['application/json'],
'operationType' => 'readAndWrite',
'deprecated' => false,
'systemTags' => [
'operationType' => 'update',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeNodes' => ['FEATUREdevsJWJ2XN'],
'tenantRelevance' => 'publicInformation',
],
'parameters' => [
[
'name' => 'name',
'in' => 'path',
'schema' => ['description' => 'The name of the task.', 'type' => 'string', 'example' => 'demo-name', 'title' => '', 'required' => false],
],
],
'responses' => [
200 => [
'schema' => ['description' => 'Represents a pipeline task.', '$ref' => '#/components/schemas/Task', 'title' => '', 'example' => ''],
],
],
'title' => 'Recover pipeline job execution',
'summary' => 'Resumes the execution of a pipeline task.',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [],
],
'ramActions' => [
[
'operationType' => 'update',
'ramAction' => [
'action' => 'devs:ResumeTask',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Devs', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"spec\\": {\\n \\"templateName\\": \\"my-task-template\\",\\n \\"context\\": {\\n \\"data\\": {\\n \\"test\\": \\"test\\",\\n \\"test2\\": 1\\n }\\n }\\n },\\n \\"status\\": {\\n \\"statusGeneration\\": 123,\\n \\"phase\\": \\"Success\\",\\n \\"executionDetails\\": [\\n \\"step1: start task.\\"\\n ],\\n \\"invocations\\": [\\n {\\n \\"invocationID\\": \\"E099843B-10A2-4936-9964-4E0EE263D564\\",\\n \\"requestID\\": \\"1B3058B1-F1C9-457C-B95C-2C250A4B3118\\",\\n \\"invocationTarget\\": \\"acs:fc:cn-hangzhou:143xxxx:services/xxx.LATEST/functions/xxx\\",\\n \\"status\\": \\"success\\",\\n \\"output\\": \\"{\\\\\\"key1\\\\\\":\\\\\\"value1\\\\\\",\\\\\\"key2\\\\\\":\\\\\\"value2\\\\\\"}\\",\\n \\"instanceID\\": \\"c-nkj8shz7xxxx\\",\\n \\"slsProject\\": \\"my-sls-project\\",\\n \\"slsLogStore\\": \\"my-sls-logstore\\"\\n }\\n ],\\n \\"latestExecError\\": {\\n \\"title\\": \\"权限不足错误\\",\\n \\"message\\": \\"部署服务[_appcenter-xxx]失败,权限不足\\",\\n \\"code\\": \\"AccessDenied\\",\\n \\"requestId\\": \\"1-26d1287xxxxx\\",\\n \\"extraInfo\\": \\"部署辅助函数权限不足,需要添加额外的权限以解决问题\\"\\n }\\n },\\n \\"uid\\": \\"1455541096***548\\",\\n \\"generation\\": 1,\\n \\"description\\": \\"Task example.\\",\\n \\"kind\\": \\"Task\\",\\n \\"createdTime\\": \\"2021-11-19T09:34:38Z\\",\\n \\"name\\": \\"my-task\\",\\n \\"labels\\": {\\n \\"key\\": \\"value to the label key.\\"\\n },\\n \\"resourceVersion\\": 1\\n}","type":"json"}]',
],
'RetryTask' => [
'summary' => 'Retries a pipeline task execution.',
'path' => '/2023-07-14/tasks/{name}/retry',
'methods' => ['put'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'consumes' => ['application/json'],
'produces' => ['application/json'],
'operationType' => 'readAndWrite',
'deprecated' => false,
'systemTags' => [
'operationType' => 'update',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeNodes' => ['FEATUREdevsJWJ2XN'],
'tenantRelevance' => 'publicInformation',
],
'parameters' => [
[
'name' => 'name',
'in' => 'path',
'schema' => ['description' => 'The name of the task.', 'type' => 'string', 'example' => 'demo-name', 'title' => '', 'required' => false],
],
],
'responses' => [
200 => [
'schema' => ['description' => 'The pipeline task.', '$ref' => '#/components/schemas/Task', 'title' => '', 'example' => ''],
],
],
'title' => 'Retry pipeline job execution',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [],
],
'ramActions' => [
[
'operationType' => 'update',
'ramAction' => [
'action' => 'devs:RetryTask',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Devs', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"spec\\": {\\n \\"templateName\\": \\"my-task-template\\",\\n \\"context\\": {\\n \\"data\\": {\\n \\"test\\": \\"test\\",\\n \\"test2\\": 1\\n }\\n }\\n },\\n \\"status\\": {\\n \\"statusGeneration\\": 123,\\n \\"phase\\": \\"Success\\",\\n \\"executionDetails\\": [\\n \\"step1: start task.\\"\\n ],\\n \\"invocations\\": [\\n {\\n \\"invocationID\\": \\"E099843B-10A2-4936-9964-4E0EE263D564\\",\\n \\"requestID\\": \\"1B3058B1-F1C9-457C-B95C-2C250A4B3118\\",\\n \\"invocationTarget\\": \\"acs:fc:cn-hangzhou:143xxxx:services/xxx.LATEST/functions/xxx\\",\\n \\"status\\": \\"success\\",\\n \\"output\\": \\"{\\\\\\"key1\\\\\\":\\\\\\"value1\\\\\\",\\\\\\"key2\\\\\\":\\\\\\"value2\\\\\\"}\\",\\n \\"instanceID\\": \\"c-nkj8shz7xxxx\\",\\n \\"slsProject\\": \\"my-sls-project\\",\\n \\"slsLogStore\\": \\"my-sls-logstore\\"\\n }\\n ],\\n \\"latestExecError\\": {\\n \\"title\\": \\"权限不足错误\\",\\n \\"message\\": \\"部署服务[_appcenter-xxx]失败,权限不足\\",\\n \\"code\\": \\"AccessDenied\\",\\n \\"requestId\\": \\"1-26d1287xxxxx\\",\\n \\"extraInfo\\": \\"部署辅助函数权限不足,需要添加额外的权限以解决问题\\"\\n }\\n },\\n \\"uid\\": \\"1455541096***548\\",\\n \\"generation\\": 1,\\n \\"description\\": \\"Task example.\\",\\n \\"kind\\": \\"Task\\",\\n \\"createdTime\\": \\"2021-11-19T09:34:38Z\\",\\n \\"name\\": \\"my-task\\",\\n \\"labels\\": {\\n \\"key\\": \\"value to the label key.\\"\\n },\\n \\"resourceVersion\\": 1\\n}","type":"json"}]',
],
'StartPipeline' => [
'summary' => 'Starts a pipeline execution.',
'path' => '/2023-07-14/pipelines/{name}/start',
'methods' => ['put'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'consumes' => ['application/json'],
'produces' => ['application/json'],
'operationType' => 'readAndWrite',
'deprecated' => false,
'systemTags' => ['operationType' => 'update'],
'parameters' => [
[
'name' => 'name',
'in' => 'path',
'schema' => ['description' => 'The pipeline name.', 'type' => 'string', 'example' => 'demo-name', 'title' => '', 'required' => false],
],
],
'responses' => [
200 => [
'schema' => ['description' => 'The pipeline execution.', '$ref' => '#/components/schemas/Pipeline', 'title' => '', 'example' => ''],
],
],
'title' => 'Start pipeline execution',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [],
],
'ramActions' => [
[
'operationType' => 'update',
'ramAction' => [
'action' => 'devs:StartPipeline',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Devs', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"spec\\": {\\n \\"templateName\\": \\"my-pipeline-template\\",\\n \\"context\\": {\\n \\"data\\": {\\n \\"test\\": \\"test\\",\\n \\"test2\\": 1\\n }\\n },\\n \\"templateSpec\\": {\\n \\"context\\": {\\n \\"data\\": {\\n \\"test\\": \\"test\\",\\n \\"test2\\": 1\\n }\\n },\\n \\"tasks\\": [\\n {\\n \\"name\\": \\"task-1\\",\\n \\"context\\": {\\n \\"data\\": {\\n \\"test\\": \\"test\\",\\n \\"test2\\": 1\\n }\\n },\\n \\"taskTemplate\\": \\"serverless-runner\\",\\n \\"runAfters\\": [\\n {\\n \\"name\\": \\"task-1\\"\\n }\\n ]\\n }\\n ]\\n }\\n },\\n \\"status\\": {\\n \\"phase\\": \\"Success\\",\\n \\"latestExecError\\": {\\n \\"title\\": \\"权限不足错误\\",\\n \\"message\\": \\"部署服务[_appcenter-xxx]失败,权限不足\\",\\n \\"code\\": \\"AccessDenied\\",\\n \\"requestId\\": \\"1-26d1287xxxxx\\",\\n \\"extraInfo\\": \\"部署辅助函数权限不足,需要添加额外的权限以解决问题\\"\\n }\\n },\\n \\"uid\\": \\"1455541096***548\\",\\n \\"generation\\": 1,\\n \\"description\\": \\"Pipeline example.\\",\\n \\"kind\\": \\"Pipeline\\",\\n \\"createdTime\\": \\"2021-11-19T09:34:38Z\\",\\n \\"name\\": \\"my-pipeline\\",\\n \\"labels\\": {\\n \\"key\\": \\"value to the label key.\\"\\n },\\n \\"resourceVersion\\": 1\\n}","type":"json"}]',
],
'StartTask' => [
'path' => '/2023-07-14/tasks/{name}/start',
'methods' => ['put'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'consumes' => ['application/json'],
'produces' => ['application/json'],
'operationType' => 'readAndWrite',
'deprecated' => false,
'systemTags' => [
'operationType' => 'update',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeNodes' => ['FEATUREdevsJWJ2XN'],
'tenantRelevance' => 'publicInformation',
],
'parameters' => [
[
'name' => 'name',
'in' => 'path',
'schema' => ['description' => 'The name of the task.', 'type' => 'string', 'example' => 'demo-name', 'title' => '', 'required' => false],
],
],
'responses' => [
200 => [
'schema' => ['description' => 'The task object.', '$ref' => '#/components/schemas/Task', 'title' => '', 'example' => ''],
],
],
'title' => 'Start pipeline job execution',
'summary' => 'Starts a task execution.',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [],
],
'ramActions' => [
[
'operationType' => 'update',
'ramAction' => [
'action' => 'devs:StartTask',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Devs', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"spec\\": {\\n \\"templateName\\": \\"my-task-template\\",\\n \\"context\\": {\\n \\"data\\": {\\n \\"test\\": \\"test\\",\\n \\"test2\\": 1\\n }\\n }\\n },\\n \\"status\\": {\\n \\"statusGeneration\\": 123,\\n \\"phase\\": \\"Success\\",\\n \\"executionDetails\\": [\\n \\"step1: start task.\\"\\n ],\\n \\"invocations\\": [\\n {\\n \\"invocationID\\": \\"E099843B-10A2-4936-9964-4E0EE263D564\\",\\n \\"requestID\\": \\"1B3058B1-F1C9-457C-B95C-2C250A4B3118\\",\\n \\"invocationTarget\\": \\"acs:fc:cn-hangzhou:143xxxx:services/xxx.LATEST/functions/xxx\\",\\n \\"status\\": \\"success\\",\\n \\"output\\": \\"{\\\\\\"key1\\\\\\":\\\\\\"value1\\\\\\",\\\\\\"key2\\\\\\":\\\\\\"value2\\\\\\"}\\",\\n \\"instanceID\\": \\"c-nkj8shz7xxxx\\",\\n \\"slsProject\\": \\"my-sls-project\\",\\n \\"slsLogStore\\": \\"my-sls-logstore\\"\\n }\\n ],\\n \\"latestExecError\\": {\\n \\"title\\": \\"权限不足错误\\",\\n \\"message\\": \\"部署服务[_appcenter-xxx]失败,权限不足\\",\\n \\"code\\": \\"AccessDenied\\",\\n \\"requestId\\": \\"1-26d1287xxxxx\\",\\n \\"extraInfo\\": \\"部署辅助函数权限不足,需要添加额外的权限以解决问题\\"\\n }\\n },\\n \\"uid\\": \\"1455541096***548\\",\\n \\"generation\\": 1,\\n \\"description\\": \\"Task example.\\",\\n \\"kind\\": \\"Task\\",\\n \\"createdTime\\": \\"2021-11-19T09:34:38Z\\",\\n \\"name\\": \\"my-task\\",\\n \\"labels\\": {\\n \\"key\\": \\"value to the label key.\\"\\n },\\n \\"resourceVersion\\": 1\\n}","type":"json"}]',
],
'UpdateEnvironment' => [
'summary' => 'Updates an environment and triggers an automatic deployment when its template parameters change.',
'path' => '/2023-07-14/projects/{projectName}/environments/{name}',
'methods' => ['put'],
'schemes' => ['https'],
'security' => [
[
'AK' => [],
],
],
'consumes' => ['application/json'],
'produces' => ['application/json'],
'operationType' => 'readAndWrite',
'deprecated' => false,
'systemTags' => [
'operationType' => 'update',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeNodes' => ['FEATUREdevsXL1PN1'],
'tenantRelevance' => 'publicInformation',
],
'parameters' => [
[
'name' => 'body',
'in' => 'body',
'schema' => ['description' => 'The environment object. This operation updates only the specified writable fields. Unspecified fields remain unchanged.', '$ref' => '#/components/schemas/Environment', 'title' => '', 'required' => false, 'example' => ''],
],
[
'name' => 'projectName',
'in' => 'path',
'schema' => ['title' => 'Project name ', 'description' => 'The project name.', 'type' => 'string', 'required' => true, 'example' => 'demo-project'],
],
[
'name' => 'name',
'in' => 'path',
'schema' => ['description' => 'The environment name.', 'type' => 'string', 'required' => true, 'example' => 'demo-env', 'title' => ''],
],
],
'responses' => [
200 => [
'schema' => ['description' => 'The updated environment object.', '$ref' => '#/components/schemas/Environment', 'title' => '', 'example' => ''],
],
],
'staticInfo' => ['returnType' => 'synchronous'],
'eventInfo' => [
'enable' => false,
'eventNames' => [],
],
'title' => 'Modify environment ',
'description' => '- This operation updates only the specified writable fields. Unspecified fields remain unchanged.'."\n"
."\n"
.'- This operation triggers an automatic deployment only if the template parameters (spec.templateConfig.parameters) change.',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [],
],
'ramActions' => [
[
'operationType' => 'update',
'ramAction' => [
'action' => 'devs:UpdateEnvironment',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Devs', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
],
],
'UpdateProject' => [
'summary' => 'Updates a project and triggers an automatic deployment if its template parameters change.',
'path' => '/2023-07-14/projects/{name}',
'methods' => ['put'],
'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'consumes' => ['application/json'],
'produces' => ['application/json'],
'operationType' => 'readAndWrite',
'deprecated' => false,
'systemTags' => [
'operationType' => 'update',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeNodes' => ['FEATUREdevsXL1PN1'],
'autoTest' => true,
'tenantRelevance' => 'publicInformation',
],
'parameters' => [
[
'name' => 'body',
'in' => 'body',
'style' => 'json',
'schema' => ['description' => 'The project entity to update. Only specified writable fields are updated; unspecified fields remain unchanged.', '$ref' => '#/components/schemas/Project', 'title' => '', 'required' => false, 'example' => ''],
],
[
'name' => 'name',
'in' => 'path',
'schema' => ['description' => 'The name of the project.', 'type' => 'string', 'example' => 'demo-name', 'title' => '', 'required' => false],
],
],
'responses' => [
200 => [
'schema' => ['description' => 'The updated project entity.', '$ref' => '#/components/schemas/Project', 'title' => '', 'example' => ''],
],
],
'staticInfo' => ['returnType' => 'synchronous'],
'eventInfo' => [
'enable' => false,
'eventNames' => [],
],
'title' => 'Modify a project',
'description' => '1. Only the specified writable fields are updated. Unspecified fields remain unchanged.'."\n"
."\n"
.'2. An automatic deployment is triggered only if the template parameters (spec.templateConfig.parameters) change.'."\n"
."\n"
.'3. A project can no longer be updated after its default environment configuration is modified using environment-related APIs.',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [],
],
'ramActions' => [
[
'operationType' => 'update',
'ramAction' => [
'action' => 'devs:UpdateProject',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Devs', 'resourceType' => 'Project', 'arn' => 'acs:devs:{#regionId}:{#accountId}:project/{#name}'],
],
],
],
],
],
'UpdateToolset' => [
'summary' => 'Updates toolset information.',
'path' => '/2023-07-14/toolsets/{name}',
'methods' => ['put'],
'schemes' => ['https'],
'security' => [
[
'AK' => [],
],
],
'consumes' => ['application/json'],
'produces' => ['application/json'],
'operationType' => 'readAndWrite',
'deprecated' => false,
'systemTags' => [
'operationType' => 'update',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeNodes' => ['FEATUREdevs6LLJT1'],
'autoTest' => true,
'tenantRelevance' => 'publicInformation',
],
'parameters' => [
[
'name' => 'body',
'in' => 'body',
'style' => 'json',
'schema' => ['description' => 'The toolset entity to update. The operation updates only the writable fields that you specify.', '$ref' => '#/components/schemas/Toolset', 'title' => '', 'required' => false, 'example' => ''],
],
[
'name' => 'name',
'in' => 'path',
'schema' => ['description' => 'The toolset name.', 'type' => 'string', 'example' => 'my-toolset', 'title' => '', 'required' => false],
],
],
'responses' => [
200 => [
'schema' => ['description' => 'The updated toolset entity.', '$ref' => '#/components/schemas/Toolset', 'title' => '', 'example' => ''],
],
],
'staticInfo' => ['returnType' => 'synchronous'],
'eventInfo' => [
'enable' => false,
'eventNames' => [],
],
'title' => 'Update tool set ',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [],
],
'ramActions' => [
[
'operationType' => 'update',
'ramAction' => [
'action' => 'devs:UpdateToolset',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Devs', 'resourceType' => 'Toolset', 'arn' => 'acs:devs:{#regionId}:{#accountId}:toolset/{#name}'],
],
],
],
],
],
],
'endpoints' => [
['regionId' => 'cn-shenzhen', 'regionName' => 'China (Shenzhen)', 'areaId' => 'asiaPacific', 'areaName' => 'Asia Pacific', 'public' => 'devs.cn-shenzhen.aliyuncs.com', 'endpoint' => 'devs.cn-shenzhen.aliyuncs.com', 'vpc' => 'devs-vpc.cn-shenzhen.aliyuncs.com'],
['regionId' => 'cn-beijing', 'regionName' => 'China (Beijing)', 'areaId' => 'asiaPacific', 'areaName' => 'Asia Pacific', 'public' => 'devs.cn-beijing.aliyuncs.com', 'endpoint' => 'devs.cn-beijing.aliyuncs.com', 'vpc' => 'devs-vpc.cn-beijing.aliyuncs.com'],
['regionId' => 'cn-shanghai', 'regionName' => 'China (Shanghai)', 'areaId' => 'asiaPacific', 'areaName' => 'Asia Pacific', 'public' => 'devs.cn-shanghai.aliyuncs.com', 'endpoint' => 'devs.cn-shanghai.aliyuncs.com', 'vpc' => 'devs-vpc.cn-shanghai.aliyuncs.com'],
['regionId' => 'ap-southeast-1', 'regionName' => 'Singapore', 'areaId' => 'asiaPacific', 'areaName' => 'Asia Pacific', 'public' => 'devs.ap-southeast-1.aliyuncs.com', 'endpoint' => 'devs.ap-southeast-1.aliyuncs.com', 'vpc' => 'devs-vpc.ap-southeast-1.aliyuncs.com'],
['regionId' => 'cn-hangzhou', 'regionName' => 'China (Hangzhou)', 'areaId' => 'asiaPacific', 'areaName' => 'Asia Pacific', 'public' => 'devs.cn-hangzhou.aliyuncs.com', 'endpoint' => 'devs.cn-hangzhou.aliyuncs.com', 'vpc' => 'devs-vpc.cn-hangzhou.aliyuncs.com'],
['regionId' => 'us-west-1', 'regionName' => 'US (Silicon Valley)', 'areaId' => 'europeAmerica', 'areaName' => 'Europe & Americas', 'public' => 'devs.us-west-1.aliyuncs.com', 'endpoint' => 'devs.us-west-1.aliyuncs.com', 'vpc' => 'devs-vpc.us-west-1.aliyuncs.com'],
],
'errorCodes' => [],
'changeSet' => [],
'flowControl' => [
'flowControlList' => [],
],
'ram' => [
'productCode' => 'Devs',
'productName' => 'Cloud Application Platform',
'ramCodes' => ['devs'],
'ramLevel' => 'RESOURCE',
'ramConditions' => [],
'ramActions' => [
[
'apiName' => 'PutArtifact',
'description' => '',
'operationType' => 'none',
'ramAction' => [
'action' => 'devs:PutArtifact',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Devs', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
[
'apiName' => 'CancelPipeline',
'description' => '',
'operationType' => 'update',
'ramAction' => [
'action' => 'devs:CancelPipeline',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Devs', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
[
'apiName' => 'CreatePipeline',
'description' => '',
'operationType' => 'create',
'ramAction' => [
'action' => 'devs:CreatePipeline',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Devs', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
[
'apiName' => 'DeleteConnection',
'description' => '',
'operationType' => 'delete',
'ramAction' => [
'action' => 'devs:DeleteConnection',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Devs', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
[
'apiName' => 'PutTaskStatus',
'description' => '',
'operationType' => 'update',
'ramAction' => [
'action' => 'devs:PutTaskStatus',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Devs', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
[
'apiName' => 'ListToolsets',
'description' => '',
'operationType' => 'list',
'ramAction' => [
'action' => 'devs:ListToolsets',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Devs', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
[
'apiName' => 'DeleteToolset',
'description' => '',
'operationType' => 'delete',
'ramAction' => [
'action' => 'devs:DeleteToolset',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Devs', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
[
'apiName' => 'UpdateProject',
'description' => '',
'operationType' => 'update',
'ramAction' => [
'action' => 'devs:UpdateProject',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Devs', 'resourceType' => 'Project', 'arn' => 'acs:devs:{#regionId}:{#accountId}:project/{#name}'],
],
],
],
[
'apiName' => 'CreateProject',
'description' => '',
'operationType' => 'create',
'ramAction' => [
'action' => 'devs:CreateProject',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Devs', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
[
'apiName' => 'ListProjects',
'description' => '',
'operationType' => 'list',
'ramAction' => [
'action' => 'devs:ListProjects',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Devs', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
[
'apiName' => 'ListConnections',
'description' => '',
'operationType' => 'list',
'ramAction' => [
'action' => 'devs:ListConnections',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Devs', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
[
'apiName' => 'RetryTask',
'description' => '',
'operationType' => 'update',
'ramAction' => [
'action' => 'devs:RetryTask',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Devs', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
[
'apiName' => 'UpdateToolset',
'description' => '',
'operationType' => 'update',
'ramAction' => [
'action' => 'devs:UpdateToolset',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Devs', 'resourceType' => 'Toolset', 'arn' => 'acs:devs:{#regionId}:{#accountId}:toolset/{#name}'],
],
],
],
[
'apiName' => 'ListPipelines',
'description' => '',
'operationType' => 'list',
'ramAction' => [
'action' => 'devs:ListPipelines',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Devs', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
[
'apiName' => 'PreviewEnvironment',
'description' => '',
'operationType' => 'get',
'ramAction' => [
'action' => 'devs:PreviewEnvironment',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Devs', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
[
'apiName' => 'GetPipeline',
'description' => '',
'operationType' => 'get',
'ramAction' => [
'action' => 'devs:GetPipeline',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Devs', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
[
'apiName' => 'GetToolset',
'description' => '',
'operationType' => 'get',
'ramAction' => [
'action' => 'devs:GetToolset',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Devs', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
[
'apiName' => 'DeleteProject',
'description' => '',
'operationType' => 'delete',
'ramAction' => [
'action' => 'devs:DeleteProject',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Devs', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
[
'apiName' => 'FetchArtifactTempBucketToken',
'description' => '',
'operationType' => 'get',
'ramAction' => [
'action' => 'devs:FetchArtifactTempBucketToken',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Devs', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
[
'apiName' => 'DeleteEnvironment',
'description' => '',
'operationType' => 'delete',
'ramAction' => [
'action' => 'devs:DeleteEnvironment',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Devs', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
[
'apiName' => 'DeleteArtifact',
'description' => '',
'operationType' => 'delete',
'ramAction' => [
'action' => 'devs:DeleteArtifact',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Devs', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
[
'apiName' => 'ActivateConnection',
'description' => '',
'operationType' => 'update',
'ramAction' => [
'action' => 'devs:ActivateConnection',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Devs', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
[
'apiName' => 'GetServiceDeployment',
'description' => '',
'operationType' => 'get',
'ramAction' => [
'action' => 'devs:GetServiceDeployment',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Devs', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
[
'apiName' => 'GetTask',
'description' => '',
'operationType' => 'get',
'ramAction' => [
'action' => 'devs:GetTask',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Devs', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
[
'apiName' => 'CreateEnvironment',
'description' => '',
'operationType' => 'create',
'ramAction' => [
'action' => 'devs:CreateEnvironment',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Devs', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
[
'apiName' => 'ResumeTask',
'description' => '',
'operationType' => 'update',
'ramAction' => [
'action' => 'devs:ResumeTask',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Devs', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
[
'apiName' => 'ListServiceDeployments',
'description' => '',
'operationType' => 'get',
'ramAction' => [
'action' => 'devs:ListServiceDeployments',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Devs', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
[
'apiName' => 'GetEnvironment',
'description' => '',
'operationType' => 'get',
'ramAction' => [
'action' => 'devs:GetEnvironment',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Devs', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
[
'apiName' => 'ListTasks',
'description' => '',
'operationType' => 'get',
'ramAction' => [
'action' => 'devs:ListTasks',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Devs', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
[
'apiName' => 'CreateArtifact',
'description' => '',
'operationType' => 'create',
'ramAction' => [
'action' => 'devs:CreateArtifact',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Devs', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
[
'apiName' => 'StartPipeline',
'description' => '',
'operationType' => 'update',
'ramAction' => [
'action' => 'devs:StartPipeline',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Devs', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
[
'apiName' => 'GetRepository',
'description' => '',
'operationType' => 'get',
'ramAction' => [
'action' => 'devs:GetRepository',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Devs', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
[
'apiName' => 'CreateToolset',
'description' => '',
'operationType' => 'create',
'ramAction' => [
'action' => 'devs:CreateToolset',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Devs', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
[
'apiName' => 'GetProject',
'description' => '',
'operationType' => 'get',
'ramAction' => [
'action' => 'devs:GetProject',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Devs', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
[
'apiName' => 'GetEnvironmentDeployment',
'description' => '',
'operationType' => 'get',
'ramAction' => [
'action' => 'devs:GetEnvironmentDeployment',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Devs', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
[
'apiName' => 'FetchConnectionCredential',
'description' => '',
'operationType' => 'get',
'ramAction' => [
'action' => 'devs:FetchConnectionCredential',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Devs', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
[
'apiName' => 'StartTask',
'description' => '',
'operationType' => 'update',
'ramAction' => [
'action' => 'devs:StartTask',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Devs', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
[
'apiName' => 'FetchArtifactDownloadUrl',
'description' => '',
'operationType' => 'get',
'ramAction' => [
'action' => 'devs:FetchArtifactDownloadUrl',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Devs', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
[
'apiName' => 'RenderServicesByTemplate',
'description' => '',
'operationType' => 'none',
'ramAction' => [
'action' => 'devs:RenderServicesByTemplate',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Devs', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
[
'apiName' => 'UpdateEnvironment',
'description' => '',
'operationType' => 'update',
'ramAction' => [
'action' => 'devs:UpdateEnvironment',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Devs', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
[
'apiName' => 'PutPipelineStatus',
'description' => '',
'operationType' => 'update',
'ramAction' => [
'action' => 'devs:PutPipelineStatus',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Devs', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
[
'apiName' => 'CreateTask',
'description' => '',
'operationType' => 'create',
'ramAction' => [
'action' => 'devs:CreateTask',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Devs', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
[
'apiName' => 'GetArtifact',
'description' => '',
'operationType' => 'get',
'ramAction' => [
'action' => 'devs:GetArtifact',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Devs', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
[
'apiName' => 'CancelTask',
'description' => '',
'operationType' => 'update',
'ramAction' => [
'action' => 'devs:CancelTask',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Devs', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
[
'apiName' => 'DeployEnvironment',
'description' => '',
'operationType' => 'update',
'ramAction' => [
'action' => 'devs:DeployEnvironment',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Devs', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
[
'apiName' => 'ListEnvironments',
'description' => '',
'operationType' => 'list',
'ramAction' => [
'action' => 'devs:ListEnvironments',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Devs', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
],
'resourceTypes' => [
['validationType' => 'always', 'resourceType' => 'Project', 'arn' => 'acs:devs:{#regionId}:{#accountId}:project/{#name}'],
['validationType' => 'always', 'resourceType' => 'Toolset', 'arn' => 'acs:devs:{#regionId}:{#accountId}:toolset/{#name}'],
],
],
];
|