1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 1360 1361 1362 1363 1364 1365 1366 1367 1368 1369 1370 1371 1372 1373 1374 1375 1376 1377 1378 1379 1380 1381 1382 1383 1384 1385 1386 1387 1388 1389 1390 1391 1392 1393 1394 1395 1396 1397 1398 1399 1400 1401 1402 1403 1404 1405 1406 1407 1408 1409 1410 1411 1412 1413 1414 1415 1416 1417 1418 1419 1420 1421 1422 1423 1424 1425 1426 1427 1428 1429 1430 1431 1432 1433 1434 1435 1436 1437 1438 1439 1440 1441 1442 1443 1444 1445 1446 1447 1448 1449 1450 1451 1452 1453 1454 1455 1456 1457 1458 1459 1460 1461 1462 1463 1464 1465 1466 1467 1468 1469 1470 1471 1472 1473 1474 1475 1476 1477 1478 1479 1480 1481 1482 1483 1484 1485 1486 1487 1488 1489 1490 1491 1492 1493 1494 1495 1496 1497 1498 1499 1500 1501 1502 1503 1504 1505 1506 1507 1508 1509 1510 1511 1512 1513 1514 1515 1516 1517 1518 1519 1520 1521 1522 1523 1524 1525 1526 1527 1528 1529 1530 1531 1532 1533 1534 1535 1536 1537 1538 1539 1540 1541 1542 1543 1544 1545 1546 1547 1548 1549 1550 1551 1552 1553 1554 1555 1556 1557 1558 1559 1560 1561 1562 1563 1564 1565 1566 1567 1568 1569 1570 1571 1572 1573 1574 1575 1576 1577 1578 1579 1580 1581 1582 1583 1584 1585 1586 1587 1588 1589 1590 1591 1592 1593 1594 1595 1596 1597 1598 1599 1600 1601 1602 1603 1604 1605 1606 1607 1608 1609 1610 1611 1612 1613 1614 1615 1616 1617 1618 1619 1620 1621 1622 1623 1624 1625 1626 1627 1628 1629 1630 1631 1632 1633 1634 1635 1636 1637 1638 1639 1640 1641 1642 1643 1644 1645 1646 1647 1648 1649 1650 1651 1652 1653 1654 1655 1656 1657 1658 1659 1660 1661 1662 1663 1664 1665 1666 1667 1668 1669 1670 1671 1672 1673 1674 1675 1676 1677 1678 1679 1680 1681 1682 1683 1684 1685 1686 1687 1688 1689 1690 1691 1692 1693 1694 1695 1696 1697 1698 1699 1700 1701 1702 1703 1704 1705 1706 1707 1708 1709 1710 1711 1712 1713 1714 1715 1716 1717 1718 1719 1720 1721 1722 1723 1724 1725 1726 1727 1728 1729 1730 1731 1732 1733 1734 1735 1736 1737 1738 1739 1740 1741 1742 1743 1744 1745 1746 1747 1748 1749 1750 1751 1752 1753 1754 1755 1756 1757 1758 1759 1760 1761 1762 1763 1764 1765 1766 1767 1768 1769 1770 1771 1772 1773 1774 1775 1776 1777 1778 1779 1780 1781 1782 1783 1784 1785 1786 1787 1788 1789 1790 1791 1792 1793 1794 1795 1796 1797 1798 1799 1800 1801 1802 1803 1804 1805 1806 1807 1808 1809 1810 1811 1812 1813 1814 1815 1816 1817 1818 1819 1820 1821 1822 1823 1824 1825 1826 1827 1828 1829 1830 1831 1832 1833 1834 1835 1836 1837 1838 1839 1840 1841 1842 1843 1844 1845 1846 1847 1848 1849 1850 1851 1852 1853 1854 1855 1856 1857 1858 1859 1860 1861 1862 1863 1864 1865 1866 1867 1868 1869 1870 1871 1872 1873 1874 1875 1876 1877 1878 1879 1880 1881 1882 1883 1884 1885 1886 1887 1888 1889 1890 1891 1892 1893 1894 1895 1896 1897 1898 1899 1900 1901 1902 1903 1904 1905 1906 1907 1908 1909 1910 1911 1912 1913 1914 1915 1916 1917 1918 1919 1920 1921 1922 1923 1924 1925 1926 1927 1928 1929 1930 1931 1932 1933 1934 1935 1936 1937 1938 1939 1940 1941 1942 1943 1944 1945 1946 1947 1948 1949 1950 1951 1952 1953 1954 1955 1956 1957 1958 1959 1960 1961 1962 1963 1964 1965 1966 1967 1968 1969 1970 1971 1972 1973 1974 1975 1976 1977 1978 1979 1980 1981 1982 1983 1984 1985 1986 1987 1988 1989 1990 1991 1992 1993 1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020 2021 2022 2023 2024 2025 2026 2027 2028 2029 2030 2031 2032 2033 2034 2035 2036 2037 2038 2039 2040 2041 2042 2043 2044 2045 2046 2047 2048 2049 2050 2051 2052 2053 2054 2055 2056 2057 2058 2059 2060 2061 2062 2063 2064 2065 2066 2067 2068 2069 2070 2071 2072 2073 2074 2075 2076 2077 2078 2079 2080 2081 2082 2083 2084 2085 2086 2087 2088 2089 2090 2091 2092 2093 2094 2095 2096 2097 2098 2099 2100 2101 2102 2103 2104 2105 2106 2107 2108 2109 2110 2111 2112 2113 2114 2115 2116 2117 2118 2119 2120 2121 2122 2123 2124 2125 2126 2127 2128 2129 2130 2131 2132 2133 2134 2135 2136 2137 2138 2139 2140 2141 2142 2143 2144 2145 2146 2147 2148 2149 2150 2151 2152 2153 2154 2155 2156 2157 2158 2159 2160 2161 2162 2163 2164 2165 2166 2167 2168 2169 2170 2171 2172 2173 2174 2175 2176 2177 2178 2179 2180 2181 2182 2183 2184 2185 2186 2187 2188 2189 2190 2191 2192 2193 2194 2195 2196 2197 2198 2199 2200 2201 2202 2203 2204 2205 2206 2207 2208 2209 2210 2211 2212 2213 2214 2215 2216 2217 2218 2219 2220 2221 2222 2223 2224 2225 2226 2227 2228 2229 2230 2231 2232 2233 2234 2235 2236 2237 2238 2239 2240 2241 2242 2243 2244 2245 2246 2247 2248 2249 2250 2251 2252 2253 2254 2255 2256 2257 2258 2259 2260 2261 2262 2263 2264 2265 2266 2267 2268 2269 2270 2271 2272 2273 2274 2275 2276 2277 2278 2279 2280 2281 2282 2283 2284 2285 2286 2287 2288 2289 2290 2291 2292 2293 2294 2295 2296 2297 2298 2299 2300 2301 2302 2303 2304 2305 2306 2307 2308 2309 2310 2311 2312 2313 2314 2315 2316 2317 2318 2319 2320 2321 2322 2323 2324 2325 2326 2327 2328 2329 2330 2331 2332 2333 2334 2335 2336 2337 2338 2339 2340 2341 2342 2343 2344 2345 2346 2347 2348 2349 2350 2351 2352 2353 2354 2355 2356 2357 2358 2359 2360 2361 2362 2363 2364 2365 2366 2367 2368 2369 2370 2371 2372 2373 2374 2375 2376 2377 2378 2379 2380 2381 2382 2383 2384 2385 2386 2387 2388 2389 2390 2391 2392 2393 2394 2395 2396 2397 2398 2399 2400 2401 2402 2403 2404 2405 2406 2407 2408 2409 2410 2411 2412 2413 2414 2415 2416 2417 2418 2419 2420 2421 2422 2423 2424 2425 2426 2427 2428 2429 2430 2431 2432 2433 2434 2435 2436 2437 2438 2439 2440 2441 2442 2443 2444 2445 2446 2447 2448 2449 2450 2451 2452 2453 2454 2455 2456 2457 2458 2459 2460 2461 2462 2463 2464 2465 2466 2467 2468 2469 2470 2471 2472 2473 2474 2475 2476 2477 2478 2479 2480 2481 2482 2483 2484 2485 2486 2487 2488 2489 2490 2491 2492 2493 2494 2495 2496 2497 2498 2499 2500 2501 2502 2503 2504 2505 2506 2507 2508 2509 2510 2511 2512 2513 2514 2515 2516 2517 2518 2519 2520 2521 2522 2523 2524 2525 2526 2527 2528 2529 2530 2531 2532 2533 2534 2535 2536 2537 2538 2539 2540 2541 2542 2543 2544 2545 2546 2547 2548 2549 2550 2551 2552 2553 2554 2555 2556 2557 2558 2559 2560 2561 2562 2563 2564 2565 2566 2567 2568 2569 2570 2571 2572 2573 2574 2575 2576 2577 2578 2579 2580 2581 2582 2583 2584 2585 2586 2587 2588 2589 2590 2591 2592 2593 2594 2595 2596 2597 2598 2599 2600 2601 2602 2603 2604 2605 2606 2607 2608 2609 2610 2611 2612 2613 2614 2615 2616 2617 2618 2619 2620 2621 2622 2623 2624 2625 2626 2627 2628 2629 2630 2631 2632 2633 2634 2635 2636 2637 2638 2639 2640 2641 2642 2643 2644 2645 2646 2647 2648 2649 2650 2651 2652 2653 2654 2655 2656 2657 2658 2659 2660 2661 2662 2663 2664 2665 2666 2667 2668 2669 2670 2671 2672 2673 2674 2675 2676 2677 2678 2679 2680 2681 2682 2683 2684 2685 2686 2687 2688 2689 2690 2691 2692 2693 2694 2695 2696 2697 2698 2699 2700 2701 2702 2703 2704 2705 2706 2707 2708 2709 2710 2711 2712 2713 2714 2715 2716 2717 2718 2719 2720 2721 2722 2723 2724 2725 2726 2727 2728 2729 2730 2731 2732 2733 2734 2735 2736 2737 2738 2739 2740 2741 2742 2743 2744 2745 2746 2747 2748 2749 2750 2751 2752 2753 2754 2755 2756 2757 2758 2759 2760 2761 2762 2763 2764 2765 2766 2767 2768 2769 2770 2771 2772 2773 2774 2775 2776 2777 2778 2779 2780 2781 2782 2783 2784 2785 2786 2787 2788 2789 2790 2791 2792 2793 2794 2795 2796 2797 2798 2799 2800 2801 2802 2803 2804 2805 2806 2807 2808 2809 2810 2811 2812 2813 2814 2815 2816 2817 2818 2819 2820 2821 2822 2823 2824 2825 2826 2827 2828 2829 2830 2831 2832 2833 2834 2835 2836 2837 2838 2839 2840 2841 2842 2843 2844 2845 2846 2847 2848 2849 2850 2851 2852 2853 2854 2855 2856 2857 2858 2859 2860 2861 2862 2863 2864 2865 2866 2867 2868 2869 2870 2871 2872 2873 2874 2875 2876 2877 2878 2879 2880 2881 2882 2883 2884 2885 2886 2887 2888 2889 2890 2891 2892 2893 2894 2895 2896 2897 2898 2899 2900 2901 2902 2903 2904 2905 2906 2907 2908 2909 2910 2911 2912 2913 2914 2915 2916 2917 2918 2919 2920 2921 2922 2923 2924 2925 2926 2927 2928 2929 2930 2931 2932 2933 2934 2935 2936 2937 2938 2939 2940 2941 2942 2943 2944 2945 2946 2947 2948 2949 2950 2951 2952 2953 2954 2955 2956 2957 2958 2959 2960 2961 2962 2963 2964 2965 2966 2967 2968 2969 2970 2971 2972 2973 2974 2975 2976 2977 2978 2979 2980 2981 2982 2983 2984 2985 2986 2987 2988 2989 2990 2991 2992 2993 2994 2995 2996 2997 2998 2999 3000 3001 3002 3003 3004 3005 3006 3007 3008 3009 3010 3011 3012 3013 3014 3015 3016 3017 3018 3019 3020 3021 3022 3023 3024 3025 3026 3027 3028 3029 3030 3031 3032 3033 3034 3035 3036 3037 3038 3039 3040 3041 3042 3043 3044 3045 3046 3047 3048 3049 3050 3051 3052 3053 3054 3055 3056 3057 3058 3059 3060 3061 3062 3063 3064 3065 3066 3067 3068 3069 3070 3071 3072 3073 3074 3075 3076 3077 3078 3079 3080 3081 3082 3083 3084 3085 3086 3087 3088 3089 3090 3091 3092 3093 3094 3095 3096 3097 3098 3099 3100 3101 3102 3103 3104 3105 3106 3107 3108 3109 3110 3111 3112 3113 3114 3115 3116 3117 3118 3119 3120 3121 3122 3123 3124 3125 3126 3127 3128 3129 3130 3131 3132 3133 3134 3135 3136 3137 3138 3139 3140 3141 3142 3143 3144 3145 3146 3147 3148 3149 3150 3151 3152 3153 3154 3155 3156 3157 3158 3159 3160 3161 3162 3163 3164 3165 3166 3167 3168 3169 3170 3171 3172 3173 3174 3175 3176 3177 3178 3179 3180 3181 3182 3183 3184 3185 3186 3187 3188 3189 3190 3191 3192 3193 3194 3195 3196 3197 3198 3199 3200 3201 3202 3203 3204 3205 3206 3207 3208 3209 3210 3211 3212 3213 3214 3215 3216 3217 3218 3219 3220 3221 3222 3223 3224 3225 3226 3227 3228 3229 3230 3231 3232 3233 3234 3235 3236 3237 3238 3239 3240 3241 3242 3243 3244 3245 3246 3247 3248 3249 3250 3251 3252 3253 3254 3255 3256 3257 3258 3259 3260 3261 3262 3263 3264 3265 3266 3267 3268 3269 3270 3271 3272 3273 3274 3275 3276 3277 3278 3279 3280 3281 3282 3283 3284 3285 3286 3287 3288 3289 3290 3291 3292 3293 3294 3295 3296 3297 3298 3299 3300 3301 3302 3303 3304 3305 3306 3307 3308 3309 3310 3311 3312 3313 3314 3315 3316 3317 3318 3319 3320 3321 3322 3323 3324 3325 3326 3327 3328 3329 3330 3331 3332 3333 3334 3335 3336 3337 3338 3339 3340 3341 3342 3343 3344 3345 3346 3347 3348 3349 3350 3351 3352 3353 3354 3355 3356 3357 3358 3359 3360 3361 3362 3363 3364 3365 3366 3367 3368 3369 3370 3371 3372 3373 3374 3375 3376 3377 3378 3379 3380 3381 3382 3383 3384 3385 3386 3387 3388 3389 3390 3391 3392 3393 3394 3395 3396 3397 3398 3399 3400 3401 3402 3403 3404 3405 3406 3407 3408 3409 3410 3411 3412 3413 3414 3415 3416 3417 3418 3419 3420 3421 3422 3423 3424 3425 3426 3427 3428 3429 3430 3431 3432 3433 3434 3435 3436 3437 3438 3439 3440 3441 3442 3443 3444 3445 3446 3447 3448 3449 3450 3451 3452 3453 3454 3455 3456 3457 3458 3459 3460 3461 3462 3463 3464 3465 3466 3467 3468 3469 3470 3471 3472 3473 3474 3475 3476 3477 3478 3479 3480 3481 3482 3483 3484 3485 3486 3487 3488 3489 3490 3491 3492 3493 3494 3495 3496 3497 3498 3499 3500 3501 3502 3503 3504 3505 3506 3507 3508 3509 3510 3511 3512 3513 3514 3515 3516 3517 3518 3519 3520 3521 3522 3523 3524 3525 3526 3527 3528 3529 3530 3531 3532 3533 3534 3535 3536 3537 3538 3539 3540 3541 3542 3543 3544 3545 3546 3547 3548 3549 3550 3551 3552 3553 3554 3555 3556 3557 3558 3559 3560 3561 3562 3563 3564 3565 3566 3567 3568 3569 3570 3571 3572 3573 3574 3575 3576 3577 3578 3579 3580 3581 3582 3583 3584 3585 3586 3587 3588 3589 3590 3591 3592 3593 3594 3595 3596 3597 3598 3599 3600 3601 3602 3603 3604 3605 3606 3607 3608 3609 3610 3611 3612 3613 3614 3615 3616 3617 3618 3619 3620 3621 3622 3623 3624 3625 3626 3627 3628 3629 3630 3631 3632 3633 3634 3635 3636 3637 3638 3639 3640 3641 3642 3643 3644 3645 3646 3647 3648 3649 3650 3651 3652 3653 3654 3655 3656 3657 3658 3659 3660 3661 3662 3663 3664 3665 3666 3667 3668 3669 3670 3671 3672 3673 3674 3675 3676 3677 3678 3679 3680 3681 3682 3683 3684 3685 3686 3687 3688 3689 3690 3691 3692 3693 3694 3695 3696 3697 3698 3699 3700 3701 3702 3703 3704 3705 3706 3707 3708 3709 3710 3711 3712 3713 3714 3715 3716 3717 3718 3719 3720 3721 3722 3723 3724 3725 3726 3727 3728 3729 3730 3731 3732 3733 3734 3735 3736 3737 3738 3739 3740 3741 3742 3743 3744 3745 3746 3747 3748 3749 3750 3751 3752 3753 3754 3755 3756 3757 3758 3759 3760 3761 3762 3763 3764 3765 3766 3767 3768 3769 3770 3771 3772 3773 3774 3775 3776 3777 3778 3779 3780 3781 3782 3783 3784 3785 3786 3787 3788 3789 3790 3791 3792 3793 3794 3795 3796 3797 3798 3799 3800 3801 3802 3803 3804 3805 3806 3807 3808 3809 3810 3811 3812 3813 3814 3815 3816 3817 3818 3819 3820 3821 3822 3823 3824 3825 3826 3827 3828 3829 3830 3831 3832 3833 3834 3835 3836 3837 3838 3839 3840 3841 3842 3843 3844 3845 3846 3847 3848 3849 3850 3851 3852 3853 3854 3855 3856 3857 3858 3859 3860 3861 3862 3863 3864 3865 3866 3867 3868 3869 3870 3871 3872 3873 3874 3875 3876 3877 3878 3879 3880 3881 3882 3883 3884 3885 3886 3887 3888 3889 3890 3891 3892 3893 3894 3895 3896 3897 3898 3899 3900 3901 3902 3903 3904 3905 3906 3907 3908 3909 3910 3911 3912 3913 3914 3915 3916 3917 3918 3919 3920 3921 3922 3923 3924 3925 3926 3927 3928 3929 3930 3931 3932 3933 3934 3935 3936 3937 3938 3939 3940 3941 3942 3943 3944 3945 3946 3947 3948 3949 3950 3951 3952 3953 3954 3955 3956 3957 3958 3959 3960 3961 3962 3963 3964 3965 3966 3967 3968 3969 3970 3971 3972 3973 3974 3975 3976 3977 3978 3979 3980 3981 3982 3983 3984 3985 3986 3987 3988 3989 3990 3991 3992 3993 3994 3995 3996 3997 3998 3999 4000 4001 4002 4003 4004 4005 4006 4007 4008 4009 4010 4011 4012 4013 4014 4015 4016 4017 4018 4019 4020 4021 4022 4023 4024 4025 4026 4027 4028 4029 4030 4031 4032 4033 4034 4035 4036 4037 4038 4039 4040 4041 4042 4043 4044 4045 4046 4047 4048 4049 4050 4051 4052 4053 4054 4055 4056 4057 4058 4059 4060 4061 4062 4063 4064 4065 4066 4067 4068 4069 4070 4071 4072 4073 4074 4075 4076 4077 4078 4079 4080 4081 4082 4083 4084 4085 4086 4087 4088 4089 4090 4091 4092 4093 4094 4095 4096 4097 4098 4099 4100 4101 4102 4103 4104 4105 4106 4107 4108 4109 4110 4111 4112 4113 4114 4115 4116 4117 4118 4119 4120 4121 4122 4123 4124 4125 4126 4127 4128 4129 4130 4131 4132 4133 4134 4135 4136 4137 4138 4139 4140 4141 4142 4143 4144 4145 4146 4147 4148 4149 4150 4151 4152 4153 4154 4155 4156 4157 4158 4159 4160 4161 4162 4163 4164 4165 4166 4167 4168 4169 4170 4171 4172 4173 4174 4175 4176 4177 4178 4179 4180 4181 4182 4183 4184 4185 4186 4187 4188 4189 4190 4191 4192 4193 4194 4195 4196 4197 4198 4199 4200 4201 4202 4203 4204 4205 4206 4207 4208 4209 4210 4211 4212 4213 4214 4215 4216 4217 4218 4219 4220 4221
|
# --------------------------------------------------------------------------------------------
# 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 AadOauthTokenRequest(Model):
"""AadOauthTokenRequest.
:param refresh:
:type refresh: bool
:param resource:
:type resource: str
:param tenant_id:
:type tenant_id: str
:param token:
:type token: str
"""
_attribute_map = {
'refresh': {'key': 'refresh', 'type': 'bool'},
'resource': {'key': 'resource', 'type': 'str'},
'tenant_id': {'key': 'tenantId', 'type': 'str'},
'token': {'key': 'token', 'type': 'str'}
}
def __init__(self, refresh=None, resource=None, tenant_id=None, token=None):
super(AadOauthTokenRequest, self).__init__()
self.refresh = refresh
self.resource = resource
self.tenant_id = tenant_id
self.token = token
class AadOauthTokenResult(Model):
"""AadOauthTokenResult.
:param access_token:
:type access_token: str
:param refresh_token_cache:
:type refresh_token_cache: str
"""
_attribute_map = {
'access_token': {'key': 'accessToken', 'type': 'str'},
'refresh_token_cache': {'key': 'refreshTokenCache', 'type': 'str'}
}
def __init__(self, access_token=None, refresh_token_cache=None):
super(AadOauthTokenResult, self).__init__()
self.access_token = access_token
self.refresh_token_cache = refresh_token_cache
class AuthenticationSchemeReference(Model):
"""AuthenticationSchemeReference.
:param inputs:
:type inputs: dict
:param type:
:type type: str
"""
_attribute_map = {
'inputs': {'key': 'inputs', 'type': '{str}'},
'type': {'key': 'type', 'type': 'str'}
}
def __init__(self, inputs=None, type=None):
super(AuthenticationSchemeReference, self).__init__()
self.inputs = inputs
self.type = type
class AuthorizationHeader(Model):
"""AuthorizationHeader.
:param name: Gets or sets the name of authorization header.
:type name: str
:param value: Gets or sets the value of authorization header.
:type value: str
"""
_attribute_map = {
'name': {'key': 'name', 'type': 'str'},
'value': {'key': 'value', 'type': 'str'}
}
def __init__(self, name=None, value=None):
super(AuthorizationHeader, self).__init__()
self.name = name
self.value = value
class AzureManagementGroup(Model):
"""AzureManagementGroup.
:param display_name: Display name of azure management group
:type display_name: str
:param id: Id of azure management group
:type id: str
:param name: Azure management group name
:type name: str
:param tenant_id: Id of tenant from which azure management group belogs
:type tenant_id: str
"""
_attribute_map = {
'display_name': {'key': 'displayName', 'type': 'str'},
'id': {'key': 'id', 'type': 'str'},
'name': {'key': 'name', 'type': 'str'},
'tenant_id': {'key': 'tenantId', 'type': 'str'}
}
def __init__(self, display_name=None, id=None, name=None, tenant_id=None):
super(AzureManagementGroup, self).__init__()
self.display_name = display_name
self.id = id
self.name = name
self.tenant_id = tenant_id
class AzureManagementGroupQueryResult(Model):
"""AzureManagementGroupQueryResult.
:param error_message: Error message in case of an exception
:type error_message: str
:param value: List of azure management groups
:type value: list of :class:`AzureManagementGroup <azure.devops.v5_0.task_agent.models.AzureManagementGroup>`
"""
_attribute_map = {
'error_message': {'key': 'errorMessage', 'type': 'str'},
'value': {'key': 'value', 'type': '[AzureManagementGroup]'}
}
def __init__(self, error_message=None, value=None):
super(AzureManagementGroupQueryResult, self).__init__()
self.error_message = error_message
self.value = value
class AzureSubscription(Model):
"""AzureSubscription.
:param display_name:
:type display_name: str
:param subscription_id:
:type subscription_id: str
:param subscription_tenant_id:
:type subscription_tenant_id: str
:param subscription_tenant_name:
:type subscription_tenant_name: str
"""
_attribute_map = {
'display_name': {'key': 'displayName', 'type': 'str'},
'subscription_id': {'key': 'subscriptionId', 'type': 'str'},
'subscription_tenant_id': {'key': 'subscriptionTenantId', 'type': 'str'},
'subscription_tenant_name': {'key': 'subscriptionTenantName', 'type': 'str'}
}
def __init__(self, display_name=None, subscription_id=None, subscription_tenant_id=None, subscription_tenant_name=None):
super(AzureSubscription, self).__init__()
self.display_name = display_name
self.subscription_id = subscription_id
self.subscription_tenant_id = subscription_tenant_id
self.subscription_tenant_name = subscription_tenant_name
class AzureSubscriptionQueryResult(Model):
"""AzureSubscriptionQueryResult.
:param error_message:
:type error_message: str
:param value:
:type value: list of :class:`AzureSubscription <azure.devops.v5_0.task_agent.models.AzureSubscription>`
"""
_attribute_map = {
'error_message': {'key': 'errorMessage', 'type': 'str'},
'value': {'key': 'value', 'type': '[AzureSubscription]'}
}
def __init__(self, error_message=None, value=None):
super(AzureSubscriptionQueryResult, self).__init__()
self.error_message = error_message
self.value = value
class ClientCertificate(Model):
"""ClientCertificate.
:param value: Gets or sets the value of client certificate.
:type value: str
"""
_attribute_map = {
'value': {'key': 'value', 'type': 'str'}
}
def __init__(self, value=None):
super(ClientCertificate, self).__init__()
self.value = value
class DataSource(Model):
"""DataSource.
:param authentication_scheme:
:type authentication_scheme: :class:`AuthenticationSchemeReference <azure.devops.v5_0.task_agent.models.AuthenticationSchemeReference>`
:param endpoint_url:
:type endpoint_url: str
:param headers:
:type headers: list of :class:`AuthorizationHeader <azure.devops.v5_0.task_agent.models.AuthorizationHeader>`
:param name:
:type name: str
:param resource_url:
:type resource_url: str
:param result_selector:
:type result_selector: str
"""
_attribute_map = {
'authentication_scheme': {'key': 'authenticationScheme', 'type': 'AuthenticationSchemeReference'},
'endpoint_url': {'key': 'endpointUrl', 'type': 'str'},
'headers': {'key': 'headers', 'type': '[AuthorizationHeader]'},
'name': {'key': 'name', 'type': 'str'},
'resource_url': {'key': 'resourceUrl', 'type': 'str'},
'result_selector': {'key': 'resultSelector', 'type': 'str'}
}
def __init__(self, authentication_scheme=None, endpoint_url=None, headers=None, name=None, resource_url=None, result_selector=None):
super(DataSource, self).__init__()
self.authentication_scheme = authentication_scheme
self.endpoint_url = endpoint_url
self.headers = headers
self.name = name
self.resource_url = resource_url
self.result_selector = result_selector
class DataSourceBindingBase(Model):
"""DataSourceBindingBase.
:param callback_context_template: Pagination format supported by this data source(ContinuationToken/SkipTop).
:type callback_context_template: str
:param callback_required_template: Subsequent calls needed?
:type callback_required_template: str
:param data_source_name: Gets or sets the name of the data source.
:type data_source_name: str
:param endpoint_id: Gets or sets the endpoint Id.
:type endpoint_id: str
:param endpoint_url: Gets or sets the url of the service endpoint.
:type endpoint_url: str
:param headers: Gets or sets the authorization headers.
:type headers: list of :class:`AuthorizationHeader <azure.devops.v5_0.microsoft._team_foundation._distributed_task._common._contracts.models.AuthorizationHeader>`
:param initial_context_template: Defines the initial value of the query params
:type initial_context_template: str
:param parameters: Gets or sets the parameters for the data source.
:type parameters: dict
:param result_selector: Gets or sets the result selector.
:type result_selector: str
:param result_template: Gets or sets the result template.
:type result_template: str
:param target: Gets or sets the target of the data source.
:type target: str
"""
_attribute_map = {
'callback_context_template': {'key': 'callbackContextTemplate', 'type': 'str'},
'callback_required_template': {'key': 'callbackRequiredTemplate', 'type': 'str'},
'data_source_name': {'key': 'dataSourceName', 'type': 'str'},
'endpoint_id': {'key': 'endpointId', 'type': 'str'},
'endpoint_url': {'key': 'endpointUrl', 'type': 'str'},
'headers': {'key': 'headers', 'type': '[AuthorizationHeader]'},
'initial_context_template': {'key': 'initialContextTemplate', 'type': 'str'},
'parameters': {'key': 'parameters', 'type': '{str}'},
'result_selector': {'key': 'resultSelector', 'type': 'str'},
'result_template': {'key': 'resultTemplate', 'type': 'str'},
'target': {'key': 'target', 'type': 'str'}
}
def __init__(self, callback_context_template=None, callback_required_template=None, data_source_name=None, endpoint_id=None, endpoint_url=None, headers=None, initial_context_template=None, parameters=None, result_selector=None, result_template=None, target=None):
super(DataSourceBindingBase, self).__init__()
self.callback_context_template = callback_context_template
self.callback_required_template = callback_required_template
self.data_source_name = data_source_name
self.endpoint_id = endpoint_id
self.endpoint_url = endpoint_url
self.headers = headers
self.initial_context_template = initial_context_template
self.parameters = parameters
self.result_selector = result_selector
self.result_template = result_template
self.target = target
class DataSourceDetails(Model):
"""DataSourceDetails.
:param data_source_name:
:type data_source_name: str
:param data_source_url:
:type data_source_url: str
:param headers:
:type headers: list of :class:`AuthorizationHeader <azure.devops.v5_0.task_agent.models.AuthorizationHeader>`
:param parameters:
:type parameters: dict
:param resource_url:
:type resource_url: str
:param result_selector:
:type result_selector: str
"""
_attribute_map = {
'data_source_name': {'key': 'dataSourceName', 'type': 'str'},
'data_source_url': {'key': 'dataSourceUrl', 'type': 'str'},
'headers': {'key': 'headers', 'type': '[AuthorizationHeader]'},
'parameters': {'key': 'parameters', 'type': '{str}'},
'resource_url': {'key': 'resourceUrl', 'type': 'str'},
'result_selector': {'key': 'resultSelector', 'type': 'str'}
}
def __init__(self, data_source_name=None, data_source_url=None, headers=None, parameters=None, resource_url=None, result_selector=None):
super(DataSourceDetails, self).__init__()
self.data_source_name = data_source_name
self.data_source_url = data_source_url
self.headers = headers
self.parameters = parameters
self.resource_url = resource_url
self.result_selector = result_selector
class DependencyBinding(Model):
"""DependencyBinding.
:param key:
:type key: str
:param value:
:type value: str
"""
_attribute_map = {
'key': {'key': 'key', 'type': 'str'},
'value': {'key': 'value', 'type': 'str'}
}
def __init__(self, key=None, value=None):
super(DependencyBinding, self).__init__()
self.key = key
self.value = value
class DependencyData(Model):
"""DependencyData.
:param input:
:type input: str
:param map:
:type map: list of { key: str; value: [{ key: str; value: str }] }
"""
_attribute_map = {
'input': {'key': 'input', 'type': 'str'},
'map': {'key': 'map', 'type': '[{ key: str; value: [{ key: str; value: str }] }]'}
}
def __init__(self, input=None, map=None):
super(DependencyData, self).__init__()
self.input = input
self.map = map
class DependsOn(Model):
"""DependsOn.
:param input:
:type input: str
:param map:
:type map: list of :class:`DependencyBinding <azure.devops.v5_0.task_agent.models.DependencyBinding>`
"""
_attribute_map = {
'input': {'key': 'input', 'type': 'str'},
'map': {'key': 'map', 'type': '[DependencyBinding]'}
}
def __init__(self, input=None, map=None):
super(DependsOn, self).__init__()
self.input = input
self.map = map
class DeploymentGroupCreateParameter(Model):
"""DeploymentGroupCreateParameter.
:param description: Description of the deployment group.
:type description: str
:param name: Name of the deployment group.
:type name: str
:param pool: Deployment pool in which deployment agents are registered. This is obsolete. Kept for compatibility. Will be marked obsolete explicitly by M132.
:type pool: :class:`DeploymentGroupCreateParameterPoolProperty <azure.devops.v5_0.task_agent.models.DeploymentGroupCreateParameterPoolProperty>`
:param pool_id: Identifier of the deployment pool in which deployment agents are registered.
:type pool_id: int
"""
_attribute_map = {
'description': {'key': 'description', 'type': 'str'},
'name': {'key': 'name', 'type': 'str'},
'pool': {'key': 'pool', 'type': 'DeploymentGroupCreateParameterPoolProperty'},
'pool_id': {'key': 'poolId', 'type': 'int'}
}
def __init__(self, description=None, name=None, pool=None, pool_id=None):
super(DeploymentGroupCreateParameter, self).__init__()
self.description = description
self.name = name
self.pool = pool
self.pool_id = pool_id
class DeploymentGroupCreateParameterPoolProperty(Model):
"""DeploymentGroupCreateParameterPoolProperty.
:param id: Deployment pool identifier.
:type id: int
"""
_attribute_map = {
'id': {'key': 'id', 'type': 'int'}
}
def __init__(self, id=None):
super(DeploymentGroupCreateParameterPoolProperty, self).__init__()
self.id = id
class DeploymentGroupMetrics(Model):
"""DeploymentGroupMetrics.
:param columns_header: List of deployment group properties. And types of metrics provided for those properties.
:type columns_header: :class:`MetricsColumnsHeader <azure.devops.v5_0.task_agent.models.MetricsColumnsHeader>`
:param deployment_group: Deployment group.
:type deployment_group: :class:`DeploymentGroupReference <azure.devops.v5_0.task_agent.models.DeploymentGroupReference>`
:param rows: Values of properties and the metrics. E.g. 1: total count of deployment targets for which 'TargetState' is 'offline'. E.g. 2: Average time of deployment to the deployment targets for which 'LastJobStatus' is 'passed' and 'TargetState' is 'online'.
:type rows: list of :class:`MetricsRow <azure.devops.v5_0.task_agent.models.MetricsRow>`
"""
_attribute_map = {
'columns_header': {'key': 'columnsHeader', 'type': 'MetricsColumnsHeader'},
'deployment_group': {'key': 'deploymentGroup', 'type': 'DeploymentGroupReference'},
'rows': {'key': 'rows', 'type': '[MetricsRow]'}
}
def __init__(self, columns_header=None, deployment_group=None, rows=None):
super(DeploymentGroupMetrics, self).__init__()
self.columns_header = columns_header
self.deployment_group = deployment_group
self.rows = rows
class DeploymentGroupReference(Model):
"""DeploymentGroupReference.
:param id: Deployment group identifier.
:type id: int
:param name: Name of the deployment group.
:type name: str
:param pool: Deployment pool in which deployment agents are registered.
:type pool: :class:`TaskAgentPoolReference <azure.devops.v5_0.task_agent.models.TaskAgentPoolReference>`
:param project: Project to which the deployment group belongs.
:type project: :class:`ProjectReference <azure.devops.v5_0.task_agent.models.ProjectReference>`
"""
_attribute_map = {
'id': {'key': 'id', 'type': 'int'},
'name': {'key': 'name', 'type': 'str'},
'pool': {'key': 'pool', 'type': 'TaskAgentPoolReference'},
'project': {'key': 'project', 'type': 'ProjectReference'}
}
def __init__(self, id=None, name=None, pool=None, project=None):
super(DeploymentGroupReference, self).__init__()
self.id = id
self.name = name
self.pool = pool
self.project = project
class DeploymentGroupUpdateParameter(Model):
"""DeploymentGroupUpdateParameter.
:param description: Description of the deployment group.
:type description: str
:param name: Name of the deployment group.
:type name: str
"""
_attribute_map = {
'description': {'key': 'description', 'type': 'str'},
'name': {'key': 'name', 'type': 'str'}
}
def __init__(self, description=None, name=None):
super(DeploymentGroupUpdateParameter, self).__init__()
self.description = description
self.name = name
class DeploymentMachine(Model):
"""DeploymentMachine.
:param agent: Deployment agent.
:type agent: :class:`TaskAgent <azure.devops.v5_0.task_agent.models.TaskAgent>`
:param id: Deployment target Identifier.
:type id: int
:param tags: Tags of the deployment target.
:type tags: list of str
"""
_attribute_map = {
'agent': {'key': 'agent', 'type': 'TaskAgent'},
'id': {'key': 'id', 'type': 'int'},
'tags': {'key': 'tags', 'type': '[str]'}
}
def __init__(self, agent=None, id=None, tags=None):
super(DeploymentMachine, self).__init__()
self.agent = agent
self.id = id
self.tags = tags
class DeploymentMachineGroupReference(Model):
"""DeploymentMachineGroupReference.
:param id:
:type id: int
:param name:
:type name: str
:param pool:
:type pool: :class:`TaskAgentPoolReference <azure.devops.v5_0.task_agent.models.TaskAgentPoolReference>`
:param project:
:type project: :class:`ProjectReference <azure.devops.v5_0.task_agent.models.ProjectReference>`
"""
_attribute_map = {
'id': {'key': 'id', 'type': 'int'},
'name': {'key': 'name', 'type': 'str'},
'pool': {'key': 'pool', 'type': 'TaskAgentPoolReference'},
'project': {'key': 'project', 'type': 'ProjectReference'}
}
def __init__(self, id=None, name=None, pool=None, project=None):
super(DeploymentMachineGroupReference, self).__init__()
self.id = id
self.name = name
self.pool = pool
self.project = project
class DeploymentPoolSummary(Model):
"""DeploymentPoolSummary.
:param deployment_groups: List of deployment groups referring to the deployment pool.
:type deployment_groups: list of :class:`DeploymentGroupReference <azure.devops.v5_0.task_agent.models.DeploymentGroupReference>`
:param offline_agents_count: Number of deployment agents that are offline.
:type offline_agents_count: int
:param online_agents_count: Number of deployment agents that are online.
:type online_agents_count: int
:param pool: Deployment pool.
:type pool: :class:`TaskAgentPoolReference <azure.devops.v5_0.task_agent.models.TaskAgentPoolReference>`
"""
_attribute_map = {
'deployment_groups': {'key': 'deploymentGroups', 'type': '[DeploymentGroupReference]'},
'offline_agents_count': {'key': 'offlineAgentsCount', 'type': 'int'},
'online_agents_count': {'key': 'onlineAgentsCount', 'type': 'int'},
'pool': {'key': 'pool', 'type': 'TaskAgentPoolReference'}
}
def __init__(self, deployment_groups=None, offline_agents_count=None, online_agents_count=None, pool=None):
super(DeploymentPoolSummary, self).__init__()
self.deployment_groups = deployment_groups
self.offline_agents_count = offline_agents_count
self.online_agents_count = online_agents_count
self.pool = pool
class DeploymentTargetUpdateParameter(Model):
"""DeploymentTargetUpdateParameter.
:param id: Identifier of the deployment target.
:type id: int
:param tags:
:type tags: list of str
"""
_attribute_map = {
'id': {'key': 'id', 'type': 'int'},
'tags': {'key': 'tags', 'type': '[str]'}
}
def __init__(self, id=None, tags=None):
super(DeploymentTargetUpdateParameter, self).__init__()
self.id = id
self.tags = tags
class EndpointAuthorization(Model):
"""EndpointAuthorization.
:param parameters: Gets or sets the parameters for the selected authorization scheme.
:type parameters: dict
:param scheme: Gets or sets the scheme used for service endpoint authentication.
:type scheme: str
"""
_attribute_map = {
'parameters': {'key': 'parameters', 'type': '{str}'},
'scheme': {'key': 'scheme', 'type': 'str'}
}
def __init__(self, parameters=None, scheme=None):
super(EndpointAuthorization, self).__init__()
self.parameters = parameters
self.scheme = scheme
class EndpointUrl(Model):
"""EndpointUrl.
:param depends_on: Gets or sets the dependency bindings.
:type depends_on: :class:`DependsOn <azure.devops.v5_0.task_agent.models.DependsOn>`
:param display_name: Gets or sets the display name of service endpoint url.
:type display_name: str
:param help_text: Gets or sets the help text of service endpoint url.
:type help_text: str
:param is_visible: Gets or sets the visibility of service endpoint url.
:type is_visible: str
:param value: Gets or sets the value of service endpoint url.
:type value: str
"""
_attribute_map = {
'depends_on': {'key': 'dependsOn', 'type': 'DependsOn'},
'display_name': {'key': 'displayName', 'type': 'str'},
'help_text': {'key': 'helpText', 'type': 'str'},
'is_visible': {'key': 'isVisible', 'type': 'str'},
'value': {'key': 'value', 'type': 'str'}
}
def __init__(self, depends_on=None, display_name=None, help_text=None, is_visible=None, value=None):
super(EndpointUrl, self).__init__()
self.depends_on = depends_on
self.display_name = display_name
self.help_text = help_text
self.is_visible = is_visible
self.value = value
class Environment(Model):
"""Environment.
:param created_by: Identity reference of the user who created the Environment.
:type created_by: :class:`IdentityRef <azure.devops.v5_0.task_agent.models.IdentityRef>`
:param created_on: Creation time of the Environment
:type created_on: datetime
:param description: Description of the Environment.
:type description: str
:param id: Id of the Environment
:type id: int
:param last_modified_by: Identity reference of the user who last modified the Environment.
:type last_modified_by: :class:`IdentityRef <azure.devops.v5_0.task_agent.models.IdentityRef>`
:param last_modified_on: Last modified time of the Environment
:type last_modified_on: datetime
:param name: Name of the Environment.
:type name: str
:param service_groups:
:type service_groups: list of :class:`ServiceGroupReference <azure.devops.v5_0.task_agent.models.ServiceGroupReference>`
"""
_attribute_map = {
'created_by': {'key': 'createdBy', 'type': 'IdentityRef'},
'created_on': {'key': 'createdOn', 'type': 'iso-8601'},
'description': {'key': 'description', 'type': 'str'},
'id': {'key': 'id', 'type': 'int'},
'last_modified_by': {'key': 'lastModifiedBy', 'type': 'IdentityRef'},
'last_modified_on': {'key': 'lastModifiedOn', 'type': 'iso-8601'},
'name': {'key': 'name', 'type': 'str'},
'service_groups': {'key': 'serviceGroups', 'type': '[ServiceGroupReference]'}
}
def __init__(self, created_by=None, created_on=None, description=None, id=None, last_modified_by=None, last_modified_on=None, name=None, service_groups=None):
super(Environment, self).__init__()
self.created_by = created_by
self.created_on = created_on
self.description = description
self.id = id
self.last_modified_by = last_modified_by
self.last_modified_on = last_modified_on
self.name = name
self.service_groups = service_groups
class EnvironmentCreateParameter(Model):
"""EnvironmentCreateParameter.
:param description: Description of the environment.
:type description: str
:param name: Name of the environment.
:type name: str
"""
_attribute_map = {
'description': {'key': 'description', 'type': 'str'},
'name': {'key': 'name', 'type': 'str'}
}
def __init__(self, description=None, name=None):
super(EnvironmentCreateParameter, self).__init__()
self.description = description
self.name = name
class EnvironmentReference(Model):
"""EnvironmentReference.
:param id:
:type id: int
:param name:
:type name: str
"""
_attribute_map = {
'id': {'key': 'id', 'type': 'int'},
'name': {'key': 'name', 'type': 'str'}
}
def __init__(self, id=None, name=None):
super(EnvironmentReference, self).__init__()
self.id = id
self.name = name
class EnvironmentUpdateParameter(Model):
"""EnvironmentUpdateParameter.
:param description: Description of the environment.
:type description: str
:param name: Name of the environment.
:type name: str
"""
_attribute_map = {
'description': {'key': 'description', 'type': 'str'},
'name': {'key': 'name', 'type': 'str'}
}
def __init__(self, description=None, name=None):
super(EnvironmentUpdateParameter, self).__init__()
self.description = description
self.name = name
class GraphSubjectBase(Model):
"""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.v5_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 HelpLink(Model):
"""HelpLink.
:param text:
:type text: str
:param url:
:type url: str
"""
_attribute_map = {
'text': {'key': 'text', 'type': 'str'},
'url': {'key': 'url', 'type': 'str'}
}
def __init__(self, text=None, url=None):
super(HelpLink, self).__init__()
self.text = text
self.url = url
class IdentityRef(GraphSubjectBase):
"""IdentityRef.
: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.v5_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:
:type directory_alias: str
:param id:
:type id: str
:param image_url:
:type image_url: str
:param inactive:
:type inactive: bool
:param is_aad_identity:
:type is_aad_identity: bool
:param is_container:
:type is_container: bool
:param is_deleted_in_origin:
:type is_deleted_in_origin: bool
:param profile_url:
:type profile_url: str
:param unique_name:
: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 InputDescriptor(Model):
"""InputDescriptor.
:param dependency_input_ids: The ids of all inputs that the value of this input is dependent on.
:type dependency_input_ids: list of str
:param description: Description of what this input is used for
:type description: str
:param group_name: The group localized name to which this input belongs and can be shown as a header for the container that will include all the inputs in the group.
:type group_name: str
:param has_dynamic_value_information: If true, the value information for this input is dynamic and should be fetched when the value of dependency inputs change.
:type has_dynamic_value_information: bool
:param id: Identifier for the subscription input
:type id: str
:param input_mode: Mode in which the value of this input should be entered
:type input_mode: object
:param is_confidential: Gets whether this input is confidential, such as for a password or application key
:type is_confidential: bool
:param name: Localized name which can be shown as a label for the subscription input
:type name: str
:param properties: Custom properties for the input which can be used by the service provider
:type properties: dict
:param type: Underlying data type for the input value. When this value is specified, InputMode, Validation and Values are optional.
:type type: str
:param use_in_default_description: Gets whether this input is included in the default generated action description.
:type use_in_default_description: bool
:param validation: Information to use to validate this input's value
:type validation: :class:`InputValidation <azure.devops.v5_0.microsoft._visual_studio._services._web_api.models.InputValidation>`
:param value_hint: A hint for input value. It can be used in the UI as the input placeholder.
:type value_hint: str
:param values: Information about possible values for this input
:type values: :class:`InputValues <azure.devops.v5_0.microsoft._visual_studio._services._web_api.models.InputValues>`
"""
_attribute_map = {
'dependency_input_ids': {'key': 'dependencyInputIds', 'type': '[str]'},
'description': {'key': 'description', 'type': 'str'},
'group_name': {'key': 'groupName', 'type': 'str'},
'has_dynamic_value_information': {'key': 'hasDynamicValueInformation', 'type': 'bool'},
'id': {'key': 'id', 'type': 'str'},
'input_mode': {'key': 'inputMode', 'type': 'object'},
'is_confidential': {'key': 'isConfidential', 'type': 'bool'},
'name': {'key': 'name', 'type': 'str'},
'properties': {'key': 'properties', 'type': '{object}'},
'type': {'key': 'type', 'type': 'str'},
'use_in_default_description': {'key': 'useInDefaultDescription', 'type': 'bool'},
'validation': {'key': 'validation', 'type': 'InputValidation'},
'value_hint': {'key': 'valueHint', 'type': 'str'},
'values': {'key': 'values', 'type': 'InputValues'}
}
def __init__(self, dependency_input_ids=None, description=None, group_name=None, has_dynamic_value_information=None, id=None, input_mode=None, is_confidential=None, name=None, properties=None, type=None, use_in_default_description=None, validation=None, value_hint=None, values=None):
super(InputDescriptor, self).__init__()
self.dependency_input_ids = dependency_input_ids
self.description = description
self.group_name = group_name
self.has_dynamic_value_information = has_dynamic_value_information
self.id = id
self.input_mode = input_mode
self.is_confidential = is_confidential
self.name = name
self.properties = properties
self.type = type
self.use_in_default_description = use_in_default_description
self.validation = validation
self.value_hint = value_hint
self.values = values
class InputValidation(Model):
"""InputValidation.
:param data_type:
:type data_type: object
:param is_required:
:type is_required: bool
:param max_length:
:type max_length: int
:param max_value:
:type max_value: decimal
:param min_length:
:type min_length: int
:param min_value:
:type min_value: decimal
:param pattern:
:type pattern: str
:param pattern_mismatch_error_message:
:type pattern_mismatch_error_message: str
"""
_attribute_map = {
'data_type': {'key': 'dataType', 'type': 'object'},
'is_required': {'key': 'isRequired', 'type': 'bool'},
'max_length': {'key': 'maxLength', 'type': 'int'},
'max_value': {'key': 'maxValue', 'type': 'decimal'},
'min_length': {'key': 'minLength', 'type': 'int'},
'min_value': {'key': 'minValue', 'type': 'decimal'},
'pattern': {'key': 'pattern', 'type': 'str'},
'pattern_mismatch_error_message': {'key': 'patternMismatchErrorMessage', 'type': 'str'}
}
def __init__(self, data_type=None, is_required=None, max_length=None, max_value=None, min_length=None, min_value=None, pattern=None, pattern_mismatch_error_message=None):
super(InputValidation, self).__init__()
self.data_type = data_type
self.is_required = is_required
self.max_length = max_length
self.max_value = max_value
self.min_length = min_length
self.min_value = min_value
self.pattern = pattern
self.pattern_mismatch_error_message = pattern_mismatch_error_message
class InputValidationRequest(Model):
"""InputValidationRequest.
:param inputs:
:type inputs: dict
"""
_attribute_map = {
'inputs': {'key': 'inputs', 'type': '{ValidationItem}'}
}
def __init__(self, inputs=None):
super(InputValidationRequest, self).__init__()
self.inputs = inputs
class InputValue(Model):
"""InputValue.
:param data: Any other data about this input
:type data: dict
:param display_value: The text to show for the display of this value
:type display_value: str
:param value: The value to store for this input
:type value: str
"""
_attribute_map = {
'data': {'key': 'data', 'type': '{object}'},
'display_value': {'key': 'displayValue', 'type': 'str'},
'value': {'key': 'value', 'type': 'str'}
}
def __init__(self, data=None, display_value=None, value=None):
super(InputValue, self).__init__()
self.data = data
self.display_value = display_value
self.value = value
class InputValues(Model):
"""InputValues.
:param default_value: The default value to use for this input
:type default_value: str
:param error: Errors encountered while computing dynamic values.
:type error: :class:`InputValuesError <azure.devops.v5_0.microsoft._visual_studio._services._web_api.models.InputValuesError>`
:param input_id: The id of the input
:type input_id: str
:param is_disabled: Should this input be disabled
:type is_disabled: bool
:param is_limited_to_possible_values: Should the value be restricted to one of the values in the PossibleValues (True) or are the values in PossibleValues just a suggestion (False)
:type is_limited_to_possible_values: bool
:param is_read_only: Should this input be made read-only
:type is_read_only: bool
:param possible_values: Possible values that this input can take
:type possible_values: list of :class:`InputValue <azure.devops.v5_0.microsoft._visual_studio._services._web_api.models.InputValue>`
"""
_attribute_map = {
'default_value': {'key': 'defaultValue', 'type': 'str'},
'error': {'key': 'error', 'type': 'InputValuesError'},
'input_id': {'key': 'inputId', 'type': 'str'},
'is_disabled': {'key': 'isDisabled', 'type': 'bool'},
'is_limited_to_possible_values': {'key': 'isLimitedToPossibleValues', 'type': 'bool'},
'is_read_only': {'key': 'isReadOnly', 'type': 'bool'},
'possible_values': {'key': 'possibleValues', 'type': '[InputValue]'}
}
def __init__(self, default_value=None, error=None, input_id=None, is_disabled=None, is_limited_to_possible_values=None, is_read_only=None, possible_values=None):
super(InputValues, self).__init__()
self.default_value = default_value
self.error = error
self.input_id = input_id
self.is_disabled = is_disabled
self.is_limited_to_possible_values = is_limited_to_possible_values
self.is_read_only = is_read_only
self.possible_values = possible_values
class InputValuesError(Model):
"""InputValuesError.
:param message: The error message.
:type message: str
"""
_attribute_map = {
'message': {'key': 'message', 'type': 'str'}
}
def __init__(self, message=None):
super(InputValuesError, self).__init__()
self.message = message
class KubernetesServiceGroupCreateParameters(Model):
"""KubernetesServiceGroupCreateParameters.
:param name:
:type name: str
:param namespace:
:type namespace: str
:param service_endpoint_id:
:type service_endpoint_id: str
"""
_attribute_map = {
'name': {'key': 'name', 'type': 'str'},
'namespace': {'key': 'namespace', 'type': 'str'},
'service_endpoint_id': {'key': 'serviceEndpointId', 'type': 'str'}
}
def __init__(self, name=None, namespace=None, service_endpoint_id=None):
super(KubernetesServiceGroupCreateParameters, self).__init__()
self.name = name
self.namespace = namespace
self.service_endpoint_id = service_endpoint_id
class MarketplacePurchasedLicense(Model):
"""MarketplacePurchasedLicense.
:param marketplace_name: The Marketplace display name.
:type marketplace_name: str
:param purchaser_name: The name of the identity making the purchase as seen by the marketplace
:type purchaser_name: str
:param purchase_unit_count: The quantity purchased.
:type purchase_unit_count: int
"""
_attribute_map = {
'marketplace_name': {'key': 'marketplaceName', 'type': 'str'},
'purchaser_name': {'key': 'purchaserName', 'type': 'str'},
'purchase_unit_count': {'key': 'purchaseUnitCount', 'type': 'int'}
}
def __init__(self, marketplace_name=None, purchaser_name=None, purchase_unit_count=None):
super(MarketplacePurchasedLicense, self).__init__()
self.marketplace_name = marketplace_name
self.purchaser_name = purchaser_name
self.purchase_unit_count = purchase_unit_count
class MetricsColumnMetaData(Model):
"""MetricsColumnMetaData.
:param column_name: Name.
:type column_name: str
:param column_value_type: Data type.
:type column_value_type: str
"""
_attribute_map = {
'column_name': {'key': 'columnName', 'type': 'str'},
'column_value_type': {'key': 'columnValueType', 'type': 'str'}
}
def __init__(self, column_name=None, column_value_type=None):
super(MetricsColumnMetaData, self).__init__()
self.column_name = column_name
self.column_value_type = column_value_type
class MetricsColumnsHeader(Model):
"""MetricsColumnsHeader.
:param dimensions: Properties of deployment group for which metrics are provided. E.g. 1: LastJobStatus E.g. 2: TargetState
:type dimensions: list of :class:`MetricsColumnMetaData <azure.devops.v5_0.task_agent.models.MetricsColumnMetaData>`
:param metrics: The types of metrics. E.g. 1: total count of deployment targets. E.g. 2: Average time of deployment to the deployment targets.
:type metrics: list of :class:`MetricsColumnMetaData <azure.devops.v5_0.task_agent.models.MetricsColumnMetaData>`
"""
_attribute_map = {
'dimensions': {'key': 'dimensions', 'type': '[MetricsColumnMetaData]'},
'metrics': {'key': 'metrics', 'type': '[MetricsColumnMetaData]'}
}
def __init__(self, dimensions=None, metrics=None):
super(MetricsColumnsHeader, self).__init__()
self.dimensions = dimensions
self.metrics = metrics
class MetricsRow(Model):
"""MetricsRow.
:param dimensions: The values of the properties mentioned as 'Dimensions' in column header. E.g. 1: For a property 'LastJobStatus' - metrics will be provided for 'passed', 'failed', etc. E.g. 2: For a property 'TargetState' - metrics will be provided for 'online', 'offline' targets.
:type dimensions: list of str
:param metrics: Metrics in serialized format. Should be deserialized based on the data type provided in header.
:type metrics: list of str
"""
_attribute_map = {
'dimensions': {'key': 'dimensions', 'type': '[str]'},
'metrics': {'key': 'metrics', 'type': '[str]'}
}
def __init__(self, dimensions=None, metrics=None):
super(MetricsRow, self).__init__()
self.dimensions = dimensions
self.metrics = metrics
class PackageMetadata(Model):
"""PackageMetadata.
:param created_on: The date the package was created
:type created_on: datetime
:param download_url: A direct link to download the package.
:type download_url: str
:param filename: The UI uses this to display instructions, i.e. "unzip MyAgent.zip"
:type filename: str
:param hash_value: MD5 hash as a base64 string
:type hash_value: str
:param info_url: A link to documentation
:type info_url: str
:param platform: The platform (win7, linux, etc.)
:type platform: str
:param type: The type of package (e.g. "agent")
:type type: str
:param version: The package version.
:type version: :class:`PackageVersion <azure.devops.v5_0.task_agent.models.PackageVersion>`
"""
_attribute_map = {
'created_on': {'key': 'createdOn', 'type': 'iso-8601'},
'download_url': {'key': 'downloadUrl', 'type': 'str'},
'filename': {'key': 'filename', 'type': 'str'},
'hash_value': {'key': 'hashValue', 'type': 'str'},
'info_url': {'key': 'infoUrl', 'type': 'str'},
'platform': {'key': 'platform', 'type': 'str'},
'type': {'key': 'type', 'type': 'str'},
'version': {'key': 'version', 'type': 'PackageVersion'}
}
def __init__(self, created_on=None, download_url=None, filename=None, hash_value=None, info_url=None, platform=None, type=None, version=None):
super(PackageMetadata, self).__init__()
self.created_on = created_on
self.download_url = download_url
self.filename = filename
self.hash_value = hash_value
self.info_url = info_url
self.platform = platform
self.type = type
self.version = version
class PackageVersion(Model):
"""PackageVersion.
:param major:
:type major: int
:param minor:
:type minor: int
:param patch:
:type patch: int
"""
_attribute_map = {
'major': {'key': 'major', 'type': 'int'},
'minor': {'key': 'minor', 'type': 'int'},
'patch': {'key': 'patch', 'type': 'int'}
}
def __init__(self, major=None, minor=None, patch=None):
super(PackageVersion, self).__init__()
self.major = major
self.minor = minor
self.patch = patch
class ProjectReference(Model):
"""ProjectReference.
:param id:
:type id: str
:param name:
:type name: str
"""
_attribute_map = {
'id': {'key': 'id', 'type': 'str'},
'name': {'key': 'name', 'type': 'str'}
}
def __init__(self, id=None, name=None):
super(ProjectReference, self).__init__()
self.id = id
self.name = name
class PublishTaskGroupMetadata(Model):
"""PublishTaskGroupMetadata.
:param comment:
:type comment: str
:param parent_definition_revision:
:type parent_definition_revision: int
:param preview:
:type preview: bool
:param task_group_id:
:type task_group_id: str
:param task_group_revision:
:type task_group_revision: int
"""
_attribute_map = {
'comment': {'key': 'comment', 'type': 'str'},
'parent_definition_revision': {'key': 'parentDefinitionRevision', 'type': 'int'},
'preview': {'key': 'preview', 'type': 'bool'},
'task_group_id': {'key': 'taskGroupId', 'type': 'str'},
'task_group_revision': {'key': 'taskGroupRevision', 'type': 'int'}
}
def __init__(self, comment=None, parent_definition_revision=None, preview=None, task_group_id=None, task_group_revision=None):
super(PublishTaskGroupMetadata, self).__init__()
self.comment = comment
self.parent_definition_revision = parent_definition_revision
self.preview = preview
self.task_group_id = task_group_id
self.task_group_revision = task_group_revision
class ReferenceLinks(Model):
"""ReferenceLinks.
: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 ResourceLimit(Model):
"""ResourceLimit.
:param failed_to_reach_all_providers:
:type failed_to_reach_all_providers: bool
:param host_id:
:type host_id: str
:param is_hosted:
:type is_hosted: bool
:param is_premium:
:type is_premium: bool
:param parallelism_tag:
:type parallelism_tag: str
:param resource_limits_data:
:type resource_limits_data: dict
:param total_count:
:type total_count: int
:param total_minutes:
:type total_minutes: int
"""
_attribute_map = {
'failed_to_reach_all_providers': {'key': 'failedToReachAllProviders', 'type': 'bool'},
'host_id': {'key': 'hostId', 'type': 'str'},
'is_hosted': {'key': 'isHosted', 'type': 'bool'},
'is_premium': {'key': 'isPremium', 'type': 'bool'},
'parallelism_tag': {'key': 'parallelismTag', 'type': 'str'},
'resource_limits_data': {'key': 'resourceLimitsData', 'type': '{str}'},
'total_count': {'key': 'totalCount', 'type': 'int'},
'total_minutes': {'key': 'totalMinutes', 'type': 'int'}
}
def __init__(self, failed_to_reach_all_providers=None, host_id=None, is_hosted=None, is_premium=None, parallelism_tag=None, resource_limits_data=None, total_count=None, total_minutes=None):
super(ResourceLimit, self).__init__()
self.failed_to_reach_all_providers = failed_to_reach_all_providers
self.host_id = host_id
self.is_hosted = is_hosted
self.is_premium = is_premium
self.parallelism_tag = parallelism_tag
self.resource_limits_data = resource_limits_data
self.total_count = total_count
self.total_minutes = total_minutes
class ResourceUsage(Model):
"""ResourceUsage.
:param resource_limit:
:type resource_limit: :class:`ResourceLimit <azure.devops.v5_0.task_agent.models.ResourceLimit>`
:param running_requests:
:type running_requests: list of :class:`TaskAgentJobRequest <azure.devops.v5_0.task_agent.models.TaskAgentJobRequest>`
:param used_count:
:type used_count: int
:param used_minutes:
:type used_minutes: int
"""
_attribute_map = {
'resource_limit': {'key': 'resourceLimit', 'type': 'ResourceLimit'},
'running_requests': {'key': 'runningRequests', 'type': '[TaskAgentJobRequest]'},
'used_count': {'key': 'usedCount', 'type': 'int'},
'used_minutes': {'key': 'usedMinutes', 'type': 'int'}
}
def __init__(self, resource_limit=None, running_requests=None, used_count=None, used_minutes=None):
super(ResourceUsage, self).__init__()
self.resource_limit = resource_limit
self.running_requests = running_requests
self.used_count = used_count
self.used_minutes = used_minutes
class ResultTransformationDetails(Model):
"""ResultTransformationDetails.
:param result_template:
:type result_template: str
"""
_attribute_map = {
'result_template': {'key': 'resultTemplate', 'type': 'str'}
}
def __init__(self, result_template=None):
super(ResultTransformationDetails, self).__init__()
self.result_template = result_template
class SecureFile(Model):
"""SecureFile.
:param created_by:
:type created_by: :class:`IdentityRef <azure.devops.v5_0.task_agent.models.IdentityRef>`
:param created_on:
:type created_on: datetime
:param id:
:type id: str
:param modified_by:
:type modified_by: :class:`IdentityRef <azure.devops.v5_0.task_agent.models.IdentityRef>`
:param modified_on:
:type modified_on: datetime
:param name:
:type name: str
:param properties:
:type properties: dict
:param ticket:
:type ticket: str
"""
_attribute_map = {
'created_by': {'key': 'createdBy', 'type': 'IdentityRef'},
'created_on': {'key': 'createdOn', 'type': 'iso-8601'},
'id': {'key': 'id', 'type': 'str'},
'modified_by': {'key': 'modifiedBy', 'type': 'IdentityRef'},
'modified_on': {'key': 'modifiedOn', 'type': 'iso-8601'},
'name': {'key': 'name', 'type': 'str'},
'properties': {'key': 'properties', 'type': '{str}'},
'ticket': {'key': 'ticket', 'type': 'str'}
}
def __init__(self, created_by=None, created_on=None, id=None, modified_by=None, modified_on=None, name=None, properties=None, ticket=None):
super(SecureFile, self).__init__()
self.created_by = created_by
self.created_on = created_on
self.id = id
self.modified_by = modified_by
self.modified_on = modified_on
self.name = name
self.properties = properties
self.ticket = ticket
class ServiceEndpoint(Model):
"""ServiceEndpoint.
:param administrators_group: Gets or sets the identity reference for the administrators group of the service endpoint.
:type administrators_group: :class:`IdentityRef <azure.devops.v5_0.task_agent.models.IdentityRef>`
:param authorization: Gets or sets the authorization data for talking to the endpoint.
:type authorization: :class:`EndpointAuthorization <azure.devops.v5_0.task_agent.models.EndpointAuthorization>`
:param created_by: Gets or sets the identity reference for the user who created the Service endpoint.
:type created_by: :class:`IdentityRef <azure.devops.v5_0.task_agent.models.IdentityRef>`
:param data:
:type data: dict
:param description: Gets or sets the description of endpoint.
:type description: str
:param group_scope_id:
:type group_scope_id: str
:param id: Gets or sets the identifier of this endpoint.
:type id: str
:param is_ready: EndPoint state indictor
:type is_ready: bool
:param is_shared: Indicates whether service endpoint is shared with other projects or not.
:type is_shared: bool
:param name: Gets or sets the friendly name of the endpoint.
:type name: str
:param operation_status: Error message during creation/deletion of endpoint
:type operation_status: :class:`object <azure.devops.v5_0.task_agent.models.object>`
:param readers_group: Gets or sets the identity reference for the readers group of the service endpoint.
:type readers_group: :class:`IdentityRef <azure.devops.v5_0.task_agent.models.IdentityRef>`
:param type: Gets or sets the type of the endpoint.
:type type: str
:param url: Gets or sets the url of the endpoint.
:type url: str
"""
_attribute_map = {
'administrators_group': {'key': 'administratorsGroup', 'type': 'IdentityRef'},
'authorization': {'key': 'authorization', 'type': 'EndpointAuthorization'},
'created_by': {'key': 'createdBy', 'type': 'IdentityRef'},
'data': {'key': 'data', 'type': '{str}'},
'description': {'key': 'description', 'type': 'str'},
'group_scope_id': {'key': 'groupScopeId', 'type': 'str'},
'id': {'key': 'id', 'type': 'str'},
'is_ready': {'key': 'isReady', 'type': 'bool'},
'is_shared': {'key': 'isShared', 'type': 'bool'},
'name': {'key': 'name', 'type': 'str'},
'operation_status': {'key': 'operationStatus', 'type': 'object'},
'readers_group': {'key': 'readersGroup', 'type': 'IdentityRef'},
'type': {'key': 'type', 'type': 'str'},
'url': {'key': 'url', 'type': 'str'}
}
def __init__(self, administrators_group=None, authorization=None, created_by=None, data=None, description=None, group_scope_id=None, id=None, is_ready=None, is_shared=None, name=None, operation_status=None, readers_group=None, type=None, url=None):
super(ServiceEndpoint, self).__init__()
self.administrators_group = administrators_group
self.authorization = authorization
self.created_by = created_by
self.data = data
self.description = description
self.group_scope_id = group_scope_id
self.id = id
self.is_ready = is_ready
self.is_shared = is_shared
self.name = name
self.operation_status = operation_status
self.readers_group = readers_group
self.type = type
self.url = url
class ServiceEndpointAuthenticationScheme(Model):
"""ServiceEndpointAuthenticationScheme.
:param authorization_headers: Gets or sets the authorization headers of service endpoint authentication scheme.
:type authorization_headers: list of :class:`AuthorizationHeader <azure.devops.v5_0.task_agent.models.AuthorizationHeader>`
:param client_certificates: Gets or sets the certificates of service endpoint authentication scheme.
:type client_certificates: list of :class:`ClientCertificate <azure.devops.v5_0.task_agent.models.ClientCertificate>`
:param display_name: Gets or sets the display name for the service endpoint authentication scheme.
:type display_name: str
:param input_descriptors: Gets or sets the input descriptors for the service endpoint authentication scheme.
:type input_descriptors: list of :class:`InputDescriptor <azure.devops.v5_0.task_agent.models.InputDescriptor>`
:param scheme: Gets or sets the scheme for service endpoint authentication.
:type scheme: str
"""
_attribute_map = {
'authorization_headers': {'key': 'authorizationHeaders', 'type': '[AuthorizationHeader]'},
'client_certificates': {'key': 'clientCertificates', 'type': '[ClientCertificate]'},
'display_name': {'key': 'displayName', 'type': 'str'},
'input_descriptors': {'key': 'inputDescriptors', 'type': '[InputDescriptor]'},
'scheme': {'key': 'scheme', 'type': 'str'}
}
def __init__(self, authorization_headers=None, client_certificates=None, display_name=None, input_descriptors=None, scheme=None):
super(ServiceEndpointAuthenticationScheme, self).__init__()
self.authorization_headers = authorization_headers
self.client_certificates = client_certificates
self.display_name = display_name
self.input_descriptors = input_descriptors
self.scheme = scheme
class ServiceEndpointDetails(Model):
"""ServiceEndpointDetails.
:param authorization:
:type authorization: :class:`EndpointAuthorization <azure.devops.v5_0.task_agent.models.EndpointAuthorization>`
:param data:
:type data: dict
:param type:
:type type: str
:param url:
:type url: str
"""
_attribute_map = {
'authorization': {'key': 'authorization', 'type': 'EndpointAuthorization'},
'data': {'key': 'data', 'type': '{str}'},
'type': {'key': 'type', 'type': 'str'},
'url': {'key': 'url', 'type': 'str'}
}
def __init__(self, authorization=None, data=None, type=None, url=None):
super(ServiceEndpointDetails, self).__init__()
self.authorization = authorization
self.data = data
self.type = type
self.url = url
class ServiceEndpointExecutionData(Model):
"""ServiceEndpointExecutionData.
:param definition: Gets the definition of service endpoint execution owner.
:type definition: :class:`TaskOrchestrationOwner <azure.devops.v5_0.task_agent.models.TaskOrchestrationOwner>`
:param finish_time: Gets the finish time of service endpoint execution.
:type finish_time: datetime
:param id: Gets the Id of service endpoint execution data.
:type id: long
:param owner: Gets the owner of service endpoint execution data.
:type owner: :class:`TaskOrchestrationOwner <azure.devops.v5_0.task_agent.models.TaskOrchestrationOwner>`
:param plan_type: Gets the plan type of service endpoint execution data.
:type plan_type: str
:param result: Gets the result of service endpoint execution.
:type result: object
:param start_time: Gets the start time of service endpoint execution.
:type start_time: datetime
"""
_attribute_map = {
'definition': {'key': 'definition', 'type': 'TaskOrchestrationOwner'},
'finish_time': {'key': 'finishTime', 'type': 'iso-8601'},
'id': {'key': 'id', 'type': 'long'},
'owner': {'key': 'owner', 'type': 'TaskOrchestrationOwner'},
'plan_type': {'key': 'planType', 'type': 'str'},
'result': {'key': 'result', 'type': 'object'},
'start_time': {'key': 'startTime', 'type': 'iso-8601'}
}
def __init__(self, definition=None, finish_time=None, id=None, owner=None, plan_type=None, result=None, start_time=None):
super(ServiceEndpointExecutionData, self).__init__()
self.definition = definition
self.finish_time = finish_time
self.id = id
self.owner = owner
self.plan_type = plan_type
self.result = result
self.start_time = start_time
class ServiceEndpointExecutionRecord(Model):
"""ServiceEndpointExecutionRecord.
:param data: Gets the execution data of service endpoint execution.
:type data: :class:`ServiceEndpointExecutionData <azure.devops.v5_0.task_agent.models.ServiceEndpointExecutionData>`
:param endpoint_id: Gets the Id of service endpoint.
:type endpoint_id: str
"""
_attribute_map = {
'data': {'key': 'data', 'type': 'ServiceEndpointExecutionData'},
'endpoint_id': {'key': 'endpointId', 'type': 'str'}
}
def __init__(self, data=None, endpoint_id=None):
super(ServiceEndpointExecutionRecord, self).__init__()
self.data = data
self.endpoint_id = endpoint_id
class ServiceEndpointExecutionRecordsInput(Model):
"""ServiceEndpointExecutionRecordsInput.
:param data:
:type data: :class:`ServiceEndpointExecutionData <azure.devops.v5_0.task_agent.models.ServiceEndpointExecutionData>`
:param endpoint_ids:
:type endpoint_ids: list of str
"""
_attribute_map = {
'data': {'key': 'data', 'type': 'ServiceEndpointExecutionData'},
'endpoint_ids': {'key': 'endpointIds', 'type': '[str]'}
}
def __init__(self, data=None, endpoint_ids=None):
super(ServiceEndpointExecutionRecordsInput, self).__init__()
self.data = data
self.endpoint_ids = endpoint_ids
class ServiceEndpointRequest(Model):
"""ServiceEndpointRequest.
:param data_source_details:
:type data_source_details: :class:`DataSourceDetails <azure.devops.v5_0.task_agent.models.DataSourceDetails>`
:param result_transformation_details:
:type result_transformation_details: :class:`ResultTransformationDetails <azure.devops.v5_0.task_agent.models.ResultTransformationDetails>`
:param service_endpoint_details:
:type service_endpoint_details: :class:`ServiceEndpointDetails <azure.devops.v5_0.task_agent.models.ServiceEndpointDetails>`
"""
_attribute_map = {
'data_source_details': {'key': 'dataSourceDetails', 'type': 'DataSourceDetails'},
'result_transformation_details': {'key': 'resultTransformationDetails', 'type': 'ResultTransformationDetails'},
'service_endpoint_details': {'key': 'serviceEndpointDetails', 'type': 'ServiceEndpointDetails'}
}
def __init__(self, data_source_details=None, result_transformation_details=None, service_endpoint_details=None):
super(ServiceEndpointRequest, self).__init__()
self.data_source_details = data_source_details
self.result_transformation_details = result_transformation_details
self.service_endpoint_details = service_endpoint_details
class ServiceEndpointRequestResult(Model):
"""ServiceEndpointRequestResult.
:param error_message:
:type error_message: str
:param result:
:type result: :class:`object <azure.devops.v5_0.task_agent.models.object>`
:param status_code:
:type status_code: object
"""
_attribute_map = {
'error_message': {'key': 'errorMessage', 'type': 'str'},
'result': {'key': 'result', 'type': 'object'},
'status_code': {'key': 'statusCode', 'type': 'object'}
}
def __init__(self, error_message=None, result=None, status_code=None):
super(ServiceEndpointRequestResult, self).__init__()
self.error_message = error_message
self.result = result
self.status_code = status_code
class ServiceEndpointType(Model):
"""ServiceEndpointType.
:param authentication_schemes: Authentication scheme of service endpoint type.
:type authentication_schemes: list of :class:`ServiceEndpointAuthenticationScheme <azure.devops.v5_0.task_agent.models.ServiceEndpointAuthenticationScheme>`
:param data_sources: Data sources of service endpoint type.
:type data_sources: list of :class:`DataSource <azure.devops.v5_0.task_agent.models.DataSource>`
:param dependency_data: Dependency data of service endpoint type.
:type dependency_data: list of :class:`DependencyData <azure.devops.v5_0.task_agent.models.DependencyData>`
:param description: Gets or sets the description of service endpoint type.
:type description: str
:param display_name: Gets or sets the display name of service endpoint type.
:type display_name: str
:param endpoint_url: Gets or sets the endpoint url of service endpoint type.
:type endpoint_url: :class:`EndpointUrl <azure.devops.v5_0.task_agent.models.EndpointUrl>`
:param help_link: Gets or sets the help link of service endpoint type.
:type help_link: :class:`HelpLink <azure.devops.v5_0.task_agent.models.HelpLink>`
:param help_mark_down:
:type help_mark_down: str
:param icon_url: Gets or sets the icon url of service endpoint type.
:type icon_url: str
:param input_descriptors: Input descriptor of service endpoint type.
:type input_descriptors: list of :class:`InputDescriptor <azure.devops.v5_0.task_agent.models.InputDescriptor>`
:param name: Gets or sets the name of service endpoint type.
:type name: str
:param trusted_hosts: Trusted hosts of a service endpoint type.
:type trusted_hosts: list of str
:param ui_contribution_id: Gets or sets the ui contribution id of service endpoint type.
:type ui_contribution_id: str
"""
_attribute_map = {
'authentication_schemes': {'key': 'authenticationSchemes', 'type': '[ServiceEndpointAuthenticationScheme]'},
'data_sources': {'key': 'dataSources', 'type': '[DataSource]'},
'dependency_data': {'key': 'dependencyData', 'type': '[DependencyData]'},
'description': {'key': 'description', 'type': 'str'},
'display_name': {'key': 'displayName', 'type': 'str'},
'endpoint_url': {'key': 'endpointUrl', 'type': 'EndpointUrl'},
'help_link': {'key': 'helpLink', 'type': 'HelpLink'},
'help_mark_down': {'key': 'helpMarkDown', 'type': 'str'},
'icon_url': {'key': 'iconUrl', 'type': 'str'},
'input_descriptors': {'key': 'inputDescriptors', 'type': '[InputDescriptor]'},
'name': {'key': 'name', 'type': 'str'},
'trusted_hosts': {'key': 'trustedHosts', 'type': '[str]'},
'ui_contribution_id': {'key': 'uiContributionId', 'type': 'str'}
}
def __init__(self, authentication_schemes=None, data_sources=None, dependency_data=None, description=None, display_name=None, endpoint_url=None, help_link=None, help_mark_down=None, icon_url=None, input_descriptors=None, name=None, trusted_hosts=None, ui_contribution_id=None):
super(ServiceEndpointType, self).__init__()
self.authentication_schemes = authentication_schemes
self.data_sources = data_sources
self.dependency_data = dependency_data
self.description = description
self.display_name = display_name
self.endpoint_url = endpoint_url
self.help_link = help_link
self.help_mark_down = help_mark_down
self.icon_url = icon_url
self.input_descriptors = input_descriptors
self.name = name
self.trusted_hosts = trusted_hosts
self.ui_contribution_id = ui_contribution_id
class ServiceGroup(Model):
"""ServiceGroup.
:param created_by:
:type created_by: :class:`IdentityRef <azure.devops.v5_0.task_agent.models.IdentityRef>`
:param created_on:
:type created_on: datetime
:param environment_reference:
:type environment_reference: :class:`EnvironmentReference <azure.devops.v5_0.task_agent.models.EnvironmentReference>`
:param id:
:type id: int
:param last_modified_by:
:type last_modified_by: :class:`IdentityRef <azure.devops.v5_0.task_agent.models.IdentityRef>`
:param last_modified_on:
:type last_modified_on: datetime
:param name:
:type name: str
:param type:
:type type: object
"""
_attribute_map = {
'created_by': {'key': 'createdBy', 'type': 'IdentityRef'},
'created_on': {'key': 'createdOn', 'type': 'iso-8601'},
'environment_reference': {'key': 'environmentReference', 'type': 'EnvironmentReference'},
'id': {'key': 'id', 'type': 'int'},
'last_modified_by': {'key': 'lastModifiedBy', 'type': 'IdentityRef'},
'last_modified_on': {'key': 'lastModifiedOn', 'type': 'iso-8601'},
'name': {'key': 'name', 'type': 'str'},
'type': {'key': 'type', 'type': 'object'}
}
def __init__(self, created_by=None, created_on=None, environment_reference=None, id=None, last_modified_by=None, last_modified_on=None, name=None, type=None):
super(ServiceGroup, self).__init__()
self.created_by = created_by
self.created_on = created_on
self.environment_reference = environment_reference
self.id = id
self.last_modified_by = last_modified_by
self.last_modified_on = last_modified_on
self.name = name
self.type = type
class ServiceGroupReference(Model):
"""ServiceGroupReference.
:param id: Id of the Service Group.
:type id: int
:param name: Name of the service group.
:type name: str
:param type: Type of the service group.
:type type: object
"""
_attribute_map = {
'id': {'key': 'id', 'type': 'int'},
'name': {'key': 'name', 'type': 'str'},
'type': {'key': 'type', 'type': 'object'}
}
def __init__(self, id=None, name=None, type=None):
super(ServiceGroupReference, self).__init__()
self.id = id
self.name = name
self.type = type
class TaskAgentAuthorization(Model):
"""TaskAgentAuthorization.
:param authorization_url: Gets or sets the endpoint used to obtain access tokens from the configured token service.
:type authorization_url: str
:param client_id: Gets or sets the client identifier for this agent.
:type client_id: str
:param public_key: Gets or sets the public key used to verify the identity of this agent.
:type public_key: :class:`TaskAgentPublicKey <azure.devops.v5_0.task_agent.models.TaskAgentPublicKey>`
"""
_attribute_map = {
'authorization_url': {'key': 'authorizationUrl', 'type': 'str'},
'client_id': {'key': 'clientId', 'type': 'str'},
'public_key': {'key': 'publicKey', 'type': 'TaskAgentPublicKey'}
}
def __init__(self, authorization_url=None, client_id=None, public_key=None):
super(TaskAgentAuthorization, self).__init__()
self.authorization_url = authorization_url
self.client_id = client_id
self.public_key = public_key
class TaskAgentCloud(Model):
"""TaskAgentCloud.
:param acquire_agent_endpoint: Gets or sets a AcquireAgentEndpoint using which a request can be made to acquire new agent
:type acquire_agent_endpoint: str
:param agent_cloud_id:
:type agent_cloud_id: int
:param get_agent_definition_endpoint:
:type get_agent_definition_endpoint: str
:param get_agent_request_status_endpoint:
:type get_agent_request_status_endpoint: str
:param internal: Signifies that this Agent Cloud is internal and should not be user-manageable
:type internal: bool
:param name:
:type name: str
:param release_agent_endpoint:
:type release_agent_endpoint: str
:param shared_secret:
:type shared_secret: str
:param type: Gets or sets the type of the endpoint.
:type type: str
"""
_attribute_map = {
'acquire_agent_endpoint': {'key': 'acquireAgentEndpoint', 'type': 'str'},
'agent_cloud_id': {'key': 'agentCloudId', 'type': 'int'},
'get_agent_definition_endpoint': {'key': 'getAgentDefinitionEndpoint', 'type': 'str'},
'get_agent_request_status_endpoint': {'key': 'getAgentRequestStatusEndpoint', 'type': 'str'},
'internal': {'key': 'internal', 'type': 'bool'},
'name': {'key': 'name', 'type': 'str'},
'release_agent_endpoint': {'key': 'releaseAgentEndpoint', 'type': 'str'},
'shared_secret': {'key': 'sharedSecret', 'type': 'str'},
'type': {'key': 'type', 'type': 'str'}
}
def __init__(self, acquire_agent_endpoint=None, agent_cloud_id=None, get_agent_definition_endpoint=None, get_agent_request_status_endpoint=None, internal=None, name=None, release_agent_endpoint=None, shared_secret=None, type=None):
super(TaskAgentCloud, self).__init__()
self.acquire_agent_endpoint = acquire_agent_endpoint
self.agent_cloud_id = agent_cloud_id
self.get_agent_definition_endpoint = get_agent_definition_endpoint
self.get_agent_request_status_endpoint = get_agent_request_status_endpoint
self.internal = internal
self.name = name
self.release_agent_endpoint = release_agent_endpoint
self.shared_secret = shared_secret
self.type = type
class TaskAgentCloudRequest(Model):
"""TaskAgentCloudRequest.
:param agent:
:type agent: :class:`TaskAgentReference <azure.devops.v5_0.task_agent.models.TaskAgentReference>`
:param agent_cloud_id:
:type agent_cloud_id: int
:param agent_connected_time:
:type agent_connected_time: datetime
:param agent_data:
:type agent_data: :class:`object <azure.devops.v5_0.task_agent.models.object>`
:param agent_specification:
:type agent_specification: :class:`object <azure.devops.v5_0.task_agent.models.object>`
:param pool:
:type pool: :class:`TaskAgentPoolReference <azure.devops.v5_0.task_agent.models.TaskAgentPoolReference>`
:param provisioned_time:
:type provisioned_time: datetime
:param provision_request_time:
:type provision_request_time: datetime
:param release_request_time:
:type release_request_time: datetime
:param request_id:
:type request_id: str
"""
_attribute_map = {
'agent': {'key': 'agent', 'type': 'TaskAgentReference'},
'agent_cloud_id': {'key': 'agentCloudId', 'type': 'int'},
'agent_connected_time': {'key': 'agentConnectedTime', 'type': 'iso-8601'},
'agent_data': {'key': 'agentData', 'type': 'object'},
'agent_specification': {'key': 'agentSpecification', 'type': 'object'},
'pool': {'key': 'pool', 'type': 'TaskAgentPoolReference'},
'provisioned_time': {'key': 'provisionedTime', 'type': 'iso-8601'},
'provision_request_time': {'key': 'provisionRequestTime', 'type': 'iso-8601'},
'release_request_time': {'key': 'releaseRequestTime', 'type': 'iso-8601'},
'request_id': {'key': 'requestId', 'type': 'str'}
}
def __init__(self, agent=None, agent_cloud_id=None, agent_connected_time=None, agent_data=None, agent_specification=None, pool=None, provisioned_time=None, provision_request_time=None, release_request_time=None, request_id=None):
super(TaskAgentCloudRequest, self).__init__()
self.agent = agent
self.agent_cloud_id = agent_cloud_id
self.agent_connected_time = agent_connected_time
self.agent_data = agent_data
self.agent_specification = agent_specification
self.pool = pool
self.provisioned_time = provisioned_time
self.provision_request_time = provision_request_time
self.release_request_time = release_request_time
self.request_id = request_id
class TaskAgentCloudType(Model):
"""TaskAgentCloudType.
:param display_name: Gets or sets the display name of agnet cloud type.
:type display_name: str
:param input_descriptors: Gets or sets the input descriptors
:type input_descriptors: list of :class:`InputDescriptor <azure.devops.v5_0.task_agent.models.InputDescriptor>`
:param name: Gets or sets the name of agent cloud type.
:type name: str
"""
_attribute_map = {
'display_name': {'key': 'displayName', 'type': 'str'},
'input_descriptors': {'key': 'inputDescriptors', 'type': '[InputDescriptor]'},
'name': {'key': 'name', 'type': 'str'}
}
def __init__(self, display_name=None, input_descriptors=None, name=None):
super(TaskAgentCloudType, self).__init__()
self.display_name = display_name
self.input_descriptors = input_descriptors
self.name = name
class TaskAgentDelaySource(Model):
"""TaskAgentDelaySource.
:param delays:
:type delays: list of object
:param task_agent:
:type task_agent: :class:`TaskAgentReference <azure.devops.v5_0.task_agent.models.TaskAgentReference>`
"""
_attribute_map = {
'delays': {'key': 'delays', 'type': '[object]'},
'task_agent': {'key': 'taskAgent', 'type': 'TaskAgentReference'}
}
def __init__(self, delays=None, task_agent=None):
super(TaskAgentDelaySource, self).__init__()
self.delays = delays
self.task_agent = task_agent
class TaskAgentJobRequest(Model):
"""TaskAgentJobRequest.
:param agent_delays:
:type agent_delays: list of :class:`TaskAgentDelaySource <azure.devops.v5_0.task_agent.models.TaskAgentDelaySource>`
:param agent_specification:
:type agent_specification: :class:`object <azure.devops.v5_0.task_agent.models.object>`
:param assign_time:
:type assign_time: datetime
:param data:
:type data: dict
:param definition:
:type definition: :class:`TaskOrchestrationOwner <azure.devops.v5_0.task_agent.models.TaskOrchestrationOwner>`
:param demands:
:type demands: list of :class:`object <azure.devops.v5_0.task_agent.models.object>`
:param expected_duration:
:type expected_duration: object
:param finish_time:
:type finish_time: datetime
:param host_id:
:type host_id: str
:param job_id:
:type job_id: str
:param job_name:
:type job_name: str
:param locked_until:
:type locked_until: datetime
:param matched_agents:
:type matched_agents: list of :class:`TaskAgentReference <azure.devops.v5_0.task_agent.models.TaskAgentReference>`
:param orchestration_id:
:type orchestration_id: str
:param owner:
:type owner: :class:`TaskOrchestrationOwner <azure.devops.v5_0.task_agent.models.TaskOrchestrationOwner>`
:param plan_group:
:type plan_group: str
:param plan_id:
:type plan_id: str
:param plan_type:
:type plan_type: str
:param pool_id:
:type pool_id: int
:param queue_id:
:type queue_id: int
:param queue_time:
:type queue_time: datetime
:param receive_time:
:type receive_time: datetime
:param request_id:
:type request_id: long
:param reserved_agent:
:type reserved_agent: :class:`TaskAgentReference <azure.devops.v5_0.task_agent.models.TaskAgentReference>`
:param result:
:type result: object
:param scope_id:
:type scope_id: str
:param service_owner:
:type service_owner: str
"""
_attribute_map = {
'agent_delays': {'key': 'agentDelays', 'type': '[TaskAgentDelaySource]'},
'agent_specification': {'key': 'agentSpecification', 'type': 'object'},
'assign_time': {'key': 'assignTime', 'type': 'iso-8601'},
'data': {'key': 'data', 'type': '{str}'},
'definition': {'key': 'definition', 'type': 'TaskOrchestrationOwner'},
'demands': {'key': 'demands', 'type': '[object]'},
'expected_duration': {'key': 'expectedDuration', 'type': 'object'},
'finish_time': {'key': 'finishTime', 'type': 'iso-8601'},
'host_id': {'key': 'hostId', 'type': 'str'},
'job_id': {'key': 'jobId', 'type': 'str'},
'job_name': {'key': 'jobName', 'type': 'str'},
'locked_until': {'key': 'lockedUntil', 'type': 'iso-8601'},
'matched_agents': {'key': 'matchedAgents', 'type': '[TaskAgentReference]'},
'orchestration_id': {'key': 'orchestrationId', 'type': 'str'},
'owner': {'key': 'owner', 'type': 'TaskOrchestrationOwner'},
'plan_group': {'key': 'planGroup', 'type': 'str'},
'plan_id': {'key': 'planId', 'type': 'str'},
'plan_type': {'key': 'planType', 'type': 'str'},
'pool_id': {'key': 'poolId', 'type': 'int'},
'queue_id': {'key': 'queueId', 'type': 'int'},
'queue_time': {'key': 'queueTime', 'type': 'iso-8601'},
'receive_time': {'key': 'receiveTime', 'type': 'iso-8601'},
'request_id': {'key': 'requestId', 'type': 'long'},
'reserved_agent': {'key': 'reservedAgent', 'type': 'TaskAgentReference'},
'result': {'key': 'result', 'type': 'object'},
'scope_id': {'key': 'scopeId', 'type': 'str'},
'service_owner': {'key': 'serviceOwner', 'type': 'str'}
}
def __init__(self, agent_delays=None, agent_specification=None, assign_time=None, data=None, definition=None, demands=None, expected_duration=None, finish_time=None, host_id=None, job_id=None, job_name=None, locked_until=None, matched_agents=None, orchestration_id=None, owner=None, plan_group=None, plan_id=None, plan_type=None, pool_id=None, queue_id=None, queue_time=None, receive_time=None, request_id=None, reserved_agent=None, result=None, scope_id=None, service_owner=None):
super(TaskAgentJobRequest, self).__init__()
self.agent_delays = agent_delays
self.agent_specification = agent_specification
self.assign_time = assign_time
self.data = data
self.definition = definition
self.demands = demands
self.expected_duration = expected_duration
self.finish_time = finish_time
self.host_id = host_id
self.job_id = job_id
self.job_name = job_name
self.locked_until = locked_until
self.matched_agents = matched_agents
self.orchestration_id = orchestration_id
self.owner = owner
self.plan_group = plan_group
self.plan_id = plan_id
self.plan_type = plan_type
self.pool_id = pool_id
self.queue_id = queue_id
self.queue_time = queue_time
self.receive_time = receive_time
self.request_id = request_id
self.reserved_agent = reserved_agent
self.result = result
self.scope_id = scope_id
self.service_owner = service_owner
class TaskAgentMessage(Model):
"""TaskAgentMessage.
:param body: Gets or sets the body of the message. If the <c>IV</c> property is provided the body will need to be decrypted using the <c>TaskAgentSession.EncryptionKey</c> value in addition to the <c>IV</c>.
:type body: str
:param iv: Gets or sets the intialization vector used to encrypt this message.
:type iv: str
:param message_id: Gets or sets the message identifier.
:type message_id: long
:param message_type: Gets or sets the message type, describing the data contract found in <c>TaskAgentMessage.Body</c>.
:type message_type: str
"""
_attribute_map = {
'body': {'key': 'body', 'type': 'str'},
'iv': {'key': 'iv', 'type': 'str'},
'message_id': {'key': 'messageId', 'type': 'long'},
'message_type': {'key': 'messageType', 'type': 'str'}
}
def __init__(self, body=None, iv=None, message_id=None, message_type=None):
super(TaskAgentMessage, self).__init__()
self.body = body
self.iv = iv
self.message_id = message_id
self.message_type = message_type
class TaskAgentPoolMaintenanceDefinition(Model):
"""TaskAgentPoolMaintenanceDefinition.
:param enabled: Enable maintenance
:type enabled: bool
:param id: Id
:type id: int
:param job_timeout_in_minutes: Maintenance job timeout per agent
:type job_timeout_in_minutes: int
:param max_concurrent_agents_percentage: Max percentage of agents within a pool running maintenance job at given time
:type max_concurrent_agents_percentage: int
:param options:
:type options: :class:`TaskAgentPoolMaintenanceOptions <azure.devops.v5_0.task_agent.models.TaskAgentPoolMaintenanceOptions>`
:param pool: Pool reference for the maintenance definition
:type pool: :class:`TaskAgentPoolReference <azure.devops.v5_0.task_agent.models.TaskAgentPoolReference>`
:param retention_policy:
:type retention_policy: :class:`TaskAgentPoolMaintenanceRetentionPolicy <azure.devops.v5_0.task_agent.models.TaskAgentPoolMaintenanceRetentionPolicy>`
:param schedule_setting:
:type schedule_setting: :class:`TaskAgentPoolMaintenanceSchedule <azure.devops.v5_0.task_agent.models.TaskAgentPoolMaintenanceSchedule>`
"""
_attribute_map = {
'enabled': {'key': 'enabled', 'type': 'bool'},
'id': {'key': 'id', 'type': 'int'},
'job_timeout_in_minutes': {'key': 'jobTimeoutInMinutes', 'type': 'int'},
'max_concurrent_agents_percentage': {'key': 'maxConcurrentAgentsPercentage', 'type': 'int'},
'options': {'key': 'options', 'type': 'TaskAgentPoolMaintenanceOptions'},
'pool': {'key': 'pool', 'type': 'TaskAgentPoolReference'},
'retention_policy': {'key': 'retentionPolicy', 'type': 'TaskAgentPoolMaintenanceRetentionPolicy'},
'schedule_setting': {'key': 'scheduleSetting', 'type': 'TaskAgentPoolMaintenanceSchedule'}
}
def __init__(self, enabled=None, id=None, job_timeout_in_minutes=None, max_concurrent_agents_percentage=None, options=None, pool=None, retention_policy=None, schedule_setting=None):
super(TaskAgentPoolMaintenanceDefinition, self).__init__()
self.enabled = enabled
self.id = id
self.job_timeout_in_minutes = job_timeout_in_minutes
self.max_concurrent_agents_percentage = max_concurrent_agents_percentage
self.options = options
self.pool = pool
self.retention_policy = retention_policy
self.schedule_setting = schedule_setting
class TaskAgentPoolMaintenanceJob(Model):
"""TaskAgentPoolMaintenanceJob.
:param definition_id: The maintenance definition for the maintenance job
:type definition_id: int
:param error_count: The total error counts during the maintenance job
:type error_count: int
:param finish_time: Time that the maintenance job was completed
:type finish_time: datetime
:param job_id: Id of the maintenance job
:type job_id: int
:param logs_download_url: The log download url for the maintenance job
:type logs_download_url: str
:param orchestration_id: Orchestration/Plan Id for the maintenance job
:type orchestration_id: str
:param pool: Pool reference for the maintenance job
:type pool: :class:`TaskAgentPoolReference <azure.devops.v5_0.task_agent.models.TaskAgentPoolReference>`
:param queue_time: Time that the maintenance job was queued
:type queue_time: datetime
:param requested_by: The identity that queued the maintenance job
:type requested_by: :class:`IdentityRef <azure.devops.v5_0.task_agent.models.IdentityRef>`
:param result: The maintenance job result
:type result: object
:param start_time: Time that the maintenance job was started
:type start_time: datetime
:param status: Status of the maintenance job
:type status: object
:param target_agents:
:type target_agents: list of :class:`TaskAgentPoolMaintenanceJobTargetAgent <azure.devops.v5_0.task_agent.models.TaskAgentPoolMaintenanceJobTargetAgent>`
:param warning_count: The total warning counts during the maintenance job
:type warning_count: int
"""
_attribute_map = {
'definition_id': {'key': 'definitionId', 'type': 'int'},
'error_count': {'key': 'errorCount', 'type': 'int'},
'finish_time': {'key': 'finishTime', 'type': 'iso-8601'},
'job_id': {'key': 'jobId', 'type': 'int'},
'logs_download_url': {'key': 'logsDownloadUrl', 'type': 'str'},
'orchestration_id': {'key': 'orchestrationId', 'type': 'str'},
'pool': {'key': 'pool', 'type': 'TaskAgentPoolReference'},
'queue_time': {'key': 'queueTime', 'type': 'iso-8601'},
'requested_by': {'key': 'requestedBy', 'type': 'IdentityRef'},
'result': {'key': 'result', 'type': 'object'},
'start_time': {'key': 'startTime', 'type': 'iso-8601'},
'status': {'key': 'status', 'type': 'object'},
'target_agents': {'key': 'targetAgents', 'type': '[TaskAgentPoolMaintenanceJobTargetAgent]'},
'warning_count': {'key': 'warningCount', 'type': 'int'}
}
def __init__(self, definition_id=None, error_count=None, finish_time=None, job_id=None, logs_download_url=None, orchestration_id=None, pool=None, queue_time=None, requested_by=None, result=None, start_time=None, status=None, target_agents=None, warning_count=None):
super(TaskAgentPoolMaintenanceJob, self).__init__()
self.definition_id = definition_id
self.error_count = error_count
self.finish_time = finish_time
self.job_id = job_id
self.logs_download_url = logs_download_url
self.orchestration_id = orchestration_id
self.pool = pool
self.queue_time = queue_time
self.requested_by = requested_by
self.result = result
self.start_time = start_time
self.status = status
self.target_agents = target_agents
self.warning_count = warning_count
class TaskAgentPoolMaintenanceJobTargetAgent(Model):
"""TaskAgentPoolMaintenanceJobTargetAgent.
:param agent:
:type agent: :class:`TaskAgentReference <azure.devops.v5_0.task_agent.models.TaskAgentReference>`
:param job_id:
:type job_id: int
:param result:
:type result: object
:param status:
:type status: object
"""
_attribute_map = {
'agent': {'key': 'agent', 'type': 'TaskAgentReference'},
'job_id': {'key': 'jobId', 'type': 'int'},
'result': {'key': 'result', 'type': 'object'},
'status': {'key': 'status', 'type': 'object'}
}
def __init__(self, agent=None, job_id=None, result=None, status=None):
super(TaskAgentPoolMaintenanceJobTargetAgent, self).__init__()
self.agent = agent
self.job_id = job_id
self.result = result
self.status = status
class TaskAgentPoolMaintenanceOptions(Model):
"""TaskAgentPoolMaintenanceOptions.
:param working_directory_expiration_in_days: time to consider a System.DefaultWorkingDirectory is stale
:type working_directory_expiration_in_days: int
"""
_attribute_map = {
'working_directory_expiration_in_days': {'key': 'workingDirectoryExpirationInDays', 'type': 'int'}
}
def __init__(self, working_directory_expiration_in_days=None):
super(TaskAgentPoolMaintenanceOptions, self).__init__()
self.working_directory_expiration_in_days = working_directory_expiration_in_days
class TaskAgentPoolMaintenanceRetentionPolicy(Model):
"""TaskAgentPoolMaintenanceRetentionPolicy.
:param number_of_history_records_to_keep: Number of records to keep for maintenance job executed with this definition.
:type number_of_history_records_to_keep: int
"""
_attribute_map = {
'number_of_history_records_to_keep': {'key': 'numberOfHistoryRecordsToKeep', 'type': 'int'}
}
def __init__(self, number_of_history_records_to_keep=None):
super(TaskAgentPoolMaintenanceRetentionPolicy, self).__init__()
self.number_of_history_records_to_keep = number_of_history_records_to_keep
class TaskAgentPoolMaintenanceSchedule(Model):
"""TaskAgentPoolMaintenanceSchedule.
:param days_to_build: Days for a build (flags enum for days of the week)
:type days_to_build: object
:param schedule_job_id: The Job Id of the Scheduled job that will queue the pool maintenance job.
:type schedule_job_id: str
:param start_hours: Local timezone hour to start
:type start_hours: int
:param start_minutes: Local timezone minute to start
:type start_minutes: int
:param time_zone_id: Time zone of the build schedule (string representation of the time zone id)
:type time_zone_id: str
"""
_attribute_map = {
'days_to_build': {'key': 'daysToBuild', 'type': 'object'},
'schedule_job_id': {'key': 'scheduleJobId', 'type': 'str'},
'start_hours': {'key': 'startHours', 'type': 'int'},
'start_minutes': {'key': 'startMinutes', 'type': 'int'},
'time_zone_id': {'key': 'timeZoneId', 'type': 'str'}
}
def __init__(self, days_to_build=None, schedule_job_id=None, start_hours=None, start_minutes=None, time_zone_id=None):
super(TaskAgentPoolMaintenanceSchedule, self).__init__()
self.days_to_build = days_to_build
self.schedule_job_id = schedule_job_id
self.start_hours = start_hours
self.start_minutes = start_minutes
self.time_zone_id = time_zone_id
class TaskAgentPoolReference(Model):
"""TaskAgentPoolReference.
:param id:
:type id: int
:param is_hosted: Gets or sets a value indicating whether or not this pool is managed by the service.
:type is_hosted: bool
:param name:
:type name: str
:param pool_type: Gets or sets the type of the pool
:type pool_type: object
:param scope:
:type scope: str
:param size: Gets the current size of the pool.
:type size: int
"""
_attribute_map = {
'id': {'key': 'id', 'type': 'int'},
'is_hosted': {'key': 'isHosted', 'type': 'bool'},
'name': {'key': 'name', 'type': 'str'},
'pool_type': {'key': 'poolType', 'type': 'object'},
'scope': {'key': 'scope', 'type': 'str'},
'size': {'key': 'size', 'type': 'int'}
}
def __init__(self, id=None, is_hosted=None, name=None, pool_type=None, scope=None, size=None):
super(TaskAgentPoolReference, self).__init__()
self.id = id
self.is_hosted = is_hosted
self.name = name
self.pool_type = pool_type
self.scope = scope
self.size = size
class TaskAgentPublicKey(Model):
"""TaskAgentPublicKey.
:param exponent: Gets or sets the exponent for the public key.
:type exponent: str
:param modulus: Gets or sets the modulus for the public key.
:type modulus: str
"""
_attribute_map = {
'exponent': {'key': 'exponent', 'type': 'str'},
'modulus': {'key': 'modulus', 'type': 'str'}
}
def __init__(self, exponent=None, modulus=None):
super(TaskAgentPublicKey, self).__init__()
self.exponent = exponent
self.modulus = modulus
class TaskAgentQueue(Model):
"""TaskAgentQueue.
:param id: Id of the queue
:type id: int
:param name: Name of the queue
:type name: str
:param pool: Pool reference for this queue
:type pool: :class:`TaskAgentPoolReference <azure.devops.v5_0.task_agent.models.TaskAgentPoolReference>`
:param project_id: Project Id
:type project_id: str
"""
_attribute_map = {
'id': {'key': 'id', 'type': 'int'},
'name': {'key': 'name', 'type': 'str'},
'pool': {'key': 'pool', 'type': 'TaskAgentPoolReference'},
'project_id': {'key': 'projectId', 'type': 'str'}
}
def __init__(self, id=None, name=None, pool=None, project_id=None):
super(TaskAgentQueue, self).__init__()
self.id = id
self.name = name
self.pool = pool
self.project_id = project_id
class TaskAgentReference(Model):
"""TaskAgentReference.
:param _links:
:type _links: :class:`ReferenceLinks <azure.devops.v5_0.task_agent.models.ReferenceLinks>`
:param access_point: Gets the access point of the agent.
:type access_point: str
:param enabled: Gets or sets a value indicating whether or not this agent should be enabled for job execution.
:type enabled: bool
:param id: Gets the identifier of the agent.
:type id: int
:param name: Gets the name of the agent.
:type name: str
:param os_description: Gets the OS of the agent.
:type os_description: str
:param provisioning_state: Gets or sets the current provisioning state of this agent
:type provisioning_state: str
:param status: Gets the current connectivity status of the agent.
:type status: object
:param version: Gets the version of the agent.
:type version: str
"""
_attribute_map = {
'_links': {'key': '_links', 'type': 'ReferenceLinks'},
'access_point': {'key': 'accessPoint', 'type': 'str'},
'enabled': {'key': 'enabled', 'type': 'bool'},
'id': {'key': 'id', 'type': 'int'},
'name': {'key': 'name', 'type': 'str'},
'os_description': {'key': 'osDescription', 'type': 'str'},
'provisioning_state': {'key': 'provisioningState', 'type': 'str'},
'status': {'key': 'status', 'type': 'object'},
'version': {'key': 'version', 'type': 'str'}
}
def __init__(self, _links=None, access_point=None, enabled=None, id=None, name=None, os_description=None, provisioning_state=None, status=None, version=None):
super(TaskAgentReference, self).__init__()
self._links = _links
self.access_point = access_point
self.enabled = enabled
self.id = id
self.name = name
self.os_description = os_description
self.provisioning_state = provisioning_state
self.status = status
self.version = version
class TaskAgentSession(Model):
"""TaskAgentSession.
:param agent: Gets or sets the agent which is the target of the session.
:type agent: :class:`TaskAgentReference <azure.devops.v5_0.task_agent.models.TaskAgentReference>`
:param encryption_key: Gets the key used to encrypt message traffic for this session.
:type encryption_key: :class:`TaskAgentSessionKey <azure.devops.v5_0.task_agent.models.TaskAgentSessionKey>`
:param owner_name: Gets or sets the owner name of this session. Generally this will be the machine of origination.
:type owner_name: str
:param session_id: Gets the unique identifier for this session.
:type session_id: str
:param system_capabilities:
:type system_capabilities: dict
"""
_attribute_map = {
'agent': {'key': 'agent', 'type': 'TaskAgentReference'},
'encryption_key': {'key': 'encryptionKey', 'type': 'TaskAgentSessionKey'},
'owner_name': {'key': 'ownerName', 'type': 'str'},
'session_id': {'key': 'sessionId', 'type': 'str'},
'system_capabilities': {'key': 'systemCapabilities', 'type': '{str}'}
}
def __init__(self, agent=None, encryption_key=None, owner_name=None, session_id=None, system_capabilities=None):
super(TaskAgentSession, self).__init__()
self.agent = agent
self.encryption_key = encryption_key
self.owner_name = owner_name
self.session_id = session_id
self.system_capabilities = system_capabilities
class TaskAgentSessionKey(Model):
"""TaskAgentSessionKey.
:param encrypted: Gets or sets a value indicating whether or not the key value is encrypted. If this value is true, the Value property should be decrypted using the <c>RSA</c> key exchanged with the server during registration.
:type encrypted: bool
:param value: Gets or sets the symmetric key value.
:type value: str
"""
_attribute_map = {
'encrypted': {'key': 'encrypted', 'type': 'bool'},
'value': {'key': 'value', 'type': 'str'}
}
def __init__(self, encrypted=None, value=None):
super(TaskAgentSessionKey, self).__init__()
self.encrypted = encrypted
self.value = value
class TaskAgentUpdate(Model):
"""TaskAgentUpdate.
:param current_state: The current state of this agent update
:type current_state: str
:param reason: The reason of this agent update
:type reason: :class:`TaskAgentUpdateReason <azure.devops.v5_0.task_agent.models.TaskAgentUpdateReason>`
:param requested_by: The identity that request the agent update
:type requested_by: :class:`IdentityRef <azure.devops.v5_0.task_agent.models.IdentityRef>`
:param request_time: Gets the date on which this agent update was requested.
:type request_time: datetime
:param source_version: Gets or sets the source agent version of the agent update
:type source_version: :class:`PackageVersion <azure.devops.v5_0.task_agent.models.PackageVersion>`
:param target_version: Gets or sets the target agent version of the agent update
:type target_version: :class:`PackageVersion <azure.devops.v5_0.task_agent.models.PackageVersion>`
"""
_attribute_map = {
'current_state': {'key': 'currentState', 'type': 'str'},
'reason': {'key': 'reason', 'type': 'TaskAgentUpdateReason'},
'requested_by': {'key': 'requestedBy', 'type': 'IdentityRef'},
'request_time': {'key': 'requestTime', 'type': 'iso-8601'},
'source_version': {'key': 'sourceVersion', 'type': 'PackageVersion'},
'target_version': {'key': 'targetVersion', 'type': 'PackageVersion'}
}
def __init__(self, current_state=None, reason=None, requested_by=None, request_time=None, source_version=None, target_version=None):
super(TaskAgentUpdate, self).__init__()
self.current_state = current_state
self.reason = reason
self.requested_by = requested_by
self.request_time = request_time
self.source_version = source_version
self.target_version = target_version
class TaskAgentUpdateReason(Model):
"""TaskAgentUpdateReason.
:param code:
:type code: object
"""
_attribute_map = {
'code': {'key': 'code', 'type': 'object'}
}
def __init__(self, code=None):
super(TaskAgentUpdateReason, self).__init__()
self.code = code
class TaskDefinition(Model):
"""TaskDefinition.
:param agent_execution:
:type agent_execution: :class:`TaskExecution <azure.devops.v5_0.task_agent.models.TaskExecution>`
:param author:
:type author: str
:param category:
:type category: str
:param contents_uploaded:
:type contents_uploaded: bool
:param contribution_identifier:
:type contribution_identifier: str
:param contribution_version:
:type contribution_version: str
:param data_source_bindings:
:type data_source_bindings: list of :class:`DataSourceBinding <azure.devops.v5_0.task_agent.models.DataSourceBinding>`
:param definition_type:
:type definition_type: str
:param demands:
:type demands: list of :class:`object <azure.devops.v5_0.task_agent.models.object>`
:param deprecated:
:type deprecated: bool
:param description:
:type description: str
:param disabled:
:type disabled: bool
:param execution:
:type execution: dict
:param friendly_name:
:type friendly_name: str
:param groups:
:type groups: list of :class:`TaskGroupDefinition <azure.devops.v5_0.task_agent.models.TaskGroupDefinition>`
:param help_mark_down:
:type help_mark_down: str
:param host_type:
:type host_type: str
:param icon_url:
:type icon_url: str
:param id:
:type id: str
:param inputs:
:type inputs: list of :class:`TaskInputDefinition <azure.devops.v5_0.task_agent.models.TaskInputDefinition>`
:param instance_name_format:
:type instance_name_format: str
:param minimum_agent_version:
:type minimum_agent_version: str
:param name:
:type name: str
:param output_variables:
:type output_variables: list of :class:`TaskOutputVariable <azure.devops.v5_0.task_agent.models.TaskOutputVariable>`
:param package_location:
:type package_location: str
:param package_type:
:type package_type: str
:param post_job_execution:
:type post_job_execution: dict
:param pre_job_execution:
:type pre_job_execution: dict
:param preview:
:type preview: bool
:param release_notes:
:type release_notes: str
:param runs_on:
:type runs_on: list of str
:param satisfies:
:type satisfies: list of str
:param server_owned:
:type server_owned: bool
:param show_environment_variables:
:type show_environment_variables: bool
:param source_definitions:
:type source_definitions: list of :class:`TaskSourceDefinition <azure.devops.v5_0.task_agent.models.TaskSourceDefinition>`
:param source_location:
:type source_location: str
:param version:
:type version: :class:`TaskVersion <azure.devops.v5_0.task_agent.models.TaskVersion>`
:param visibility:
:type visibility: list of str
"""
_attribute_map = {
'agent_execution': {'key': 'agentExecution', 'type': 'TaskExecution'},
'author': {'key': 'author', 'type': 'str'},
'category': {'key': 'category', 'type': 'str'},
'contents_uploaded': {'key': 'contentsUploaded', 'type': 'bool'},
'contribution_identifier': {'key': 'contributionIdentifier', 'type': 'str'},
'contribution_version': {'key': 'contributionVersion', 'type': 'str'},
'data_source_bindings': {'key': 'dataSourceBindings', 'type': '[DataSourceBinding]'},
'definition_type': {'key': 'definitionType', 'type': 'str'},
'demands': {'key': 'demands', 'type': '[object]'},
'deprecated': {'key': 'deprecated', 'type': 'bool'},
'description': {'key': 'description', 'type': 'str'},
'disabled': {'key': 'disabled', 'type': 'bool'},
'execution': {'key': 'execution', 'type': '{object}'},
'friendly_name': {'key': 'friendlyName', 'type': 'str'},
'groups': {'key': 'groups', 'type': '[TaskGroupDefinition]'},
'help_mark_down': {'key': 'helpMarkDown', 'type': 'str'},
'host_type': {'key': 'hostType', 'type': 'str'},
'icon_url': {'key': 'iconUrl', 'type': 'str'},
'id': {'key': 'id', 'type': 'str'},
'inputs': {'key': 'inputs', 'type': '[TaskInputDefinition]'},
'instance_name_format': {'key': 'instanceNameFormat', 'type': 'str'},
'minimum_agent_version': {'key': 'minimumAgentVersion', 'type': 'str'},
'name': {'key': 'name', 'type': 'str'},
'output_variables': {'key': 'outputVariables', 'type': '[TaskOutputVariable]'},
'package_location': {'key': 'packageLocation', 'type': 'str'},
'package_type': {'key': 'packageType', 'type': 'str'},
'post_job_execution': {'key': 'postJobExecution', 'type': '{object}'},
'pre_job_execution': {'key': 'preJobExecution', 'type': '{object}'},
'preview': {'key': 'preview', 'type': 'bool'},
'release_notes': {'key': 'releaseNotes', 'type': 'str'},
'runs_on': {'key': 'runsOn', 'type': '[str]'},
'satisfies': {'key': 'satisfies', 'type': '[str]'},
'server_owned': {'key': 'serverOwned', 'type': 'bool'},
'show_environment_variables': {'key': 'showEnvironmentVariables', 'type': 'bool'},
'source_definitions': {'key': 'sourceDefinitions', 'type': '[TaskSourceDefinition]'},
'source_location': {'key': 'sourceLocation', 'type': 'str'},
'version': {'key': 'version', 'type': 'TaskVersion'},
'visibility': {'key': 'visibility', 'type': '[str]'}
}
def __init__(self, agent_execution=None, author=None, category=None, contents_uploaded=None, contribution_identifier=None, contribution_version=None, data_source_bindings=None, definition_type=None, demands=None, deprecated=None, description=None, disabled=None, execution=None, friendly_name=None, groups=None, help_mark_down=None, host_type=None, icon_url=None, id=None, inputs=None, instance_name_format=None, minimum_agent_version=None, name=None, output_variables=None, package_location=None, package_type=None, post_job_execution=None, pre_job_execution=None, preview=None, release_notes=None, runs_on=None, satisfies=None, server_owned=None, show_environment_variables=None, source_definitions=None, source_location=None, version=None, visibility=None):
super(TaskDefinition, self).__init__()
self.agent_execution = agent_execution
self.author = author
self.category = category
self.contents_uploaded = contents_uploaded
self.contribution_identifier = contribution_identifier
self.contribution_version = contribution_version
self.data_source_bindings = data_source_bindings
self.definition_type = definition_type
self.demands = demands
self.deprecated = deprecated
self.description = description
self.disabled = disabled
self.execution = execution
self.friendly_name = friendly_name
self.groups = groups
self.help_mark_down = help_mark_down
self.host_type = host_type
self.icon_url = icon_url
self.id = id
self.inputs = inputs
self.instance_name_format = instance_name_format
self.minimum_agent_version = minimum_agent_version
self.name = name
self.output_variables = output_variables
self.package_location = package_location
self.package_type = package_type
self.post_job_execution = post_job_execution
self.pre_job_execution = pre_job_execution
self.preview = preview
self.release_notes = release_notes
self.runs_on = runs_on
self.satisfies = satisfies
self.server_owned = server_owned
self.show_environment_variables = show_environment_variables
self.source_definitions = source_definitions
self.source_location = source_location
self.version = version
self.visibility = visibility
class TaskDefinitionEndpoint(Model):
"""TaskDefinitionEndpoint.
:param connection_id: An ID that identifies a service connection to be used for authenticating endpoint requests.
:type connection_id: str
:param key_selector: An Json based keyselector to filter response returned by fetching the endpoint <c>Url</c>.A Json based keyselector must be prefixed with "jsonpath:". KeySelector can be used to specify the filter to get the keys for the values specified with Selector. <example> The following keyselector defines an Json for extracting nodes named 'ServiceName'. <code> endpoint.KeySelector = "jsonpath://ServiceName"; </code></example>
:type key_selector: str
:param scope: The scope as understood by Connected Services. Essentialy, a project-id for now.
:type scope: str
:param selector: An XPath/Json based selector to filter response returned by fetching the endpoint <c>Url</c>. An XPath based selector must be prefixed with the string "xpath:". A Json based selector must be prefixed with "jsonpath:". <example> The following selector defines an XPath for extracting nodes named 'ServiceName'. <code> endpoint.Selector = "xpath://ServiceName"; </code></example>
:type selector: str
:param task_id: TaskId that this endpoint belongs to.
:type task_id: str
:param url: URL to GET.
:type url: str
"""
_attribute_map = {
'connection_id': {'key': 'connectionId', 'type': 'str'},
'key_selector': {'key': 'keySelector', 'type': 'str'},
'scope': {'key': 'scope', 'type': 'str'},
'selector': {'key': 'selector', 'type': 'str'},
'task_id': {'key': 'taskId', 'type': 'str'},
'url': {'key': 'url', 'type': 'str'}
}
def __init__(self, connection_id=None, key_selector=None, scope=None, selector=None, task_id=None, url=None):
super(TaskDefinitionEndpoint, self).__init__()
self.connection_id = connection_id
self.key_selector = key_selector
self.scope = scope
self.selector = selector
self.task_id = task_id
self.url = url
class TaskDefinitionReference(Model):
"""TaskDefinitionReference.
:param definition_type: Gets or sets the definition type. Values can be 'task' or 'metaTask'.
:type definition_type: str
:param id: Gets or sets the unique identifier of task.
:type id: str
:param version_spec: Gets or sets the version specification of task.
:type version_spec: str
"""
_attribute_map = {
'definition_type': {'key': 'definitionType', 'type': 'str'},
'id': {'key': 'id', 'type': 'str'},
'version_spec': {'key': 'versionSpec', 'type': 'str'}
}
def __init__(self, definition_type=None, id=None, version_spec=None):
super(TaskDefinitionReference, self).__init__()
self.definition_type = definition_type
self.id = id
self.version_spec = version_spec
class TaskExecution(Model):
"""TaskExecution.
:param exec_task: The utility task to run. Specifying this means that this task definition is simply a meta task to call another task. This is useful for tasks that call utility tasks like powershell and commandline
:type exec_task: :class:`TaskReference <azure.devops.v5_0.task_agent.models.TaskReference>`
:param platform_instructions: If a task is going to run code, then this provides the type/script etc... information by platform. For example, it might look like. net45: { typeName: "Microsoft.TeamFoundation.Automation.Tasks.PowerShellTask", assemblyName: "Microsoft.TeamFoundation.Automation.Tasks.PowerShell.dll" } net20: { typeName: "Microsoft.TeamFoundation.Automation.Tasks.PowerShellTask", assemblyName: "Microsoft.TeamFoundation.Automation.Tasks.PowerShell.dll" } java: { jar: "powershelltask.tasks.automation.teamfoundation.microsoft.com", } node: { script: "powershellhost.js", }
:type platform_instructions: dict
"""
_attribute_map = {
'exec_task': {'key': 'execTask', 'type': 'TaskReference'},
'platform_instructions': {'key': 'platformInstructions', 'type': '{{str}}'}
}
def __init__(self, exec_task=None, platform_instructions=None):
super(TaskExecution, self).__init__()
self.exec_task = exec_task
self.platform_instructions = platform_instructions
class TaskGroup(TaskDefinition):
"""TaskGroup.
:param agent_execution:
:type agent_execution: :class:`TaskExecution <azure.devops.v5_0.task_agent.models.TaskExecution>`
:param author:
:type author: str
:param category:
:type category: str
:param contents_uploaded:
:type contents_uploaded: bool
:param contribution_identifier:
:type contribution_identifier: str
:param contribution_version:
:type contribution_version: str
:param data_source_bindings:
:type data_source_bindings: list of :class:`DataSourceBinding <azure.devops.v5_0.task_agent.models.DataSourceBinding>`
:param definition_type:
:type definition_type: str
:param demands:
:type demands: list of :class:`object <azure.devops.v5_0.task_agent.models.object>`
:param deprecated:
:type deprecated: bool
:param description:
:type description: str
:param disabled:
:type disabled: bool
:param execution:
:type execution: dict
:param friendly_name:
:type friendly_name: str
:param groups:
:type groups: list of :class:`TaskGroupDefinition <azure.devops.v5_0.task_agent.models.TaskGroupDefinition>`
:param help_mark_down:
:type help_mark_down: str
:param host_type:
:type host_type: str
:param icon_url:
:type icon_url: str
:param id:
:type id: str
:param inputs:
:type inputs: list of :class:`TaskInputDefinition <azure.devops.v5_0.task_agent.models.TaskInputDefinition>`
:param instance_name_format:
:type instance_name_format: str
:param minimum_agent_version:
:type minimum_agent_version: str
:param name:
:type name: str
:param output_variables:
:type output_variables: list of :class:`TaskOutputVariable <azure.devops.v5_0.task_agent.models.TaskOutputVariable>`
:param package_location:
:type package_location: str
:param package_type:
:type package_type: str
:param post_job_execution:
:type post_job_execution: dict
:param pre_job_execution:
:type pre_job_execution: dict
:param preview:
:type preview: bool
:param release_notes:
:type release_notes: str
:param runs_on:
:type runs_on: list of str
:param satisfies:
:type satisfies: list of str
:param server_owned:
:type server_owned: bool
:param show_environment_variables:
:type show_environment_variables: bool
:param source_definitions:
:type source_definitions: list of :class:`TaskSourceDefinition <azure.devops.v5_0.task_agent.models.TaskSourceDefinition>`
:param source_location:
:type source_location: str
:param version:
:type version: :class:`TaskVersion <azure.devops.v5_0.task_agent.models.TaskVersion>`
:param visibility:
:type visibility: list of str
:param comment: Gets or sets comment.
:type comment: str
:param created_by: Gets or sets the identity who created.
:type created_by: :class:`IdentityRef <azure.devops.v5_0.task_agent.models.IdentityRef>`
:param created_on: Gets or sets date on which it got created.
:type created_on: datetime
:param deleted: Gets or sets as 'true' to indicate as deleted, 'false' otherwise.
:type deleted: bool
:param modified_by: Gets or sets the identity who modified.
:type modified_by: :class:`IdentityRef <azure.devops.v5_0.task_agent.models.IdentityRef>`
:param modified_on: Gets or sets date on which it got modified.
:type modified_on: datetime
:param owner: Gets or sets the owner.
:type owner: str
:param parent_definition_id: Gets or sets parent task group Id. This is used while creating a draft task group.
:type parent_definition_id: str
:param revision: Gets or sets revision.
:type revision: int
:param tasks: Gets or sets the tasks.
:type tasks: list of :class:`TaskGroupStep <azure.devops.v5_0.task_agent.models.TaskGroupStep>`
"""
_attribute_map = {
'agent_execution': {'key': 'agentExecution', 'type': 'TaskExecution'},
'author': {'key': 'author', 'type': 'str'},
'category': {'key': 'category', 'type': 'str'},
'contents_uploaded': {'key': 'contentsUploaded', 'type': 'bool'},
'contribution_identifier': {'key': 'contributionIdentifier', 'type': 'str'},
'contribution_version': {'key': 'contributionVersion', 'type': 'str'},
'data_source_bindings': {'key': 'dataSourceBindings', 'type': '[DataSourceBinding]'},
'definition_type': {'key': 'definitionType', 'type': 'str'},
'demands': {'key': 'demands', 'type': '[object]'},
'deprecated': {'key': 'deprecated', 'type': 'bool'},
'description': {'key': 'description', 'type': 'str'},
'disabled': {'key': 'disabled', 'type': 'bool'},
'execution': {'key': 'execution', 'type': '{object}'},
'friendly_name': {'key': 'friendlyName', 'type': 'str'},
'groups': {'key': 'groups', 'type': '[TaskGroupDefinition]'},
'help_mark_down': {'key': 'helpMarkDown', 'type': 'str'},
'host_type': {'key': 'hostType', 'type': 'str'},
'icon_url': {'key': 'iconUrl', 'type': 'str'},
'id': {'key': 'id', 'type': 'str'},
'inputs': {'key': 'inputs', 'type': '[TaskInputDefinition]'},
'instance_name_format': {'key': 'instanceNameFormat', 'type': 'str'},
'minimum_agent_version': {'key': 'minimumAgentVersion', 'type': 'str'},
'name': {'key': 'name', 'type': 'str'},
'output_variables': {'key': 'outputVariables', 'type': '[TaskOutputVariable]'},
'package_location': {'key': 'packageLocation', 'type': 'str'},
'package_type': {'key': 'packageType', 'type': 'str'},
'post_job_execution': {'key': 'postJobExecution', 'type': '{object}'},
'pre_job_execution': {'key': 'preJobExecution', 'type': '{object}'},
'preview': {'key': 'preview', 'type': 'bool'},
'release_notes': {'key': 'releaseNotes', 'type': 'str'},
'runs_on': {'key': 'runsOn', 'type': '[str]'},
'satisfies': {'key': 'satisfies', 'type': '[str]'},
'server_owned': {'key': 'serverOwned', 'type': 'bool'},
'show_environment_variables': {'key': 'showEnvironmentVariables', 'type': 'bool'},
'source_definitions': {'key': 'sourceDefinitions', 'type': '[TaskSourceDefinition]'},
'source_location': {'key': 'sourceLocation', 'type': 'str'},
'version': {'key': 'version', 'type': 'TaskVersion'},
'visibility': {'key': 'visibility', 'type': '[str]'},
'comment': {'key': 'comment', 'type': 'str'},
'created_by': {'key': 'createdBy', 'type': 'IdentityRef'},
'created_on': {'key': 'createdOn', 'type': 'iso-8601'},
'deleted': {'key': 'deleted', 'type': 'bool'},
'modified_by': {'key': 'modifiedBy', 'type': 'IdentityRef'},
'modified_on': {'key': 'modifiedOn', 'type': 'iso-8601'},
'owner': {'key': 'owner', 'type': 'str'},
'parent_definition_id': {'key': 'parentDefinitionId', 'type': 'str'},
'revision': {'key': 'revision', 'type': 'int'},
'tasks': {'key': 'tasks', 'type': '[TaskGroupStep]'}
}
def __init__(self, agent_execution=None, author=None, category=None, contents_uploaded=None, contribution_identifier=None, contribution_version=None, data_source_bindings=None, definition_type=None, demands=None, deprecated=None, description=None, disabled=None, execution=None, friendly_name=None, groups=None, help_mark_down=None, host_type=None, icon_url=None, id=None, inputs=None, instance_name_format=None, minimum_agent_version=None, name=None, output_variables=None, package_location=None, package_type=None, post_job_execution=None, pre_job_execution=None, preview=None, release_notes=None, runs_on=None, satisfies=None, server_owned=None, show_environment_variables=None, source_definitions=None, source_location=None, version=None, visibility=None, comment=None, created_by=None, created_on=None, deleted=None, modified_by=None, modified_on=None, owner=None, parent_definition_id=None, revision=None, tasks=None):
super(TaskGroup, self).__init__(agent_execution=agent_execution, author=author, category=category, contents_uploaded=contents_uploaded, contribution_identifier=contribution_identifier, contribution_version=contribution_version, data_source_bindings=data_source_bindings, definition_type=definition_type, demands=demands, deprecated=deprecated, description=description, disabled=disabled, execution=execution, friendly_name=friendly_name, groups=groups, help_mark_down=help_mark_down, host_type=host_type, icon_url=icon_url, id=id, inputs=inputs, instance_name_format=instance_name_format, minimum_agent_version=minimum_agent_version, name=name, output_variables=output_variables, package_location=package_location, package_type=package_type, post_job_execution=post_job_execution, pre_job_execution=pre_job_execution, preview=preview, release_notes=release_notes, runs_on=runs_on, satisfies=satisfies, server_owned=server_owned, show_environment_variables=show_environment_variables, source_definitions=source_definitions, source_location=source_location, version=version, visibility=visibility)
self.comment = comment
self.created_by = created_by
self.created_on = created_on
self.deleted = deleted
self.modified_by = modified_by
self.modified_on = modified_on
self.owner = owner
self.parent_definition_id = parent_definition_id
self.revision = revision
self.tasks = tasks
class TaskGroupCreateParameter(Model):
"""TaskGroupCreateParameter.
:param author: Sets author name of the task group.
:type author: str
:param category: Sets category of the task group.
:type category: str
:param description: Sets description of the task group.
:type description: str
:param friendly_name: Sets friendly name of the task group.
:type friendly_name: str
:param icon_url: Sets url icon of the task group.
:type icon_url: str
:param inputs: Sets input for the task group.
:type inputs: list of :class:`TaskInputDefinition <azure.devops.v5_0.task_agent.models.TaskInputDefinition>`
:param instance_name_format: Sets display name of the task group.
:type instance_name_format: str
:param name: Sets name of the task group.
:type name: str
:param parent_definition_id: Sets parent task group Id. This is used while creating a draft task group.
:type parent_definition_id: str
:param runs_on: Sets RunsOn of the task group. Value can be 'Agent', 'Server' or 'DeploymentGroup'.
:type runs_on: list of str
:param tasks: Sets tasks for the task group.
:type tasks: list of :class:`TaskGroupStep <azure.devops.v5_0.task_agent.models.TaskGroupStep>`
:param version: Sets version of the task group.
:type version: :class:`TaskVersion <azure.devops.v5_0.task_agent.models.TaskVersion>`
"""
_attribute_map = {
'author': {'key': 'author', 'type': 'str'},
'category': {'key': 'category', 'type': 'str'},
'description': {'key': 'description', 'type': 'str'},
'friendly_name': {'key': 'friendlyName', 'type': 'str'},
'icon_url': {'key': 'iconUrl', 'type': 'str'},
'inputs': {'key': 'inputs', 'type': '[TaskInputDefinition]'},
'instance_name_format': {'key': 'instanceNameFormat', 'type': 'str'},
'name': {'key': 'name', 'type': 'str'},
'parent_definition_id': {'key': 'parentDefinitionId', 'type': 'str'},
'runs_on': {'key': 'runsOn', 'type': '[str]'},
'tasks': {'key': 'tasks', 'type': '[TaskGroupStep]'},
'version': {'key': 'version', 'type': 'TaskVersion'}
}
def __init__(self, author=None, category=None, description=None, friendly_name=None, icon_url=None, inputs=None, instance_name_format=None, name=None, parent_definition_id=None, runs_on=None, tasks=None, version=None):
super(TaskGroupCreateParameter, self).__init__()
self.author = author
self.category = category
self.description = description
self.friendly_name = friendly_name
self.icon_url = icon_url
self.inputs = inputs
self.instance_name_format = instance_name_format
self.name = name
self.parent_definition_id = parent_definition_id
self.runs_on = runs_on
self.tasks = tasks
self.version = version
class TaskGroupDefinition(Model):
"""TaskGroupDefinition.
:param display_name:
:type display_name: str
:param is_expanded:
:type is_expanded: bool
:param name:
:type name: str
:param tags:
:type tags: list of str
:param visible_rule:
:type visible_rule: str
"""
_attribute_map = {
'display_name': {'key': 'displayName', 'type': 'str'},
'is_expanded': {'key': 'isExpanded', 'type': 'bool'},
'name': {'key': 'name', 'type': 'str'},
'tags': {'key': 'tags', 'type': '[str]'},
'visible_rule': {'key': 'visibleRule', 'type': 'str'}
}
def __init__(self, display_name=None, is_expanded=None, name=None, tags=None, visible_rule=None):
super(TaskGroupDefinition, self).__init__()
self.display_name = display_name
self.is_expanded = is_expanded
self.name = name
self.tags = tags
self.visible_rule = visible_rule
class TaskGroupRevision(Model):
"""TaskGroupRevision.
:param changed_by:
:type changed_by: :class:`IdentityRef <azure.devops.v5_0.task_agent.models.IdentityRef>`
:param changed_date:
:type changed_date: datetime
:param change_type:
:type change_type: object
:param comment:
:type comment: str
:param file_id:
:type file_id: int
:param revision:
:type revision: int
:param task_group_id:
:type task_group_id: str
"""
_attribute_map = {
'changed_by': {'key': 'changedBy', 'type': 'IdentityRef'},
'changed_date': {'key': 'changedDate', 'type': 'iso-8601'},
'change_type': {'key': 'changeType', 'type': 'object'},
'comment': {'key': 'comment', 'type': 'str'},
'file_id': {'key': 'fileId', 'type': 'int'},
'revision': {'key': 'revision', 'type': 'int'},
'task_group_id': {'key': 'taskGroupId', 'type': 'str'}
}
def __init__(self, changed_by=None, changed_date=None, change_type=None, comment=None, file_id=None, revision=None, task_group_id=None):
super(TaskGroupRevision, self).__init__()
self.changed_by = changed_by
self.changed_date = changed_date
self.change_type = change_type
self.comment = comment
self.file_id = file_id
self.revision = revision
self.task_group_id = task_group_id
class TaskGroupStep(Model):
"""TaskGroupStep.
:param always_run: Gets or sets as 'true' to run the task always, 'false' otherwise.
:type always_run: bool
:param condition: Gets or sets condition for the task.
:type condition: str
:param continue_on_error: Gets or sets as 'true' to continue on error, 'false' otherwise.
:type continue_on_error: bool
:param display_name: Gets or sets the display name.
:type display_name: str
:param enabled: Gets or sets as task is enabled or not.
:type enabled: bool
:param environment: Gets dictionary of environment variables.
:type environment: dict
:param inputs: Gets or sets dictionary of inputs.
:type inputs: dict
:param task: Gets or sets the reference of the task.
:type task: :class:`TaskDefinitionReference <azure.devops.v5_0.task_agent.models.TaskDefinitionReference>`
:param timeout_in_minutes: Gets or sets the maximum time, in minutes, that a task is allowed to execute on agent before being cancelled by server. A zero value indicates an infinite timeout.
:type timeout_in_minutes: int
"""
_attribute_map = {
'always_run': {'key': 'alwaysRun', 'type': 'bool'},
'condition': {'key': 'condition', 'type': 'str'},
'continue_on_error': {'key': 'continueOnError', 'type': 'bool'},
'display_name': {'key': 'displayName', 'type': 'str'},
'enabled': {'key': 'enabled', 'type': 'bool'},
'environment': {'key': 'environment', 'type': '{str}'},
'inputs': {'key': 'inputs', 'type': '{str}'},
'task': {'key': 'task', 'type': 'TaskDefinitionReference'},
'timeout_in_minutes': {'key': 'timeoutInMinutes', 'type': 'int'}
}
def __init__(self, always_run=None, condition=None, continue_on_error=None, display_name=None, enabled=None, environment=None, inputs=None, task=None, timeout_in_minutes=None):
super(TaskGroupStep, self).__init__()
self.always_run = always_run
self.condition = condition
self.continue_on_error = continue_on_error
self.display_name = display_name
self.enabled = enabled
self.environment = environment
self.inputs = inputs
self.task = task
self.timeout_in_minutes = timeout_in_minutes
class TaskGroupUpdateParameter(Model):
"""TaskGroupUpdateParameter.
:param author: Sets author name of the task group.
:type author: str
:param category: Sets category of the task group.
:type category: str
:param comment: Sets comment of the task group.
:type comment: str
:param description: Sets description of the task group.
:type description: str
:param friendly_name: Sets friendly name of the task group.
:type friendly_name: str
:param icon_url: Sets url icon of the task group.
:type icon_url: str
:param id: Sets the unique identifier of this field.
:type id: str
:param inputs: Sets input for the task group.
:type inputs: list of :class:`TaskInputDefinition <azure.devops.v5_0.task_agent.models.TaskInputDefinition>`
:param instance_name_format: Sets display name of the task group.
:type instance_name_format: str
:param name: Sets name of the task group.
:type name: str
:param parent_definition_id: Gets or sets parent task group Id. This is used while creating a draft task group.
:type parent_definition_id: str
:param revision: Sets revision of the task group.
:type revision: int
:param runs_on: Sets RunsOn of the task group. Value can be 'Agent', 'Server' or 'DeploymentGroup'.
:type runs_on: list of str
:param tasks: Sets tasks for the task group.
:type tasks: list of :class:`TaskGroupStep <azure.devops.v5_0.task_agent.models.TaskGroupStep>`
:param version: Sets version of the task group.
:type version: :class:`TaskVersion <azure.devops.v5_0.task_agent.models.TaskVersion>`
"""
_attribute_map = {
'author': {'key': 'author', 'type': 'str'},
'category': {'key': 'category', 'type': 'str'},
'comment': {'key': 'comment', 'type': 'str'},
'description': {'key': 'description', 'type': 'str'},
'friendly_name': {'key': 'friendlyName', 'type': 'str'},
'icon_url': {'key': 'iconUrl', 'type': 'str'},
'id': {'key': 'id', 'type': 'str'},
'inputs': {'key': 'inputs', 'type': '[TaskInputDefinition]'},
'instance_name_format': {'key': 'instanceNameFormat', 'type': 'str'},
'name': {'key': 'name', 'type': 'str'},
'parent_definition_id': {'key': 'parentDefinitionId', 'type': 'str'},
'revision': {'key': 'revision', 'type': 'int'},
'runs_on': {'key': 'runsOn', 'type': '[str]'},
'tasks': {'key': 'tasks', 'type': '[TaskGroupStep]'},
'version': {'key': 'version', 'type': 'TaskVersion'}
}
def __init__(self, author=None, category=None, comment=None, description=None, friendly_name=None, icon_url=None, id=None, inputs=None, instance_name_format=None, name=None, parent_definition_id=None, revision=None, runs_on=None, tasks=None, version=None):
super(TaskGroupUpdateParameter, self).__init__()
self.author = author
self.category = category
self.comment = comment
self.description = description
self.friendly_name = friendly_name
self.icon_url = icon_url
self.id = id
self.inputs = inputs
self.instance_name_format = instance_name_format
self.name = name
self.parent_definition_id = parent_definition_id
self.revision = revision
self.runs_on = runs_on
self.tasks = tasks
self.version = version
class TaskHubLicenseDetails(Model):
"""TaskHubLicenseDetails.
:param enterprise_users_count:
:type enterprise_users_count: int
:param failed_to_reach_all_providers:
:type failed_to_reach_all_providers: bool
:param free_hosted_license_count:
:type free_hosted_license_count: int
:param free_license_count:
:type free_license_count: int
:param has_license_count_ever_updated:
:type has_license_count_ever_updated: bool
:param hosted_agent_minutes_free_count:
:type hosted_agent_minutes_free_count: int
:param hosted_agent_minutes_used_count:
:type hosted_agent_minutes_used_count: int
:param hosted_licenses_are_premium:
:type hosted_licenses_are_premium: bool
:param marketplace_purchased_hosted_licenses:
:type marketplace_purchased_hosted_licenses: list of :class:`MarketplacePurchasedLicense <azure.devops.v5_0.task_agent.models.MarketplacePurchasedLicense>`
:param msdn_users_count:
:type msdn_users_count: int
:param purchased_hosted_license_count: Microsoft-hosted licenses purchased from VSTS directly.
:type purchased_hosted_license_count: int
:param purchased_license_count: Self-hosted licenses purchased from VSTS directly.
:type purchased_license_count: int
:param total_hosted_license_count:
:type total_hosted_license_count: int
:param total_license_count:
:type total_license_count: int
:param total_private_license_count:
:type total_private_license_count: int
"""
_attribute_map = {
'enterprise_users_count': {'key': 'enterpriseUsersCount', 'type': 'int'},
'failed_to_reach_all_providers': {'key': 'failedToReachAllProviders', 'type': 'bool'},
'free_hosted_license_count': {'key': 'freeHostedLicenseCount', 'type': 'int'},
'free_license_count': {'key': 'freeLicenseCount', 'type': 'int'},
'has_license_count_ever_updated': {'key': 'hasLicenseCountEverUpdated', 'type': 'bool'},
'hosted_agent_minutes_free_count': {'key': 'hostedAgentMinutesFreeCount', 'type': 'int'},
'hosted_agent_minutes_used_count': {'key': 'hostedAgentMinutesUsedCount', 'type': 'int'},
'hosted_licenses_are_premium': {'key': 'hostedLicensesArePremium', 'type': 'bool'},
'marketplace_purchased_hosted_licenses': {'key': 'marketplacePurchasedHostedLicenses', 'type': '[MarketplacePurchasedLicense]'},
'msdn_users_count': {'key': 'msdnUsersCount', 'type': 'int'},
'purchased_hosted_license_count': {'key': 'purchasedHostedLicenseCount', 'type': 'int'},
'purchased_license_count': {'key': 'purchasedLicenseCount', 'type': 'int'},
'total_hosted_license_count': {'key': 'totalHostedLicenseCount', 'type': 'int'},
'total_license_count': {'key': 'totalLicenseCount', 'type': 'int'},
'total_private_license_count': {'key': 'totalPrivateLicenseCount', 'type': 'int'}
}
def __init__(self, enterprise_users_count=None, failed_to_reach_all_providers=None, free_hosted_license_count=None, free_license_count=None, has_license_count_ever_updated=None, hosted_agent_minutes_free_count=None, hosted_agent_minutes_used_count=None, hosted_licenses_are_premium=None, marketplace_purchased_hosted_licenses=None, msdn_users_count=None, purchased_hosted_license_count=None, purchased_license_count=None, total_hosted_license_count=None, total_license_count=None, total_private_license_count=None):
super(TaskHubLicenseDetails, self).__init__()
self.enterprise_users_count = enterprise_users_count
self.failed_to_reach_all_providers = failed_to_reach_all_providers
self.free_hosted_license_count = free_hosted_license_count
self.free_license_count = free_license_count
self.has_license_count_ever_updated = has_license_count_ever_updated
self.hosted_agent_minutes_free_count = hosted_agent_minutes_free_count
self.hosted_agent_minutes_used_count = hosted_agent_minutes_used_count
self.hosted_licenses_are_premium = hosted_licenses_are_premium
self.marketplace_purchased_hosted_licenses = marketplace_purchased_hosted_licenses
self.msdn_users_count = msdn_users_count
self.purchased_hosted_license_count = purchased_hosted_license_count
self.purchased_license_count = purchased_license_count
self.total_hosted_license_count = total_hosted_license_count
self.total_license_count = total_license_count
self.total_private_license_count = total_private_license_count
class TaskInputDefinitionBase(Model):
"""TaskInputDefinitionBase.
:param aliases:
:type aliases: list of str
:param default_value:
:type default_value: str
:param group_name:
:type group_name: str
:param help_mark_down:
:type help_mark_down: str
:param label:
:type label: str
:param name:
:type name: str
:param options:
:type options: dict
:param properties:
:type properties: dict
:param required:
:type required: bool
:param type:
:type type: str
:param validation:
:type validation: :class:`TaskInputValidation <azure.devops.v5_0.microsoft._team_foundation._distributed_task._common._contracts.models.TaskInputValidation>`
:param visible_rule:
:type visible_rule: str
"""
_attribute_map = {
'aliases': {'key': 'aliases', 'type': '[str]'},
'default_value': {'key': 'defaultValue', 'type': 'str'},
'group_name': {'key': 'groupName', 'type': 'str'},
'help_mark_down': {'key': 'helpMarkDown', 'type': 'str'},
'label': {'key': 'label', 'type': 'str'},
'name': {'key': 'name', 'type': 'str'},
'options': {'key': 'options', 'type': '{str}'},
'properties': {'key': 'properties', 'type': '{str}'},
'required': {'key': 'required', 'type': 'bool'},
'type': {'key': 'type', 'type': 'str'},
'validation': {'key': 'validation', 'type': 'TaskInputValidation'},
'visible_rule': {'key': 'visibleRule', 'type': 'str'}
}
def __init__(self, aliases=None, default_value=None, group_name=None, help_mark_down=None, label=None, name=None, options=None, properties=None, required=None, type=None, validation=None, visible_rule=None):
super(TaskInputDefinitionBase, self).__init__()
self.aliases = aliases
self.default_value = default_value
self.group_name = group_name
self.help_mark_down = help_mark_down
self.label = label
self.name = name
self.options = options
self.properties = properties
self.required = required
self.type = type
self.validation = validation
self.visible_rule = visible_rule
class TaskInputValidation(Model):
"""TaskInputValidation.
:param expression: Conditional expression
:type expression: str
:param message: Message explaining how user can correct if validation fails
:type message: str
"""
_attribute_map = {
'expression': {'key': 'expression', 'type': 'str'},
'message': {'key': 'message', 'type': 'str'}
}
def __init__(self, expression=None, message=None):
super(TaskInputValidation, self).__init__()
self.expression = expression
self.message = message
class TaskOrchestrationOwner(Model):
"""TaskOrchestrationOwner.
:param _links:
:type _links: :class:`ReferenceLinks <azure.devops.v5_0.task_agent.models.ReferenceLinks>`
:param id:
:type id: int
:param name:
:type name: str
"""
_attribute_map = {
'_links': {'key': '_links', 'type': 'ReferenceLinks'},
'id': {'key': 'id', 'type': 'int'},
'name': {'key': 'name', 'type': 'str'}
}
def __init__(self, _links=None, id=None, name=None):
super(TaskOrchestrationOwner, self).__init__()
self._links = _links
self.id = id
self.name = name
class TaskOutputVariable(Model):
"""TaskOutputVariable.
:param description:
:type description: str
:param name:
:type name: str
"""
_attribute_map = {
'description': {'key': 'description', 'type': 'str'},
'name': {'key': 'name', 'type': 'str'}
}
def __init__(self, description=None, name=None):
super(TaskOutputVariable, self).__init__()
self.description = description
self.name = name
class TaskPackageMetadata(Model):
"""TaskPackageMetadata.
:param type: Gets the name of the package.
:type type: str
:param url: Gets the url of the package.
:type url: str
:param version: Gets the version of the package.
:type version: str
"""
_attribute_map = {
'type': {'key': 'type', 'type': 'str'},
'url': {'key': 'url', 'type': 'str'},
'version': {'key': 'version', 'type': 'str'}
}
def __init__(self, type=None, url=None, version=None):
super(TaskPackageMetadata, self).__init__()
self.type = type
self.url = url
self.version = version
class TaskReference(Model):
"""TaskReference.
:param id:
:type id: str
:param inputs:
:type inputs: dict
:param name:
:type name: str
:param version:
:type version: str
"""
_attribute_map = {
'id': {'key': 'id', 'type': 'str'},
'inputs': {'key': 'inputs', 'type': '{str}'},
'name': {'key': 'name', 'type': 'str'},
'version': {'key': 'version', 'type': 'str'}
}
def __init__(self, id=None, inputs=None, name=None, version=None):
super(TaskReference, self).__init__()
self.id = id
self.inputs = inputs
self.name = name
self.version = version
class TaskSourceDefinitionBase(Model):
"""TaskSourceDefinitionBase.
:param auth_key:
:type auth_key: str
:param endpoint:
:type endpoint: str
:param key_selector:
:type key_selector: str
:param selector:
:type selector: str
:param target:
:type target: str
"""
_attribute_map = {
'auth_key': {'key': 'authKey', 'type': 'str'},
'endpoint': {'key': 'endpoint', 'type': 'str'},
'key_selector': {'key': 'keySelector', 'type': 'str'},
'selector': {'key': 'selector', 'type': 'str'},
'target': {'key': 'target', 'type': 'str'}
}
def __init__(self, auth_key=None, endpoint=None, key_selector=None, selector=None, target=None):
super(TaskSourceDefinitionBase, self).__init__()
self.auth_key = auth_key
self.endpoint = endpoint
self.key_selector = key_selector
self.selector = selector
self.target = target
class TaskVersion(Model):
"""TaskVersion.
:param is_test:
:type is_test: bool
:param major:
:type major: int
:param minor:
:type minor: int
:param patch:
:type patch: int
"""
_attribute_map = {
'is_test': {'key': 'isTest', 'type': 'bool'},
'major': {'key': 'major', 'type': 'int'},
'minor': {'key': 'minor', 'type': 'int'},
'patch': {'key': 'patch', 'type': 'int'}
}
def __init__(self, is_test=None, major=None, minor=None, patch=None):
super(TaskVersion, self).__init__()
self.is_test = is_test
self.major = major
self.minor = minor
self.patch = patch
class ValidationItem(Model):
"""ValidationItem.
:param is_valid: Tells whether the current input is valid or not
:type is_valid: bool
:param reason: Reason for input validation failure
:type reason: str
:param type: Type of validation item
:type type: str
:param value: Value to validate. The conditional expression to validate for the input for "expression" type Eg:eq(variables['Build.SourceBranch'], 'refs/heads/master');eq(value, 'refs/heads/master')
:type value: str
"""
_attribute_map = {
'is_valid': {'key': 'isValid', 'type': 'bool'},
'reason': {'key': 'reason', 'type': 'str'},
'type': {'key': 'type', 'type': 'str'},
'value': {'key': 'value', 'type': 'str'}
}
def __init__(self, is_valid=None, reason=None, type=None, value=None):
super(ValidationItem, self).__init__()
self.is_valid = is_valid
self.reason = reason
self.type = type
self.value = value
class VariableGroup(Model):
"""VariableGroup.
:param created_by: Gets or sets the identity who created the variable group.
:type created_by: :class:`IdentityRef <azure.devops.v5_0.task_agent.models.IdentityRef>`
:param created_on: Gets or sets the time when variable group was created.
:type created_on: datetime
:param description: Gets or sets description of the variable group.
:type description: str
:param id: Gets or sets id of the variable group.
:type id: int
:param is_shared: Indicates whether variable group is shared with other projects or not.
:type is_shared: bool
:param modified_by: Gets or sets the identity who modified the variable group.
:type modified_by: :class:`IdentityRef <azure.devops.v5_0.task_agent.models.IdentityRef>`
:param modified_on: Gets or sets the time when variable group was modified
:type modified_on: datetime
:param name: Gets or sets name of the variable group.
:type name: str
:param provider_data: Gets or sets provider data.
:type provider_data: :class:`VariableGroupProviderData <azure.devops.v5_0.task_agent.models.VariableGroupProviderData>`
:param type: Gets or sets type of the variable group.
:type type: str
:param variables: Gets or sets variables contained in the variable group.
:type variables: dict
"""
_attribute_map = {
'created_by': {'key': 'createdBy', 'type': 'IdentityRef'},
'created_on': {'key': 'createdOn', 'type': 'iso-8601'},
'description': {'key': 'description', 'type': 'str'},
'id': {'key': 'id', 'type': 'int'},
'is_shared': {'key': 'isShared', 'type': 'bool'},
'modified_by': {'key': 'modifiedBy', 'type': 'IdentityRef'},
'modified_on': {'key': 'modifiedOn', 'type': 'iso-8601'},
'name': {'key': 'name', 'type': 'str'},
'provider_data': {'key': 'providerData', 'type': 'VariableGroupProviderData'},
'type': {'key': 'type', 'type': 'str'},
'variables': {'key': 'variables', 'type': '{VariableValue}'}
}
def __init__(self, created_by=None, created_on=None, description=None, id=None, is_shared=None, modified_by=None, modified_on=None, name=None, provider_data=None, type=None, variables=None):
super(VariableGroup, self).__init__()
self.created_by = created_by
self.created_on = created_on
self.description = description
self.id = id
self.is_shared = is_shared
self.modified_by = modified_by
self.modified_on = modified_on
self.name = name
self.provider_data = provider_data
self.type = type
self.variables = variables
class VariableGroupParameters(Model):
"""VariableGroupParameters.
:param description: Sets description of the variable group.
:type description: str
:param name: Sets name of the variable group.
:type name: str
:param provider_data: Sets provider data.
:type provider_data: :class:`VariableGroupProviderData <azure.devops.v5_0.task_agent.models.VariableGroupProviderData>`
:param type: Sets type of the variable group.
:type type: str
:param variables: Sets variables contained in the variable group.
:type variables: dict
"""
_attribute_map = {
'description': {'key': 'description', 'type': 'str'},
'name': {'key': 'name', 'type': 'str'},
'provider_data': {'key': 'providerData', 'type': 'VariableGroupProviderData'},
'type': {'key': 'type', 'type': 'str'},
'variables': {'key': 'variables', 'type': '{VariableValue}'}
}
def __init__(self, description=None, name=None, provider_data=None, type=None, variables=None):
super(VariableGroupParameters, self).__init__()
self.description = description
self.name = name
self.provider_data = provider_data
self.type = type
self.variables = variables
class VariableGroupProviderData(Model):
"""VariableGroupProviderData.
"""
_attribute_map = {
}
def __init__(self):
super(VariableGroupProviderData, self).__init__()
class VariableValue(Model):
"""VariableValue.
:param is_secret:
:type is_secret: bool
:param value:
:type value: str
"""
_attribute_map = {
'is_secret': {'key': 'isSecret', 'type': 'bool'},
'value': {'key': 'value', 'type': 'str'}
}
def __init__(self, is_secret=None, value=None):
super(VariableValue, self).__init__()
self.is_secret = is_secret
self.value = value
class DataSourceBinding(DataSourceBindingBase):
"""DataSourceBinding.
:param callback_context_template: Pagination format supported by this data source(ContinuationToken/SkipTop).
:type callback_context_template: str
:param callback_required_template: Subsequent calls needed?
:type callback_required_template: str
:param data_source_name: Gets or sets the name of the data source.
:type data_source_name: str
:param endpoint_id: Gets or sets the endpoint Id.
:type endpoint_id: str
:param endpoint_url: Gets or sets the url of the service endpoint.
:type endpoint_url: str
:param headers: Gets or sets the authorization headers.
:type headers: list of :class:`AuthorizationHeader <azure.devops.v5_0.task_agent.models.AuthorizationHeader>`
:param initial_context_template: Defines the initial value of the query params
:type initial_context_template: str
:param parameters: Gets or sets the parameters for the data source.
:type parameters: dict
:param result_selector: Gets or sets the result selector.
:type result_selector: str
:param result_template: Gets or sets the result template.
:type result_template: str
:param target: Gets or sets the target of the data source.
:type target: str
"""
_attribute_map = {
'callback_context_template': {'key': 'callbackContextTemplate', 'type': 'str'},
'callback_required_template': {'key': 'callbackRequiredTemplate', 'type': 'str'},
'data_source_name': {'key': 'dataSourceName', 'type': 'str'},
'endpoint_id': {'key': 'endpointId', 'type': 'str'},
'endpoint_url': {'key': 'endpointUrl', 'type': 'str'},
'headers': {'key': 'headers', 'type': '[AuthorizationHeader]'},
'initial_context_template': {'key': 'initialContextTemplate', 'type': 'str'},
'parameters': {'key': 'parameters', 'type': '{str}'},
'result_selector': {'key': 'resultSelector', 'type': 'str'},
'result_template': {'key': 'resultTemplate', 'type': 'str'},
'target': {'key': 'target', 'type': 'str'},
}
def __init__(self, callback_context_template=None, callback_required_template=None, data_source_name=None, endpoint_id=None, endpoint_url=None, headers=None, initial_context_template=None, parameters=None, result_selector=None, result_template=None, target=None):
super(DataSourceBinding, self).__init__(callback_context_template=callback_context_template, callback_required_template=callback_required_template, data_source_name=data_source_name, endpoint_id=endpoint_id, endpoint_url=endpoint_url, headers=headers, initial_context_template=initial_context_template, parameters=parameters, result_selector=result_selector, result_template=result_template, target=target)
class DeploymentGroup(DeploymentGroupReference):
"""DeploymentGroup.
:param id: Deployment group identifier.
:type id: int
:param name: Name of the deployment group.
:type name: str
:param pool: Deployment pool in which deployment agents are registered.
:type pool: :class:`TaskAgentPoolReference <azure.devops.v5_0.task_agent.models.TaskAgentPoolReference>`
:param project: Project to which the deployment group belongs.
:type project: :class:`ProjectReference <azure.devops.v5_0.task_agent.models.ProjectReference>`
:param description: Description of the deployment group.
:type description: str
:param machine_count: Number of deployment targets in the deployment group.
:type machine_count: int
:param machines: List of deployment targets in the deployment group.
:type machines: list of :class:`DeploymentMachine <azure.devops.v5_0.task_agent.models.DeploymentMachine>`
:param machine_tags: List of unique tags across all deployment targets in the deployment group.
:type machine_tags: list of str
"""
_attribute_map = {
'id': {'key': 'id', 'type': 'int'},
'name': {'key': 'name', 'type': 'str'},
'pool': {'key': 'pool', 'type': 'TaskAgentPoolReference'},
'project': {'key': 'project', 'type': 'ProjectReference'},
'description': {'key': 'description', 'type': 'str'},
'machine_count': {'key': 'machineCount', 'type': 'int'},
'machines': {'key': 'machines', 'type': '[DeploymentMachine]'},
'machine_tags': {'key': 'machineTags', 'type': '[str]'}
}
def __init__(self, id=None, name=None, pool=None, project=None, description=None, machine_count=None, machines=None, machine_tags=None):
super(DeploymentGroup, self).__init__(id=id, name=name, pool=pool, project=project)
self.description = description
self.machine_count = machine_count
self.machines = machines
self.machine_tags = machine_tags
class DeploymentMachineGroup(DeploymentMachineGroupReference):
"""DeploymentMachineGroup.
:param id:
:type id: int
:param name:
:type name: str
:param pool:
:type pool: :class:`TaskAgentPoolReference <azure.devops.v5_0.task_agent.models.TaskAgentPoolReference>`
:param project:
:type project: :class:`ProjectReference <azure.devops.v5_0.task_agent.models.ProjectReference>`
:param machines:
:type machines: list of :class:`DeploymentMachine <azure.devops.v5_0.task_agent.models.DeploymentMachine>`
:param size:
:type size: int
"""
_attribute_map = {
'id': {'key': 'id', 'type': 'int'},
'name': {'key': 'name', 'type': 'str'},
'pool': {'key': 'pool', 'type': 'TaskAgentPoolReference'},
'project': {'key': 'project', 'type': 'ProjectReference'},
'machines': {'key': 'machines', 'type': '[DeploymentMachine]'},
'size': {'key': 'size', 'type': 'int'}
}
def __init__(self, id=None, name=None, pool=None, project=None, machines=None, size=None):
super(DeploymentMachineGroup, self).__init__(id=id, name=name, pool=pool, project=project)
self.machines = machines
self.size = size
class KubernetesServiceGroup(ServiceGroup):
"""KubernetesServiceGroup.
:param created_by:
:type created_by: :class:`IdentityRef <azure.devops.v5_0.task_agent.models.IdentityRef>`
:param created_on:
:type created_on: datetime
:param environment_reference:
:type environment_reference: :class:`EnvironmentReference <azure.devops.v5_0.task_agent.models.EnvironmentReference>`
:param id:
:type id: int
:param last_modified_by:
:type last_modified_by: :class:`IdentityRef <azure.devops.v5_0.task_agent.models.IdentityRef>`
:param last_modified_on:
:type last_modified_on: datetime
:param name:
:type name: str
:param type:
:type type: object
:param namespace:
:type namespace: str
:param service_endpoint_id:
:type service_endpoint_id: str
"""
_attribute_map = {
'created_by': {'key': 'createdBy', 'type': 'IdentityRef'},
'created_on': {'key': 'createdOn', 'type': 'iso-8601'},
'environment_reference': {'key': 'environmentReference', 'type': 'EnvironmentReference'},
'id': {'key': 'id', 'type': 'int'},
'last_modified_by': {'key': 'lastModifiedBy', 'type': 'IdentityRef'},
'last_modified_on': {'key': 'lastModifiedOn', 'type': 'iso-8601'},
'name': {'key': 'name', 'type': 'str'},
'type': {'key': 'type', 'type': 'object'},
'namespace': {'key': 'namespace', 'type': 'str'},
'service_endpoint_id': {'key': 'serviceEndpointId', 'type': 'str'}
}
def __init__(self, created_by=None, created_on=None, environment_reference=None, id=None, last_modified_by=None, last_modified_on=None, name=None, type=None, namespace=None, service_endpoint_id=None):
super(KubernetesServiceGroup, self).__init__(created_by=created_by, created_on=created_on, environment_reference=environment_reference, id=id, last_modified_by=last_modified_by, last_modified_on=last_modified_on, name=name, type=type)
self.namespace = namespace
self.service_endpoint_id = service_endpoint_id
class TaskAgent(TaskAgentReference):
"""TaskAgent.
:param _links:
:type _links: :class:`ReferenceLinks <azure.devops.v5_0.task_agent.models.ReferenceLinks>`
:param access_point: Gets the access point of the agent.
:type access_point: str
:param enabled: Gets or sets a value indicating whether or not this agent should be enabled for job execution.
:type enabled: bool
:param id: Gets the identifier of the agent.
:type id: int
:param name: Gets the name of the agent.
:type name: str
:param os_description: Gets the OS of the agent.
:type os_description: str
:param provisioning_state: Gets or sets the current provisioning state of this agent
:type provisioning_state: str
:param status: Gets the current connectivity status of the agent.
:type status: object
:param version: Gets the version of the agent.
:type version: str
:param assigned_agent_cloud_request: Gets the Agent Cloud Request that's currently associated with this agent
:type assigned_agent_cloud_request: :class:`TaskAgentCloudRequest <azure.devops.v5_0.task_agent.models.TaskAgentCloudRequest>`
:param assigned_request: Gets the request which is currently assigned to this agent.
:type assigned_request: :class:`TaskAgentJobRequest <azure.devops.v5_0.task_agent.models.TaskAgentJobRequest>`
:param authorization: Gets or sets the authorization information for this agent.
:type authorization: :class:`TaskAgentAuthorization <azure.devops.v5_0.task_agent.models.TaskAgentAuthorization>`
:param created_on: Gets the date on which this agent was created.
:type created_on: datetime
:param last_completed_request: Gets the last request which was completed by this agent.
:type last_completed_request: :class:`TaskAgentJobRequest <azure.devops.v5_0.task_agent.models.TaskAgentJobRequest>`
:param max_parallelism: Gets or sets the maximum job parallelism allowed on this host.
:type max_parallelism: int
:param pending_update: Gets the pending update for this agent.
:type pending_update: :class:`TaskAgentUpdate <azure.devops.v5_0.task_agent.models.TaskAgentUpdate>`
:param properties:
:type properties: :class:`object <azure.devops.v5_0.task_agent.models.object>`
:param status_changed_on: Gets the date on which the last connectivity status change occurred.
:type status_changed_on: datetime
:param system_capabilities:
:type system_capabilities: dict
:param user_capabilities:
:type user_capabilities: dict
"""
_attribute_map = {
'_links': {'key': '_links', 'type': 'ReferenceLinks'},
'access_point': {'key': 'accessPoint', 'type': 'str'},
'enabled': {'key': 'enabled', 'type': 'bool'},
'id': {'key': 'id', 'type': 'int'},
'name': {'key': 'name', 'type': 'str'},
'os_description': {'key': 'osDescription', 'type': 'str'},
'provisioning_state': {'key': 'provisioningState', 'type': 'str'},
'status': {'key': 'status', 'type': 'object'},
'version': {'key': 'version', 'type': 'str'},
'assigned_agent_cloud_request': {'key': 'assignedAgentCloudRequest', 'type': 'TaskAgentCloudRequest'},
'assigned_request': {'key': 'assignedRequest', 'type': 'TaskAgentJobRequest'},
'authorization': {'key': 'authorization', 'type': 'TaskAgentAuthorization'},
'created_on': {'key': 'createdOn', 'type': 'iso-8601'},
'last_completed_request': {'key': 'lastCompletedRequest', 'type': 'TaskAgentJobRequest'},
'max_parallelism': {'key': 'maxParallelism', 'type': 'int'},
'pending_update': {'key': 'pendingUpdate', 'type': 'TaskAgentUpdate'},
'properties': {'key': 'properties', 'type': 'object'},
'status_changed_on': {'key': 'statusChangedOn', 'type': 'iso-8601'},
'system_capabilities': {'key': 'systemCapabilities', 'type': '{str}'},
'user_capabilities': {'key': 'userCapabilities', 'type': '{str}'}
}
def __init__(self, _links=None, access_point=None, enabled=None, id=None, name=None, os_description=None, provisioning_state=None, status=None, version=None, assigned_agent_cloud_request=None, assigned_request=None, authorization=None, created_on=None, last_completed_request=None, max_parallelism=None, pending_update=None, properties=None, status_changed_on=None, system_capabilities=None, user_capabilities=None):
super(TaskAgent, self).__init__(_links=_links, access_point=access_point, enabled=enabled, id=id, name=name, os_description=os_description, provisioning_state=provisioning_state, status=status, version=version)
self.assigned_agent_cloud_request = assigned_agent_cloud_request
self.assigned_request = assigned_request
self.authorization = authorization
self.created_on = created_on
self.last_completed_request = last_completed_request
self.max_parallelism = max_parallelism
self.pending_update = pending_update
self.properties = properties
self.status_changed_on = status_changed_on
self.system_capabilities = system_capabilities
self.user_capabilities = user_capabilities
class TaskAgentPool(TaskAgentPoolReference):
"""TaskAgentPool.
:param id:
:type id: int
:param is_hosted: Gets or sets a value indicating whether or not this pool is managed by the service.
:type is_hosted: bool
:param name:
:type name: str
:param pool_type: Gets or sets the type of the pool
:type pool_type: object
:param scope:
:type scope: str
:param size: Gets the current size of the pool.
:type size: int
:param agent_cloud_id: Gets or sets an agentCloudId
:type agent_cloud_id: int
:param auto_provision: Gets or sets a value indicating whether or not a queue should be automatically provisioned for each project collection or not.
:type auto_provision: bool
:param auto_size: Gets or sets a value indicating whether or not the pool should autosize itself based on the Agent Cloud Provider settings
:type auto_size: bool
:param created_by: Gets the identity who created this pool. The creator of the pool is automatically added into the administrators group for the pool on creation.
:type created_by: :class:`IdentityRef <azure.devops.v5_0.task_agent.models.IdentityRef>`
:param created_on: Gets the date/time of the pool creation.
:type created_on: datetime
:param owner: Gets the identity who owns or administrates this pool.
:type owner: :class:`IdentityRef <azure.devops.v5_0.task_agent.models.IdentityRef>`
:param properties:
:type properties: :class:`object <azure.devops.v5_0.task_agent.models.object>`
"""
_attribute_map = {
'id': {'key': 'id', 'type': 'int'},
'is_hosted': {'key': 'isHosted', 'type': 'bool'},
'name': {'key': 'name', 'type': 'str'},
'pool_type': {'key': 'poolType', 'type': 'object'},
'scope': {'key': 'scope', 'type': 'str'},
'size': {'key': 'size', 'type': 'int'},
'agent_cloud_id': {'key': 'agentCloudId', 'type': 'int'},
'auto_provision': {'key': 'autoProvision', 'type': 'bool'},
'auto_size': {'key': 'autoSize', 'type': 'bool'},
'created_by': {'key': 'createdBy', 'type': 'IdentityRef'},
'created_on': {'key': 'createdOn', 'type': 'iso-8601'},
'owner': {'key': 'owner', 'type': 'IdentityRef'},
'properties': {'key': 'properties', 'type': 'object'}
}
def __init__(self, id=None, is_hosted=None, name=None, pool_type=None, scope=None, size=None, agent_cloud_id=None, auto_provision=None, auto_size=None, created_by=None, created_on=None, owner=None, properties=None):
super(TaskAgentPool, self).__init__(id=id, is_hosted=is_hosted, name=name, pool_type=pool_type, scope=scope, size=size)
self.agent_cloud_id = agent_cloud_id
self.auto_provision = auto_provision
self.auto_size = auto_size
self.created_by = created_by
self.created_on = created_on
self.owner = owner
self.properties = properties
class TaskInputDefinition(TaskInputDefinitionBase):
"""TaskInputDefinition.
:param aliases:
:type aliases: list of str
:param default_value:
:type default_value: str
:param group_name:
:type group_name: str
:param help_mark_down:
:type help_mark_down: str
:param label:
:type label: str
:param name:
:type name: str
:param options:
:type options: dict
:param properties:
:type properties: dict
:param required:
:type required: bool
:param type:
:type type: str
:param validation:
:type validation: :class:`TaskInputValidation <azure.devops.v5_0.task_agent.models.TaskInputValidation>`
:param visible_rule:
:type visible_rule: str
"""
_attribute_map = {
'aliases': {'key': 'aliases', 'type': '[str]'},
'default_value': {'key': 'defaultValue', 'type': 'str'},
'group_name': {'key': 'groupName', 'type': 'str'},
'help_mark_down': {'key': 'helpMarkDown', 'type': 'str'},
'label': {'key': 'label', 'type': 'str'},
'name': {'key': 'name', 'type': 'str'},
'options': {'key': 'options', 'type': '{str}'},
'properties': {'key': 'properties', 'type': '{str}'},
'required': {'key': 'required', 'type': 'bool'},
'type': {'key': 'type', 'type': 'str'},
'validation': {'key': 'validation', 'type': 'TaskInputValidation'},
'visible_rule': {'key': 'visibleRule', 'type': 'str'},
}
def __init__(self, aliases=None, default_value=None, group_name=None, help_mark_down=None, label=None, name=None, options=None, properties=None, required=None, type=None, validation=None, visible_rule=None):
super(TaskInputDefinition, self).__init__(aliases=aliases, default_value=default_value, group_name=group_name, help_mark_down=help_mark_down, label=label, name=name, options=options, properties=properties, required=required, type=type, validation=validation, visible_rule=visible_rule)
class TaskSourceDefinition(TaskSourceDefinitionBase):
"""TaskSourceDefinition.
:param auth_key:
:type auth_key: str
:param endpoint:
:type endpoint: str
:param key_selector:
:type key_selector: str
:param selector:
:type selector: str
:param target:
:type target: str
"""
_attribute_map = {
'auth_key': {'key': 'authKey', 'type': 'str'},
'endpoint': {'key': 'endpoint', 'type': 'str'},
'key_selector': {'key': 'keySelector', 'type': 'str'},
'selector': {'key': 'selector', 'type': 'str'},
'target': {'key': 'target', 'type': 'str'},
}
def __init__(self, auth_key=None, endpoint=None, key_selector=None, selector=None, target=None):
super(TaskSourceDefinition, self).__init__(auth_key=auth_key, endpoint=endpoint, key_selector=key_selector, selector=selector, target=target)
__all__ = [
'AadOauthTokenRequest',
'AadOauthTokenResult',
'AuthenticationSchemeReference',
'AuthorizationHeader',
'AzureManagementGroup',
'AzureManagementGroupQueryResult',
'AzureSubscription',
'AzureSubscriptionQueryResult',
'ClientCertificate',
'DataSource',
'DataSourceBindingBase',
'DataSourceDetails',
'DependencyBinding',
'DependencyData',
'DependsOn',
'DeploymentGroupCreateParameter',
'DeploymentGroupCreateParameterPoolProperty',
'DeploymentGroupMetrics',
'DeploymentGroupReference',
'DeploymentGroupUpdateParameter',
'DeploymentMachine',
'DeploymentMachineGroupReference',
'DeploymentPoolSummary',
'DeploymentTargetUpdateParameter',
'EndpointAuthorization',
'EndpointUrl',
'Environment',
'EnvironmentCreateParameter',
'EnvironmentReference',
'EnvironmentUpdateParameter',
'GraphSubjectBase',
'HelpLink',
'IdentityRef',
'InputDescriptor',
'InputValidation',
'InputValidationRequest',
'InputValue',
'InputValues',
'InputValuesError',
'KubernetesServiceGroupCreateParameters',
'MarketplacePurchasedLicense',
'MetricsColumnMetaData',
'MetricsColumnsHeader',
'MetricsRow',
'PackageMetadata',
'PackageVersion',
'ProjectReference',
'PublishTaskGroupMetadata',
'ReferenceLinks',
'ResourceLimit',
'ResourceUsage',
'ResultTransformationDetails',
'SecureFile',
'ServiceEndpoint',
'ServiceEndpointAuthenticationScheme',
'ServiceEndpointDetails',
'ServiceEndpointExecutionData',
'ServiceEndpointExecutionRecord',
'ServiceEndpointExecutionRecordsInput',
'ServiceEndpointRequest',
'ServiceEndpointRequestResult',
'ServiceEndpointType',
'ServiceGroup',
'ServiceGroupReference',
'TaskAgentAuthorization',
'TaskAgentCloud',
'TaskAgentCloudRequest',
'TaskAgentCloudType',
'TaskAgentDelaySource',
'TaskAgentJobRequest',
'TaskAgentMessage',
'TaskAgentPoolMaintenanceDefinition',
'TaskAgentPoolMaintenanceJob',
'TaskAgentPoolMaintenanceJobTargetAgent',
'TaskAgentPoolMaintenanceOptions',
'TaskAgentPoolMaintenanceRetentionPolicy',
'TaskAgentPoolMaintenanceSchedule',
'TaskAgentPoolReference',
'TaskAgentPublicKey',
'TaskAgentQueue',
'TaskAgentReference',
'TaskAgentSession',
'TaskAgentSessionKey',
'TaskAgentUpdate',
'TaskAgentUpdateReason',
'TaskDefinition',
'TaskDefinitionEndpoint',
'TaskDefinitionReference',
'TaskExecution',
'TaskGroup',
'TaskGroupCreateParameter',
'TaskGroupDefinition',
'TaskGroupRevision',
'TaskGroupStep',
'TaskGroupUpdateParameter',
'TaskHubLicenseDetails',
'TaskInputDefinitionBase',
'TaskInputValidation',
'TaskOrchestrationOwner',
'TaskOutputVariable',
'TaskPackageMetadata',
'TaskReference',
'TaskSourceDefinitionBase',
'TaskVersion',
'ValidationItem',
'VariableGroup',
'VariableGroupParameters',
'VariableGroupProviderData',
'VariableValue',
'DataSourceBinding',
'DeploymentGroup',
'DeploymentMachineGroup',
'KubernetesServiceGroup',
'TaskAgent',
'TaskAgentPool',
'TaskInputDefinition',
'TaskSourceDefinition',
]
|