1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
2089
2090
2091
2092
2093
2094
2095
2096
2097
2098
2099
2100
2101
2102
2103
2104
2105
2106
2107
2108
2109
2110
2111
2112
2113
2114
2115
2116
2117
2118
2119
2120
2121
2122
2123
2124
2125
2126
2127
2128
2129
2130
2131
2132
2133
2134
2135
2136
2137
2138
2139
2140
2141
2142
2143
2144
2145
2146
2147
2148
2149
2150
2151
2152
2153
2154
2155
2156
2157
2158
2159
2160
2161
2162
2163
2164
2165
2166
2167
2168
2169
2170
2171
2172
2173
2174
2175
2176
2177
2178
2179
2180
2181
2182
2183
2184
2185
2186
2187
2188
2189
2190
2191
2192
2193
2194
2195
2196
2197
2198
2199
2200
2201
2202
2203
2204
2205
2206
2207
2208
2209
2210
2211
2212
2213
2214
2215
2216
2217
2218
2219
2220
2221
2222
2223
2224
2225
2226
2227
2228
2229
2230
2231
2232
2233
2234
2235
2236
2237
2238
2239
2240
2241
2242
2243
2244
2245
2246
2247
2248
2249
2250
2251
2252
2253
2254
2255
2256
2257
2258
2259
2260
2261
2262
2263
2264
2265
2266
2267
2268
2269
2270
2271
2272
2273
2274
2275
2276
2277
2278
2279
2280
2281
2282
2283
2284
2285
2286
2287
2288
2289
2290
2291
2292
2293
2294
2295
2296
2297
2298
2299
2300
2301
2302
2303
2304
2305
2306
2307
2308
2309
2310
2311
2312
2313
2314
2315
2316
2317
2318
2319
2320
2321
2322
2323
2324
2325
2326
2327
2328
2329
2330
2331
2332
2333
2334
2335
2336
2337
2338
2339
2340
2341
2342
2343
2344
2345
2346
2347
2348
2349
2350
2351
2352
2353
2354
2355
2356
2357
2358
2359
2360
2361
2362
2363
2364
2365
2366
2367
2368
2369
2370
2371
2372
2373
2374
2375
2376
2377
2378
2379
2380
2381
2382
2383
2384
2385
2386
2387
2388
2389
2390
2391
2392
2393
2394
2395
2396
2397
2398
2399
2400
2401
2402
2403
2404
2405
2406
2407
2408
2409
2410
2411
2412
2413
2414
2415
2416
2417
2418
2419
2420
2421
2422
2423
2424
2425
2426
2427
2428
2429
2430
2431
2432
2433
2434
2435
2436
2437
2438
2439
2440
2441
2442
2443
2444
2445
2446
2447
2448
2449
2450
2451
2452
2453
2454
2455
2456
2457
2458
2459
2460
2461
2462
2463
2464
2465
2466
2467
2468
2469
2470
2471
2472
2473
2474
2475
2476
2477
2478
2479
2480
2481
2482
2483
2484
2485
2486
2487
2488
2489
2490
2491
2492
2493
2494
2495
2496
2497
2498
2499
2500
2501
2502
2503
2504
2505
2506
2507
2508
2509
2510
2511
2512
2513
2514
2515
2516
2517
2518
2519
2520
2521
2522
2523
2524
2525
2526
2527
2528
2529
2530
2531
2532
2533
2534
2535
2536
2537
2538
2539
2540
2541
2542
2543
2544
2545
2546
2547
2548
2549
2550
2551
2552
2553
2554
2555
2556
2557
2558
2559
2560
2561
2562
2563
2564
2565
2566
2567
2568
2569
2570
2571
2572
2573
2574
2575
2576
2577
2578
2579
2580
2581
2582
2583
2584
2585
2586
2587
2588
2589
2590
2591
2592
2593
2594
2595
2596
2597
2598
2599
2600
2601
2602
2603
2604
2605
2606
2607
2608
2609
2610
2611
2612
2613
2614
2615
2616
2617
2618
2619
2620
2621
2622
2623
2624
2625
2626
2627
2628
2629
2630
2631
2632
2633
2634
2635
2636
2637
2638
2639
2640
2641
2642
2643
2644
2645
2646
2647
2648
2649
2650
2651
2652
2653
2654
2655
2656
2657
2658
2659
2660
2661
2662
2663
2664
2665
2666
2667
2668
2669
2670
2671
2672
2673
2674
2675
2676
2677
2678
2679
2680
2681
2682
2683
2684
2685
2686
2687
2688
2689
2690
2691
2692
2693
2694
2695
2696
2697
2698
2699
2700
2701
2702
2703
2704
2705
2706
2707
2708
2709
2710
2711
2712
2713
2714
2715
2716
2717
2718
2719
2720
2721
2722
2723
2724
2725
2726
2727
2728
2729
2730
2731
2732
2733
2734
2735
2736
2737
2738
2739
2740
2741
2742
2743
2744
2745
2746
2747
2748
2749
2750
2751
2752
2753
2754
2755
2756
2757
2758
2759
2760
2761
2762
2763
2764
2765
2766
2767
2768
2769
2770
2771
2772
2773
2774
2775
2776
2777
2778
2779
2780
2781
2782
2783
2784
2785
2786
2787
2788
2789
2790
2791
2792
2793
2794
2795
2796
2797
2798
2799
2800
2801
2802
2803
2804
2805
2806
2807
2808
2809
2810
2811
2812
2813
2814
2815
2816
2817
2818
2819
2820
2821
2822
2823
2824
2825
2826
2827
2828
2829
2830
2831
2832
2833
2834
2835
2836
2837
2838
2839
2840
2841
2842
2843
2844
2845
2846
2847
2848
2849
2850
2851
2852
2853
2854
2855
2856
2857
2858
2859
2860
2861
2862
2863
2864
2865
2866
2867
2868
2869
2870
2871
2872
2873
2874
2875
2876
2877
2878
2879
2880
2881
2882
2883
2884
2885
2886
2887
2888
2889
2890
2891
2892
2893
2894
2895
2896
2897
2898
2899
2900
2901
2902
2903
2904
2905
2906
2907
2908
2909
2910
2911
2912
2913
2914
2915
2916
2917
2918
2919
2920
2921
2922
2923
2924
2925
2926
2927
2928
2929
2930
2931
2932
2933
2934
2935
2936
2937
2938
2939
2940
2941
2942
2943
2944
2945
2946
2947
2948
2949
2950
2951
2952
2953
2954
2955
2956
2957
2958
2959
2960
2961
2962
2963
2964
2965
2966
2967
2968
2969
2970
2971
2972
2973
2974
2975
2976
2977
2978
2979
2980
2981
2982
2983
2984
2985
2986
2987
2988
2989
2990
2991
2992
2993
2994
2995
2996
2997
2998
2999
3000
3001
3002
3003
3004
3005
3006
3007
3008
3009
3010
3011
3012
3013
3014
3015
3016
3017
3018
3019
3020
3021
3022
3023
3024
3025
3026
3027
3028
3029
3030
3031
3032
3033
3034
3035
3036
3037
3038
3039
3040
3041
3042
3043
3044
3045
3046
3047
3048
3049
3050
3051
3052
3053
3054
3055
3056
3057
3058
3059
3060
3061
3062
3063
3064
3065
3066
3067
3068
3069
3070
3071
3072
3073
3074
3075
3076
3077
3078
3079
3080
3081
3082
3083
3084
3085
3086
3087
3088
3089
3090
3091
3092
3093
3094
3095
3096
3097
3098
3099
3100
3101
3102
3103
3104
3105
3106
3107
3108
3109
3110
3111
3112
3113
3114
3115
3116
3117
3118
3119
3120
3121
3122
3123
3124
3125
3126
3127
3128
3129
3130
3131
3132
3133
3134
3135
3136
3137
3138
3139
3140
3141
3142
3143
3144
3145
3146
3147
3148
3149
3150
3151
3152
3153
3154
3155
3156
3157
3158
3159
3160
3161
3162
3163
3164
3165
3166
3167
3168
3169
3170
3171
3172
3173
3174
3175
3176
3177
3178
3179
3180
3181
3182
3183
3184
3185
3186
3187
3188
3189
3190
3191
3192
3193
3194
3195
3196
3197
3198
3199
3200
3201
3202
3203
3204
3205
3206
3207
3208
3209
3210
3211
3212
3213
3214
3215
3216
3217
3218
3219
3220
3221
3222
3223
3224
3225
3226
3227
3228
3229
3230
3231
3232
3233
3234
3235
3236
3237
3238
3239
3240
3241
3242
3243
3244
3245
3246
3247
3248
3249
3250
3251
3252
3253
3254
3255
3256
3257
3258
3259
3260
3261
3262
3263
3264
3265
3266
3267
3268
3269
3270
3271
3272
3273
3274
3275
3276
3277
3278
3279
3280
3281
3282
3283
3284
3285
3286
3287
3288
3289
3290
3291
3292
3293
3294
3295
3296
3297
3298
3299
3300
3301
3302
3303
3304
3305
3306
3307
3308
3309
3310
3311
3312
3313
3314
3315
3316
3317
3318
3319
3320
3321
3322
3323
3324
3325
3326
3327
3328
3329
3330
3331
3332
3333
3334
3335
3336
3337
3338
3339
3340
3341
3342
3343
3344
3345
3346
3347
3348
3349
3350
3351
3352
3353
3354
3355
3356
3357
3358
3359
3360
3361
3362
3363
3364
3365
3366
3367
3368
3369
3370
3371
3372
3373
3374
3375
3376
3377
3378
3379
3380
3381
3382
3383
3384
3385
3386
3387
3388
3389
3390
3391
3392
3393
3394
3395
3396
3397
3398
3399
3400
3401
3402
3403
3404
3405
3406
3407
3408
3409
3410
3411
3412
3413
3414
3415
3416
3417
3418
3419
3420
3421
3422
3423
3424
3425
3426
3427
3428
3429
3430
3431
3432
3433
3434
3435
3436
3437
3438
3439
3440
3441
3442
3443
3444
3445
3446
3447
3448
3449
3450
3451
3452
3453
3454
3455
3456
3457
3458
3459
3460
3461
3462
3463
3464
3465
3466
3467
3468
3469
3470
3471
3472
3473
3474
3475
3476
3477
3478
3479
3480
3481
3482
3483
3484
3485
3486
3487
3488
3489
3490
3491
3492
3493
3494
3495
3496
3497
3498
3499
3500
3501
3502
3503
3504
3505
3506
3507
3508
3509
3510
3511
3512
3513
3514
3515
3516
3517
3518
3519
3520
3521
3522
3523
3524
3525
3526
3527
3528
3529
3530
3531
3532
3533
3534
3535
3536
3537
3538
3539
3540
3541
3542
3543
3544
3545
3546
3547
3548
3549
3550
3551
3552
3553
3554
3555
3556
3557
3558
3559
3560
3561
3562
3563
3564
3565
3566
3567
3568
3569
3570
3571
3572
3573
3574
3575
3576
3577
3578
3579
3580
3581
3582
3583
3584
3585
3586
3587
3588
3589
3590
3591
3592
3593
3594
3595
3596
3597
3598
3599
3600
3601
3602
3603
3604
3605
3606
3607
3608
3609
3610
3611
3612
3613
3614
3615
3616
3617
3618
3619
3620
3621
3622
3623
3624
3625
3626
3627
3628
3629
3630
3631
3632
3633
3634
3635
3636
3637
3638
3639
3640
3641
3642
3643
3644
3645
3646
3647
3648
3649
3650
3651
3652
3653
3654
3655
3656
3657
3658
3659
3660
3661
3662
3663
3664
3665
3666
3667
3668
3669
3670
3671
3672
3673
3674
3675
3676
3677
3678
3679
3680
3681
3682
3683
3684
3685
3686
3687
3688
3689
3690
3691
3692
3693
3694
3695
3696
3697
3698
3699
3700
3701
3702
3703
3704
3705
3706
3707
3708
3709
3710
3711
3712
3713
3714
3715
3716
3717
3718
3719
3720
3721
3722
3723
3724
3725
3726
3727
3728
3729
3730
3731
3732
3733
3734
3735
3736
3737
3738
3739
3740
3741
3742
3743
3744
3745
3746
3747
3748
3749
3750
3751
3752
3753
3754
3755
3756
3757
3758
3759
3760
3761
3762
3763
3764
3765
3766
3767
3768
3769
3770
3771
3772
3773
3774
3775
3776
3777
3778
3779
3780
3781
3782
3783
3784
3785
3786
3787
3788
3789
3790
3791
3792
3793
3794
3795
3796
3797
3798
3799
3800
3801
3802
3803
3804
3805
3806
3807
3808
3809
3810
3811
3812
3813
3814
3815
3816
3817
3818
3819
3820
3821
3822
3823
3824
3825
3826
3827
3828
3829
3830
3831
3832
3833
3834
3835
3836
3837
3838
3839
3840
3841
3842
3843
3844
3845
3846
3847
3848
3849
3850
3851
3852
3853
3854
3855
3856
3857
3858
3859
3860
3861
3862
3863
3864
3865
3866
3867
3868
3869
3870
3871
3872
3873
3874
3875
3876
3877
3878
3879
3880
3881
3882
3883
3884
3885
3886
3887
3888
3889
3890
3891
3892
3893
3894
3895
3896
3897
3898
3899
3900
3901
3902
3903
3904
3905
3906
3907
3908
3909
3910
3911
3912
3913
3914
3915
3916
3917
3918
3919
3920
3921
3922
3923
3924
3925
3926
3927
3928
3929
3930
3931
3932
3933
3934
3935
3936
3937
3938
3939
3940
3941
3942
3943
3944
3945
3946
3947
3948
3949
3950
3951
3952
3953
3954
3955
3956
3957
3958
3959
3960
3961
3962
3963
3964
3965
3966
3967
3968
3969
3970
3971
3972
3973
3974
3975
3976
3977
3978
3979
3980
3981
3982
3983
3984
3985
3986
3987
3988
3989
3990
3991
3992
3993
3994
3995
3996
3997
3998
3999
4000
4001
4002
4003
4004
4005
4006
4007
4008
4009
4010
4011
4012
4013
4014
4015
4016
4017
4018
4019
4020
4021
4022
4023
4024
4025
4026
4027
4028
4029
4030
4031
4032
4033
4034
4035
4036
4037
4038
4039
4040
4041
4042
4043
4044
4045
4046
4047
4048
4049
4050
4051
4052
4053
4054
4055
4056
4057
4058
4059
4060
4061
4062
4063
4064
4065
4066
4067
4068
4069
4070
4071
4072
4073
4074
4075
4076
4077
4078
4079
4080
4081
4082
4083
4084
4085
4086
4087
4088
4089
4090
4091
4092
4093
4094
4095
4096
4097
4098
4099
4100
4101
4102
4103
4104
4105
4106
4107
4108
4109
4110
4111
4112
4113
4114
4115
4116
4117
4118
4119
4120
4121
4122
4123
4124
4125
4126
4127
4128
4129
4130
4131
4132
4133
4134
4135
4136
4137
4138
4139
4140
4141
4142
4143
4144
4145
4146
4147
4148
4149
4150
4151
4152
4153
4154
4155
4156
4157
4158
4159
4160
4161
4162
4163
4164
4165
4166
4167
4168
4169
4170
4171
4172
4173
4174
4175
4176
4177
4178
4179
4180
4181
4182
4183
4184
4185
4186
4187
4188
4189
4190
4191
4192
4193
4194
4195
4196
4197
4198
4199
4200
4201
4202
4203
4204
4205
4206
4207
4208
4209
4210
4211
4212
4213
4214
4215
4216
4217
4218
4219
4220
4221
4222
4223
4224
4225
4226
4227
4228
4229
4230
4231
4232
4233
4234
4235
4236
4237
4238
4239
4240
4241
4242
4243
4244
4245
4246
4247
4248
4249
4250
4251
4252
4253
4254
4255
4256
4257
4258
4259
4260
4261
4262
4263
4264
4265
4266
4267
4268
4269
4270
4271
4272
4273
4274
4275
4276
4277
4278
4279
4280
4281
4282
4283
4284
4285
4286
4287
4288
4289
4290
4291
4292
4293
4294
4295
4296
4297
4298
4299
4300
4301
4302
4303
4304
4305
4306
4307
4308
4309
4310
4311
4312
4313
4314
4315
4316
4317
4318
4319
4320
4321
4322
4323
4324
4325
4326
4327
4328
4329
4330
4331
4332
4333
4334
4335
4336
4337
4338
4339
4340
4341
4342
4343
4344
4345
4346
4347
4348
4349
4350
4351
4352
4353
4354
4355
4356
4357
4358
4359
4360
4361
4362
4363
4364
4365
4366
4367
4368
4369
4370
4371
4372
4373
4374
4375
4376
4377
4378
4379
4380
4381
4382
4383
4384
4385
4386
4387
4388
4389
4390
4391
4392
4393
4394
4395
4396
4397
4398
4399
4400
4401
4402
4403
4404
4405
4406
4407
4408
4409
4410
4411
4412
4413
4414
4415
4416
4417
4418
4419
4420
4421
4422
4423
4424
4425
4426
4427
4428
4429
4430
4431
4432
4433
4434
4435
4436
4437
4438
4439
4440
4441
4442
4443
4444
4445
4446
4447
4448
4449
4450
4451
4452
4453
4454
4455
4456
4457
4458
4459
4460
4461
4462
4463
4464
4465
4466
4467
4468
4469
4470
4471
4472
4473
4474
4475
4476
4477
4478
4479
4480
4481
4482
4483
4484
4485
4486
4487
4488
4489
4490
4491
4492
4493
4494
4495
4496
4497
4498
4499
4500
4501
4502
4503
4504
4505
4506
4507
4508
4509
4510
4511
4512
4513
4514
4515
4516
4517
4518
4519
4520
4521
4522
4523
4524
4525
4526
4527
4528
4529
4530
4531
4532
4533
4534
4535
4536
4537
4538
4539
4540
4541
4542
4543
4544
4545
4546
4547
4548
4549
4550
4551
4552
4553
4554
4555
4556
4557
4558
4559
4560
4561
4562
4563
4564
4565
4566
4567
4568
4569
4570
4571
4572
4573
4574
4575
4576
4577
4578
4579
4580
4581
4582
4583
4584
4585
4586
4587
4588
4589
4590
4591
4592
4593
4594
4595
4596
4597
4598
4599
4600
4601
4602
4603
4604
4605
4606
4607
4608
4609
4610
4611
4612
4613
4614
4615
4616
4617
4618
4619
4620
4621
4622
4623
4624
4625
4626
4627
4628
4629
4630
4631
4632
4633
4634
4635
4636
4637
4638
4639
4640
4641
4642
4643
4644
4645
4646
4647
4648
4649
4650
4651
4652
4653
4654
4655
4656
4657
4658
4659
4660
4661
4662
4663
4664
4665
4666
4667
4668
4669
4670
4671
4672
4673
4674
4675
4676
4677
4678
4679
4680
4681
4682
4683
4684
4685
4686
4687
4688
4689
4690
4691
4692
4693
4694
4695
4696
4697
4698
4699
4700
4701
4702
4703
4704
4705
4706
4707
4708
4709
4710
4711
4712
4713
4714
4715
4716
4717
4718
4719
4720
4721
4722
4723
4724
4725
4726
4727
4728
4729
4730
4731
4732
4733
4734
4735
4736
4737
4738
4739
4740
4741
4742
4743
4744
4745
4746
4747
4748
4749
4750
4751
4752
4753
4754
4755
4756
4757
4758
4759
4760
4761
4762
4763
4764
4765
4766
4767
4768
4769
4770
4771
4772
4773
4774
4775
4776
4777
4778
4779
4780
4781
4782
4783
4784
4785
4786
4787
4788
4789
4790
4791
4792
4793
4794
4795
4796
4797
4798
4799
4800
4801
4802
4803
4804
4805
4806
4807
4808
4809
4810
4811
4812
4813
4814
4815
4816
4817
4818
4819
4820
4821
4822
4823
4824
4825
4826
4827
4828
4829
4830
4831
4832
4833
4834
4835
4836
4837
4838
4839
4840
4841
4842
4843
4844
4845
4846
4847
4848
4849
4850
4851
4852
4853
4854
4855
4856
4857
4858
4859
4860
4861
4862
4863
4864
4865
4866
4867
4868
4869
4870
4871
4872
4873
4874
4875
4876
4877
4878
4879
4880
4881
4882
4883
4884
4885
4886
4887
4888
4889
4890
4891
4892
4893
4894
4895
4896
4897
4898
4899
4900
4901
4902
4903
4904
4905
4906
4907
4908
4909
4910
4911
4912
4913
4914
4915
4916
4917
4918
4919
4920
4921
4922
4923
4924
4925
4926
4927
4928
4929
4930
4931
4932
4933
4934
4935
4936
4937
4938
4939
4940
4941
4942
4943
4944
4945
4946
4947
4948
4949
4950
4951
4952
4953
4954
4955
4956
4957
4958
4959
4960
4961
4962
4963
4964
4965
4966
4967
4968
4969
4970
4971
4972
4973
4974
4975
4976
4977
4978
4979
4980
4981
4982
4983
4984
4985
4986
4987
4988
4989
4990
4991
4992
4993
4994
4995
4996
4997
4998
4999
5000
5001
5002
5003
5004
5005
5006
5007
5008
5009
5010
5011
5012
5013
5014
5015
5016
5017
5018
5019
5020
5021
5022
5023
5024
5025
5026
5027
5028
5029
5030
5031
5032
5033
5034
5035
5036
5037
5038
5039
5040
5041
5042
5043
5044
5045
5046
5047
5048
5049
5050
5051
5052
5053
5054
5055
5056
5057
5058
5059
5060
5061
5062
5063
5064
5065
5066
5067
5068
5069
5070
5071
5072
5073
5074
5075
5076
5077
5078
5079
5080
5081
5082
5083
5084
5085
5086
5087
5088
5089
5090
5091
5092
5093
5094
5095
5096
5097
5098
5099
5100
5101
5102
5103
5104
5105
5106
5107
5108
5109
5110
5111
5112
5113
5114
5115
5116
5117
5118
5119
5120
5121
5122
5123
5124
5125
5126
5127
5128
5129
5130
5131
5132
5133
5134
5135
5136
5137
5138
5139
5140
5141
5142
5143
5144
5145
5146
5147
5148
5149
5150
5151
5152
5153
5154
5155
5156
5157
5158
5159
5160
5161
5162
5163
5164
5165
5166
5167
5168
5169
5170
5171
5172
5173
5174
5175
5176
5177
5178
5179
5180
5181
5182
5183
5184
5185
5186
5187
5188
5189
5190
5191
5192
5193
5194
5195
5196
5197
5198
5199
5200
5201
5202
5203
5204
5205
5206
5207
5208
5209
5210
5211
5212
5213
5214
5215
5216
5217
5218
5219
5220
5221
5222
5223
5224
5225
5226
5227
5228
5229
5230
5231
5232
5233
5234
5235
5236
5237
5238
5239
5240
5241
5242
5243
5244
5245
5246
5247
5248
5249
5250
5251
5252
5253
5254
5255
5256
5257
5258
5259
5260
5261
5262
5263
5264
5265
5266
5267
5268
5269
5270
5271
5272
5273
5274
5275
5276
5277
5278
5279
5280
5281
5282
5283
5284
5285
5286
5287
5288
5289
5290
5291
5292
5293
5294
5295
5296
5297
5298
5299
5300
5301
5302
5303
5304
5305
5306
5307
5308
5309
5310
5311
5312
5313
5314
5315
5316
5317
5318
5319
5320
5321
5322
5323
5324
5325
5326
5327
5328
5329
5330
5331
5332
5333
5334
5335
5336
5337
5338
5339
5340
5341
5342
5343
5344
5345
5346
5347
5348
5349
5350
5351
5352
5353
5354
5355
5356
5357
5358
5359
5360
5361
5362
5363
5364
5365
5366
5367
5368
5369
5370
5371
5372
5373
5374
5375
5376
5377
5378
5379
5380
5381
5382
5383
5384
5385
5386
5387
5388
5389
5390
5391
5392
5393
5394
5395
5396
5397
5398
5399
5400
5401
5402
5403
5404
5405
5406
5407
5408
5409
5410
5411
5412
5413
5414
5415
5416
5417
5418
5419
5420
5421
5422
5423
5424
5425
5426
5427
5428
5429
5430
5431
5432
5433
5434
5435
5436
5437
5438
5439
5440
5441
5442
5443
5444
5445
5446
5447
5448
5449
5450
5451
5452
5453
5454
5455
5456
5457
5458
5459
5460
5461
5462
5463
5464
5465
5466
5467
5468
5469
5470
5471
5472
5473
5474
5475
5476
5477
5478
5479
5480
5481
5482
5483
5484
5485
5486
5487
5488
5489
5490
5491
5492
5493
5494
5495
5496
5497
5498
5499
5500
5501
5502
5503
5504
5505
5506
5507
5508
5509
5510
5511
5512
5513
5514
5515
5516
5517
5518
5519
5520
5521
5522
5523
5524
5525
5526
5527
5528
5529
5530
5531
5532
5533
5534
5535
5536
5537
5538
5539
5540
5541
5542
5543
5544
5545
5546
5547
5548
5549
5550
5551
5552
5553
5554
5555
5556
5557
5558
5559
5560
5561
5562
5563
5564
5565
5566
5567
5568
5569
5570
5571
5572
5573
5574
5575
5576
5577
5578
5579
5580
5581
5582
5583
5584
5585
5586
5587
5588
5589
5590
5591
5592
5593
5594
5595
5596
5597
5598
5599
5600
5601
5602
5603
5604
5605
5606
5607
5608
5609
5610
5611
5612
5613
5614
5615
5616
5617
5618
5619
5620
5621
5622
5623
5624
5625
5626
5627
5628
5629
5630
5631
5632
5633
5634
5635
5636
5637
5638
5639
5640
5641
5642
5643
5644
5645
5646
5647
5648
5649
5650
5651
5652
5653
5654
5655
5656
5657
5658
5659
5660
5661
5662
5663
5664
5665
5666
5667
5668
5669
5670
5671
5672
5673
5674
5675
5676
5677
5678
5679
5680
5681
5682
5683
5684
5685
5686
5687
5688
5689
5690
5691
5692
5693
5694
5695
5696
5697
5698
5699
5700
5701
5702
5703
5704
5705
5706
5707
5708
5709
5710
5711
5712
5713
5714
5715
5716
5717
5718
5719
5720
5721
5722
5723
5724
5725
5726
5727
5728
5729
5730
5731
5732
5733
5734
5735
5736
5737
5738
5739
5740
5741
5742
5743
5744
5745
5746
5747
5748
5749
5750
5751
5752
5753
5754
5755
5756
5757
5758
5759
5760
5761
5762
5763
5764
5765
5766
5767
5768
5769
5770
5771
5772
5773
5774
5775
5776
5777
5778
5779
5780
5781
5782
5783
5784
5785
5786
5787
5788
5789
5790
5791
5792
5793
5794
5795
5796
5797
5798
5799
5800
5801
5802
5803
5804
5805
5806
5807
5808
5809
5810
5811
5812
5813
5814
5815
5816
5817
5818
5819
5820
5821
5822
5823
5824
5825
5826
5827
5828
5829
5830
5831
5832
5833
5834
5835
5836
5837
5838
5839
5840
5841
5842
5843
5844
5845
5846
5847
5848
5849
5850
5851
5852
5853
5854
5855
5856
5857
5858
5859
5860
5861
5862
5863
5864
5865
5866
5867
5868
5869
5870
5871
5872
5873
5874
5875
5876
5877
5878
5879
5880
5881
5882
5883
5884
5885
5886
5887
5888
5889
5890
5891
5892
5893
5894
5895
5896
5897
5898
5899
5900
5901
5902
5903
5904
5905
5906
5907
5908
5909
5910
5911
5912
5913
5914
5915
5916
5917
5918
5919
5920
5921
5922
5923
5924
5925
5926
5927
5928
5929
5930
5931
5932
5933
5934
5935
5936
5937
5938
5939
5940
5941
5942
5943
5944
5945
5946
5947
5948
5949
5950
5951
5952
5953
5954
5955
5956
5957
5958
5959
5960
5961
5962
5963
5964
5965
5966
5967
5968
5969
5970
5971
5972
5973
5974
5975
5976
5977
5978
5979
5980
5981
5982
5983
5984
5985
5986
5987
5988
5989
5990
5991
5992
5993
5994
5995
5996
5997
5998
5999
6000
6001
6002
6003
6004
6005
6006
6007
6008
6009
6010
6011
6012
6013
6014
6015
6016
6017
6018
6019
6020
6021
6022
6023
6024
6025
6026
6027
6028
6029
6030
6031
6032
6033
6034
6035
6036
6037
6038
6039
6040
6041
6042
6043
6044
6045
6046
6047
6048
6049
6050
6051
6052
6053
6054
6055
6056
6057
6058
6059
6060
6061
6062
6063
6064
6065
6066
6067
6068
6069
6070
6071
6072
6073
6074
6075
6076
6077
6078
6079
6080
6081
6082
6083
6084
6085
6086
6087
6088
6089
6090
6091
6092
6093
6094
6095
6096
6097
6098
6099
6100
6101
6102
6103
6104
6105
6106
6107
6108
6109
6110
6111
6112
6113
6114
6115
6116
6117
6118
6119
6120
6121
6122
6123
6124
6125
6126
6127
6128
6129
6130
6131
6132
6133
6134
6135
6136
6137
6138
6139
6140
6141
6142
6143
6144
6145
6146
6147
6148
6149
6150
6151
6152
6153
6154
6155
6156
6157
6158
6159
6160
6161
6162
6163
6164
6165
6166
6167
6168
6169
6170
6171
6172
6173
6174
6175
6176
6177
6178
6179
6180
6181
6182
6183
6184
6185
6186
6187
6188
6189
6190
6191
6192
6193
6194
6195
6196
6197
6198
6199
6200
6201
6202
6203
6204
6205
6206
6207
6208
6209
6210
6211
6212
6213
6214
6215
6216
6217
6218
6219
6220
6221
6222
6223
6224
6225
6226
6227
6228
6229
6230
6231
6232
6233
6234
6235
6236
6237
6238
6239
6240
6241
6242
6243
6244
6245
6246
6247
6248
6249
6250
6251
6252
6253
6254
6255
6256
6257
6258
6259
6260
6261
6262
6263
6264
6265
6266
6267
6268
6269
6270
6271
6272
6273
6274
6275
6276
6277
6278
6279
6280
6281
6282
6283
6284
6285
6286
6287
6288
6289
6290
6291
6292
6293
6294
6295
6296
6297
6298
6299
6300
6301
6302
6303
6304
6305
6306
6307
6308
6309
6310
6311
6312
6313
6314
6315
6316
6317
6318
6319
6320
6321
6322
6323
6324
6325
6326
6327
6328
6329
6330
6331
6332
6333
6334
6335
6336
6337
6338
6339
6340
6341
6342
6343
6344
6345
6346
6347
6348
6349
6350
6351
6352
6353
6354
6355
6356
6357
6358
6359
6360
6361
6362
6363
6364
6365
6366
6367
6368
6369
6370
6371
6372
6373
6374
6375
6376
6377
6378
6379
6380
6381
6382
6383
6384
6385
6386
6387
6388
6389
6390
6391
6392
6393
6394
6395
6396
6397
6398
6399
6400
6401
6402
6403
6404
6405
6406
6407
6408
6409
6410
6411
6412
6413
6414
6415
6416
6417
6418
6419
6420
6421
6422
6423
6424
6425
6426
6427
6428
6429
6430
6431
6432
6433
6434
6435
6436
6437
6438
6439
6440
6441
6442
6443
6444
6445
6446
6447
6448
6449
6450
6451
6452
6453
6454
6455
6456
6457
6458
6459
6460
6461
6462
6463
6464
6465
6466
6467
6468
6469
6470
6471
6472
6473
6474
6475
6476
6477
6478
6479
6480
6481
6482
6483
6484
6485
6486
6487
6488
6489
6490
6491
6492
6493
6494
6495
6496
6497
6498
6499
6500
6501
6502
6503
6504
6505
6506
6507
6508
6509
6510
6511
6512
6513
6514
6515
6516
6517
6518
6519
6520
6521
6522
6523
6524
6525
6526
6527
6528
6529
6530
6531
6532
6533
6534
6535
6536
6537
6538
6539
6540
6541
6542
6543
6544
6545
6546
6547
6548
6549
6550
6551
6552
6553
6554
6555
6556
6557
6558
6559
6560
6561
6562
6563
6564
6565
6566
6567
6568
6569
6570
6571
6572
6573
6574
6575
6576
6577
6578
6579
6580
6581
6582
6583
6584
6585
6586
6587
6588
6589
6590
6591
6592
6593
6594
6595
6596
6597
6598
6599
6600
6601
6602
6603
6604
6605
6606
6607
6608
6609
6610
6611
6612
6613
6614
6615
6616
6617
6618
6619
6620
6621
6622
6623
6624
6625
6626
6627
6628
6629
6630
6631
6632
6633
6634
6635
6636
6637
6638
6639
6640
6641
6642
6643
6644
6645
6646
6647
6648
6649
6650
6651
6652
6653
6654
6655
6656
6657
6658
6659
6660
6661
6662
6663
6664
6665
6666
6667
6668
6669
6670
6671
6672
6673
6674
6675
6676
6677
6678
6679
6680
6681
6682
6683
6684
6685
6686
6687
6688
6689
6690
6691
6692
6693
6694
6695
6696
6697
6698
6699
6700
6701
6702
6703
6704
6705
6706
6707
6708
6709
6710
6711
6712
6713
6714
6715
6716
6717
6718
6719
6720
6721
6722
6723
6724
6725
6726
6727
6728
6729
6730
6731
6732
6733
6734
6735
6736
6737
6738
6739
6740
6741
6742
6743
6744
6745
6746
6747
6748
6749
6750
6751
6752
6753
6754
6755
6756
6757
6758
6759
6760
6761
6762
6763
6764
6765
6766
6767
6768
6769
6770
6771
6772
6773
6774
6775
6776
6777
6778
6779
6780
6781
6782
6783
6784
6785
6786
6787
6788
6789
6790
6791
6792
6793
6794
6795
6796
6797
6798
6799
6800
6801
6802
6803
6804
6805
6806
6807
6808
6809
6810
6811
6812
6813
6814
6815
6816
6817
6818
6819
6820
6821
6822
6823
6824
6825
6826
6827
6828
6829
6830
6831
6832
6833
6834
6835
6836
6837
6838
6839
6840
6841
6842
6843
6844
6845
6846
6847
6848
6849
6850
6851
6852
6853
6854
6855
6856
6857
6858
6859
6860
6861
6862
6863
6864
6865
6866
6867
6868
6869
6870
6871
6872
6873
6874
6875
6876
6877
6878
6879
6880
6881
6882
6883
6884
6885
6886
6887
6888
6889
6890
6891
6892
6893
6894
6895
6896
6897
6898
6899
6900
6901
6902
6903
6904
6905
6906
6907
6908
6909
6910
6911
6912
6913
6914
6915
6916
6917
6918
6919
6920
6921
6922
6923
6924
6925
6926
6927
6928
6929
6930
6931
6932
6933
6934
6935
6936
6937
6938
6939
6940
6941
6942
6943
6944
6945
6946
6947
6948
6949
6950
6951
6952
6953
6954
6955
6956
6957
6958
6959
6960
6961
6962
6963
6964
6965
6966
6967
6968
6969
6970
6971
6972
6973
6974
6975
6976
6977
6978
6979
6980
6981
6982
6983
6984
6985
6986
6987
6988
6989
6990
6991
6992
6993
6994
6995
6996
6997
6998
6999
7000
7001
7002
7003
7004
7005
7006
7007
7008
7009
7010
7011
7012
7013
7014
7015
7016
7017
7018
7019
7020
7021
7022
7023
7024
7025
7026
7027
7028
7029
7030
7031
7032
7033
7034
7035
7036
7037
7038
7039
7040
7041
7042
7043
7044
7045
7046
7047
7048
7049
7050
7051
7052
7053
7054
7055
7056
7057
7058
7059
7060
7061
7062
7063
7064
7065
7066
7067
7068
7069
7070
7071
7072
7073
7074
7075
7076
7077
7078
7079
7080
7081
7082
7083
7084
7085
7086
7087
7088
7089
7090
7091
7092
7093
7094
7095
7096
7097
7098
7099
7100
7101
7102
7103
7104
7105
7106
7107
7108
7109
7110
7111
7112
7113
7114
7115
7116
7117
7118
7119
7120
7121
7122
7123
7124
7125
7126
7127
7128
7129
7130
7131
7132
7133
7134
7135
7136
7137
7138
7139
7140
7141
7142
7143
7144
7145
7146
7147
7148
7149
7150
7151
7152
7153
7154
7155
7156
7157
7158
7159
7160
7161
7162
7163
7164
7165
7166
7167
7168
7169
7170
7171
7172
7173
7174
7175
7176
7177
7178
7179
7180
7181
7182
7183
7184
7185
7186
7187
7188
7189
7190
7191
7192
7193
7194
7195
7196
7197
7198
7199
7200
7201
7202
7203
7204
7205
7206
7207
7208
7209
7210
7211
7212
7213
7214
7215
7216
7217
7218
7219
7220
7221
7222
7223
7224
7225
7226
7227
7228
7229
7230
7231
7232
7233
7234
7235
7236
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
#![allow(non_camel_case_types)]
#![allow(unused_imports)]
use serde::de::{value, Deserializer, IntoDeserializer};
use serde::{Deserialize, Serialize, Serializer};
use std::str::FromStr;
#[doc = ""]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct AssociatedWorkItem {
    #[serde(
        rename = "assignedTo",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub assigned_to: Option<String>,
    #[doc = "Id of associated the work item."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub id: Option<i32>,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub state: Option<String>,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub title: Option<String>,
    #[doc = "REST Url of the work item."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub url: Option<String>,
    #[serde(rename = "webUrl", default, skip_serializing_if = "Option::is_none")]
    pub web_url: Option<String>,
    #[serde(
        rename = "workItemType",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub work_item_type: Option<String>,
}
impl AssociatedWorkItem {
    pub fn new() -> Self {
        Self::default()
    }
}
#[doc = ""]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct AsyncGitOperationNotification {
    #[serde(
        rename = "operationId",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub operation_id: Option<i32>,
}
impl AsyncGitOperationNotification {
    pub fn new() -> Self {
        Self::default()
    }
}
#[doc = ""]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct AsyncRefOperationCommitLevelEventNotification {
    #[serde(flatten)]
    pub async_git_operation_notification: AsyncGitOperationNotification,
    #[serde(rename = "commitId", default, skip_serializing_if = "Option::is_none")]
    pub commit_id: Option<String>,
}
impl AsyncRefOperationCommitLevelEventNotification {
    pub fn new() -> Self {
        Self::default()
    }
}
#[doc = ""]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct AsyncRefOperationCompletedNotification {
    #[serde(flatten)]
    pub async_git_operation_notification: AsyncGitOperationNotification,
    #[serde(
        rename = "newRefName",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub new_ref_name: Option<String>,
}
impl AsyncRefOperationCompletedNotification {
    pub fn new() -> Self {
        Self::default()
    }
}
#[doc = ""]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct AsyncRefOperationConflictNotification {
    #[serde(flatten)]
    pub async_ref_operation_commit_level_event_notification:
        AsyncRefOperationCommitLevelEventNotification,
}
impl AsyncRefOperationConflictNotification {
    pub fn new() -> Self {
        Self::default()
    }
}
#[doc = ""]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct AsyncRefOperationGeneralFailureNotification {
    #[serde(flatten)]
    pub async_git_operation_notification: AsyncGitOperationNotification,
}
impl AsyncRefOperationGeneralFailureNotification {
    pub fn new() -> Self {
        Self::default()
    }
}
#[doc = ""]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct AsyncRefOperationProgressNotification {
    #[serde(flatten)]
    pub async_ref_operation_commit_level_event_notification:
        AsyncRefOperationCommitLevelEventNotification,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub progress: Option<f64>,
}
impl AsyncRefOperationProgressNotification {
    pub fn new() -> Self {
        Self::default()
    }
}
#[doc = ""]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct AsyncRefOperationTimeoutNotification {
    #[serde(flatten)]
    pub async_git_operation_notification: AsyncGitOperationNotification,
}
impl AsyncRefOperationTimeoutNotification {
    pub fn new() -> Self {
        Self::default()
    }
}
#[doc = "Meta data for a file attached to an artifact."]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct Attachment {
    #[doc = "Links"]
    #[serde(rename = "_links", default, skip_serializing_if = "Option::is_none")]
    pub links: Option<serde_json::Value>,
    #[doc = ""]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub author: Option<IdentityRef>,
    #[doc = "Content hash of on-disk representation of file content. Its calculated by the server by using SHA1 hash function."]
    #[serde(
        rename = "contentHash",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub content_hash: Option<String>,
    #[doc = "The time the attachment was uploaded."]
    #[serde(
        rename = "createdDate",
        default,
        with = "crate::date_time::rfc3339::option"
    )]
    pub created_date: Option<time::OffsetDateTime>,
    #[doc = "The description of the attachment."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub description: Option<String>,
    #[doc = "The display name of the attachment. Can't be null or empty."]
    #[serde(
        rename = "displayName",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub display_name: Option<String>,
    #[doc = "Id of the attachment."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub id: Option<i32>,
    #[doc = "The class represents a property bag as a collection of key-value pairs. Values of all primitive types (any type with a `TypeCode != TypeCode.Object`) except for `DBNull` are accepted. Values of type Byte[], Int32, Double, DateType and String preserve their type, other primitives are retuned as a String. Byte[] expected as base64 encoded string."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub properties: Option<PropertiesCollection>,
    #[doc = "The url to download the content of the attachment."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub url: Option<String>,
}
impl Attachment {
    pub fn new() -> Self {
        Self::default()
    }
}
#[doc = ""]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct AttachmentList {
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub count: Option<i32>,
    #[serde(default, skip_serializing_if = "Vec::is_empty")]
    pub value: Vec<Attachment>,
}
impl AttachmentList {
    pub fn new() -> Self {
        Self::default()
    }
}
#[doc = "Real time event (SignalR) for an auto-complete update on a pull request"]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct AutoCompleteUpdatedEvent {
    #[serde(flatten)]
    pub real_time_pull_request_event: RealTimePullRequestEvent,
}
impl AutoCompleteUpdatedEvent {
    pub fn new() -> Self {
        Self::default()
    }
}
#[doc = "Real time event (SignalR) for a source/target branch update on a pull request"]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct BranchUpdatedEvent {
    #[serde(flatten)]
    pub real_time_pull_request_event: RealTimePullRequestEvent,
    #[doc = "If true, the source branch of the pull request was updated"]
    #[serde(
        rename = "isSourceUpdate",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub is_source_update: Option<bool>,
}
impl BranchUpdatedEvent {
    pub fn new() -> Self {
        Self::default()
    }
}
#[doc = ""]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
pub struct Change {
    #[doc = "The type of change that was made to the item."]
    #[serde(rename = "changeType")]
    pub change_type: change::ChangeType,
    pub item: serde_json::Value,
}
impl Change {
    pub fn new(change_type: change::ChangeType, item: serde_json::Value) -> Self {
        Self { change_type, item }
    }
}
pub mod change {
    use super::*;
    #[doc = "The type of change that was made to the item."]
    #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
    pub enum ChangeType {
        #[serde(rename = "none")]
        None,
        #[serde(rename = "add")]
        Add,
        #[serde(rename = "edit")]
        Edit,
        #[serde(rename = "encoding")]
        Encoding,
        #[serde(rename = "rename")]
        Rename,
        #[serde(rename = "delete")]
        Delete,
        #[serde(rename = "undelete")]
        Undelete,
        #[serde(rename = "branch")]
        Branch,
        #[serde(rename = "merge")]
        Merge,
        #[serde(rename = "lock")]
        Lock,
        #[serde(rename = "rollback")]
        Rollback,
        #[serde(rename = "sourceRename")]
        SourceRename,
        #[serde(rename = "targetRename")]
        TargetRename,
        #[serde(rename = "property")]
        Property,
        #[serde(rename = "all")]
        All,
    }
}
#[doc = ""]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct ChangeCountDictionary {}
impl ChangeCountDictionary {
    pub fn new() -> Self {
        Self::default()
    }
}
#[doc = ""]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct ChangeList {
    #[serde(
        rename = "allChangesIncluded",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub all_changes_included: Option<bool>,
    #[serde(
        rename = "changeCounts",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub change_counts: Option<serde_json::Value>,
    #[serde(default, skip_serializing_if = "Vec::is_empty")]
    pub changes: Vec<Change>,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub comment: Option<String>,
    #[serde(
        rename = "commentTruncated",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub comment_truncated: Option<bool>,
    #[serde(
        rename = "creationDate",
        default,
        with = "crate::date_time::rfc3339::option"
    )]
    pub creation_date: Option<time::OffsetDateTime>,
    #[serde(default, skip_serializing_if = "Vec::is_empty")]
    pub notes: Vec<CheckinNote>,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub owner: Option<String>,
    #[serde(
        rename = "ownerDisplayName",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub owner_display_name: Option<String>,
    #[serde(rename = "ownerId", default, skip_serializing_if = "Option::is_none")]
    pub owner_id: Option<String>,
    #[serde(
        rename = "sortDate",
        default,
        with = "crate::date_time::rfc3339::option"
    )]
    pub sort_date: Option<time::OffsetDateTime>,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub version: Option<String>,
}
impl ChangeList {
    pub fn new() -> Self {
        Self::default()
    }
}
#[doc = "Criteria used in a search for change lists"]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct ChangeListSearchCriteria {
    #[doc = "If provided, a version descriptor to compare against base"]
    #[serde(
        rename = "compareVersion",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub compare_version: Option<String>,
    #[doc = "If true, don't include delete history entries"]
    #[serde(
        rename = "excludeDeletes",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub exclude_deletes: Option<bool>,
    #[doc = "Whether or not to follow renames for the given item being queried"]
    #[serde(
        rename = "followRenames",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub follow_renames: Option<bool>,
    #[doc = "If provided, only include history entries created after this date (string)"]
    #[serde(rename = "fromDate", default, skip_serializing_if = "Option::is_none")]
    pub from_date: Option<String>,
    #[doc = "If provided, a version descriptor for the earliest change list to include"]
    #[serde(
        rename = "fromVersion",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub from_version: Option<String>,
    #[doc = "Path of item to search under. If the itemPaths memebr is used then it will take precedence over this."]
    #[serde(rename = "itemPath", default, skip_serializing_if = "Option::is_none")]
    pub item_path: Option<String>,
    #[doc = "List of item paths to search under. If this member is used then itemPath will be ignored."]
    #[serde(rename = "itemPaths", default, skip_serializing_if = "Vec::is_empty")]
    pub item_paths: Vec<String>,
    #[doc = "Version of the items to search"]
    #[serde(
        rename = "itemVersion",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub item_version: Option<String>,
    #[doc = "Number of results to skip (used when clicking more...)"]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub skip: Option<i32>,
    #[doc = "If provided, only include history entries created before this date (string)"]
    #[serde(rename = "toDate", default, skip_serializing_if = "Option::is_none")]
    pub to_date: Option<String>,
    #[doc = "If provided, the maximum number of history entries to return"]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub top: Option<i32>,
    #[doc = "If provided, a version descriptor for the latest change list to include"]
    #[serde(rename = "toVersion", default, skip_serializing_if = "Option::is_none")]
    pub to_version: Option<String>,
    #[doc = "Alias or display name of user who made the changes"]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub user: Option<String>,
}
impl ChangeListSearchCriteria {
    pub fn new() -> Self {
        Self::default()
    }
}
#[doc = ""]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct CheckinNote {
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub name: Option<String>,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub value: Option<String>,
}
impl CheckinNote {
    pub fn new() -> Self {
        Self::default()
    }
}
#[doc = "Represents a comment which is one of potentially many in a comment thread."]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct Comment {
    #[doc = "Links"]
    #[serde(rename = "_links", default, skip_serializing_if = "Option::is_none")]
    pub links: Option<serde_json::Value>,
    #[doc = ""]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub author: Option<IdentityRef>,
    #[doc = "The comment type at the time of creation."]
    #[serde(
        rename = "commentType",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub comment_type: Option<comment::CommentType>,
    #[doc = "The comment content."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub content: Option<String>,
    #[doc = "The comment ID. IDs start at 1 and are unique to a pull request."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub id: Option<i64>,
    #[doc = "Whether or not this comment was soft-deleted."]
    #[serde(rename = "isDeleted", default, skip_serializing_if = "Option::is_none")]
    pub is_deleted: Option<bool>,
    #[doc = "The date the comment's content was last updated."]
    #[serde(
        rename = "lastContentUpdatedDate",
        default,
        with = "crate::date_time::rfc3339::option"
    )]
    pub last_content_updated_date: Option<time::OffsetDateTime>,
    #[doc = "The date the comment was last updated."]
    #[serde(
        rename = "lastUpdatedDate",
        default,
        with = "crate::date_time::rfc3339::option"
    )]
    pub last_updated_date: Option<time::OffsetDateTime>,
    #[doc = "The ID of the parent comment. This is used for replies."]
    #[serde(
        rename = "parentCommentId",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub parent_comment_id: Option<i64>,
    #[doc = "The date the comment was first published."]
    #[serde(
        rename = "publishedDate",
        default,
        with = "crate::date_time::rfc3339::option"
    )]
    pub published_date: Option<time::OffsetDateTime>,
    #[doc = "A list of the users who have liked this comment."]
    #[serde(rename = "usersLiked", default, skip_serializing_if = "Vec::is_empty")]
    pub users_liked: Vec<IdentityRef>,
}
impl Comment {
    pub fn new() -> Self {
        Self::default()
    }
}
pub mod comment {
    use super::*;
    #[doc = "The comment type at the time of creation."]
    #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
    pub enum CommentType {
        #[serde(rename = "unknown")]
        Unknown,
        #[serde(rename = "text")]
        Text,
        #[serde(rename = "codeChange")]
        CodeChange,
        #[serde(rename = "system")]
        System,
    }
}
#[doc = "Comment iteration context is used to identify which diff was being viewed when the thread was created."]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct CommentIterationContext {
    #[doc = "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."]
    #[serde(
        rename = "firstComparingIteration",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub first_comparing_iteration: Option<i64>,
    #[doc = "The iteration of the file on the right side of the diff when the thread was created."]
    #[serde(
        rename = "secondComparingIteration",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub second_comparing_iteration: Option<i64>,
}
impl CommentIterationContext {
    pub fn new() -> Self {
        Self::default()
    }
}
#[doc = ""]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct CommentList {
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub count: Option<i32>,
    #[serde(default, skip_serializing_if = "Vec::is_empty")]
    pub value: Vec<Comment>,
}
impl CommentList {
    pub fn new() -> Self {
        Self::default()
    }
}
#[doc = ""]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct CommentPosition {
    #[doc = "The line number of a thread's position. Starts at 1."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub line: Option<i32>,
    #[doc = "The character offset of a thread's position inside of a line. Starts at 0."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub offset: Option<i32>,
}
impl CommentPosition {
    pub fn new() -> Self {
        Self::default()
    }
}
#[doc = "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)."]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct CommentThread {
    #[doc = "Links"]
    #[serde(rename = "_links", default, skip_serializing_if = "Option::is_none")]
    pub links: Option<serde_json::Value>,
    #[doc = "A list of the comments."]
    #[serde(default, skip_serializing_if = "Vec::is_empty")]
    pub comments: Vec<Comment>,
    #[doc = "The comment thread id."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub id: Option<i32>,
    #[doc = "Set of identities related to this thread"]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub identities: Option<serde_json::Value>,
    #[doc = "Specify if the thread is deleted which happens when all comments are deleted."]
    #[serde(rename = "isDeleted", default, skip_serializing_if = "Option::is_none")]
    pub is_deleted: Option<bool>,
    #[doc = "The time this thread was last updated."]
    #[serde(
        rename = "lastUpdatedDate",
        default,
        with = "crate::date_time::rfc3339::option"
    )]
    pub last_updated_date: Option<time::OffsetDateTime>,
    #[doc = "The class represents a property bag as a collection of key-value pairs. Values of all primitive types (any type with a `TypeCode != TypeCode.Object`) except for `DBNull` are accepted. Values of type Byte[], Int32, Double, DateType and String preserve their type, other primitives are retuned as a String. Byte[] expected as base64 encoded string."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub properties: Option<PropertiesCollection>,
    #[doc = "The time this thread was published."]
    #[serde(
        rename = "publishedDate",
        default,
        with = "crate::date_time::rfc3339::option"
    )]
    pub published_date: Option<time::OffsetDateTime>,
    #[doc = "The status of the comment thread."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub status: Option<comment_thread::Status>,
    #[doc = ""]
    #[serde(
        rename = "threadContext",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub thread_context: Option<CommentThreadContext>,
}
impl CommentThread {
    pub fn new() -> Self {
        Self::default()
    }
}
pub mod comment_thread {
    use super::*;
    #[doc = "The status of the comment thread."]
    #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
    pub enum Status {
        #[serde(rename = "unknown")]
        Unknown,
        #[serde(rename = "active")]
        Active,
        #[serde(rename = "fixed")]
        Fixed,
        #[serde(rename = "wontFix")]
        WontFix,
        #[serde(rename = "closed")]
        Closed,
        #[serde(rename = "byDesign")]
        ByDesign,
        #[serde(rename = "pending")]
        Pending,
    }
}
#[doc = ""]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct CommentThreadContext {
    #[doc = "File path relative to the root of the repository. It's up to the client to use any path format."]
    #[serde(rename = "filePath", default, skip_serializing_if = "Option::is_none")]
    pub file_path: Option<String>,
    #[doc = ""]
    #[serde(
        rename = "leftFileEnd",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub left_file_end: Option<CommentPosition>,
    #[doc = ""]
    #[serde(
        rename = "leftFileStart",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub left_file_start: Option<CommentPosition>,
    #[doc = ""]
    #[serde(
        rename = "rightFileEnd",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub right_file_end: Option<CommentPosition>,
    #[doc = ""]
    #[serde(
        rename = "rightFileStart",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub right_file_start: Option<CommentPosition>,
}
impl CommentThreadContext {
    pub fn new() -> Self {
        Self::default()
    }
}
#[doc = "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."]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct CommentTrackingCriteria {
    #[doc = "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."]
    #[serde(
        rename = "firstComparingIteration",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub first_comparing_iteration: Option<i32>,
    #[doc = "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."]
    #[serde(
        rename = "origFilePath",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub orig_file_path: Option<String>,
    #[doc = ""]
    #[serde(
        rename = "origLeftFileEnd",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub orig_left_file_end: Option<CommentPosition>,
    #[doc = ""]
    #[serde(
        rename = "origLeftFileStart",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub orig_left_file_start: Option<CommentPosition>,
    #[doc = ""]
    #[serde(
        rename = "origRightFileEnd",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub orig_right_file_end: Option<CommentPosition>,
    #[doc = ""]
    #[serde(
        rename = "origRightFileStart",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub orig_right_file_start: Option<CommentPosition>,
    #[doc = "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."]
    #[serde(
        rename = "secondComparingIteration",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub second_comparing_iteration: Option<i32>,
}
impl CommentTrackingCriteria {
    pub fn new() -> Self {
        Self::default()
    }
}
#[doc = "Real time event (SignalR) for a completion errors on a pull request"]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct CompletionErrorsEvent {
    #[serde(flatten)]
    pub real_time_pull_request_event: RealTimePullRequestEvent,
    #[doc = "The error message associated with the completion error"]
    #[serde(
        rename = "errorMessage",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub error_message: Option<String>,
}
impl CompletionErrorsEvent {
    pub fn new() -> Self {
        Self::default()
    }
}
#[doc = "Real time event (SignalR) for a discussions update on a pull request"]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct DiscussionsUpdatedEvent {
    #[serde(flatten)]
    pub real_time_pull_request_event: RealTimePullRequestEvent,
}
impl DiscussionsUpdatedEvent {
    pub fn new() -> Self {
        Self::default()
    }
}
#[doc = ""]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct FileContentMetadata {
    #[serde(
        rename = "contentType",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub content_type: Option<String>,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub encoding: Option<i32>,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub extension: Option<String>,
    #[serde(rename = "fileName", default, skip_serializing_if = "Option::is_none")]
    pub file_name: Option<String>,
    #[serde(rename = "isBinary", default, skip_serializing_if = "Option::is_none")]
    pub is_binary: Option<bool>,
    #[serde(rename = "isImage", default, skip_serializing_if = "Option::is_none")]
    pub is_image: Option<bool>,
    #[serde(rename = "vsLink", default, skip_serializing_if = "Option::is_none")]
    pub vs_link: Option<String>,
}
impl FileContentMetadata {
    pub fn new() -> Self {
        Self::default()
    }
}
#[doc = "Provides properties that describe file differences"]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct FileDiff {
    #[doc = "The collection of line diff blocks"]
    #[serde(
        rename = "lineDiffBlocks",
        default,
        skip_serializing_if = "Vec::is_empty"
    )]
    pub line_diff_blocks: Vec<LineDiffBlock>,
    #[doc = "Original path of item if different from current path."]
    #[serde(
        rename = "originalPath",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub original_path: Option<String>,
    #[doc = "Current path of item"]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub path: Option<String>,
}
impl FileDiff {
    pub fn new() -> Self {
        Self::default()
    }
}
#[doc = "Provides parameters that describe inputs for the file diff"]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct FileDiffParams {
    #[doc = "Original path of the file"]
    #[serde(
        rename = "originalPath",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub original_path: Option<String>,
    #[doc = "Current path of the file"]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub path: Option<String>,
}
impl FileDiffParams {
    pub fn new() -> Self {
        Self::default()
    }
}
#[doc = "Provides properties that describe inputs for the file diffs"]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct FileDiffsCriteria {
    #[doc = "Commit ID of the base version"]
    #[serde(
        rename = "baseVersionCommit",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub base_version_commit: Option<String>,
    #[doc = "List of parameters for each of the files for which we need to get the file diff"]
    #[serde(
        rename = "fileDiffParams",
        default,
        skip_serializing_if = "Vec::is_empty"
    )]
    pub file_diff_params: Vec<FileDiffParams>,
    #[doc = "Commit ID of the target version"]
    #[serde(
        rename = "targetVersionCommit",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub target_version_commit: Option<String>,
}
impl FileDiffsCriteria {
    pub fn new() -> Self {
        Self::default()
    }
}
#[doc = "A Git annotated tag."]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct GitAnnotatedTag {
    #[doc = "The tagging Message"]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub message: Option<String>,
    #[doc = "The name of the annotated tag."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub name: Option<String>,
    #[doc = "The objectId (Sha1Id) of the tag."]
    #[serde(rename = "objectId", default, skip_serializing_if = "Option::is_none")]
    pub object_id: Option<String>,
    #[doc = "User info and date for Git operations."]
    #[serde(rename = "taggedBy", default, skip_serializing_if = "Option::is_none")]
    pub tagged_by: Option<GitUserDate>,
    #[doc = "Git object identifier and type information."]
    #[serde(
        rename = "taggedObject",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub tagged_object: Option<GitObject>,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub url: Option<String>,
}
impl GitAnnotatedTag {
    pub fn new() -> Self {
        Self::default()
    }
}
#[doc = ""]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct GitAsyncRefOperation {
    #[doc = "The class to represent a collection of REST reference links."]
    #[serde(rename = "_links", default, skip_serializing_if = "Option::is_none")]
    pub links: Option<ReferenceLinks>,
    #[doc = "Information about the progress of a cherry pick or revert operation."]
    #[serde(
        rename = "detailedStatus",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub detailed_status: Option<GitAsyncRefOperationDetail>,
    #[doc = "Parameters that are provided in the request body when requesting to cherry pick or revert."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub parameters: Option<GitAsyncRefOperationParameters>,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub status: Option<git_async_ref_operation::Status>,
    #[doc = "A URL that can be used to make further requests for status about the operation"]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub url: Option<String>,
}
impl GitAsyncRefOperation {
    pub fn new() -> Self {
        Self::default()
    }
}
pub mod git_async_ref_operation {
    use super::*;
    #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
    pub enum Status {
        #[serde(rename = "queued")]
        Queued,
        #[serde(rename = "inProgress")]
        InProgress,
        #[serde(rename = "completed")]
        Completed,
        #[serde(rename = "failed")]
        Failed,
        #[serde(rename = "abandoned")]
        Abandoned,
    }
}
#[doc = "Information about the progress of a cherry pick or revert operation."]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct GitAsyncRefOperationDetail {
    #[doc = "Indicates if there was a conflict generated when trying to cherry pick or revert the changes."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub conflict: Option<bool>,
    #[doc = "The current commit from the list of commits that are being cherry picked or reverted."]
    #[serde(
        rename = "currentCommitId",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub current_commit_id: Option<String>,
    #[doc = "Detailed information about why the cherry pick or revert failed to complete."]
    #[serde(
        rename = "failureMessage",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub failure_message: Option<String>,
    #[doc = "A number between 0 and 1 indicating the percent complete of the operation."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub progress: Option<f64>,
    #[doc = "Provides a status code that indicates the reason the cherry pick or revert failed."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub status: Option<git_async_ref_operation_detail::Status>,
    #[doc = "Indicates if the operation went beyond the maximum time allowed for a cherry pick or revert operation."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub timedout: Option<bool>,
}
impl GitAsyncRefOperationDetail {
    pub fn new() -> Self {
        Self::default()
    }
}
pub mod git_async_ref_operation_detail {
    use super::*;
    #[doc = "Provides a status code that indicates the reason the cherry pick or revert failed."]
    #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
    pub enum Status {
        #[serde(rename = "none")]
        None,
        #[serde(rename = "invalidRefName")]
        InvalidRefName,
        #[serde(rename = "refNameConflict")]
        RefNameConflict,
        #[serde(rename = "createBranchPermissionRequired")]
        CreateBranchPermissionRequired,
        #[serde(rename = "writePermissionRequired")]
        WritePermissionRequired,
        #[serde(rename = "targetBranchDeleted")]
        TargetBranchDeleted,
        #[serde(rename = "gitObjectTooLarge")]
        GitObjectTooLarge,
        #[serde(rename = "operationIndentityNotFound")]
        OperationIndentityNotFound,
        #[serde(rename = "asyncOperationNotFound")]
        AsyncOperationNotFound,
        #[serde(rename = "other")]
        Other,
        #[serde(rename = "emptyCommitterSignature")]
        EmptyCommitterSignature,
    }
}
#[doc = "Parameters that are provided in the request body when requesting to cherry pick or revert."]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct GitAsyncRefOperationParameters {
    #[doc = "Proposed target branch name for the cherry pick or revert operation."]
    #[serde(
        rename = "generatedRefName",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub generated_ref_name: Option<String>,
    #[doc = "The target branch for the cherry pick or revert operation."]
    #[serde(
        rename = "ontoRefName",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub onto_ref_name: Option<String>,
    #[doc = ""]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub repository: Option<GitRepository>,
    #[doc = "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."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub source: Option<GitAsyncRefOperationSource>,
}
impl GitAsyncRefOperationParameters {
    pub fn new() -> Self {
        Self::default()
    }
}
#[doc = "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."]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct GitAsyncRefOperationSource {
    #[doc = "A list of commits to cherry pick or revert"]
    #[serde(rename = "commitList", default, skip_serializing_if = "Vec::is_empty")]
    pub commit_list: Vec<GitCommitRef>,
    #[doc = "Id of the pull request to cherry pick or revert"]
    #[serde(
        rename = "pullRequestId",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub pull_request_id: Option<i32>,
}
impl GitAsyncRefOperationSource {
    pub fn new() -> Self {
        Self::default()
    }
}
#[doc = ""]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct GitBaseVersionDescriptor {
    #[serde(flatten)]
    pub git_version_descriptor: GitVersionDescriptor,
    #[doc = "Version string identifier (name of tag/branch, SHA1 of commit)"]
    #[serde(
        rename = "baseVersion",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub base_version: Option<String>,
    #[doc = "Version options - Specify additional modifiers to version (e.g Previous)"]
    #[serde(
        rename = "baseVersionOptions",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub base_version_options: Option<git_base_version_descriptor::BaseVersionOptions>,
    #[doc = "Version type (branch, tag, or commit). Determines how Id is interpreted"]
    #[serde(
        rename = "baseVersionType",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub base_version_type: Option<git_base_version_descriptor::BaseVersionType>,
}
impl GitBaseVersionDescriptor {
    pub fn new() -> Self {
        Self::default()
    }
}
pub mod git_base_version_descriptor {
    use super::*;
    #[doc = "Version options - Specify additional modifiers to version (e.g Previous)"]
    #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
    pub enum BaseVersionOptions {
        #[serde(rename = "none")]
        None,
        #[serde(rename = "previousChange")]
        PreviousChange,
        #[serde(rename = "firstParent")]
        FirstParent,
    }
    #[doc = "Version type (branch, tag, or commit). Determines how Id is interpreted"]
    #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
    pub enum BaseVersionType {
        #[serde(rename = "branch")]
        Branch,
        #[serde(rename = "tag")]
        Tag,
        #[serde(rename = "commit")]
        Commit,
    }
}
#[doc = ""]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct GitBlobRef {
    #[doc = "The class to represent a collection of REST reference links."]
    #[serde(rename = "_links", default, skip_serializing_if = "Option::is_none")]
    pub links: Option<ReferenceLinks>,
    #[doc = "SHA1 hash of git object"]
    #[serde(rename = "objectId", default, skip_serializing_if = "Option::is_none")]
    pub object_id: Option<String>,
    #[doc = "Size of blob content (in bytes)"]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub size: Option<i64>,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub url: Option<String>,
}
impl GitBlobRef {
    pub fn new() -> Self {
        Self::default()
    }
}
#[doc = "Ahead and behind counts for a particular ref."]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct GitBranchStats {
    #[doc = "Number of commits ahead."]
    #[serde(
        rename = "aheadCount",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub ahead_count: Option<i32>,
    #[doc = "Number of commits behind."]
    #[serde(
        rename = "behindCount",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub behind_count: Option<i32>,
    #[doc = "Provides properties that describe a Git commit and associated metadata."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub commit: Option<GitCommitRef>,
    #[doc = "True if this is the result for the base version."]
    #[serde(
        rename = "isBaseVersion",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub is_base_version: Option<bool>,
    #[doc = "Name of the ref."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub name: Option<String>,
}
impl GitBranchStats {
    pub fn new() -> Self {
        Self::default()
    }
}
#[doc = ""]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct GitBranchStatsList {
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub count: Option<i32>,
    #[serde(default, skip_serializing_if = "Vec::is_empty")]
    pub value: Vec<GitBranchStats>,
}
impl GitBranchStatsList {
    pub fn new() -> Self {
        Self::default()
    }
}
#[doc = ""]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
pub struct GitChange {
    #[serde(flatten)]
    pub change: Change,
}
impl GitChange {
    pub fn new(change: Change) -> Self {
        Self { change }
    }
}
#[doc = "This object is returned from Cherry Pick operations and provides the id and status of the operation"]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct GitCherryPick {
    #[serde(flatten)]
    pub git_async_ref_operation: GitAsyncRefOperation,
    #[serde(
        rename = "cherryPickId",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub cherry_pick_id: Option<i32>,
}
impl GitCherryPick {
    pub fn new() -> Self {
        Self::default()
    }
}
#[doc = ""]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
pub struct GitCommit {
    #[serde(flatten)]
    pub git_commit_ref: GitCommitRef,
    #[serde(rename = "treeId", default, skip_serializing_if = "Option::is_none")]
    pub tree_id: Option<String>,
}
impl GitCommit {
    pub fn new(git_commit_ref: GitCommitRef) -> Self {
        Self {
            git_commit_ref,
            tree_id: None,
        }
    }
}
#[doc = ""]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct GitCommitChanges {
    #[serde(
        rename = "changeCounts",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub change_counts: Option<serde_json::Value>,
    #[serde(default, skip_serializing_if = "Vec::is_empty")]
    pub changes: Vec<GitChange>,
}
impl GitCommitChanges {
    pub fn new() -> Self {
        Self::default()
    }
}
#[doc = ""]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct GitCommitDiffs {
    #[serde(
        rename = "aheadCount",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub ahead_count: Option<i32>,
    #[serde(
        rename = "allChangesIncluded",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub all_changes_included: Option<bool>,
    #[serde(
        rename = "baseCommit",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub base_commit: Option<String>,
    #[serde(
        rename = "behindCount",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub behind_count: Option<i32>,
    #[serde(
        rename = "changeCounts",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub change_counts: Option<serde_json::Value>,
    #[serde(default, skip_serializing_if = "Vec::is_empty")]
    pub changes: Vec<GitChange>,
    #[serde(
        rename = "commonCommit",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub common_commit: Option<String>,
    #[serde(
        rename = "targetCommit",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub target_commit: Option<String>,
}
impl GitCommitDiffs {
    pub fn new() -> Self {
        Self::default()
    }
}
#[doc = "Provides properties that describe a Git commit and associated metadata."]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
pub struct GitCommitRef {
    #[doc = "Links"]
    #[serde(rename = "_links", default, skip_serializing_if = "Option::is_none")]
    pub links: Option<serde_json::Value>,
    #[doc = "User info and date for Git operations."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub author: Option<GitUserDate>,
    #[serde(
        rename = "changeCounts",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub change_counts: Option<serde_json::Value>,
    #[doc = "An enumeration of the changes included with the commit."]
    #[serde(default, skip_serializing_if = "Vec::is_empty")]
    pub changes: Vec<GitChange>,
    #[doc = "Comment or message of the commit."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub comment: Option<String>,
    #[doc = "Indicates if the comment is truncated from the full Git commit comment message."]
    #[serde(
        rename = "commentTruncated",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub comment_truncated: Option<bool>,
    #[doc = "ID (SHA-1) of the commit."]
    #[serde(rename = "commitId")]
    pub commit_id: String,
    #[doc = "User info and date for Git operations."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub committer: Option<GitUserDate>,
    #[doc = "An enumeration of the parent commit IDs for this commit."]
    #[serde(default, skip_serializing_if = "Vec::is_empty")]
    pub parents: Vec<String>,
    #[doc = ""]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub push: Option<GitPushRef>,
    #[doc = "Remote URL path to the commit."]
    #[serde(rename = "remoteUrl", default, skip_serializing_if = "Option::is_none")]
    pub remote_url: Option<String>,
    #[doc = "A list of status metadata from services and extensions that may associate additional information to the commit."]
    #[serde(default, skip_serializing_if = "Vec::is_empty")]
    pub statuses: Vec<GitStatus>,
    #[doc = "REST URL for this resource."]
    pub url: String,
    #[doc = "A list of workitems associated with this commit."]
    #[serde(rename = "workItems", default, skip_serializing_if = "Vec::is_empty")]
    pub work_items: Vec<ResourceRef>,
}
impl GitCommitRef {
    pub fn new(commit_id: String, url: String) -> Self {
        Self {
            links: None,
            author: None,
            change_counts: None,
            changes: Vec::new(),
            comment: None,
            comment_truncated: None,
            commit_id,
            committer: None,
            parents: Vec::new(),
            push: None,
            remote_url: None,
            statuses: Vec::new(),
            url,
            work_items: Vec::new(),
        }
    }
}
#[doc = ""]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct GitCommitRefList {
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub count: Option<i32>,
    #[serde(default, skip_serializing_if = "Vec::is_empty")]
    pub value: Vec<GitCommitRef>,
}
impl GitCommitRefList {
    pub fn new() -> Self {
        Self::default()
    }
}
#[doc = ""]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct GitCommitToCreate {
    #[doc = ""]
    #[serde(rename = "baseRef", default, skip_serializing_if = "Option::is_none")]
    pub base_ref: Option<GitRef>,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub comment: Option<String>,
    #[serde(rename = "pathActions", default, skip_serializing_if = "Vec::is_empty")]
    pub path_actions: Vec<GitPathAction>,
}
impl GitCommitToCreate {
    pub fn new() -> Self {
        Self::default()
    }
}
#[doc = ""]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct GitConflict {
    #[doc = "The class to represent a collection of REST reference links."]
    #[serde(rename = "_links", default, skip_serializing_if = "Option::is_none")]
    pub links: Option<ReferenceLinks>,
    #[serde(
        rename = "conflictId",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub conflict_id: Option<i32>,
    #[serde(
        rename = "conflictPath",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub conflict_path: Option<String>,
    #[serde(
        rename = "conflictType",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub conflict_type: Option<git_conflict::ConflictType>,
    #[doc = "Provides properties that describe a Git commit and associated metadata."]
    #[serde(
        rename = "mergeBaseCommit",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub merge_base_commit: Option<GitCommitRef>,
    #[doc = ""]
    #[serde(
        rename = "mergeOrigin",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub merge_origin: Option<GitMergeOriginRef>,
    #[doc = "Provides properties that describe a Git commit and associated metadata."]
    #[serde(
        rename = "mergeSourceCommit",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub merge_source_commit: Option<GitCommitRef>,
    #[doc = "Provides properties that describe a Git commit and associated metadata."]
    #[serde(
        rename = "mergeTargetCommit",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub merge_target_commit: Option<GitCommitRef>,
    #[serde(
        rename = "resolutionError",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub resolution_error: Option<git_conflict::ResolutionError>,
    #[serde(
        rename = "resolutionStatus",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub resolution_status: Option<git_conflict::ResolutionStatus>,
    #[doc = ""]
    #[serde(
        rename = "resolvedBy",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub resolved_by: Option<IdentityRef>,
    #[serde(
        rename = "resolvedDate",
        default,
        with = "crate::date_time::rfc3339::option"
    )]
    pub resolved_date: Option<time::OffsetDateTime>,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub url: Option<String>,
}
impl GitConflict {
    pub fn new() -> Self {
        Self::default()
    }
}
pub mod git_conflict {
    use super::*;
    #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
    pub enum ConflictType {
        #[serde(rename = "none")]
        None,
        #[serde(rename = "addAdd")]
        AddAdd,
        #[serde(rename = "addRename")]
        AddRename,
        #[serde(rename = "deleteEdit")]
        DeleteEdit,
        #[serde(rename = "deleteRename")]
        DeleteRename,
        #[serde(rename = "directoryFile")]
        DirectoryFile,
        #[serde(rename = "directoryChild")]
        DirectoryChild,
        #[serde(rename = "editDelete")]
        EditDelete,
        #[serde(rename = "editEdit")]
        EditEdit,
        #[serde(rename = "fileDirectory")]
        FileDirectory,
        #[serde(rename = "rename1to2")]
        Rename1to2,
        #[serde(rename = "rename2to1")]
        Rename2to1,
        #[serde(rename = "renameAdd")]
        RenameAdd,
        #[serde(rename = "renameDelete")]
        RenameDelete,
        #[serde(rename = "renameRename")]
        RenameRename,
    }
    #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
    pub enum ResolutionError {
        #[serde(rename = "none")]
        None,
        #[serde(rename = "mergeContentNotFound")]
        MergeContentNotFound,
        #[serde(rename = "pathInUse")]
        PathInUse,
        #[serde(rename = "invalidPath")]
        InvalidPath,
        #[serde(rename = "unknownAction")]
        UnknownAction,
        #[serde(rename = "unknownMergeType")]
        UnknownMergeType,
        #[serde(rename = "otherError")]
        OtherError,
    }
    #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
    pub enum ResolutionStatus {
        #[serde(rename = "unresolved")]
        Unresolved,
        #[serde(rename = "partiallyResolved")]
        PartiallyResolved,
        #[serde(rename = "resolved")]
        Resolved,
    }
}
#[doc = "Data object for AddAdd conflict"]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct GitConflictAddAdd {
    #[serde(flatten)]
    pub git_conflict: GitConflict,
    #[doc = ""]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub resolution: Option<GitResolutionMergeContent>,
    #[doc = ""]
    #[serde(
        rename = "sourceBlob",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub source_blob: Option<GitBlobRef>,
    #[doc = ""]
    #[serde(
        rename = "targetBlob",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub target_blob: Option<GitBlobRef>,
}
impl GitConflictAddAdd {
    pub fn new() -> Self {
        Self::default()
    }
}
#[doc = "Data object for RenameAdd conflict"]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct GitConflictAddRename {
    #[serde(flatten)]
    pub git_conflict: GitConflict,
    #[doc = ""]
    #[serde(rename = "baseBlob", default, skip_serializing_if = "Option::is_none")]
    pub base_blob: Option<GitBlobRef>,
    #[doc = ""]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub resolution: Option<GitResolutionPathConflict>,
    #[doc = ""]
    #[serde(
        rename = "sourceBlob",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub source_blob: Option<GitBlobRef>,
    #[doc = ""]
    #[serde(
        rename = "targetBlob",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub target_blob: Option<GitBlobRef>,
    #[serde(
        rename = "targetOriginalPath",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub target_original_path: Option<String>,
}
impl GitConflictAddRename {
    pub fn new() -> Self {
        Self::default()
    }
}
#[doc = "Data object for EditDelete conflict"]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct GitConflictDeleteEdit {
    #[serde(flatten)]
    pub git_conflict: GitConflict,
    #[doc = ""]
    #[serde(rename = "baseBlob", default, skip_serializing_if = "Option::is_none")]
    pub base_blob: Option<GitBlobRef>,
    #[doc = ""]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub resolution: Option<GitResolutionPickOneAction>,
    #[doc = ""]
    #[serde(
        rename = "targetBlob",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub target_blob: Option<GitBlobRef>,
}
impl GitConflictDeleteEdit {
    pub fn new() -> Self {
        Self::default()
    }
}
#[doc = "Data object for RenameDelete conflict"]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct GitConflictDeleteRename {
    #[serde(flatten)]
    pub git_conflict: GitConflict,
    #[doc = ""]
    #[serde(rename = "baseBlob", default, skip_serializing_if = "Option::is_none")]
    pub base_blob: Option<GitBlobRef>,
    #[doc = ""]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub resolution: Option<GitResolutionPickOneAction>,
    #[doc = ""]
    #[serde(
        rename = "targetBlob",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub target_blob: Option<GitBlobRef>,
    #[serde(
        rename = "targetNewPath",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub target_new_path: Option<String>,
}
impl GitConflictDeleteRename {
    pub fn new() -> Self {
        Self::default()
    }
}
#[doc = "Data object for FileDirectory conflict"]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct GitConflictDirectoryFile {
    #[serde(flatten)]
    pub git_conflict: GitConflict,
    #[doc = ""]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub resolution: Option<GitResolutionPathConflict>,
    #[doc = ""]
    #[serde(
        rename = "sourceTree",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub source_tree: Option<GitTreeRef>,
    #[doc = ""]
    #[serde(
        rename = "targetBlob",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub target_blob: Option<GitBlobRef>,
}
impl GitConflictDirectoryFile {
    pub fn new() -> Self {
        Self::default()
    }
}
#[doc = "Data object for DeleteEdit conflict"]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct GitConflictEditDelete {
    #[serde(flatten)]
    pub git_conflict: GitConflict,
    #[doc = ""]
    #[serde(rename = "baseBlob", default, skip_serializing_if = "Option::is_none")]
    pub base_blob: Option<GitBlobRef>,
    #[doc = ""]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub resolution: Option<GitResolutionPickOneAction>,
    #[doc = ""]
    #[serde(
        rename = "sourceBlob",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub source_blob: Option<GitBlobRef>,
}
impl GitConflictEditDelete {
    pub fn new() -> Self {
        Self::default()
    }
}
#[doc = "Data object for EditEdit conflict"]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct GitConflictEditEdit {
    #[serde(flatten)]
    pub git_conflict: GitConflict,
    #[doc = ""]
    #[serde(rename = "baseBlob", default, skip_serializing_if = "Option::is_none")]
    pub base_blob: Option<GitBlobRef>,
    #[doc = ""]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub resolution: Option<GitResolutionMergeContent>,
    #[doc = ""]
    #[serde(
        rename = "sourceBlob",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub source_blob: Option<GitBlobRef>,
    #[doc = ""]
    #[serde(
        rename = "targetBlob",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub target_blob: Option<GitBlobRef>,
}
impl GitConflictEditEdit {
    pub fn new() -> Self {
        Self::default()
    }
}
#[doc = "Data object for DirectoryFile conflict"]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct GitConflictFileDirectory {
    #[serde(flatten)]
    pub git_conflict: GitConflict,
    #[doc = ""]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub resolution: Option<GitResolutionPathConflict>,
    #[doc = ""]
    #[serde(
        rename = "sourceBlob",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub source_blob: Option<GitBlobRef>,
    #[doc = ""]
    #[serde(
        rename = "targetTree",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub target_tree: Option<GitTreeRef>,
}
impl GitConflictFileDirectory {
    pub fn new() -> Self {
        Self::default()
    }
}
#[doc = "Data object for Rename1to2 conflict"]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct GitConflictRename1to2 {
    #[serde(flatten)]
    pub git_conflict: GitConflict,
    #[doc = ""]
    #[serde(rename = "baseBlob", default, skip_serializing_if = "Option::is_none")]
    pub base_blob: Option<GitBlobRef>,
    #[doc = ""]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub resolution: Option<GitResolutionRename1to2>,
    #[doc = ""]
    #[serde(
        rename = "sourceBlob",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub source_blob: Option<GitBlobRef>,
    #[serde(
        rename = "sourceNewPath",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub source_new_path: Option<String>,
    #[doc = ""]
    #[serde(
        rename = "targetBlob",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub target_blob: Option<GitBlobRef>,
    #[serde(
        rename = "targetNewPath",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub target_new_path: Option<String>,
}
impl GitConflictRename1to2 {
    pub fn new() -> Self {
        Self::default()
    }
}
#[doc = "Data object for Rename2to1 conflict"]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct GitConflictRename2to1 {
    #[serde(flatten)]
    pub git_conflict: GitConflict,
    #[doc = ""]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub resolution: Option<GitResolutionPathConflict>,
    #[doc = ""]
    #[serde(
        rename = "sourceNewBlob",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub source_new_blob: Option<GitBlobRef>,
    #[doc = ""]
    #[serde(
        rename = "sourceOriginalBlob",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub source_original_blob: Option<GitBlobRef>,
    #[serde(
        rename = "sourceOriginalPath",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub source_original_path: Option<String>,
    #[doc = ""]
    #[serde(
        rename = "targetNewBlob",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub target_new_blob: Option<GitBlobRef>,
    #[doc = ""]
    #[serde(
        rename = "targetOriginalBlob",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub target_original_blob: Option<GitBlobRef>,
    #[serde(
        rename = "targetOriginalPath",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub target_original_path: Option<String>,
}
impl GitConflictRename2to1 {
    pub fn new() -> Self {
        Self::default()
    }
}
#[doc = "Data object for AddRename conflict"]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct GitConflictRenameAdd {
    #[serde(flatten)]
    pub git_conflict: GitConflict,
    #[doc = ""]
    #[serde(rename = "baseBlob", default, skip_serializing_if = "Option::is_none")]
    pub base_blob: Option<GitBlobRef>,
    #[doc = ""]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub resolution: Option<GitResolutionPathConflict>,
    #[doc = ""]
    #[serde(
        rename = "sourceBlob",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub source_blob: Option<GitBlobRef>,
    #[serde(
        rename = "sourceOriginalPath",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub source_original_path: Option<String>,
    #[doc = ""]
    #[serde(
        rename = "targetBlob",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub target_blob: Option<GitBlobRef>,
}
impl GitConflictRenameAdd {
    pub fn new() -> Self {
        Self::default()
    }
}
#[doc = "Data object for DeleteRename conflict"]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct GitConflictRenameDelete {
    #[serde(flatten)]
    pub git_conflict: GitConflict,
    #[doc = ""]
    #[serde(rename = "baseBlob", default, skip_serializing_if = "Option::is_none")]
    pub base_blob: Option<GitBlobRef>,
    #[doc = ""]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub resolution: Option<GitResolutionPickOneAction>,
    #[doc = ""]
    #[serde(
        rename = "sourceBlob",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub source_blob: Option<GitBlobRef>,
    #[serde(
        rename = "sourceNewPath",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub source_new_path: Option<String>,
}
impl GitConflictRenameDelete {
    pub fn new() -> Self {
        Self::default()
    }
}
#[doc = "Data object for RenameRename conflict"]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct GitConflictRenameRename {
    #[serde(flatten)]
    pub git_conflict: GitConflict,
    #[doc = ""]
    #[serde(rename = "baseBlob", default, skip_serializing_if = "Option::is_none")]
    pub base_blob: Option<GitBlobRef>,
    #[serde(
        rename = "originalPath",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub original_path: Option<String>,
    #[doc = ""]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub resolution: Option<GitResolutionMergeContent>,
    #[doc = ""]
    #[serde(
        rename = "sourceBlob",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub source_blob: Option<GitBlobRef>,
    #[doc = ""]
    #[serde(
        rename = "targetBlob",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub target_blob: Option<GitBlobRef>,
}
impl GitConflictRenameRename {
    pub fn new() -> Self {
        Self::default()
    }
}
#[doc = ""]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct GitConflictUpdateResult {
    #[doc = "Conflict ID that was provided by input"]
    #[serde(
        rename = "conflictId",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub conflict_id: Option<i32>,
    #[doc = "Reason for failing"]
    #[serde(
        rename = "customMessage",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub custom_message: Option<String>,
    #[doc = ""]
    #[serde(
        rename = "updatedConflict",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub updated_conflict: Option<GitConflict>,
    #[doc = "Status of the update on the server"]
    #[serde(
        rename = "updateStatus",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub update_status: Option<git_conflict_update_result::UpdateStatus>,
}
impl GitConflictUpdateResult {
    pub fn new() -> Self {
        Self::default()
    }
}
pub mod git_conflict_update_result {
    use super::*;
    #[doc = "Status of the update on the server"]
    #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
    pub enum UpdateStatus {
        #[serde(rename = "succeeded")]
        Succeeded,
        #[serde(rename = "badRequest")]
        BadRequest,
        #[serde(rename = "invalidResolution")]
        InvalidResolution,
        #[serde(rename = "unsupportedConflictType")]
        UnsupportedConflictType,
        #[serde(rename = "notFound")]
        NotFound,
    }
}
#[doc = ""]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct GitDeletedRepository {
    #[serde(
        rename = "createdDate",
        default,
        with = "crate::date_time::rfc3339::option"
    )]
    pub created_date: Option<time::OffsetDateTime>,
    #[doc = ""]
    #[serde(rename = "deletedBy", default, skip_serializing_if = "Option::is_none")]
    pub deleted_by: Option<IdentityRef>,
    #[serde(
        rename = "deletedDate",
        default,
        with = "crate::date_time::rfc3339::option"
    )]
    pub deleted_date: Option<time::OffsetDateTime>,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub id: Option<String>,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub name: Option<String>,
    #[doc = "Represents a shallow reference to a TeamProject."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub project: Option<TeamProjectReference>,
}
impl GitDeletedRepository {
    pub fn new() -> Self {
        Self::default()
    }
}
#[doc = ""]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct GitDeletedRepositoryList {
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub count: Option<i32>,
    #[serde(default, skip_serializing_if = "Vec::is_empty")]
    pub value: Vec<GitDeletedRepository>,
}
impl GitDeletedRepositoryList {
    pub fn new() -> Self {
        Self::default()
    }
}
#[doc = ""]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct GitFilePathsCollection {
    #[serde(rename = "commitId", default, skip_serializing_if = "Option::is_none")]
    pub commit_id: Option<String>,
    #[serde(default, skip_serializing_if = "Vec::is_empty")]
    pub paths: Vec<String>,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub url: Option<String>,
}
impl GitFilePathsCollection {
    pub fn new() -> Self {
        Self::default()
    }
}
#[doc = "Status information about a requested fork operation."]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct GitForkOperationStatusDetail {
    #[doc = "All valid steps for the forking process"]
    #[serde(rename = "allSteps", default, skip_serializing_if = "Vec::is_empty")]
    pub all_steps: Vec<String>,
    #[doc = "Index into AllSteps for the current step"]
    #[serde(
        rename = "currentStep",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub current_step: Option<i32>,
    #[doc = "Error message if the operation failed."]
    #[serde(
        rename = "errorMessage",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub error_message: Option<String>,
}
impl GitForkOperationStatusDetail {
    pub fn new() -> Self {
        Self::default()
    }
}
#[doc = "Information about a fork ref."]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
pub struct GitForkRef {
    #[serde(flatten)]
    pub git_ref: GitRef,
    #[doc = ""]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub repository: Option<GitRepository>,
}
impl GitForkRef {
    pub fn new(git_ref: GitRef) -> Self {
        Self {
            git_ref,
            repository: None,
        }
    }
}
#[doc = "Request to sync data between two forks."]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct GitForkSyncRequest {
    #[doc = "Links"]
    #[serde(rename = "_links", default, skip_serializing_if = "Option::is_none")]
    pub links: Option<serde_json::Value>,
    #[doc = "Status information about a requested fork operation."]
    #[serde(
        rename = "detailedStatus",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub detailed_status: Option<GitForkOperationStatusDetail>,
    #[doc = "Unique identifier for the operation."]
    #[serde(
        rename = "operationId",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub operation_id: Option<i32>,
    #[doc = "Globally unique key for a repository."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub source: Option<GlobalGitRepositoryKey>,
    #[doc = "If supplied, the set of ref mappings to use when performing a \"sync\" or create. If missing, all refs will be synchronized."]
    #[serde(
        rename = "sourceToTargetRefs",
        default,
        skip_serializing_if = "Vec::is_empty"
    )]
    pub source_to_target_refs: Vec<SourceToTargetRef>,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub status: Option<git_fork_sync_request::Status>,
}
impl GitForkSyncRequest {
    pub fn new() -> Self {
        Self::default()
    }
}
pub mod git_fork_sync_request {
    use super::*;
    #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
    pub enum Status {
        #[serde(rename = "queued")]
        Queued,
        #[serde(rename = "inProgress")]
        InProgress,
        #[serde(rename = "completed")]
        Completed,
        #[serde(rename = "failed")]
        Failed,
        #[serde(rename = "abandoned")]
        Abandoned,
    }
}
#[doc = ""]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct GitForkSyncRequestList {
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub count: Option<i32>,
    #[serde(default, skip_serializing_if = "Vec::is_empty")]
    pub value: Vec<GitForkSyncRequest>,
}
impl GitForkSyncRequestList {
    pub fn new() -> Self {
        Self::default()
    }
}
#[doc = "Parameters for creating a fork request"]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct GitForkSyncRequestParameters {
    #[doc = "Globally unique key for a repository."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub source: Option<GlobalGitRepositoryKey>,
    #[doc = "If supplied, the set of ref mappings to use when performing a \"sync\" or create. If missing, all refs will be synchronized."]
    #[serde(
        rename = "sourceToTargetRefs",
        default,
        skip_serializing_if = "Vec::is_empty"
    )]
    pub source_to_target_refs: Vec<SourceToTargetRef>,
}
impl GitForkSyncRequestParameters {
    pub fn new() -> Self {
        Self::default()
    }
}
#[doc = ""]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
pub struct GitForkTeamProjectReference {
    #[serde(flatten)]
    pub team_project_reference: TeamProjectReference,
}
impl GitForkTeamProjectReference {
    pub fn new(team_project_reference: TeamProjectReference) -> Self {
        Self {
            team_project_reference,
        }
    }
}
#[doc = ""]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct GitImportFailedEvent {
    #[serde(
        rename = "sourceRepositoryName",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub source_repository_name: Option<String>,
    #[doc = ""]
    #[serde(
        rename = "targetRepository",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub target_repository: Option<GitRepository>,
}
impl GitImportFailedEvent {
    pub fn new() -> Self {
        Self::default()
    }
}
#[doc = "Parameter for creating a git import request when source is Git version control"]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct GitImportGitSource {
    #[doc = "Tells if this is a sync request or not"]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub overwrite: Option<bool>,
    #[doc = "Url for the source repo"]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub url: Option<String>,
}
impl GitImportGitSource {
    pub fn new() -> Self {
        Self::default()
    }
}
#[doc = "A request to import data from a remote source control system."]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct GitImportRequest {
    #[doc = "Links"]
    #[serde(rename = "_links", default, skip_serializing_if = "Option::is_none")]
    pub links: Option<serde_json::Value>,
    #[doc = "Additional status information about an import request."]
    #[serde(
        rename = "detailedStatus",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub detailed_status: Option<GitImportStatusDetail>,
    #[doc = "The unique identifier for this import request."]
    #[serde(
        rename = "importRequestId",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub import_request_id: Option<i32>,
    #[doc = "Parameters for creating an import request"]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub parameters: Option<GitImportRequestParameters>,
    #[doc = ""]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub repository: Option<GitRepository>,
    #[doc = "Current status of the import."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub status: Option<git_import_request::Status>,
    #[doc = "A link back to this import request resource."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub url: Option<String>,
}
impl GitImportRequest {
    pub fn new() -> Self {
        Self::default()
    }
}
pub mod git_import_request {
    use super::*;
    #[doc = "Current status of the import."]
    #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
    pub enum Status {
        #[serde(rename = "queued")]
        Queued,
        #[serde(rename = "inProgress")]
        InProgress,
        #[serde(rename = "completed")]
        Completed,
        #[serde(rename = "failed")]
        Failed,
        #[serde(rename = "abandoned")]
        Abandoned,
    }
}
#[doc = ""]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct GitImportRequestList {
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub count: Option<i32>,
    #[serde(default, skip_serializing_if = "Vec::is_empty")]
    pub value: Vec<GitImportRequest>,
}
impl GitImportRequestList {
    pub fn new() -> Self {
        Self::default()
    }
}
#[doc = "Parameters for creating an import request"]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct GitImportRequestParameters {
    #[doc = "Option to delete service endpoint when import is done"]
    #[serde(
        rename = "deleteServiceEndpointAfterImportIsDone",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub delete_service_endpoint_after_import_is_done: Option<bool>,
    #[doc = "Parameter for creating a git import request when source is Git version control"]
    #[serde(rename = "gitSource", default, skip_serializing_if = "Option::is_none")]
    pub git_source: Option<GitImportGitSource>,
    #[doc = "Service Endpoint for connection to external endpoint"]
    #[serde(
        rename = "serviceEndpointId",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub service_endpoint_id: Option<String>,
    #[doc = "Parameter for creating a git import request when source is tfvc version control"]
    #[serde(
        rename = "tfvcSource",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub tfvc_source: Option<GitImportTfvcSource>,
}
impl GitImportRequestParameters {
    pub fn new() -> Self {
        Self::default()
    }
}
#[doc = "Additional status information about an import request."]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct GitImportStatusDetail {
    #[doc = "All valid steps for the import process"]
    #[serde(rename = "allSteps", default, skip_serializing_if = "Vec::is_empty")]
    pub all_steps: Vec<String>,
    #[doc = "Index into AllSteps for the current step"]
    #[serde(
        rename = "currentStep",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub current_step: Option<i32>,
    #[doc = "Error message if the operation failed."]
    #[serde(
        rename = "errorMessage",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub error_message: Option<String>,
}
impl GitImportStatusDetail {
    pub fn new() -> Self {
        Self::default()
    }
}
#[doc = ""]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct GitImportSucceededEvent {
    #[serde(
        rename = "sourceRepositoryName",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub source_repository_name: Option<String>,
    #[doc = ""]
    #[serde(
        rename = "targetRepository",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub target_repository: Option<GitRepository>,
}
impl GitImportSucceededEvent {
    pub fn new() -> Self {
        Self::default()
    }
}
#[doc = "Parameter for creating a git import request when source is tfvc version control"]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct GitImportTfvcSource {
    #[doc = "Set true to import History, false otherwise"]
    #[serde(
        rename = "importHistory",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub import_history: Option<bool>,
    #[doc = "Get history for last n days (max allowed value is 180 days)"]
    #[serde(
        rename = "importHistoryDurationInDays",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub import_history_duration_in_days: Option<i32>,
    #[doc = "Path which we want to import (this can be copied from Path Control in Explorer)"]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub path: Option<String>,
}
impl GitImportTfvcSource {
    pub fn new() -> Self {
        Self::default()
    }
}
#[doc = ""]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct GitItem {
    #[serde(flatten)]
    pub item_model: ItemModel,
    #[doc = "SHA1 of commit item was fetched at"]
    #[serde(rename = "commitId", default, skip_serializing_if = "Option::is_none")]
    pub commit_id: Option<String>,
    #[doc = "Type of object (Commit, Tree, Blob, Tag, ...)"]
    #[serde(
        rename = "gitObjectType",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub git_object_type: Option<git_item::GitObjectType>,
    #[doc = "Provides properties that describe a Git commit and associated metadata."]
    #[serde(
        rename = "latestProcessedChange",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub latest_processed_change: Option<GitCommitRef>,
    #[doc = "Git object id"]
    #[serde(rename = "objectId", default, skip_serializing_if = "Option::is_none")]
    pub object_id: Option<String>,
    #[doc = "Git object id"]
    #[serde(
        rename = "originalObjectId",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub original_object_id: Option<String>,
}
impl GitItem {
    pub fn new() -> Self {
        Self::default()
    }
}
pub mod git_item {
    use super::*;
    #[doc = "Type of object (Commit, Tree, Blob, Tag, ...)"]
    #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
    pub enum GitObjectType {
        #[serde(rename = "bad")]
        Bad,
        #[serde(rename = "commit")]
        Commit,
        #[serde(rename = "tree")]
        Tree,
        #[serde(rename = "blob")]
        Blob,
        #[serde(rename = "tag")]
        Tag,
        #[serde(rename = "ext2")]
        Ext2,
        #[serde(rename = "ofsDelta")]
        OfsDelta,
        #[serde(rename = "refDelta")]
        RefDelta,
    }
}
#[doc = ""]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct GitItemDescriptor {
    #[doc = "Path to item"]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub path: Option<String>,
    #[doc = "Specifies whether to include children (OneLevel), all descendants (Full), or None"]
    #[serde(
        rename = "recursionLevel",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub recursion_level: Option<git_item_descriptor::RecursionLevel>,
    #[doc = "Version string (interpretation based on VersionType defined in subclass"]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub version: Option<String>,
    #[doc = "Version modifiers (e.g. previous)"]
    #[serde(
        rename = "versionOptions",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub version_options: Option<git_item_descriptor::VersionOptions>,
    #[doc = "How to interpret version (branch,tag,commit)"]
    #[serde(
        rename = "versionType",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub version_type: Option<git_item_descriptor::VersionType>,
}
impl GitItemDescriptor {
    pub fn new() -> Self {
        Self::default()
    }
}
pub mod git_item_descriptor {
    use super::*;
    #[doc = "Specifies whether to include children (OneLevel), all descendants (Full), or None"]
    #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
    pub enum RecursionLevel {
        #[serde(rename = "none")]
        None,
        #[serde(rename = "oneLevel")]
        OneLevel,
        #[serde(rename = "oneLevelPlusNestedEmptyFolders")]
        OneLevelPlusNestedEmptyFolders,
        #[serde(rename = "full")]
        Full,
    }
    #[doc = "Version modifiers (e.g. previous)"]
    #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
    pub enum VersionOptions {
        #[serde(rename = "none")]
        None,
        #[serde(rename = "previousChange")]
        PreviousChange,
        #[serde(rename = "firstParent")]
        FirstParent,
    }
    #[doc = "How to interpret version (branch,tag,commit)"]
    #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
    pub enum VersionType {
        #[serde(rename = "branch")]
        Branch,
        #[serde(rename = "tag")]
        Tag,
        #[serde(rename = "commit")]
        Commit,
    }
}
#[doc = ""]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct GitItemList {
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub count: Option<i32>,
    #[serde(default, skip_serializing_if = "Vec::is_empty")]
    pub value: Vec<GitItem>,
}
impl GitItemList {
    pub fn new() -> Self {
        Self::default()
    }
}
#[doc = ""]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct GitItemRequestData {
    #[doc = "Whether to include metadata for all items"]
    #[serde(
        rename = "includeContentMetadata",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub include_content_metadata: Option<bool>,
    #[doc = "Whether to include the _links field on the shallow references"]
    #[serde(
        rename = "includeLinks",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub include_links: Option<bool>,
    #[doc = "Collection of items to fetch, including path, version, and recursion level"]
    #[serde(
        rename = "itemDescriptors",
        default,
        skip_serializing_if = "Vec::is_empty"
    )]
    pub item_descriptors: Vec<GitItemDescriptor>,
    #[doc = "Whether to include shallow ref to commit that last changed each item"]
    #[serde(
        rename = "latestProcessedChange",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub latest_processed_change: Option<bool>,
}
impl GitItemRequestData {
    pub fn new() -> Self {
        Self::default()
    }
}
#[doc = ""]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct GitLastChangeItem {
    #[doc = "Gets or sets the commit Id this item was modified most recently for the provided version."]
    #[serde(rename = "commitId", default, skip_serializing_if = "Option::is_none")]
    pub commit_id: Option<String>,
    #[doc = "Gets or sets the path of the item."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub path: Option<String>,
}
impl GitLastChangeItem {
    pub fn new() -> Self {
        Self::default()
    }
}
#[doc = ""]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct GitLastChangeTreeItems {
    #[doc = "The list of commits referenced by Items, if they were requested."]
    #[serde(default, skip_serializing_if = "Vec::is_empty")]
    pub commits: Vec<GitCommitRef>,
    #[doc = "The last change of items."]
    #[serde(default, skip_serializing_if = "Vec::is_empty")]
    pub items: Vec<GitLastChangeItem>,
    #[doc = "The last explored time, in case the result is not comprehensive. Null otherwise."]
    #[serde(
        rename = "lastExploredTime",
        default,
        with = "crate::date_time::rfc3339::option"
    )]
    pub last_explored_time: Option<time::OffsetDateTime>,
}
impl GitLastChangeTreeItems {
    pub fn new() -> Self {
        Self::default()
    }
}
#[doc = ""]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct GitMerge {
    #[serde(flatten)]
    pub git_merge_parameters: GitMergeParameters,
    #[doc = "Links"]
    #[serde(rename = "_links", default, skip_serializing_if = "Option::is_none")]
    pub links: Option<serde_json::Value>,
    #[doc = "Status information about a requested merge operation."]
    #[serde(
        rename = "detailedStatus",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub detailed_status: Option<GitMergeOperationStatusDetail>,
    #[doc = "Unique identifier for the merge operation."]
    #[serde(
        rename = "mergeOperationId",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub merge_operation_id: Option<i32>,
    #[doc = "Status of the merge operation."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub status: Option<git_merge::Status>,
}
impl GitMerge {
    pub fn new() -> Self {
        Self::default()
    }
}
pub mod git_merge {
    use super::*;
    #[doc = "Status of the merge operation."]
    #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
    pub enum Status {
        #[serde(rename = "queued")]
        Queued,
        #[serde(rename = "inProgress")]
        InProgress,
        #[serde(rename = "completed")]
        Completed,
        #[serde(rename = "failed")]
        Failed,
        #[serde(rename = "abandoned")]
        Abandoned,
    }
}
#[doc = "Status information about a requested merge operation."]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct GitMergeOperationStatusDetail {
    #[doc = "Error message if the operation failed."]
    #[serde(
        rename = "failureMessage",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub failure_message: Option<String>,
    #[doc = "The commitId of the resultant merge commit."]
    #[serde(
        rename = "mergeCommitId",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub merge_commit_id: Option<String>,
}
impl GitMergeOperationStatusDetail {
    pub fn new() -> Self {
        Self::default()
    }
}
#[doc = ""]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct GitMergeOriginRef {
    #[serde(
        rename = "cherryPickId",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub cherry_pick_id: Option<i32>,
    #[serde(
        rename = "pullRequestId",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub pull_request_id: Option<i32>,
    #[serde(rename = "revertId", default, skip_serializing_if = "Option::is_none")]
    pub revert_id: Option<i32>,
}
impl GitMergeOriginRef {
    pub fn new() -> Self {
        Self::default()
    }
}
#[doc = "Parameters required for performing git merge."]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct GitMergeParameters {
    #[doc = "Comment or message of the commit."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub comment: Option<String>,
    #[doc = "An enumeration of the parent commit IDs for the merge  commit."]
    #[serde(default, skip_serializing_if = "Vec::is_empty")]
    pub parents: Vec<String>,
}
impl GitMergeParameters {
    pub fn new() -> Self {
        Self::default()
    }
}
#[doc = "Git object identifier and type information."]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct GitObject {
    #[doc = "Object Id (Sha1Id)."]
    #[serde(rename = "objectId", default, skip_serializing_if = "Option::is_none")]
    pub object_id: Option<String>,
    #[doc = "Type of object (Commit, Tree, Blob, Tag)"]
    #[serde(
        rename = "objectType",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub object_type: Option<git_object::ObjectType>,
}
impl GitObject {
    pub fn new() -> Self {
        Self::default()
    }
}
pub mod git_object {
    use super::*;
    #[doc = "Type of object (Commit, Tree, Blob, Tag)"]
    #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
    pub enum ObjectType {
        #[serde(rename = "bad")]
        Bad,
        #[serde(rename = "commit")]
        Commit,
        #[serde(rename = "tree")]
        Tree,
        #[serde(rename = "blob")]
        Blob,
        #[serde(rename = "tag")]
        Tag,
        #[serde(rename = "ext2")]
        Ext2,
        #[serde(rename = "ofsDelta")]
        OfsDelta,
        #[serde(rename = "refDelta")]
        RefDelta,
    }
}
#[doc = ""]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct GitPathAction {
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub action: Option<git_path_action::Action>,
    #[serde(
        rename = "base64Content",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub base64_content: Option<String>,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub path: Option<String>,
    #[serde(
        rename = "rawTextContent",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub raw_text_content: Option<String>,
    #[serde(
        rename = "targetPath",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub target_path: Option<String>,
}
impl GitPathAction {
    pub fn new() -> Self {
        Self::default()
    }
}
pub mod git_path_action {
    use super::*;
    #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
    pub enum Action {
        #[serde(rename = "none")]
        None,
        #[serde(rename = "edit")]
        Edit,
        #[serde(rename = "delete")]
        Delete,
        #[serde(rename = "add")]
        Add,
        #[serde(rename = "rename")]
        Rename,
    }
}
#[doc = ""]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct GitPathToItemsCollection {
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub items: Option<serde_json::Value>,
}
impl GitPathToItemsCollection {
    pub fn new() -> Self {
        Self::default()
    }
}
#[doc = ""]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct GitPolicyConfigurationResponse {
    #[doc = "The HTTP client methods find the continuation token header in the response and populate this field."]
    #[serde(
        rename = "continuationToken",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub continuation_token: Option<String>,
    #[serde(
        rename = "policyConfigurations",
        default,
        skip_serializing_if = "Vec::is_empty"
    )]
    pub policy_configurations: Vec<PolicyConfiguration>,
}
impl GitPolicyConfigurationResponse {
    pub fn new() -> Self {
        Self::default()
    }
}
#[doc = "Represents all the data associated with a pull request."]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
pub struct GitPullRequest {
    #[doc = "Links"]
    #[serde(rename = "_links", default, skip_serializing_if = "Option::is_none")]
    pub links: Option<serde_json::Value>,
    #[doc = "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}```"]
    #[serde(
        rename = "artifactId",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub artifact_id: Option<String>,
    #[doc = ""]
    #[serde(
        rename = "autoCompleteSetBy",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub auto_complete_set_by: Option<IdentityRef>,
    #[doc = ""]
    #[serde(rename = "closedBy", default, skip_serializing_if = "Option::is_none")]
    pub closed_by: Option<IdentityRef>,
    #[doc = "The date when the pull request was closed (completed, abandoned, or merged externally)."]
    #[serde(
        rename = "closedDate",
        default,
        with = "crate::date_time::rfc3339::option"
    )]
    pub closed_date: Option<time::OffsetDateTime>,
    #[doc = "The code review ID of the pull request. Used internally."]
    #[serde(
        rename = "codeReviewId",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub code_review_id: Option<i32>,
    #[doc = "The commits contained in the pull request."]
    #[serde(default, skip_serializing_if = "Vec::is_empty")]
    pub commits: Vec<GitCommitRef>,
    #[doc = "Preferences about how the pull request should be completed."]
    #[serde(
        rename = "completionOptions",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub completion_options: Option<GitPullRequestCompletionOptions>,
    #[doc = "The most recent date at which the pull request entered the queue to be completed. Used internally."]
    #[serde(
        rename = "completionQueueTime",
        default,
        with = "crate::date_time::rfc3339::option"
    )]
    pub completion_queue_time: Option<time::OffsetDateTime>,
    #[doc = ""]
    #[serde(rename = "createdBy")]
    pub created_by: IdentityRef,
    #[doc = "The date when the pull request was created."]
    #[serde(rename = "creationDate", with = "crate::date_time::rfc3339")]
    pub creation_date: time::OffsetDateTime,
    #[doc = "The description of the pull request."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub description: Option<String>,
    #[doc = "Information about a fork ref."]
    #[serde(
        rename = "forkSource",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub fork_source: Option<GitForkRef>,
    #[doc = "Multiple mergebases warning"]
    #[serde(
        rename = "hasMultipleMergeBases",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub has_multiple_merge_bases: Option<bool>,
    #[doc = "Draft / WIP pull request."]
    #[serde(rename = "isDraft")]
    pub is_draft: bool,
    #[doc = "The labels associated with the pull request."]
    #[serde(default, skip_serializing_if = "Vec::is_empty")]
    pub labels: Vec<WebApiTagDefinition>,
    #[doc = "Provides properties that describe a Git commit and associated metadata."]
    #[serde(
        rename = "lastMergeCommit",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub last_merge_commit: Option<GitCommitRef>,
    #[doc = "Provides properties that describe a Git commit and associated metadata."]
    #[serde(
        rename = "lastMergeSourceCommit",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub last_merge_source_commit: Option<GitCommitRef>,
    #[doc = "Provides properties that describe a Git commit and associated metadata."]
    #[serde(
        rename = "lastMergeTargetCommit",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub last_merge_target_commit: Option<GitCommitRef>,
    #[doc = "If set, pull request merge failed for this reason."]
    #[serde(
        rename = "mergeFailureMessage",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub merge_failure_message: Option<String>,
    #[doc = "The type of failure (if any) of the pull request merge."]
    #[serde(
        rename = "mergeFailureType",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub merge_failure_type: Option<git_pull_request::MergeFailureType>,
    #[doc = "The ID of the job used to run the pull request merge. Used internally."]
    #[serde(rename = "mergeId", default, skip_serializing_if = "Option::is_none")]
    pub merge_id: Option<String>,
    #[doc = "The options which are used when a pull request merge is created."]
    #[serde(
        rename = "mergeOptions",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub merge_options: Option<GitPullRequestMergeOptions>,
    #[doc = "The current status of the pull request merge."]
    #[serde(
        rename = "mergeStatus",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub merge_status: Option<git_pull_request::MergeStatus>,
    #[doc = "The ID of the pull request."]
    #[serde(rename = "pullRequestId")]
    pub pull_request_id: i32,
    #[doc = "Used internally."]
    #[serde(rename = "remoteUrl", default, skip_serializing_if = "Option::is_none")]
    pub remote_url: Option<String>,
    #[doc = ""]
    pub repository: GitRepository,
    #[doc = "A list of reviewers on the pull request along with the state of their votes."]
    #[serde(default, skip_serializing_if = "Vec::is_empty")]
    pub reviewers: Vec<IdentityRefWithVote>,
    #[doc = "The name of the source branch of the pull request."]
    #[serde(rename = "sourceRefName")]
    pub source_ref_name: String,
    #[doc = "The status of the pull request."]
    pub status: git_pull_request::Status,
    #[doc = "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."]
    #[serde(
        rename = "supportsIterations",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub supports_iterations: Option<bool>,
    #[doc = "The name of the target branch of the pull request."]
    #[serde(rename = "targetRefName")]
    pub target_ref_name: String,
    #[doc = "The title of the pull request."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub title: Option<String>,
    #[doc = "Used internally."]
    pub url: String,
    #[doc = "Any work item references associated with this pull request."]
    #[serde(
        rename = "workItemRefs",
        default,
        skip_serializing_if = "Vec::is_empty"
    )]
    pub work_item_refs: Vec<ResourceRef>,
}
impl GitPullRequest {
    pub fn new(
        created_by: IdentityRef,
        creation_date: time::OffsetDateTime,
        is_draft: bool,
        pull_request_id: i32,
        repository: GitRepository,
        source_ref_name: String,
        status: git_pull_request::Status,
        target_ref_name: String,
        url: String,
    ) -> Self {
        Self {
            links: None,
            artifact_id: None,
            auto_complete_set_by: None,
            closed_by: None,
            closed_date: None,
            code_review_id: None,
            commits: Vec::new(),
            completion_options: None,
            completion_queue_time: None,
            created_by,
            creation_date,
            description: None,
            fork_source: None,
            has_multiple_merge_bases: None,
            is_draft,
            labels: Vec::new(),
            last_merge_commit: None,
            last_merge_source_commit: None,
            last_merge_target_commit: None,
            merge_failure_message: None,
            merge_failure_type: None,
            merge_id: None,
            merge_options: None,
            merge_status: None,
            pull_request_id,
            remote_url: None,
            repository,
            reviewers: Vec::new(),
            source_ref_name,
            status,
            supports_iterations: None,
            target_ref_name,
            title: None,
            url,
            work_item_refs: Vec::new(),
        }
    }
}
pub mod git_pull_request {
    use super::*;
    #[doc = "The type of failure (if any) of the pull request merge."]
    #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
    pub enum MergeFailureType {
        #[serde(rename = "none")]
        None,
        #[serde(rename = "unknown")]
        Unknown,
        #[serde(rename = "caseSensitive")]
        CaseSensitive,
        #[serde(rename = "objectTooLarge")]
        ObjectTooLarge,
    }
    #[doc = "The current status of the pull request merge."]
    #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
    pub enum MergeStatus {
        #[serde(rename = "notSet")]
        NotSet,
        #[serde(rename = "queued")]
        Queued,
        #[serde(rename = "conflicts")]
        Conflicts,
        #[serde(rename = "succeeded")]
        Succeeded,
        #[serde(rename = "rejectedByPolicy")]
        RejectedByPolicy,
        #[serde(rename = "failure")]
        Failure,
    }
    #[doc = "The status of the pull request."]
    #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
    pub enum Status {
        #[serde(rename = "notSet")]
        NotSet,
        #[serde(rename = "active")]
        Active,
        #[serde(rename = "abandoned")]
        Abandoned,
        #[serde(rename = "completed")]
        Completed,
        #[serde(rename = "all")]
        All,
    }
}
#[doc = "Change made in a pull request."]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
pub struct GitPullRequestChange {
    #[serde(flatten)]
    pub git_change: GitChange,
    #[doc = "ID used to track files through multiple changes."]
    #[serde(
        rename = "changeTrackingId",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub change_tracking_id: Option<i32>,
}
impl GitPullRequestChange {
    pub fn new(git_change: GitChange) -> Self {
        Self {
            git_change,
            change_tracking_id: None,
        }
    }
}
#[doc = "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)."]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct GitPullRequestCommentThread {
    #[serde(flatten)]
    pub comment_thread: CommentThread,
    #[doc = "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."]
    #[serde(
        rename = "pullRequestThreadContext",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub pull_request_thread_context: Option<GitPullRequestCommentThreadContext>,
}
impl GitPullRequestCommentThread {
    pub fn new() -> Self {
        Self::default()
    }
}
#[doc = "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."]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct GitPullRequestCommentThreadContext {
    #[doc = "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."]
    #[serde(
        rename = "changeTrackingId",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub change_tracking_id: Option<i32>,
    #[doc = "Comment iteration context is used to identify which diff was being viewed when the thread was created."]
    #[serde(
        rename = "iterationContext",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub iteration_context: Option<CommentIterationContext>,
    #[doc = "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."]
    #[serde(
        rename = "trackingCriteria",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub tracking_criteria: Option<CommentTrackingCriteria>,
}
impl GitPullRequestCommentThreadContext {
    pub fn new() -> Self {
        Self::default()
    }
}
#[doc = ""]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct GitPullRequestCommentThreadList {
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub count: Option<i32>,
    #[serde(default, skip_serializing_if = "Vec::is_empty")]
    pub value: Vec<GitPullRequestCommentThread>,
}
impl GitPullRequestCommentThreadList {
    pub fn new() -> Self {
        Self::default()
    }
}
#[doc = "Preferences about how the pull request should be completed."]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct GitPullRequestCompletionOptions {
    #[doc = "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)."]
    #[serde(
        rename = "autoCompleteIgnoreConfigIds",
        default,
        skip_serializing_if = "Vec::is_empty"
    )]
    pub auto_complete_ignore_config_ids: Vec<i32>,
    #[doc = "If true, policies will be explicitly bypassed while the pull request is completed."]
    #[serde(
        rename = "bypassPolicy",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub bypass_policy: Option<bool>,
    #[doc = "If policies are bypassed, this reason is stored as to why bypass was used."]
    #[serde(
        rename = "bypassReason",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub bypass_reason: Option<String>,
    #[doc = "If true, the source branch of the pull request will be deleted after completion."]
    #[serde(
        rename = "deleteSourceBranch",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub delete_source_branch: Option<bool>,
    #[doc = "If set, this will be used as the commit message of the merge commit."]
    #[serde(
        rename = "mergeCommitMessage",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub merge_commit_message: Option<String>,
    #[doc = "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."]
    #[serde(
        rename = "mergeStrategy",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub merge_strategy: Option<git_pull_request_completion_options::MergeStrategy>,
    #[doc = "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."]
    #[serde(
        rename = "squashMerge",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub squash_merge: Option<bool>,
    #[doc = "If true, we will attempt to transition any work items linked to the pull request into the next logical state (i.e. Active -> Resolved)"]
    #[serde(
        rename = "transitionWorkItems",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub transition_work_items: Option<bool>,
    #[doc = "If true, the current completion attempt was triggered via auto-complete. Used internally."]
    #[serde(
        rename = "triggeredByAutoComplete",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub triggered_by_auto_complete: Option<bool>,
}
impl GitPullRequestCompletionOptions {
    pub fn new() -> Self {
        Self::default()
    }
}
pub mod git_pull_request_completion_options {
    use super::*;
    #[doc = "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."]
    #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
    pub enum MergeStrategy {
        #[serde(rename = "noFastForward")]
        NoFastForward,
        #[serde(rename = "squash")]
        Squash,
        #[serde(rename = "rebase")]
        Rebase,
        #[serde(rename = "rebaseMerge")]
        RebaseMerge,
    }
}
#[doc = "Pull Request create options"]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
pub struct GitPullRequestCreateOptions {
    #[doc = "The description of the pull request."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub description: Option<String>,
    #[doc = "Draft / WIP pull request."]
    #[serde(rename = "isDraft", default, skip_serializing_if = "Option::is_none")]
    pub is_draft: Option<bool>,
    #[doc = "The labels associated with the pull request."]
    #[serde(default, skip_serializing_if = "Vec::is_empty")]
    pub labels: Vec<WebApiTagDefinition>,
    #[doc = "The name of the source branch of the pull request."]
    #[serde(rename = "sourceRefName")]
    pub source_ref_name: String,
    #[doc = "The name of the target branch of the pull request."]
    #[serde(rename = "targetRefName")]
    pub target_ref_name: String,
    #[doc = "The title of the pull request."]
    pub title: String,
    #[doc = "Any work item references associated with this pull request."]
    #[serde(
        rename = "workItemRefs",
        default,
        skip_serializing_if = "Vec::is_empty"
    )]
    pub work_item_refs: Vec<ResourceRef>,
    #[doc = "A list of reviewers on the pull request."]
    #[serde(default, skip_serializing_if = "Vec::is_empty")]
    pub reviewers: Vec<IdentityId>,
}
impl GitPullRequestCreateOptions {
    pub fn new(source_ref_name: String, target_ref_name: String, title: String) -> Self {
        Self {
            description: None,
            is_draft: None,
            labels: Vec::new(),
            source_ref_name,
            target_ref_name,
            title,
            work_item_refs: Vec::new(),
            reviewers: Vec::new(),
        }
    }
}
#[doc = "Provides properties that describe a Git pull request iteration. Iterations are created as a result of creating and pushing updates to a pull request."]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct GitPullRequestIteration {
    #[doc = "Links"]
    #[serde(rename = "_links", default, skip_serializing_if = "Option::is_none")]
    pub links: Option<serde_json::Value>,
    #[doc = ""]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub author: Option<IdentityRef>,
    #[doc = "Changes included with the pull request iteration."]
    #[serde(rename = "changeList", default, skip_serializing_if = "Vec::is_empty")]
    pub change_list: Vec<GitPullRequestChange>,
    #[doc = "The commits included with the pull request iteration."]
    #[serde(default, skip_serializing_if = "Vec::is_empty")]
    pub commits: Vec<GitCommitRef>,
    #[doc = "Provides properties that describe a Git commit and associated metadata."]
    #[serde(
        rename = "commonRefCommit",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub common_ref_commit: Option<GitCommitRef>,
    #[doc = "The creation date of the pull request iteration."]
    #[serde(
        rename = "createdDate",
        default,
        with = "crate::date_time::rfc3339::option"
    )]
    pub created_date: Option<time::OffsetDateTime>,
    #[doc = "Description of the pull request iteration."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub description: Option<String>,
    #[doc = "Indicates if the Commits property contains a truncated list of commits in this pull request iteration."]
    #[serde(
        rename = "hasMoreCommits",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub has_more_commits: Option<bool>,
    #[doc = "ID of the pull request iteration. Iterations are created as a result of creating and pushing updates to a pull request."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub id: Option<i32>,
    #[doc = "If the iteration reason is Retarget, this is the refName of the new target"]
    #[serde(
        rename = "newTargetRefName",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub new_target_ref_name: Option<String>,
    #[doc = "If the iteration reason is Retarget, this is the original target refName"]
    #[serde(
        rename = "oldTargetRefName",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub old_target_ref_name: Option<String>,
    #[doc = ""]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub push: Option<GitPushRef>,
    #[doc = "The reason for which the pull request iteration was created."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub reason: Option<git_pull_request_iteration::Reason>,
    #[doc = "Provides properties that describe a Git commit and associated metadata."]
    #[serde(
        rename = "sourceRefCommit",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub source_ref_commit: Option<GitCommitRef>,
    #[doc = "Provides properties that describe a Git commit and associated metadata."]
    #[serde(
        rename = "targetRefCommit",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub target_ref_commit: Option<GitCommitRef>,
    #[doc = "The updated date of the pull request iteration."]
    #[serde(
        rename = "updatedDate",
        default,
        with = "crate::date_time::rfc3339::option"
    )]
    pub updated_date: Option<time::OffsetDateTime>,
}
impl GitPullRequestIteration {
    pub fn new() -> Self {
        Self::default()
    }
}
pub mod git_pull_request_iteration {
    use super::*;
    #[doc = "The reason for which the pull request iteration was created."]
    #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
    pub enum Reason {
        #[serde(rename = "push")]
        Push,
        #[serde(rename = "forcePush")]
        ForcePush,
        #[serde(rename = "create")]
        Create,
        #[serde(rename = "rebase")]
        Rebase,
        #[serde(rename = "unknown")]
        Unknown,
        #[serde(rename = "retarget")]
        Retarget,
    }
}
#[doc = "Collection of changes made in a pull request."]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct GitPullRequestIterationChanges {
    #[doc = "Changes made in the iteration."]
    #[serde(
        rename = "changeEntries",
        default,
        skip_serializing_if = "Vec::is_empty"
    )]
    pub change_entries: Vec<GitPullRequestChange>,
    #[doc = "Value to specify as skip to get the next page of changes.  This will be zero if there are no more changes."]
    #[serde(rename = "nextSkip", default, skip_serializing_if = "Option::is_none")]
    pub next_skip: Option<i32>,
    #[doc = "Value to specify as top to get the next page of changes.  This will be zero if there are no more changes."]
    #[serde(rename = "nextTop", default, skip_serializing_if = "Option::is_none")]
    pub next_top: Option<i32>,
}
impl GitPullRequestIterationChanges {
    pub fn new() -> Self {
        Self::default()
    }
}
#[doc = ""]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct GitPullRequestIterationList {
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub count: Option<i32>,
    #[serde(default, skip_serializing_if = "Vec::is_empty")]
    pub value: Vec<GitPullRequestIteration>,
}
impl GitPullRequestIterationList {
    pub fn new() -> Self {
        Self::default()
    }
}
#[doc = ""]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct GitPullRequestList {
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub count: Option<i32>,
    #[serde(default, skip_serializing_if = "Vec::is_empty")]
    pub value: Vec<GitPullRequest>,
}
impl GitPullRequestList {
    pub fn new() -> Self {
        Self::default()
    }
}
#[doc = "The options which are used when a pull request merge is created."]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct GitPullRequestMergeOptions {
    #[doc = "If true, conflict resolutions applied during the merge will be put in separate commits to preserve authorship info for git blame, etc."]
    #[serde(
        rename = "conflictAuthorshipCommits",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub conflict_authorship_commits: Option<bool>,
    #[serde(
        rename = "detectRenameFalsePositives",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub detect_rename_false_positives: Option<bool>,
    #[doc = "If true, rename detection will not be performed during the merge."]
    #[serde(
        rename = "disableRenames",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub disable_renames: Option<bool>,
}
impl GitPullRequestMergeOptions {
    pub fn new() -> Self {
        Self::default()
    }
}
#[doc = "A set of pull request queries and their results."]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct GitPullRequestQuery {
    #[doc = "The queries to perform."]
    #[serde(default, skip_serializing_if = "Vec::is_empty")]
    pub queries: Vec<GitPullRequestQueryInput>,
    #[doc = "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."]
    #[serde(default, skip_serializing_if = "Vec::is_empty")]
    pub results: Vec<serde_json::Value>,
}
impl GitPullRequestQuery {
    pub fn new() -> Self {
        Self::default()
    }
}
#[doc = "Pull request query input parameters."]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct GitPullRequestQueryInput {
    #[doc = "The list of commit IDs to search for."]
    #[serde(default, skip_serializing_if = "Vec::is_empty")]
    pub items: Vec<String>,
    #[doc = "The type of query to perform."]
    #[serde(rename = "type", default, skip_serializing_if = "Option::is_none")]
    pub type_: Option<git_pull_request_query_input::Type>,
}
impl GitPullRequestQueryInput {
    pub fn new() -> Self {
        Self::default()
    }
}
pub mod git_pull_request_query_input {
    use super::*;
    #[doc = "The type of query to perform."]
    #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
    pub enum Type {
        #[serde(rename = "notSet")]
        NotSet,
        #[serde(rename = "lastMergeCommit")]
        LastMergeCommit,
        #[serde(rename = "commit")]
        Commit,
    }
}
#[doc = ""]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct GitPullRequestReviewFileContentInfo {
    #[doc = "The class to represent a collection of REST reference links."]
    #[serde(rename = "_links", default, skip_serializing_if = "Option::is_none")]
    pub links: Option<ReferenceLinks>,
    #[doc = "The file change path."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub path: Option<String>,
    #[doc = "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."]
    #[serde(rename = "shA1Hash", default, skip_serializing_if = "Option::is_none")]
    pub sh_a1_hash: Option<String>,
}
impl GitPullRequestReviewFileContentInfo {
    pub fn new() -> Self {
        Self::default()
    }
}
#[doc = "Pull requests can be searched for matching this criteria."]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct GitPullRequestSearchCriteria {
    #[doc = "If set, search for pull requests that were created by this identity."]
    #[serde(rename = "creatorId", default, skip_serializing_if = "Option::is_none")]
    pub creator_id: Option<String>,
    #[doc = "Whether to include the _links field on the shallow references"]
    #[serde(
        rename = "includeLinks",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub include_links: Option<bool>,
    #[doc = "If set, search for pull requests whose target branch is in this repository."]
    #[serde(
        rename = "repositoryId",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub repository_id: Option<String>,
    #[doc = "If set, search for pull requests that have this identity as a reviewer."]
    #[serde(
        rename = "reviewerId",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub reviewer_id: Option<String>,
    #[doc = "If set, search for pull requests from this branch."]
    #[serde(
        rename = "sourceRefName",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub source_ref_name: Option<String>,
    #[doc = "If set, search for pull requests whose source branch is in this repository."]
    #[serde(
        rename = "sourceRepositoryId",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub source_repository_id: Option<String>,
    #[doc = "If set, search for pull requests that are in this state. Defaults to Active if unset."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub status: Option<git_pull_request_search_criteria::Status>,
    #[doc = "If set, search for pull requests into this branch."]
    #[serde(
        rename = "targetRefName",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub target_ref_name: Option<String>,
}
impl GitPullRequestSearchCriteria {
    pub fn new() -> Self {
        Self::default()
    }
}
pub mod git_pull_request_search_criteria {
    use super::*;
    #[doc = "If set, search for pull requests that are in this state. Defaults to Active if unset."]
    #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
    pub enum Status {
        #[serde(rename = "notSet")]
        NotSet,
        #[serde(rename = "active")]
        Active,
        #[serde(rename = "abandoned")]
        Abandoned,
        #[serde(rename = "completed")]
        Completed,
        #[serde(rename = "all")]
        All,
    }
}
#[doc = "This class contains the metadata of a service/extension posting pull request status. Status can be associated with a pull request or an iteration."]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct GitPullRequestStatus {
    #[serde(flatten)]
    pub git_status: GitStatus,
    #[doc = "ID of the iteration to associate status with. Minimum value is 1."]
    #[serde(
        rename = "iterationId",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub iteration_id: Option<i32>,
    #[doc = "The class represents a property bag as a collection of key-value pairs. Values of all primitive types (any type with a `TypeCode != TypeCode.Object`) except for `DBNull` are accepted. Values of type Byte[], Int32, Double, DateType and String preserve their type, other primitives are retuned as a String. Byte[] expected as base64 encoded string."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub properties: Option<PropertiesCollection>,
}
impl GitPullRequestStatus {
    pub fn new() -> Self {
        Self::default()
    }
}
#[doc = ""]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct GitPullRequestStatusList {
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub count: Option<i32>,
    #[serde(default, skip_serializing_if = "Vec::is_empty")]
    pub value: Vec<GitPullRequestStatus>,
}
impl GitPullRequestStatusList {
    pub fn new() -> Self {
        Self::default()
    }
}
#[doc = ""]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct GitPush {
    #[serde(flatten)]
    pub git_push_ref: GitPushRef,
    #[serde(default, skip_serializing_if = "Vec::is_empty")]
    pub commits: Vec<GitCommitRef>,
    #[serde(rename = "refUpdates", default, skip_serializing_if = "Vec::is_empty")]
    pub ref_updates: Vec<GitRefUpdate>,
    #[doc = ""]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub repository: Option<GitRepository>,
}
impl GitPush {
    pub fn new() -> Self {
        Self::default()
    }
}
#[doc = ""]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct GitPushEventData {
    #[serde(rename = "afterId", default, skip_serializing_if = "Option::is_none")]
    pub after_id: Option<String>,
    #[serde(rename = "beforeId", default, skip_serializing_if = "Option::is_none")]
    pub before_id: Option<String>,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub branch: Option<String>,
    #[serde(default, skip_serializing_if = "Vec::is_empty")]
    pub commits: Vec<GitCommit>,
    #[doc = ""]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub repository: Option<GitRepository>,
}
impl GitPushEventData {
    pub fn new() -> Self {
        Self::default()
    }
}
#[doc = ""]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct GitPushList {
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub count: Option<i32>,
    #[serde(default, skip_serializing_if = "Vec::is_empty")]
    pub value: Vec<GitPush>,
}
impl GitPushList {
    pub fn new() -> Self {
        Self::default()
    }
}
#[doc = ""]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct GitPushRef {
    #[doc = "The class to represent a collection of REST reference links."]
    #[serde(rename = "_links", default, skip_serializing_if = "Option::is_none")]
    pub links: Option<ReferenceLinks>,
    #[serde(default, with = "crate::date_time::rfc3339::option")]
    pub date: Option<time::OffsetDateTime>,
    #[doc = ""]
    #[serde(rename = "pushedBy", default, skip_serializing_if = "Option::is_none")]
    pub pushed_by: Option<IdentityRef>,
    #[serde(rename = "pushId", default, skip_serializing_if = "Option::is_none")]
    pub push_id: Option<i32>,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub url: Option<String>,
}
impl GitPushRef {
    pub fn new() -> Self {
        Self::default()
    }
}
#[doc = ""]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct GitPushSearchCriteria {
    #[serde(
        rename = "fromDate",
        default,
        with = "crate::date_time::rfc3339::option"
    )]
    pub from_date: Option<time::OffsetDateTime>,
    #[doc = "Whether to include the _links field on the shallow references"]
    #[serde(
        rename = "includeLinks",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub include_links: Option<bool>,
    #[serde(
        rename = "includeRefUpdates",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub include_ref_updates: Option<bool>,
    #[serde(rename = "pusherId", default, skip_serializing_if = "Option::is_none")]
    pub pusher_id: Option<String>,
    #[serde(rename = "refName", default, skip_serializing_if = "Option::is_none")]
    pub ref_name: Option<String>,
    #[serde(rename = "toDate", default, with = "crate::date_time::rfc3339::option")]
    pub to_date: Option<time::OffsetDateTime>,
}
impl GitPushSearchCriteria {
    pub fn new() -> Self {
        Self::default()
    }
}
#[doc = ""]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct GitQueryBranchStatsCriteria {
    #[doc = ""]
    #[serde(
        rename = "baseCommit",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub base_commit: Option<GitVersionDescriptor>,
    #[serde(
        rename = "targetCommits",
        default,
        skip_serializing_if = "Vec::is_empty"
    )]
    pub target_commits: Vec<GitVersionDescriptor>,
}
impl GitQueryBranchStatsCriteria {
    pub fn new() -> Self {
        Self::default()
    }
}
#[doc = ""]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct GitQueryCommitsCriteria {
    #[doc = "Number of entries to skip"]
    #[serde(rename = "$skip", default, skip_serializing_if = "Option::is_none")]
    pub skip: Option<i32>,
    #[doc = "Maximum number of entries to retrieve"]
    #[serde(rename = "$top", default, skip_serializing_if = "Option::is_none")]
    pub top: Option<i32>,
    #[doc = "Alias or display name of the author"]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub author: Option<String>,
    #[doc = ""]
    #[serde(
        rename = "compareVersion",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub compare_version: Option<GitVersionDescriptor>,
    #[doc = "Only applies when an itemPath is specified. This determines whether to exclude delete entries of the specified path."]
    #[serde(
        rename = "excludeDeletes",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub exclude_deletes: Option<bool>,
    #[doc = "If provided, a lower bound for filtering commits alphabetically"]
    #[serde(
        rename = "fromCommitId",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub from_commit_id: Option<String>,
    #[doc = "If provided, only include history entries created after this date (string)"]
    #[serde(rename = "fromDate", default, skip_serializing_if = "Option::is_none")]
    pub from_date: Option<String>,
    #[doc = "What Git history mode should be used. This only applies to the search criteria when Ids = null and an itemPath is specified."]
    #[serde(
        rename = "historyMode",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub history_mode: Option<git_query_commits_criteria::HistoryMode>,
    #[doc = "If provided, specifies the exact commit ids of the commits to fetch. May not be combined with other parameters."]
    #[serde(default, skip_serializing_if = "Vec::is_empty")]
    pub ids: Vec<String>,
    #[doc = "Whether to include the _links field on the shallow references"]
    #[serde(
        rename = "includeLinks",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub include_links: Option<bool>,
    #[doc = "Whether to include the push information"]
    #[serde(
        rename = "includePushData",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub include_push_data: Option<bool>,
    #[doc = "Whether to include the image Url for committers and authors"]
    #[serde(
        rename = "includeUserImageUrl",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub include_user_image_url: Option<bool>,
    #[doc = "Whether to include linked work items"]
    #[serde(
        rename = "includeWorkItems",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub include_work_items: Option<bool>,
    #[doc = "Path of item to search under"]
    #[serde(rename = "itemPath", default, skip_serializing_if = "Option::is_none")]
    pub item_path: Option<String>,
    #[doc = ""]
    #[serde(
        rename = "itemVersion",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub item_version: Option<GitVersionDescriptor>,
    #[doc = "If enabled, this option will ignore the itemVersion and compareVersion parameters"]
    #[serde(
        rename = "showOldestCommitsFirst",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub show_oldest_commits_first: Option<bool>,
    #[doc = "If provided, an upper bound for filtering commits alphabetically"]
    #[serde(
        rename = "toCommitId",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub to_commit_id: Option<String>,
    #[doc = "If provided, only include history entries created before this date (string)"]
    #[serde(rename = "toDate", default, skip_serializing_if = "Option::is_none")]
    pub to_date: Option<String>,
    #[doc = "Alias or display name of the committer"]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub user: Option<String>,
}
impl GitQueryCommitsCriteria {
    pub fn new() -> Self {
        Self::default()
    }
}
pub mod git_query_commits_criteria {
    use super::*;
    #[doc = "What Git history mode should be used. This only applies to the search criteria when Ids = null and an itemPath is specified."]
    #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
    pub enum HistoryMode {
        #[serde(rename = "simplifiedHistory")]
        SimplifiedHistory,
        #[serde(rename = "firstParent")]
        FirstParent,
        #[serde(rename = "fullHistory")]
        FullHistory,
        #[serde(rename = "fullHistorySimplifyMerges")]
        FullHistorySimplifyMerges,
    }
}
#[doc = ""]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct GitQueryRefsCriteria {
    #[doc = "List of commit Ids to be searched"]
    #[serde(rename = "commitIds", default, skip_serializing_if = "Vec::is_empty")]
    pub commit_ids: Vec<String>,
    #[doc = "List of complete or partial names for refs to be searched"]
    #[serde(rename = "refNames", default, skip_serializing_if = "Vec::is_empty")]
    pub ref_names: Vec<String>,
    #[doc = "Type of search on refNames, if provided"]
    #[serde(
        rename = "searchType",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub search_type: Option<git_query_refs_criteria::SearchType>,
}
impl GitQueryRefsCriteria {
    pub fn new() -> Self {
        Self::default()
    }
}
pub mod git_query_refs_criteria {
    use super::*;
    #[doc = "Type of search on refNames, if provided"]
    #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
    pub enum SearchType {
        #[serde(rename = "exact")]
        Exact,
        #[serde(rename = "startsWith")]
        StartsWith,
        #[serde(rename = "contains")]
        Contains,
    }
}
#[doc = ""]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct GitRecycleBinRepositoryDetails {
    #[doc = "Setting to false will undo earlier deletion and restore the repository."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub deleted: Option<bool>,
}
impl GitRecycleBinRepositoryDetails {
    pub fn new() -> Self {
        Self::default()
    }
}
#[doc = ""]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
pub struct GitRef {
    #[doc = "The class to represent a collection of REST reference links."]
    #[serde(rename = "_links", default, skip_serializing_if = "Option::is_none")]
    pub links: Option<ReferenceLinks>,
    #[doc = ""]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub creator: Option<IdentityRef>,
    #[serde(rename = "isLocked", default, skip_serializing_if = "Option::is_none")]
    pub is_locked: Option<bool>,
    #[doc = ""]
    #[serde(
        rename = "isLockedBy",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub is_locked_by: Option<IdentityRef>,
    pub name: String,
    #[serde(rename = "objectId")]
    pub object_id: String,
    #[serde(
        rename = "peeledObjectId",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub peeled_object_id: Option<String>,
    #[serde(default, skip_serializing_if = "Vec::is_empty")]
    pub statuses: Vec<GitStatus>,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub url: Option<String>,
}
impl GitRef {
    pub fn new(name: String, object_id: String) -> Self {
        Self {
            links: None,
            creator: None,
            is_locked: None,
            is_locked_by: None,
            name,
            object_id,
            peeled_object_id: None,
            statuses: Vec::new(),
            url: None,
        }
    }
}
#[doc = ""]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct GitRefFavorite {
    #[doc = "The class to represent a collection of REST reference links."]
    #[serde(rename = "_links", default, skip_serializing_if = "Option::is_none")]
    pub links: Option<ReferenceLinks>,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub id: Option<i32>,
    #[serde(
        rename = "identityId",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub identity_id: Option<String>,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub name: Option<String>,
    #[serde(
        rename = "repositoryId",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub repository_id: Option<String>,
    #[serde(rename = "type", default, skip_serializing_if = "Option::is_none")]
    pub type_: Option<git_ref_favorite::Type>,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub url: Option<String>,
}
impl GitRefFavorite {
    pub fn new() -> Self {
        Self::default()
    }
}
pub mod git_ref_favorite {
    use super::*;
    #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
    pub enum Type {
        #[serde(rename = "invalid")]
        Invalid,
        #[serde(rename = "folder")]
        Folder,
        #[serde(rename = "ref")]
        Ref,
    }
}
#[doc = ""]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct GitRefFavoriteList {
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub count: Option<i32>,
    #[serde(default, skip_serializing_if = "Vec::is_empty")]
    pub value: Vec<GitRefFavorite>,
}
impl GitRefFavoriteList {
    pub fn new() -> Self {
        Self::default()
    }
}
#[doc = ""]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct GitRefList {
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub count: Option<i32>,
    #[serde(default, skip_serializing_if = "Vec::is_empty")]
    pub value: Vec<GitRef>,
}
impl GitRefList {
    pub fn new() -> Self {
        Self::default()
    }
}
#[doc = ""]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct GitRefUpdate {
    #[serde(rename = "isLocked", default, skip_serializing_if = "Option::is_none")]
    pub is_locked: Option<bool>,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub name: Option<String>,
    #[serde(
        rename = "newObjectId",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub new_object_id: Option<String>,
    #[serde(
        rename = "oldObjectId",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub old_object_id: Option<String>,
    #[serde(
        rename = "repositoryId",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub repository_id: Option<String>,
}
impl GitRefUpdate {
    pub fn new() -> Self {
        Self::default()
    }
}
#[doc = ""]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct GitRefUpdateResult {
    #[doc = "Custom message for the result object For instance, Reason for failing."]
    #[serde(
        rename = "customMessage",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub custom_message: Option<String>,
    #[doc = "Whether the ref is locked or not"]
    #[serde(rename = "isLocked", default, skip_serializing_if = "Option::is_none")]
    pub is_locked: Option<bool>,
    #[doc = "Ref name"]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub name: Option<String>,
    #[doc = "New object ID"]
    #[serde(
        rename = "newObjectId",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub new_object_id: Option<String>,
    #[doc = "Old object ID"]
    #[serde(
        rename = "oldObjectId",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub old_object_id: Option<String>,
    #[doc = "Name of the plugin that rejected the updated."]
    #[serde(
        rename = "rejectedBy",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub rejected_by: Option<String>,
    #[doc = "Repository ID"]
    #[serde(
        rename = "repositoryId",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub repository_id: Option<String>,
    #[doc = "True if the ref update succeeded, false otherwise"]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub success: Option<bool>,
    #[doc = "Status of the update from the TFS server."]
    #[serde(
        rename = "updateStatus",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub update_status: Option<git_ref_update_result::UpdateStatus>,
}
impl GitRefUpdateResult {
    pub fn new() -> Self {
        Self::default()
    }
}
pub mod git_ref_update_result {
    use super::*;
    #[doc = "Status of the update from the TFS server."]
    #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
    pub enum UpdateStatus {
        #[serde(rename = "succeeded")]
        Succeeded,
        #[serde(rename = "forcePushRequired")]
        ForcePushRequired,
        #[serde(rename = "staleOldObjectId")]
        StaleOldObjectId,
        #[serde(rename = "invalidRefName")]
        InvalidRefName,
        #[serde(rename = "unprocessed")]
        Unprocessed,
        #[serde(rename = "unresolvableToCommit")]
        UnresolvableToCommit,
        #[serde(rename = "writePermissionRequired")]
        WritePermissionRequired,
        #[serde(rename = "manageNotePermissionRequired")]
        ManageNotePermissionRequired,
        #[serde(rename = "createBranchPermissionRequired")]
        CreateBranchPermissionRequired,
        #[serde(rename = "createTagPermissionRequired")]
        CreateTagPermissionRequired,
        #[serde(rename = "rejectedByPlugin")]
        RejectedByPlugin,
        #[serde(rename = "locked")]
        Locked,
        #[serde(rename = "refNameConflict")]
        RefNameConflict,
        #[serde(rename = "rejectedByPolicy")]
        RejectedByPolicy,
        #[serde(rename = "succeededNonExistentRef")]
        SucceededNonExistentRef,
        #[serde(rename = "succeededCorruptRef")]
        SucceededCorruptRef,
    }
}
#[doc = ""]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct GitRefUpdateResultList {
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub count: Option<i32>,
    #[serde(default, skip_serializing_if = "Vec::is_empty")]
    pub value: Vec<GitRefUpdateResult>,
}
impl GitRefUpdateResultList {
    pub fn new() -> Self {
        Self::default()
    }
}
#[doc = ""]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
pub struct GitRepository {
    #[doc = "The class to represent a collection of REST reference links."]
    #[serde(rename = "_links", default, skip_serializing_if = "Option::is_none")]
    pub links: Option<ReferenceLinks>,
    #[serde(
        rename = "defaultBranch",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub default_branch: Option<String>,
    pub id: String,
    #[doc = "True if the repository is disabled. False otherwise."]
    #[serde(
        rename = "isDisabled",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub is_disabled: Option<bool>,
    #[doc = "True if the repository was created as a fork."]
    #[serde(rename = "isFork", default, skip_serializing_if = "Option::is_none")]
    pub is_fork: Option<bool>,
    pub name: String,
    #[doc = ""]
    #[serde(
        rename = "parentRepository",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub parent_repository: Option<GitRepositoryRef>,
    #[doc = "Represents a shallow reference to a TeamProject."]
    pub project: TeamProjectReference,
    #[serde(rename = "remoteUrl", default, skip_serializing_if = "Option::is_none")]
    pub remote_url: Option<String>,
    #[doc = "Compressed size (bytes) of the repository."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub size: Option<i64>,
    #[serde(rename = "sshUrl", default, skip_serializing_if = "Option::is_none")]
    pub ssh_url: Option<String>,
    pub url: String,
    #[serde(
        rename = "validRemoteUrls",
        default,
        skip_serializing_if = "Vec::is_empty"
    )]
    pub valid_remote_urls: Vec<String>,
    #[serde(rename = "webUrl", default, skip_serializing_if = "Option::is_none")]
    pub web_url: Option<String>,
}
impl GitRepository {
    pub fn new(id: String, name: String, project: TeamProjectReference, url: String) -> Self {
        Self {
            links: None,
            default_branch: None,
            id,
            is_disabled: None,
            is_fork: None,
            name,
            parent_repository: None,
            project,
            remote_url: None,
            size: None,
            ssh_url: None,
            url,
            valid_remote_urls: Vec::new(),
            web_url: None,
        }
    }
}
#[doc = ""]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct GitRepositoryCreateOptions {
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub name: Option<String>,
    #[doc = ""]
    #[serde(
        rename = "parentRepository",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub parent_repository: Option<GitRepositoryRef>,
    #[doc = "Represents a shallow reference to a TeamProject."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub project: Option<TeamProjectReference>,
}
impl GitRepositoryCreateOptions {
    pub fn new() -> Self {
        Self::default()
    }
}
#[doc = ""]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct GitRepositoryList {
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub count: Option<i32>,
    #[serde(default, skip_serializing_if = "Vec::is_empty")]
    pub value: Vec<GitRepository>,
}
impl GitRepositoryList {
    pub fn new() -> Self {
        Self::default()
    }
}
#[doc = ""]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct GitRepositoryRef {
    #[doc = "Reference object for a TeamProjectCollection."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub collection: Option<TeamProjectCollectionReference>,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub id: Option<String>,
    #[doc = "True if the repository was created as a fork"]
    #[serde(rename = "isFork", default, skip_serializing_if = "Option::is_none")]
    pub is_fork: Option<bool>,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub name: Option<String>,
    #[doc = "Represents a shallow reference to a TeamProject."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub project: Option<TeamProjectReference>,
    #[serde(rename = "remoteUrl", default, skip_serializing_if = "Option::is_none")]
    pub remote_url: Option<String>,
    #[serde(rename = "sshUrl", default, skip_serializing_if = "Option::is_none")]
    pub ssh_url: Option<String>,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub url: Option<String>,
}
impl GitRepositoryRef {
    pub fn new() -> Self {
        Self::default()
    }
}
#[doc = ""]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct GitRepositoryRefList {
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub count: Option<i32>,
    #[serde(default, skip_serializing_if = "Vec::is_empty")]
    pub value: Vec<GitRepositoryRef>,
}
impl GitRepositoryRefList {
    pub fn new() -> Self {
        Self::default()
    }
}
#[doc = ""]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct GitRepositoryStats {
    #[serde(
        rename = "activePullRequestsCount",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub active_pull_requests_count: Option<i32>,
    #[serde(
        rename = "branchesCount",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub branches_count: Option<i32>,
    #[serde(
        rename = "commitsCount",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub commits_count: Option<i32>,
    #[serde(
        rename = "repositoryId",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub repository_id: Option<String>,
}
impl GitRepositoryStats {
    pub fn new() -> Self {
        Self::default()
    }
}
#[doc = ""]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct GitResolution {
    #[doc = ""]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub author: Option<IdentityRef>,
}
impl GitResolution {
    pub fn new() -> Self {
        Self::default()
    }
}
#[doc = ""]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct GitResolutionMergeContent {
    #[serde(flatten)]
    pub git_resolution: GitResolution,
    #[serde(rename = "mergeType", default, skip_serializing_if = "Option::is_none")]
    pub merge_type: Option<git_resolution_merge_content::MergeType>,
    #[doc = ""]
    #[serde(
        rename = "userMergedBlob",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub user_merged_blob: Option<GitBlobRef>,
    #[serde(
        rename = "userMergedContent",
        default,
        skip_serializing_if = "Vec::is_empty"
    )]
    pub user_merged_content: Vec<String>,
}
impl GitResolutionMergeContent {
    pub fn new() -> Self {
        Self::default()
    }
}
pub mod git_resolution_merge_content {
    use super::*;
    #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
    pub enum MergeType {
        #[serde(rename = "undecided")]
        Undecided,
        #[serde(rename = "takeSourceContent")]
        TakeSourceContent,
        #[serde(rename = "takeTargetContent")]
        TakeTargetContent,
        #[serde(rename = "autoMerged")]
        AutoMerged,
        #[serde(rename = "userMerged")]
        UserMerged,
    }
}
#[doc = ""]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct GitResolutionPathConflict {
    #[serde(flatten)]
    pub git_resolution: GitResolution,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub action: Option<git_resolution_path_conflict::Action>,
    #[serde(
        rename = "renamePath",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub rename_path: Option<String>,
}
impl GitResolutionPathConflict {
    pub fn new() -> Self {
        Self::default()
    }
}
pub mod git_resolution_path_conflict {
    use super::*;
    #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
    pub enum Action {
        #[serde(rename = "undecided")]
        Undecided,
        #[serde(rename = "keepSourceRenameTarget")]
        KeepSourceRenameTarget,
        #[serde(rename = "keepSourceDeleteTarget")]
        KeepSourceDeleteTarget,
        #[serde(rename = "keepTargetRenameSource")]
        KeepTargetRenameSource,
        #[serde(rename = "keepTargetDeleteSource")]
        KeepTargetDeleteSource,
    }
}
#[doc = ""]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct GitResolutionPickOneAction {
    #[serde(flatten)]
    pub git_resolution: GitResolution,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub action: Option<git_resolution_pick_one_action::Action>,
}
impl GitResolutionPickOneAction {
    pub fn new() -> Self {
        Self::default()
    }
}
pub mod git_resolution_pick_one_action {
    use super::*;
    #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
    pub enum Action {
        #[serde(rename = "undecided")]
        Undecided,
        #[serde(rename = "pickSourceAction")]
        PickSourceAction,
        #[serde(rename = "pickTargetAction")]
        PickTargetAction,
    }
}
#[doc = ""]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct GitResolutionRename1to2 {
    #[serde(flatten)]
    pub git_resolution_merge_content: GitResolutionMergeContent,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub action: Option<git_resolution_rename1to2::Action>,
}
impl GitResolutionRename1to2 {
    pub fn new() -> Self {
        Self::default()
    }
}
pub mod git_resolution_rename1to2 {
    use super::*;
    #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
    pub enum Action {
        #[serde(rename = "undecided")]
        Undecided,
        #[serde(rename = "keepSourcePath")]
        KeepSourcePath,
        #[serde(rename = "keepTargetPath")]
        KeepTargetPath,
        #[serde(rename = "keepBothFiles")]
        KeepBothFiles,
    }
}
#[doc = ""]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct GitRevert {
    #[serde(flatten)]
    pub git_async_ref_operation: GitAsyncRefOperation,
    #[serde(rename = "revertId", default, skip_serializing_if = "Option::is_none")]
    pub revert_id: Option<i32>,
}
impl GitRevert {
    pub fn new() -> Self {
        Self::default()
    }
}
#[doc = "This class contains the metadata of a service/extension posting a status."]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct GitStatus {
    #[doc = "Links"]
    #[serde(rename = "_links", default, skip_serializing_if = "Option::is_none")]
    pub links: Option<serde_json::Value>,
    #[doc = "Status context that uniquely identifies the status."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub context: Option<GitStatusContext>,
    #[doc = ""]
    #[serde(rename = "createdBy", default, skip_serializing_if = "Option::is_none")]
    pub created_by: Option<IdentityRef>,
    #[doc = "Creation date and time of the status."]
    #[serde(
        rename = "creationDate",
        default,
        with = "crate::date_time::rfc3339::option"
    )]
    pub creation_date: Option<time::OffsetDateTime>,
    #[doc = "Status description. Typically describes current state of the status."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub description: Option<String>,
    #[doc = "Status identifier."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub id: Option<i32>,
    #[doc = "State of the status."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub state: Option<git_status::State>,
    #[doc = "URL with status details."]
    #[serde(rename = "targetUrl", default, skip_serializing_if = "Option::is_none")]
    pub target_url: Option<String>,
    #[doc = "Last update date and time of the status."]
    #[serde(
        rename = "updatedDate",
        default,
        with = "crate::date_time::rfc3339::option"
    )]
    pub updated_date: Option<time::OffsetDateTime>,
}
impl GitStatus {
    pub fn new() -> Self {
        Self::default()
    }
}
pub mod git_status {
    use super::*;
    #[doc = "State of the status."]
    #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
    pub enum State {
        #[serde(rename = "notSet")]
        NotSet,
        #[serde(rename = "pending")]
        Pending,
        #[serde(rename = "succeeded")]
        Succeeded,
        #[serde(rename = "failed")]
        Failed,
        #[serde(rename = "error")]
        Error,
        #[serde(rename = "notApplicable")]
        NotApplicable,
    }
}
#[doc = "Status context that uniquely identifies the status."]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct GitStatusContext {
    #[doc = "Genre of the status. Typically name of the service/tool generating the status, can be empty."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub genre: Option<String>,
    #[doc = "Name identifier of the status, cannot be null or empty."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub name: Option<String>,
}
impl GitStatusContext {
    pub fn new() -> Self {
        Self::default()
    }
}
#[doc = ""]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct GitStatusList {
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub count: Option<i32>,
    #[serde(default, skip_serializing_if = "Vec::is_empty")]
    pub value: Vec<GitStatus>,
}
impl GitStatusList {
    pub fn new() -> Self {
        Self::default()
    }
}
#[doc = "An object describing the git suggestion.  Git suggestions are currently limited to suggested pull requests."]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct GitSuggestion {
    #[doc = "Specific properties describing the suggestion."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub properties: Option<serde_json::Value>,
    #[doc = "The type of suggestion (e.g. pull request)."]
    #[serde(rename = "type", default, skip_serializing_if = "Option::is_none")]
    pub type_: Option<String>,
}
impl GitSuggestion {
    pub fn new() -> Self {
        Self::default()
    }
}
#[doc = ""]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct GitSuggestionList {
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub count: Option<i32>,
    #[serde(default, skip_serializing_if = "Vec::is_empty")]
    pub value: Vec<GitSuggestion>,
}
impl GitSuggestionList {
    pub fn new() -> Self {
        Self::default()
    }
}
#[doc = ""]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct GitTargetVersionDescriptor {
    #[serde(flatten)]
    pub git_version_descriptor: GitVersionDescriptor,
    #[doc = "Version string identifier (name of tag/branch, SHA1 of commit)"]
    #[serde(
        rename = "targetVersion",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub target_version: Option<String>,
    #[doc = "Version options - Specify additional modifiers to version (e.g Previous)"]
    #[serde(
        rename = "targetVersionOptions",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub target_version_options: Option<git_target_version_descriptor::TargetVersionOptions>,
    #[doc = "Version type (branch, tag, or commit). Determines how Id is interpreted"]
    #[serde(
        rename = "targetVersionType",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub target_version_type: Option<git_target_version_descriptor::TargetVersionType>,
}
impl GitTargetVersionDescriptor {
    pub fn new() -> Self {
        Self::default()
    }
}
pub mod git_target_version_descriptor {
    use super::*;
    #[doc = "Version options - Specify additional modifiers to version (e.g Previous)"]
    #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
    pub enum TargetVersionOptions {
        #[serde(rename = "none")]
        None,
        #[serde(rename = "previousChange")]
        PreviousChange,
        #[serde(rename = "firstParent")]
        FirstParent,
    }
    #[doc = "Version type (branch, tag, or commit). Determines how Id is interpreted"]
    #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
    pub enum TargetVersionType {
        #[serde(rename = "branch")]
        Branch,
        #[serde(rename = "tag")]
        Tag,
        #[serde(rename = "commit")]
        Commit,
    }
}
#[doc = ""]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct GitTemplate {
    #[doc = "Name of the Template"]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub name: Option<String>,
    #[doc = "Type of the Template"]
    #[serde(rename = "type", default, skip_serializing_if = "Option::is_none")]
    pub type_: Option<String>,
}
impl GitTemplate {
    pub fn new() -> Self {
        Self::default()
    }
}
#[doc = ""]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct GitTreeDiff {
    #[doc = "ObjectId of the base tree of this diff."]
    #[serde(
        rename = "baseTreeId",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub base_tree_id: Option<String>,
    #[doc = "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."]
    #[serde(rename = "diffEntries", default, skip_serializing_if = "Vec::is_empty")]
    pub diff_entries: Vec<GitTreeDiffEntry>,
    #[doc = "ObjectId of the target tree of this diff."]
    #[serde(
        rename = "targetTreeId",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub target_tree_id: Option<String>,
    #[doc = "REST Url to this resource."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub url: Option<String>,
}
impl GitTreeDiff {
    pub fn new() -> Self {
        Self::default()
    }
}
#[doc = ""]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct GitTreeDiffEntry {
    #[doc = "SHA1 hash of the object in the base tree, if it exists. Will be null in case of adds."]
    #[serde(
        rename = "baseObjectId",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub base_object_id: Option<String>,
    #[doc = "Type of change that affected this entry."]
    #[serde(
        rename = "changeType",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub change_type: Option<git_tree_diff_entry::ChangeType>,
    #[doc = "Object type of the tree entry. Blob, Tree or Commit(\"submodule\")"]
    #[serde(
        rename = "objectType",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub object_type: Option<git_tree_diff_entry::ObjectType>,
    #[doc = "Relative path in base and target trees."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub path: Option<String>,
    #[doc = "SHA1 hash of the object in the target tree, if it exists. Will be null in case of deletes."]
    #[serde(
        rename = "targetObjectId",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub target_object_id: Option<String>,
}
impl GitTreeDiffEntry {
    pub fn new() -> Self {
        Self::default()
    }
}
pub mod git_tree_diff_entry {
    use super::*;
    #[doc = "Type of change that affected this entry."]
    #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
    pub enum ChangeType {
        #[serde(rename = "none")]
        None,
        #[serde(rename = "add")]
        Add,
        #[serde(rename = "edit")]
        Edit,
        #[serde(rename = "encoding")]
        Encoding,
        #[serde(rename = "rename")]
        Rename,
        #[serde(rename = "delete")]
        Delete,
        #[serde(rename = "undelete")]
        Undelete,
        #[serde(rename = "branch")]
        Branch,
        #[serde(rename = "merge")]
        Merge,
        #[serde(rename = "lock")]
        Lock,
        #[serde(rename = "rollback")]
        Rollback,
        #[serde(rename = "sourceRename")]
        SourceRename,
        #[serde(rename = "targetRename")]
        TargetRename,
        #[serde(rename = "property")]
        Property,
        #[serde(rename = "all")]
        All,
    }
    #[doc = "Object type of the tree entry. Blob, Tree or Commit(\"submodule\")"]
    #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
    pub enum ObjectType {
        #[serde(rename = "bad")]
        Bad,
        #[serde(rename = "commit")]
        Commit,
        #[serde(rename = "tree")]
        Tree,
        #[serde(rename = "blob")]
        Blob,
        #[serde(rename = "tag")]
        Tag,
        #[serde(rename = "ext2")]
        Ext2,
        #[serde(rename = "ofsDelta")]
        OfsDelta,
        #[serde(rename = "refDelta")]
        RefDelta,
    }
}
#[doc = ""]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct GitTreeDiffResponse {
    #[doc = "The HTTP client methods find the continuation token header in the response and populate this field."]
    #[serde(
        rename = "continuationToken",
        default,
        skip_serializing_if = "Vec::is_empty"
    )]
    pub continuation_token: Vec<String>,
    #[doc = ""]
    #[serde(rename = "treeDiff", default, skip_serializing_if = "Option::is_none")]
    pub tree_diff: Option<GitTreeDiff>,
}
impl GitTreeDiffResponse {
    pub fn new() -> Self {
        Self::default()
    }
}
#[doc = ""]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct GitTreeEntryRef {
    #[doc = "Blob or tree"]
    #[serde(
        rename = "gitObjectType",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub git_object_type: Option<git_tree_entry_ref::GitObjectType>,
    #[doc = "Mode represented as octal string"]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub mode: Option<String>,
    #[doc = "SHA1 hash of git object"]
    #[serde(rename = "objectId", default, skip_serializing_if = "Option::is_none")]
    pub object_id: Option<String>,
    #[doc = "Path relative to parent tree object"]
    #[serde(
        rename = "relativePath",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub relative_path: Option<String>,
    #[doc = "Size of content"]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub size: Option<i64>,
    #[doc = "url to retrieve tree or blob"]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub url: Option<String>,
}
impl GitTreeEntryRef {
    pub fn new() -> Self {
        Self::default()
    }
}
pub mod git_tree_entry_ref {
    use super::*;
    #[doc = "Blob or tree"]
    #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
    pub enum GitObjectType {
        #[serde(rename = "bad")]
        Bad,
        #[serde(rename = "commit")]
        Commit,
        #[serde(rename = "tree")]
        Tree,
        #[serde(rename = "blob")]
        Blob,
        #[serde(rename = "tag")]
        Tag,
        #[serde(rename = "ext2")]
        Ext2,
        #[serde(rename = "ofsDelta")]
        OfsDelta,
        #[serde(rename = "refDelta")]
        RefDelta,
    }
}
#[doc = ""]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct GitTreeRef {
    #[doc = "The class to represent a collection of REST reference links."]
    #[serde(rename = "_links", default, skip_serializing_if = "Option::is_none")]
    pub links: Option<ReferenceLinks>,
    #[doc = "SHA1 hash of git object"]
    #[serde(rename = "objectId", default, skip_serializing_if = "Option::is_none")]
    pub object_id: Option<String>,
    #[doc = "Sum of sizes of all children"]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub size: Option<i64>,
    #[doc = "Blobs and trees under this tree"]
    #[serde(rename = "treeEntries", default, skip_serializing_if = "Vec::is_empty")]
    pub tree_entries: Vec<GitTreeEntryRef>,
    #[doc = "Url to tree"]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub url: Option<String>,
}
impl GitTreeRef {
    pub fn new() -> Self {
        Self::default()
    }
}
#[doc = "User info and date for Git operations."]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct GitUserDate {
    #[doc = "Date of the Git operation."]
    #[serde(default, with = "crate::date_time::rfc3339::option")]
    pub date: Option<time::OffsetDateTime>,
    #[doc = "Email address of the user performing the Git operation."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub email: Option<String>,
    #[doc = "Url for the user's avatar."]
    #[serde(rename = "imageUrl", default, skip_serializing_if = "Option::is_none")]
    pub image_url: Option<String>,
    #[doc = "Name of the user performing the Git operation."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub name: Option<String>,
}
impl GitUserDate {
    pub fn new() -> Self {
        Self::default()
    }
}
#[doc = ""]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct GitVersionDescriptor {
    #[doc = "Version string identifier (name of tag/branch, SHA1 of commit)"]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub version: Option<String>,
    #[doc = "Version options - Specify additional modifiers to version (e.g Previous)"]
    #[serde(
        rename = "versionOptions",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub version_options: Option<git_version_descriptor::VersionOptions>,
    #[doc = "Version type (branch, tag, or commit). Determines how Id is interpreted"]
    #[serde(
        rename = "versionType",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub version_type: Option<git_version_descriptor::VersionType>,
}
impl GitVersionDescriptor {
    pub fn new() -> Self {
        Self::default()
    }
}
pub mod git_version_descriptor {
    use super::*;
    #[doc = "Version options - Specify additional modifiers to version (e.g Previous)"]
    #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
    pub enum VersionOptions {
        #[serde(rename = "none")]
        None,
        #[serde(rename = "previousChange")]
        PreviousChange,
        #[serde(rename = "firstParent")]
        FirstParent,
    }
    #[doc = "Version type (branch, tag, or commit). Determines how Id is interpreted"]
    #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
    pub enum VersionType {
        #[serde(rename = "branch")]
        Branch,
        #[serde(rename = "tag")]
        Tag,
        #[serde(rename = "commit")]
        Commit,
    }
}
#[doc = "Globally unique key for a repository."]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct GlobalGitRepositoryKey {
    #[doc = "Team Project Collection ID of the collection for the repository."]
    #[serde(
        rename = "collectionId",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub collection_id: Option<String>,
    #[doc = "Team Project ID of the project for the repository."]
    #[serde(rename = "projectId", default, skip_serializing_if = "Option::is_none")]
    pub project_id: Option<String>,
    #[doc = "ID of the repository."]
    #[serde(
        rename = "repositoryId",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub repository_id: Option<String>,
}
impl GlobalGitRepositoryKey {
    pub fn new() -> Self {
        Self::default()
    }
}
#[doc = ""]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct GraphSubjectBase {
    #[doc = "Links"]
    #[serde(rename = "_links", default, skip_serializing_if = "Option::is_none")]
    pub links: Option<serde_json::Value>,
    #[doc = "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."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub descriptor: Option<String>,
    #[doc = "This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider."]
    #[serde(
        rename = "displayName",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub display_name: Option<String>,
    #[doc = "This url is the full route to the source resource of this graph subject."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub url: Option<String>,
}
impl GraphSubjectBase {
    pub fn new() -> Self {
        Self::default()
    }
}
#[doc = ""]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct HistoryEntry {
    #[doc = ""]
    #[serde(
        rename = "changeList",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub change_list: Option<ChangeList>,
    #[doc = "The change made to the item from this change list (only relevant for File history, not folders)"]
    #[serde(
        rename = "itemChangeType",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub item_change_type: Option<history_entry::ItemChangeType>,
    #[doc = "The path of the item at this point in history (only relevant for File history, not folders)"]
    #[serde(
        rename = "serverItem",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub server_item: Option<String>,
}
impl HistoryEntry {
    pub fn new() -> Self {
        Self::default()
    }
}
pub mod history_entry {
    use super::*;
    #[doc = "The change made to the item from this change list (only relevant for File history, not folders)"]
    #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
    pub enum ItemChangeType {
        #[serde(rename = "none")]
        None,
        #[serde(rename = "add")]
        Add,
        #[serde(rename = "edit")]
        Edit,
        #[serde(rename = "encoding")]
        Encoding,
        #[serde(rename = "rename")]
        Rename,
        #[serde(rename = "delete")]
        Delete,
        #[serde(rename = "undelete")]
        Undelete,
        #[serde(rename = "branch")]
        Branch,
        #[serde(rename = "merge")]
        Merge,
        #[serde(rename = "lock")]
        Lock,
        #[serde(rename = "rollback")]
        Rollback,
        #[serde(rename = "sourceRename")]
        SourceRename,
        #[serde(rename = "targetRename")]
        TargetRename,
        #[serde(rename = "property")]
        Property,
        #[serde(rename = "all")]
        All,
    }
}
#[doc = "Identity id"]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
pub struct IdentityId {
    #[doc = "The user identity"]
    pub id: String,
}
impl IdentityId {
    pub fn new(id: String) -> Self {
        Self { id }
    }
}
#[doc = ""]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
pub struct IdentityRef {
    #[serde(flatten)]
    pub graph_subject_base: GraphSubjectBase,
    #[doc = "Deprecated - Can be retrieved by querying the Graph user referenced in the \"self\" entry of the IdentityRef \"_links\" dictionary"]
    #[serde(
        rename = "directoryAlias",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub directory_alias: Option<String>,
    pub id: String,
    #[doc = "Deprecated - Available in the \"avatar\" entry of the IdentityRef \"_links\" dictionary"]
    #[serde(rename = "imageUrl", default, skip_serializing_if = "Option::is_none")]
    pub image_url: Option<String>,
    #[doc = "Deprecated - Can be retrieved by querying the Graph membership state referenced in the \"membershipState\" entry of the GraphUser \"_links\" dictionary"]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub inactive: Option<bool>,
    #[doc = "Deprecated - Can be inferred from the subject type of the descriptor (Descriptor.IsAadUserType/Descriptor.IsAadGroupType)"]
    #[serde(
        rename = "isAadIdentity",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub is_aad_identity: Option<bool>,
    #[doc = "Deprecated - Can be inferred from the subject type of the descriptor (Descriptor.IsGroupType)"]
    #[serde(
        rename = "isContainer",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub is_container: Option<bool>,
    #[serde(
        rename = "isDeletedInOrigin",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub is_deleted_in_origin: Option<bool>,
    #[doc = "Deprecated - not in use in most preexisting implementations of ToIdentityRef"]
    #[serde(
        rename = "profileUrl",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub profile_url: Option<String>,
    #[doc = "Deprecated - use Domain+PrincipalName instead"]
    #[serde(
        rename = "uniqueName",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub unique_name: Option<String>,
}
impl IdentityRef {
    pub fn new(id: String) -> Self {
        Self {
            graph_subject_base: GraphSubjectBase::default(),
            directory_alias: None,
            id,
            image_url: None,
            inactive: None,
            is_aad_identity: None,
            is_container: None,
            is_deleted_in_origin: None,
            profile_url: None,
            unique_name: None,
        }
    }
}
#[doc = ""]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct IdentityRefList {
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub count: Option<i32>,
    #[serde(default, skip_serializing_if = "Vec::is_empty")]
    pub value: Vec<IdentityRef>,
}
impl IdentityRefList {
    pub fn new() -> Self {
        Self::default()
    }
}
#[doc = "Identity information including a vote on a pull request."]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
pub struct IdentityRefWithVote {
    #[serde(flatten)]
    pub identity_ref: IdentityRef,
    #[doc = "Indicates if this reviewer has declined to review this pull request."]
    #[serde(
        rename = "hasDeclined",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub has_declined: Option<bool>,
    #[doc = "Indicates if this reviewer is flagged for attention on this pull request."]
    #[serde(rename = "isFlagged", default, skip_serializing_if = "Option::is_none")]
    pub is_flagged: Option<bool>,
    #[doc = "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."]
    #[serde(
        rename = "isRequired",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub is_required: Option<bool>,
    #[doc = "URL to retrieve information about this identity"]
    #[serde(
        rename = "reviewerUrl",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub reviewer_url: Option<String>,
    #[doc = "Vote on a pull request:<br /> 10 - approved 5 - approved with suggestions 0 - no vote -5 - waiting for author -10 - rejected"]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub vote: Option<i64>,
    #[doc = "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."]
    #[serde(rename = "votedFor", default, skip_serializing_if = "Vec::is_empty")]
    pub voted_for: Vec<IdentityRefWithVote>,
}
impl IdentityRefWithVote {
    pub fn new(identity_ref: IdentityRef) -> Self {
        Self {
            identity_ref,
            has_declined: None,
            is_flagged: None,
            is_required: None,
            reviewer_url: None,
            vote: None,
            voted_for: Vec::new(),
        }
    }
}
#[doc = ""]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct IdentityRefWithVoteList {
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub count: Option<i32>,
    #[serde(default, skip_serializing_if = "Vec::is_empty")]
    pub value: Vec<IdentityRefWithVote>,
}
impl IdentityRefWithVoteList {
    pub fn new() -> Self {
        Self::default()
    }
}
#[doc = ""]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct ImportRepositoryValidation {
    #[doc = "Parameter for creating a git import request when source is Git version control"]
    #[serde(rename = "gitSource", default, skip_serializing_if = "Option::is_none")]
    pub git_source: Option<GitImportGitSource>,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub password: Option<String>,
    #[doc = "Parameter for creating a git import request when source is tfvc version control"]
    #[serde(
        rename = "tfvcSource",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub tfvc_source: Option<GitImportTfvcSource>,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub username: Option<String>,
}
impl ImportRepositoryValidation {
    pub fn new() -> Self {
        Self::default()
    }
}
#[doc = ""]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct IncludedGitCommit {
    #[serde(rename = "commitId", default, skip_serializing_if = "Option::is_none")]
    pub commit_id: Option<String>,
    #[serde(
        rename = "commitTime",
        default,
        with = "crate::date_time::rfc3339::option"
    )]
    pub commit_time: Option<time::OffsetDateTime>,
    #[serde(
        rename = "parentCommitIds",
        default,
        skip_serializing_if = "Vec::is_empty"
    )]
    pub parent_commit_ids: Vec<String>,
    #[serde(
        rename = "repositoryId",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub repository_id: Option<String>,
}
impl IncludedGitCommit {
    pub fn new() -> Self {
        Self::default()
    }
}
#[doc = "Real time event (SignalR) for IsDraft update on a pull request"]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct IsDraftUpdatedEvent {
    #[serde(flatten)]
    pub real_time_pull_request_event: RealTimePullRequestEvent,
}
impl IsDraftUpdatedEvent {
    pub fn new() -> Self {
        Self::default()
    }
}
#[doc = ""]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct ItemContent {
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub content: Option<String>,
    #[serde(
        rename = "contentType",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub content_type: Option<item_content::ContentType>,
}
impl ItemContent {
    pub fn new() -> Self {
        Self::default()
    }
}
pub mod item_content {
    use super::*;
    #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
    pub enum ContentType {
        #[serde(rename = "rawText")]
        RawText,
        #[serde(rename = "base64Encoded")]
        Base64Encoded,
    }
}
#[doc = "Optional details to include when returning an item model"]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct ItemDetailsOptions {
    #[doc = "If true, include metadata about the file type"]
    #[serde(
        rename = "includeContentMetadata",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub include_content_metadata: Option<bool>,
    #[doc = "Specifies whether to include children (OneLevel), all descendants (Full) or None for folder items"]
    #[serde(
        rename = "recursionLevel",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub recursion_level: Option<item_details_options::RecursionLevel>,
}
impl ItemDetailsOptions {
    pub fn new() -> Self {
        Self::default()
    }
}
pub mod item_details_options {
    use super::*;
    #[doc = "Specifies whether to include children (OneLevel), all descendants (Full) or None for folder items"]
    #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
    pub enum RecursionLevel {
        #[serde(rename = "none")]
        None,
        #[serde(rename = "oneLevel")]
        OneLevel,
        #[serde(rename = "oneLevelPlusNestedEmptyFolders")]
        OneLevelPlusNestedEmptyFolders,
        #[serde(rename = "full")]
        Full,
    }
}
#[doc = ""]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct ItemModel {
    #[doc = "The class to represent a collection of REST reference links."]
    #[serde(rename = "_links", default, skip_serializing_if = "Option::is_none")]
    pub links: Option<ReferenceLinks>,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub content: Option<String>,
    #[doc = ""]
    #[serde(
        rename = "contentMetadata",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub content_metadata: Option<FileContentMetadata>,
    #[serde(rename = "isFolder", default, skip_serializing_if = "Option::is_none")]
    pub is_folder: Option<bool>,
    #[serde(rename = "isSymLink", default, skip_serializing_if = "Option::is_none")]
    pub is_sym_link: Option<bool>,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub path: Option<String>,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub url: Option<String>,
}
impl ItemModel {
    pub fn new() -> Self {
        Self::default()
    }
}
#[doc = "The JSON model for JSON Patch Operations"]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct JsonPatchDocument {}
impl JsonPatchDocument {
    pub fn new() -> Self {
        Self::default()
    }
}
#[doc = "The JSON model for a JSON Patch operation"]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct JsonPatchOperation {
    #[doc = "The path to copy from for the Move/Copy operation."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub from: Option<String>,
    #[doc = "The patch operation"]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub op: Option<json_patch_operation::Op>,
    #[doc = "The path for the operation. In the case of an array, a zero based index can be used to specify the position in the array (e.g. /biscuits/0/name). The \"-\" character can be used instead of an index to insert at the end of the array (e.g. /biscuits/-)."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub path: Option<String>,
    #[doc = "The value for the operation. This is either a primitive or a JToken."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub value: Option<serde_json::Value>,
}
impl JsonPatchOperation {
    pub fn new() -> Self {
        Self::default()
    }
}
pub mod json_patch_operation {
    use super::*;
    #[doc = "The patch operation"]
    #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
    pub enum Op {
        #[serde(rename = "add")]
        Add,
        #[serde(rename = "remove")]
        Remove,
        #[serde(rename = "replace")]
        Replace,
        #[serde(rename = "move")]
        Move,
        #[serde(rename = "copy")]
        Copy,
        #[serde(rename = "test")]
        Test,
    }
}
#[doc = "Real time event (SignalR) for updated labels on a pull request"]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct LabelsUpdatedEvent {
    #[serde(flatten)]
    pub real_time_pull_request_event: RealTimePullRequestEvent,
}
impl LabelsUpdatedEvent {
    pub fn new() -> Self {
        Self::default()
    }
}
#[doc = "The class to represent the line diff block"]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct LineDiffBlock {
    #[doc = "Type of change that was made to the block."]
    #[serde(
        rename = "changeType",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub change_type: Option<line_diff_block::ChangeType>,
    #[doc = "Line number where this block starts in modified file."]
    #[serde(
        rename = "modifiedLineNumberStart",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub modified_line_number_start: Option<i32>,
    #[doc = "Count of lines in this block in modified file."]
    #[serde(
        rename = "modifiedLinesCount",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub modified_lines_count: Option<i32>,
    #[doc = "Line number where this block starts in original file."]
    #[serde(
        rename = "originalLineNumberStart",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub original_line_number_start: Option<i32>,
    #[doc = "Count of lines in this block in original file."]
    #[serde(
        rename = "originalLinesCount",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub original_lines_count: Option<i32>,
}
impl LineDiffBlock {
    pub fn new() -> Self {
        Self::default()
    }
}
pub mod line_diff_block {
    use super::*;
    #[doc = "Type of change that was made to the block."]
    #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
    pub enum ChangeType {
        #[serde(rename = "none")]
        None,
        #[serde(rename = "add")]
        Add,
        #[serde(rename = "delete")]
        Delete,
        #[serde(rename = "edit")]
        Edit,
    }
}
#[doc = "Link URL"]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
pub struct Link {
    pub href: String,
}
impl Link {
    pub fn new(href: String) -> Self {
        Self { href }
    }
}
#[doc = "Real time event (SignalR) for a merge completed on a pull request"]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct MergeCompletedEvent {
    #[serde(flatten)]
    pub real_time_pull_request_event: RealTimePullRequestEvent,
}
impl MergeCompletedEvent {
    pub fn new() -> Self {
        Self::default()
    }
}
#[doc = "The full policy configuration with settings."]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct PolicyConfiguration {
    #[serde(flatten)]
    pub versioned_policy_configuration_ref: VersionedPolicyConfigurationRef,
    #[doc = "Links"]
    #[serde(rename = "_links", default, skip_serializing_if = "Option::is_none")]
    pub links: Option<serde_json::Value>,
    #[doc = ""]
    #[serde(rename = "createdBy", default, skip_serializing_if = "Option::is_none")]
    pub created_by: Option<IdentityRef>,
    #[doc = "The date and time when the policy was created."]
    #[serde(
        rename = "createdDate",
        default,
        with = "crate::date_time::rfc3339::option"
    )]
    pub created_date: Option<time::OffsetDateTime>,
    #[doc = "Indicates whether the policy is blocking."]
    #[serde(
        rename = "isBlocking",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub is_blocking: Option<bool>,
    #[doc = "Indicates whether the policy has been (soft) deleted."]
    #[serde(rename = "isDeleted", default, skip_serializing_if = "Option::is_none")]
    pub is_deleted: Option<bool>,
    #[doc = "Indicates whether the policy is enabled."]
    #[serde(rename = "isEnabled", default, skip_serializing_if = "Option::is_none")]
    pub is_enabled: Option<bool>,
    #[doc = "If set, this policy requires \"Manage Enterprise Policies\" permission to create, edit, or delete."]
    #[serde(
        rename = "isEnterpriseManaged",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub is_enterprise_managed: Option<bool>,
    #[doc = "The policy configuration settings."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub settings: Option<String>,
}
impl PolicyConfiguration {
    pub fn new() -> Self {
        Self::default()
    }
}
#[doc = ""]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct PolicyConfigurationList {
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub count: Option<i32>,
    #[serde(default, skip_serializing_if = "Vec::is_empty")]
    pub value: Vec<PolicyConfiguration>,
}
impl PolicyConfigurationList {
    pub fn new() -> Self {
        Self::default()
    }
}
#[doc = "Policy configuration reference."]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct PolicyConfigurationRef {
    #[doc = "The policy configuration ID."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub id: Option<i32>,
    #[doc = "Policy type reference."]
    #[serde(rename = "type", default, skip_serializing_if = "Option::is_none")]
    pub type_: Option<PolicyTypeRef>,
    #[doc = "The URL where the policy configuration can be retrieved."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub url: Option<String>,
}
impl PolicyConfigurationRef {
    pub fn new() -> Self {
        Self::default()
    }
}
#[doc = "Real time event (SignalR) for a policy evaluation update on a pull request"]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct PolicyEvaluationUpdatedEvent {
    #[serde(flatten)]
    pub real_time_pull_request_event: RealTimePullRequestEvent,
}
impl PolicyEvaluationUpdatedEvent {
    pub fn new() -> Self {
        Self::default()
    }
}
#[doc = "Policy type reference."]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct PolicyTypeRef {
    #[doc = "Display name of the policy type."]
    #[serde(
        rename = "displayName",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub display_name: Option<String>,
    #[doc = "The policy type ID."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub id: Option<String>,
    #[doc = "The URL where the policy type can be retrieved."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub url: Option<String>,
}
impl PolicyTypeRef {
    pub fn new() -> Self {
        Self::default()
    }
}
#[doc = "The class represents a property bag as a collection of key-value pairs. Values of all primitive types (any type with a `TypeCode != TypeCode.Object`) except for `DBNull` are accepted. Values of type Byte[], Int32, Double, DateType and String preserve their type, other primitives are retuned as a String. Byte[] expected as base64 encoded string."]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct PropertiesCollection {
    #[doc = "The count of properties in the collection."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub count: Option<i32>,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub item: Option<serde_json::Value>,
    #[doc = "The set of keys in the collection."]
    #[serde(default, skip_serializing_if = "Vec::is_empty")]
    pub keys: Vec<String>,
    #[doc = "The set of values in the collection."]
    #[serde(default, skip_serializing_if = "Vec::is_empty")]
    pub values: Vec<String>,
}
impl PropertiesCollection {
    pub fn new() -> Self {
        Self::default()
    }
}
#[doc = "Real time event (SignalR) for pull request creation"]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct PullRequestCreatedEvent {
    #[serde(flatten)]
    pub real_time_pull_request_event: RealTimePullRequestEvent,
}
impl PullRequestCreatedEvent {
    pub fn new() -> Self {
        Self::default()
    }
}
#[doc = "Initial config contract sent to extensions creating tabs on the pull request page"]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct PullRequestTabExtensionConfig {
    #[serde(
        rename = "pullRequestId",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub pull_request_id: Option<i32>,
    #[serde(
        rename = "repositoryId",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub repository_id: Option<String>,
}
impl PullRequestTabExtensionConfig {
    pub fn new() -> Self {
        Self::default()
    }
}
#[doc = "Base contract for a real time pull request event (SignalR)"]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct RealTimePullRequestEvent {
    #[doc = "The id of this event. Can be used to track send/receive state between client and server."]
    #[serde(rename = "eventId", default, skip_serializing_if = "Option::is_none")]
    pub event_id: Option<String>,
    #[doc = "The id of the pull request this event was generated for."]
    #[serde(
        rename = "pullRequestId",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub pull_request_id: Option<i32>,
}
impl RealTimePullRequestEvent {
    pub fn new() -> Self {
        Self::default()
    }
}
#[doc = "The class to represent a collection of REST reference links."]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct ReferenceLinks {
    #[doc = "Link URL"]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub commits: Option<Link>,
    #[doc = "Link URL"]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub items: Option<Link>,
    #[doc = "Link URL"]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub project: Option<Link>,
    #[doc = "Link URL"]
    #[serde(
        rename = "pullRequests",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub pull_requests: Option<Link>,
    #[doc = "Link URL"]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub pushes: Option<Link>,
    #[doc = "Link URL"]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub refs: Option<Link>,
    #[doc = "Link URL"]
    #[serde(rename = "self", default, skip_serializing_if = "Option::is_none")]
    pub self_: Option<Link>,
    #[doc = "Link URL"]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub ssh: Option<Link>,
    #[doc = "Link URL"]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub web: Option<Link>,
}
impl ReferenceLinks {
    pub fn new() -> Self {
        Self::default()
    }
}
#[doc = ""]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct ResourceRef {
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub id: Option<String>,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub url: Option<String>,
}
impl ResourceRef {
    pub fn new() -> Self {
        Self::default()
    }
}
#[doc = ""]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct ResourceRefList {
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub count: Option<i32>,
    #[serde(default, skip_serializing_if = "Vec::is_empty")]
    pub value: Vec<ResourceRef>,
}
impl ResourceRefList {
    pub fn new() -> Self {
        Self::default()
    }
}
#[doc = "Real time event (SignalR) for when the target branch of a pull request is changed"]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct RetargetEvent {
    #[serde(flatten)]
    pub real_time_pull_request_event: RealTimePullRequestEvent,
}
impl RetargetEvent {
    pub fn new() -> Self {
        Self::default()
    }
}
#[doc = "Real time event (SignalR) for a reviewer vote update on a pull request"]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct ReviewerVoteUpdatedEvent {
    #[serde(flatten)]
    pub real_time_pull_request_event: RealTimePullRequestEvent,
}
impl ReviewerVoteUpdatedEvent {
    pub fn new() -> Self {
        Self::default()
    }
}
#[doc = "Real time event (SignalR) for an update to reviewers on a pull request"]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct ReviewersUpdatedEvent {
    #[serde(flatten)]
    pub real_time_pull_request_event: RealTimePullRequestEvent,
}
impl ReviewersUpdatedEvent {
    pub fn new() -> Self {
        Self::default()
    }
}
#[doc = "Real time event (SignalR) for reviewer votes being reset on a pull request"]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct ReviewersVotesResetEvent {
    #[serde(flatten)]
    pub real_time_pull_request_event: RealTimePullRequestEvent,
}
impl ReviewersVotesResetEvent {
    pub fn new() -> Self {
        Self::default()
    }
}
#[doc = "Context used while sharing a pull request."]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct ShareNotificationContext {
    #[doc = "Optional user note or message."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub message: Option<String>,
    #[doc = "Identities of users who will receive a share notification."]
    #[serde(default, skip_serializing_if = "Vec::is_empty")]
    pub receivers: Vec<IdentityRef>,
}
impl ShareNotificationContext {
    pub fn new() -> Self {
        Self::default()
    }
}
#[doc = ""]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct SourceToTargetRef {
    #[doc = "The source ref to copy. For example, refs/heads/master."]
    #[serde(rename = "sourceRef", default, skip_serializing_if = "Option::is_none")]
    pub source_ref: Option<String>,
    #[doc = "The target ref to update. For example, refs/heads/master."]
    #[serde(rename = "targetRef", default, skip_serializing_if = "Option::is_none")]
    pub target_ref: Option<String>,
}
impl SourceToTargetRef {
    pub fn new() -> Self {
        Self::default()
    }
}
#[doc = "Real time event (SignalR) for an added status on a pull request"]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct StatusAddedEvent {
    #[serde(flatten)]
    pub real_time_pull_request_event: RealTimePullRequestEvent,
}
impl StatusAddedEvent {
    pub fn new() -> Self {
        Self::default()
    }
}
#[doc = "Real time event (SignalR) for a status update on a pull request"]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct StatusUpdatedEvent {
    #[serde(flatten)]
    pub real_time_pull_request_event: RealTimePullRequestEvent,
}
impl StatusUpdatedEvent {
    pub fn new() -> Self {
        Self::default()
    }
}
#[doc = "Real time event (SignalR) for deleted statuses on a pull request"]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct StatusesDeletedEvent {
    #[serde(flatten)]
    pub real_time_pull_request_event: RealTimePullRequestEvent,
}
impl StatusesDeletedEvent {
    pub fn new() -> Self {
        Self::default()
    }
}
#[doc = "Represents a Supported IDE entity."]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct SupportedIde {
    #[doc = "The download URL for the IDE."]
    #[serde(
        rename = "downloadUrl",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub download_url: Option<String>,
    #[doc = "The type of the IDE."]
    #[serde(rename = "ideType", default, skip_serializing_if = "Option::is_none")]
    pub ide_type: Option<supported_ide::IdeType>,
    #[doc = "The name of the IDE."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub name: Option<String>,
    #[doc = "The URL to open the protocol handler for the IDE."]
    #[serde(
        rename = "protocolHandlerUrl",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub protocol_handler_url: Option<String>,
    #[doc = "A list of SupportedPlatforms."]
    #[serde(
        rename = "supportedPlatforms",
        default,
        skip_serializing_if = "Vec::is_empty"
    )]
    pub supported_platforms: Vec<String>,
}
impl SupportedIde {
    pub fn new() -> Self {
        Self::default()
    }
}
pub mod supported_ide {
    use super::*;
    #[doc = "The type of the IDE."]
    #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
    pub enum IdeType {
        #[serde(rename = "unknown")]
        Unknown,
        #[serde(rename = "androidStudio")]
        AndroidStudio,
        #[serde(rename = "appCode")]
        AppCode,
        #[serde(rename = "cLion")]
        CLion,
        #[serde(rename = "dataGrip")]
        DataGrip,
        #[serde(rename = "eclipse")]
        Eclipse,
        #[serde(rename = "intelliJ")]
        IntelliJ,
        #[serde(rename = "mps")]
        Mps,
        #[serde(rename = "phpStorm")]
        PhpStorm,
        #[serde(rename = "pyCharm")]
        PyCharm,
        #[serde(rename = "rubyMine")]
        RubyMine,
        #[serde(rename = "tower")]
        Tower,
        #[serde(rename = "visualStudio")]
        VisualStudio,
        #[serde(rename = "vsCode")]
        VsCode,
        #[serde(rename = "webStorm")]
        WebStorm,
    }
}
#[doc = "Reference object for a TeamProjectCollection."]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct TeamProjectCollectionReference {
    #[doc = "Collection Id."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub id: Option<String>,
    #[doc = "Collection Name."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub name: Option<String>,
    #[doc = "Collection REST Url."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub url: Option<String>,
}
impl TeamProjectCollectionReference {
    pub fn new() -> Self {
        Self::default()
    }
}
#[doc = "Represents a shallow reference to a TeamProject."]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
pub struct TeamProjectReference {
    #[doc = "Project abbreviation."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub abbreviation: Option<String>,
    #[doc = "Url to default team identity image."]
    #[serde(
        rename = "defaultTeamImageUrl",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub default_team_image_url: Option<String>,
    #[doc = "The project's description (if any)."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub description: Option<String>,
    #[doc = "Project identifier."]
    pub id: String,
    #[doc = "Project last update time."]
    #[serde(rename = "lastUpdateTime", with = "crate::date_time::rfc3339")]
    pub last_update_time: time::OffsetDateTime,
    #[doc = "Project name."]
    pub name: String,
    #[doc = "Project revision."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub revision: Option<i64>,
    #[doc = "Project state."]
    pub state: team_project_reference::State,
    #[doc = "Url to the full version of the object."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub url: Option<String>,
    #[doc = "Project visibility."]
    pub visibility: team_project_reference::Visibility,
}
impl TeamProjectReference {
    pub fn new(
        id: String,
        last_update_time: time::OffsetDateTime,
        name: String,
        state: team_project_reference::State,
        visibility: team_project_reference::Visibility,
    ) -> Self {
        Self {
            abbreviation: None,
            default_team_image_url: None,
            description: None,
            id,
            last_update_time,
            name,
            revision: None,
            state,
            url: None,
            visibility,
        }
    }
}
pub mod team_project_reference {
    use super::*;
    #[doc = "Project state."]
    #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
    pub enum State {
        #[serde(rename = "deleting")]
        Deleting,
        #[serde(rename = "new")]
        New,
        #[serde(rename = "wellFormed")]
        WellFormed,
        #[serde(rename = "createPending")]
        CreatePending,
        #[serde(rename = "all")]
        All,
        #[serde(rename = "unchanged")]
        Unchanged,
        #[serde(rename = "deleted")]
        Deleted,
    }
    #[doc = "Project visibility."]
    #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
    pub enum Visibility {
        #[serde(rename = "private")]
        Private,
        #[serde(rename = "public")]
        Public,
        #[serde(rename = "organization")]
        Organization,
        #[serde(rename = "unchanged")]
        Unchanged,
    }
}
#[doc = "Class representing a branch object."]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct TfvcBranch {
    #[serde(flatten)]
    pub tfvc_branch_ref: TfvcBranchRef,
    #[doc = "List of children for the branch."]
    #[serde(default, skip_serializing_if = "Vec::is_empty")]
    pub children: Vec<TfvcBranch>,
    #[doc = "List of branch mappings."]
    #[serde(default, skip_serializing_if = "Vec::is_empty")]
    pub mappings: Vec<TfvcBranchMapping>,
    #[doc = "This is the shallow branchref class."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub parent: Option<TfvcShallowBranchRef>,
    #[doc = "List of paths of the related branches."]
    #[serde(
        rename = "relatedBranches",
        default,
        skip_serializing_if = "Vec::is_empty"
    )]
    pub related_branches: Vec<TfvcShallowBranchRef>,
}
impl TfvcBranch {
    pub fn new() -> Self {
        Self::default()
    }
}
#[doc = "A branch mapping."]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct TfvcBranchMapping {
    #[doc = "Depth of the branch."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub depth: Option<String>,
    #[doc = "Server item for the branch."]
    #[serde(
        rename = "serverItem",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub server_item: Option<String>,
    #[doc = "Type of the branch."]
    #[serde(rename = "type", default, skip_serializing_if = "Option::is_none")]
    pub type_: Option<String>,
}
impl TfvcBranchMapping {
    pub fn new() -> Self {
        Self::default()
    }
}
#[doc = "Metadata for a branchref."]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct TfvcBranchRef {
    #[serde(flatten)]
    pub tfvc_shallow_branch_ref: TfvcShallowBranchRef,
    #[doc = "Links"]
    #[serde(rename = "_links", default, skip_serializing_if = "Option::is_none")]
    pub links: Option<serde_json::Value>,
    #[doc = "Creation date of the branch."]
    #[serde(
        rename = "createdDate",
        default,
        with = "crate::date_time::rfc3339::option"
    )]
    pub created_date: Option<time::OffsetDateTime>,
    #[doc = "Branch description."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub description: Option<String>,
    #[doc = "Is the branch deleted?"]
    #[serde(rename = "isDeleted", default, skip_serializing_if = "Option::is_none")]
    pub is_deleted: Option<bool>,
    #[doc = ""]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub owner: Option<IdentityRef>,
    #[doc = "URL to retrieve the item."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub url: Option<String>,
}
impl TfvcBranchRef {
    pub fn new() -> Self {
        Self::default()
    }
}
#[doc = "A change."]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
pub struct TfvcChange {
    #[serde(flatten)]
    pub change: Change,
    #[doc = "List of merge sources in case of rename or branch creation."]
    #[serde(
        rename = "mergeSources",
        default,
        skip_serializing_if = "Vec::is_empty"
    )]
    pub merge_sources: Vec<TfvcMergeSource>,
    #[doc = "Version at which a (shelved) change was pended against"]
    #[serde(
        rename = "pendingVersion",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub pending_version: Option<i32>,
}
impl TfvcChange {
    pub fn new(change: Change) -> Self {
        Self {
            change,
            merge_sources: Vec::new(),
            pending_version: None,
        }
    }
}
#[doc = "A collection of changes."]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct TfvcChangeset {
    #[serde(flatten)]
    pub tfvc_changeset_ref: TfvcChangesetRef,
    #[doc = "Changeset Account Id also known as Organization Id."]
    #[serde(rename = "accountId", default, skip_serializing_if = "Option::is_none")]
    pub account_id: Option<String>,
    #[doc = "List of associated changes."]
    #[serde(default, skip_serializing_if = "Vec::is_empty")]
    pub changes: Vec<TfvcChange>,
    #[doc = "List of Checkin Notes for the changeset."]
    #[serde(
        rename = "checkinNotes",
        default,
        skip_serializing_if = "Vec::is_empty"
    )]
    pub checkin_notes: Vec<CheckinNote>,
    #[doc = "Changeset collection Id."]
    #[serde(
        rename = "collectionId",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub collection_id: Option<String>,
    #[doc = "True if more changes are available."]
    #[serde(
        rename = "hasMoreChanges",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub has_more_changes: Option<bool>,
    #[doc = "Information on the policy override."]
    #[serde(
        rename = "policyOverride",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub policy_override: Option<TfvcPolicyOverrideInfo>,
    #[doc = "Team Project Ids for the changeset."]
    #[serde(
        rename = "teamProjectIds",
        default,
        skip_serializing_if = "Vec::is_empty"
    )]
    pub team_project_ids: Vec<String>,
    #[doc = "List of work items associated with the changeset."]
    #[serde(rename = "workItems", default, skip_serializing_if = "Vec::is_empty")]
    pub work_items: Vec<AssociatedWorkItem>,
}
impl TfvcChangeset {
    pub fn new() -> Self {
        Self::default()
    }
}
#[doc = "Metadata for a changeset."]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct TfvcChangesetRef {
    #[doc = "Links"]
    #[serde(rename = "_links", default, skip_serializing_if = "Option::is_none")]
    pub links: Option<serde_json::Value>,
    #[doc = ""]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub author: Option<IdentityRef>,
    #[doc = "Changeset Id."]
    #[serde(
        rename = "changesetId",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub changeset_id: Option<i32>,
    #[doc = ""]
    #[serde(
        rename = "checkedInBy",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub checked_in_by: Option<IdentityRef>,
    #[doc = "Comment for the changeset."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub comment: Option<String>,
    #[doc = "Was the Comment result truncated?"]
    #[serde(
        rename = "commentTruncated",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub comment_truncated: Option<bool>,
    #[doc = "Creation date of the changeset."]
    #[serde(
        rename = "createdDate",
        default,
        with = "crate::date_time::rfc3339::option"
    )]
    pub created_date: Option<time::OffsetDateTime>,
    #[doc = "URL to retrieve the item."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub url: Option<String>,
}
impl TfvcChangesetRef {
    pub fn new() -> Self {
        Self::default()
    }
}
#[doc = "Criteria used in a search for change lists."]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct TfvcChangesetSearchCriteria {
    #[doc = "Alias or display name of user who made the changes."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub author: Option<String>,
    #[doc = "Whether or not to follow renames for the given item being queried."]
    #[serde(
        rename = "followRenames",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub follow_renames: Option<bool>,
    #[doc = "If provided, only include changesets created after this date (string)."]
    #[serde(rename = "fromDate", default, skip_serializing_if = "Option::is_none")]
    pub from_date: Option<String>,
    #[doc = "If provided, only include changesets after this changesetID."]
    #[serde(rename = "fromId", default, skip_serializing_if = "Option::is_none")]
    pub from_id: Option<i32>,
    #[doc = "Whether to include the _links field on the shallow references."]
    #[serde(
        rename = "includeLinks",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub include_links: Option<bool>,
    #[doc = "Path of item to search under."]
    #[serde(rename = "itemPath", default, skip_serializing_if = "Option::is_none")]
    pub item_path: Option<String>,
    #[serde(default, skip_serializing_if = "Vec::is_empty")]
    pub mappings: Vec<TfvcMappingFilter>,
    #[doc = "If provided, only include changesets created before this date (string)."]
    #[serde(rename = "toDate", default, skip_serializing_if = "Option::is_none")]
    pub to_date: Option<String>,
    #[doc = "If provided, a version descriptor for the latest change list to include."]
    #[serde(rename = "toId", default, skip_serializing_if = "Option::is_none")]
    pub to_id: Option<i32>,
}
impl TfvcChangesetSearchCriteria {
    pub fn new() -> Self {
        Self::default()
    }
}
#[doc = "Request body for Get batched changesets."]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct TfvcChangesetsRequestData {
    #[doc = "List of changeset Ids."]
    #[serde(
        rename = "changesetIds",
        default,
        skip_serializing_if = "Vec::is_empty"
    )]
    pub changeset_ids: Vec<i32>,
    #[doc = "Max length of the comment."]
    #[serde(
        rename = "commentLength",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub comment_length: Option<i32>,
    #[doc = "Whether to include the _links field on the shallow references"]
    #[serde(
        rename = "includeLinks",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub include_links: Option<bool>,
}
impl TfvcChangesetsRequestData {
    pub fn new() -> Self {
        Self::default()
    }
}
#[doc = ""]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct TfvcCheckinEventData {
    #[doc = "A collection of changes."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub changeset: Option<TfvcChangeset>,
    #[doc = "Represents a shallow reference to a TeamProject."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub project: Option<TeamProjectReference>,
}
impl TfvcCheckinEventData {
    pub fn new() -> Self {
        Self::default()
    }
}
#[doc = ""]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct TfvcHistoryEntry {
    #[serde(flatten)]
    pub history_entry: HistoryEntry,
    #[doc = "The encoding of the item at this point in history (only relevant for File history, not folders)"]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub encoding: Option<i32>,
    #[doc = "The file id of the item at this point in history (only relevant for File history, not folders)"]
    #[serde(rename = "fileId", default, skip_serializing_if = "Option::is_none")]
    pub file_id: Option<i32>,
}
impl TfvcHistoryEntry {
    pub fn new() -> Self {
        Self::default()
    }
}
#[doc = "Metadata for an item."]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct TfvcItem {
    #[serde(flatten)]
    pub item_model: ItemModel,
    #[doc = "Item changed datetime."]
    #[serde(
        rename = "changeDate",
        default,
        with = "crate::date_time::rfc3339::option"
    )]
    pub change_date: Option<time::OffsetDateTime>,
    #[doc = "Greater than 0 if item is deleted."]
    #[serde(
        rename = "deletionId",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub deletion_id: Option<i32>,
    #[doc = "File encoding from database, -1 represents binary."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub encoding: Option<i32>,
    #[doc = "MD5 hash as a base 64 string, applies to files only."]
    #[serde(rename = "hashValue", default, skip_serializing_if = "Option::is_none")]
    pub hash_value: Option<String>,
    #[doc = "True if item is a branch."]
    #[serde(rename = "isBranch", default, skip_serializing_if = "Option::is_none")]
    pub is_branch: Option<bool>,
    #[doc = "True if there is a change pending."]
    #[serde(
        rename = "isPendingChange",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub is_pending_change: Option<bool>,
    #[doc = "The size of the file, if applicable."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub size: Option<i64>,
    #[doc = "Changeset version Id."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub version: Option<i32>,
}
impl TfvcItem {
    pub fn new() -> Self {
        Self::default()
    }
}
#[doc = "Item path and Version descriptor properties"]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct TfvcItemDescriptor {
    #[doc = "Item path."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub path: Option<String>,
    #[doc = "Defaults to OneLevel."]
    #[serde(
        rename = "recursionLevel",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub recursion_level: Option<tfvc_item_descriptor::RecursionLevel>,
    #[doc = "Specify the desired version, can be null or empty string only if VersionType is latest or tip."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub version: Option<String>,
    #[doc = "Defaults to None."]
    #[serde(
        rename = "versionOption",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub version_option: Option<tfvc_item_descriptor::VersionOption>,
    #[doc = "Defaults to Latest."]
    #[serde(
        rename = "versionType",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub version_type: Option<tfvc_item_descriptor::VersionType>,
}
impl TfvcItemDescriptor {
    pub fn new() -> Self {
        Self::default()
    }
}
pub mod tfvc_item_descriptor {
    use super::*;
    #[doc = "Defaults to OneLevel."]
    #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
    pub enum RecursionLevel {
        #[serde(rename = "none")]
        None,
        #[serde(rename = "oneLevel")]
        OneLevel,
        #[serde(rename = "oneLevelPlusNestedEmptyFolders")]
        OneLevelPlusNestedEmptyFolders,
        #[serde(rename = "full")]
        Full,
    }
    #[doc = "Defaults to None."]
    #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
    pub enum VersionOption {
        #[serde(rename = "none")]
        None,
        #[serde(rename = "previous")]
        Previous,
        #[serde(rename = "useRename")]
        UseRename,
    }
    #[doc = "Defaults to Latest."]
    #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
    pub enum VersionType {
        #[serde(rename = "none")]
        None,
        #[serde(rename = "changeset")]
        Changeset,
        #[serde(rename = "shelveset")]
        Shelveset,
        #[serde(rename = "change")]
        Change,
        #[serde(rename = "date")]
        Date,
        #[serde(rename = "latest")]
        Latest,
        #[serde(rename = "tip")]
        Tip,
        #[serde(rename = "mergeSource")]
        MergeSource,
    }
}
#[doc = "Metadata for an item including the previous hash value for files."]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct TfvcItemPreviousHash {
    #[serde(flatten)]
    pub tfvc_item: TfvcItem,
    #[doc = "MD5 hash as a base 64 string, applies to files only."]
    #[serde(
        rename = "previousHashValue",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub previous_hash_value: Option<String>,
}
impl TfvcItemPreviousHash {
    pub fn new() -> Self {
        Self::default()
    }
}
#[doc = "Request body used by Get Items Batch"]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct TfvcItemRequestData {
    #[doc = "If true, include metadata about the file type"]
    #[serde(
        rename = "includeContentMetadata",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub include_content_metadata: Option<bool>,
    #[doc = "Whether to include the _links field on the shallow references"]
    #[serde(
        rename = "includeLinks",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub include_links: Option<bool>,
    #[serde(
        rename = "itemDescriptors",
        default,
        skip_serializing_if = "Vec::is_empty"
    )]
    pub item_descriptors: Vec<TfvcItemDescriptor>,
}
impl TfvcItemRequestData {
    pub fn new() -> Self {
        Self::default()
    }
}
#[doc = "Metadata for a label."]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct TfvcLabel {
    #[serde(flatten)]
    pub tfvc_label_ref: TfvcLabelRef,
    #[doc = "List of items."]
    #[serde(default, skip_serializing_if = "Vec::is_empty")]
    pub items: Vec<TfvcItem>,
}
impl TfvcLabel {
    pub fn new() -> Self {
        Self::default()
    }
}
#[doc = "Metadata for a Label."]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct TfvcLabelRef {
    #[doc = "Links"]
    #[serde(rename = "_links", default, skip_serializing_if = "Option::is_none")]
    pub links: Option<serde_json::Value>,
    #[doc = "Label description."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub description: Option<String>,
    #[doc = "Label Id."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub id: Option<i32>,
    #[doc = "Label scope."]
    #[serde(
        rename = "labelScope",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub label_scope: Option<String>,
    #[doc = "Last modified datetime for the label."]
    #[serde(
        rename = "modifiedDate",
        default,
        with = "crate::date_time::rfc3339::option"
    )]
    pub modified_date: Option<time::OffsetDateTime>,
    #[doc = "Label name."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub name: Option<String>,
    #[doc = ""]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub owner: Option<IdentityRef>,
    #[doc = "Label Url."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub url: Option<String>,
}
impl TfvcLabelRef {
    pub fn new() -> Self {
        Self::default()
    }
}
#[doc = ""]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct TfvcLabelRequestData {
    #[doc = "Whether to include the _links field on the shallow references"]
    #[serde(
        rename = "includeLinks",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub include_links: Option<bool>,
    #[serde(
        rename = "itemLabelFilter",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub item_label_filter: Option<String>,
    #[serde(
        rename = "labelScope",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub label_scope: Option<String>,
    #[serde(
        rename = "maxItemCount",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub max_item_count: Option<i32>,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub name: Option<String>,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub owner: Option<String>,
}
impl TfvcLabelRequestData {
    pub fn new() -> Self {
        Self::default()
    }
}
#[doc = "MappingFilter can be used to include or exclude specific paths."]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct TfvcMappingFilter {
    #[doc = "True if ServerPath should be excluded."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub exclude: Option<bool>,
    #[doc = "Path to be included or excluded."]
    #[serde(
        rename = "serverPath",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub server_path: Option<String>,
}
impl TfvcMappingFilter {
    pub fn new() -> Self {
        Self::default()
    }
}
#[doc = ""]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct TfvcMergeSource {
    #[doc = "Indicates if this a rename source. If false, it is a merge source."]
    #[serde(rename = "isRename", default, skip_serializing_if = "Option::is_none")]
    pub is_rename: Option<bool>,
    #[doc = "The server item of the merge source."]
    #[serde(
        rename = "serverItem",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub server_item: Option<String>,
    #[doc = "Start of the version range."]
    #[serde(
        rename = "versionFrom",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub version_from: Option<i32>,
    #[doc = "End of the version range."]
    #[serde(rename = "versionTo", default, skip_serializing_if = "Option::is_none")]
    pub version_to: Option<i32>,
}
impl TfvcMergeSource {
    pub fn new() -> Self {
        Self::default()
    }
}
#[doc = "Policy failure information."]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct TfvcPolicyFailureInfo {
    #[doc = "Policy failure message."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub message: Option<String>,
    #[doc = "Name of the policy that failed."]
    #[serde(
        rename = "policyName",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub policy_name: Option<String>,
}
impl TfvcPolicyFailureInfo {
    pub fn new() -> Self {
        Self::default()
    }
}
#[doc = "Information on the policy override."]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct TfvcPolicyOverrideInfo {
    #[doc = "Overidden policy comment."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub comment: Option<String>,
    #[doc = "Information on the failed policy that was overridden."]
    #[serde(
        rename = "policyFailures",
        default,
        skip_serializing_if = "Vec::is_empty"
    )]
    pub policy_failures: Vec<TfvcPolicyFailureInfo>,
}
impl TfvcPolicyOverrideInfo {
    pub fn new() -> Self {
        Self::default()
    }
}
#[doc = "This is the shallow branchref class."]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct TfvcShallowBranchRef {
    #[doc = "Path for the branch."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub path: Option<String>,
}
impl TfvcShallowBranchRef {
    pub fn new() -> Self {
        Self::default()
    }
}
#[doc = "Metadata for a shelveset."]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct TfvcShelveset {
    #[serde(flatten)]
    pub tfvc_shelveset_ref: TfvcShelvesetRef,
    #[doc = "List of changes."]
    #[serde(default, skip_serializing_if = "Vec::is_empty")]
    pub changes: Vec<TfvcChange>,
    #[doc = "List of checkin notes."]
    #[serde(default, skip_serializing_if = "Vec::is_empty")]
    pub notes: Vec<CheckinNote>,
    #[doc = "Information on the policy override."]
    #[serde(
        rename = "policyOverride",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub policy_override: Option<TfvcPolicyOverrideInfo>,
    #[doc = "List of associated workitems."]
    #[serde(rename = "workItems", default, skip_serializing_if = "Vec::is_empty")]
    pub work_items: Vec<AssociatedWorkItem>,
}
impl TfvcShelveset {
    pub fn new() -> Self {
        Self::default()
    }
}
#[doc = "Metadata for a shallow shelveset."]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct TfvcShelvesetRef {
    #[doc = "Links"]
    #[serde(rename = "_links", default, skip_serializing_if = "Option::is_none")]
    pub links: Option<serde_json::Value>,
    #[doc = "Shelveset comment."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub comment: Option<String>,
    #[doc = "Shelveset comment truncated as applicable."]
    #[serde(
        rename = "commentTruncated",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub comment_truncated: Option<bool>,
    #[doc = "Shelveset create date."]
    #[serde(
        rename = "createdDate",
        default,
        with = "crate::date_time::rfc3339::option"
    )]
    pub created_date: Option<time::OffsetDateTime>,
    #[doc = "Shelveset Id."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub id: Option<String>,
    #[doc = "Shelveset name."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub name: Option<String>,
    #[doc = ""]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub owner: Option<IdentityRef>,
    #[doc = "Shelveset Url."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub url: Option<String>,
}
impl TfvcShelvesetRef {
    pub fn new() -> Self {
        Self::default()
    }
}
#[doc = ""]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct TfvcShelvesetRequestData {
    #[doc = "Whether to include policyOverride and notes Only applies when requesting a single deep shelveset"]
    #[serde(
        rename = "includeDetails",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub include_details: Option<bool>,
    #[doc = "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."]
    #[serde(
        rename = "includeLinks",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub include_links: Option<bool>,
    #[doc = "Whether to include workItems"]
    #[serde(
        rename = "includeWorkItems",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub include_work_items: Option<bool>,
    #[doc = "Max number of changes to include"]
    #[serde(
        rename = "maxChangeCount",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub max_change_count: Option<i32>,
    #[doc = "Max length of comment"]
    #[serde(
        rename = "maxCommentLength",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub max_comment_length: Option<i32>,
    #[doc = "Shelveset name"]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub name: Option<String>,
    #[doc = "Owner's ID. Could be a name or a guid."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub owner: Option<String>,
}
impl TfvcShelvesetRequestData {
    pub fn new() -> Self {
        Self::default()
    }
}
#[doc = ""]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct TfvcStatistics {
    #[doc = "Id of the last changeset the stats are based on."]
    #[serde(
        rename = "changesetId",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub changeset_id: Option<i32>,
    #[doc = "Count of files at the requested scope."]
    #[serde(
        rename = "fileCountTotal",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub file_count_total: Option<i64>,
}
impl TfvcStatistics {
    pub fn new() -> Self {
        Self::default()
    }
}
#[doc = "Version descriptor properties."]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct TfvcVersionDescriptor {
    #[doc = "Version object."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub version: Option<String>,
    #[serde(
        rename = "versionOption",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub version_option: Option<tfvc_version_descriptor::VersionOption>,
    #[serde(
        rename = "versionType",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub version_type: Option<tfvc_version_descriptor::VersionType>,
}
impl TfvcVersionDescriptor {
    pub fn new() -> Self {
        Self::default()
    }
}
pub mod tfvc_version_descriptor {
    use super::*;
    #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
    pub enum VersionOption {
        #[serde(rename = "none")]
        None,
        #[serde(rename = "previous")]
        Previous,
        #[serde(rename = "useRename")]
        UseRename,
    }
    #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
    pub enum VersionType {
        #[serde(rename = "none")]
        None,
        #[serde(rename = "changeset")]
        Changeset,
        #[serde(rename = "shelveset")]
        Shelveset,
        #[serde(rename = "change")]
        Change,
        #[serde(rename = "date")]
        Date,
        #[serde(rename = "latest")]
        Latest,
        #[serde(rename = "tip")]
        Tip,
        #[serde(rename = "mergeSource")]
        MergeSource,
    }
}
#[doc = "Real time event (SignalR) for a title/description update on a pull request"]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct TitleDescriptionUpdatedEvent {
    #[serde(flatten)]
    pub real_time_pull_request_event: RealTimePullRequestEvent,
}
impl TitleDescriptionUpdatedEvent {
    pub fn new() -> Self {
        Self::default()
    }
}
#[doc = ""]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct UpdateRefsRequest {
    #[serde(
        rename = "refUpdateRequests",
        default,
        skip_serializing_if = "Vec::is_empty"
    )]
    pub ref_update_requests: Vec<GitRefUpdate>,
    #[serde(
        rename = "updateMode",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub update_mode: Option<update_refs_request::UpdateMode>,
}
impl UpdateRefsRequest {
    pub fn new() -> Self {
        Self::default()
    }
}
pub mod update_refs_request {
    use super::*;
    #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
    pub enum UpdateMode {
        #[serde(rename = "bestEffort")]
        BestEffort,
        #[serde(rename = "allOrNone")]
        AllOrNone,
    }
}
#[doc = ""]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct VersionControlProjectInfo {
    #[serde(
        rename = "defaultSourceControlType",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub default_source_control_type: Option<version_control_project_info::DefaultSourceControlType>,
    #[doc = "Represents a shallow reference to a TeamProject."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub project: Option<TeamProjectReference>,
    #[serde(
        rename = "supportsGit",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub supports_git: Option<bool>,
    #[serde(
        rename = "supportsTFVC",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub supports_tfvc: Option<bool>,
}
impl VersionControlProjectInfo {
    pub fn new() -> Self {
        Self::default()
    }
}
pub mod version_control_project_info {
    use super::*;
    #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
    pub enum DefaultSourceControlType {
        #[serde(rename = "tfvc")]
        Tfvc,
        #[serde(rename = "git")]
        Git,
    }
}
#[doc = "A particular revision for a policy configuration."]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct VersionedPolicyConfigurationRef {
    #[serde(flatten)]
    pub policy_configuration_ref: PolicyConfigurationRef,
    #[doc = "The policy configuration revision ID."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub revision: Option<i32>,
}
impl VersionedPolicyConfigurationRef {
    pub fn new() -> Self {
        Self::default()
    }
}
#[doc = "This class is used to serialized collections as a single JSON object on the wire, to avoid serializing JSON arrays directly to the client, which can be a security hole"]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct VssJsonCollectionWrapper {
    #[serde(flatten)]
    pub vss_json_collection_wrapper_base: VssJsonCollectionWrapperBase,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub value: Option<String>,
}
impl VssJsonCollectionWrapper {
    pub fn new() -> Self {
        Self::default()
    }
}
#[doc = ""]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct VssJsonCollectionWrapperBase {
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub count: Option<i32>,
}
impl VssJsonCollectionWrapperBase {
    pub fn new() -> Self {
        Self::default()
    }
}
#[doc = "The representation of data needed to create a tag definition which is sent across the wire."]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct WebApiCreateTagRequestData {
    #[doc = "Name of the tag definition that will be created."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub name: Option<String>,
}
impl WebApiCreateTagRequestData {
    pub fn new() -> Self {
        Self::default()
    }
}
#[doc = "The representation of a tag definition which is sent across the wire."]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct WebApiTagDefinition {
    #[doc = "Whether or not the tag definition is active."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub active: Option<bool>,
    #[doc = "ID of the tag definition."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub id: Option<String>,
    #[doc = "The name of the tag definition."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub name: Option<String>,
    #[doc = "Resource URL for the Tag Definition."]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub url: Option<String>,
}
impl WebApiTagDefinition {
    pub fn new() -> Self {
        Self::default()
    }
}
#[doc = ""]
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)]
pub struct WebApiTagDefinitionList {
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub count: Option<i32>,
    #[serde(default, skip_serializing_if = "Vec::is_empty")]
    pub value: Vec<WebApiTagDefinition>,
}
impl WebApiTagDefinitionList {
    pub fn new() -> Self {
        Self::default()
    }
}