1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 1360 1361 1362 1363 1364 1365 1366 1367 1368 1369 1370 1371 1372 1373 1374 1375 1376 1377 1378 1379 1380 1381 1382 1383 1384 1385 1386 1387 1388 1389 1390 1391 1392 1393 1394 1395 1396 1397 1398 1399 1400 1401 1402 1403 1404 1405 1406 1407 1408 1409 1410 1411 1412 1413 1414 1415 1416 1417 1418 1419 1420 1421 1422 1423 1424 1425 1426 1427 1428 1429 1430 1431 1432 1433 1434 1435 1436 1437 1438 1439 1440 1441 1442 1443 1444 1445 1446 1447 1448 1449 1450 1451 1452 1453 1454 1455 1456 1457 1458 1459 1460 1461 1462 1463 1464 1465 1466 1467 1468 1469 1470 1471 1472 1473 1474 1475 1476 1477 1478 1479 1480 1481 1482 1483 1484 1485 1486 1487 1488 1489 1490 1491 1492 1493 1494 1495 1496 1497 1498 1499 1500 1501 1502 1503 1504 1505 1506 1507 1508 1509 1510 1511 1512 1513 1514 1515 1516 1517 1518 1519 1520 1521 1522 1523 1524 1525 1526 1527 1528 1529 1530 1531 1532 1533 1534 1535 1536 1537 1538 1539 1540 1541 1542 1543 1544 1545 1546 1547 1548 1549 1550 1551 1552 1553 1554 1555 1556 1557 1558 1559 1560 1561 1562 1563 1564 1565 1566 1567 1568 1569 1570 1571 1572 1573 1574 1575 1576 1577 1578 1579 1580 1581 1582 1583 1584 1585 1586 1587 1588 1589 1590 1591 1592 1593 1594 1595 1596 1597 1598 1599 1600 1601 1602 1603 1604 1605 1606 1607 1608 1609 1610 1611 1612 1613 1614 1615 1616 1617 1618 1619 1620 1621 1622 1623 1624 1625 1626 1627 1628 1629 1630 1631 1632 1633 1634 1635 1636 1637 1638 1639 1640 1641 1642 1643 1644 1645 1646 1647 1648 1649 1650 1651 1652 1653 1654 1655 1656 1657 1658 1659 1660 1661 1662 1663 1664 1665 1666 1667 1668 1669 1670 1671 1672 1673 1674 1675 1676 1677 1678 1679 1680 1681 1682 1683 1684 1685 1686 1687 1688 1689 1690 1691 1692 1693 1694 1695 1696 1697 1698 1699 1700 1701 1702 1703 1704 1705 1706 1707 1708 1709 1710 1711 1712 1713 1714 1715 1716 1717 1718 1719 1720 1721 1722 1723 1724 1725 1726 1727 1728 1729 1730 1731 1732 1733 1734 1735 1736 1737 1738 1739 1740 1741 1742 1743 1744 1745 1746 1747 1748 1749 1750 1751 1752 1753 1754 1755 1756 1757 1758 1759 1760 1761 1762 1763 1764 1765 1766 1767 1768 1769 1770 1771 1772 1773 1774 1775 1776 1777 1778 1779 1780 1781 1782 1783 1784 1785 1786 1787 1788 1789 1790 1791 1792 1793 1794 1795 1796 1797 1798 1799 1800 1801 1802 1803 1804 1805 1806 1807 1808 1809 1810 1811 1812 1813 1814 1815 1816 1817 1818 1819 1820 1821 1822 1823 1824 1825 1826 1827 1828 1829 1830 1831 1832 1833 1834 1835 1836 1837 1838 1839 1840 1841 1842 1843 1844 1845 1846 1847 1848 1849 1850 1851 1852 1853 1854 1855 1856 1857 1858 1859 1860 1861 1862 1863 1864 1865 1866 1867 1868 1869 1870 1871 1872 1873 1874 1875 1876 1877 1878 1879 1880 1881 1882 1883 1884 1885 1886 1887 1888 1889 1890 1891 1892 1893 1894 1895 1896 1897 1898 1899 1900 1901 1902 1903 1904 1905 1906 1907 1908 1909 1910 1911 1912 1913 1914 1915 1916 1917 1918 1919 1920 1921 1922 1923 1924 1925 1926 1927 1928 1929 1930 1931 1932 1933 1934 1935 1936 1937 1938 1939 1940 1941 1942 1943 1944 1945 1946 1947 1948 1949 1950 1951 1952 1953 1954 1955 1956 1957 1958 1959 1960 1961 1962 1963 1964 1965 1966 1967 1968 1969 1970 1971 1972 1973 1974 1975 1976 1977 1978 1979 1980 1981 1982 1983 1984 1985 1986 1987 1988 1989 1990 1991 1992 1993 1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020 2021 2022 2023 2024 2025 2026 2027 2028 2029 2030 2031 2032 2033 2034 2035 2036 2037 2038 2039 2040 2041 2042 2043 2044 2045 2046 2047 2048 2049 2050 2051 2052 2053 2054 2055 2056 2057 2058 2059 2060 2061 2062 2063 2064 2065 2066 2067 2068 2069 2070 2071 2072 2073 2074 2075 2076 2077 2078 2079 2080 2081 2082 2083 2084 2085 2086 2087 2088 2089 2090 2091 2092 2093 2094 2095 2096 2097 2098 2099 2100 2101 2102 2103 2104 2105 2106 2107 2108 2109 2110 2111 2112 2113 2114 2115 2116 2117 2118 2119 2120 2121 2122 2123 2124 2125 2126 2127 2128 2129 2130 2131 2132 2133 2134 2135 2136 2137 2138 2139 2140 2141 2142 2143 2144 2145 2146 2147 2148 2149 2150 2151 2152 2153 2154 2155 2156 2157 2158 2159 2160 2161 2162 2163 2164 2165 2166 2167 2168 2169 2170 2171 2172 2173 2174 2175 2176 2177 2178 2179 2180 2181 2182 2183 2184 2185 2186 2187 2188 2189 2190 2191 2192 2193 2194 2195 2196 2197 2198 2199 2200 2201 2202 2203 2204 2205 2206 2207 2208 2209 2210 2211 2212 2213 2214 2215 2216 2217 2218 2219 2220 2221 2222 2223 2224 2225 2226 2227 2228 2229 2230 2231 2232 2233 2234 2235 2236 2237 2238 2239 2240 2241 2242 2243 2244 2245 2246 2247 2248 2249 2250 2251 2252 2253 2254 2255 2256 2257 2258 2259 2260 2261 2262 2263 2264 2265 2266 2267 2268 2269 2270 2271 2272 2273 2274 2275 2276 2277 2278 2279 2280 2281 2282 2283 2284 2285 2286 2287 2288 2289 2290 2291 2292 2293 2294 2295 2296 2297 2298 2299 2300 2301 2302 2303 2304 2305 2306 2307 2308 2309 2310 2311 2312 2313 2314 2315 2316 2317 2318 2319 2320 2321 2322 2323 2324 2325 2326 2327 2328 2329 2330 2331 2332 2333 2334 2335 2336 2337 2338 2339 2340 2341 2342 2343 2344 2345 2346 2347 2348 2349 2350 2351 2352 2353 2354 2355 2356 2357 2358 2359 2360 2361 2362 2363 2364 2365 2366 2367 2368 2369 2370 2371 2372 2373 2374 2375 2376 2377 2378 2379 2380 2381 2382 2383 2384 2385 2386 2387 2388 2389 2390 2391 2392 2393 2394 2395 2396 2397 2398 2399 2400 2401 2402 2403 2404 2405 2406 2407 2408 2409 2410 2411 2412 2413 2414 2415 2416 2417 2418 2419 2420 2421 2422 2423 2424 2425 2426 2427 2428 2429 2430 2431 2432 2433 2434 2435 2436 2437 2438 2439 2440 2441 2442 2443 2444 2445 2446 2447 2448 2449 2450 2451 2452 2453 2454 2455 2456 2457 2458 2459 2460 2461 2462 2463 2464 2465 2466 2467 2468 2469 2470 2471 2472 2473 2474 2475 2476 2477 2478 2479 2480 2481 2482 2483 2484 2485 2486 2487 2488 2489 2490 2491 2492 2493 2494 2495 2496 2497 2498 2499 2500 2501 2502 2503 2504 2505 2506 2507 2508 2509 2510 2511 2512 2513 2514 2515 2516 2517 2518 2519 2520 2521 2522 2523 2524 2525 2526 2527 2528 2529 2530 2531 2532 2533 2534 2535 2536 2537 2538 2539 2540 2541 2542 2543 2544 2545 2546 2547 2548 2549 2550 2551 2552 2553 2554 2555 2556 2557 2558 2559 2560 2561 2562 2563 2564 2565 2566 2567 2568 2569 2570 2571 2572 2573 2574 2575 2576 2577 2578 2579 2580 2581 2582 2583 2584 2585 2586 2587 2588 2589 2590 2591 2592 2593 2594 2595 2596 2597 2598 2599 2600 2601 2602 2603 2604 2605 2606 2607 2608 2609 2610 2611 2612 2613 2614 2615 2616 2617 2618 2619 2620 2621 2622 2623 2624 2625 2626 2627 2628 2629 2630 2631 2632 2633 2634 2635 2636 2637 2638 2639 2640 2641 2642 2643 2644 2645 2646 2647 2648 2649 2650 2651 2652 2653 2654 2655 2656 2657 2658 2659 2660 2661 2662 2663 2664 2665 2666 2667 2668 2669 2670 2671 2672 2673 2674 2675 2676 2677 2678 2679 2680 2681 2682 2683 2684 2685 2686 2687 2688 2689 2690 2691 2692 2693 2694 2695 2696 2697 2698 2699 2700 2701 2702 2703 2704 2705 2706 2707 2708 2709 2710 2711 2712 2713 2714 2715 2716 2717 2718 2719 2720 2721 2722 2723 2724 2725 2726 2727 2728 2729 2730 2731 2732 2733 2734 2735 2736 2737 2738 2739 2740 2741 2742 2743 2744 2745 2746 2747 2748 2749 2750 2751 2752 2753 2754 2755 2756 2757 2758 2759 2760 2761 2762 2763 2764 2765 2766 2767 2768 2769 2770 2771 2772 2773 2774 2775 2776 2777 2778 2779 2780 2781 2782 2783 2784 2785 2786 2787 2788 2789 2790 2791 2792 2793 2794 2795 2796 2797 2798 2799 2800 2801 2802 2803 2804 2805 2806 2807 2808 2809 2810 2811 2812 2813 2814 2815 2816 2817 2818 2819 2820 2821 2822 2823 2824 2825 2826 2827 2828 2829 2830 2831 2832 2833 2834 2835 2836 2837 2838 2839 2840 2841 2842 2843 2844 2845 2846 2847 2848 2849 2850 2851 2852 2853 2854 2855 2856 2857 2858 2859 2860 2861 2862 2863 2864 2865 2866 2867 2868 2869 2870 2871 2872 2873 2874 2875 2876 2877 2878 2879 2880 2881 2882 2883 2884 2885 2886 2887 2888 2889 2890 2891 2892 2893 2894 2895 2896 2897 2898 2899 2900 2901 2902 2903 2904 2905 2906 2907 2908 2909 2910 2911 2912 2913 2914 2915 2916 2917 2918 2919 2920 2921 2922 2923 2924 2925 2926 2927 2928 2929 2930 2931 2932 2933 2934 2935 2936 2937 2938 2939 2940 2941 2942 2943 2944 2945 2946 2947 2948 2949 2950 2951 2952 2953 2954 2955 2956 2957 2958 2959 2960 2961 2962 2963 2964 2965 2966 2967 2968 2969 2970 2971 2972 2973 2974 2975 2976 2977 2978 2979 2980 2981 2982 2983 2984 2985 2986 2987 2988 2989 2990 2991 2992 2993 2994 2995 2996 2997 2998 2999 3000 3001 3002 3003 3004 3005 3006 3007 3008 3009 3010 3011 3012 3013 3014 3015 3016 3017 3018 3019 3020 3021 3022 3023 3024 3025 3026 3027 3028 3029 3030 3031 3032 3033 3034 3035 3036 3037 3038 3039 3040 3041 3042 3043 3044 3045 3046 3047 3048 3049 3050 3051 3052 3053 3054 3055 3056 3057 3058 3059 3060 3061 3062 3063 3064 3065 3066 3067 3068 3069 3070 3071 3072 3073 3074 3075 3076 3077 3078 3079 3080 3081 3082 3083 3084 3085 3086 3087 3088 3089 3090 3091 3092 3093 3094 3095 3096 3097 3098 3099 3100 3101 3102 3103 3104 3105 3106 3107 3108 3109 3110 3111 3112 3113 3114 3115 3116 3117 3118 3119 3120 3121 3122 3123 3124 3125 3126 3127 3128 3129 3130 3131 3132 3133 3134 3135 3136 3137 3138 3139 3140 3141 3142 3143 3144 3145 3146 3147 3148 3149 3150 3151 3152 3153 3154 3155 3156 3157 3158 3159 3160 3161 3162 3163 3164 3165 3166 3167 3168 3169 3170 3171 3172 3173 3174 3175 3176 3177 3178 3179 3180 3181 3182 3183 3184 3185 3186 3187 3188 3189 3190 3191 3192 3193 3194 3195 3196 3197 3198 3199 3200 3201 3202 3203 3204 3205 3206 3207 3208 3209 3210 3211 3212 3213 3214 3215 3216 3217 3218 3219 3220 3221 3222 3223 3224 3225 3226 3227 3228 3229 3230 3231 3232 3233 3234 3235 3236 3237 3238 3239 3240 3241 3242 3243 3244 3245 3246 3247 3248 3249 3250 3251 3252 3253 3254 3255 3256 3257 3258 3259 3260 3261 3262 3263 3264 3265 3266 3267 3268 3269 3270 3271 3272 3273 3274 3275 3276 3277 3278 3279 3280 3281 3282 3283 3284 3285 3286 3287 3288 3289 3290 3291 3292 3293 3294 3295 3296 3297 3298 3299 3300 3301 3302 3303 3304 3305 3306 3307 3308 3309 3310 3311 3312 3313 3314 3315 3316 3317 3318 3319 3320 3321 3322 3323 3324 3325 3326 3327 3328 3329 3330 3331 3332 3333 3334 3335 3336 3337 3338 3339 3340 3341 3342 3343 3344 3345 3346 3347 3348 3349 3350 3351 3352 3353 3354 3355 3356 3357 3358 3359 3360 3361 3362 3363 3364 3365 3366 3367 3368 3369 3370 3371 3372 3373 3374 3375 3376 3377 3378 3379 3380 3381 3382 3383 3384 3385 3386 3387 3388 3389 3390 3391 3392 3393 3394 3395 3396 3397 3398 3399 3400 3401 3402 3403 3404 3405 3406 3407 3408 3409 3410 3411 3412 3413 3414 3415 3416 3417 3418 3419 3420 3421 3422 3423 3424 3425 3426 3427 3428 3429 3430 3431 3432 3433 3434 3435 3436 3437 3438 3439 3440 3441 3442 3443 3444 3445 3446 3447 3448 3449 3450 3451 3452 3453 3454 3455 3456 3457 3458 3459 3460 3461 3462 3463 3464 3465 3466 3467 3468 3469 3470 3471 3472 3473 3474 3475 3476 3477 3478 3479 3480 3481 3482 3483 3484 3485 3486 3487 3488 3489 3490 3491 3492 3493 3494 3495 3496 3497 3498 3499 3500 3501 3502 3503 3504 3505 3506 3507 3508 3509 3510 3511 3512 3513 3514 3515 3516 3517 3518 3519 3520 3521 3522 3523 3524 3525 3526 3527 3528 3529 3530 3531 3532 3533 3534 3535 3536 3537 3538 3539 3540 3541 3542 3543 3544 3545 3546 3547 3548 3549 3550 3551 3552 3553 3554 3555 3556 3557 3558 3559 3560 3561 3562 3563 3564 3565 3566 3567 3568 3569 3570 3571 3572 3573 3574 3575 3576 3577 3578 3579 3580 3581 3582 3583 3584 3585 3586 3587 3588 3589 3590 3591 3592 3593 3594 3595 3596 3597 3598 3599 3600 3601 3602 3603 3604 3605 3606 3607 3608 3609 3610 3611 3612 3613 3614 3615 3616 3617 3618 3619 3620 3621 3622 3623 3624 3625 3626 3627 3628 3629 3630 3631 3632 3633 3634 3635 3636 3637 3638 3639 3640 3641 3642 3643 3644 3645 3646 3647 3648 3649 3650 3651 3652 3653 3654 3655 3656 3657 3658 3659 3660 3661 3662 3663 3664 3665 3666 3667 3668 3669 3670 3671 3672 3673 3674 3675 3676 3677 3678 3679 3680 3681 3682 3683 3684 3685 3686 3687 3688 3689 3690 3691 3692 3693 3694 3695 3696 3697 3698 3699 3700 3701 3702 3703 3704 3705 3706 3707 3708 3709 3710 3711 3712 3713 3714 3715 3716 3717 3718 3719 3720 3721 3722 3723 3724 3725 3726 3727 3728 3729 3730 3731 3732 3733 3734 3735 3736 3737 3738 3739 3740 3741 3742 3743 3744 3745 3746 3747 3748 3749 3750 3751 3752 3753 3754 3755 3756 3757 3758 3759 3760 3761 3762 3763 3764 3765 3766 3767 3768 3769 3770 3771 3772 3773 3774 3775 3776 3777 3778 3779 3780 3781 3782 3783 3784 3785 3786 3787 3788 3789 3790 3791 3792 3793 3794 3795 3796 3797 3798 3799 3800 3801 3802 3803 3804 3805 3806 3807 3808 3809 3810 3811 3812 3813 3814 3815 3816 3817 3818 3819 3820 3821 3822 3823 3824 3825 3826 3827 3828 3829 3830 3831 3832 3833 3834 3835 3836 3837 3838 3839 3840 3841 3842 3843 3844 3845 3846 3847 3848 3849 3850 3851 3852 3853 3854 3855 3856 3857 3858 3859 3860 3861 3862 3863 3864 3865 3866 3867 3868 3869 3870 3871 3872 3873 3874 3875 3876 3877 3878 3879 3880 3881 3882 3883 3884 3885 3886 3887 3888 3889 3890 3891 3892 3893 3894 3895 3896 3897 3898 3899 3900 3901 3902 3903 3904 3905 3906 3907 3908 3909 3910 3911 3912 3913 3914 3915 3916 3917 3918 3919 3920 3921 3922 3923 3924 3925 3926 3927 3928 3929 3930 3931 3932 3933 3934 3935 3936 3937 3938 3939 3940 3941 3942 3943 3944 3945 3946 3947 3948 3949 3950 3951 3952 3953 3954 3955 3956 3957 3958 3959 3960 3961 3962 3963 3964 3965 3966 3967 3968 3969 3970 3971 3972 3973 3974 3975 3976 3977 3978 3979 3980 3981 3982 3983 3984 3985 3986 3987 3988 3989 3990 3991 3992 3993 3994 3995 3996 3997 3998 3999 4000 4001 4002 4003 4004 4005 4006 4007 4008 4009 4010 4011 4012 4013 4014 4015 4016 4017 4018 4019 4020 4021 4022 4023 4024 4025 4026 4027 4028 4029 4030 4031 4032 4033 4034 4035 4036 4037 4038 4039 4040 4041 4042 4043 4044 4045 4046 4047 4048 4049 4050 4051 4052 4053 4054 4055 4056 4057 4058 4059 4060 4061 4062 4063 4064 4065 4066 4067 4068 4069 4070 4071 4072 4073 4074 4075 4076 4077 4078 4079 4080 4081 4082 4083 4084 4085 4086 4087 4088 4089 4090 4091 4092 4093 4094 4095 4096 4097 4098 4099 4100 4101 4102 4103 4104 4105 4106 4107 4108 4109 4110 4111 4112 4113 4114 4115 4116 4117 4118 4119 4120 4121 4122 4123 4124 4125 4126 4127 4128 4129 4130 4131 4132 4133 4134 4135 4136 4137 4138 4139 4140 4141 4142 4143 4144 4145 4146 4147 4148 4149 4150 4151 4152 4153 4154 4155 4156 4157 4158 4159 4160 4161 4162 4163 4164 4165 4166 4167 4168 4169 4170 4171 4172 4173 4174 4175 4176 4177 4178 4179 4180 4181 4182 4183 4184 4185 4186 4187 4188 4189 4190 4191 4192 4193 4194 4195 4196 4197 4198 4199 4200 4201 4202 4203 4204 4205 4206 4207 4208 4209 4210 4211 4212 4213 4214 4215 4216 4217 4218 4219 4220 4221 4222 4223 4224 4225 4226 4227 4228 4229 4230 4231 4232 4233 4234 4235 4236 4237 4238 4239 4240 4241 4242 4243 4244 4245 4246 4247 4248 4249 4250 4251 4252 4253 4254 4255 4256 4257 4258 4259 4260 4261 4262 4263 4264 4265 4266 4267 4268 4269 4270 4271 4272 4273 4274 4275 4276 4277 4278 4279 4280 4281 4282 4283 4284 4285 4286 4287 4288 4289 4290 4291 4292 4293 4294 4295 4296 4297 4298 4299 4300 4301 4302 4303 4304 4305 4306 4307 4308 4309 4310 4311 4312 4313 4314 4315 4316 4317 4318 4319 4320 4321 4322 4323 4324 4325 4326 4327 4328 4329 4330 4331 4332 4333 4334 4335 4336 4337 4338 4339 4340 4341 4342 4343 4344 4345 4346 4347 4348 4349 4350 4351 4352 4353 4354 4355 4356 4357 4358 4359 4360 4361 4362 4363 4364 4365 4366 4367 4368 4369 4370 4371 4372 4373 4374 4375 4376 4377 4378 4379 4380 4381 4382 4383 4384 4385 4386 4387 4388 4389 4390 4391 4392 4393 4394 4395 4396 4397 4398 4399 4400 4401 4402 4403 4404 4405 4406 4407 4408 4409 4410 4411 4412 4413 4414 4415 4416 4417 4418 4419 4420 4421 4422 4423 4424 4425 4426 4427 4428 4429 4430 4431 4432 4433 4434 4435 4436 4437 4438 4439 4440 4441 4442 4443 4444 4445 4446 4447 4448 4449 4450 4451 4452 4453 4454 4455 4456 4457 4458 4459 4460 4461 4462 4463 4464 4465 4466 4467 4468 4469 4470 4471 4472 4473 4474 4475 4476 4477 4478 4479 4480 4481 4482 4483 4484 4485 4486 4487 4488 4489 4490 4491 4492 4493 4494 4495 4496 4497 4498 4499 4500 4501 4502 4503 4504 4505 4506 4507 4508 4509 4510 4511 4512 4513 4514 4515 4516 4517 4518 4519 4520 4521 4522 4523 4524 4525 4526 4527 4528 4529 4530 4531 4532 4533 4534 4535 4536 4537 4538 4539 4540 4541 4542 4543 4544 4545 4546 4547 4548 4549 4550 4551 4552 4553 4554 4555 4556 4557 4558 4559 4560 4561 4562 4563 4564 4565 4566 4567 4568 4569 4570 4571 4572 4573 4574 4575 4576 4577 4578 4579 4580 4581 4582 4583 4584 4585 4586 4587 4588 4589 4590 4591 4592 4593 4594 4595 4596 4597 4598 4599 4600 4601 4602 4603 4604 4605 4606 4607 4608 4609 4610 4611 4612 4613 4614 4615 4616 4617 4618 4619 4620 4621 4622 4623 4624 4625 4626 4627 4628 4629 4630 4631 4632 4633 4634 4635 4636 4637 4638 4639 4640 4641 4642 4643 4644 4645 4646 4647 4648 4649 4650 4651 4652 4653 4654 4655 4656 4657 4658 4659 4660 4661 4662 4663 4664 4665 4666 4667 4668 4669 4670 4671 4672 4673 4674 4675 4676 4677 4678 4679 4680 4681 4682 4683 4684 4685 4686 4687 4688 4689 4690 4691 4692 4693 4694 4695 4696 4697 4698 4699 4700 4701 4702 4703 4704 4705 4706 4707 4708 4709 4710 4711 4712 4713 4714 4715 4716 4717 4718 4719 4720 4721 4722 4723 4724 4725 4726 4727 4728 4729 4730 4731 4732 4733 4734 4735 4736 4737 4738 4739 4740 4741 4742 4743 4744 4745 4746 4747 4748 4749 4750 4751 4752 4753 4754 4755 4756 4757 4758 4759 4760 4761 4762 4763 4764 4765 4766 4767 4768 4769 4770 4771 4772 4773 4774 4775 4776 4777 4778 4779 4780 4781 4782 4783 4784 4785 4786 4787 4788 4789 4790 4791 4792 4793 4794 4795 4796 4797 4798 4799 4800 4801 4802 4803 4804 4805 4806 4807 4808 4809 4810 4811 4812 4813 4814 4815 4816 4817 4818 4819 4820 4821 4822 4823 4824 4825 4826 4827 4828 4829 4830 4831 4832 4833 4834 4835 4836 4837 4838 4839 4840 4841 4842 4843 4844 4845 4846 4847 4848 4849 4850 4851 4852 4853 4854 4855 4856 4857 4858 4859 4860 4861 4862 4863 4864 4865 4866 4867 4868 4869
|
# coding=utf-8
# pylint: disable=too-many-lines
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------
import datetime
import sys
from typing import Any, Dict, List, Optional, TYPE_CHECKING, Union
from .. import _serialization
if sys.version_info >= (3, 9):
from collections.abc import MutableMapping
else:
from typing import MutableMapping # type: ignore # pylint: disable=ungrouped-imports
if TYPE_CHECKING:
# pylint: disable=unused-import,ungrouped-imports
from .. import models as _models
JSON = MutableMapping[str, Any] # pylint: disable=unsubscriptable-object
class Resource(_serialization.Model):
"""Common fields that are returned in the response for all Azure Resource Manager resources.
Variables are only populated by the server, and will be ignored when sending a request.
:ivar id: Fully qualified resource ID for the resource. E.g.
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}". # pylint: disable=line-too-long
:vartype id: str
:ivar name: The name of the resource.
:vartype name: str
:ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or
"Microsoft.Storage/storageAccounts".
:vartype type: str
:ivar system_data: Azure Resource Manager metadata containing createdBy and modifiedBy
information.
:vartype system_data: ~azure.mgmt.avs.models.SystemData
"""
_validation = {
"id": {"readonly": True},
"name": {"readonly": True},
"type": {"readonly": True},
"system_data": {"readonly": True},
}
_attribute_map = {
"id": {"key": "id", "type": "str"},
"name": {"key": "name", "type": "str"},
"type": {"key": "type", "type": "str"},
"system_data": {"key": "systemData", "type": "SystemData"},
}
def __init__(self, **kwargs: Any) -> None:
""" """
super().__init__(**kwargs)
self.id = None
self.name = None
self.type = None
self.system_data = None
class ProxyResource(Resource):
"""The resource model definition for a Azure Resource Manager proxy resource. It will not have
tags and a location.
Variables are only populated by the server, and will be ignored when sending a request.
:ivar id: Fully qualified resource ID for the resource. E.g.
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}". # pylint: disable=line-too-long
:vartype id: str
:ivar name: The name of the resource.
:vartype name: str
:ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or
"Microsoft.Storage/storageAccounts".
:vartype type: str
:ivar system_data: Azure Resource Manager metadata containing createdBy and modifiedBy
information.
:vartype system_data: ~azure.mgmt.avs.models.SystemData
"""
class Addon(ProxyResource):
"""An addon resource.
Variables are only populated by the server, and will be ignored when sending a request.
:ivar id: Fully qualified resource ID for the resource. E.g.
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}". # pylint: disable=line-too-long
:vartype id: str
:ivar name: The name of the resource.
:vartype name: str
:ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or
"Microsoft.Storage/storageAccounts".
:vartype type: str
:ivar system_data: Azure Resource Manager metadata containing createdBy and modifiedBy
information.
:vartype system_data: ~azure.mgmt.avs.models.SystemData
:ivar properties: The resource-specific properties for this resource.
:vartype properties: ~azure.mgmt.avs.models.AddonProperties
"""
_validation = {
"id": {"readonly": True},
"name": {"readonly": True},
"type": {"readonly": True},
"system_data": {"readonly": True},
}
_attribute_map = {
"id": {"key": "id", "type": "str"},
"name": {"key": "name", "type": "str"},
"type": {"key": "type", "type": "str"},
"system_data": {"key": "systemData", "type": "SystemData"},
"properties": {"key": "properties", "type": "AddonProperties"},
}
def __init__(self, *, properties: Optional["_models.AddonProperties"] = None, **kwargs: Any) -> None:
"""
:keyword properties: The resource-specific properties for this resource.
:paramtype properties: ~azure.mgmt.avs.models.AddonProperties
"""
super().__init__(**kwargs)
self.properties = properties
class AddonProperties(_serialization.Model):
"""The properties of an addon.
You probably want to use the sub-classes and not this class directly. Known sub-classes are:
AddonArcProperties, AddonHcxProperties, AddonSrmProperties, AddonVrProperties
Variables are only populated by the server, and will be ignored when sending a request.
All required parameters must be populated in order to send to server.
:ivar addon_type: Addon type. Required. Known values are: "SRM", "VR", "HCX", and "Arc".
:vartype addon_type: str or ~azure.mgmt.avs.models.AddonType
:ivar provisioning_state: The state of the addon provisioning. Known values are: "Succeeded",
"Failed", "Canceled", "Cancelled", "Building", "Deleting", and "Updating".
:vartype provisioning_state: str or ~azure.mgmt.avs.models.AddonProvisioningState
"""
_validation = {
"addon_type": {"required": True},
"provisioning_state": {"readonly": True},
}
_attribute_map = {
"addon_type": {"key": "addonType", "type": "str"},
"provisioning_state": {"key": "provisioningState", "type": "str"},
}
_subtype_map = {
"addon_type": {
"Arc": "AddonArcProperties",
"HCX": "AddonHcxProperties",
"SRM": "AddonSrmProperties",
"VR": "AddonVrProperties",
}
}
def __init__(self, **kwargs: Any) -> None:
""" """
super().__init__(**kwargs)
self.addon_type: Optional[str] = None
self.provisioning_state = None
class AddonArcProperties(AddonProperties):
"""The properties of an Arc addon.
Variables are only populated by the server, and will be ignored when sending a request.
All required parameters must be populated in order to send to server.
:ivar addon_type: Addon type. Required. Known values are: "SRM", "VR", "HCX", and "Arc".
:vartype addon_type: str or ~azure.mgmt.avs.models.AddonType
:ivar provisioning_state: The state of the addon provisioning. Known values are: "Succeeded",
"Failed", "Canceled", "Cancelled", "Building", "Deleting", and "Updating".
:vartype provisioning_state: str or ~azure.mgmt.avs.models.AddonProvisioningState
:ivar v_center: The VMware vCenter resource ID.
:vartype v_center: str
"""
_validation = {
"addon_type": {"required": True},
"provisioning_state": {"readonly": True},
}
_attribute_map = {
"addon_type": {"key": "addonType", "type": "str"},
"provisioning_state": {"key": "provisioningState", "type": "str"},
"v_center": {"key": "vCenter", "type": "str"},
}
def __init__(self, *, v_center: Optional[str] = None, **kwargs: Any) -> None:
"""
:keyword v_center: The VMware vCenter resource ID.
:paramtype v_center: str
"""
super().__init__(**kwargs)
self.addon_type: str = "Arc"
self.v_center = v_center
class AddonHcxProperties(AddonProperties):
"""The properties of an HCX addon.
Variables are only populated by the server, and will be ignored when sending a request.
All required parameters must be populated in order to send to server.
:ivar addon_type: Addon type. Required. Known values are: "SRM", "VR", "HCX", and "Arc".
:vartype addon_type: str or ~azure.mgmt.avs.models.AddonType
:ivar provisioning_state: The state of the addon provisioning. Known values are: "Succeeded",
"Failed", "Canceled", "Cancelled", "Building", "Deleting", and "Updating".
:vartype provisioning_state: str or ~azure.mgmt.avs.models.AddonProvisioningState
:ivar offer: The HCX offer, example VMware MaaS Cloud Provider (Enterprise). Required.
:vartype offer: str
"""
_validation = {
"addon_type": {"required": True},
"provisioning_state": {"readonly": True},
"offer": {"required": True},
}
_attribute_map = {
"addon_type": {"key": "addonType", "type": "str"},
"provisioning_state": {"key": "provisioningState", "type": "str"},
"offer": {"key": "offer", "type": "str"},
}
def __init__(self, *, offer: str, **kwargs: Any) -> None:
"""
:keyword offer: The HCX offer, example VMware MaaS Cloud Provider (Enterprise). Required.
:paramtype offer: str
"""
super().__init__(**kwargs)
self.addon_type: str = "HCX"
self.offer = offer
class AddonList(_serialization.Model):
"""The response of a Addon list operation.
All required parameters must be populated in order to send to server.
:ivar value: The Addon items on this page. Required.
:vartype value: list[~azure.mgmt.avs.models.Addon]
:ivar next_link: The link to the next page of items.
:vartype next_link: str
"""
_validation = {
"value": {"required": True},
}
_attribute_map = {
"value": {"key": "value", "type": "[Addon]"},
"next_link": {"key": "nextLink", "type": "str"},
}
def __init__(self, *, value: List["_models.Addon"], next_link: Optional[str] = None, **kwargs: Any) -> None:
"""
:keyword value: The Addon items on this page. Required.
:paramtype value: list[~azure.mgmt.avs.models.Addon]
:keyword next_link: The link to the next page of items.
:paramtype next_link: str
"""
super().__init__(**kwargs)
self.value = value
self.next_link = next_link
class AddonSrmProperties(AddonProperties):
"""The properties of a Site Recovery Manager (SRM) addon.
Variables are only populated by the server, and will be ignored when sending a request.
All required parameters must be populated in order to send to server.
:ivar addon_type: Addon type. Required. Known values are: "SRM", "VR", "HCX", and "Arc".
:vartype addon_type: str or ~azure.mgmt.avs.models.AddonType
:ivar provisioning_state: The state of the addon provisioning. Known values are: "Succeeded",
"Failed", "Canceled", "Cancelled", "Building", "Deleting", and "Updating".
:vartype provisioning_state: str or ~azure.mgmt.avs.models.AddonProvisioningState
:ivar license_key: The Site Recovery Manager (SRM) license.
:vartype license_key: str
"""
_validation = {
"addon_type": {"required": True},
"provisioning_state": {"readonly": True},
}
_attribute_map = {
"addon_type": {"key": "addonType", "type": "str"},
"provisioning_state": {"key": "provisioningState", "type": "str"},
"license_key": {"key": "licenseKey", "type": "str"},
}
def __init__(self, *, license_key: Optional[str] = None, **kwargs: Any) -> None:
"""
:keyword license_key: The Site Recovery Manager (SRM) license.
:paramtype license_key: str
"""
super().__init__(**kwargs)
self.addon_type: str = "SRM"
self.license_key = license_key
class AddonVrProperties(AddonProperties):
"""The properties of a vSphere Replication (VR) addon.
Variables are only populated by the server, and will be ignored when sending a request.
All required parameters must be populated in order to send to server.
:ivar addon_type: Addon type. Required. Known values are: "SRM", "VR", "HCX", and "Arc".
:vartype addon_type: str or ~azure.mgmt.avs.models.AddonType
:ivar provisioning_state: The state of the addon provisioning. Known values are: "Succeeded",
"Failed", "Canceled", "Cancelled", "Building", "Deleting", and "Updating".
:vartype provisioning_state: str or ~azure.mgmt.avs.models.AddonProvisioningState
:ivar vrs_count: The vSphere Replication Server (VRS) count. Required.
:vartype vrs_count: int
"""
_validation = {
"addon_type": {"required": True},
"provisioning_state": {"readonly": True},
"vrs_count": {"required": True},
}
_attribute_map = {
"addon_type": {"key": "addonType", "type": "str"},
"provisioning_state": {"key": "provisioningState", "type": "str"},
"vrs_count": {"key": "vrsCount", "type": "int"},
}
def __init__(self, *, vrs_count: int, **kwargs: Any) -> None:
"""
:keyword vrs_count: The vSphere Replication Server (VRS) count. Required.
:paramtype vrs_count: int
"""
super().__init__(**kwargs)
self.addon_type: str = "VR"
self.vrs_count = vrs_count
class AdminCredentials(_serialization.Model):
"""Administrative credentials for accessing vCenter and NSX-T.
Variables are only populated by the server, and will be ignored when sending a request.
:ivar nsxt_username: NSX-T Manager username.
:vartype nsxt_username: str
:ivar nsxt_password: NSX-T Manager password.
:vartype nsxt_password: str
:ivar vcenter_username: vCenter admin username.
:vartype vcenter_username: str
:ivar vcenter_password: vCenter admin password.
:vartype vcenter_password: str
"""
_validation = {
"nsxt_username": {"readonly": True},
"nsxt_password": {"readonly": True},
"vcenter_username": {"readonly": True},
"vcenter_password": {"readonly": True},
}
_attribute_map = {
"nsxt_username": {"key": "nsxtUsername", "type": "str"},
"nsxt_password": {"key": "nsxtPassword", "type": "str"},
"vcenter_username": {"key": "vcenterUsername", "type": "str"},
"vcenter_password": {"key": "vcenterPassword", "type": "str"},
}
def __init__(self, **kwargs: Any) -> None:
""" """
super().__init__(**kwargs)
self.nsxt_username = None
self.nsxt_password = None
self.vcenter_username = None
self.vcenter_password = None
class AvailabilityProperties(_serialization.Model):
"""The properties describing private cloud availability zone distribution.
:ivar strategy: The availability strategy for the private cloud. Known values are: "SingleZone"
and "DualZone".
:vartype strategy: str or ~azure.mgmt.avs.models.AvailabilityStrategy
:ivar zone: The primary availability zone for the private cloud.
:vartype zone: int
:ivar secondary_zone: The secondary availability zone for the private cloud.
:vartype secondary_zone: int
"""
_attribute_map = {
"strategy": {"key": "strategy", "type": "str"},
"zone": {"key": "zone", "type": "int"},
"secondary_zone": {"key": "secondaryZone", "type": "int"},
}
def __init__(
self,
*,
strategy: Optional[Union[str, "_models.AvailabilityStrategy"]] = None,
zone: Optional[int] = None,
secondary_zone: Optional[int] = None,
**kwargs: Any
) -> None:
"""
:keyword strategy: The availability strategy for the private cloud. Known values are:
"SingleZone" and "DualZone".
:paramtype strategy: str or ~azure.mgmt.avs.models.AvailabilityStrategy
:keyword zone: The primary availability zone for the private cloud.
:paramtype zone: int
:keyword secondary_zone: The secondary availability zone for the private cloud.
:paramtype secondary_zone: int
"""
super().__init__(**kwargs)
self.strategy = strategy
self.zone = zone
self.secondary_zone = secondary_zone
class Circuit(_serialization.Model):
"""An ExpressRoute Circuit.
Variables are only populated by the server, and will be ignored when sending a request.
:ivar primary_subnet: CIDR of primary subnet.
:vartype primary_subnet: str
:ivar secondary_subnet: CIDR of secondary subnet.
:vartype secondary_subnet: str
:ivar express_route_id: Identifier of the ExpressRoute Circuit (Microsoft Colo only).
:vartype express_route_id: str
:ivar express_route_private_peering_id: ExpressRoute Circuit private peering identifier.
:vartype express_route_private_peering_id: str
"""
_validation = {
"primary_subnet": {"readonly": True},
"secondary_subnet": {"readonly": True},
"express_route_id": {"readonly": True},
"express_route_private_peering_id": {"readonly": True},
}
_attribute_map = {
"primary_subnet": {"key": "primarySubnet", "type": "str"},
"secondary_subnet": {"key": "secondarySubnet", "type": "str"},
"express_route_id": {"key": "expressRouteID", "type": "str"},
"express_route_private_peering_id": {"key": "expressRoutePrivatePeeringID", "type": "str"},
}
def __init__(self, **kwargs: Any) -> None:
""" """
super().__init__(**kwargs)
self.primary_subnet = None
self.secondary_subnet = None
self.express_route_id = None
self.express_route_private_peering_id = None
class CloudLink(ProxyResource):
"""A cloud link resource.
Variables are only populated by the server, and will be ignored when sending a request.
:ivar id: Fully qualified resource ID for the resource. E.g.
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}". # pylint: disable=line-too-long
:vartype id: str
:ivar name: The name of the resource.
:vartype name: str
:ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or
"Microsoft.Storage/storageAccounts".
:vartype type: str
:ivar system_data: Azure Resource Manager metadata containing createdBy and modifiedBy
information.
:vartype system_data: ~azure.mgmt.avs.models.SystemData
:ivar provisioning_state: The provisioning state of the resource. Known values are:
"Succeeded", "Failed", and "Canceled".
:vartype provisioning_state: str or ~azure.mgmt.avs.models.CloudLinkProvisioningState
:ivar status: The state of the cloud link. Known values are: "Active", "Building", "Deleting",
"Failed", and "Disconnected".
:vartype status: str or ~azure.mgmt.avs.models.CloudLinkStatus
:ivar linked_cloud: Identifier of the other private cloud participating in the link.
:vartype linked_cloud: str
"""
_validation = {
"id": {"readonly": True},
"name": {"readonly": True},
"type": {"readonly": True},
"system_data": {"readonly": True},
"provisioning_state": {"readonly": True},
"status": {"readonly": True},
}
_attribute_map = {
"id": {"key": "id", "type": "str"},
"name": {"key": "name", "type": "str"},
"type": {"key": "type", "type": "str"},
"system_data": {"key": "systemData", "type": "SystemData"},
"provisioning_state": {"key": "properties.provisioningState", "type": "str"},
"status": {"key": "properties.status", "type": "str"},
"linked_cloud": {"key": "properties.linkedCloud", "type": "str"},
}
def __init__(self, *, linked_cloud: Optional[str] = None, **kwargs: Any) -> None:
"""
:keyword linked_cloud: Identifier of the other private cloud participating in the link.
:paramtype linked_cloud: str
"""
super().__init__(**kwargs)
self.provisioning_state = None
self.status = None
self.linked_cloud = linked_cloud
class CloudLinkList(_serialization.Model):
"""The response of a CloudLink list operation.
All required parameters must be populated in order to send to server.
:ivar value: The CloudLink items on this page. Required.
:vartype value: list[~azure.mgmt.avs.models.CloudLink]
:ivar next_link: The link to the next page of items.
:vartype next_link: str
"""
_validation = {
"value": {"required": True},
}
_attribute_map = {
"value": {"key": "value", "type": "[CloudLink]"},
"next_link": {"key": "nextLink", "type": "str"},
}
def __init__(self, *, value: List["_models.CloudLink"], next_link: Optional[str] = None, **kwargs: Any) -> None:
"""
:keyword value: The CloudLink items on this page. Required.
:paramtype value: list[~azure.mgmt.avs.models.CloudLink]
:keyword next_link: The link to the next page of items.
:paramtype next_link: str
"""
super().__init__(**kwargs)
self.value = value
self.next_link = next_link
class Cluster(ProxyResource):
"""A cluster resource.
Variables are only populated by the server, and will be ignored when sending a request.
All required parameters must be populated in order to send to server.
:ivar id: Fully qualified resource ID for the resource. E.g.
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}". # pylint: disable=line-too-long
:vartype id: str
:ivar name: The name of the resource.
:vartype name: str
:ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or
"Microsoft.Storage/storageAccounts".
:vartype type: str
:ivar system_data: Azure Resource Manager metadata containing createdBy and modifiedBy
information.
:vartype system_data: ~azure.mgmt.avs.models.SystemData
:ivar sku: The SKU (Stock Keeping Unit) assigned to this resource. Required.
:vartype sku: ~azure.mgmt.avs.models.Sku
:ivar cluster_size: The cluster size.
:vartype cluster_size: int
:ivar provisioning_state: The state of the cluster provisioning. Known values are: "Succeeded",
"Failed", "Canceled", "Cancelled", "Deleting", and "Updating".
:vartype provisioning_state: str or ~azure.mgmt.avs.models.ClusterProvisioningState
:ivar cluster_id: The identity.
:vartype cluster_id: int
:ivar hosts: The hosts.
:vartype hosts: list[str]
:ivar vsan_datastore_name: Name of the vsan datastore associated with the cluster.
:vartype vsan_datastore_name: str
"""
_validation = {
"id": {"readonly": True},
"name": {"readonly": True},
"type": {"readonly": True},
"system_data": {"readonly": True},
"sku": {"required": True},
"provisioning_state": {"readonly": True},
"cluster_id": {"readonly": True},
}
_attribute_map = {
"id": {"key": "id", "type": "str"},
"name": {"key": "name", "type": "str"},
"type": {"key": "type", "type": "str"},
"system_data": {"key": "systemData", "type": "SystemData"},
"sku": {"key": "sku", "type": "Sku"},
"cluster_size": {"key": "properties.clusterSize", "type": "int"},
"provisioning_state": {"key": "properties.provisioningState", "type": "str"},
"cluster_id": {"key": "properties.clusterId", "type": "int"},
"hosts": {"key": "properties.hosts", "type": "[str]"},
"vsan_datastore_name": {"key": "properties.vsanDatastoreName", "type": "str"},
}
def __init__(
self,
*,
sku: "_models.Sku",
cluster_size: Optional[int] = None,
hosts: Optional[List[str]] = None,
vsan_datastore_name: Optional[str] = None,
**kwargs: Any
) -> None:
"""
:keyword sku: The SKU (Stock Keeping Unit) assigned to this resource. Required.
:paramtype sku: ~azure.mgmt.avs.models.Sku
:keyword cluster_size: The cluster size.
:paramtype cluster_size: int
:keyword hosts: The hosts.
:paramtype hosts: list[str]
:keyword vsan_datastore_name: Name of the vsan datastore associated with the cluster.
:paramtype vsan_datastore_name: str
"""
super().__init__(**kwargs)
self.sku = sku
self.cluster_size = cluster_size
self.provisioning_state = None
self.cluster_id = None
self.hosts = hosts
self.vsan_datastore_name = vsan_datastore_name
class ClusterList(_serialization.Model):
"""The response of a Cluster list operation.
All required parameters must be populated in order to send to server.
:ivar value: The Cluster items on this page. Required.
:vartype value: list[~azure.mgmt.avs.models.Cluster]
:ivar next_link: The link to the next page of items.
:vartype next_link: str
"""
_validation = {
"value": {"required": True},
}
_attribute_map = {
"value": {"key": "value", "type": "[Cluster]"},
"next_link": {"key": "nextLink", "type": "str"},
}
def __init__(self, *, value: List["_models.Cluster"], next_link: Optional[str] = None, **kwargs: Any) -> None:
"""
:keyword value: The Cluster items on this page. Required.
:paramtype value: list[~azure.mgmt.avs.models.Cluster]
:keyword next_link: The link to the next page of items.
:paramtype next_link: str
"""
super().__init__(**kwargs)
self.value = value
self.next_link = next_link
class ClusterUpdate(_serialization.Model):
"""An update of a cluster resource.
:ivar sku: The SKU (Stock Keeping Unit) assigned to this resource.
:vartype sku: ~azure.mgmt.avs.models.Sku
:ivar cluster_size: The cluster size.
:vartype cluster_size: int
:ivar hosts: The hosts.
:vartype hosts: list[str]
"""
_attribute_map = {
"sku": {"key": "sku", "type": "Sku"},
"cluster_size": {"key": "properties.clusterSize", "type": "int"},
"hosts": {"key": "properties.hosts", "type": "[str]"},
}
def __init__(
self,
*,
sku: Optional["_models.Sku"] = None,
cluster_size: Optional[int] = None,
hosts: Optional[List[str]] = None,
**kwargs: Any
) -> None:
"""
:keyword sku: The SKU (Stock Keeping Unit) assigned to this resource.
:paramtype sku: ~azure.mgmt.avs.models.Sku
:keyword cluster_size: The cluster size.
:paramtype cluster_size: int
:keyword hosts: The hosts.
:paramtype hosts: list[str]
"""
super().__init__(**kwargs)
self.sku = sku
self.cluster_size = cluster_size
self.hosts = hosts
class ClusterZone(_serialization.Model):
"""Zone and associated hosts info.
Variables are only populated by the server, and will be ignored when sending a request.
:ivar hosts: List of hosts belonging to the availability zone in a cluster.
:vartype hosts: list[str]
:ivar zone: Availability zone identifier.
:vartype zone: str
"""
_validation = {
"hosts": {"readonly": True},
"zone": {"readonly": True},
}
_attribute_map = {
"hosts": {"key": "hosts", "type": "[str]"},
"zone": {"key": "zone", "type": "str"},
}
def __init__(self, **kwargs: Any) -> None:
""" """
super().__init__(**kwargs)
self.hosts = None
self.zone = None
class ClusterZoneList(_serialization.Model):
"""List of all zones and associated hosts for a cluster.
:ivar zones: Zone and associated hosts info.
:vartype zones: list[~azure.mgmt.avs.models.ClusterZone]
"""
_attribute_map = {
"zones": {"key": "zones", "type": "[ClusterZone]"},
}
def __init__(self, *, zones: Optional[List["_models.ClusterZone"]] = None, **kwargs: Any) -> None:
"""
:keyword zones: Zone and associated hosts info.
:paramtype zones: list[~azure.mgmt.avs.models.ClusterZone]
"""
super().__init__(**kwargs)
self.zones = zones
class Datastore(ProxyResource):
"""A datastore resource.
Variables are only populated by the server, and will be ignored when sending a request.
:ivar id: Fully qualified resource ID for the resource. E.g.
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}". # pylint: disable=line-too-long
:vartype id: str
:ivar name: The name of the resource.
:vartype name: str
:ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or
"Microsoft.Storage/storageAccounts".
:vartype type: str
:ivar system_data: Azure Resource Manager metadata containing createdBy and modifiedBy
information.
:vartype system_data: ~azure.mgmt.avs.models.SystemData
:ivar provisioning_state: The state of the datastore provisioning. Known values are:
"Succeeded", "Failed", "Canceled", "Cancelled", "Pending", "Creating", "Updating", and
"Deleting".
:vartype provisioning_state: str or ~azure.mgmt.avs.models.DatastoreProvisioningState
:ivar net_app_volume: An Azure NetApp Files volume.
:vartype net_app_volume: ~azure.mgmt.avs.models.NetAppVolume
:ivar disk_pool_volume: An iSCSI volume.
:vartype disk_pool_volume: ~azure.mgmt.avs.models.DiskPoolVolume
:ivar elastic_san_volume: An Elastic SAN volume.
:vartype elastic_san_volume: ~azure.mgmt.avs.models.ElasticSanVolume
:ivar status: The operational status of the datastore. Known values are: "Unknown",
"Accessible", "Inaccessible", "Attached", "Detached", "LostCommunication", and "DeadOrError".
:vartype status: str or ~azure.mgmt.avs.models.DatastoreStatus
"""
_validation = {
"id": {"readonly": True},
"name": {"readonly": True},
"type": {"readonly": True},
"system_data": {"readonly": True},
"provisioning_state": {"readonly": True},
"status": {"readonly": True},
}
_attribute_map = {
"id": {"key": "id", "type": "str"},
"name": {"key": "name", "type": "str"},
"type": {"key": "type", "type": "str"},
"system_data": {"key": "systemData", "type": "SystemData"},
"provisioning_state": {"key": "properties.provisioningState", "type": "str"},
"net_app_volume": {"key": "properties.netAppVolume", "type": "NetAppVolume"},
"disk_pool_volume": {"key": "properties.diskPoolVolume", "type": "DiskPoolVolume"},
"elastic_san_volume": {"key": "properties.elasticSanVolume", "type": "ElasticSanVolume"},
"status": {"key": "properties.status", "type": "str"},
}
def __init__(
self,
*,
net_app_volume: Optional["_models.NetAppVolume"] = None,
disk_pool_volume: Optional["_models.DiskPoolVolume"] = None,
elastic_san_volume: Optional["_models.ElasticSanVolume"] = None,
**kwargs: Any
) -> None:
"""
:keyword net_app_volume: An Azure NetApp Files volume.
:paramtype net_app_volume: ~azure.mgmt.avs.models.NetAppVolume
:keyword disk_pool_volume: An iSCSI volume.
:paramtype disk_pool_volume: ~azure.mgmt.avs.models.DiskPoolVolume
:keyword elastic_san_volume: An Elastic SAN volume.
:paramtype elastic_san_volume: ~azure.mgmt.avs.models.ElasticSanVolume
"""
super().__init__(**kwargs)
self.provisioning_state = None
self.net_app_volume = net_app_volume
self.disk_pool_volume = disk_pool_volume
self.elastic_san_volume = elastic_san_volume
self.status = None
class DatastoreList(_serialization.Model):
"""The response of a Datastore list operation.
All required parameters must be populated in order to send to server.
:ivar value: The Datastore items on this page. Required.
:vartype value: list[~azure.mgmt.avs.models.Datastore]
:ivar next_link: The link to the next page of items.
:vartype next_link: str
"""
_validation = {
"value": {"required": True},
}
_attribute_map = {
"value": {"key": "value", "type": "[Datastore]"},
"next_link": {"key": "nextLink", "type": "str"},
}
def __init__(self, *, value: List["_models.Datastore"], next_link: Optional[str] = None, **kwargs: Any) -> None:
"""
:keyword value: The Datastore items on this page. Required.
:paramtype value: list[~azure.mgmt.avs.models.Datastore]
:keyword next_link: The link to the next page of items.
:paramtype next_link: str
"""
super().__init__(**kwargs)
self.value = value
self.next_link = next_link
class DiskPoolVolume(_serialization.Model):
"""An iSCSI volume from Microsoft.StoragePool provider.
Variables are only populated by the server, and will be ignored when sending a request.
All required parameters must be populated in order to send to server.
:ivar target_id: Azure resource ID of the iSCSI target. Required.
:vartype target_id: str
:ivar lun_name: Name of the LUN to be used for datastore. Required.
:vartype lun_name: str
:ivar mount_option: Mode that describes whether the LUN has to be mounted as a datastore or
attached as a LUN. Known values are: "MOUNT" and "ATTACH".
:vartype mount_option: str or ~azure.mgmt.avs.models.MountOptionEnum
:ivar path: Device path.
:vartype path: str
"""
_validation = {
"target_id": {"required": True},
"lun_name": {"required": True},
"path": {"readonly": True},
}
_attribute_map = {
"target_id": {"key": "targetId", "type": "str"},
"lun_name": {"key": "lunName", "type": "str"},
"mount_option": {"key": "mountOption", "type": "str"},
"path": {"key": "path", "type": "str"},
}
def __init__(
self,
*,
target_id: str,
lun_name: str,
mount_option: Union[str, "_models.MountOptionEnum"] = "MOUNT",
**kwargs: Any
) -> None:
"""
:keyword target_id: Azure resource ID of the iSCSI target. Required.
:paramtype target_id: str
:keyword lun_name: Name of the LUN to be used for datastore. Required.
:paramtype lun_name: str
:keyword mount_option: Mode that describes whether the LUN has to be mounted as a datastore or
attached as a LUN. Known values are: "MOUNT" and "ATTACH".
:paramtype mount_option: str or ~azure.mgmt.avs.models.MountOptionEnum
"""
super().__init__(**kwargs)
self.target_id = target_id
self.lun_name = lun_name
self.mount_option = mount_option
self.path = None
class ElasticSanVolume(_serialization.Model):
"""An Elastic SAN volume from Microsoft.ElasticSan provider.
All required parameters must be populated in order to send to server.
:ivar target_id: Azure resource ID of the Elastic SAN Volume. Required.
:vartype target_id: str
"""
_validation = {
"target_id": {"required": True},
}
_attribute_map = {
"target_id": {"key": "targetId", "type": "str"},
}
def __init__(self, *, target_id: str, **kwargs: Any) -> None:
"""
:keyword target_id: Azure resource ID of the Elastic SAN Volume. Required.
:paramtype target_id: str
"""
super().__init__(**kwargs)
self.target_id = target_id
class Encryption(_serialization.Model):
"""The properties of customer managed encryption key.
:ivar status: Status of customer managed encryption key. Known values are: "Enabled" and
"Disabled".
:vartype status: str or ~azure.mgmt.avs.models.EncryptionState
:ivar key_vault_properties: The key vault where the encryption key is stored.
:vartype key_vault_properties: ~azure.mgmt.avs.models.EncryptionKeyVaultProperties
"""
_attribute_map = {
"status": {"key": "status", "type": "str"},
"key_vault_properties": {"key": "keyVaultProperties", "type": "EncryptionKeyVaultProperties"},
}
def __init__(
self,
*,
status: Optional[Union[str, "_models.EncryptionState"]] = None,
key_vault_properties: Optional["_models.EncryptionKeyVaultProperties"] = None,
**kwargs: Any
) -> None:
"""
:keyword status: Status of customer managed encryption key. Known values are: "Enabled" and
"Disabled".
:paramtype status: str or ~azure.mgmt.avs.models.EncryptionState
:keyword key_vault_properties: The key vault where the encryption key is stored.
:paramtype key_vault_properties: ~azure.mgmt.avs.models.EncryptionKeyVaultProperties
"""
super().__init__(**kwargs)
self.status = status
self.key_vault_properties = key_vault_properties
class EncryptionKeyVaultProperties(_serialization.Model):
"""An Encryption Key.
Variables are only populated by the server, and will be ignored when sending a request.
:ivar key_name: The name of the key.
:vartype key_name: str
:ivar key_version: The version of the key.
:vartype key_version: str
:ivar auto_detected_key_version: The auto-detected version of the key if versionType is
auto-detected.
:vartype auto_detected_key_version: str
:ivar key_vault_url: The URL of the vault.
:vartype key_vault_url: str
:ivar key_state: The state of key provided. Known values are: "Connected" and "AccessDenied".
:vartype key_state: str or ~azure.mgmt.avs.models.EncryptionKeyStatus
:ivar version_type: Property of the key if user provided or auto detected. Known values are:
"Fixed" and "AutoDetected".
:vartype version_type: str or ~azure.mgmt.avs.models.EncryptionVersionType
"""
_validation = {
"auto_detected_key_version": {"readonly": True},
"key_state": {"readonly": True},
"version_type": {"readonly": True},
}
_attribute_map = {
"key_name": {"key": "keyName", "type": "str"},
"key_version": {"key": "keyVersion", "type": "str"},
"auto_detected_key_version": {"key": "autoDetectedKeyVersion", "type": "str"},
"key_vault_url": {"key": "keyVaultUrl", "type": "str"},
"key_state": {"key": "keyState", "type": "str"},
"version_type": {"key": "versionType", "type": "str"},
}
def __init__(
self,
*,
key_name: Optional[str] = None,
key_version: Optional[str] = None,
key_vault_url: Optional[str] = None,
**kwargs: Any
) -> None:
"""
:keyword key_name: The name of the key.
:paramtype key_name: str
:keyword key_version: The version of the key.
:paramtype key_version: str
:keyword key_vault_url: The URL of the vault.
:paramtype key_vault_url: str
"""
super().__init__(**kwargs)
self.key_name = key_name
self.key_version = key_version
self.auto_detected_key_version = None
self.key_vault_url = key_vault_url
self.key_state = None
self.version_type = None
class Endpoints(_serialization.Model):
"""Endpoint addresses.
Variables are only populated by the server, and will be ignored when sending a request.
:ivar nsxt_manager: Endpoint FQDN for the NSX-T Data Center manager.
:vartype nsxt_manager: str
:ivar vcsa: Endpoint FQDN for Virtual Center Server Appliance.
:vartype vcsa: str
:ivar hcx_cloud_manager: Endpoint FQDN for the HCX Cloud Manager.
:vartype hcx_cloud_manager: str
:ivar nsxt_manager_ip: Endpoint IP for the NSX-T Data Center manager.
:vartype nsxt_manager_ip: str
:ivar vcenter_ip: Endpoint IP for Virtual Center Server Appliance.
:vartype vcenter_ip: str
:ivar hcx_cloud_manager_ip: Endpoint IP for the HCX Cloud Manager.
:vartype hcx_cloud_manager_ip: str
"""
_validation = {
"nsxt_manager": {"readonly": True},
"vcsa": {"readonly": True},
"hcx_cloud_manager": {"readonly": True},
"nsxt_manager_ip": {"readonly": True},
"vcenter_ip": {"readonly": True},
"hcx_cloud_manager_ip": {"readonly": True},
}
_attribute_map = {
"nsxt_manager": {"key": "nsxtManager", "type": "str"},
"vcsa": {"key": "vcsa", "type": "str"},
"hcx_cloud_manager": {"key": "hcxCloudManager", "type": "str"},
"nsxt_manager_ip": {"key": "nsxtManagerIp", "type": "str"},
"vcenter_ip": {"key": "vcenterIp", "type": "str"},
"hcx_cloud_manager_ip": {"key": "hcxCloudManagerIp", "type": "str"},
}
def __init__(self, **kwargs: Any) -> None:
""" """
super().__init__(**kwargs)
self.nsxt_manager = None
self.vcsa = None
self.hcx_cloud_manager = None
self.nsxt_manager_ip = None
self.vcenter_ip = None
self.hcx_cloud_manager_ip = None
class ErrorAdditionalInfo(_serialization.Model):
"""The resource management error additional info.
Variables are only populated by the server, and will be ignored when sending a request.
:ivar type: The additional info type.
:vartype type: str
:ivar info: The additional info.
:vartype info: JSON
"""
_validation = {
"type": {"readonly": True},
"info": {"readonly": True},
}
_attribute_map = {
"type": {"key": "type", "type": "str"},
"info": {"key": "info", "type": "object"},
}
def __init__(self, **kwargs: Any) -> None:
""" """
super().__init__(**kwargs)
self.type = None
self.info = None
class ErrorDetail(_serialization.Model):
"""The error detail.
Variables are only populated by the server, and will be ignored when sending a request.
:ivar code: The error code.
:vartype code: str
:ivar message: The error message.
:vartype message: str
:ivar target: The error target.
:vartype target: str
:ivar details: The error details.
:vartype details: list[~azure.mgmt.avs.models.ErrorDetail]
:ivar additional_info: The error additional info.
:vartype additional_info: list[~azure.mgmt.avs.models.ErrorAdditionalInfo]
"""
_validation = {
"code": {"readonly": True},
"message": {"readonly": True},
"target": {"readonly": True},
"details": {"readonly": True},
"additional_info": {"readonly": True},
}
_attribute_map = {
"code": {"key": "code", "type": "str"},
"message": {"key": "message", "type": "str"},
"target": {"key": "target", "type": "str"},
"details": {"key": "details", "type": "[ErrorDetail]"},
"additional_info": {"key": "additionalInfo", "type": "[ErrorAdditionalInfo]"},
}
def __init__(self, **kwargs: Any) -> None:
""" """
super().__init__(**kwargs)
self.code = None
self.message = None
self.target = None
self.details = None
self.additional_info = None
class ErrorResponse(_serialization.Model):
"""Common error response for all Azure Resource Manager APIs to return error details for failed
operations. (This also follows the OData error response format.).
:ivar error: The error object.
:vartype error: ~azure.mgmt.avs.models.ErrorDetail
"""
_attribute_map = {
"error": {"key": "error", "type": "ErrorDetail"},
}
def __init__(self, *, error: Optional["_models.ErrorDetail"] = None, **kwargs: Any) -> None:
"""
:keyword error: The error object.
:paramtype error: ~azure.mgmt.avs.models.ErrorDetail
"""
super().__init__(**kwargs)
self.error = error
class ExpressRouteAuthorization(ProxyResource):
"""ExpressRoute Circuit Authorization.
Variables are only populated by the server, and will be ignored when sending a request.
:ivar id: Fully qualified resource ID for the resource. E.g.
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}". # pylint: disable=line-too-long
:vartype id: str
:ivar name: The name of the resource.
:vartype name: str
:ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or
"Microsoft.Storage/storageAccounts".
:vartype type: str
:ivar system_data: Azure Resource Manager metadata containing createdBy and modifiedBy
information.
:vartype system_data: ~azure.mgmt.avs.models.SystemData
:ivar provisioning_state: The state of the ExpressRoute Circuit Authorization provisioning.
Known values are: "Succeeded", "Failed", "Canceled", and "Updating".
:vartype provisioning_state: str or
~azure.mgmt.avs.models.ExpressRouteAuthorizationProvisioningState
:ivar express_route_authorization_id: The ID of the ExpressRoute Circuit Authorization.
:vartype express_route_authorization_id: str
:ivar express_route_authorization_key: The key of the ExpressRoute Circuit Authorization.
:vartype express_route_authorization_key: str
:ivar express_route_id: The ID of the ExpressRoute Circuit.
:vartype express_route_id: str
"""
_validation = {
"id": {"readonly": True},
"name": {"readonly": True},
"type": {"readonly": True},
"system_data": {"readonly": True},
"provisioning_state": {"readonly": True},
"express_route_authorization_id": {"readonly": True},
"express_route_authorization_key": {"readonly": True},
}
_attribute_map = {
"id": {"key": "id", "type": "str"},
"name": {"key": "name", "type": "str"},
"type": {"key": "type", "type": "str"},
"system_data": {"key": "systemData", "type": "SystemData"},
"provisioning_state": {"key": "properties.provisioningState", "type": "str"},
"express_route_authorization_id": {"key": "properties.expressRouteAuthorizationId", "type": "str"},
"express_route_authorization_key": {"key": "properties.expressRouteAuthorizationKey", "type": "str"},
"express_route_id": {"key": "properties.expressRouteId", "type": "str"},
}
def __init__(self, *, express_route_id: Optional[str] = None, **kwargs: Any) -> None:
"""
:keyword express_route_id: The ID of the ExpressRoute Circuit.
:paramtype express_route_id: str
"""
super().__init__(**kwargs)
self.provisioning_state = None
self.express_route_authorization_id = None
self.express_route_authorization_key = None
self.express_route_id = express_route_id
class ExpressRouteAuthorizationList(_serialization.Model):
"""The response of a ExpressRouteAuthorization list operation.
All required parameters must be populated in order to send to server.
:ivar value: The ExpressRouteAuthorization items on this page. Required.
:vartype value: list[~azure.mgmt.avs.models.ExpressRouteAuthorization]
:ivar next_link: The link to the next page of items.
:vartype next_link: str
"""
_validation = {
"value": {"required": True},
}
_attribute_map = {
"value": {"key": "value", "type": "[ExpressRouteAuthorization]"},
"next_link": {"key": "nextLink", "type": "str"},
}
def __init__(
self, *, value: List["_models.ExpressRouteAuthorization"], next_link: Optional[str] = None, **kwargs: Any
) -> None:
"""
:keyword value: The ExpressRouteAuthorization items on this page. Required.
:paramtype value: list[~azure.mgmt.avs.models.ExpressRouteAuthorization]
:keyword next_link: The link to the next page of items.
:paramtype next_link: str
"""
super().__init__(**kwargs)
self.value = value
self.next_link = next_link
class GlobalReachConnection(ProxyResource):
"""A global reach connection resource.
Variables are only populated by the server, and will be ignored when sending a request.
:ivar id: Fully qualified resource ID for the resource. E.g.
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}". # pylint: disable=line-too-long
:vartype id: str
:ivar name: The name of the resource.
:vartype name: str
:ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or
"Microsoft.Storage/storageAccounts".
:vartype type: str
:ivar system_data: Azure Resource Manager metadata containing createdBy and modifiedBy
information.
:vartype system_data: ~azure.mgmt.avs.models.SystemData
:ivar provisioning_state: The state of the ExpressRoute Circuit Authorization provisioning.
Known values are: "Succeeded", "Failed", "Canceled", and "Updating".
:vartype provisioning_state: str or
~azure.mgmt.avs.models.GlobalReachConnectionProvisioningState
:ivar address_prefix: The network used for global reach carved out from the original network
block
provided for the private cloud.
:vartype address_prefix: str
:ivar authorization_key: Authorization key from the peer express route used for the global
reach
connection.
:vartype authorization_key: str
:ivar circuit_connection_status: The connection status of the global reach connection. Known
values are: "Connected", "Connecting", and "Disconnected".
:vartype circuit_connection_status: str or ~azure.mgmt.avs.models.GlobalReachConnectionStatus
:ivar peer_express_route_circuit: Identifier of the ExpressRoute Circuit to peer with in the
global reach
connection.
:vartype peer_express_route_circuit: str
:ivar express_route_id: The ID of the Private Cloud's ExpressRoute Circuit that is
participating in the
global reach connection.
:vartype express_route_id: str
"""
_validation = {
"id": {"readonly": True},
"name": {"readonly": True},
"type": {"readonly": True},
"system_data": {"readonly": True},
"provisioning_state": {"readonly": True},
"address_prefix": {"readonly": True},
"circuit_connection_status": {"readonly": True},
}
_attribute_map = {
"id": {"key": "id", "type": "str"},
"name": {"key": "name", "type": "str"},
"type": {"key": "type", "type": "str"},
"system_data": {"key": "systemData", "type": "SystemData"},
"provisioning_state": {"key": "properties.provisioningState", "type": "str"},
"address_prefix": {"key": "properties.addressPrefix", "type": "str"},
"authorization_key": {"key": "properties.authorizationKey", "type": "str"},
"circuit_connection_status": {"key": "properties.circuitConnectionStatus", "type": "str"},
"peer_express_route_circuit": {"key": "properties.peerExpressRouteCircuit", "type": "str"},
"express_route_id": {"key": "properties.expressRouteId", "type": "str"},
}
def __init__(
self,
*,
authorization_key: Optional[str] = None,
peer_express_route_circuit: Optional[str] = None,
express_route_id: Optional[str] = None,
**kwargs: Any
) -> None:
"""
:keyword authorization_key: Authorization key from the peer express route used for the global
reach
connection.
:paramtype authorization_key: str
:keyword peer_express_route_circuit: Identifier of the ExpressRoute Circuit to peer with in the
global reach
connection.
:paramtype peer_express_route_circuit: str
:keyword express_route_id: The ID of the Private Cloud's ExpressRoute Circuit that is
participating in the
global reach connection.
:paramtype express_route_id: str
"""
super().__init__(**kwargs)
self.provisioning_state = None
self.address_prefix = None
self.authorization_key = authorization_key
self.circuit_connection_status = None
self.peer_express_route_circuit = peer_express_route_circuit
self.express_route_id = express_route_id
class GlobalReachConnectionList(_serialization.Model):
"""The response of a GlobalReachConnection list operation.
All required parameters must be populated in order to send to server.
:ivar value: The GlobalReachConnection items on this page. Required.
:vartype value: list[~azure.mgmt.avs.models.GlobalReachConnection]
:ivar next_link: The link to the next page of items.
:vartype next_link: str
"""
_validation = {
"value": {"required": True},
}
_attribute_map = {
"value": {"key": "value", "type": "[GlobalReachConnection]"},
"next_link": {"key": "nextLink", "type": "str"},
}
def __init__(
self, *, value: List["_models.GlobalReachConnection"], next_link: Optional[str] = None, **kwargs: Any
) -> None:
"""
:keyword value: The GlobalReachConnection items on this page. Required.
:paramtype value: list[~azure.mgmt.avs.models.GlobalReachConnection]
:keyword next_link: The link to the next page of items.
:paramtype next_link: str
"""
super().__init__(**kwargs)
self.value = value
self.next_link = next_link
class HcxEnterpriseSite(ProxyResource):
"""An HCX Enterprise Site resource.
Variables are only populated by the server, and will be ignored when sending a request.
:ivar id: Fully qualified resource ID for the resource. E.g.
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}". # pylint: disable=line-too-long
:vartype id: str
:ivar name: The name of the resource.
:vartype name: str
:ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or
"Microsoft.Storage/storageAccounts".
:vartype type: str
:ivar system_data: Azure Resource Manager metadata containing createdBy and modifiedBy
information.
:vartype system_data: ~azure.mgmt.avs.models.SystemData
:ivar provisioning_state: The provisioning state of the resource. Known values are:
"Succeeded", "Failed", and "Canceled".
:vartype provisioning_state: str or ~azure.mgmt.avs.models.HcxEnterpriseSiteProvisioningState
:ivar activation_key: The activation key.
:vartype activation_key: str
:ivar status: The status of the HCX Enterprise Site. Known values are: "Available", "Consumed",
"Deactivated", and "Deleted".
:vartype status: str or ~azure.mgmt.avs.models.HcxEnterpriseSiteStatus
"""
_validation = {
"id": {"readonly": True},
"name": {"readonly": True},
"type": {"readonly": True},
"system_data": {"readonly": True},
"provisioning_state": {"readonly": True},
"activation_key": {"readonly": True},
"status": {"readonly": True},
}
_attribute_map = {
"id": {"key": "id", "type": "str"},
"name": {"key": "name", "type": "str"},
"type": {"key": "type", "type": "str"},
"system_data": {"key": "systemData", "type": "SystemData"},
"provisioning_state": {"key": "properties.provisioningState", "type": "str"},
"activation_key": {"key": "properties.activationKey", "type": "str"},
"status": {"key": "properties.status", "type": "str"},
}
def __init__(self, **kwargs: Any) -> None:
""" """
super().__init__(**kwargs)
self.provisioning_state = None
self.activation_key = None
self.status = None
class HcxEnterpriseSiteList(_serialization.Model):
"""The response of a HcxEnterpriseSite list operation.
All required parameters must be populated in order to send to server.
:ivar value: The HcxEnterpriseSite items on this page. Required.
:vartype value: list[~azure.mgmt.avs.models.HcxEnterpriseSite]
:ivar next_link: The link to the next page of items.
:vartype next_link: str
"""
_validation = {
"value": {"required": True},
}
_attribute_map = {
"value": {"key": "value", "type": "[HcxEnterpriseSite]"},
"next_link": {"key": "nextLink", "type": "str"},
}
def __init__(
self, *, value: List["_models.HcxEnterpriseSite"], next_link: Optional[str] = None, **kwargs: Any
) -> None:
"""
:keyword value: The HcxEnterpriseSite items on this page. Required.
:paramtype value: list[~azure.mgmt.avs.models.HcxEnterpriseSite]
:keyword next_link: The link to the next page of items.
:paramtype next_link: str
"""
super().__init__(**kwargs)
self.value = value
self.next_link = next_link
class IdentitySource(_serialization.Model):
"""vCenter Single Sign On Identity Source.
:ivar name: The name of the identity source.
:vartype name: str
:ivar alias: The domain's NetBIOS name.
:vartype alias: str
:ivar domain: The domain's dns name.
:vartype domain: str
:ivar base_user_dn: The base distinguished name for users.
:vartype base_user_dn: str
:ivar base_group_dn: The base distinguished name for groups.
:vartype base_group_dn: str
:ivar primary_server: Primary server URL.
:vartype primary_server: str
:ivar secondary_server: Secondary server URL.
:vartype secondary_server: str
:ivar ssl: Protect LDAP communication using SSL certificate (LDAPS). Known values are:
"Enabled" and "Disabled".
:vartype ssl: str or ~azure.mgmt.avs.models.SslEnum
:ivar username: The ID of an Active Directory user with a minimum of read-only access to Base
DN for users and group.
:vartype username: str
:ivar password: The password of the Active Directory user with a minimum of read-only access to
Base DN for users and groups.
:vartype password: str
"""
_attribute_map = {
"name": {"key": "name", "type": "str"},
"alias": {"key": "alias", "type": "str"},
"domain": {"key": "domain", "type": "str"},
"base_user_dn": {"key": "baseUserDN", "type": "str"},
"base_group_dn": {"key": "baseGroupDN", "type": "str"},
"primary_server": {"key": "primaryServer", "type": "str"},
"secondary_server": {"key": "secondaryServer", "type": "str"},
"ssl": {"key": "ssl", "type": "str"},
"username": {"key": "username", "type": "str"},
"password": {"key": "password", "type": "str"},
}
def __init__(
self,
*,
name: Optional[str] = None,
alias: Optional[str] = None,
domain: Optional[str] = None,
base_user_dn: Optional[str] = None,
base_group_dn: Optional[str] = None,
primary_server: Optional[str] = None,
secondary_server: Optional[str] = None,
ssl: Optional[Union[str, "_models.SslEnum"]] = None,
username: Optional[str] = None,
password: Optional[str] = None,
**kwargs: Any
) -> None:
"""
:keyword name: The name of the identity source.
:paramtype name: str
:keyword alias: The domain's NetBIOS name.
:paramtype alias: str
:keyword domain: The domain's dns name.
:paramtype domain: str
:keyword base_user_dn: The base distinguished name for users.
:paramtype base_user_dn: str
:keyword base_group_dn: The base distinguished name for groups.
:paramtype base_group_dn: str
:keyword primary_server: Primary server URL.
:paramtype primary_server: str
:keyword secondary_server: Secondary server URL.
:paramtype secondary_server: str
:keyword ssl: Protect LDAP communication using SSL certificate (LDAPS). Known values are:
"Enabled" and "Disabled".
:paramtype ssl: str or ~azure.mgmt.avs.models.SslEnum
:keyword username: The ID of an Active Directory user with a minimum of read-only access to
Base
DN for users and group.
:paramtype username: str
:keyword password: The password of the Active Directory user with a minimum of read-only access
to
Base DN for users and groups.
:paramtype password: str
"""
super().__init__(**kwargs)
self.name = name
self.alias = alias
self.domain = domain
self.base_user_dn = base_user_dn
self.base_group_dn = base_group_dn
self.primary_server = primary_server
self.secondary_server = secondary_server
self.ssl = ssl
self.username = username
self.password = password
class IscsiPath(ProxyResource):
"""An iSCSI path resource.
Variables are only populated by the server, and will be ignored when sending a request.
:ivar id: Fully qualified resource ID for the resource. E.g.
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}". # pylint: disable=line-too-long
:vartype id: str
:ivar name: The name of the resource.
:vartype name: str
:ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or
"Microsoft.Storage/storageAccounts".
:vartype type: str
:ivar system_data: Azure Resource Manager metadata containing createdBy and modifiedBy
information.
:vartype system_data: ~azure.mgmt.avs.models.SystemData
:ivar provisioning_state: The state of the iSCSI path provisioning. Known values are:
"Succeeded", "Failed", "Canceled", "Pending", "Building", "Deleting", and "Updating".
:vartype provisioning_state: str or ~azure.mgmt.avs.models.IscsiPathProvisioningState
:ivar network_block: CIDR Block for iSCSI path.
:vartype network_block: str
"""
_validation = {
"id": {"readonly": True},
"name": {"readonly": True},
"type": {"readonly": True},
"system_data": {"readonly": True},
"provisioning_state": {"readonly": True},
}
_attribute_map = {
"id": {"key": "id", "type": "str"},
"name": {"key": "name", "type": "str"},
"type": {"key": "type", "type": "str"},
"system_data": {"key": "systemData", "type": "SystemData"},
"provisioning_state": {"key": "properties.provisioningState", "type": "str"},
"network_block": {"key": "properties.networkBlock", "type": "str"},
}
def __init__(self, *, network_block: Optional[str] = None, **kwargs: Any) -> None:
"""
:keyword network_block: CIDR Block for iSCSI path.
:paramtype network_block: str
"""
super().__init__(**kwargs)
self.provisioning_state = None
self.network_block = network_block
class IscsiPathListResult(_serialization.Model):
"""The response of a IscsiPath list operation.
All required parameters must be populated in order to send to server.
:ivar value: The IscsiPath items on this page. Required.
:vartype value: list[~azure.mgmt.avs.models.IscsiPath]
:ivar next_link: The link to the next page of items.
:vartype next_link: str
"""
_validation = {
"value": {"required": True},
}
_attribute_map = {
"value": {"key": "value", "type": "[IscsiPath]"},
"next_link": {"key": "nextLink", "type": "str"},
}
def __init__(self, *, value: List["_models.IscsiPath"], next_link: Optional[str] = None, **kwargs: Any) -> None:
"""
:keyword value: The IscsiPath items on this page. Required.
:paramtype value: list[~azure.mgmt.avs.models.IscsiPath]
:keyword next_link: The link to the next page of items.
:paramtype next_link: str
"""
super().__init__(**kwargs)
self.value = value
self.next_link = next_link
class ManagementCluster(_serialization.Model):
"""The properties of a management cluster.
Variables are only populated by the server, and will be ignored when sending a request.
:ivar cluster_size: The cluster size.
:vartype cluster_size: int
:ivar provisioning_state: The state of the cluster provisioning. Known values are: "Succeeded",
"Failed", "Canceled", "Cancelled", "Deleting", and "Updating".
:vartype provisioning_state: str or ~azure.mgmt.avs.models.ClusterProvisioningState
:ivar cluster_id: The identity.
:vartype cluster_id: int
:ivar hosts: The hosts.
:vartype hosts: list[str]
:ivar vsan_datastore_name: Name of the vsan datastore associated with the cluster.
:vartype vsan_datastore_name: str
"""
_validation = {
"provisioning_state": {"readonly": True},
"cluster_id": {"readonly": True},
}
_attribute_map = {
"cluster_size": {"key": "clusterSize", "type": "int"},
"provisioning_state": {"key": "provisioningState", "type": "str"},
"cluster_id": {"key": "clusterId", "type": "int"},
"hosts": {"key": "hosts", "type": "[str]"},
"vsan_datastore_name": {"key": "vsanDatastoreName", "type": "str"},
}
def __init__(
self,
*,
cluster_size: Optional[int] = None,
hosts: Optional[List[str]] = None,
vsan_datastore_name: Optional[str] = None,
**kwargs: Any
) -> None:
"""
:keyword cluster_size: The cluster size.
:paramtype cluster_size: int
:keyword hosts: The hosts.
:paramtype hosts: list[str]
:keyword vsan_datastore_name: Name of the vsan datastore associated with the cluster.
:paramtype vsan_datastore_name: str
"""
super().__init__(**kwargs)
self.cluster_size = cluster_size
self.provisioning_state = None
self.cluster_id = None
self.hosts = hosts
self.vsan_datastore_name = vsan_datastore_name
class NetAppVolume(_serialization.Model):
"""An Azure NetApp Files volume from Microsoft.NetApp provider.
All required parameters must be populated in order to send to server.
:ivar id: Azure resource ID of the NetApp volume. Required.
:vartype id: str
"""
_validation = {
"id": {"required": True},
}
_attribute_map = {
"id": {"key": "id", "type": "str"},
}
def __init__(self, *, id: str, **kwargs: Any) -> None: # pylint: disable=redefined-builtin
"""
:keyword id: Azure resource ID of the NetApp volume. Required.
:paramtype id: str
"""
super().__init__(**kwargs)
self.id = id
class Operation(_serialization.Model):
"""Details of a REST API operation, returned from the Resource Provider Operations API.
Variables are only populated by the server, and will be ignored when sending a request.
:ivar name: The name of the operation, as per Resource-Based Access Control (RBAC). Examples:
"Microsoft.Compute/virtualMachines/write", "Microsoft.Compute/virtualMachines/capture/action".
:vartype name: str
:ivar is_data_action: Whether the operation applies to data-plane. This is "true" for
data-plane operations and "false" for ARM/control-plane operations.
:vartype is_data_action: bool
:ivar display: Localized display information for this particular operation.
:vartype display: ~azure.mgmt.avs.models.OperationDisplay
:ivar origin: The intended executor of the operation; as in Resource Based Access Control
(RBAC) and audit logs UX. Default value is "user,system". Known values are: "user", "system",
and "user,system".
:vartype origin: str or ~azure.mgmt.avs.models.Origin
:ivar action_type: Enum. Indicates the action type. "Internal" refers to actions that are for
internal only APIs. "Internal"
:vartype action_type: str or ~azure.mgmt.avs.models.ActionType
"""
_validation = {
"name": {"readonly": True},
"is_data_action": {"readonly": True},
"origin": {"readonly": True},
"action_type": {"readonly": True},
}
_attribute_map = {
"name": {"key": "name", "type": "str"},
"is_data_action": {"key": "isDataAction", "type": "bool"},
"display": {"key": "display", "type": "OperationDisplay"},
"origin": {"key": "origin", "type": "str"},
"action_type": {"key": "actionType", "type": "str"},
}
def __init__(self, *, display: Optional["_models.OperationDisplay"] = None, **kwargs: Any) -> None:
"""
:keyword display: Localized display information for this particular operation.
:paramtype display: ~azure.mgmt.avs.models.OperationDisplay
"""
super().__init__(**kwargs)
self.name = None
self.is_data_action = None
self.display = display
self.origin = None
self.action_type = None
class OperationDisplay(_serialization.Model):
"""Localized display information for this particular operation.
Variables are only populated by the server, and will be ignored when sending a request.
:ivar provider: The localized friendly form of the resource provider name, e.g. "Microsoft
Monitoring Insights" or "Microsoft Compute".
:vartype provider: str
:ivar resource: The localized friendly name of the resource type related to this operation.
E.g. "Virtual Machines" or "Job Schedule Collections".
:vartype resource: str
:ivar operation: The concise, localized friendly name for the operation; suitable for
dropdowns. E.g. "Create or Update Virtual Machine", "Restart Virtual Machine".
:vartype operation: str
:ivar description: The short, localized friendly description of the operation; suitable for
tool tips and detailed views.
:vartype description: str
"""
_validation = {
"provider": {"readonly": True},
"resource": {"readonly": True},
"operation": {"readonly": True},
"description": {"readonly": True},
}
_attribute_map = {
"provider": {"key": "provider", "type": "str"},
"resource": {"key": "resource", "type": "str"},
"operation": {"key": "operation", "type": "str"},
"description": {"key": "description", "type": "str"},
}
def __init__(self, **kwargs: Any) -> None:
""" """
super().__init__(**kwargs)
self.provider = None
self.resource = None
self.operation = None
self.description = None
class OperationListResult(_serialization.Model):
"""A list of REST API operations supported by an Azure Resource Provider. It contains an URL link
to get the next set of results.
Variables are only populated by the server, and will be ignored when sending a request.
:ivar value: List of operations supported by the resource provider.
:vartype value: list[~azure.mgmt.avs.models.Operation]
:ivar next_link: URL to get the next set of operation list results (if there are any).
:vartype next_link: str
"""
_validation = {
"value": {"readonly": True},
"next_link": {"readonly": True},
}
_attribute_map = {
"value": {"key": "value", "type": "[Operation]"},
"next_link": {"key": "nextLink", "type": "str"},
}
def __init__(self, **kwargs: Any) -> None:
""" """
super().__init__(**kwargs)
self.value = None
self.next_link = None
class PlacementPoliciesList(_serialization.Model):
"""The response of a PlacementPolicy list operation.
All required parameters must be populated in order to send to server.
:ivar value: The PlacementPolicy items on this page. Required.
:vartype value: list[~azure.mgmt.avs.models.PlacementPolicy]
:ivar next_link: The link to the next page of items.
:vartype next_link: str
"""
_validation = {
"value": {"required": True},
}
_attribute_map = {
"value": {"key": "value", "type": "[PlacementPolicy]"},
"next_link": {"key": "nextLink", "type": "str"},
}
def __init__(
self, *, value: List["_models.PlacementPolicy"], next_link: Optional[str] = None, **kwargs: Any
) -> None:
"""
:keyword value: The PlacementPolicy items on this page. Required.
:paramtype value: list[~azure.mgmt.avs.models.PlacementPolicy]
:keyword next_link: The link to the next page of items.
:paramtype next_link: str
"""
super().__init__(**kwargs)
self.value = value
self.next_link = next_link
class PlacementPolicy(ProxyResource):
"""A vSphere Distributed Resource Scheduler (DRS) placement policy.
Variables are only populated by the server, and will be ignored when sending a request.
:ivar id: Fully qualified resource ID for the resource. E.g.
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}". # pylint: disable=line-too-long
:vartype id: str
:ivar name: The name of the resource.
:vartype name: str
:ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or
"Microsoft.Storage/storageAccounts".
:vartype type: str
:ivar system_data: Azure Resource Manager metadata containing createdBy and modifiedBy
information.
:vartype system_data: ~azure.mgmt.avs.models.SystemData
:ivar properties: The resource-specific properties for this resource.
:vartype properties: ~azure.mgmt.avs.models.PlacementPolicyProperties
"""
_validation = {
"id": {"readonly": True},
"name": {"readonly": True},
"type": {"readonly": True},
"system_data": {"readonly": True},
}
_attribute_map = {
"id": {"key": "id", "type": "str"},
"name": {"key": "name", "type": "str"},
"type": {"key": "type", "type": "str"},
"system_data": {"key": "systemData", "type": "SystemData"},
"properties": {"key": "properties", "type": "PlacementPolicyProperties"},
}
def __init__(self, *, properties: Optional["_models.PlacementPolicyProperties"] = None, **kwargs: Any) -> None:
"""
:keyword properties: The resource-specific properties for this resource.
:paramtype properties: ~azure.mgmt.avs.models.PlacementPolicyProperties
"""
super().__init__(**kwargs)
self.properties = properties
class PlacementPolicyProperties(_serialization.Model):
"""Abstract placement policy properties.
You probably want to use the sub-classes and not this class directly. Known sub-classes are:
VmHostPlacementPolicyProperties, VmPlacementPolicyProperties
Variables are only populated by the server, and will be ignored when sending a request.
All required parameters must be populated in order to send to server.
:ivar type: Placement Policy type. Required. Known values are: "VmVm" and "VmHost".
:vartype type: str or ~azure.mgmt.avs.models.PlacementPolicyType
:ivar state: Whether the placement policy is enabled or disabled. Known values are: "Enabled"
and "Disabled".
:vartype state: str or ~azure.mgmt.avs.models.PlacementPolicyState
:ivar display_name: Display name of the placement policy.
:vartype display_name: str
:ivar provisioning_state: The provisioning state. Known values are: "Succeeded", "Failed",
"Canceled", "Building", "Deleting", and "Updating".
:vartype provisioning_state: str or ~azure.mgmt.avs.models.PlacementPolicyProvisioningState
"""
_validation = {
"type": {"required": True},
"provisioning_state": {"readonly": True},
}
_attribute_map = {
"type": {"key": "type", "type": "str"},
"state": {"key": "state", "type": "str"},
"display_name": {"key": "displayName", "type": "str"},
"provisioning_state": {"key": "provisioningState", "type": "str"},
}
_subtype_map = {"type": {"VmHost": "VmHostPlacementPolicyProperties", "VmVm": "VmPlacementPolicyProperties"}}
def __init__(
self,
*,
state: Optional[Union[str, "_models.PlacementPolicyState"]] = None,
display_name: Optional[str] = None,
**kwargs: Any
) -> None:
"""
:keyword state: Whether the placement policy is enabled or disabled. Known values are:
"Enabled" and "Disabled".
:paramtype state: str or ~azure.mgmt.avs.models.PlacementPolicyState
:keyword display_name: Display name of the placement policy.
:paramtype display_name: str
"""
super().__init__(**kwargs)
self.type: Optional[str] = None
self.state = state
self.display_name = display_name
self.provisioning_state = None
class PlacementPolicyUpdate(_serialization.Model):
"""An update of a DRS placement policy resource.
:ivar state: Whether the placement policy is enabled or disabled. Known values are: "Enabled"
and "Disabled".
:vartype state: str or ~azure.mgmt.avs.models.PlacementPolicyState
:ivar vm_members: Virtual machine members list.
:vartype vm_members: list[str]
:ivar host_members: Host members list.
:vartype host_members: list[str]
:ivar affinity_strength: vm-host placement policy affinity strength (should/must). Known values
are: "Should" and "Must".
:vartype affinity_strength: str or ~azure.mgmt.avs.models.AffinityStrength
:ivar azure_hybrid_benefit_type: placement policy azure hybrid benefit opt-in type. Known
values are: "SqlHost" and "None".
:vartype azure_hybrid_benefit_type: str or ~azure.mgmt.avs.models.AzureHybridBenefitType
"""
_attribute_map = {
"state": {"key": "properties.state", "type": "str"},
"vm_members": {"key": "properties.vmMembers", "type": "[str]"},
"host_members": {"key": "properties.hostMembers", "type": "[str]"},
"affinity_strength": {"key": "properties.affinityStrength", "type": "str"},
"azure_hybrid_benefit_type": {"key": "properties.azureHybridBenefitType", "type": "str"},
}
def __init__(
self,
*,
state: Optional[Union[str, "_models.PlacementPolicyState"]] = None,
vm_members: Optional[List[str]] = None,
host_members: Optional[List[str]] = None,
affinity_strength: Optional[Union[str, "_models.AffinityStrength"]] = None,
azure_hybrid_benefit_type: Optional[Union[str, "_models.AzureHybridBenefitType"]] = None,
**kwargs: Any
) -> None:
"""
:keyword state: Whether the placement policy is enabled or disabled. Known values are:
"Enabled" and "Disabled".
:paramtype state: str or ~azure.mgmt.avs.models.PlacementPolicyState
:keyword vm_members: Virtual machine members list.
:paramtype vm_members: list[str]
:keyword host_members: Host members list.
:paramtype host_members: list[str]
:keyword affinity_strength: vm-host placement policy affinity strength (should/must). Known
values are: "Should" and "Must".
:paramtype affinity_strength: str or ~azure.mgmt.avs.models.AffinityStrength
:keyword azure_hybrid_benefit_type: placement policy azure hybrid benefit opt-in type. Known
values are: "SqlHost" and "None".
:paramtype azure_hybrid_benefit_type: str or ~azure.mgmt.avs.models.AzureHybridBenefitType
"""
super().__init__(**kwargs)
self.state = state
self.vm_members = vm_members
self.host_members = host_members
self.affinity_strength = affinity_strength
self.azure_hybrid_benefit_type = azure_hybrid_benefit_type
class TrackedResource(Resource):
"""The resource model definition for an Azure Resource Manager tracked top level resource which
has 'tags' and a 'location'.
Variables are only populated by the server, and will be ignored when sending a request.
All required parameters must be populated in order to send to server.
:ivar id: Fully qualified resource ID for the resource. E.g.
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}". # pylint: disable=line-too-long
:vartype id: str
:ivar name: The name of the resource.
:vartype name: str
:ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or
"Microsoft.Storage/storageAccounts".
:vartype type: str
:ivar system_data: Azure Resource Manager metadata containing createdBy and modifiedBy
information.
:vartype system_data: ~azure.mgmt.avs.models.SystemData
:ivar tags: Resource tags.
:vartype tags: dict[str, str]
:ivar location: The geo-location where the resource lives. Required.
:vartype location: str
"""
_validation = {
"id": {"readonly": True},
"name": {"readonly": True},
"type": {"readonly": True},
"system_data": {"readonly": True},
"location": {"required": True},
}
_attribute_map = {
"id": {"key": "id", "type": "str"},
"name": {"key": "name", "type": "str"},
"type": {"key": "type", "type": "str"},
"system_data": {"key": "systemData", "type": "SystemData"},
"tags": {"key": "tags", "type": "{str}"},
"location": {"key": "location", "type": "str"},
}
def __init__(self, *, location: str, tags: Optional[Dict[str, str]] = None, **kwargs: Any) -> None:
"""
:keyword tags: Resource tags.
:paramtype tags: dict[str, str]
:keyword location: The geo-location where the resource lives. Required.
:paramtype location: str
"""
super().__init__(**kwargs)
self.tags = tags
self.location = location
class PrivateCloud(TrackedResource): # pylint: disable=too-many-instance-attributes
"""A private cloud resource.
Variables are only populated by the server, and will be ignored when sending a request.
All required parameters must be populated in order to send to server.
:ivar id: Fully qualified resource ID for the resource. E.g.
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}". # pylint: disable=line-too-long
:vartype id: str
:ivar name: The name of the resource.
:vartype name: str
:ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or
"Microsoft.Storage/storageAccounts".
:vartype type: str
:ivar system_data: Azure Resource Manager metadata containing createdBy and modifiedBy
information.
:vartype system_data: ~azure.mgmt.avs.models.SystemData
:ivar tags: Resource tags.
:vartype tags: dict[str, str]
:ivar location: The geo-location where the resource lives. Required.
:vartype location: str
:ivar sku: The SKU (Stock Keeping Unit) assigned to this resource. Required.
:vartype sku: ~azure.mgmt.avs.models.Sku
:ivar identity: The managed service identities assigned to this resource.
:vartype identity: ~azure.mgmt.avs.models.PrivateCloudIdentity
:ivar management_cluster: The default cluster used for management.
:vartype management_cluster: ~azure.mgmt.avs.models.ManagementCluster
:ivar internet: Connectivity to internet is enabled or disabled. Known values are: "Enabled"
and "Disabled".
:vartype internet: str or ~azure.mgmt.avs.models.InternetEnum
:ivar identity_sources: vCenter Single Sign On Identity Sources.
:vartype identity_sources: list[~azure.mgmt.avs.models.IdentitySource]
:ivar availability: Properties describing how the cloud is distributed across availability
zones.
:vartype availability: ~azure.mgmt.avs.models.AvailabilityProperties
:ivar encryption: Customer managed key encryption, can be enabled or disabled.
:vartype encryption: ~azure.mgmt.avs.models.Encryption
:ivar extended_network_blocks: Array of additional networks noncontiguous with networkBlock.
Networks must be
unique and non-overlapping across VNet in your subscription, on-premise, and
this privateCloud networkBlock attribute. Make sure the CIDR format conforms to
(A.B.C.D/X).
:vartype extended_network_blocks: list[str]
:ivar provisioning_state: The provisioning state. Known values are: "Succeeded", "Failed",
"Canceled", "Cancelled", "Pending", "Building", "Deleting", and "Updating".
:vartype provisioning_state: str or ~azure.mgmt.avs.models.PrivateCloudProvisioningState
:ivar circuit: An ExpressRoute Circuit.
:vartype circuit: ~azure.mgmt.avs.models.Circuit
:ivar endpoints: The endpoints.
:vartype endpoints: ~azure.mgmt.avs.models.Endpoints
:ivar network_block: The block of addresses should be unique across VNet in your subscription
as
well as on-premise. Make sure the CIDR format is conformed to (A.B.C.D/X) where
A,B,C,D are between 0 and 255, and X is between 0 and 22.
:vartype network_block: str
:ivar management_network: Network used to access vCenter Server and NSX-T Manager.
:vartype management_network: str
:ivar provisioning_network: Used for virtual machine cold migration, cloning, and snapshot
migration.
:vartype provisioning_network: str
:ivar vmotion_network: Used for live migration of virtual machines.
:vartype vmotion_network: str
:ivar vcenter_password: Optionally, set the vCenter admin password when the private cloud is
created.
:vartype vcenter_password: str
:ivar nsxt_password: Optionally, set the NSX-T Manager password when the private cloud is
created.
:vartype nsxt_password: str
:ivar vcenter_certificate_thumbprint: Thumbprint of the vCenter Server SSL certificate.
:vartype vcenter_certificate_thumbprint: str
:ivar nsxt_certificate_thumbprint: Thumbprint of the NSX-T Manager SSL certificate.
:vartype nsxt_certificate_thumbprint: str
:ivar external_cloud_links: Array of cloud link IDs from other clouds that connect to this one.
:vartype external_cloud_links: list[str]
:ivar secondary_circuit: A secondary expressRoute circuit from a separate AZ. Only present in a
stretched private cloud.
:vartype secondary_circuit: ~azure.mgmt.avs.models.Circuit
:ivar nsx_public_ip_quota_raised: Flag to indicate whether the private cloud has the quota for
provisioned NSX
Public IP count raised from 64 to 1024. Known values are: "Enabled" and "Disabled".
:vartype nsx_public_ip_quota_raised: str or ~azure.mgmt.avs.models.NsxPublicIpQuotaRaisedEnum
:ivar virtual_network_id: Azure resource ID of the virtual network.
:vartype virtual_network_id: str
:ivar dns_zone_type: The type of DNS zone to use. Known values are: "Public" and "Private".
:vartype dns_zone_type: str or ~azure.mgmt.avs.models.DnsZoneType
"""
_validation = {
"id": {"readonly": True},
"name": {"readonly": True},
"type": {"readonly": True},
"system_data": {"readonly": True},
"location": {"required": True},
"sku": {"required": True},
"provisioning_state": {"readonly": True},
"endpoints": {"readonly": True},
"management_network": {"readonly": True},
"provisioning_network": {"readonly": True},
"vmotion_network": {"readonly": True},
"vcenter_certificate_thumbprint": {"readonly": True},
"nsxt_certificate_thumbprint": {"readonly": True},
"external_cloud_links": {"readonly": True},
"nsx_public_ip_quota_raised": {"readonly": True},
}
_attribute_map = {
"id": {"key": "id", "type": "str"},
"name": {"key": "name", "type": "str"},
"type": {"key": "type", "type": "str"},
"system_data": {"key": "systemData", "type": "SystemData"},
"tags": {"key": "tags", "type": "{str}"},
"location": {"key": "location", "type": "str"},
"sku": {"key": "sku", "type": "Sku"},
"identity": {"key": "identity", "type": "PrivateCloudIdentity"},
"management_cluster": {"key": "properties.managementCluster", "type": "ManagementCluster"},
"internet": {"key": "properties.internet", "type": "str"},
"identity_sources": {"key": "properties.identitySources", "type": "[IdentitySource]"},
"availability": {"key": "properties.availability", "type": "AvailabilityProperties"},
"encryption": {"key": "properties.encryption", "type": "Encryption"},
"extended_network_blocks": {"key": "properties.extendedNetworkBlocks", "type": "[str]"},
"provisioning_state": {"key": "properties.provisioningState", "type": "str"},
"circuit": {"key": "properties.circuit", "type": "Circuit"},
"endpoints": {"key": "properties.endpoints", "type": "Endpoints"},
"network_block": {"key": "properties.networkBlock", "type": "str"},
"management_network": {"key": "properties.managementNetwork", "type": "str"},
"provisioning_network": {"key": "properties.provisioningNetwork", "type": "str"},
"vmotion_network": {"key": "properties.vmotionNetwork", "type": "str"},
"vcenter_password": {"key": "properties.vcenterPassword", "type": "str"},
"nsxt_password": {"key": "properties.nsxtPassword", "type": "str"},
"vcenter_certificate_thumbprint": {"key": "properties.vcenterCertificateThumbprint", "type": "str"},
"nsxt_certificate_thumbprint": {"key": "properties.nsxtCertificateThumbprint", "type": "str"},
"external_cloud_links": {"key": "properties.externalCloudLinks", "type": "[str]"},
"secondary_circuit": {"key": "properties.secondaryCircuit", "type": "Circuit"},
"nsx_public_ip_quota_raised": {"key": "properties.nsxPublicIpQuotaRaised", "type": "str"},
"virtual_network_id": {"key": "properties.virtualNetworkId", "type": "str"},
"dns_zone_type": {"key": "properties.dnsZoneType", "type": "str"},
}
def __init__( # pylint: disable=too-many-locals
self,
*,
location: str,
sku: "_models.Sku",
tags: Optional[Dict[str, str]] = None,
identity: Optional["_models.PrivateCloudIdentity"] = None,
management_cluster: Optional["_models.ManagementCluster"] = None,
internet: Optional[Union[str, "_models.InternetEnum"]] = None,
identity_sources: Optional[List["_models.IdentitySource"]] = None,
availability: Optional["_models.AvailabilityProperties"] = None,
encryption: Optional["_models.Encryption"] = None,
extended_network_blocks: Optional[List[str]] = None,
circuit: Optional["_models.Circuit"] = None,
network_block: Optional[str] = None,
vcenter_password: Optional[str] = None,
nsxt_password: Optional[str] = None,
secondary_circuit: Optional["_models.Circuit"] = None,
virtual_network_id: Optional[str] = None,
dns_zone_type: Optional[Union[str, "_models.DnsZoneType"]] = None,
**kwargs: Any
) -> None:
"""
:keyword tags: Resource tags.
:paramtype tags: dict[str, str]
:keyword location: The geo-location where the resource lives. Required.
:paramtype location: str
:keyword sku: The SKU (Stock Keeping Unit) assigned to this resource. Required.
:paramtype sku: ~azure.mgmt.avs.models.Sku
:keyword identity: The managed service identities assigned to this resource.
:paramtype identity: ~azure.mgmt.avs.models.PrivateCloudIdentity
:keyword management_cluster: The default cluster used for management.
:paramtype management_cluster: ~azure.mgmt.avs.models.ManagementCluster
:keyword internet: Connectivity to internet is enabled or disabled. Known values are: "Enabled"
and "Disabled".
:paramtype internet: str or ~azure.mgmt.avs.models.InternetEnum
:keyword identity_sources: vCenter Single Sign On Identity Sources.
:paramtype identity_sources: list[~azure.mgmt.avs.models.IdentitySource]
:keyword availability: Properties describing how the cloud is distributed across availability
zones.
:paramtype availability: ~azure.mgmt.avs.models.AvailabilityProperties
:keyword encryption: Customer managed key encryption, can be enabled or disabled.
:paramtype encryption: ~azure.mgmt.avs.models.Encryption
:keyword extended_network_blocks: Array of additional networks noncontiguous with networkBlock.
Networks must be
unique and non-overlapping across VNet in your subscription, on-premise, and
this privateCloud networkBlock attribute. Make sure the CIDR format conforms to
(A.B.C.D/X).
:paramtype extended_network_blocks: list[str]
:keyword circuit: An ExpressRoute Circuit.
:paramtype circuit: ~azure.mgmt.avs.models.Circuit
:keyword network_block: The block of addresses should be unique across VNet in your
subscription as
well as on-premise. Make sure the CIDR format is conformed to (A.B.C.D/X) where
A,B,C,D are between 0 and 255, and X is between 0 and 22.
:paramtype network_block: str
:keyword vcenter_password: Optionally, set the vCenter admin password when the private cloud is
created.
:paramtype vcenter_password: str
:keyword nsxt_password: Optionally, set the NSX-T Manager password when the private cloud is
created.
:paramtype nsxt_password: str
:keyword secondary_circuit: A secondary expressRoute circuit from a separate AZ. Only present
in a
stretched private cloud.
:paramtype secondary_circuit: ~azure.mgmt.avs.models.Circuit
:keyword virtual_network_id: Azure resource ID of the virtual network.
:paramtype virtual_network_id: str
:keyword dns_zone_type: The type of DNS zone to use. Known values are: "Public" and "Private".
:paramtype dns_zone_type: str or ~azure.mgmt.avs.models.DnsZoneType
"""
super().__init__(tags=tags, location=location, **kwargs)
self.sku = sku
self.identity = identity
self.management_cluster = management_cluster
self.internet = internet
self.identity_sources = identity_sources
self.availability = availability
self.encryption = encryption
self.extended_network_blocks = extended_network_blocks
self.provisioning_state = None
self.circuit = circuit
self.endpoints = None
self.network_block = network_block
self.management_network = None
self.provisioning_network = None
self.vmotion_network = None
self.vcenter_password = vcenter_password
self.nsxt_password = nsxt_password
self.vcenter_certificate_thumbprint = None
self.nsxt_certificate_thumbprint = None
self.external_cloud_links = None
self.secondary_circuit = secondary_circuit
self.nsx_public_ip_quota_raised = None
self.virtual_network_id = virtual_network_id
self.dns_zone_type = dns_zone_type
class PrivateCloudIdentity(_serialization.Model):
"""Managed service identity (either system assigned, or none).
Variables are only populated by the server, and will be ignored when sending a request.
All required parameters must be populated in order to send to server.
:ivar principal_id: The service principal ID of the system assigned identity. This property
will only be provided for a system assigned identity.
:vartype principal_id: str
:ivar tenant_id: The tenant ID of the system assigned identity. This property will only be
provided for a system assigned identity.
:vartype tenant_id: str
:ivar type: Type of managed service identity (either system assigned, or none). Required. Known
values are: "None" and "SystemAssigned".
:vartype type: str or ~azure.mgmt.avs.models.ResourceIdentityType
"""
_validation = {
"principal_id": {"readonly": True},
"tenant_id": {"readonly": True},
"type": {"required": True},
}
_attribute_map = {
"principal_id": {"key": "principalId", "type": "str"},
"tenant_id": {"key": "tenantId", "type": "str"},
"type": {"key": "type", "type": "str"},
}
def __init__(self, *, type: Union[str, "_models.ResourceIdentityType"], **kwargs: Any) -> None:
"""
:keyword type: Type of managed service identity (either system assigned, or none). Required.
Known values are: "None" and "SystemAssigned".
:paramtype type: str or ~azure.mgmt.avs.models.ResourceIdentityType
"""
super().__init__(**kwargs)
self.principal_id = None
self.tenant_id = None
self.type = type
class PrivateCloudList(_serialization.Model):
"""The response of a PrivateCloud list operation.
All required parameters must be populated in order to send to server.
:ivar value: The PrivateCloud items on this page. Required.
:vartype value: list[~azure.mgmt.avs.models.PrivateCloud]
:ivar next_link: The link to the next page of items.
:vartype next_link: str
"""
_validation = {
"value": {"required": True},
}
_attribute_map = {
"value": {"key": "value", "type": "[PrivateCloud]"},
"next_link": {"key": "nextLink", "type": "str"},
}
def __init__(self, *, value: List["_models.PrivateCloud"], next_link: Optional[str] = None, **kwargs: Any) -> None:
"""
:keyword value: The PrivateCloud items on this page. Required.
:paramtype value: list[~azure.mgmt.avs.models.PrivateCloud]
:keyword next_link: The link to the next page of items.
:paramtype next_link: str
"""
super().__init__(**kwargs)
self.value = value
self.next_link = next_link
class PrivateCloudUpdate(_serialization.Model):
"""An update to a private cloud resource.
:ivar tags: Resource tags.
:vartype tags: dict[str, str]
:ivar sku: The SKU (Stock Keeping Unit) assigned to this resource.
:vartype sku: ~azure.mgmt.avs.models.Sku
:ivar identity: The managed service identities assigned to this resource.
:vartype identity: ~azure.mgmt.avs.models.PrivateCloudIdentity
:ivar management_cluster: The default cluster used for management.
:vartype management_cluster: ~azure.mgmt.avs.models.ManagementCluster
:ivar internet: Connectivity to internet is enabled or disabled. Known values are: "Enabled"
and "Disabled".
:vartype internet: str or ~azure.mgmt.avs.models.InternetEnum
:ivar identity_sources: vCenter Single Sign On Identity Sources.
:vartype identity_sources: list[~azure.mgmt.avs.models.IdentitySource]
:ivar availability: Properties describing how the cloud is distributed across availability
zones.
:vartype availability: ~azure.mgmt.avs.models.AvailabilityProperties
:ivar encryption: Customer managed key encryption, can be enabled or disabled.
:vartype encryption: ~azure.mgmt.avs.models.Encryption
:ivar extended_network_blocks: Array of additional networks noncontiguous with networkBlock.
Networks must be
unique and non-overlapping across VNet in your subscription, on-premise, and
this privateCloud networkBlock attribute. Make sure the CIDR format conforms to
(A.B.C.D/X).
:vartype extended_network_blocks: list[str]
:ivar dns_zone_type: The type of DNS zone to use. Known values are: "Public" and "Private".
:vartype dns_zone_type: str or ~azure.mgmt.avs.models.DnsZoneType
"""
_attribute_map = {
"tags": {"key": "tags", "type": "{str}"},
"sku": {"key": "sku", "type": "Sku"},
"identity": {"key": "identity", "type": "PrivateCloudIdentity"},
"management_cluster": {"key": "properties.managementCluster", "type": "ManagementCluster"},
"internet": {"key": "properties.internet", "type": "str"},
"identity_sources": {"key": "properties.identitySources", "type": "[IdentitySource]"},
"availability": {"key": "properties.availability", "type": "AvailabilityProperties"},
"encryption": {"key": "properties.encryption", "type": "Encryption"},
"extended_network_blocks": {"key": "properties.extendedNetworkBlocks", "type": "[str]"},
"dns_zone_type": {"key": "properties.dnsZoneType", "type": "str"},
}
def __init__(
self,
*,
tags: Optional[Dict[str, str]] = None,
sku: Optional["_models.Sku"] = None,
identity: Optional["_models.PrivateCloudIdentity"] = None,
management_cluster: Optional["_models.ManagementCluster"] = None,
internet: Optional[Union[str, "_models.InternetEnum"]] = None,
identity_sources: Optional[List["_models.IdentitySource"]] = None,
availability: Optional["_models.AvailabilityProperties"] = None,
encryption: Optional["_models.Encryption"] = None,
extended_network_blocks: Optional[List[str]] = None,
dns_zone_type: Optional[Union[str, "_models.DnsZoneType"]] = None,
**kwargs: Any
) -> None:
"""
:keyword tags: Resource tags.
:paramtype tags: dict[str, str]
:keyword sku: The SKU (Stock Keeping Unit) assigned to this resource.
:paramtype sku: ~azure.mgmt.avs.models.Sku
:keyword identity: The managed service identities assigned to this resource.
:paramtype identity: ~azure.mgmt.avs.models.PrivateCloudIdentity
:keyword management_cluster: The default cluster used for management.
:paramtype management_cluster: ~azure.mgmt.avs.models.ManagementCluster
:keyword internet: Connectivity to internet is enabled or disabled. Known values are: "Enabled"
and "Disabled".
:paramtype internet: str or ~azure.mgmt.avs.models.InternetEnum
:keyword identity_sources: vCenter Single Sign On Identity Sources.
:paramtype identity_sources: list[~azure.mgmt.avs.models.IdentitySource]
:keyword availability: Properties describing how the cloud is distributed across availability
zones.
:paramtype availability: ~azure.mgmt.avs.models.AvailabilityProperties
:keyword encryption: Customer managed key encryption, can be enabled or disabled.
:paramtype encryption: ~azure.mgmt.avs.models.Encryption
:keyword extended_network_blocks: Array of additional networks noncontiguous with networkBlock.
Networks must be
unique and non-overlapping across VNet in your subscription, on-premise, and
this privateCloud networkBlock attribute. Make sure the CIDR format conforms to
(A.B.C.D/X).
:paramtype extended_network_blocks: list[str]
:keyword dns_zone_type: The type of DNS zone to use. Known values are: "Public" and "Private".
:paramtype dns_zone_type: str or ~azure.mgmt.avs.models.DnsZoneType
"""
super().__init__(**kwargs)
self.tags = tags
self.sku = sku
self.identity = identity
self.management_cluster = management_cluster
self.internet = internet
self.identity_sources = identity_sources
self.availability = availability
self.encryption = encryption
self.extended_network_blocks = extended_network_blocks
self.dns_zone_type = dns_zone_type
class ScriptExecutionParameter(_serialization.Model):
"""The arguments passed in to the execution.
You probably want to use the sub-classes and not this class directly. Known sub-classes are:
PSCredentialExecutionParameter, ScriptSecureStringExecutionParameter,
ScriptStringExecutionParameter
All required parameters must be populated in order to send to server.
:ivar type: script execution parameter type. Required. Known values are: "Value",
"SecureValue", and "Credential".
:vartype type: str or ~azure.mgmt.avs.models.ScriptExecutionParameterType
:ivar name: The parameter name. Required.
:vartype name: str
"""
_validation = {
"type": {"required": True},
"name": {"required": True},
}
_attribute_map = {
"type": {"key": "type", "type": "str"},
"name": {"key": "name", "type": "str"},
}
_subtype_map = {
"type": {
"Credential": "PSCredentialExecutionParameter",
"SecureValue": "ScriptSecureStringExecutionParameter",
"Value": "ScriptStringExecutionParameter",
}
}
def __init__(self, *, name: str, **kwargs: Any) -> None:
"""
:keyword name: The parameter name. Required.
:paramtype name: str
"""
super().__init__(**kwargs)
self.type: Optional[str] = None
self.name = name
class PSCredentialExecutionParameter(ScriptExecutionParameter):
"""a powershell credential object.
All required parameters must be populated in order to send to server.
:ivar type: script execution parameter type. Required. Known values are: "Value",
"SecureValue", and "Credential".
:vartype type: str or ~azure.mgmt.avs.models.ScriptExecutionParameterType
:ivar name: The parameter name. Required.
:vartype name: str
:ivar username: username for login.
:vartype username: str
:ivar password: password for login.
:vartype password: str
"""
_validation = {
"type": {"required": True},
"name": {"required": True},
}
_attribute_map = {
"type": {"key": "type", "type": "str"},
"name": {"key": "name", "type": "str"},
"username": {"key": "username", "type": "str"},
"password": {"key": "password", "type": "str"},
}
def __init__(
self, *, name: str, username: Optional[str] = None, password: Optional[str] = None, **kwargs: Any
) -> None:
"""
:keyword name: The parameter name. Required.
:paramtype name: str
:keyword username: username for login.
:paramtype username: str
:keyword password: password for login.
:paramtype password: str
"""
super().__init__(name=name, **kwargs)
self.type: str = "Credential"
self.username = username
self.password = password
class Quota(_serialization.Model):
"""Subscription quotas.
Variables are only populated by the server, and will be ignored when sending a request.
:ivar hosts_remaining: Remaining hosts quota by sku type.
:vartype hosts_remaining: dict[str, int]
:ivar quota_enabled: Host quota is active for current subscription. Known values are: "Enabled"
and "Disabled".
:vartype quota_enabled: str or ~azure.mgmt.avs.models.QuotaEnabled
"""
_validation = {
"hosts_remaining": {"readonly": True},
"quota_enabled": {"readonly": True},
}
_attribute_map = {
"hosts_remaining": {"key": "hostsRemaining", "type": "{int}"},
"quota_enabled": {"key": "quotaEnabled", "type": "str"},
}
def __init__(self, **kwargs: Any) -> None:
""" """
super().__init__(**kwargs)
self.hosts_remaining = None
self.quota_enabled = None
class ScriptCmdlet(ProxyResource):
"""A cmdlet available for script execution.
Variables are only populated by the server, and will be ignored when sending a request.
:ivar id: Fully qualified resource ID for the resource. E.g.
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}". # pylint: disable=line-too-long
:vartype id: str
:ivar name: The name of the resource.
:vartype name: str
:ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or
"Microsoft.Storage/storageAccounts".
:vartype type: str
:ivar system_data: Azure Resource Manager metadata containing createdBy and modifiedBy
information.
:vartype system_data: ~azure.mgmt.avs.models.SystemData
:ivar provisioning_state: The provisioning state of the resource. Known values are:
"Succeeded", "Failed", and "Canceled".
:vartype provisioning_state: str or ~azure.mgmt.avs.models.ScriptCmdletProvisioningState
:ivar description: Description of the scripts functionality.
:vartype description: str
:ivar timeout: Recommended time limit for execution.
:vartype timeout: str
:ivar audience: Specifies whether a script cmdlet is intended to be invoked only through
automation or visible to customers. Known values are: "Automation" and "Any".
:vartype audience: str or ~azure.mgmt.avs.models.ScriptCmdletAudience
:ivar parameters: Parameters the script will accept.
:vartype parameters: list[~azure.mgmt.avs.models.ScriptParameter]
"""
_validation = {
"id": {"readonly": True},
"name": {"readonly": True},
"type": {"readonly": True},
"system_data": {"readonly": True},
"provisioning_state": {"readonly": True},
"description": {"readonly": True},
"timeout": {"readonly": True},
"audience": {"readonly": True},
"parameters": {"readonly": True},
}
_attribute_map = {
"id": {"key": "id", "type": "str"},
"name": {"key": "name", "type": "str"},
"type": {"key": "type", "type": "str"},
"system_data": {"key": "systemData", "type": "SystemData"},
"provisioning_state": {"key": "properties.provisioningState", "type": "str"},
"description": {"key": "properties.description", "type": "str"},
"timeout": {"key": "properties.timeout", "type": "str"},
"audience": {"key": "properties.audience", "type": "str"},
"parameters": {"key": "properties.parameters", "type": "[ScriptParameter]"},
}
def __init__(self, **kwargs: Any) -> None:
""" """
super().__init__(**kwargs)
self.provisioning_state = None
self.description = None
self.timeout = None
self.audience = None
self.parameters = None
class ScriptCmdletsList(_serialization.Model):
"""The response of a ScriptCmdlet list operation.
All required parameters must be populated in order to send to server.
:ivar value: The ScriptCmdlet items on this page. Required.
:vartype value: list[~azure.mgmt.avs.models.ScriptCmdlet]
:ivar next_link: The link to the next page of items.
:vartype next_link: str
"""
_validation = {
"value": {"required": True},
}
_attribute_map = {
"value": {"key": "value", "type": "[ScriptCmdlet]"},
"next_link": {"key": "nextLink", "type": "str"},
}
def __init__(self, *, value: List["_models.ScriptCmdlet"], next_link: Optional[str] = None, **kwargs: Any) -> None:
"""
:keyword value: The ScriptCmdlet items on this page. Required.
:paramtype value: list[~azure.mgmt.avs.models.ScriptCmdlet]
:keyword next_link: The link to the next page of items.
:paramtype next_link: str
"""
super().__init__(**kwargs)
self.value = value
self.next_link = next_link
class ScriptExecution(ProxyResource): # pylint: disable=too-many-instance-attributes
"""An instance of a script executed by a user - custom or AVS.
Variables are only populated by the server, and will be ignored when sending a request.
:ivar id: Fully qualified resource ID for the resource. E.g.
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}". # pylint: disable=line-too-long
:vartype id: str
:ivar name: The name of the resource.
:vartype name: str
:ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or
"Microsoft.Storage/storageAccounts".
:vartype type: str
:ivar system_data: Azure Resource Manager metadata containing createdBy and modifiedBy
information.
:vartype system_data: ~azure.mgmt.avs.models.SystemData
:ivar script_cmdlet_id: A reference to the script cmdlet resource if user is running a AVS
script.
:vartype script_cmdlet_id: str
:ivar parameters: Parameters the script will accept.
:vartype parameters: list[~azure.mgmt.avs.models.ScriptExecutionParameter]
:ivar hidden_parameters: Parameters that will be hidden/not visible to ARM, such as passwords
and
credentials.
:vartype hidden_parameters: list[~azure.mgmt.avs.models.ScriptExecutionParameter]
:ivar failure_reason: Error message if the script was able to run, but if the script itself had
errors or powershell threw an exception.
:vartype failure_reason: str
:ivar timeout: Time limit for execution.
:vartype timeout: str
:ivar retention: Time to live for the resource. If not provided, will be available for 60 days.
:vartype retention: str
:ivar submitted_at: Time the script execution was submitted.
:vartype submitted_at: ~datetime.datetime
:ivar started_at: Time the script execution was started.
:vartype started_at: ~datetime.datetime
:ivar finished_at: Time the script execution was finished.
:vartype finished_at: ~datetime.datetime
:ivar provisioning_state: The state of the script execution resource. Known values are:
"Succeeded", "Failed", "Canceled", "Pending", "Running", "Cancelling", "Cancelled", and
"Deleting".
:vartype provisioning_state: str or ~azure.mgmt.avs.models.ScriptExecutionProvisioningState
:ivar output: Standard output stream from the powershell execution.
:vartype output: list[str]
:ivar named_outputs: User-defined dictionary.
:vartype named_outputs: dict[str, JSON]
:ivar information: Standard information out stream from the powershell execution.
:vartype information: list[str]
:ivar warnings: Standard warning out stream from the powershell execution.
:vartype warnings: list[str]
:ivar errors: Standard error output stream from the powershell execution.
:vartype errors: list[str]
"""
_validation = {
"id": {"readonly": True},
"name": {"readonly": True},
"type": {"readonly": True},
"system_data": {"readonly": True},
"submitted_at": {"readonly": True},
"started_at": {"readonly": True},
"finished_at": {"readonly": True},
"provisioning_state": {"readonly": True},
"information": {"readonly": True},
"warnings": {"readonly": True},
"errors": {"readonly": True},
}
_attribute_map = {
"id": {"key": "id", "type": "str"},
"name": {"key": "name", "type": "str"},
"type": {"key": "type", "type": "str"},
"system_data": {"key": "systemData", "type": "SystemData"},
"script_cmdlet_id": {"key": "properties.scriptCmdletId", "type": "str"},
"parameters": {"key": "properties.parameters", "type": "[ScriptExecutionParameter]"},
"hidden_parameters": {"key": "properties.hiddenParameters", "type": "[ScriptExecutionParameter]"},
"failure_reason": {"key": "properties.failureReason", "type": "str"},
"timeout": {"key": "properties.timeout", "type": "str"},
"retention": {"key": "properties.retention", "type": "str"},
"submitted_at": {"key": "properties.submittedAt", "type": "iso-8601"},
"started_at": {"key": "properties.startedAt", "type": "iso-8601"},
"finished_at": {"key": "properties.finishedAt", "type": "iso-8601"},
"provisioning_state": {"key": "properties.provisioningState", "type": "str"},
"output": {"key": "properties.output", "type": "[str]"},
"named_outputs": {"key": "properties.namedOutputs", "type": "{object}"},
"information": {"key": "properties.information", "type": "[str]"},
"warnings": {"key": "properties.warnings", "type": "[str]"},
"errors": {"key": "properties.errors", "type": "[str]"},
}
def __init__(
self,
*,
script_cmdlet_id: Optional[str] = None,
parameters: Optional[List["_models.ScriptExecutionParameter"]] = None,
hidden_parameters: Optional[List["_models.ScriptExecutionParameter"]] = None,
failure_reason: Optional[str] = None,
timeout: Optional[str] = None,
retention: Optional[str] = None,
output: Optional[List[str]] = None,
named_outputs: Optional[Dict[str, JSON]] = None,
**kwargs: Any
) -> None:
"""
:keyword script_cmdlet_id: A reference to the script cmdlet resource if user is running a AVS
script.
:paramtype script_cmdlet_id: str
:keyword parameters: Parameters the script will accept.
:paramtype parameters: list[~azure.mgmt.avs.models.ScriptExecutionParameter]
:keyword hidden_parameters: Parameters that will be hidden/not visible to ARM, such as
passwords and
credentials.
:paramtype hidden_parameters: list[~azure.mgmt.avs.models.ScriptExecutionParameter]
:keyword failure_reason: Error message if the script was able to run, but if the script itself
had
errors or powershell threw an exception.
:paramtype failure_reason: str
:keyword timeout: Time limit for execution.
:paramtype timeout: str
:keyword retention: Time to live for the resource. If not provided, will be available for 60
days.
:paramtype retention: str
:keyword output: Standard output stream from the powershell execution.
:paramtype output: list[str]
:keyword named_outputs: User-defined dictionary.
:paramtype named_outputs: dict[str, JSON]
"""
super().__init__(**kwargs)
self.script_cmdlet_id = script_cmdlet_id
self.parameters = parameters
self.hidden_parameters = hidden_parameters
self.failure_reason = failure_reason
self.timeout = timeout
self.retention = retention
self.submitted_at = None
self.started_at = None
self.finished_at = None
self.provisioning_state = None
self.output = output
self.named_outputs = named_outputs
self.information = None
self.warnings = None
self.errors = None
class ScriptExecutionsList(_serialization.Model):
"""The response of a ScriptExecution list operation.
All required parameters must be populated in order to send to server.
:ivar value: The ScriptExecution items on this page. Required.
:vartype value: list[~azure.mgmt.avs.models.ScriptExecution]
:ivar next_link: The link to the next page of items.
:vartype next_link: str
"""
_validation = {
"value": {"required": True},
}
_attribute_map = {
"value": {"key": "value", "type": "[ScriptExecution]"},
"next_link": {"key": "nextLink", "type": "str"},
}
def __init__(
self, *, value: List["_models.ScriptExecution"], next_link: Optional[str] = None, **kwargs: Any
) -> None:
"""
:keyword value: The ScriptExecution items on this page. Required.
:paramtype value: list[~azure.mgmt.avs.models.ScriptExecution]
:keyword next_link: The link to the next page of items.
:paramtype next_link: str
"""
super().__init__(**kwargs)
self.value = value
self.next_link = next_link
class ScriptPackage(ProxyResource):
"""Script Package resources available for execution.
Variables are only populated by the server, and will be ignored when sending a request.
:ivar id: Fully qualified resource ID for the resource. E.g.
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}". # pylint: disable=line-too-long
:vartype id: str
:ivar name: The name of the resource.
:vartype name: str
:ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or
"Microsoft.Storage/storageAccounts".
:vartype type: str
:ivar system_data: Azure Resource Manager metadata containing createdBy and modifiedBy
information.
:vartype system_data: ~azure.mgmt.avs.models.SystemData
:ivar provisioning_state: The provisioning state of the resource. Known values are:
"Succeeded", "Failed", and "Canceled".
:vartype provisioning_state: str or ~azure.mgmt.avs.models.ScriptPackageProvisioningState
:ivar description: User friendly description of the package.
:vartype description: str
:ivar version: Module version.
:vartype version: str
:ivar company: Company that created and supports the package.
:vartype company: str
:ivar uri: Link to support by the package vendor.
:vartype uri: str
"""
_validation = {
"id": {"readonly": True},
"name": {"readonly": True},
"type": {"readonly": True},
"system_data": {"readonly": True},
"provisioning_state": {"readonly": True},
"description": {"readonly": True},
"version": {"readonly": True},
"company": {"readonly": True},
"uri": {"readonly": True},
}
_attribute_map = {
"id": {"key": "id", "type": "str"},
"name": {"key": "name", "type": "str"},
"type": {"key": "type", "type": "str"},
"system_data": {"key": "systemData", "type": "SystemData"},
"provisioning_state": {"key": "properties.provisioningState", "type": "str"},
"description": {"key": "properties.description", "type": "str"},
"version": {"key": "properties.version", "type": "str"},
"company": {"key": "properties.company", "type": "str"},
"uri": {"key": "properties.uri", "type": "str"},
}
def __init__(self, **kwargs: Any) -> None:
""" """
super().__init__(**kwargs)
self.provisioning_state = None
self.description = None
self.version = None
self.company = None
self.uri = None
class ScriptPackagesList(_serialization.Model):
"""The response of a ScriptPackage list operation.
All required parameters must be populated in order to send to server.
:ivar value: The ScriptPackage items on this page. Required.
:vartype value: list[~azure.mgmt.avs.models.ScriptPackage]
:ivar next_link: The link to the next page of items.
:vartype next_link: str
"""
_validation = {
"value": {"required": True},
}
_attribute_map = {
"value": {"key": "value", "type": "[ScriptPackage]"},
"next_link": {"key": "nextLink", "type": "str"},
}
def __init__(self, *, value: List["_models.ScriptPackage"], next_link: Optional[str] = None, **kwargs: Any) -> None:
"""
:keyword value: The ScriptPackage items on this page. Required.
:paramtype value: list[~azure.mgmt.avs.models.ScriptPackage]
:keyword next_link: The link to the next page of items.
:paramtype next_link: str
"""
super().__init__(**kwargs)
self.value = value
self.next_link = next_link
class ScriptParameter(_serialization.Model):
"""An parameter that the script will accept.
Variables are only populated by the server, and will be ignored when sending a request.
:ivar type: The type of parameter the script is expecting. psCredential is a
PSCredentialObject. Known values are: "String", "SecureString", "Credential", "Int", "Bool",
"Float", and "Int".
:vartype type: str or ~azure.mgmt.avs.models.ScriptParameterTypes
:ivar name: The parameter name that the script will expect a parameter value for.
:vartype name: str
:ivar description: User friendly description of the parameter.
:vartype description: str
:ivar visibility: Should this parameter be visible to arm and passed in the parameters argument
when executing. Known values are: "Visible" and "Hidden".
:vartype visibility: str or ~azure.mgmt.avs.models.VisibilityParameterEnum
:ivar optional: Is this parameter required or optional. Known values are: "Optional" and
"Required".
:vartype optional: str or ~azure.mgmt.avs.models.OptionalParamEnum
"""
_validation = {
"type": {"readonly": True},
"description": {"readonly": True},
"visibility": {"readonly": True},
"optional": {"readonly": True},
}
_attribute_map = {
"type": {"key": "type", "type": "str"},
"name": {"key": "name", "type": "str"},
"description": {"key": "description", "type": "str"},
"visibility": {"key": "visibility", "type": "str"},
"optional": {"key": "optional", "type": "str"},
}
def __init__(self, *, name: Optional[str] = None, **kwargs: Any) -> None:
"""
:keyword name: The parameter name that the script will expect a parameter value for.
:paramtype name: str
"""
super().__init__(**kwargs)
self.type = None
self.name = name
self.description = None
self.visibility = None
self.optional = None
class ScriptSecureStringExecutionParameter(ScriptExecutionParameter):
"""a plain text value execution parameter.
All required parameters must be populated in order to send to server.
:ivar type: script execution parameter type. Required. Known values are: "Value",
"SecureValue", and "Credential".
:vartype type: str or ~azure.mgmt.avs.models.ScriptExecutionParameterType
:ivar name: The parameter name. Required.
:vartype name: str
:ivar secure_value: A secure value for the passed parameter, not to be stored in logs.
:vartype secure_value: str
"""
_validation = {
"type": {"required": True},
"name": {"required": True},
}
_attribute_map = {
"type": {"key": "type", "type": "str"},
"name": {"key": "name", "type": "str"},
"secure_value": {"key": "secureValue", "type": "str"},
}
def __init__(self, *, name: str, secure_value: Optional[str] = None, **kwargs: Any) -> None:
"""
:keyword name: The parameter name. Required.
:paramtype name: str
:keyword secure_value: A secure value for the passed parameter, not to be stored in logs.
:paramtype secure_value: str
"""
super().__init__(name=name, **kwargs)
self.type: str = "SecureValue"
self.secure_value = secure_value
class ScriptStringExecutionParameter(ScriptExecutionParameter):
"""a plain text value execution parameter.
All required parameters must be populated in order to send to server.
:ivar type: script execution parameter type. Required. Known values are: "Value",
"SecureValue", and "Credential".
:vartype type: str or ~azure.mgmt.avs.models.ScriptExecutionParameterType
:ivar name: The parameter name. Required.
:vartype name: str
:ivar value: The value for the passed parameter.
:vartype value: str
"""
_validation = {
"type": {"required": True},
"name": {"required": True},
}
_attribute_map = {
"type": {"key": "type", "type": "str"},
"name": {"key": "name", "type": "str"},
"value": {"key": "value", "type": "str"},
}
def __init__(self, *, name: str, value: Optional[str] = None, **kwargs: Any) -> None:
"""
:keyword name: The parameter name. Required.
:paramtype name: str
:keyword value: The value for the passed parameter.
:paramtype value: str
"""
super().__init__(name=name, **kwargs)
self.type: str = "Value"
self.value = value
class Sku(_serialization.Model):
"""The resource model definition representing SKU.
All required parameters must be populated in order to send to server.
:ivar name: The name of the SKU. E.g. P3. It is typically a letter+number code. Required.
:vartype name: str
:ivar tier: This field is required to be implemented by the Resource Provider if the service
has more than one tier, but is not required on a PUT. Known values are: "Free", "Basic",
"Standard", and "Premium".
:vartype tier: str or ~azure.mgmt.avs.models.SkuTier
:ivar size: The SKU size. When the name field is the combination of tier and some other value,
this would be the standalone code.
:vartype size: str
:ivar family: If the service has different generations of hardware, for the same SKU, then that
can be captured here.
:vartype family: str
:ivar capacity: If the SKU supports scale out/in then the capacity integer should be included.
If scale out/in is not possible for the resource this may be omitted.
:vartype capacity: int
"""
_validation = {
"name": {"required": True},
}
_attribute_map = {
"name": {"key": "name", "type": "str"},
"tier": {"key": "tier", "type": "str"},
"size": {"key": "size", "type": "str"},
"family": {"key": "family", "type": "str"},
"capacity": {"key": "capacity", "type": "int"},
}
def __init__(
self,
*,
name: str,
tier: Optional[Union[str, "_models.SkuTier"]] = None,
size: Optional[str] = None,
family: Optional[str] = None,
capacity: Optional[int] = None,
**kwargs: Any
) -> None:
"""
:keyword name: The name of the SKU. E.g. P3. It is typically a letter+number code. Required.
:paramtype name: str
:keyword tier: This field is required to be implemented by the Resource Provider if the service
has more than one tier, but is not required on a PUT. Known values are: "Free", "Basic",
"Standard", and "Premium".
:paramtype tier: str or ~azure.mgmt.avs.models.SkuTier
:keyword size: The SKU size. When the name field is the combination of tier and some other
value, this would be the standalone code.
:paramtype size: str
:keyword family: If the service has different generations of hardware, for the same SKU, then
that can be captured here.
:paramtype family: str
:keyword capacity: If the SKU supports scale out/in then the capacity integer should be
included. If scale out/in is not possible for the resource this may be omitted.
:paramtype capacity: int
"""
super().__init__(**kwargs)
self.name = name
self.tier = tier
self.size = size
self.family = family
self.capacity = capacity
class SystemData(_serialization.Model):
"""Metadata pertaining to creation and last modification of the resource.
:ivar created_by: The identity that created the resource.
:vartype created_by: str
:ivar created_by_type: The type of identity that created the resource. Known values are:
"User", "Application", "ManagedIdentity", and "Key".
:vartype created_by_type: str or ~azure.mgmt.avs.models.CreatedByType
:ivar created_at: The timestamp of resource creation (UTC).
:vartype created_at: ~datetime.datetime
:ivar last_modified_by: The identity that last modified the resource.
:vartype last_modified_by: str
:ivar last_modified_by_type: The type of identity that last modified the resource. Known values
are: "User", "Application", "ManagedIdentity", and "Key".
:vartype last_modified_by_type: str or ~azure.mgmt.avs.models.CreatedByType
:ivar last_modified_at: The timestamp of resource last modification (UTC).
:vartype last_modified_at: ~datetime.datetime
"""
_attribute_map = {
"created_by": {"key": "createdBy", "type": "str"},
"created_by_type": {"key": "createdByType", "type": "str"},
"created_at": {"key": "createdAt", "type": "iso-8601"},
"last_modified_by": {"key": "lastModifiedBy", "type": "str"},
"last_modified_by_type": {"key": "lastModifiedByType", "type": "str"},
"last_modified_at": {"key": "lastModifiedAt", "type": "iso-8601"},
}
def __init__(
self,
*,
created_by: Optional[str] = None,
created_by_type: Optional[Union[str, "_models.CreatedByType"]] = None,
created_at: Optional[datetime.datetime] = None,
last_modified_by: Optional[str] = None,
last_modified_by_type: Optional[Union[str, "_models.CreatedByType"]] = None,
last_modified_at: Optional[datetime.datetime] = None,
**kwargs: Any
) -> None:
"""
:keyword created_by: The identity that created the resource.
:paramtype created_by: str
:keyword created_by_type: The type of identity that created the resource. Known values are:
"User", "Application", "ManagedIdentity", and "Key".
:paramtype created_by_type: str or ~azure.mgmt.avs.models.CreatedByType
:keyword created_at: The timestamp of resource creation (UTC).
:paramtype created_at: ~datetime.datetime
:keyword last_modified_by: The identity that last modified the resource.
:paramtype last_modified_by: str
:keyword last_modified_by_type: The type of identity that last modified the resource. Known
values are: "User", "Application", "ManagedIdentity", and "Key".
:paramtype last_modified_by_type: str or ~azure.mgmt.avs.models.CreatedByType
:keyword last_modified_at: The timestamp of resource last modification (UTC).
:paramtype last_modified_at: ~datetime.datetime
"""
super().__init__(**kwargs)
self.created_by = created_by
self.created_by_type = created_by_type
self.created_at = created_at
self.last_modified_by = last_modified_by
self.last_modified_by_type = last_modified_by_type
self.last_modified_at = last_modified_at
class Trial(_serialization.Model):
"""Subscription trial availability.
Variables are only populated by the server, and will be ignored when sending a request.
:ivar status: Trial status. Known values are: "TrialAvailable", "TrialUsed", and
"TrialDisabled".
:vartype status: str or ~azure.mgmt.avs.models.TrialStatus
:ivar available_hosts: Number of trial hosts available.
:vartype available_hosts: int
"""
_validation = {
"status": {"readonly": True},
"available_hosts": {"readonly": True},
}
_attribute_map = {
"status": {"key": "status", "type": "str"},
"available_hosts": {"key": "availableHosts", "type": "int"},
}
def __init__(self, **kwargs: Any) -> None:
""" """
super().__init__(**kwargs)
self.status = None
self.available_hosts = None
class VirtualMachine(ProxyResource):
"""Virtual Machine.
Variables are only populated by the server, and will be ignored when sending a request.
:ivar id: Fully qualified resource ID for the resource. E.g.
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}". # pylint: disable=line-too-long
:vartype id: str
:ivar name: The name of the resource.
:vartype name: str
:ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or
"Microsoft.Storage/storageAccounts".
:vartype type: str
:ivar system_data: Azure Resource Manager metadata containing createdBy and modifiedBy
information.
:vartype system_data: ~azure.mgmt.avs.models.SystemData
:ivar provisioning_state: The provisioning state of the resource. Known values are:
"Succeeded", "Failed", and "Canceled".
:vartype provisioning_state: str or ~azure.mgmt.avs.models.VirtualMachineProvisioningState
:ivar display_name: Display name of the VM.
:vartype display_name: str
:ivar mo_ref_id: Virtual machine managed object reference id.
:vartype mo_ref_id: str
:ivar folder_path: Path to virtual machine's folder starting from datacenter virtual machine
folder.
:vartype folder_path: str
:ivar restrict_movement: Whether VM DRS-driven movement is restricted (enabled) or not
(disabled). Known values are: "Enabled" and "Disabled".
:vartype restrict_movement: str or ~azure.mgmt.avs.models.VirtualMachineRestrictMovementState
"""
_validation = {
"id": {"readonly": True},
"name": {"readonly": True},
"type": {"readonly": True},
"system_data": {"readonly": True},
"provisioning_state": {"readonly": True},
"display_name": {"readonly": True},
"mo_ref_id": {"readonly": True},
"folder_path": {"readonly": True},
"restrict_movement": {"readonly": True},
}
_attribute_map = {
"id": {"key": "id", "type": "str"},
"name": {"key": "name", "type": "str"},
"type": {"key": "type", "type": "str"},
"system_data": {"key": "systemData", "type": "SystemData"},
"provisioning_state": {"key": "properties.provisioningState", "type": "str"},
"display_name": {"key": "properties.displayName", "type": "str"},
"mo_ref_id": {"key": "properties.moRefId", "type": "str"},
"folder_path": {"key": "properties.folderPath", "type": "str"},
"restrict_movement": {"key": "properties.restrictMovement", "type": "str"},
}
def __init__(self, **kwargs: Any) -> None:
""" """
super().__init__(**kwargs)
self.provisioning_state = None
self.display_name = None
self.mo_ref_id = None
self.folder_path = None
self.restrict_movement = None
class VirtualMachineRestrictMovement(_serialization.Model):
"""Set VM DRS-driven movement to restricted (enabled) or not (disabled).
:ivar restrict_movement: Whether VM DRS-driven movement is restricted (enabled) or not
(disabled). Known values are: "Enabled" and "Disabled".
:vartype restrict_movement: str or ~azure.mgmt.avs.models.VirtualMachineRestrictMovementState
"""
_attribute_map = {
"restrict_movement": {"key": "restrictMovement", "type": "str"},
}
def __init__(
self,
*,
restrict_movement: Optional[Union[str, "_models.VirtualMachineRestrictMovementState"]] = None,
**kwargs: Any
) -> None:
"""
:keyword restrict_movement: Whether VM DRS-driven movement is restricted (enabled) or not
(disabled). Known values are: "Enabled" and "Disabled".
:paramtype restrict_movement: str or ~azure.mgmt.avs.models.VirtualMachineRestrictMovementState
"""
super().__init__(**kwargs)
self.restrict_movement = restrict_movement
class VirtualMachinesList(_serialization.Model):
"""The response of a VirtualMachine list operation.
All required parameters must be populated in order to send to server.
:ivar value: The VirtualMachine items on this page. Required.
:vartype value: list[~azure.mgmt.avs.models.VirtualMachine]
:ivar next_link: The link to the next page of items.
:vartype next_link: str
"""
_validation = {
"value": {"required": True},
}
_attribute_map = {
"value": {"key": "value", "type": "[VirtualMachine]"},
"next_link": {"key": "nextLink", "type": "str"},
}
def __init__(
self, *, value: List["_models.VirtualMachine"], next_link: Optional[str] = None, **kwargs: Any
) -> None:
"""
:keyword value: The VirtualMachine items on this page. Required.
:paramtype value: list[~azure.mgmt.avs.models.VirtualMachine]
:keyword next_link: The link to the next page of items.
:paramtype next_link: str
"""
super().__init__(**kwargs)
self.value = value
self.next_link = next_link
class VmHostPlacementPolicyProperties(PlacementPolicyProperties):
"""VM-Host placement policy properties.
Variables are only populated by the server, and will be ignored when sending a request.
All required parameters must be populated in order to send to server.
:ivar type: Placement Policy type. Required. Known values are: "VmVm" and "VmHost".
:vartype type: str or ~azure.mgmt.avs.models.PlacementPolicyType
:ivar state: Whether the placement policy is enabled or disabled. Known values are: "Enabled"
and "Disabled".
:vartype state: str or ~azure.mgmt.avs.models.PlacementPolicyState
:ivar display_name: Display name of the placement policy.
:vartype display_name: str
:ivar provisioning_state: The provisioning state. Known values are: "Succeeded", "Failed",
"Canceled", "Building", "Deleting", and "Updating".
:vartype provisioning_state: str or ~azure.mgmt.avs.models.PlacementPolicyProvisioningState
:ivar vm_members: Virtual machine members list. Required.
:vartype vm_members: list[str]
:ivar host_members: Host members list. Required.
:vartype host_members: list[str]
:ivar affinity_type: placement policy affinity type. Required. Known values are: "Affinity" and
"AntiAffinity".
:vartype affinity_type: str or ~azure.mgmt.avs.models.AffinityType
:ivar affinity_strength: vm-host placement policy affinity strength (should/must). Known values
are: "Should" and "Must".
:vartype affinity_strength: str or ~azure.mgmt.avs.models.AffinityStrength
:ivar azure_hybrid_benefit_type: placement policy azure hybrid benefit opt-in type. Known
values are: "SqlHost" and "None".
:vartype azure_hybrid_benefit_type: str or ~azure.mgmt.avs.models.AzureHybridBenefitType
"""
_validation = {
"type": {"required": True},
"provisioning_state": {"readonly": True},
"vm_members": {"required": True},
"host_members": {"required": True},
"affinity_type": {"required": True},
}
_attribute_map = {
"type": {"key": "type", "type": "str"},
"state": {"key": "state", "type": "str"},
"display_name": {"key": "displayName", "type": "str"},
"provisioning_state": {"key": "provisioningState", "type": "str"},
"vm_members": {"key": "vmMembers", "type": "[str]"},
"host_members": {"key": "hostMembers", "type": "[str]"},
"affinity_type": {"key": "affinityType", "type": "str"},
"affinity_strength": {"key": "affinityStrength", "type": "str"},
"azure_hybrid_benefit_type": {"key": "azureHybridBenefitType", "type": "str"},
}
def __init__(
self,
*,
vm_members: List[str],
host_members: List[str],
affinity_type: Union[str, "_models.AffinityType"],
state: Optional[Union[str, "_models.PlacementPolicyState"]] = None,
display_name: Optional[str] = None,
affinity_strength: Optional[Union[str, "_models.AffinityStrength"]] = None,
azure_hybrid_benefit_type: Optional[Union[str, "_models.AzureHybridBenefitType"]] = None,
**kwargs: Any
) -> None:
"""
:keyword state: Whether the placement policy is enabled or disabled. Known values are:
"Enabled" and "Disabled".
:paramtype state: str or ~azure.mgmt.avs.models.PlacementPolicyState
:keyword display_name: Display name of the placement policy.
:paramtype display_name: str
:keyword vm_members: Virtual machine members list. Required.
:paramtype vm_members: list[str]
:keyword host_members: Host members list. Required.
:paramtype host_members: list[str]
:keyword affinity_type: placement policy affinity type. Required. Known values are: "Affinity"
and "AntiAffinity".
:paramtype affinity_type: str or ~azure.mgmt.avs.models.AffinityType
:keyword affinity_strength: vm-host placement policy affinity strength (should/must). Known
values are: "Should" and "Must".
:paramtype affinity_strength: str or ~azure.mgmt.avs.models.AffinityStrength
:keyword azure_hybrid_benefit_type: placement policy azure hybrid benefit opt-in type. Known
values are: "SqlHost" and "None".
:paramtype azure_hybrid_benefit_type: str or ~azure.mgmt.avs.models.AzureHybridBenefitType
"""
super().__init__(state=state, display_name=display_name, **kwargs)
self.type: str = "VmHost"
self.vm_members = vm_members
self.host_members = host_members
self.affinity_type = affinity_type
self.affinity_strength = affinity_strength
self.azure_hybrid_benefit_type = azure_hybrid_benefit_type
class VmPlacementPolicyProperties(PlacementPolicyProperties):
"""VM-VM placement policy properties.
Variables are only populated by the server, and will be ignored when sending a request.
All required parameters must be populated in order to send to server.
:ivar type: Placement Policy type. Required. Known values are: "VmVm" and "VmHost".
:vartype type: str or ~azure.mgmt.avs.models.PlacementPolicyType
:ivar state: Whether the placement policy is enabled or disabled. Known values are: "Enabled"
and "Disabled".
:vartype state: str or ~azure.mgmt.avs.models.PlacementPolicyState
:ivar display_name: Display name of the placement policy.
:vartype display_name: str
:ivar provisioning_state: The provisioning state. Known values are: "Succeeded", "Failed",
"Canceled", "Building", "Deleting", and "Updating".
:vartype provisioning_state: str or ~azure.mgmt.avs.models.PlacementPolicyProvisioningState
:ivar vm_members: Virtual machine members list. Required.
:vartype vm_members: list[str]
:ivar affinity_type: placement policy affinity type. Required. Known values are: "Affinity" and
"AntiAffinity".
:vartype affinity_type: str or ~azure.mgmt.avs.models.AffinityType
"""
_validation = {
"type": {"required": True},
"provisioning_state": {"readonly": True},
"vm_members": {"required": True},
"affinity_type": {"required": True},
}
_attribute_map = {
"type": {"key": "type", "type": "str"},
"state": {"key": "state", "type": "str"},
"display_name": {"key": "displayName", "type": "str"},
"provisioning_state": {"key": "provisioningState", "type": "str"},
"vm_members": {"key": "vmMembers", "type": "[str]"},
"affinity_type": {"key": "affinityType", "type": "str"},
}
def __init__(
self,
*,
vm_members: List[str],
affinity_type: Union[str, "_models.AffinityType"],
state: Optional[Union[str, "_models.PlacementPolicyState"]] = None,
display_name: Optional[str] = None,
**kwargs: Any
) -> None:
"""
:keyword state: Whether the placement policy is enabled or disabled. Known values are:
"Enabled" and "Disabled".
:paramtype state: str or ~azure.mgmt.avs.models.PlacementPolicyState
:keyword display_name: Display name of the placement policy.
:paramtype display_name: str
:keyword vm_members: Virtual machine members list. Required.
:paramtype vm_members: list[str]
:keyword affinity_type: placement policy affinity type. Required. Known values are: "Affinity"
and "AntiAffinity".
:paramtype affinity_type: str or ~azure.mgmt.avs.models.AffinityType
"""
super().__init__(state=state, display_name=display_name, **kwargs)
self.type: str = "VmVm"
self.vm_members = vm_members
self.affinity_type = affinity_type
class WorkloadNetwork(ProxyResource):
"""Workload Network.
Variables are only populated by the server, and will be ignored when sending a request.
:ivar id: Fully qualified resource ID for the resource. E.g.
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}". # pylint: disable=line-too-long
:vartype id: str
:ivar name: The name of the resource.
:vartype name: str
:ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or
"Microsoft.Storage/storageAccounts".
:vartype type: str
:ivar system_data: Azure Resource Manager metadata containing createdBy and modifiedBy
information.
:vartype system_data: ~azure.mgmt.avs.models.SystemData
:ivar provisioning_state: The provisioning state of the resource. Known values are:
"Succeeded", "Failed", "Canceled", "Building", "Deleting", and "Updating".
:vartype provisioning_state: str or ~azure.mgmt.avs.models.WorkloadNetworkProvisioningState
"""
_validation = {
"id": {"readonly": True},
"name": {"readonly": True},
"type": {"readonly": True},
"system_data": {"readonly": True},
"provisioning_state": {"readonly": True},
}
_attribute_map = {
"id": {"key": "id", "type": "str"},
"name": {"key": "name", "type": "str"},
"type": {"key": "type", "type": "str"},
"system_data": {"key": "systemData", "type": "SystemData"},
"provisioning_state": {"key": "properties.provisioningState", "type": "str"},
}
def __init__(self, **kwargs: Any) -> None:
""" """
super().__init__(**kwargs)
self.provisioning_state = None
class WorkloadNetworkDhcp(ProxyResource):
"""NSX DHCP.
Variables are only populated by the server, and will be ignored when sending a request.
:ivar id: Fully qualified resource ID for the resource. E.g.
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}". # pylint: disable=line-too-long
:vartype id: str
:ivar name: The name of the resource.
:vartype name: str
:ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or
"Microsoft.Storage/storageAccounts".
:vartype type: str
:ivar system_data: Azure Resource Manager metadata containing createdBy and modifiedBy
information.
:vartype system_data: ~azure.mgmt.avs.models.SystemData
:ivar properties: The resource-specific properties for this resource.
:vartype properties: ~azure.mgmt.avs.models.WorkloadNetworkDhcpEntity
"""
_validation = {
"id": {"readonly": True},
"name": {"readonly": True},
"type": {"readonly": True},
"system_data": {"readonly": True},
}
_attribute_map = {
"id": {"key": "id", "type": "str"},
"name": {"key": "name", "type": "str"},
"type": {"key": "type", "type": "str"},
"system_data": {"key": "systemData", "type": "SystemData"},
"properties": {"key": "properties", "type": "WorkloadNetworkDhcpEntity"},
}
def __init__(self, *, properties: Optional["_models.WorkloadNetworkDhcpEntity"] = None, **kwargs: Any) -> None:
"""
:keyword properties: The resource-specific properties for this resource.
:paramtype properties: ~azure.mgmt.avs.models.WorkloadNetworkDhcpEntity
"""
super().__init__(**kwargs)
self.properties = properties
class WorkloadNetworkDhcpEntity(_serialization.Model):
"""Base class for WorkloadNetworkDhcpServer and WorkloadNetworkDhcpRelay to
inherit from.
You probably want to use the sub-classes and not this class directly. Known sub-classes are:
WorkloadNetworkDhcpRelay, WorkloadNetworkDhcpServer
Variables are only populated by the server, and will be ignored when sending a request.
All required parameters must be populated in order to send to server.
:ivar dhcp_type: Type of DHCP: SERVER or RELAY. Required. Known values are: "SERVER" and
"RELAY".
:vartype dhcp_type: str or ~azure.mgmt.avs.models.DhcpTypeEnum
:ivar display_name: Display name of the DHCP entity.
:vartype display_name: str
:ivar segments: NSX Segments consuming DHCP.
:vartype segments: list[str]
:ivar provisioning_state: The provisioning state. Known values are: "Succeeded", "Failed",
"Canceled", "Building", "Deleting", and "Updating".
:vartype provisioning_state: str or ~azure.mgmt.avs.models.WorkloadNetworkDhcpProvisioningState
:ivar revision: NSX revision number.
:vartype revision: int
"""
_validation = {
"dhcp_type": {"required": True},
"segments": {"readonly": True},
"provisioning_state": {"readonly": True},
}
_attribute_map = {
"dhcp_type": {"key": "dhcpType", "type": "str"},
"display_name": {"key": "displayName", "type": "str"},
"segments": {"key": "segments", "type": "[str]"},
"provisioning_state": {"key": "provisioningState", "type": "str"},
"revision": {"key": "revision", "type": "int"},
}
_subtype_map = {"dhcp_type": {"RELAY": "WorkloadNetworkDhcpRelay", "SERVER": "WorkloadNetworkDhcpServer"}}
def __init__(self, *, display_name: Optional[str] = None, revision: Optional[int] = None, **kwargs: Any) -> None:
"""
:keyword display_name: Display name of the DHCP entity.
:paramtype display_name: str
:keyword revision: NSX revision number.
:paramtype revision: int
"""
super().__init__(**kwargs)
self.dhcp_type: Optional[str] = None
self.display_name = display_name
self.segments = None
self.provisioning_state = None
self.revision = revision
class WorkloadNetworkDhcpList(_serialization.Model):
"""The response of a WorkloadNetworkDhcp list operation.
All required parameters must be populated in order to send to server.
:ivar value: The WorkloadNetworkDhcp items on this page. Required.
:vartype value: list[~azure.mgmt.avs.models.WorkloadNetworkDhcp]
:ivar next_link: The link to the next page of items.
:vartype next_link: str
"""
_validation = {
"value": {"required": True},
}
_attribute_map = {
"value": {"key": "value", "type": "[WorkloadNetworkDhcp]"},
"next_link": {"key": "nextLink", "type": "str"},
}
def __init__(
self, *, value: List["_models.WorkloadNetworkDhcp"], next_link: Optional[str] = None, **kwargs: Any
) -> None:
"""
:keyword value: The WorkloadNetworkDhcp items on this page. Required.
:paramtype value: list[~azure.mgmt.avs.models.WorkloadNetworkDhcp]
:keyword next_link: The link to the next page of items.
:paramtype next_link: str
"""
super().__init__(**kwargs)
self.value = value
self.next_link = next_link
class WorkloadNetworkDhcpRelay(WorkloadNetworkDhcpEntity):
"""NSX DHCP Relay.
Variables are only populated by the server, and will be ignored when sending a request.
All required parameters must be populated in order to send to server.
:ivar dhcp_type: Type of DHCP: SERVER or RELAY. Required. Known values are: "SERVER" and
"RELAY".
:vartype dhcp_type: str or ~azure.mgmt.avs.models.DhcpTypeEnum
:ivar display_name: Display name of the DHCP entity.
:vartype display_name: str
:ivar segments: NSX Segments consuming DHCP.
:vartype segments: list[str]
:ivar provisioning_state: The provisioning state. Known values are: "Succeeded", "Failed",
"Canceled", "Building", "Deleting", and "Updating".
:vartype provisioning_state: str or ~azure.mgmt.avs.models.WorkloadNetworkDhcpProvisioningState
:ivar revision: NSX revision number.
:vartype revision: int
:ivar server_addresses: DHCP Relay Addresses. Max 3.
:vartype server_addresses: list[str]
"""
_validation = {
"dhcp_type": {"required": True},
"segments": {"readonly": True},
"provisioning_state": {"readonly": True},
"server_addresses": {"max_items": 3, "min_items": 1},
}
_attribute_map = {
"dhcp_type": {"key": "dhcpType", "type": "str"},
"display_name": {"key": "displayName", "type": "str"},
"segments": {"key": "segments", "type": "[str]"},
"provisioning_state": {"key": "provisioningState", "type": "str"},
"revision": {"key": "revision", "type": "int"},
"server_addresses": {"key": "serverAddresses", "type": "[str]"},
}
def __init__(
self,
*,
display_name: Optional[str] = None,
revision: Optional[int] = None,
server_addresses: Optional[List[str]] = None,
**kwargs: Any
) -> None:
"""
:keyword display_name: Display name of the DHCP entity.
:paramtype display_name: str
:keyword revision: NSX revision number.
:paramtype revision: int
:keyword server_addresses: DHCP Relay Addresses. Max 3.
:paramtype server_addresses: list[str]
"""
super().__init__(display_name=display_name, revision=revision, **kwargs)
self.dhcp_type: str = "RELAY"
self.server_addresses = server_addresses
class WorkloadNetworkDhcpServer(WorkloadNetworkDhcpEntity):
"""NSX DHCP Server.
Variables are only populated by the server, and will be ignored when sending a request.
All required parameters must be populated in order to send to server.
:ivar dhcp_type: Type of DHCP: SERVER or RELAY. Required. Known values are: "SERVER" and
"RELAY".
:vartype dhcp_type: str or ~azure.mgmt.avs.models.DhcpTypeEnum
:ivar display_name: Display name of the DHCP entity.
:vartype display_name: str
:ivar segments: NSX Segments consuming DHCP.
:vartype segments: list[str]
:ivar provisioning_state: The provisioning state. Known values are: "Succeeded", "Failed",
"Canceled", "Building", "Deleting", and "Updating".
:vartype provisioning_state: str or ~azure.mgmt.avs.models.WorkloadNetworkDhcpProvisioningState
:ivar revision: NSX revision number.
:vartype revision: int
:ivar server_address: DHCP Server Address.
:vartype server_address: str
:ivar lease_time: DHCP Server Lease Time.
:vartype lease_time: int
"""
_validation = {
"dhcp_type": {"required": True},
"segments": {"readonly": True},
"provisioning_state": {"readonly": True},
}
_attribute_map = {
"dhcp_type": {"key": "dhcpType", "type": "str"},
"display_name": {"key": "displayName", "type": "str"},
"segments": {"key": "segments", "type": "[str]"},
"provisioning_state": {"key": "provisioningState", "type": "str"},
"revision": {"key": "revision", "type": "int"},
"server_address": {"key": "serverAddress", "type": "str"},
"lease_time": {"key": "leaseTime", "type": "int"},
}
def __init__(
self,
*,
display_name: Optional[str] = None,
revision: Optional[int] = None,
server_address: Optional[str] = None,
lease_time: Optional[int] = None,
**kwargs: Any
) -> None:
"""
:keyword display_name: Display name of the DHCP entity.
:paramtype display_name: str
:keyword revision: NSX revision number.
:paramtype revision: int
:keyword server_address: DHCP Server Address.
:paramtype server_address: str
:keyword lease_time: DHCP Server Lease Time.
:paramtype lease_time: int
"""
super().__init__(display_name=display_name, revision=revision, **kwargs)
self.dhcp_type: str = "SERVER"
self.server_address = server_address
self.lease_time = lease_time
class WorkloadNetworkDnsService(ProxyResource): # pylint: disable=too-many-instance-attributes
"""NSX DNS Service.
Variables are only populated by the server, and will be ignored when sending a request.
:ivar id: Fully qualified resource ID for the resource. E.g.
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}". # pylint: disable=line-too-long
:vartype id: str
:ivar name: The name of the resource.
:vartype name: str
:ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or
"Microsoft.Storage/storageAccounts".
:vartype type: str
:ivar system_data: Azure Resource Manager metadata containing createdBy and modifiedBy
information.
:vartype system_data: ~azure.mgmt.avs.models.SystemData
:ivar display_name: Display name of the DNS Service.
:vartype display_name: str
:ivar dns_service_ip: DNS service IP of the DNS Service.
:vartype dns_service_ip: str
:ivar default_dns_zone: Default DNS zone of the DNS Service.
:vartype default_dns_zone: str
:ivar fqdn_zones: FQDN zones of the DNS Service.
:vartype fqdn_zones: list[str]
:ivar log_level: DNS Service log level. Known values are: "DEBUG", "INFO", "WARNING", "ERROR",
and "FATAL".
:vartype log_level: str or ~azure.mgmt.avs.models.DnsServiceLogLevelEnum
:ivar status: DNS Service status. Known values are: "SUCCESS" and "FAILURE".
:vartype status: str or ~azure.mgmt.avs.models.DnsServiceStatusEnum
:ivar provisioning_state: The provisioning state. Known values are: "Succeeded", "Failed",
"Canceled", "Building", "Deleting", and "Updating".
:vartype provisioning_state: str or
~azure.mgmt.avs.models.WorkloadNetworkDnsServiceProvisioningState
:ivar revision: NSX revision number.
:vartype revision: int
"""
_validation = {
"id": {"readonly": True},
"name": {"readonly": True},
"type": {"readonly": True},
"system_data": {"readonly": True},
"status": {"readonly": True},
"provisioning_state": {"readonly": True},
}
_attribute_map = {
"id": {"key": "id", "type": "str"},
"name": {"key": "name", "type": "str"},
"type": {"key": "type", "type": "str"},
"system_data": {"key": "systemData", "type": "SystemData"},
"display_name": {"key": "properties.displayName", "type": "str"},
"dns_service_ip": {"key": "properties.dnsServiceIp", "type": "str"},
"default_dns_zone": {"key": "properties.defaultDnsZone", "type": "str"},
"fqdn_zones": {"key": "properties.fqdnZones", "type": "[str]"},
"log_level": {"key": "properties.logLevel", "type": "str"},
"status": {"key": "properties.status", "type": "str"},
"provisioning_state": {"key": "properties.provisioningState", "type": "str"},
"revision": {"key": "properties.revision", "type": "int"},
}
def __init__(
self,
*,
display_name: Optional[str] = None,
dns_service_ip: Optional[str] = None,
default_dns_zone: Optional[str] = None,
fqdn_zones: Optional[List[str]] = None,
log_level: Optional[Union[str, "_models.DnsServiceLogLevelEnum"]] = None,
revision: Optional[int] = None,
**kwargs: Any
) -> None:
"""
:keyword display_name: Display name of the DNS Service.
:paramtype display_name: str
:keyword dns_service_ip: DNS service IP of the DNS Service.
:paramtype dns_service_ip: str
:keyword default_dns_zone: Default DNS zone of the DNS Service.
:paramtype default_dns_zone: str
:keyword fqdn_zones: FQDN zones of the DNS Service.
:paramtype fqdn_zones: list[str]
:keyword log_level: DNS Service log level. Known values are: "DEBUG", "INFO", "WARNING",
"ERROR", and "FATAL".
:paramtype log_level: str or ~azure.mgmt.avs.models.DnsServiceLogLevelEnum
:keyword revision: NSX revision number.
:paramtype revision: int
"""
super().__init__(**kwargs)
self.display_name = display_name
self.dns_service_ip = dns_service_ip
self.default_dns_zone = default_dns_zone
self.fqdn_zones = fqdn_zones
self.log_level = log_level
self.status = None
self.provisioning_state = None
self.revision = revision
class WorkloadNetworkDnsServicesList(_serialization.Model):
"""The response of a WorkloadNetworkDnsService list operation.
All required parameters must be populated in order to send to server.
:ivar value: The WorkloadNetworkDnsService items on this page. Required.
:vartype value: list[~azure.mgmt.avs.models.WorkloadNetworkDnsService]
:ivar next_link: The link to the next page of items.
:vartype next_link: str
"""
_validation = {
"value": {"required": True},
}
_attribute_map = {
"value": {"key": "value", "type": "[WorkloadNetworkDnsService]"},
"next_link": {"key": "nextLink", "type": "str"},
}
def __init__(
self, *, value: List["_models.WorkloadNetworkDnsService"], next_link: Optional[str] = None, **kwargs: Any
) -> None:
"""
:keyword value: The WorkloadNetworkDnsService items on this page. Required.
:paramtype value: list[~azure.mgmt.avs.models.WorkloadNetworkDnsService]
:keyword next_link: The link to the next page of items.
:paramtype next_link: str
"""
super().__init__(**kwargs)
self.value = value
self.next_link = next_link
class WorkloadNetworkDnsZone(ProxyResource): # pylint: disable=too-many-instance-attributes
"""NSX DNS Zone.
Variables are only populated by the server, and will be ignored when sending a request.
:ivar id: Fully qualified resource ID for the resource. E.g.
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}". # pylint: disable=line-too-long
:vartype id: str
:ivar name: The name of the resource.
:vartype name: str
:ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or
"Microsoft.Storage/storageAccounts".
:vartype type: str
:ivar system_data: Azure Resource Manager metadata containing createdBy and modifiedBy
information.
:vartype system_data: ~azure.mgmt.avs.models.SystemData
:ivar display_name: Display name of the DNS Zone.
:vartype display_name: str
:ivar domain: Domain names of the DNS Zone.
:vartype domain: list[str]
:ivar dns_server_ips: DNS Server IP array of the DNS Zone.
:vartype dns_server_ips: list[str]
:ivar source_ip: Source IP of the DNS Zone.
:vartype source_ip: str
:ivar dns_services: Number of DNS Services using the DNS zone.
:vartype dns_services: int
:ivar provisioning_state: The provisioning state. Known values are: "Succeeded", "Failed",
"Canceled", "Building", "Deleting", and "Updating".
:vartype provisioning_state: str or
~azure.mgmt.avs.models.WorkloadNetworkDnsZoneProvisioningState
:ivar revision: NSX revision number.
:vartype revision: int
"""
_validation = {
"id": {"readonly": True},
"name": {"readonly": True},
"type": {"readonly": True},
"system_data": {"readonly": True},
"provisioning_state": {"readonly": True},
}
_attribute_map = {
"id": {"key": "id", "type": "str"},
"name": {"key": "name", "type": "str"},
"type": {"key": "type", "type": "str"},
"system_data": {"key": "systemData", "type": "SystemData"},
"display_name": {"key": "properties.displayName", "type": "str"},
"domain": {"key": "properties.domain", "type": "[str]"},
"dns_server_ips": {"key": "properties.dnsServerIps", "type": "[str]"},
"source_ip": {"key": "properties.sourceIp", "type": "str"},
"dns_services": {"key": "properties.dnsServices", "type": "int"},
"provisioning_state": {"key": "properties.provisioningState", "type": "str"},
"revision": {"key": "properties.revision", "type": "int"},
}
def __init__(
self,
*,
display_name: Optional[str] = None,
domain: Optional[List[str]] = None,
dns_server_ips: Optional[List[str]] = None,
source_ip: Optional[str] = None,
dns_services: Optional[int] = None,
revision: Optional[int] = None,
**kwargs: Any
) -> None:
"""
:keyword display_name: Display name of the DNS Zone.
:paramtype display_name: str
:keyword domain: Domain names of the DNS Zone.
:paramtype domain: list[str]
:keyword dns_server_ips: DNS Server IP array of the DNS Zone.
:paramtype dns_server_ips: list[str]
:keyword source_ip: Source IP of the DNS Zone.
:paramtype source_ip: str
:keyword dns_services: Number of DNS Services using the DNS zone.
:paramtype dns_services: int
:keyword revision: NSX revision number.
:paramtype revision: int
"""
super().__init__(**kwargs)
self.display_name = display_name
self.domain = domain
self.dns_server_ips = dns_server_ips
self.source_ip = source_ip
self.dns_services = dns_services
self.provisioning_state = None
self.revision = revision
class WorkloadNetworkDnsZonesList(_serialization.Model):
"""The response of a WorkloadNetworkDnsZone list operation.
All required parameters must be populated in order to send to server.
:ivar value: The WorkloadNetworkDnsZone items on this page. Required.
:vartype value: list[~azure.mgmt.avs.models.WorkloadNetworkDnsZone]
:ivar next_link: The link to the next page of items.
:vartype next_link: str
"""
_validation = {
"value": {"required": True},
}
_attribute_map = {
"value": {"key": "value", "type": "[WorkloadNetworkDnsZone]"},
"next_link": {"key": "nextLink", "type": "str"},
}
def __init__(
self, *, value: List["_models.WorkloadNetworkDnsZone"], next_link: Optional[str] = None, **kwargs: Any
) -> None:
"""
:keyword value: The WorkloadNetworkDnsZone items on this page. Required.
:paramtype value: list[~azure.mgmt.avs.models.WorkloadNetworkDnsZone]
:keyword next_link: The link to the next page of items.
:paramtype next_link: str
"""
super().__init__(**kwargs)
self.value = value
self.next_link = next_link
class WorkloadNetworkGateway(ProxyResource):
"""NSX Gateway.
Variables are only populated by the server, and will be ignored when sending a request.
:ivar id: Fully qualified resource ID for the resource. E.g.
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}". # pylint: disable=line-too-long
:vartype id: str
:ivar name: The name of the resource.
:vartype name: str
:ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or
"Microsoft.Storage/storageAccounts".
:vartype type: str
:ivar system_data: Azure Resource Manager metadata containing createdBy and modifiedBy
information.
:vartype system_data: ~azure.mgmt.avs.models.SystemData
:ivar provisioning_state: The provisioning state of the resource. Known values are:
"Succeeded", "Failed", "Canceled", "Building", "Deleting", and "Updating".
:vartype provisioning_state: str or ~azure.mgmt.avs.models.WorkloadNetworkProvisioningState
:ivar display_name: Display name of the DHCP entity.
:vartype display_name: str
:ivar path: NSX Gateway Path.
:vartype path: str
"""
_validation = {
"id": {"readonly": True},
"name": {"readonly": True},
"type": {"readonly": True},
"system_data": {"readonly": True},
"provisioning_state": {"readonly": True},
"path": {"readonly": True},
}
_attribute_map = {
"id": {"key": "id", "type": "str"},
"name": {"key": "name", "type": "str"},
"type": {"key": "type", "type": "str"},
"system_data": {"key": "systemData", "type": "SystemData"},
"provisioning_state": {"key": "properties.provisioningState", "type": "str"},
"display_name": {"key": "properties.displayName", "type": "str"},
"path": {"key": "properties.path", "type": "str"},
}
def __init__(self, *, display_name: Optional[str] = None, **kwargs: Any) -> None:
"""
:keyword display_name: Display name of the DHCP entity.
:paramtype display_name: str
"""
super().__init__(**kwargs)
self.provisioning_state = None
self.display_name = display_name
self.path = None
class WorkloadNetworkGatewayList(_serialization.Model):
"""The response of a WorkloadNetworkGateway list operation.
All required parameters must be populated in order to send to server.
:ivar value: The WorkloadNetworkGateway items on this page. Required.
:vartype value: list[~azure.mgmt.avs.models.WorkloadNetworkGateway]
:ivar next_link: The link to the next page of items.
:vartype next_link: str
"""
_validation = {
"value": {"required": True},
}
_attribute_map = {
"value": {"key": "value", "type": "[WorkloadNetworkGateway]"},
"next_link": {"key": "nextLink", "type": "str"},
}
def __init__(
self, *, value: List["_models.WorkloadNetworkGateway"], next_link: Optional[str] = None, **kwargs: Any
) -> None:
"""
:keyword value: The WorkloadNetworkGateway items on this page. Required.
:paramtype value: list[~azure.mgmt.avs.models.WorkloadNetworkGateway]
:keyword next_link: The link to the next page of items.
:paramtype next_link: str
"""
super().__init__(**kwargs)
self.value = value
self.next_link = next_link
class WorkloadNetworkList(_serialization.Model):
"""The response of a WorkloadNetwork list operation.
All required parameters must be populated in order to send to server.
:ivar value: The WorkloadNetwork items on this page. Required.
:vartype value: list[~azure.mgmt.avs.models.WorkloadNetwork]
:ivar next_link: The link to the next page of items.
:vartype next_link: str
"""
_validation = {
"value": {"required": True},
}
_attribute_map = {
"value": {"key": "value", "type": "[WorkloadNetwork]"},
"next_link": {"key": "nextLink", "type": "str"},
}
def __init__(
self, *, value: List["_models.WorkloadNetwork"], next_link: Optional[str] = None, **kwargs: Any
) -> None:
"""
:keyword value: The WorkloadNetwork items on this page. Required.
:paramtype value: list[~azure.mgmt.avs.models.WorkloadNetwork]
:keyword next_link: The link to the next page of items.
:paramtype next_link: str
"""
super().__init__(**kwargs)
self.value = value
self.next_link = next_link
class WorkloadNetworkPortMirroring(ProxyResource): # pylint: disable=too-many-instance-attributes
"""NSX Port Mirroring.
Variables are only populated by the server, and will be ignored when sending a request.
:ivar id: Fully qualified resource ID for the resource. E.g.
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}". # pylint: disable=line-too-long
:vartype id: str
:ivar name: The name of the resource.
:vartype name: str
:ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or
"Microsoft.Storage/storageAccounts".
:vartype type: str
:ivar system_data: Azure Resource Manager metadata containing createdBy and modifiedBy
information.
:vartype system_data: ~azure.mgmt.avs.models.SystemData
:ivar display_name: Display name of the port mirroring profile.
:vartype display_name: str
:ivar direction: Direction of port mirroring profile. Known values are: "INGRESS", "EGRESS",
and "BIDIRECTIONAL".
:vartype direction: str or ~azure.mgmt.avs.models.PortMirroringDirectionEnum
:ivar source: Source VM Group.
:vartype source: str
:ivar destination: Destination VM Group.
:vartype destination: str
:ivar status: Port Mirroring Status. Known values are: "SUCCESS" and "FAILURE".
:vartype status: str or ~azure.mgmt.avs.models.PortMirroringStatusEnum
:ivar provisioning_state: The provisioning state. Known values are: "Succeeded", "Failed",
"Canceled", "Building", "Deleting", and "Updating".
:vartype provisioning_state: str or
~azure.mgmt.avs.models.WorkloadNetworkPortMirroringProvisioningState
:ivar revision: NSX revision number.
:vartype revision: int
"""
_validation = {
"id": {"readonly": True},
"name": {"readonly": True},
"type": {"readonly": True},
"system_data": {"readonly": True},
"status": {"readonly": True},
"provisioning_state": {"readonly": True},
}
_attribute_map = {
"id": {"key": "id", "type": "str"},
"name": {"key": "name", "type": "str"},
"type": {"key": "type", "type": "str"},
"system_data": {"key": "systemData", "type": "SystemData"},
"display_name": {"key": "properties.displayName", "type": "str"},
"direction": {"key": "properties.direction", "type": "str"},
"source": {"key": "properties.source", "type": "str"},
"destination": {"key": "properties.destination", "type": "str"},
"status": {"key": "properties.status", "type": "str"},
"provisioning_state": {"key": "properties.provisioningState", "type": "str"},
"revision": {"key": "properties.revision", "type": "int"},
}
def __init__(
self,
*,
display_name: Optional[str] = None,
direction: Optional[Union[str, "_models.PortMirroringDirectionEnum"]] = None,
source: Optional[str] = None,
destination: Optional[str] = None,
revision: Optional[int] = None,
**kwargs: Any
) -> None:
"""
:keyword display_name: Display name of the port mirroring profile.
:paramtype display_name: str
:keyword direction: Direction of port mirroring profile. Known values are: "INGRESS", "EGRESS",
and "BIDIRECTIONAL".
:paramtype direction: str or ~azure.mgmt.avs.models.PortMirroringDirectionEnum
:keyword source: Source VM Group.
:paramtype source: str
:keyword destination: Destination VM Group.
:paramtype destination: str
:keyword revision: NSX revision number.
:paramtype revision: int
"""
super().__init__(**kwargs)
self.display_name = display_name
self.direction = direction
self.source = source
self.destination = destination
self.status = None
self.provisioning_state = None
self.revision = revision
class WorkloadNetworkPortMirroringList(_serialization.Model):
"""The response of a WorkloadNetworkPortMirroring list operation.
All required parameters must be populated in order to send to server.
:ivar value: The WorkloadNetworkPortMirroring items on this page. Required.
:vartype value: list[~azure.mgmt.avs.models.WorkloadNetworkPortMirroring]
:ivar next_link: The link to the next page of items.
:vartype next_link: str
"""
_validation = {
"value": {"required": True},
}
_attribute_map = {
"value": {"key": "value", "type": "[WorkloadNetworkPortMirroring]"},
"next_link": {"key": "nextLink", "type": "str"},
}
def __init__(
self, *, value: List["_models.WorkloadNetworkPortMirroring"], next_link: Optional[str] = None, **kwargs: Any
) -> None:
"""
:keyword value: The WorkloadNetworkPortMirroring items on this page. Required.
:paramtype value: list[~azure.mgmt.avs.models.WorkloadNetworkPortMirroring]
:keyword next_link: The link to the next page of items.
:paramtype next_link: str
"""
super().__init__(**kwargs)
self.value = value
self.next_link = next_link
class WorkloadNetworkPublicIP(ProxyResource):
"""NSX Public IP Block.
Variables are only populated by the server, and will be ignored when sending a request.
:ivar id: Fully qualified resource ID for the resource. E.g.
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}". # pylint: disable=line-too-long
:vartype id: str
:ivar name: The name of the resource.
:vartype name: str
:ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or
"Microsoft.Storage/storageAccounts".
:vartype type: str
:ivar system_data: Azure Resource Manager metadata containing createdBy and modifiedBy
information.
:vartype system_data: ~azure.mgmt.avs.models.SystemData
:ivar display_name: Display name of the Public IP Block.
:vartype display_name: str
:ivar number_of_public_i_ps: Number of Public IPs requested.
:vartype number_of_public_i_ps: int
:ivar public_ip_block: CIDR Block of the Public IP Block.
:vartype public_ip_block: str
:ivar provisioning_state: The provisioning state. Known values are: "Succeeded", "Failed",
"Canceled", "Building", "Deleting", and "Updating".
:vartype provisioning_state: str or
~azure.mgmt.avs.models.WorkloadNetworkPublicIPProvisioningState
"""
_validation = {
"id": {"readonly": True},
"name": {"readonly": True},
"type": {"readonly": True},
"system_data": {"readonly": True},
"public_ip_block": {"readonly": True},
"provisioning_state": {"readonly": True},
}
_attribute_map = {
"id": {"key": "id", "type": "str"},
"name": {"key": "name", "type": "str"},
"type": {"key": "type", "type": "str"},
"system_data": {"key": "systemData", "type": "SystemData"},
"display_name": {"key": "properties.displayName", "type": "str"},
"number_of_public_i_ps": {"key": "properties.numberOfPublicIPs", "type": "int"},
"public_ip_block": {"key": "properties.publicIPBlock", "type": "str"},
"provisioning_state": {"key": "properties.provisioningState", "type": "str"},
}
def __init__(
self, *, display_name: Optional[str] = None, number_of_public_i_ps: Optional[int] = None, **kwargs: Any
) -> None:
"""
:keyword display_name: Display name of the Public IP Block.
:paramtype display_name: str
:keyword number_of_public_i_ps: Number of Public IPs requested.
:paramtype number_of_public_i_ps: int
"""
super().__init__(**kwargs)
self.display_name = display_name
self.number_of_public_i_ps = number_of_public_i_ps
self.public_ip_block = None
self.provisioning_state = None
class WorkloadNetworkPublicIPsList(_serialization.Model):
"""The response of a WorkloadNetworkPublicIP list operation.
All required parameters must be populated in order to send to server.
:ivar value: The WorkloadNetworkPublicIP items on this page. Required.
:vartype value: list[~azure.mgmt.avs.models.WorkloadNetworkPublicIP]
:ivar next_link: The link to the next page of items.
:vartype next_link: str
"""
_validation = {
"value": {"required": True},
}
_attribute_map = {
"value": {"key": "value", "type": "[WorkloadNetworkPublicIP]"},
"next_link": {"key": "nextLink", "type": "str"},
}
def __init__(
self, *, value: List["_models.WorkloadNetworkPublicIP"], next_link: Optional[str] = None, **kwargs: Any
) -> None:
"""
:keyword value: The WorkloadNetworkPublicIP items on this page. Required.
:paramtype value: list[~azure.mgmt.avs.models.WorkloadNetworkPublicIP]
:keyword next_link: The link to the next page of items.
:paramtype next_link: str
"""
super().__init__(**kwargs)
self.value = value
self.next_link = next_link
class WorkloadNetworkSegment(ProxyResource): # pylint: disable=too-many-instance-attributes
"""NSX Segment.
Variables are only populated by the server, and will be ignored when sending a request.
:ivar id: Fully qualified resource ID for the resource. E.g.
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}". # pylint: disable=line-too-long
:vartype id: str
:ivar name: The name of the resource.
:vartype name: str
:ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or
"Microsoft.Storage/storageAccounts".
:vartype type: str
:ivar system_data: Azure Resource Manager metadata containing createdBy and modifiedBy
information.
:vartype system_data: ~azure.mgmt.avs.models.SystemData
:ivar display_name: Display name of the segment.
:vartype display_name: str
:ivar connected_gateway: Gateway which to connect segment to.
:vartype connected_gateway: str
:ivar subnet: Subnet which to connect segment to.
:vartype subnet: ~azure.mgmt.avs.models.WorkloadNetworkSegmentSubnet
:ivar port_vif: Port Vif which segment is associated with.
:vartype port_vif: list[~azure.mgmt.avs.models.WorkloadNetworkSegmentPortVif]
:ivar status: Segment status. Known values are: "SUCCESS" and "FAILURE".
:vartype status: str or ~azure.mgmt.avs.models.SegmentStatusEnum
:ivar provisioning_state: The provisioning state. Known values are: "Succeeded", "Failed",
"Canceled", "Building", "Deleting", and "Updating".
:vartype provisioning_state: str or
~azure.mgmt.avs.models.WorkloadNetworkSegmentProvisioningState
:ivar revision: NSX revision number.
:vartype revision: int
"""
_validation = {
"id": {"readonly": True},
"name": {"readonly": True},
"type": {"readonly": True},
"system_data": {"readonly": True},
"port_vif": {"readonly": True},
"status": {"readonly": True},
"provisioning_state": {"readonly": True},
}
_attribute_map = {
"id": {"key": "id", "type": "str"},
"name": {"key": "name", "type": "str"},
"type": {"key": "type", "type": "str"},
"system_data": {"key": "systemData", "type": "SystemData"},
"display_name": {"key": "properties.displayName", "type": "str"},
"connected_gateway": {"key": "properties.connectedGateway", "type": "str"},
"subnet": {"key": "properties.subnet", "type": "WorkloadNetworkSegmentSubnet"},
"port_vif": {"key": "properties.portVif", "type": "[WorkloadNetworkSegmentPortVif]"},
"status": {"key": "properties.status", "type": "str"},
"provisioning_state": {"key": "properties.provisioningState", "type": "str"},
"revision": {"key": "properties.revision", "type": "int"},
}
def __init__(
self,
*,
display_name: Optional[str] = None,
connected_gateway: Optional[str] = None,
subnet: Optional["_models.WorkloadNetworkSegmentSubnet"] = None,
revision: Optional[int] = None,
**kwargs: Any
) -> None:
"""
:keyword display_name: Display name of the segment.
:paramtype display_name: str
:keyword connected_gateway: Gateway which to connect segment to.
:paramtype connected_gateway: str
:keyword subnet: Subnet which to connect segment to.
:paramtype subnet: ~azure.mgmt.avs.models.WorkloadNetworkSegmentSubnet
:keyword revision: NSX revision number.
:paramtype revision: int
"""
super().__init__(**kwargs)
self.display_name = display_name
self.connected_gateway = connected_gateway
self.subnet = subnet
self.port_vif = None
self.status = None
self.provisioning_state = None
self.revision = revision
class WorkloadNetworkSegmentPortVif(_serialization.Model):
"""Ports and any VIF attached to segment.
:ivar port_name: Name of port or VIF attached to segment.
:vartype port_name: str
"""
_attribute_map = {
"port_name": {"key": "portName", "type": "str"},
}
def __init__(self, *, port_name: Optional[str] = None, **kwargs: Any) -> None:
"""
:keyword port_name: Name of port or VIF attached to segment.
:paramtype port_name: str
"""
super().__init__(**kwargs)
self.port_name = port_name
class WorkloadNetworkSegmentsList(_serialization.Model):
"""The response of a WorkloadNetworkSegment list operation.
All required parameters must be populated in order to send to server.
:ivar value: The WorkloadNetworkSegment items on this page. Required.
:vartype value: list[~azure.mgmt.avs.models.WorkloadNetworkSegment]
:ivar next_link: The link to the next page of items.
:vartype next_link: str
"""
_validation = {
"value": {"required": True},
}
_attribute_map = {
"value": {"key": "value", "type": "[WorkloadNetworkSegment]"},
"next_link": {"key": "nextLink", "type": "str"},
}
def __init__(
self, *, value: List["_models.WorkloadNetworkSegment"], next_link: Optional[str] = None, **kwargs: Any
) -> None:
"""
:keyword value: The WorkloadNetworkSegment items on this page. Required.
:paramtype value: list[~azure.mgmt.avs.models.WorkloadNetworkSegment]
:keyword next_link: The link to the next page of items.
:paramtype next_link: str
"""
super().__init__(**kwargs)
self.value = value
self.next_link = next_link
class WorkloadNetworkSegmentSubnet(_serialization.Model):
"""Subnet configuration for segment.
:ivar dhcp_ranges: DHCP Range assigned for subnet.
:vartype dhcp_ranges: list[str]
:ivar gateway_address: Gateway address.
:vartype gateway_address: str
"""
_attribute_map = {
"dhcp_ranges": {"key": "dhcpRanges", "type": "[str]"},
"gateway_address": {"key": "gatewayAddress", "type": "str"},
}
def __init__(
self, *, dhcp_ranges: Optional[List[str]] = None, gateway_address: Optional[str] = None, **kwargs: Any
) -> None:
"""
:keyword dhcp_ranges: DHCP Range assigned for subnet.
:paramtype dhcp_ranges: list[str]
:keyword gateway_address: Gateway address.
:paramtype gateway_address: str
"""
super().__init__(**kwargs)
self.dhcp_ranges = dhcp_ranges
self.gateway_address = gateway_address
class WorkloadNetworkVirtualMachine(ProxyResource):
"""NSX Virtual Machine.
Variables are only populated by the server, and will be ignored when sending a request.
:ivar id: Fully qualified resource ID for the resource. E.g.
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}". # pylint: disable=line-too-long
:vartype id: str
:ivar name: The name of the resource.
:vartype name: str
:ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or
"Microsoft.Storage/storageAccounts".
:vartype type: str
:ivar system_data: Azure Resource Manager metadata containing createdBy and modifiedBy
information.
:vartype system_data: ~azure.mgmt.avs.models.SystemData
:ivar provisioning_state: The provisioning state of the resource. Known values are:
"Succeeded", "Failed", "Canceled", "Building", "Deleting", and "Updating".
:vartype provisioning_state: str or ~azure.mgmt.avs.models.WorkloadNetworkProvisioningState
:ivar display_name: Display name of the VM.
:vartype display_name: str
:ivar vm_type: Virtual machine type. Known values are: "REGULAR", "EDGE", and "SERVICE".
:vartype vm_type: str or ~azure.mgmt.avs.models.VMTypeEnum
"""
_validation = {
"id": {"readonly": True},
"name": {"readonly": True},
"type": {"readonly": True},
"system_data": {"readonly": True},
"provisioning_state": {"readonly": True},
"vm_type": {"readonly": True},
}
_attribute_map = {
"id": {"key": "id", "type": "str"},
"name": {"key": "name", "type": "str"},
"type": {"key": "type", "type": "str"},
"system_data": {"key": "systemData", "type": "SystemData"},
"provisioning_state": {"key": "properties.provisioningState", "type": "str"},
"display_name": {"key": "properties.displayName", "type": "str"},
"vm_type": {"key": "properties.vmType", "type": "str"},
}
def __init__(self, *, display_name: Optional[str] = None, **kwargs: Any) -> None:
"""
:keyword display_name: Display name of the VM.
:paramtype display_name: str
"""
super().__init__(**kwargs)
self.provisioning_state = None
self.display_name = display_name
self.vm_type = None
class WorkloadNetworkVirtualMachinesList(_serialization.Model):
"""The response of a WorkloadNetworkVirtualMachine list operation.
All required parameters must be populated in order to send to server.
:ivar value: The WorkloadNetworkVirtualMachine items on this page. Required.
:vartype value: list[~azure.mgmt.avs.models.WorkloadNetworkVirtualMachine]
:ivar next_link: The link to the next page of items.
:vartype next_link: str
"""
_validation = {
"value": {"required": True},
}
_attribute_map = {
"value": {"key": "value", "type": "[WorkloadNetworkVirtualMachine]"},
"next_link": {"key": "nextLink", "type": "str"},
}
def __init__(
self, *, value: List["_models.WorkloadNetworkVirtualMachine"], next_link: Optional[str] = None, **kwargs: Any
) -> None:
"""
:keyword value: The WorkloadNetworkVirtualMachine items on this page. Required.
:paramtype value: list[~azure.mgmt.avs.models.WorkloadNetworkVirtualMachine]
:keyword next_link: The link to the next page of items.
:paramtype next_link: str
"""
super().__init__(**kwargs)
self.value = value
self.next_link = next_link
class WorkloadNetworkVMGroup(ProxyResource):
"""NSX VM Group.
Variables are only populated by the server, and will be ignored when sending a request.
:ivar id: Fully qualified resource ID for the resource. E.g.
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}". # pylint: disable=line-too-long
:vartype id: str
:ivar name: The name of the resource.
:vartype name: str
:ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or
"Microsoft.Storage/storageAccounts".
:vartype type: str
:ivar system_data: Azure Resource Manager metadata containing createdBy and modifiedBy
information.
:vartype system_data: ~azure.mgmt.avs.models.SystemData
:ivar display_name: Display name of the VM group.
:vartype display_name: str
:ivar members: Virtual machine members of this group.
:vartype members: list[str]
:ivar status: VM Group status. Known values are: "SUCCESS" and "FAILURE".
:vartype status: str or ~azure.mgmt.avs.models.VMGroupStatusEnum
:ivar provisioning_state: The provisioning state. Known values are: "Succeeded", "Failed",
"Canceled", "Building", "Deleting", and "Updating".
:vartype provisioning_state: str or
~azure.mgmt.avs.models.WorkloadNetworkVMGroupProvisioningState
:ivar revision: NSX revision number.
:vartype revision: int
"""
_validation = {
"id": {"readonly": True},
"name": {"readonly": True},
"type": {"readonly": True},
"system_data": {"readonly": True},
"status": {"readonly": True},
"provisioning_state": {"readonly": True},
}
_attribute_map = {
"id": {"key": "id", "type": "str"},
"name": {"key": "name", "type": "str"},
"type": {"key": "type", "type": "str"},
"system_data": {"key": "systemData", "type": "SystemData"},
"display_name": {"key": "properties.displayName", "type": "str"},
"members": {"key": "properties.members", "type": "[str]"},
"status": {"key": "properties.status", "type": "str"},
"provisioning_state": {"key": "properties.provisioningState", "type": "str"},
"revision": {"key": "properties.revision", "type": "int"},
}
def __init__(
self,
*,
display_name: Optional[str] = None,
members: Optional[List[str]] = None,
revision: Optional[int] = None,
**kwargs: Any
) -> None:
"""
:keyword display_name: Display name of the VM group.
:paramtype display_name: str
:keyword members: Virtual machine members of this group.
:paramtype members: list[str]
:keyword revision: NSX revision number.
:paramtype revision: int
"""
super().__init__(**kwargs)
self.display_name = display_name
self.members = members
self.status = None
self.provisioning_state = None
self.revision = revision
class WorkloadNetworkVMGroupsList(_serialization.Model):
"""The response of a WorkloadNetworkVMGroup list operation.
All required parameters must be populated in order to send to server.
:ivar value: The WorkloadNetworkVMGroup items on this page. Required.
:vartype value: list[~azure.mgmt.avs.models.WorkloadNetworkVMGroup]
:ivar next_link: The link to the next page of items.
:vartype next_link: str
"""
_validation = {
"value": {"required": True},
}
_attribute_map = {
"value": {"key": "value", "type": "[WorkloadNetworkVMGroup]"},
"next_link": {"key": "nextLink", "type": "str"},
}
def __init__(
self, *, value: List["_models.WorkloadNetworkVMGroup"], next_link: Optional[str] = None, **kwargs: Any
) -> None:
"""
:keyword value: The WorkloadNetworkVMGroup items on this page. Required.
:paramtype value: list[~azure.mgmt.avs.models.WorkloadNetworkVMGroup]
:keyword next_link: The link to the next page of items.
:paramtype next_link: str
"""
super().__init__(**kwargs)
self.value = value
self.next_link = next_link
|