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
|
# --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# --------------------------------------------------------------------------------------------
# Generated file, DO NOT EDIT
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------------------------
from msrest.serialization import Model
class Attachment(Model):
"""
Meta data for a file attached to an artifact.
:param _links: Links to other related objects.
:type _links: :class:`ReferenceLinks <azure.devops.v6_0.git.models.ReferenceLinks>`
:param author: The person that uploaded this attachment.
:type author: :class:`IdentityRef <azure.devops.v6_0.git.models.IdentityRef>`
:param content_hash: Content hash of on-disk representation of file content. Its calculated by the server by using SHA1 hash function.
:type content_hash: str
:param created_date: The time the attachment was uploaded.
:type created_date: datetime
:param description: The description of the attachment.
:type description: str
:param display_name: The display name of the attachment. Can't be null or empty.
:type display_name: str
:param id: Id of the attachment.
:type id: int
:param properties: Extended properties.
:type properties: :class:`object <azure.devops.v6_0.git.models.object>`
:param url: The url to download the content of the attachment.
:type url: str
"""
_attribute_map = {
'_links': {'key': '_links', 'type': 'ReferenceLinks'},
'author': {'key': 'author', 'type': 'IdentityRef'},
'content_hash': {'key': 'contentHash', 'type': 'str'},
'created_date': {'key': 'createdDate', 'type': 'iso-8601'},
'description': {'key': 'description', 'type': 'str'},
'display_name': {'key': 'displayName', 'type': 'str'},
'id': {'key': 'id', 'type': 'int'},
'properties': {'key': 'properties', 'type': 'object'},
'url': {'key': 'url', 'type': 'str'}
}
def __init__(self, _links=None, author=None, content_hash=None, created_date=None, description=None, display_name=None, id=None, properties=None, url=None):
super(Attachment, self).__init__()
self._links = _links
self.author = author
self.content_hash = content_hash
self.created_date = created_date
self.description = description
self.display_name = display_name
self.id = id
self.properties = properties
self.url = url
class Change(Model):
"""
:param change_type: The type of change that was made to the item.
:type change_type: object
:param item: Current version.
:type item: object
:param new_content: Content of the item after the change.
:type new_content: :class:`ItemContent <azure.devops.v6_0.git.models.ItemContent>`
:param source_server_item: Path of the item on the server.
:type source_server_item: str
:param url: URL to retrieve the item.
:type url: str
"""
_attribute_map = {
'change_type': {'key': 'changeType', 'type': 'object'},
'item': {'key': 'item', 'type': 'object'},
'new_content': {'key': 'newContent', 'type': 'ItemContent'},
'source_server_item': {'key': 'sourceServerItem', 'type': 'str'},
'url': {'key': 'url', 'type': 'str'}
}
def __init__(self, change_type=None, item=None, new_content=None, source_server_item=None, url=None):
super(Change, self).__init__()
self.change_type = change_type
self.item = item
self.new_content = new_content
self.source_server_item = source_server_item
self.url = url
class Comment(Model):
"""
Represents a comment which is one of potentially many in a comment thread.
:param _links: Links to other related objects.
:type _links: :class:`ReferenceLinks <azure.devops.v6_0.git.models.ReferenceLinks>`
:param author: The author of the comment.
:type author: :class:`IdentityRef <azure.devops.v6_0.git.models.IdentityRef>`
:param comment_type: The comment type at the time of creation.
:type comment_type: object
:param content: The comment content.
:type content: str
:param id: The comment ID. IDs start at 1 and are unique to a pull request.
:type id: int
:param is_deleted: Whether or not this comment was soft-deleted.
:type is_deleted: bool
:param last_content_updated_date: The date the comment's content was last updated.
:type last_content_updated_date: datetime
:param last_updated_date: The date the comment was last updated.
:type last_updated_date: datetime
:param parent_comment_id: The ID of the parent comment. This is used for replies.
:type parent_comment_id: int
:param published_date: The date the comment was first published.
:type published_date: datetime
:param users_liked: A list of the users who have liked this comment.
:type users_liked: list of :class:`IdentityRef <azure.devops.v6_0.git.models.IdentityRef>`
"""
_attribute_map = {
'_links': {'key': '_links', 'type': 'ReferenceLinks'},
'author': {'key': 'author', 'type': 'IdentityRef'},
'comment_type': {'key': 'commentType', 'type': 'object'},
'content': {'key': 'content', 'type': 'str'},
'id': {'key': 'id', 'type': 'int'},
'is_deleted': {'key': 'isDeleted', 'type': 'bool'},
'last_content_updated_date': {'key': 'lastContentUpdatedDate', 'type': 'iso-8601'},
'last_updated_date': {'key': 'lastUpdatedDate', 'type': 'iso-8601'},
'parent_comment_id': {'key': 'parentCommentId', 'type': 'int'},
'published_date': {'key': 'publishedDate', 'type': 'iso-8601'},
'users_liked': {'key': 'usersLiked', 'type': '[IdentityRef]'}
}
def __init__(self, _links=None, author=None, comment_type=None, content=None, id=None, is_deleted=None, last_content_updated_date=None, last_updated_date=None, parent_comment_id=None, published_date=None, users_liked=None):
super(Comment, self).__init__()
self._links = _links
self.author = author
self.comment_type = comment_type
self.content = content
self.id = id
self.is_deleted = is_deleted
self.last_content_updated_date = last_content_updated_date
self.last_updated_date = last_updated_date
self.parent_comment_id = parent_comment_id
self.published_date = published_date
self.users_liked = users_liked
class CommentIterationContext(Model):
"""
Comment iteration context is used to identify which diff was being viewed when the thread was created.
:param first_comparing_iteration: 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.
:type first_comparing_iteration: int
:param second_comparing_iteration: The iteration of the file on the right side of the diff when the thread was created.
:type second_comparing_iteration: int
"""
_attribute_map = {
'first_comparing_iteration': {'key': 'firstComparingIteration', 'type': 'int'},
'second_comparing_iteration': {'key': 'secondComparingIteration', 'type': 'int'}
}
def __init__(self, first_comparing_iteration=None, second_comparing_iteration=None):
super(CommentIterationContext, self).__init__()
self.first_comparing_iteration = first_comparing_iteration
self.second_comparing_iteration = second_comparing_iteration
class CommentPosition(Model):
"""
:param line: The line number of a thread's position. Starts at 1.
:type line: int
:param offset: The character offset of a thread's position inside of a line. Starts at 0.
:type offset: int
"""
_attribute_map = {
'line': {'key': 'line', 'type': 'int'},
'offset': {'key': 'offset', 'type': 'int'}
}
def __init__(self, line=None, offset=None):
super(CommentPosition, self).__init__()
self.line = line
self.offset = offset
class CommentThread(Model):
"""
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).
:param _links: Links to other related objects.
:type _links: :class:`ReferenceLinks <azure.devops.v6_0.git.models.ReferenceLinks>`
:param comments: A list of the comments.
:type comments: list of :class:`Comment <azure.devops.v6_0.git.models.Comment>`
:param id: The comment thread id.
:type id: int
:param identities: Set of identities related to this thread
:type identities: dict
:param is_deleted: Specify if the thread is deleted which happens when all comments are deleted.
:type is_deleted: bool
:param last_updated_date: The time this thread was last updated.
:type last_updated_date: datetime
:param properties: Optional properties associated with the thread as a collection of key-value pairs.
:type properties: :class:`object <azure.devops.v6_0.git.models.object>`
:param published_date: The time this thread was published.
:type published_date: datetime
:param status: The status of the comment thread.
:type status: object
:param thread_context: Specify thread context such as position in left/right file.
:type thread_context: :class:`CommentThreadContext <azure.devops.v6_0.git.models.CommentThreadContext>`
"""
_attribute_map = {
'_links': {'key': '_links', 'type': 'ReferenceLinks'},
'comments': {'key': 'comments', 'type': '[Comment]'},
'id': {'key': 'id', 'type': 'int'},
'identities': {'key': 'identities', 'type': '{IdentityRef}'},
'is_deleted': {'key': 'isDeleted', 'type': 'bool'},
'last_updated_date': {'key': 'lastUpdatedDate', 'type': 'iso-8601'},
'properties': {'key': 'properties', 'type': 'object'},
'published_date': {'key': 'publishedDate', 'type': 'iso-8601'},
'status': {'key': 'status', 'type': 'object'},
'thread_context': {'key': 'threadContext', 'type': 'CommentThreadContext'}
}
def __init__(self, _links=None, comments=None, id=None, identities=None, is_deleted=None, last_updated_date=None, properties=None, published_date=None, status=None, thread_context=None):
super(CommentThread, self).__init__()
self._links = _links
self.comments = comments
self.id = id
self.identities = identities
self.is_deleted = is_deleted
self.last_updated_date = last_updated_date
self.properties = properties
self.published_date = published_date
self.status = status
self.thread_context = thread_context
class CommentThreadContext(Model):
"""
:param file_path: File path relative to the root of the repository. It's up to the client to use any path format.
:type file_path: str
:param left_file_end: Position of last character of the thread's span in left file.
:type left_file_end: :class:`CommentPosition <azure.devops.v6_0.git.models.CommentPosition>`
:param left_file_start: Position of first character of the thread's span in left file.
:type left_file_start: :class:`CommentPosition <azure.devops.v6_0.git.models.CommentPosition>`
:param right_file_end: Position of last character of the thread's span in right file.
:type right_file_end: :class:`CommentPosition <azure.devops.v6_0.git.models.CommentPosition>`
:param right_file_start: Position of first character of the thread's span in right file.
:type right_file_start: :class:`CommentPosition <azure.devops.v6_0.git.models.CommentPosition>`
"""
_attribute_map = {
'file_path': {'key': 'filePath', 'type': 'str'},
'left_file_end': {'key': 'leftFileEnd', 'type': 'CommentPosition'},
'left_file_start': {'key': 'leftFileStart', 'type': 'CommentPosition'},
'right_file_end': {'key': 'rightFileEnd', 'type': 'CommentPosition'},
'right_file_start': {'key': 'rightFileStart', 'type': 'CommentPosition'}
}
def __init__(self, file_path=None, left_file_end=None, left_file_start=None, right_file_end=None, right_file_start=None):
super(CommentThreadContext, self).__init__()
self.file_path = file_path
self.left_file_end = left_file_end
self.left_file_start = left_file_start
self.right_file_end = right_file_end
self.right_file_start = right_file_start
class CommentTrackingCriteria(Model):
"""
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.
:param first_comparing_iteration: 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.
:type first_comparing_iteration: int
:param orig_file_path: 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.
:type orig_file_path: str
:param orig_left_file_end: Original position of last character of the thread's span in left file.
:type orig_left_file_end: :class:`CommentPosition <azure.devops.v6_0.git.models.CommentPosition>`
:param orig_left_file_start: Original position of first character of the thread's span in left file.
:type orig_left_file_start: :class:`CommentPosition <azure.devops.v6_0.git.models.CommentPosition>`
:param orig_right_file_end: Original position of last character of the thread's span in right file.
:type orig_right_file_end: :class:`CommentPosition <azure.devops.v6_0.git.models.CommentPosition>`
:param orig_right_file_start: Original position of first character of the thread's span in right file.
:type orig_right_file_start: :class:`CommentPosition <azure.devops.v6_0.git.models.CommentPosition>`
:param second_comparing_iteration: 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.
:type second_comparing_iteration: int
"""
_attribute_map = {
'first_comparing_iteration': {'key': 'firstComparingIteration', 'type': 'int'},
'orig_file_path': {'key': 'origFilePath', 'type': 'str'},
'orig_left_file_end': {'key': 'origLeftFileEnd', 'type': 'CommentPosition'},
'orig_left_file_start': {'key': 'origLeftFileStart', 'type': 'CommentPosition'},
'orig_right_file_end': {'key': 'origRightFileEnd', 'type': 'CommentPosition'},
'orig_right_file_start': {'key': 'origRightFileStart', 'type': 'CommentPosition'},
'second_comparing_iteration': {'key': 'secondComparingIteration', 'type': 'int'}
}
def __init__(self, first_comparing_iteration=None, orig_file_path=None, orig_left_file_end=None, orig_left_file_start=None, orig_right_file_end=None, orig_right_file_start=None, second_comparing_iteration=None):
super(CommentTrackingCriteria, self).__init__()
self.first_comparing_iteration = first_comparing_iteration
self.orig_file_path = orig_file_path
self.orig_left_file_end = orig_left_file_end
self.orig_left_file_start = orig_left_file_start
self.orig_right_file_end = orig_right_file_end
self.orig_right_file_start = orig_right_file_start
self.second_comparing_iteration = second_comparing_iteration
class FileContentMetadata(Model):
"""
:param content_type:
:type content_type: str
:param encoding:
:type encoding: int
:param extension:
:type extension: str
:param file_name:
:type file_name: str
:param is_binary:
:type is_binary: bool
:param is_image:
:type is_image: bool
:param vs_link:
:type vs_link: str
"""
_attribute_map = {
'content_type': {'key': 'contentType', 'type': 'str'},
'encoding': {'key': 'encoding', 'type': 'int'},
'extension': {'key': 'extension', 'type': 'str'},
'file_name': {'key': 'fileName', 'type': 'str'},
'is_binary': {'key': 'isBinary', 'type': 'bool'},
'is_image': {'key': 'isImage', 'type': 'bool'},
'vs_link': {'key': 'vsLink', 'type': 'str'}
}
def __init__(self, content_type=None, encoding=None, extension=None, file_name=None, is_binary=None, is_image=None, vs_link=None):
super(FileContentMetadata, self).__init__()
self.content_type = content_type
self.encoding = encoding
self.extension = extension
self.file_name = file_name
self.is_binary = is_binary
self.is_image = is_image
self.vs_link = vs_link
class FileDiff(Model):
"""
Provides properties that describe file differences
:param line_diff_blocks: The collection of line diff blocks
:type line_diff_blocks: list of :class:`LineDiffBlock <azure.devops.v6_0.git.models.LineDiffBlock>`
:param original_path: Original path of item if different from current path.
:type original_path: str
:param path: Current path of item
:type path: str
"""
_attribute_map = {
'line_diff_blocks': {'key': 'lineDiffBlocks', 'type': '[LineDiffBlock]'},
'original_path': {'key': 'originalPath', 'type': 'str'},
'path': {'key': 'path', 'type': 'str'}
}
def __init__(self, line_diff_blocks=None, original_path=None, path=None):
super(FileDiff, self).__init__()
self.line_diff_blocks = line_diff_blocks
self.original_path = original_path
self.path = path
class FileDiffParams(Model):
"""
Provides parameters that describe inputs for the file diff
:param original_path: Original path of the file
:type original_path: str
:param path: Current path of the file
:type path: str
"""
_attribute_map = {
'original_path': {'key': 'originalPath', 'type': 'str'},
'path': {'key': 'path', 'type': 'str'}
}
def __init__(self, original_path=None, path=None):
super(FileDiffParams, self).__init__()
self.original_path = original_path
self.path = path
class FileDiffsCriteria(Model):
"""
Provides properties that describe inputs for the file diffs
:param base_version_commit: Commit ID of the base version
:type base_version_commit: str
:param file_diff_params: List of parameters for each of the files for which we need to get the file diff
:type file_diff_params: list of :class:`FileDiffParams <azure.devops.v6_0.git.models.FileDiffParams>`
:param target_version_commit: Commit ID of the target version
:type target_version_commit: str
"""
_attribute_map = {
'base_version_commit': {'key': 'baseVersionCommit', 'type': 'str'},
'file_diff_params': {'key': 'fileDiffParams', 'type': '[FileDiffParams]'},
'target_version_commit': {'key': 'targetVersionCommit', 'type': 'str'}
}
def __init__(self, base_version_commit=None, file_diff_params=None, target_version_commit=None):
super(FileDiffsCriteria, self).__init__()
self.base_version_commit = base_version_commit
self.file_diff_params = file_diff_params
self.target_version_commit = target_version_commit
class GitAnnotatedTag(Model):
"""
A Git annotated tag.
:param message: The tagging Message
:type message: str
:param name: The name of the annotated tag.
:type name: str
:param object_id: The objectId (Sha1Id) of the tag.
:type object_id: str
:param tagged_by: User info and date of tagging.
:type tagged_by: :class:`GitUserDate <azure.devops.v6_0.git.models.GitUserDate>`
:param tagged_object: Tagged git object.
:type tagged_object: :class:`GitObject <azure.devops.v6_0.git.models.GitObject>`
:param url:
:type url: str
"""
_attribute_map = {
'message': {'key': 'message', 'type': 'str'},
'name': {'key': 'name', 'type': 'str'},
'object_id': {'key': 'objectId', 'type': 'str'},
'tagged_by': {'key': 'taggedBy', 'type': 'GitUserDate'},
'tagged_object': {'key': 'taggedObject', 'type': 'GitObject'},
'url': {'key': 'url', 'type': 'str'}
}
def __init__(self, message=None, name=None, object_id=None, tagged_by=None, tagged_object=None, url=None):
super(GitAnnotatedTag, self).__init__()
self.message = message
self.name = name
self.object_id = object_id
self.tagged_by = tagged_by
self.tagged_object = tagged_object
self.url = url
class GitAsyncRefOperation(Model):
"""
:param _links:
:type _links: :class:`ReferenceLinks <azure.devops.v6_0.git.models.ReferenceLinks>`
:param detailed_status:
:type detailed_status: :class:`GitAsyncRefOperationDetail <azure.devops.v6_0.git.models.GitAsyncRefOperationDetail>`
:param parameters:
:type parameters: :class:`GitAsyncRefOperationParameters <azure.devops.v6_0.git.models.GitAsyncRefOperationParameters>`
:param status:
:type status: object
:param url: A URL that can be used to make further requests for status about the operation
:type url: str
"""
_attribute_map = {
'_links': {'key': '_links', 'type': 'ReferenceLinks'},
'detailed_status': {'key': 'detailedStatus', 'type': 'GitAsyncRefOperationDetail'},
'parameters': {'key': 'parameters', 'type': 'GitAsyncRefOperationParameters'},
'status': {'key': 'status', 'type': 'object'},
'url': {'key': 'url', 'type': 'str'}
}
def __init__(self, _links=None, detailed_status=None, parameters=None, status=None, url=None):
super(GitAsyncRefOperation, self).__init__()
self._links = _links
self.detailed_status = detailed_status
self.parameters = parameters
self.status = status
self.url = url
class GitAsyncRefOperationDetail(Model):
"""
Information about the progress of a cherry pick or revert operation.
:param conflict: Indicates if there was a conflict generated when trying to cherry pick or revert the changes.
:type conflict: bool
:param current_commit_id: The current commit from the list of commits that are being cherry picked or reverted.
:type current_commit_id: str
:param failure_message: Detailed information about why the cherry pick or revert failed to complete.
:type failure_message: str
:param progress: A number between 0 and 1 indicating the percent complete of the operation.
:type progress: float
:param status: Provides a status code that indicates the reason the cherry pick or revert failed.
:type status: object
:param timedout: Indicates if the operation went beyond the maximum time allowed for a cherry pick or revert operation.
:type timedout: bool
"""
_attribute_map = {
'conflict': {'key': 'conflict', 'type': 'bool'},
'current_commit_id': {'key': 'currentCommitId', 'type': 'str'},
'failure_message': {'key': 'failureMessage', 'type': 'str'},
'progress': {'key': 'progress', 'type': 'float'},
'status': {'key': 'status', 'type': 'object'},
'timedout': {'key': 'timedout', 'type': 'bool'}
}
def __init__(self, conflict=None, current_commit_id=None, failure_message=None, progress=None, status=None, timedout=None):
super(GitAsyncRefOperationDetail, self).__init__()
self.conflict = conflict
self.current_commit_id = current_commit_id
self.failure_message = failure_message
self.progress = progress
self.status = status
self.timedout = timedout
class GitAsyncRefOperationParameters(Model):
"""
Parameters that are provided in the request body when requesting to cherry pick or revert.
:param generated_ref_name: Proposed target branch name for the cherry pick or revert operation.
:type generated_ref_name: str
:param onto_ref_name: The target branch for the cherry pick or revert operation.
:type onto_ref_name: str
:param repository: The git repository for the cherry pick or revert operation.
:type repository: :class:`GitRepository <azure.devops.v6_0.git.models.GitRepository>`
:param source: Details about the source of the cherry pick or revert operation (e.g. A pull request or a specific commit).
:type source: :class:`GitAsyncRefOperationSource <azure.devops.v6_0.git.models.GitAsyncRefOperationSource>`
"""
_attribute_map = {
'generated_ref_name': {'key': 'generatedRefName', 'type': 'str'},
'onto_ref_name': {'key': 'ontoRefName', 'type': 'str'},
'repository': {'key': 'repository', 'type': 'GitRepository'},
'source': {'key': 'source', 'type': 'GitAsyncRefOperationSource'}
}
def __init__(self, generated_ref_name=None, onto_ref_name=None, repository=None, source=None):
super(GitAsyncRefOperationParameters, self).__init__()
self.generated_ref_name = generated_ref_name
self.onto_ref_name = onto_ref_name
self.repository = repository
self.source = source
class GitAsyncRefOperationSource(Model):
"""
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.
:param commit_list: A list of commits to cherry pick or revert
:type commit_list: list of :class:`GitCommitRef <azure.devops.v6_0.git.models.GitCommitRef>`
:param pull_request_id: Id of the pull request to cherry pick or revert
:type pull_request_id: int
"""
_attribute_map = {
'commit_list': {'key': 'commitList', 'type': '[GitCommitRef]'},
'pull_request_id': {'key': 'pullRequestId', 'type': 'int'}
}
def __init__(self, commit_list=None, pull_request_id=None):
super(GitAsyncRefOperationSource, self).__init__()
self.commit_list = commit_list
self.pull_request_id = pull_request_id
class GitBlobRef(Model):
"""
:param _links:
:type _links: :class:`ReferenceLinks <azure.devops.v6_0.git.models.ReferenceLinks>`
:param object_id: SHA1 hash of git object
:type object_id: str
:param size: Size of blob content (in bytes)
:type size: long
:param url:
:type url: str
"""
_attribute_map = {
'_links': {'key': '_links', 'type': 'ReferenceLinks'},
'object_id': {'key': 'objectId', 'type': 'str'},
'size': {'key': 'size', 'type': 'long'},
'url': {'key': 'url', 'type': 'str'}
}
def __init__(self, _links=None, object_id=None, size=None, url=None):
super(GitBlobRef, self).__init__()
self._links = _links
self.object_id = object_id
self.size = size
self.url = url
class GitBranchStats(Model):
"""
Ahead and behind counts for a particular ref.
:param ahead_count: Number of commits ahead.
:type ahead_count: int
:param behind_count: Number of commits behind.
:type behind_count: int
:param commit: Current commit.
:type commit: :class:`GitCommitRef <azure.devops.v6_0.git.models.GitCommitRef>`
:param is_base_version: True if this is the result for the base version.
:type is_base_version: bool
:param name: Name of the ref.
:type name: str
"""
_attribute_map = {
'ahead_count': {'key': 'aheadCount', 'type': 'int'},
'behind_count': {'key': 'behindCount', 'type': 'int'},
'commit': {'key': 'commit', 'type': 'GitCommitRef'},
'is_base_version': {'key': 'isBaseVersion', 'type': 'bool'},
'name': {'key': 'name', 'type': 'str'}
}
def __init__(self, ahead_count=None, behind_count=None, commit=None, is_base_version=None, name=None):
super(GitBranchStats, self).__init__()
self.ahead_count = ahead_count
self.behind_count = behind_count
self.commit = commit
self.is_base_version = is_base_version
self.name = name
class GitCherryPick(GitAsyncRefOperation):
"""
This object is returned from Cherry Pick operations and provides the id and status of the operation
:param _links:
:type _links: :class:`ReferenceLinks <azure.devops.v6_0.git.models.ReferenceLinks>`
:param detailed_status:
:type detailed_status: :class:`GitAsyncRefOperationDetail <azure.devops.v6_0.git.models.GitAsyncRefOperationDetail>`
:param parameters:
:type parameters: :class:`GitAsyncRefOperationParameters <azure.devops.v6_0.git.models.GitAsyncRefOperationParameters>`
:param status:
:type status: object
:param url: A URL that can be used to make further requests for status about the operation
:type url: str
:param cherry_pick_id:
:type cherry_pick_id: int
"""
_attribute_map = {
'_links': {'key': '_links', 'type': 'ReferenceLinks'},
'detailed_status': {'key': 'detailedStatus', 'type': 'GitAsyncRefOperationDetail'},
'parameters': {'key': 'parameters', 'type': 'GitAsyncRefOperationParameters'},
'status': {'key': 'status', 'type': 'object'},
'url': {'key': 'url', 'type': 'str'},
'cherry_pick_id': {'key': 'cherryPickId', 'type': 'int'}
}
def __init__(self, _links=None, detailed_status=None, parameters=None, status=None, url=None, cherry_pick_id=None):
super(GitCherryPick, self).__init__(_links=_links, detailed_status=detailed_status, parameters=parameters, status=status, url=url)
self.cherry_pick_id = cherry_pick_id
class GitCommitChanges(Model):
"""
:param change_counts:
:type change_counts: dict
:param changes:
:type changes: list of :class:`object <azure.devops.v6_0.git.models.object>`
"""
_attribute_map = {
'change_counts': {'key': 'changeCounts', 'type': '{int}'},
'changes': {'key': 'changes', 'type': '[object]'}
}
def __init__(self, change_counts=None, changes=None):
super(GitCommitChanges, self).__init__()
self.change_counts = change_counts
self.changes = changes
class GitCommitDiffs(Model):
"""
:param ahead_count:
:type ahead_count: int
:param all_changes_included:
:type all_changes_included: bool
:param base_commit:
:type base_commit: str
:param behind_count:
:type behind_count: int
:param change_counts:
:type change_counts: dict
:param changes:
:type changes: list of :class:`object <azure.devops.v6_0.git.models.object>`
:param common_commit:
:type common_commit: str
:param target_commit:
:type target_commit: str
"""
_attribute_map = {
'ahead_count': {'key': 'aheadCount', 'type': 'int'},
'all_changes_included': {'key': 'allChangesIncluded', 'type': 'bool'},
'base_commit': {'key': 'baseCommit', 'type': 'str'},
'behind_count': {'key': 'behindCount', 'type': 'int'},
'change_counts': {'key': 'changeCounts', 'type': '{int}'},
'changes': {'key': 'changes', 'type': '[object]'},
'common_commit': {'key': 'commonCommit', 'type': 'str'},
'target_commit': {'key': 'targetCommit', 'type': 'str'}
}
def __init__(self, ahead_count=None, all_changes_included=None, base_commit=None, behind_count=None, change_counts=None, changes=None, common_commit=None, target_commit=None):
super(GitCommitDiffs, self).__init__()
self.ahead_count = ahead_count
self.all_changes_included = all_changes_included
self.base_commit = base_commit
self.behind_count = behind_count
self.change_counts = change_counts
self.changes = changes
self.common_commit = common_commit
self.target_commit = target_commit
class GitCommitRef(Model):
"""
Provides properties that describe a Git commit and associated metadata.
:param _links: A collection of related REST reference links.
:type _links: :class:`ReferenceLinks <azure.devops.v6_0.git.models.ReferenceLinks>`
:param author: Author of the commit.
:type author: :class:`GitUserDate <azure.devops.v6_0.git.models.GitUserDate>`
:param change_counts: Counts of the types of changes (edits, deletes, etc.) included with the commit.
:type change_counts: dict
:param changes: An enumeration of the changes included with the commit.
:type changes: list of :class:`object <azure.devops.v6_0.git.models.object>`
:param comment: Comment or message of the commit.
:type comment: str
:param comment_truncated: Indicates if the comment is truncated from the full Git commit comment message.
:type comment_truncated: bool
:param commit_id: ID (SHA-1) of the commit.
:type commit_id: str
:param committer: Committer of the commit.
:type committer: :class:`GitUserDate <azure.devops.v6_0.git.models.GitUserDate>`
:param parents: An enumeration of the parent commit IDs for this commit.
:type parents: list of str
:param push: The push associated with this commit.
:type push: :class:`GitPushRef <azure.devops.v6_0.git.models.GitPushRef>`
:param remote_url: Remote URL path to the commit.
:type remote_url: str
:param statuses: A list of status metadata from services and extensions that may associate additional information to the commit.
:type statuses: list of :class:`GitStatus <azure.devops.v6_0.git.models.GitStatus>`
:param url: REST URL for this resource.
:type url: str
:param work_items: A list of workitems associated with this commit.
:type work_items: list of :class:`ResourceRef <azure.devops.v6_0.git.models.ResourceRef>`
"""
_attribute_map = {
'_links': {'key': '_links', 'type': 'ReferenceLinks'},
'author': {'key': 'author', 'type': 'GitUserDate'},
'change_counts': {'key': 'changeCounts', 'type': '{int}'},
'changes': {'key': 'changes', 'type': '[object]'},
'comment': {'key': 'comment', 'type': 'str'},
'comment_truncated': {'key': 'commentTruncated', 'type': 'bool'},
'commit_id': {'key': 'commitId', 'type': 'str'},
'committer': {'key': 'committer', 'type': 'GitUserDate'},
'parents': {'key': 'parents', 'type': '[str]'},
'push': {'key': 'push', 'type': 'GitPushRef'},
'remote_url': {'key': 'remoteUrl', 'type': 'str'},
'statuses': {'key': 'statuses', 'type': '[GitStatus]'},
'url': {'key': 'url', 'type': 'str'},
'work_items': {'key': 'workItems', 'type': '[ResourceRef]'}
}
def __init__(self, _links=None, author=None, change_counts=None, changes=None, comment=None, comment_truncated=None, commit_id=None, committer=None, parents=None, push=None, remote_url=None, statuses=None, url=None, work_items=None):
super(GitCommitRef, self).__init__()
self._links = _links
self.author = author
self.change_counts = change_counts
self.changes = changes
self.comment = comment
self.comment_truncated = comment_truncated
self.commit_id = commit_id
self.committer = committer
self.parents = parents
self.push = push
self.remote_url = remote_url
self.statuses = statuses
self.url = url
self.work_items = work_items
class GitConflict(Model):
"""
:param _links:
:type _links: :class:`ReferenceLinks <azure.devops.v6_0.git.models.ReferenceLinks>`
:param conflict_id:
:type conflict_id: int
:param conflict_path:
:type conflict_path: str
:param conflict_type:
:type conflict_type: object
:param merge_base_commit:
:type merge_base_commit: :class:`GitCommitRef <azure.devops.v6_0.git.models.GitCommitRef>`
:param merge_origin:
:type merge_origin: :class:`GitMergeOriginRef <azure.devops.v6_0.git.models.GitMergeOriginRef>`
:param merge_source_commit:
:type merge_source_commit: :class:`GitCommitRef <azure.devops.v6_0.git.models.GitCommitRef>`
:param merge_target_commit:
:type merge_target_commit: :class:`GitCommitRef <azure.devops.v6_0.git.models.GitCommitRef>`
:param resolution_error:
:type resolution_error: object
:param resolution_status:
:type resolution_status: object
:param resolved_by:
:type resolved_by: :class:`IdentityRef <azure.devops.v6_0.git.models.IdentityRef>`
:param resolved_date:
:type resolved_date: datetime
:param url:
:type url: str
"""
_attribute_map = {
'_links': {'key': '_links', 'type': 'ReferenceLinks'},
'conflict_id': {'key': 'conflictId', 'type': 'int'},
'conflict_path': {'key': 'conflictPath', 'type': 'str'},
'conflict_type': {'key': 'conflictType', 'type': 'object'},
'merge_base_commit': {'key': 'mergeBaseCommit', 'type': 'GitCommitRef'},
'merge_origin': {'key': 'mergeOrigin', 'type': 'GitMergeOriginRef'},
'merge_source_commit': {'key': 'mergeSourceCommit', 'type': 'GitCommitRef'},
'merge_target_commit': {'key': 'mergeTargetCommit', 'type': 'GitCommitRef'},
'resolution_error': {'key': 'resolutionError', 'type': 'object'},
'resolution_status': {'key': 'resolutionStatus', 'type': 'object'},
'resolved_by': {'key': 'resolvedBy', 'type': 'IdentityRef'},
'resolved_date': {'key': 'resolvedDate', 'type': 'iso-8601'},
'url': {'key': 'url', 'type': 'str'}
}
def __init__(self, _links=None, conflict_id=None, conflict_path=None, conflict_type=None, merge_base_commit=None, merge_origin=None, merge_source_commit=None, merge_target_commit=None, resolution_error=None, resolution_status=None, resolved_by=None, resolved_date=None, url=None):
super(GitConflict, self).__init__()
self._links = _links
self.conflict_id = conflict_id
self.conflict_path = conflict_path
self.conflict_type = conflict_type
self.merge_base_commit = merge_base_commit
self.merge_origin = merge_origin
self.merge_source_commit = merge_source_commit
self.merge_target_commit = merge_target_commit
self.resolution_error = resolution_error
self.resolution_status = resolution_status
self.resolved_by = resolved_by
self.resolved_date = resolved_date
self.url = url
class GitConflictUpdateResult(Model):
"""
:param conflict_id: Conflict ID that was provided by input
:type conflict_id: int
:param custom_message: Reason for failing
:type custom_message: str
:param updated_conflict: New state of the conflict after updating
:type updated_conflict: :class:`GitConflict <azure.devops.v6_0.git.models.GitConflict>`
:param update_status: Status of the update on the server
:type update_status: object
"""
_attribute_map = {
'conflict_id': {'key': 'conflictId', 'type': 'int'},
'custom_message': {'key': 'customMessage', 'type': 'str'},
'updated_conflict': {'key': 'updatedConflict', 'type': 'GitConflict'},
'update_status': {'key': 'updateStatus', 'type': 'object'}
}
def __init__(self, conflict_id=None, custom_message=None, updated_conflict=None, update_status=None):
super(GitConflictUpdateResult, self).__init__()
self.conflict_id = conflict_id
self.custom_message = custom_message
self.updated_conflict = updated_conflict
self.update_status = update_status
class GitDeletedRepository(Model):
"""
:param created_date:
:type created_date: datetime
:param deleted_by:
:type deleted_by: :class:`IdentityRef <azure.devops.v6_0.git.models.IdentityRef>`
:param deleted_date:
:type deleted_date: datetime
:param id:
:type id: str
:param name:
:type name: str
:param project:
:type project: :class:`TeamProjectReference <azure.devops.v6_0.git.models.TeamProjectReference>`
"""
_attribute_map = {
'created_date': {'key': 'createdDate', 'type': 'iso-8601'},
'deleted_by': {'key': 'deletedBy', 'type': 'IdentityRef'},
'deleted_date': {'key': 'deletedDate', 'type': 'iso-8601'},
'id': {'key': 'id', 'type': 'str'},
'name': {'key': 'name', 'type': 'str'},
'project': {'key': 'project', 'type': 'TeamProjectReference'}
}
def __init__(self, created_date=None, deleted_by=None, deleted_date=None, id=None, name=None, project=None):
super(GitDeletedRepository, self).__init__()
self.created_date = created_date
self.deleted_by = deleted_by
self.deleted_date = deleted_date
self.id = id
self.name = name
self.project = project
class GitFilePathsCollection(Model):
"""
:param commit_id:
:type commit_id: str
:param paths:
:type paths: list of str
:param url:
:type url: str
"""
_attribute_map = {
'commit_id': {'key': 'commitId', 'type': 'str'},
'paths': {'key': 'paths', 'type': '[str]'},
'url': {'key': 'url', 'type': 'str'}
}
def __init__(self, commit_id=None, paths=None, url=None):
super(GitFilePathsCollection, self).__init__()
self.commit_id = commit_id
self.paths = paths
self.url = url
class GitForkOperationStatusDetail(Model):
"""
Status information about a requested fork operation.
:param all_steps: All valid steps for the forking process
:type all_steps: list of str
:param current_step: Index into AllSteps for the current step
:type current_step: int
:param error_message: Error message if the operation failed.
:type error_message: str
"""
_attribute_map = {
'all_steps': {'key': 'allSteps', 'type': '[str]'},
'current_step': {'key': 'currentStep', 'type': 'int'},
'error_message': {'key': 'errorMessage', 'type': 'str'}
}
def __init__(self, all_steps=None, current_step=None, error_message=None):
super(GitForkOperationStatusDetail, self).__init__()
self.all_steps = all_steps
self.current_step = current_step
self.error_message = error_message
class GitForkSyncRequest(Model):
"""
Request to sync data between two forks.
:param _links: Collection of related links
:type _links: :class:`ReferenceLinks <azure.devops.v6_0.git.models.ReferenceLinks>`
:param detailed_status:
:type detailed_status: :class:`GitForkOperationStatusDetail <azure.devops.v6_0.git.models.GitForkOperationStatusDetail>`
:param operation_id: Unique identifier for the operation.
:type operation_id: int
:param source: Fully-qualified identifier for the source repository.
:type source: :class:`GlobalGitRepositoryKey <azure.devops.v6_0.git.models.GlobalGitRepositoryKey>`
:param source_to_target_refs: If supplied, the set of ref mappings to use when performing a "sync" or create. If missing, all refs will be synchronized.
:type source_to_target_refs: list of :class:`SourceToTargetRef <azure.devops.v6_0.git.models.SourceToTargetRef>`
:param status:
:type status: object
"""
_attribute_map = {
'_links': {'key': '_links', 'type': 'ReferenceLinks'},
'detailed_status': {'key': 'detailedStatus', 'type': 'GitForkOperationStatusDetail'},
'operation_id': {'key': 'operationId', 'type': 'int'},
'source': {'key': 'source', 'type': 'GlobalGitRepositoryKey'},
'source_to_target_refs': {'key': 'sourceToTargetRefs', 'type': '[SourceToTargetRef]'},
'status': {'key': 'status', 'type': 'object'}
}
def __init__(self, _links=None, detailed_status=None, operation_id=None, source=None, source_to_target_refs=None, status=None):
super(GitForkSyncRequest, self).__init__()
self._links = _links
self.detailed_status = detailed_status
self.operation_id = operation_id
self.source = source
self.source_to_target_refs = source_to_target_refs
self.status = status
class GitForkSyncRequestParameters(Model):
"""
Parameters for creating a fork request
:param source: Fully-qualified identifier for the source repository.
:type source: :class:`GlobalGitRepositoryKey <azure.devops.v6_0.git.models.GlobalGitRepositoryKey>`
:param source_to_target_refs: If supplied, the set of ref mappings to use when performing a "sync" or create. If missing, all refs will be synchronized.
:type source_to_target_refs: list of :class:`SourceToTargetRef <azure.devops.v6_0.git.models.SourceToTargetRef>`
"""
_attribute_map = {
'source': {'key': 'source', 'type': 'GlobalGitRepositoryKey'},
'source_to_target_refs': {'key': 'sourceToTargetRefs', 'type': '[SourceToTargetRef]'}
}
def __init__(self, source=None, source_to_target_refs=None):
super(GitForkSyncRequestParameters, self).__init__()
self.source = source
self.source_to_target_refs = source_to_target_refs
class GitImportGitSource(Model):
"""
Parameter for creating a git import request when source is Git version control
:param overwrite: Tells if this is a sync request or not
:type overwrite: bool
:param url: Url for the source repo
:type url: str
"""
_attribute_map = {
'overwrite': {'key': 'overwrite', 'type': 'bool'},
'url': {'key': 'url', 'type': 'str'}
}
def __init__(self, overwrite=None, url=None):
super(GitImportGitSource, self).__init__()
self.overwrite = overwrite
self.url = url
class GitImportRequest(Model):
"""
A request to import data from a remote source control system.
:param _links: Links to related resources.
:type _links: :class:`ReferenceLinks <azure.devops.v6_0.git.models.ReferenceLinks>`
:param detailed_status: Detailed status of the import, including the current step and an error message, if applicable.
:type detailed_status: :class:`GitImportStatusDetail <azure.devops.v6_0.git.models.GitImportStatusDetail>`
:param import_request_id: The unique identifier for this import request.
:type import_request_id: int
:param parameters: Parameters for creating the import request.
:type parameters: :class:`GitImportRequestParameters <azure.devops.v6_0.git.models.GitImportRequestParameters>`
:param repository: The target repository for this import.
:type repository: :class:`GitRepository <azure.devops.v6_0.git.models.GitRepository>`
:param status: Current status of the import.
:type status: object
:param url: A link back to this import request resource.
:type url: str
"""
_attribute_map = {
'_links': {'key': '_links', 'type': 'ReferenceLinks'},
'detailed_status': {'key': 'detailedStatus', 'type': 'GitImportStatusDetail'},
'import_request_id': {'key': 'importRequestId', 'type': 'int'},
'parameters': {'key': 'parameters', 'type': 'GitImportRequestParameters'},
'repository': {'key': 'repository', 'type': 'GitRepository'},
'status': {'key': 'status', 'type': 'object'},
'url': {'key': 'url', 'type': 'str'}
}
def __init__(self, _links=None, detailed_status=None, import_request_id=None, parameters=None, repository=None, status=None, url=None):
super(GitImportRequest, self).__init__()
self._links = _links
self.detailed_status = detailed_status
self.import_request_id = import_request_id
self.parameters = parameters
self.repository = repository
self.status = status
self.url = url
class GitImportRequestParameters(Model):
"""
Parameters for creating an import request
:param delete_service_endpoint_after_import_is_done: Option to delete service endpoint when import is done
:type delete_service_endpoint_after_import_is_done: bool
:param git_source: Source for importing git repository
:type git_source: :class:`GitImportGitSource <azure.devops.v6_0.git.models.GitImportGitSource>`
:param service_endpoint_id: Service Endpoint for connection to external endpoint
:type service_endpoint_id: str
:param tfvc_source: Source for importing tfvc repository
:type tfvc_source: :class:`GitImportTfvcSource <azure.devops.v6_0.git.models.GitImportTfvcSource>`
"""
_attribute_map = {
'delete_service_endpoint_after_import_is_done': {'key': 'deleteServiceEndpointAfterImportIsDone', 'type': 'bool'},
'git_source': {'key': 'gitSource', 'type': 'GitImportGitSource'},
'service_endpoint_id': {'key': 'serviceEndpointId', 'type': 'str'},
'tfvc_source': {'key': 'tfvcSource', 'type': 'GitImportTfvcSource'}
}
def __init__(self, delete_service_endpoint_after_import_is_done=None, git_source=None, service_endpoint_id=None, tfvc_source=None):
super(GitImportRequestParameters, self).__init__()
self.delete_service_endpoint_after_import_is_done = delete_service_endpoint_after_import_is_done
self.git_source = git_source
self.service_endpoint_id = service_endpoint_id
self.tfvc_source = tfvc_source
class GitImportStatusDetail(Model):
"""
Additional status information about an import request.
:param all_steps: All valid steps for the import process
:type all_steps: list of str
:param current_step: Index into AllSteps for the current step
:type current_step: int
:param error_message: Error message if the operation failed.
:type error_message: str
"""
_attribute_map = {
'all_steps': {'key': 'allSteps', 'type': '[str]'},
'current_step': {'key': 'currentStep', 'type': 'int'},
'error_message': {'key': 'errorMessage', 'type': 'str'}
}
def __init__(self, all_steps=None, current_step=None, error_message=None):
super(GitImportStatusDetail, self).__init__()
self.all_steps = all_steps
self.current_step = current_step
self.error_message = error_message
class GitImportTfvcSource(Model):
"""
Parameter for creating a git import request when source is tfvc version control
:param import_history: Set true to import History, false otherwise
:type import_history: bool
:param import_history_duration_in_days: Get history for last n days (max allowed value is 180 days)
:type import_history_duration_in_days: int
:param path: Path which we want to import (this can be copied from Path Control in Explorer)
:type path: str
"""
_attribute_map = {
'import_history': {'key': 'importHistory', 'type': 'bool'},
'import_history_duration_in_days': {'key': 'importHistoryDurationInDays', 'type': 'int'},
'path': {'key': 'path', 'type': 'str'}
}
def __init__(self, import_history=None, import_history_duration_in_days=None, path=None):
super(GitImportTfvcSource, self).__init__()
self.import_history = import_history
self.import_history_duration_in_days = import_history_duration_in_days
self.path = path
class GitItemDescriptor(Model):
"""
:param path: Path to item
:type path: str
:param recursion_level: Specifies whether to include children (OneLevel), all descendants (Full), or None
:type recursion_level: object
:param version: Version string (interpretation based on VersionType defined in subclass
:type version: str
:param version_options: Version modifiers (e.g. previous)
:type version_options: object
:param version_type: How to interpret version (branch,tag,commit)
:type version_type: object
"""
_attribute_map = {
'path': {'key': 'path', 'type': 'str'},
'recursion_level': {'key': 'recursionLevel', 'type': 'object'},
'version': {'key': 'version', 'type': 'str'},
'version_options': {'key': 'versionOptions', 'type': 'object'},
'version_type': {'key': 'versionType', 'type': 'object'}
}
def __init__(self, path=None, recursion_level=None, version=None, version_options=None, version_type=None):
super(GitItemDescriptor, self).__init__()
self.path = path
self.recursion_level = recursion_level
self.version = version
self.version_options = version_options
self.version_type = version_type
class GitItemRequestData(Model):
"""
:param include_content_metadata: Whether to include metadata for all items
:type include_content_metadata: bool
:param include_links: Whether to include the _links field on the shallow references
:type include_links: bool
:param item_descriptors: Collection of items to fetch, including path, version, and recursion level
:type item_descriptors: list of :class:`GitItemDescriptor <azure.devops.v6_0.git.models.GitItemDescriptor>`
:param latest_processed_change: Whether to include shallow ref to commit that last changed each item
:type latest_processed_change: bool
"""
_attribute_map = {
'include_content_metadata': {'key': 'includeContentMetadata', 'type': 'bool'},
'include_links': {'key': 'includeLinks', 'type': 'bool'},
'item_descriptors': {'key': 'itemDescriptors', 'type': '[GitItemDescriptor]'},
'latest_processed_change': {'key': 'latestProcessedChange', 'type': 'bool'}
}
def __init__(self, include_content_metadata=None, include_links=None, item_descriptors=None, latest_processed_change=None):
super(GitItemRequestData, self).__init__()
self.include_content_metadata = include_content_metadata
self.include_links = include_links
self.item_descriptors = item_descriptors
self.latest_processed_change = latest_processed_change
class GitMergeOperationStatusDetail(Model):
"""
Status information about a requested merge operation.
:param failure_message: Error message if the operation failed.
:type failure_message: str
:param merge_commit_id: The commitId of the resultant merge commit.
:type merge_commit_id: str
"""
_attribute_map = {
'failure_message': {'key': 'failureMessage', 'type': 'str'},
'merge_commit_id': {'key': 'mergeCommitId', 'type': 'str'}
}
def __init__(self, failure_message=None, merge_commit_id=None):
super(GitMergeOperationStatusDetail, self).__init__()
self.failure_message = failure_message
self.merge_commit_id = merge_commit_id
class GitMergeOriginRef(Model):
"""
:param cherry_pick_id:
:type cherry_pick_id: int
:param pull_request_id:
:type pull_request_id: int
:param revert_id:
:type revert_id: int
"""
_attribute_map = {
'cherry_pick_id': {'key': 'cherryPickId', 'type': 'int'},
'pull_request_id': {'key': 'pullRequestId', 'type': 'int'},
'revert_id': {'key': 'revertId', 'type': 'int'}
}
def __init__(self, cherry_pick_id=None, pull_request_id=None, revert_id=None):
super(GitMergeOriginRef, self).__init__()
self.cherry_pick_id = cherry_pick_id
self.pull_request_id = pull_request_id
self.revert_id = revert_id
class GitMergeParameters(Model):
"""
Parameters required for performing git merge.
:param comment: Comment or message of the commit.
:type comment: str
:param parents: An enumeration of the parent commit IDs for the merge commit.
:type parents: list of str
"""
_attribute_map = {
'comment': {'key': 'comment', 'type': 'str'},
'parents': {'key': 'parents', 'type': '[str]'}
}
def __init__(self, comment=None, parents=None):
super(GitMergeParameters, self).__init__()
self.comment = comment
self.parents = parents
class GitObject(Model):
"""
Git object identifier and type information.
:param object_id: Object Id (Sha1Id).
:type object_id: str
:param object_type: Type of object (Commit, Tree, Blob, Tag)
:type object_type: object
"""
_attribute_map = {
'object_id': {'key': 'objectId', 'type': 'str'},
'object_type': {'key': 'objectType', 'type': 'object'}
}
def __init__(self, object_id=None, object_type=None):
super(GitObject, self).__init__()
self.object_id = object_id
self.object_type = object_type
class GitPolicyConfigurationResponse(Model):
"""
:param continuation_token: The HTTP client methods find the continuation token header in the response and populate this field.
:type continuation_token: str
:param policy_configurations:
:type policy_configurations: list of :class:`PolicyConfiguration <azure.devops.v6_0.git.models.PolicyConfiguration>`
"""
_attribute_map = {
'continuation_token': {'key': 'continuationToken', 'type': 'str'},
'policy_configurations': {'key': 'policyConfigurations', 'type': '[PolicyConfiguration]'}
}
def __init__(self, continuation_token=None, policy_configurations=None):
super(GitPolicyConfigurationResponse, self).__init__()
self.continuation_token = continuation_token
self.policy_configurations = policy_configurations
class GitPullRequest(Model):
"""
Represents all the data associated with a pull request.
:param _links: Links to other related objects.
:type _links: :class:`ReferenceLinks <azure.devops.v6_0.git.models.ReferenceLinks>`
:param artifact_id: 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}```
:type artifact_id: str
:param auto_complete_set_by: If set, auto-complete is enabled for this pull request and this is the identity that enabled it.
:type auto_complete_set_by: :class:`IdentityRef <azure.devops.v6_0.git.models.IdentityRef>`
:param closed_by: The user who closed the pull request.
:type closed_by: :class:`IdentityRef <azure.devops.v6_0.git.models.IdentityRef>`
:param closed_date: The date when the pull request was closed (completed, abandoned, or merged externally).
:type closed_date: datetime
:param code_review_id: The code review ID of the pull request. Used internally.
:type code_review_id: int
:param commits: The commits contained in the pull request.
:type commits: list of :class:`GitCommitRef <azure.devops.v6_0.git.models.GitCommitRef>`
:param completion_options: Options which affect how the pull request will be merged when it is completed.
:type completion_options: :class:`GitPullRequestCompletionOptions <azure.devops.v6_0.git.models.GitPullRequestCompletionOptions>`
:param completion_queue_time: The most recent date at which the pull request entered the queue to be completed. Used internally.
:type completion_queue_time: datetime
:param created_by: The identity of the user who created the pull request.
:type created_by: :class:`IdentityRef <azure.devops.v6_0.git.models.IdentityRef>`
:param creation_date: The date when the pull request was created.
:type creation_date: datetime
:param description: The description of the pull request.
:type description: str
:param fork_source: If this is a PR from a fork this will contain information about its source.
:type fork_source: :class:`GitForkRef <azure.devops.v6_0.git.models.GitForkRef>`
:param is_draft: Draft / WIP pull request.
:type is_draft: bool
:param labels: The labels associated with the pull request.
:type labels: list of :class:`WebApiTagDefinition <azure.devops.v6_0.git.models.WebApiTagDefinition>`
:param last_merge_commit: The commit of the most recent pull request merge. If empty, the most recent merge is in progress or was unsuccessful.
:type last_merge_commit: :class:`GitCommitRef <azure.devops.v6_0.git.models.GitCommitRef>`
:param last_merge_source_commit: The commit at the head of the source branch at the time of the last pull request merge.
:type last_merge_source_commit: :class:`GitCommitRef <azure.devops.v6_0.git.models.GitCommitRef>`
:param last_merge_target_commit: The commit at the head of the target branch at the time of the last pull request merge.
:type last_merge_target_commit: :class:`GitCommitRef <azure.devops.v6_0.git.models.GitCommitRef>`
:param merge_failure_message: If set, pull request merge failed for this reason.
:type merge_failure_message: str
:param merge_failure_type: The type of failure (if any) of the pull request merge.
:type merge_failure_type: object
:param merge_id: The ID of the job used to run the pull request merge. Used internally.
:type merge_id: str
:param merge_options: Options used when the pull request merge runs. These are separate from completion options since completion happens only once and a new merge will run every time the source branch of the pull request changes.
:type merge_options: :class:`GitPullRequestMergeOptions <azure.devops.v6_0.git.models.GitPullRequestMergeOptions>`
:param merge_status: The current status of the pull request merge.
:type merge_status: object
:param pull_request_id: The ID of the pull request.
:type pull_request_id: int
:param remote_url: Used internally.
:type remote_url: str
:param repository: The repository containing the target branch of the pull request.
:type repository: :class:`GitRepository <azure.devops.v6_0.git.models.GitRepository>`
:param reviewers: A list of reviewers on the pull request along with the state of their votes.
:type reviewers: list of :class:`IdentityRefWithVote <azure.devops.v6_0.git.models.IdentityRefWithVote>`
:param source_ref_name: The name of the source branch of the pull request.
:type source_ref_name: str
:param status: The status of the pull request.
:type status: object
:param supports_iterations: 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.
:type supports_iterations: bool
:param target_ref_name: The name of the target branch of the pull request.
:type target_ref_name: str
:param title: The title of the pull request.
:type title: str
:param url: Used internally.
:type url: str
:param work_item_refs: Any work item references associated with this pull request.
:type work_item_refs: list of :class:`ResourceRef <azure.devops.v6_0.git.models.ResourceRef>`
"""
_attribute_map = {
'_links': {'key': '_links', 'type': 'ReferenceLinks'},
'artifact_id': {'key': 'artifactId', 'type': 'str'},
'auto_complete_set_by': {'key': 'autoCompleteSetBy', 'type': 'IdentityRef'},
'closed_by': {'key': 'closedBy', 'type': 'IdentityRef'},
'closed_date': {'key': 'closedDate', 'type': 'iso-8601'},
'code_review_id': {'key': 'codeReviewId', 'type': 'int'},
'commits': {'key': 'commits', 'type': '[GitCommitRef]'},
'completion_options': {'key': 'completionOptions', 'type': 'GitPullRequestCompletionOptions'},
'completion_queue_time': {'key': 'completionQueueTime', 'type': 'iso-8601'},
'created_by': {'key': 'createdBy', 'type': 'IdentityRef'},
'creation_date': {'key': 'creationDate', 'type': 'iso-8601'},
'description': {'key': 'description', 'type': 'str'},
'fork_source': {'key': 'forkSource', 'type': 'GitForkRef'},
'is_draft': {'key': 'isDraft', 'type': 'bool'},
'labels': {'key': 'labels', 'type': '[WebApiTagDefinition]'},
'last_merge_commit': {'key': 'lastMergeCommit', 'type': 'GitCommitRef'},
'last_merge_source_commit': {'key': 'lastMergeSourceCommit', 'type': 'GitCommitRef'},
'last_merge_target_commit': {'key': 'lastMergeTargetCommit', 'type': 'GitCommitRef'},
'merge_failure_message': {'key': 'mergeFailureMessage', 'type': 'str'},
'merge_failure_type': {'key': 'mergeFailureType', 'type': 'object'},
'merge_id': {'key': 'mergeId', 'type': 'str'},
'merge_options': {'key': 'mergeOptions', 'type': 'GitPullRequestMergeOptions'},
'merge_status': {'key': 'mergeStatus', 'type': 'object'},
'pull_request_id': {'key': 'pullRequestId', 'type': 'int'},
'remote_url': {'key': 'remoteUrl', 'type': 'str'},
'repository': {'key': 'repository', 'type': 'GitRepository'},
'reviewers': {'key': 'reviewers', 'type': '[IdentityRefWithVote]'},
'source_ref_name': {'key': 'sourceRefName', 'type': 'str'},
'status': {'key': 'status', 'type': 'object'},
'supports_iterations': {'key': 'supportsIterations', 'type': 'bool'},
'target_ref_name': {'key': 'targetRefName', 'type': 'str'},
'title': {'key': 'title', 'type': 'str'},
'url': {'key': 'url', 'type': 'str'},
'work_item_refs': {'key': 'workItemRefs', 'type': '[ResourceRef]'}
}
def __init__(self, _links=None, artifact_id=None, auto_complete_set_by=None, closed_by=None, closed_date=None, code_review_id=None, commits=None, completion_options=None, completion_queue_time=None, created_by=None, creation_date=None, description=None, fork_source=None, is_draft=None, labels=None, 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=None, remote_url=None, repository=None, reviewers=None, source_ref_name=None, status=None, supports_iterations=None, target_ref_name=None, title=None, url=None, work_item_refs=None):
super(GitPullRequest, self).__init__()
self._links = _links
self.artifact_id = artifact_id
self.auto_complete_set_by = auto_complete_set_by
self.closed_by = closed_by
self.closed_date = closed_date
self.code_review_id = code_review_id
self.commits = commits
self.completion_options = completion_options
self.completion_queue_time = completion_queue_time
self.created_by = created_by
self.creation_date = creation_date
self.description = description
self.fork_source = fork_source
self.is_draft = is_draft
self.labels = labels
self.last_merge_commit = last_merge_commit
self.last_merge_source_commit = last_merge_source_commit
self.last_merge_target_commit = last_merge_target_commit
self.merge_failure_message = merge_failure_message
self.merge_failure_type = merge_failure_type
self.merge_id = merge_id
self.merge_options = merge_options
self.merge_status = merge_status
self.pull_request_id = pull_request_id
self.remote_url = remote_url
self.repository = repository
self.reviewers = reviewers
self.source_ref_name = source_ref_name
self.status = status
self.supports_iterations = supports_iterations
self.target_ref_name = target_ref_name
self.title = title
self.url = url
self.work_item_refs = work_item_refs
class GitPullRequestChange(Model):
"""
Change made in a pull request.
:param change_tracking_id: ID used to track files through multiple changes.
:type change_tracking_id: int
"""
_attribute_map = {
'change_tracking_id': {'key': 'changeTrackingId', 'type': 'int'}
}
def __init__(self, change_tracking_id=None):
super(GitPullRequestChange, self).__init__()
self.change_tracking_id = change_tracking_id
class GitPullRequestCommentThread(CommentThread):
"""
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).
:param _links: Links to other related objects.
:type _links: :class:`ReferenceLinks <azure.devops.v6_0.git.models.ReferenceLinks>`
:param comments: A list of the comments.
:type comments: list of :class:`Comment <azure.devops.v6_0.git.models.Comment>`
:param id: The comment thread id.
:type id: int
:param identities: Set of identities related to this thread
:type identities: dict
:param is_deleted: Specify if the thread is deleted which happens when all comments are deleted.
:type is_deleted: bool
:param last_updated_date: The time this thread was last updated.
:type last_updated_date: datetime
:param properties: Optional properties associated with the thread as a collection of key-value pairs.
:type properties: :class:`object <azure.devops.v6_0.git.models.object>`
:param published_date: The time this thread was published.
:type published_date: datetime
:param status: The status of the comment thread.
:type status: object
:param thread_context: Specify thread context such as position in left/right file.
:type thread_context: :class:`CommentThreadContext <azure.devops.v6_0.git.models.CommentThreadContext>`
:param pull_request_thread_context: Extended context information unique to pull requests
:type pull_request_thread_context: :class:`GitPullRequestCommentThreadContext <azure.devops.v6_0.git.models.GitPullRequestCommentThreadContext>`
"""
_attribute_map = {
'_links': {'key': '_links', 'type': 'ReferenceLinks'},
'comments': {'key': 'comments', 'type': '[Comment]'},
'id': {'key': 'id', 'type': 'int'},
'identities': {'key': 'identities', 'type': '{IdentityRef}'},
'is_deleted': {'key': 'isDeleted', 'type': 'bool'},
'last_updated_date': {'key': 'lastUpdatedDate', 'type': 'iso-8601'},
'properties': {'key': 'properties', 'type': 'object'},
'published_date': {'key': 'publishedDate', 'type': 'iso-8601'},
'status': {'key': 'status', 'type': 'object'},
'thread_context': {'key': 'threadContext', 'type': 'CommentThreadContext'},
'pull_request_thread_context': {'key': 'pullRequestThreadContext', 'type': 'GitPullRequestCommentThreadContext'}
}
def __init__(self, _links=None, comments=None, id=None, identities=None, is_deleted=None, last_updated_date=None, properties=None, published_date=None, status=None, thread_context=None, pull_request_thread_context=None):
super(GitPullRequestCommentThread, self).__init__(_links=_links, comments=comments, id=id, identities=identities, is_deleted=is_deleted, last_updated_date=last_updated_date, properties=properties, published_date=published_date, status=status, thread_context=thread_context)
self.pull_request_thread_context = pull_request_thread_context
class GitPullRequestCommentThreadContext(Model):
"""
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.
:param change_tracking_id: 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.
:type change_tracking_id: int
:param iteration_context: The iteration context being viewed when the thread was created.
:type iteration_context: :class:`CommentIterationContext <azure.devops.v6_0.git.models.CommentIterationContext>`
:param tracking_criteria: The criteria used to track this thread. If this property is filled out when the thread is returned, then the thread has been tracked from its original location using the given criteria.
:type tracking_criteria: :class:`CommentTrackingCriteria <azure.devops.v6_0.git.models.CommentTrackingCriteria>`
"""
_attribute_map = {
'change_tracking_id': {'key': 'changeTrackingId', 'type': 'int'},
'iteration_context': {'key': 'iterationContext', 'type': 'CommentIterationContext'},
'tracking_criteria': {'key': 'trackingCriteria', 'type': 'CommentTrackingCriteria'}
}
def __init__(self, change_tracking_id=None, iteration_context=None, tracking_criteria=None):
super(GitPullRequestCommentThreadContext, self).__init__()
self.change_tracking_id = change_tracking_id
self.iteration_context = iteration_context
self.tracking_criteria = tracking_criteria
class GitPullRequestCompletionOptions(Model):
"""
Preferences about how the pull request should be completed.
:param auto_complete_ignore_config_ids: 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).
:type auto_complete_ignore_config_ids: list of int
:param bypass_policy: If true, policies will be explicitly bypassed while the pull request is completed.
:type bypass_policy: bool
:param bypass_reason: If policies are bypassed, this reason is stored as to why bypass was used.
:type bypass_reason: str
:param delete_source_branch: If true, the source branch of the pull request will be deleted after completion.
:type delete_source_branch: bool
:param merge_commit_message: If set, this will be used as the commit message of the merge commit.
:type merge_commit_message: str
:param merge_strategy: 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.
:type merge_strategy: object
:param squash_merge: 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.
:type squash_merge: bool
:param transition_work_items: If true, we will attempt to transition any work items linked to the pull request into the next logical state (i.e. Active -> Resolved)
:type transition_work_items: bool
:param triggered_by_auto_complete: If true, the current completion attempt was triggered via auto-complete. Used internally.
:type triggered_by_auto_complete: bool
"""
_attribute_map = {
'auto_complete_ignore_config_ids': {'key': 'autoCompleteIgnoreConfigIds', 'type': '[int]'},
'bypass_policy': {'key': 'bypassPolicy', 'type': 'bool'},
'bypass_reason': {'key': 'bypassReason', 'type': 'str'},
'delete_source_branch': {'key': 'deleteSourceBranch', 'type': 'bool'},
'merge_commit_message': {'key': 'mergeCommitMessage', 'type': 'str'},
'merge_strategy': {'key': 'mergeStrategy', 'type': 'object'},
'squash_merge': {'key': 'squashMerge', 'type': 'bool'},
'transition_work_items': {'key': 'transitionWorkItems', 'type': 'bool'},
'triggered_by_auto_complete': {'key': 'triggeredByAutoComplete', 'type': 'bool'}
}
def __init__(self, auto_complete_ignore_config_ids=None, bypass_policy=None, bypass_reason=None, delete_source_branch=None, merge_commit_message=None, merge_strategy=None, squash_merge=None, transition_work_items=None, triggered_by_auto_complete=None):
super(GitPullRequestCompletionOptions, self).__init__()
self.auto_complete_ignore_config_ids = auto_complete_ignore_config_ids
self.bypass_policy = bypass_policy
self.bypass_reason = bypass_reason
self.delete_source_branch = delete_source_branch
self.merge_commit_message = merge_commit_message
self.merge_strategy = merge_strategy
self.squash_merge = squash_merge
self.transition_work_items = transition_work_items
self.triggered_by_auto_complete = triggered_by_auto_complete
class GitPullRequestIteration(Model):
"""
Provides properties that describe a Git pull request iteration. Iterations are created as a result of creating and pushing updates to a pull request.
:param _links: A collection of related REST reference links.
:type _links: :class:`ReferenceLinks <azure.devops.v6_0.git.models.ReferenceLinks>`
:param author: Author of the pull request iteration.
:type author: :class:`IdentityRef <azure.devops.v6_0.git.models.IdentityRef>`
:param change_list: Changes included with the pull request iteration.
:type change_list: list of :class:`GitPullRequestChange <azure.devops.v6_0.git.models.GitPullRequestChange>`
:param commits: The commits included with the pull request iteration.
:type commits: list of :class:`GitCommitRef <azure.devops.v6_0.git.models.GitCommitRef>`
:param common_ref_commit: The first common Git commit of the source and target refs.
:type common_ref_commit: :class:`GitCommitRef <azure.devops.v6_0.git.models.GitCommitRef>`
:param created_date: The creation date of the pull request iteration.
:type created_date: datetime
:param description: Description of the pull request iteration.
:type description: str
:param has_more_commits: Indicates if the Commits property contains a truncated list of commits in this pull request iteration.
:type has_more_commits: bool
:param id: ID of the pull request iteration. Iterations are created as a result of creating and pushing updates to a pull request.
:type id: int
:param new_target_ref_name: If the iteration reason is Retarget, this is the refName of the new target
:type new_target_ref_name: str
:param old_target_ref_name: If the iteration reason is Retarget, this is the original target refName
:type old_target_ref_name: str
:param push: The Git push information associated with this pull request iteration.
:type push: :class:`GitPushRef <azure.devops.v6_0.git.models.GitPushRef>`
:param reason: The reason for which the pull request iteration was created.
:type reason: object
:param source_ref_commit: The source Git commit of this iteration.
:type source_ref_commit: :class:`GitCommitRef <azure.devops.v6_0.git.models.GitCommitRef>`
:param target_ref_commit: The target Git commit of this iteration.
:type target_ref_commit: :class:`GitCommitRef <azure.devops.v6_0.git.models.GitCommitRef>`
:param updated_date: The updated date of the pull request iteration.
:type updated_date: datetime
"""
_attribute_map = {
'_links': {'key': '_links', 'type': 'ReferenceLinks'},
'author': {'key': 'author', 'type': 'IdentityRef'},
'change_list': {'key': 'changeList', 'type': '[GitPullRequestChange]'},
'commits': {'key': 'commits', 'type': '[GitCommitRef]'},
'common_ref_commit': {'key': 'commonRefCommit', 'type': 'GitCommitRef'},
'created_date': {'key': 'createdDate', 'type': 'iso-8601'},
'description': {'key': 'description', 'type': 'str'},
'has_more_commits': {'key': 'hasMoreCommits', 'type': 'bool'},
'id': {'key': 'id', 'type': 'int'},
'new_target_ref_name': {'key': 'newTargetRefName', 'type': 'str'},
'old_target_ref_name': {'key': 'oldTargetRefName', 'type': 'str'},
'push': {'key': 'push', 'type': 'GitPushRef'},
'reason': {'key': 'reason', 'type': 'object'},
'source_ref_commit': {'key': 'sourceRefCommit', 'type': 'GitCommitRef'},
'target_ref_commit': {'key': 'targetRefCommit', 'type': 'GitCommitRef'},
'updated_date': {'key': 'updatedDate', 'type': 'iso-8601'}
}
def __init__(self, _links=None, author=None, change_list=None, commits=None, common_ref_commit=None, created_date=None, description=None, has_more_commits=None, id=None, new_target_ref_name=None, old_target_ref_name=None, push=None, reason=None, source_ref_commit=None, target_ref_commit=None, updated_date=None):
super(GitPullRequestIteration, self).__init__()
self._links = _links
self.author = author
self.change_list = change_list
self.commits = commits
self.common_ref_commit = common_ref_commit
self.created_date = created_date
self.description = description
self.has_more_commits = has_more_commits
self.id = id
self.new_target_ref_name = new_target_ref_name
self.old_target_ref_name = old_target_ref_name
self.push = push
self.reason = reason
self.source_ref_commit = source_ref_commit
self.target_ref_commit = target_ref_commit
self.updated_date = updated_date
class GitPullRequestIterationChanges(Model):
"""
Collection of changes made in a pull request.
:param change_entries: Changes made in the iteration.
:type change_entries: list of :class:`GitPullRequestChange <azure.devops.v6_0.git.models.GitPullRequestChange>`
:param next_skip: Value to specify as skip to get the next page of changes. This will be zero if there are no more changes.
:type next_skip: int
:param next_top: Value to specify as top to get the next page of changes. This will be zero if there are no more changes.
:type next_top: int
"""
_attribute_map = {
'change_entries': {'key': 'changeEntries', 'type': '[GitPullRequestChange]'},
'next_skip': {'key': 'nextSkip', 'type': 'int'},
'next_top': {'key': 'nextTop', 'type': 'int'}
}
def __init__(self, change_entries=None, next_skip=None, next_top=None):
super(GitPullRequestIterationChanges, self).__init__()
self.change_entries = change_entries
self.next_skip = next_skip
self.next_top = next_top
class GitPullRequestMergeOptions(Model):
"""
The options which are used when a pull request merge is created.
:param conflict_authorship_commits: If true, conflict resolutions applied during the merge will be put in separate commits to preserve authorship info for git blame, etc.
:type conflict_authorship_commits: bool
:param detect_rename_false_positives:
:type detect_rename_false_positives: bool
:param disable_renames: If true, rename detection will not be performed during the merge.
:type disable_renames: bool
"""
_attribute_map = {
'conflict_authorship_commits': {'key': 'conflictAuthorshipCommits', 'type': 'bool'},
'detect_rename_false_positives': {'key': 'detectRenameFalsePositives', 'type': 'bool'},
'disable_renames': {'key': 'disableRenames', 'type': 'bool'}
}
def __init__(self, conflict_authorship_commits=None, detect_rename_false_positives=None, disable_renames=None):
super(GitPullRequestMergeOptions, self).__init__()
self.conflict_authorship_commits = conflict_authorship_commits
self.detect_rename_false_positives = detect_rename_false_positives
self.disable_renames = disable_renames
class GitPullRequestQuery(Model):
"""
A set of pull request queries and their results.
:param queries: The queries to perform.
:type queries: list of :class:`GitPullRequestQueryInput <azure.devops.v6_0.git.models.GitPullRequestQueryInput>`
:param results: 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.
:type results: list of {[GitPullRequest]}
"""
_attribute_map = {
'queries': {'key': 'queries', 'type': '[GitPullRequestQueryInput]'},
'results': {'key': 'results', 'type': '[{[GitPullRequest]}]'}
}
def __init__(self, queries=None, results=None):
super(GitPullRequestQuery, self).__init__()
self.queries = queries
self.results = results
class GitPullRequestQueryInput(Model):
"""
Pull request query input parameters.
:param items: The list of commit IDs to search for.
:type items: list of str
:param type: The type of query to perform.
:type type: object
"""
_attribute_map = {
'items': {'key': 'items', 'type': '[str]'},
'type': {'key': 'type', 'type': 'object'}
}
def __init__(self, items=None, type=None):
super(GitPullRequestQueryInput, self).__init__()
self.items = items
self.type = type
class GitPullRequestSearchCriteria(Model):
"""
Pull requests can be searched for matching this criteria.
:param creator_id: If set, search for pull requests that were created by this identity.
:type creator_id: str
:param include_links: Whether to include the _links field on the shallow references
:type include_links: bool
:param repository_id: If set, search for pull requests whose target branch is in this repository.
:type repository_id: str
:param reviewer_id: If set, search for pull requests that have this identity as a reviewer.
:type reviewer_id: str
:param source_ref_name: If set, search for pull requests from this branch.
:type source_ref_name: str
:param source_repository_id: If set, search for pull requests whose source branch is in this repository.
:type source_repository_id: str
:param status: If set, search for pull requests that are in this state. Defaults to Active if unset.
:type status: object
:param target_ref_name: If set, search for pull requests into this branch.
:type target_ref_name: str
"""
_attribute_map = {
'creator_id': {'key': 'creatorId', 'type': 'str'},
'include_links': {'key': 'includeLinks', 'type': 'bool'},
'repository_id': {'key': 'repositoryId', 'type': 'str'},
'reviewer_id': {'key': 'reviewerId', 'type': 'str'},
'source_ref_name': {'key': 'sourceRefName', 'type': 'str'},
'source_repository_id': {'key': 'sourceRepositoryId', 'type': 'str'},
'status': {'key': 'status', 'type': 'object'},
'target_ref_name': {'key': 'targetRefName', 'type': 'str'}
}
def __init__(self, creator_id=None, include_links=None, repository_id=None, reviewer_id=None, source_ref_name=None, source_repository_id=None, status=None, target_ref_name=None):
super(GitPullRequestSearchCriteria, self).__init__()
self.creator_id = creator_id
self.include_links = include_links
self.repository_id = repository_id
self.reviewer_id = reviewer_id
self.source_ref_name = source_ref_name
self.source_repository_id = source_repository_id
self.status = status
self.target_ref_name = target_ref_name
class GitPushRef(Model):
"""
:param _links:
:type _links: :class:`ReferenceLinks <azure.devops.v6_0.git.models.ReferenceLinks>`
:param date:
:type date: datetime
:param push_correlation_id:
:type push_correlation_id: str
:param pushed_by:
:type pushed_by: :class:`IdentityRef <azure.devops.v6_0.git.models.IdentityRef>`
:param push_id:
:type push_id: int
:param url:
:type url: str
"""
_attribute_map = {
'_links': {'key': '_links', 'type': 'ReferenceLinks'},
'date': {'key': 'date', 'type': 'iso-8601'},
'push_correlation_id': {'key': 'pushCorrelationId', 'type': 'str'},
'pushed_by': {'key': 'pushedBy', 'type': 'IdentityRef'},
'push_id': {'key': 'pushId', 'type': 'int'},
'url': {'key': 'url', 'type': 'str'}
}
def __init__(self, _links=None, date=None, push_correlation_id=None, pushed_by=None, push_id=None, url=None):
super(GitPushRef, self).__init__()
self._links = _links
self.date = date
self.push_correlation_id = push_correlation_id
self.pushed_by = pushed_by
self.push_id = push_id
self.url = url
class GitPushSearchCriteria(Model):
"""
:param from_date:
:type from_date: datetime
:param include_links: Whether to include the _links field on the shallow references
:type include_links: bool
:param include_ref_updates:
:type include_ref_updates: bool
:param pusher_id:
:type pusher_id: str
:param ref_name:
:type ref_name: str
:param to_date:
:type to_date: datetime
"""
_attribute_map = {
'from_date': {'key': 'fromDate', 'type': 'iso-8601'},
'include_links': {'key': 'includeLinks', 'type': 'bool'},
'include_ref_updates': {'key': 'includeRefUpdates', 'type': 'bool'},
'pusher_id': {'key': 'pusherId', 'type': 'str'},
'ref_name': {'key': 'refName', 'type': 'str'},
'to_date': {'key': 'toDate', 'type': 'iso-8601'}
}
def __init__(self, from_date=None, include_links=None, include_ref_updates=None, pusher_id=None, ref_name=None, to_date=None):
super(GitPushSearchCriteria, self).__init__()
self.from_date = from_date
self.include_links = include_links
self.include_ref_updates = include_ref_updates
self.pusher_id = pusher_id
self.ref_name = ref_name
self.to_date = to_date
class GitQueryBranchStatsCriteria(Model):
"""
:param base_commit:
:type base_commit: :class:`GitVersionDescriptor <azure.devops.v6_0.git.models.GitVersionDescriptor>`
:param target_commits:
:type target_commits: list of :class:`GitVersionDescriptor <azure.devops.v6_0.git.models.GitVersionDescriptor>`
"""
_attribute_map = {
'base_commit': {'key': 'baseCommit', 'type': 'GitVersionDescriptor'},
'target_commits': {'key': 'targetCommits', 'type': '[GitVersionDescriptor]'}
}
def __init__(self, base_commit=None, target_commits=None):
super(GitQueryBranchStatsCriteria, self).__init__()
self.base_commit = base_commit
self.target_commits = target_commits
class GitQueryCommitsCriteria(Model):
"""
:param skip: Number of entries to skip
:type skip: int
:param top: Maximum number of entries to retrieve
:type top: int
:param author: Alias or display name of the author
:type author: str
:param compare_version: Only applicable when ItemVersion specified. If provided, start walking history starting at this commit.
:type compare_version: :class:`GitVersionDescriptor <azure.devops.v6_0.git.models.GitVersionDescriptor>`
:param exclude_deletes: Only applies when an itemPath is specified. This determines whether to exclude delete entries of the specified path.
:type exclude_deletes: bool
:param from_commit_id: If provided, a lower bound for filtering commits alphabetically
:type from_commit_id: str
:param from_date: If provided, only include history entries created after this date (string)
:type from_date: str
:param history_mode: What Git history mode should be used. This only applies to the search criteria when Ids = null and an itemPath is specified.
:type history_mode: object
:param ids: If provided, specifies the exact commit ids of the commits to fetch. May not be combined with other parameters.
:type ids: list of str
:param include_links: Whether to include the _links field on the shallow references
:type include_links: bool
:param include_push_data: Whether to include the push information
:type include_push_data: bool
:param include_user_image_url: Whether to include the image Url for committers and authors
:type include_user_image_url: bool
:param include_work_items: Whether to include linked work items
:type include_work_items: bool
:param item_path: Path of item to search under
:type item_path: str
:param item_version: If provided, identifies the commit or branch to search
:type item_version: :class:`GitVersionDescriptor <azure.devops.v6_0.git.models.GitVersionDescriptor>`
:param show_oldest_commits_first: If enabled, this option will ignore the itemVersion and compareVersion parameters
:type show_oldest_commits_first: bool
:param to_commit_id: If provided, an upper bound for filtering commits alphabetically
:type to_commit_id: str
:param to_date: If provided, only include history entries created before this date (string)
:type to_date: str
:param user: Alias or display name of the committer
:type user: str
"""
_attribute_map = {
'skip': {'key': '$skip', 'type': 'int'},
'top': {'key': '$top', 'type': 'int'},
'author': {'key': 'author', 'type': 'str'},
'compare_version': {'key': 'compareVersion', 'type': 'GitVersionDescriptor'},
'exclude_deletes': {'key': 'excludeDeletes', 'type': 'bool'},
'from_commit_id': {'key': 'fromCommitId', 'type': 'str'},
'from_date': {'key': 'fromDate', 'type': 'str'},
'history_mode': {'key': 'historyMode', 'type': 'object'},
'ids': {'key': 'ids', 'type': '[str]'},
'include_links': {'key': 'includeLinks', 'type': 'bool'},
'include_push_data': {'key': 'includePushData', 'type': 'bool'},
'include_user_image_url': {'key': 'includeUserImageUrl', 'type': 'bool'},
'include_work_items': {'key': 'includeWorkItems', 'type': 'bool'},
'item_path': {'key': 'itemPath', 'type': 'str'},
'item_version': {'key': 'itemVersion', 'type': 'GitVersionDescriptor'},
'show_oldest_commits_first': {'key': 'showOldestCommitsFirst', 'type': 'bool'},
'to_commit_id': {'key': 'toCommitId', 'type': 'str'},
'to_date': {'key': 'toDate', 'type': 'str'},
'user': {'key': 'user', 'type': 'str'}
}
def __init__(self, skip=None, top=None, author=None, compare_version=None, exclude_deletes=None, from_commit_id=None, from_date=None, history_mode=None, ids=None, include_links=None, include_push_data=None, include_user_image_url=None, include_work_items=None, item_path=None, item_version=None, show_oldest_commits_first=None, to_commit_id=None, to_date=None, user=None):
super(GitQueryCommitsCriteria, self).__init__()
self.skip = skip
self.top = top
self.author = author
self.compare_version = compare_version
self.exclude_deletes = exclude_deletes
self.from_commit_id = from_commit_id
self.from_date = from_date
self.history_mode = history_mode
self.ids = ids
self.include_links = include_links
self.include_push_data = include_push_data
self.include_user_image_url = include_user_image_url
self.include_work_items = include_work_items
self.item_path = item_path
self.item_version = item_version
self.show_oldest_commits_first = show_oldest_commits_first
self.to_commit_id = to_commit_id
self.to_date = to_date
self.user = user
class GitRecycleBinRepositoryDetails(Model):
"""
:param deleted: Setting to false will undo earlier deletion and restore the repository.
:type deleted: bool
"""
_attribute_map = {
'deleted': {'key': 'deleted', 'type': 'bool'}
}
def __init__(self, deleted=None):
super(GitRecycleBinRepositoryDetails, self).__init__()
self.deleted = deleted
class GitRef(Model):
"""
:param _links:
:type _links: :class:`ReferenceLinks <azure.devops.v6_0.git.models.ReferenceLinks>`
:param creator:
:type creator: :class:`IdentityRef <azure.devops.v6_0.git.models.IdentityRef>`
:param is_locked:
:type is_locked: bool
:param is_locked_by:
:type is_locked_by: :class:`IdentityRef <azure.devops.v6_0.git.models.IdentityRef>`
:param name:
:type name: str
:param object_id:
:type object_id: str
:param peeled_object_id:
:type peeled_object_id: str
:param statuses:
:type statuses: list of :class:`GitStatus <azure.devops.v6_0.git.models.GitStatus>`
:param url:
:type url: str
"""
_attribute_map = {
'_links': {'key': '_links', 'type': 'ReferenceLinks'},
'creator': {'key': 'creator', 'type': 'IdentityRef'},
'is_locked': {'key': 'isLocked', 'type': 'bool'},
'is_locked_by': {'key': 'isLockedBy', 'type': 'IdentityRef'},
'name': {'key': 'name', 'type': 'str'},
'object_id': {'key': 'objectId', 'type': 'str'},
'peeled_object_id': {'key': 'peeledObjectId', 'type': 'str'},
'statuses': {'key': 'statuses', 'type': '[GitStatus]'},
'url': {'key': 'url', 'type': 'str'}
}
def __init__(self, _links=None, creator=None, is_locked=None, is_locked_by=None, name=None, object_id=None, peeled_object_id=None, statuses=None, url=None):
super(GitRef, self).__init__()
self._links = _links
self.creator = creator
self.is_locked = is_locked
self.is_locked_by = is_locked_by
self.name = name
self.object_id = object_id
self.peeled_object_id = peeled_object_id
self.statuses = statuses
self.url = url
class GitRefFavorite(Model):
"""
:param _links:
:type _links: :class:`ReferenceLinks <azure.devops.v6_0.git.models.ReferenceLinks>`
:param id:
:type id: int
:param identity_id:
:type identity_id: str
:param name:
:type name: str
:param repository_id:
:type repository_id: str
:param type:
:type type: object
:param url:
:type url: str
"""
_attribute_map = {
'_links': {'key': '_links', 'type': 'ReferenceLinks'},
'id': {'key': 'id', 'type': 'int'},
'identity_id': {'key': 'identityId', 'type': 'str'},
'name': {'key': 'name', 'type': 'str'},
'repository_id': {'key': 'repositoryId', 'type': 'str'},
'type': {'key': 'type', 'type': 'object'},
'url': {'key': 'url', 'type': 'str'}
}
def __init__(self, _links=None, id=None, identity_id=None, name=None, repository_id=None, type=None, url=None):
super(GitRefFavorite, self).__init__()
self._links = _links
self.id = id
self.identity_id = identity_id
self.name = name
self.repository_id = repository_id
self.type = type
self.url = url
class GitRefUpdate(Model):
"""
:param is_locked:
:type is_locked: bool
:param name:
:type name: str
:param new_object_id:
:type new_object_id: str
:param old_object_id:
:type old_object_id: str
:param repository_id:
:type repository_id: str
"""
_attribute_map = {
'is_locked': {'key': 'isLocked', 'type': 'bool'},
'name': {'key': 'name', 'type': 'str'},
'new_object_id': {'key': 'newObjectId', 'type': 'str'},
'old_object_id': {'key': 'oldObjectId', 'type': 'str'},
'repository_id': {'key': 'repositoryId', 'type': 'str'}
}
def __init__(self, is_locked=None, name=None, new_object_id=None, old_object_id=None, repository_id=None):
super(GitRefUpdate, self).__init__()
self.is_locked = is_locked
self.name = name
self.new_object_id = new_object_id
self.old_object_id = old_object_id
self.repository_id = repository_id
class GitRefUpdateResult(Model):
"""
:param custom_message: Custom message for the result object For instance, Reason for failing.
:type custom_message: str
:param is_locked: Whether the ref is locked or not
:type is_locked: bool
:param name: Ref name
:type name: str
:param new_object_id: New object ID
:type new_object_id: str
:param old_object_id: Old object ID
:type old_object_id: str
:param rejected_by: Name of the plugin that rejected the updated.
:type rejected_by: str
:param repository_id: Repository ID
:type repository_id: str
:param success: True if the ref update succeeded, false otherwise
:type success: bool
:param update_status: Status of the update from the TFS server.
:type update_status: object
"""
_attribute_map = {
'custom_message': {'key': 'customMessage', 'type': 'str'},
'is_locked': {'key': 'isLocked', 'type': 'bool'},
'name': {'key': 'name', 'type': 'str'},
'new_object_id': {'key': 'newObjectId', 'type': 'str'},
'old_object_id': {'key': 'oldObjectId', 'type': 'str'},
'rejected_by': {'key': 'rejectedBy', 'type': 'str'},
'repository_id': {'key': 'repositoryId', 'type': 'str'},
'success': {'key': 'success', 'type': 'bool'},
'update_status': {'key': 'updateStatus', 'type': 'object'}
}
def __init__(self, custom_message=None, is_locked=None, name=None, new_object_id=None, old_object_id=None, rejected_by=None, repository_id=None, success=None, update_status=None):
super(GitRefUpdateResult, self).__init__()
self.custom_message = custom_message
self.is_locked = is_locked
self.name = name
self.new_object_id = new_object_id
self.old_object_id = old_object_id
self.rejected_by = rejected_by
self.repository_id = repository_id
self.success = success
self.update_status = update_status
class GitRepository(Model):
"""
:param _links:
:type _links: :class:`ReferenceLinks <azure.devops.v6_0.git.models.ReferenceLinks>`
:param default_branch:
:type default_branch: str
:param id:
:type id: str
:param is_fork: True if the repository was created as a fork
:type is_fork: bool
:param name:
:type name: str
:param parent_repository:
:type parent_repository: :class:`GitRepositoryRef <azure.devops.v6_0.git.models.GitRepositoryRef>`
:param project:
:type project: :class:`TeamProjectReference <azure.devops.v6_0.git.models.TeamProjectReference>`
:param remote_url:
:type remote_url: str
:param size: Compressed size (bytes) of the repository.
:type size: long
:param ssh_url:
:type ssh_url: str
:param url:
:type url: str
:param valid_remote_urls:
:type valid_remote_urls: list of str
:param web_url:
:type web_url: str
"""
_attribute_map = {
'_links': {'key': '_links', 'type': 'ReferenceLinks'},
'default_branch': {'key': 'defaultBranch', 'type': 'str'},
'id': {'key': 'id', 'type': 'str'},
'is_fork': {'key': 'isFork', 'type': 'bool'},
'name': {'key': 'name', 'type': 'str'},
'parent_repository': {'key': 'parentRepository', 'type': 'GitRepositoryRef'},
'project': {'key': 'project', 'type': 'TeamProjectReference'},
'remote_url': {'key': 'remoteUrl', 'type': 'str'},
'size': {'key': 'size', 'type': 'long'},
'ssh_url': {'key': 'sshUrl', 'type': 'str'},
'url': {'key': 'url', 'type': 'str'},
'valid_remote_urls': {'key': 'validRemoteUrls', 'type': '[str]'},
'web_url': {'key': 'webUrl', 'type': 'str'}
}
def __init__(self, _links=None, default_branch=None, id=None, is_fork=None, name=None, parent_repository=None, project=None, remote_url=None, size=None, ssh_url=None, url=None, valid_remote_urls=None, web_url=None):
super(GitRepository, self).__init__()
self._links = _links
self.default_branch = default_branch
self.id = id
self.is_fork = is_fork
self.name = name
self.parent_repository = parent_repository
self.project = project
self.remote_url = remote_url
self.size = size
self.ssh_url = ssh_url
self.url = url
self.valid_remote_urls = valid_remote_urls
self.web_url = web_url
class GitRepositoryCreateOptions(Model):
"""
:param name:
:type name: str
:param parent_repository:
:type parent_repository: :class:`GitRepositoryRef <azure.devops.v6_0.git.models.GitRepositoryRef>`
:param project:
:type project: :class:`TeamProjectReference <azure.devops.v6_0.git.models.TeamProjectReference>`
"""
_attribute_map = {
'name': {'key': 'name', 'type': 'str'},
'parent_repository': {'key': 'parentRepository', 'type': 'GitRepositoryRef'},
'project': {'key': 'project', 'type': 'TeamProjectReference'}
}
def __init__(self, name=None, parent_repository=None, project=None):
super(GitRepositoryCreateOptions, self).__init__()
self.name = name
self.parent_repository = parent_repository
self.project = project
class GitRepositoryRef(Model):
"""
:param collection: Team Project Collection where this Fork resides
:type collection: :class:`TeamProjectCollectionReference <azure.devops.v6_0.git.models.TeamProjectCollectionReference>`
:param id:
:type id: str
:param is_fork: True if the repository was created as a fork
:type is_fork: bool
:param name:
:type name: str
:param project:
:type project: :class:`TeamProjectReference <azure.devops.v6_0.git.models.TeamProjectReference>`
:param remote_url:
:type remote_url: str
:param ssh_url:
:type ssh_url: str
:param url:
:type url: str
"""
_attribute_map = {
'collection': {'key': 'collection', 'type': 'TeamProjectCollectionReference'},
'id': {'key': 'id', 'type': 'str'},
'is_fork': {'key': 'isFork', 'type': 'bool'},
'name': {'key': 'name', 'type': 'str'},
'project': {'key': 'project', 'type': 'TeamProjectReference'},
'remote_url': {'key': 'remoteUrl', 'type': 'str'},
'ssh_url': {'key': 'sshUrl', 'type': 'str'},
'url': {'key': 'url', 'type': 'str'}
}
def __init__(self, collection=None, id=None, is_fork=None, name=None, project=None, remote_url=None, ssh_url=None, url=None):
super(GitRepositoryRef, self).__init__()
self.collection = collection
self.id = id
self.is_fork = is_fork
self.name = name
self.project = project
self.remote_url = remote_url
self.ssh_url = ssh_url
self.url = url
class GitRepositoryStats(Model):
"""
:param active_pull_requests_count:
:type active_pull_requests_count: int
:param branches_count:
:type branches_count: int
:param commits_count:
:type commits_count: int
:param repository_id:
:type repository_id: str
"""
_attribute_map = {
'active_pull_requests_count': {'key': 'activePullRequestsCount', 'type': 'int'},
'branches_count': {'key': 'branchesCount', 'type': 'int'},
'commits_count': {'key': 'commitsCount', 'type': 'int'},
'repository_id': {'key': 'repositoryId', 'type': 'str'}
}
def __init__(self, active_pull_requests_count=None, branches_count=None, commits_count=None, repository_id=None):
super(GitRepositoryStats, self).__init__()
self.active_pull_requests_count = active_pull_requests_count
self.branches_count = branches_count
self.commits_count = commits_count
self.repository_id = repository_id
class GitRevert(GitAsyncRefOperation):
"""
:param _links:
:type _links: :class:`ReferenceLinks <azure.devops.v6_0.git.models.ReferenceLinks>`
:param detailed_status:
:type detailed_status: :class:`GitAsyncRefOperationDetail <azure.devops.v6_0.git.models.GitAsyncRefOperationDetail>`
:param parameters:
:type parameters: :class:`GitAsyncRefOperationParameters <azure.devops.v6_0.git.models.GitAsyncRefOperationParameters>`
:param status:
:type status: object
:param url: A URL that can be used to make further requests for status about the operation
:type url: str
:param revert_id:
:type revert_id: int
"""
_attribute_map = {
'_links': {'key': '_links', 'type': 'ReferenceLinks'},
'detailed_status': {'key': 'detailedStatus', 'type': 'GitAsyncRefOperationDetail'},
'parameters': {'key': 'parameters', 'type': 'GitAsyncRefOperationParameters'},
'status': {'key': 'status', 'type': 'object'},
'url': {'key': 'url', 'type': 'str'},
'revert_id': {'key': 'revertId', 'type': 'int'}
}
def __init__(self, _links=None, detailed_status=None, parameters=None, status=None, url=None, revert_id=None):
super(GitRevert, self).__init__(_links=_links, detailed_status=detailed_status, parameters=parameters, status=status, url=url)
self.revert_id = revert_id
class GitStatus(Model):
"""
This class contains the metadata of a service/extension posting a status.
:param _links: Reference links.
:type _links: :class:`ReferenceLinks <azure.devops.v6_0.git.models.ReferenceLinks>`
:param context: Context of the status.
:type context: :class:`GitStatusContext <azure.devops.v6_0.git.models.GitStatusContext>`
:param created_by: Identity that created the status.
:type created_by: :class:`IdentityRef <azure.devops.v6_0.git.models.IdentityRef>`
:param creation_date: Creation date and time of the status.
:type creation_date: datetime
:param description: Status description. Typically describes current state of the status.
:type description: str
:param id: Status identifier.
:type id: int
:param state: State of the status.
:type state: object
:param target_url: URL with status details.
:type target_url: str
:param updated_date: Last update date and time of the status.
:type updated_date: datetime
"""
_attribute_map = {
'_links': {'key': '_links', 'type': 'ReferenceLinks'},
'context': {'key': 'context', 'type': 'GitStatusContext'},
'created_by': {'key': 'createdBy', 'type': 'IdentityRef'},
'creation_date': {'key': 'creationDate', 'type': 'iso-8601'},
'description': {'key': 'description', 'type': 'str'},
'id': {'key': 'id', 'type': 'int'},
'state': {'key': 'state', 'type': 'object'},
'target_url': {'key': 'targetUrl', 'type': 'str'},
'updated_date': {'key': 'updatedDate', 'type': 'iso-8601'}
}
def __init__(self, _links=None, context=None, created_by=None, creation_date=None, description=None, id=None, state=None, target_url=None, updated_date=None):
super(GitStatus, self).__init__()
self._links = _links
self.context = context
self.created_by = created_by
self.creation_date = creation_date
self.description = description
self.id = id
self.state = state
self.target_url = target_url
self.updated_date = updated_date
class GitStatusContext(Model):
"""
Status context that uniquely identifies the status.
:param genre: Genre of the status. Typically name of the service/tool generating the status, can be empty.
:type genre: str
:param name: Name identifier of the status, cannot be null or empty.
:type name: str
"""
_attribute_map = {
'genre': {'key': 'genre', 'type': 'str'},
'name': {'key': 'name', 'type': 'str'}
}
def __init__(self, genre=None, name=None):
super(GitStatusContext, self).__init__()
self.genre = genre
self.name = name
class GitSuggestion(Model):
"""
An object describing the git suggestion. Git suggestions are currently limited to suggested pull requests.
:param properties: Specific properties describing the suggestion.
:type properties: dict
:param type: The type of suggestion (e.g. pull request).
:type type: str
"""
_attribute_map = {
'properties': {'key': 'properties', 'type': '{object}'},
'type': {'key': 'type', 'type': 'str'}
}
def __init__(self, properties=None, type=None):
super(GitSuggestion, self).__init__()
self.properties = properties
self.type = type
class GitTemplate(Model):
"""
:param name: Name of the Template
:type name: str
:param type: Type of the Template
:type type: str
"""
_attribute_map = {
'name': {'key': 'name', 'type': 'str'},
'type': {'key': 'type', 'type': 'str'}
}
def __init__(self, name=None, type=None):
super(GitTemplate, self).__init__()
self.name = name
self.type = type
class GitTreeDiff(Model):
"""
:param base_tree_id: ObjectId of the base tree of this diff.
:type base_tree_id: str
:param diff_entries: 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.
:type diff_entries: list of :class:`GitTreeDiffEntry <azure.devops.v6_0.git.models.GitTreeDiffEntry>`
:param target_tree_id: ObjectId of the target tree of this diff.
:type target_tree_id: str
:param url: REST Url to this resource.
:type url: str
"""
_attribute_map = {
'base_tree_id': {'key': 'baseTreeId', 'type': 'str'},
'diff_entries': {'key': 'diffEntries', 'type': '[GitTreeDiffEntry]'},
'target_tree_id': {'key': 'targetTreeId', 'type': 'str'},
'url': {'key': 'url', 'type': 'str'}
}
def __init__(self, base_tree_id=None, diff_entries=None, target_tree_id=None, url=None):
super(GitTreeDiff, self).__init__()
self.base_tree_id = base_tree_id
self.diff_entries = diff_entries
self.target_tree_id = target_tree_id
self.url = url
class GitTreeDiffEntry(Model):
"""
:param base_object_id: SHA1 hash of the object in the base tree, if it exists. Will be null in case of adds.
:type base_object_id: str
:param change_type: Type of change that affected this entry.
:type change_type: object
:param object_type: Object type of the tree entry. Blob, Tree or Commit("submodule")
:type object_type: object
:param path: Relative path in base and target trees.
:type path: str
:param target_object_id: SHA1 hash of the object in the target tree, if it exists. Will be null in case of deletes.
:type target_object_id: str
"""
_attribute_map = {
'base_object_id': {'key': 'baseObjectId', 'type': 'str'},
'change_type': {'key': 'changeType', 'type': 'object'},
'object_type': {'key': 'objectType', 'type': 'object'},
'path': {'key': 'path', 'type': 'str'},
'target_object_id': {'key': 'targetObjectId', 'type': 'str'}
}
def __init__(self, base_object_id=None, change_type=None, object_type=None, path=None, target_object_id=None):
super(GitTreeDiffEntry, self).__init__()
self.base_object_id = base_object_id
self.change_type = change_type
self.object_type = object_type
self.path = path
self.target_object_id = target_object_id
class GitTreeDiffResponse(Model):
"""
:param continuation_token: The HTTP client methods find the continuation token header in the response and populate this field.
:type continuation_token: list of str
:param tree_diff:
:type tree_diff: :class:`GitTreeDiff <azure.devops.v6_0.git.models.GitTreeDiff>`
"""
_attribute_map = {
'continuation_token': {'key': 'continuationToken', 'type': '[str]'},
'tree_diff': {'key': 'treeDiff', 'type': 'GitTreeDiff'}
}
def __init__(self, continuation_token=None, tree_diff=None):
super(GitTreeDiffResponse, self).__init__()
self.continuation_token = continuation_token
self.tree_diff = tree_diff
class GitTreeEntryRef(Model):
"""
:param git_object_type: Blob or tree
:type git_object_type: object
:param mode: Mode represented as octal string
:type mode: str
:param object_id: SHA1 hash of git object
:type object_id: str
:param relative_path: Path relative to parent tree object
:type relative_path: str
:param size: Size of content
:type size: long
:param url: url to retrieve tree or blob
:type url: str
"""
_attribute_map = {
'git_object_type': {'key': 'gitObjectType', 'type': 'object'},
'mode': {'key': 'mode', 'type': 'str'},
'object_id': {'key': 'objectId', 'type': 'str'},
'relative_path': {'key': 'relativePath', 'type': 'str'},
'size': {'key': 'size', 'type': 'long'},
'url': {'key': 'url', 'type': 'str'}
}
def __init__(self, git_object_type=None, mode=None, object_id=None, relative_path=None, size=None, url=None):
super(GitTreeEntryRef, self).__init__()
self.git_object_type = git_object_type
self.mode = mode
self.object_id = object_id
self.relative_path = relative_path
self.size = size
self.url = url
class GitTreeRef(Model):
"""
:param _links:
:type _links: :class:`ReferenceLinks <azure.devops.v6_0.git.models.ReferenceLinks>`
:param object_id: SHA1 hash of git object
:type object_id: str
:param size: Sum of sizes of all children
:type size: long
:param tree_entries: Blobs and trees under this tree
:type tree_entries: list of :class:`GitTreeEntryRef <azure.devops.v6_0.git.models.GitTreeEntryRef>`
:param url: Url to tree
:type url: str
"""
_attribute_map = {
'_links': {'key': '_links', 'type': 'ReferenceLinks'},
'object_id': {'key': 'objectId', 'type': 'str'},
'size': {'key': 'size', 'type': 'long'},
'tree_entries': {'key': 'treeEntries', 'type': '[GitTreeEntryRef]'},
'url': {'key': 'url', 'type': 'str'}
}
def __init__(self, _links=None, object_id=None, size=None, tree_entries=None, url=None):
super(GitTreeRef, self).__init__()
self._links = _links
self.object_id = object_id
self.size = size
self.tree_entries = tree_entries
self.url = url
class GitUserDate(Model):
"""
User info and date for Git operations.
:param date: Date of the Git operation.
:type date: datetime
:param email: Email address of the user performing the Git operation.
:type email: str
:param image_url: Url for the user's avatar.
:type image_url: str
:param name: Name of the user performing the Git operation.
:type name: str
"""
_attribute_map = {
'date': {'key': 'date', 'type': 'iso-8601'},
'email': {'key': 'email', 'type': 'str'},
'image_url': {'key': 'imageUrl', 'type': 'str'},
'name': {'key': 'name', 'type': 'str'}
}
def __init__(self, date=None, email=None, image_url=None, name=None):
super(GitUserDate, self).__init__()
self.date = date
self.email = email
self.image_url = image_url
self.name = name
class GitVersionDescriptor(Model):
"""
:param version: Version string identifier (name of tag/branch, SHA1 of commit)
:type version: str
:param version_options: Version options - Specify additional modifiers to version (e.g Previous)
:type version_options: object
:param version_type: Version type (branch, tag, or commit). Determines how Id is interpreted
:type version_type: object
"""
_attribute_map = {
'version': {'key': 'version', 'type': 'str'},
'version_options': {'key': 'versionOptions', 'type': 'object'},
'version_type': {'key': 'versionType', 'type': 'object'}
}
def __init__(self, version=None, version_options=None, version_type=None):
super(GitVersionDescriptor, self).__init__()
self.version = version
self.version_options = version_options
self.version_type = version_type
class GlobalGitRepositoryKey(Model):
"""
Globally unique key for a repository.
:param collection_id: Team Project Collection ID of the collection for the repository.
:type collection_id: str
:param project_id: Team Project ID of the project for the repository.
:type project_id: str
:param repository_id: ID of the repository.
:type repository_id: str
"""
_attribute_map = {
'collection_id': {'key': 'collectionId', 'type': 'str'},
'project_id': {'key': 'projectId', 'type': 'str'},
'repository_id': {'key': 'repositoryId', 'type': 'str'}
}
def __init__(self, collection_id=None, project_id=None, repository_id=None):
super(GlobalGitRepositoryKey, self).__init__()
self.collection_id = collection_id
self.project_id = project_id
self.repository_id = repository_id
class GraphSubjectBase(Model):
"""
:param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject.
:type _links: :class:`ReferenceLinks <azure.devops.v6_0.microsoft._visual_studio._services._web_api.models.ReferenceLinks>`
:param descriptor: 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.
:type descriptor: str
:param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider.
:type display_name: str
:param url: This url is the full route to the source resource of this graph subject.
:type url: str
"""
_attribute_map = {
'_links': {'key': '_links', 'type': 'ReferenceLinks'},
'descriptor': {'key': 'descriptor', 'type': 'str'},
'display_name': {'key': 'displayName', 'type': 'str'},
'url': {'key': 'url', 'type': 'str'}
}
def __init__(self, _links=None, descriptor=None, display_name=None, url=None):
super(GraphSubjectBase, self).__init__()
self._links = _links
self.descriptor = descriptor
self.display_name = display_name
self.url = url
class IdentityRef(GraphSubjectBase):
"""
:param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject.
:type _links: :class:`ReferenceLinks <azure.devops.v6_0.microsoft._visual_studio._services._web_api.models.ReferenceLinks>`
:param descriptor: 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.
:type descriptor: str
:param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider.
:type display_name: str
:param url: This url is the full route to the source resource of this graph subject.
:type url: str
:param directory_alias: Deprecated - Can be retrieved by querying the Graph user referenced in the "self" entry of the IdentityRef "_links" dictionary
:type directory_alias: str
:param id:
:type id: str
:param image_url: Deprecated - Available in the "avatar" entry of the IdentityRef "_links" dictionary
:type image_url: str
:param inactive: Deprecated - Can be retrieved by querying the Graph membership state referenced in the "membershipState" entry of the GraphUser "_links" dictionary
:type inactive: bool
:param is_aad_identity: Deprecated - Can be inferred from the subject type of the descriptor (Descriptor.IsAadUserType/Descriptor.IsAadGroupType)
:type is_aad_identity: bool
:param is_container: Deprecated - Can be inferred from the subject type of the descriptor (Descriptor.IsGroupType)
:type is_container: bool
:param is_deleted_in_origin:
:type is_deleted_in_origin: bool
:param profile_url: Deprecated - not in use in most preexisting implementations of ToIdentityRef
:type profile_url: str
:param unique_name: Deprecated - use Domain+PrincipalName instead
:type unique_name: str
"""
_attribute_map = {
'_links': {'key': '_links', 'type': 'ReferenceLinks'},
'descriptor': {'key': 'descriptor', 'type': 'str'},
'display_name': {'key': 'displayName', 'type': 'str'},
'url': {'key': 'url', 'type': 'str'},
'directory_alias': {'key': 'directoryAlias', 'type': 'str'},
'id': {'key': 'id', 'type': 'str'},
'image_url': {'key': 'imageUrl', 'type': 'str'},
'inactive': {'key': 'inactive', 'type': 'bool'},
'is_aad_identity': {'key': 'isAadIdentity', 'type': 'bool'},
'is_container': {'key': 'isContainer', 'type': 'bool'},
'is_deleted_in_origin': {'key': 'isDeletedInOrigin', 'type': 'bool'},
'profile_url': {'key': 'profileUrl', 'type': 'str'},
'unique_name': {'key': 'uniqueName', 'type': 'str'}
}
def __init__(self, _links=None, descriptor=None, display_name=None, url=None, directory_alias=None, id=None, image_url=None, inactive=None, is_aad_identity=None, is_container=None, is_deleted_in_origin=None, profile_url=None, unique_name=None):
super(IdentityRef, self).__init__(_links=_links, descriptor=descriptor, display_name=display_name, url=url)
self.directory_alias = directory_alias
self.id = id
self.image_url = image_url
self.inactive = inactive
self.is_aad_identity = is_aad_identity
self.is_container = is_container
self.is_deleted_in_origin = is_deleted_in_origin
self.profile_url = profile_url
self.unique_name = unique_name
class IdentityRefWithVote(IdentityRef):
"""
Identity information including a vote on a pull request.
:param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject.
:type _links: :class:`ReferenceLinks <azure.devops.v6_0.git.models.ReferenceLinks>`
:param descriptor: 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.
:type descriptor: str
:param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider.
:type display_name: str
:param url: This url is the full route to the source resource of this graph subject.
:type url: str
:param directory_alias: Deprecated - Can be retrieved by querying the Graph user referenced in the "self" entry of the IdentityRef "_links" dictionary
:type directory_alias: str
:param id:
:type id: str
:param image_url: Deprecated - Available in the "avatar" entry of the IdentityRef "_links" dictionary
:type image_url: str
:param inactive: Deprecated - Can be retrieved by querying the Graph membership state referenced in the "membershipState" entry of the GraphUser "_links" dictionary
:type inactive: bool
:param is_aad_identity: Deprecated - Can be inferred from the subject type of the descriptor (Descriptor.IsAadUserType/Descriptor.IsAadGroupType)
:type is_aad_identity: bool
:param is_container: Deprecated - Can be inferred from the subject type of the descriptor (Descriptor.IsGroupType)
:type is_container: bool
:param is_deleted_in_origin:
:type is_deleted_in_origin: bool
:param profile_url: Deprecated - not in use in most preexisting implementations of ToIdentityRef
:type profile_url: str
:param unique_name: Deprecated - use Domain+PrincipalName instead
:type unique_name: str
:param has_declined: Indicates if this reviewer has declined to review this pull request.
:type has_declined: bool
:param is_flagged: Indicates if this reviewer is flagged for attention on this pull request.
:type is_flagged: bool
:param is_required: 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.
:type is_required: bool
:param reviewer_url: URL to retrieve information about this identity
:type reviewer_url: str
:param vote: Vote on a pull request:<br /> 10 - approved 5 - approved with suggestions 0 - no vote -5 - waiting for author -10 - rejected
:type vote: int
:param voted_for: 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.
:type voted_for: list of :class:`IdentityRefWithVote <azure.devops.v6_0.git.models.IdentityRefWithVote>`
"""
_attribute_map = {
'_links': {'key': '_links', 'type': 'ReferenceLinks'},
'descriptor': {'key': 'descriptor', 'type': 'str'},
'display_name': {'key': 'displayName', 'type': 'str'},
'url': {'key': 'url', 'type': 'str'},
'directory_alias': {'key': 'directoryAlias', 'type': 'str'},
'id': {'key': 'id', 'type': 'str'},
'image_url': {'key': 'imageUrl', 'type': 'str'},
'inactive': {'key': 'inactive', 'type': 'bool'},
'is_aad_identity': {'key': 'isAadIdentity', 'type': 'bool'},
'is_container': {'key': 'isContainer', 'type': 'bool'},
'is_deleted_in_origin': {'key': 'isDeletedInOrigin', 'type': 'bool'},
'profile_url': {'key': 'profileUrl', 'type': 'str'},
'unique_name': {'key': 'uniqueName', 'type': 'str'},
'has_declined': {'key': 'hasDeclined', 'type': 'bool'},
'is_flagged': {'key': 'isFlagged', 'type': 'bool'},
'is_required': {'key': 'isRequired', 'type': 'bool'},
'reviewer_url': {'key': 'reviewerUrl', 'type': 'str'},
'vote': {'key': 'vote', 'type': 'int'},
'voted_for': {'key': 'votedFor', 'type': '[IdentityRefWithVote]'}
}
def __init__(self, _links=None, descriptor=None, display_name=None, url=None, directory_alias=None, id=None, image_url=None, inactive=None, is_aad_identity=None, is_container=None, is_deleted_in_origin=None, profile_url=None, unique_name=None, has_declined=None, is_flagged=None, is_required=None, reviewer_url=None, vote=None, voted_for=None):
super(IdentityRefWithVote, self).__init__(_links=_links, descriptor=descriptor, display_name=display_name, url=url, directory_alias=directory_alias, id=id, image_url=image_url, inactive=inactive, is_aad_identity=is_aad_identity, is_container=is_container, is_deleted_in_origin=is_deleted_in_origin, profile_url=profile_url, unique_name=unique_name)
self.has_declined = has_declined
self.is_flagged = is_flagged
self.is_required = is_required
self.reviewer_url = reviewer_url
self.vote = vote
self.voted_for = voted_for
class ImportRepositoryValidation(Model):
"""
:param git_source:
:type git_source: :class:`GitImportGitSource <azure.devops.v6_0.git.models.GitImportGitSource>`
:param password:
:type password: str
:param tfvc_source:
:type tfvc_source: :class:`GitImportTfvcSource <azure.devops.v6_0.git.models.GitImportTfvcSource>`
:param username:
:type username: str
"""
_attribute_map = {
'git_source': {'key': 'gitSource', 'type': 'GitImportGitSource'},
'password': {'key': 'password', 'type': 'str'},
'tfvc_source': {'key': 'tfvcSource', 'type': 'GitImportTfvcSource'},
'username': {'key': 'username', 'type': 'str'}
}
def __init__(self, git_source=None, password=None, tfvc_source=None, username=None):
super(ImportRepositoryValidation, self).__init__()
self.git_source = git_source
self.password = password
self.tfvc_source = tfvc_source
self.username = username
class ItemContent(Model):
"""
:param content:
:type content: str
:param content_type:
:type content_type: object
"""
_attribute_map = {
'content': {'key': 'content', 'type': 'str'},
'content_type': {'key': 'contentType', 'type': 'object'}
}
def __init__(self, content=None, content_type=None):
super(ItemContent, self).__init__()
self.content = content
self.content_type = content_type
class ItemModel(Model):
"""
:param _links:
:type _links: :class:`ReferenceLinks <azure.devops.v6_0.git.models.ReferenceLinks>`
:param content:
:type content: str
:param content_metadata:
:type content_metadata: :class:`FileContentMetadata <azure.devops.v6_0.git.models.FileContentMetadata>`
:param is_folder:
:type is_folder: bool
:param is_sym_link:
:type is_sym_link: bool
:param path:
:type path: str
:param url:
:type url: str
"""
_attribute_map = {
'_links': {'key': '_links', 'type': 'ReferenceLinks'},
'content': {'key': 'content', 'type': 'str'},
'content_metadata': {'key': 'contentMetadata', 'type': 'FileContentMetadata'},
'is_folder': {'key': 'isFolder', 'type': 'bool'},
'is_sym_link': {'key': 'isSymLink', 'type': 'bool'},
'path': {'key': 'path', 'type': 'str'},
'url': {'key': 'url', 'type': 'str'}
}
def __init__(self, _links=None, content=None, content_metadata=None, is_folder=None, is_sym_link=None, path=None, url=None):
super(ItemModel, self).__init__()
self._links = _links
self.content = content
self.content_metadata = content_metadata
self.is_folder = is_folder
self.is_sym_link = is_sym_link
self.path = path
self.url = url
class JsonPatchOperation(Model):
"""
The JSON model for a JSON Patch operation
:param from_: The path to copy from for the Move/Copy operation.
:type from_: str
:param op: The patch operation
:type op: object
:param path: 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/-).
:type path: str
:param value: The value for the operation. This is either a primitive or a JToken.
:type value: object
"""
_attribute_map = {
'from_': {'key': 'from', 'type': 'str'},
'op': {'key': 'op', 'type': 'object'},
'path': {'key': 'path', 'type': 'str'},
'value': {'key': 'value', 'type': 'object'}
}
def __init__(self, from_=None, op=None, path=None, value=None):
super(JsonPatchOperation, self).__init__()
self.from_ = from_
self.op = op
self.path = path
self.value = value
class LineDiffBlock(Model):
"""
The class to represent the line diff block
:param change_type: Type of change that was made to the block.
:type change_type: object
:param modified_line_number_start: Line number where this block starts in modified file.
:type modified_line_number_start: int
:param modified_lines_count: Count of lines in this block in modified file.
:type modified_lines_count: int
:param original_line_number_start: Line number where this block starts in original file.
:type original_line_number_start: int
:param original_lines_count: Count of lines in this block in original file.
:type original_lines_count: int
"""
_attribute_map = {
'change_type': {'key': 'changeType', 'type': 'object'},
'modified_line_number_start': {'key': 'modifiedLineNumberStart', 'type': 'int'},
'modified_lines_count': {'key': 'modifiedLinesCount', 'type': 'int'},
'original_line_number_start': {'key': 'originalLineNumberStart', 'type': 'int'},
'original_lines_count': {'key': 'originalLinesCount', 'type': 'int'}
}
def __init__(self, change_type=None, modified_line_number_start=None, modified_lines_count=None, original_line_number_start=None, original_lines_count=None):
super(LineDiffBlock, self).__init__()
self.change_type = change_type
self.modified_line_number_start = modified_line_number_start
self.modified_lines_count = modified_lines_count
self.original_line_number_start = original_line_number_start
self.original_lines_count = original_lines_count
class PolicyConfigurationRef(Model):
"""
Policy configuration reference.
:param id: The policy configuration ID.
:type id: int
:param type: The policy configuration type.
:type type: :class:`PolicyTypeRef <azure.devops.v6_0.microsoft._team_foundation._policy._web_api.models.PolicyTypeRef>`
:param url: The URL where the policy configuration can be retrieved.
:type url: str
"""
_attribute_map = {
'id': {'key': 'id', 'type': 'int'},
'type': {'key': 'type', 'type': 'PolicyTypeRef'},
'url': {'key': 'url', 'type': 'str'}
}
def __init__(self, id=None, type=None, url=None):
super(PolicyConfigurationRef, self).__init__()
self.id = id
self.type = type
self.url = url
class PolicyTypeRef(Model):
"""
Policy type reference.
:param display_name: Display name of the policy type.
:type display_name: str
:param id: The policy type ID.
:type id: str
:param url: The URL where the policy type can be retrieved.
:type url: str
"""
_attribute_map = {
'display_name': {'key': 'displayName', 'type': 'str'},
'id': {'key': 'id', 'type': 'str'},
'url': {'key': 'url', 'type': 'str'}
}
def __init__(self, display_name=None, id=None, url=None):
super(PolicyTypeRef, self).__init__()
self.display_name = display_name
self.id = id
self.url = url
class ReferenceLinks(Model):
"""
The class to represent a collection of REST reference links.
:param links: The readonly view of the links. Because Reference links are readonly, we only want to expose them as read only.
:type links: dict
"""
_attribute_map = {
'links': {'key': 'links', 'type': '{object}'}
}
def __init__(self, links=None):
super(ReferenceLinks, self).__init__()
self.links = links
class ResourceRef(Model):
"""
:param id:
:type id: str
:param url:
:type url: str
"""
_attribute_map = {
'id': {'key': 'id', 'type': 'str'},
'url': {'key': 'url', 'type': 'str'}
}
def __init__(self, id=None, url=None):
super(ResourceRef, self).__init__()
self.id = id
self.url = url
class ShareNotificationContext(Model):
"""
Context used while sharing a pull request.
:param message: Optional user note or message.
:type message: str
:param receivers: Identities of users who will receive a share notification.
:type receivers: list of :class:`IdentityRef <azure.devops.v6_0.git.models.IdentityRef>`
"""
_attribute_map = {
'message': {'key': 'message', 'type': 'str'},
'receivers': {'key': 'receivers', 'type': '[IdentityRef]'}
}
def __init__(self, message=None, receivers=None):
super(ShareNotificationContext, self).__init__()
self.message = message
self.receivers = receivers
class SourceToTargetRef(Model):
"""
:param source_ref: The source ref to copy. For example, refs/heads/master.
:type source_ref: str
:param target_ref: The target ref to update. For example, refs/heads/master.
:type target_ref: str
"""
_attribute_map = {
'source_ref': {'key': 'sourceRef', 'type': 'str'},
'target_ref': {'key': 'targetRef', 'type': 'str'}
}
def __init__(self, source_ref=None, target_ref=None):
super(SourceToTargetRef, self).__init__()
self.source_ref = source_ref
self.target_ref = target_ref
class TeamProjectCollectionReference(Model):
"""
Reference object for a TeamProjectCollection.
:param id: Collection Id.
:type id: str
:param name: Collection Name.
:type name: str
:param url: Collection REST Url.
:type url: str
"""
_attribute_map = {
'id': {'key': 'id', 'type': 'str'},
'name': {'key': 'name', 'type': 'str'},
'url': {'key': 'url', 'type': 'str'}
}
def __init__(self, id=None, name=None, url=None):
super(TeamProjectCollectionReference, self).__init__()
self.id = id
self.name = name
self.url = url
class TeamProjectReference(Model):
"""
Represents a shallow reference to a TeamProject.
:param abbreviation: Project abbreviation.
:type abbreviation: str
:param default_team_image_url: Url to default team identity image.
:type default_team_image_url: str
:param description: The project's description (if any).
:type description: str
:param id: Project identifier.
:type id: str
:param last_update_time: Project last update time.
:type last_update_time: datetime
:param name: Project name.
:type name: str
:param revision: Project revision.
:type revision: long
:param state: Project state.
:type state: object
:param url: Url to the full version of the object.
:type url: str
:param visibility: Project visibility.
:type visibility: object
"""
_attribute_map = {
'abbreviation': {'key': 'abbreviation', 'type': 'str'},
'default_team_image_url': {'key': 'defaultTeamImageUrl', 'type': 'str'},
'description': {'key': 'description', 'type': 'str'},
'id': {'key': 'id', 'type': 'str'},
'last_update_time': {'key': 'lastUpdateTime', 'type': 'iso-8601'},
'name': {'key': 'name', 'type': 'str'},
'revision': {'key': 'revision', 'type': 'long'},
'state': {'key': 'state', 'type': 'object'},
'url': {'key': 'url', 'type': 'str'},
'visibility': {'key': 'visibility', 'type': 'object'}
}
def __init__(self, abbreviation=None, default_team_image_url=None, description=None, id=None, last_update_time=None, name=None, revision=None, state=None, url=None, visibility=None):
super(TeamProjectReference, self).__init__()
self.abbreviation = abbreviation
self.default_team_image_url = default_team_image_url
self.description = description
self.id = id
self.last_update_time = last_update_time
self.name = name
self.revision = revision
self.state = state
self.url = url
self.visibility = visibility
class VersionedPolicyConfigurationRef(PolicyConfigurationRef):
"""
A particular revision for a policy configuration.
:param id: The policy configuration ID.
:type id: int
:param type: The policy configuration type.
:type type: :class:`PolicyTypeRef <azure.devops.v6_0.microsoft._team_foundation._policy._web_api.models.PolicyTypeRef>`
:param url: The URL where the policy configuration can be retrieved.
:type url: str
:param revision: The policy configuration revision ID.
:type revision: int
"""
_attribute_map = {
'id': {'key': 'id', 'type': 'int'},
'type': {'key': 'type', 'type': 'PolicyTypeRef'},
'url': {'key': 'url', 'type': 'str'},
'revision': {'key': 'revision', 'type': 'int'}
}
def __init__(self, id=None, type=None, url=None, revision=None):
super(VersionedPolicyConfigurationRef, self).__init__(id=id, type=type, url=url)
self.revision = revision
class VstsInfo(Model):
"""
:param collection:
:type collection: :class:`TeamProjectCollectionReference <azure.devops.v6_0.git.models.TeamProjectCollectionReference>`
:param repository:
:type repository: :class:`GitRepository <azure.devops.v6_0.git.models.GitRepository>`
:param server_url:
:type server_url: str
"""
_attribute_map = {
'collection': {'key': 'collection', 'type': 'TeamProjectCollectionReference'},
'repository': {'key': 'repository', 'type': 'GitRepository'},
'server_url': {'key': 'serverUrl', 'type': 'str'}
}
def __init__(self, collection=None, repository=None, server_url=None):
super(VstsInfo, self).__init__()
self.collection = collection
self.repository = repository
self.server_url = server_url
class WebApiCreateTagRequestData(Model):
"""
The representation of data needed to create a tag definition which is sent across the wire.
:param name: Name of the tag definition that will be created.
:type name: str
"""
_attribute_map = {
'name': {'key': 'name', 'type': 'str'}
}
def __init__(self, name=None):
super(WebApiCreateTagRequestData, self).__init__()
self.name = name
class WebApiTagDefinition(Model):
"""
The representation of a tag definition which is sent across the wire.
:param active: Whether or not the tag definition is active.
:type active: bool
:param id: ID of the tag definition.
:type id: str
:param name: The name of the tag definition.
:type name: str
:param url: Resource URL for the Tag Definition.
:type url: str
"""
_attribute_map = {
'active': {'key': 'active', 'type': 'bool'},
'id': {'key': 'id', 'type': 'str'},
'name': {'key': 'name', 'type': 'str'},
'url': {'key': 'url', 'type': 'str'}
}
def __init__(self, active=None, id=None, name=None, url=None):
super(WebApiTagDefinition, self).__init__()
self.active = active
self.id = id
self.name = name
self.url = url
class GitBaseVersionDescriptor(GitVersionDescriptor):
"""
:param version: Version string identifier (name of tag/branch, SHA1 of commit)
:type version: str
:param version_options: Version options - Specify additional modifiers to version (e.g Previous)
:type version_options: object
:param version_type: Version type (branch, tag, or commit). Determines how Id is interpreted
:type version_type: object
:param base_version: Version string identifier (name of tag/branch, SHA1 of commit)
:type base_version: str
:param base_version_options: Version options - Specify additional modifiers to version (e.g Previous)
:type base_version_options: object
:param base_version_type: Version type (branch, tag, or commit). Determines how Id is interpreted
:type base_version_type: object
"""
_attribute_map = {
'version': {'key': 'version', 'type': 'str'},
'version_options': {'key': 'versionOptions', 'type': 'object'},
'version_type': {'key': 'versionType', 'type': 'object'},
'base_version': {'key': 'baseVersion', 'type': 'str'},
'base_version_options': {'key': 'baseVersionOptions', 'type': 'object'},
'base_version_type': {'key': 'baseVersionType', 'type': 'object'}
}
def __init__(self, version=None, version_options=None, version_type=None, base_version=None, base_version_options=None, base_version_type=None):
super(GitBaseVersionDescriptor, self).__init__(version=version, version_options=version_options, version_type=version_type)
self.base_version = base_version
self.base_version_options = base_version_options
self.base_version_type = base_version_type
class GitCommit(GitCommitRef):
"""
:param _links: A collection of related REST reference links.
:type _links: :class:`ReferenceLinks <azure.devops.v6_0.git.models.ReferenceLinks>`
:param author: Author of the commit.
:type author: :class:`GitUserDate <azure.devops.v6_0.git.models.GitUserDate>`
:param change_counts: Counts of the types of changes (edits, deletes, etc.) included with the commit.
:type change_counts: dict
:param changes: An enumeration of the changes included with the commit.
:type changes: list of :class:`object <azure.devops.v6_0.git.models.object>`
:param comment: Comment or message of the commit.
:type comment: str
:param comment_truncated: Indicates if the comment is truncated from the full Git commit comment message.
:type comment_truncated: bool
:param commit_id: ID (SHA-1) of the commit.
:type commit_id: str
:param committer: Committer of the commit.
:type committer: :class:`GitUserDate <azure.devops.v6_0.git.models.GitUserDate>`
:param parents: An enumeration of the parent commit IDs for this commit.
:type parents: list of str
:param push: The push associated with this commit.
:type push: :class:`GitPushRef <azure.devops.v6_0.git.models.GitPushRef>`
:param remote_url: Remote URL path to the commit.
:type remote_url: str
:param statuses: A list of status metadata from services and extensions that may associate additional information to the commit.
:type statuses: list of :class:`GitStatus <azure.devops.v6_0.git.models.GitStatus>`
:param url: REST URL for this resource.
:type url: str
:param work_items: A list of workitems associated with this commit.
:type work_items: list of :class:`ResourceRef <azure.devops.v6_0.git.models.ResourceRef>`
:param tree_id:
:type tree_id: str
"""
_attribute_map = {
'_links': {'key': '_links', 'type': 'ReferenceLinks'},
'author': {'key': 'author', 'type': 'GitUserDate'},
'change_counts': {'key': 'changeCounts', 'type': '{int}'},
'changes': {'key': 'changes', 'type': '[object]'},
'comment': {'key': 'comment', 'type': 'str'},
'comment_truncated': {'key': 'commentTruncated', 'type': 'bool'},
'commit_id': {'key': 'commitId', 'type': 'str'},
'committer': {'key': 'committer', 'type': 'GitUserDate'},
'parents': {'key': 'parents', 'type': '[str]'},
'push': {'key': 'push', 'type': 'GitPushRef'},
'remote_url': {'key': 'remoteUrl', 'type': 'str'},
'statuses': {'key': 'statuses', 'type': '[GitStatus]'},
'url': {'key': 'url', 'type': 'str'},
'work_items': {'key': 'workItems', 'type': '[ResourceRef]'},
'tree_id': {'key': 'treeId', 'type': 'str'}
}
def __init__(self, _links=None, author=None, change_counts=None, changes=None, comment=None, comment_truncated=None, commit_id=None, committer=None, parents=None, push=None, remote_url=None, statuses=None, url=None, work_items=None, tree_id=None):
super(GitCommit, self).__init__(_links=_links, author=author, change_counts=change_counts, changes=changes, comment=comment, comment_truncated=comment_truncated, commit_id=commit_id, committer=committer, parents=parents, push=push, remote_url=remote_url, statuses=statuses, url=url, work_items=work_items)
self.tree_id = tree_id
class GitForkRef(GitRef):
"""
Information about a fork ref.
:param _links:
:type _links: :class:`ReferenceLinks <azure.devops.v6_0.git.models.ReferenceLinks>`
:param creator:
:type creator: :class:`IdentityRef <azure.devops.v6_0.git.models.IdentityRef>`
:param is_locked:
:type is_locked: bool
:param is_locked_by:
:type is_locked_by: :class:`IdentityRef <azure.devops.v6_0.git.models.IdentityRef>`
:param name:
:type name: str
:param object_id:
:type object_id: str
:param peeled_object_id:
:type peeled_object_id: str
:param statuses:
:type statuses: list of :class:`GitStatus <azure.devops.v6_0.git.models.GitStatus>`
:param url:
:type url: str
:param repository: The repository ID of the fork.
:type repository: :class:`GitRepository <azure.devops.v6_0.git.models.GitRepository>`
"""
_attribute_map = {
'_links': {'key': '_links', 'type': 'ReferenceLinks'},
'creator': {'key': 'creator', 'type': 'IdentityRef'},
'is_locked': {'key': 'isLocked', 'type': 'bool'},
'is_locked_by': {'key': 'isLockedBy', 'type': 'IdentityRef'},
'name': {'key': 'name', 'type': 'str'},
'object_id': {'key': 'objectId', 'type': 'str'},
'peeled_object_id': {'key': 'peeledObjectId', 'type': 'str'},
'statuses': {'key': 'statuses', 'type': '[GitStatus]'},
'url': {'key': 'url', 'type': 'str'},
'repository': {'key': 'repository', 'type': 'GitRepository'}
}
def __init__(self, _links=None, creator=None, is_locked=None, is_locked_by=None, name=None, object_id=None, peeled_object_id=None, statuses=None, url=None, repository=None):
super(GitForkRef, self).__init__(_links=_links, creator=creator, is_locked=is_locked, is_locked_by=is_locked_by, name=name, object_id=object_id, peeled_object_id=peeled_object_id, statuses=statuses, url=url)
self.repository = repository
class GitItem(ItemModel):
"""
:param _links:
:type _links: :class:`ReferenceLinks <azure.devops.v6_0.git.models.ReferenceLinks>`
:param content:
:type content: str
:param content_metadata:
:type content_metadata: :class:`FileContentMetadata <azure.devops.v6_0.git.models.FileContentMetadata>`
:param is_folder:
:type is_folder: bool
:param is_sym_link:
:type is_sym_link: bool
:param path:
:type path: str
:param url:
:type url: str
:param commit_id: SHA1 of commit item was fetched at
:type commit_id: str
:param git_object_type: Type of object (Commit, Tree, Blob, Tag, ...)
:type git_object_type: object
:param latest_processed_change: Shallow ref to commit that last changed this item Only populated if latestProcessedChange is requested May not be accurate if latest change is not yet cached
:type latest_processed_change: :class:`GitCommitRef <azure.devops.v6_0.git.models.GitCommitRef>`
:param object_id: Git object id
:type object_id: str
:param original_object_id: Git object id
:type original_object_id: str
"""
_attribute_map = {
'_links': {'key': '_links', 'type': 'ReferenceLinks'},
'content': {'key': 'content', 'type': 'str'},
'content_metadata': {'key': 'contentMetadata', 'type': 'FileContentMetadata'},
'is_folder': {'key': 'isFolder', 'type': 'bool'},
'is_sym_link': {'key': 'isSymLink', 'type': 'bool'},
'path': {'key': 'path', 'type': 'str'},
'url': {'key': 'url', 'type': 'str'},
'commit_id': {'key': 'commitId', 'type': 'str'},
'git_object_type': {'key': 'gitObjectType', 'type': 'object'},
'latest_processed_change': {'key': 'latestProcessedChange', 'type': 'GitCommitRef'},
'object_id': {'key': 'objectId', 'type': 'str'},
'original_object_id': {'key': 'originalObjectId', 'type': 'str'}
}
def __init__(self, _links=None, content=None, content_metadata=None, is_folder=None, is_sym_link=None, path=None, url=None, commit_id=None, git_object_type=None, latest_processed_change=None, object_id=None, original_object_id=None):
super(GitItem, self).__init__(_links=_links, content=content, content_metadata=content_metadata, is_folder=is_folder, is_sym_link=is_sym_link, path=path, url=url)
self.commit_id = commit_id
self.git_object_type = git_object_type
self.latest_processed_change = latest_processed_change
self.object_id = object_id
self.original_object_id = original_object_id
class GitMerge(GitMergeParameters):
"""
:param comment: Comment or message of the commit.
:type comment: str
:param parents: An enumeration of the parent commit IDs for the merge commit.
:type parents: list of str
:param _links: Reference links.
:type _links: :class:`ReferenceLinks <azure.devops.v6_0.git.models.ReferenceLinks>`
:param detailed_status: Detailed status of the merge operation.
:type detailed_status: :class:`GitMergeOperationStatusDetail <azure.devops.v6_0.git.models.GitMergeOperationStatusDetail>`
:param merge_operation_id: Unique identifier for the merge operation.
:type merge_operation_id: int
:param status: Status of the merge operation.
:type status: object
"""
_attribute_map = {
'comment': {'key': 'comment', 'type': 'str'},
'parents': {'key': 'parents', 'type': '[str]'},
'_links': {'key': '_links', 'type': 'ReferenceLinks'},
'detailed_status': {'key': 'detailedStatus', 'type': 'GitMergeOperationStatusDetail'},
'merge_operation_id': {'key': 'mergeOperationId', 'type': 'int'},
'status': {'key': 'status', 'type': 'object'}
}
def __init__(self, comment=None, parents=None, _links=None, detailed_status=None, merge_operation_id=None, status=None):
super(GitMerge, self).__init__(comment=comment, parents=parents)
self._links = _links
self.detailed_status = detailed_status
self.merge_operation_id = merge_operation_id
self.status = status
class GitPullRequestStatus(GitStatus):
"""
This class contains the metadata of a service/extension posting pull request status. Status can be associated with a pull request or an iteration.
:param _links: Reference links.
:type _links: :class:`ReferenceLinks <azure.devops.v6_0.git.models.ReferenceLinks>`
:param context: Context of the status.
:type context: :class:`GitStatusContext <azure.devops.v6_0.git.models.GitStatusContext>`
:param created_by: Identity that created the status.
:type created_by: :class:`IdentityRef <azure.devops.v6_0.git.models.IdentityRef>`
:param creation_date: Creation date and time of the status.
:type creation_date: datetime
:param description: Status description. Typically describes current state of the status.
:type description: str
:param id: Status identifier.
:type id: int
:param state: State of the status.
:type state: object
:param target_url: URL with status details.
:type target_url: str
:param updated_date: Last update date and time of the status.
:type updated_date: datetime
:param iteration_id: ID of the iteration to associate status with. Minimum value is 1.
:type iteration_id: int
:param properties: Custom properties of the status.
:type properties: :class:`object <azure.devops.v6_0.git.models.object>`
"""
_attribute_map = {
'_links': {'key': '_links', 'type': 'ReferenceLinks'},
'context': {'key': 'context', 'type': 'GitStatusContext'},
'created_by': {'key': 'createdBy', 'type': 'IdentityRef'},
'creation_date': {'key': 'creationDate', 'type': 'iso-8601'},
'description': {'key': 'description', 'type': 'str'},
'id': {'key': 'id', 'type': 'int'},
'state': {'key': 'state', 'type': 'object'},
'target_url': {'key': 'targetUrl', 'type': 'str'},
'updated_date': {'key': 'updatedDate', 'type': 'iso-8601'},
'iteration_id': {'key': 'iterationId', 'type': 'int'},
'properties': {'key': 'properties', 'type': 'object'}
}
def __init__(self, _links=None, context=None, created_by=None, creation_date=None, description=None, id=None, state=None, target_url=None, updated_date=None, iteration_id=None, properties=None):
super(GitPullRequestStatus, self).__init__(_links=_links, context=context, created_by=created_by, creation_date=creation_date, description=description, id=id, state=state, target_url=target_url, updated_date=updated_date)
self.iteration_id = iteration_id
self.properties = properties
class GitPush(GitPushRef):
"""
:param _links:
:type _links: :class:`ReferenceLinks <azure.devops.v6_0.git.models.ReferenceLinks>`
:param date:
:type date: datetime
:param push_correlation_id:
:type push_correlation_id: str
:param pushed_by:
:type pushed_by: :class:`IdentityRef <azure.devops.v6_0.git.models.IdentityRef>`
:param push_id:
:type push_id: int
:param url:
:type url: str
:param commits:
:type commits: list of :class:`GitCommitRef <azure.devops.v6_0.git.models.GitCommitRef>`
:param ref_updates:
:type ref_updates: list of :class:`GitRefUpdate <azure.devops.v6_0.git.models.GitRefUpdate>`
:param repository:
:type repository: :class:`GitRepository <azure.devops.v6_0.git.models.GitRepository>`
"""
_attribute_map = {
'_links': {'key': '_links', 'type': 'ReferenceLinks'},
'date': {'key': 'date', 'type': 'iso-8601'},
'push_correlation_id': {'key': 'pushCorrelationId', 'type': 'str'},
'pushed_by': {'key': 'pushedBy', 'type': 'IdentityRef'},
'push_id': {'key': 'pushId', 'type': 'int'},
'url': {'key': 'url', 'type': 'str'},
'commits': {'key': 'commits', 'type': '[GitCommitRef]'},
'ref_updates': {'key': 'refUpdates', 'type': '[GitRefUpdate]'},
'repository': {'key': 'repository', 'type': 'GitRepository'}
}
def __init__(self, _links=None, date=None, push_correlation_id=None, pushed_by=None, push_id=None, url=None, commits=None, ref_updates=None, repository=None):
super(GitPush, self).__init__(_links=_links, date=date, push_correlation_id=push_correlation_id, pushed_by=pushed_by, push_id=push_id, url=url)
self.commits = commits
self.ref_updates = ref_updates
self.repository = repository
class GitTargetVersionDescriptor(GitVersionDescriptor):
"""
:param version: Version string identifier (name of tag/branch, SHA1 of commit)
:type version: str
:param version_options: Version options - Specify additional modifiers to version (e.g Previous)
:type version_options: object
:param version_type: Version type (branch, tag, or commit). Determines how Id is interpreted
:type version_type: object
:param target_version: Version string identifier (name of tag/branch, SHA1 of commit)
:type target_version: str
:param target_version_options: Version options - Specify additional modifiers to version (e.g Previous)
:type target_version_options: object
:param target_version_type: Version type (branch, tag, or commit). Determines how Id is interpreted
:type target_version_type: object
"""
_attribute_map = {
'version': {'key': 'version', 'type': 'str'},
'version_options': {'key': 'versionOptions', 'type': 'object'},
'version_type': {'key': 'versionType', 'type': 'object'},
'target_version': {'key': 'targetVersion', 'type': 'str'},
'target_version_options': {'key': 'targetVersionOptions', 'type': 'object'},
'target_version_type': {'key': 'targetVersionType', 'type': 'object'}
}
def __init__(self, version=None, version_options=None, version_type=None, target_version=None, target_version_options=None, target_version_type=None):
super(GitTargetVersionDescriptor, self).__init__(version=version, version_options=version_options, version_type=version_type)
self.target_version = target_version
self.target_version_options = target_version_options
self.target_version_type = target_version_type
class PolicyConfiguration(VersionedPolicyConfigurationRef):
"""
The full policy configuration with settings.
:param id: The policy configuration ID.
:type id: int
:param type: The policy configuration type.
:type type: :class:`PolicyTypeRef <azure.devops.v6_0.microsoft._team_foundation._policy._web_api.models.PolicyTypeRef>`
:param url: The URL where the policy configuration can be retrieved.
:type url: str
:param revision: The policy configuration revision ID.
:type revision: int
:param _links: The links to other objects related to this object.
:type _links: :class:`ReferenceLinks <azure.devops.v6_0.microsoft._team_foundation._policy._web_api.models.ReferenceLinks>`
:param created_by: A reference to the identity that created the policy.
:type created_by: :class:`IdentityRef <azure.devops.v6_0.microsoft._team_foundation._policy._web_api.models.IdentityRef>`
:param created_date: The date and time when the policy was created.
:type created_date: datetime
:param is_blocking: Indicates whether the policy is blocking.
:type is_blocking: bool
:param is_deleted: Indicates whether the policy has been (soft) deleted.
:type is_deleted: bool
:param is_enabled: Indicates whether the policy is enabled.
:type is_enabled: bool
:param is_enterprise_managed: If set, this policy requires "Manage Enterprise Policies" permission to create, edit, or delete.
:type is_enterprise_managed: bool
:param settings: The policy configuration settings.
:type settings: object
"""
_attribute_map = {
'id': {'key': 'id', 'type': 'int'},
'type': {'key': 'type', 'type': 'PolicyTypeRef'},
'url': {'key': 'url', 'type': 'str'},
'revision': {'key': 'revision', 'type': 'int'},
'_links': {'key': '_links', 'type': 'ReferenceLinks'},
'created_by': {'key': 'createdBy', 'type': 'IdentityRef'},
'created_date': {'key': 'createdDate', 'type': 'iso-8601'},
'is_blocking': {'key': 'isBlocking', 'type': 'bool'},
'is_deleted': {'key': 'isDeleted', 'type': 'bool'},
'is_enabled': {'key': 'isEnabled', 'type': 'bool'},
'is_enterprise_managed': {'key': 'isEnterpriseManaged', 'type': 'bool'},
'settings': {'key': 'settings', 'type': 'object'}
}
def __init__(self, id=None, type=None, url=None, revision=None, _links=None, created_by=None, created_date=None, is_blocking=None, is_deleted=None, is_enabled=None, is_enterprise_managed=None, settings=None):
super(PolicyConfiguration, self).__init__(id=id, type=type, url=url, revision=revision)
self._links = _links
self.created_by = created_by
self.created_date = created_date
self.is_blocking = is_blocking
self.is_deleted = is_deleted
self.is_enabled = is_enabled
self.is_enterprise_managed = is_enterprise_managed
self.settings = settings
__all__ = [
'Attachment',
'Change',
'Comment',
'CommentIterationContext',
'CommentPosition',
'CommentThread',
'CommentThreadContext',
'CommentTrackingCriteria',
'FileContentMetadata',
'FileDiff',
'FileDiffParams',
'FileDiffsCriteria',
'GitAnnotatedTag',
'GitAsyncRefOperation',
'GitAsyncRefOperationDetail',
'GitAsyncRefOperationParameters',
'GitAsyncRefOperationSource',
'GitBlobRef',
'GitBranchStats',
'GitCherryPick',
'GitCommitChanges',
'GitCommitDiffs',
'GitCommitRef',
'GitConflict',
'GitConflictUpdateResult',
'GitDeletedRepository',
'GitFilePathsCollection',
'GitForkOperationStatusDetail',
'GitForkSyncRequest',
'GitForkSyncRequestParameters',
'GitImportGitSource',
'GitImportRequest',
'GitImportRequestParameters',
'GitImportStatusDetail',
'GitImportTfvcSource',
'GitItemDescriptor',
'GitItemRequestData',
'GitMergeOperationStatusDetail',
'GitMergeOriginRef',
'GitMergeParameters',
'GitObject',
'GitPolicyConfigurationResponse',
'GitPullRequest',
'GitPullRequestChange',
'GitPullRequestCommentThread',
'GitPullRequestCommentThreadContext',
'GitPullRequestCompletionOptions',
'GitPullRequestIteration',
'GitPullRequestIterationChanges',
'GitPullRequestMergeOptions',
'GitPullRequestQuery',
'GitPullRequestQueryInput',
'GitPullRequestSearchCriteria',
'GitPushRef',
'GitPushSearchCriteria',
'GitQueryBranchStatsCriteria',
'GitQueryCommitsCriteria',
'GitRecycleBinRepositoryDetails',
'GitRef',
'GitRefFavorite',
'GitRefUpdate',
'GitRefUpdateResult',
'GitRepository',
'GitRepositoryCreateOptions',
'GitRepositoryRef',
'GitRepositoryStats',
'GitRevert',
'GitStatus',
'GitStatusContext',
'GitSuggestion',
'GitTemplate',
'GitTreeDiff',
'GitTreeDiffEntry',
'GitTreeDiffResponse',
'GitTreeEntryRef',
'GitTreeRef',
'GitUserDate',
'GitVersionDescriptor',
'GlobalGitRepositoryKey',
'GraphSubjectBase',
'IdentityRef',
'IdentityRefWithVote',
'ImportRepositoryValidation',
'ItemContent',
'ItemModel',
'JsonPatchOperation',
'LineDiffBlock',
'PolicyConfigurationRef',
'PolicyTypeRef',
'ReferenceLinks',
'ResourceRef',
'ShareNotificationContext',
'SourceToTargetRef',
'TeamProjectCollectionReference',
'TeamProjectReference',
'VersionedPolicyConfigurationRef',
'VstsInfo',
'WebApiCreateTagRequestData',
'WebApiTagDefinition',
'GitBaseVersionDescriptor',
'GitCommit',
'GitForkRef',
'GitItem',
'GitMerge',
'GitPullRequestStatus',
'GitPush',
'GitTargetVersionDescriptor',
'PolicyConfiguration',
]
|