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
|
// --------------------------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// --------------------------------------------------------------------------------------------
// Generated file, DO NOT EDIT
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
// --------------------------------------------------------------------------------------------
package git
import (
"github.com/google/uuid"
"github.com/microsoft/azure-devops-go-api/azuredevops/v6"
"github.com/microsoft/azure-devops-go-api/azuredevops/v6/core"
"github.com/microsoft/azure-devops-go-api/azuredevops/v6/policy"
"github.com/microsoft/azure-devops-go-api/azuredevops/v6/webapi"
)
type AssociatedWorkItem struct {
AssignedTo *string `json:"assignedTo,omitempty"`
// Id of associated the work item.
Id *int `json:"id,omitempty"`
State *string `json:"state,omitempty"`
Title *string `json:"title,omitempty"`
// REST Url of the work item.
Url *string `json:"url,omitempty"`
WebUrl *string `json:"webUrl,omitempty"`
WorkItemType *string `json:"workItemType,omitempty"`
}
type AsyncGitOperationNotification struct {
OperationId *int `json:"operationId,omitempty"`
}
type AsyncRefOperationCommitLevelEventNotification struct {
OperationId *int `json:"operationId,omitempty"`
CommitId *string `json:"commitId,omitempty"`
}
type AsyncRefOperationCompletedNotification struct {
OperationId *int `json:"operationId,omitempty"`
NewRefName *string `json:"newRefName,omitempty"`
}
type AsyncRefOperationConflictNotification struct {
OperationId *int `json:"operationId,omitempty"`
CommitId *string `json:"commitId,omitempty"`
}
type AsyncRefOperationGeneralFailureNotification struct {
OperationId *int `json:"operationId,omitempty"`
}
type AsyncRefOperationProgressNotification struct {
OperationId *int `json:"operationId,omitempty"`
CommitId *string `json:"commitId,omitempty"`
Progress *float64 `json:"progress,omitempty"`
}
type AsyncRefOperationTimeoutNotification struct {
OperationId *int `json:"operationId,omitempty"`
}
// Meta data for a file attached to an artifact.
type Attachment struct {
// Links to other related objects.
Links interface{} `json:"_links,omitempty"`
// The person that uploaded this attachment.
Author *webapi.IdentityRef `json:"author,omitempty"`
// Content hash of on-disk representation of file content. Its calculated by the server by using SHA1 hash function.
ContentHash *string `json:"contentHash,omitempty"`
// The time the attachment was uploaded.
CreatedDate *azuredevops.Time `json:"createdDate,omitempty"`
// The description of the attachment.
Description *string `json:"description,omitempty"`
// The display name of the attachment. Can't be null or empty.
DisplayName *string `json:"displayName,omitempty"`
// Id of the attachment.
Id *int `json:"id,omitempty"`
// Extended properties.
Properties interface{} `json:"properties,omitempty"`
// The url to download the content of the attachment.
Url *string `json:"url,omitempty"`
}
// Real time event (SignalR) for an auto-complete update on a pull request
type AutoCompleteUpdatedEvent struct {
// The id of this event. Can be used to track send/receive state between client and server.
EventId *uuid.UUID `json:"eventId,omitempty"`
// The id of the pull request this event was generated for.
PullRequestId *int `json:"pullRequestId,omitempty"`
}
// Real time event (SignalR) for a source/target branch update on a pull request
type BranchUpdatedEvent struct {
// The id of this event. Can be used to track send/receive state between client and server.
EventId *uuid.UUID `json:"eventId,omitempty"`
// The id of the pull request this event was generated for.
PullRequestId *int `json:"pullRequestId,omitempty"`
// If true, the source branch of the pull request was updated
IsSourceUpdate *bool `json:"isSourceUpdate,omitempty"`
}
type Change struct {
// The type of change that was made to the item.
ChangeType *VersionControlChangeType `json:"changeType,omitempty"`
// Current version.
Item interface{} `json:"item,omitempty"`
// Content of the item after the change.
NewContent *ItemContent `json:"newContent,omitempty"`
// Path of the item on the server.
SourceServerItem *string `json:"sourceServerItem,omitempty"`
// URL to retrieve the item.
Url *string `json:"url,omitempty"`
}
type ChangeCountDictionary struct {
}
type ChangeList struct {
AllChangesIncluded *bool `json:"allChangesIncluded,omitempty"`
ChangeCounts *map[VersionControlChangeType]int `json:"changeCounts,omitempty"`
Changes *[]interface{} `json:"changes,omitempty"`
Comment *string `json:"comment,omitempty"`
CommentTruncated *bool `json:"commentTruncated,omitempty"`
CreationDate *azuredevops.Time `json:"creationDate,omitempty"`
Notes *[]CheckinNote `json:"notes,omitempty"`
Owner *string `json:"owner,omitempty"`
OwnerDisplayName *string `json:"ownerDisplayName,omitempty"`
OwnerId *uuid.UUID `json:"ownerId,omitempty"`
SortDate *azuredevops.Time `json:"sortDate,omitempty"`
Version *string `json:"version,omitempty"`
}
// Criteria used in a search for change lists
type ChangeListSearchCriteria struct {
// If provided, a version descriptor to compare against base
CompareVersion *string `json:"compareVersion,omitempty"`
// If true, don't include delete history entries
ExcludeDeletes *bool `json:"excludeDeletes,omitempty"`
// Whether or not to follow renames for the given item being queried
FollowRenames *bool `json:"followRenames,omitempty"`
// If provided, only include history entries created after this date (string)
FromDate *string `json:"fromDate,omitempty"`
// If provided, a version descriptor for the earliest change list to include
FromVersion *string `json:"fromVersion,omitempty"`
// Path of item to search under. If the itemPaths memebr is used then it will take precedence over this.
ItemPath *string `json:"itemPath,omitempty"`
// List of item paths to search under. If this member is used then itemPath will be ignored.
ItemPaths *[]string `json:"itemPaths,omitempty"`
// Version of the items to search
ItemVersion *string `json:"itemVersion,omitempty"`
// Number of results to skip (used when clicking more...)
Skip *int `json:"skip,omitempty"`
// If provided, only include history entries created before this date (string)
ToDate *string `json:"toDate,omitempty"`
// If provided, the maximum number of history entries to return
Top *int `json:"top,omitempty"`
// If provided, a version descriptor for the latest change list to include
ToVersion *string `json:"toVersion,omitempty"`
// Alias or display name of user who made the changes
User *string `json:"user,omitempty"`
}
type CheckinNote struct {
Name *string `json:"name,omitempty"`
Value *string `json:"value,omitempty"`
}
// Represents a comment which is one of potentially many in a comment thread.
type Comment struct {
// Links to other related objects.
Links interface{} `json:"_links,omitempty"`
// The author of the comment.
Author *webapi.IdentityRef `json:"author,omitempty"`
// The comment type at the time of creation.
CommentType *CommentType `json:"commentType,omitempty"`
// The comment content.
Content *string `json:"content,omitempty"`
// The comment ID. IDs start at 1 and are unique to a pull request.
Id *int `json:"id,omitempty"`
// Whether or not this comment was soft-deleted.
IsDeleted *bool `json:"isDeleted,omitempty"`
// The date the comment's content was last updated.
LastContentUpdatedDate *azuredevops.Time `json:"lastContentUpdatedDate,omitempty"`
// The date the comment was last updated.
LastUpdatedDate *azuredevops.Time `json:"lastUpdatedDate,omitempty"`
// The ID of the parent comment. This is used for replies.
ParentCommentId *int `json:"parentCommentId,omitempty"`
// The date the comment was first published.
PublishedDate *azuredevops.Time `json:"publishedDate,omitempty"`
// A list of the users who have liked this comment.
UsersLiked *[]webapi.IdentityRef `json:"usersLiked,omitempty"`
}
// Comment iteration context is used to identify which diff was being viewed when the thread was created.
type CommentIterationContext struct {
// The iteration of the file on the left side of the diff when the thread was created. If this value is equal to SecondComparingIteration, then this version is the common commit between the source and target branches of the pull request.
FirstComparingIteration *int `json:"firstComparingIteration,omitempty"`
// The iteration of the file on the right side of the diff when the thread was created.
SecondComparingIteration *int `json:"secondComparingIteration,omitempty"`
}
type CommentPosition struct {
// The line number of a thread's position. Starts at 1.
Line *int `json:"line,omitempty"`
// The character offset of a thread's position inside of a line. Starts at 0.
Offset *int `json:"offset,omitempty"`
}
// Represents a comment thread of a pull request. A thread contains meta data about the file it was left on along with one or more comments (an initial comment and the subsequent replies).
type CommentThread struct {
// Links to other related objects.
Links interface{} `json:"_links,omitempty"`
// A list of the comments.
Comments *[]Comment `json:"comments,omitempty"`
// The comment thread id.
Id *int `json:"id,omitempty"`
// Set of identities related to this thread
Identities *map[string]webapi.IdentityRef `json:"identities,omitempty"`
// Specify if the thread is deleted which happens when all comments are deleted.
IsDeleted *bool `json:"isDeleted,omitempty"`
// The time this thread was last updated.
LastUpdatedDate *azuredevops.Time `json:"lastUpdatedDate,omitempty"`
// Optional properties associated with the thread as a collection of key-value pairs.
Properties interface{} `json:"properties,omitempty"`
// The time this thread was published.
PublishedDate *azuredevops.Time `json:"publishedDate,omitempty"`
// The status of the comment thread.
Status *CommentThreadStatus `json:"status,omitempty"`
// Specify thread context such as position in left/right file.
ThreadContext *CommentThreadContext `json:"threadContext,omitempty"`
}
type CommentThreadContext struct {
// File path relative to the root of the repository. It's up to the client to use any path format.
FilePath *string `json:"filePath,omitempty"`
// Position of last character of the thread's span in left file.
LeftFileEnd *CommentPosition `json:"leftFileEnd,omitempty"`
// Position of first character of the thread's span in left file.
LeftFileStart *CommentPosition `json:"leftFileStart,omitempty"`
// Position of last character of the thread's span in right file.
RightFileEnd *CommentPosition `json:"rightFileEnd,omitempty"`
// Position of first character of the thread's span in right file.
RightFileStart *CommentPosition `json:"rightFileStart,omitempty"`
}
// The status of a comment thread.
type CommentThreadStatus string
type commentThreadStatusValuesType struct {
Unknown CommentThreadStatus
Active CommentThreadStatus
Fixed CommentThreadStatus
WontFix CommentThreadStatus
Closed CommentThreadStatus
ByDesign CommentThreadStatus
Pending CommentThreadStatus
}
var CommentThreadStatusValues = commentThreadStatusValuesType{
// The thread status is unknown.
Unknown: "unknown",
// The thread status is active.
Active: "active",
// The thread status is resolved as fixed.
Fixed: "fixed",
// The thread status is resolved as won't fix.
WontFix: "wontFix",
// The thread status is closed.
Closed: "closed",
// The thread status is resolved as by design.
ByDesign: "byDesign",
// The thread status is pending.
Pending: "pending",
}
// Comment tracking criteria is used to identify which iteration context the thread has been tracked to (if any) along with some detail about the original position and filename.
type CommentTrackingCriteria struct {
// The iteration of the file on the left side of the diff that the thread will be tracked to. Threads were tracked if this is greater than 0.
FirstComparingIteration *int `json:"firstComparingIteration,omitempty"`
// Original filepath the thread was created on before tracking. This will be different than the current thread filepath if the file in question was renamed in a later iteration.
OrigFilePath *string `json:"origFilePath,omitempty"`
// Original position of last character of the thread's span in left file.
OrigLeftFileEnd *CommentPosition `json:"origLeftFileEnd,omitempty"`
// Original position of first character of the thread's span in left file.
OrigLeftFileStart *CommentPosition `json:"origLeftFileStart,omitempty"`
// Original position of last character of the thread's span in right file.
OrigRightFileEnd *CommentPosition `json:"origRightFileEnd,omitempty"`
// Original position of first character of the thread's span in right file.
OrigRightFileStart *CommentPosition `json:"origRightFileStart,omitempty"`
// The iteration of the file on the right side of the diff that the thread will be tracked to. Threads were tracked if this is greater than 0.
SecondComparingIteration *int `json:"secondComparingIteration,omitempty"`
}
// The type of a comment.
type CommentType string
type commentTypeValuesType struct {
Unknown CommentType
Text CommentType
CodeChange CommentType
System CommentType
}
var CommentTypeValues = commentTypeValuesType{
// The comment type is not known.
Unknown: "unknown",
// This is a regular user comment.
Text: "text",
// The comment comes as a result of a code change.
CodeChange: "codeChange",
// The comment represents a system message.
System: "system",
}
// Real time event (SignalR) for a completion errors on a pull request
type CompletionErrorsEvent struct {
// The id of this event. Can be used to track send/receive state between client and server.
EventId *uuid.UUID `json:"eventId,omitempty"`
// The id of the pull request this event was generated for.
PullRequestId *int `json:"pullRequestId,omitempty"`
// The error message associated with the completion error
ErrorMessage *string `json:"errorMessage,omitempty"`
}
// Real time event (SignalR) for a discussions update on a pull request
type DiscussionsUpdatedEvent struct {
// The id of this event. Can be used to track send/receive state between client and server.
EventId *uuid.UUID `json:"eventId,omitempty"`
// The id of the pull request this event was generated for.
PullRequestId *int `json:"pullRequestId,omitempty"`
}
type FileContentMetadata struct {
ContentType *string `json:"contentType,omitempty"`
Encoding *int `json:"encoding,omitempty"`
Extension *string `json:"extension,omitempty"`
FileName *string `json:"fileName,omitempty"`
IsBinary *bool `json:"isBinary,omitempty"`
IsImage *bool `json:"isImage,omitempty"`
VsLink *string `json:"vsLink,omitempty"`
}
// Provides properties that describe file differences
type FileDiff struct {
// The collection of line diff blocks
LineDiffBlocks *[]LineDiffBlock `json:"lineDiffBlocks,omitempty"`
// Original path of item if different from current path.
OriginalPath *string `json:"originalPath,omitempty"`
// Current path of item
Path *string `json:"path,omitempty"`
}
// Provides parameters that describe inputs for the file diff
type FileDiffParams struct {
// Original path of the file
OriginalPath *string `json:"originalPath,omitempty"`
// Current path of the file
Path *string `json:"path,omitempty"`
}
// Provides properties that describe inputs for the file diffs
type FileDiffsCriteria struct {
// Commit ID of the base version
BaseVersionCommit *string `json:"baseVersionCommit,omitempty"`
// List of parameters for each of the files for which we need to get the file diff
FileDiffParams *[]FileDiffParams `json:"fileDiffParams,omitempty"`
// Commit ID of the target version
TargetVersionCommit *string `json:"targetVersionCommit,omitempty"`
}
// A Git annotated tag.
type GitAnnotatedTag struct {
// The tagging Message
Message *string `json:"message,omitempty"`
// The name of the annotated tag.
Name *string `json:"name,omitempty"`
// The objectId (Sha1Id) of the tag.
ObjectId *string `json:"objectId,omitempty"`
// User info and date of tagging.
TaggedBy *GitUserDate `json:"taggedBy,omitempty"`
// Tagged git object.
TaggedObject *GitObject `json:"taggedObject,omitempty"`
Url *string `json:"url,omitempty"`
}
// Current status of the asynchronous operation.
type GitAsyncOperationStatus string
type gitAsyncOperationStatusValuesType struct {
Queued GitAsyncOperationStatus
InProgress GitAsyncOperationStatus
Completed GitAsyncOperationStatus
Failed GitAsyncOperationStatus
Abandoned GitAsyncOperationStatus
}
var GitAsyncOperationStatusValues = gitAsyncOperationStatusValuesType{
// The operation is waiting in a queue and has not yet started.
Queued: "queued",
// The operation is currently in progress.
InProgress: "inProgress",
// The operation has completed.
Completed: "completed",
// The operation has failed. Check for an error message.
Failed: "failed",
// The operation has been abandoned.
Abandoned: "abandoned",
}
type GitAsyncRefOperation struct {
Links interface{} `json:"_links,omitempty"`
DetailedStatus *GitAsyncRefOperationDetail `json:"detailedStatus,omitempty"`
Parameters *GitAsyncRefOperationParameters `json:"parameters,omitempty"`
Status *GitAsyncOperationStatus `json:"status,omitempty"`
// A URL that can be used to make further requests for status about the operation
Url *string `json:"url,omitempty"`
}
// Information about the progress of a cherry pick or revert operation.
type GitAsyncRefOperationDetail struct {
// Indicates if there was a conflict generated when trying to cherry pick or revert the changes.
Conflict *bool `json:"conflict,omitempty"`
// The current commit from the list of commits that are being cherry picked or reverted.
CurrentCommitId *string `json:"currentCommitId,omitempty"`
// Detailed information about why the cherry pick or revert failed to complete.
FailureMessage *string `json:"failureMessage,omitempty"`
// A number between 0 and 1 indicating the percent complete of the operation.
Progress *float64 `json:"progress,omitempty"`
// Provides a status code that indicates the reason the cherry pick or revert failed.
Status *GitAsyncRefOperationFailureStatus `json:"status,omitempty"`
// Indicates if the operation went beyond the maximum time allowed for a cherry pick or revert operation.
Timedout *bool `json:"timedout,omitempty"`
}
type GitAsyncRefOperationFailureStatus string
type gitAsyncRefOperationFailureStatusValuesType struct {
None GitAsyncRefOperationFailureStatus
InvalidRefName GitAsyncRefOperationFailureStatus
RefNameConflict GitAsyncRefOperationFailureStatus
CreateBranchPermissionRequired GitAsyncRefOperationFailureStatus
WritePermissionRequired GitAsyncRefOperationFailureStatus
TargetBranchDeleted GitAsyncRefOperationFailureStatus
GitObjectTooLarge GitAsyncRefOperationFailureStatus
OperationIndentityNotFound GitAsyncRefOperationFailureStatus
AsyncOperationNotFound GitAsyncRefOperationFailureStatus
Other GitAsyncRefOperationFailureStatus
EmptyCommitterSignature GitAsyncRefOperationFailureStatus
}
var GitAsyncRefOperationFailureStatusValues = gitAsyncRefOperationFailureStatusValuesType{
// No status
None: "none",
// Indicates that the ref update request could not be completed because the ref name presented in the request was not valid.
InvalidRefName: "invalidRefName",
// The ref update could not be completed because, in case-insensitive mode, the ref name conflicts with an existing, differently-cased ref name.
RefNameConflict: "refNameConflict",
// The ref update request could not be completed because the user lacks the permission to create a branch
CreateBranchPermissionRequired: "createBranchPermissionRequired",
// The ref update request could not be completed because the user lacks write permissions required to write this ref
WritePermissionRequired: "writePermissionRequired",
// Target branch was deleted after Git async operation started
TargetBranchDeleted: "targetBranchDeleted",
// Git object is too large to materialize into memory
GitObjectTooLarge: "gitObjectTooLarge",
// Identity who authorized the operation was not found
OperationIndentityNotFound: "operationIndentityNotFound",
// Async operation was not found
AsyncOperationNotFound: "asyncOperationNotFound",
// Unexpected failure
Other: "other",
// Initiator of async operation has signature with empty name or email
EmptyCommitterSignature: "emptyCommitterSignature",
}
// Parameters that are provided in the request body when requesting to cherry pick or revert.
type GitAsyncRefOperationParameters struct {
// Proposed target branch name for the cherry pick or revert operation.
GeneratedRefName *string `json:"generatedRefName,omitempty"`
// The target branch for the cherry pick or revert operation.
OntoRefName *string `json:"ontoRefName,omitempty"`
// The git repository for the cherry pick or revert operation.
Repository *GitRepository `json:"repository,omitempty"`
// Details about the source of the cherry pick or revert operation (e.g. A pull request or a specific commit).
Source *GitAsyncRefOperationSource `json:"source,omitempty"`
}
// GitAsyncRefOperationSource specifies the pull request or list of commits to use when making a cherry pick and revert operation request. Only one should be provided.
type GitAsyncRefOperationSource struct {
// A list of commits to cherry pick or revert
CommitList *[]GitCommitRef `json:"commitList,omitempty"`
// Id of the pull request to cherry pick or revert
PullRequestId *int `json:"pullRequestId,omitempty"`
}
type GitBaseVersionDescriptor struct {
// Version string identifier (name of tag/branch, SHA1 of commit)
Version *string `json:"version,omitempty"`
// Version options - Specify additional modifiers to version (e.g Previous)
VersionOptions *GitVersionOptions `json:"versionOptions,omitempty"`
// Version type (branch, tag, or commit). Determines how Id is interpreted
VersionType *GitVersionType `json:"versionType,omitempty"`
// Version string identifier (name of tag/branch, SHA1 of commit)
BaseVersion *string `json:"baseVersion,omitempty"`
// Version options - Specify additional modifiers to version (e.g Previous)
BaseVersionOptions *GitVersionOptions `json:"baseVersionOptions,omitempty"`
// Version type (branch, tag, or commit). Determines how Id is interpreted
BaseVersionType *GitVersionType `json:"baseVersionType,omitempty"`
}
type GitBlobRef struct {
Links interface{} `json:"_links,omitempty"`
// SHA1 hash of git object
ObjectId *string `json:"objectId,omitempty"`
// Size of blob content (in bytes)
Size *uint64 `json:"size,omitempty"`
Url *string `json:"url,omitempty"`
}
// Ahead and behind counts for a particular ref.
type GitBranchStats struct {
// Number of commits ahead.
AheadCount *int `json:"aheadCount,omitempty"`
// Number of commits behind.
BehindCount *int `json:"behindCount,omitempty"`
// Current commit.
Commit *GitCommitRef `json:"commit,omitempty"`
// True if this is the result for the base version.
IsBaseVersion *bool `json:"isBaseVersion,omitempty"`
// Name of the ref.
Name *string `json:"name,omitempty"`
}
type GitChange struct {
// The type of change that was made to the item.
ChangeType *VersionControlChangeType `json:"changeType,omitempty"`
// Current version.
Item interface{} `json:"item,omitempty"`
// Content of the item after the change.
NewContent *ItemContent `json:"newContent,omitempty"`
// Path of the item on the server.
SourceServerItem *string `json:"sourceServerItem,omitempty"`
// URL to retrieve the item.
Url *string `json:"url,omitempty"`
// ID of the change within the group of changes.
ChangeId *int `json:"changeId,omitempty"`
// New Content template to be used when pushing new changes.
NewContentTemplate *GitTemplate `json:"newContentTemplate,omitempty"`
// Original path of item if different from current path.
OriginalPath *string `json:"originalPath,omitempty"`
}
// This object is returned from Cherry Pick operations and provides the id and status of the operation
type GitCherryPick struct {
Links interface{} `json:"_links,omitempty"`
DetailedStatus *GitAsyncRefOperationDetail `json:"detailedStatus,omitempty"`
Parameters *GitAsyncRefOperationParameters `json:"parameters,omitempty"`
Status *GitAsyncOperationStatus `json:"status,omitempty"`
// A URL that can be used to make further requests for status about the operation
Url *string `json:"url,omitempty"`
CherryPickId *int `json:"cherryPickId,omitempty"`
}
type GitCommit struct {
// A collection of related REST reference links.
Links interface{} `json:"_links,omitempty"`
// Author of the commit.
Author *GitUserDate `json:"author,omitempty"`
// Counts of the types of changes (edits, deletes, etc.) included with the commit.
ChangeCounts *ChangeCountDictionary `json:"changeCounts,omitempty"`
// An enumeration of the changes included with the commit.
Changes *[]interface{} `json:"changes,omitempty"`
// Comment or message of the commit.
Comment *string `json:"comment,omitempty"`
// Indicates if the comment is truncated from the full Git commit comment message.
CommentTruncated *bool `json:"commentTruncated,omitempty"`
// ID (SHA-1) of the commit.
CommitId *string `json:"commitId,omitempty"`
// Committer of the commit.
Committer *GitUserDate `json:"committer,omitempty"`
// An enumeration of the parent commit IDs for this commit.
Parents *[]string `json:"parents,omitempty"`
// The push associated with this commit.
Push *GitPushRef `json:"push,omitempty"`
// Remote URL path to the commit.
RemoteUrl *string `json:"remoteUrl,omitempty"`
// A list of status metadata from services and extensions that may associate additional information to the commit.
Statuses *[]GitStatus `json:"statuses,omitempty"`
// REST URL for this resource.
Url *string `json:"url,omitempty"`
// A list of workitems associated with this commit.
WorkItems *[]webapi.ResourceRef `json:"workItems,omitempty"`
TreeId *string `json:"treeId,omitempty"`
}
type GitCommitChanges struct {
ChangeCounts *ChangeCountDictionary `json:"changeCounts,omitempty"`
Changes *[]interface{} `json:"changes,omitempty"`
}
type GitCommitDiffs struct {
AheadCount *int `json:"aheadCount,omitempty"`
AllChangesIncluded *bool `json:"allChangesIncluded,omitempty"`
BaseCommit *string `json:"baseCommit,omitempty"`
BehindCount *int `json:"behindCount,omitempty"`
ChangeCounts *map[VersionControlChangeType]int `json:"changeCounts,omitempty"`
Changes *[]interface{} `json:"changes,omitempty"`
CommonCommit *string `json:"commonCommit,omitempty"`
TargetCommit *string `json:"targetCommit,omitempty"`
}
// Provides properties that describe a Git commit and associated metadata.
type GitCommitRef struct {
// A collection of related REST reference links.
Links interface{} `json:"_links,omitempty"`
// Author of the commit.
Author *GitUserDate `json:"author,omitempty"`
// Counts of the types of changes (edits, deletes, etc.) included with the commit.
ChangeCounts *ChangeCountDictionary `json:"changeCounts,omitempty"`
// An enumeration of the changes included with the commit.
Changes *[]interface{} `json:"changes,omitempty"`
// Comment or message of the commit.
Comment *string `json:"comment,omitempty"`
// Indicates if the comment is truncated from the full Git commit comment message.
CommentTruncated *bool `json:"commentTruncated,omitempty"`
// ID (SHA-1) of the commit.
CommitId *string `json:"commitId,omitempty"`
// Committer of the commit.
Committer *GitUserDate `json:"committer,omitempty"`
// An enumeration of the parent commit IDs for this commit.
Parents *[]string `json:"parents,omitempty"`
// The push associated with this commit.
Push *GitPushRef `json:"push,omitempty"`
// Remote URL path to the commit.
RemoteUrl *string `json:"remoteUrl,omitempty"`
// A list of status metadata from services and extensions that may associate additional information to the commit.
Statuses *[]GitStatus `json:"statuses,omitempty"`
// REST URL for this resource.
Url *string `json:"url,omitempty"`
// A list of workitems associated with this commit.
WorkItems *[]webapi.ResourceRef `json:"workItems,omitempty"`
}
type GitCommitToCreate struct {
BaseRef *GitRef `json:"baseRef,omitempty"`
Comment *string `json:"comment,omitempty"`
PathActions *[]GitPathAction `json:"pathActions,omitempty"`
}
type GitConflict struct {
Links interface{} `json:"_links,omitempty"`
ConflictId *int `json:"conflictId,omitempty"`
ConflictPath *string `json:"conflictPath,omitempty"`
ConflictType *GitConflictType `json:"conflictType,omitempty"`
MergeBaseCommit *GitCommitRef `json:"mergeBaseCommit,omitempty"`
MergeOrigin *GitMergeOriginRef `json:"mergeOrigin,omitempty"`
MergeSourceCommit *GitCommitRef `json:"mergeSourceCommit,omitempty"`
MergeTargetCommit *GitCommitRef `json:"mergeTargetCommit,omitempty"`
ResolutionError *GitResolutionError `json:"resolutionError,omitempty"`
ResolutionStatus *GitResolutionStatus `json:"resolutionStatus,omitempty"`
ResolvedBy *webapi.IdentityRef `json:"resolvedBy,omitempty"`
ResolvedDate *azuredevops.Time `json:"resolvedDate,omitempty"`
Url *string `json:"url,omitempty"`
}
// Data object for AddAdd conflict
type GitConflictAddAdd struct {
Links interface{} `json:"_links,omitempty"`
ConflictId *int `json:"conflictId,omitempty"`
ConflictPath *string `json:"conflictPath,omitempty"`
ConflictType *GitConflictType `json:"conflictType,omitempty"`
MergeBaseCommit *GitCommitRef `json:"mergeBaseCommit,omitempty"`
MergeOrigin *GitMergeOriginRef `json:"mergeOrigin,omitempty"`
MergeSourceCommit *GitCommitRef `json:"mergeSourceCommit,omitempty"`
MergeTargetCommit *GitCommitRef `json:"mergeTargetCommit,omitempty"`
ResolutionError *GitResolutionError `json:"resolutionError,omitempty"`
ResolutionStatus *GitResolutionStatus `json:"resolutionStatus,omitempty"`
ResolvedBy *webapi.IdentityRef `json:"resolvedBy,omitempty"`
ResolvedDate *azuredevops.Time `json:"resolvedDate,omitempty"`
Url *string `json:"url,omitempty"`
Resolution *GitResolutionMergeContent `json:"resolution,omitempty"`
SourceBlob *GitBlobRef `json:"sourceBlob,omitempty"`
TargetBlob *GitBlobRef `json:"targetBlob,omitempty"`
}
// Data object for RenameAdd conflict
type GitConflictAddRename struct {
Links interface{} `json:"_links,omitempty"`
ConflictId *int `json:"conflictId,omitempty"`
ConflictPath *string `json:"conflictPath,omitempty"`
ConflictType *GitConflictType `json:"conflictType,omitempty"`
MergeBaseCommit *GitCommitRef `json:"mergeBaseCommit,omitempty"`
MergeOrigin *GitMergeOriginRef `json:"mergeOrigin,omitempty"`
MergeSourceCommit *GitCommitRef `json:"mergeSourceCommit,omitempty"`
MergeTargetCommit *GitCommitRef `json:"mergeTargetCommit,omitempty"`
ResolutionError *GitResolutionError `json:"resolutionError,omitempty"`
ResolutionStatus *GitResolutionStatus `json:"resolutionStatus,omitempty"`
ResolvedBy *webapi.IdentityRef `json:"resolvedBy,omitempty"`
ResolvedDate *azuredevops.Time `json:"resolvedDate,omitempty"`
Url *string `json:"url,omitempty"`
BaseBlob *GitBlobRef `json:"baseBlob,omitempty"`
Resolution *GitResolutionPathConflict `json:"resolution,omitempty"`
SourceBlob *GitBlobRef `json:"sourceBlob,omitempty"`
TargetBlob *GitBlobRef `json:"targetBlob,omitempty"`
TargetOriginalPath *string `json:"targetOriginalPath,omitempty"`
}
// Data object for EditDelete conflict
type GitConflictDeleteEdit struct {
Links interface{} `json:"_links,omitempty"`
ConflictId *int `json:"conflictId,omitempty"`
ConflictPath *string `json:"conflictPath,omitempty"`
ConflictType *GitConflictType `json:"conflictType,omitempty"`
MergeBaseCommit *GitCommitRef `json:"mergeBaseCommit,omitempty"`
MergeOrigin *GitMergeOriginRef `json:"mergeOrigin,omitempty"`
MergeSourceCommit *GitCommitRef `json:"mergeSourceCommit,omitempty"`
MergeTargetCommit *GitCommitRef `json:"mergeTargetCommit,omitempty"`
ResolutionError *GitResolutionError `json:"resolutionError,omitempty"`
ResolutionStatus *GitResolutionStatus `json:"resolutionStatus,omitempty"`
ResolvedBy *webapi.IdentityRef `json:"resolvedBy,omitempty"`
ResolvedDate *azuredevops.Time `json:"resolvedDate,omitempty"`
Url *string `json:"url,omitempty"`
BaseBlob *GitBlobRef `json:"baseBlob,omitempty"`
Resolution *GitResolutionPickOneAction `json:"resolution,omitempty"`
TargetBlob *GitBlobRef `json:"targetBlob,omitempty"`
}
// Data object for RenameDelete conflict
type GitConflictDeleteRename struct {
Links interface{} `json:"_links,omitempty"`
ConflictId *int `json:"conflictId,omitempty"`
ConflictPath *string `json:"conflictPath,omitempty"`
ConflictType *GitConflictType `json:"conflictType,omitempty"`
MergeBaseCommit *GitCommitRef `json:"mergeBaseCommit,omitempty"`
MergeOrigin *GitMergeOriginRef `json:"mergeOrigin,omitempty"`
MergeSourceCommit *GitCommitRef `json:"mergeSourceCommit,omitempty"`
MergeTargetCommit *GitCommitRef `json:"mergeTargetCommit,omitempty"`
ResolutionError *GitResolutionError `json:"resolutionError,omitempty"`
ResolutionStatus *GitResolutionStatus `json:"resolutionStatus,omitempty"`
ResolvedBy *webapi.IdentityRef `json:"resolvedBy,omitempty"`
ResolvedDate *azuredevops.Time `json:"resolvedDate,omitempty"`
Url *string `json:"url,omitempty"`
BaseBlob *GitBlobRef `json:"baseBlob,omitempty"`
Resolution *GitResolutionPickOneAction `json:"resolution,omitempty"`
TargetBlob *GitBlobRef `json:"targetBlob,omitempty"`
TargetNewPath *string `json:"targetNewPath,omitempty"`
}
// Data object for FileDirectory conflict
type GitConflictDirectoryFile struct {
Links interface{} `json:"_links,omitempty"`
ConflictId *int `json:"conflictId,omitempty"`
ConflictPath *string `json:"conflictPath,omitempty"`
ConflictType *GitConflictType `json:"conflictType,omitempty"`
MergeBaseCommit *GitCommitRef `json:"mergeBaseCommit,omitempty"`
MergeOrigin *GitMergeOriginRef `json:"mergeOrigin,omitempty"`
MergeSourceCommit *GitCommitRef `json:"mergeSourceCommit,omitempty"`
MergeTargetCommit *GitCommitRef `json:"mergeTargetCommit,omitempty"`
ResolutionError *GitResolutionError `json:"resolutionError,omitempty"`
ResolutionStatus *GitResolutionStatus `json:"resolutionStatus,omitempty"`
ResolvedBy *webapi.IdentityRef `json:"resolvedBy,omitempty"`
ResolvedDate *azuredevops.Time `json:"resolvedDate,omitempty"`
Url *string `json:"url,omitempty"`
Resolution *GitResolutionPathConflict `json:"resolution,omitempty"`
SourceTree *GitTreeRef `json:"sourceTree,omitempty"`
TargetBlob *GitBlobRef `json:"targetBlob,omitempty"`
}
// Data object for DeleteEdit conflict
type GitConflictEditDelete struct {
Links interface{} `json:"_links,omitempty"`
ConflictId *int `json:"conflictId,omitempty"`
ConflictPath *string `json:"conflictPath,omitempty"`
ConflictType *GitConflictType `json:"conflictType,omitempty"`
MergeBaseCommit *GitCommitRef `json:"mergeBaseCommit,omitempty"`
MergeOrigin *GitMergeOriginRef `json:"mergeOrigin,omitempty"`
MergeSourceCommit *GitCommitRef `json:"mergeSourceCommit,omitempty"`
MergeTargetCommit *GitCommitRef `json:"mergeTargetCommit,omitempty"`
ResolutionError *GitResolutionError `json:"resolutionError,omitempty"`
ResolutionStatus *GitResolutionStatus `json:"resolutionStatus,omitempty"`
ResolvedBy *webapi.IdentityRef `json:"resolvedBy,omitempty"`
ResolvedDate *azuredevops.Time `json:"resolvedDate,omitempty"`
Url *string `json:"url,omitempty"`
BaseBlob *GitBlobRef `json:"baseBlob,omitempty"`
Resolution *GitResolutionPickOneAction `json:"resolution,omitempty"`
SourceBlob *GitBlobRef `json:"sourceBlob,omitempty"`
}
// Data object for EditEdit conflict
type GitConflictEditEdit struct {
Links interface{} `json:"_links,omitempty"`
ConflictId *int `json:"conflictId,omitempty"`
ConflictPath *string `json:"conflictPath,omitempty"`
ConflictType *GitConflictType `json:"conflictType,omitempty"`
MergeBaseCommit *GitCommitRef `json:"mergeBaseCommit,omitempty"`
MergeOrigin *GitMergeOriginRef `json:"mergeOrigin,omitempty"`
MergeSourceCommit *GitCommitRef `json:"mergeSourceCommit,omitempty"`
MergeTargetCommit *GitCommitRef `json:"mergeTargetCommit,omitempty"`
ResolutionError *GitResolutionError `json:"resolutionError,omitempty"`
ResolutionStatus *GitResolutionStatus `json:"resolutionStatus,omitempty"`
ResolvedBy *webapi.IdentityRef `json:"resolvedBy,omitempty"`
ResolvedDate *azuredevops.Time `json:"resolvedDate,omitempty"`
Url *string `json:"url,omitempty"`
BaseBlob *GitBlobRef `json:"baseBlob,omitempty"`
Resolution *GitResolutionMergeContent `json:"resolution,omitempty"`
SourceBlob *GitBlobRef `json:"sourceBlob,omitempty"`
TargetBlob *GitBlobRef `json:"targetBlob,omitempty"`
}
// Data object for DirectoryFile conflict
type GitConflictFileDirectory struct {
Links interface{} `json:"_links,omitempty"`
ConflictId *int `json:"conflictId,omitempty"`
ConflictPath *string `json:"conflictPath,omitempty"`
ConflictType *GitConflictType `json:"conflictType,omitempty"`
MergeBaseCommit *GitCommitRef `json:"mergeBaseCommit,omitempty"`
MergeOrigin *GitMergeOriginRef `json:"mergeOrigin,omitempty"`
MergeSourceCommit *GitCommitRef `json:"mergeSourceCommit,omitempty"`
MergeTargetCommit *GitCommitRef `json:"mergeTargetCommit,omitempty"`
ResolutionError *GitResolutionError `json:"resolutionError,omitempty"`
ResolutionStatus *GitResolutionStatus `json:"resolutionStatus,omitempty"`
ResolvedBy *webapi.IdentityRef `json:"resolvedBy,omitempty"`
ResolvedDate *azuredevops.Time `json:"resolvedDate,omitempty"`
Url *string `json:"url,omitempty"`
Resolution *GitResolutionPathConflict `json:"resolution,omitempty"`
SourceBlob *GitBlobRef `json:"sourceBlob,omitempty"`
TargetTree *GitTreeRef `json:"targetTree,omitempty"`
}
// Data object for Rename1to2 conflict
type GitConflictRename1to2 struct {
Links interface{} `json:"_links,omitempty"`
ConflictId *int `json:"conflictId,omitempty"`
ConflictPath *string `json:"conflictPath,omitempty"`
ConflictType *GitConflictType `json:"conflictType,omitempty"`
MergeBaseCommit *GitCommitRef `json:"mergeBaseCommit,omitempty"`
MergeOrigin *GitMergeOriginRef `json:"mergeOrigin,omitempty"`
MergeSourceCommit *GitCommitRef `json:"mergeSourceCommit,omitempty"`
MergeTargetCommit *GitCommitRef `json:"mergeTargetCommit,omitempty"`
ResolutionError *GitResolutionError `json:"resolutionError,omitempty"`
ResolutionStatus *GitResolutionStatus `json:"resolutionStatus,omitempty"`
ResolvedBy *webapi.IdentityRef `json:"resolvedBy,omitempty"`
ResolvedDate *azuredevops.Time `json:"resolvedDate,omitempty"`
Url *string `json:"url,omitempty"`
BaseBlob *GitBlobRef `json:"baseBlob,omitempty"`
Resolution *GitResolutionRename1to2 `json:"resolution,omitempty"`
SourceBlob *GitBlobRef `json:"sourceBlob,omitempty"`
SourceNewPath *string `json:"sourceNewPath,omitempty"`
TargetBlob *GitBlobRef `json:"targetBlob,omitempty"`
TargetNewPath *string `json:"targetNewPath,omitempty"`
}
// Data object for Rename2to1 conflict
type GitConflictRename2to1 struct {
Links interface{} `json:"_links,omitempty"`
ConflictId *int `json:"conflictId,omitempty"`
ConflictPath *string `json:"conflictPath,omitempty"`
ConflictType *GitConflictType `json:"conflictType,omitempty"`
MergeBaseCommit *GitCommitRef `json:"mergeBaseCommit,omitempty"`
MergeOrigin *GitMergeOriginRef `json:"mergeOrigin,omitempty"`
MergeSourceCommit *GitCommitRef `json:"mergeSourceCommit,omitempty"`
MergeTargetCommit *GitCommitRef `json:"mergeTargetCommit,omitempty"`
ResolutionError *GitResolutionError `json:"resolutionError,omitempty"`
ResolutionStatus *GitResolutionStatus `json:"resolutionStatus,omitempty"`
ResolvedBy *webapi.IdentityRef `json:"resolvedBy,omitempty"`
ResolvedDate *azuredevops.Time `json:"resolvedDate,omitempty"`
Url *string `json:"url,omitempty"`
Resolution *GitResolutionPathConflict `json:"resolution,omitempty"`
SourceNewBlob *GitBlobRef `json:"sourceNewBlob,omitempty"`
SourceOriginalBlob *GitBlobRef `json:"sourceOriginalBlob,omitempty"`
SourceOriginalPath *string `json:"sourceOriginalPath,omitempty"`
TargetNewBlob *GitBlobRef `json:"targetNewBlob,omitempty"`
TargetOriginalBlob *GitBlobRef `json:"targetOriginalBlob,omitempty"`
TargetOriginalPath *string `json:"targetOriginalPath,omitempty"`
}
// Data object for AddRename conflict
type GitConflictRenameAdd struct {
Links interface{} `json:"_links,omitempty"`
ConflictId *int `json:"conflictId,omitempty"`
ConflictPath *string `json:"conflictPath,omitempty"`
ConflictType *GitConflictType `json:"conflictType,omitempty"`
MergeBaseCommit *GitCommitRef `json:"mergeBaseCommit,omitempty"`
MergeOrigin *GitMergeOriginRef `json:"mergeOrigin,omitempty"`
MergeSourceCommit *GitCommitRef `json:"mergeSourceCommit,omitempty"`
MergeTargetCommit *GitCommitRef `json:"mergeTargetCommit,omitempty"`
ResolutionError *GitResolutionError `json:"resolutionError,omitempty"`
ResolutionStatus *GitResolutionStatus `json:"resolutionStatus,omitempty"`
ResolvedBy *webapi.IdentityRef `json:"resolvedBy,omitempty"`
ResolvedDate *azuredevops.Time `json:"resolvedDate,omitempty"`
Url *string `json:"url,omitempty"`
BaseBlob *GitBlobRef `json:"baseBlob,omitempty"`
Resolution *GitResolutionPathConflict `json:"resolution,omitempty"`
SourceBlob *GitBlobRef `json:"sourceBlob,omitempty"`
SourceOriginalPath *string `json:"sourceOriginalPath,omitempty"`
TargetBlob *GitBlobRef `json:"targetBlob,omitempty"`
}
// Data object for DeleteRename conflict
type GitConflictRenameDelete struct {
Links interface{} `json:"_links,omitempty"`
ConflictId *int `json:"conflictId,omitempty"`
ConflictPath *string `json:"conflictPath,omitempty"`
ConflictType *GitConflictType `json:"conflictType,omitempty"`
MergeBaseCommit *GitCommitRef `json:"mergeBaseCommit,omitempty"`
MergeOrigin *GitMergeOriginRef `json:"mergeOrigin,omitempty"`
MergeSourceCommit *GitCommitRef `json:"mergeSourceCommit,omitempty"`
MergeTargetCommit *GitCommitRef `json:"mergeTargetCommit,omitempty"`
ResolutionError *GitResolutionError `json:"resolutionError,omitempty"`
ResolutionStatus *GitResolutionStatus `json:"resolutionStatus,omitempty"`
ResolvedBy *webapi.IdentityRef `json:"resolvedBy,omitempty"`
ResolvedDate *azuredevops.Time `json:"resolvedDate,omitempty"`
Url *string `json:"url,omitempty"`
BaseBlob *GitBlobRef `json:"baseBlob,omitempty"`
Resolution *GitResolutionPickOneAction `json:"resolution,omitempty"`
SourceBlob *GitBlobRef `json:"sourceBlob,omitempty"`
SourceNewPath *string `json:"sourceNewPath,omitempty"`
}
// Data object for RenameRename conflict
type GitConflictRenameRename struct {
Links interface{} `json:"_links,omitempty"`
ConflictId *int `json:"conflictId,omitempty"`
ConflictPath *string `json:"conflictPath,omitempty"`
ConflictType *GitConflictType `json:"conflictType,omitempty"`
MergeBaseCommit *GitCommitRef `json:"mergeBaseCommit,omitempty"`
MergeOrigin *GitMergeOriginRef `json:"mergeOrigin,omitempty"`
MergeSourceCommit *GitCommitRef `json:"mergeSourceCommit,omitempty"`
MergeTargetCommit *GitCommitRef `json:"mergeTargetCommit,omitempty"`
ResolutionError *GitResolutionError `json:"resolutionError,omitempty"`
ResolutionStatus *GitResolutionStatus `json:"resolutionStatus,omitempty"`
ResolvedBy *webapi.IdentityRef `json:"resolvedBy,omitempty"`
ResolvedDate *azuredevops.Time `json:"resolvedDate,omitempty"`
Url *string `json:"url,omitempty"`
BaseBlob *GitBlobRef `json:"baseBlob,omitempty"`
OriginalPath *string `json:"originalPath,omitempty"`
Resolution *GitResolutionMergeContent `json:"resolution,omitempty"`
SourceBlob *GitBlobRef `json:"sourceBlob,omitempty"`
TargetBlob *GitBlobRef `json:"targetBlob,omitempty"`
}
// The type of a merge conflict.
type GitConflictType string
type gitConflictTypeValuesType struct {
None GitConflictType
AddAdd GitConflictType
AddRename GitConflictType
DeleteEdit GitConflictType
DeleteRename GitConflictType
DirectoryFile GitConflictType
DirectoryChild GitConflictType
EditDelete GitConflictType
EditEdit GitConflictType
FileDirectory GitConflictType
Rename1to2 GitConflictType
Rename2to1 GitConflictType
RenameAdd GitConflictType
RenameDelete GitConflictType
RenameRename GitConflictType
}
var GitConflictTypeValues = gitConflictTypeValuesType{
// No conflict
None: "none",
// Added on source and target; content differs
AddAdd: "addAdd",
// Added on source and rename destination on target
AddRename: "addRename",
// Deleted on source and edited on target
DeleteEdit: "deleteEdit",
// Deleted on source and renamed on target
DeleteRename: "deleteRename",
// Path is a directory on source and a file on target
DirectoryFile: "directoryFile",
// Children of directory which has DirectoryFile or FileDirectory conflict
DirectoryChild: "directoryChild",
// Edited on source and deleted on target
EditDelete: "editDelete",
// Edited on source and target; content differs
EditEdit: "editEdit",
// Path is a file on source and a directory on target
FileDirectory: "fileDirectory",
// Same file renamed on both source and target; destination paths differ
Rename1to2: "rename1to2",
// Different files renamed to same destination path on both source and target
Rename2to1: "rename2to1",
// Rename destination on source and new file on target
RenameAdd: "renameAdd",
// Renamed on source and deleted on target
RenameDelete: "renameDelete",
// Rename destination on both source and target; content differs
RenameRename: "renameRename",
}
type GitConflictUpdateResult struct {
// Conflict ID that was provided by input
ConflictId *int `json:"conflictId,omitempty"`
// Reason for failing
CustomMessage *string `json:"customMessage,omitempty"`
// New state of the conflict after updating
UpdatedConflict *GitConflict `json:"updatedConflict,omitempty"`
// Status of the update on the server
UpdateStatus *GitConflictUpdateStatus `json:"updateStatus,omitempty"`
}
// Represents the possible outcomes from a request to update a pull request conflict
type GitConflictUpdateStatus string
type gitConflictUpdateStatusValuesType struct {
Succeeded GitConflictUpdateStatus
BadRequest GitConflictUpdateStatus
InvalidResolution GitConflictUpdateStatus
UnsupportedConflictType GitConflictUpdateStatus
NotFound GitConflictUpdateStatus
}
var GitConflictUpdateStatusValues = gitConflictUpdateStatusValuesType{
// Indicates that pull request conflict update request was completed successfully
Succeeded: "succeeded",
// Indicates that the update request did not fit the expected data contract
BadRequest: "badRequest",
// Indicates that the requested resolution was not valid
InvalidResolution: "invalidResolution",
// Indicates that the conflict in the update request was not a supported conflict type
UnsupportedConflictType: "unsupportedConflictType",
// Indicates that the conflict could not be found
NotFound: "notFound",
}
type GitDeletedRepository struct {
CreatedDate *azuredevops.Time `json:"createdDate,omitempty"`
DeletedBy *webapi.IdentityRef `json:"deletedBy,omitempty"`
DeletedDate *azuredevops.Time `json:"deletedDate,omitempty"`
Id *uuid.UUID `json:"id,omitempty"`
Name *string `json:"name,omitempty"`
Project *core.TeamProjectReference `json:"project,omitempty"`
}
type GitFilePathsCollection struct {
CommitId *string `json:"commitId,omitempty"`
Paths *[]string `json:"paths,omitempty"`
Url *string `json:"url,omitempty"`
}
// Status information about a requested fork operation.
type GitForkOperationStatusDetail struct {
// All valid steps for the forking process
AllSteps *[]string `json:"allSteps,omitempty"`
// Index into AllSteps for the current step
CurrentStep *int `json:"currentStep,omitempty"`
// Error message if the operation failed.
ErrorMessage *string `json:"errorMessage,omitempty"`
}
// Information about a fork ref.
type GitForkRef struct {
Links interface{} `json:"_links,omitempty"`
Creator *webapi.IdentityRef `json:"creator,omitempty"`
IsLocked *bool `json:"isLocked,omitempty"`
IsLockedBy *webapi.IdentityRef `json:"isLockedBy,omitempty"`
Name *string `json:"name,omitempty"`
ObjectId *string `json:"objectId,omitempty"`
PeeledObjectId *string `json:"peeledObjectId,omitempty"`
Statuses *[]GitStatus `json:"statuses,omitempty"`
Url *string `json:"url,omitempty"`
// The repository ID of the fork.
Repository *GitRepository `json:"repository,omitempty"`
}
// Request to sync data between two forks.
type GitForkSyncRequest struct {
// Collection of related links
Links interface{} `json:"_links,omitempty"`
DetailedStatus *GitForkOperationStatusDetail `json:"detailedStatus,omitempty"`
// Unique identifier for the operation.
OperationId *int `json:"operationId,omitempty"`
// Fully-qualified identifier for the source repository.
Source *GlobalGitRepositoryKey `json:"source,omitempty"`
// If supplied, the set of ref mappings to use when performing a "sync" or create. If missing, all refs will be synchronized.
SourceToTargetRefs *[]SourceToTargetRef `json:"sourceToTargetRefs,omitempty"`
Status *GitAsyncOperationStatus `json:"status,omitempty"`
}
// Parameters for creating a fork request
type GitForkSyncRequestParameters struct {
// Fully-qualified identifier for the source repository.
Source *GlobalGitRepositoryKey `json:"source,omitempty"`
// If supplied, the set of ref mappings to use when performing a "sync" or create. If missing, all refs will be synchronized.
SourceToTargetRefs *[]SourceToTargetRef `json:"sourceToTargetRefs,omitempty"`
}
type GitForkTeamProjectReference struct {
// Project abbreviation.
Abbreviation *string `json:"abbreviation,omitempty"`
// Url to default team identity image.
DefaultTeamImageUrl *string `json:"defaultTeamImageUrl,omitempty"`
// The project's description (if any).
Description *string `json:"description,omitempty"`
// Project identifier.
Id *uuid.UUID `json:"id,omitempty"`
// Project last update time.
LastUpdateTime *azuredevops.Time `json:"lastUpdateTime,omitempty"`
// Project name.
Name *string `json:"name,omitempty"`
// Project revision.
Revision *uint64 `json:"revision,omitempty"`
// Project state.
State *core.ProjectState `json:"state,omitempty"`
// Url to the full version of the object.
Url *string `json:"url,omitempty"`
// Project visibility.
Visibility *core.ProjectVisibility `json:"visibility,omitempty"`
}
// Accepted types of version
type GitHistoryMode string
type gitHistoryModeValuesType struct {
SimplifiedHistory GitHistoryMode
FirstParent GitHistoryMode
FullHistory GitHistoryMode
FullHistorySimplifyMerges GitHistoryMode
}
var GitHistoryModeValues = gitHistoryModeValuesType{
// The history mode used by `git log`. This is the default.
SimplifiedHistory: "simplifiedHistory",
// The history mode used by `git log --first-parent`
FirstParent: "firstParent",
// The history mode used by `git log --full-history`
FullHistory: "fullHistory",
// The history mode used by `git log --full-history --simplify-merges`
FullHistorySimplifyMerges: "fullHistorySimplifyMerges",
}
type GitImportFailedEvent struct {
SourceRepositoryName *string `json:"sourceRepositoryName,omitempty"`
TargetRepository *GitRepository `json:"targetRepository,omitempty"`
}
// Parameter for creating a git import request when source is Git version control
type GitImportGitSource struct {
// Tells if this is a sync request or not
Overwrite *bool `json:"overwrite,omitempty"`
// Url for the source repo
Url *string `json:"url,omitempty"`
}
// A request to import data from a remote source control system.
type GitImportRequest struct {
// Links to related resources.
Links interface{} `json:"_links,omitempty"`
// Detailed status of the import, including the current step and an error message, if applicable.
DetailedStatus *GitImportStatusDetail `json:"detailedStatus,omitempty"`
// The unique identifier for this import request.
ImportRequestId *int `json:"importRequestId,omitempty"`
// Parameters for creating the import request.
Parameters *GitImportRequestParameters `json:"parameters,omitempty"`
// The target repository for this import.
Repository *GitRepository `json:"repository,omitempty"`
// Current status of the import.
Status *GitAsyncOperationStatus `json:"status,omitempty"`
// A link back to this import request resource.
Url *string `json:"url,omitempty"`
}
// Parameters for creating an import request
type GitImportRequestParameters struct {
// Option to delete service endpoint when import is done
DeleteServiceEndpointAfterImportIsDone *bool `json:"deleteServiceEndpointAfterImportIsDone,omitempty"`
// Source for importing git repository
GitSource *GitImportGitSource `json:"gitSource,omitempty"`
// Service Endpoint for connection to external endpoint
ServiceEndpointId *uuid.UUID `json:"serviceEndpointId,omitempty"`
// Source for importing tfvc repository
TfvcSource *GitImportTfvcSource `json:"tfvcSource,omitempty"`
}
// Additional status information about an import request.
type GitImportStatusDetail struct {
// All valid steps for the import process
AllSteps *[]string `json:"allSteps,omitempty"`
// Index into AllSteps for the current step
CurrentStep *int `json:"currentStep,omitempty"`
// Error message if the operation failed.
ErrorMessage *string `json:"errorMessage,omitempty"`
}
type GitImportSucceededEvent struct {
SourceRepositoryName *string `json:"sourceRepositoryName,omitempty"`
TargetRepository *GitRepository `json:"targetRepository,omitempty"`
}
// Parameter for creating a git import request when source is tfvc version control
type GitImportTfvcSource struct {
// Set true to import History, false otherwise
ImportHistory *bool `json:"importHistory,omitempty"`
// Get history for last n days (max allowed value is 180 days)
ImportHistoryDurationInDays *int `json:"importHistoryDurationInDays,omitempty"`
// Path which we want to import (this can be copied from Path Control in Explorer)
Path *string `json:"path,omitempty"`
}
type GitItem struct {
Links interface{} `json:"_links,omitempty"`
Content *string `json:"content,omitempty"`
ContentMetadata *FileContentMetadata `json:"contentMetadata,omitempty"`
IsFolder *bool `json:"isFolder,omitempty"`
IsSymLink *bool `json:"isSymLink,omitempty"`
Path *string `json:"path,omitempty"`
Url *string `json:"url,omitempty"`
// SHA1 of commit item was fetched at
CommitId *string `json:"commitId,omitempty"`
// Type of object (Commit, Tree, Blob, Tag, ...)
GitObjectType *GitObjectType `json:"gitObjectType,omitempty"`
// Shallow ref to commit that last changed this item Only populated if latestProcessedChange is requested May not be accurate if latest change is not yet cached
LatestProcessedChange *GitCommitRef `json:"latestProcessedChange,omitempty"`
// Git object id
ObjectId *string `json:"objectId,omitempty"`
// Git object id
OriginalObjectId *string `json:"originalObjectId,omitempty"`
}
type GitItemDescriptor struct {
// Path to item
Path *string `json:"path,omitempty"`
// Specifies whether to include children (OneLevel), all descendants (Full), or None
RecursionLevel *VersionControlRecursionType `json:"recursionLevel,omitempty"`
// Version string (interpretation based on VersionType defined in subclass
Version *string `json:"version,omitempty"`
// Version modifiers (e.g. previous)
VersionOptions *GitVersionOptions `json:"versionOptions,omitempty"`
// How to interpret version (branch,tag,commit)
VersionType *GitVersionType `json:"versionType,omitempty"`
}
type GitItemRequestData struct {
// Whether to include metadata for all items
IncludeContentMetadata *bool `json:"includeContentMetadata,omitempty"`
// Whether to include the _links field on the shallow references
IncludeLinks *bool `json:"includeLinks,omitempty"`
// Collection of items to fetch, including path, version, and recursion level
ItemDescriptors *[]GitItemDescriptor `json:"itemDescriptors,omitempty"`
// Whether to include shallow ref to commit that last changed each item
LatestProcessedChange *bool `json:"latestProcessedChange,omitempty"`
}
type GitLastChangeItem struct {
// Gets or sets the commit Id this item was modified most recently for the provided version.
CommitId *string `json:"commitId,omitempty"`
// Gets or sets the path of the item.
Path *string `json:"path,omitempty"`
}
type GitLastChangeTreeItems struct {
// The list of commits referenced by Items, if they were requested.
Commits *[]GitCommitRef `json:"commits,omitempty"`
// The last change of items.
Items *[]GitLastChangeItem `json:"items,omitempty"`
// The last explored time, in case the result is not comprehensive. Null otherwise.
LastExploredTime *azuredevops.Time `json:"lastExploredTime,omitempty"`
}
type GitMerge struct {
// Comment or message of the commit.
Comment *string `json:"comment,omitempty"`
// An enumeration of the parent commit IDs for the merge commit.
Parents *[]string `json:"parents,omitempty"`
// Reference links.
Links interface{} `json:"_links,omitempty"`
// Detailed status of the merge operation.
DetailedStatus *GitMergeOperationStatusDetail `json:"detailedStatus,omitempty"`
// Unique identifier for the merge operation.
MergeOperationId *int `json:"mergeOperationId,omitempty"`
// Status of the merge operation.
Status *GitAsyncOperationStatus `json:"status,omitempty"`
}
// Status information about a requested merge operation.
type GitMergeOperationStatusDetail struct {
// Error message if the operation failed.
FailureMessage *string `json:"failureMessage,omitempty"`
// The commitId of the resultant merge commit.
MergeCommitId *string `json:"mergeCommitId,omitempty"`
}
type GitMergeOriginRef struct {
CherryPickId *int `json:"cherryPickId,omitempty"`
PullRequestId *int `json:"pullRequestId,omitempty"`
RevertId *int `json:"revertId,omitempty"`
}
// Parameters required for performing git merge.
type GitMergeParameters struct {
// Comment or message of the commit.
Comment *string `json:"comment,omitempty"`
// An enumeration of the parent commit IDs for the merge commit.
Parents *[]string `json:"parents,omitempty"`
}
// Git object identifier and type information.
type GitObject struct {
// Object Id (Sha1Id).
ObjectId *string `json:"objectId,omitempty"`
// Type of object (Commit, Tree, Blob, Tag)
ObjectType *GitObjectType `json:"objectType,omitempty"`
}
type GitObjectType string
type gitObjectTypeValuesType struct {
Bad GitObjectType
Commit GitObjectType
Tree GitObjectType
Blob GitObjectType
Tag GitObjectType
Ext2 GitObjectType
OfsDelta GitObjectType
RefDelta GitObjectType
}
var GitObjectTypeValues = gitObjectTypeValuesType{
Bad: "bad",
Commit: "commit",
Tree: "tree",
Blob: "blob",
Tag: "tag",
Ext2: "ext2",
OfsDelta: "ofsDelta",
RefDelta: "refDelta",
}
type GitPathAction struct {
Action *GitPathActions `json:"action,omitempty"`
Base64Content *string `json:"base64Content,omitempty"`
Path *string `json:"path,omitempty"`
RawTextContent *string `json:"rawTextContent,omitempty"`
TargetPath *string `json:"targetPath,omitempty"`
}
type GitPathActions string
type gitPathActionsValuesType struct {
None GitPathActions
Edit GitPathActions
Delete GitPathActions
Add GitPathActions
Rename GitPathActions
}
var GitPathActionsValues = gitPathActionsValuesType{
None: "none",
Edit: "edit",
Delete: "delete",
Add: "add",
Rename: "rename",
}
type GitPathToItemsCollection struct {
Items *map[string][]GitItem `json:"items,omitempty"`
}
type GitPolicyConfigurationResponse struct {
// The HTTP client methods find the continuation token header in the response and populate this field.
ContinuationToken *string `json:"continuationToken,omitempty"`
PolicyConfigurations *[]policy.PolicyConfiguration `json:"policyConfigurations,omitempty"`
}
// Represents all the data associated with a pull request.
type GitPullRequest struct {
// Links to other related objects.
Links interface{} `json:"_links,omitempty"`
// A string which uniquely identifies this pull request. To generate an artifact ID for a pull request, use this template: ```vstfs:///Git/PullRequestId/{projectId}/{repositoryId}/{pullRequestId}```
ArtifactId *string `json:"artifactId,omitempty"`
// If set, auto-complete is enabled for this pull request and this is the identity that enabled it.
AutoCompleteSetBy *webapi.IdentityRef `json:"autoCompleteSetBy,omitempty"`
// The user who closed the pull request.
ClosedBy *webapi.IdentityRef `json:"closedBy,omitempty"`
// The date when the pull request was closed (completed, abandoned, or merged externally).
ClosedDate *azuredevops.Time `json:"closedDate,omitempty"`
// The code review ID of the pull request. Used internally.
CodeReviewId *int `json:"codeReviewId,omitempty"`
// The commits contained in the pull request.
Commits *[]GitCommitRef `json:"commits,omitempty"`
// Options which affect how the pull request will be merged when it is completed.
CompletionOptions *GitPullRequestCompletionOptions `json:"completionOptions,omitempty"`
// The most recent date at which the pull request entered the queue to be completed. Used internally.
CompletionQueueTime *azuredevops.Time `json:"completionQueueTime,omitempty"`
// The identity of the user who created the pull request.
CreatedBy *webapi.IdentityRef `json:"createdBy,omitempty"`
// The date when the pull request was created.
CreationDate *azuredevops.Time `json:"creationDate,omitempty"`
// The description of the pull request.
Description *string `json:"description,omitempty"`
// If this is a PR from a fork this will contain information about its source.
ForkSource *GitForkRef `json:"forkSource,omitempty"`
// Draft / WIP pull request.
IsDraft *bool `json:"isDraft,omitempty"`
// The labels associated with the pull request.
Labels *[]core.WebApiTagDefinition `json:"labels,omitempty"`
// The commit of the most recent pull request merge. If empty, the most recent merge is in progress or was unsuccessful.
LastMergeCommit *GitCommitRef `json:"lastMergeCommit,omitempty"`
// The commit at the head of the source branch at the time of the last pull request merge.
LastMergeSourceCommit *GitCommitRef `json:"lastMergeSourceCommit,omitempty"`
// The commit at the head of the target branch at the time of the last pull request merge.
LastMergeTargetCommit *GitCommitRef `json:"lastMergeTargetCommit,omitempty"`
// If set, pull request merge failed for this reason.
MergeFailureMessage *string `json:"mergeFailureMessage,omitempty"`
// The type of failure (if any) of the pull request merge.
MergeFailureType *PullRequestMergeFailureType `json:"mergeFailureType,omitempty"`
// The ID of the job used to run the pull request merge. Used internally.
MergeId *uuid.UUID `json:"mergeId,omitempty"`
// Options used when the pull request merge runs. These are separate from completion options since completion happens only once and a new merge will run every time the source branch of the pull request changes.
MergeOptions *GitPullRequestMergeOptions `json:"mergeOptions,omitempty"`
// The current status of the pull request merge.
MergeStatus *PullRequestAsyncStatus `json:"mergeStatus,omitempty"`
// The ID of the pull request.
PullRequestId *int `json:"pullRequestId,omitempty"`
// Used internally.
RemoteUrl *string `json:"remoteUrl,omitempty"`
// The repository containing the target branch of the pull request.
Repository *GitRepository `json:"repository,omitempty"`
// A list of reviewers on the pull request along with the state of their votes.
Reviewers *[]IdentityRefWithVote `json:"reviewers,omitempty"`
// The name of the source branch of the pull request.
SourceRefName *string `json:"sourceRefName,omitempty"`
// The status of the pull request.
Status *PullRequestStatus `json:"status,omitempty"`
// If true, this pull request supports multiple iterations. Iteration support means individual pushes to the source branch of the pull request can be reviewed and comments left in one iteration will be tracked across future iterations.
SupportsIterations *bool `json:"supportsIterations,omitempty"`
// The name of the target branch of the pull request.
TargetRefName *string `json:"targetRefName,omitempty"`
// The title of the pull request.
Title *string `json:"title,omitempty"`
// Used internally.
Url *string `json:"url,omitempty"`
// Any work item references associated with this pull request.
WorkItemRefs *[]webapi.ResourceRef `json:"workItemRefs,omitempty"`
}
// Change made in a pull request.
type GitPullRequestChange struct {
// The type of change that was made to the item.
ChangeType *VersionControlChangeType `json:"changeType,omitempty"`
// Current version.
Item interface{} `json:"item,omitempty"`
// Content of the item after the change.
NewContent *ItemContent `json:"newContent,omitempty"`
// Path of the item on the server.
SourceServerItem *string `json:"sourceServerItem,omitempty"`
// URL to retrieve the item.
Url *string `json:"url,omitempty"`
// ID of the change within the group of changes.
ChangeId *int `json:"changeId,omitempty"`
// New Content template to be used when pushing new changes.
NewContentTemplate *GitTemplate `json:"newContentTemplate,omitempty"`
// Original path of item if different from current path.
OriginalPath *string `json:"originalPath,omitempty"`
// ID used to track files through multiple changes.
ChangeTrackingId *int `json:"changeTrackingId,omitempty"`
}
// Represents a comment thread of a pull request. A thread contains meta data about the file it was left on (if any) along with one or more comments (an initial comment and the subsequent replies).
type GitPullRequestCommentThread struct {
// Links to other related objects.
Links interface{} `json:"_links,omitempty"`
// A list of the comments.
Comments *[]Comment `json:"comments,omitempty"`
// The comment thread id.
Id *int `json:"id,omitempty"`
// Set of identities related to this thread
Identities *map[string]webapi.IdentityRef `json:"identities,omitempty"`
// Specify if the thread is deleted which happens when all comments are deleted.
IsDeleted *bool `json:"isDeleted,omitempty"`
// The time this thread was last updated.
LastUpdatedDate *azuredevops.Time `json:"lastUpdatedDate,omitempty"`
// Optional properties associated with the thread as a collection of key-value pairs.
Properties interface{} `json:"properties,omitempty"`
// The time this thread was published.
PublishedDate *azuredevops.Time `json:"publishedDate,omitempty"`
// The status of the comment thread.
Status *CommentThreadStatus `json:"status,omitempty"`
// Specify thread context such as position in left/right file.
ThreadContext *CommentThreadContext `json:"threadContext,omitempty"`
// Extended context information unique to pull requests
PullRequestThreadContext *GitPullRequestCommentThreadContext `json:"pullRequestThreadContext,omitempty"`
}
// Comment thread context contains details about what diffs were being viewed at the time of thread creation and whether or not the thread has been tracked from that original diff.
type GitPullRequestCommentThreadContext struct {
// Used to track a comment across iterations. This value can be found by looking at the iteration's changes list. Must be set for pull requests with iteration support. Otherwise, it's not required for 'legacy' pull requests.
ChangeTrackingId *int `json:"changeTrackingId,omitempty"`
// The iteration context being viewed when the thread was created.
IterationContext *CommentIterationContext `json:"iterationContext,omitempty"`
// The criteria used to track this thread. If this property is filled out when the thread is returned, then the thread has been tracked from its original location using the given criteria.
TrackingCriteria *CommentTrackingCriteria `json:"trackingCriteria,omitempty"`
}
// Preferences about how the pull request should be completed.
type GitPullRequestCompletionOptions struct {
// List of any policy configuration Id's which auto-complete should not wait for. Only applies to optional policies (isBlocking == false). Auto-complete always waits for required policies (isBlocking == true).
AutoCompleteIgnoreConfigIds *[]int `json:"autoCompleteIgnoreConfigIds,omitempty"`
// If true, policies will be explicitly bypassed while the pull request is completed.
BypassPolicy *bool `json:"bypassPolicy,omitempty"`
// If policies are bypassed, this reason is stored as to why bypass was used.
BypassReason *string `json:"bypassReason,omitempty"`
// If true, the source branch of the pull request will be deleted after completion.
DeleteSourceBranch *bool `json:"deleteSourceBranch,omitempty"`
// If set, this will be used as the commit message of the merge commit.
MergeCommitMessage *string `json:"mergeCommitMessage,omitempty"`
// Specify the strategy used to merge the pull request during completion. If MergeStrategy is not set to any value, a no-FF merge will be created if SquashMerge == false. If MergeStrategy is not set to any value, the pull request commits will be squashed if SquashMerge == true. The SquashMerge property is deprecated. It is recommended that you explicitly set MergeStrategy in all cases. If an explicit value is provided for MergeStrategy, the SquashMerge property will be ignored.
MergeStrategy *GitPullRequestMergeStrategy `json:"mergeStrategy,omitempty"`
// SquashMerge is deprecated. You should explicitly set the value of MergeStrategy. If MergeStrategy is set to any value, the SquashMerge value will be ignored. If MergeStrategy is not set, the merge strategy will be no-fast-forward if this flag is false, or squash if true.
SquashMerge *bool `json:"squashMerge,omitempty"`
// If true, we will attempt to transition any work items linked to the pull request into the next logical state (i.e. Active -> Resolved)
TransitionWorkItems *bool `json:"transitionWorkItems,omitempty"`
// If true, the current completion attempt was triggered via auto-complete. Used internally.
TriggeredByAutoComplete *bool `json:"triggeredByAutoComplete,omitempty"`
}
// Provides properties that describe a Git pull request iteration. Iterations are created as a result of creating and pushing updates to a pull request.
type GitPullRequestIteration struct {
// A collection of related REST reference links.
Links interface{} `json:"_links,omitempty"`
// Author of the pull request iteration.
Author *webapi.IdentityRef `json:"author,omitempty"`
// Changes included with the pull request iteration.
ChangeList *[]GitPullRequestChange `json:"changeList,omitempty"`
// The commits included with the pull request iteration.
Commits *[]GitCommitRef `json:"commits,omitempty"`
// The first common Git commit of the source and target refs.
CommonRefCommit *GitCommitRef `json:"commonRefCommit,omitempty"`
// The creation date of the pull request iteration.
CreatedDate *azuredevops.Time `json:"createdDate,omitempty"`
// Description of the pull request iteration.
Description *string `json:"description,omitempty"`
// Indicates if the Commits property contains a truncated list of commits in this pull request iteration.
HasMoreCommits *bool `json:"hasMoreCommits,omitempty"`
// ID of the pull request iteration. Iterations are created as a result of creating and pushing updates to a pull request.
Id *int `json:"id,omitempty"`
// If the iteration reason is Retarget, this is the refName of the new target
NewTargetRefName *string `json:"newTargetRefName,omitempty"`
// If the iteration reason is Retarget, this is the original target refName
OldTargetRefName *string `json:"oldTargetRefName,omitempty"`
// The Git push information associated with this pull request iteration.
Push *GitPushRef `json:"push,omitempty"`
// The reason for which the pull request iteration was created.
Reason *IterationReason `json:"reason,omitempty"`
// The source Git commit of this iteration.
SourceRefCommit *GitCommitRef `json:"sourceRefCommit,omitempty"`
// The target Git commit of this iteration.
TargetRefCommit *GitCommitRef `json:"targetRefCommit,omitempty"`
// The updated date of the pull request iteration.
UpdatedDate *azuredevops.Time `json:"updatedDate,omitempty"`
}
// Collection of changes made in a pull request.
type GitPullRequestIterationChanges struct {
// Changes made in the iteration.
ChangeEntries *[]GitPullRequestChange `json:"changeEntries,omitempty"`
// Value to specify as skip to get the next page of changes. This will be zero if there are no more changes.
NextSkip *int `json:"nextSkip,omitempty"`
// Value to specify as top to get the next page of changes. This will be zero if there are no more changes.
NextTop *int `json:"nextTop,omitempty"`
}
// The options which are used when a pull request merge is created.
type GitPullRequestMergeOptions struct {
// If true, conflict resolutions applied during the merge will be put in separate commits to preserve authorship info for git blame, etc.
ConflictAuthorshipCommits *bool `json:"conflictAuthorshipCommits,omitempty"`
DetectRenameFalsePositives *bool `json:"detectRenameFalsePositives,omitempty"`
// If true, rename detection will not be performed during the merge.
DisableRenames *bool `json:"disableRenames,omitempty"`
}
// Enumeration of possible merge strategies which can be used to complete a pull request.
type GitPullRequestMergeStrategy string
type gitPullRequestMergeStrategyValuesType struct {
NoFastForward GitPullRequestMergeStrategy
Squash GitPullRequestMergeStrategy
Rebase GitPullRequestMergeStrategy
RebaseMerge GitPullRequestMergeStrategy
}
var GitPullRequestMergeStrategyValues = gitPullRequestMergeStrategyValuesType{
// A two-parent, no-fast-forward merge. The source branch is unchanged. This is the default behavior.
NoFastForward: "noFastForward",
// Put all changes from the pull request into a single-parent commit.
Squash: "squash",
// Rebase the source branch on top of the target branch HEAD commit, and fast-forward the target branch. The source branch is updated during the rebase operation.
Rebase: "rebase",
// Rebase the source branch on top of the target branch HEAD commit, and create a two-parent, no-fast-forward merge. The source branch is updated during the rebase operation.
RebaseMerge: "rebaseMerge",
}
// A set of pull request queries and their results.
type GitPullRequestQuery struct {
// The queries to perform.
Queries *[]GitPullRequestQueryInput `json:"queries,omitempty"`
// The results of the queries. This matches the QueryInputs list so Results[n] are the results of QueryInputs[n]. Each entry in the list is a dictionary of commit->pull requests.
Results *[]map[string][]GitPullRequest `json:"results,omitempty"`
}
// Pull request query input parameters.
type GitPullRequestQueryInput struct {
// The list of commit IDs to search for.
Items *[]string `json:"items,omitempty"`
// The type of query to perform.
Type *GitPullRequestQueryType `json:"type,omitempty"`
}
// Accepted types of pull request queries.
type GitPullRequestQueryType string
type gitPullRequestQueryTypeValuesType struct {
NotSet GitPullRequestQueryType
LastMergeCommit GitPullRequestQueryType
Commit GitPullRequestQueryType
}
var GitPullRequestQueryTypeValues = gitPullRequestQueryTypeValuesType{
// No query type set.
NotSet: "notSet",
// Search for pull requests that created the supplied merge commits.
LastMergeCommit: "lastMergeCommit",
// Search for pull requests that merged the supplied commits.
Commit: "commit",
}
type GitPullRequestReviewFileContentInfo struct {
Links interface{} `json:"_links,omitempty"`
// The file change path.
Path *string `json:"path,omitempty"`
// Content hash of on-disk representation of file content. Its calculated by the client by using SHA1 hash function. Ensure that uploaded file has same encoding as in source control.
ShA1Hash *string `json:"shA1Hash,omitempty"`
}
type GitPullRequestReviewFileType string
type gitPullRequestReviewFileTypeValuesType struct {
ChangeEntry GitPullRequestReviewFileType
Attachment GitPullRequestReviewFileType
}
var GitPullRequestReviewFileTypeValues = gitPullRequestReviewFileTypeValuesType{
ChangeEntry: "changeEntry",
Attachment: "attachment",
}
// Pull requests can be searched for matching this criteria.
type GitPullRequestSearchCriteria struct {
// If set, search for pull requests that were created by this identity.
CreatorId *uuid.UUID `json:"creatorId,omitempty"`
// Whether to include the _links field on the shallow references
IncludeLinks *bool `json:"includeLinks,omitempty"`
// If set, search for pull requests whose target branch is in this repository.
RepositoryId *uuid.UUID `json:"repositoryId,omitempty"`
// If set, search for pull requests that have this identity as a reviewer.
ReviewerId *uuid.UUID `json:"reviewerId,omitempty"`
// If set, search for pull requests from this branch.
SourceRefName *string `json:"sourceRefName,omitempty"`
// If set, search for pull requests whose source branch is in this repository.
SourceRepositoryId *uuid.UUID `json:"sourceRepositoryId,omitempty"`
// If set, search for pull requests that are in this state. Defaults to Active if unset.
Status *PullRequestStatus `json:"status,omitempty"`
// If set, search for pull requests into this branch.
TargetRefName *string `json:"targetRefName,omitempty"`
}
// This class contains the metadata of a service/extension posting pull request status. Status can be associated with a pull request or an iteration.
type GitPullRequestStatus struct {
// Reference links.
Links interface{} `json:"_links,omitempty"`
// Context of the status.
Context *GitStatusContext `json:"context,omitempty"`
// Identity that created the status.
CreatedBy *webapi.IdentityRef `json:"createdBy,omitempty"`
// Creation date and time of the status.
CreationDate *azuredevops.Time `json:"creationDate,omitempty"`
// Status description. Typically describes current state of the status.
Description *string `json:"description,omitempty"`
// Status identifier.
Id *int `json:"id,omitempty"`
// State of the status.
State *GitStatusState `json:"state,omitempty"`
// URL with status details.
TargetUrl *string `json:"targetUrl,omitempty"`
// Last update date and time of the status.
UpdatedDate *azuredevops.Time `json:"updatedDate,omitempty"`
// ID of the iteration to associate status with. Minimum value is 1.
IterationId *int `json:"iterationId,omitempty"`
// Custom properties of the status.
Properties interface{} `json:"properties,omitempty"`
}
type GitPush struct {
Links interface{} `json:"_links,omitempty"`
Date *azuredevops.Time `json:"date,omitempty"`
PushCorrelationId *uuid.UUID `json:"pushCorrelationId,omitempty"`
PushedBy *webapi.IdentityRef `json:"pushedBy,omitempty"`
PushId *int `json:"pushId,omitempty"`
Url *string `json:"url,omitempty"`
Commits *[]GitCommitRef `json:"commits,omitempty"`
RefUpdates *[]GitRefUpdate `json:"refUpdates,omitempty"`
Repository *GitRepository `json:"repository,omitempty"`
}
type GitPushEventData struct {
AfterId *string `json:"afterId,omitempty"`
BeforeId *string `json:"beforeId,omitempty"`
Branch *string `json:"branch,omitempty"`
Commits *[]GitCommit `json:"commits,omitempty"`
Repository *GitRepository `json:"repository,omitempty"`
}
type GitPushRef struct {
Links interface{} `json:"_links,omitempty"`
Date *azuredevops.Time `json:"date,omitempty"`
// Deprecated: This is unused as of Dev15 M115 and may be deleted in the future
PushCorrelationId *uuid.UUID `json:"pushCorrelationId,omitempty"`
PushedBy *webapi.IdentityRef `json:"pushedBy,omitempty"`
PushId *int `json:"pushId,omitempty"`
Url *string `json:"url,omitempty"`
}
type GitPushSearchCriteria struct {
FromDate *azuredevops.Time `json:"fromDate,omitempty"`
// Whether to include the _links field on the shallow references
IncludeLinks *bool `json:"includeLinks,omitempty"`
IncludeRefUpdates *bool `json:"includeRefUpdates,omitempty"`
PusherId *uuid.UUID `json:"pusherId,omitempty"`
RefName *string `json:"refName,omitempty"`
ToDate *azuredevops.Time `json:"toDate,omitempty"`
}
type GitQueryBranchStatsCriteria struct {
BaseCommit *GitVersionDescriptor `json:"baseCommit,omitempty"`
TargetCommits *[]GitVersionDescriptor `json:"targetCommits,omitempty"`
}
type GitQueryCommitsCriteria struct {
// Number of entries to skip
Skip *int `json:"$skip,omitempty"`
// Maximum number of entries to retrieve
Top *int `json:"$top,omitempty"`
// Alias or display name of the author
Author *string `json:"author,omitempty"`
// Only applicable when ItemVersion specified. If provided, start walking history starting at this commit.
CompareVersion *GitVersionDescriptor `json:"compareVersion,omitempty"`
// Only applies when an itemPath is specified. This determines whether to exclude delete entries of the specified path.
ExcludeDeletes *bool `json:"excludeDeletes,omitempty"`
// If provided, a lower bound for filtering commits alphabetically
FromCommitId *string `json:"fromCommitId,omitempty"`
// If provided, only include history entries created after this date (string)
FromDate *string `json:"fromDate,omitempty"`
// What Git history mode should be used. This only applies to the search criteria when Ids = null and an itemPath is specified.
HistoryMode *GitHistoryMode `json:"historyMode,omitempty"`
// If provided, specifies the exact commit ids of the commits to fetch. May not be combined with other parameters.
Ids *[]string `json:"ids,omitempty"`
// Whether to include the _links field on the shallow references
IncludeLinks *bool `json:"includeLinks,omitempty"`
// Whether to include the push information
IncludePushData *bool `json:"includePushData,omitempty"`
// Whether to include the image Url for committers and authors
IncludeUserImageUrl *bool `json:"includeUserImageUrl,omitempty"`
// Whether to include linked work items
IncludeWorkItems *bool `json:"includeWorkItems,omitempty"`
// Path of item to search under
ItemPath *string `json:"itemPath,omitempty"`
// If provided, identifies the commit or branch to search
ItemVersion *GitVersionDescriptor `json:"itemVersion,omitempty"`
// If enabled, this option will ignore the itemVersion and compareVersion parameters
ShowOldestCommitsFirst *bool `json:"showOldestCommitsFirst,omitempty"`
// If provided, an upper bound for filtering commits alphabetically
ToCommitId *string `json:"toCommitId,omitempty"`
// If provided, only include history entries created before this date (string)
ToDate *string `json:"toDate,omitempty"`
// Alias or display name of the committer
User *string `json:"user,omitempty"`
}
type GitQueryRefsCriteria struct {
// List of commit Ids to be searched
CommitIds *[]string `json:"commitIds,omitempty"`
// List of complete or partial names for refs to be searched
RefNames *[]string `json:"refNames,omitempty"`
// Type of search on refNames, if provided
SearchType *GitRefSearchType `json:"searchType,omitempty"`
}
type GitRecycleBinRepositoryDetails struct {
// Setting to false will undo earlier deletion and restore the repository.
Deleted *bool `json:"deleted,omitempty"`
}
type GitRef struct {
Links interface{} `json:"_links,omitempty"`
Creator *webapi.IdentityRef `json:"creator,omitempty"`
IsLocked *bool `json:"isLocked,omitempty"`
IsLockedBy *webapi.IdentityRef `json:"isLockedBy,omitempty"`
Name *string `json:"name,omitempty"`
ObjectId *string `json:"objectId,omitempty"`
PeeledObjectId *string `json:"peeledObjectId,omitempty"`
Statuses *[]GitStatus `json:"statuses,omitempty"`
Url *string `json:"url,omitempty"`
}
type GitRefFavorite struct {
Links interface{} `json:"_links,omitempty"`
Id *int `json:"id,omitempty"`
IdentityId *uuid.UUID `json:"identityId,omitempty"`
Name *string `json:"name,omitempty"`
RepositoryId *uuid.UUID `json:"repositoryId,omitempty"`
Type *RefFavoriteType `json:"type,omitempty"`
Url *string `json:"url,omitempty"`
}
// Search type on ref name
type GitRefSearchType string
type gitRefSearchTypeValuesType struct {
Exact GitRefSearchType
StartsWith GitRefSearchType
Contains GitRefSearchType
}
var GitRefSearchTypeValues = gitRefSearchTypeValuesType{
Exact: "exact",
StartsWith: "startsWith",
Contains: "contains",
}
type GitRefUpdate struct {
IsLocked *bool `json:"isLocked,omitempty"`
Name *string `json:"name,omitempty"`
NewObjectId *string `json:"newObjectId,omitempty"`
OldObjectId *string `json:"oldObjectId,omitempty"`
RepositoryId *uuid.UUID `json:"repositoryId,omitempty"`
}
// Enumerates the modes under which ref updates can be written to their repositories.
type GitRefUpdateMode string
type gitRefUpdateModeValuesType struct {
BestEffort GitRefUpdateMode
AllOrNone GitRefUpdateMode
}
var GitRefUpdateModeValues = gitRefUpdateModeValuesType{
// Indicates the Git protocol model where any refs that can be updated will be updated, but any failures will not prevent other updates from succeeding.
BestEffort: "bestEffort",
// Indicates that all ref updates must succeed or none will succeed. All ref updates will be atomically written. If any failure is encountered, previously successful updates will be rolled back and the entire operation will fail.
AllOrNone: "allOrNone",
}
type GitRefUpdateResult struct {
// Custom message for the result object For instance, Reason for failing.
CustomMessage *string `json:"customMessage,omitempty"`
// Whether the ref is locked or not
IsLocked *bool `json:"isLocked,omitempty"`
// Ref name
Name *string `json:"name,omitempty"`
// New object ID
NewObjectId *string `json:"newObjectId,omitempty"`
// Old object ID
OldObjectId *string `json:"oldObjectId,omitempty"`
// Name of the plugin that rejected the updated.
RejectedBy *string `json:"rejectedBy,omitempty"`
// Repository ID
RepositoryId *uuid.UUID `json:"repositoryId,omitempty"`
// True if the ref update succeeded, false otherwise
Success *bool `json:"success,omitempty"`
// Status of the update from the TFS server.
UpdateStatus *GitRefUpdateStatus `json:"updateStatus,omitempty"`
}
// Represents the possible outcomes from a request to update a ref in a repository.
type GitRefUpdateStatus string
type gitRefUpdateStatusValuesType struct {
Succeeded GitRefUpdateStatus
ForcePushRequired GitRefUpdateStatus
StaleOldObjectId GitRefUpdateStatus
InvalidRefName GitRefUpdateStatus
Unprocessed GitRefUpdateStatus
UnresolvableToCommit GitRefUpdateStatus
WritePermissionRequired GitRefUpdateStatus
ManageNotePermissionRequired GitRefUpdateStatus
CreateBranchPermissionRequired GitRefUpdateStatus
CreateTagPermissionRequired GitRefUpdateStatus
RejectedByPlugin GitRefUpdateStatus
Locked GitRefUpdateStatus
RefNameConflict GitRefUpdateStatus
RejectedByPolicy GitRefUpdateStatus
SucceededNonExistentRef GitRefUpdateStatus
SucceededCorruptRef GitRefUpdateStatus
}
var GitRefUpdateStatusValues = gitRefUpdateStatusValuesType{
// Indicates that the ref update request was completed successfully.
Succeeded: "succeeded",
// Indicates that the ref update request could not be completed because part of the graph would be disconnected by this change, and the caller does not have ForcePush permission on the repository.
ForcePushRequired: "forcePushRequired",
// Indicates that the ref update request could not be completed because the old object ID presented in the request was not the object ID of the ref when the database attempted the update. The most likely scenario is that the caller lost a race to update the ref.
StaleOldObjectId: "staleOldObjectId",
// Indicates that the ref update request could not be completed because the ref name presented in the request was not valid.
InvalidRefName: "invalidRefName",
// The request was not processed
Unprocessed: "unprocessed",
// The ref update request could not be completed because the new object ID for the ref could not be resolved to a commit object (potentially through any number of tags)
UnresolvableToCommit: "unresolvableToCommit",
// The ref update request could not be completed because the user lacks write permissions required to write this ref
WritePermissionRequired: "writePermissionRequired",
// The ref update request could not be completed because the user lacks note creation permissions required to write this note
ManageNotePermissionRequired: "manageNotePermissionRequired",
// The ref update request could not be completed because the user lacks the permission to create a branch
CreateBranchPermissionRequired: "createBranchPermissionRequired",
// The ref update request could not be completed because the user lacks the permission to create a tag
CreateTagPermissionRequired: "createTagPermissionRequired",
// The ref update could not be completed because it was rejected by the plugin.
RejectedByPlugin: "rejectedByPlugin",
// The ref update could not be completed because the ref is locked by another user.
Locked: "locked",
// The ref update could not be completed because, in case-insensitive mode, the ref name conflicts with an existing, differently-cased ref name.
RefNameConflict: "refNameConflict",
// The ref update could not be completed because it was rejected by policy.
RejectedByPolicy: "rejectedByPolicy",
// Indicates that the ref update request was completed successfully, but the ref doesn't actually exist so no changes were made. This should only happen during deletes.
SucceededNonExistentRef: "succeededNonExistentRef",
// Indicates that the ref update request was completed successfully, but the passed-in ref was corrupt - as in, the old object ID was bad. This should only happen during deletes.
SucceededCorruptRef: "succeededCorruptRef",
}
type GitRepository struct {
Links interface{} `json:"_links,omitempty"`
DefaultBranch *string `json:"defaultBranch,omitempty"`
Id *uuid.UUID `json:"id,omitempty"`
// True if the repository was created as a fork
IsFork *bool `json:"isFork,omitempty"`
Name *string `json:"name,omitempty"`
ParentRepository *GitRepositoryRef `json:"parentRepository,omitempty"`
Project *core.TeamProjectReference `json:"project,omitempty"`
RemoteUrl *string `json:"remoteUrl,omitempty"`
// Compressed size (bytes) of the repository.
Size *uint64 `json:"size,omitempty"`
SshUrl *string `json:"sshUrl,omitempty"`
Url *string `json:"url,omitempty"`
ValidRemoteUrls *[]string `json:"validRemoteUrls,omitempty"`
WebUrl *string `json:"webUrl,omitempty"`
}
type GitRepositoryCreateOptions struct {
Name *string `json:"name,omitempty"`
ParentRepository *GitRepositoryRef `json:"parentRepository,omitempty"`
Project *core.TeamProjectReference `json:"project,omitempty"`
}
type GitRepositoryRef struct {
// Team Project Collection where this Fork resides
Collection *core.TeamProjectCollectionReference `json:"collection,omitempty"`
Id *uuid.UUID `json:"id,omitempty"`
// True if the repository was created as a fork
IsFork *bool `json:"isFork,omitempty"`
Name *string `json:"name,omitempty"`
Project *core.TeamProjectReference `json:"project,omitempty"`
RemoteUrl *string `json:"remoteUrl,omitempty"`
SshUrl *string `json:"sshUrl,omitempty"`
Url *string `json:"url,omitempty"`
}
type GitRepositoryStats struct {
ActivePullRequestsCount *int `json:"activePullRequestsCount,omitempty"`
BranchesCount *int `json:"branchesCount,omitempty"`
CommitsCount *int `json:"commitsCount,omitempty"`
RepositoryId *string `json:"repositoryId,omitempty"`
}
type GitResolution struct {
// User who created the resolution.
Author *webapi.IdentityRef `json:"author,omitempty"`
}
// The type of a merge conflict.
type GitResolutionError string
type gitResolutionErrorValuesType struct {
None GitResolutionError
MergeContentNotFound GitResolutionError
PathInUse GitResolutionError
InvalidPath GitResolutionError
UnknownAction GitResolutionError
UnknownMergeType GitResolutionError
OtherError GitResolutionError
}
var GitResolutionErrorValues = gitResolutionErrorValuesType{
// No error
None: "none",
// User set a blob id for resolving a content merge, but blob was not found in repo during application
MergeContentNotFound: "mergeContentNotFound",
// Attempted to resolve a conflict by moving a file to another path, but path was already in use
PathInUse: "pathInUse",
// No error
InvalidPath: "invalidPath",
// GitResolutionAction was set to an unrecognized value
UnknownAction: "unknownAction",
// GitResolutionMergeType was set to an unrecognized value
UnknownMergeType: "unknownMergeType",
// Any error for which a more specific code doesn't apply
OtherError: "otherError",
}
type GitResolutionMergeContent struct {
// User who created the resolution.
Author *webapi.IdentityRef `json:"author,omitempty"`
MergeType *GitResolutionMergeType `json:"mergeType,omitempty"`
UserMergedBlob *GitBlobRef `json:"userMergedBlob,omitempty"`
UserMergedContent *[]byte `json:"userMergedContent,omitempty"`
}
type GitResolutionMergeType string
type gitResolutionMergeTypeValuesType struct {
Undecided GitResolutionMergeType
TakeSourceContent GitResolutionMergeType
TakeTargetContent GitResolutionMergeType
AutoMerged GitResolutionMergeType
UserMerged GitResolutionMergeType
}
var GitResolutionMergeTypeValues = gitResolutionMergeTypeValuesType{
Undecided: "undecided",
TakeSourceContent: "takeSourceContent",
TakeTargetContent: "takeTargetContent",
AutoMerged: "autoMerged",
UserMerged: "userMerged",
}
type GitResolutionPathConflict struct {
// User who created the resolution.
Author *webapi.IdentityRef `json:"author,omitempty"`
Action *GitResolutionPathConflictAction `json:"action,omitempty"`
RenamePath *string `json:"renamePath,omitempty"`
}
type GitResolutionPathConflictAction string
type gitResolutionPathConflictActionValuesType struct {
Undecided GitResolutionPathConflictAction
KeepSourceRenameTarget GitResolutionPathConflictAction
KeepSourceDeleteTarget GitResolutionPathConflictAction
KeepTargetRenameSource GitResolutionPathConflictAction
KeepTargetDeleteSource GitResolutionPathConflictAction
}
var GitResolutionPathConflictActionValues = gitResolutionPathConflictActionValuesType{
Undecided: "undecided",
KeepSourceRenameTarget: "keepSourceRenameTarget",
KeepSourceDeleteTarget: "keepSourceDeleteTarget",
KeepTargetRenameSource: "keepTargetRenameSource",
KeepTargetDeleteSource: "keepTargetDeleteSource",
}
type GitResolutionPickOneAction struct {
// User who created the resolution.
Author *webapi.IdentityRef `json:"author,omitempty"`
Action *GitResolutionWhichAction `json:"action,omitempty"`
}
type GitResolutionRename1to2 struct {
// User who created the resolution.
Author *webapi.IdentityRef `json:"author,omitempty"`
MergeType *GitResolutionMergeType `json:"mergeType,omitempty"`
UserMergedBlob *GitBlobRef `json:"userMergedBlob,omitempty"`
UserMergedContent *[]byte `json:"userMergedContent,omitempty"`
Action *GitResolutionRename1to2Action `json:"action,omitempty"`
}
type GitResolutionRename1to2Action string
type gitResolutionRename1to2ActionValuesType struct {
Undecided GitResolutionRename1to2Action
KeepSourcePath GitResolutionRename1to2Action
KeepTargetPath GitResolutionRename1to2Action
KeepBothFiles GitResolutionRename1to2Action
}
var GitResolutionRename1to2ActionValues = gitResolutionRename1to2ActionValuesType{
Undecided: "undecided",
KeepSourcePath: "keepSourcePath",
KeepTargetPath: "keepTargetPath",
KeepBothFiles: "keepBothFiles",
}
// Resolution status of a conflict.
type GitResolutionStatus string
type gitResolutionStatusValuesType struct {
Unresolved GitResolutionStatus
PartiallyResolved GitResolutionStatus
Resolved GitResolutionStatus
}
var GitResolutionStatusValues = gitResolutionStatusValuesType{
Unresolved: "unresolved",
PartiallyResolved: "partiallyResolved",
Resolved: "resolved",
}
type GitResolutionWhichAction string
type gitResolutionWhichActionValuesType struct {
Undecided GitResolutionWhichAction
PickSourceAction GitResolutionWhichAction
PickTargetAction GitResolutionWhichAction
}
var GitResolutionWhichActionValues = gitResolutionWhichActionValuesType{
Undecided: "undecided",
PickSourceAction: "pickSourceAction",
PickTargetAction: "pickTargetAction",
}
type GitRevert struct {
Links interface{} `json:"_links,omitempty"`
DetailedStatus *GitAsyncRefOperationDetail `json:"detailedStatus,omitempty"`
Parameters *GitAsyncRefOperationParameters `json:"parameters,omitempty"`
Status *GitAsyncOperationStatus `json:"status,omitempty"`
// A URL that can be used to make further requests for status about the operation
Url *string `json:"url,omitempty"`
RevertId *int `json:"revertId,omitempty"`
}
// This class contains the metadata of a service/extension posting a status.
type GitStatus struct {
// Reference links.
Links interface{} `json:"_links,omitempty"`
// Context of the status.
Context *GitStatusContext `json:"context,omitempty"`
// Identity that created the status.
CreatedBy *webapi.IdentityRef `json:"createdBy,omitempty"`
// Creation date and time of the status.
CreationDate *azuredevops.Time `json:"creationDate,omitempty"`
// Status description. Typically describes current state of the status.
Description *string `json:"description,omitempty"`
// Status identifier.
Id *int `json:"id,omitempty"`
// State of the status.
State *GitStatusState `json:"state,omitempty"`
// URL with status details.
TargetUrl *string `json:"targetUrl,omitempty"`
// Last update date and time of the status.
UpdatedDate *azuredevops.Time `json:"updatedDate,omitempty"`
}
// Status context that uniquely identifies the status.
type GitStatusContext struct {
// Genre of the status. Typically name of the service/tool generating the status, can be empty.
Genre *string `json:"genre,omitempty"`
// Name identifier of the status, cannot be null or empty.
Name *string `json:"name,omitempty"`
}
// State of the status.
type GitStatusState string
type gitStatusStateValuesType struct {
NotSet GitStatusState
Pending GitStatusState
Succeeded GitStatusState
Failed GitStatusState
Error GitStatusState
NotApplicable GitStatusState
}
var GitStatusStateValues = gitStatusStateValuesType{
// Status state not set. Default state.
NotSet: "notSet",
// Status pending.
Pending: "pending",
// Status succeeded.
Succeeded: "succeeded",
// Status failed.
Failed: "failed",
// Status with an error.
Error: "error",
// Status is not applicable to the target object.
NotApplicable: "notApplicable",
}
// An object describing the git suggestion. Git suggestions are currently limited to suggested pull requests.
type GitSuggestion struct {
// Specific properties describing the suggestion.
Properties *map[string]interface{} `json:"properties,omitempty"`
// The type of suggestion (e.g. pull request).
Type *string `json:"type,omitempty"`
}
type GitTargetVersionDescriptor struct {
// Version string identifier (name of tag/branch, SHA1 of commit)
Version *string `json:"version,omitempty"`
// Version options - Specify additional modifiers to version (e.g Previous)
VersionOptions *GitVersionOptions `json:"versionOptions,omitempty"`
// Version type (branch, tag, or commit). Determines how Id is interpreted
VersionType *GitVersionType `json:"versionType,omitempty"`
// Version string identifier (name of tag/branch, SHA1 of commit)
TargetVersion *string `json:"targetVersion,omitempty"`
// Version options - Specify additional modifiers to version (e.g Previous)
TargetVersionOptions *GitVersionOptions `json:"targetVersionOptions,omitempty"`
// Version type (branch, tag, or commit). Determines how Id is interpreted
TargetVersionType *GitVersionType `json:"targetVersionType,omitempty"`
}
type GitTemplate struct {
// Name of the Template
Name *string `json:"name,omitempty"`
// Type of the Template
Type *string `json:"type,omitempty"`
}
type GitTreeDiff struct {
// ObjectId of the base tree of this diff.
BaseTreeId *string `json:"baseTreeId,omitempty"`
// List of tree entries that differ between the base and target tree. Renames and object type changes are returned as a delete for the old object and add for the new object. If a continuation token is returned in the response header, some tree entries are yet to be processed and may yield more diff entries. If the continuation token is not returned all the diff entries have been included in this response.
DiffEntries *[]GitTreeDiffEntry `json:"diffEntries,omitempty"`
// ObjectId of the target tree of this diff.
TargetTreeId *string `json:"targetTreeId,omitempty"`
// REST Url to this resource.
Url *string `json:"url,omitempty"`
}
type GitTreeDiffEntry struct {
// SHA1 hash of the object in the base tree, if it exists. Will be null in case of adds.
BaseObjectId *string `json:"baseObjectId,omitempty"`
// Type of change that affected this entry.
ChangeType *VersionControlChangeType `json:"changeType,omitempty"`
// Object type of the tree entry. Blob, Tree or Commit("submodule")
ObjectType *GitObjectType `json:"objectType,omitempty"`
// Relative path in base and target trees.
Path *string `json:"path,omitempty"`
// SHA1 hash of the object in the target tree, if it exists. Will be null in case of deletes.
TargetObjectId *string `json:"targetObjectId,omitempty"`
}
type GitTreeDiffResponse struct {
// The HTTP client methods find the continuation token header in the response and populate this field.
ContinuationToken *[]string `json:"continuationToken,omitempty"`
TreeDiff *GitTreeDiff `json:"treeDiff,omitempty"`
}
type GitTreeEntryRef struct {
// Blob or tree
GitObjectType *GitObjectType `json:"gitObjectType,omitempty"`
// Mode represented as octal string
Mode *string `json:"mode,omitempty"`
// SHA1 hash of git object
ObjectId *string `json:"objectId,omitempty"`
// Path relative to parent tree object
RelativePath *string `json:"relativePath,omitempty"`
// Size of content
Size *uint64 `json:"size,omitempty"`
// url to retrieve tree or blob
Url *string `json:"url,omitempty"`
}
type GitTreeRef struct {
Links interface{} `json:"_links,omitempty"`
// SHA1 hash of git object
ObjectId *string `json:"objectId,omitempty"`
// Sum of sizes of all children
Size *uint64 `json:"size,omitempty"`
// Blobs and trees under this tree
TreeEntries *[]GitTreeEntryRef `json:"treeEntries,omitempty"`
// Url to tree
Url *string `json:"url,omitempty"`
}
// User info and date for Git operations.
type GitUserDate struct {
// Date of the Git operation.
Date *azuredevops.Time `json:"date,omitempty"`
// Email address of the user performing the Git operation.
Email *string `json:"email,omitempty"`
// Url for the user's avatar.
ImageUrl *string `json:"imageUrl,omitempty"`
// Name of the user performing the Git operation.
Name *string `json:"name,omitempty"`
}
type GitVersionDescriptor struct {
// Version string identifier (name of tag/branch, SHA1 of commit)
Version *string `json:"version,omitempty"`
// Version options - Specify additional modifiers to version (e.g Previous)
VersionOptions *GitVersionOptions `json:"versionOptions,omitempty"`
// Version type (branch, tag, or commit). Determines how Id is interpreted
VersionType *GitVersionType `json:"versionType,omitempty"`
}
// Accepted types of version options
type GitVersionOptions string
type gitVersionOptionsValuesType struct {
None GitVersionOptions
PreviousChange GitVersionOptions
FirstParent GitVersionOptions
}
var GitVersionOptionsValues = gitVersionOptionsValuesType{
// Not specified
None: "none",
// Commit that changed item prior to the current version
PreviousChange: "previousChange",
// First parent of commit (HEAD^)
FirstParent: "firstParent",
}
// Accepted types of version
type GitVersionType string
type gitVersionTypeValuesType struct {
Branch GitVersionType
Tag GitVersionType
Commit GitVersionType
}
var GitVersionTypeValues = gitVersionTypeValuesType{
// Interpret the version as a branch name
Branch: "branch",
// Interpret the version as a tag name
Tag: "tag",
// Interpret the version as a commit ID (SHA1)
Commit: "commit",
}
// Globally unique key for a repository.
type GlobalGitRepositoryKey struct {
// Team Project Collection ID of the collection for the repository.
CollectionId *uuid.UUID `json:"collectionId,omitempty"`
// Team Project ID of the project for the repository.
ProjectId *uuid.UUID `json:"projectId,omitempty"`
// ID of the repository.
RepositoryId *uuid.UUID `json:"repositoryId,omitempty"`
}
type HistoryEntry struct {
// The Change list (changeset/commit/shelveset) for this point in history
ChangeList interface{} `json:"changeList,omitempty"`
// The change made to the item from this change list (only relevant for File history, not folders)
ItemChangeType *VersionControlChangeType `json:"itemChangeType,omitempty"`
// The path of the item at this point in history (only relevant for File history, not folders)
ServerItem *string `json:"serverItem,omitempty"`
}
// Identity information including a vote on a pull request.
type IdentityRefWithVote struct {
// This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject.
Links interface{} `json:"_links,omitempty"`
// The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations.
Descriptor *string `json:"descriptor,omitempty"`
// This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider.
DisplayName *string `json:"displayName,omitempty"`
// This url is the full route to the source resource of this graph subject.
Url *string `json:"url,omitempty"`
// Deprecated - Can be retrieved by querying the Graph user referenced in the "self" entry of the IdentityRef "_links" dictionary
DirectoryAlias *string `json:"directoryAlias,omitempty"`
Id *string `json:"id,omitempty"`
// Deprecated - Available in the "avatar" entry of the IdentityRef "_links" dictionary
ImageUrl *string `json:"imageUrl,omitempty"`
// Deprecated - Can be retrieved by querying the Graph membership state referenced in the "membershipState" entry of the GraphUser "_links" dictionary
Inactive *bool `json:"inactive,omitempty"`
// Deprecated - Can be inferred from the subject type of the descriptor (Descriptor.IsAadUserType/Descriptor.IsAadGroupType)
IsAadIdentity *bool `json:"isAadIdentity,omitempty"`
// Deprecated - Can be inferred from the subject type of the descriptor (Descriptor.IsGroupType)
IsContainer *bool `json:"isContainer,omitempty"`
IsDeletedInOrigin *bool `json:"isDeletedInOrigin,omitempty"`
// Deprecated - not in use in most preexisting implementations of ToIdentityRef
ProfileUrl *string `json:"profileUrl,omitempty"`
// Deprecated - use Domain+PrincipalName instead
UniqueName *string `json:"uniqueName,omitempty"`
// Indicates if this reviewer has declined to review this pull request.
HasDeclined *bool `json:"hasDeclined,omitempty"`
// Indicates if this reviewer is flagged for attention on this pull request.
IsFlagged *bool `json:"isFlagged,omitempty"`
// Indicates if this is a required reviewer for this pull request. <br /> Branches can have policies that require particular reviewers are required for pull requests.
IsRequired *bool `json:"isRequired,omitempty"`
// URL to retrieve information about this identity
ReviewerUrl *string `json:"reviewerUrl,omitempty"`
// Vote on a pull request:<br /> 10 - approved 5 - approved with suggestions 0 - no vote -5 - waiting for author -10 - rejected
Vote *int `json:"vote,omitempty"`
// Groups or teams that that this reviewer contributed to. <br /> Groups and teams can be reviewers on pull requests but can not vote directly. When a member of the group or team votes, that vote is rolled up into the group or team vote. VotedFor is a list of such votes.
VotedFor *[]IdentityRefWithVote `json:"votedFor,omitempty"`
}
type ImportRepositoryValidation struct {
GitSource *GitImportGitSource `json:"gitSource,omitempty"`
Password *string `json:"password,omitempty"`
TfvcSource *GitImportTfvcSource `json:"tfvcSource,omitempty"`
Username *string `json:"username,omitempty"`
}
type IncludedGitCommit struct {
CommitId *string `json:"commitId,omitempty"`
CommitTime *azuredevops.Time `json:"commitTime,omitempty"`
ParentCommitIds *[]string `json:"parentCommitIds,omitempty"`
RepositoryId *uuid.UUID `json:"repositoryId,omitempty"`
}
// Real time event (SignalR) for IsDraft update on a pull request
type IsDraftUpdatedEvent struct {
// The id of this event. Can be used to track send/receive state between client and server.
EventId *uuid.UUID `json:"eventId,omitempty"`
// The id of the pull request this event was generated for.
PullRequestId *int `json:"pullRequestId,omitempty"`
}
type ItemContent struct {
Content *string `json:"content,omitempty"`
ContentType *ItemContentType `json:"contentType,omitempty"`
}
// [Flags]
type ItemContentType string
type itemContentTypeValuesType struct {
RawText ItemContentType
Base64Encoded ItemContentType
}
var ItemContentTypeValues = itemContentTypeValuesType{
RawText: "rawText",
Base64Encoded: "base64Encoded",
}
// Optional details to include when returning an item model
type ItemDetailsOptions struct {
// If true, include metadata about the file type
IncludeContentMetadata *bool `json:"includeContentMetadata,omitempty"`
// Specifies whether to include children (OneLevel), all descendants (Full) or None for folder items
RecursionLevel *VersionControlRecursionType `json:"recursionLevel,omitempty"`
}
type ItemModel struct {
Links interface{} `json:"_links,omitempty"`
Content *string `json:"content,omitempty"`
ContentMetadata *FileContentMetadata `json:"contentMetadata,omitempty"`
IsFolder *bool `json:"isFolder,omitempty"`
IsSymLink *bool `json:"isSymLink,omitempty"`
Path *string `json:"path,omitempty"`
Url *string `json:"url,omitempty"`
}
// [Flags] The reason for which the pull request iteration was created.
type IterationReason string
type iterationReasonValuesType struct {
Push IterationReason
ForcePush IterationReason
Create IterationReason
Rebase IterationReason
Unknown IterationReason
Retarget IterationReason
}
var IterationReasonValues = iterationReasonValuesType{
Push: "push",
ForcePush: "forcePush",
Create: "create",
Rebase: "rebase",
Unknown: "unknown",
Retarget: "retarget",
}
// Real time event (SignalR) for updated labels on a pull request
type LabelsUpdatedEvent struct {
// The id of this event. Can be used to track send/receive state between client and server.
EventId *uuid.UUID `json:"eventId,omitempty"`
// The id of the pull request this event was generated for.
PullRequestId *int `json:"pullRequestId,omitempty"`
}
// The class to represent the line diff block
type LineDiffBlock struct {
// Type of change that was made to the block.
ChangeType *LineDiffBlockChangeType `json:"changeType,omitempty"`
// Line number where this block starts in modified file.
ModifiedLineNumberStart *int `json:"modifiedLineNumberStart,omitempty"`
// Count of lines in this block in modified file.
ModifiedLinesCount *int `json:"modifiedLinesCount,omitempty"`
// Line number where this block starts in original file.
OriginalLineNumberStart *int `json:"originalLineNumberStart,omitempty"`
// Count of lines in this block in original file.
OriginalLinesCount *int `json:"originalLinesCount,omitempty"`
}
// Type of change for a line diff block
type LineDiffBlockChangeType string
type lineDiffBlockChangeTypeValuesType struct {
None LineDiffBlockChangeType
Add LineDiffBlockChangeType
Delete LineDiffBlockChangeType
Edit LineDiffBlockChangeType
}
var LineDiffBlockChangeTypeValues = lineDiffBlockChangeTypeValuesType{
// No change - both the blocks are identical
None: "none",
// Lines were added to the block in the modified file
Add: "add",
// Lines were deleted from the block in the original file
Delete: "delete",
// Lines were modified
Edit: "edit",
}
// Real time event (SignalR) for a merge completed on a pull request
type MergeCompletedEvent struct {
// The id of this event. Can be used to track send/receive state between client and server.
EventId *uuid.UUID `json:"eventId,omitempty"`
// The id of the pull request this event was generated for.
PullRequestId *int `json:"pullRequestId,omitempty"`
}
// Real time event (SignalR) for a policy evaluation update on a pull request
type PolicyEvaluationUpdatedEvent struct {
// The id of this event. Can be used to track send/receive state between client and server.
EventId *uuid.UUID `json:"eventId,omitempty"`
// The id of the pull request this event was generated for.
PullRequestId *int `json:"pullRequestId,omitempty"`
}
// The status of a pull request merge.
type PullRequestAsyncStatus string
type pullRequestAsyncStatusValuesType struct {
NotSet PullRequestAsyncStatus
Queued PullRequestAsyncStatus
Conflicts PullRequestAsyncStatus
Succeeded PullRequestAsyncStatus
RejectedByPolicy PullRequestAsyncStatus
Failure PullRequestAsyncStatus
}
var PullRequestAsyncStatusValues = pullRequestAsyncStatusValuesType{
// Status is not set. Default state.
NotSet: "notSet",
// Pull request merge is queued.
Queued: "queued",
// Pull request merge failed due to conflicts.
Conflicts: "conflicts",
// Pull request merge succeeded.
Succeeded: "succeeded",
// Pull request merge rejected by policy.
RejectedByPolicy: "rejectedByPolicy",
// Pull request merge failed.
Failure: "failure",
}
// Real time event (SignalR) for pull request creation
type PullRequestCreatedEvent struct {
// The id of this event. Can be used to track send/receive state between client and server.
EventId *uuid.UUID `json:"eventId,omitempty"`
// The id of the pull request this event was generated for.
PullRequestId *int `json:"pullRequestId,omitempty"`
}
// The specific type of a pull request merge failure.
type PullRequestMergeFailureType string
type pullRequestMergeFailureTypeValuesType struct {
None PullRequestMergeFailureType
Unknown PullRequestMergeFailureType
CaseSensitive PullRequestMergeFailureType
ObjectTooLarge PullRequestMergeFailureType
}
var PullRequestMergeFailureTypeValues = pullRequestMergeFailureTypeValuesType{
// Type is not set. Default type.
None: "none",
// Pull request merge failure type unknown.
Unknown: "unknown",
// Pull request merge failed due to case mismatch.
CaseSensitive: "caseSensitive",
// Pull request merge failed due to an object being too large.
ObjectTooLarge: "objectTooLarge",
}
// Status of a pull request.
type PullRequestStatus string
type pullRequestStatusValuesType struct {
NotSet PullRequestStatus
Active PullRequestStatus
Abandoned PullRequestStatus
Completed PullRequestStatus
All PullRequestStatus
}
var PullRequestStatusValues = pullRequestStatusValuesType{
// Status not set. Default state.
NotSet: "notSet",
// Pull request is active.
Active: "active",
// Pull request is abandoned.
Abandoned: "abandoned",
// Pull request is completed.
Completed: "completed",
// Used in pull request search criteria to include all statuses.
All: "all",
}
// Initial config contract sent to extensions creating tabs on the pull request page
type PullRequestTabExtensionConfig struct {
PullRequestId *int `json:"pullRequestId,omitempty"`
RepositoryId *string `json:"repositoryId,omitempty"`
}
// Base contract for a real time pull request event (SignalR)
type RealTimePullRequestEvent struct {
// The id of this event. Can be used to track send/receive state between client and server.
EventId *uuid.UUID `json:"eventId,omitempty"`
// The id of the pull request this event was generated for.
PullRequestId *int `json:"pullRequestId,omitempty"`
}
type RefFavoriteType string
type refFavoriteTypeValuesType struct {
Invalid RefFavoriteType
Folder RefFavoriteType
Ref RefFavoriteType
}
var RefFavoriteTypeValues = refFavoriteTypeValuesType{
Invalid: "invalid",
Folder: "folder",
Ref: "ref",
}
// Real time event (SignalR) for when the target branch of a pull request is changed
type RetargetEvent struct {
// The id of this event. Can be used to track send/receive state between client and server.
EventId *uuid.UUID `json:"eventId,omitempty"`
// The id of the pull request this event was generated for.
PullRequestId *int `json:"pullRequestId,omitempty"`
}
// Real time event (SignalR) for an update to reviewers on a pull request
type ReviewersUpdatedEvent struct {
// The id of this event. Can be used to track send/receive state between client and server.
EventId *uuid.UUID `json:"eventId,omitempty"`
// The id of the pull request this event was generated for.
PullRequestId *int `json:"pullRequestId,omitempty"`
}
// Real time event (SignalR) for reviewer votes being reset on a pull request
type ReviewersVotesResetEvent struct {
// The id of this event. Can be used to track send/receive state between client and server.
EventId *uuid.UUID `json:"eventId,omitempty"`
// The id of the pull request this event was generated for.
PullRequestId *int `json:"pullRequestId,omitempty"`
}
// Real time event (SignalR) for a reviewer vote update on a pull request
type ReviewerVoteUpdatedEvent struct {
// The id of this event. Can be used to track send/receive state between client and server.
EventId *uuid.UUID `json:"eventId,omitempty"`
// The id of the pull request this event was generated for.
PullRequestId *int `json:"pullRequestId,omitempty"`
}
// Context used while sharing a pull request.
type ShareNotificationContext struct {
// Optional user note or message.
Message *string `json:"message,omitempty"`
// Identities of users who will receive a share notification.
Receivers *[]webapi.IdentityRef `json:"receivers,omitempty"`
}
type SourceToTargetRef struct {
// The source ref to copy. For example, refs/heads/master.
SourceRef *string `json:"sourceRef,omitempty"`
// The target ref to update. For example, refs/heads/master.
TargetRef *string `json:"targetRef,omitempty"`
}
// Real time event (SignalR) for an added status on a pull request
type StatusAddedEvent struct {
// The id of this event. Can be used to track send/receive state between client and server.
EventId *uuid.UUID `json:"eventId,omitempty"`
// The id of the pull request this event was generated for.
PullRequestId *int `json:"pullRequestId,omitempty"`
}
// Real time event (SignalR) for deleted statuses on a pull request
type StatusesDeletedEvent struct {
// The id of this event. Can be used to track send/receive state between client and server.
EventId *uuid.UUID `json:"eventId,omitempty"`
// The id of the pull request this event was generated for.
PullRequestId *int `json:"pullRequestId,omitempty"`
}
// Real time event (SignalR) for a status update on a pull request
type StatusUpdatedEvent struct {
// The id of this event. Can be used to track send/receive state between client and server.
EventId *uuid.UUID `json:"eventId,omitempty"`
// The id of the pull request this event was generated for.
PullRequestId *int `json:"pullRequestId,omitempty"`
}
// Represents a Supported IDE entity.
type SupportedIde struct {
// The download URL for the IDE.
DownloadUrl *string `json:"downloadUrl,omitempty"`
// The type of the IDE.
IdeType *SupportedIdeType `json:"ideType,omitempty"`
// The name of the IDE.
Name *string `json:"name,omitempty"`
// The URL to open the protocol handler for the IDE.
ProtocolHandlerUrl *string `json:"protocolHandlerUrl,omitempty"`
// A list of SupportedPlatforms.
SupportedPlatforms *[]string `json:"supportedPlatforms,omitempty"`
}
// Enumeration that represents the types of IDEs supported.
type SupportedIdeType string
type supportedIdeTypeValuesType struct {
Unknown SupportedIdeType
AndroidStudio SupportedIdeType
AppCode SupportedIdeType
CLion SupportedIdeType
DataGrip SupportedIdeType
Eclipse SupportedIdeType
IntelliJ SupportedIdeType
Mps SupportedIdeType
PhpStorm SupportedIdeType
PyCharm SupportedIdeType
RubyMine SupportedIdeType
Tower SupportedIdeType
VisualStudio SupportedIdeType
VsCode SupportedIdeType
WebStorm SupportedIdeType
}
var SupportedIdeTypeValues = supportedIdeTypeValuesType{
Unknown: "unknown",
AndroidStudio: "androidStudio",
AppCode: "appCode",
CLion: "cLion",
DataGrip: "dataGrip",
Eclipse: "eclipse",
IntelliJ: "intelliJ",
Mps: "mps",
PhpStorm: "phpStorm",
PyCharm: "pyCharm",
RubyMine: "rubyMine",
Tower: "tower",
VisualStudio: "visualStudio",
VsCode: "vsCode",
WebStorm: "webStorm",
}
// Class representing a branch object.
type TfvcBranch struct {
// Path for the branch.
Path *string `json:"path,omitempty"`
// A collection of REST reference links.
Links interface{} `json:"_links,omitempty"`
// Creation date of the branch.
CreatedDate *azuredevops.Time `json:"createdDate,omitempty"`
// Branch description.
Description *string `json:"description,omitempty"`
// Is the branch deleted?
IsDeleted *bool `json:"isDeleted,omitempty"`
// Alias or display name of user
Owner *webapi.IdentityRef `json:"owner,omitempty"`
// URL to retrieve the item.
Url *string `json:"url,omitempty"`
// List of children for the branch.
Children *[]TfvcBranch `json:"children,omitempty"`
// List of branch mappings.
Mappings *[]TfvcBranchMapping `json:"mappings,omitempty"`
// Path of the branch's parent.
Parent *TfvcShallowBranchRef `json:"parent,omitempty"`
// List of paths of the related branches.
RelatedBranches *[]TfvcShallowBranchRef `json:"relatedBranches,omitempty"`
}
// A branch mapping.
type TfvcBranchMapping struct {
// Depth of the branch.
Depth *string `json:"depth,omitempty"`
// Server item for the branch.
ServerItem *string `json:"serverItem,omitempty"`
// Type of the branch.
Type *string `json:"type,omitempty"`
}
// Metadata for a branchref.
type TfvcBranchRef struct {
// Path for the branch.
Path *string `json:"path,omitempty"`
// A collection of REST reference links.
Links interface{} `json:"_links,omitempty"`
// Creation date of the branch.
CreatedDate *azuredevops.Time `json:"createdDate,omitempty"`
// Branch description.
Description *string `json:"description,omitempty"`
// Is the branch deleted?
IsDeleted *bool `json:"isDeleted,omitempty"`
// Alias or display name of user
Owner *webapi.IdentityRef `json:"owner,omitempty"`
// URL to retrieve the item.
Url *string `json:"url,omitempty"`
}
// A change.
type TfvcChange struct {
// The type of change that was made to the item.
ChangeType *VersionControlChangeType `json:"changeType,omitempty"`
// Current version.
Item interface{} `json:"item,omitempty"`
// Content of the item after the change.
NewContent *ItemContent `json:"newContent,omitempty"`
// Path of the item on the server.
SourceServerItem *string `json:"sourceServerItem,omitempty"`
// URL to retrieve the item.
Url *string `json:"url,omitempty"`
// List of merge sources in case of rename or branch creation.
MergeSources *[]TfvcMergeSource `json:"mergeSources,omitempty"`
// Version at which a (shelved) change was pended against
PendingVersion *int `json:"pendingVersion,omitempty"`
}
// A collection of changes.
type TfvcChangeset struct {
// A collection of REST reference links.
Links interface{} `json:"_links,omitempty"`
// Alias or display name of user.
Author *webapi.IdentityRef `json:"author,omitempty"`
// Changeset Id.
ChangesetId *int `json:"changesetId,omitempty"`
// Alias or display name of user.
CheckedInBy *webapi.IdentityRef `json:"checkedInBy,omitempty"`
// Comment for the changeset.
Comment *string `json:"comment,omitempty"`
// Was the Comment result truncated?
CommentTruncated *bool `json:"commentTruncated,omitempty"`
// Creation date of the changeset.
CreatedDate *azuredevops.Time `json:"createdDate,omitempty"`
// URL to retrieve the item.
Url *string `json:"url,omitempty"`
// Changeset Account Id also known as Organization Id.
AccountId *uuid.UUID `json:"accountId,omitempty"`
// List of associated changes.
Changes *[]TfvcChange `json:"changes,omitempty"`
// List of Checkin Notes for the changeset.
CheckinNotes *[]CheckinNote `json:"checkinNotes,omitempty"`
// Changeset collection Id.
CollectionId *uuid.UUID `json:"collectionId,omitempty"`
// True if more changes are available.
HasMoreChanges *bool `json:"hasMoreChanges,omitempty"`
// Policy Override for the changeset.
PolicyOverride *TfvcPolicyOverrideInfo `json:"policyOverride,omitempty"`
// Team Project Ids for the changeset.
TeamProjectIds *[]uuid.UUID `json:"teamProjectIds,omitempty"`
// List of work items associated with the changeset.
WorkItems *[]AssociatedWorkItem `json:"workItems,omitempty"`
}
// Metadata for a changeset.
type TfvcChangesetRef struct {
// A collection of REST reference links.
Links interface{} `json:"_links,omitempty"`
// Alias or display name of user.
Author *webapi.IdentityRef `json:"author,omitempty"`
// Changeset Id.
ChangesetId *int `json:"changesetId,omitempty"`
// Alias or display name of user.
CheckedInBy *webapi.IdentityRef `json:"checkedInBy,omitempty"`
// Comment for the changeset.
Comment *string `json:"comment,omitempty"`
// Was the Comment result truncated?
CommentTruncated *bool `json:"commentTruncated,omitempty"`
// Creation date of the changeset.
CreatedDate *azuredevops.Time `json:"createdDate,omitempty"`
// URL to retrieve the item.
Url *string `json:"url,omitempty"`
}
// Criteria used in a search for change lists.
type TfvcChangesetSearchCriteria struct {
// Alias or display name of user who made the changes.
Author *string `json:"author,omitempty"`
// Whether or not to follow renames for the given item being queried.
FollowRenames *bool `json:"followRenames,omitempty"`
// If provided, only include changesets created after this date (string).
FromDate *string `json:"fromDate,omitempty"`
// If provided, only include changesets after this changesetID.
FromId *int `json:"fromId,omitempty"`
// Whether to include the _links field on the shallow references.
IncludeLinks *bool `json:"includeLinks,omitempty"`
// Path of item to search under.
ItemPath *string `json:"itemPath,omitempty"`
Mappings *[]TfvcMappingFilter `json:"mappings,omitempty"`
// If provided, only include changesets created before this date (string).
ToDate *string `json:"toDate,omitempty"`
// If provided, a version descriptor for the latest change list to include.
ToId *int `json:"toId,omitempty"`
}
// Request body for Get batched changesets.
type TfvcChangesetsRequestData struct {
// List of changeset Ids.
ChangesetIds *[]int `json:"changesetIds,omitempty"`
// Max length of the comment.
CommentLength *int `json:"commentLength,omitempty"`
// Whether to include the _links field on the shallow references
IncludeLinks *bool `json:"includeLinks,omitempty"`
}
type TfvcCheckinEventData struct {
Changeset *TfvcChangeset `json:"changeset,omitempty"`
Project *core.TeamProjectReference `json:"project,omitempty"`
}
type TfvcHistoryEntry struct {
// The Change list (changeset/commit/shelveset) for this point in history
ChangeList interface{} `json:"changeList,omitempty"`
// The change made to the item from this change list (only relevant for File history, not folders)
ItemChangeType *VersionControlChangeType `json:"itemChangeType,omitempty"`
// The path of the item at this point in history (only relevant for File history, not folders)
ServerItem *string `json:"serverItem,omitempty"`
// The encoding of the item at this point in history (only relevant for File history, not folders)
Encoding *int `json:"encoding,omitempty"`
// The file id of the item at this point in history (only relevant for File history, not folders)
FileId *int `json:"fileId,omitempty"`
}
// Metadata for an item.
type TfvcItem struct {
Links interface{} `json:"_links,omitempty"`
Content *string `json:"content,omitempty"`
ContentMetadata *FileContentMetadata `json:"contentMetadata,omitempty"`
IsFolder *bool `json:"isFolder,omitempty"`
IsSymLink *bool `json:"isSymLink,omitempty"`
Path *string `json:"path,omitempty"`
Url *string `json:"url,omitempty"`
// Item changed datetime.
ChangeDate *azuredevops.Time `json:"changeDate,omitempty"`
// Greater than 0 if item is deleted.
DeletionId *int `json:"deletionId,omitempty"`
// File encoding from database, -1 represents binary.
Encoding *int `json:"encoding,omitempty"`
// MD5 hash as a base 64 string, applies to files only.
HashValue *string `json:"hashValue,omitempty"`
// True if item is a branch.
IsBranch *bool `json:"isBranch,omitempty"`
// True if there is a change pending.
IsPendingChange *bool `json:"isPendingChange,omitempty"`
// The size of the file, if applicable.
Size *uint64 `json:"size,omitempty"`
// Changeset version Id.
Version *int `json:"version,omitempty"`
}
// Item path and Version descriptor properties
type TfvcItemDescriptor struct {
// Item path.
Path *string `json:"path,omitempty"`
// Defaults to OneLevel.
RecursionLevel *VersionControlRecursionType `json:"recursionLevel,omitempty"`
// Specify the desired version, can be null or empty string only if VersionType is latest or tip.
Version *string `json:"version,omitempty"`
// Defaults to None.
VersionOption *TfvcVersionOption `json:"versionOption,omitempty"`
// Defaults to Latest.
VersionType *TfvcVersionType `json:"versionType,omitempty"`
}
// Metadata for an item including the previous hash value for files.
type TfvcItemPreviousHash struct {
Links interface{} `json:"_links,omitempty"`
Content *string `json:"content,omitempty"`
ContentMetadata *FileContentMetadata `json:"contentMetadata,omitempty"`
IsFolder *bool `json:"isFolder,omitempty"`
IsSymLink *bool `json:"isSymLink,omitempty"`
Path *string `json:"path,omitempty"`
Url *string `json:"url,omitempty"`
// Item changed datetime.
ChangeDate *azuredevops.Time `json:"changeDate,omitempty"`
// Greater than 0 if item is deleted.
DeletionId *int `json:"deletionId,omitempty"`
// File encoding from database, -1 represents binary.
Encoding *int `json:"encoding,omitempty"`
// MD5 hash as a base 64 string, applies to files only.
HashValue *string `json:"hashValue,omitempty"`
// True if item is a branch.
IsBranch *bool `json:"isBranch,omitempty"`
// True if there is a change pending.
IsPendingChange *bool `json:"isPendingChange,omitempty"`
// The size of the file, if applicable.
Size *uint64 `json:"size,omitempty"`
// Changeset version Id.
Version *int `json:"version,omitempty"`
// MD5 hash as a base 64 string, applies to files only.
PreviousHashValue *string `json:"previousHashValue,omitempty"`
}
// Request body used by Get Items Batch
type TfvcItemRequestData struct {
// If true, include metadata about the file type
IncludeContentMetadata *bool `json:"includeContentMetadata,omitempty"`
// Whether to include the _links field on the shallow references
IncludeLinks *bool `json:"includeLinks,omitempty"`
ItemDescriptors *[]TfvcItemDescriptor `json:"itemDescriptors,omitempty"`
}
// Metadata for a label.
type TfvcLabel struct {
// Collection of reference links.
Links interface{} `json:"_links,omitempty"`
// Label description.
Description *string `json:"description,omitempty"`
// Label Id.
Id *int `json:"id,omitempty"`
// Label scope.
LabelScope *string `json:"labelScope,omitempty"`
// Last modified datetime for the label.
ModifiedDate *azuredevops.Time `json:"modifiedDate,omitempty"`
// Label name.
Name *string `json:"name,omitempty"`
// Label owner.
Owner *webapi.IdentityRef `json:"owner,omitempty"`
// Label Url.
Url *string `json:"url,omitempty"`
// List of items.
Items *[]TfvcItem `json:"items,omitempty"`
}
// Metadata for a Label.
type TfvcLabelRef struct {
// Collection of reference links.
Links interface{} `json:"_links,omitempty"`
// Label description.
Description *string `json:"description,omitempty"`
// Label Id.
Id *int `json:"id,omitempty"`
// Label scope.
LabelScope *string `json:"labelScope,omitempty"`
// Last modified datetime for the label.
ModifiedDate *azuredevops.Time `json:"modifiedDate,omitempty"`
// Label name.
Name *string `json:"name,omitempty"`
// Label owner.
Owner *webapi.IdentityRef `json:"owner,omitempty"`
// Label Url.
Url *string `json:"url,omitempty"`
}
type TfvcLabelRequestData struct {
// Whether to include the _links field on the shallow references
IncludeLinks *bool `json:"includeLinks,omitempty"`
ItemLabelFilter *string `json:"itemLabelFilter,omitempty"`
LabelScope *string `json:"labelScope,omitempty"`
MaxItemCount *int `json:"maxItemCount,omitempty"`
Name *string `json:"name,omitempty"`
Owner *string `json:"owner,omitempty"`
}
// MappingFilter can be used to include or exclude specific paths.
type TfvcMappingFilter struct {
// True if ServerPath should be excluded.
Exclude *bool `json:"exclude,omitempty"`
// Path to be included or excluded.
ServerPath *string `json:"serverPath,omitempty"`
}
type TfvcMergeSource struct {
// Indicates if this a rename source. If false, it is a merge source.
IsRename *bool `json:"isRename,omitempty"`
// The server item of the merge source.
ServerItem *string `json:"serverItem,omitempty"`
// Start of the version range.
VersionFrom *int `json:"versionFrom,omitempty"`
// End of the version range.
VersionTo *int `json:"versionTo,omitempty"`
}
// Policy failure information.
type TfvcPolicyFailureInfo struct {
// Policy failure message.
Message *string `json:"message,omitempty"`
// Name of the policy that failed.
PolicyName *string `json:"policyName,omitempty"`
}
// Information on the policy override.
type TfvcPolicyOverrideInfo struct {
// Overidden policy comment.
Comment *string `json:"comment,omitempty"`
// Information on the failed policy that was overridden.
PolicyFailures *[]TfvcPolicyFailureInfo `json:"policyFailures,omitempty"`
}
// This is the shallow branchref class.
type TfvcShallowBranchRef struct {
// Path for the branch.
Path *string `json:"path,omitempty"`
}
// Metadata for a shelveset.
type TfvcShelveset struct {
// List of reference links for the shelveset.
Links interface{} `json:"_links,omitempty"`
// Shelveset comment.
Comment *string `json:"comment,omitempty"`
// Shelveset comment truncated as applicable.
CommentTruncated *bool `json:"commentTruncated,omitempty"`
// Shelveset create date.
CreatedDate *azuredevops.Time `json:"createdDate,omitempty"`
// Shelveset Id.
Id *string `json:"id,omitempty"`
// Shelveset name.
Name *string `json:"name,omitempty"`
// Shelveset Owner.
Owner *webapi.IdentityRef `json:"owner,omitempty"`
// Shelveset Url.
Url *string `json:"url,omitempty"`
// List of changes.
Changes *[]TfvcChange `json:"changes,omitempty"`
// List of checkin notes.
Notes *[]CheckinNote `json:"notes,omitempty"`
// Policy override information if applicable.
PolicyOverride *TfvcPolicyOverrideInfo `json:"policyOverride,omitempty"`
// List of associated workitems.
WorkItems *[]AssociatedWorkItem `json:"workItems,omitempty"`
}
// Metadata for a shallow shelveset.
type TfvcShelvesetRef struct {
// List of reference links for the shelveset.
Links interface{} `json:"_links,omitempty"`
// Shelveset comment.
Comment *string `json:"comment,omitempty"`
// Shelveset comment truncated as applicable.
CommentTruncated *bool `json:"commentTruncated,omitempty"`
// Shelveset create date.
CreatedDate *azuredevops.Time `json:"createdDate,omitempty"`
// Shelveset Id.
Id *string `json:"id,omitempty"`
// Shelveset name.
Name *string `json:"name,omitempty"`
// Shelveset Owner.
Owner *webapi.IdentityRef `json:"owner,omitempty"`
// Shelveset Url.
Url *string `json:"url,omitempty"`
}
type TfvcShelvesetRequestData struct {
// Whether to include policyOverride and notes Only applies when requesting a single deep shelveset
IncludeDetails *bool `json:"includeDetails,omitempty"`
// Whether to include the _links field on the shallow references. Does not apply when requesting a single deep shelveset object. Links will always be included in the deep shelveset.
IncludeLinks *bool `json:"includeLinks,omitempty"`
// Whether to include workItems
IncludeWorkItems *bool `json:"includeWorkItems,omitempty"`
// Max number of changes to include
MaxChangeCount *int `json:"maxChangeCount,omitempty"`
// Max length of comment
MaxCommentLength *int `json:"maxCommentLength,omitempty"`
// Shelveset name
Name *string `json:"name,omitempty"`
// Owner's ID. Could be a name or a guid.
Owner *string `json:"owner,omitempty"`
}
type TfvcStatistics struct {
// Id of the last changeset the stats are based on.
ChangesetId *int `json:"changesetId,omitempty"`
// Count of files at the requested scope.
FileCountTotal *uint64 `json:"fileCountTotal,omitempty"`
}
// Version descriptor properties.
type TfvcVersionDescriptor struct {
// Version object.
Version *string `json:"version,omitempty"`
VersionOption *TfvcVersionOption `json:"versionOption,omitempty"`
VersionType *TfvcVersionType `json:"versionType,omitempty"`
}
// Options for Version handling.
type TfvcVersionOption string
type tfvcVersionOptionValuesType struct {
None TfvcVersionOption
Previous TfvcVersionOption
UseRename TfvcVersionOption
}
var TfvcVersionOptionValues = tfvcVersionOptionValuesType{
// None.
None: "none",
// Return the previous version.
Previous: "previous",
// Only usuable with versiontype MergeSource and integer versions, uses RenameSource identifier instead of Merge identifier.
UseRename: "useRename",
}
// Type of Version object
type TfvcVersionType string
type tfvcVersionTypeValuesType struct {
None TfvcVersionType
Changeset TfvcVersionType
Shelveset TfvcVersionType
Change TfvcVersionType
Date TfvcVersionType
Latest TfvcVersionType
Tip TfvcVersionType
MergeSource TfvcVersionType
}
var TfvcVersionTypeValues = tfvcVersionTypeValuesType{
// Version is treated as a ChangesetId.
None: "none",
// Version is treated as a ChangesetId.
Changeset: "changeset",
// Version is treated as a Shelveset name and owner.
Shelveset: "shelveset",
// Version is treated as a Change.
Change: "change",
// Version is treated as a Date.
Date: "date",
// If Version is defined the Latest of that Version will be used, if no version is defined the latest ChangesetId will be used.
Latest: "latest",
// Version will be treated as a Tip, if no version is defined latest will be used.
Tip: "tip",
// Version will be treated as a MergeSource.
MergeSource: "mergeSource",
}
// Real time event (SignalR) for a title/description update on a pull request
type TitleDescriptionUpdatedEvent struct {
// The id of this event. Can be used to track send/receive state between client and server.
EventId *uuid.UUID `json:"eventId,omitempty"`
// The id of the pull request this event was generated for.
PullRequestId *int `json:"pullRequestId,omitempty"`
}
type UpdateRefsRequest struct {
RefUpdateRequests *[]GitRefUpdate `json:"refUpdateRequests,omitempty"`
UpdateMode *GitRefUpdateMode `json:"updateMode,omitempty"`
}
// [Flags]
type VersionControlChangeType string
type versionControlChangeTypeValuesType struct {
None VersionControlChangeType
Add VersionControlChangeType
Edit VersionControlChangeType
Encoding VersionControlChangeType
Rename VersionControlChangeType
Delete VersionControlChangeType
Undelete VersionControlChangeType
Branch VersionControlChangeType
Merge VersionControlChangeType
Lock VersionControlChangeType
Rollback VersionControlChangeType
SourceRename VersionControlChangeType
TargetRename VersionControlChangeType
Property VersionControlChangeType
All VersionControlChangeType
}
var VersionControlChangeTypeValues = versionControlChangeTypeValuesType{
None: "none",
Add: "add",
Edit: "edit",
Encoding: "encoding",
Rename: "rename",
Delete: "delete",
Undelete: "undelete",
Branch: "branch",
Merge: "merge",
Lock: "lock",
Rollback: "rollback",
SourceRename: "sourceRename",
TargetRename: "targetRename",
Property: "property",
All: "all",
}
type VersionControlProjectInfo struct {
DefaultSourceControlType *core.SourceControlTypes `json:"defaultSourceControlType,omitempty"`
Project *core.TeamProjectReference `json:"project,omitempty"`
SupportsGit *bool `json:"supportsGit,omitempty"`
SupportsTFVC *bool `json:"supportsTFVC,omitempty"`
}
type VersionControlRecursionType string
type versionControlRecursionTypeValuesType struct {
None VersionControlRecursionType
OneLevel VersionControlRecursionType
OneLevelPlusNestedEmptyFolders VersionControlRecursionType
Full VersionControlRecursionType
}
var VersionControlRecursionTypeValues = versionControlRecursionTypeValuesType{
// Only return the specified item.
None: "none",
// Return the specified item and its direct children.
OneLevel: "oneLevel",
// Return the specified item and its direct children, as well as recursive chains of nested child folders that only contain a single folder.
OneLevelPlusNestedEmptyFolders: "oneLevelPlusNestedEmptyFolders",
// Return specified item and all descendants
Full: "full",
}
|