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
5051
5052
5053
5054
5055
5056
5057
5058
5059
5060
5061
5062
5063
5064
5065
5066
5067
5068
5069
5070
5071
5072
5073
5074
5075
5076
5077
5078
5079
5080
5081
5082
5083
5084
5085
5086
5087
5088
5089
5090
5091
5092
5093
5094
5095
5096
5097
5098
5099
5100
5101
5102
5103
5104
5105
5106
5107
5108
5109
5110
5111
5112
5113
5114
5115
5116
5117
5118
5119
5120
5121
5122
5123
5124
5125
5126
5127
5128
5129
5130
5131
5132
5133
5134
5135
5136
5137
5138
5139
5140
5141
5142
5143
5144
5145
5146
5147
5148
5149
5150
5151
5152
5153
5154
5155
5156
5157
5158
5159
5160
5161
5162
5163
5164
5165
5166
5167
5168
5169
5170
5171
5172
5173
5174
5175
5176
5177
5178
5179
5180
5181
5182
5183
5184
5185
5186
5187
5188
5189
5190
5191
5192
5193
5194
5195
5196
5197
5198
5199
5200
5201
5202
5203
5204
5205
5206
5207
5208
5209
5210
5211
5212
5213
5214
5215
5216
5217
5218
5219
5220
5221
5222
5223
5224
5225
5226
5227
5228
5229
5230
5231
5232
5233
5234
5235
5236
|
<?php return [
'version' => '1.0',
'info' => ['style' => 'ROA', 'product' => 'Devs', 'version' => '2023-07-14'],
'directories' => [
[
'children' => ['UpdateToolset', 'ListToolsets', 'GetToolset', 'DeleteToolset', 'CreateToolset'],
'type' => 'directory',
'title' => '工具集',
'id' => 136668,
],
[
'children' => ['RenderServicesByTemplate'],
'type' => 'directory',
'title' => '模板',
'id' => 136656,
],
[
'children' => ['FetchArtifactDownloadUrl', 'FetchArtifactTempBucketToken', 'GetArtifact', 'PutArtifact', 'DeleteArtifact', 'CreateArtifact'],
'type' => 'directory',
'title' => '制品',
'id' => 136658,
],
[
'children' => ['DeployEnvironment', 'GetEnvironmentDeployment', 'GetServiceDeployment', 'ListServiceDeployments', 'PreviewEnvironment', 'CreateEnvironment', 'DeleteEnvironment', 'UpdateEnvironment', 'ListEnvironments', 'GetEnvironment'],
'type' => 'directory',
'title' => '环境',
'id' => 136624,
],
[
'children' => ['DeleteConnection', 'ListConnections'],
'type' => 'directory',
'title' => '身份绑定',
'id' => 136635,
],
[
'children' => ['GetRepository'],
'type' => 'directory',
'title' => '仓库绑定',
'id' => 136638,
],
[
'children' => ['CreatePipeline', 'ListPipelines', 'GetPipeline', 'StartPipeline', 'CancelPipeline', 'PutPipelineStatus'],
'type' => 'directory',
'title' => '流水线',
'id' => 136640,
],
[
'children' => ['CreateTask', 'ListTasks', 'GetTask', 'StartTask', 'RetryTask', 'ResumeTask', 'CancelTask', 'PutTaskStatus'],
'type' => 'directory',
'title' => '流水线任务',
'id' => 136647,
],
[
'children' => ['ActivateConnection', 'FetchConnectionCredential', 'CreateProject', 'DeleteProject', 'GetProject', 'ListProjects', 'UpdateProject'],
'type' => 'directory',
'title' => '其他',
'id' => 136665,
],
],
'components' => [
'schemas' => [
'APIKeyAuthParameter' => [
'title' => 'API Key鉴权参数',
'type' => 'object',
'properties' => [
'in' => [
'title' => '鉴权API key所在HTTP请求位置',
'type' => 'string',
'example' => 'header',
'enum' => ['header', 'query'],
],
'key' => ['title' => '鉴权使用的API Key ', 'type' => 'string', 'example' => 'Authorization'],
'value' => ['title' => 'API Key的值', 'type' => 'string', 'example' => 'mock_value'],
'encrypted' => ['title' => 'API Key加密状态,只读', 'type' => 'boolean'],
],
],
'Authorization' => [
'title' => '认证鉴权参数',
'type' => 'object',
'properties' => [
'type' => [
'title' => '鉴权类型。当前仅支持API Key鉴权(APIKey)',
'type' => 'string',
'required' => true,
'example' => 'APIKey',
'enum' => ['APIKey', 'Credentials'],
],
'parameters' => [
'title' => '鉴权请求参数',
'type' => 'object',
'properties' => [
'apiKeyParameter' => ['title' => 'API Key鉴权参数', '$ref' => '#/components/schemas/APIKeyAuthParameter'],
'credentials' => [
'title' => '访问凭证',
'type' => 'object',
'additionalProperties' => ['$ref' => '#/components/schemas/Variable'],
],
],
'required' => true,
],
],
],
'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' => ['type' => 'string'],
'kind' => ['type' => 'string'],
'uid' => ['type' => 'string'],
'createdTime' => ['type' => 'string'],
'description' => ['type' => 'string'],
'spec' => ['$ref' => '#/components/schemas/ComfyUIWorkflowTemplateSpec'],
'installCount' => ['type' => 'integer', 'format' => 'int32'],
'viewerUids' => ['type' => 'string'],
'labels' => [
'type' => 'object',
'additionalProperties' => ['type' => 'string'],
],
],
],
'ComfyUIWorkflowTemplateSpec' => [
'type' => 'object',
'properties' => [
'displayName' => ['type' => 'string'],
'author' => [
'type' => 'object',
'properties' => [
'name' => ['type' => 'string'],
'type' => ['type' => 'string'],
'avatarUrl' => ['type' => 'string'],
],
],
'coverUrls' => [
'type' => 'array',
'items' => ['type' => 'string'],
],
'versions' => [
'type' => 'object',
'additionalProperties' => [
'type' => 'object',
'properties' => [
'snapshotName' => ['type' => 'string'],
'flows' => [
'type' => 'array',
'items' => [
'type' => 'object',
'properties' => [
'name' => ['type' => 'string'],
],
],
],
'models' => [
'type' => 'array',
'items' => [
'type' => 'object',
'properties' => [
'path' => ['type' => 'string'],
'name' => ['type' => 'string'],
'size' => ['type' => 'string'],
'source' => [
'type' => 'object',
'properties' => [
'type' => ['type' => 'string'],
'webUrl' => ['type' => 'string'],
],
],
'downloadUrls' => [
'type' => 'object',
'additionalProperties' => ['type' => 'string'],
],
],
],
],
'nodes' => [
'type' => 'array',
'items' => [
'type' => 'object',
'properties' => [
'name' => ['type' => 'string'],
'version' => [
'type' => 'object',
'properties' => [
'type' => ['type' => 'string'],
'value' => ['type' => 'string'],
],
],
'source' => [
'type' => 'object',
'properties' => [
'type' => ['type' => 'string'],
'webUrl' => ['type' => 'string'],
'cloneUrl' => ['type' => 'string'],
],
],
],
],
],
],
],
],
'publishedVersions' => [
'type' => 'array',
'items' => ['type' => 'string'],
],
],
],
'Condition' => [
'title' => '执行条件',
'description' => '执行条件',
'visibility' => 'Public',
'type' => 'object',
'properties' => [
'expression' => ['title' => '返回值为bool类型的表达式', 'description' => '返回值为bool类型的表达式', 'visibility' => 'Public', 'type' => 'string', 'example' => 'enable == true'."\n"
.'-- 表示ctx.data.enable的值为true时为真', 'backendName' => 'expression'],
],
],
'Connection' => [
'title' => '身份绑定',
'description' => '项目',
'visibility' => 'Public',
'type' => 'object',
'properties' => [
'uid' => ['title' => '当前阿里云主账号的ID,只读', 'description' => '当前阿里云主账号的ID,只读', 'visibility' => 'Public', 'type' => 'string', 'required' => false, 'example' => '1455541096***548', 'backendName' => 'uid'],
'kind' => ['title' => '当前资源的名称,只读', 'description' => '当前资源的名称,只读', 'visibility' => 'Public', 'type' => 'string', 'example' => 'Connection', '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-connection', 'maxLength' => 40, 'minLength' => 1, 'pattern' => '[a-z](?!-)[a-z0-9-]{1,40}(?<!-)', 'backendName' => 'name'],
'spec' => ['title' => '身份绑定配置', 'description' => '身份绑定配置', 'visibility' => 'Public', 'required' => true, 'backendName' => 'spec', '$ref' => '#/components/schemas/ConnectionSpec'],
'labels' => [
'title' => '资源的标签',
'description' => '资源的标签',
'visibility' => 'Public',
'type' => 'object',
'additionalProperties' => ['visibility' => 'Public', 'type' => 'string', 'example' => 'key=value'],
'backendName' => 'labels',
],
'description' => ['title' => '描述信息', 'description' => '描述信息', 'visibility' => 'Public', 'type' => 'string', 'example' => 'test-description', 'backendName' => 'description'],
'status' => ['title' => '当前资源的状态信息,只读', 'description' => '当前资源的状态信息,只读', 'visibility' => 'Public', 'backendName' => 'status', '$ref' => '#/components/schemas/ConnectionStatus'],
],
],
'ConnectionSpec' => [
'title' => '身份绑定配置',
'description' => '仓库配置',
'type' => 'object',
'properties' => [
'platform' => ['title' => '第三方代码托管平台类型,目前支持:github/gitee/gitlab/codeup', 'description' => '第三方代码托管平台类型,目前支持:github/gitee/gitlab/codeup', 'type' => 'string', 'required' => true, 'example' => 'github'],
'account' => ['title' => '代码托管平台账号相关的信息', 'description' => '代码托管平台账号相关的信息', '$ref' => '#/components/schemas/GitAccount'],
'gitlabConfig' => ['title' => '连接GitLab代码托管平台所需配置', 'description' => '连接GitLab代码托管平台所需配置', '$ref' => '#/components/schemas/GitLabConfig'],
],
],
'ConnectionStatus' => [
'title' => '身份绑定状态',
'description' => '身份绑定的状态',
'visibility' => 'Public',
'type' => 'object',
'properties' => [
'installation' => ['title' => '身份绑定流程的当前状态', 'description' => '身份绑定流程的当前状态', 'visibility' => 'Public', 'backendName' => 'installation', '$ref' => '#/components/schemas/Installation'],
],
],
'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' => '插件供应商', 'type' => 'string'],
'source' => [
'title' => '插件来源',
'type' => 'object',
'properties' => [
'marketplace' => [
'title' => 'Dify插件市场配置',
'type' => 'object',
'properties' => [
'pluginId' => ['title' => '插件市场中的插件ID', 'type' => 'string'],
'version' => ['title' => '插件版本', 'type' => 'string'],
'uniqueIdentifier' => ['title' => '插件唯一定位符', 'type' => 'string'],
],
],
'github' => [
'title' => 'Github仓库配置',
'type' => 'object',
'properties' => [
'repository' => ['title' => '仓库名称', 'type' => 'string'],
'version' => ['title' => '仓库release版本', 'type' => 'string'],
'package' => ['title' => '插件安装包名', 'type' => 'string'],
],
],
'downloadUrl' => ['title' => '自定义下载地址', 'type' => 'string'],
'oss' => [
'title' => 'OSS对象存储配置',
'type' => 'object',
'properties' => [
'bucket' => ['title' => '存储桶名称', 'type' => 'string'],
'object' => ['title' => '对象名称', 'type' => 'string'],
'endpoint' => ['title' => 'oss服务端点', 'type' => 'string'],
],
],
],
],
],
],
'DifyToolSchema' => [
'type' => 'object',
'properties' => [
'name' => ['title' => '工具名称', 'type' => 'string'],
'description' => ['title' => '工具描述', 'type' => 'string'],
'inputSchema' => ['title' => '输入schema', 'type' => 'object'],
'outputSchema' => ['title' => '自定义输出schema', 'type' => 'object'],
],
],
'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' => '环境可以与用于开发迭代的特定分支相关联,也可以与基础结构堆栈相关联,以便将服务部署到指定的环境。',
'visibility' => 'Public',
'type' => 'object',
'properties' => [
'name' => ['title' => '环境名称,项目下唯一,不可修改', 'description' => '环境名称,项目下唯一,不可修改', 'visibility' => 'Public', 'type' => 'string', 'required' => true, 'example' => 'demo-env', 'backendName' => 'name'],
'kind' => ['title' => '当前资源的类型,只读', 'description' => '当前资源的类型,只读', 'visibility' => 'Public', 'type' => 'string', 'example' => 'Environment', 'backendName' => 'kind'],
'uid' => ['title' => '当前阿里云主账号的ID,只读', 'description' => '当前阿里云主账号的ID,只读', 'visibility' => 'Public', 'type' => 'string', 'required' => false, 'example' => '1455541096***548', 'backendName' => 'uid'],
'createdTime' => ['title' => '创建此对象时服务器的时间,只读', 'description' => '创建此对象时服务器的时间,只读', 'visibility' => 'Public', 'type' => 'string', 'example' => '2021-11-19T09:34:38Z', 'backendName' => 'createdTime'],
'description' => ['title' => '资源描述', 'description' => '资源描述', 'visibility' => 'Public', 'type' => 'string', 'example' => 'test env', 'backendName' => 'description'],
'spec' => ['title' => '环境配置', 'description' => '环境配置', 'visibility' => 'Public', 'required' => true, 'backendName' => 'spec', '$ref' => '#/components/schemas/EnvironmentSpec'],
'labels' => [
'title' => '资源的标签',
'description' => '资源的标签',
'visibility' => 'Public',
'type' => 'object',
'additionalProperties' => ['visibility' => 'Public', 'type' => 'string', 'example' => 'value to the label key.'],
'backendName' => 'labels',
],
'status' => ['title' => '当前环境的状态', 'description' => '当前环境的状态', 'visibility' => 'Public', 'backendName' => 'status', '$ref' => '#/components/schemas/EnvironmentStatus'],
'projectName' => ['title' => '环境所属的项目名称,只读', 'description' => '环境所属的项目名称,只读', 'visibility' => 'Public', 'type' => 'string', 'example' => 'demo-project', 'backendName' => 'projectName'],
'generation' => ['title' => '当前资源的自增的序列号,由系统填充,只读,当spec、labels、description更新时递增。如果指定,系统会加入并发写校验,generation必须和系统中的状态值一致', 'description' => '当前配置的自增的序列号,由系统填充,只读。当spec更新时递增', 'visibility' => 'Public', 'type' => 'integer', 'format' => 'int32', 'example' => '1', 'backendName' => 'generation'],
],
],
'EnvironmentSpec' => [
'title' => '环境配置描述',
'description' => '环境配置',
'visibility' => 'Public',
'type' => 'object',
'properties' => [
'type' => [
'title' => '环境类型,只能在testing、staging、production中选择',
'description' => '环境类型,只能在testing、staging、production中选择',
'visibility' => 'Public',
'type' => 'string',
'example' => 'Testing',
'backendName' => 'type',
'default' => 'Production',
'enum' => ['Testing', 'Staging', 'Production'],
],
'roleArn' => ['title' => '环境角色', 'description' => '环境角色', 'visibility' => 'Public', 'type' => 'string', 'example' => 'acs:ram::*******:role/aliyundevsdefaultrole', 'backendName' => 'roleArn'],
'stagedConfigs' => ['title' => '环境下保存的配置,可以通过部署达到该配置状态', 'description' => '环境下保存的配置,可以通过部署达到该配置状态', 'visibility' => 'Public', 'backendName' => 'stagedConfigs', '$ref' => '#/components/schemas/EnvironmentStagedConfigs'],
],
],
'EnvironmentStatus' => [
'title' => '环境状态',
'description' => '环境状态',
'visibility' => 'Public',
'type' => 'object',
'properties' => [
'servicesInstances' => [
'title' => '项目下的服务使用当前环境中的配置进行部署后产生的服务实例',
'description' => '项目下的服务使用当前环境中的配置进行部署后产生的服务实例',
'visibility' => 'Public',
'type' => 'object',
'additionalProperties' => ['visibility' => 'Public', '$ref' => '#/components/schemas/ServiceInstance'],
'backendName' => 'servicesInstances',
],
'latestEnvironmentDeploymentName' => ['title' => '最近一次部署计划的名称。每次环境部署都会产生一个部署计划,涉及若干个服务的部署', 'description' => '最近一次部署计划的名称。每次环境部署都会产生一个部署计划,涉及若干个服务的部署', 'visibility' => 'Public', 'type' => 'string', 'backendName' => 'latestEnvironmentDeploymentName'],
'servicesWithPendingChanges' => [
'title' => '存在未部署的变更的服务名称列表',
'description' => '存在未部署的变更的服务名称列表',
'visibility' => 'Public',
'type' => 'array',
'items' => ['visibility' => 'Public', 'type' => 'string', 'example' => '服务名称', 'extendType' => 'true'],
'backendName' => 'servicesWithPendingChanges',
],
'observedGeneration' => ['title' => '资源最近的一次状态更新时的资源generation', 'description' => '系统最新观测到的资源generation', 'visibility' => 'Public', 'type' => 'integer', 'format' => 'int64', 'example' => '1', 'backendName' => 'observedGeneration'],
'observedTime' => ['title' => '资源最近的一次状态更新时间', 'description' => '资源最近的一次状态更新时间', 'visibility' => 'Public', 'type' => 'string', 'example' => '2021-11-19T09:34:38Z', 'backendName' => 'observedTime'],
],
],
'EventFilterConfig' => [
'title' => '事件过滤配置',
'description' => '事件过滤配置',
'visibility' => 'Public',
'type' => 'object',
'properties' => [
'branch' => ['title' => '分支发生变更事件', 'description' => '分支发生变更事件', 'visibility' => 'Public', 'backendName' => 'branch', '$ref' => '#/components/schemas/BranchFilter'],
],
],
'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' => 'OAuth凭证',
'visibility' => 'Public',
'type' => 'object',
'properties' => [
'name' => ['title' => '代码托管平台的登录账号名,在每种代码托管平台下唯一', 'description' => '代码托管平台的登录账号名,在每种代码托管平台下唯一', 'visibility' => 'Public', 'type' => 'string', 'required' => false, 'example' => 'your_username', 'backendName' => 'name'],
'displayName' => ['title' => '代码托管平台中的昵称,可以为空且不唯一', 'description' => '代码托管平台中的昵称,可以为空且不唯一', 'visibility' => 'Public', 'type' => 'string', 'example' => 'your_displayname', 'backendName' => 'displayName'],
'id' => ['title' => '代码托管平台账号的ID,在每种代码托管平台下唯一', 'description' => '代码托管平台账号的ID,在每种代码托管平台下唯一', 'visibility' => 'Public', 'type' => 'string', 'example' => '1', 'backendName' => 'id'],
'avatar' => ['title' => '代码托管平台账号的头像链接', 'description' => '代码托管平台账号的头像链接', 'visibility' => 'Public', 'type' => 'string', 'required' => false, 'example' => 'https://gitee.com/assets/no_portrait.png', 'backendName' => 'avatar'],
'uri' => ['title' => '代码托管平台的地址,仅在自建GitLab时使用', 'description' => '代码托管平台的地址,仅在自建GitLab时使用', 'visibility' => 'Public', 'type' => 'string', 'required' => false, 'example' => 'https://gitlab.com', 'backendName' => 'uri'],
],
],
'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'],
],
],
],
],
],
],
],
'MCPInstallationConfig' => [
'title' => 'MCP安装配置',
'type' => 'object',
'properties' => [
'mcpServers' => ['title' => 'MCP server配置', '$ref' => '#/components/schemas/MCPServerInstallationConfig'],
],
],
'MCPServerInstallationConfig' => [
'title' => 'MCP server安装配置',
'type' => 'object',
'properties' => [
'transportType' => [
'title' => '传输类型',
'type' => 'string',
'enum' => ['stdio', 'sse', 'streamableHttp'],
],
'url' => ['title' => 'MCP server地址。仅对sse以及streamableHttp传输类型有效', 'type' => 'string'],
'command' => ['title' => 'MCP server启动命令,仅对stdio传输类型生效。仅支持uvx、npx', 'type' => 'string'],
'args' => ['title' => 'MCP server启动参数,仅对stdio传输类型生效。', 'type' => 'string'],
'env' => [
'type' => 'object',
'additionalProperties' => ['type' => 'string'],
],
],
],
'MCPToolMeta' => [
'title' => 'MCP类型的工具元信息',
'type' => 'object',
'properties' => [
'name' => ['title' => '工具名称', 'type' => 'string', 'example' => 'demo-tool'],
'description' => ['title' => '工具描述', 'type' => 'string', 'example' => 'Here is an example'],
'inputSchema' => ['type' => 'object'],
],
],
'ModelSet' => [
'title' => '模型集',
'description' => '模型集',
'type' => 'object',
'properties' => [
'generation' => ['title' => '当前资源的自增的序列号,由系统填充,只读,当spec、labels、description更新时递增。如果指定,系统会加入并发写校验,generation必须和系统中的状态值一致', 'type' => 'integer', 'format' => 'int64'],
'uid' => ['title' => '当前阿里云主账号的ID,只读', 'type' => 'string', 'required' => false, 'example' => '1455541096***548'],
'kind' => ['title' => '当前资源的类型,只读', 'type' => 'string', 'example' => 'ModelProvider'],
'name' => ['title' => '模型集的名称,账号内唯一,不可修改', 'type' => 'string', 'required' => true, 'example' => 'my-modelset'],
'createdTime' => ['title' => '模型集创建时间,只读', 'type' => 'string', 'example' => '2021-11-19T09:34:38Z'],
'description' => ['title' => '模型集的描述信息', 'type' => 'string', 'example' => 'test-description'],
'status' => ['$ref' => '#/components/schemas/ModelSetStatus'],
'labels' => [
'type' => 'object',
'additionalProperties' => ['type' => 'string', 'example' => 'key=value'],
'example' => 'key=value',
],
],
],
'ModelSetModelProfile' => [
'title' => '模型集的模型配置',
'type' => 'object',
'properties' => [
'sourceType' => [
'title' => '模型来源类型。predefined:预定义模型,customized:自定义模型',
'type' => 'string',
'example' => 'predefined',
'enum' => ['customized', 'predefined'],
],
'displayName' => ['title' => '模型展示名称', 'type' => 'string', 'example' => '通义千问-Turbo-Latest'],
'name' => ['title' => '模型名称,API调用时指定', 'type' => 'string', 'required' => true, 'example' => 'qwen-turbo-latest'],
'description' => ['title' => '模型描述', 'type' => 'string', 'example' => '通义千问系列速度最快、成本很低的模型,适合简单任务。本模型是动态更新版本,模型更新不会提前通知,模型中英文综合能力显著提升,模型人类偏好显著提升,模型推理能力和复杂指令理解能力显著增强,困难任务上的表现更优,数学、代码能力显著提升。'],
'props' => [
'title' => '模型属性',
'type' => 'object',
'properties' => [
'llmMode' => ['title' => 'LLM模型模式,仅模型类型为llm可用。completion:文本补全;chat:对话', 'type' => 'string'],
'contextSize' => ['title' => '模型上下文窗口大小,模型支持的最大 Token 数。 仅模型类型为llm以及text-embedding 可用', 'type' => 'integer', 'format' => 'int64'],
],
],
'enabled' => ['title' => '是否启用', 'type' => 'boolean'],
],
],
'ModelSetSpec' => [
'title' => '模型集配置',
'type' => 'object',
'properties' => [
'authConfig' => ['title' => '鉴权配置', '$ref' => '#/components/schemas/Authorization'],
'provider' => [
'title' => '模型提供商',
'type' => 'string',
'example' => 'FunctionAI',
'enum' => ['OpenAI', 'FunctionAI', 'Tongyi', 'Anthropic', 'OpenAICompatible'],
],
'baseUrl' => ['title' => '模型集服务地址,用于调用具体的模型', 'type' => 'string'],
'features' => [
'title' => '模型能力特征',
'type' => 'object',
'properties' => [
'toolCall' => ['title' => '是否支持ToolCall', 'type' => 'boolean'],
'vision' => ['title' => '是否支持视觉', 'type' => 'boolean'],
'agentThought' => ['title' => '是否支持Agent 推理', 'type' => 'boolean'],
],
],
'modelType' => [
'title' => '模型类型,包括:'."\n"
.'llm:文本生成模型'."\n"
.'text-embedding: 文本 Embedding 模型'."\n"
.'rerank: Rerank 模型'."\n"
.'speech2text: 语音转文字模型'."\n"
.'tts: 文字转语音模型'."\n"
.'moderation:审查模型',
'type' => 'string',
'required' => true,
'example' => 'llm',
'enum' => ['llm', 'text-embedding', 'tts', 'rerank', 'speech2text', 'moderation'],
],
'apiInvokeType' => [
'title' => 'API调用方式。OpenAI(openai)、Anthropic(anthropic),Ollama(ollama)',
'type' => 'string',
'example' => 'openai',
'enum' => ['openai', 'ollama', 'anthropic', 'dashscope'],
],
'models' => [
'title' => '模型列表',
'type' => 'array',
'items' => ['$ref' => '#/components/schemas/ModelSetModelProfile'],
'required' => true,
],
],
],
'ModelSetStatus' => [
'title' => '模型供应商状态',
'type' => 'object',
'properties' => [
'phase' => ['title' => '模型供应商当前状态', 'type' => 'string'],
'observedTime' => ['title' => '资源最近的一次状态更新时间', 'type' => 'string'],
'observedGeneration' => ['title' => '资源最近的一次状态更新时的资源generation', 'type' => 'integer', 'format' => 'int64'],
],
],
'OAuthCredential' => [
'title' => '身份绑定凭证',
'description' => 'OAuth凭证',
'visibility' => 'Public',
'type' => 'object',
'properties' => [
'token' => ['title' => '代码托管平台访问凭证,开发平台使用该凭证访问第三方代码托管平台', 'description' => '代码托管平台访问凭证,开发平台使用该凭证访问第三方代码托管平台', 'visibility' => 'Public', 'type' => 'string', 'required' => true, 'example' => '4e84246b6b3962cd3d207aad1ea2f911', 'backendName' => 'token'],
'type' => ['title' => '凭证的类型', 'description' => '凭证的类型', 'visibility' => 'Public', 'type' => 'string', 'example' => 'bearer', 'backendName' => 'type'],
'scope' => ['title' => '凭证包含的权限范围', 'description' => '凭证包含的权限范围', 'visibility' => 'Public', 'type' => 'string', 'example' => 'user_info projects pull_requests hook gists emails', 'backendName' => 'scope'],
'expiration' => ['title' => '凭证到期时间,时间戳形式,-1表示永久有效', 'description' => '凭证到期时间,时间戳形式,-1表示永久有效', 'visibility' => 'Public', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '1716263324603', 'backendName' => 'expiration'],
'createdTime' => ['title' => '凭证生成时间,时间戳形式', 'description' => '凭证生成时间,时间戳形式', 'visibility' => 'Public', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '1716176924603', 'backendName' => 'createdTime'],
'refreshToken' => ['title' => '刷新凭证时所需的信息', 'description' => '刷新凭证时所需的信息', 'visibility' => 'Public', 'type' => 'string', 'example' => '4d77bfae284770d94ebeed6b0199ebfd65e3943ba4f1e44dc36d792a93ba0d13', 'backendName' => 'refreshToken'],
],
],
'OpenAPIToolMeta' => [
'title' => 'OpenAPI类型的工具元信息',
'type' => 'object',
'properties' => [
'toolName' => ['title' => '工具名称', 'type' => 'string'],
'toolId' => ['title' => '工具ID', 'type' => 'string'],
'path' => ['title' => '工具在OpenAPI中对应的路径', 'type' => 'string'],
'method' => ['title' => '工具在OpenAPI中对应的方法', 'type' => 'string'],
],
],
'OSSMountPoint' => [
'type' => 'object',
'properties' => [
'bucketName' => ['type' => 'string'],
'bucketPath' => ['type' => 'string'],
'endpoint' => ['type' => 'string'],
'mountDir' => ['type' => 'string'],
'readOnly' => ['type' => 'boolean'],
],
],
'Pipeline' => [
'title' => 'A short description of struct',
'description' => '流水线运行',
'visibility' => 'Public',
'type' => 'object',
'properties' => [
'spec' => ['description' => '流水线配置', 'visibility' => 'Public', 'backendName' => 'spec', '$ref' => '#/components/schemas/PipelineSpec'],
'status' => ['description' => '流水线运行状态', 'visibility' => 'Public', 'backendName' => 'status', '$ref' => '#/components/schemas/PipelineStatus'],
'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' => 'Pipeline example.', 'backendName' => 'description'],
'kind' => ['title' => '当前资源的名称,只读', 'description' => '当前资源的名称,只读', 'visibility' => 'Public', 'type' => 'string', 'example' => 'Pipeline', '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', 'maxLength' => 40, 'minLength' => 1, 'pattern' => '[a-z](?!-)[a-z0-9-]{1,40}(?<!-)', 'backendName' => 'name'],
'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'],
],
],
'PipelineSpec' => [
'title' => 'A short description of struct',
'description' => '流水线配置',
'visibility' => 'Public',
'type' => 'object',
'properties' => [
'templateName' => ['title' => '流水线模板名称', 'description' => '流水线模板名称', 'visibility' => 'Public', 'type' => 'string', 'example' => 'my-pipeline-template', 'backendName' => 'templateName'],
'context' => ['title' => '流水线的执行上下文', 'description' => '流水线的执行上下文', 'visibility' => 'Public', 'backendName' => 'context', '$ref' => '#/components/schemas/Context'],
'templateSpec' => ['title' => '流水线执行流程的描述,优先级高于templateName,流水线执行不再需要预先创建PipelineTemplate', 'description' => '流水线执行流程的描述,优先级高于templateName,流水线执行不再需要预先创建PipelineTemplate', 'visibility' => 'Public', 'backendName' => 'templateSpec', '$ref' => '#/components/schemas/PipelineTemplateSpec'],
],
],
'PipelineStatus' => [
'title' => 'A short description of struct',
'description' => '流水线运行状态',
'visibility' => 'Public',
'type' => 'object',
'properties' => [
'phase' => ['title' => '当前流水线执行的阶段', 'description' => '当前流水线执行的阶段', 'visibility' => 'Public', 'type' => 'string', 'example' => 'Success', 'backendName' => 'phase'],
'latestExecError' => ['title' => '流水线出现的最近一次任务异常', 'description' => '流水线出现的最近一次任务异常', 'visibility' => 'Public', 'backendName' => 'latestExecError', '$ref' => '#/components/schemas/TaskExecError'],
],
],
'PipelineTemplate' => [
'title' => 'A short description of struct',
'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' => 'PipelineTemplate example.', 'backendName' => 'description'],
'kind' => ['title' => '当前资源的名称,只读', 'description' => '当前资源的名称,只读', 'visibility' => 'Public', 'type' => 'string', 'example' => 'PipelineTemplate', '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-template', 'maxLength' => 40, 'minLength' => 1, 'pattern' => '[a-z](?!-)[a-z0-9-]{1,40}(?<!-)', 'backendName' => 'name'],
'deletionTime' => ['title' => '资源删除时间,只读', 'description' => '资源删除时间,只读', 'visibility' => 'Public', 'type' => 'string', 'example' => '2021-11-19T09:34:38Z', 'backendName' => 'deletionTime'],
'spec' => ['description' => '流水线模板配置', 'visibility' => 'Public', 'backendName' => 'spec', '$ref' => '#/components/schemas/PipelineTemplateSpec'],
'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'],
],
],
'PipelineTemplateSpec' => [
'title' => 'A short description of struct',
'description' => '任务模板配置',
'visibility' => 'Public',
'type' => 'object',
'properties' => [
'context' => ['title' => '流水线的执行上下文', 'description' => '流水线的执行上下文', 'visibility' => 'Public', 'backendName' => 'context', '$ref' => '#/components/schemas/Context'],
'tasks' => [
'title' => '任务执行列表',
'description' => '任务执行列表',
'visibility' => 'Public',
'type' => 'array',
'items' => ['description' => '任务执行配置', 'visibility' => 'Public', 'extendType' => 'true', '$ref' => '#/components/schemas/TaskExec'],
'backendName' => 'tasks',
],
'contextSchema' => ['title' => '需要的执行上下文的格式描述', 'description' => '需要的执行上下文的格式描述', 'visibility' => 'Private', 'type' => 'object', 'backendName' => 'contextSchema'],
],
],
'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' => '项目',
'visibility' => 'Public',
'type' => 'object',
'properties' => [
'uid' => ['title' => '当前阿里云主账号的ID,只读', 'description' => '当前阿里云主账号的ID,只读', 'visibility' => 'Public', 'type' => 'string', 'required' => false, 'example' => '1455541096***548', 'backendName' => 'uid'],
'kind' => ['title' => '当前资源的名称,只读', 'description' => '当前资源的名称,只读', 'visibility' => 'Public', 'type' => 'string', 'example' => 'Project', '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-project', 'maxLength' => 40, 'minLength' => 1, 'pattern' => '[a-z](?!-)[a-z0-9-]{1,40}(?<!-)', 'backendName' => 'name'],
'labels' => [
'title' => '资源的标签',
'description' => '资源的标签',
'visibility' => 'Public',
'type' => 'object',
'additionalProperties' => ['visibility' => 'Public', 'type' => 'string', 'example' => 'key=value'],
'backendName' => 'labels',
],
'description' => ['title' => '描述信息', 'description' => '描述信息', 'visibility' => 'Public', 'type' => 'string', 'example' => 'test-description', 'backendName' => 'description'],
'spec' => ['visibility' => 'Private', 'backendName' => 'spec', '$ref' => '#/components/schemas/ProjectSpec'],
'status' => ['visibility' => 'Public', 'backendName' => 'status', '$ref' => '#/components/schemas/ProjectStatus'],
],
],
'ProjectSpec' => [
'title' => '项目配置',
'description' => '一键部署配置',
'visibility' => 'Public',
'type' => 'object',
'properties' => [
'token' => ['title' => '项目身份令牌,用于触发部署时的身份校验,只读', 'description' => '项目身份令牌,用于触发部署时的身份校验,只读', 'visibility' => 'Private', 'type' => 'string', 'example' => '9D72DE01-C732-49C0-8E85-FFD9D695436B', 'backendName' => 'token'],
],
],
'ProjectStatus' => [
'title' => '项目状态',
'description' => '一键部署配置',
'visibility' => 'Public',
'type' => 'object',
'properties' => [
'services' => [
'title' => '项目下的服务列表',
'description' => '项目下的服务列表',
'visibility' => 'Public',
'type' => 'array',
'items' => ['visibility' => 'Public', 'extendType' => 'true', '$ref' => '#/components/schemas/ServiceMeta'],
'backendName' => 'services',
],
'isDeleting' => ['title' => '项目是否删除中', 'description' => '项目是否删除中', 'visibility' => 'Private', 'type' => 'boolean', 'backendName' => 'isDeleting'],
],
],
'PublishTask' => [
'type' => 'object',
'properties' => [
'name' => ['type' => 'string'],
'kind' => ['type' => 'string'],
'uid' => ['type' => 'string'],
'createdTime' => ['type' => 'string'],
'description' => ['type' => 'string'],
'spec' => ['$ref' => '#/components/schemas/PublishTaskSpec'],
'status' => ['$ref' => '#/components/schemas/PublishTaskStatus'],
'labels' => [
'type' => 'object',
'additionalProperties' => ['type' => 'string'],
],
],
],
'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' => '仓库绑定',
'visibility' => 'Public',
'type' => 'object',
'properties' => [
'uid' => ['title' => '当前阿里云主账号的ID,只读', 'description' => '当前阿里云主账号的ID,只读', 'visibility' => 'Public', 'type' => 'string', 'required' => false, 'example' => '1455541096***548', 'backendName' => 'uid'],
'kind' => ['title' => '当前资源的名称,只读', 'description' => '当前资源的名称,只读', 'visibility' => 'Public', 'type' => 'string', 'example' => 'Repository', '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-repository', 'maxLength' => 40, 'minLength' => 1, 'pattern' => '[a-z](?!-)[a-z0-9-]{1,40}(?<!-)', 'backendName' => 'name'],
'spec' => ['title' => '仓库绑定配置', 'description' => '仓库绑定配置', 'visibility' => 'Public', 'required' => true, 'backendName' => 'spec', '$ref' => '#/components/schemas/RepositorySpec'],
'labels' => [
'title' => '资源的标签',
'description' => '资源的标签',
'visibility' => 'Public',
'type' => 'object',
'additionalProperties' => ['visibility' => 'Public', 'type' => 'string', 'example' => 'key=value'],
'backendName' => 'labels',
],
'description' => ['title' => '描述信息', 'description' => '描述信息', 'visibility' => 'Public', 'type' => 'string', 'example' => 'test-description', 'backendName' => 'description'],
],
],
'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' => '仓库配置',
'visibility' => 'Public',
'type' => 'object',
'properties' => [
'connectionName' => ['title' => '仓库所使用的身份绑定信息。通过关联的Connection可以获取到代码托管平台账号和凭证等信息', 'description' => '仓库所使用的身份绑定信息。通过关联的Connection可以获取到代码托管平台账号和凭证等信息', 'visibility' => 'Public', 'type' => 'string', 'required' => true, 'example' => 'awesome-connection', 'backendName' => 'connectionName'],
'cloneUrl' => ['title' => '拉取仓库代码(git clone)所需的链接,支持HTTPS和SSH形式。', 'description' => '拉取仓库代码(git clone)所需的链接,支持HTTPS和SSH形式。', 'visibility' => 'Public', 'type' => 'string', 'required' => true, 'example' => 'https://github.com/DDofDD/start-springboot-lfgy.git', 'backendName' => 'cloneUrl'],
'platform' => ['title' => '只读,仓库所属代码托管平台的类型,支持github、gitee、gitlab、codeup', 'description' => '只读,仓库所属代码托管平台的类型,支持github、gitee、gitlab、codeup', 'visibility' => 'Public', 'type' => 'string', 'example' => 'github', 'backendName' => 'platform'],
'id' => ['title' => '只读,代码托管平台中的仓库ID,平台内唯一', 'description' => '只读,代码托管平台中的仓库ID,平台内唯一', 'visibility' => 'Public', 'type' => 'integer', 'format' => 'int64', 'example' => '312649', 'backendName' => 'id'],
'owner' => ['title' => '只读,代码托管平台中仓库所属账号名或组织名', 'description' => '只读,代码托管平台中仓库所属账号名或组织名', 'visibility' => 'Public', 'type' => 'string', 'example' => 'my-org-name', 'backendName' => 'owner'],
'displayName' => ['title' => '只读,代码托管平台中的仓库名', 'description' => '只读,代码托管平台中的仓库名', 'visibility' => 'Public', 'type' => 'string', 'example' => 'my-repo-name', 'backendName' => 'displayName'],
'webUrl' => ['title' => '只读,仓库主页链接', 'description' => '只读,仓库主页链接', 'visibility' => 'Public', 'type' => 'string', 'example' => 'https://github.com/my-org-name/my-repo-name', 'backendName' => 'webUrl'],
],
],
'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' => '任务运行',
'visibility' => 'Public',
'type' => 'object',
'properties' => [
'spec' => ['description' => '任务运行配置', 'visibility' => 'Public', 'backendName' => 'spec', '$ref' => '#/components/schemas/TaskSpec'],
'status' => ['description' => '任务运行状态', 'visibility' => 'Public', 'backendName' => 'status', '$ref' => '#/components/schemas/TaskStatus'],
'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' => 'Task example.', 'backendName' => 'description'],
'kind' => ['title' => '当前资源的名称,只读', 'description' => '当前资源的名称,只读', 'visibility' => 'Public', 'type' => 'string', 'example' => 'Task', '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-task', 'maxLength' => 40, 'minLength' => 1, 'pattern' => '[a-z](?!-)[a-z0-9-]{1,40}(?<!-)', 'backendName' => 'name'],
'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'],
],
],
'TaskExec' => [
'title' => 'A short description of struct',
'description' => '任务执行',
'visibility' => 'Public',
'type' => 'object',
'properties' => [
'name' => ['title' => '当前任务代称', 'description' => '当前任务代称', 'visibility' => 'Public', 'type' => 'string', 'example' => 'task-1', 'backendName' => 'name'],
'context' => ['title' => '执行上下文', 'description' => '执行上下文', 'visibility' => 'Public', 'backendName' => 'context', '$ref' => '#/components/schemas/Context'],
'taskTemplate' => ['title' => '任务模板名称', 'description' => '任务模板名称', 'visibility' => 'Public', 'type' => 'string', 'example' => 'serverless-runner', 'backendName' => 'taskTemplate'],
'runAfters' => [
'title' => '执行顺序,必须在所有依赖任务执行完毕后才能被执行',
'description' => '执行顺序,必须在所有依赖任务执行完毕后才能被执行',
'visibility' => 'Public',
'type' => 'array',
'items' => ['description' => '执行依赖的任务代称。', 'visibility' => 'Public', 'extendType' => 'true', '$ref' => '#/components/schemas/RunAfter'],
'backendName' => 'runAfters',
],
],
],
'TaskExecError' => [
'title' => '任务执行出现的异常描述',
'description' => '任务执行异常',
'visibility' => 'Public',
'type' => 'object',
'properties' => [
'title' => ['title' => '错误描述', 'description' => '错误描述', 'visibility' => 'Public', 'type' => 'string', 'example' => '权限不足错误', 'backendName' => 'title'],
'message' => ['title' => '错误信息', 'description' => '错误信息', 'visibility' => 'Public', 'type' => 'string', 'example' => '部署服务[_appcenter-xxx]失败,权限不足', 'backendName' => 'message'],
'code' => ['title' => '错误码', 'description' => '错误码', 'visibility' => 'Public', 'type' => 'string', 'example' => 'AccessDenied', 'backendName' => 'code'],
'requestId' => ['title' => '请求ID', 'description' => '请求ID', 'visibility' => 'Public', 'type' => 'string', 'example' => '1-26d1287xxxxx', 'backendName' => 'requestId'],
'extraInfo' => ['title' => '对解决错误有帮助的额外信息', 'description' => '对解决错误有帮助的额外信息', 'visibility' => 'Public', 'type' => 'string', 'example' => '部署辅助函数权限不足,需要添加额外的权限以解决问题', 'backendName' => 'extraInfo'],
],
],
'TaskInvocation' => [
'title' => 'A short description of struct',
'description' => '任务调用详情',
'visibility' => 'Public',
'type' => 'object',
'properties' => [
'invocationID' => ['title' => '调用ID,任务在函数计算中的调用ID', 'description' => '调用ID,任务在函数计算中的调用ID', 'visibility' => 'Public', 'type' => 'string', 'example' => 'E099843B-10A2-4936-9964-4E0EE263D564', 'backendName' => 'invocationID'],
'requestID' => ['title' => '请求ID,任务在函数计算中的请求ID', 'description' => '请求ID,任务在函数计算中的请求ID', 'visibility' => 'Public', 'type' => 'string', 'example' => '1B3058B1-F1C9-457C-B95C-2C250A4B3118', 'backendName' => 'requestID'],
'invocationTarget' => ['title' => '调用目标', 'description' => '调用目标', 'visibility' => 'Public', 'type' => 'string', 'example' => 'acs:fc:cn-hangzhou:143xxxx:services/xxx.LATEST/functions/xxx', 'backendName' => 'invocationTarget'],
'status' => ['title' => '上一次观测到的调用状态。', 'description' => '上一次观测到的调用状态。', 'visibility' => 'Public', 'type' => 'string', 'example' => 'success', 'backendName' => 'status'],
'output' => ['title' => '调用结果', 'description' => '调用结果', 'visibility' => 'Public', 'type' => 'string', 'example' => '{"key1":"value1","key2":"value2"}', 'backendName' => 'output'],
'instanceID' => ['title' => '调用命中的实例ID', 'description' => '调用命中的实例ID', 'visibility' => 'Public', 'type' => 'string', 'example' => 'c-nkj8shz7xxxx', 'backendName' => 'instanceID'],
'slsProject' => ['title' => '日志投递到SLS产品的Project名称', 'description' => '日志投递到SLS产品的Project名称', 'visibility' => 'Public', 'type' => 'string', 'example' => 'my-sls-project', 'backendName' => 'slsProject'],
'slsLogStore' => ['title' => '日志投递到SLS产品的Logstore名称', 'description' => '日志投递到SLS产品的Logstore名称', 'visibility' => 'Public', 'type' => 'string', 'example' => 'my-sls-logstore', 'backendName' => 'slsLogStore'],
],
],
'TaskSpec' => [
'title' => 'A short description of struct',
'description' => '任务运行配置',
'visibility' => 'Public',
'type' => 'object',
'properties' => [
'templateName' => ['title' => '任务模板名称', 'description' => '任务模板名称', 'visibility' => 'Public', 'type' => 'string', 'example' => 'my-task-template', 'backendName' => 'templateName'],
'context' => ['title' => '任务的执行上下文', 'description' => '任务的执行上下文', 'visibility' => 'Public', 'backendName' => 'context', '$ref' => '#/components/schemas/Context'],
],
],
'TaskStatus' => [
'title' => 'A short description of struct',
'description' => '任务运行状态',
'visibility' => 'Public',
'type' => 'object',
'properties' => [
'statusGeneration' => ['title' => '状态版本号', 'description' => '状态版本号', 'visibility' => 'Public', 'type' => 'integer', 'format' => 'int64', 'example' => '123', 'backendName' => 'statusGeneration'],
'phase' => ['title' => '当前执行阶段', 'description' => '当前执行阶段', 'visibility' => 'Public', 'type' => 'string', 'example' => 'Success', 'backendName' => 'phase'],
'executionDetails' => [
'title' => '执行详情',
'description' => '执行详情',
'visibility' => 'Public',
'type' => 'array',
'items' => ['description' => '执行详情', 'visibility' => 'Public', 'type' => 'string', 'example' => 'step1: start task.', 'extendType' => 'true'],
'backendName' => 'executionDetails',
],
'invocations' => [
'title' => '执行历史',
'description' => '执行历史',
'visibility' => 'Public',
'type' => 'array',
'items' => ['description' => '调用的列表', 'visibility' => 'Public', 'extendType' => 'true', '$ref' => '#/components/schemas/TaskInvocation'],
'backendName' => 'invocations',
],
'latestExecError' => ['title' => '最近一次任务执行错误', 'description' => '最近一次任务执行错误', 'visibility' => 'Public', 'backendName' => 'latestExecError', '$ref' => '#/components/schemas/TaskExecError'],
],
],
'TaskTemplate' => [
'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' => 'TaskTemplate example.', 'backendName' => 'description'],
'kind' => ['title' => '当前资源的名称,只读', 'description' => '当前资源的名称,只读', 'visibility' => 'Public', 'type' => 'string', 'example' => 'TaskTemplate', '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-task-template', 'maxLength' => 40, 'minLength' => 1, 'pattern' => '[a-z](?!-)[a-z0-9-]{1,40}(?<!-)', 'backendName' => 'name'],
'deletionTime' => ['title' => '资源删除时间,只读', 'description' => '资源删除时间,只读', 'visibility' => 'Public', 'type' => 'string', 'example' => '2021-11-19T09:34:38Z', 'backendName' => 'deletionTime'],
'spec' => ['title' => '资源的配置属性', 'description' => '资源的配置属性', 'visibility' => 'Public', 'backendName' => 'spec', '$ref' => '#/components/schemas/TaskTemplateSpec'],
'labels' => [
'title' => '资源的标签',
'description' => '资源的标签',
'visibility' => 'Public',
'type' => 'object',
'additionalProperties' => ['description' => '标签', 'visibility' => 'Public', 'type' => 'string', 'example' => '资源标签的值'],
'backendName' => 'labels',
],
'resourceVersion' => ['title' => '当前状态的自增的序列号,由系统填充,只读。当资源更新时递增', 'description' => '当前状态的自增的序列号,由系统填充,只读。当资源更新时递增', 'visibility' => 'Public', 'type' => 'integer', 'format' => 'int32', 'example' => '1', 'backendName' => 'resourceVersion'],
],
],
'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' => '项目模板配置',
'visibility' => 'Public',
'type' => 'object',
'properties' => [
'variableValues' => ['title' => '模板变量', 'description' => '模板变量', 'visibility' => 'Public', 'backendName' => 'variableValues', '$ref' => '#/components/schemas/TemplateVariableValueMap'],
'templateName' => ['title' => '模板名称', 'description' => '模板名称', 'visibility' => 'Public', 'type' => 'string', 'required' => true, 'example' => 'start-springboot', 'backendName' => 'templateName'],
'parameters' => [
'title' => '模板参数',
'description' => '模板参数',
'visibility' => 'Public',
'type' => 'object',
'required' => false,
'additionalProperties' => ['visibility' => 'Public', 'type' => 'string', 'example' => '{"region":"cn-hangzhou"}'],
'example' => '{"region":"cn-hangzhou"}',
'backendName' => 'parameters',
],
'serviceNameChanges' => [
'title' => '服务名称变化,key是模板原始服务名,value是需要修改的目标服务名',
'description' => '服务名称变化,key是模板原始服务名,value是需要修改的目标服务名',
'visibility' => 'Public',
'type' => 'object',
'additionalProperties' => ['visibility' => 'Public', 'type' => 'string', 'example' => '{"originName": "newName"}'],
'example' => '{"svc1":"svc2"}',
'backendName' => 'serviceNameChanges',
],
],
],
'Toolset' => [
'title' => '工具集',
'description' => '工具集',
'type' => 'object',
'properties' => [
'uid' => ['title' => '当前阿里云主账号的ID,只读', 'description' => '当前阿里云主账号的ID,只读', 'type' => 'string', 'required' => false, 'example' => '1455541096***548'],
'kind' => ['title' => '当前资源的名称,只读', 'description' => '当前资源的名称,只读', 'type' => 'string', 'example' => 'Toolset'],
'name' => ['title' => '当前资源的名称。它需要是唯一的,且无法变更', 'description' => '当前资源的名称。它需要是唯一的,且无法变更', 'type' => 'string', 'required' => true, 'example' => 'my-toolset'],
'createdTime' => ['title' => '表示创建此对象时服务器的时间,只读', 'description' => '表示创建此对象时服务器的时间,只读', 'type' => 'string', 'example' => '2021-11-19T09:34:38Z'],
'description' => ['title' => '工具集的描述信息', 'description' => '工具集的描述信息', 'type' => 'string', 'example' => 'test-description'],
'spec' => ['title' => '工具集具体配置', 'description' => '工具集具体配置', '$ref' => '#/components/schemas/ToolsetSpec'],
'labels' => [
'title' => '资源的标签',
'description' => '资源的标签',
'type' => 'object',
'additionalProperties' => ['description' => '标签', 'type' => 'string', 'example' => 'key=value'],
],
'status' => ['title' => '工具集状态', 'description' => '工具集状态', '$ref' => '#/components/schemas/ToolsetStatus'],
'generation' => ['title' => '当前资源的自增的序列号,由系统填充,只读,当spec、labels、description更新时递增。如果指定,系统会加入并发写校验,generation必须和系统中的状态值一致', 'description' => '当前资源的自增的序列号,由系统填充,只读,当spec、labels、description更新时递增。如果指定,系统会加入并发写校验,generation必须和系统中的状态值一致', 'type' => 'integer', 'format' => 'int64', 'example' => '1'],
],
],
'ToolsetAuthorization' => [
'title' => '工具集鉴权信息',
'type' => 'object',
'properties' => [
'type' => ['title' => '工具集鉴权类型', 'type' => 'string', 'example' => 'apiKey'],
'authConfig' => [
'type' => 'object',
'additionalProperties' => ['type' => 'string'],
],
],
],
'ToolsetSchema' => [
'title' => '工具集接口规范与配置',
'description' => '工具集鉴权信息',
'type' => 'object',
'properties' => [
'type' => ['title' => '工具集 Schema 类型', 'description' => '工具集 Schema 类型', 'type' => 'string', 'example' => 'OpenAPI'],
'detail' => ['title' => '工具集 Schema 详情', 'description' => '工具集 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'],
'openAPISchema' => ['title' => 'OpenAPI Schema详情,仅针对type为OpenAPI时有效', 'type' => 'string'],
'mcpGateway' => ['title' => 'MCP网关配置,仅针对type为MCPGateway时有效', '$ref' => '#/components/schemas/MCPGatewayConfig'],
'difyPluginInstallation' => ['title' => 'Dify插件安装配置', '$ref' => '#/components/schemas/DifyPluginInstallationConfig'],
],
],
],
],
'ToolsetSpec' => [
'title' => '工具集配置',
'description' => '工具集配置',
'type' => 'object',
'properties' => [
'schema' => ['title' => '工具集schema结构', 'description' => '工具集schema结构', '$ref' => '#/components/schemas/ToolsetSchema'],
'networkConfig' => [
'title' => '工具集网络配置',
'type' => 'object',
'properties' => [
'internetAccess' => ['title' => '是否允许工具集函数访问公网', 'type' => 'boolean'],
'vpcConfig' => [
'title' => '工具集vpc配置',
'type' => 'object',
'properties' => [
'vpcId' => ['title' => 'vpd id', 'type' => 'string'],
'vSwitchIds' => [
'title' => '交换机列表',
'type' => 'array',
'items' => ['type' => 'string'],
],
'securityGroupId' => ['title' => '安全组id', 'type' => 'string'],
],
],
],
],
'authConfig' => ['title' => '鉴权配置', 'description' => '鉴权配置', '$ref' => '#/components/schemas/Authorization'],
],
],
'ToolsetStatus' => [
'description' => '工具集状态',
'type' => 'object',
'properties' => [
'phase' => ['title' => '工具集状态。Pending:初始状态;Installing:安装中,只有uvx、npx托管时才进入该状态;Installed:成功状态,表示成功安装;Failed:失败状态,安装失败会进入到该状;Invalid:无效状态,当导入存量的mcp server时,访问该server的url执行listTools失败会进入到该状态', 'description' => '工具集状态。Pending:初始状态;Installing:安装中,只有uvx、npx托管时才进入该状态;Installed:成功状态,表示成功安装;Failed:失败状态,安装失败会进入到该状;Invalid:无效状态,当导入存量的mcp server时,访问该server的url执行listTools失败会进入到该状态', 'type' => 'string', 'example' => 'Installed'],
'outputs' => [
'description' => '工具集输出',
'type' => 'object',
'properties' => [
'functionArn' => ['title' => '函数资源定位符。当工具集托管资源时存在该字段', 'description' => '函数资源定位符。当工具集托管资源时存在该字段', 'type' => 'string', 'example' => 'acs:fc:cn-qingdao:0000:functions/aliyun_merchant_login_egistration'],
'urls' => [
'title' => '工具集访问地址。仅当工具集托管资源时存在该字段',
'description' => '工具集访问地址。仅当工具集托管资源时存在该字段',
'type' => 'object',
'properties' => [
'internetUrl' => ['title' => '公网访问地址', 'description' => '公网访问地址', 'type' => 'string', 'example' => 'https://mock.cn-hangzhou.fcapp.run/sse'],
'intranetUrl' => ['title' => '内网访问地址', 'description' => '内网访问地址', 'type' => 'string', 'example' => 'https://mock.cn-hangzhou-vpc.fcapp.run/sse'],
],
],
'mcpServerConfig' => [
'title' => 'MCP服务器访问配置。仅当MCP类型的工具集存在该字段',
'description' => 'MCP服务器访问配置。仅当MCP类型的工具集存在该字段',
'type' => 'object',
'properties' => [
'url' => ['title' => 'MCP服务器访问地址', 'description' => 'MCP服务器访问地址', 'type' => 'string', 'example' => 'https://mock.cn-hangzhou.fcapp.run/sse'],
'transportType' => ['title' => 'MCP服务器传输类型。SSE、StreamableHttp', 'description' => 'MCP服务器传输类型。SSE、StreamableHttp', 'type' => 'string', 'example' => 'sse'],
'headers' => [
'description' => '请求头',
'type' => 'object',
'additionalProperties' => ['description' => '请求头的值', 'type' => 'string', 'example' => '{\'Authorization\': Bearer xxxx}'],
],
],
],
'openApiTools' => [
'title' => 'OpenAPI类型的工具集工具列表,仅当OpenAPI类型的工具集存在该字段',
'description' => 'OpenAPI类型的工具集工具列表,仅当OpenAPI类型的工具集存在该字段',
'type' => 'array',
'items' => ['description' => 'OpenAPI工具信息', '$ref' => '#/components/schemas/OpenAPIToolMeta'],
],
'tools' => [
'title' => 'MCP类型的工具集工具列表,仅当MCP类型的工具集存在该字段',
'description' => 'MCP类型的工具集工具列表,仅当MCP类型的工具集存在该字段',
'type' => 'array',
'items' => ['description' => 'MCP工具信息', '$ref' => '#/components/schemas/MCPToolMeta'],
],
'difyTools' => [
'title' => 'Dify类型的工具集工具列表,仅当DifyPlugin类型的工具集存在该字段',
'type' => 'array',
'items' => ['$ref' => '#/components/schemas/DifyToolSchema'],
],
],
],
'observedGeneration' => ['title' => '资源最近的一次状态更新时的资源generation', 'description' => '资源最近的一次状态更新时的资源generation', 'type' => 'integer', 'format' => 'int64', 'example' => '10'],
'observedTime' => ['title' => '资源最近的一次状态更新时间', 'description' => '资源最近的一次状态更新时间', 'type' => 'string', 'example' => '2025-07-28T14:03:19Z'],
],
],
'Variable' => [
'title' => '变量',
'description' => '变量',
'type' => 'object',
'properties' => [
'value' => ['title' => '变量的值', 'description' => '变量的值', 'type' => 'any', 'example' => 'object_value'],
'sensitive' => ['title' => '变量是否敏感', 'description' => '变量是否敏感', 'type' => 'boolean', 'example' => 'false'],
'encrypted' => ['title' => '变量是否被加密', 'description' => '变量是否被加密', 'type' => 'boolean', 'example' => 'false'],
],
],
],
],
'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' => ['title' => '对象名称', 'description' => '对象名称', 'type' => 'string', 'required' => false, 'example' => 'demo-name'],
],
[
'name' => 'body',
'in' => 'body',
'style' => 'json',
'schema' => [
'title' => '激活内容',
'description' => '激活内容',
'type' => 'object',
'properties' => [
'account' => ['title' => '代码托管平台中的账号信息', 'description' => '代码托管平台中的账号信息', 'required' => false, '$ref' => '#/components/schemas/GitAccount'],
'credential' => ['title' => '完成OAuth授权流程后获取的凭证信息,使用该凭证可以访问代码托管平台相关API', 'description' => '完成OAuth授权流程后获取的凭证信息,使用该凭证可以访问代码托管平台相关API', 'required' => false, '$ref' => '#/components/schemas/OAuthCredential'],
],
'required' => false,
],
],
],
'responses' => [
200 => [
'schema' => ['title' => '激活后的身份绑定实体', 'description' => '激活后的身份绑定实体', '$ref' => '#/components/schemas/Connection'],
],
],
'title' => '激活身份绑定',
'summary' => '激活一个身份绑定。点击Connection状态中的授权链接完成OAuth授权流程后,开发平台会激活当前身份绑定。 使用OAuth授权的第三方代码托管平台包括:GitHub、Gitee、Codeup。',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [],
],
'ramActions' => [
[
'operationType' => 'update',
'ramAction' => [
'action' => 'devs:ActivateConnection',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Devs', 'resourceType' => '全部资源', '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' => '取消流水线执行。流水线以及任务将被尽快取消执行。',
'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' => ['title' => '对象名称', 'description' => '对象名称', 'type' => 'string', 'required' => false, 'example' => 'demo-name'],
],
],
'responses' => [
200 => [
'schema' => ['title' => '流水线执行', 'description' => '流水线执行', '$ref' => '#/components/schemas/Pipeline'],
],
],
'title' => '取消流水线执行',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [],
],
'ramActions' => [
[
'operationType' => 'update',
'ramAction' => [
'action' => 'devs:CancelPipeline',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Devs', 'resourceType' => '全部资源', '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 \\"contextSchema\\": {\\n \\"test\\": \\"test\\",\\n \\"test2\\": 1\\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' => '取消流水线任务执行。',
'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' => ['title' => '对象名称', 'description' => '对象名称', 'type' => 'string', 'required' => false, 'example' => 'demo-name'],
],
],
'responses' => [
200 => [
'schema' => ['title' => '流水线任务', 'description' => '流水线任务', '$ref' => '#/components/schemas/Task'],
],
],
'title' => '取消流水线任务执行',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [],
],
'ramActions' => [
[
'operationType' => 'update',
'ramAction' => [
'action' => 'devs:CancelTask',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Devs', 'resourceType' => '全部资源', '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' => ['title' => '交付物配置', 'description' => '交付物配置', 'required' => false, '$ref' => '#/components/schemas/Artifact'],
],
],
'responses' => [
200 => [
'schema' => ['title' => '交付物配置', 'description' => '交付物配置', '$ref' => '#/components/schemas/Artifact'],
],
],
'staticInfo' => ['returnType' => 'synchronous'],
'title' => '创建交付物',
'summary' => '创建交付物存储',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [],
],
'ramActions' => [
[
'operationType' => 'create',
'ramAction' => [
'action' => 'devs:CreateArtifact',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Devs', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
],
],
],
'CreateEnvironment' => [
'summary' => '创建项目下的环境,并可选地根据模板自动部署该环境。'."\n"
.'服务会部署到指定的环境中,环境可以绑定代码仓库的某个分支或者某个项目模板。环境还可以设置基础设施堆栈,被环境下的所有服务所共享。',
'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' => ['title' => '环境实体', 'description' => '环境实体', 'required' => false, '$ref' => '#/components/schemas/Environment'],
],
[
'name' => 'projectName',
'in' => 'path',
'schema' => ['title' => '项目名', 'description' => '项目名', 'type' => 'string', 'required' => true, 'example' => 'demo-project'],
],
],
'responses' => [
200 => [
'schema' => ['title' => '环境实体', 'description' => '环境实体', '$ref' => '#/components/schemas/Environment'],
],
],
'staticInfo' => ['returnType' => 'synchronous'],
'eventInfo' => [
'enable' => false,
'eventNames' => [],
],
'title' => '创建环境',
'description' => '使用注意事项:'."\n"
."\n"
.'- 当Environment.Spec.TemplateConfig非空时:创建环境后,开发平台会使用您提供的模板信息异步地为您自动部署该项目(创建PipelineTrigger、PipelineTriggerEvent、Pipeline实体)。'."\n"
."\n"
.'- 当Environment.Spec.TemplateConfig为空时:仅创建环境实体,需要您手动调用PipelineTrigger、PipelineTriggerEvent相关API完成部署。'."\n"
."\n"
.'<notice>通过模板完成的项目部署流程完全免费,部署后项目模板所涉及的云资源将按照各云产品的计费方式计费></notice>',
'changeSet' => [
['createdAt' => '2024-09-06T06:01:08.000Z', 'description' => '请求参数发生变更'],
],
'flowControl' => [
'flowControlList' => [],
],
'ramActions' => [
[
'operationType' => 'create',
'ramAction' => [
'action' => 'devs:CreateEnvironment',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Devs', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
],
],
],
'CreatePipeline' => [
'summary' => '创建流水线执行。流水线将被异步地执行,并按照配置,产生具体的流水线任务。',
'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' => ['title' => '创建的流水线执行', 'description' => '创建的流水线执行', 'required' => false, '$ref' => '#/components/schemas/Pipeline'],
],
],
'responses' => [
200 => [
'schema' => ['title' => '创建的流水线执行', 'description' => '创建的流水线执行', '$ref' => '#/components/schemas/Pipeline'],
],
],
'title' => '创建流水线执行',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [],
],
'ramActions' => [
[
'operationType' => 'create',
'ramAction' => [
'action' => 'devs:CreatePipeline',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Devs', 'resourceType' => '全部资源', '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 \\"contextSchema\\": {\\n \\"test\\": \\"test\\",\\n \\"test2\\": 1\\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' => '创建项目,并在指定模板配置时自动部署此项目。',
'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' => '计划创建的项目实体', 'required' => false, '$ref' => '#/components/schemas/Project'],
],
],
'responses' => [
200 => [
'schema' => ['description' => '成功创建的项目实体', '$ref' => '#/components/schemas/Project'],
],
],
'staticInfo' => ['returnType' => 'synchronous'],
'eventInfo' => [
'enable' => false,
'eventNames' => [],
],
'title' => '创建项目',
'description' => '1. 当`Project.Spec.TemplateConfig`非空时:创建项目后,开发平台会使用您提供的模板信息异步地为您自动部署该项目(创建`Environment`、`PipelineTrigger`、`PipelineTriggerEvent`、`Pipeline`实体)'."\n"
.'2. 当`Project.Spec.TemplateConfig`为空时:仅创建项目实体,需要您手动调用`Environment`、`PipelineTrigger`、`PipelineTriggerEvent`相关API完成部署。'."\n"
."\n"
.'><notice>通过模板完成的项目部署流程完全免费,部署后项目模板所涉及的云资源将按照各云产品的计费方式计费></notice>',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [],
],
'ramActions' => [
[
'operationType' => 'create',
'ramAction' => [
'action' => 'devs:CreateProject',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Devs', 'resourceType' => '全部资源', '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' => ['title' => '流水线任务', 'description' => '流水线任务', 'required' => false, '$ref' => '#/components/schemas/Task'],
],
],
'responses' => [
200 => [
'schema' => ['title' => '流水线任务', 'description' => '流水线任务', '$ref' => '#/components/schemas/Task'],
],
],
'title' => '创建流水线任务执行',
'summary' => '创建流水线任务执行。',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [],
],
'ramActions' => [
[
'operationType' => 'create',
'ramAction' => [
'action' => 'devs:CreateTask',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Devs', 'resourceType' => '全部资源', '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' => '计划创建的工具集实体', 'required' => false, '$ref' => '#/components/schemas/Toolset'],
],
],
'responses' => [
200 => [
'schema' => ['description' => '成功创建的工具集实体', '$ref' => '#/components/schemas/Toolset'],
],
],
'staticInfo' => ['returnType' => 'synchronous'],
'eventInfo' => [
'enable' => false,
'eventNames' => [],
],
'title' => '创建工具集',
'summary' => '创建工具集',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [],
],
'ramActions' => [
[
'operationType' => 'create',
'ramAction' => [
'action' => 'devs:CreateToolset',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Devs', 'resourceType' => '全部资源', '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' => ['title' => '交付物名称', 'description' => '交付物名称', 'type' => 'string', 'required' => false, 'example' => 'demo-artifact'],
],
],
'responses' => [],
'staticInfo' => ['returnType' => 'synchronous'],
'title' => '删除交付物',
'summary' => '删除交付物',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [],
],
'ramActions' => [
[
'operationType' => 'delete',
'ramAction' => [
'action' => 'devs:DeleteArtifact',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Devs', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{}","type":"json"}]',
],
'DeleteConnection' => [
'summary' => '删除一个身份绑定。',
'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' => ['title' => '对象名称', 'description' => '对象名称', 'type' => 'string', 'required' => false, 'example' => 'demo-name'],
],
[
'name' => 'force',
'in' => 'query',
'schema' => ['title' => '若存在其他Repository实体关联了该Connection,则无法直接删除;指定force=true后可以强制删除Connection(但不级联删除Repository)', 'description' => '是否强制删除。若存在仓库绑定实体(Repository)关联了该身份绑定(Connection),则无法直接删除;您能够通过强制删除的方式删除该身份绑定'."\n"
."\n"
.'><notice>删除身份绑定(Connection)时,不会级联删除关联的仓库绑定(Repository)></notice>', 'type' => 'boolean', 'required' => false, 'example' => 'true'],
],
],
'responses' => [
200 => [
'schema' => [
'title' => 'Schema of Response',
'description' => '返回结果',
'type' => 'object',
'properties' => [
'requestId' => ['title' => 'Id of the request', 'description' => '请求ID', 'type' => 'string', 'example' => 'A5152937-1C8A-5260-90FA-520CEF028D2D'],
],
],
],
],
'eventInfo' => [
'enable' => false,
'eventNames' => [],
],
'title' => '删除身份绑定',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [],
],
'ramActions' => [
[
'operationType' => 'delete',
'ramAction' => [
'action' => 'devs:DeleteConnection',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Devs', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"A5152937-1C8A-5260-90FA-520CEF028D2D\\"\\n}","type":"json"}]',
],
'DeleteEnvironment' => [
'summary' => '删除一个环境,并级联删除项目下的其他实体(包括流水线触发器、流水线触发记录、流水线模板、流水线)。',
'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' => '项目名称', 'description' => '项目名称', 'type' => 'string', 'required' => true, 'example' => 'demo-project'],
],
[
'name' => 'name',
'in' => 'path',
'schema' => ['title' => '环境名称', 'description' => '环境名称', 'type' => 'string', 'required' => true, 'example' => 'demo-env'],
],
],
'responses' => [],
'staticInfo' => ['returnType' => 'synchronous'],
'title' => '删除环境',
'description' => '删除环境目前不支持删除环境下的云资源,您需要手动删除资源。',
'changeSet' => [
['createdAt' => '2024-09-06T06:01:13.000Z', 'description' => '请求参数发生变更'],
],
'flowControl' => [
'flowControlList' => [],
],
'ramActions' => [
[
'operationType' => 'delete',
'ramAction' => [
'action' => 'devs:DeleteEnvironment',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Devs', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{}","type":"json"}]',
],
'DeleteProject' => [
'summary' => '删除一个项目,并级联删除项目下的其他实体(包括环境、流水线触发器、流水线触发记录、流水线模板、流水线)。',
'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' => ['title' => '对象名称', 'description' => '项目名称', 'type' => 'string', 'required' => false, 'example' => 'demo-name'],
],
[
'name' => 'force',
'in' => 'query',
'schema' => ['title' => '当项目下不存在任何环境或仅存在一个默认环境时,才允许删除该项目;而force可以强制删除项目并级联删除其下环境', 'description' => '是否强制删除。当项目中包含多个环境时,若force为true,则能够强制删除项目,并级联删除所有环境下的其他实体;若force为false,则抛出异常,需要您先删除环境', 'type' => 'boolean', 'required' => false, 'example' => 'true'],
],
],
'responses' => [],
'staticInfo' => ['returnType' => 'synchronous'],
'title' => '删除项目',
'description' => '1. 若项目中不存在环境或仅包含一个默认环境:能够删除项目,并级联删除环境下的其他实体(包括流水线触发器、流水线触发记录、流水线模板、流水线)'."\n"
.'2. 若项目中包含多个环境:若`force`为`true`,则能够强制删除项目,并级联删除所有环境下的其他实体;若`force`为`false`,则抛出异常,需要您先删除环境'."\n"
."\n"
.'> 使用OpenAPI删除项目时,暂不支持删除项目下部署的云资源(例如函数、自定义域名等)',
'changeSet' => [
['createdAt' => '2024-09-06T06:01:13.000Z', 'description' => '响应参数发生变更'],
],
'flowControl' => [
'flowControlList' => [],
],
'ramActions' => [
[
'operationType' => 'delete',
'ramAction' => [
'action' => 'devs:DeleteProject',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Devs', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{}","type":"json"}]',
],
'DeleteToolset' => [
'summary' => '删除某个工具集',
'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' => ['title' => '工具集名称', 'description' => '工具集名称', 'type' => 'string', 'required' => false, 'example' => 'my-toolset'],
],
],
'responses' => [],
'staticInfo' => ['returnType' => 'synchronous'],
'title' => '删除工具集',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [],
],
'ramActions' => [
[
'operationType' => 'delete',
'ramAction' => [
'action' => 'devs:DeleteToolset',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Devs', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{}","type":"json"}]',
],
'DeployEnvironment' => [
'summary' => '手动触发环境部署。',
'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' => ['title' => '所属应用名称', 'description' => '所属项目名称', 'type' => 'string', 'required' => false, 'example' => 'demo-name'],
],
[
'name' => 'name',
'in' => 'path',
'schema' => ['title' => '对象名称', 'description' => '环境名称', 'type' => 'string', 'required' => false, 'example' => 'demo-name'],
],
[
'name' => 'body',
'in' => 'body',
'style' => 'json',
'schema' => ['title' => '部署环境选项', 'description' => '部署选项', 'required' => false, '$ref' => '#/components/schemas/DeployEnvironmentOptions'],
],
],
'responses' => [
200 => [
'schema' => ['title' => '环境部署信息', 'description' => '环境部署详情', '$ref' => '#/components/schemas/EnvironmentDeployment'],
],
],
'staticInfo' => ['returnType' => 'synchronous'],
'eventInfo' => [
'enable' => false,
'eventNames' => [],
],
'title' => '部署环境',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [],
],
'ramActions' => [
[
'operationType' => 'update',
'ramAction' => [
'action' => 'devs:DeployEnvironment',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Devs', 'resourceType' => '全部资源', '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' => ['title' => '交付物名称', 'description' => '交付物名称', 'type' => 'string', 'required' => false, 'example' => 'demo-name'],
],
],
'responses' => [
200 => [
'schema' => ['title' => '交付物临时下载地址', 'description' => '交付物临时下载地址', '$ref' => '#/components/schemas/ArtifactCode'],
],
],
'staticInfo' => ['returnType' => 'synchronous'],
'title' => '获取交付物临时下载地址',
'summary' => '获取交付物的zip包临时下载地址url',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [],
],
'ramActions' => [
[
'operationType' => 'get',
'ramAction' => [
'action' => 'devs:FetchArtifactDownloadUrl',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Devs', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
],
],
],
'FetchArtifactTempBucketToken' => [
'summary' => '获取交付物临时上传的bucket、object和临时sts',
'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' => ['title' => '交付上传临时地址', 'description' => '交付上传临时地址', '$ref' => '#/components/schemas/ArtifactTempBucketToken'],
],
[],
],
'title' => '获取交付物临时上传令牌',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [],
],
'ramActions' => [
[
'operationType' => 'get',
'ramAction' => [
'action' => 'devs:FetchArtifactTempBucketToken',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Devs', 'resourceType' => '全部资源', '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' => ['title' => '对象名称', 'description' => '对象名称', 'type' => 'string', 'required' => false, 'example' => 'demo-name'],
],
],
'responses' => [
200 => [
'schema' => ['description' => '身份绑定凭证', '$ref' => '#/components/schemas/OAuthCredential'],
],
],
'title' => '获取身份绑定凭证',
'summary' => '获取完成授权流程的身份绑定凭证,开发平台会使用该凭证访问第三方代码托管平台。',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [],
],
'ramActions' => [
[
'operationType' => 'get',
'ramAction' => [
'action' => 'devs:FetchConnectionCredential',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Devs', 'resourceType' => '全部资源', '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' => '查询交付物',
'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' => ['title' => '交付物名称', 'description' => '交付物名称', 'type' => 'string', 'required' => false, 'example' => 'demo-artifact'],
],
],
'responses' => [
200 => [
'schema' => ['title' => '交付物配置', 'description' => '交付物配置', '$ref' => '#/components/schemas/Artifact'],
],
],
'staticInfo' => ['returnType' => 'synchronous'],
'title' => '查询交付物',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [],
],
'ramActions' => [
[
'operationType' => 'get',
'ramAction' => [
'action' => 'devs:GetArtifact',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Devs', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
],
],
],
'GetEnvironment' => [
'summary' => '查询一个环境。',
'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' => '项目名称', 'description' => '项目名称', 'type' => 'string', 'required' => true, 'example' => 'demo-project'],
],
[
'name' => 'name',
'in' => 'path',
'schema' => ['title' => '环境名称', 'description' => '环境名称', 'type' => 'string', 'required' => true, 'example' => 'demo-env'],
],
],
'responses' => [
200 => [
'schema' => ['title' => '环境实体', 'description' => '环境实体', '$ref' => '#/components/schemas/Environment'],
],
],
'staticInfo' => ['returnType' => 'synchronous'],
'eventInfo' => [
'enable' => false,
'eventNames' => [],
],
'title' => '查询环境',
'changeSet' => [
['createdAt' => '2024-09-06T06:01:09.000Z', 'description' => '请求参数发生变更'],
],
'flowControl' => [
'flowControlList' => [],
],
'ramActions' => [
[
'operationType' => 'get',
'ramAction' => [
'action' => 'devs:GetEnvironment',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Devs', 'resourceType' => '全部资源', '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' => ['title' => '环境部署名称', 'description' => '环境部署名称', 'type' => 'string', 'required' => false, 'example' => 'demo-name'],
],
],
'responses' => [
200 => [
'schema' => ['title' => '环境部署详情', 'description' => '环境部署详情', '$ref' => '#/components/schemas/EnvironmentDeployment'],
],
],
'eventInfo' => [
'enable' => false,
'eventNames' => [],
],
'title' => '查询环境部署详情',
'summary' => '查询环境部署信息',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [],
],
'ramActions' => [
[
'operationType' => 'get',
'ramAction' => [
'action' => 'devs:GetEnvironmentDeployment',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Devs', 'resourceType' => '全部资源', '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' => ['title' => '对象名称', 'description' => '对象名称', 'type' => 'string', 'required' => false, 'example' => 'demo-name'],
],
],
'responses' => [
200 => [
'schema' => ['title' => '流水线执行', 'description' => '流水线执行', '$ref' => '#/components/schemas/Pipeline'],
],
],
'title' => '查询流水线执行',
'summary' => '查询流水线执行。',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [],
],
'ramActions' => [
[
'operationType' => 'get',
'ramAction' => [
'action' => 'devs:GetPipeline',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Devs', 'resourceType' => '全部资源', '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 \\"contextSchema\\": {\\n \\"test\\": \\"test\\",\\n \\"test2\\": 1\\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' => '查询项目',
'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' => ['title' => '对象名称', 'description' => '对象名称', 'type' => 'string', 'required' => false, 'example' => 'demo-name'],
],
],
'responses' => [
200 => [
'schema' => ['description' => '查询的项目实体', '$ref' => '#/components/schemas/Project'],
],
],
'staticInfo' => ['returnType' => 'synchronous'],
'eventInfo' => [
'enable' => false,
'eventNames' => [],
],
'title' => '查询项目',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [],
],
'ramActions' => [
[
'operationType' => 'get',
'ramAction' => [
'action' => 'devs:GetProject',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Devs', 'resourceType' => '全部资源', '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' => ['title' => '对象名称', 'description' => '对象名称', 'type' => 'string', 'required' => false, 'example' => 'demo-name'],
],
],
'responses' => [
200 => [
'schema' => ['description' => '查询的仓库绑定实体', '$ref' => '#/components/schemas/Repository'],
],
],
'title' => '查询仓库绑定',
'summary' => '查询一个仓库绑定实体。',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [],
],
'ramActions' => [
[
'operationType' => 'get',
'ramAction' => [
'action' => 'devs:GetRepository',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Devs', 'resourceType' => '全部资源', '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' => ['title' => '服务部署名称', 'description' => '服务部署名称', 'type' => 'string', 'required' => false, 'example' => 'demo-name'],
],
],
'responses' => [
200 => [
'schema' => ['title' => '服务部署详情', 'description' => '服务部署详情', '$ref' => '#/components/schemas/ServiceDeployment'],
],
],
'title' => '查询服务部署详情',
'summary' => '查询服务部署信息',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [],
],
'ramActions' => [
[
'operationType' => 'get',
'ramAction' => [
'action' => 'devs:GetServiceDeployment',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Devs', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
],
],
],
'GetTask' => [
'summary' => '查询流水线任务执行。',
'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' => ['title' => '对象名称', 'description' => '对象名称', 'type' => 'string', 'required' => false, 'example' => 'demo-name'],
],
],
'responses' => [
200 => [
'schema' => ['title' => '流水线任务', 'description' => '流水线任务', '$ref' => '#/components/schemas/Task'],
],
],
'title' => '查询流水线任务执行',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [],
],
'ramActions' => [
[
'operationType' => 'get',
'ramAction' => [
'action' => 'devs:GetTask',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Devs', 'resourceType' => '全部资源', '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' => '获取某个工具集的信息',
'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' => ['title' => '工具集名称', 'description' => '工具集名称', 'type' => 'string', 'required' => false, 'example' => 'my-toolset'],
],
],
'responses' => [
200 => [
'schema' => ['description' => '查询到的工具集实体', '$ref' => '#/components/schemas/Toolset'],
],
],
'staticInfo' => ['returnType' => 'synchronous'],
'eventInfo' => [
'enable' => false,
'eventNames' => [],
],
'title' => '获取工具集',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [],
],
'ramActions' => [
[
'operationType' => 'get',
'ramAction' => [
'action' => 'devs:GetToolset',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Devs', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
],
],
],
'ListConnections' => [
'summary' => '批量查询满足条件的身份绑定。',
'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' => '利用实体的labels字段进行筛选。精确匹配labelSelector数组中的所有条件,不同条件之间是“且”的关系',
'description' => '利用实体的labels字段进行筛选。精确匹配labelSelector数组中的所有条件,不同条件之间是“且”的关系',
'type' => 'array',
'items' => ['title' => 'labelSelector中的一条筛选条件,格式为${key}=${value}', 'description' => 'labelSelector中的一条筛选条件,格式为${key}=${value}', 'type' => 'string', 'required' => false, 'example' => 'platform=github'."\n"],
'required' => false,
],
],
[
'name' => 'pageNumber',
'in' => 'query',
'schema' => ['title' => '当前页码,默认为1。页码从1开始', 'description' => '当前页码,默认为1。页码从1开始', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '1'],
],
[
'name' => 'pageSize',
'in' => 'query',
'schema' => ['title' => '每页大小,默认为100。取值范围1~100', 'description' => '每页大小,默认为100。取值范围1~100', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '100'],
],
[
'name' => 'keyword',
'in' => 'query',
'schema' => ['title' => '模糊搜索关键词。仅支持实体的name字段,且大小写不敏感', 'description' => '模糊搜索关键词。仅支持实体的name字段,且大小写不敏感', 'type' => 'string', 'required' => false, 'example' => 'auto-'],
],
],
'responses' => [
200 => [
'schema' => [
'title' => '查询的分页结果',
'description' => '查询的分页结果',
'type' => 'object',
'properties' => [
'pageNumber' => ['title' => '当前页码', 'description' => '当前页码,默认为1。页码从1开始', 'type' => 'integer', 'format' => 'int64', 'example' => '1'],
'pageSize' => ['title' => '每页大小', 'description' => '每页大小,默认为100。取值范围1~100', 'type' => 'integer', 'format' => 'int64', 'example' => '100'],
'totalCount' => ['title' => '查询到的结果数量', 'description' => '查询到的结果数量', 'type' => 'integer', 'format' => 'int64', 'example' => '1'],
'data' => [
'title' => '查询的资源实体列表',
'description' => '查询的资源实体列表',
'type' => 'array',
'items' => ['title' => '查询的一个满足条件的身份绑定实体', 'description' => '查询的一个满足条件的身份绑定实体', '$ref' => '#/components/schemas/Connection'],
],
],
],
],
],
'eventInfo' => [
'enable' => false,
'eventNames' => [],
],
'title' => '批量查询身份绑定',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [],
],
'ramActions' => [
[
'operationType' => 'list',
'ramAction' => [
'action' => 'devs:ListConnections',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Devs', 'resourceType' => '全部资源', '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' => '项目名称', 'description' => '项目名称', 'type' => 'string', 'required' => true, 'example' => 'demo-project'],
],
[
'name' => 'labelSelector',
'in' => 'query',
'style' => 'simple',
'schema' => [
'title' => '利用实体的labels字段进行筛选。精确匹配labelSelector数组中的所有条件,不同条件之间是“且”的关系',
'description' => '利用实体的labels字段进行筛选。精确匹配labelSelector数组中的所有条件,不同条件之间是“且”的关系',
'type' => 'array',
'items' => ['title' => 'labelSelector中的一条筛选条件,格式为${key}=${value}', 'description' => 'labelSelector中的一条筛选条件,格式为${key}=${value}', 'type' => 'string', 'required' => false, 'example' => 'branch=main'],
'required' => false,
'example' => 'demo-project',
],
],
[
'name' => 'pageNumber',
'in' => 'query',
'schema' => ['title' => '当前页码,默认为1。页码从1开始', 'description' => '当前页码,默认为1。页码从1开始', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '1'],
],
[
'name' => 'pageSize',
'in' => 'query',
'schema' => ['title' => '每页大小,默认为100。取值范围1~100', 'description' => '每页大小,默认为100。取值范围1~100', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '10'],
],
[
'name' => 'keyword',
'in' => 'query',
'schema' => ['title' => '模糊搜索关键词。仅支持实体的name字段,且大小写不敏感', 'description' => '模糊搜索关键词。仅支持实体的name字段,且大小写不敏感', 'type' => 'string', 'required' => false, 'example' => 'dev'],
],
],
'responses' => [
200 => [
'schema' => [
'title' => '查询的分页结果',
'description' => '查询的分页结果',
'type' => 'object',
'properties' => [
'pageNumber' => ['title' => '当前页码', 'description' => '当前页码,默认为1。页码从1开始', 'type' => 'integer', 'format' => 'int64', 'example' => '1'],
'pageSize' => ['title' => '每页大小', 'description' => '每页大小,默认为100。取值范围1~100', 'type' => 'integer', 'format' => 'int64', 'example' => '50'],
'totalCount' => ['title' => '查询到的结果数量', 'description' => '查询到的结果数量', 'type' => 'integer', 'format' => 'int64', 'example' => '100'],
'data' => [
'title' => '查询的资源实体列表',
'description' => '查询的资源实体列表',
'type' => 'array',
'items' => ['title' => '查询的一个满足条件的环境实体', 'description' => '查询的一个满足条件的环境实体', '$ref' => '#/components/schemas/Environment'],
],
],
],
],
],
'staticInfo' => ['returnType' => 'synchronous'],
'title' => '批量查询环境',
'summary' => '批量查询满足条件的环境。',
'changeSet' => [
['createdAt' => '2024-09-06T06:01:12.000Z', 'description' => '请求参数发生变更'],
],
'flowControl' => [
'flowControlList' => [],
],
'ramActions' => [
[
'operationType' => 'list',
'ramAction' => [
'action' => 'devs:ListEnvironments',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Devs', 'resourceType' => '全部资源', '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' => '只返回含有这些label的对象',
'description' => '利用实体的labels字段进行筛选。精确匹配labelSelector数组中的所有条件,不同条件之间是“且”的关系',
'type' => 'array',
'items' => ['title' => 'label表达式,例如: appName=my-app', 'description' => '利用实体的labels字段进行筛选。精确匹配labelSelector数组中的所有条件,不同条件之间是“且”的关系', 'type' => 'string', 'required' => false, 'example' => 'label_key1=value1'],
'required' => false,
],
],
],
'responses' => [
200 => [
'schema' => [
'title' => '流水线执行列表',
'description' => '流水线执行列表',
'type' => 'array',
'items' => ['title' => '流水线执行', 'description' => '流水线执行', '$ref' => '#/components/schemas/Pipeline'],
],
],
],
'title' => '批量查询流水线执行',
'summary' => '批量查询流水线执行。请尽可能提供更多的查询条件以缩小查询范围。',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [],
],
'ramActions' => [
[
'operationType' => 'list',
'ramAction' => [
'action' => 'devs:ListPipelines',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Devs', 'resourceType' => '全部资源', '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 \\"contextSchema\\": {\\n \\"test\\": \\"test\\",\\n \\"test2\\": 1\\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' => '批量查询满足条件的项目。',
'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' => '利用实体的labels字段进行筛选。精确匹配labelSelector数组中的所有条件,不同条件之间是“且”的关系',
'description' => '利用实体的labels字段进行筛选。精确匹配labelSelector数组中的所有条件,不同条件之间是“且”的关系',
'type' => 'array',
'items' => ['title' => 'labelSelector中的一条筛选条件,格式为${key}=${value}', 'description' => 'labelSelector中的一条筛选条件,格式为${key}=${value}', 'type' => 'string', 'required' => false, 'example' => 'templateName=spring-boot-v3'],
'required' => false,
],
],
[
'name' => 'pageNumber',
'in' => 'query',
'schema' => ['title' => '当前页码,默认为1。页码从1开始。', 'description' => '当前页码,默认为1。页码从1开始', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '1'],
],
[
'name' => 'pageSize',
'in' => 'query',
'schema' => ['title' => '每页大小,默认为100。取值范围1~100', 'description' => '每页大小,默认为100。取值范围1~100', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '100'],
],
[
'name' => 'keyword',
'in' => 'query',
'schema' => ['title' => '模糊搜索关键词。仅支持实体的name字段,且大小写不敏感', 'description' => '模糊搜索关键词。仅支持实体的name字段,且大小写不敏感', 'type' => 'string', 'required' => false, 'example' => 'spring-boot'],
],
],
'responses' => [
200 => [
'schema' => [
'title' => '查询的分页结果',
'description' => '查询的分页结果',
'type' => 'object',
'properties' => [
'pageNumber' => ['title' => '当前页码', 'description' => '当前页码,默认为1。页码从1开始', 'type' => 'integer', 'format' => 'int64', 'example' => '1'],
'pageSize' => ['title' => '每页大小', 'description' => '每页大小,默认为100。取值范围1~100', 'type' => 'integer', 'format' => 'int64', 'example' => '100'],
'totalCount' => ['title' => '查询到的结果数量', 'description' => '查询到的结果数量', 'type' => 'integer', 'format' => 'int64', 'example' => '1'],
'data' => [
'title' => '查询的资源实体列表',
'description' => '查询的资源实体列表',
'type' => 'array',
'items' => ['title' => '查询的一个满足条件的项目实体', 'description' => '查询的一个满足条件的项目实体', '$ref' => '#/components/schemas/Project'],
],
],
],
],
],
'staticInfo' => ['returnType' => 'synchronous'],
'title' => '批量查询项目',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [],
],
'ramActions' => [
[
'operationType' => 'list',
'ramAction' => [
'action' => 'devs:ListProjects',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Devs', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
],
],
],
'ListServiceDeployments' => [
'summary' => '批量查询服务部署信息。',
'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' => '只返回含有这些label的对象',
'description' => '只返回含有这些label的对象',
'type' => 'array',
'items' => ['title' => 'label表达式,例如: appName=my-app', 'description' => 'label表达式,例如: appName=my-app', 'type' => 'string', 'required' => false, 'example' => 'label_key1=value1'],
'required' => false,
],
],
[
'name' => 'pageNumber',
'in' => 'query',
'schema' => ['title' => '分页页码', 'description' => '分页页码', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '1'],
],
[
'name' => 'pageSize',
'in' => 'query',
'schema' => ['title' => '分页大小', 'description' => '分页大小', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '10'],
],
[
'name' => 'keyword',
'in' => 'query',
'schema' => ['title' => '关键字', 'description' => '关键字', 'type' => 'string', 'required' => false, 'example' => 'demo'],
],
],
'responses' => [
200 => [
'schema' => [
'title' => '返回结果',
'description' => '返回结果',
'type' => 'object',
'properties' => [
'pageNumber' => ['title' => '分页页码', 'description' => '分页页码', 'type' => 'integer', 'format' => 'int64', 'example' => '1'],
'pageSize' => ['title' => '分页大小', 'description' => '分页大小', 'type' => 'integer', 'format' => 'int64', 'example' => '10'],
'totalCount' => ['title' => '总数', 'description' => '总数', 'type' => 'integer', 'format' => 'int64', 'example' => '50'],
'data' => [
'title' => '返回结果列表',
'description' => '返回结果列表',
'type' => 'array',
'items' => ['title' => '服务部署详情', 'description' => '服务部署详情', '$ref' => '#/components/schemas/ServiceDeployment'],
],
],
],
],
],
'title' => '批量查询服务部署信息',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [],
],
'ramActions' => [
[
'operationType' => 'get',
'ramAction' => [
'action' => 'devs:ListServiceDeployments',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Devs', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
],
],
],
'ListTasks' => [
'summary' => '批量查询流水线任务执行。',
'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' => '只返回含有这些label的对象',
'description' => '利用实体的labels字段进行筛选。精确匹配labelSelector数组中的所有条件,不同条件之间是“且”的关系',
'type' => 'array',
'items' => ['title' => 'label表达式,例如: appName=my-app', 'description' => '利用实体的labels字段进行筛选。精确匹配labelSelector数组中的所有条件,不同条件之间是“且”的关系', 'type' => 'string', 'required' => false, 'example' => 'label_key1=value1'],
'required' => false,
],
],
],
'responses' => [
200 => [
'schema' => [
'title' => '流水线任务列表',
'description' => '流水线任务列表',
'type' => 'array',
'items' => ['title' => '流水线任务', 'description' => '流水线任务', '$ref' => '#/components/schemas/Task'],
],
],
],
'title' => '批量查询流水线任务执行',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [],
],
'ramActions' => [
[
'operationType' => 'get',
'ramAction' => [
'action' => 'devs:ListTasks',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Devs', 'resourceType' => '全部资源', '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' => '批量查询工具集',
'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' => '利用实体的labels字段进行筛选。精确匹配labelSelector数组中的所有条件,不同条件之间是“且”的关系',
'description' => '利用实体的labels字段进行筛选。精确匹配labelSelector数组中的所有条件,不同条件之间是“且”的关系',
'type' => 'array',
'items' => ['title' => 'labelSelector中的一条筛选条件,格式为${key}=${value}', 'description' => 'labelSelector中的一条筛选条件,格式为${key}=${value}', 'type' => 'string', 'required' => false, 'example' => 'label_key1=value1'],
'required' => false,
],
],
[
'name' => 'pageNumber',
'in' => 'query',
'schema' => ['title' => '当前页码,默认为1。页码从1开始。', 'description' => '当前页码,默认为1。页码从1开始。', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '1'],
],
[
'name' => 'pageSize',
'in' => 'query',
'schema' => ['title' => '每页大小,默认为100。取值范围1~100', 'description' => '每页大小,默认为100。取值范围1~100', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '10'],
],
[
'name' => 'keyword',
'in' => 'query',
'schema' => ['title' => '模糊搜索关键词。仅支持实体的name字段,且大小写不敏感', 'description' => '模糊搜索关键词。仅支持实体的name字段,且大小写不敏感', 'type' => 'string', 'required' => false, 'example' => 'demo'],
],
],
'responses' => [
200 => [
'schema' => [
'title' => '查询的分页结果',
'description' => '查询的分页结果',
'type' => 'object',
'properties' => [
'pageNumber' => ['title' => '当前页码', 'description' => '当前页码', 'type' => 'integer', 'format' => 'int64', 'example' => '1'],
'pageSize' => ['title' => '每页大小', 'description' => '每页大小', 'type' => 'integer', 'format' => 'int64', 'example' => '10'],
'totalCount' => ['title' => '查询到的结果数量', 'description' => '查询到的结果数量', 'type' => 'integer', 'format' => 'int64', 'example' => '10'],
'data' => [
'title' => '查询的资源实体列表',
'description' => '查询的资源实体列表',
'type' => 'array',
'items' => ['title' => '查询的一个满足条件的项目实体', 'description' => '查询的一个满足条件的项目实体', '$ref' => '#/components/schemas/Toolset'],
],
],
],
],
],
'staticInfo' => ['returnType' => 'synchronous'],
'title' => '批量查询工具集',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [],
],
'ramActions' => [
[
'operationType' => 'list',
'ramAction' => [
'action' => 'devs:ListToolsets',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Devs', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
],
],
],
'PreviewEnvironment' => [
'summary' => '预览环境变更信息',
'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' => ['title' => '项目名称', 'description' => '项目名称', 'type' => 'string', 'required' => true, 'example' => 'demo-project'],
],
[
'name' => 'name',
'in' => 'path',
'schema' => ['title' => '环境名称', 'description' => '环境名称', 'type' => 'string', 'required' => true, 'example' => 'demo-env'],
],
],
'responses' => [
200 => [
'schema' => ['description' => '预期环境部署配置', '$ref' => '#/components/schemas/EnvironmentDeploymentSpec'],
],
],
'staticInfo' => ['returnType' => 'synchronous'],
'eventInfo' => [
'enable' => false,
'eventNames' => [],
],
'title' => '预览环境变更信息',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [],
],
'ramActions' => [
[
'operationType' => 'get',
'ramAction' => [
'action' => 'devs:PreviewEnvironment',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Devs', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
],
],
],
'PutArtifact' => [
'summary' => '更新交付物',
'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' => ['title' => '交付物配置', 'description' => '交付物配置', 'required' => false, '$ref' => '#/components/schemas/Artifact'],
],
[
'name' => 'name',
'in' => 'path',
'schema' => ['title' => '交付物名称', 'description' => '交付物名称', 'type' => 'string', 'required' => false, 'example' => 'demo-artifact'],
],
[
'name' => 'force',
'in' => 'query',
'schema' => ['title' => '强制更新', 'description' => '强制更新', 'type' => 'boolean', 'required' => false, 'example' => 'false'],
],
],
'responses' => [
200 => [
'schema' => ['title' => '交付物配置', 'description' => '交付物配置', '$ref' => '#/components/schemas/Artifact'],
],
],
'staticInfo' => ['returnType' => 'synchronous'],
'title' => '更新交付物',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [],
],
'ramActions' => [
[
'operationType' => 'none',
'ramAction' => [
'action' => 'devs:PutArtifact',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Devs', 'resourceType' => '全部资源', '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' => ['title' => '对象名称', 'description' => '对象名称', 'type' => 'string', 'required' => false, 'example' => 'demo-name'],
],
[
'name' => 'body',
'in' => 'body',
'schema' => ['title' => '流水线执行', 'description' => '流水线执行', 'required' => false, '$ref' => '#/components/schemas/Pipeline'],
],
[
'name' => 'force',
'in' => 'query',
'schema' => ['title' => '强制更新', 'description' => '强制更新', 'type' => 'boolean', 'required' => false, 'example' => 'false'],
],
],
'responses' => [
200 => [
'schema' => ['title' => '流水线执行', 'description' => '流水线执行', '$ref' => '#/components/schemas/Pipeline'],
],
],
'title' => '替换流水线执行状态',
'summary' => '替换流水线执行状态。',
'description' => 'API提供了乐观锁机制,在不设置强制更新的场景下,需要基于最新的流水线触发器配置修改后提交,否则将触发提交冲突异常。',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [],
],
'ramActions' => [
[
'operationType' => 'update',
'ramAction' => [
'action' => 'devs:PutPipelineStatus',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Devs', 'resourceType' => '全部资源', '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 \\"contextSchema\\": {\\n \\"test\\": \\"test\\",\\n \\"test2\\": 1\\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' => '替换流水线任务执行状态。',
'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' => ['title' => '对象名称', 'description' => '对象名称', 'type' => 'string', 'required' => false, 'example' => 'demo-name'],
],
[
'name' => 'body',
'in' => 'body',
'schema' => ['title' => '流水线任务', 'description' => '流水线任务', 'required' => false, '$ref' => '#/components/schemas/Task'],
],
[
'name' => 'force',
'in' => 'query',
'schema' => ['title' => '强制更新', 'description' => '强制更新', 'type' => 'boolean', 'required' => false, 'example' => 'false'],
],
],
'responses' => [
200 => [
'schema' => ['title' => '流水线任务', 'description' => '流水线任务', '$ref' => '#/components/schemas/Task'],
],
],
'title' => '替换流水线任务执行状态',
'description' => 'API提供了乐观锁机制,在不设置强制更新的场景下,需要基于最新的流水线触发器配置修改后提交,否则将触发提交冲突异常。',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [],
],
'ramActions' => [
[
'operationType' => 'update',
'ramAction' => [
'action' => 'devs:PutTaskStatus',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Devs', 'resourceType' => '全部资源', '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' => '解析模板中的服务以及变量配置。',
'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' => '模板配置',
'type' => 'object',
'properties' => [
'templateName' => ['title' => '模板名称', 'description' => '模板名称', 'type' => 'string', 'required' => true, 'example' => 'start-springboot'],
'parameters' => ['title' => '模板参数', 'description' => '模板参数', 'type' => 'object', 'required' => false, 'example' => '{"region":"cn-hangzhou"}'],
'variableValues' => ['title' => '模板变量', 'description' => '模板变量', 'required' => false, '$ref' => '#/components/schemas/TemplateVariableValueMap'],
'serviceNameChanges' => [
'title' => '服务名称变化,key是模板原始服务名,value是需要修改的目标服务名',
'description' => '服务名称变化,key是模板原始服务名,value是需要修改的目标服务名',
'type' => 'object',
'required' => false,
'additionalProperties' => ['title' => '修改后的目标服务名称', 'description' => '修改后的目标服务名称', 'type' => 'string', 'example' => '{"originName": "newName"}'],
'example' => '{"svc1":"svc2"}',
],
'projectName' => ['title' => '项目名称,用于在已有项目中通过模板新增服务的场景。当指定时,会检测模板中的服务名和指定项目中的服务是否存在命名冲突,如果冲突时会自动生成新的服务名称。', 'description' => '项目名称,用于在已有项目中通过模板新增服务的场景。当指定时,会检测模板中的服务名和指定项目中的服务是否存在命名冲突,如果冲突时会自动生成新的服务名称。', 'type' => 'string', 'required' => false, 'example' => 'my-project'],
],
'required' => false,
],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'services' => [
'title' => '解析后的服务集合',
'description' => '解析后的服务集合',
'type' => 'object',
'additionalProperties' => ['title' => '服务配置', 'description' => '服务配置', '$ref' => '#/components/schemas/ServiceConfig'],
],
'variables' => [
'title' => '解析后的变量集合',
'description' => '解析后的变量集合',
'type' => 'object',
'additionalProperties' => ['title' => '变量配置', 'description' => '变量配置', '$ref' => '#/components/schemas/Variable'],
],
'changedServiceNames' => [
'title' => '变化后的服务名称。key是新的服务名称,value是原始服务名称。'."\n"
.'通过这个字段,可以记录模板的原始服务名称,实现部署前的不断修改名称',
'description' => '变化后的服务名称。key是新的服务名称,value是原始服务名称。'."\n"
.'通过这个字段,可以记录模板的原始服务名称,实现部署前的不断修改名称',
'type' => 'object',
'additionalProperties' => ['title' => '原始服务名称', 'description' => '原始服务名称', 'type' => 'string', 'example' => 'demo-service'],
],
],
'description' => '',
],
],
],
'staticInfo' => ['returnType' => 'synchronous'],
'title' => '解析模板中的服务以及变量配置',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [],
],
'ramActions' => [
[
'operationType' => 'none',
'ramAction' => [
'action' => 'devs:RenderServicesByTemplate',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Devs', 'resourceType' => '全部资源', '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' => ['title' => '对象名称', 'description' => '对象名称', 'type' => 'string', 'required' => false, 'example' => 'demo-name'],
],
],
'responses' => [
200 => [
'schema' => ['title' => '流水线任务', 'description' => '流水线任务', '$ref' => '#/components/schemas/Task'],
],
],
'title' => '恢复流水线任务执行',
'summary' => '恢复流水线任务执行。',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [],
],
'ramActions' => [
[
'operationType' => 'update',
'ramAction' => [
'action' => 'devs:ResumeTask',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Devs', 'resourceType' => '全部资源', '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' => '重试流水线任务执行。',
'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' => ['title' => '对象名称', 'description' => '对象名称', 'type' => 'string', 'required' => false, 'example' => 'demo-name'],
],
],
'responses' => [
200 => [
'schema' => ['title' => '流水线任务', 'description' => '流水线任务', '$ref' => '#/components/schemas/Task'],
],
],
'title' => '重试流水线任务执行',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [],
],
'ramActions' => [
[
'operationType' => 'update',
'ramAction' => [
'action' => 'devs:RetryTask',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Devs', 'resourceType' => '全部资源', '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' => '启动流水线执行。',
'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' => ['title' => '对象名称', 'description' => '对象名称', 'type' => 'string', 'required' => false, 'example' => 'demo-name'],
],
],
'responses' => [
200 => [
'schema' => ['title' => '流水线执行', 'description' => '流水线执行', '$ref' => '#/components/schemas/Pipeline'],
],
],
'title' => '启动流水线执行',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [],
],
'ramActions' => [
[
'operationType' => 'update',
'ramAction' => [
'action' => 'devs:StartPipeline',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Devs', 'resourceType' => '全部资源', '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 \\"contextSchema\\": {\\n \\"test\\": \\"test\\",\\n \\"test2\\": 1\\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' => ['title' => '对象名称', 'description' => '对象名称', 'type' => 'string', 'required' => false, 'example' => 'demo-name'],
],
],
'responses' => [
200 => [
'schema' => ['title' => '流水线任务', 'description' => '流水线任务', '$ref' => '#/components/schemas/Task'],
],
],
'title' => '启动流水线任务执行',
'summary' => '启动流水线任务执行。',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [],
],
'ramActions' => [
[
'operationType' => 'update',
'ramAction' => [
'action' => 'devs:StartTask',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Devs', 'resourceType' => '全部资源', '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' => '修改环境,并在模板参数变化时自动部署该环境。',
'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' => ['title' => '环境实体。您指定的可写字段将被更新,未指定的字段将保持不变', 'description' => '环境实体。您指定的可写字段将被更新,未指定的字段将保持不变', 'required' => false, '$ref' => '#/components/schemas/Environment'],
],
[
'name' => 'projectName',
'in' => 'path',
'schema' => ['title' => '项目名称', 'description' => '项目名称', 'type' => 'string', 'required' => true, 'example' => 'demo-project'],
],
[
'name' => 'name',
'in' => 'path',
'schema' => ['title' => '环境名称', 'description' => '环境名称', 'type' => 'string', 'required' => true, 'example' => 'demo-env'],
],
],
'responses' => [
200 => [
'schema' => ['title' => '环境实体', 'description' => '环境实体', '$ref' => '#/components/schemas/Environment'],
],
],
'staticInfo' => ['returnType' => 'synchronous'],
'eventInfo' => [
'enable' => false,
'eventNames' => [],
],
'title' => '修改环境',
'description' => '- 使用修改(Update)的接口时,您指定的可写字段将被更新,未指定的字段将保持不变'."\n"
."\n"
.'- 当且仅当模板参数(spec.templateConfig.parameters)发生变化时,才会触发自动部署',
'changeSet' => [
['createdAt' => '2024-09-06T06:01:12.000Z', 'description' => '请求参数发生变更'],
],
'flowControl' => [
'flowControlList' => [],
],
'ramActions' => [
[
'operationType' => 'update',
'ramAction' => [
'action' => 'devs:UpdateEnvironment',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Devs', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
],
],
],
'UpdateProject' => [
'summary' => '修改项目,并在模板参数变化时自动部署该项目。',
'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' => ['title' => '计划更新的项目实体内容。您指定的可写字段将被更新,未指定的字段将保持不变', 'description' => '计划更新的项目实体内容。您指定的可写字段将被更新,未指定的字段将保持不变', 'required' => false, '$ref' => '#/components/schemas/Project'],
],
[
'name' => 'name',
'in' => 'path',
'schema' => ['title' => '对象名称', 'description' => '对象名称', 'type' => 'string', 'required' => false, 'example' => 'demo-name'],
],
],
'responses' => [
200 => [
'schema' => ['title' => '成功更新后的项目实体', 'description' => '成功更新后的项目实体', '$ref' => '#/components/schemas/Project'],
],
],
'staticInfo' => ['returnType' => 'synchronous'],
'eventInfo' => [
'enable' => false,
'eventNames' => [],
],
'title' => '修改项目',
'description' => '1. 使用修改(Update)相关的接口时,您指定的可写字段将被更新,未指定的字段将保持不变'."\n"
.'2. 当且仅当模板参数(spec.templateConfig.parameters)发生变化时,才会触发自动部署'."\n"
.'3. 使用环境(Environment)相关API修改默认环境(Default)配置后,不再支持更新项目',
'changeSet' => [
['createdAt' => '2024-06-24T02:30:45.000Z', 'description' => '请求参数发生变更'],
],
'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' => '更新工具集信息',
'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' => ['title' => '计划更新的工具集实体。您指定的可写字段将被更新,未指定的字段将保持不变', 'description' => '计划更新的工具集实体。您指定的可写字段将被更新,未指定的字段将保持不变', 'required' => false, '$ref' => '#/components/schemas/Toolset'],
],
[
'name' => 'name',
'in' => 'path',
'schema' => ['title' => '工具集名称', 'description' => '工具集名称', 'type' => 'string', 'required' => false, 'example' => 'my-toolset'],
],
],
'responses' => [
200 => [
'schema' => ['title' => '成功更新后的工具集实体', 'description' => '成功更新后的工具集实体', '$ref' => '#/components/schemas/Toolset'],
],
],
'staticInfo' => ['returnType' => 'synchronous'],
'eventInfo' => [
'enable' => false,
'eventNames' => [],
],
'title' => '更新工具集',
'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' => '华南1(深圳)', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'devs.cn-shenzhen.aliyuncs.com', 'endpoint' => 'devs.cn-shenzhen.aliyuncs.com', 'vpc' => 'devs-vpc.cn-shenzhen.aliyuncs.com'],
['regionId' => 'cn-beijing', 'regionName' => '华北2(北京)', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'devs.cn-beijing.aliyuncs.com', 'endpoint' => 'devs.cn-beijing.aliyuncs.com', 'vpc' => 'devs-vpc.cn-beijing.aliyuncs.com'],
['regionId' => 'cn-shanghai', 'regionName' => '华东2(上海)', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'devs.cn-shanghai.aliyuncs.com', 'endpoint' => 'devs.cn-shanghai.aliyuncs.com', 'vpc' => 'devs-vpc.cn-shanghai.aliyuncs.com'],
['regionId' => 'ap-southeast-1', 'regionName' => '新加坡', 'areaId' => 'asiaPacific', 'areaName' => '亚太', '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' => '华东1(杭州)', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'devs.cn-hangzhou.aliyuncs.com', 'endpoint' => 'devs.cn-hangzhou.aliyuncs.com', 'vpc' => 'devs-vpc.cn-hangzhou.aliyuncs.com'],
['regionId' => 'us-west-1', 'regionName' => '美国(硅谷)', 'areaId' => 'europeAmerica', 'areaName' => '欧洲与美洲', 'public' => 'devs.us-west-1.aliyuncs.com', 'endpoint' => 'devs.us-west-1.aliyuncs.com', 'vpc' => 'devs-vpc.us-west-1.aliyuncs.com'],
],
'errorCodes' => [],
'changeSet' => [
[
'apis' => [
['description' => '请求参数发生变更', 'api' => 'CreateEnvironment'],
['description' => '请求参数发生变更', 'api' => 'DeleteEnvironment'],
['description' => '响应参数发生变更', 'api' => 'DeleteProject'],
['description' => '请求参数发生变更', 'api' => 'GetEnvironment'],
['description' => '请求参数发生变更', 'api' => 'ListEnvironments'],
['description' => '请求参数发生变更', 'api' => 'UpdateEnvironment'],
],
'createdAt' => '2024-09-06T06:01:33.000Z',
'description' => '',
],
[
'apis' => [
['description' => '请求参数发生变更', 'api' => 'UpdateProject'],
],
'createdAt' => '2024-06-24T02:31:04.000Z',
'description' => '',
],
],
'flowControl' => [
'flowControlList' => [],
],
'ram' => [
'productCode' => 'Devs',
'productName' => '云原生应用开发平台 CAP',
'ramCodes' => ['devs'],
'ramLevel' => '资源级',
'ramConditions' => [],
'ramActions' => [
[
'apiName' => 'PutArtifact',
'description' => '更新交付物',
'operationType' => 'none',
'ramAction' => [
'action' => 'devs:PutArtifact',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Devs', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
],
[
'apiName' => 'CancelPipeline',
'description' => '取消流水线执行',
'operationType' => 'update',
'ramAction' => [
'action' => 'devs:CancelPipeline',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Devs', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
],
[
'apiName' => 'CreatePipeline',
'description' => '创建流水线执行',
'operationType' => 'create',
'ramAction' => [
'action' => 'devs:CreatePipeline',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Devs', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
],
[
'apiName' => 'DeleteConnection',
'description' => '删除身份绑定',
'operationType' => 'delete',
'ramAction' => [
'action' => 'devs:DeleteConnection',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Devs', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
],
[
'apiName' => 'PutTaskStatus',
'description' => '替换流水线任务执行状态',
'operationType' => 'update',
'ramAction' => [
'action' => 'devs:PutTaskStatus',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Devs', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
],
[
'apiName' => 'ListToolsets',
'description' => '批量查询工具集',
'operationType' => 'list',
'ramAction' => [
'action' => 'devs:ListToolsets',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Devs', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
],
[
'apiName' => 'DeleteToolset',
'description' => '删除工具集',
'operationType' => 'delete',
'ramAction' => [
'action' => 'devs:DeleteToolset',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Devs', 'resourceType' => '全部资源', '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' => '全部资源', 'arn' => '*'],
],
],
],
[
'apiName' => 'ListProjects',
'description' => '批量查询项目',
'operationType' => 'list',
'ramAction' => [
'action' => 'devs:ListProjects',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Devs', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
],
[
'apiName' => 'ListConnections',
'description' => '批量查询身份绑定',
'operationType' => 'list',
'ramAction' => [
'action' => 'devs:ListConnections',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Devs', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
],
[
'apiName' => 'RetryTask',
'description' => '重试流水线任务执行',
'operationType' => 'update',
'ramAction' => [
'action' => 'devs:RetryTask',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Devs', 'resourceType' => '全部资源', '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' => '全部资源', 'arn' => '*'],
],
],
],
[
'apiName' => 'PreviewEnvironment',
'description' => '预览环境变更信息',
'operationType' => 'get',
'ramAction' => [
'action' => 'devs:PreviewEnvironment',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Devs', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
],
[
'apiName' => 'GetPipeline',
'description' => '查询流水线执行',
'operationType' => 'get',
'ramAction' => [
'action' => 'devs:GetPipeline',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Devs', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
],
[
'apiName' => 'GetToolset',
'description' => '获取工具集',
'operationType' => 'get',
'ramAction' => [
'action' => 'devs:GetToolset',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Devs', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
],
[
'apiName' => 'DeleteProject',
'description' => '删除项目',
'operationType' => 'delete',
'ramAction' => [
'action' => 'devs:DeleteProject',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Devs', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
],
[
'apiName' => 'FetchArtifactTempBucketToken',
'description' => '获取交付物临时上传令牌',
'operationType' => 'get',
'ramAction' => [
'action' => 'devs:FetchArtifactTempBucketToken',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Devs', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
],
[
'apiName' => 'DeleteEnvironment',
'description' => '删除环境',
'operationType' => 'delete',
'ramAction' => [
'action' => 'devs:DeleteEnvironment',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Devs', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
],
[
'apiName' => 'DeleteArtifact',
'description' => '删除交付物',
'operationType' => 'delete',
'ramAction' => [
'action' => 'devs:DeleteArtifact',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Devs', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
],
[
'apiName' => 'ActivateConnection',
'description' => '激活身份绑定',
'operationType' => 'update',
'ramAction' => [
'action' => 'devs:ActivateConnection',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Devs', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
],
[
'apiName' => 'GetServiceDeployment',
'description' => '查询服务部署详情',
'operationType' => 'get',
'ramAction' => [
'action' => 'devs:GetServiceDeployment',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Devs', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
],
[
'apiName' => 'GetTask',
'description' => '查询流水线任务执行',
'operationType' => 'get',
'ramAction' => [
'action' => 'devs:GetTask',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Devs', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
],
[
'apiName' => 'CreateEnvironment',
'description' => '创建环境',
'operationType' => 'create',
'ramAction' => [
'action' => 'devs:CreateEnvironment',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Devs', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
],
[
'apiName' => 'ResumeTask',
'description' => '恢复流水线任务执行',
'operationType' => 'update',
'ramAction' => [
'action' => 'devs:ResumeTask',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Devs', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
],
[
'apiName' => 'ListServiceDeployments',
'description' => '批量查询服务部署信息',
'operationType' => 'get',
'ramAction' => [
'action' => 'devs:ListServiceDeployments',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Devs', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
],
[
'apiName' => 'GetEnvironment',
'description' => '查询环境',
'operationType' => 'get',
'ramAction' => [
'action' => 'devs:GetEnvironment',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Devs', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
],
[
'apiName' => 'ListTasks',
'description' => '批量查询流水线任务执行',
'operationType' => 'get',
'ramAction' => [
'action' => 'devs:ListTasks',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Devs', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
],
[
'apiName' => 'CreateArtifact',
'description' => '创建交付物',
'operationType' => 'create',
'ramAction' => [
'action' => 'devs:CreateArtifact',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Devs', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
],
[
'apiName' => 'StartPipeline',
'description' => '启动流水线执行',
'operationType' => 'update',
'ramAction' => [
'action' => 'devs:StartPipeline',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Devs', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
],
[
'apiName' => 'GetRepository',
'description' => '查询仓库绑定',
'operationType' => 'get',
'ramAction' => [
'action' => 'devs:GetRepository',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Devs', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
],
[
'apiName' => 'CreateToolset',
'description' => '创建工具集',
'operationType' => 'create',
'ramAction' => [
'action' => 'devs:CreateToolset',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Devs', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
],
[
'apiName' => 'GetProject',
'description' => '',
'operationType' => 'get',
'ramAction' => [
'action' => 'devs:GetProject',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Devs', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
],
[
'apiName' => 'GetEnvironmentDeployment',
'description' => '查询环境部署详情',
'operationType' => 'get',
'ramAction' => [
'action' => 'devs:GetEnvironmentDeployment',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Devs', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
],
[
'apiName' => 'FetchConnectionCredential',
'description' => '获取身份绑定凭证',
'operationType' => 'get',
'ramAction' => [
'action' => 'devs:FetchConnectionCredential',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Devs', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
],
[
'apiName' => 'StartTask',
'description' => '启动流水线任务执行',
'operationType' => 'update',
'ramAction' => [
'action' => 'devs:StartTask',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Devs', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
],
[
'apiName' => 'FetchArtifactDownloadUrl',
'description' => '获取交付物临时下载地址',
'operationType' => 'get',
'ramAction' => [
'action' => 'devs:FetchArtifactDownloadUrl',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Devs', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
],
[
'apiName' => 'RenderServicesByTemplate',
'description' => '解析模板中的服务以及变量配置',
'operationType' => 'none',
'ramAction' => [
'action' => 'devs:RenderServicesByTemplate',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Devs', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
],
[
'apiName' => 'UpdateEnvironment',
'description' => '修改环境',
'operationType' => 'update',
'ramAction' => [
'action' => 'devs:UpdateEnvironment',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Devs', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
],
[
'apiName' => 'PutPipelineStatus',
'description' => '替换流水线执行状态',
'operationType' => 'update',
'ramAction' => [
'action' => 'devs:PutPipelineStatus',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Devs', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
],
[
'apiName' => 'CreateTask',
'description' => '创建流水线任务执行',
'operationType' => 'create',
'ramAction' => [
'action' => 'devs:CreateTask',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Devs', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
],
[
'apiName' => 'GetArtifact',
'description' => '查询交付物',
'operationType' => 'get',
'ramAction' => [
'action' => 'devs:GetArtifact',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Devs', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
],
[
'apiName' => 'CancelTask',
'description' => '取消流水线任务执行',
'operationType' => 'update',
'ramAction' => [
'action' => 'devs:CancelTask',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Devs', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
],
[
'apiName' => 'DeployEnvironment',
'description' => '部署环境',
'operationType' => 'update',
'ramAction' => [
'action' => 'devs:DeployEnvironment',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Devs', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
],
[
'apiName' => 'ListEnvironments',
'description' => '批量查询环境',
'operationType' => 'list',
'ramAction' => [
'action' => 'devs:ListEnvironments',
'authLevel' => 'operate',
'actionConditions' => [],
'resources' => [
['validationType' => 'always', 'product' => 'Devs', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
],
],
'resourceTypes' => [
['validationType' => 'always', 'resourceType' => 'Project', 'arn' => 'acs:devs:{#regionId}:{#accountId}:project/{#name}'],
['validationType' => 'always', 'resourceType' => 'Toolset', 'arn' => 'acs:devs:{#regionId}:{#accountId}:toolset/{#name}'],
],
],
];
|