1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 1360 1361 1362 1363 1364 1365 1366 1367 1368 1369 1370 1371 1372 1373 1374 1375 1376 1377 1378 1379 1380 1381 1382 1383 1384 1385 1386 1387 1388 1389 1390 1391 1392 1393 1394 1395 1396 1397 1398 1399 1400 1401 1402 1403 1404 1405 1406 1407 1408 1409 1410 1411 1412 1413 1414 1415 1416 1417 1418 1419 1420 1421 1422 1423 1424 1425 1426 1427 1428 1429 1430 1431 1432 1433 1434 1435 1436 1437 1438 1439 1440 1441 1442 1443 1444 1445 1446 1447 1448 1449 1450 1451 1452 1453 1454 1455 1456 1457 1458 1459 1460 1461 1462 1463 1464 1465 1466 1467 1468 1469 1470 1471 1472 1473 1474 1475 1476 1477 1478 1479 1480 1481 1482 1483 1484 1485 1486 1487 1488 1489 1490 1491 1492 1493 1494 1495 1496 1497 1498 1499 1500 1501 1502 1503 1504 1505 1506 1507 1508 1509 1510 1511 1512 1513 1514 1515 1516 1517 1518 1519 1520 1521 1522 1523 1524 1525 1526 1527 1528 1529 1530 1531 1532 1533 1534 1535 1536 1537 1538 1539 1540 1541 1542 1543 1544 1545 1546 1547 1548 1549 1550 1551 1552 1553 1554 1555 1556 1557 1558 1559 1560 1561 1562 1563 1564 1565 1566 1567 1568 1569 1570 1571 1572 1573 1574 1575 1576 1577 1578 1579 1580 1581 1582 1583 1584 1585 1586 1587 1588 1589 1590 1591 1592 1593 1594 1595 1596 1597 1598 1599 1600 1601 1602 1603 1604 1605 1606 1607 1608 1609 1610 1611 1612 1613 1614 1615 1616 1617 1618 1619 1620 1621 1622 1623 1624 1625 1626 1627 1628 1629 1630 1631 1632 1633 1634 1635 1636 1637 1638 1639 1640 1641 1642 1643 1644 1645 1646 1647 1648 1649 1650 1651 1652 1653 1654 1655 1656 1657 1658 1659 1660 1661 1662 1663 1664 1665 1666 1667 1668 1669 1670 1671 1672 1673 1674 1675 1676 1677 1678 1679 1680 1681 1682 1683 1684 1685 1686 1687 1688 1689 1690 1691 1692 1693 1694 1695 1696 1697 1698 1699 1700 1701 1702 1703 1704 1705 1706 1707 1708 1709 1710 1711 1712 1713 1714 1715 1716 1717 1718 1719 1720 1721 1722 1723 1724 1725 1726 1727 1728 1729 1730 1731 1732 1733 1734 1735 1736 1737 1738 1739 1740 1741 1742 1743 1744 1745 1746 1747 1748 1749 1750 1751 1752 1753 1754 1755 1756 1757 1758 1759 1760 1761 1762 1763 1764 1765 1766 1767 1768 1769 1770 1771 1772 1773 1774 1775 1776 1777 1778 1779 1780 1781 1782 1783 1784 1785 1786 1787 1788 1789 1790 1791 1792 1793 1794 1795 1796 1797 1798 1799 1800 1801 1802 1803 1804 1805 1806 1807 1808 1809 1810 1811 1812 1813 1814 1815 1816 1817 1818 1819 1820 1821 1822 1823 1824 1825 1826 1827 1828 1829 1830 1831 1832 1833 1834 1835 1836 1837 1838 1839 1840 1841 1842 1843 1844 1845 1846 1847 1848 1849 1850 1851 1852 1853 1854 1855 1856 1857 1858 1859 1860 1861 1862 1863 1864 1865 1866 1867 1868 1869 1870 1871 1872 1873 1874 1875 1876 1877 1878 1879 1880 1881 1882 1883 1884 1885 1886 1887 1888 1889 1890 1891 1892 1893 1894 1895 1896 1897 1898 1899 1900 1901 1902 1903 1904 1905 1906 1907 1908 1909 1910 1911 1912 1913 1914 1915 1916 1917 1918 1919 1920 1921 1922 1923 1924 1925 1926 1927 1928 1929 1930 1931 1932 1933 1934 1935 1936 1937 1938 1939 1940 1941 1942 1943 1944 1945 1946 1947 1948 1949 1950 1951 1952 1953 1954 1955 1956 1957 1958 1959 1960 1961 1962 1963 1964 1965 1966 1967 1968 1969 1970 1971 1972 1973 1974 1975 1976 1977 1978 1979 1980 1981 1982 1983 1984 1985 1986 1987 1988 1989 1990 1991 1992 1993 1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020 2021 2022 2023 2024 2025 2026 2027 2028 2029 2030 2031 2032 2033 2034 2035 2036 2037 2038 2039 2040 2041 2042 2043 2044 2045 2046 2047 2048 2049 2050 2051 2052 2053 2054 2055 2056 2057 2058 2059 2060 2061 2062 2063 2064 2065 2066 2067 2068 2069 2070 2071 2072 2073 2074 2075 2076 2077 2078 2079 2080 2081 2082 2083 2084 2085 2086 2087 2088 2089 2090 2091 2092 2093 2094 2095 2096 2097 2098 2099 2100 2101 2102 2103 2104 2105 2106 2107 2108 2109 2110 2111 2112 2113 2114 2115 2116 2117 2118 2119 2120 2121 2122 2123 2124 2125 2126 2127 2128 2129 2130 2131 2132 2133 2134 2135 2136 2137 2138 2139 2140 2141 2142 2143 2144 2145 2146 2147 2148 2149 2150 2151 2152 2153 2154 2155 2156 2157 2158 2159 2160 2161 2162 2163 2164 2165 2166 2167 2168 2169 2170 2171 2172 2173 2174 2175 2176 2177 2178 2179 2180 2181 2182 2183 2184 2185 2186 2187 2188 2189 2190 2191 2192 2193 2194 2195 2196 2197 2198 2199 2200 2201 2202 2203 2204 2205 2206 2207 2208 2209 2210 2211 2212 2213 2214 2215 2216 2217 2218 2219 2220 2221 2222 2223 2224 2225 2226 2227 2228 2229 2230 2231 2232 2233 2234 2235 2236 2237 2238 2239 2240 2241 2242 2243 2244 2245 2246 2247 2248 2249 2250 2251 2252 2253 2254 2255 2256 2257 2258 2259 2260 2261 2262 2263 2264 2265 2266 2267 2268 2269 2270 2271 2272 2273 2274 2275 2276 2277 2278 2279 2280 2281 2282 2283 2284 2285 2286 2287 2288 2289 2290 2291 2292 2293 2294 2295 2296 2297 2298 2299 2300 2301 2302 2303 2304 2305 2306 2307 2308 2309 2310 2311 2312 2313 2314 2315 2316 2317 2318 2319 2320 2321 2322 2323 2324 2325 2326 2327 2328 2329 2330 2331 2332 2333 2334 2335 2336 2337 2338 2339 2340 2341 2342 2343 2344 2345 2346 2347 2348 2349 2350 2351 2352 2353 2354 2355 2356 2357 2358 2359 2360 2361 2362 2363 2364 2365 2366 2367 2368 2369 2370 2371 2372 2373 2374 2375 2376 2377 2378 2379 2380 2381 2382 2383 2384 2385 2386 2387 2388 2389 2390 2391 2392 2393 2394 2395 2396 2397 2398 2399 2400 2401 2402 2403 2404 2405 2406 2407 2408 2409 2410 2411 2412 2413 2414 2415 2416 2417 2418 2419 2420 2421 2422 2423 2424 2425 2426 2427 2428 2429 2430 2431 2432 2433 2434 2435 2436 2437 2438 2439 2440 2441 2442 2443 2444 2445 2446 2447 2448 2449 2450 2451 2452 2453 2454 2455 2456 2457 2458 2459 2460 2461 2462 2463 2464 2465 2466 2467 2468 2469 2470 2471 2472 2473 2474 2475 2476 2477 2478 2479 2480 2481 2482 2483 2484 2485 2486 2487 2488 2489 2490 2491 2492 2493 2494 2495 2496 2497 2498 2499 2500 2501 2502 2503 2504 2505 2506 2507 2508 2509 2510 2511 2512 2513 2514 2515 2516 2517 2518 2519 2520 2521 2522 2523 2524 2525 2526 2527 2528 2529 2530 2531 2532 2533 2534 2535 2536 2537 2538 2539 2540 2541 2542 2543 2544 2545 2546 2547 2548 2549 2550 2551 2552 2553 2554 2555 2556 2557 2558 2559 2560 2561 2562 2563 2564 2565 2566 2567 2568 2569 2570 2571 2572 2573 2574 2575 2576 2577 2578 2579 2580 2581 2582 2583 2584 2585 2586 2587 2588 2589 2590 2591 2592 2593 2594 2595 2596 2597 2598 2599 2600 2601 2602 2603 2604 2605 2606 2607 2608 2609 2610 2611 2612 2613 2614 2615 2616 2617 2618 2619 2620 2621 2622 2623 2624 2625 2626 2627 2628 2629 2630 2631 2632 2633 2634 2635 2636 2637 2638 2639 2640 2641 2642 2643 2644 2645 2646 2647 2648 2649 2650 2651 2652 2653 2654 2655 2656 2657 2658 2659 2660 2661 2662 2663 2664 2665 2666 2667 2668 2669 2670 2671 2672 2673 2674 2675 2676 2677 2678 2679 2680 2681 2682 2683 2684 2685 2686 2687 2688 2689 2690 2691 2692 2693 2694 2695 2696 2697 2698 2699 2700 2701 2702 2703 2704 2705 2706 2707 2708 2709 2710 2711 2712 2713 2714 2715 2716 2717 2718 2719 2720 2721 2722 2723 2724 2725 2726 2727 2728 2729 2730 2731 2732 2733 2734 2735 2736 2737 2738 2739 2740 2741 2742 2743 2744 2745 2746 2747 2748 2749 2750 2751 2752 2753 2754 2755 2756 2757 2758 2759 2760 2761 2762 2763 2764 2765 2766 2767 2768 2769 2770 2771 2772 2773 2774 2775 2776 2777 2778 2779 2780 2781 2782 2783 2784 2785 2786 2787 2788 2789 2790 2791 2792 2793 2794 2795 2796 2797 2798 2799 2800 2801 2802 2803 2804 2805 2806 2807 2808 2809 2810 2811 2812 2813 2814 2815 2816 2817 2818 2819 2820 2821 2822 2823 2824 2825 2826 2827 2828 2829 2830 2831 2832 2833 2834 2835 2836 2837 2838 2839 2840 2841 2842 2843 2844 2845 2846 2847 2848 2849 2850 2851 2852 2853 2854 2855 2856 2857 2858 2859 2860 2861 2862 2863 2864 2865 2866 2867 2868 2869 2870 2871 2872 2873 2874 2875 2876 2877 2878 2879 2880 2881 2882 2883 2884 2885 2886 2887 2888 2889 2890 2891 2892 2893 2894 2895 2896 2897 2898 2899 2900 2901 2902 2903 2904 2905 2906 2907 2908 2909 2910 2911 2912 2913 2914 2915 2916 2917 2918 2919 2920 2921 2922 2923 2924 2925 2926 2927 2928 2929 2930 2931 2932 2933 2934 2935 2936 2937 2938 2939 2940 2941 2942 2943 2944 2945 2946 2947 2948 2949 2950 2951 2952 2953 2954 2955 2956 2957 2958 2959 2960 2961 2962 2963 2964 2965 2966 2967 2968 2969 2970 2971 2972 2973 2974 2975 2976 2977 2978 2979 2980 2981 2982 2983 2984 2985 2986 2987 2988 2989 2990 2991 2992 2993 2994 2995 2996 2997 2998 2999 3000 3001 3002 3003 3004 3005 3006 3007 3008 3009 3010 3011 3012 3013 3014 3015 3016 3017 3018 3019 3020 3021 3022 3023 3024 3025 3026 3027 3028 3029 3030 3031 3032 3033 3034 3035 3036 3037 3038 3039 3040 3041 3042 3043 3044 3045 3046 3047 3048 3049 3050 3051 3052 3053 3054 3055 3056 3057 3058 3059 3060 3061 3062 3063 3064 3065 3066 3067 3068 3069 3070 3071 3072 3073 3074 3075 3076 3077 3078 3079 3080 3081 3082 3083 3084 3085 3086 3087 3088 3089 3090 3091 3092 3093 3094 3095 3096 3097 3098 3099 3100 3101 3102 3103 3104 3105 3106 3107 3108 3109 3110 3111 3112 3113 3114 3115 3116 3117 3118 3119 3120 3121 3122 3123 3124 3125 3126 3127 3128 3129 3130 3131 3132 3133 3134 3135 3136 3137 3138 3139 3140 3141 3142 3143 3144 3145 3146 3147 3148 3149 3150 3151 3152 3153 3154 3155 3156 3157 3158 3159 3160 3161 3162 3163 3164 3165 3166 3167 3168 3169 3170 3171 3172 3173 3174 3175 3176 3177 3178 3179 3180 3181 3182 3183 3184 3185 3186 3187 3188 3189 3190 3191 3192 3193 3194 3195 3196 3197 3198 3199 3200 3201 3202 3203 3204 3205 3206 3207 3208 3209 3210 3211 3212 3213 3214 3215 3216 3217 3218 3219 3220 3221 3222 3223 3224 3225 3226 3227 3228 3229 3230 3231 3232 3233 3234 3235 3236 3237 3238 3239 3240 3241 3242 3243 3244 3245 3246 3247 3248 3249 3250 3251 3252 3253 3254 3255 3256 3257 3258 3259 3260 3261 3262 3263 3264 3265 3266 3267 3268 3269 3270 3271 3272 3273 3274 3275 3276 3277 3278 3279 3280 3281 3282 3283 3284 3285 3286 3287 3288 3289 3290 3291 3292 3293 3294 3295 3296 3297 3298 3299 3300 3301 3302 3303 3304 3305 3306 3307 3308 3309 3310 3311 3312 3313 3314 3315 3316 3317 3318 3319 3320 3321 3322 3323 3324 3325 3326 3327 3328 3329 3330 3331 3332 3333 3334 3335 3336 3337 3338 3339 3340 3341 3342 3343 3344 3345 3346 3347 3348 3349 3350 3351 3352 3353 3354 3355 3356 3357 3358 3359 3360 3361 3362 3363 3364 3365 3366 3367 3368 3369 3370 3371 3372 3373 3374 3375 3376 3377 3378 3379 3380 3381 3382 3383 3384 3385 3386 3387 3388 3389 3390 3391 3392 3393 3394 3395 3396 3397 3398 3399 3400 3401 3402 3403 3404 3405 3406 3407 3408 3409 3410 3411 3412 3413 3414 3415 3416 3417 3418 3419 3420 3421 3422 3423 3424 3425 3426 3427 3428 3429 3430 3431 3432 3433 3434 3435 3436 3437 3438 3439 3440 3441 3442 3443 3444 3445 3446 3447 3448 3449 3450 3451 3452 3453 3454 3455 3456 3457 3458 3459 3460 3461 3462 3463 3464 3465 3466 3467 3468 3469 3470 3471 3472 3473 3474 3475 3476 3477 3478 3479 3480 3481 3482 3483 3484 3485 3486 3487 3488 3489 3490 3491 3492 3493 3494 3495 3496 3497 3498 3499 3500 3501 3502 3503 3504 3505 3506 3507 3508 3509 3510 3511 3512 3513 3514 3515 3516 3517 3518 3519 3520 3521 3522 3523 3524 3525 3526 3527 3528 3529 3530 3531 3532 3533 3534 3535 3536 3537 3538 3539 3540 3541 3542 3543 3544 3545 3546 3547 3548 3549 3550 3551 3552 3553 3554 3555 3556 3557 3558 3559 3560 3561 3562 3563 3564 3565 3566 3567 3568 3569 3570 3571 3572 3573 3574 3575 3576 3577 3578 3579 3580 3581 3582 3583 3584 3585 3586 3587 3588 3589 3590 3591 3592 3593 3594 3595 3596 3597 3598 3599 3600 3601 3602 3603 3604 3605 3606 3607 3608 3609 3610 3611 3612 3613 3614 3615 3616 3617 3618 3619 3620 3621 3622 3623 3624 3625 3626 3627 3628 3629 3630 3631 3632 3633 3634 3635 3636 3637 3638 3639 3640 3641 3642 3643 3644 3645 3646 3647 3648 3649 3650 3651 3652 3653 3654 3655 3656 3657 3658 3659 3660 3661 3662 3663 3664 3665 3666 3667 3668 3669 3670 3671 3672 3673 3674 3675 3676 3677 3678 3679 3680 3681 3682 3683 3684 3685 3686 3687 3688 3689 3690 3691 3692 3693 3694 3695 3696 3697 3698 3699 3700 3701 3702 3703 3704 3705 3706 3707 3708 3709 3710 3711 3712 3713 3714 3715 3716 3717 3718 3719 3720 3721 3722 3723 3724 3725 3726 3727 3728 3729 3730 3731 3732 3733 3734 3735 3736 3737 3738 3739 3740 3741 3742 3743 3744 3745 3746 3747 3748 3749 3750 3751 3752 3753 3754 3755 3756 3757 3758 3759 3760 3761 3762 3763 3764 3765 3766 3767 3768 3769 3770 3771 3772 3773 3774 3775 3776 3777 3778 3779 3780 3781 3782 3783 3784 3785 3786 3787 3788 3789 3790 3791 3792 3793 3794 3795 3796 3797 3798 3799 3800 3801 3802 3803 3804 3805 3806 3807 3808 3809 3810 3811 3812 3813 3814 3815 3816 3817 3818 3819 3820 3821 3822 3823 3824 3825 3826 3827 3828 3829 3830 3831 3832 3833 3834 3835 3836 3837 3838 3839 3840 3841 3842 3843 3844 3845 3846 3847 3848 3849 3850 3851 3852 3853 3854 3855 3856 3857 3858 3859 3860 3861 3862 3863 3864 3865 3866 3867 3868 3869 3870 3871 3872 3873 3874 3875 3876 3877 3878 3879 3880 3881 3882 3883 3884 3885 3886 3887 3888 3889 3890 3891 3892 3893 3894 3895 3896 3897 3898 3899 3900 3901 3902 3903 3904 3905 3906 3907 3908 3909 3910 3911 3912 3913 3914 3915 3916 3917 3918 3919 3920 3921 3922 3923 3924 3925 3926 3927 3928 3929 3930 3931 3932 3933 3934 3935 3936 3937 3938 3939 3940 3941 3942 3943 3944 3945 3946 3947 3948 3949 3950 3951 3952 3953 3954 3955 3956 3957 3958 3959 3960 3961 3962 3963 3964 3965 3966 3967 3968 3969 3970 3971 3972 3973 3974 3975 3976 3977 3978 3979 3980 3981 3982 3983 3984 3985 3986 3987 3988 3989 3990 3991 3992 3993 3994 3995 3996 3997 3998 3999 4000 4001 4002 4003 4004 4005 4006 4007 4008 4009 4010 4011 4012 4013 4014 4015 4016 4017 4018 4019 4020 4021 4022 4023 4024 4025 4026 4027 4028 4029 4030 4031 4032 4033 4034 4035 4036 4037 4038 4039 4040 4041 4042 4043 4044 4045 4046 4047 4048 4049 4050 4051 4052 4053 4054 4055 4056 4057 4058 4059 4060 4061 4062 4063 4064 4065 4066 4067 4068 4069 4070 4071 4072 4073 4074 4075 4076 4077 4078 4079 4080 4081 4082 4083 4084 4085 4086 4087 4088 4089 4090 4091 4092 4093 4094 4095 4096 4097 4098 4099 4100 4101 4102 4103 4104 4105 4106 4107 4108 4109 4110 4111 4112 4113 4114 4115 4116 4117 4118 4119 4120 4121 4122 4123 4124 4125 4126 4127 4128 4129 4130 4131 4132 4133 4134 4135 4136 4137 4138 4139 4140 4141 4142 4143 4144 4145 4146 4147 4148 4149 4150 4151 4152 4153 4154 4155 4156 4157 4158 4159 4160 4161 4162 4163 4164 4165 4166 4167 4168 4169 4170 4171 4172 4173 4174 4175 4176 4177 4178 4179 4180 4181 4182 4183 4184 4185 4186 4187 4188 4189 4190 4191 4192 4193 4194 4195 4196 4197 4198 4199 4200 4201 4202 4203 4204 4205 4206 4207 4208 4209 4210 4211 4212 4213 4214 4215 4216 4217 4218 4219 4220 4221 4222 4223 4224 4225 4226 4227 4228 4229 4230 4231 4232 4233 4234 4235 4236 4237 4238 4239 4240 4241 4242 4243 4244 4245 4246 4247 4248 4249 4250 4251 4252 4253 4254 4255 4256 4257 4258 4259 4260 4261 4262 4263 4264 4265 4266 4267 4268 4269 4270 4271 4272 4273 4274 4275 4276 4277 4278 4279 4280 4281 4282 4283 4284 4285 4286 4287 4288 4289 4290 4291 4292 4293 4294 4295 4296 4297 4298 4299 4300 4301 4302 4303 4304 4305 4306 4307 4308 4309 4310 4311 4312 4313 4314 4315 4316 4317 4318 4319 4320 4321 4322 4323 4324 4325 4326 4327 4328 4329 4330 4331 4332 4333 4334 4335 4336 4337 4338 4339 4340 4341 4342 4343 4344 4345 4346 4347 4348 4349 4350 4351 4352 4353 4354 4355 4356 4357 4358 4359 4360 4361 4362 4363 4364 4365 4366 4367 4368 4369 4370 4371 4372 4373 4374 4375 4376 4377 4378 4379 4380 4381 4382 4383 4384 4385 4386 4387 4388 4389 4390 4391 4392 4393 4394 4395 4396 4397 4398 4399 4400 4401 4402 4403 4404 4405 4406 4407 4408 4409 4410 4411 4412 4413 4414 4415 4416 4417 4418 4419 4420 4421 4422 4423 4424 4425 4426 4427 4428 4429 4430 4431 4432 4433 4434 4435 4436 4437 4438 4439 4440 4441 4442 4443 4444 4445 4446 4447 4448 4449 4450 4451 4452 4453 4454 4455 4456 4457 4458 4459 4460 4461 4462 4463 4464 4465 4466 4467 4468 4469 4470 4471 4472 4473 4474 4475 4476 4477 4478 4479 4480 4481 4482 4483 4484 4485 4486 4487 4488 4489 4490 4491 4492 4493 4494 4495 4496 4497 4498 4499 4500 4501 4502 4503 4504 4505 4506 4507 4508 4509 4510 4511 4512 4513 4514 4515 4516 4517 4518 4519 4520 4521 4522 4523 4524 4525 4526 4527 4528 4529 4530 4531 4532 4533 4534 4535 4536 4537 4538 4539 4540 4541 4542 4543 4544 4545 4546 4547 4548 4549 4550 4551 4552 4553 4554 4555 4556 4557 4558 4559 4560 4561 4562 4563 4564 4565 4566 4567 4568 4569 4570 4571 4572 4573 4574 4575 4576 4577 4578 4579 4580 4581 4582 4583 4584 4585 4586 4587 4588 4589 4590 4591 4592 4593 4594 4595 4596 4597 4598 4599 4600 4601 4602 4603 4604 4605 4606 4607 4608 4609 4610 4611 4612 4613 4614 4615 4616 4617 4618 4619 4620 4621 4622 4623 4624 4625 4626 4627 4628 4629 4630 4631 4632 4633 4634 4635 4636 4637 4638 4639 4640 4641 4642 4643 4644 4645 4646 4647 4648 4649 4650 4651 4652 4653 4654 4655 4656 4657 4658 4659 4660 4661 4662 4663 4664 4665 4666 4667 4668 4669 4670 4671 4672 4673 4674 4675 4676 4677 4678 4679 4680 4681 4682 4683 4684 4685 4686 4687 4688 4689 4690 4691 4692 4693 4694 4695 4696 4697 4698 4699 4700 4701 4702 4703 4704 4705 4706 4707 4708 4709 4710 4711 4712 4713 4714 4715 4716 4717 4718 4719 4720 4721 4722 4723 4724 4725 4726 4727 4728 4729 4730 4731 4732 4733 4734 4735 4736 4737 4738 4739 4740 4741 4742 4743 4744 4745 4746 4747 4748 4749 4750 4751 4752 4753 4754 4755 4756 4757 4758 4759 4760 4761 4762 4763 4764 4765 4766 4767 4768 4769 4770 4771 4772 4773 4774 4775 4776 4777 4778 4779 4780 4781 4782 4783 4784 4785 4786 4787 4788 4789 4790 4791 4792 4793 4794 4795 4796 4797 4798 4799 4800 4801 4802 4803 4804 4805 4806 4807 4808 4809 4810 4811 4812 4813 4814 4815 4816 4817 4818 4819 4820 4821 4822 4823 4824 4825 4826 4827 4828 4829 4830 4831 4832 4833 4834 4835 4836 4837 4838 4839 4840 4841 4842 4843 4844 4845 4846 4847 4848 4849 4850 4851 4852 4853 4854 4855 4856 4857 4858 4859 4860 4861 4862 4863 4864 4865 4866 4867 4868 4869 4870 4871 4872 4873 4874 4875 4876 4877 4878 4879 4880 4881 4882 4883 4884 4885 4886 4887 4888 4889 4890 4891 4892 4893 4894 4895 4896 4897 4898 4899 4900 4901 4902 4903 4904 4905 4906 4907 4908 4909 4910 4911 4912 4913 4914 4915 4916 4917 4918 4919 4920 4921 4922 4923 4924 4925 4926 4927 4928 4929 4930 4931 4932 4933 4934 4935 4936 4937 4938 4939 4940 4941 4942 4943 4944 4945 4946 4947 4948 4949 4950 4951 4952 4953 4954 4955 4956 4957 4958 4959 4960 4961 4962 4963 4964 4965 4966 4967 4968 4969 4970 4971 4972 4973 4974 4975 4976 4977 4978 4979 4980 4981 4982 4983 4984 4985 4986 4987 4988 4989 4990 4991 4992 4993 4994 4995 4996 4997 4998 4999 5000 5001 5002 5003 5004 5005 5006 5007 5008 5009 5010 5011 5012 5013 5014 5015 5016 5017 5018 5019 5020 5021 5022 5023 5024 5025 5026 5027 5028 5029 5030 5031 5032 5033 5034 5035 5036 5037 5038 5039 5040 5041 5042 5043 5044 5045 5046 5047 5048 5049 5050 5051 5052 5053 5054 5055 5056 5057 5058 5059 5060 5061 5062 5063 5064 5065 5066 5067 5068 5069 5070 5071 5072 5073 5074 5075 5076 5077 5078 5079 5080 5081 5082 5083 5084 5085 5086 5087 5088 5089 5090 5091 5092 5093 5094 5095 5096 5097 5098 5099 5100 5101 5102 5103 5104 5105 5106 5107 5108 5109 5110 5111 5112 5113 5114 5115 5116 5117 5118 5119 5120 5121 5122 5123 5124 5125 5126 5127 5128 5129 5130 5131 5132 5133 5134 5135 5136 5137 5138 5139 5140 5141 5142 5143 5144 5145 5146 5147 5148 5149 5150 5151 5152 5153 5154 5155 5156 5157 5158 5159 5160 5161 5162 5163 5164 5165 5166 5167 5168 5169 5170 5171 5172 5173 5174 5175 5176 5177 5178 5179 5180 5181 5182 5183 5184 5185 5186 5187 5188 5189 5190 5191 5192 5193 5194 5195 5196 5197 5198 5199 5200 5201 5202 5203 5204 5205 5206 5207 5208 5209 5210 5211 5212 5213 5214 5215 5216 5217 5218 5219 5220 5221 5222 5223 5224 5225 5226 5227 5228 5229 5230 5231 5232 5233 5234 5235 5236 5237 5238 5239 5240 5241 5242 5243 5244 5245 5246 5247 5248 5249 5250 5251 5252 5253 5254 5255 5256 5257 5258 5259 5260 5261 5262 5263 5264 5265 5266 5267 5268 5269 5270 5271 5272 5273 5274 5275 5276 5277 5278 5279 5280 5281 5282 5283 5284 5285 5286 5287 5288 5289 5290 5291 5292 5293 5294 5295 5296 5297 5298 5299 5300 5301 5302 5303 5304 5305 5306 5307 5308 5309 5310 5311 5312 5313 5314 5315 5316 5317 5318 5319 5320 5321 5322 5323 5324 5325 5326 5327 5328 5329 5330 5331 5332 5333 5334 5335 5336 5337 5338 5339 5340 5341 5342 5343 5344 5345 5346 5347 5348 5349 5350 5351 5352 5353 5354 5355 5356 5357 5358 5359 5360 5361 5362 5363 5364 5365 5366 5367 5368 5369 5370 5371 5372 5373 5374 5375 5376 5377 5378 5379 5380 5381 5382 5383 5384 5385 5386 5387 5388 5389 5390 5391 5392 5393 5394 5395 5396 5397 5398 5399 5400 5401 5402 5403 5404 5405 5406 5407 5408 5409 5410 5411 5412 5413 5414 5415 5416 5417 5418 5419 5420 5421 5422 5423 5424 5425 5426 5427 5428 5429 5430 5431 5432 5433 5434 5435 5436 5437 5438 5439 5440 5441 5442 5443 5444 5445 5446 5447 5448 5449 5450 5451 5452 5453 5454 5455 5456 5457 5458 5459 5460 5461 5462 5463 5464 5465 5466 5467 5468 5469 5470 5471 5472 5473 5474 5475 5476 5477 5478 5479 5480 5481 5482 5483 5484 5485 5486 5487 5488 5489 5490 5491 5492 5493 5494 5495 5496 5497 5498 5499 5500 5501 5502 5503 5504 5505 5506 5507 5508 5509 5510 5511 5512 5513 5514 5515 5516 5517 5518 5519 5520 5521 5522 5523 5524 5525 5526 5527 5528 5529 5530 5531 5532 5533 5534 5535 5536 5537 5538 5539 5540 5541 5542 5543 5544 5545 5546 5547 5548 5549 5550 5551 5552 5553 5554 5555 5556 5557 5558 5559 5560 5561 5562 5563 5564 5565 5566 5567 5568 5569 5570 5571 5572 5573 5574 5575 5576 5577 5578 5579 5580 5581 5582 5583 5584 5585 5586 5587 5588 5589 5590 5591 5592 5593 5594 5595 5596 5597 5598 5599 5600 5601 5602 5603 5604 5605 5606 5607 5608 5609 5610 5611 5612 5613 5614 5615 5616 5617 5618 5619 5620 5621 5622 5623 5624 5625 5626 5627 5628 5629 5630 5631 5632 5633 5634 5635 5636 5637 5638 5639 5640 5641 5642 5643 5644 5645 5646 5647 5648 5649 5650 5651 5652 5653 5654 5655 5656 5657 5658 5659 5660 5661 5662 5663 5664 5665 5666 5667 5668 5669 5670 5671 5672 5673 5674 5675 5676 5677 5678 5679 5680 5681 5682 5683 5684 5685 5686 5687 5688 5689 5690 5691 5692 5693 5694 5695 5696 5697 5698 5699 5700 5701 5702 5703 5704 5705 5706 5707 5708 5709 5710 5711 5712 5713 5714 5715 5716 5717 5718 5719 5720 5721 5722 5723 5724 5725 5726 5727 5728 5729 5730 5731 5732 5733 5734 5735 5736 5737 5738 5739 5740 5741 5742 5743 5744 5745 5746 5747 5748 5749 5750 5751 5752 5753 5754 5755 5756 5757 5758 5759 5760 5761 5762 5763 5764 5765 5766 5767 5768 5769 5770 5771 5772 5773 5774 5775 5776 5777 5778 5779 5780 5781 5782 5783 5784 5785 5786 5787 5788 5789 5790 5791 5792 5793 5794 5795 5796 5797 5798 5799 5800 5801 5802 5803 5804 5805 5806 5807 5808 5809 5810 5811 5812 5813 5814 5815 5816 5817 5818 5819 5820 5821 5822 5823 5824 5825 5826 5827 5828 5829 5830 5831 5832 5833 5834 5835 5836 5837 5838 5839 5840 5841 5842 5843 5844 5845 5846 5847 5848 5849 5850 5851 5852 5853 5854 5855 5856 5857 5858 5859 5860 5861 5862 5863 5864 5865 5866 5867 5868 5869 5870 5871 5872 5873 5874 5875 5876 5877 5878 5879 5880 5881 5882 5883 5884 5885 5886 5887 5888 5889 5890 5891 5892 5893 5894 5895 5896 5897 5898 5899 5900 5901 5902 5903 5904 5905 5906 5907 5908 5909 5910 5911 5912 5913 5914 5915 5916 5917 5918 5919 5920 5921 5922 5923 5924 5925 5926 5927 5928 5929 5930 5931 5932 5933 5934 5935 5936 5937 5938 5939 5940 5941 5942 5943 5944 5945 5946 5947 5948 5949 5950 5951 5952 5953 5954 5955 5956 5957 5958 5959 5960 5961 5962 5963 5964 5965 5966 5967 5968 5969 5970 5971 5972 5973 5974 5975 5976 5977 5978 5979 5980 5981 5982 5983 5984 5985 5986 5987 5988 5989 5990 5991 5992 5993 5994 5995 5996 5997 5998 5999 6000 6001 6002 6003 6004 6005 6006 6007 6008 6009 6010 6011 6012 6013 6014 6015 6016 6017 6018 6019 6020 6021 6022 6023 6024 6025 6026 6027 6028 6029 6030 6031 6032 6033 6034 6035 6036 6037 6038 6039 6040 6041 6042 6043 6044 6045 6046 6047 6048 6049 6050 6051 6052 6053 6054 6055 6056 6057 6058 6059 6060 6061 6062 6063 6064 6065 6066 6067 6068 6069 6070 6071 6072 6073 6074 6075 6076 6077 6078 6079 6080 6081 6082 6083 6084 6085 6086 6087 6088 6089 6090 6091 6092 6093 6094 6095 6096 6097 6098 6099 6100 6101 6102 6103 6104 6105 6106 6107 6108 6109 6110 6111 6112 6113 6114 6115 6116 6117 6118 6119 6120 6121 6122 6123 6124 6125 6126 6127 6128 6129 6130 6131 6132 6133 6134 6135 6136 6137 6138 6139 6140 6141 6142 6143 6144 6145 6146 6147 6148 6149 6150 6151 6152 6153 6154 6155 6156 6157 6158 6159 6160 6161 6162 6163 6164 6165 6166 6167 6168 6169 6170 6171 6172 6173 6174 6175 6176 6177 6178 6179 6180 6181 6182 6183 6184 6185 6186 6187 6188 6189 6190 6191 6192 6193 6194 6195 6196 6197 6198 6199 6200 6201 6202 6203 6204 6205 6206 6207 6208 6209 6210 6211 6212 6213 6214 6215 6216 6217 6218 6219 6220 6221 6222 6223 6224 6225 6226 6227 6228 6229 6230 6231 6232 6233 6234 6235 6236 6237 6238 6239 6240 6241 6242 6243 6244 6245 6246 6247 6248 6249 6250 6251 6252 6253 6254 6255 6256 6257 6258 6259 6260 6261 6262 6263 6264 6265 6266 6267 6268 6269 6270 6271 6272 6273 6274 6275 6276 6277 6278 6279 6280 6281 6282 6283 6284 6285 6286 6287 6288 6289 6290 6291 6292 6293 6294 6295 6296 6297 6298 6299 6300 6301 6302 6303 6304 6305 6306 6307 6308 6309 6310 6311 6312 6313 6314 6315 6316 6317 6318 6319 6320 6321 6322 6323 6324 6325 6326 6327 6328 6329 6330 6331 6332 6333 6334 6335 6336 6337 6338 6339 6340 6341 6342 6343 6344 6345 6346 6347 6348 6349 6350 6351 6352 6353 6354 6355 6356 6357 6358 6359 6360 6361 6362 6363 6364 6365 6366 6367 6368 6369 6370 6371 6372 6373 6374 6375 6376 6377 6378 6379 6380 6381 6382 6383 6384 6385 6386 6387 6388 6389 6390 6391 6392 6393 6394 6395 6396 6397 6398 6399 6400 6401 6402 6403 6404 6405 6406 6407 6408 6409 6410 6411 6412 6413 6414 6415 6416 6417 6418 6419 6420 6421 6422 6423 6424 6425 6426 6427 6428 6429 6430 6431 6432 6433 6434 6435 6436 6437 6438 6439 6440 6441 6442 6443 6444 6445 6446 6447 6448 6449 6450 6451 6452 6453 6454 6455 6456 6457 6458 6459 6460 6461 6462 6463 6464 6465 6466 6467 6468 6469 6470 6471 6472 6473 6474 6475 6476 6477 6478 6479 6480 6481 6482 6483 6484 6485 6486 6487 6488 6489 6490 6491 6492 6493 6494 6495 6496 6497 6498 6499 6500 6501 6502 6503 6504 6505 6506 6507 6508 6509 6510 6511 6512 6513 6514 6515 6516 6517 6518 6519 6520 6521 6522 6523 6524 6525 6526 6527 6528 6529 6530 6531 6532 6533 6534 6535 6536 6537 6538 6539 6540 6541 6542 6543 6544 6545 6546 6547 6548 6549 6550 6551 6552 6553 6554 6555 6556 6557 6558 6559 6560 6561 6562 6563 6564 6565 6566 6567 6568 6569 6570 6571 6572 6573 6574 6575 6576 6577 6578 6579 6580 6581 6582 6583 6584 6585 6586 6587 6588 6589 6590 6591 6592 6593 6594 6595 6596 6597 6598 6599 6600 6601 6602 6603 6604 6605 6606 6607 6608 6609 6610 6611 6612 6613 6614 6615 6616 6617 6618 6619 6620 6621 6622 6623 6624 6625 6626 6627 6628 6629 6630 6631 6632 6633 6634 6635 6636 6637 6638 6639 6640 6641 6642 6643 6644 6645 6646 6647 6648 6649 6650 6651 6652 6653 6654 6655 6656 6657 6658 6659 6660 6661 6662 6663 6664 6665 6666 6667 6668 6669 6670 6671 6672 6673 6674 6675 6676 6677 6678 6679 6680 6681 6682 6683 6684 6685 6686 6687 6688 6689 6690 6691 6692 6693 6694 6695 6696 6697 6698 6699 6700 6701 6702 6703 6704 6705 6706 6707 6708 6709 6710 6711 6712 6713 6714 6715 6716 6717 6718 6719 6720 6721 6722 6723 6724 6725 6726 6727 6728 6729 6730 6731 6732 6733 6734 6735 6736 6737 6738 6739 6740 6741 6742 6743 6744 6745 6746 6747 6748 6749 6750 6751 6752 6753 6754 6755 6756 6757 6758 6759 6760 6761 6762 6763 6764 6765 6766 6767 6768 6769 6770 6771 6772 6773 6774 6775 6776 6777 6778 6779 6780 6781 6782 6783 6784 6785 6786 6787 6788 6789 6790 6791 6792 6793 6794 6795 6796 6797 6798 6799 6800 6801 6802 6803 6804 6805 6806 6807 6808 6809 6810 6811 6812 6813 6814 6815 6816 6817 6818 6819 6820 6821 6822 6823 6824 6825 6826 6827 6828 6829 6830 6831 6832 6833 6834 6835 6836 6837 6838 6839 6840 6841 6842 6843 6844 6845 6846 6847 6848 6849 6850 6851 6852 6853 6854 6855 6856 6857 6858 6859 6860 6861 6862 6863 6864 6865 6866 6867 6868 6869 6870 6871 6872 6873 6874 6875 6876 6877 6878 6879 6880 6881 6882 6883 6884 6885 6886 6887 6888 6889 6890 6891 6892 6893 6894 6895 6896 6897 6898 6899 6900 6901 6902 6903 6904 6905 6906 6907 6908 6909 6910 6911 6912 6913 6914 6915 6916 6917 6918 6919 6920 6921 6922 6923 6924 6925 6926 6927 6928 6929 6930 6931 6932 6933 6934 6935 6936 6937 6938 6939 6940 6941 6942 6943 6944 6945 6946 6947 6948 6949 6950 6951 6952 6953 6954 6955 6956 6957 6958 6959 6960 6961 6962 6963 6964 6965 6966 6967 6968 6969 6970 6971 6972 6973 6974 6975 6976 6977 6978 6979 6980 6981 6982 6983 6984 6985 6986 6987 6988 6989 6990 6991 6992 6993 6994 6995 6996 6997 6998 6999 7000 7001 7002 7003 7004 7005 7006 7007 7008 7009 7010 7011 7012 7013 7014 7015 7016 7017 7018 7019 7020 7021 7022 7023 7024 7025 7026 7027 7028 7029 7030 7031 7032 7033 7034 7035 7036 7037 7038 7039 7040 7041 7042 7043 7044 7045 7046 7047 7048 7049 7050 7051 7052 7053 7054 7055 7056 7057 7058 7059 7060 7061 7062 7063 7064 7065 7066 7067 7068 7069 7070 7071 7072 7073 7074 7075 7076 7077 7078 7079 7080 7081 7082 7083 7084 7085 7086 7087 7088 7089 7090 7091 7092 7093 7094 7095 7096 7097 7098 7099 7100 7101 7102 7103 7104 7105 7106 7107 7108 7109 7110 7111 7112 7113 7114 7115 7116 7117 7118 7119 7120 7121 7122 7123 7124 7125 7126 7127 7128 7129 7130 7131 7132 7133 7134 7135 7136 7137 7138 7139 7140 7141 7142 7143 7144 7145 7146 7147 7148 7149 7150 7151 7152 7153 7154 7155 7156 7157 7158 7159 7160 7161 7162 7163 7164 7165 7166 7167 7168 7169 7170 7171 7172 7173 7174 7175 7176 7177 7178 7179 7180 7181 7182 7183 7184 7185 7186 7187 7188 7189 7190 7191 7192 7193 7194 7195 7196 7197 7198 7199 7200 7201 7202 7203 7204 7205 7206 7207 7208 7209 7210 7211 7212 7213 7214 7215 7216 7217 7218 7219 7220 7221 7222 7223 7224 7225 7226 7227 7228 7229 7230 7231 7232 7233 7234 7235 7236 7237 7238 7239 7240 7241 7242 7243 7244 7245 7246 7247 7248 7249 7250 7251 7252 7253 7254 7255 7256 7257 7258 7259 7260 7261 7262 7263 7264 7265 7266 7267 7268 7269 7270 7271 7272 7273 7274 7275 7276 7277 7278 7279 7280 7281 7282 7283 7284 7285 7286 7287 7288 7289 7290 7291 7292 7293 7294 7295 7296 7297 7298 7299 7300 7301 7302 7303 7304 7305 7306 7307 7308 7309 7310 7311 7312 7313 7314 7315 7316 7317 7318 7319 7320 7321 7322 7323 7324 7325 7326 7327 7328 7329 7330 7331 7332 7333 7334 7335 7336 7337 7338 7339 7340 7341 7342 7343 7344 7345 7346 7347 7348 7349 7350 7351 7352 7353 7354 7355 7356 7357 7358 7359 7360 7361 7362 7363 7364 7365 7366 7367 7368 7369 7370 7371 7372 7373 7374 7375 7376 7377 7378 7379 7380 7381 7382 7383 7384 7385 7386 7387 7388 7389 7390 7391 7392 7393 7394 7395 7396 7397 7398 7399 7400 7401 7402 7403 7404 7405 7406 7407 7408 7409 7410 7411 7412 7413 7414 7415 7416 7417 7418 7419 7420 7421 7422 7423 7424 7425 7426 7427 7428 7429 7430 7431 7432 7433 7434 7435 7436 7437 7438 7439 7440 7441 7442 7443 7444 7445 7446 7447 7448 7449 7450 7451 7452 7453 7454 7455 7456 7457 7458 7459 7460 7461 7462 7463 7464 7465 7466 7467 7468 7469 7470 7471 7472 7473 7474 7475 7476 7477 7478 7479 7480 7481 7482 7483 7484 7485 7486 7487 7488 7489 7490 7491 7492 7493 7494 7495 7496 7497 7498 7499 7500 7501 7502 7503 7504 7505 7506 7507 7508 7509 7510 7511 7512 7513 7514 7515 7516 7517 7518 7519 7520 7521 7522 7523 7524 7525 7526 7527 7528 7529 7530 7531 7532 7533 7534 7535 7536 7537 7538 7539 7540 7541 7542 7543 7544 7545 7546 7547 7548 7549 7550 7551 7552 7553 7554 7555 7556 7557 7558 7559 7560 7561 7562 7563 7564 7565 7566 7567 7568 7569 7570 7571 7572 7573 7574 7575 7576 7577 7578 7579 7580 7581 7582 7583 7584 7585 7586 7587 7588 7589 7590 7591 7592 7593 7594 7595 7596 7597 7598 7599 7600 7601 7602 7603 7604 7605 7606 7607 7608 7609 7610 7611 7612 7613 7614 7615 7616 7617 7618 7619 7620 7621 7622 7623 7624 7625 7626 7627 7628 7629 7630 7631 7632 7633 7634 7635 7636 7637 7638 7639 7640 7641 7642 7643 7644 7645 7646 7647 7648 7649 7650 7651 7652 7653 7654 7655 7656 7657 7658 7659 7660 7661 7662 7663 7664 7665 7666 7667 7668 7669 7670 7671 7672 7673 7674 7675 7676 7677 7678 7679 7680 7681 7682 7683 7684 7685 7686 7687 7688 7689 7690 7691 7692 7693 7694 7695 7696 7697 7698 7699 7700 7701 7702 7703 7704 7705 7706 7707 7708 7709 7710 7711 7712 7713 7714 7715 7716 7717 7718 7719 7720 7721 7722 7723 7724 7725 7726 7727 7728 7729 7730 7731 7732 7733 7734 7735 7736 7737 7738 7739 7740 7741 7742 7743 7744 7745 7746 7747 7748 7749 7750 7751 7752 7753 7754 7755 7756 7757 7758 7759 7760 7761 7762 7763 7764 7765 7766 7767 7768 7769 7770 7771 7772 7773 7774 7775 7776 7777 7778 7779 7780 7781 7782 7783 7784 7785 7786 7787 7788 7789 7790 7791 7792 7793 7794 7795 7796 7797 7798 7799 7800 7801 7802 7803 7804 7805 7806 7807 7808 7809 7810 7811 7812 7813 7814 7815 7816 7817 7818 7819 7820 7821 7822 7823 7824 7825 7826 7827 7828 7829 7830 7831 7832 7833 7834 7835 7836 7837 7838 7839 7840 7841 7842 7843 7844 7845 7846 7847 7848 7849 7850 7851 7852 7853 7854 7855 7856 7857 7858 7859 7860 7861 7862 7863 7864 7865 7866 7867 7868 7869 7870 7871 7872 7873 7874 7875 7876 7877 7878 7879 7880 7881 7882 7883 7884 7885 7886 7887 7888 7889 7890 7891 7892 7893 7894 7895 7896 7897 7898 7899 7900 7901 7902 7903 7904 7905 7906 7907 7908 7909 7910 7911 7912 7913 7914 7915 7916 7917 7918 7919 7920 7921 7922 7923 7924 7925 7926 7927 7928 7929 7930 7931 7932 7933 7934 7935 7936 7937 7938 7939 7940 7941 7942 7943 7944 7945 7946 7947 7948 7949 7950 7951 7952 7953 7954 7955 7956 7957 7958 7959 7960 7961 7962 7963 7964 7965 7966 7967 7968 7969 7970 7971 7972 7973 7974 7975 7976 7977 7978 7979 7980 7981 7982 7983 7984 7985 7986 7987 7988 7989 7990 7991 7992 7993 7994 7995 7996 7997 7998 7999 8000 8001 8002 8003 8004 8005 8006 8007 8008 8009 8010 8011 8012 8013 8014 8015 8016 8017 8018 8019 8020 8021 8022 8023 8024 8025 8026 8027 8028 8029 8030 8031 8032 8033 8034 8035 8036 8037 8038 8039 8040 8041 8042 8043 8044 8045 8046 8047 8048 8049 8050 8051 8052 8053 8054 8055 8056 8057 8058 8059 8060 8061 8062 8063 8064 8065 8066 8067 8068 8069 8070 8071 8072 8073 8074 8075 8076 8077 8078 8079 8080 8081 8082 8083 8084 8085 8086 8087 8088 8089 8090 8091 8092 8093 8094 8095 8096 8097 8098 8099 8100 8101 8102 8103 8104 8105 8106 8107 8108 8109 8110 8111 8112 8113 8114 8115 8116 8117 8118 8119 8120 8121 8122 8123 8124 8125 8126 8127 8128 8129 8130 8131 8132 8133 8134 8135 8136 8137 8138 8139 8140 8141 8142 8143 8144 8145 8146 8147 8148 8149 8150 8151 8152 8153 8154 8155 8156 8157 8158 8159 8160 8161 8162 8163 8164 8165 8166 8167 8168 8169 8170 8171 8172 8173 8174 8175 8176 8177 8178 8179 8180 8181 8182 8183 8184 8185 8186 8187 8188 8189 8190 8191 8192 8193 8194 8195 8196 8197 8198 8199 8200 8201 8202 8203 8204 8205 8206 8207 8208 8209 8210 8211 8212 8213 8214 8215 8216 8217 8218 8219 8220 8221 8222 8223 8224 8225 8226 8227 8228 8229 8230 8231 8232 8233 8234 8235 8236 8237 8238 8239 8240 8241 8242 8243 8244 8245 8246 8247 8248 8249 8250 8251 8252 8253 8254 8255 8256 8257 8258 8259 8260 8261 8262 8263 8264 8265 8266 8267 8268 8269 8270 8271 8272 8273 8274 8275 8276 8277 8278 8279 8280 8281 8282 8283 8284 8285 8286 8287 8288 8289 8290 8291 8292 8293 8294 8295 8296 8297 8298 8299 8300 8301 8302 8303 8304 8305 8306 8307 8308 8309 8310 8311 8312 8313 8314 8315 8316 8317 8318 8319 8320 8321 8322 8323 8324 8325 8326 8327 8328 8329 8330 8331 8332 8333 8334 8335 8336 8337 8338 8339 8340 8341 8342 8343 8344 8345 8346 8347 8348 8349 8350 8351 8352 8353 8354 8355 8356 8357 8358 8359 8360 8361 8362 8363 8364 8365 8366 8367 8368 8369 8370 8371 8372 8373 8374 8375 8376 8377 8378 8379 8380 8381 8382 8383 8384 8385 8386 8387 8388 8389 8390 8391 8392 8393 8394 8395 8396 8397 8398 8399 8400 8401 8402 8403 8404 8405 8406 8407 8408 8409 8410 8411 8412 8413 8414 8415 8416 8417 8418 8419 8420 8421 8422 8423 8424 8425 8426 8427 8428 8429 8430 8431 8432 8433 8434 8435 8436 8437 8438 8439 8440 8441 8442 8443 8444 8445 8446 8447 8448 8449 8450 8451 8452 8453 8454 8455 8456 8457 8458 8459 8460 8461 8462 8463 8464 8465 8466 8467 8468 8469 8470 8471 8472 8473 8474 8475 8476 8477 8478 8479 8480 8481 8482 8483 8484 8485 8486 8487 8488 8489 8490 8491 8492 8493 8494 8495 8496 8497 8498 8499 8500 8501 8502 8503 8504 8505 8506 8507 8508 8509 8510 8511 8512 8513 8514 8515 8516 8517 8518 8519 8520 8521 8522 8523 8524 8525 8526 8527 8528 8529 8530 8531 8532 8533 8534 8535 8536 8537 8538 8539 8540 8541 8542 8543 8544 8545 8546 8547 8548 8549 8550 8551 8552 8553 8554 8555 8556 8557 8558 8559 8560 8561 8562 8563 8564 8565 8566 8567 8568 8569 8570 8571 8572 8573 8574 8575 8576 8577 8578 8579 8580 8581 8582 8583 8584 8585 8586 8587 8588 8589 8590 8591 8592 8593 8594 8595 8596 8597 8598 8599 8600 8601 8602 8603 8604 8605 8606 8607 8608 8609 8610 8611 8612 8613 8614 8615 8616 8617 8618 8619 8620 8621 8622 8623 8624 8625 8626 8627 8628 8629 8630 8631 8632 8633 8634 8635 8636 8637 8638 8639 8640 8641 8642 8643 8644 8645 8646 8647 8648 8649 8650 8651 8652 8653 8654 8655 8656 8657 8658 8659 8660 8661 8662 8663 8664 8665 8666 8667 8668 8669 8670 8671 8672 8673 8674 8675 8676 8677 8678 8679 8680 8681 8682 8683 8684 8685 8686 8687 8688 8689 8690 8691 8692 8693 8694 8695 8696 8697 8698 8699 8700 8701 8702 8703 8704 8705 8706 8707 8708 8709 8710 8711 8712 8713 8714 8715 8716 8717 8718 8719 8720 8721 8722 8723 8724 8725 8726 8727 8728 8729 8730 8731 8732 8733 8734 8735 8736 8737 8738 8739 8740 8741 8742 8743 8744 8745 8746 8747 8748 8749 8750 8751 8752 8753 8754 8755 8756 8757 8758 8759 8760 8761 8762 8763 8764 8765 8766 8767 8768 8769 8770 8771 8772 8773 8774 8775 8776 8777 8778 8779 8780 8781 8782 8783 8784 8785 8786 8787 8788 8789 8790 8791 8792 8793 8794 8795 8796 8797 8798 8799 8800 8801 8802 8803 8804 8805 8806 8807 8808 8809 8810 8811 8812 8813 8814 8815 8816 8817 8818 8819 8820 8821 8822 8823 8824 8825 8826 8827 8828 8829 8830 8831 8832 8833 8834 8835 8836 8837 8838 8839 8840 8841 8842 8843 8844 8845 8846 8847 8848 8849 8850 8851 8852 8853 8854 8855 8856 8857 8858 8859 8860 8861 8862 8863 8864 8865 8866 8867 8868 8869 8870 8871 8872 8873 8874 8875 8876 8877 8878 8879 8880 8881 8882 8883 8884 8885 8886 8887 8888 8889 8890 8891 8892 8893 8894 8895 8896 8897 8898 8899 8900 8901 8902 8903 8904 8905 8906 8907 8908 8909 8910 8911 8912 8913 8914 8915 8916 8917 8918 8919 8920 8921 8922 8923 8924 8925 8926 8927 8928 8929 8930 8931 8932 8933 8934 8935 8936 8937 8938 8939 8940 8941 8942 8943 8944 8945 8946 8947 8948 8949 8950 8951 8952 8953 8954 8955 8956 8957 8958 8959 8960 8961 8962 8963 8964 8965 8966 8967 8968 8969 8970 8971 8972 8973 8974 8975 8976 8977 8978 8979 8980 8981 8982 8983 8984 8985 8986 8987 8988 8989 8990 8991 8992 8993 8994 8995 8996 8997 8998 8999 9000 9001 9002 9003 9004 9005 9006 9007 9008 9009 9010 9011 9012 9013 9014 9015 9016 9017 9018 9019 9020 9021 9022 9023 9024 9025 9026 9027 9028 9029 9030 9031 9032 9033 9034 9035 9036 9037 9038 9039 9040 9041 9042 9043 9044 9045 9046 9047 9048 9049 9050 9051 9052 9053 9054 9055 9056 9057 9058 9059 9060 9061 9062 9063 9064 9065 9066 9067 9068 9069 9070 9071 9072 9073 9074 9075 9076 9077 9078 9079 9080 9081 9082 9083 9084 9085 9086 9087 9088 9089 9090 9091 9092 9093 9094 9095 9096 9097 9098 9099 9100 9101 9102 9103 9104 9105 9106 9107 9108 9109 9110 9111 9112 9113 9114 9115 9116 9117 9118 9119 9120 9121 9122 9123 9124 9125 9126 9127 9128 9129 9130 9131 9132 9133 9134 9135 9136 9137 9138 9139 9140 9141 9142 9143 9144 9145 9146 9147 9148 9149 9150 9151 9152 9153 9154 9155 9156 9157 9158 9159 9160 9161 9162 9163 9164 9165 9166 9167 9168 9169 9170 9171 9172 9173 9174 9175 9176 9177 9178 9179 9180 9181 9182 9183 9184 9185 9186 9187 9188 9189 9190 9191 9192 9193 9194 9195 9196 9197 9198 9199 9200 9201 9202 9203 9204 9205 9206 9207 9208 9209 9210 9211 9212 9213 9214 9215 9216 9217 9218 9219 9220 9221 9222 9223 9224 9225 9226 9227 9228 9229 9230 9231 9232 9233 9234 9235 9236 9237 9238 9239 9240 9241 9242 9243 9244 9245 9246 9247 9248 9249 9250 9251 9252 9253 9254 9255 9256 9257 9258 9259 9260 9261 9262 9263 9264 9265 9266 9267 9268 9269 9270 9271 9272 9273 9274 9275 9276 9277 9278 9279 9280 9281 9282 9283 9284 9285 9286 9287 9288 9289 9290 9291 9292 9293 9294 9295 9296 9297 9298 9299 9300 9301 9302 9303 9304 9305 9306 9307 9308 9309 9310 9311 9312 9313 9314 9315 9316 9317 9318 9319 9320 9321 9322 9323 9324 9325 9326 9327 9328 9329 9330 9331 9332 9333 9334 9335 9336 9337 9338 9339 9340 9341 9342 9343 9344 9345 9346 9347 9348 9349 9350 9351 9352 9353 9354 9355 9356 9357 9358 9359 9360 9361 9362 9363 9364 9365 9366 9367
// This file is @generated by prost-build.
/// Parameters that can be configured on Linux nodes.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct LinuxNodeConfig {
/// The Linux kernel parameters to be applied to the nodes and all pods running
/// on the nodes.
///
/// The following parameters are supported.
///
/// net.core.busy_poll
/// net.core.busy_read
/// net.core.netdev_max_backlog
/// net.core.rmem_max
/// net.core.wmem_default
/// net.core.wmem_max
/// net.core.optmem_max
/// net.core.somaxconn
/// net.ipv4.tcp_rmem
/// net.ipv4.tcp_wmem
/// net.ipv4.tcp_tw_reuse
#[prost(btree_map = "string, string", tag = "1")]
pub sysctls: ::prost::alloc::collections::BTreeMap<
::prost::alloc::string::String,
::prost::alloc::string::String,
>,
/// cgroup_mode specifies the cgroup mode to be used on the node.
#[prost(enumeration = "linux_node_config::CgroupMode", tag = "2")]
pub cgroup_mode: i32,
/// Optional. Amounts for 2M and 1G hugepages
#[prost(message, optional, tag = "3")]
pub hugepages: ::core::option::Option<linux_node_config::HugepagesConfig>,
}
/// Nested message and enum types in `LinuxNodeConfig`.
pub mod linux_node_config {
/// Hugepages amount in both 2m and 1g size
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct HugepagesConfig {
/// Optional. Amount of 2M hugepages
#[prost(int32, optional, tag = "1")]
pub hugepage_size2m: ::core::option::Option<i32>,
/// Optional. Amount of 1G hugepages
#[prost(int32, optional, tag = "2")]
pub hugepage_size1g: ::core::option::Option<i32>,
}
/// Possible cgroup modes that can be used.
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum CgroupMode {
/// CGROUP_MODE_UNSPECIFIED is when unspecified cgroup configuration is used.
/// The default for the GKE node OS image will be used.
Unspecified = 0,
/// CGROUP_MODE_V1 specifies to use cgroupv1 for the cgroup configuration on
/// the node image.
V1 = 1,
/// CGROUP_MODE_V2 specifies to use cgroupv2 for the cgroup configuration on
/// the node image.
V2 = 2,
}
impl CgroupMode {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
CgroupMode::Unspecified => "CGROUP_MODE_UNSPECIFIED",
CgroupMode::V1 => "CGROUP_MODE_V1",
CgroupMode::V2 => "CGROUP_MODE_V2",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"CGROUP_MODE_UNSPECIFIED" => Some(Self::Unspecified),
"CGROUP_MODE_V1" => Some(Self::V1),
"CGROUP_MODE_V2" => Some(Self::V2),
_ => None,
}
}
}
}
/// Parameters that can be configured on Windows nodes.
/// Windows Node Config that define the parameters that will be used to
/// configure the Windows node pool settings
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct WindowsNodeConfig {
/// OSVersion specifies the Windows node config to be used on the node
#[prost(enumeration = "windows_node_config::OsVersion", tag = "1")]
pub os_version: i32,
}
/// Nested message and enum types in `WindowsNodeConfig`.
pub mod windows_node_config {
/// Possible OS version that can be used.
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum OsVersion {
/// When OSVersion is not specified
Unspecified = 0,
/// LTSC2019 specifies to use LTSC2019 as the Windows Servercore Base Image
Ltsc2019 = 1,
/// LTSC2022 specifies to use LTSC2022 as the Windows Servercore Base Image
Ltsc2022 = 2,
}
impl OsVersion {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
OsVersion::Unspecified => "OS_VERSION_UNSPECIFIED",
OsVersion::Ltsc2019 => "OS_VERSION_LTSC2019",
OsVersion::Ltsc2022 => "OS_VERSION_LTSC2022",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"OS_VERSION_UNSPECIFIED" => Some(Self::Unspecified),
"OS_VERSION_LTSC2019" => Some(Self::Ltsc2019),
"OS_VERSION_LTSC2022" => Some(Self::Ltsc2022),
_ => None,
}
}
}
}
/// Node kubelet configs.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct NodeKubeletConfig {
/// Control the CPU management policy on the node.
/// See
/// <https://kubernetes.io/docs/tasks/administer-cluster/cpu-management-policies/>
///
/// The following values are allowed.
/// * "none": the default, which represents the existing scheduling behavior.
/// * "static": allows pods with certain resource characteristics to be granted
/// increased CPU affinity and exclusivity on the node.
/// The default value is 'none' if unspecified.
#[prost(string, tag = "1")]
pub cpu_manager_policy: ::prost::alloc::string::String,
/// Enable CPU CFS quota enforcement for containers that specify CPU limits.
///
/// This option is enabled by default which makes kubelet use CFS quota
/// (<https://www.kernel.org/doc/Documentation/scheduler/sched-bwc.txt>) to
/// enforce container CPU limits. Otherwise, CPU limits will not be enforced at
/// all.
///
/// Disable this option to mitigate CPU throttling problems while still having
/// your pods to be in Guaranteed QoS class by specifying the CPU limits.
///
/// The default value is 'true' if unspecified.
#[prost(message, optional, tag = "2")]
pub cpu_cfs_quota: ::core::option::Option<bool>,
/// Set the CPU CFS quota period value 'cpu.cfs_period_us'.
///
/// The string must be a sequence of decimal numbers, each with optional
/// fraction and a unit suffix, such as "300ms".
/// Valid time units are "ns", "us" (or "µs"), "ms", "s", "m", "h".
/// The value must be a positive duration.
#[prost(string, tag = "3")]
pub cpu_cfs_quota_period: ::prost::alloc::string::String,
/// Set the Pod PID limits. See
/// <https://kubernetes.io/docs/concepts/policy/pid-limiting/#pod-pid-limits>
///
/// Controls the maximum number of processes allowed to run in a pod. The value
/// must be greater than or equal to 1024 and less than 4194304.
#[prost(int64, tag = "4")]
pub pod_pids_limit: i64,
/// Enable or disable Kubelet read only port.
#[prost(bool, optional, tag = "7")]
pub insecure_kubelet_readonly_port_enabled: ::core::option::Option<bool>,
}
/// Parameters that describe the nodes in a cluster.
///
/// GKE Autopilot clusters do not
/// recognize parameters in `NodeConfig`. Use
/// [AutoprovisioningNodePoolDefaults][google.container.v1beta1.AutoprovisioningNodePoolDefaults]
/// instead.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct NodeConfig {
/// The name of a Google Compute Engine [machine
/// type](<https://cloud.google.com/compute/docs/machine-types>).
///
/// If unspecified, the default machine type is
/// `e2-medium`.
#[prost(string, tag = "1")]
pub machine_type: ::prost::alloc::string::String,
/// Size of the disk attached to each node, specified in GB.
/// The smallest allowed disk size is 10GB.
///
/// If unspecified, the default disk size is 100GB.
#[prost(int32, tag = "2")]
pub disk_size_gb: i32,
/// The set of Google API scopes to be made available on all of the
/// node VMs under the "default" service account.
///
/// The following scopes are recommended, but not required, and by default are
/// not included:
///
/// * `<https://www.googleapis.com/auth/compute`> is required for mounting
/// persistent storage on your nodes.
/// * `<https://www.googleapis.com/auth/devstorage.read_only`> is required for
/// communicating with **gcr.io**
/// (the [Google Container
/// Registry](<https://cloud.google.com/container-registry/>)).
///
/// If unspecified, no scopes are added, unless Cloud Logging or Cloud
/// Monitoring are enabled, in which case their required scopes will be added.
#[prost(string, repeated, tag = "3")]
pub oauth_scopes: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
/// The Google Cloud Platform Service Account to be used by the node VMs.
/// Specify the email address of the Service Account; otherwise, if no Service
/// Account is specified, the "default" service account is used.
#[prost(string, tag = "9")]
pub service_account: ::prost::alloc::string::String,
/// The metadata key/value pairs assigned to instances in the cluster.
///
/// Keys must conform to the regexp `\[a-zA-Z0-9-_\]+` and be less than 128 bytes
/// in length. These are reflected as part of a URL in the metadata server.
/// Additionally, to avoid ambiguity, keys must not conflict with any other
/// metadata keys for the project or be one of the reserved keys:
///
/// - "cluster-location"
/// - "cluster-name"
/// - "cluster-uid"
/// - "configure-sh"
/// - "containerd-configure-sh"
/// - "enable-oslogin"
/// - "gci-ensure-gke-docker"
/// - "gci-metrics-enabled"
/// - "gci-update-strategy"
/// - "instance-template"
/// - "kube-env"
/// - "startup-script"
/// - "user-data"
/// - "disable-address-manager"
/// - "windows-startup-script-ps1"
/// - "common-psm1"
/// - "k8s-node-setup-psm1"
/// - "install-ssh-psm1"
/// - "user-profile-psm1"
///
/// Values are free-form strings, and only have meaning as interpreted by
/// the image running in the instance. The only restriction placed on them is
/// that each value's size must be less than or equal to 32 KB.
///
/// The total size of all keys and values must be less than 512 KB.
#[prost(btree_map = "string, string", tag = "4")]
pub metadata: ::prost::alloc::collections::BTreeMap<
::prost::alloc::string::String,
::prost::alloc::string::String,
>,
/// The image type to use for this node. Note that for a given image type,
/// the latest version of it will be used. Please see
/// <https://cloud.google.com/kubernetes-engine/docs/concepts/node-images> for
/// available image types.
#[prost(string, tag = "5")]
pub image_type: ::prost::alloc::string::String,
/// The map of Kubernetes labels (key/value pairs) to be applied to each node.
/// These will added in addition to any default label(s) that
/// Kubernetes may apply to the node.
/// In case of conflict in label keys, the applied set may differ depending on
/// the Kubernetes version -- it's best to assume the behavior is undefined
/// and conflicts should be avoided.
/// For more information, including usage and the valid values, see:
/// <https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/>
#[prost(btree_map = "string, string", tag = "6")]
pub labels: ::prost::alloc::collections::BTreeMap<
::prost::alloc::string::String,
::prost::alloc::string::String,
>,
/// The number of local SSD disks to be attached to the node.
///
/// The limit for this value is dependent upon the maximum number of
/// disks available on a machine per zone. See:
/// <https://cloud.google.com/compute/docs/disks/local-ssd>
/// for more information.
#[prost(int32, tag = "7")]
pub local_ssd_count: i32,
/// The list of instance tags applied to all nodes. Tags are used to identify
/// valid sources or targets for network firewalls and are specified by
/// the client during cluster or node pool creation. Each tag within the list
/// must comply with RFC1035.
#[prost(string, repeated, tag = "8")]
pub tags: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
/// Whether the nodes are created as preemptible VM instances. See:
/// <https://cloud.google.com/compute/docs/instances/preemptible> for more
/// information about preemptible VM instances.
#[prost(bool, tag = "10")]
pub preemptible: bool,
/// A list of hardware accelerators to be attached to each node.
/// See <https://cloud.google.com/compute/docs/gpus> for more information about
/// support for GPUs.
#[prost(message, repeated, tag = "11")]
pub accelerators: ::prost::alloc::vec::Vec<AcceleratorConfig>,
/// Sandbox configuration for this node.
#[prost(message, optional, tag = "17")]
pub sandbox_config: ::core::option::Option<SandboxConfig>,
/// Setting this field will assign instances of this
/// pool to run on the specified node group. This is useful for running
/// workloads on [sole tenant
/// nodes](<https://cloud.google.com/compute/docs/nodes/sole-tenant-nodes>).
#[prost(string, tag = "18")]
pub node_group: ::prost::alloc::string::String,
/// The optional reservation affinity. Setting this field will apply
/// the specified [Zonal Compute
/// Reservation](<https://cloud.google.com/compute/docs/instances/reserving-zonal-resources>)
/// to this node pool.
#[prost(message, optional, tag = "19")]
pub reservation_affinity: ::core::option::Option<ReservationAffinity>,
/// Type of the disk attached to each node (e.g. 'pd-standard', 'pd-ssd' or
/// 'pd-balanced')
///
/// If unspecified, the default disk type is 'pd-standard'
#[prost(string, tag = "12")]
pub disk_type: ::prost::alloc::string::String,
/// Minimum CPU platform to be used by this instance. The instance may be
/// scheduled on the specified or newer CPU platform. Applicable values are the
/// friendly names of CPU platforms, such as
/// `minCpuPlatform: "Intel Haswell"` or
/// `minCpuPlatform: "Intel Sandy Bridge"`. For more
/// information, read [how to specify min CPU
/// platform](<https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform>).
#[prost(string, tag = "13")]
pub min_cpu_platform: ::prost::alloc::string::String,
/// The workload metadata configuration for this node.
#[prost(message, optional, tag = "14")]
pub workload_metadata_config: ::core::option::Option<WorkloadMetadataConfig>,
/// List of kubernetes taints to be applied to each node.
///
/// For more information, including usage and the valid values, see:
/// <https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/>
#[prost(message, repeated, tag = "15")]
pub taints: ::prost::alloc::vec::Vec<NodeTaint>,
///
/// The Customer Managed Encryption Key used to encrypt the boot disk attached
/// to each node in the node pool. This should be of the form
/// projects/\[KEY_PROJECT_ID\]/locations/\[LOCATION\]/keyRings/\[RING_NAME\]/cryptoKeys/\[KEY_NAME\].
/// For more information about protecting resources with Cloud KMS Keys please
/// see:
/// <https://cloud.google.com/compute/docs/disks/customer-managed-encryption>
#[prost(string, tag = "23")]
pub boot_disk_kms_key: ::prost::alloc::string::String,
/// Shielded Instance options.
#[prost(message, optional, tag = "20")]
pub shielded_instance_config: ::core::option::Option<ShieldedInstanceConfig>,
/// Parameters that can be configured on Linux nodes.
#[prost(message, optional, tag = "21")]
pub linux_node_config: ::core::option::Option<LinuxNodeConfig>,
/// Node kubelet configs.
#[prost(message, optional, tag = "22")]
pub kubelet_config: ::core::option::Option<NodeKubeletConfig>,
/// Parameters for the ephemeral storage filesystem.
/// If unspecified, ephemeral storage is backed by the boot disk.
#[prost(message, optional, tag = "24")]
pub ephemeral_storage_config: ::core::option::Option<EphemeralStorageConfig>,
/// GCFS (Google Container File System) configs.
#[prost(message, optional, tag = "25")]
pub gcfs_config: ::core::option::Option<GcfsConfig>,
/// Advanced features for the Compute Engine VM.
#[prost(message, optional, tag = "26")]
pub advanced_machine_features: ::core::option::Option<AdvancedMachineFeatures>,
/// Enable or disable gvnic on the node pool.
#[prost(message, optional, tag = "29")]
pub gvnic: ::core::option::Option<VirtualNic>,
/// Spot flag for enabling Spot VM, which is a rebrand of
/// the existing preemptible flag.
#[prost(bool, tag = "32")]
pub spot: bool,
/// Confidential nodes config.
/// All the nodes in the node pool will be Confidential VM once enabled.
#[prost(message, optional, tag = "35")]
pub confidential_nodes: ::core::option::Option<ConfidentialNodes>,
/// Enable or disable NCCL fast socket for the node pool.
#[prost(message, optional, tag = "36")]
pub fast_socket: ::core::option::Option<FastSocket>,
/// The resource labels for the node pool to use to annotate any related
/// Google Compute Engine resources.
#[prost(btree_map = "string, string", tag = "37")]
pub resource_labels: ::prost::alloc::collections::BTreeMap<
::prost::alloc::string::String,
::prost::alloc::string::String,
>,
/// Logging configuration.
#[prost(message, optional, tag = "38")]
pub logging_config: ::core::option::Option<NodePoolLoggingConfig>,
/// Parameters that can be configured on Windows nodes.
#[prost(message, optional, tag = "39")]
pub windows_node_config: ::core::option::Option<WindowsNodeConfig>,
/// Parameters for using raw-block Local NVMe SSDs.
#[prost(message, optional, tag = "40")]
pub local_nvme_ssd_block_config: ::core::option::Option<LocalNvmeSsdBlockConfig>,
/// Parameters for the node ephemeral storage using Local SSDs.
/// If unspecified, ephemeral storage is backed by the boot disk.
/// This field is functionally equivalent to the ephemeral_storage_config
#[prost(message, optional, tag = "41")]
pub ephemeral_storage_local_ssd_config: ::core::option::Option<
EphemeralStorageLocalSsdConfig,
>,
/// Parameters for node pools to be backed by shared sole tenant node groups.
#[prost(message, optional, tag = "42")]
pub sole_tenant_config: ::core::option::Option<SoleTenantConfig>,
/// Parameters for containerd customization.
#[prost(message, optional, tag = "43")]
pub containerd_config: ::core::option::Option<ContainerdConfig>,
/// HostMaintenancePolicy contains the desired maintenance policy for the
/// Google Compute Engine hosts.
#[prost(message, optional, tag = "44")]
pub host_maintenance_policy: ::core::option::Option<HostMaintenancePolicy>,
/// A map of resource manager tag keys and values to be attached to the nodes.
#[prost(message, optional, tag = "45")]
pub resource_manager_tags: ::core::option::Option<ResourceManagerTags>,
/// Optional. Reserved for future use.
#[prost(bool, tag = "46")]
pub enable_confidential_storage: bool,
/// List of secondary boot disks attached to the nodes.
#[prost(message, repeated, tag = "48")]
pub secondary_boot_disks: ::prost::alloc::vec::Vec<SecondaryBootDisk>,
/// Secondary boot disk update strategy.
#[prost(message, optional, tag = "50")]
pub secondary_boot_disk_update_strategy: ::core::option::Option<
SecondaryBootDiskUpdateStrategy,
>,
}
/// Specifies options for controlling advanced machine features.
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct AdvancedMachineFeatures {
/// The number of threads per physical core. To disable simultaneous
/// multithreading (SMT) set this to 1. If unset, the maximum number of threads
/// supported per core by the underlying processor is assumed.
#[prost(int64, optional, tag = "1")]
pub threads_per_core: ::core::option::Option<i64>,
/// Whether or not to enable nested virtualization (defaults to false).
#[prost(bool, optional, tag = "2")]
pub enable_nested_virtualization: ::core::option::Option<bool>,
}
/// Parameters for node pool-level network config.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct NodeNetworkConfig {
/// Input only. Whether to create a new range for pod IPs in this node pool.
/// Defaults are provided for `pod_range` and `pod_ipv4_cidr_block` if they
/// are not specified.
///
/// If neither `create_pod_range` or `pod_range` are specified, the
/// cluster-level default (`ip_allocation_policy.cluster_ipv4_cidr_block`) is
/// used.
///
/// Only applicable if `ip_allocation_policy.use_ip_aliases` is true.
///
/// This field cannot be changed after the node pool has been created.
#[prost(bool, tag = "4")]
pub create_pod_range: bool,
/// The ID of the secondary range for pod IPs.
/// If `create_pod_range` is true, this ID is used for the new range.
/// If `create_pod_range` is false, uses an existing secondary range with this
/// ID.
///
/// Only applicable if `ip_allocation_policy.use_ip_aliases` is true.
///
/// This field cannot be changed after the node pool has been created.
#[prost(string, tag = "5")]
pub pod_range: ::prost::alloc::string::String,
/// The IP address range for pod IPs in this node pool.
///
/// Only applicable if `create_pod_range` is true.
///
/// Set to blank to have a range chosen with the default size.
///
/// Set to /netmask (e.g. `/14`) to have a range chosen with a specific
/// netmask.
///
/// Set to a
/// [CIDR](<https://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing>)
/// notation (e.g. `10.96.0.0/14`) to pick a specific range to use.
///
/// Only applicable if `ip_allocation_policy.use_ip_aliases` is true.
///
/// This field cannot be changed after the node pool has been created.
#[prost(string, tag = "6")]
pub pod_ipv4_cidr_block: ::prost::alloc::string::String,
/// Whether nodes have internal IP addresses only.
/// If enable_private_nodes is not specified, then the value is derived from
/// [cluster.privateClusterConfig.enablePrivateNodes][google.container.v1beta1.PrivateClusterConfig.enablePrivateNodes]
#[prost(bool, optional, tag = "9")]
pub enable_private_nodes: ::core::option::Option<bool>,
/// Network bandwidth tier configuration.
#[prost(message, optional, tag = "11")]
pub network_performance_config: ::core::option::Option<
node_network_config::NetworkPerformanceConfig,
>,
/// \[PRIVATE FIELD\]
/// Pod CIDR size overprovisioning config for the nodepool.
///
/// Pod CIDR size per node depends on max_pods_per_node. By default, the value
/// of max_pods_per_node is rounded off to next power of 2 and we then double
/// that to get the size of pod CIDR block per node.
/// Example: max_pods_per_node of 30 would result in 64 IPs (/26).
///
/// This config can disable the doubling of IPs (we still round off to next
/// power of 2)
/// Example: max_pods_per_node of 30 will result in 32 IPs (/27) when
/// overprovisioning is disabled.
#[prost(message, optional, tag = "13")]
pub pod_cidr_overprovision_config: ::core::option::Option<
PodCidrOverprovisionConfig,
>,
/// We specify the additional node networks for this node pool using this list.
/// Each node network corresponds to an additional interface
#[prost(message, repeated, tag = "14")]
pub additional_node_network_configs: ::prost::alloc::vec::Vec<
AdditionalNodeNetworkConfig,
>,
/// We specify the additional pod networks for this node pool using this list.
/// Each pod network corresponds to an additional alias IP range for the node
#[prost(message, repeated, tag = "15")]
pub additional_pod_network_configs: ::prost::alloc::vec::Vec<
AdditionalPodNetworkConfig,
>,
/// Output only. The utilization of the IPv4 range for the pod.
/// The ratio is Usage/\[Total number of IPs in the secondary range\],
/// Usage=numNodes*numZones*podIPsPerNode.
#[prost(double, tag = "16")]
pub pod_ipv4_range_utilization: f64,
}
/// Nested message and enum types in `NodeNetworkConfig`.
pub mod node_network_config {
/// Configuration of all network bandwidth tiers
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct NetworkPerformanceConfig {
/// Specifies the total network bandwidth tier for the NodePool.
#[prost(enumeration = "network_performance_config::Tier", optional, tag = "1")]
pub total_egress_bandwidth_tier: ::core::option::Option<i32>,
/// Specifies the network bandwidth tier for the NodePool for traffic to
/// external/public IP addresses.
#[prost(enumeration = "network_performance_config::Tier", optional, tag = "2")]
pub external_ip_egress_bandwidth_tier: ::core::option::Option<i32>,
}
/// Nested message and enum types in `NetworkPerformanceConfig`.
pub mod network_performance_config {
/// Node network tier
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum Tier {
/// Default value
Unspecified = 0,
/// Higher bandwidth, actual values based on VM size.
Tier1 = 1,
}
impl Tier {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
Tier::Unspecified => "TIER_UNSPECIFIED",
Tier::Tier1 => "TIER_1",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"TIER_UNSPECIFIED" => Some(Self::Unspecified),
"TIER_1" => Some(Self::Tier1),
_ => None,
}
}
}
}
}
/// AdditionalNodeNetworkConfig is the configuration for additional node networks
/// within the NodeNetworkConfig message
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct AdditionalNodeNetworkConfig {
/// Name of the VPC where the additional interface belongs
#[prost(string, tag = "1")]
pub network: ::prost::alloc::string::String,
/// Name of the subnetwork where the additional interface belongs
#[prost(string, tag = "2")]
pub subnetwork: ::prost::alloc::string::String,
}
/// AdditionalPodNetworkConfig is the configuration for additional pod networks
/// within the NodeNetworkConfig message
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct AdditionalPodNetworkConfig {
/// Name of the subnetwork where the additional pod network belongs.
#[prost(string, tag = "1")]
pub subnetwork: ::prost::alloc::string::String,
/// The name of the secondary range on the subnet which provides IP address for
/// this pod range.
#[prost(string, tag = "2")]
pub secondary_pod_range: ::prost::alloc::string::String,
/// The maximum number of pods per node which use this pod network.
#[prost(message, optional, tag = "3")]
pub max_pods_per_node: ::core::option::Option<MaxPodsConstraint>,
}
/// A set of Shielded Instance options.
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct ShieldedInstanceConfig {
/// Defines whether the instance has Secure Boot enabled.
///
/// Secure Boot helps ensure that the system only runs authentic software by
/// verifying the digital signature of all boot components, and halting the
/// boot process if signature verification fails.
#[prost(bool, tag = "1")]
pub enable_secure_boot: bool,
/// Defines whether the instance has integrity monitoring enabled.
///
/// Enables monitoring and attestation of the boot integrity of the instance.
/// The attestation is performed against the integrity policy baseline. This
/// baseline is initially derived from the implicitly trusted boot image when
/// the instance is created.
#[prost(bool, tag = "2")]
pub enable_integrity_monitoring: bool,
}
/// SandboxConfig contains configurations of the sandbox to use for the node.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SandboxConfig {
/// Type of the sandbox to use for the node (e.g. 'gvisor')
#[deprecated]
#[prost(string, tag = "1")]
pub sandbox_type: ::prost::alloc::string::String,
/// Type of the sandbox to use for the node.
#[prost(enumeration = "sandbox_config::Type", tag = "2")]
pub r#type: i32,
}
/// Nested message and enum types in `SandboxConfig`.
pub mod sandbox_config {
/// Possible types of sandboxes.
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum Type {
/// Default value. This should not be used.
Unspecified = 0,
/// Run sandbox using gvisor.
Gvisor = 1,
}
impl Type {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
Type::Unspecified => "UNSPECIFIED",
Type::Gvisor => "GVISOR",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"UNSPECIFIED" => Some(Self::Unspecified),
"GVISOR" => Some(Self::Gvisor),
_ => None,
}
}
}
}
/// EphemeralStorageConfig contains configuration for the ephemeral storage
/// filesystem.
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct EphemeralStorageConfig {
/// Number of local SSDs to use to back ephemeral storage. Uses NVMe
/// interfaces. The limit for this value is dependent upon the maximum number
/// of disk available on a machine per zone. See:
/// <https://cloud.google.com/compute/docs/disks/local-ssd>
/// for more information.
///
/// A zero (or unset) value has different meanings depending on machine type
/// being used:
/// 1. For pre-Gen3 machines, which support flexible numbers of local ssds,
/// zero (or unset) means to disable using local SSDs as ephemeral storage.
/// 2. For Gen3 machines which dictate a specific number of local ssds, zero
/// (or unset) means to use the default number of local ssds that goes with
/// that machine type. For example, for a c3-standard-8-lssd machine, 2 local
/// ssds would be provisioned. For c3-standard-8 (which doesn't support local
/// ssds), 0 will be provisioned. See
/// <https://cloud.google.com/compute/docs/disks/local-ssd#choose_number_local_ssds>
/// for more info.
#[prost(int32, tag = "1")]
pub local_ssd_count: i32,
}
/// LocalNvmeSsdBlockConfig contains configuration for using raw-block local
/// NVMe SSDs
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct LocalNvmeSsdBlockConfig {
/// Number of local NVMe SSDs to use. The limit for this value is dependent
/// upon the maximum number of disk available on a machine per zone. See:
/// <https://cloud.google.com/compute/docs/disks/local-ssd>
/// for more information.
///
/// A zero (or unset) value has different meanings depending on machine type
/// being used:
/// 1. For pre-Gen3 machines, which support flexible numbers of local ssds,
/// zero (or unset) means to disable using local SSDs as ephemeral storage.
/// 2. For Gen3 machines which dictate a specific number of local ssds, zero
/// (or unset) means to use the default number of local ssds that goes with
/// that machine type. For example, for a c3-standard-8-lssd machine, 2 local
/// ssds would be provisioned. For c3-standard-8 (which doesn't support local
/// ssds), 0 will be provisioned. See
/// <https://cloud.google.com/compute/docs/disks/local-ssd#choose_number_local_ssds>
/// for more info.
#[prost(int32, tag = "1")]
pub local_ssd_count: i32,
}
/// EphemeralStorageLocalSsdConfig contains configuration for the node ephemeral
/// storage using Local SSDs.
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct EphemeralStorageLocalSsdConfig {
/// Number of local SSDs to use to back ephemeral storage. Uses NVMe
/// interfaces.
///
/// A zero (or unset) value has different meanings depending on machine type
/// being used:
/// 1. For pre-Gen3 machines, which support flexible numbers of local ssds,
/// zero (or unset) means to disable using local SSDs as ephemeral storage. The
/// limit for this value is dependent upon the maximum number of disk
/// available on a machine per zone. See:
/// <https://cloud.google.com/compute/docs/disks/local-ssd>
/// for more information.
/// 2. For Gen3 machines which dictate a specific number of local ssds, zero
/// (or unset) means to use the default number of local ssds that goes with
/// that machine type. For example, for a c3-standard-8-lssd machine, 2 local
/// ssds would be provisioned. For c3-standard-8 (which doesn't support local
/// ssds), 0 will be provisioned. See
/// <https://cloud.google.com/compute/docs/disks/local-ssd#choose_number_local_ssds>
/// for more info.
#[prost(int32, tag = "1")]
pub local_ssd_count: i32,
}
/// GcfsConfig contains configurations of Google Container File System.
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct GcfsConfig {
/// Whether to use GCFS.
#[prost(bool, tag = "1")]
pub enabled: bool,
}
/// [ReservationAffinity](<https://cloud.google.com/compute/docs/instances/reserving-zonal-resources>)
/// is the configuration of desired reservation which instances could take
/// capacity from.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ReservationAffinity {
/// Corresponds to the type of reservation consumption.
#[prost(enumeration = "reservation_affinity::Type", tag = "1")]
pub consume_reservation_type: i32,
/// Corresponds to the label key of a reservation resource. To target a
/// SPECIFIC_RESERVATION by name, specify
/// "compute.googleapis.com/reservation-name" as the key and specify the name
/// of your reservation as its value.
#[prost(string, tag = "2")]
pub key: ::prost::alloc::string::String,
/// Corresponds to the label value(s) of reservation resource(s).
#[prost(string, repeated, tag = "3")]
pub values: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
}
/// Nested message and enum types in `ReservationAffinity`.
pub mod reservation_affinity {
/// Indicates whether to consume capacity from a reservation or not.
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum Type {
/// Default value. This should not be used.
Unspecified = 0,
/// Do not consume from any reserved capacity.
NoReservation = 1,
/// Consume any reservation available.
AnyReservation = 2,
/// Must consume from a specific reservation. Must specify key value fields
/// for specifying the reservations.
SpecificReservation = 3,
}
impl Type {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
Type::Unspecified => "UNSPECIFIED",
Type::NoReservation => "NO_RESERVATION",
Type::AnyReservation => "ANY_RESERVATION",
Type::SpecificReservation => "SPECIFIC_RESERVATION",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"UNSPECIFIED" => Some(Self::Unspecified),
"NO_RESERVATION" => Some(Self::NoReservation),
"ANY_RESERVATION" => Some(Self::AnyReservation),
"SPECIFIC_RESERVATION" => Some(Self::SpecificReservation),
_ => None,
}
}
}
}
/// SoleTenantConfig contains the NodeAffinities to specify what shared sole
/// tenant node groups should back the node pool.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SoleTenantConfig {
/// NodeAffinities used to match to a shared sole tenant node group.
#[prost(message, repeated, tag = "1")]
pub node_affinities: ::prost::alloc::vec::Vec<sole_tenant_config::NodeAffinity>,
}
/// Nested message and enum types in `SoleTenantConfig`.
pub mod sole_tenant_config {
/// Specifies the NodeAffinity key, values, and affinity operator according to
/// [shared sole tenant node group
/// affinities](<https://cloud.google.com/compute/docs/nodes/sole-tenant-nodes#node_affinity_and_anti-affinity>).
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct NodeAffinity {
/// Key for NodeAffinity.
#[prost(string, tag = "1")]
pub key: ::prost::alloc::string::String,
/// Operator for NodeAffinity.
#[prost(enumeration = "node_affinity::Operator", tag = "2")]
pub operator: i32,
/// Values for NodeAffinity.
#[prost(string, repeated, tag = "3")]
pub values: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
}
/// Nested message and enum types in `NodeAffinity`.
pub mod node_affinity {
/// Operator allows user to specify affinity or anti-affinity for the
/// given key values.
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum Operator {
/// Invalid or unspecified affinity operator.
Unspecified = 0,
/// Affinity operator.
In = 1,
/// Anti-affinity operator.
NotIn = 2,
}
impl Operator {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
Operator::Unspecified => "OPERATOR_UNSPECIFIED",
Operator::In => "IN",
Operator::NotIn => "NOT_IN",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"OPERATOR_UNSPECIFIED" => Some(Self::Unspecified),
"IN" => Some(Self::In),
"NOT_IN" => Some(Self::NotIn),
_ => None,
}
}
}
}
}
/// ContainerdConfig contains configuration to customize containerd.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ContainerdConfig {
/// PrivateRegistryAccessConfig is used to configure access configuration
/// for private container registries.
#[prost(message, optional, tag = "1")]
pub private_registry_access_config: ::core::option::Option<
containerd_config::PrivateRegistryAccessConfig,
>,
}
/// Nested message and enum types in `ContainerdConfig`.
pub mod containerd_config {
/// PrivateRegistryAccessConfig contains access configuration for
/// private container registries.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct PrivateRegistryAccessConfig {
/// Private registry access is enabled.
#[prost(bool, tag = "1")]
pub enabled: bool,
/// Private registry access configuration.
#[prost(message, repeated, tag = "2")]
pub certificate_authority_domain_config: ::prost::alloc::vec::Vec<
private_registry_access_config::CertificateAuthorityDomainConfig,
>,
}
/// Nested message and enum types in `PrivateRegistryAccessConfig`.
pub mod private_registry_access_config {
/// CertificateAuthorityDomainConfig configures one or more fully qualified
/// domain names (FQDN) to a specific certificate.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CertificateAuthorityDomainConfig {
/// List of fully qualified domain names (FQDN).
/// Specifying port is supported.
/// Wilcards are NOT supported.
/// Examples:
/// - my.customdomain.com
/// - 10.0.1.2:5000
#[prost(string, repeated, tag = "1")]
pub fqdns: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
/// Certificate access config. The following are supported:
/// - GCPSecretManagerCertificateConfig
#[prost(
oneof = "certificate_authority_domain_config::CertificateConfig",
tags = "2"
)]
pub certificate_config: ::core::option::Option<
certificate_authority_domain_config::CertificateConfig,
>,
}
/// Nested message and enum types in `CertificateAuthorityDomainConfig`.
pub mod certificate_authority_domain_config {
/// GCPSecretManagerCertificateConfig configures a secret from
/// [Google Secret Manager](<https://cloud.google.com/secret-manager>).
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GcpSecretManagerCertificateConfig {
/// Secret URI, in the form
/// "projects/$PROJECT_ID/secrets/$SECRET_NAME/versions/$VERSION".
/// Version can be fixed (e.g. "2") or "latest"
#[prost(string, tag = "1")]
pub secret_uri: ::prost::alloc::string::String,
}
/// Certificate access config. The following are supported:
/// - GCPSecretManagerCertificateConfig
#[derive(Clone, PartialEq, ::prost::Oneof)]
pub enum CertificateConfig {
/// Google Secret Manager (GCP) certificate configuration.
#[prost(message, tag = "2")]
GcpSecretManagerCertificateConfig(GcpSecretManagerCertificateConfig),
}
}
}
}
/// HostMaintenancePolicy contains the maintenance policy for the hosts on which
/// the GKE VMs run on.
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct HostMaintenancePolicy {
/// Specifies the frequency of planned maintenance events.
#[prost(
enumeration = "host_maintenance_policy::MaintenanceInterval",
optional,
tag = "1"
)]
pub maintenance_interval: ::core::option::Option<i32>,
/// Set of host maintenance strategies available to the customer, all require
/// the maintenance_interval to be PERIODIC. If no strategy is set, and the
/// interval is periodic, customer will be expected to trigger maintenance
/// manually or let maintenance trigger at its initial scheduled time.
#[prost(oneof = "host_maintenance_policy::MaintenanceStrategy", tags = "2")]
pub maintenance_strategy: ::core::option::Option<
host_maintenance_policy::MaintenanceStrategy,
>,
}
/// Nested message and enum types in `HostMaintenancePolicy`.
pub mod host_maintenance_policy {
/// Strategy that will trigger maintenance on behalf of the customer.
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct OpportunisticMaintenanceStrategy {
/// The amount of time that a node can remain idle (no customer owned
/// workloads running), before triggering maintenance.
#[prost(message, optional, tag = "1")]
pub node_idle_time_window: ::core::option::Option<::prost_types::Duration>,
/// The window of time that opportunistic maintenance can run. Example: A
/// setting of 14 days implies that opportunistic maintenance can only be ran
/// in the 2 weeks leading up to the scheduled maintenance date. Setting 28
/// days allows opportunistic maintenance to run at any time in the scheduled
/// maintenance window (all `PERIODIC` maintenance is set 28 days in
/// advance).
#[prost(message, optional, tag = "2")]
pub maintenance_availability_window: ::core::option::Option<
::prost_types::Duration,
>,
/// The minimum nodes required to be available in a pool. Blocks maintenance
/// if it would cause the number of running nodes to dip below this value.
#[prost(int64, optional, tag = "3")]
pub min_nodes_per_pool: ::core::option::Option<i64>,
}
/// Allows selecting how infrastructure upgrades should be applied to the
/// cluster or node pool.
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum MaintenanceInterval {
/// The maintenance interval is not explicitly specified.
Unspecified = 0,
/// Nodes are eligible to receive infrastructure and hypervisor updates as
/// they become available. This may result in more maintenance operations
/// (live migrations or terminations) for the node than the PERIODIC option.
AsNeeded = 1,
/// Nodes receive infrastructure and hypervisor updates on a periodic basis,
/// minimizing the number of maintenance operations (live migrations or
/// terminations) on an individual VM. This may mean underlying VMs will
/// take longer to receive an update than if it was configured for
/// AS_NEEDED. Security updates will still be applied as soon
/// as they are available.
Periodic = 2,
}
impl MaintenanceInterval {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
MaintenanceInterval::Unspecified => "MAINTENANCE_INTERVAL_UNSPECIFIED",
MaintenanceInterval::AsNeeded => "AS_NEEDED",
MaintenanceInterval::Periodic => "PERIODIC",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"MAINTENANCE_INTERVAL_UNSPECIFIED" => Some(Self::Unspecified),
"AS_NEEDED" => Some(Self::AsNeeded),
"PERIODIC" => Some(Self::Periodic),
_ => None,
}
}
}
/// Set of host maintenance strategies available to the customer, all require
/// the maintenance_interval to be PERIODIC. If no strategy is set, and the
/// interval is periodic, customer will be expected to trigger maintenance
/// manually or let maintenance trigger at its initial scheduled time.
#[derive(Clone, Copy, PartialEq, ::prost::Oneof)]
pub enum MaintenanceStrategy {
/// Strategy that will trigger maintenance on behalf of the customer.
#[prost(message, tag = "2")]
OpportunisticMaintenanceStrategy(OpportunisticMaintenanceStrategy),
}
}
/// Kubernetes taint is composed of three fields: key, value, and effect. Effect
/// can only be one of three types: NoSchedule, PreferNoSchedule or NoExecute.
///
/// See
/// [here](<https://kubernetes.io/docs/concepts/configuration/taint-and-toleration>)
/// for more information, including usage and the valid values.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct NodeTaint {
/// Key for taint.
#[prost(string, tag = "1")]
pub key: ::prost::alloc::string::String,
/// Value for taint.
#[prost(string, tag = "2")]
pub value: ::prost::alloc::string::String,
/// Effect for taint.
#[prost(enumeration = "node_taint::Effect", tag = "3")]
pub effect: i32,
}
/// Nested message and enum types in `NodeTaint`.
pub mod node_taint {
/// Possible values for Effect in taint.
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum Effect {
/// Not set
Unspecified = 0,
/// NoSchedule
NoSchedule = 1,
/// PreferNoSchedule
PreferNoSchedule = 2,
/// NoExecute
NoExecute = 3,
}
impl Effect {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
Effect::Unspecified => "EFFECT_UNSPECIFIED",
Effect::NoSchedule => "NO_SCHEDULE",
Effect::PreferNoSchedule => "PREFER_NO_SCHEDULE",
Effect::NoExecute => "NO_EXECUTE",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"EFFECT_UNSPECIFIED" => Some(Self::Unspecified),
"NO_SCHEDULE" => Some(Self::NoSchedule),
"PREFER_NO_SCHEDULE" => Some(Self::PreferNoSchedule),
"NO_EXECUTE" => Some(Self::NoExecute),
_ => None,
}
}
}
}
/// Collection of Kubernetes [node
/// taints](<https://kubernetes.io/docs/concepts/configuration/taint-and-toleration>).
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct NodeTaints {
/// List of node taints.
#[prost(message, repeated, tag = "1")]
pub taints: ::prost::alloc::vec::Vec<NodeTaint>,
}
/// Collection of node-level [Kubernetes
/// labels](<https://kubernetes.io/docs/concepts/overview/working-with-objects/labels>).
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct NodeLabels {
/// Map of node label keys and node label values.
#[prost(btree_map = "string, string", tag = "1")]
pub labels: ::prost::alloc::collections::BTreeMap<
::prost::alloc::string::String,
::prost::alloc::string::String,
>,
}
/// Collection of [GCP
/// labels](<https://cloud.google.com/resource-manager/docs/creating-managing-labels>).
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ResourceLabels {
/// Map of node label keys and node label values.
#[prost(btree_map = "string, string", tag = "1")]
pub labels: ::prost::alloc::collections::BTreeMap<
::prost::alloc::string::String,
::prost::alloc::string::String,
>,
}
/// Collection of Compute Engine network tags that can be applied to a node's
/// underlying VM instance. (See `tags` field in
/// [`NodeConfig`](/kubernetes-engine/docs/reference/rest/v1/NodeConfig)).
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct NetworkTags {
/// List of network tags.
#[prost(string, repeated, tag = "1")]
pub tags: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
}
/// The authentication information for accessing the master endpoint.
/// Authentication can be done using HTTP basic auth or using client
/// certificates.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct MasterAuth {
/// The username to use for HTTP basic authentication to the master endpoint.
/// For clusters v1.6.0 and later, basic authentication can be disabled by
/// leaving username unspecified (or setting it to the empty string).
///
/// Warning: basic authentication is deprecated, and will be removed in GKE
/// control plane versions 1.19 and newer. For a list of recommended
/// authentication methods, see:
/// <https://cloud.google.com/kubernetes-engine/docs/how-to/api-server-authentication>
#[deprecated]
#[prost(string, tag = "1")]
pub username: ::prost::alloc::string::String,
/// The password to use for HTTP basic authentication to the master endpoint.
/// Because the master endpoint is open to the Internet, you should create a
/// strong password. If a password is provided for cluster creation, username
/// must be non-empty.
///
/// Warning: basic authentication is deprecated, and will be removed in GKE
/// control plane versions 1.19 and newer. For a list of recommended
/// authentication methods, see:
/// <https://cloud.google.com/kubernetes-engine/docs/how-to/api-server-authentication>
#[deprecated]
#[prost(string, tag = "2")]
pub password: ::prost::alloc::string::String,
/// Configuration for client certificate authentication on the cluster. For
/// clusters before v1.12, if no configuration is specified, a client
/// certificate is issued.
#[prost(message, optional, tag = "3")]
pub client_certificate_config: ::core::option::Option<ClientCertificateConfig>,
/// Output only. Base64-encoded public certificate that is the root of
/// trust for the cluster.
#[prost(string, tag = "100")]
pub cluster_ca_certificate: ::prost::alloc::string::String,
/// Output only. Base64-encoded public certificate used by clients to
/// authenticate to the cluster endpoint.
#[prost(string, tag = "101")]
pub client_certificate: ::prost::alloc::string::String,
/// Output only. Base64-encoded private key used by clients to authenticate
/// to the cluster endpoint.
#[prost(string, tag = "102")]
pub client_key: ::prost::alloc::string::String,
}
/// Configuration for client certificates on the cluster.
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct ClientCertificateConfig {
/// Issue a client certificate.
#[prost(bool, tag = "1")]
pub issue_client_certificate: bool,
}
/// Configuration for the addons that can be automatically spun up in the
/// cluster, enabling additional functionality.
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct AddonsConfig {
/// Configuration for the HTTP (L7) load balancing controller addon, which
/// makes it easy to set up HTTP load balancers for services in a cluster.
#[prost(message, optional, tag = "1")]
pub http_load_balancing: ::core::option::Option<HttpLoadBalancing>,
/// Configuration for the horizontal pod autoscaling feature, which
/// increases or decreases the number of replica pods a replication controller
/// has based on the resource usage of the existing pods.
#[prost(message, optional, tag = "2")]
pub horizontal_pod_autoscaling: ::core::option::Option<HorizontalPodAutoscaling>,
/// Configuration for the Kubernetes Dashboard.
/// This addon is deprecated, and will be disabled in 1.15. It is recommended
/// to use the Cloud Console to manage and monitor your Kubernetes clusters,
/// workloads and applications. For more information, see:
/// <https://cloud.google.com/kubernetes-engine/docs/concepts/dashboards>
#[deprecated]
#[prost(message, optional, tag = "3")]
pub kubernetes_dashboard: ::core::option::Option<KubernetesDashboard>,
/// Configuration for NetworkPolicy. This only tracks whether the addon
/// is enabled or not on the Master, it does not track whether network policy
/// is enabled for the nodes.
#[prost(message, optional, tag = "4")]
pub network_policy_config: ::core::option::Option<NetworkPolicyConfig>,
/// Configuration for Istio, an open platform to connect, manage, and secure
/// microservices.
#[deprecated]
#[prost(message, optional, tag = "5")]
pub istio_config: ::core::option::Option<IstioConfig>,
/// Configuration for the Cloud Run addon. The `IstioConfig` addon must be
/// enabled in order to enable Cloud Run addon. This option can only be enabled
/// at cluster creation time.
#[prost(message, optional, tag = "7")]
pub cloud_run_config: ::core::option::Option<CloudRunConfig>,
/// Configuration for NodeLocalDNS, a dns cache running on cluster nodes
#[prost(message, optional, tag = "8")]
pub dns_cache_config: ::core::option::Option<DnsCacheConfig>,
/// Configuration for the ConfigConnector add-on, a Kubernetes
/// extension to manage hosted GCP services through the Kubernetes API
#[prost(message, optional, tag = "10")]
pub config_connector_config: ::core::option::Option<ConfigConnectorConfig>,
/// Configuration for the Compute Engine Persistent Disk CSI driver.
#[prost(message, optional, tag = "11")]
pub gce_persistent_disk_csi_driver_config: ::core::option::Option<
GcePersistentDiskCsiDriverConfig,
>,
/// Configuration for the KALM addon, which manages the lifecycle of k8s
/// applications.
#[deprecated]
#[prost(message, optional, tag = "12")]
pub kalm_config: ::core::option::Option<KalmConfig>,
/// Configuration for the GCP Filestore CSI driver.
#[prost(message, optional, tag = "14")]
pub gcp_filestore_csi_driver_config: ::core::option::Option<
GcpFilestoreCsiDriverConfig,
>,
/// Configuration for the Backup for GKE agent addon.
#[prost(message, optional, tag = "16")]
pub gke_backup_agent_config: ::core::option::Option<GkeBackupAgentConfig>,
/// Configuration for the Cloud Storage Fuse CSI driver.
#[prost(message, optional, tag = "17")]
pub gcs_fuse_csi_driver_config: ::core::option::Option<GcsFuseCsiDriverConfig>,
/// Optional. Configuration for the StatefulHA add-on.
#[prost(message, optional, tag = "18")]
pub stateful_ha_config: ::core::option::Option<StatefulHaConfig>,
/// Optional. Configuration for Ray Operator addon.
#[prost(message, optional, tag = "21")]
pub ray_operator_config: ::core::option::Option<RayOperatorConfig>,
}
/// Configuration options for the HTTP (L7) load balancing controller addon,
/// which makes it easy to set up HTTP load balancers for services in a cluster.
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct HttpLoadBalancing {
/// Whether the HTTP Load Balancing controller is enabled in the cluster.
/// When enabled, it runs a small pod in the cluster that manages the load
/// balancers.
#[prost(bool, tag = "1")]
pub disabled: bool,
}
/// Configuration options for the horizontal pod autoscaling feature, which
/// increases or decreases the number of replica pods a replication controller
/// has based on the resource usage of the existing pods.
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct HorizontalPodAutoscaling {
/// Whether the Horizontal Pod Autoscaling feature is enabled in the cluster.
/// When enabled, it ensures that metrics are collected into Stackdriver
/// Monitoring.
#[prost(bool, tag = "1")]
pub disabled: bool,
}
/// Configuration for the Kubernetes Dashboard.
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct KubernetesDashboard {
/// Whether the Kubernetes Dashboard is enabled for this cluster.
#[prost(bool, tag = "1")]
pub disabled: bool,
}
/// Configuration for NetworkPolicy. This only tracks whether the addon
/// is enabled or not on the Master, it does not track whether network policy
/// is enabled for the nodes.
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct NetworkPolicyConfig {
/// Whether NetworkPolicy is enabled for this cluster.
#[prost(bool, tag = "1")]
pub disabled: bool,
}
/// Configuration for NodeLocal DNSCache
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct DnsCacheConfig {
/// Whether NodeLocal DNSCache is enabled for this cluster.
#[prost(bool, tag = "1")]
pub enabled: bool,
}
/// Configuration options for the KALM addon.
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct KalmConfig {
/// Whether KALM is enabled for this cluster.
#[deprecated]
#[prost(bool, tag = "1")]
pub enabled: bool,
}
/// Configuration for the Backup for GKE Agent.
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct GkeBackupAgentConfig {
/// Whether the Backup for GKE agent is enabled for this cluster.
#[prost(bool, tag = "1")]
pub enabled: bool,
}
/// Configuration for the Stateful HA add-on.
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct StatefulHaConfig {
/// Whether the Stateful HA add-on is enabled for this cluster.
#[prost(bool, tag = "1")]
pub enabled: bool,
}
/// Configuration options for the Config Connector add-on.
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct ConfigConnectorConfig {
/// Whether Cloud Connector is enabled for this cluster.
#[prost(bool, tag = "1")]
pub enabled: bool,
}
/// Configuration for the Compute Engine PD CSI driver.
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct GcePersistentDiskCsiDriverConfig {
/// Whether the Compute Engine PD CSI driver is enabled for this cluster.
#[prost(bool, tag = "1")]
pub enabled: bool,
}
/// Configuration for the GCP Filestore CSI driver.
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct GcpFilestoreCsiDriverConfig {
/// Whether the GCP Filestore CSI driver is enabled for this cluster.
#[prost(bool, tag = "1")]
pub enabled: bool,
}
/// Configuration for the Cloud Storage Fuse CSI driver.
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct GcsFuseCsiDriverConfig {
/// Whether the Cloud Storage Fuse CSI driver is enabled for this cluster.
#[prost(bool, tag = "1")]
pub enabled: bool,
}
/// Configuration options for the Ray Operator add-on.
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct RayOperatorConfig {
/// Whether the Ray addon is enabled for this cluster.
#[prost(bool, tag = "1")]
pub enabled: bool,
/// Optional. Logging configuration for Ray clusters.
#[prost(message, optional, tag = "2")]
pub ray_cluster_logging_config: ::core::option::Option<RayClusterLoggingConfig>,
/// Optional. Monitoring configuration for Ray clusters.
#[prost(message, optional, tag = "3")]
pub ray_cluster_monitoring_config: ::core::option::Option<
RayClusterMonitoringConfig,
>,
}
/// Configuration for controlling master global access settings.
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct PrivateClusterMasterGlobalAccessConfig {
/// Whenever master is accessible globally or not.
#[prost(bool, tag = "1")]
pub enabled: bool,
}
/// Configuration options for private clusters.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct PrivateClusterConfig {
/// Whether nodes have internal IP addresses only. If enabled, all nodes are
/// given only RFC 1918 private addresses and communicate with the master via
/// private networking.
#[prost(bool, tag = "1")]
pub enable_private_nodes: bool,
/// Whether the master's internal IP address is used as the cluster endpoint.
#[prost(bool, tag = "2")]
pub enable_private_endpoint: bool,
/// The IP range in CIDR notation to use for the hosted master network. This
/// range will be used for assigning internal IP addresses to the master or
/// set of masters, as well as the ILB VIP. This range must not overlap with
/// any other ranges in use within the cluster's network.
#[prost(string, tag = "3")]
pub master_ipv4_cidr_block: ::prost::alloc::string::String,
/// Output only. The internal IP address of this cluster's master endpoint.
#[prost(string, tag = "4")]
pub private_endpoint: ::prost::alloc::string::String,
/// Output only. The external IP address of this cluster's master endpoint.
#[prost(string, tag = "5")]
pub public_endpoint: ::prost::alloc::string::String,
/// Output only. The peering name in the customer VPC used by this cluster.
#[prost(string, tag = "7")]
pub peering_name: ::prost::alloc::string::String,
/// Controls master global access settings.
#[prost(message, optional, tag = "8")]
pub master_global_access_config: ::core::option::Option<
PrivateClusterMasterGlobalAccessConfig,
>,
/// Subnet to provision the master's private endpoint during cluster creation.
/// Specified in projects/*/regions/*/subnetworks/* format.
#[prost(string, tag = "10")]
pub private_endpoint_subnetwork: ::prost::alloc::string::String,
}
/// Configuration options for Istio addon.
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct IstioConfig {
/// Whether Istio is enabled for this cluster.
#[deprecated]
#[prost(bool, tag = "1")]
pub disabled: bool,
/// The specified Istio auth mode, either none, or mutual TLS.
#[deprecated]
#[prost(enumeration = "istio_config::IstioAuthMode", tag = "2")]
pub auth: i32,
}
/// Nested message and enum types in `IstioConfig`.
pub mod istio_config {
/// Istio auth mode, <https://istio.io/docs/concepts/security/mutual-tls.html>
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum IstioAuthMode {
/// auth not enabled
AuthNone = 0,
/// auth mutual TLS enabled
AuthMutualTls = 1,
}
impl IstioAuthMode {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
IstioAuthMode::AuthNone => "AUTH_NONE",
IstioAuthMode::AuthMutualTls => "AUTH_MUTUAL_TLS",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"AUTH_NONE" => Some(Self::AuthNone),
"AUTH_MUTUAL_TLS" => Some(Self::AuthMutualTls),
_ => None,
}
}
}
}
/// Configuration options for the Cloud Run feature.
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct CloudRunConfig {
/// Whether Cloud Run addon is enabled for this cluster.
#[prost(bool, tag = "1")]
pub disabled: bool,
/// Which load balancer type is installed for Cloud Run.
#[prost(enumeration = "cloud_run_config::LoadBalancerType", tag = "3")]
pub load_balancer_type: i32,
}
/// Nested message and enum types in `CloudRunConfig`.
pub mod cloud_run_config {
/// Load balancer type of ingress service of Cloud Run.
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum LoadBalancerType {
/// Load balancer type for Cloud Run is unspecified.
Unspecified = 0,
/// Install external load balancer for Cloud Run.
External = 1,
/// Install internal load balancer for Cloud Run.
Internal = 2,
}
impl LoadBalancerType {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
LoadBalancerType::Unspecified => "LOAD_BALANCER_TYPE_UNSPECIFIED",
LoadBalancerType::External => "LOAD_BALANCER_TYPE_EXTERNAL",
LoadBalancerType::Internal => "LOAD_BALANCER_TYPE_INTERNAL",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"LOAD_BALANCER_TYPE_UNSPECIFIED" => Some(Self::Unspecified),
"LOAD_BALANCER_TYPE_EXTERNAL" => Some(Self::External),
"LOAD_BALANCER_TYPE_INTERNAL" => Some(Self::Internal),
_ => None,
}
}
}
}
/// Configuration options for the master authorized networks feature. Enabled
/// master authorized networks will disallow all external traffic to access
/// Kubernetes master through HTTPS except traffic from the given CIDR blocks,
/// Google Compute Engine Public IPs and Google Prod IPs.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct MasterAuthorizedNetworksConfig {
/// Whether or not master authorized networks is enabled.
#[prost(bool, tag = "1")]
pub enabled: bool,
/// cidr_blocks define up to 10 external networks that could access
/// Kubernetes master through HTTPS.
#[prost(message, repeated, tag = "2")]
pub cidr_blocks: ::prost::alloc::vec::Vec<
master_authorized_networks_config::CidrBlock,
>,
/// Whether master is accessbile via Google Compute Engine Public IP addresses.
#[prost(bool, optional, tag = "3")]
pub gcp_public_cidrs_access_enabled: ::core::option::Option<bool>,
}
/// Nested message and enum types in `MasterAuthorizedNetworksConfig`.
pub mod master_authorized_networks_config {
/// CidrBlock contains an optional name and one CIDR block.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CidrBlock {
/// display_name is an optional field for users to identify CIDR blocks.
#[prost(string, tag = "1")]
pub display_name: ::prost::alloc::string::String,
/// cidr_block must be specified in CIDR notation.
#[prost(string, tag = "2")]
pub cidr_block: ::prost::alloc::string::String,
}
}
/// Configuration for the legacy Attribute Based Access Control authorization
/// mode.
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct LegacyAbac {
/// Whether the ABAC authorizer is enabled for this cluster. When enabled,
/// identities in the system, including service accounts, nodes, and
/// controllers, will have statically granted permissions beyond those
/// provided by the RBAC configuration or IAM.
#[prost(bool, tag = "1")]
pub enabled: bool,
}
/// Configuration options for the NetworkPolicy feature.
/// <https://kubernetes.io/docs/concepts/services-networking/networkpolicies/>
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct NetworkPolicy {
/// The selected network policy provider.
#[prost(enumeration = "network_policy::Provider", tag = "1")]
pub provider: i32,
/// Whether network policy is enabled on the cluster.
#[prost(bool, tag = "2")]
pub enabled: bool,
}
/// Nested message and enum types in `NetworkPolicy`.
pub mod network_policy {
/// Allowed Network Policy providers.
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum Provider {
/// Not set
Unspecified = 0,
/// Tigera (Calico Felix).
Calico = 1,
}
impl Provider {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
Provider::Unspecified => "PROVIDER_UNSPECIFIED",
Provider::Calico => "CALICO",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"PROVIDER_UNSPECIFIED" => Some(Self::Unspecified),
"CALICO" => Some(Self::Calico),
_ => None,
}
}
}
}
/// \[PRIVATE FIELD\]
/// Config for pod CIDR size overprovisioning.
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct PodCidrOverprovisionConfig {
/// Whether Pod CIDR overprovisioning is disabled.
/// Note: Pod CIDR overprovisioning is enabled by default.
#[prost(bool, tag = "1")]
pub disable: bool,
}
/// Configuration for controlling how IPs are allocated in the cluster.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct IpAllocationPolicy {
/// Whether alias IPs will be used for pod IPs in the cluster.
/// This is used in conjunction with use_routes. It cannot
/// be true if use_routes is true. If both use_ip_aliases and use_routes are
/// false, then the server picks the default IP allocation mode
#[prost(bool, tag = "1")]
pub use_ip_aliases: bool,
/// Whether a new subnetwork will be created automatically for the cluster.
///
/// This field is only applicable when `use_ip_aliases` is true.
#[prost(bool, tag = "2")]
pub create_subnetwork: bool,
/// A custom subnetwork name to be used if `create_subnetwork` is true. If
/// this field is empty, then an automatic name will be chosen for the new
/// subnetwork.
#[prost(string, tag = "3")]
pub subnetwork_name: ::prost::alloc::string::String,
/// This field is deprecated, use cluster_ipv4_cidr_block.
#[deprecated]
#[prost(string, tag = "4")]
pub cluster_ipv4_cidr: ::prost::alloc::string::String,
/// This field is deprecated, use node_ipv4_cidr_block.
#[deprecated]
#[prost(string, tag = "5")]
pub node_ipv4_cidr: ::prost::alloc::string::String,
/// This field is deprecated, use services_ipv4_cidr_block.
#[deprecated]
#[prost(string, tag = "6")]
pub services_ipv4_cidr: ::prost::alloc::string::String,
/// The name of the secondary range to be used for the cluster CIDR
/// block. The secondary range will be used for pod IP
/// addresses. This must be an existing secondary range associated
/// with the cluster subnetwork.
///
/// This field is only applicable with use_ip_aliases and
/// create_subnetwork is false.
#[prost(string, tag = "7")]
pub cluster_secondary_range_name: ::prost::alloc::string::String,
/// The name of the secondary range to be used as for the services
/// CIDR block. The secondary range will be used for service
/// ClusterIPs. This must be an existing secondary range associated
/// with the cluster subnetwork.
///
/// This field is only applicable with use_ip_aliases and
/// create_subnetwork is false.
#[prost(string, tag = "8")]
pub services_secondary_range_name: ::prost::alloc::string::String,
/// The IP address range for the cluster pod IPs. If this field is set, then
/// `cluster.cluster_ipv4_cidr` must be left blank.
///
/// This field is only applicable when `use_ip_aliases` is true.
///
/// Set to blank to have a range chosen with the default size.
///
/// Set to /netmask (e.g. `/14`) to have a range chosen with a specific
/// netmask.
///
/// Set to a
/// [CIDR](<http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing>)
/// notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
/// `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
/// to use.
#[prost(string, tag = "9")]
pub cluster_ipv4_cidr_block: ::prost::alloc::string::String,
/// The IP address range of the instance IPs in this cluster.
///
/// This is applicable only if `create_subnetwork` is true.
///
/// Set to blank to have a range chosen with the default size.
///
/// Set to /netmask (e.g. `/14`) to have a range chosen with a specific
/// netmask.
///
/// Set to a
/// [CIDR](<http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing>)
/// notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
/// `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
/// to use.
#[prost(string, tag = "10")]
pub node_ipv4_cidr_block: ::prost::alloc::string::String,
/// The IP address range of the services IPs in this cluster. If blank, a range
/// will be automatically chosen with the default size.
///
/// This field is only applicable when `use_ip_aliases` is true.
///
/// Set to blank to have a range chosen with the default size.
///
/// Set to /netmask (e.g. `/14`) to have a range chosen with a specific
/// netmask.
///
/// Set to a
/// [CIDR](<http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing>)
/// notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
/// `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
/// to use.
#[prost(string, tag = "11")]
pub services_ipv4_cidr_block: ::prost::alloc::string::String,
/// If true, allow allocation of cluster CIDR ranges that overlap with certain
/// kinds of network routes. By default we do not allow cluster CIDR ranges to
/// intersect with any user declared routes. With allow_route_overlap == true,
/// we allow overlapping with CIDR ranges that are larger than the cluster CIDR
/// range.
///
/// If this field is set to true, then cluster and services CIDRs must be
/// fully-specified (e.g. `10.96.0.0/14`, but not `/14`), which means:
/// 1) When `use_ip_aliases` is true, `cluster_ipv4_cidr_block` and
/// `services_ipv4_cidr_block` must be fully-specified.
/// 2) When `use_ip_aliases` is false, `cluster.cluster_ipv4_cidr` muse be
/// fully-specified.
#[prost(bool, tag = "12")]
pub allow_route_overlap: bool,
/// The IP address range of the Cloud TPUs in this cluster. If unspecified, a
/// range will be automatically chosen with the default size.
///
/// This field is only applicable when `use_ip_aliases` is true.
///
/// If unspecified, the range will use the default size.
///
/// Set to /netmask (e.g. `/14`) to have a range chosen with a specific
/// netmask.
///
/// Set to a
/// [CIDR](<http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing>)
/// notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g.
/// `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range
/// to use.
/// This field is deprecated, use cluster.tpu_config.ipv4_cidr_block instead.
#[prost(string, tag = "13")]
pub tpu_ipv4_cidr_block: ::prost::alloc::string::String,
/// Whether routes will be used for pod IPs in the cluster.
/// This is used in conjunction with use_ip_aliases. It cannot be true if
/// use_ip_aliases is true. If both use_ip_aliases and use_routes are false,
/// then the server picks the default IP allocation mode
#[prost(bool, tag = "15")]
pub use_routes: bool,
/// IP stack type
#[prost(enumeration = "ip_allocation_policy::StackType", tag = "16")]
pub stack_type: i32,
/// The ipv6 access type (internal or external) when create_subnetwork is true
#[prost(enumeration = "ip_allocation_policy::IPv6AccessType", tag = "17")]
pub ipv6_access_type: i32,
/// \[PRIVATE FIELD\]
/// Pod CIDR size overprovisioning config for the cluster.
///
/// Pod CIDR size per node depends on max_pods_per_node. By default, the value
/// of max_pods_per_node is doubled and then rounded off to next power of 2 to
/// get the size of pod CIDR block per node.
/// Example: max_pods_per_node of 30 would result in 64 IPs (/26).
///
/// This config can disable the doubling of IPs (we still round off to next
/// power of 2)
/// Example: max_pods_per_node of 30 will result in 32 IPs (/27) when
/// overprovisioning is disabled.
#[prost(message, optional, tag = "21")]
pub pod_cidr_overprovision_config: ::core::option::Option<
PodCidrOverprovisionConfig,
>,
/// Output only. The subnet's IPv6 CIDR block used by nodes and pods.
#[prost(string, tag = "22")]
pub subnet_ipv6_cidr_block: ::prost::alloc::string::String,
/// Output only. The services IPv6 CIDR block for the cluster.
#[prost(string, tag = "23")]
pub services_ipv6_cidr_block: ::prost::alloc::string::String,
/// Output only. The additional pod ranges that are added to the cluster.
/// These pod ranges can be used by new node pools to allocate pod IPs
/// automatically. Once the range is removed it will not show up in
/// IPAllocationPolicy.
#[prost(message, optional, tag = "24")]
pub additional_pod_ranges_config: ::core::option::Option<AdditionalPodRangesConfig>,
/// Output only. The utilization of the cluster default IPv4 range for the
/// pod. The ratio is Usage/\[Total number of IPs in the secondary range\],
/// Usage=numNodes*numZones*podIPsPerNode.
#[prost(double, tag = "25")]
pub default_pod_ipv4_range_utilization: f64,
}
/// Nested message and enum types in `IPAllocationPolicy`.
pub mod ip_allocation_policy {
/// Possible values for IP stack type
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum StackType {
/// By default, the clusters will be IPV4 only
Unspecified = 0,
/// The value used if the cluster is a IPV4 only
Ipv4 = 1,
/// The value used if the cluster is a dual stack cluster
Ipv4Ipv6 = 2,
}
impl StackType {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
StackType::Unspecified => "STACK_TYPE_UNSPECIFIED",
StackType::Ipv4 => "IPV4",
StackType::Ipv4Ipv6 => "IPV4_IPV6",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"STACK_TYPE_UNSPECIFIED" => Some(Self::Unspecified),
"IPV4" => Some(Self::Ipv4),
"IPV4_IPV6" => Some(Self::Ipv4Ipv6),
_ => None,
}
}
}
/// IPv6 access type
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum IPv6AccessType {
/// Default value, will be defaulted as type external.
Ipv6AccessTypeUnspecified = 0,
/// Access type internal (all v6 addresses are internal IPs)
Internal = 1,
/// Access type external (all v6 addresses are external IPs)
External = 2,
}
impl IPv6AccessType {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
IPv6AccessType::Ipv6AccessTypeUnspecified => {
"IPV6_ACCESS_TYPE_UNSPECIFIED"
}
IPv6AccessType::Internal => "INTERNAL",
IPv6AccessType::External => "EXTERNAL",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"IPV6_ACCESS_TYPE_UNSPECIFIED" => Some(Self::Ipv6AccessTypeUnspecified),
"INTERNAL" => Some(Self::Internal),
"EXTERNAL" => Some(Self::External),
_ => None,
}
}
}
}
/// Configuration for Binary Authorization.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct BinaryAuthorization {
/// This field is deprecated. Leave this unset and instead configure
/// BinaryAuthorization using evaluation_mode. If evaluation_mode is set to
/// anything other than EVALUATION_MODE_UNSPECIFIED, this field is ignored.
#[deprecated]
#[prost(bool, tag = "1")]
pub enabled: bool,
/// Mode of operation for binauthz policy evaluation. If unspecified, defaults
/// to DISABLED.
#[prost(enumeration = "binary_authorization::EvaluationMode", tag = "2")]
pub evaluation_mode: i32,
/// Optional. Binauthz policies that apply to this cluster.
#[prost(message, repeated, tag = "5")]
pub policy_bindings: ::prost::alloc::vec::Vec<binary_authorization::PolicyBinding>,
}
/// Nested message and enum types in `BinaryAuthorization`.
pub mod binary_authorization {
/// Binauthz policy that applies to this cluster.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct PolicyBinding {
/// The relative resource name of the binauthz platform policy to evaluate.
/// GKE platform policies have the following format:
/// `projects/{project_number}/platforms/gke/policies/{policy_id}`.
#[prost(string, optional, tag = "1")]
pub name: ::core::option::Option<::prost::alloc::string::String>,
}
/// Binary Authorization mode of operation.
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum EvaluationMode {
/// Default value
Unspecified = 0,
/// Disable BinaryAuthorization
Disabled = 1,
/// Enforce Kubernetes admission requests with BinaryAuthorization using the
/// project's singleton policy. This is equivalent to setting the
/// enabled boolean to true.
ProjectSingletonPolicyEnforce = 2,
/// Use Binary Authorization Continuous Validation with the policies
/// specified in policy_bindings.
PolicyBindings = 5,
/// Use Binary Authorization Continuous Validation with the policies
/// specified in policy_bindings and enforce Kubernetes admission requests
/// with Binary Authorization using the project's singleton policy.
PolicyBindingsAndProjectSingletonPolicyEnforce = 6,
}
impl EvaluationMode {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
EvaluationMode::Unspecified => "EVALUATION_MODE_UNSPECIFIED",
EvaluationMode::Disabled => "DISABLED",
EvaluationMode::ProjectSingletonPolicyEnforce => {
"PROJECT_SINGLETON_POLICY_ENFORCE"
}
EvaluationMode::PolicyBindings => "POLICY_BINDINGS",
EvaluationMode::PolicyBindingsAndProjectSingletonPolicyEnforce => {
"POLICY_BINDINGS_AND_PROJECT_SINGLETON_POLICY_ENFORCE"
}
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"EVALUATION_MODE_UNSPECIFIED" => Some(Self::Unspecified),
"DISABLED" => Some(Self::Disabled),
"PROJECT_SINGLETON_POLICY_ENFORCE" => {
Some(Self::ProjectSingletonPolicyEnforce)
}
"POLICY_BINDINGS" => Some(Self::PolicyBindings),
"POLICY_BINDINGS_AND_PROJECT_SINGLETON_POLICY_ENFORCE" => {
Some(Self::PolicyBindingsAndProjectSingletonPolicyEnforce)
}
_ => None,
}
}
}
}
/// Configuration for the PodSecurityPolicy feature.
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct PodSecurityPolicyConfig {
/// Enable the PodSecurityPolicy controller for this cluster. If enabled, pods
/// must be valid under a PodSecurityPolicy to be created.
#[prost(bool, tag = "1")]
pub enabled: bool,
}
/// Configuration for returning group information from authenticators.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct AuthenticatorGroupsConfig {
/// Whether this cluster should return group membership lookups
/// during authentication using a group of security groups.
#[prost(bool, tag = "1")]
pub enabled: bool,
/// The name of the security group-of-groups to be used. Only relevant
/// if enabled = true.
#[prost(string, tag = "2")]
pub security_group: ::prost::alloc::string::String,
}
/// Telemetry integration for the cluster.
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct ClusterTelemetry {
/// Type of the integration.
#[prost(enumeration = "cluster_telemetry::Type", tag = "1")]
pub r#type: i32,
}
/// Nested message and enum types in `ClusterTelemetry`.
pub mod cluster_telemetry {
/// Type of the integration.
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum Type {
/// Not set.
Unspecified = 0,
/// Monitoring integration is disabled.
Disabled = 1,
/// Monitoring integration is enabled.
Enabled = 2,
/// Only system components are monitored and logged.
SystemOnly = 3,
}
impl Type {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
Type::Unspecified => "UNSPECIFIED",
Type::Disabled => "DISABLED",
Type::Enabled => "ENABLED",
Type::SystemOnly => "SYSTEM_ONLY",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"UNSPECIFIED" => Some(Self::Unspecified),
"DISABLED" => Some(Self::Disabled),
"ENABLED" => Some(Self::Enabled),
"SYSTEM_ONLY" => Some(Self::SystemOnly),
_ => None,
}
}
}
}
/// A Google Kubernetes Engine cluster.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Cluster {
/// The name of this cluster. The name must be unique within this project
/// and location (e.g. zone or region), and can be up to 40 characters with
/// the following restrictions:
///
/// * Lowercase letters, numbers, and hyphens only.
/// * Must start with a letter.
/// * Must end with a number or a letter.
#[prost(string, tag = "1")]
pub name: ::prost::alloc::string::String,
/// An optional description of this cluster.
#[prost(string, tag = "2")]
pub description: ::prost::alloc::string::String,
/// The number of nodes to create in this cluster. You must ensure that your
/// Compute Engine [resource quota](<https://cloud.google.com/compute/quotas>)
/// is sufficient for this number of instances. You must also have available
/// firewall and routes quota.
/// For requests, this field should only be used in lieu of a
/// "node_pool" object, since this configuration (along with the
/// "node_config") will be used to create a "NodePool" object with an
/// auto-generated name. Do not use this and a node_pool at the same time.
///
/// This field is deprecated, use node_pool.initial_node_count instead.
#[deprecated]
#[prost(int32, tag = "3")]
pub initial_node_count: i32,
/// Parameters used in creating the cluster's nodes.
/// For requests, this field should only be used in lieu of a
/// "node_pool" object, since this configuration (along with the
/// "initial_node_count") will be used to create a "NodePool" object with an
/// auto-generated name. Do not use this and a node_pool at the same time.
/// For responses, this field will be populated with the node configuration of
/// the first node pool. (For configuration of each node pool, see
/// `node_pool.config`)
///
/// If unspecified, the defaults are used.
/// This field is deprecated, use node_pool.config instead.
#[deprecated]
#[prost(message, optional, tag = "4")]
pub node_config: ::core::option::Option<NodeConfig>,
/// The authentication information for accessing the master endpoint.
/// If unspecified, the defaults are used:
/// For clusters before v1.12, if master_auth is unspecified, `username` will
/// be set to "admin", a random password will be generated, and a client
/// certificate will be issued.
#[prost(message, optional, tag = "5")]
pub master_auth: ::core::option::Option<MasterAuth>,
/// The logging service the cluster should use to write logs.
/// Currently available options:
///
/// * `logging.googleapis.com/kubernetes` - The Cloud Logging
/// service with a Kubernetes-native resource model
/// * `logging.googleapis.com` - The legacy Cloud Logging service (no longer
/// available as of GKE 1.15).
/// * `none` - no logs will be exported from the cluster.
///
/// If left as an empty string,`logging.googleapis.com/kubernetes` will be
/// used for GKE 1.14+ or `logging.googleapis.com` for earlier versions.
#[prost(string, tag = "6")]
pub logging_service: ::prost::alloc::string::String,
/// The monitoring service the cluster should use to write metrics.
/// Currently available options:
///
/// * "monitoring.googleapis.com/kubernetes" - The Cloud Monitoring
/// service with a Kubernetes-native resource model
/// * `monitoring.googleapis.com` - The legacy Cloud Monitoring service (no
/// longer available as of GKE 1.15).
/// * `none` - No metrics will be exported from the cluster.
///
/// If left as an empty string,`monitoring.googleapis.com/kubernetes` will be
/// used for GKE 1.14+ or `monitoring.googleapis.com` for earlier versions.
#[prost(string, tag = "7")]
pub monitoring_service: ::prost::alloc::string::String,
/// The name of the Google Compute Engine
/// [network](<https://cloud.google.com/compute/docs/networks-and-firewalls#networks>)
/// to which the cluster is connected. If left unspecified, the `default`
/// network will be used. On output this shows the network ID instead of the
/// name.
#[prost(string, tag = "8")]
pub network: ::prost::alloc::string::String,
/// The IP address range of the container pods in this cluster, in
/// [CIDR](<http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing>)
/// notation (e.g. `10.96.0.0/14`). Leave blank to have
/// one automatically chosen or specify a `/14` block in `10.0.0.0/8`.
#[prost(string, tag = "9")]
pub cluster_ipv4_cidr: ::prost::alloc::string::String,
/// Configurations for the various addons available to run in the cluster.
#[prost(message, optional, tag = "10")]
pub addons_config: ::core::option::Option<AddonsConfig>,
/// The name of the Google Compute Engine
/// [subnetwork](<https://cloud.google.com/compute/docs/subnetworks>) to which
/// the cluster is connected. On output this shows the subnetwork ID instead of
/// the name.
#[prost(string, tag = "11")]
pub subnetwork: ::prost::alloc::string::String,
/// The node pools associated with this cluster.
/// This field should not be set if "node_config" or "initial_node_count" are
/// specified.
#[prost(message, repeated, tag = "12")]
pub node_pools: ::prost::alloc::vec::Vec<NodePool>,
/// The list of Google Compute Engine
/// [zones](<https://cloud.google.com/compute/docs/zones#available>) in which the
/// cluster's nodes should be located.
///
/// This field provides a default value if
/// [NodePool.Locations](<https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters.nodePools#NodePool.FIELDS.locations>)
/// are not specified during node pool creation.
///
/// Warning: changing cluster locations will update the
/// [NodePool.Locations](<https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters.nodePools#NodePool.FIELDS.locations>)
/// of all node pools and will result in nodes being added and/or removed.
#[prost(string, repeated, tag = "13")]
pub locations: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
/// Kubernetes alpha features are enabled on this cluster. This includes alpha
/// API groups (e.g. v1beta1) and features that may not be production ready in
/// the kubernetes version of the master and nodes.
/// The cluster has no SLA for uptime and master/node upgrades are disabled.
/// Alpha enabled clusters are automatically deleted thirty days after
/// creation.
#[prost(bool, tag = "14")]
pub enable_kubernetes_alpha: bool,
/// Kubernetes open source beta apis enabled on the cluster. Only beta apis.
#[prost(message, optional, tag = "143")]
pub enable_k8s_beta_apis: ::core::option::Option<K8sBetaApiConfig>,
/// The resource labels for the cluster to use to annotate any related
/// Google Compute Engine resources.
#[prost(btree_map = "string, string", tag = "15")]
pub resource_labels: ::prost::alloc::collections::BTreeMap<
::prost::alloc::string::String,
::prost::alloc::string::String,
>,
/// The fingerprint of the set of labels for this cluster.
#[prost(string, tag = "16")]
pub label_fingerprint: ::prost::alloc::string::String,
/// Configuration for the legacy ABAC authorization mode.
#[prost(message, optional, tag = "18")]
pub legacy_abac: ::core::option::Option<LegacyAbac>,
/// Configuration options for the NetworkPolicy feature.
#[prost(message, optional, tag = "19")]
pub network_policy: ::core::option::Option<NetworkPolicy>,
/// Configuration for cluster IP allocation.
#[prost(message, optional, tag = "20")]
pub ip_allocation_policy: ::core::option::Option<IpAllocationPolicy>,
/// The configuration options for master authorized networks feature.
#[prost(message, optional, tag = "22")]
pub master_authorized_networks_config: ::core::option::Option<
MasterAuthorizedNetworksConfig,
>,
/// Configure the maintenance policy for this cluster.
#[prost(message, optional, tag = "23")]
pub maintenance_policy: ::core::option::Option<MaintenancePolicy>,
/// Configuration for Binary Authorization.
#[prost(message, optional, tag = "24")]
pub binary_authorization: ::core::option::Option<BinaryAuthorization>,
/// Configuration for the PodSecurityPolicy feature.
#[prost(message, optional, tag = "25")]
pub pod_security_policy_config: ::core::option::Option<PodSecurityPolicyConfig>,
/// Cluster-level autoscaling configuration.
#[prost(message, optional, tag = "26")]
pub autoscaling: ::core::option::Option<ClusterAutoscaling>,
/// Configuration for cluster networking.
#[prost(message, optional, tag = "27")]
pub network_config: ::core::option::Option<NetworkConfig>,
/// If this is a private cluster setup. Private clusters are clusters that, by
/// default have no external IP addresses on the nodes and where nodes and the
/// master communicate over private IP addresses.
/// This field is deprecated, use private_cluster_config.enable_private_nodes
/// instead.
#[deprecated]
#[prost(bool, tag = "28")]
pub private_cluster: bool,
/// The IP prefix in CIDR notation to use for the hosted master network.
/// This prefix will be used for assigning private IP addresses to the
/// master or set of masters, as well as the ILB VIP.
/// This field is deprecated, use
/// private_cluster_config.master_ipv4_cidr_block instead.
#[deprecated]
#[prost(string, tag = "29")]
pub master_ipv4_cidr_block: ::prost::alloc::string::String,
/// The default constraint on the maximum number of pods that can be run
/// simultaneously on a node in the node pool of this cluster. Only honored
/// if cluster created with IP Alias support.
#[prost(message, optional, tag = "30")]
pub default_max_pods_constraint: ::core::option::Option<MaxPodsConstraint>,
/// Configuration for exporting resource usages. Resource usage export is
/// disabled when this config unspecified.
#[prost(message, optional, tag = "33")]
pub resource_usage_export_config: ::core::option::Option<ResourceUsageExportConfig>,
/// Configuration controlling RBAC group membership information.
#[prost(message, optional, tag = "34")]
pub authenticator_groups_config: ::core::option::Option<AuthenticatorGroupsConfig>,
/// Configuration for private cluster.
#[prost(message, optional, tag = "37")]
pub private_cluster_config: ::core::option::Option<PrivateClusterConfig>,
/// Cluster-level Vertical Pod Autoscaling configuration.
#[prost(message, optional, tag = "39")]
pub vertical_pod_autoscaling: ::core::option::Option<VerticalPodAutoscaling>,
/// Shielded Nodes configuration.
#[prost(message, optional, tag = "40")]
pub shielded_nodes: ::core::option::Option<ShieldedNodes>,
/// Release channel configuration. If left unspecified on cluster creation and
/// a version is specified, the cluster is enrolled in the most mature release
/// channel where the version is available (first checking STABLE, then
/// REGULAR, and finally RAPID). Otherwise, if no release channel
/// configuration and no version is specified, the cluster is enrolled in the
/// REGULAR channel with its default version.
#[prost(message, optional, tag = "41")]
pub release_channel: ::core::option::Option<ReleaseChannel>,
/// Configuration for the use of Kubernetes Service Accounts in GCP IAM
/// policies.
#[prost(message, optional, tag = "43")]
pub workload_identity_config: ::core::option::Option<WorkloadIdentityConfig>,
/// Configuration for issuance of mTLS keys and certificates to Kubernetes
/// pods.
#[prost(message, optional, tag = "52")]
pub workload_certificates: ::core::option::Option<WorkloadCertificates>,
/// Configuration for issuance of mTLS keys and certificates to Kubernetes
/// pods.
#[prost(message, optional, tag = "67")]
pub mesh_certificates: ::core::option::Option<MeshCertificates>,
/// Configuration for direct-path (via ALTS) with workload identity.
#[prost(message, optional, tag = "53")]
pub workload_alts_config: ::core::option::Option<WorkloadAltsConfig>,
/// Configuration for the fine-grained cost management feature.
#[prost(message, optional, tag = "45")]
pub cost_management_config: ::core::option::Option<CostManagementConfig>,
/// Telemetry integration for the cluster.
#[prost(message, optional, tag = "46")]
pub cluster_telemetry: ::core::option::Option<ClusterTelemetry>,
/// Configuration for Cloud TPU support;
#[prost(message, optional, tag = "47")]
pub tpu_config: ::core::option::Option<TpuConfig>,
/// Notification configuration of the cluster.
#[prost(message, optional, tag = "49")]
pub notification_config: ::core::option::Option<NotificationConfig>,
/// Configuration of Confidential Nodes.
/// All the nodes in the cluster will be Confidential VM once enabled.
#[prost(message, optional, tag = "50")]
pub confidential_nodes: ::core::option::Option<ConfidentialNodes>,
/// Configuration for Identity Service component.
#[prost(message, optional, tag = "54")]
pub identity_service_config: ::core::option::Option<IdentityServiceConfig>,
/// Output only. Server-defined URL for the resource.
#[prost(string, tag = "100")]
pub self_link: ::prost::alloc::string::String,
/// Output only. The name of the Google Compute Engine
/// [zone](<https://cloud.google.com/compute/docs/zones#available>) in which the
/// cluster resides. This field is deprecated, use location instead.
#[deprecated]
#[prost(string, tag = "101")]
pub zone: ::prost::alloc::string::String,
/// Output only. The IP address of this cluster's master endpoint.
/// The endpoint can be accessed from the internet at
/// `<https://username:password@endpoint/`.>
///
/// See the `masterAuth` property of this resource for username and
/// password information.
#[prost(string, tag = "102")]
pub endpoint: ::prost::alloc::string::String,
/// The initial Kubernetes version for this cluster. Valid versions are those
/// found in validMasterVersions returned by getServerConfig. The version can
/// be upgraded over time; such upgrades are reflected in
/// currentMasterVersion and currentNodeVersion.
///
/// Users may specify either explicit versions offered by
/// Kubernetes Engine or version aliases, which have the following behavior:
///
/// - "latest": picks the highest valid Kubernetes version
/// - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
/// - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
/// - "1.X.Y-gke.N": picks an explicit Kubernetes version
/// - "","-": picks the default Kubernetes version
#[prost(string, tag = "103")]
pub initial_cluster_version: ::prost::alloc::string::String,
/// Output only. The current software version of the master endpoint.
#[prost(string, tag = "104")]
pub current_master_version: ::prost::alloc::string::String,
/// Output only. Deprecated, use
/// [NodePool.version](<https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1beta1/projects.locations.clusters.nodePools>)
/// instead. The current version of the node software components.
/// If they are currently at multiple versions because they're in the process
/// of being upgraded, this reflects the minimum version of all nodes.
#[deprecated]
#[prost(string, tag = "105")]
pub current_node_version: ::prost::alloc::string::String,
/// Output only. The time the cluster was created, in
/// [RFC3339](<https://www.ietf.org/rfc/rfc3339.txt>) text format.
#[prost(string, tag = "106")]
pub create_time: ::prost::alloc::string::String,
/// Output only. The current status of this cluster.
#[prost(enumeration = "cluster::Status", tag = "107")]
pub status: i32,
/// Output only. Deprecated. Use conditions instead.
/// Additional information about the current status of this
/// cluster, if available.
#[deprecated]
#[prost(string, tag = "108")]
pub status_message: ::prost::alloc::string::String,
/// Output only. The size of the address space on each node for hosting
/// containers. This is provisioned from within the `container_ipv4_cidr`
/// range. This field will only be set when cluster is in route-based network
/// mode.
#[prost(int32, tag = "109")]
pub node_ipv4_cidr_size: i32,
/// Output only. The IP address range of the Kubernetes services in
/// this cluster, in
/// [CIDR](<http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing>)
/// notation (e.g. `1.2.3.4/29`). Service addresses are
/// typically put in the last `/16` from the container CIDR.
#[prost(string, tag = "110")]
pub services_ipv4_cidr: ::prost::alloc::string::String,
/// Output only. Deprecated. Use node_pools.instance_group_urls.
#[deprecated]
#[prost(string, repeated, tag = "111")]
pub instance_group_urls: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
/// Output only. The number of nodes currently in the cluster. Deprecated.
/// Call Kubernetes API directly to retrieve node information.
#[deprecated]
#[prost(int32, tag = "112")]
pub current_node_count: i32,
/// Output only. The time the cluster will be automatically
/// deleted in [RFC3339](<https://www.ietf.org/rfc/rfc3339.txt>) text format.
#[prost(string, tag = "113")]
pub expire_time: ::prost::alloc::string::String,
/// Output only. The name of the Google Compute Engine
/// [zone](<https://cloud.google.com/compute/docs/regions-zones/regions-zones#available>)
/// or
/// [region](<https://cloud.google.com/compute/docs/regions-zones/regions-zones#available>)
/// in which the cluster resides.
#[prost(string, tag = "114")]
pub location: ::prost::alloc::string::String,
/// Enable the ability to use Cloud TPUs in this cluster.
/// This field is deprecated, use tpu_config.enabled instead.
#[prost(bool, tag = "115")]
pub enable_tpu: bool,
/// Output only. The IP address range of the Cloud TPUs in this cluster, in
/// [CIDR](<http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing>)
/// notation (e.g. `1.2.3.4/29`).
#[prost(string, tag = "116")]
pub tpu_ipv4_cidr_block: ::prost::alloc::string::String,
/// Configuration of etcd encryption.
#[prost(message, optional, tag = "38")]
pub database_encryption: ::core::option::Option<DatabaseEncryption>,
/// Which conditions caused the current cluster state.
#[prost(message, repeated, tag = "118")]
pub conditions: ::prost::alloc::vec::Vec<StatusCondition>,
/// Configuration for master components.
#[prost(message, optional, tag = "124")]
pub master: ::core::option::Option<Master>,
/// Autopilot configuration for the cluster.
#[prost(message, optional, tag = "128")]
pub autopilot: ::core::option::Option<Autopilot>,
/// Output only. Unique id for the cluster.
#[prost(string, tag = "129")]
pub id: ::prost::alloc::string::String,
/// Default NodePool settings for the entire cluster. These settings are
/// overridden if specified on the specific NodePool object.
#[prost(message, optional, tag = "131")]
pub node_pool_defaults: ::core::option::Option<NodePoolDefaults>,
/// Logging configuration for the cluster.
#[prost(message, optional, tag = "132")]
pub logging_config: ::core::option::Option<LoggingConfig>,
/// Monitoring configuration for the cluster.
#[prost(message, optional, tag = "133")]
pub monitoring_config: ::core::option::Option<MonitoringConfig>,
/// Node pool configs that apply to all auto-provisioned node pools
/// in autopilot clusters and node auto-provisioning enabled clusters.
#[prost(message, optional, tag = "136")]
pub node_pool_auto_config: ::core::option::Option<NodePoolAutoConfig>,
/// Deprecated: Use SecurityPostureConfig instead.
/// Enable/Disable Protect API features for the cluster.
#[deprecated]
#[prost(message, optional, tag = "137")]
pub protect_config: ::core::option::Option<ProtectConfig>,
/// This checksum is computed by the server based on the value of cluster
/// fields, and may be sent on update requests to ensure the client has an
/// up-to-date value before proceeding.
#[prost(string, tag = "139")]
pub etag: ::prost::alloc::string::String,
/// Fleet information for the cluster.
#[prost(message, optional, tag = "140")]
pub fleet: ::core::option::Option<Fleet>,
/// Enable/Disable Security Posture API features for the cluster.
#[prost(message, optional, tag = "145")]
pub security_posture_config: ::core::option::Option<SecurityPostureConfig>,
/// GKE Enterprise Configuration.
#[prost(message, optional, tag = "149")]
pub enterprise_config: ::core::option::Option<EnterpriseConfig>,
/// Secret CSI driver configuration.
#[prost(message, optional, tag = "150")]
pub secret_manager_config: ::core::option::Option<SecretManagerConfig>,
/// Enable/Disable Compliance Posture features for the cluster.
#[prost(message, optional, tag = "151")]
pub compliance_posture_config: ::core::option::Option<CompliancePostureConfig>,
/// Output only. Reserved for future use.
#[prost(bool, optional, tag = "152")]
pub satisfies_pzs: ::core::option::Option<bool>,
/// Output only. Reserved for future use.
#[prost(bool, optional, tag = "153")]
pub satisfies_pzi: ::core::option::Option<bool>,
}
/// Nested message and enum types in `Cluster`.
pub mod cluster {
/// The current status of the cluster.
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum Status {
/// Not set.
Unspecified = 0,
/// The PROVISIONING state indicates the cluster is being created.
Provisioning = 1,
/// The RUNNING state indicates the cluster has been created and is fully
/// usable.
Running = 2,
/// The RECONCILING state indicates that some work is actively being done on
/// the cluster, such as upgrading the master or node software. Details can
/// be found in the `statusMessage` field.
Reconciling = 3,
/// The STOPPING state indicates the cluster is being deleted.
Stopping = 4,
/// The ERROR state indicates the cluster may be unusable. Details
/// can be found in the `statusMessage` field.
Error = 5,
/// The DEGRADED state indicates the cluster requires user action to restore
/// full functionality. Details can be found in the `statusMessage` field.
Degraded = 6,
}
impl Status {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
Status::Unspecified => "STATUS_UNSPECIFIED",
Status::Provisioning => "PROVISIONING",
Status::Running => "RUNNING",
Status::Reconciling => "RECONCILING",
Status::Stopping => "STOPPING",
Status::Error => "ERROR",
Status::Degraded => "DEGRADED",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"STATUS_UNSPECIFIED" => Some(Self::Unspecified),
"PROVISIONING" => Some(Self::Provisioning),
"RUNNING" => Some(Self::Running),
"RECONCILING" => Some(Self::Reconciling),
"STOPPING" => Some(Self::Stopping),
"ERROR" => Some(Self::Error),
"DEGRADED" => Some(Self::Degraded),
_ => None,
}
}
}
}
/// CompliancePostureConfig defines the settings needed to enable/disable
/// features for the Compliance Posture.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CompliancePostureConfig {
/// Defines the enablement mode for Compliance Posture.
#[prost(enumeration = "compliance_posture_config::Mode", optional, tag = "1")]
pub mode: ::core::option::Option<i32>,
/// List of enabled compliance standards.
#[prost(message, repeated, tag = "2")]
pub compliance_standards: ::prost::alloc::vec::Vec<
compliance_posture_config::ComplianceStandard,
>,
}
/// Nested message and enum types in `CompliancePostureConfig`.
pub mod compliance_posture_config {
/// Defines the details of a compliance standard.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ComplianceStandard {
/// Name of the compliance standard.
#[prost(string, optional, tag = "1")]
pub standard: ::core::option::Option<::prost::alloc::string::String>,
}
/// Mode defines enablement mode for Compliance Posture.
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum Mode {
/// Default value not specified.
Unspecified = 0,
/// Disables Compliance Posture features on the cluster.
Disabled = 1,
/// Enables Compliance Posture features on the cluster.
Enabled = 2,
}
impl Mode {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
Mode::Unspecified => "MODE_UNSPECIFIED",
Mode::Disabled => "DISABLED",
Mode::Enabled => "ENABLED",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"MODE_UNSPECIFIED" => Some(Self::Unspecified),
"DISABLED" => Some(Self::Disabled),
"ENABLED" => Some(Self::Enabled),
_ => None,
}
}
}
}
/// Kubernetes open source beta apis enabled on the cluster.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct K8sBetaApiConfig {
/// api name, e.g. storage.k8s.io/v1beta1/csistoragecapacities.
#[prost(string, repeated, tag = "1")]
pub enabled_apis: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
}
/// WorkloadConfig defines the flags to enable or disable the
/// workload configurations for the cluster.
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct WorkloadConfig {
/// Sets which mode of auditing should be used for the cluster's workloads.
#[prost(enumeration = "workload_config::Mode", optional, tag = "1")]
pub audit_mode: ::core::option::Option<i32>,
}
/// Nested message and enum types in `WorkloadConfig`.
pub mod workload_config {
/// Mode defines how to audit the workload configs.
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum Mode {
/// Default value meaning that no mode has been specified.
Unspecified = 0,
/// This disables Workload Configuration auditing on the cluster,
/// meaning that nothing is surfaced.
Disabled = 1,
/// Applies the default set of policy auditing to a cluster's workloads.
Basic = 4,
/// Surfaces configurations that are not in line with the
/// Pod Security Standard Baseline policy.
Baseline = 2,
/// Surfaces configurations that are not in line with the
/// Pod Security Standard Restricted policy.
Restricted = 3,
}
impl Mode {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
Mode::Unspecified => "MODE_UNSPECIFIED",
Mode::Disabled => "DISABLED",
Mode::Basic => "BASIC",
Mode::Baseline => "BASELINE",
Mode::Restricted => "RESTRICTED",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"MODE_UNSPECIFIED" => Some(Self::Unspecified),
"DISABLED" => Some(Self::Disabled),
"BASIC" => Some(Self::Basic),
"BASELINE" => Some(Self::Baseline),
"RESTRICTED" => Some(Self::Restricted),
_ => None,
}
}
}
}
/// ProtectConfig defines the flags needed to enable/disable features for the
/// Protect API.
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct ProtectConfig {
/// WorkloadConfig defines which actions are enabled for a cluster's workload
/// configurations.
#[prost(message, optional, tag = "1")]
pub workload_config: ::core::option::Option<WorkloadConfig>,
/// Sets which mode to use for Protect workload vulnerability scanning feature.
#[prost(
enumeration = "protect_config::WorkloadVulnerabilityMode",
optional,
tag = "2"
)]
pub workload_vulnerability_mode: ::core::option::Option<i32>,
}
/// Nested message and enum types in `ProtectConfig`.
pub mod protect_config {
/// WorkloadVulnerabilityMode defines mode to perform vulnerability scanning.
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum WorkloadVulnerabilityMode {
/// Default value not specified.
Unspecified = 0,
/// Disables Workload Vulnerability Scanning feature on the cluster.
Disabled = 1,
/// Applies basic vulnerability scanning settings for cluster workloads.
Basic = 2,
}
impl WorkloadVulnerabilityMode {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
WorkloadVulnerabilityMode::Unspecified => {
"WORKLOAD_VULNERABILITY_MODE_UNSPECIFIED"
}
WorkloadVulnerabilityMode::Disabled => "DISABLED",
WorkloadVulnerabilityMode::Basic => "BASIC",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"WORKLOAD_VULNERABILITY_MODE_UNSPECIFIED" => Some(Self::Unspecified),
"DISABLED" => Some(Self::Disabled),
"BASIC" => Some(Self::Basic),
_ => None,
}
}
}
}
/// SecurityPostureConfig defines the flags needed to enable/disable features for
/// the Security Posture API.
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct SecurityPostureConfig {
/// Sets which mode to use for Security Posture features.
#[prost(enumeration = "security_posture_config::Mode", optional, tag = "1")]
pub mode: ::core::option::Option<i32>,
/// Sets which mode to use for vulnerability scanning.
#[prost(
enumeration = "security_posture_config::VulnerabilityMode",
optional,
tag = "2"
)]
pub vulnerability_mode: ::core::option::Option<i32>,
}
/// Nested message and enum types in `SecurityPostureConfig`.
pub mod security_posture_config {
/// Mode defines enablement mode for GKE Security posture features.
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum Mode {
/// Default value not specified.
Unspecified = 0,
/// Disables Security Posture features on the cluster.
Disabled = 1,
/// Applies Security Posture features on the cluster.
Basic = 2,
/// Applies the Security Posture off cluster Enterprise level features.
Enterprise = 3,
}
impl Mode {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
Mode::Unspecified => "MODE_UNSPECIFIED",
Mode::Disabled => "DISABLED",
Mode::Basic => "BASIC",
Mode::Enterprise => "ENTERPRISE",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"MODE_UNSPECIFIED" => Some(Self::Unspecified),
"DISABLED" => Some(Self::Disabled),
"BASIC" => Some(Self::Basic),
"ENTERPRISE" => Some(Self::Enterprise),
_ => None,
}
}
}
/// VulnerabilityMode defines enablement mode for vulnerability scanning.
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum VulnerabilityMode {
/// Default value not specified.
Unspecified = 0,
/// Disables vulnerability scanning on the cluster.
VulnerabilityDisabled = 1,
/// Applies basic vulnerability scanning on the cluster.
VulnerabilityBasic = 2,
/// Applies the Security Posture's vulnerability on cluster Enterprise level
/// features.
VulnerabilityEnterprise = 3,
}
impl VulnerabilityMode {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
VulnerabilityMode::Unspecified => "VULNERABILITY_MODE_UNSPECIFIED",
VulnerabilityMode::VulnerabilityDisabled => "VULNERABILITY_DISABLED",
VulnerabilityMode::VulnerabilityBasic => "VULNERABILITY_BASIC",
VulnerabilityMode::VulnerabilityEnterprise => "VULNERABILITY_ENTERPRISE",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"VULNERABILITY_MODE_UNSPECIFIED" => Some(Self::Unspecified),
"VULNERABILITY_DISABLED" => Some(Self::VulnerabilityDisabled),
"VULNERABILITY_BASIC" => Some(Self::VulnerabilityBasic),
"VULNERABILITY_ENTERPRISE" => Some(Self::VulnerabilityEnterprise),
_ => None,
}
}
}
}
/// Subset of Nodepool message that has defaults.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct NodePoolDefaults {
/// Subset of NodeConfig message that has defaults.
#[prost(message, optional, tag = "1")]
pub node_config_defaults: ::core::option::Option<NodeConfigDefaults>,
}
/// Subset of NodeConfig message that has defaults.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct NodeConfigDefaults {
/// GCFS (Google Container File System, also known as Riptide) options.
#[prost(message, optional, tag = "1")]
pub gcfs_config: ::core::option::Option<GcfsConfig>,
/// Logging configuration for node pools.
#[prost(message, optional, tag = "3")]
pub logging_config: ::core::option::Option<NodePoolLoggingConfig>,
/// Parameters for containerd customization.
#[prost(message, optional, tag = "4")]
pub containerd_config: ::core::option::Option<ContainerdConfig>,
/// HostMaintenancePolicy contains the desired maintenance policy for the
/// Google Compute Engine hosts.
#[prost(message, optional, tag = "5")]
pub host_maintenance_policy: ::core::option::Option<HostMaintenancePolicy>,
/// NodeKubeletConfig controls the defaults for new node-pools.
///
/// Currently only `insecure_kubelet_readonly_port_enabled` can be set here.
#[prost(message, optional, tag = "6")]
pub node_kubelet_config: ::core::option::Option<NodeKubeletConfig>,
}
/// node pool configs that apply to all auto-provisioned node pools
/// in autopilot clusters and node auto-provisioning enabled clusters
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct NodePoolAutoConfig {
/// The list of instance tags applied to all nodes. Tags are used to identify
/// valid sources or targets for network firewalls and are specified by
/// the client during cluster creation. Each tag within the list
/// must comply with RFC1035.
#[prost(message, optional, tag = "1")]
pub network_tags: ::core::option::Option<NetworkTags>,
/// Resource manager tag keys and values to be attached to the nodes
/// for managing Compute Engine firewalls using Network Firewall Policies.
#[prost(message, optional, tag = "2")]
pub resource_manager_tags: ::core::option::Option<ResourceManagerTags>,
/// NodeKubeletConfig controls the defaults for autoprovisioned node-pools.
///
/// Currently only `insecure_kubelet_readonly_port_enabled` can be set here.
#[prost(message, optional, tag = "3")]
pub node_kubelet_config: ::core::option::Option<NodeKubeletConfig>,
}
/// ClusterUpdate describes an update to the cluster. Exactly one update can
/// be applied to a cluster with each request, so at most one field can be
/// provided.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ClusterUpdate {
/// The Kubernetes version to change the nodes to (typically an
/// upgrade).
///
/// Users may specify either explicit versions offered by
/// Kubernetes Engine or version aliases, which have the following behavior:
///
/// - "latest": picks the highest valid Kubernetes version
/// - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
/// - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
/// - "1.X.Y-gke.N": picks an explicit Kubernetes version
/// - "-": picks the Kubernetes master version
#[prost(string, tag = "4")]
pub desired_node_version: ::prost::alloc::string::String,
/// The monitoring service the cluster should use to write metrics.
/// Currently available options:
///
/// * "monitoring.googleapis.com/kubernetes" - The Cloud Monitoring
/// service with a Kubernetes-native resource model
/// * `monitoring.googleapis.com` - The legacy Cloud Monitoring service (no
/// longer available as of GKE 1.15).
/// * `none` - No metrics will be exported from the cluster.
///
/// If left as an empty string,`monitoring.googleapis.com/kubernetes` will be
/// used for GKE 1.14+ or `monitoring.googleapis.com` for earlier versions.
#[prost(string, tag = "5")]
pub desired_monitoring_service: ::prost::alloc::string::String,
/// Configurations for the various addons available to run in the cluster.
#[prost(message, optional, tag = "6")]
pub desired_addons_config: ::core::option::Option<AddonsConfig>,
/// The node pool to be upgraded. This field is mandatory if
/// "desired_node_version", "desired_image_family",
/// "desired_node_pool_autoscaling", or "desired_workload_metadata_config"
/// is specified and there is more than one node pool on the cluster.
#[prost(string, tag = "7")]
pub desired_node_pool_id: ::prost::alloc::string::String,
/// The desired image type for the node pool.
/// NOTE: Set the "desired_node_pool" field as well.
#[prost(string, tag = "8")]
pub desired_image_type: ::prost::alloc::string::String,
/// Autoscaler configuration for the node pool specified in
/// desired_node_pool_id. If there is only one pool in the
/// cluster and desired_node_pool_id is not provided then
/// the change applies to that single node pool.
#[prost(message, optional, tag = "9")]
pub desired_node_pool_autoscaling: ::core::option::Option<NodePoolAutoscaling>,
/// The desired list of Google Compute Engine
/// [zones](<https://cloud.google.com/compute/docs/zones#available>) in which the
/// cluster's nodes should be located.
///
/// This list must always include the cluster's primary zone.
///
/// Warning: changing cluster locations will update the locations of all node
/// pools and will result in nodes being added and/or removed.
#[prost(string, repeated, tag = "10")]
pub desired_locations: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
/// The desired configuration options for master authorized networks feature.
#[prost(message, optional, tag = "12")]
pub desired_master_authorized_networks_config: ::core::option::Option<
MasterAuthorizedNetworksConfig,
>,
/// The desired configuration options for the PodSecurityPolicy feature.
#[prost(message, optional, tag = "14")]
pub desired_pod_security_policy_config: ::core::option::Option<
PodSecurityPolicyConfig,
>,
/// Cluster-level autoscaling configuration.
#[prost(message, optional, tag = "15")]
pub desired_cluster_autoscaling: ::core::option::Option<ClusterAutoscaling>,
/// The desired configuration options for the Binary Authorization feature.
#[prost(message, optional, tag = "16")]
pub desired_binary_authorization: ::core::option::Option<BinaryAuthorization>,
/// The logging service the cluster should use to write logs.
/// Currently available options:
///
/// * `logging.googleapis.com/kubernetes` - The Cloud Logging
/// service with a Kubernetes-native resource model
/// * `logging.googleapis.com` - The legacy Cloud Logging service (no longer
/// available as of GKE 1.15).
/// * `none` - no logs will be exported from the cluster.
///
/// If left as an empty string,`logging.googleapis.com/kubernetes` will be
/// used for GKE 1.14+ or `logging.googleapis.com` for earlier versions.
#[prost(string, tag = "19")]
pub desired_logging_service: ::prost::alloc::string::String,
/// The desired configuration for exporting resource usage.
#[prost(message, optional, tag = "21")]
pub desired_resource_usage_export_config: ::core::option::Option<
ResourceUsageExportConfig,
>,
/// Cluster-level Vertical Pod Autoscaling configuration.
#[prost(message, optional, tag = "22")]
pub desired_vertical_pod_autoscaling: ::core::option::Option<VerticalPodAutoscaling>,
/// The desired private cluster configuration. master_global_access_config is
/// the only field that can be changed via this field.
/// See also
/// [ClusterUpdate.desired_enable_private_endpoint][google.container.v1beta1.ClusterUpdate.desired_enable_private_endpoint]
/// for modifying other fields within
/// [PrivateClusterConfig][google.container.v1beta1.PrivateClusterConfig].
#[prost(message, optional, tag = "25")]
pub desired_private_cluster_config: ::core::option::Option<PrivateClusterConfig>,
/// The desired config of Intra-node visibility.
#[prost(message, optional, tag = "26")]
pub desired_intra_node_visibility_config: ::core::option::Option<
IntraNodeVisibilityConfig,
>,
/// The desired status of whether to disable default sNAT for this cluster.
#[prost(message, optional, tag = "28")]
pub desired_default_snat_status: ::core::option::Option<DefaultSnatStatus>,
/// The desired telemetry integration for the cluster.
#[prost(message, optional, tag = "30")]
pub desired_cluster_telemetry: ::core::option::Option<ClusterTelemetry>,
/// The desired release channel configuration.
#[prost(message, optional, tag = "31")]
pub desired_release_channel: ::core::option::Option<ReleaseChannel>,
/// The desired private cluster configuration. Has no effect. Use
/// [desired_private_cluster_config][google.container.v1beta1.ClusterUpdate.desired_private_cluster_config]
/// instead.
#[deprecated]
#[prost(message, optional, tag = "37")]
pub private_cluster_config: ::core::option::Option<PrivateClusterConfig>,
/// The desired Cloud TPU configuration.
#[prost(message, optional, tag = "38")]
pub desired_tpu_config: ::core::option::Option<TpuConfig>,
/// The desired L4 Internal Load Balancer Subsetting configuration.
#[prost(message, optional, tag = "39")]
pub desired_l4ilb_subsetting_config: ::core::option::Option<IlbSubsettingConfig>,
/// The desired datapath provider for the cluster.
#[prost(enumeration = "DatapathProvider", tag = "50")]
pub desired_datapath_provider: i32,
/// The desired state of IPv6 connectivity to Google Services.
#[prost(enumeration = "PrivateIPv6GoogleAccess", tag = "51")]
pub desired_private_ipv6_google_access: i32,
/// The desired notification configuration.
#[prost(message, optional, tag = "55")]
pub desired_notification_config: ::core::option::Option<NotificationConfig>,
/// The Kubernetes version to change the master to. The only valid value is the
/// latest supported version.
///
/// Users may specify either explicit versions offered by
/// Kubernetes Engine or version aliases, which have the following behavior:
///
/// - "latest": picks the highest valid Kubernetes version
/// - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
/// - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
/// - "1.X.Y-gke.N": picks an explicit Kubernetes version
/// - "-": picks the default Kubernetes version
#[prost(string, tag = "100")]
pub desired_master_version: ::prost::alloc::string::String,
/// The desired GCFS config for the cluster.
#[prost(message, optional, tag = "109")]
pub desired_gcfs_config: ::core::option::Option<GcfsConfig>,
/// Configuration of etcd encryption.
#[prost(message, optional, tag = "46")]
pub desired_database_encryption: ::core::option::Option<DatabaseEncryption>,
/// Configuration for Workload Identity.
#[prost(message, optional, tag = "47")]
pub desired_workload_identity_config: ::core::option::Option<WorkloadIdentityConfig>,
/// Configuration for issuance of mTLS keys and certificates to Kubernetes
/// pods.
#[prost(message, optional, tag = "61")]
pub desired_workload_certificates: ::core::option::Option<WorkloadCertificates>,
/// Configuration for issuance of mTLS keys and certificates to Kubernetes
/// pods.
#[prost(message, optional, tag = "67")]
pub desired_mesh_certificates: ::core::option::Option<MeshCertificates>,
/// Configuration for direct-path (via ALTS) with workload identity.
#[prost(message, optional, tag = "62")]
pub desired_workload_alts_config: ::core::option::Option<WorkloadAltsConfig>,
/// Configuration for Shielded Nodes.
#[prost(message, optional, tag = "48")]
pub desired_shielded_nodes: ::core::option::Option<ShieldedNodes>,
/// The desired configuration for the fine-grained cost management feature.
#[prost(message, optional, tag = "49")]
pub desired_cost_management_config: ::core::option::Option<CostManagementConfig>,
/// Configuration for master components.
#[prost(message, optional, tag = "52")]
pub desired_master: ::core::option::Option<Master>,
/// DNSConfig contains clusterDNS config for this cluster.
#[prost(message, optional, tag = "53")]
pub desired_dns_config: ::core::option::Option<DnsConfig>,
/// ServiceExternalIPsConfig specifies the config for the use of Services with
/// ExternalIPs field.
#[prost(message, optional, tag = "60")]
pub desired_service_external_ips_config: ::core::option::Option<
ServiceExternalIPsConfig,
>,
/// AuthenticatorGroupsConfig specifies the config for the cluster security
/// groups settings.
#[prost(message, optional, tag = "63")]
pub desired_authenticator_groups_config: ::core::option::Option<
AuthenticatorGroupsConfig,
>,
/// The desired logging configuration.
#[prost(message, optional, tag = "64")]
pub desired_logging_config: ::core::option::Option<LoggingConfig>,
/// The desired monitoring configuration.
#[prost(message, optional, tag = "65")]
pub desired_monitoring_config: ::core::option::Option<MonitoringConfig>,
/// The desired Identity Service component configuration.
#[prost(message, optional, tag = "66")]
pub desired_identity_service_config: ::core::option::Option<IdentityServiceConfig>,
/// Enable/Disable private endpoint for the cluster's master.
#[prost(bool, optional, tag = "71")]
pub desired_enable_private_endpoint: ::core::option::Option<bool>,
/// The desired network tags that apply to all auto-provisioned node pools
/// in autopilot clusters and node auto-provisioning enabled clusters.
#[prost(message, optional, tag = "110")]
pub desired_node_pool_auto_config_network_tags: ::core::option::Option<NetworkTags>,
/// Deprecated: Use DesiredSecurityPostureConfig instead.
/// Enable/Disable Protect API features for the cluster.
#[deprecated]
#[prost(message, optional, tag = "112")]
pub desired_protect_config: ::core::option::Option<ProtectConfig>,
/// The desired config of Gateway API on this cluster.
#[prost(message, optional, tag = "114")]
pub desired_gateway_api_config: ::core::option::Option<GatewayApiConfig>,
/// The current etag of the cluster.
/// If an etag is provided and does not match the current etag of the cluster,
/// update will be blocked and an ABORTED error will be returned.
#[prost(string, tag = "115")]
pub etag: ::prost::alloc::string::String,
/// The desired node pool logging configuration defaults for the cluster.
#[prost(message, optional, tag = "116")]
pub desired_node_pool_logging_config: ::core::option::Option<NodePoolLoggingConfig>,
/// The desired fleet configuration for the cluster.
#[prost(message, optional, tag = "117")]
pub desired_fleet: ::core::option::Option<Fleet>,
/// The desired stack type of the cluster.
/// If a stack type is provided and does not match the current stack type of
/// the cluster, update will attempt to change the stack type to the new type.
#[prost(enumeration = "StackType", tag = "119")]
pub desired_stack_type: i32,
/// The additional pod ranges to be added to the cluster. These pod ranges
/// can be used by node pools to allocate pod IPs.
#[prost(message, optional, tag = "120")]
pub additional_pod_ranges_config: ::core::option::Option<AdditionalPodRangesConfig>,
/// The additional pod ranges that are to be removed from the cluster.
/// The pod ranges specified here must have been specified earlier in the
/// 'additional_pod_ranges_config' argument.
#[prost(message, optional, tag = "121")]
pub removed_additional_pod_ranges_config: ::core::option::Option<
AdditionalPodRangesConfig,
>,
/// Kubernetes open source beta apis enabled on the cluster. Only beta apis
#[prost(message, optional, tag = "122")]
pub enable_k8s_beta_apis: ::core::option::Option<K8sBetaApiConfig>,
/// Enable/Disable Security Posture API features for the cluster.
#[prost(message, optional, tag = "124")]
pub desired_security_posture_config: ::core::option::Option<SecurityPostureConfig>,
/// The desired network performance config.
#[prost(message, optional, tag = "125")]
pub desired_network_performance_config: ::core::option::Option<
network_config::ClusterNetworkPerformanceConfig,
>,
/// Enable/Disable FQDN Network Policy for the cluster.
#[prost(bool, optional, tag = "126")]
pub desired_enable_fqdn_network_policy: ::core::option::Option<bool>,
/// The desired workload policy configuration for the autopilot cluster.
#[prost(message, optional, tag = "128")]
pub desired_autopilot_workload_policy_config: ::core::option::Option<
WorkloadPolicyConfig,
>,
/// Beta APIs enabled for cluster.
#[prost(message, optional, tag = "131")]
pub desired_k8s_beta_apis: ::core::option::Option<K8sBetaApiConfig>,
/// HostMaintenancePolicy contains the desired maintenance policy for the
/// Google Compute Engine hosts.
#[prost(message, optional, tag = "132")]
pub desired_host_maintenance_policy: ::core::option::Option<HostMaintenancePolicy>,
/// The desired containerd config for the cluster.
#[prost(message, optional, tag = "134")]
pub desired_containerd_config: ::core::option::Option<ContainerdConfig>,
/// Enable/Disable Multi-Networking for the cluster
#[prost(bool, optional, tag = "135")]
pub desired_enable_multi_networking: ::core::option::Option<bool>,
/// The desired resource manager tags that apply to all auto-provisioned node
/// pools in autopilot clusters and node auto-provisioning enabled clusters.
#[prost(message, optional, tag = "136")]
pub desired_node_pool_auto_config_resource_manager_tags: ::core::option::Option<
ResourceManagerTags,
>,
/// Specify the details of in-transit encryption.
/// Now named inter-node transparent encryption.
#[prost(enumeration = "InTransitEncryptionConfig", optional, tag = "137")]
pub desired_in_transit_encryption_config: ::core::option::Option<i32>,
/// Enable/Disable Cilium Clusterwide Network Policy for the cluster.
#[prost(bool, optional, tag = "138")]
pub desired_enable_cilium_clusterwide_network_policy: ::core::option::Option<bool>,
/// Enable/Disable Secret Manager Config.
#[prost(message, optional, tag = "139")]
pub desired_secret_manager_config: ::core::option::Option<SecretManagerConfig>,
/// The desired node kubelet config for the cluster.
#[prost(message, optional, tag = "141")]
pub desired_node_kubelet_config: ::core::option::Option<NodeKubeletConfig>,
/// The desired node kubelet config for all auto-provisioned node pools
/// in autopilot clusters and node auto-provisioning enabled clusters.
#[prost(message, optional, tag = "142")]
pub desired_node_pool_auto_config_kubelet_config: ::core::option::Option<
NodeKubeletConfig,
>,
}
/// AdditionalPodRangesConfig is the configuration for additional pod secondary
/// ranges supporting the ClusterUpdate message.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct AdditionalPodRangesConfig {
/// Name for pod secondary ipv4 range which has the actual range defined ahead.
#[prost(string, repeated, tag = "1")]
pub pod_range_names: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
/// Output only. Information for additional pod range.
#[prost(message, repeated, tag = "2")]
pub pod_range_info: ::prost::alloc::vec::Vec<RangeInfo>,
}
/// RangeInfo contains the range name and the range utilization by this cluster.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct RangeInfo {
/// Output only. Name of a range.
#[prost(string, tag = "1")]
pub range_name: ::prost::alloc::string::String,
/// Output only. The utilization of the range.
#[prost(double, tag = "2")]
pub utilization: f64,
}
/// This operation resource represents operations that may have happened or are
/// happening on the cluster. All fields are output only.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Operation {
/// Output only. The server-assigned ID for the operation.
#[prost(string, tag = "1")]
pub name: ::prost::alloc::string::String,
/// Output only. The name of the Google Compute Engine
/// [zone](<https://cloud.google.com/compute/docs/zones#available>) in which the
/// operation is taking place. This field is deprecated, use location instead.
#[deprecated]
#[prost(string, tag = "2")]
pub zone: ::prost::alloc::string::String,
/// Output only. The operation type.
#[prost(enumeration = "operation::Type", tag = "3")]
pub operation_type: i32,
/// Output only. The current status of the operation.
#[prost(enumeration = "operation::Status", tag = "4")]
pub status: i32,
/// Output only. Detailed operation progress, if available.
#[prost(string, tag = "8")]
pub detail: ::prost::alloc::string::String,
/// Output only. If an error has occurred, a textual description of the error.
/// Deprecated. Use field error instead.
#[deprecated]
#[prost(string, tag = "5")]
pub status_message: ::prost::alloc::string::String,
/// Output only. Server-defined URI for the operation. Example:
/// `<https://container.googleapis.com/v1alpha1/projects/123/locations/us-central1/operations/operation-123`.>
#[prost(string, tag = "6")]
pub self_link: ::prost::alloc::string::String,
/// Output only. Server-defined URI for the target of the operation. The format
/// of this is a URI to the resource being modified (such as a cluster, node
/// pool, or node). For node pool repairs, there may be multiple nodes being
/// repaired, but only one will be the target.
///
/// Examples:
///
/// -
/// ##
/// `<https://container.googleapis.com/v1/projects/123/locations/us-central1/clusters/my-cluster`>
///
/// ##
/// `<https://container.googleapis.com/v1/projects/123/zones/us-central1-c/clusters/my-cluster/nodePools/my-np`>
///
/// `<https://container.googleapis.com/v1/projects/123/zones/us-central1-c/clusters/my-cluster/nodePools/my-np/node/my-node`>
#[prost(string, tag = "7")]
pub target_link: ::prost::alloc::string::String,
/// Output only. The name of the Google Compute Engine
/// [zone](<https://cloud.google.com/compute/docs/regions-zones/regions-zones#available>)
/// or
/// [region](<https://cloud.google.com/compute/docs/regions-zones/regions-zones#available>)
/// in which the cluster resides.
#[prost(string, tag = "9")]
pub location: ::prost::alloc::string::String,
/// Output only. The time the operation started, in
/// [RFC3339](<https://www.ietf.org/rfc/rfc3339.txt>) text format.
#[prost(string, tag = "10")]
pub start_time: ::prost::alloc::string::String,
/// Output only. The time the operation completed, in
/// [RFC3339](<https://www.ietf.org/rfc/rfc3339.txt>) text format.
#[prost(string, tag = "11")]
pub end_time: ::prost::alloc::string::String,
/// Output only. Progress information for an operation.
#[prost(message, optional, tag = "12")]
pub progress: ::core::option::Option<OperationProgress>,
/// Which conditions caused the current cluster state.
/// Deprecated. Use field error instead.
#[deprecated]
#[prost(message, repeated, tag = "13")]
pub cluster_conditions: ::prost::alloc::vec::Vec<StatusCondition>,
/// Which conditions caused the current node pool state.
/// Deprecated. Use field error instead.
#[deprecated]
#[prost(message, repeated, tag = "14")]
pub nodepool_conditions: ::prost::alloc::vec::Vec<StatusCondition>,
/// The error result of the operation in case of failure.
#[prost(message, optional, tag = "15")]
pub error: ::core::option::Option<super::super::rpc::Status>,
}
/// Nested message and enum types in `Operation`.
pub mod operation {
/// Current status of the operation.
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum Status {
/// Not set.
Unspecified = 0,
/// The operation has been created.
Pending = 1,
/// The operation is currently running.
Running = 2,
/// The operation is done, either cancelled or completed.
Done = 3,
/// The operation is aborting.
Aborting = 4,
}
impl Status {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
Status::Unspecified => "STATUS_UNSPECIFIED",
Status::Pending => "PENDING",
Status::Running => "RUNNING",
Status::Done => "DONE",
Status::Aborting => "ABORTING",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"STATUS_UNSPECIFIED" => Some(Self::Unspecified),
"PENDING" => Some(Self::Pending),
"RUNNING" => Some(Self::Running),
"DONE" => Some(Self::Done),
"ABORTING" => Some(Self::Aborting),
_ => None,
}
}
}
/// Operation type categorizes the operation.
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum Type {
/// Not set.
Unspecified = 0,
/// The cluster is being created. The cluster should be assumed to be
/// unusable until the operation finishes.
///
/// In the event of the operation failing, the cluster will enter the [ERROR
/// state][Cluster.Status.ERROR] and eventually be deleted.
CreateCluster = 1,
/// The cluster is being deleted. The cluster should be assumed to be
/// unusable as soon as this operation starts.
///
/// In the event of the operation failing, the cluster will enter the [ERROR
/// state][Cluster.Status.ERROR] and the deletion will be automatically
/// retried until completed.
DeleteCluster = 2,
/// The [cluster
/// version][google.container.v1beta1.ClusterUpdate.desired_master_version]
/// is being updated. Note that this includes "upgrades" to the same version,
/// which are simply a recreation. This also includes
/// [auto-upgrades](<https://cloud.google.com/kubernetes-engine/docs/concepts/cluster-upgrades#upgrading_automatically>).
/// For more details, see [documentation on cluster
/// upgrades](<https://cloud.google.com/kubernetes-engine/docs/concepts/cluster-upgrades#cluster_upgrades>).
UpgradeMaster = 3,
/// A node pool is being updated. Despite calling this an "upgrade", this
/// includes most forms of updates to node pools. This also includes
/// [auto-upgrades](<https://cloud.google.com/kubernetes-engine/docs/how-to/node-auto-upgrades>).
///
/// This operation sets the
/// [progress][google.container.v1beta1.Operation.progress] field and may be
/// [canceled][google.container.v1beta1.ClusterManager.CancelOperation].
///
/// The upgrade strategy depends on [node pool
/// configuration](<https://cloud.google.com/kubernetes-engine/docs/concepts/node-pool-upgrade-strategies>).
/// The nodes are generally still usable during this operation.
UpgradeNodes = 4,
/// A problem has been detected with the control plane and is being repaired.
/// This operation type is initiated by GKE. For more details, see
/// [documentation on
/// repairs](<https://cloud.google.com/kubernetes-engine/docs/concepts/maintenance-windows-and-exclusions#repairs>).
RepairCluster = 5,
/// The cluster is being updated. This is a broad category of operations and
/// includes operations that only change metadata as well as those that must
/// recreate the entire cluster. If the control plane must be recreated, this
/// will cause temporary downtime for zonal clusters.
///
/// Some features require recreating the nodes as well. Those will be
/// recreated as separate operations and the update may not be completely
/// functional until the node pools recreations finish. Node recreations will
/// generally follow [maintenance
/// policies](<https://cloud.google.com/kubernetes-engine/docs/concepts/maintenance-windows-and-exclusions>).
///
/// Some GKE-initiated operations use this type. This includes certain types
/// of auto-upgrades and incident mitigations.
UpdateCluster = 6,
/// A node pool is being created. The node pool should be assumed to be
/// unusable until this operation finishes. In the event of an error, the
/// node pool may be partially created.
///
/// If enabled, [node
/// autoprovisioning](<https://cloud.google.com/kubernetes-engine/docs/how-to/node-auto-provisioning>)
/// may have automatically initiated such operations.
CreateNodePool = 7,
/// The node pool is being deleted. The node pool should be assumed to be
/// unusable as soon as this operation starts.
DeleteNodePool = 8,
/// The node pool's
/// [manamagent][google.container.v1beta1.NodePool.management] field is being
/// updated. These operations only update metadata and may be concurrent with
/// most other operations.
SetNodePoolManagement = 9,
/// A problem has been detected with nodes and [they are being
/// repaired](<https://cloud.google.com/kubernetes-engine/docs/how-to/node-auto-repair>).
/// This operation type is initiated by GKE, typically automatically. This
/// operation may be concurrent with other operations and there may be
/// multiple repairs occurring on the same node pool.
AutoRepairNodes = 10,
/// Unused. Automatic node upgrade uses
/// [UPGRADE_NODES][google.container.v1beta1.Operation.Type.UPGRADE_NODES].
AutoUpgradeNodes = 11,
/// Unused. Updating labels uses
/// [UPDATE_CLUSTER][google.container.v1beta1.Operation.Type.UPDATE_CLUSTER].
SetLabels = 12,
/// Unused. Updating master auth uses
/// [UPDATE_CLUSTER][google.container.v1beta1.Operation.Type.UPDATE_CLUSTER].
SetMasterAuth = 13,
/// The node pool is being resized. With the exception of resizing to or from
/// size zero, the node pool is generally usable during this operation.
SetNodePoolSize = 14,
/// Unused. Updating network policy uses
/// [UPDATE_CLUSTER][google.container.v1beta1.Operation.Type.UPDATE_CLUSTER].
SetNetworkPolicy = 15,
/// Unused. Updating maintenance policy uses
/// [UPDATE_CLUSTER][google.container.v1beta1.Operation.Type.UPDATE_CLUSTER].
SetMaintenancePolicy = 16,
/// The control plane is being resized. This operation type is initiated by
/// GKE. These operations are often performed preemptively to ensure that the
/// control plane has sufficient resources and is not typically an indication
/// of issues. For more details, see
/// [documentation on
/// resizes](<https://cloud.google.com/kubernetes-engine/docs/concepts/maintenance-windows-and-exclusions#repairs>).
ResizeCluster = 18,
/// Fleet features of GKE Enterprise are being upgraded. The cluster should
/// be assumed to be blocked for other upgrades until the operation finishes.
FleetFeatureUpgrade = 19,
}
impl Type {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
Type::Unspecified => "TYPE_UNSPECIFIED",
Type::CreateCluster => "CREATE_CLUSTER",
Type::DeleteCluster => "DELETE_CLUSTER",
Type::UpgradeMaster => "UPGRADE_MASTER",
Type::UpgradeNodes => "UPGRADE_NODES",
Type::RepairCluster => "REPAIR_CLUSTER",
Type::UpdateCluster => "UPDATE_CLUSTER",
Type::CreateNodePool => "CREATE_NODE_POOL",
Type::DeleteNodePool => "DELETE_NODE_POOL",
Type::SetNodePoolManagement => "SET_NODE_POOL_MANAGEMENT",
Type::AutoRepairNodes => "AUTO_REPAIR_NODES",
Type::AutoUpgradeNodes => "AUTO_UPGRADE_NODES",
Type::SetLabels => "SET_LABELS",
Type::SetMasterAuth => "SET_MASTER_AUTH",
Type::SetNodePoolSize => "SET_NODE_POOL_SIZE",
Type::SetNetworkPolicy => "SET_NETWORK_POLICY",
Type::SetMaintenancePolicy => "SET_MAINTENANCE_POLICY",
Type::ResizeCluster => "RESIZE_CLUSTER",
Type::FleetFeatureUpgrade => "FLEET_FEATURE_UPGRADE",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"TYPE_UNSPECIFIED" => Some(Self::Unspecified),
"CREATE_CLUSTER" => Some(Self::CreateCluster),
"DELETE_CLUSTER" => Some(Self::DeleteCluster),
"UPGRADE_MASTER" => Some(Self::UpgradeMaster),
"UPGRADE_NODES" => Some(Self::UpgradeNodes),
"REPAIR_CLUSTER" => Some(Self::RepairCluster),
"UPDATE_CLUSTER" => Some(Self::UpdateCluster),
"CREATE_NODE_POOL" => Some(Self::CreateNodePool),
"DELETE_NODE_POOL" => Some(Self::DeleteNodePool),
"SET_NODE_POOL_MANAGEMENT" => Some(Self::SetNodePoolManagement),
"AUTO_REPAIR_NODES" => Some(Self::AutoRepairNodes),
"AUTO_UPGRADE_NODES" => Some(Self::AutoUpgradeNodes),
"SET_LABELS" => Some(Self::SetLabels),
"SET_MASTER_AUTH" => Some(Self::SetMasterAuth),
"SET_NODE_POOL_SIZE" => Some(Self::SetNodePoolSize),
"SET_NETWORK_POLICY" => Some(Self::SetNetworkPolicy),
"SET_MAINTENANCE_POLICY" => Some(Self::SetMaintenancePolicy),
"RESIZE_CLUSTER" => Some(Self::ResizeCluster),
"FLEET_FEATURE_UPGRADE" => Some(Self::FleetFeatureUpgrade),
_ => None,
}
}
}
}
/// Information about operation (or operation stage) progress.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct OperationProgress {
/// A non-parameterized string describing an operation stage.
/// Unset for single-stage operations.
#[prost(string, tag = "1")]
pub name: ::prost::alloc::string::String,
/// Status of an operation stage.
/// Unset for single-stage operations.
#[prost(enumeration = "operation::Status", tag = "2")]
pub status: i32,
/// Progress metric bundle, for example:
/// metrics: [{name: "nodes done", int_value: 15},
/// {name: "nodes total", int_value: 32}]
/// or
/// metrics: [{name: "progress", double_value: 0.56},
/// {name: "progress scale", double_value: 1.0}]
#[prost(message, repeated, tag = "3")]
pub metrics: ::prost::alloc::vec::Vec<operation_progress::Metric>,
/// Substages of an operation or a stage.
#[prost(message, repeated, tag = "4")]
pub stages: ::prost::alloc::vec::Vec<OperationProgress>,
}
/// Nested message and enum types in `OperationProgress`.
pub mod operation_progress {
/// Progress metric is (string, int|float|string) pair.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Metric {
/// Required. Metric name, e.g., "nodes total", "percent done".
#[prost(string, tag = "1")]
pub name: ::prost::alloc::string::String,
/// Strictly one of the values is required.
#[prost(oneof = "metric::Value", tags = "2, 3, 4")]
pub value: ::core::option::Option<metric::Value>,
}
/// Nested message and enum types in `Metric`.
pub mod metric {
/// Strictly one of the values is required.
#[derive(Clone, PartialEq, ::prost::Oneof)]
pub enum Value {
/// For metrics with integer value.
#[prost(int64, tag = "2")]
IntValue(i64),
/// For metrics with floating point value.
#[prost(double, tag = "3")]
DoubleValue(f64),
/// For metrics with custom values (ratios, visual progress, etc.).
#[prost(string, tag = "4")]
StringValue(::prost::alloc::string::String),
}
}
}
/// CreateClusterRequest creates a cluster.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CreateClusterRequest {
/// Required. Deprecated. The Google Developers Console [project ID or project
/// number](<https://cloud.google.com/resource-manager/docs/creating-managing-projects>).
/// This field has been deprecated and replaced by the parent field.
#[deprecated]
#[prost(string, tag = "1")]
pub project_id: ::prost::alloc::string::String,
/// Required. Deprecated. The name of the Google Compute Engine
/// [zone](<https://cloud.google.com/compute/docs/zones#available>) in which the
/// cluster resides. This field has been deprecated and replaced by the parent
/// field.
#[deprecated]
#[prost(string, tag = "2")]
pub zone: ::prost::alloc::string::String,
/// Required. A [cluster
/// resource](<https://cloud.google.com/container-engine/reference/rest/v1beta1/projects.locations.clusters>)
#[prost(message, optional, tag = "3")]
pub cluster: ::core::option::Option<Cluster>,
/// The parent (project and location) where the cluster will be created.
/// Specified in the format `projects/*/locations/*`.
#[prost(string, tag = "5")]
pub parent: ::prost::alloc::string::String,
}
/// GetClusterRequest gets the settings of a cluster.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetClusterRequest {
/// Required. Deprecated. The Google Developers Console [project ID or project
/// number](<https://cloud.google.com/resource-manager/docs/creating-managing-projects>).
/// This field has been deprecated and replaced by the name field.
#[deprecated]
#[prost(string, tag = "1")]
pub project_id: ::prost::alloc::string::String,
/// Required. Deprecated. The name of the Google Compute Engine
/// [zone](<https://cloud.google.com/compute/docs/zones#available>) in which the
/// cluster resides. This field has been deprecated and replaced by the name
/// field.
#[deprecated]
#[prost(string, tag = "2")]
pub zone: ::prost::alloc::string::String,
/// Required. Deprecated. The name of the cluster to retrieve.
/// This field has been deprecated and replaced by the name field.
#[deprecated]
#[prost(string, tag = "3")]
pub cluster_id: ::prost::alloc::string::String,
/// The name (project, location, cluster) of the cluster to retrieve.
/// Specified in the format `projects/*/locations/*/clusters/*`.
#[prost(string, tag = "5")]
pub name: ::prost::alloc::string::String,
}
/// UpdateClusterRequest updates the settings of a cluster.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct UpdateClusterRequest {
/// Required. Deprecated. The Google Developers Console [project ID or project
/// number](<https://cloud.google.com/resource-manager/docs/creating-managing-projects>).
/// This field has been deprecated and replaced by the name field.
#[deprecated]
#[prost(string, tag = "1")]
pub project_id: ::prost::alloc::string::String,
/// Required. Deprecated. The name of the Google Compute Engine
/// [zone](<https://cloud.google.com/compute/docs/zones#available>) in which the
/// cluster resides. This field has been deprecated and replaced by the name
/// field.
#[deprecated]
#[prost(string, tag = "2")]
pub zone: ::prost::alloc::string::String,
/// Required. Deprecated. The name of the cluster to upgrade.
/// This field has been deprecated and replaced by the name field.
#[deprecated]
#[prost(string, tag = "3")]
pub cluster_id: ::prost::alloc::string::String,
/// Required. A description of the update.
#[prost(message, optional, tag = "4")]
pub update: ::core::option::Option<ClusterUpdate>,
/// The name (project, location, cluster) of the cluster to update.
/// Specified in the format `projects/*/locations/*/clusters/*`.
#[prost(string, tag = "5")]
pub name: ::prost::alloc::string::String,
}
/// SetNodePoolVersionRequest updates the version of a node pool.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct UpdateNodePoolRequest {
/// Required. Deprecated. The Google Developers Console [project ID or project
/// number](<https://cloud.google.com/resource-manager/docs/creating-managing-projects>).
/// This field has been deprecated and replaced by the name field.
#[deprecated]
#[prost(string, tag = "1")]
pub project_id: ::prost::alloc::string::String,
/// Required. Deprecated. The name of the Google Compute Engine
/// [zone](<https://cloud.google.com/compute/docs/zones#available>) in which the
/// cluster resides. This field has been deprecated and replaced by the name
/// field.
#[deprecated]
#[prost(string, tag = "2")]
pub zone: ::prost::alloc::string::String,
/// Required. Deprecated. The name of the cluster to upgrade.
/// This field has been deprecated and replaced by the name field.
#[deprecated]
#[prost(string, tag = "3")]
pub cluster_id: ::prost::alloc::string::String,
/// Required. Deprecated. The name of the node pool to upgrade.
/// This field has been deprecated and replaced by the name field.
#[deprecated]
#[prost(string, tag = "4")]
pub node_pool_id: ::prost::alloc::string::String,
/// Required. The Kubernetes version to change the nodes to (typically an
/// upgrade).
///
/// Users may specify either explicit versions offered by Kubernetes Engine or
/// version aliases, which have the following behavior:
///
/// - "latest": picks the highest valid Kubernetes version
/// - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
/// - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
/// - "1.X.Y-gke.N": picks an explicit Kubernetes version
/// - "-": picks the Kubernetes master version
#[prost(string, tag = "5")]
pub node_version: ::prost::alloc::string::String,
/// Required. The desired image type for the node pool. Please see
/// <https://cloud.google.com/kubernetes-engine/docs/concepts/node-images> for
/// available image types.
#[prost(string, tag = "6")]
pub image_type: ::prost::alloc::string::String,
/// The desired list of Google Compute Engine
/// [zones](<https://cloud.google.com/compute/docs/zones#available>) in which the
/// node pool's nodes should be located. Changing the locations for a node pool
/// will result in nodes being either created or removed from the node pool,
/// depending on whether locations are being added or removed.
#[prost(string, repeated, tag = "13")]
pub locations: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
/// The desired workload metadata config for the node pool.
#[prost(message, optional, tag = "14")]
pub workload_metadata_config: ::core::option::Option<WorkloadMetadataConfig>,
/// The name (project, location, cluster, node pool) of the node pool to
/// update. Specified in the format
/// `projects/*/locations/*/clusters/*/nodePools/*`.
#[prost(string, tag = "8")]
pub name: ::prost::alloc::string::String,
/// Upgrade settings control disruption and speed of the upgrade.
#[prost(message, optional, tag = "15")]
pub upgrade_settings: ::core::option::Option<node_pool::UpgradeSettings>,
/// The desired network tags to be applied to all nodes in the node pool.
/// If this field is not present, the tags will not be changed. Otherwise,
/// the existing network tags will be *replaced* with the provided tags.
#[prost(message, optional, tag = "16")]
pub tags: ::core::option::Option<NetworkTags>,
/// The desired node taints to be applied to all nodes in the node pool.
/// If this field is not present, the taints will not be changed. Otherwise,
/// the existing node taints will be *replaced* with the provided taints.
#[prost(message, optional, tag = "17")]
pub taints: ::core::option::Option<NodeTaints>,
/// The desired node labels to be applied to all nodes in the node pool.
/// If this field is not present, the labels will not be changed. Otherwise,
/// the existing node labels will be *replaced* with the provided labels.
#[prost(message, optional, tag = "18")]
pub labels: ::core::option::Option<NodeLabels>,
/// Parameters that can be configured on Linux nodes.
#[prost(message, optional, tag = "19")]
pub linux_node_config: ::core::option::Option<LinuxNodeConfig>,
/// Node kubelet configs.
#[prost(message, optional, tag = "20")]
pub kubelet_config: ::core::option::Option<NodeKubeletConfig>,
/// Node network config.
#[prost(message, optional, tag = "21")]
pub node_network_config: ::core::option::Option<NodeNetworkConfig>,
/// GCFS config.
#[prost(message, optional, tag = "22")]
pub gcfs_config: ::core::option::Option<GcfsConfig>,
/// Confidential nodes config.
/// All the nodes in the node pool will be Confidential VM once enabled.
#[prost(message, optional, tag = "23")]
pub confidential_nodes: ::core::option::Option<ConfidentialNodes>,
/// Enable or disable gvnic on the node pool.
#[prost(message, optional, tag = "29")]
pub gvnic: ::core::option::Option<VirtualNic>,
/// The current etag of the node pool.
/// If an etag is provided and does not match the current etag of the node
/// pool, update will be blocked and an ABORTED error will be returned.
#[prost(string, tag = "30")]
pub etag: ::prost::alloc::string::String,
/// Enable or disable NCCL fast socket for the node pool.
#[prost(message, optional, tag = "31")]
pub fast_socket: ::core::option::Option<FastSocket>,
/// Logging configuration.
#[prost(message, optional, tag = "32")]
pub logging_config: ::core::option::Option<NodePoolLoggingConfig>,
/// The resource labels for the node pool to use to annotate any related
/// Google Compute Engine resources.
#[prost(message, optional, tag = "33")]
pub resource_labels: ::core::option::Option<ResourceLabels>,
/// Parameters that can be configured on Windows nodes.
#[prost(message, optional, tag = "34")]
pub windows_node_config: ::core::option::Option<WindowsNodeConfig>,
/// A list of hardware accelerators to be attached to each node.
/// See <https://cloud.google.com/compute/docs/gpus> for more information about
/// support for GPUs.
#[prost(message, repeated, tag = "35")]
pub accelerators: ::prost::alloc::vec::Vec<AcceleratorConfig>,
/// Optional. The desired machine type for nodes in the node pool.
/// Initiates an upgrade operation that migrates the nodes in the
/// node pool to the specified machine type.
#[prost(string, tag = "36")]
pub machine_type: ::prost::alloc::string::String,
/// Optional. The desired disk type for nodes in the node pool.
/// Initiates an upgrade operation that migrates the nodes in the
/// node pool to the specified disk type.
#[prost(string, tag = "37")]
pub disk_type: ::prost::alloc::string::String,
/// Optional. The desired disk size for nodes in the node pool.
/// Initiates an upgrade operation that migrates the nodes in the
/// node pool to the specified disk size.
#[prost(int64, tag = "38")]
pub disk_size_gb: i64,
/// Desired resource manager tag keys and values to be attached to the nodes
/// for managing Compute Engine firewalls using Network Firewall Policies.
/// Existing tags will be replaced with new values.
#[prost(message, optional, tag = "39")]
pub resource_manager_tags: ::core::option::Option<ResourceManagerTags>,
/// The desired containerd config for nodes in the node pool.
/// Initiates an upgrade operation that recreates the nodes with the new
/// config.
#[prost(message, optional, tag = "40")]
pub containerd_config: ::core::option::Option<ContainerdConfig>,
/// Specifies the configuration of queued provisioning.
#[prost(message, optional, tag = "42")]
pub queued_provisioning: ::core::option::Option<node_pool::QueuedProvisioning>,
}
/// SetNodePoolAutoscalingRequest sets the autoscaler settings of a node pool.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SetNodePoolAutoscalingRequest {
/// Required. Deprecated. The Google Developers Console [project ID or project
/// number](<https://cloud.google.com/resource-manager/docs/creating-managing-projects>).
/// This field has been deprecated and replaced by the name field.
#[deprecated]
#[prost(string, tag = "1")]
pub project_id: ::prost::alloc::string::String,
/// Required. Deprecated. The name of the Google Compute Engine
/// [zone](<https://cloud.google.com/compute/docs/zones#available>) in which the
/// cluster resides. This field has been deprecated and replaced by the name
/// field.
#[deprecated]
#[prost(string, tag = "2")]
pub zone: ::prost::alloc::string::String,
/// Required. Deprecated. The name of the cluster to upgrade.
/// This field has been deprecated and replaced by the name field.
#[deprecated]
#[prost(string, tag = "3")]
pub cluster_id: ::prost::alloc::string::String,
/// Required. Deprecated. The name of the node pool to upgrade.
/// This field has been deprecated and replaced by the name field.
#[deprecated]
#[prost(string, tag = "4")]
pub node_pool_id: ::prost::alloc::string::String,
/// Required. Autoscaling configuration for the node pool.
#[prost(message, optional, tag = "5")]
pub autoscaling: ::core::option::Option<NodePoolAutoscaling>,
/// The name (project, location, cluster, node pool) of the node pool to set
/// autoscaler settings. Specified in the format
/// `projects/*/locations/*/clusters/*/nodePools/*`.
#[prost(string, tag = "6")]
pub name: ::prost::alloc::string::String,
}
/// SetLoggingServiceRequest sets the logging service of a cluster.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SetLoggingServiceRequest {
/// Required. Deprecated. The Google Developers Console [project ID or project
/// number](<https://cloud.google.com/resource-manager/docs/creating-managing-projects>).
/// This field has been deprecated and replaced by the name field.
#[deprecated]
#[prost(string, tag = "1")]
pub project_id: ::prost::alloc::string::String,
/// Required. Deprecated. The name of the Google Compute Engine
/// [zone](<https://cloud.google.com/compute/docs/zones#available>) in which the
/// cluster resides. This field has been deprecated and replaced by the name
/// field.
#[deprecated]
#[prost(string, tag = "2")]
pub zone: ::prost::alloc::string::String,
/// Required. Deprecated. The name of the cluster to upgrade.
/// This field has been deprecated and replaced by the name field.
#[deprecated]
#[prost(string, tag = "3")]
pub cluster_id: ::prost::alloc::string::String,
/// Required. The logging service the cluster should use to write logs.
/// Currently available options:
///
/// * `logging.googleapis.com/kubernetes` - The Cloud Logging
/// service with a Kubernetes-native resource model
/// * `logging.googleapis.com` - The legacy Cloud Logging service (no longer
/// available as of GKE 1.15).
/// * `none` - no logs will be exported from the cluster.
///
/// If left as an empty string,`logging.googleapis.com/kubernetes` will be
/// used for GKE 1.14+ or `logging.googleapis.com` for earlier versions.
#[prost(string, tag = "4")]
pub logging_service: ::prost::alloc::string::String,
/// The name (project, location, cluster) of the cluster to set logging.
/// Specified in the format `projects/*/locations/*/clusters/*`.
#[prost(string, tag = "5")]
pub name: ::prost::alloc::string::String,
}
/// SetMonitoringServiceRequest sets the monitoring service of a cluster.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SetMonitoringServiceRequest {
/// Required. Deprecated. The Google Developers Console [project ID or project
/// number](<https://cloud.google.com/resource-manager/docs/creating-managing-projects>).
/// This field has been deprecated and replaced by the name field.
#[deprecated]
#[prost(string, tag = "1")]
pub project_id: ::prost::alloc::string::String,
/// Required. Deprecated. The name of the Google Compute Engine
/// [zone](<https://cloud.google.com/compute/docs/zones#available>) in which the
/// cluster resides. This field has been deprecated and replaced by the name
/// field.
#[deprecated]
#[prost(string, tag = "2")]
pub zone: ::prost::alloc::string::String,
/// Required. Deprecated. The name of the cluster to upgrade.
/// This field has been deprecated and replaced by the name field.
#[deprecated]
#[prost(string, tag = "3")]
pub cluster_id: ::prost::alloc::string::String,
/// Required. The monitoring service the cluster should use to write metrics.
/// Currently available options:
///
/// * "monitoring.googleapis.com/kubernetes" - The Cloud Monitoring
/// service with a Kubernetes-native resource model
/// * `monitoring.googleapis.com` - The legacy Cloud Monitoring service (no
/// longer available as of GKE 1.15).
/// * `none` - No metrics will be exported from the cluster.
///
/// If left as an empty string,`monitoring.googleapis.com/kubernetes` will be
/// used for GKE 1.14+ or `monitoring.googleapis.com` for earlier versions.
#[prost(string, tag = "4")]
pub monitoring_service: ::prost::alloc::string::String,
/// The name (project, location, cluster) of the cluster to set monitoring.
/// Specified in the format `projects/*/locations/*/clusters/*`.
#[prost(string, tag = "6")]
pub name: ::prost::alloc::string::String,
}
/// SetAddonsRequest sets the addons associated with the cluster.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SetAddonsConfigRequest {
/// Required. Deprecated. The Google Developers Console [project ID or project
/// number](<https://cloud.google.com/resource-manager/docs/creating-managing-projects>).
/// This field has been deprecated and replaced by the name field.
#[deprecated]
#[prost(string, tag = "1")]
pub project_id: ::prost::alloc::string::String,
/// Required. Deprecated. The name of the Google Compute Engine
/// [zone](<https://cloud.google.com/compute/docs/zones#available>) in which the
/// cluster resides. This field has been deprecated and replaced by the name
/// field.
#[deprecated]
#[prost(string, tag = "2")]
pub zone: ::prost::alloc::string::String,
/// Required. Deprecated. The name of the cluster to upgrade.
/// This field has been deprecated and replaced by the name field.
#[deprecated]
#[prost(string, tag = "3")]
pub cluster_id: ::prost::alloc::string::String,
/// Required. The desired configurations for the various addons available to
/// run in the cluster.
#[prost(message, optional, tag = "4")]
pub addons_config: ::core::option::Option<AddonsConfig>,
/// The name (project, location, cluster) of the cluster to set addons.
/// Specified in the format `projects/*/locations/*/clusters/*`.
#[prost(string, tag = "6")]
pub name: ::prost::alloc::string::String,
}
/// SetLocationsRequest sets the locations of the cluster.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SetLocationsRequest {
/// Required. Deprecated. The Google Developers Console [project ID or project
/// number](<https://cloud.google.com/resource-manager/docs/creating-managing-projects>).
/// This field has been deprecated and replaced by the name field.
#[deprecated]
#[prost(string, tag = "1")]
pub project_id: ::prost::alloc::string::String,
/// Required. Deprecated. The name of the Google Compute Engine
/// [zone](<https://cloud.google.com/compute/docs/zones#available>) in which the
/// cluster resides. This field has been deprecated and replaced by the name
/// field.
#[deprecated]
#[prost(string, tag = "2")]
pub zone: ::prost::alloc::string::String,
/// Required. Deprecated. The name of the cluster to upgrade.
/// This field has been deprecated and replaced by the name field.
#[deprecated]
#[prost(string, tag = "3")]
pub cluster_id: ::prost::alloc::string::String,
/// Required. The desired list of Google Compute Engine
/// [zones](<https://cloud.google.com/compute/docs/zones#available>) in which the
/// cluster's nodes should be located. Changing the locations a cluster is in
/// will result in nodes being either created or removed from the cluster,
/// depending on whether locations are being added or removed.
///
/// This list must always include the cluster's primary zone.
#[prost(string, repeated, tag = "4")]
pub locations: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
/// The name (project, location, cluster) of the cluster to set locations.
/// Specified in the format `projects/*/locations/*/clusters/*`.
#[prost(string, tag = "6")]
pub name: ::prost::alloc::string::String,
}
/// UpdateMasterRequest updates the master of the cluster.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct UpdateMasterRequest {
/// Required. Deprecated. The Google Developers Console [project ID or project
/// number](<https://cloud.google.com/resource-manager/docs/creating-managing-projects>).
/// This field has been deprecated and replaced by the name field.
#[deprecated]
#[prost(string, tag = "1")]
pub project_id: ::prost::alloc::string::String,
/// Required. Deprecated. The name of the Google Compute Engine
/// [zone](<https://cloud.google.com/compute/docs/zones#available>) in which the
/// cluster resides. This field has been deprecated and replaced by the name
/// field.
#[deprecated]
#[prost(string, tag = "2")]
pub zone: ::prost::alloc::string::String,
/// Required. Deprecated. The name of the cluster to upgrade.
/// This field has been deprecated and replaced by the name field.
#[deprecated]
#[prost(string, tag = "3")]
pub cluster_id: ::prost::alloc::string::String,
/// Required. The Kubernetes version to change the master to.
///
/// Users may specify either explicit versions offered by
/// Kubernetes Engine or version aliases, which have the following behavior:
///
/// - "latest": picks the highest valid Kubernetes version
/// - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
/// - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
/// - "1.X.Y-gke.N": picks an explicit Kubernetes version
/// - "-": picks the default Kubernetes version
#[prost(string, tag = "4")]
pub master_version: ::prost::alloc::string::String,
/// The name (project, location, cluster) of the cluster to update.
/// Specified in the format `projects/*/locations/*/clusters/*`.
#[prost(string, tag = "7")]
pub name: ::prost::alloc::string::String,
}
/// SetMasterAuthRequest updates the admin password of a cluster.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SetMasterAuthRequest {
/// Required. Deprecated. The Google Developers Console [project ID or project
/// number](<https://cloud.google.com/resource-manager/docs/creating-managing-projects>).
/// This field has been deprecated and replaced by the name field.
#[deprecated]
#[prost(string, tag = "1")]
pub project_id: ::prost::alloc::string::String,
/// Required. Deprecated. The name of the Google Compute Engine
/// [zone](<https://cloud.google.com/compute/docs/zones#available>) in which the
/// cluster resides. This field has been deprecated and replaced by the name
/// field.
#[deprecated]
#[prost(string, tag = "2")]
pub zone: ::prost::alloc::string::String,
/// Required. Deprecated. The name of the cluster to upgrade.
/// This field has been deprecated and replaced by the name field.
#[deprecated]
#[prost(string, tag = "3")]
pub cluster_id: ::prost::alloc::string::String,
/// Required. The exact form of action to be taken on the master auth.
#[prost(enumeration = "set_master_auth_request::Action", tag = "4")]
pub action: i32,
/// Required. A description of the update.
#[prost(message, optional, tag = "5")]
pub update: ::core::option::Option<MasterAuth>,
/// The name (project, location, cluster) of the cluster to set auth.
/// Specified in the format `projects/*/locations/*/clusters/*`.
#[prost(string, tag = "7")]
pub name: ::prost::alloc::string::String,
}
/// Nested message and enum types in `SetMasterAuthRequest`.
pub mod set_master_auth_request {
/// Operation type: what type update to perform.
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum Action {
/// Operation is unknown and will error out.
Unknown = 0,
/// Set the password to a user generated value.
SetPassword = 1,
/// Generate a new password and set it to that.
GeneratePassword = 2,
/// Set the username. If an empty username is provided, basic authentication
/// is disabled for the cluster. If a non-empty username is provided, basic
/// authentication is enabled, with either a provided password or a generated
/// one.
SetUsername = 3,
}
impl Action {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
Action::Unknown => "UNKNOWN",
Action::SetPassword => "SET_PASSWORD",
Action::GeneratePassword => "GENERATE_PASSWORD",
Action::SetUsername => "SET_USERNAME",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"UNKNOWN" => Some(Self::Unknown),
"SET_PASSWORD" => Some(Self::SetPassword),
"GENERATE_PASSWORD" => Some(Self::GeneratePassword),
"SET_USERNAME" => Some(Self::SetUsername),
_ => None,
}
}
}
}
/// DeleteClusterRequest deletes a cluster.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DeleteClusterRequest {
/// Required. Deprecated. The Google Developers Console [project ID or project
/// number](<https://cloud.google.com/resource-manager/docs/creating-managing-projects>).
/// This field has been deprecated and replaced by the name field.
#[deprecated]
#[prost(string, tag = "1")]
pub project_id: ::prost::alloc::string::String,
/// Required. Deprecated. The name of the Google Compute Engine
/// [zone](<https://cloud.google.com/compute/docs/zones#available>) in which the
/// cluster resides. This field has been deprecated and replaced by the name
/// field.
#[deprecated]
#[prost(string, tag = "2")]
pub zone: ::prost::alloc::string::String,
/// Required. Deprecated. The name of the cluster to delete.
/// This field has been deprecated and replaced by the name field.
#[deprecated]
#[prost(string, tag = "3")]
pub cluster_id: ::prost::alloc::string::String,
/// The name (project, location, cluster) of the cluster to delete.
/// Specified in the format `projects/*/locations/*/clusters/*`.
#[prost(string, tag = "4")]
pub name: ::prost::alloc::string::String,
}
/// ListClustersRequest lists clusters.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListClustersRequest {
/// Required. Deprecated. The Google Developers Console [project ID or project
/// number](<https://cloud.google.com/resource-manager/docs/creating-managing-projects>).
/// This field has been deprecated and replaced by the parent field.
#[deprecated]
#[prost(string, tag = "1")]
pub project_id: ::prost::alloc::string::String,
/// Required. Deprecated. The name of the Google Compute Engine
/// [zone](<https://cloud.google.com/compute/docs/zones#available>) in which the
/// cluster resides, or "-" for all zones. This field has been deprecated and
/// replaced by the parent field.
#[deprecated]
#[prost(string, tag = "2")]
pub zone: ::prost::alloc::string::String,
/// The parent (project and location) where the clusters will be listed.
/// Specified in the format `projects/*/locations/*`.
/// Location "-" matches all zones and all regions.
#[prost(string, tag = "4")]
pub parent: ::prost::alloc::string::String,
}
/// ListClustersResponse is the result of ListClustersRequest.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListClustersResponse {
/// A list of clusters in the project in the specified zone, or
/// across all ones.
#[prost(message, repeated, tag = "1")]
pub clusters: ::prost::alloc::vec::Vec<Cluster>,
/// If any zones are listed here, the list of clusters returned
/// may be missing those zones.
#[prost(string, repeated, tag = "2")]
pub missing_zones: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
}
/// GetOperationRequest gets a single operation.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetOperationRequest {
/// Required. Deprecated. The Google Developers Console [project ID or project
/// number](<https://cloud.google.com/resource-manager/docs/creating-managing-projects>).
/// This field has been deprecated and replaced by the name field.
#[deprecated]
#[prost(string, tag = "1")]
pub project_id: ::prost::alloc::string::String,
/// Required. Deprecated. The name of the Google Compute Engine
/// [zone](<https://cloud.google.com/compute/docs/zones#available>) in which the
/// cluster resides. This field has been deprecated and replaced by the name
/// field.
#[deprecated]
#[prost(string, tag = "2")]
pub zone: ::prost::alloc::string::String,
/// Required. Deprecated. The server-assigned `name` of the operation.
/// This field has been deprecated and replaced by the name field.
#[deprecated]
#[prost(string, tag = "3")]
pub operation_id: ::prost::alloc::string::String,
/// The name (project, location, operation id) of the operation to get.
/// Specified in the format `projects/*/locations/*/operations/*`.
#[prost(string, tag = "5")]
pub name: ::prost::alloc::string::String,
}
/// ListOperationsRequest lists operations.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListOperationsRequest {
/// Required. Deprecated. The Google Developers Console [project ID or project
/// number](<https://cloud.google.com/resource-manager/docs/creating-managing-projects>).
/// This field has been deprecated and replaced by the parent field.
#[deprecated]
#[prost(string, tag = "1")]
pub project_id: ::prost::alloc::string::String,
/// Required. Deprecated. The name of the Google Compute Engine
/// [zone](<https://cloud.google.com/compute/docs/zones#available>) to return
/// operations for, or `-` for all zones. This field has been deprecated and
/// replaced by the parent field.
#[deprecated]
#[prost(string, tag = "2")]
pub zone: ::prost::alloc::string::String,
/// The parent (project and location) where the operations will be listed.
/// Specified in the format `projects/*/locations/*`.
/// Location "-" matches all zones and all regions.
#[prost(string, tag = "4")]
pub parent: ::prost::alloc::string::String,
}
/// CancelOperationRequest cancels a single operation.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CancelOperationRequest {
/// Required. Deprecated. The Google Developers Console [project ID or project
/// number](<https://cloud.google.com/resource-manager/docs/creating-managing-projects>).
/// This field has been deprecated and replaced by the name field.
#[deprecated]
#[prost(string, tag = "1")]
pub project_id: ::prost::alloc::string::String,
/// Required. Deprecated. The name of the Google Compute Engine
/// [zone](<https://cloud.google.com/compute/docs/zones#available>) in which the
/// operation resides. This field has been deprecated and replaced by the name
/// field.
#[deprecated]
#[prost(string, tag = "2")]
pub zone: ::prost::alloc::string::String,
/// Required. Deprecated. The server-assigned `name` of the operation.
/// This field has been deprecated and replaced by the name field.
#[deprecated]
#[prost(string, tag = "3")]
pub operation_id: ::prost::alloc::string::String,
/// The name (project, location, operation id) of the operation to cancel.
/// Specified in the format `projects/*/locations/*/operations/*`.
#[prost(string, tag = "4")]
pub name: ::prost::alloc::string::String,
}
/// ListOperationsResponse is the result of ListOperationsRequest.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListOperationsResponse {
/// A list of operations in the project in the specified zone.
#[prost(message, repeated, tag = "1")]
pub operations: ::prost::alloc::vec::Vec<Operation>,
/// If any zones are listed here, the list of operations returned
/// may be missing the operations from those zones.
#[prost(string, repeated, tag = "2")]
pub missing_zones: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
}
/// Gets the current Kubernetes Engine service configuration.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetServerConfigRequest {
/// Required. Deprecated. The Google Developers Console [project ID or project
/// number](<https://cloud.google.com/resource-manager/docs/creating-managing-projects>).
/// This field has been deprecated and replaced by the name field.
#[deprecated]
#[prost(string, tag = "1")]
pub project_id: ::prost::alloc::string::String,
/// Required. Deprecated. The name of the Google Compute Engine
/// [zone](<https://cloud.google.com/compute/docs/zones#available>) to return
/// operations for. This field has been deprecated and replaced by the name
/// field.
#[deprecated]
#[prost(string, tag = "2")]
pub zone: ::prost::alloc::string::String,
/// The name (project and location) of the server config to get,
/// specified in the format `projects/*/locations/*`.
#[prost(string, tag = "4")]
pub name: ::prost::alloc::string::String,
}
/// Kubernetes Engine service configuration.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ServerConfig {
/// Version of Kubernetes the service deploys by default.
#[prost(string, tag = "1")]
pub default_cluster_version: ::prost::alloc::string::String,
/// List of valid node upgrade target versions, in descending order.
#[prost(string, repeated, tag = "3")]
pub valid_node_versions: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
/// Default image type.
#[prost(string, tag = "4")]
pub default_image_type: ::prost::alloc::string::String,
/// List of valid image types.
#[prost(string, repeated, tag = "5")]
pub valid_image_types: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
/// List of valid master versions, in descending order.
#[prost(string, repeated, tag = "6")]
pub valid_master_versions: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
/// List of release channel configurations.
#[prost(message, repeated, tag = "9")]
pub channels: ::prost::alloc::vec::Vec<server_config::ReleaseChannelConfig>,
/// Maps of Kubernetes version and supported Windows server versions.
#[prost(btree_map = "string, message", tag = "10")]
pub windows_version_maps: ::prost::alloc::collections::BTreeMap<
::prost::alloc::string::String,
WindowsVersions,
>,
}
/// Nested message and enum types in `ServerConfig`.
pub mod server_config {
/// ReleaseChannelConfig exposes configuration for a release channel.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ReleaseChannelConfig {
/// The release channel this configuration applies to.
#[prost(enumeration = "super::release_channel::Channel", tag = "1")]
pub channel: i32,
/// The default version for newly created clusters on the channel.
#[prost(string, tag = "2")]
pub default_version: ::prost::alloc::string::String,
/// Deprecated.
/// This field has been deprecated and replaced with the valid_versions
/// field.
#[deprecated]
#[prost(message, repeated, tag = "3")]
pub available_versions: ::prost::alloc::vec::Vec<
release_channel_config::AvailableVersion,
>,
/// List of valid versions for the channel.
#[prost(string, repeated, tag = "4")]
pub valid_versions: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
}
/// Nested message and enum types in `ReleaseChannelConfig`.
pub mod release_channel_config {
/// Deprecated.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct AvailableVersion {
/// Kubernetes version.
#[prost(string, tag = "1")]
pub version: ::prost::alloc::string::String,
/// Reason for availability.
#[prost(string, tag = "2")]
pub reason: ::prost::alloc::string::String,
}
}
}
/// Best effort provisioning.
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct BestEffortProvisioning {
/// When this is enabled, cluster/node pool creations will ignore non-fatal
/// errors like stockout to best provision as many nodes as possible right now
/// and eventually bring up all target number of nodes
#[prost(bool, tag = "1")]
pub enabled: bool,
/// Minimum number of nodes to be provisioned to be considered as succeeded,
/// and the rest of nodes will be provisioned gradually and eventually when
/// stockout issue has been resolved.
#[prost(int32, tag = "2")]
pub min_provision_nodes: i32,
}
/// Windows server versions.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct WindowsVersions {
/// List of Windows server versions.
#[prost(message, repeated, tag = "1")]
pub windows_versions: ::prost::alloc::vec::Vec<windows_versions::WindowsVersion>,
}
/// Nested message and enum types in `WindowsVersions`.
pub mod windows_versions {
/// Windows server version.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct WindowsVersion {
/// Windows server image type
#[prost(string, tag = "1")]
pub image_type: ::prost::alloc::string::String,
/// Windows server build number
#[prost(string, tag = "2")]
pub os_version: ::prost::alloc::string::String,
/// Mainstream support end date
#[prost(message, optional, tag = "3")]
pub support_end_date: ::core::option::Option<super::super::super::r#type::Date>,
}
}
/// CreateNodePoolRequest creates a node pool for a cluster.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CreateNodePoolRequest {
/// Required. Deprecated. The Google Developers Console [project ID or project
/// number](<https://cloud.google.com/resource-manager/docs/creating-managing-projects>).
/// This field has been deprecated and replaced by the parent field.
#[deprecated]
#[prost(string, tag = "1")]
pub project_id: ::prost::alloc::string::String,
/// Required. Deprecated. The name of the Google Compute Engine
/// [zone](<https://cloud.google.com/compute/docs/zones#available>) in which the
/// cluster resides. This field has been deprecated and replaced by the parent
/// field.
#[deprecated]
#[prost(string, tag = "2")]
pub zone: ::prost::alloc::string::String,
/// Required. Deprecated. The name of the cluster.
/// This field has been deprecated and replaced by the parent field.
#[deprecated]
#[prost(string, tag = "3")]
pub cluster_id: ::prost::alloc::string::String,
/// Required. The node pool to create.
#[prost(message, optional, tag = "4")]
pub node_pool: ::core::option::Option<NodePool>,
/// The parent (project, location, cluster name) where the node pool will be
/// created. Specified in the format
/// `projects/*/locations/*/clusters/*`.
#[prost(string, tag = "6")]
pub parent: ::prost::alloc::string::String,
}
/// DeleteNodePoolRequest deletes a node pool for a cluster.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DeleteNodePoolRequest {
/// Required. Deprecated. The Google Developers Console [project ID or project
/// number](<https://cloud.google.com/resource-manager/docs/creating-managing-projects>).
/// This field has been deprecated and replaced by the name field.
#[deprecated]
#[prost(string, tag = "1")]
pub project_id: ::prost::alloc::string::String,
/// Required. Deprecated. The name of the Google Compute Engine
/// [zone](<https://cloud.google.com/compute/docs/zones#available>) in which the
/// cluster resides. This field has been deprecated and replaced by the name
/// field.
#[deprecated]
#[prost(string, tag = "2")]
pub zone: ::prost::alloc::string::String,
/// Required. Deprecated. The name of the cluster.
/// This field has been deprecated and replaced by the name field.
#[deprecated]
#[prost(string, tag = "3")]
pub cluster_id: ::prost::alloc::string::String,
/// Required. Deprecated. The name of the node pool to delete.
/// This field has been deprecated and replaced by the name field.
#[deprecated]
#[prost(string, tag = "4")]
pub node_pool_id: ::prost::alloc::string::String,
/// The name (project, location, cluster, node pool id) of the node pool to
/// delete. Specified in the format
/// `projects/*/locations/*/clusters/*/nodePools/*`.
#[prost(string, tag = "6")]
pub name: ::prost::alloc::string::String,
}
/// ListNodePoolsRequest lists the node pool(s) for a cluster.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListNodePoolsRequest {
/// Required. Deprecated. The Google Developers Console [project ID or project
/// number](<https://cloud.google.com/resource-manager/docs/creating-managing-projects>).
/// This field has been deprecated and replaced by the parent field.
#[deprecated]
#[prost(string, tag = "1")]
pub project_id: ::prost::alloc::string::String,
/// Required. Deprecated. The name of the Google Compute Engine
/// [zone](<https://cloud.google.com/compute/docs/zones#available>) in which the
/// cluster resides. This field has been deprecated and replaced by the parent
/// field.
#[deprecated]
#[prost(string, tag = "2")]
pub zone: ::prost::alloc::string::String,
/// Required. Deprecated. The name of the cluster.
/// This field has been deprecated and replaced by the parent field.
#[deprecated]
#[prost(string, tag = "3")]
pub cluster_id: ::prost::alloc::string::String,
/// The parent (project, location, cluster name) where the node pools will be
/// listed. Specified in the format `projects/*/locations/*/clusters/*`.
#[prost(string, tag = "5")]
pub parent: ::prost::alloc::string::String,
}
/// GetNodePoolRequest retrieves a node pool for a cluster.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetNodePoolRequest {
/// Required. Deprecated. The Google Developers Console [project ID or project
/// number](<https://cloud.google.com/resource-manager/docs/creating-managing-projects>).
/// This field has been deprecated and replaced by the name field.
#[deprecated]
#[prost(string, tag = "1")]
pub project_id: ::prost::alloc::string::String,
/// Required. Deprecated. The name of the Google Compute Engine
/// [zone](<https://cloud.google.com/compute/docs/zones#available>) in which the
/// cluster resides. This field has been deprecated and replaced by the name
/// field.
#[deprecated]
#[prost(string, tag = "2")]
pub zone: ::prost::alloc::string::String,
/// Required. Deprecated. The name of the cluster.
/// This field has been deprecated and replaced by the name field.
#[deprecated]
#[prost(string, tag = "3")]
pub cluster_id: ::prost::alloc::string::String,
/// Required. Deprecated. The name of the node pool.
/// This field has been deprecated and replaced by the name field.
#[deprecated]
#[prost(string, tag = "4")]
pub node_pool_id: ::prost::alloc::string::String,
/// The name (project, location, cluster, node pool id) of the node pool to
/// get. Specified in the format
/// `projects/*/locations/*/clusters/*/nodePools/*`.
#[prost(string, tag = "6")]
pub name: ::prost::alloc::string::String,
}
/// Settings for blue-green upgrade.
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct BlueGreenSettings {
/// Time needed after draining entire blue pool. After this period, blue pool
/// will be cleaned up.
#[prost(message, optional, tag = "2")]
pub node_pool_soak_duration: ::core::option::Option<::prost_types::Duration>,
/// The rollout policy controls the general rollout progress of blue-green.
#[prost(oneof = "blue_green_settings::RolloutPolicy", tags = "1, 3")]
pub rollout_policy: ::core::option::Option<blue_green_settings::RolloutPolicy>,
}
/// Nested message and enum types in `BlueGreenSettings`.
pub mod blue_green_settings {
/// Standard rollout policy is the default policy for blue-green.
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct StandardRolloutPolicy {
/// Soak time after each batch gets drained. Default to zero.
#[prost(message, optional, tag = "3")]
pub batch_soak_duration: ::core::option::Option<::prost_types::Duration>,
/// Blue pool size to drain in a batch.
#[prost(oneof = "standard_rollout_policy::UpdateBatchSize", tags = "1, 2")]
pub update_batch_size: ::core::option::Option<
standard_rollout_policy::UpdateBatchSize,
>,
}
/// Nested message and enum types in `StandardRolloutPolicy`.
pub mod standard_rollout_policy {
/// Blue pool size to drain in a batch.
#[derive(Clone, Copy, PartialEq, ::prost::Oneof)]
pub enum UpdateBatchSize {
/// Percentage of the blue pool nodes to drain in a batch.
/// The range of this field should be (0.0, 1.0].
#[prost(float, tag = "1")]
BatchPercentage(f32),
/// Number of blue nodes to drain in a batch.
#[prost(int32, tag = "2")]
BatchNodeCount(i32),
}
}
/// Autoscaled rollout policy uses cluster autoscaler during
/// blue-green upgrades to scale both the green and blue pools.
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct AutoscaledRolloutPolicy {}
/// The rollout policy controls the general rollout progress of blue-green.
#[derive(Clone, Copy, PartialEq, ::prost::Oneof)]
pub enum RolloutPolicy {
/// Standard policy for the blue-green upgrade.
#[prost(message, tag = "1")]
StandardRolloutPolicy(StandardRolloutPolicy),
/// Autoscaled policy for cluster autoscaler enabled blue-green upgrade.
#[prost(message, tag = "3")]
AutoscaledRolloutPolicy(AutoscaledRolloutPolicy),
}
}
/// NodePool contains the name and configuration for a cluster's node pool.
/// Node pools are a set of nodes (i.e. VM's), with a common configuration and
/// specification, under the control of the cluster master. They may have a set
/// of Kubernetes labels applied to them, which may be used to reference them
/// during pod scheduling. They may also be resized up or down, to accommodate
/// the workload.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct NodePool {
/// The name of the node pool.
#[prost(string, tag = "1")]
pub name: ::prost::alloc::string::String,
/// The node configuration of the pool.
#[prost(message, optional, tag = "2")]
pub config: ::core::option::Option<NodeConfig>,
/// The initial node count for the pool. You must ensure that your
/// Compute Engine [resource quota](<https://cloud.google.com/compute/quotas>)
/// is sufficient for this number of instances. You must also have available
/// firewall and routes quota.
#[prost(int32, tag = "3")]
pub initial_node_count: i32,
/// The list of Google Compute Engine
/// [zones](<https://cloud.google.com/compute/docs/zones#available>) in which the
/// NodePool's nodes should be located.
///
/// If this value is unspecified during node pool creation, the
/// [Cluster.Locations](<https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters#Cluster.FIELDS.locations>)
/// value will be used, instead.
///
/// Warning: changing node pool locations will result in nodes being added
/// and/or removed.
#[prost(string, repeated, tag = "13")]
pub locations: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
/// Networking configuration for this NodePool. If specified, it overrides the
/// cluster-level defaults.
#[prost(message, optional, tag = "14")]
pub network_config: ::core::option::Option<NodeNetworkConfig>,
/// Output only. Server-defined URL for the resource.
#[prost(string, tag = "100")]
pub self_link: ::prost::alloc::string::String,
/// The version of Kubernetes running on this NodePool's nodes. If unspecified,
/// it defaults as described
/// [here](<https://cloud.google.com/kubernetes-engine/versioning#specifying_node_version>).
#[prost(string, tag = "101")]
pub version: ::prost::alloc::string::String,
/// Output only. The resource URLs of the [managed instance
/// groups](<https://cloud.google.com/compute/docs/instance-groups/creating-groups-of-managed-instances>)
/// associated with this node pool.
/// During the node pool blue-green upgrade operation, the URLs contain both
/// blue and green resources.
#[prost(string, repeated, tag = "102")]
pub instance_group_urls: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
/// Output only. The status of the nodes in this pool instance.
#[prost(enumeration = "node_pool::Status", tag = "103")]
pub status: i32,
/// Output only. Deprecated. Use conditions instead.
/// Additional information about the current status of this
/// node pool instance, if available.
#[deprecated]
#[prost(string, tag = "104")]
pub status_message: ::prost::alloc::string::String,
/// Autoscaler configuration for this NodePool. Autoscaler is enabled
/// only if a valid configuration is present.
#[prost(message, optional, tag = "4")]
pub autoscaling: ::core::option::Option<NodePoolAutoscaling>,
/// NodeManagement configuration for this NodePool.
#[prost(message, optional, tag = "5")]
pub management: ::core::option::Option<NodeManagement>,
/// The constraint on the maximum number of pods that can be run
/// simultaneously on a node in the node pool.
#[prost(message, optional, tag = "6")]
pub max_pods_constraint: ::core::option::Option<MaxPodsConstraint>,
/// Which conditions caused the current node pool state.
#[prost(message, repeated, tag = "105")]
pub conditions: ::prost::alloc::vec::Vec<StatusCondition>,
/// Output only. The pod CIDR block size per node in this node pool.
#[prost(int32, tag = "7")]
pub pod_ipv4_cidr_size: i32,
/// Upgrade settings control disruption and speed of the upgrade.
#[prost(message, optional, tag = "107")]
pub upgrade_settings: ::core::option::Option<node_pool::UpgradeSettings>,
/// Specifies the node placement policy.
#[prost(message, optional, tag = "108")]
pub placement_policy: ::core::option::Option<node_pool::PlacementPolicy>,
/// Output only. Update info contains relevant information during a node
/// pool update.
#[prost(message, optional, tag = "109")]
pub update_info: ::core::option::Option<node_pool::UpdateInfo>,
/// This checksum is computed by the server based on the value of node pool
/// fields, and may be sent on update requests to ensure the client has an
/// up-to-date value before proceeding.
#[prost(string, tag = "110")]
pub etag: ::prost::alloc::string::String,
/// Specifies the configuration of queued provisioning.
#[prost(message, optional, tag = "112")]
pub queued_provisioning: ::core::option::Option<node_pool::QueuedProvisioning>,
/// Enable best effort provisioning for nodes
#[prost(message, optional, tag = "113")]
pub best_effort_provisioning: ::core::option::Option<BestEffortProvisioning>,
}
/// Nested message and enum types in `NodePool`.
pub mod node_pool {
/// These upgrade settings control the level of parallelism and the level of
/// disruption caused by an upgrade.
///
/// maxUnavailable controls the number of nodes that can be simultaneously
/// unavailable.
///
/// maxSurge controls the number of additional nodes that can be added to the
/// node pool temporarily for the time of the upgrade to increase the number of
/// available nodes.
///
/// (maxUnavailable + maxSurge) determines the level of parallelism (how many
/// nodes are being upgraded at the same time).
///
/// Note: upgrades inevitably introduce some disruption since workloads need to
/// be moved from old nodes to new, upgraded ones. Even if maxUnavailable=0,
/// this holds true. (Disruption stays within the limits of
/// PodDisruptionBudget, if it is configured.)
///
/// Consider a hypothetical node pool with 5 nodes having maxSurge=2,
/// maxUnavailable=1. This means the upgrade process upgrades 3 nodes
/// simultaneously. It creates 2 additional (upgraded) nodes, then it brings
/// down 3 old (not yet upgraded) nodes at the same time. This ensures that
/// there are always at least 4 nodes available.
///
/// These upgrade settings configure the upgrade strategy for the node pool.
/// Use strategy to switch between the strategies applied to the node pool.
///
/// If the strategy is SURGE, use max_surge and max_unavailable to control
/// the level of parallelism and the level of disruption caused by upgrade.
/// 1. maxSurge controls the number of additional nodes that can be added to
/// the node pool temporarily for the time of the upgrade to increase the
/// number of available nodes.
/// 2. maxUnavailable controls the number of nodes that can be simultaneously
/// unavailable.
/// 3. (maxUnavailable + maxSurge) determines the level of parallelism (how
/// many nodes are being upgraded at the same time).
///
/// If the strategy is BLUE_GREEN, use blue_green_settings to configure the
/// blue-green upgrade related settings.
/// 1. standard_rollout_policy is the default policy. The policy is used to
/// control the way blue pool gets drained. The draining is executed in the
/// batch mode. The batch size could be specified as either percentage of the
/// node pool size or the number of nodes. batch_soak_duration is the soak
/// time after each batch gets drained.
/// 2. node_pool_soak_duration is the soak time after all blue nodes are
/// drained. After this period, the blue pool nodes will be deleted.
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct UpgradeSettings {
/// The maximum number of nodes that can be created beyond the current size
/// of the node pool during the upgrade process.
#[prost(int32, tag = "1")]
pub max_surge: i32,
/// The maximum number of nodes that can be simultaneously unavailable during
/// the upgrade process. A node is considered available if its status is
/// Ready.
#[prost(int32, tag = "2")]
pub max_unavailable: i32,
/// Update strategy of the node pool.
#[prost(enumeration = "super::NodePoolUpdateStrategy", optional, tag = "3")]
pub strategy: ::core::option::Option<i32>,
/// Settings for blue-green upgrade strategy.
#[prost(message, optional, tag = "4")]
pub blue_green_settings: ::core::option::Option<super::BlueGreenSettings>,
}
/// UpdateInfo contains resource (instance groups, etc), status and other
/// intermediate information relevant to a node pool upgrade.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct UpdateInfo {
/// Information of a blue-green upgrade.
#[prost(message, optional, tag = "1")]
pub blue_green_info: ::core::option::Option<update_info::BlueGreenInfo>,
}
/// Nested message and enum types in `UpdateInfo`.
pub mod update_info {
/// Information relevant to blue-green upgrade.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct BlueGreenInfo {
/// Current blue-green upgrade phase.
#[prost(enumeration = "blue_green_info::Phase", tag = "1")]
pub phase: i32,
/// The resource URLs of the \[managed instance groups\]
/// (/compute/docs/instance-groups/creating-groups-of-managed-instances)
/// associated with blue pool.
#[prost(string, repeated, tag = "2")]
pub blue_instance_group_urls: ::prost::alloc::vec::Vec<
::prost::alloc::string::String,
>,
/// The resource URLs of the \[managed instance groups\]
/// (/compute/docs/instance-groups/creating-groups-of-managed-instances)
/// associated with green pool.
#[prost(string, repeated, tag = "3")]
pub green_instance_group_urls: ::prost::alloc::vec::Vec<
::prost::alloc::string::String,
>,
/// Time to start deleting blue pool to complete blue-green upgrade,
/// in [RFC3339](<https://www.ietf.org/rfc/rfc3339.txt>) text format.
#[prost(string, tag = "4")]
pub blue_pool_deletion_start_time: ::prost::alloc::string::String,
/// Version of green pool.
#[prost(string, tag = "5")]
pub green_pool_version: ::prost::alloc::string::String,
}
/// Nested message and enum types in `BlueGreenInfo`.
pub mod blue_green_info {
/// Phase represents the different stages blue-green upgrade is running in.
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum Phase {
/// Unspecified phase.
Unspecified = 0,
/// blue-green upgrade has been initiated.
UpdateStarted = 1,
/// Start creating green pool nodes.
CreatingGreenPool = 2,
/// Start cordoning blue pool nodes.
CordoningBluePool = 3,
/// Start waiting after cordoning the blue pool and before draining it.
WaitingToDrainBluePool = 8,
/// Start draining blue pool nodes.
DrainingBluePool = 4,
/// Start soaking time after draining entire blue pool.
NodePoolSoaking = 5,
/// Start deleting blue nodes.
DeletingBluePool = 6,
/// Rollback has been initiated.
RollbackStarted = 7,
}
impl Phase {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
Phase::Unspecified => "PHASE_UNSPECIFIED",
Phase::UpdateStarted => "UPDATE_STARTED",
Phase::CreatingGreenPool => "CREATING_GREEN_POOL",
Phase::CordoningBluePool => "CORDONING_BLUE_POOL",
Phase::WaitingToDrainBluePool => "WAITING_TO_DRAIN_BLUE_POOL",
Phase::DrainingBluePool => "DRAINING_BLUE_POOL",
Phase::NodePoolSoaking => "NODE_POOL_SOAKING",
Phase::DeletingBluePool => "DELETING_BLUE_POOL",
Phase::RollbackStarted => "ROLLBACK_STARTED",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"PHASE_UNSPECIFIED" => Some(Self::Unspecified),
"UPDATE_STARTED" => Some(Self::UpdateStarted),
"CREATING_GREEN_POOL" => Some(Self::CreatingGreenPool),
"CORDONING_BLUE_POOL" => Some(Self::CordoningBluePool),
"WAITING_TO_DRAIN_BLUE_POOL" => {
Some(Self::WaitingToDrainBluePool)
}
"DRAINING_BLUE_POOL" => Some(Self::DrainingBluePool),
"NODE_POOL_SOAKING" => Some(Self::NodePoolSoaking),
"DELETING_BLUE_POOL" => Some(Self::DeletingBluePool),
"ROLLBACK_STARTED" => Some(Self::RollbackStarted),
_ => None,
}
}
}
}
}
/// PlacementPolicy defines the placement policy used by the node pool.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct PlacementPolicy {
/// The type of placement.
#[prost(enumeration = "placement_policy::Type", tag = "1")]
pub r#type: i32,
/// TPU placement topology for pod slice node pool.
/// <https://cloud.google.com/tpu/docs/types-topologies#tpu_topologies>
#[prost(string, tag = "2")]
pub tpu_topology: ::prost::alloc::string::String,
/// If set, refers to the name of a custom resource policy supplied by the
/// user. The resource policy must be in the same project and region as the
/// node pool. If not found, InvalidArgument error is returned.
#[prost(string, tag = "3")]
pub policy_name: ::prost::alloc::string::String,
}
/// Nested message and enum types in `PlacementPolicy`.
pub mod placement_policy {
/// Type defines the type of placement policy.
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum Type {
/// TYPE_UNSPECIFIED specifies no requirements on nodes
/// placement.
Unspecified = 0,
/// COMPACT specifies node placement in the same availability domain to
/// ensure low communication latency.
Compact = 1,
}
impl Type {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
Type::Unspecified => "TYPE_UNSPECIFIED",
Type::Compact => "COMPACT",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"TYPE_UNSPECIFIED" => Some(Self::Unspecified),
"COMPACT" => Some(Self::Compact),
_ => None,
}
}
}
}
/// QueuedProvisioning defines the queued provisioning used by the node pool.
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct QueuedProvisioning {
/// Denotes that this nodepool is QRM specific, meaning nodes can be only
/// obtained through queuing via the Cluster Autoscaler ProvisioningRequest
/// API.
#[prost(bool, tag = "1")]
pub enabled: bool,
}
/// The current status of the node pool instance.
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum Status {
/// Not set.
Unspecified = 0,
/// The PROVISIONING state indicates the node pool is being created.
Provisioning = 1,
/// The RUNNING state indicates the node pool has been created
/// and is fully usable.
Running = 2,
/// The RUNNING_WITH_ERROR state indicates the node pool has been created
/// and is partially usable. Some error state has occurred and some
/// functionality may be impaired. Customer may need to reissue a request
/// or trigger a new update.
RunningWithError = 3,
/// The RECONCILING state indicates that some work is actively being done on
/// the node pool, such as upgrading node software. Details can
/// be found in the `statusMessage` field.
Reconciling = 4,
/// The STOPPING state indicates the node pool is being deleted.
Stopping = 5,
/// The ERROR state indicates the node pool may be unusable. Details
/// can be found in the `statusMessage` field.
Error = 6,
}
impl Status {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
Status::Unspecified => "STATUS_UNSPECIFIED",
Status::Provisioning => "PROVISIONING",
Status::Running => "RUNNING",
Status::RunningWithError => "RUNNING_WITH_ERROR",
Status::Reconciling => "RECONCILING",
Status::Stopping => "STOPPING",
Status::Error => "ERROR",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"STATUS_UNSPECIFIED" => Some(Self::Unspecified),
"PROVISIONING" => Some(Self::Provisioning),
"RUNNING" => Some(Self::Running),
"RUNNING_WITH_ERROR" => Some(Self::RunningWithError),
"RECONCILING" => Some(Self::Reconciling),
"STOPPING" => Some(Self::Stopping),
"ERROR" => Some(Self::Error),
_ => None,
}
}
}
}
/// NodeManagement defines the set of node management services turned on for the
/// node pool.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct NodeManagement {
/// Whether the nodes will be automatically upgraded.
#[prost(bool, tag = "1")]
pub auto_upgrade: bool,
/// Whether the nodes will be automatically repaired.
#[prost(bool, tag = "2")]
pub auto_repair: bool,
/// Specifies the Auto Upgrade knobs for the node pool.
#[prost(message, optional, tag = "10")]
pub upgrade_options: ::core::option::Option<AutoUpgradeOptions>,
}
/// AutoUpgradeOptions defines the set of options for the user to control how
/// the Auto Upgrades will proceed.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct AutoUpgradeOptions {
/// Output only. This field is set when upgrades are about to commence
/// with the approximate start time for the upgrades, in
/// [RFC3339](<https://www.ietf.org/rfc/rfc3339.txt>) text format.
#[prost(string, tag = "1")]
pub auto_upgrade_start_time: ::prost::alloc::string::String,
/// Output only. This field is set when upgrades are about to commence
/// with the description of the upgrade.
#[prost(string, tag = "2")]
pub description: ::prost::alloc::string::String,
}
/// MaintenancePolicy defines the maintenance policy to be used for the cluster.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct MaintenancePolicy {
/// Specifies the maintenance window in which maintenance may be performed.
#[prost(message, optional, tag = "1")]
pub window: ::core::option::Option<MaintenanceWindow>,
/// A hash identifying the version of this policy, so that updates to fields of
/// the policy won't accidentally undo intermediate changes (and so that users
/// of the API unaware of some fields won't accidentally remove other fields).
/// Make a `get()` request to the cluster to get the current
/// resource version and include it with requests to set the policy.
#[prost(string, tag = "3")]
pub resource_version: ::prost::alloc::string::String,
}
/// MaintenanceWindow defines the maintenance window to be used for the cluster.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct MaintenanceWindow {
/// Exceptions to maintenance window. Non-emergency maintenance should not
/// occur in these windows.
#[prost(btree_map = "string, message", tag = "4")]
pub maintenance_exclusions: ::prost::alloc::collections::BTreeMap<
::prost::alloc::string::String,
TimeWindow,
>,
/// Unimplemented, reserved for future use.
/// HourlyMaintenanceWindow hourly_maintenance_window = 1;
#[prost(oneof = "maintenance_window::Policy", tags = "2, 3")]
pub policy: ::core::option::Option<maintenance_window::Policy>,
}
/// Nested message and enum types in `MaintenanceWindow`.
pub mod maintenance_window {
/// Unimplemented, reserved for future use.
/// HourlyMaintenanceWindow hourly_maintenance_window = 1;
#[derive(Clone, PartialEq, ::prost::Oneof)]
pub enum Policy {
/// DailyMaintenanceWindow specifies a daily maintenance operation window.
#[prost(message, tag = "2")]
DailyMaintenanceWindow(super::DailyMaintenanceWindow),
/// RecurringWindow specifies some number of recurring time periods for
/// maintenance to occur. The time windows may be overlapping. If no
/// maintenance windows are set, maintenance can occur at any time.
#[prost(message, tag = "3")]
RecurringWindow(super::RecurringTimeWindow),
}
}
/// Represents an arbitrary window of time.
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct TimeWindow {
/// The time that the window first starts.
#[prost(message, optional, tag = "1")]
pub start_time: ::core::option::Option<::prost_types::Timestamp>,
/// The time that the window ends. The end time should take place after the
/// start time.
#[prost(message, optional, tag = "2")]
pub end_time: ::core::option::Option<::prost_types::Timestamp>,
#[prost(oneof = "time_window::Options", tags = "3")]
pub options: ::core::option::Option<time_window::Options>,
}
/// Nested message and enum types in `TimeWindow`.
pub mod time_window {
#[derive(Clone, Copy, PartialEq, ::prost::Oneof)]
pub enum Options {
/// MaintenanceExclusionOptions provides maintenance exclusion related
/// options.
#[prost(message, tag = "3")]
MaintenanceExclusionOptions(super::MaintenanceExclusionOptions),
}
}
/// Represents the Maintenance exclusion option.
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct MaintenanceExclusionOptions {
/// Scope specifies the upgrade scope which upgrades are blocked by the
/// exclusion.
#[prost(enumeration = "maintenance_exclusion_options::Scope", tag = "1")]
pub scope: i32,
}
/// Nested message and enum types in `MaintenanceExclusionOptions`.
pub mod maintenance_exclusion_options {
/// Scope of exclusion.
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum Scope {
/// NO_UPGRADES excludes all upgrades, including patch upgrades and minor
/// upgrades across control planes and nodes. This is the default exclusion
/// behavior.
NoUpgrades = 0,
/// NO_MINOR_UPGRADES excludes all minor upgrades for the cluster, only
/// patches are allowed.
NoMinorUpgrades = 1,
/// NO_MINOR_OR_NODE_UPGRADES excludes all minor upgrades for the cluster,
/// and also exclude all node pool upgrades. Only control
/// plane patches are allowed.
NoMinorOrNodeUpgrades = 2,
}
impl Scope {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
Scope::NoUpgrades => "NO_UPGRADES",
Scope::NoMinorUpgrades => "NO_MINOR_UPGRADES",
Scope::NoMinorOrNodeUpgrades => "NO_MINOR_OR_NODE_UPGRADES",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"NO_UPGRADES" => Some(Self::NoUpgrades),
"NO_MINOR_UPGRADES" => Some(Self::NoMinorUpgrades),
"NO_MINOR_OR_NODE_UPGRADES" => Some(Self::NoMinorOrNodeUpgrades),
_ => None,
}
}
}
}
/// Represents an arbitrary window of time that recurs.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct RecurringTimeWindow {
/// The window of the first recurrence.
#[prost(message, optional, tag = "1")]
pub window: ::core::option::Option<TimeWindow>,
/// An RRULE (<https://tools.ietf.org/html/rfc5545#section-3.8.5.3>) for how
/// this window reccurs. They go on for the span of time between the start and
/// end time.
///
/// For example, to have something repeat every weekday, you'd use:
/// `FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR`
///
/// To repeat some window daily (equivalent to the DailyMaintenanceWindow):
/// `FREQ=DAILY`
///
/// For the first weekend of every month:
/// `FREQ=MONTHLY;BYSETPOS=1;BYDAY=SA,SU`
///
/// This specifies how frequently the window starts. Eg, if you wanted to have
/// a 9-5 UTC-4 window every weekday, you'd use something like:
/// ```
/// start time = 2019-01-01T09:00:00-0400
/// end time = 2019-01-01T17:00:00-0400
/// recurrence = FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR
/// ```
///
/// Windows can span multiple days. Eg, to make the window encompass every
/// weekend from midnight Saturday till the last minute of Sunday UTC:
/// ```
/// start time = 2019-01-05T00:00:00Z
/// end time = 2019-01-07T23:59:00Z
/// recurrence = FREQ=WEEKLY;BYDAY=SA
/// ```
///
/// Note the start and end time's specific dates are largely arbitrary except
/// to specify duration of the window and when it first starts.
/// The FREQ values of HOURLY, MINUTELY, and SECONDLY are not supported.
#[prost(string, tag = "2")]
pub recurrence: ::prost::alloc::string::String,
}
/// Time window specified for daily maintenance operations.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DailyMaintenanceWindow {
/// Time within the maintenance window to start the maintenance operations.
/// It must be in format "HH:MM", where HH : \[00-23\] and MM : \[00-59\] GMT.
#[prost(string, tag = "2")]
pub start_time: ::prost::alloc::string::String,
/// Output only. Duration of the time window, automatically chosen to be
/// smallest possible in the given scenario.
#[prost(string, tag = "3")]
pub duration: ::prost::alloc::string::String,
}
/// SetNodePoolManagementRequest sets the node management properties of a node
/// pool.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SetNodePoolManagementRequest {
/// Required. Deprecated. The Google Developers Console [project ID or project
/// number](<https://cloud.google.com/resource-manager/docs/creating-managing-projects>).
/// This field has been deprecated and replaced by the name field.
#[deprecated]
#[prost(string, tag = "1")]
pub project_id: ::prost::alloc::string::String,
/// Required. Deprecated. The name of the Google Compute Engine
/// [zone](<https://cloud.google.com/compute/docs/zones#available>) in which the
/// cluster resides. This field has been deprecated and replaced by the name
/// field.
#[deprecated]
#[prost(string, tag = "2")]
pub zone: ::prost::alloc::string::String,
/// Required. Deprecated. The name of the cluster to update.
/// This field has been deprecated and replaced by the name field.
#[deprecated]
#[prost(string, tag = "3")]
pub cluster_id: ::prost::alloc::string::String,
/// Required. Deprecated. The name of the node pool to update.
/// This field has been deprecated and replaced by the name field.
#[deprecated]
#[prost(string, tag = "4")]
pub node_pool_id: ::prost::alloc::string::String,
/// Required. NodeManagement configuration for the node pool.
#[prost(message, optional, tag = "5")]
pub management: ::core::option::Option<NodeManagement>,
/// The name (project, location, cluster, node pool id) of the node pool to set
/// management properties. Specified in the format
/// `projects/*/locations/*/clusters/*/nodePools/*`.
#[prost(string, tag = "7")]
pub name: ::prost::alloc::string::String,
}
/// SetNodePoolSizeRequest sets the size of a node pool.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SetNodePoolSizeRequest {
/// Required. Deprecated. The Google Developers Console [project ID or project
/// number](<https://cloud.google.com/resource-manager/docs/creating-managing-projects>).
/// This field has been deprecated and replaced by the name field.
#[deprecated]
#[prost(string, tag = "1")]
pub project_id: ::prost::alloc::string::String,
/// Required. Deprecated. The name of the Google Compute Engine
/// [zone](<https://cloud.google.com/compute/docs/zones#available>) in which the
/// cluster resides. This field has been deprecated and replaced by the name
/// field.
#[deprecated]
#[prost(string, tag = "2")]
pub zone: ::prost::alloc::string::String,
/// Required. Deprecated. The name of the cluster to update.
/// This field has been deprecated and replaced by the name field.
#[deprecated]
#[prost(string, tag = "3")]
pub cluster_id: ::prost::alloc::string::String,
/// Required. Deprecated. The name of the node pool to update.
/// This field has been deprecated and replaced by the name field.
#[deprecated]
#[prost(string, tag = "4")]
pub node_pool_id: ::prost::alloc::string::String,
/// Required. The desired node count for the pool.
#[prost(int32, tag = "5")]
pub node_count: i32,
/// The name (project, location, cluster, node pool id) of the node pool to set
/// size.
/// Specified in the format `projects/*/locations/*/clusters/*/nodePools/*`.
#[prost(string, tag = "7")]
pub name: ::prost::alloc::string::String,
}
/// CompleteNodePoolUpgradeRequest sets the name of target node pool to complete
/// upgrade.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CompleteNodePoolUpgradeRequest {
/// The name (project, location, cluster, node pool id) of the node pool to
/// complete upgrade.
/// Specified in the format `projects/*/locations/*/clusters/*/nodePools/*`.
#[prost(string, tag = "1")]
pub name: ::prost::alloc::string::String,
}
/// RollbackNodePoolUpgradeRequest rollbacks the previously Aborted or Failed
/// NodePool upgrade. This will be an no-op if the last upgrade successfully
/// completed.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct RollbackNodePoolUpgradeRequest {
/// Required. Deprecated. The Google Developers Console [project ID or project
/// number](<https://cloud.google.com/resource-manager/docs/creating-managing-projects>).
/// This field has been deprecated and replaced by the name field.
#[deprecated]
#[prost(string, tag = "1")]
pub project_id: ::prost::alloc::string::String,
/// Required. Deprecated. The name of the Google Compute Engine
/// [zone](<https://cloud.google.com/compute/docs/zones#available>) in which the
/// cluster resides. This field has been deprecated and replaced by the name
/// field.
#[deprecated]
#[prost(string, tag = "2")]
pub zone: ::prost::alloc::string::String,
/// Required. Deprecated. The name of the cluster to rollback.
/// This field has been deprecated and replaced by the name field.
#[deprecated]
#[prost(string, tag = "3")]
pub cluster_id: ::prost::alloc::string::String,
/// Required. Deprecated. The name of the node pool to rollback.
/// This field has been deprecated and replaced by the name field.
#[deprecated]
#[prost(string, tag = "4")]
pub node_pool_id: ::prost::alloc::string::String,
/// The name (project, location, cluster, node pool id) of the node poll to
/// rollback upgrade.
/// Specified in the format `projects/*/locations/*/clusters/*/nodePools/*`.
#[prost(string, tag = "6")]
pub name: ::prost::alloc::string::String,
/// Option for rollback to ignore the PodDisruptionBudget.
/// Default value is false.
#[prost(bool, tag = "7")]
pub respect_pdb: bool,
}
/// ListNodePoolsResponse is the result of ListNodePoolsRequest.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListNodePoolsResponse {
/// A list of node pools for a cluster.
#[prost(message, repeated, tag = "1")]
pub node_pools: ::prost::alloc::vec::Vec<NodePool>,
}
/// ClusterAutoscaling contains global, per-cluster information
/// required by Cluster Autoscaler to automatically adjust
/// the size of the cluster and create/delete
/// node pools based on the current needs.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ClusterAutoscaling {
/// Enables automatic node pool creation and deletion.
#[prost(bool, tag = "1")]
pub enable_node_autoprovisioning: bool,
/// Contains global constraints regarding minimum and maximum
/// amount of resources in the cluster.
#[prost(message, repeated, tag = "2")]
pub resource_limits: ::prost::alloc::vec::Vec<ResourceLimit>,
/// Defines autoscaling behaviour.
#[prost(enumeration = "cluster_autoscaling::AutoscalingProfile", tag = "3")]
pub autoscaling_profile: i32,
/// AutoprovisioningNodePoolDefaults contains defaults for a node pool
/// created by NAP.
#[prost(message, optional, tag = "4")]
pub autoprovisioning_node_pool_defaults: ::core::option::Option<
AutoprovisioningNodePoolDefaults,
>,
/// The list of Google Compute Engine
/// [zones](<https://cloud.google.com/compute/docs/zones#available>) in which the
/// NodePool's nodes can be created by NAP.
#[prost(string, repeated, tag = "5")]
pub autoprovisioning_locations: ::prost::alloc::vec::Vec<
::prost::alloc::string::String,
>,
}
/// Nested message and enum types in `ClusterAutoscaling`.
pub mod cluster_autoscaling {
/// Defines possible options for autoscaling_profile field.
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum AutoscalingProfile {
/// No change to autoscaling configuration.
ProfileUnspecified = 0,
/// Prioritize optimizing utilization of resources.
OptimizeUtilization = 1,
/// Use default (balanced) autoscaling configuration.
Balanced = 2,
}
impl AutoscalingProfile {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
AutoscalingProfile::ProfileUnspecified => "PROFILE_UNSPECIFIED",
AutoscalingProfile::OptimizeUtilization => "OPTIMIZE_UTILIZATION",
AutoscalingProfile::Balanced => "BALANCED",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"PROFILE_UNSPECIFIED" => Some(Self::ProfileUnspecified),
"OPTIMIZE_UTILIZATION" => Some(Self::OptimizeUtilization),
"BALANCED" => Some(Self::Balanced),
_ => None,
}
}
}
}
/// AutoprovisioningNodePoolDefaults contains defaults for a node pool created
/// by NAP.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct AutoprovisioningNodePoolDefaults {
/// The set of Google API scopes to be made available on all of the
/// node VMs under the "default" service account.
///
/// The following scopes are recommended, but not required, and by default are
/// not included:
///
/// * `<https://www.googleapis.com/auth/compute`> is required for mounting
/// persistent storage on your nodes.
/// * `<https://www.googleapis.com/auth/devstorage.read_only`> is required for
/// communicating with **gcr.io**
/// (the [Google Container
/// Registry](<https://cloud.google.com/container-registry/>)).
///
/// If unspecified, no scopes are added, unless Cloud Logging or Cloud
/// Monitoring are enabled, in which case their required scopes will be added.
#[prost(string, repeated, tag = "1")]
pub oauth_scopes: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
/// The Google Cloud Platform Service Account to be used by the node VMs.
/// Specify the email address of the Service Account; otherwise, if no Service
/// Account is specified, the "default" service account is used.
#[prost(string, tag = "2")]
pub service_account: ::prost::alloc::string::String,
/// Upgrade settings control disruption and speed of the upgrade.
#[prost(message, optional, tag = "3")]
pub upgrade_settings: ::core::option::Option<node_pool::UpgradeSettings>,
/// NodeManagement configuration for this NodePool.
#[prost(message, optional, tag = "4")]
pub management: ::core::option::Option<NodeManagement>,
/// Deprecated. Minimum CPU platform to be used for NAP created node pools.
/// The instance may be scheduled on the specified or newer CPU platform.
/// Applicable values are the friendly names of CPU platforms, such as
/// minCpuPlatform: Intel Haswell or
/// minCpuPlatform: Intel Sandy Bridge. For more
/// information, read [how to specify min CPU
/// platform](<https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform>).
/// This field is deprecated, min_cpu_platform should be specified using
/// `cloud.google.com/requested-min-cpu-platform` label selector on the pod.
/// To unset the min cpu platform field pass "automatic"
/// as field value.
#[deprecated]
#[prost(string, tag = "5")]
pub min_cpu_platform: ::prost::alloc::string::String,
/// Size of the disk attached to each node, specified in GB.
/// The smallest allowed disk size is 10GB.
///
/// If unspecified, the default disk size is 100GB.
#[prost(int32, tag = "6")]
pub disk_size_gb: i32,
/// Type of the disk attached to each node (e.g. 'pd-standard', 'pd-ssd' or
/// 'pd-balanced')
///
/// If unspecified, the default disk type is 'pd-standard'
#[prost(string, tag = "7")]
pub disk_type: ::prost::alloc::string::String,
/// Shielded Instance options.
#[prost(message, optional, tag = "8")]
pub shielded_instance_config: ::core::option::Option<ShieldedInstanceConfig>,
///
/// The Customer Managed Encryption Key used to encrypt the boot disk attached
/// to each node in the node pool. This should be of the form
/// projects/\[KEY_PROJECT_ID\]/locations/\[LOCATION\]/keyRings/\[RING_NAME\]/cryptoKeys/\[KEY_NAME\].
/// For more information about protecting resources with Cloud KMS Keys please
/// see:
/// <https://cloud.google.com/compute/docs/disks/customer-managed-encryption>
#[prost(string, tag = "9")]
pub boot_disk_kms_key: ::prost::alloc::string::String,
/// The image type to use for NAP created node. Please see
/// <https://cloud.google.com/kubernetes-engine/docs/concepts/node-images> for
/// available image types.
#[prost(string, tag = "10")]
pub image_type: ::prost::alloc::string::String,
/// Enable or disable Kubelet read only port.
#[prost(bool, optional, tag = "13")]
pub insecure_kubelet_readonly_port_enabled: ::core::option::Option<bool>,
}
/// Contains information about amount of some resource in the cluster.
/// For memory, value should be in GB.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ResourceLimit {
/// Resource name "cpu", "memory" or gpu-specific string.
#[prost(string, tag = "1")]
pub resource_type: ::prost::alloc::string::String,
/// Minimum amount of the resource in the cluster.
#[prost(int64, tag = "2")]
pub minimum: i64,
/// Maximum amount of the resource in the cluster.
#[prost(int64, tag = "3")]
pub maximum: i64,
}
/// NodePoolAutoscaling contains information required by cluster autoscaler to
/// adjust the size of the node pool to the current cluster usage.
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct NodePoolAutoscaling {
/// Is autoscaling enabled for this node pool.
#[prost(bool, tag = "1")]
pub enabled: bool,
/// Minimum number of nodes for one location in the NodePool. Must be >= 1 and
/// <= max_node_count.
#[prost(int32, tag = "2")]
pub min_node_count: i32,
/// Maximum number of nodes for one location in the NodePool. Must be >=
/// min_node_count. There has to be enough quota to scale up the cluster.
#[prost(int32, tag = "3")]
pub max_node_count: i32,
/// Can this node pool be deleted automatically.
#[prost(bool, tag = "4")]
pub autoprovisioned: bool,
/// Location policy used when scaling up a nodepool.
#[prost(enumeration = "node_pool_autoscaling::LocationPolicy", tag = "5")]
pub location_policy: i32,
/// Minimum number of nodes in the node pool. Must be greater than 1 less than
/// total_max_node_count.
/// The total_*_node_count fields are mutually exclusive with the *_node_count
/// fields.
#[prost(int32, tag = "6")]
pub total_min_node_count: i32,
/// Maximum number of nodes in the node pool. Must be greater than
/// total_min_node_count. There has to be enough quota to scale up the cluster.
/// The total_*_node_count fields are mutually exclusive with the *_node_count
/// fields.
#[prost(int32, tag = "7")]
pub total_max_node_count: i32,
}
/// Nested message and enum types in `NodePoolAutoscaling`.
pub mod node_pool_autoscaling {
/// Location policy specifies how zones are picked when scaling up the
/// nodepool.
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum LocationPolicy {
/// Not set.
Unspecified = 0,
/// BALANCED is a best effort policy that aims to balance the sizes of
/// different zones.
Balanced = 1,
/// ANY policy picks zones that have the highest capacity available.
Any = 2,
}
impl LocationPolicy {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
LocationPolicy::Unspecified => "LOCATION_POLICY_UNSPECIFIED",
LocationPolicy::Balanced => "BALANCED",
LocationPolicy::Any => "ANY",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"LOCATION_POLICY_UNSPECIFIED" => Some(Self::Unspecified),
"BALANCED" => Some(Self::Balanced),
"ANY" => Some(Self::Any),
_ => None,
}
}
}
}
/// SetLabelsRequest sets the Google Cloud Platform labels on a Google Container
/// Engine cluster, which will in turn set them for Google Compute Engine
/// resources used by that cluster
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SetLabelsRequest {
/// Required. Deprecated. The Google Developers Console [project ID or project
/// number](<https://cloud.google.com/resource-manager/docs/creating-managing-projects>).
/// This field has been deprecated and replaced by the name field.
#[deprecated]
#[prost(string, tag = "1")]
pub project_id: ::prost::alloc::string::String,
/// Required. Deprecated. The name of the Google Compute Engine
/// [zone](<https://cloud.google.com/compute/docs/zones#available>) in which the
/// cluster resides. This field has been deprecated and replaced by the name
/// field.
#[deprecated]
#[prost(string, tag = "2")]
pub zone: ::prost::alloc::string::String,
/// Required. Deprecated. The name of the cluster.
/// This field has been deprecated and replaced by the name field.
#[deprecated]
#[prost(string, tag = "3")]
pub cluster_id: ::prost::alloc::string::String,
/// Required. The labels to set for that cluster.
#[prost(btree_map = "string, string", tag = "4")]
pub resource_labels: ::prost::alloc::collections::BTreeMap<
::prost::alloc::string::String,
::prost::alloc::string::String,
>,
/// Required. The fingerprint of the previous set of labels for this resource,
/// used to detect conflicts. The fingerprint is initially generated by
/// Kubernetes Engine and changes after every request to modify or update
/// labels. You must always provide an up-to-date fingerprint hash when
/// updating or changing labels. Make a `get()` request to the
/// resource to get the latest fingerprint.
#[prost(string, tag = "5")]
pub label_fingerprint: ::prost::alloc::string::String,
/// The name (project, location, cluster name) of the cluster to set labels.
/// Specified in the format `projects/*/locations/*/clusters/*`.
#[prost(string, tag = "7")]
pub name: ::prost::alloc::string::String,
}
/// SetLegacyAbacRequest enables or disables the ABAC authorization mechanism for
/// a cluster.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SetLegacyAbacRequest {
/// Required. Deprecated. The Google Developers Console [project ID or project
/// number](<https://cloud.google.com/resource-manager/docs/creating-managing-projects>).
/// This field has been deprecated and replaced by the name field.
#[deprecated]
#[prost(string, tag = "1")]
pub project_id: ::prost::alloc::string::String,
/// Required. Deprecated. The name of the Google Compute Engine
/// [zone](<https://cloud.google.com/compute/docs/zones#available>) in which the
/// cluster resides. This field has been deprecated and replaced by the name
/// field.
#[deprecated]
#[prost(string, tag = "2")]
pub zone: ::prost::alloc::string::String,
/// Required. Deprecated. The name of the cluster to update.
/// This field has been deprecated and replaced by the name field.
#[deprecated]
#[prost(string, tag = "3")]
pub cluster_id: ::prost::alloc::string::String,
/// Required. Whether ABAC authorization will be enabled in the cluster.
#[prost(bool, tag = "4")]
pub enabled: bool,
/// The name (project, location, cluster name) of the cluster to set legacy
/// abac. Specified in the format `projects/*/locations/*/clusters/*`.
#[prost(string, tag = "6")]
pub name: ::prost::alloc::string::String,
}
/// StartIPRotationRequest creates a new IP for the cluster and then performs
/// a node upgrade on each node pool to point to the new IP.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct StartIpRotationRequest {
/// Required. Deprecated. The Google Developers Console [project ID or project
/// number](<https://cloud.google.com/resource-manager/docs/creating-managing-projects>).
/// This field has been deprecated and replaced by the name field.
#[deprecated]
#[prost(string, tag = "1")]
pub project_id: ::prost::alloc::string::String,
/// Required. Deprecated. The name of the Google Compute Engine
/// [zone](<https://cloud.google.com/compute/docs/zones#available>) in which the
/// cluster resides. This field has been deprecated and replaced by the name
/// field.
#[deprecated]
#[prost(string, tag = "2")]
pub zone: ::prost::alloc::string::String,
/// Required. Deprecated. The name of the cluster.
/// This field has been deprecated and replaced by the name field.
#[deprecated]
#[prost(string, tag = "3")]
pub cluster_id: ::prost::alloc::string::String,
/// The name (project, location, cluster name) of the cluster to start IP
/// rotation. Specified in the format `projects/*/locations/*/clusters/*`.
#[prost(string, tag = "6")]
pub name: ::prost::alloc::string::String,
/// Whether to rotate credentials during IP rotation.
#[prost(bool, tag = "7")]
pub rotate_credentials: bool,
}
/// CompleteIPRotationRequest moves the cluster master back into single-IP mode.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CompleteIpRotationRequest {
/// Required. Deprecated. The Google Developers Console [project ID or project
/// number](<https://cloud.google.com/resource-manager/docs/creating-managing-projects>).
/// This field has been deprecated and replaced by the name field.
#[deprecated]
#[prost(string, tag = "1")]
pub project_id: ::prost::alloc::string::String,
/// Required. Deprecated. The name of the Google Compute Engine
/// [zone](<https://cloud.google.com/compute/docs/zones#available>) in which the
/// cluster resides. This field has been deprecated and replaced by the name
/// field.
#[deprecated]
#[prost(string, tag = "2")]
pub zone: ::prost::alloc::string::String,
/// Required. Deprecated. The name of the cluster.
/// This field has been deprecated and replaced by the name field.
#[deprecated]
#[prost(string, tag = "3")]
pub cluster_id: ::prost::alloc::string::String,
/// The name (project, location, cluster name) of the cluster to complete IP
/// rotation. Specified in the format `projects/*/locations/*/clusters/*`.
#[prost(string, tag = "7")]
pub name: ::prost::alloc::string::String,
}
/// AcceleratorConfig represents a Hardware Accelerator request.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct AcceleratorConfig {
/// The number of the accelerator cards exposed to an instance.
#[prost(int64, tag = "1")]
pub accelerator_count: i64,
/// The accelerator type resource name. List of supported accelerators
/// [here](<https://cloud.google.com/compute/docs/gpus>)
#[prost(string, tag = "2")]
pub accelerator_type: ::prost::alloc::string::String,
/// Size of partitions to create on the GPU. Valid values are described in the
/// NVIDIA [mig user
/// guide](<https://docs.nvidia.com/datacenter/tesla/mig-user-guide/#partitioning>).
#[prost(string, tag = "3")]
pub gpu_partition_size: ::prost::alloc::string::String,
/// The number of time-shared GPU resources to expose for each physical GPU.
#[deprecated]
#[prost(int64, tag = "4")]
pub max_time_shared_clients_per_gpu: i64,
/// The configuration for GPU sharing options.
#[prost(message, optional, tag = "5")]
pub gpu_sharing_config: ::core::option::Option<GpuSharingConfig>,
/// The configuration for auto installation of GPU driver.
#[prost(message, optional, tag = "6")]
pub gpu_driver_installation_config: ::core::option::Option<
GpuDriverInstallationConfig,
>,
}
/// GPUSharingConfig represents the GPU sharing configuration for Hardware
/// Accelerators.
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct GpuSharingConfig {
/// The max number of containers that can share a physical GPU.
#[prost(int64, tag = "1")]
pub max_shared_clients_per_gpu: i64,
/// The type of GPU sharing strategy to enable on the GPU node.
#[prost(enumeration = "gpu_sharing_config::GpuSharingStrategy", optional, tag = "2")]
pub gpu_sharing_strategy: ::core::option::Option<i32>,
}
/// Nested message and enum types in `GPUSharingConfig`.
pub mod gpu_sharing_config {
/// The type of GPU sharing strategy currently provided.
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum GpuSharingStrategy {
/// Default value.
Unspecified = 0,
/// GPUs are time-shared between containers.
TimeSharing = 1,
/// GPUs are shared between containers with NVIDIA MPS.
Mps = 2,
}
impl GpuSharingStrategy {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
GpuSharingStrategy::Unspecified => "GPU_SHARING_STRATEGY_UNSPECIFIED",
GpuSharingStrategy::TimeSharing => "TIME_SHARING",
GpuSharingStrategy::Mps => "MPS",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"GPU_SHARING_STRATEGY_UNSPECIFIED" => Some(Self::Unspecified),
"TIME_SHARING" => Some(Self::TimeSharing),
"MPS" => Some(Self::Mps),
_ => None,
}
}
}
}
/// GPUDriverInstallationConfig specifies the version of GPU driver to be auto
/// installed.
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct GpuDriverInstallationConfig {
/// Mode for how the GPU driver is installed.
#[prost(
enumeration = "gpu_driver_installation_config::GpuDriverVersion",
optional,
tag = "1"
)]
pub gpu_driver_version: ::core::option::Option<i32>,
}
/// Nested message and enum types in `GPUDriverInstallationConfig`.
pub mod gpu_driver_installation_config {
/// The GPU driver version to install.
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum GpuDriverVersion {
/// Default value is to not install any GPU driver.
Unspecified = 0,
/// Disable GPU driver auto installation and needs manual installation
InstallationDisabled = 1,
/// "Default" GPU driver in COS and Ubuntu.
Default = 2,
/// "Latest" GPU driver in COS.
Latest = 3,
}
impl GpuDriverVersion {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
GpuDriverVersion::Unspecified => "GPU_DRIVER_VERSION_UNSPECIFIED",
GpuDriverVersion::InstallationDisabled => "INSTALLATION_DISABLED",
GpuDriverVersion::Default => "DEFAULT",
GpuDriverVersion::Latest => "LATEST",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"GPU_DRIVER_VERSION_UNSPECIFIED" => Some(Self::Unspecified),
"INSTALLATION_DISABLED" => Some(Self::InstallationDisabled),
"DEFAULT" => Some(Self::Default),
"LATEST" => Some(Self::Latest),
_ => None,
}
}
}
}
/// ManagedPrometheusConfig defines the configuration for
/// Google Cloud Managed Service for Prometheus.
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct ManagedPrometheusConfig {
/// Enable Managed Collection.
#[prost(bool, tag = "1")]
pub enabled: bool,
}
/// WorkloadMetadataConfig defines the metadata configuration to expose to
/// workloads on the node pool.
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct WorkloadMetadataConfig {
/// NodeMetadata is the configuration for how to expose metadata to the
/// workloads running on the node.
#[deprecated]
#[prost(enumeration = "workload_metadata_config::NodeMetadata", tag = "1")]
pub node_metadata: i32,
/// Mode is the configuration for how to expose metadata to workloads running
/// on the node pool.
#[prost(enumeration = "workload_metadata_config::Mode", tag = "2")]
pub mode: i32,
}
/// Nested message and enum types in `WorkloadMetadataConfig`.
pub mod workload_metadata_config {
/// NodeMetadata is the configuration for if and how to expose the node
/// metadata to the workload running on the node.
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum NodeMetadata {
/// Not set.
Unspecified = 0,
/// Prevent workloads not in hostNetwork from accessing certain VM metadata,
/// specifically kube-env, which contains Kubelet credentials, and the
/// instance identity token.
///
/// Metadata concealment is a temporary security solution available while the
/// bootstrapping process for cluster nodes is being redesigned with
/// significant security improvements. This feature is scheduled to be
/// deprecated in the future and later removed.
Secure = 1,
/// Expose all VM metadata to pods.
Expose = 2,
/// Run the GKE Metadata Server on this node. The GKE Metadata Server exposes
/// a metadata API to workloads that is compatible with the V1 Compute
/// Metadata APIs exposed by the Compute Engine and App Engine Metadata
/// Servers. This feature can only be enabled if Workload Identity is enabled
/// at the cluster level.
GkeMetadataServer = 3,
}
impl NodeMetadata {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
NodeMetadata::Unspecified => "UNSPECIFIED",
NodeMetadata::Secure => "SECURE",
NodeMetadata::Expose => "EXPOSE",
NodeMetadata::GkeMetadataServer => "GKE_METADATA_SERVER",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"UNSPECIFIED" => Some(Self::Unspecified),
"SECURE" => Some(Self::Secure),
"EXPOSE" => Some(Self::Expose),
"GKE_METADATA_SERVER" => Some(Self::GkeMetadataServer),
_ => None,
}
}
}
/// Mode is the configuration for how to expose metadata to workloads running
/// on the node.
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum Mode {
/// Not set.
Unspecified = 0,
/// Expose all Compute Engine metadata to pods.
GceMetadata = 1,
/// Run the GKE Metadata Server on this node. The GKE Metadata Server exposes
/// a metadata API to workloads that is compatible with the V1 Compute
/// Metadata APIs exposed by the Compute Engine and App Engine Metadata
/// Servers. This feature can only be enabled if Workload Identity is enabled
/// at the cluster level.
GkeMetadata = 2,
}
impl Mode {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
Mode::Unspecified => "MODE_UNSPECIFIED",
Mode::GceMetadata => "GCE_METADATA",
Mode::GkeMetadata => "GKE_METADATA",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"MODE_UNSPECIFIED" => Some(Self::Unspecified),
"GCE_METADATA" => Some(Self::GceMetadata),
"GKE_METADATA" => Some(Self::GkeMetadata),
_ => None,
}
}
}
}
/// SetNetworkPolicyRequest enables/disables network policy for a cluster.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SetNetworkPolicyRequest {
/// Required. Deprecated. The Google Developers Console [project ID or project
/// number](<https://cloud.google.com/resource-manager/docs/creating-managing-projects>).
/// This field has been deprecated and replaced by the name field.
#[deprecated]
#[prost(string, tag = "1")]
pub project_id: ::prost::alloc::string::String,
/// Required. Deprecated. The name of the Google Compute Engine
/// [zone](<https://cloud.google.com/compute/docs/zones#available>) in which the
/// cluster resides. This field has been deprecated and replaced by the name
/// field.
#[deprecated]
#[prost(string, tag = "2")]
pub zone: ::prost::alloc::string::String,
/// Required. Deprecated. The name of the cluster.
/// This field has been deprecated and replaced by the name field.
#[deprecated]
#[prost(string, tag = "3")]
pub cluster_id: ::prost::alloc::string::String,
/// Required. Configuration options for the NetworkPolicy feature.
#[prost(message, optional, tag = "4")]
pub network_policy: ::core::option::Option<NetworkPolicy>,
/// The name (project, location, cluster name) of the cluster to set networking
/// policy. Specified in the format `projects/*/locations/*/clusters/*`.
#[prost(string, tag = "6")]
pub name: ::prost::alloc::string::String,
}
/// SetMaintenancePolicyRequest sets the maintenance policy for a cluster.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SetMaintenancePolicyRequest {
/// Required. The Google Developers Console [project ID or project
/// number](<https://cloud.google.com/resource-manager/docs/creating-managing-projects>).
#[prost(string, tag = "1")]
pub project_id: ::prost::alloc::string::String,
/// Required. The name of the Google Compute Engine
/// [zone](<https://cloud.google.com/compute/docs/zones#available>) in which the
/// cluster resides.
#[prost(string, tag = "2")]
pub zone: ::prost::alloc::string::String,
/// Required. The name of the cluster to update.
#[prost(string, tag = "3")]
pub cluster_id: ::prost::alloc::string::String,
/// Required. The maintenance policy to be set for the cluster. An empty field
/// clears the existing maintenance policy.
#[prost(message, optional, tag = "4")]
pub maintenance_policy: ::core::option::Option<MaintenancePolicy>,
/// The name (project, location, cluster name) of the cluster to set
/// maintenance policy.
/// Specified in the format `projects/*/locations/*/clusters/*`.
#[prost(string, tag = "5")]
pub name: ::prost::alloc::string::String,
}
/// ListLocationsRequest is used to request the locations that offer GKE.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListLocationsRequest {
/// Required. Contains the name of the resource requested.
/// Specified in the format `projects/*`.
#[prost(string, tag = "1")]
pub parent: ::prost::alloc::string::String,
}
/// ListLocationsResponse returns the list of all GKE locations and their
/// recommendation state.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListLocationsResponse {
/// A full list of GKE locations.
#[prost(message, repeated, tag = "1")]
pub locations: ::prost::alloc::vec::Vec<Location>,
/// Only return ListLocationsResponse that occur after the page_token. This
/// value should be populated from the ListLocationsResponse.next_page_token if
/// that response token was set (which happens when listing more Locations than
/// fit in a single ListLocationsResponse).
#[prost(string, tag = "2")]
pub next_page_token: ::prost::alloc::string::String,
}
/// Location returns the location name, and if the location is recommended
/// for GKE cluster scheduling.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Location {
/// Contains the type of location this Location is for.
/// Regional or Zonal.
#[prost(enumeration = "location::LocationType", tag = "1")]
pub r#type: i32,
/// Contains the name of the resource requested.
/// Specified in the format `projects/*/locations/*`.
#[prost(string, tag = "2")]
pub name: ::prost::alloc::string::String,
/// Whether the location is recommended for GKE cluster scheduling.
#[prost(bool, tag = "3")]
pub recommended: bool,
}
/// Nested message and enum types in `Location`.
pub mod location {
/// LocationType is the type of GKE location, regional or zonal.
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum LocationType {
/// LOCATION_TYPE_UNSPECIFIED means the location type was not determined.
Unspecified = 0,
/// A GKE Location where Zonal clusters can be created.
Zone = 1,
/// A GKE Location where Regional clusters can be created.
Region = 2,
}
impl LocationType {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
LocationType::Unspecified => "LOCATION_TYPE_UNSPECIFIED",
LocationType::Zone => "ZONE",
LocationType::Region => "REGION",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"LOCATION_TYPE_UNSPECIFIED" => Some(Self::Unspecified),
"ZONE" => Some(Self::Zone),
"REGION" => Some(Self::Region),
_ => None,
}
}
}
}
/// StatusCondition describes why a cluster or a node pool has a certain status
/// (e.g., ERROR or DEGRADED).
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct StatusCondition {
/// Machine-friendly representation of the condition
/// Deprecated. Use canonical_code instead.
#[deprecated]
#[prost(enumeration = "status_condition::Code", tag = "1")]
pub code: i32,
/// Human-friendly representation of the condition
#[prost(string, tag = "2")]
pub message: ::prost::alloc::string::String,
/// Canonical code of the condition.
#[prost(enumeration = "super::super::rpc::Code", tag = "3")]
pub canonical_code: i32,
}
/// Nested message and enum types in `StatusCondition`.
pub mod status_condition {
/// Code for each condition
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum Code {
/// UNKNOWN indicates a generic condition.
Unknown = 0,
/// GCE_STOCKOUT indicates that Google Compute Engine resources are
/// temporarily unavailable.
GceStockout = 1,
/// GKE_SERVICE_ACCOUNT_DELETED indicates that the user deleted their robot
/// service account.
GkeServiceAccountDeleted = 2,
/// Google Compute Engine quota was exceeded.
GceQuotaExceeded = 3,
/// Cluster state was manually changed by an SRE due to a system logic error.
SetByOperator = 4,
/// Unable to perform an encrypt operation against the CloudKMS key used for
/// etcd level encryption.
CloudKmsKeyError = 7,
/// Cluster CA is expiring soon.
/// More codes TBA
CaExpiring = 9,
}
impl Code {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
Code::Unknown => "UNKNOWN",
Code::GceStockout => "GCE_STOCKOUT",
Code::GkeServiceAccountDeleted => "GKE_SERVICE_ACCOUNT_DELETED",
Code::GceQuotaExceeded => "GCE_QUOTA_EXCEEDED",
Code::SetByOperator => "SET_BY_OPERATOR",
Code::CloudKmsKeyError => "CLOUD_KMS_KEY_ERROR",
Code::CaExpiring => "CA_EXPIRING",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"UNKNOWN" => Some(Self::Unknown),
"GCE_STOCKOUT" => Some(Self::GceStockout),
"GKE_SERVICE_ACCOUNT_DELETED" => Some(Self::GkeServiceAccountDeleted),
"GCE_QUOTA_EXCEEDED" => Some(Self::GceQuotaExceeded),
"SET_BY_OPERATOR" => Some(Self::SetByOperator),
"CLOUD_KMS_KEY_ERROR" => Some(Self::CloudKmsKeyError),
"CA_EXPIRING" => Some(Self::CaExpiring),
_ => None,
}
}
}
}
/// NetworkConfig reports the relative names of network & subnetwork.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct NetworkConfig {
/// Output only. The relative name of the Google Compute Engine
/// [network][google.container.v1beta1.NetworkConfig.network](<https://cloud.google.com/compute/docs/networks-and-firewalls#networks>)
/// to which the cluster is connected. Example:
/// projects/my-project/global/networks/my-network
#[prost(string, tag = "1")]
pub network: ::prost::alloc::string::String,
/// Output only. The relative name of the Google Compute Engine
/// [subnetwork](<https://cloud.google.com/compute/docs/vpc>) to which the
/// cluster is connected. Example:
/// projects/my-project/regions/us-central1/subnetworks/my-subnet
#[prost(string, tag = "2")]
pub subnetwork: ::prost::alloc::string::String,
/// Whether Intra-node visibility is enabled for this cluster.
/// This makes same node pod to pod traffic visible for VPC network.
#[prost(bool, tag = "5")]
pub enable_intra_node_visibility: bool,
/// Whether the cluster disables default in-node sNAT rules. In-node sNAT rules
/// will be disabled when default_snat_status is disabled. When disabled is set
/// to false, default IP masquerade rules will be applied to the nodes to
/// prevent sNAT on cluster internal traffic.
#[prost(message, optional, tag = "7")]
pub default_snat_status: ::core::option::Option<DefaultSnatStatus>,
/// Whether L4ILB Subsetting is enabled for this cluster.
#[prost(bool, tag = "10")]
pub enable_l4ilb_subsetting: bool,
/// The desired datapath provider for this cluster. By default, uses the
/// IPTables-based kube-proxy implementation.
#[prost(enumeration = "DatapathProvider", tag = "11")]
pub datapath_provider: i32,
/// The desired state of IPv6 connectivity to Google Services.
/// By default, no private IPv6 access to or from Google Services (all access
/// will be via IPv4)
#[prost(enumeration = "PrivateIPv6GoogleAccess", tag = "12")]
pub private_ipv6_google_access: i32,
/// DNSConfig contains clusterDNS config for this cluster.
#[prost(message, optional, tag = "13")]
pub dns_config: ::core::option::Option<DnsConfig>,
/// ServiceExternalIPsConfig specifies if services with externalIPs field are
/// blocked or not.
#[prost(message, optional, tag = "15")]
pub service_external_ips_config: ::core::option::Option<ServiceExternalIPsConfig>,
/// GatewayAPIConfig contains the desired config of Gateway API on this
/// cluster.
#[prost(message, optional, tag = "16")]
pub gateway_api_config: ::core::option::Option<GatewayApiConfig>,
/// Whether multi-networking is enabled for this cluster.
#[prost(bool, tag = "17")]
pub enable_multi_networking: bool,
/// Network bandwidth tier configuration.
#[prost(message, optional, tag = "18")]
pub network_performance_config: ::core::option::Option<
network_config::ClusterNetworkPerformanceConfig,
>,
/// Whether FQDN Network Policy is enabled on this cluster.
#[prost(bool, optional, tag = "19")]
pub enable_fqdn_network_policy: ::core::option::Option<bool>,
/// Specify the details of in-transit encryption.
#[prost(enumeration = "InTransitEncryptionConfig", optional, tag = "20")]
pub in_transit_encryption_config: ::core::option::Option<i32>,
/// Whether CiliumClusterWideNetworkPolicy is enabled on this cluster.
#[prost(bool, optional, tag = "21")]
pub enable_cilium_clusterwide_network_policy: ::core::option::Option<bool>,
}
/// Nested message and enum types in `NetworkConfig`.
pub mod network_config {
/// Configuration of all network bandwidth tiers
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct ClusterNetworkPerformanceConfig {
/// Specifies the total network bandwidth tier for the NodePool.
#[prost(
enumeration = "cluster_network_performance_config::Tier",
optional,
tag = "1"
)]
pub total_egress_bandwidth_tier: ::core::option::Option<i32>,
}
/// Nested message and enum types in `ClusterNetworkPerformanceConfig`.
pub mod cluster_network_performance_config {
/// Node network tier
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum Tier {
/// Default value
Unspecified = 0,
/// Higher bandwidth, actual values based on VM size.
Tier1 = 1,
}
impl Tier {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
Tier::Unspecified => "TIER_UNSPECIFIED",
Tier::Tier1 => "TIER_1",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"TIER_UNSPECIFIED" => Some(Self::Unspecified),
"TIER_1" => Some(Self::Tier1),
_ => None,
}
}
}
}
}
/// GatewayAPIConfig contains the desired config of Gateway API on this cluster.
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct GatewayApiConfig {
/// The Gateway API release channel to use for Gateway API.
#[prost(enumeration = "gateway_api_config::Channel", tag = "1")]
pub channel: i32,
}
/// Nested message and enum types in `GatewayAPIConfig`.
pub mod gateway_api_config {
/// Channel describes if/how Gateway API should be installed and implemented in
/// a cluster.
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum Channel {
/// Default value.
Unspecified = 0,
/// Gateway API support is disabled
Disabled = 1,
/// Deprecated: use CHANNEL_STANDARD instead.
/// Gateway API support is enabled, experimental CRDs are installed
Experimental = 3,
/// Gateway API support is enabled, standard CRDs are installed
Standard = 4,
}
impl Channel {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
Channel::Unspecified => "CHANNEL_UNSPECIFIED",
Channel::Disabled => "CHANNEL_DISABLED",
Channel::Experimental => "CHANNEL_EXPERIMENTAL",
Channel::Standard => "CHANNEL_STANDARD",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"CHANNEL_UNSPECIFIED" => Some(Self::Unspecified),
"CHANNEL_DISABLED" => Some(Self::Disabled),
"CHANNEL_EXPERIMENTAL" => Some(Self::Experimental),
"CHANNEL_STANDARD" => Some(Self::Standard),
_ => None,
}
}
}
}
/// Config to block services with externalIPs field.
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct ServiceExternalIPsConfig {
/// Whether Services with ExternalIPs field are allowed or not.
#[prost(bool, tag = "1")]
pub enabled: bool,
}
/// ListUsableSubnetworksRequest requests the list of usable subnetworks.
/// available to a user for creating clusters.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListUsableSubnetworksRequest {
/// Required. The parent project where subnetworks are usable.
/// Specified in the format `projects/*`.
#[prost(string, tag = "1")]
pub parent: ::prost::alloc::string::String,
/// Filtering currently only supports equality on the networkProjectId and must
/// be in the form: "networkProjectId=\[PROJECTID\]", where `networkProjectId`
/// is the project which owns the listed subnetworks. This defaults to the
/// parent project ID.
#[prost(string, tag = "2")]
pub filter: ::prost::alloc::string::String,
/// The max number of results per page that should be returned. If the number
/// of available results is larger than `page_size`, a `next_page_token` is
/// returned which can be used to get the next page of results in subsequent
/// requests. Acceptable values are 0 to 500, inclusive. (Default: 500)
#[prost(int32, tag = "3")]
pub page_size: i32,
/// Specifies a page token to use. Set this to the nextPageToken returned by
/// previous list requests to get the next page of results.
#[prost(string, tag = "4")]
pub page_token: ::prost::alloc::string::String,
}
/// ListUsableSubnetworksResponse is the response of
/// ListUsableSubnetworksRequest.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListUsableSubnetworksResponse {
/// A list of usable subnetworks in the specified network project.
#[prost(message, repeated, tag = "1")]
pub subnetworks: ::prost::alloc::vec::Vec<UsableSubnetwork>,
/// This token allows you to get the next page of results for list requests.
/// If the number of results is larger than `page_size`, use the
/// `next_page_token` as a value for the query parameter `page_token` in the
/// next request. The value will become empty when there are no more pages.
#[prost(string, tag = "2")]
pub next_page_token: ::prost::alloc::string::String,
}
/// Secondary IP range of a usable subnetwork.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct UsableSubnetworkSecondaryRange {
/// The name associated with this subnetwork secondary range, used when adding
/// an alias IP range to a VM instance.
#[prost(string, tag = "1")]
pub range_name: ::prost::alloc::string::String,
/// The range of IP addresses belonging to this subnetwork secondary range.
#[prost(string, tag = "2")]
pub ip_cidr_range: ::prost::alloc::string::String,
/// This field is to determine the status of the secondary range programmably.
#[prost(enumeration = "usable_subnetwork_secondary_range::Status", tag = "3")]
pub status: i32,
}
/// Nested message and enum types in `UsableSubnetworkSecondaryRange`.
pub mod usable_subnetwork_secondary_range {
/// Status shows the current usage of a secondary IP range.
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum Status {
/// UNKNOWN is the zero value of the Status enum. It's not a valid status.
Unknown = 0,
/// UNUSED denotes that this range is unclaimed by any cluster.
Unused = 1,
/// IN_USE_SERVICE denotes that this range is claimed by a cluster for
/// services. It cannot be used for other clusters.
InUseService = 2,
/// IN_USE_SHAREABLE_POD denotes this range was created by the network admin
/// and is currently claimed by a cluster for pods. It can only be used by
/// other clusters as a pod range.
InUseShareablePod = 3,
/// IN_USE_MANAGED_POD denotes this range was created by GKE and is claimed
/// for pods. It cannot be used for other clusters.
InUseManagedPod = 4,
}
impl Status {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
Status::Unknown => "UNKNOWN",
Status::Unused => "UNUSED",
Status::InUseService => "IN_USE_SERVICE",
Status::InUseShareablePod => "IN_USE_SHAREABLE_POD",
Status::InUseManagedPod => "IN_USE_MANAGED_POD",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"UNKNOWN" => Some(Self::Unknown),
"UNUSED" => Some(Self::Unused),
"IN_USE_SERVICE" => Some(Self::InUseService),
"IN_USE_SHAREABLE_POD" => Some(Self::InUseShareablePod),
"IN_USE_MANAGED_POD" => Some(Self::InUseManagedPod),
_ => None,
}
}
}
}
/// UsableSubnetwork resource returns the subnetwork name, its associated network
/// and the primary CIDR range.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct UsableSubnetwork {
/// Subnetwork Name.
/// Example: projects/my-project/regions/us-central1/subnetworks/my-subnet
#[prost(string, tag = "1")]
pub subnetwork: ::prost::alloc::string::String,
/// Network Name.
/// Example: projects/my-project/global/networks/my-network
#[prost(string, tag = "2")]
pub network: ::prost::alloc::string::String,
/// The range of internal addresses that are owned by this subnetwork.
#[prost(string, tag = "3")]
pub ip_cidr_range: ::prost::alloc::string::String,
/// Secondary IP ranges.
#[prost(message, repeated, tag = "4")]
pub secondary_ip_ranges: ::prost::alloc::vec::Vec<UsableSubnetworkSecondaryRange>,
/// A human readable status message representing the reasons for cases where
/// the caller cannot use the secondary ranges under the subnet. For example if
/// the secondary_ip_ranges is empty due to a permission issue, an insufficient
/// permission message will be given by status_message.
#[prost(string, tag = "5")]
pub status_message: ::prost::alloc::string::String,
}
/// VerticalPodAutoscaling contains global, per-cluster information
/// required by Vertical Pod Autoscaler to automatically adjust
/// the resources of pods controlled by it.
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct VerticalPodAutoscaling {
/// Enables vertical pod autoscaling.
#[prost(bool, tag = "1")]
pub enabled: bool,
}
/// DefaultSnatStatus contains the desired state of whether default sNAT should
/// be disabled on the cluster.
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct DefaultSnatStatus {
/// Disables cluster default sNAT rules.
#[prost(bool, tag = "1")]
pub disabled: bool,
}
/// IntraNodeVisibilityConfig contains the desired config of the intra-node
/// visibility on this cluster.
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct IntraNodeVisibilityConfig {
/// Enables intra node visibility for this cluster.
#[prost(bool, tag = "1")]
pub enabled: bool,
}
/// ILBSubsettingConfig contains the desired config of L4 Internal LoadBalancer
/// subsetting on this cluster.
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct IlbSubsettingConfig {
/// Enables l4 ILB subsetting for this cluster
#[prost(bool, tag = "1")]
pub enabled: bool,
}
/// DNSConfig contains the desired set of options for configuring clusterDNS.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DnsConfig {
/// cluster_dns indicates which in-cluster DNS provider should be used.
#[prost(enumeration = "dns_config::Provider", tag = "1")]
pub cluster_dns: i32,
/// cluster_dns_scope indicates the scope of access to cluster DNS records.
#[prost(enumeration = "dns_config::DnsScope", tag = "2")]
pub cluster_dns_scope: i32,
/// cluster_dns_domain is the suffix used for all cluster service records.
#[prost(string, tag = "3")]
pub cluster_dns_domain: ::prost::alloc::string::String,
/// Optional. The domain used in Additive VPC scope.
#[prost(string, tag = "5")]
pub additive_vpc_scope_dns_domain: ::prost::alloc::string::String,
}
/// Nested message and enum types in `DNSConfig`.
pub mod dns_config {
/// Provider lists the various in-cluster DNS providers.
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum Provider {
/// Default value
Unspecified = 0,
/// Use GKE default DNS provider(kube-dns) for DNS resolution.
PlatformDefault = 1,
/// Use CloudDNS for DNS resolution.
CloudDns = 2,
/// Use KubeDNS for DNS resolution.
KubeDns = 3,
}
impl Provider {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
Provider::Unspecified => "PROVIDER_UNSPECIFIED",
Provider::PlatformDefault => "PLATFORM_DEFAULT",
Provider::CloudDns => "CLOUD_DNS",
Provider::KubeDns => "KUBE_DNS",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"PROVIDER_UNSPECIFIED" => Some(Self::Unspecified),
"PLATFORM_DEFAULT" => Some(Self::PlatformDefault),
"CLOUD_DNS" => Some(Self::CloudDns),
"KUBE_DNS" => Some(Self::KubeDns),
_ => None,
}
}
}
/// DNSScope lists the various scopes of access to cluster DNS records.
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum DnsScope {
/// Default value, will be inferred as cluster scope.
Unspecified = 0,
/// DNS records are accessible from within the cluster.
ClusterScope = 1,
/// DNS records are accessible from within the VPC.
VpcScope = 2,
}
impl DnsScope {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
DnsScope::Unspecified => "DNS_SCOPE_UNSPECIFIED",
DnsScope::ClusterScope => "CLUSTER_SCOPE",
DnsScope::VpcScope => "VPC_SCOPE",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"DNS_SCOPE_UNSPECIFIED" => Some(Self::Unspecified),
"CLUSTER_SCOPE" => Some(Self::ClusterScope),
"VPC_SCOPE" => Some(Self::VpcScope),
_ => None,
}
}
}
}
/// Constraints applied to pods.
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct MaxPodsConstraint {
/// Constraint enforced on the max num of pods per node.
#[prost(int64, tag = "1")]
pub max_pods_per_node: i64,
}
/// Configuration for the use of Kubernetes Service Accounts in GCP IAM
/// policies.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct WorkloadIdentityConfig {
/// IAM Identity Namespace to attach all Kubernetes Service Accounts to.
#[deprecated]
#[prost(string, tag = "1")]
pub identity_namespace: ::prost::alloc::string::String,
/// The workload pool to attach all Kubernetes service accounts to.
#[prost(string, tag = "2")]
pub workload_pool: ::prost::alloc::string::String,
/// identity provider is the third party identity provider.
#[prost(string, tag = "3")]
pub identity_provider: ::prost::alloc::string::String,
}
/// Configuration for direct-path (via ALTS) with workload identity.
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct WorkloadAltsConfig {
/// enable_alts controls whether the alts handshaker should be enabled or not
/// for direct-path.
///
/// Requires Workload Identity
/// ([workload_pool][google.container.v1beta1.WorkloadIdentityConfig.workload_pool]
/// must be non-empty).
#[prost(message, optional, tag = "1")]
pub enable_alts: ::core::option::Option<bool>,
}
/// Configuration for issuance of mTLS keys and certificates to Kubernetes pods.
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct WorkloadCertificates {
/// enable_certificates controls issuance of workload mTLS certificates.
///
/// If set, the GKE Workload Identity Certificates controller and node agent
/// will be deployed in the cluster, which can then be configured by creating a
/// WorkloadCertificateConfig Custom Resource.
///
/// Requires Workload Identity
/// ([workload_pool][google.container.v1beta1.WorkloadIdentityConfig.workload_pool]
/// must be non-empty).
#[prost(message, optional, tag = "1")]
pub enable_certificates: ::core::option::Option<bool>,
}
/// Configuration for issuance of mTLS keys and certificates to Kubernetes pods.
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct MeshCertificates {
/// enable_certificates controls issuance of workload mTLS certificates.
///
/// If set, the GKE Workload Identity Certificates controller and node agent
/// will be deployed in the cluster, which can then be configured by creating a
/// WorkloadCertificateConfig Custom Resource.
///
/// Requires Workload Identity
/// ([workload_pool][google.container.v1alpha1.WorkloadIdentityConfig.workload_pool]
/// must be non-empty).
#[prost(message, optional, tag = "1")]
pub enable_certificates: ::core::option::Option<bool>,
}
/// Configuration of etcd encryption.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DatabaseEncryption {
/// Name of CloudKMS key to use for the encryption of secrets in etcd.
/// Ex. projects/my-project/locations/global/keyRings/my-ring/cryptoKeys/my-key
#[prost(string, tag = "1")]
pub key_name: ::prost::alloc::string::String,
/// The desired state of etcd encryption.
#[prost(enumeration = "database_encryption::State", tag = "2")]
pub state: i32,
/// Output only. The current state of etcd encryption.
#[prost(enumeration = "database_encryption::CurrentState", optional, tag = "3")]
pub current_state: ::core::option::Option<i32>,
/// Output only. Keys in use by the cluster for decrypting
/// existing objects, in addition to the key in `key_name`.
///
/// Each item is a CloudKMS key resource.
#[prost(string, repeated, tag = "4")]
pub decryption_keys: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
/// Output only. Records errors seen during DatabaseEncryption update
/// operations.
#[prost(message, repeated, tag = "5")]
pub last_operation_errors: ::prost::alloc::vec::Vec<
database_encryption::OperationError,
>,
}
/// Nested message and enum types in `DatabaseEncryption`.
pub mod database_encryption {
/// OperationError records errors seen from CloudKMS keys
/// encountered during updates to DatabaseEncryption configuration.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct OperationError {
/// CloudKMS key resource that had the error.
#[prost(string, tag = "1")]
pub key_name: ::prost::alloc::string::String,
/// Description of the error seen during the operation.
#[prost(string, tag = "2")]
pub error_message: ::prost::alloc::string::String,
/// Time when the CloudKMS error was seen.
#[prost(message, optional, tag = "3")]
pub timestamp: ::core::option::Option<::prost_types::Timestamp>,
}
/// State of etcd encryption.
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum State {
/// Should never be set
Unknown = 0,
/// Secrets in etcd are encrypted.
Encrypted = 1,
/// Secrets in etcd are stored in plain text (at etcd level) - this is
/// unrelated to Compute Engine level full disk encryption.
Decrypted = 2,
}
impl State {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
State::Unknown => "UNKNOWN",
State::Encrypted => "ENCRYPTED",
State::Decrypted => "DECRYPTED",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"UNKNOWN" => Some(Self::Unknown),
"ENCRYPTED" => Some(Self::Encrypted),
"DECRYPTED" => Some(Self::Decrypted),
_ => None,
}
}
}
/// Current State of etcd encryption.
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum CurrentState {
/// Should never be set
Unspecified = 0,
/// Secrets in etcd are encrypted.
Encrypted = 7,
/// Secrets in etcd are stored in plain text (at etcd level) - this is
/// unrelated to Compute Engine level full disk encryption.
Decrypted = 2,
/// Encryption (or re-encryption with a different CloudKMS key)
/// of Secrets is in progress.
EncryptionPending = 3,
/// Encryption (or re-encryption with a different CloudKMS key) of Secrets in
/// etcd encountered an error.
EncryptionError = 4,
/// De-crypting Secrets to plain text in etcd is in progress.
DecryptionPending = 5,
/// De-crypting Secrets to plain text in etcd encountered an error.
DecryptionError = 6,
}
impl CurrentState {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
CurrentState::Unspecified => "CURRENT_STATE_UNSPECIFIED",
CurrentState::Encrypted => "CURRENT_STATE_ENCRYPTED",
CurrentState::Decrypted => "CURRENT_STATE_DECRYPTED",
CurrentState::EncryptionPending => "CURRENT_STATE_ENCRYPTION_PENDING",
CurrentState::EncryptionError => "CURRENT_STATE_ENCRYPTION_ERROR",
CurrentState::DecryptionPending => "CURRENT_STATE_DECRYPTION_PENDING",
CurrentState::DecryptionError => "CURRENT_STATE_DECRYPTION_ERROR",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"CURRENT_STATE_UNSPECIFIED" => Some(Self::Unspecified),
"CURRENT_STATE_ENCRYPTED" => Some(Self::Encrypted),
"CURRENT_STATE_DECRYPTED" => Some(Self::Decrypted),
"CURRENT_STATE_ENCRYPTION_PENDING" => Some(Self::EncryptionPending),
"CURRENT_STATE_ENCRYPTION_ERROR" => Some(Self::EncryptionError),
"CURRENT_STATE_DECRYPTION_PENDING" => Some(Self::DecryptionPending),
"CURRENT_STATE_DECRYPTION_ERROR" => Some(Self::DecryptionError),
_ => None,
}
}
}
}
/// Configuration for exporting cluster resource usages.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ResourceUsageExportConfig {
/// Configuration to use BigQuery as usage export destination.
#[prost(message, optional, tag = "1")]
pub bigquery_destination: ::core::option::Option<
resource_usage_export_config::BigQueryDestination,
>,
/// Whether to enable network egress metering for this cluster. If enabled, a
/// daemonset will be created in the cluster to meter network egress traffic.
#[prost(bool, tag = "2")]
pub enable_network_egress_metering: bool,
/// Configuration to enable resource consumption metering.
#[prost(message, optional, tag = "3")]
pub consumption_metering_config: ::core::option::Option<
resource_usage_export_config::ConsumptionMeteringConfig,
>,
}
/// Nested message and enum types in `ResourceUsageExportConfig`.
pub mod resource_usage_export_config {
/// Parameters for using BigQuery as the destination of resource usage export.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct BigQueryDestination {
/// The ID of a BigQuery Dataset.
#[prost(string, tag = "1")]
pub dataset_id: ::prost::alloc::string::String,
}
/// Parameters for controlling consumption metering.
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct ConsumptionMeteringConfig {
/// Whether to enable consumption metering for this cluster. If enabled, a
/// second BigQuery table will be created to hold resource consumption
/// records.
#[prost(bool, tag = "1")]
pub enabled: bool,
}
}
/// Configuration of Shielded Nodes feature.
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct ShieldedNodes {
/// Whether Shielded Nodes features are enabled on all nodes in this cluster.
#[prost(bool, tag = "1")]
pub enabled: bool,
}
/// Configuration of gVNIC feature.
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct VirtualNic {
/// Whether gVNIC features are enabled in the node pool.
#[prost(bool, tag = "1")]
pub enabled: bool,
}
/// Configuration of Fast Socket feature.
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct FastSocket {
/// Whether Fast Socket features are enabled in the node pool.
#[prost(bool, tag = "1")]
pub enabled: bool,
}
/// GetOpenIDConfigRequest gets the OIDC discovery document for the
/// cluster. See the OpenID Connect Discovery 1.0 specification for details.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetOpenIdConfigRequest {
/// The cluster (project, location, cluster name) to get the discovery document
/// for. Specified in the format `projects/*/locations/*/clusters/*`.
#[prost(string, tag = "1")]
pub parent: ::prost::alloc::string::String,
}
/// GetOpenIDConfigResponse is an OIDC discovery document for the cluster.
/// See the OpenID Connect Discovery 1.0 specification for details.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetOpenIdConfigResponse {
/// OIDC Issuer.
#[prost(string, tag = "1")]
pub issuer: ::prost::alloc::string::String,
/// JSON Web Key uri.
#[prost(string, tag = "2")]
pub jwks_uri: ::prost::alloc::string::String,
/// Supported response types.
#[prost(string, repeated, tag = "3")]
pub response_types_supported: ::prost::alloc::vec::Vec<
::prost::alloc::string::String,
>,
/// Supported subject types.
#[prost(string, repeated, tag = "4")]
pub subject_types_supported: ::prost::alloc::vec::Vec<
::prost::alloc::string::String,
>,
/// supported ID Token signing Algorithms.
#[prost(string, repeated, tag = "5")]
pub id_token_signing_alg_values_supported: ::prost::alloc::vec::Vec<
::prost::alloc::string::String,
>,
/// Supported claims.
#[prost(string, repeated, tag = "6")]
pub claims_supported: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
/// Supported grant types.
#[prost(string, repeated, tag = "7")]
pub grant_types: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
}
/// GetJSONWebKeysRequest gets the public component of the keys used by the
/// cluster to sign token requests. This will be the jwks_uri for the discover
/// document returned by getOpenIDConfig. See the OpenID Connect
/// Discovery 1.0 specification for details.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetJsonWebKeysRequest {
/// The cluster (project, location, cluster name) to get keys for. Specified in
/// the format `projects/*/locations/*/clusters/*`.
#[prost(string, tag = "1")]
pub parent: ::prost::alloc::string::String,
}
/// Jwk is a JSON Web Key as specified in RFC 7517
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Jwk {
/// Key Type.
#[prost(string, tag = "1")]
pub kty: ::prost::alloc::string::String,
/// Algorithm.
#[prost(string, tag = "2")]
pub alg: ::prost::alloc::string::String,
/// Permitted uses for the public keys.
#[prost(string, tag = "3")]
pub r#use: ::prost::alloc::string::String,
/// Key ID.
#[prost(string, tag = "4")]
pub kid: ::prost::alloc::string::String,
/// Used for RSA keys.
#[prost(string, tag = "5")]
pub n: ::prost::alloc::string::String,
/// Used for RSA keys.
#[prost(string, tag = "6")]
pub e: ::prost::alloc::string::String,
/// Used for ECDSA keys.
#[prost(string, tag = "7")]
pub x: ::prost::alloc::string::String,
/// Used for ECDSA keys.
#[prost(string, tag = "8")]
pub y: ::prost::alloc::string::String,
/// Used for ECDSA keys.
#[prost(string, tag = "9")]
pub crv: ::prost::alloc::string::String,
}
/// GetJSONWebKeysResponse is a valid JSON Web Key Set as specififed in rfc 7517
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetJsonWebKeysResponse {
/// The public component of the keys used by the cluster to sign token
/// requests.
#[prost(message, repeated, tag = "1")]
pub keys: ::prost::alloc::vec::Vec<Jwk>,
}
/// CheckAutopilotCompatibilityRequest requests getting the blockers for the
/// given operation in the cluster.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CheckAutopilotCompatibilityRequest {
/// The name (project, location, cluster) of the cluster to retrieve.
/// Specified in the format `projects/*/locations/*/clusters/*`.
#[prost(string, tag = "1")]
pub name: ::prost::alloc::string::String,
}
/// AutopilotCompatibilityIssue contains information about a specific
/// compatibility issue with Autopilot mode.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct AutopilotCompatibilityIssue {
/// The last time when this issue was observed.
#[prost(message, optional, tag = "1")]
pub last_observation: ::core::option::Option<::prost_types::Timestamp>,
/// The constraint type of the issue.
#[prost(string, tag = "2")]
pub constraint_type: ::prost::alloc::string::String,
/// The incompatibility type of this issue.
#[prost(enumeration = "autopilot_compatibility_issue::IssueType", tag = "3")]
pub incompatibility_type: i32,
/// The name of the resources which are subject to this issue.
#[prost(string, repeated, tag = "4")]
pub subjects: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
/// A URL to a public documnetation, which addresses resolving this issue.
#[prost(string, tag = "5")]
pub documentation_url: ::prost::alloc::string::String,
/// The description of the issue.
#[prost(string, tag = "6")]
pub description: ::prost::alloc::string::String,
}
/// Nested message and enum types in `AutopilotCompatibilityIssue`.
pub mod autopilot_compatibility_issue {
/// The type of the reported issue.
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum IssueType {
/// Default value, should not be used.
Unspecified = 0,
/// Indicates that the issue is a known incompatibility between the
/// cluster and Autopilot mode.
Incompatibility = 1,
/// Indicates the issue is an incompatibility if customers take no further
/// action to resolve.
AdditionalConfigRequired = 2,
/// Indicates the issue is not an incompatibility, but depending on the
/// workloads business logic, there is a potential that they won't work on
/// Autopilot.
PassedWithOptionalConfig = 3,
}
impl IssueType {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
IssueType::Unspecified => "UNSPECIFIED",
IssueType::Incompatibility => "INCOMPATIBILITY",
IssueType::AdditionalConfigRequired => "ADDITIONAL_CONFIG_REQUIRED",
IssueType::PassedWithOptionalConfig => "PASSED_WITH_OPTIONAL_CONFIG",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"UNSPECIFIED" => Some(Self::Unspecified),
"INCOMPATIBILITY" => Some(Self::Incompatibility),
"ADDITIONAL_CONFIG_REQUIRED" => Some(Self::AdditionalConfigRequired),
"PASSED_WITH_OPTIONAL_CONFIG" => Some(Self::PassedWithOptionalConfig),
_ => None,
}
}
}
}
/// CheckAutopilotCompatibilityResponse has a list of compatibility issues.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CheckAutopilotCompatibilityResponse {
/// The list of issues for the given operation.
#[prost(message, repeated, tag = "1")]
pub issues: ::prost::alloc::vec::Vec<AutopilotCompatibilityIssue>,
/// The summary of the autopilot compatibility response.
#[prost(string, tag = "2")]
pub summary: ::prost::alloc::string::String,
}
/// ReleaseChannel indicates which release channel a cluster is
/// subscribed to. Release channels are arranged in order of risk.
///
/// When a cluster is subscribed to a release channel, Google maintains
/// both the master version and the node version. Node auto-upgrade
/// defaults to true and cannot be disabled.
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct ReleaseChannel {
/// channel specifies which release channel the cluster is subscribed to.
#[prost(enumeration = "release_channel::Channel", tag = "1")]
pub channel: i32,
}
/// Nested message and enum types in `ReleaseChannel`.
pub mod release_channel {
/// Possible values for 'channel'.
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum Channel {
/// No channel specified.
Unspecified = 0,
/// RAPID channel is offered on an early access basis for customers who want
/// to test new releases.
///
/// WARNING: Versions available in the RAPID Channel may be subject to
/// unresolved issues with no known workaround and are not subject to any
/// SLAs.
Rapid = 1,
/// Clusters subscribed to REGULAR receive versions that are considered GA
/// quality. REGULAR is intended for production users who want to take
/// advantage of new features.
Regular = 2,
/// Clusters subscribed to STABLE receive versions that are known to be
/// stable and reliable in production.
Stable = 3,
/// Clusters subscribed to EXTENDED receive extended support and availability
/// for versions which are known to be stable and reliable in production.
Extended = 4,
}
impl Channel {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
Channel::Unspecified => "UNSPECIFIED",
Channel::Rapid => "RAPID",
Channel::Regular => "REGULAR",
Channel::Stable => "STABLE",
Channel::Extended => "EXTENDED",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"UNSPECIFIED" => Some(Self::Unspecified),
"RAPID" => Some(Self::Rapid),
"REGULAR" => Some(Self::Regular),
"STABLE" => Some(Self::Stable),
"EXTENDED" => Some(Self::Extended),
_ => None,
}
}
}
}
/// Configuration for fine-grained cost management feature.
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct CostManagementConfig {
/// Whether the feature is enabled or not.
#[prost(bool, tag = "1")]
pub enabled: bool,
}
/// Configuration for Cloud TPU.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct TpuConfig {
/// Whether Cloud TPU integration is enabled or not.
#[prost(bool, tag = "1")]
pub enabled: bool,
/// Whether to use service networking for Cloud TPU or not.
#[prost(bool, tag = "2")]
pub use_service_networking: bool,
/// IPv4 CIDR block reserved for Cloud TPU in the VPC.
#[prost(string, tag = "3")]
pub ipv4_cidr_block: ::prost::alloc::string::String,
}
/// Master is the configuration for components on master.
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct Master {}
/// AutopilotConversionStatus represents conversion status.
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct AutopilotConversionStatus {
/// Output only. The current state of the conversion.
#[prost(enumeration = "autopilot_conversion_status::State", tag = "2")]
pub state: i32,
}
/// Nested message and enum types in `AutopilotConversionStatus`.
pub mod autopilot_conversion_status {
/// The current state of the conversion.
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum State {
/// STATE_UNSPECIFIED indicates the state is unspecified.
Unspecified = 0,
/// DONE indicates the conversion has been completed. Old node pools will
/// continue being deleted in the background.
Done = 5,
}
impl State {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
State::Unspecified => "STATE_UNSPECIFIED",
State::Done => "DONE",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"STATE_UNSPECIFIED" => Some(Self::Unspecified),
"DONE" => Some(Self::Done),
_ => None,
}
}
}
}
/// Autopilot is the configuration for Autopilot settings on the cluster.
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct Autopilot {
/// Enable Autopilot
#[prost(bool, tag = "1")]
pub enabled: bool,
/// Workload policy configuration for Autopilot.
#[prost(message, optional, tag = "2")]
pub workload_policy_config: ::core::option::Option<WorkloadPolicyConfig>,
/// Output only. ConversionStatus shows conversion status.
#[prost(message, optional, tag = "3")]
pub conversion_status: ::core::option::Option<AutopilotConversionStatus>,
}
/// WorkloadPolicyConfig is the configuration of workload policy for autopilot
/// clusters.
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct WorkloadPolicyConfig {
/// If true, workloads can use NET_ADMIN capability.
#[prost(bool, optional, tag = "1")]
pub allow_net_admin: ::core::option::Option<bool>,
}
/// NotificationConfig is the configuration of notifications.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct NotificationConfig {
/// Notification config for Pub/Sub.
#[prost(message, optional, tag = "1")]
pub pubsub: ::core::option::Option<notification_config::PubSub>,
}
/// Nested message and enum types in `NotificationConfig`.
pub mod notification_config {
/// Pub/Sub specific notification config.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct PubSub {
/// Enable notifications for Pub/Sub.
#[prost(bool, tag = "1")]
pub enabled: bool,
/// The desired Pub/Sub topic to which notifications will be
/// sent by GKE. Format is `projects/{project}/topics/{topic}`.
#[prost(string, tag = "2")]
pub topic: ::prost::alloc::string::String,
/// Allows filtering to one or more specific event types. If no filter is
/// specified, or if a filter is specified with no event types, all event
/// types will be sent
#[prost(message, optional, tag = "3")]
pub filter: ::core::option::Option<Filter>,
}
/// Allows filtering to one or more specific event types. If event types are
/// present, those and only those event types will be transmitted to the
/// cluster. Other types will be skipped. If no filter is specified, or no
/// event types are present, all event types will be sent
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Filter {
/// Event types to allowlist.
#[prost(enumeration = "EventType", repeated, tag = "1")]
pub event_type: ::prost::alloc::vec::Vec<i32>,
}
/// Types of notifications currently supported. Can be used to filter what
/// notifications are sent.
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum EventType {
/// Not set, will be ignored.
Unspecified = 0,
/// Corresponds with UpgradeAvailableEvent.
UpgradeAvailableEvent = 1,
/// Corresponds with UpgradeEvent.
UpgradeEvent = 2,
/// Corresponds with SecurityBulletinEvent.
SecurityBulletinEvent = 3,
}
impl EventType {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
EventType::Unspecified => "EVENT_TYPE_UNSPECIFIED",
EventType::UpgradeAvailableEvent => "UPGRADE_AVAILABLE_EVENT",
EventType::UpgradeEvent => "UPGRADE_EVENT",
EventType::SecurityBulletinEvent => "SECURITY_BULLETIN_EVENT",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"EVENT_TYPE_UNSPECIFIED" => Some(Self::Unspecified),
"UPGRADE_AVAILABLE_EVENT" => Some(Self::UpgradeAvailableEvent),
"UPGRADE_EVENT" => Some(Self::UpgradeEvent),
"SECURITY_BULLETIN_EVENT" => Some(Self::SecurityBulletinEvent),
_ => None,
}
}
}
}
/// ConfidentialNodes is configuration for the confidential nodes feature, which
/// makes nodes run on confidential VMs.
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct ConfidentialNodes {
/// Whether Confidential Nodes feature is enabled.
#[prost(bool, tag = "1")]
pub enabled: bool,
}
/// UpgradeEvent is a notification sent to customers by the cluster server when
/// a resource is upgrading.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct UpgradeEvent {
/// The resource type that is upgrading.
#[prost(enumeration = "UpgradeResourceType", tag = "1")]
pub resource_type: i32,
/// The operation associated with this upgrade.
#[prost(string, tag = "2")]
pub operation: ::prost::alloc::string::String,
/// The time when the operation was started.
#[prost(message, optional, tag = "3")]
pub operation_start_time: ::core::option::Option<::prost_types::Timestamp>,
/// The current version before the upgrade.
#[prost(string, tag = "4")]
pub current_version: ::prost::alloc::string::String,
/// The target version for the upgrade.
#[prost(string, tag = "5")]
pub target_version: ::prost::alloc::string::String,
/// Optional relative path to the resource. For example in node pool upgrades,
/// the relative path of the node pool.
#[prost(string, tag = "6")]
pub resource: ::prost::alloc::string::String,
}
/// UpgradeAvailableEvent is a notification sent to customers when a new
/// available version is released.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct UpgradeAvailableEvent {
/// The release version available for upgrade.
#[prost(string, tag = "1")]
pub version: ::prost::alloc::string::String,
/// The resource type of the release version.
#[prost(enumeration = "UpgradeResourceType", tag = "2")]
pub resource_type: i32,
/// The release channel of the version. If empty, it means a non-channel
/// release.
#[prost(message, optional, tag = "3")]
pub release_channel: ::core::option::Option<ReleaseChannel>,
/// Optional relative path to the resource. For example, the relative path of
/// the node pool.
#[prost(string, tag = "4")]
pub resource: ::prost::alloc::string::String,
/// Windows node versions info.
#[prost(message, optional, tag = "5")]
pub windows_versions: ::core::option::Option<WindowsVersions>,
}
/// SecurityBulletinEvent is a notification sent to customers when a security
/// bulletin has been posted that they are vulnerable to.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SecurityBulletinEvent {
/// The resource type (node/control plane) that has the vulnerability. Multiple
/// notifications (1 notification per resource type) will be sent for a
/// vulnerability that affects > 1 resource type.
#[prost(string, tag = "1")]
pub resource_type_affected: ::prost::alloc::string::String,
/// The ID of the bulletin corresponding to the vulnerability.
#[prost(string, tag = "2")]
pub bulletin_id: ::prost::alloc::string::String,
/// The CVEs associated with this bulletin.
#[prost(string, repeated, tag = "3")]
pub cve_ids: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
/// The severity of this bulletin as it relates to GKE.
#[prost(string, tag = "4")]
pub severity: ::prost::alloc::string::String,
/// The URI link to the bulletin on the website for more information.
#[prost(string, tag = "5")]
pub bulletin_uri: ::prost::alloc::string::String,
/// A brief description of the bulletin. See the bulletin pointed to by the
/// bulletin_uri field for an expanded description.
#[prost(string, tag = "6")]
pub brief_description: ::prost::alloc::string::String,
/// The GKE minor versions affected by this vulnerability.
#[prost(string, repeated, tag = "7")]
pub affected_supported_minors: ::prost::alloc::vec::Vec<
::prost::alloc::string::String,
>,
/// The GKE versions where this vulnerability is patched.
#[prost(string, repeated, tag = "8")]
pub patched_versions: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
/// This represents a version selected from the patched_versions field that
/// the cluster receiving this notification should most likely want to upgrade
/// to based on its current version. Note that if this notification is being
/// received by a given cluster, it means that this version is currently
/// available as an upgrade target in that cluster's location.
#[prost(string, tag = "9")]
pub suggested_upgrade_target: ::prost::alloc::string::String,
/// If this field is specified, it means there are manual steps that the user
/// must take to make their clusters safe.
#[prost(bool, tag = "10")]
pub manual_steps_required: bool,
}
/// IdentityServiceConfig is configuration for Identity Service which allows
/// customers to use external identity providers with the K8S API
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct IdentityServiceConfig {
/// Whether to enable the Identity Service component
#[prost(bool, tag = "1")]
pub enabled: bool,
}
/// LoggingConfig is cluster logging configuration.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct LoggingConfig {
/// Logging components configuration
#[prost(message, optional, tag = "1")]
pub component_config: ::core::option::Option<LoggingComponentConfig>,
}
/// LoggingComponentConfig is cluster logging component configuration.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct LoggingComponentConfig {
/// Select components to collect logs. An empty set would disable all logging.
#[prost(enumeration = "logging_component_config::Component", repeated, tag = "1")]
pub enable_components: ::prost::alloc::vec::Vec<i32>,
}
/// Nested message and enum types in `LoggingComponentConfig`.
pub mod logging_component_config {
/// GKE components exposing logs
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum Component {
/// Default value. This shouldn't be used.
Unspecified = 0,
/// system components
SystemComponents = 1,
/// workloads
Workloads = 2,
/// kube-apiserver
Apiserver = 3,
/// kube-scheduler
Scheduler = 4,
/// kube-controller-manager
ControllerManager = 5,
}
impl Component {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
Component::Unspecified => "COMPONENT_UNSPECIFIED",
Component::SystemComponents => "SYSTEM_COMPONENTS",
Component::Workloads => "WORKLOADS",
Component::Apiserver => "APISERVER",
Component::Scheduler => "SCHEDULER",
Component::ControllerManager => "CONTROLLER_MANAGER",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"COMPONENT_UNSPECIFIED" => Some(Self::Unspecified),
"SYSTEM_COMPONENTS" => Some(Self::SystemComponents),
"WORKLOADS" => Some(Self::Workloads),
"APISERVER" => Some(Self::Apiserver),
"SCHEDULER" => Some(Self::Scheduler),
"CONTROLLER_MANAGER" => Some(Self::ControllerManager),
_ => None,
}
}
}
}
/// RayClusterLoggingConfig specifies logging configuration for Ray clusters.
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct RayClusterLoggingConfig {
/// Enable log collection for Ray clusters.
#[prost(bool, tag = "1")]
pub enabled: bool,
}
/// MonitoringConfig is cluster monitoring configuration.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct MonitoringConfig {
/// Monitoring components configuration
#[prost(message, optional, tag = "1")]
pub component_config: ::core::option::Option<MonitoringComponentConfig>,
/// Enable Google Cloud Managed Service for Prometheus
/// in the cluster.
#[prost(message, optional, tag = "2")]
pub managed_prometheus_config: ::core::option::Option<ManagedPrometheusConfig>,
/// Configuration of Advanced Datapath Observability features.
#[prost(message, optional, tag = "3")]
pub advanced_datapath_observability_config: ::core::option::Option<
AdvancedDatapathObservabilityConfig,
>,
}
/// AdvancedDatapathObservabilityConfig specifies configuration of observability
/// features of advanced datapath.
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct AdvancedDatapathObservabilityConfig {
/// Expose flow metrics on nodes
#[prost(bool, tag = "1")]
pub enable_metrics: bool,
/// Method used to make Relay available
#[prost(
enumeration = "advanced_datapath_observability_config::RelayMode",
tag = "2"
)]
pub relay_mode: i32,
/// Enable Relay component
#[prost(bool, optional, tag = "3")]
pub enable_relay: ::core::option::Option<bool>,
}
/// Nested message and enum types in `AdvancedDatapathObservabilityConfig`.
pub mod advanced_datapath_observability_config {
/// Supported Relay modes
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum RelayMode {
/// Default value. This shouldn't be used.
Unspecified = 0,
/// disabled
Disabled = 1,
/// exposed via internal load balancer
InternalVpcLb = 3,
/// exposed via external load balancer
ExternalLb = 4,
}
impl RelayMode {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
RelayMode::Unspecified => "RELAY_MODE_UNSPECIFIED",
RelayMode::Disabled => "DISABLED",
RelayMode::InternalVpcLb => "INTERNAL_VPC_LB",
RelayMode::ExternalLb => "EXTERNAL_LB",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"RELAY_MODE_UNSPECIFIED" => Some(Self::Unspecified),
"DISABLED" => Some(Self::Disabled),
"INTERNAL_VPC_LB" => Some(Self::InternalVpcLb),
"EXTERNAL_LB" => Some(Self::ExternalLb),
_ => None,
}
}
}
}
/// RayClusterMonitoringConfig specifies monitoring configuration for Ray
/// clusters.
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct RayClusterMonitoringConfig {
/// Enable metrics collection for Ray clusters.
#[prost(bool, tag = "1")]
pub enabled: bool,
}
/// NodePoolLoggingConfig specifies logging configuration for nodepools.
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct NodePoolLoggingConfig {
/// Logging variant configuration.
#[prost(message, optional, tag = "1")]
pub variant_config: ::core::option::Option<LoggingVariantConfig>,
}
/// LoggingVariantConfig specifies the behaviour of the logging component.
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct LoggingVariantConfig {
/// Logging variant deployed on nodes.
#[prost(enumeration = "logging_variant_config::Variant", tag = "1")]
pub variant: i32,
}
/// Nested message and enum types in `LoggingVariantConfig`.
pub mod logging_variant_config {
/// Logging component variants.
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum Variant {
/// Default value. This shouldn't be used.
Unspecified = 0,
/// default logging variant.
Default = 1,
/// maximum logging throughput variant.
MaxThroughput = 2,
}
impl Variant {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
Variant::Unspecified => "VARIANT_UNSPECIFIED",
Variant::Default => "DEFAULT",
Variant::MaxThroughput => "MAX_THROUGHPUT",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"VARIANT_UNSPECIFIED" => Some(Self::Unspecified),
"DEFAULT" => Some(Self::Default),
"MAX_THROUGHPUT" => Some(Self::MaxThroughput),
_ => None,
}
}
}
}
/// MonitoringComponentConfig is cluster monitoring component configuration.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct MonitoringComponentConfig {
/// Select components to collect metrics. An empty set would disable all
/// monitoring.
#[prost(enumeration = "monitoring_component_config::Component", repeated, tag = "1")]
pub enable_components: ::prost::alloc::vec::Vec<i32>,
}
/// Nested message and enum types in `MonitoringComponentConfig`.
pub mod monitoring_component_config {
/// GKE components exposing metrics
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum Component {
/// Default value. This shouldn't be used.
Unspecified = 0,
/// system components
SystemComponents = 1,
/// Deprecated: Use Google Cloud Managed Service for Prometheus.
Workloads = 2,
/// kube-apiserver
Apiserver = 3,
/// kube-scheduler
Scheduler = 4,
/// kube-controller-manager
ControllerManager = 5,
/// Storage
Storage = 7,
/// Horizontal Pod Autoscaling
Hpa = 8,
/// Pod
Pod = 9,
/// DaemonSet
Daemonset = 10,
/// Deployment
Deployment = 11,
/// Statefulset
Statefulset = 12,
/// CADVISOR
Cadvisor = 13,
/// KUBELET
Kubelet = 14,
/// NVIDIA Data Center GPU Manager (DCGM)
Dcgm = 15,
}
impl Component {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
Component::Unspecified => "COMPONENT_UNSPECIFIED",
Component::SystemComponents => "SYSTEM_COMPONENTS",
Component::Workloads => "WORKLOADS",
Component::Apiserver => "APISERVER",
Component::Scheduler => "SCHEDULER",
Component::ControllerManager => "CONTROLLER_MANAGER",
Component::Storage => "STORAGE",
Component::Hpa => "HPA",
Component::Pod => "POD",
Component::Daemonset => "DAEMONSET",
Component::Deployment => "DEPLOYMENT",
Component::Statefulset => "STATEFULSET",
Component::Cadvisor => "CADVISOR",
Component::Kubelet => "KUBELET",
Component::Dcgm => "DCGM",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"COMPONENT_UNSPECIFIED" => Some(Self::Unspecified),
"SYSTEM_COMPONENTS" => Some(Self::SystemComponents),
"WORKLOADS" => Some(Self::Workloads),
"APISERVER" => Some(Self::Apiserver),
"SCHEDULER" => Some(Self::Scheduler),
"CONTROLLER_MANAGER" => Some(Self::ControllerManager),
"STORAGE" => Some(Self::Storage),
"HPA" => Some(Self::Hpa),
"POD" => Some(Self::Pod),
"DAEMONSET" => Some(Self::Daemonset),
"DEPLOYMENT" => Some(Self::Deployment),
"STATEFULSET" => Some(Self::Statefulset),
"CADVISOR" => Some(Self::Cadvisor),
"KUBELET" => Some(Self::Kubelet),
"DCGM" => Some(Self::Dcgm),
_ => None,
}
}
}
}
/// Fleet is the fleet configuration for the cluster.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Fleet {
/// The Fleet host project(project ID or project number) where this cluster
/// will be registered to. This field cannot be changed after the cluster has
/// been registered.
#[prost(string, tag = "1")]
pub project: ::prost::alloc::string::String,
/// Output only. The full resource name of the registered fleet membership of
/// the cluster, in the format
/// `//gkehub.googleapis.com/projects/*/locations/*/memberships/*`.
#[prost(string, tag = "2")]
pub membership: ::prost::alloc::string::String,
/// Output only. Whether the cluster has been registered through the fleet
/// API.
#[prost(bool, tag = "3")]
pub pre_registered: bool,
}
/// A map of resource manager tag keys and values to be attached to the nodes
/// for managing Compute Engine firewalls using Network Firewall Policies.
/// Tags must be according to specifications in
/// <https://cloud.google.com/vpc/docs/tags-firewalls-overview#specifications.>
/// A maximum of 5 tag key-value pairs can be specified.
/// Existing tags will be replaced with new values.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ResourceManagerTags {
/// Tags must be in one of the following formats (\[KEY\]=[VALUE])
/// 1. `tagKeys/{tag_key_id}=tagValues/{tag_value_id}`
/// 2. `{org_id}/{tag_key_name}={tag_value_name}`
/// 3. `{project_id}/{tag_key_name}={tag_value_name}`
#[prost(btree_map = "string, string", tag = "1")]
pub tags: ::prost::alloc::collections::BTreeMap<
::prost::alloc::string::String,
::prost::alloc::string::String,
>,
}
/// EnterpriseConfig is the cluster enterprise configuration.
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct EnterpriseConfig {
/// Output only. cluster_tier specifies the premium tier of the cluster.
#[prost(enumeration = "enterprise_config::ClusterTier", tag = "1")]
pub cluster_tier: i32,
}
/// Nested message and enum types in `EnterpriseConfig`.
pub mod enterprise_config {
/// Premium tiers for GKE Cluster.
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum ClusterTier {
/// CLUSTER_TIER_UNSPECIFIED is when cluster_tier is not set.
Unspecified = 0,
/// STANDARD indicates a standard GKE cluster.
Standard = 1,
/// ENTERPRISE indicates a GKE Enterprise cluster.
Enterprise = 2,
}
impl ClusterTier {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
ClusterTier::Unspecified => "CLUSTER_TIER_UNSPECIFIED",
ClusterTier::Standard => "STANDARD",
ClusterTier::Enterprise => "ENTERPRISE",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"CLUSTER_TIER_UNSPECIFIED" => Some(Self::Unspecified),
"STANDARD" => Some(Self::Standard),
"ENTERPRISE" => Some(Self::Enterprise),
_ => None,
}
}
}
}
/// SecretManagerConfig is config for secret manager enablement.
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct SecretManagerConfig {
/// Whether the cluster is configured to use secret manager CSI component.
#[prost(bool, optional, tag = "1")]
pub enabled: ::core::option::Option<bool>,
}
/// SecondaryBootDisk represents a persistent disk attached to a node
/// with special configurations based on its mode.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SecondaryBootDisk {
/// Disk mode (container image cache, etc.)
#[prost(enumeration = "secondary_boot_disk::Mode", tag = "1")]
pub mode: i32,
/// Fully-qualified resource ID for an existing disk image.
#[prost(string, tag = "2")]
pub disk_image: ::prost::alloc::string::String,
}
/// Nested message and enum types in `SecondaryBootDisk`.
pub mod secondary_boot_disk {
/// Mode specifies how the secondary boot disk will be used.
/// This triggers mode-specified logic in the control plane.
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum Mode {
/// MODE_UNSPECIFIED is when mode is not set.
Unspecified = 0,
/// CONTAINER_IMAGE_CACHE is for using the secondary boot disk as
/// a container image cache.
ContainerImageCache = 1,
}
impl Mode {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
Mode::Unspecified => "MODE_UNSPECIFIED",
Mode::ContainerImageCache => "CONTAINER_IMAGE_CACHE",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"MODE_UNSPECIFIED" => Some(Self::Unspecified),
"CONTAINER_IMAGE_CACHE" => Some(Self::ContainerImageCache),
_ => None,
}
}
}
}
/// SecondaryBootDiskUpdateStrategy is a placeholder which will be extended
/// in the future to define different options for updating secondary boot disks.
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct SecondaryBootDiskUpdateStrategy {}
/// PrivateIPv6GoogleAccess controls whether and how the pods can communicate
/// with Google Services through gRPC over IPv6.
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
#[repr(i32)]
pub enum PrivateIPv6GoogleAccess {
/// Default value. Same as DISABLED
PrivateIpv6GoogleAccessUnspecified = 0,
/// No private access to or from Google Services
PrivateIpv6GoogleAccessDisabled = 1,
/// Enables private IPv6 access to Google Services from GKE
PrivateIpv6GoogleAccessToGoogle = 2,
/// Enables private IPv6 access to and from Google Services
PrivateIpv6GoogleAccessBidirectional = 3,
}
impl PrivateIPv6GoogleAccess {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
PrivateIPv6GoogleAccess::PrivateIpv6GoogleAccessUnspecified => {
"PRIVATE_IPV6_GOOGLE_ACCESS_UNSPECIFIED"
}
PrivateIPv6GoogleAccess::PrivateIpv6GoogleAccessDisabled => {
"PRIVATE_IPV6_GOOGLE_ACCESS_DISABLED"
}
PrivateIPv6GoogleAccess::PrivateIpv6GoogleAccessToGoogle => {
"PRIVATE_IPV6_GOOGLE_ACCESS_TO_GOOGLE"
}
PrivateIPv6GoogleAccess::PrivateIpv6GoogleAccessBidirectional => {
"PRIVATE_IPV6_GOOGLE_ACCESS_BIDIRECTIONAL"
}
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"PRIVATE_IPV6_GOOGLE_ACCESS_UNSPECIFIED" => {
Some(Self::PrivateIpv6GoogleAccessUnspecified)
}
"PRIVATE_IPV6_GOOGLE_ACCESS_DISABLED" => {
Some(Self::PrivateIpv6GoogleAccessDisabled)
}
"PRIVATE_IPV6_GOOGLE_ACCESS_TO_GOOGLE" => {
Some(Self::PrivateIpv6GoogleAccessToGoogle)
}
"PRIVATE_IPV6_GOOGLE_ACCESS_BIDIRECTIONAL" => {
Some(Self::PrivateIpv6GoogleAccessBidirectional)
}
_ => None,
}
}
}
/// UpgradeResourceType is the resource type that is upgrading. It is used
/// in upgrade notifications.
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
#[repr(i32)]
pub enum UpgradeResourceType {
/// Default value. This shouldn't be used.
Unspecified = 0,
/// Master / control plane
Master = 1,
/// Node pool
NodePool = 2,
}
impl UpgradeResourceType {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
UpgradeResourceType::Unspecified => "UPGRADE_RESOURCE_TYPE_UNSPECIFIED",
UpgradeResourceType::Master => "MASTER",
UpgradeResourceType::NodePool => "NODE_POOL",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"UPGRADE_RESOURCE_TYPE_UNSPECIFIED" => Some(Self::Unspecified),
"MASTER" => Some(Self::Master),
"NODE_POOL" => Some(Self::NodePool),
_ => None,
}
}
}
/// Strategy used for node pool update.
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
#[repr(i32)]
pub enum NodePoolUpdateStrategy {
/// Default value if unset. GKE internally defaults the update strategy to
/// SURGE for unspecified strategies.
Unspecified = 0,
/// blue-green upgrade.
BlueGreen = 2,
/// SURGE is the traditional way of upgrading a node pool.
/// max_surge and max_unavailable determines the level of upgrade parallelism.
Surge = 3,
}
impl NodePoolUpdateStrategy {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
NodePoolUpdateStrategy::Unspecified => {
"NODE_POOL_UPDATE_STRATEGY_UNSPECIFIED"
}
NodePoolUpdateStrategy::BlueGreen => "BLUE_GREEN",
NodePoolUpdateStrategy::Surge => "SURGE",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"NODE_POOL_UPDATE_STRATEGY_UNSPECIFIED" => Some(Self::Unspecified),
"BLUE_GREEN" => Some(Self::BlueGreen),
"SURGE" => Some(Self::Surge),
_ => None,
}
}
}
/// The datapath provider selects the implementation of the Kubernetes networking
/// model for service resolution and network policy enforcement.
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
#[repr(i32)]
pub enum DatapathProvider {
/// Default value.
Unspecified = 0,
/// Use the IPTables implementation based on kube-proxy.
LegacyDatapath = 1,
/// Use the eBPF based GKE Dataplane V2 with additional features. See the [GKE
/// Dataplane V2
/// documentation](<https://cloud.google.com/kubernetes-engine/docs/how-to/dataplane-v2>)
/// for more.
AdvancedDatapath = 2,
}
impl DatapathProvider {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
DatapathProvider::Unspecified => "DATAPATH_PROVIDER_UNSPECIFIED",
DatapathProvider::LegacyDatapath => "LEGACY_DATAPATH",
DatapathProvider::AdvancedDatapath => "ADVANCED_DATAPATH",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"DATAPATH_PROVIDER_UNSPECIFIED" => Some(Self::Unspecified),
"LEGACY_DATAPATH" => Some(Self::LegacyDatapath),
"ADVANCED_DATAPATH" => Some(Self::AdvancedDatapath),
_ => None,
}
}
}
/// Possible values for IP stack type
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
#[repr(i32)]
pub enum StackType {
/// By default, the clusters will be IPV4 only
Unspecified = 0,
/// The value used if the cluster is a IPV4 only
Ipv4 = 1,
/// The value used if the cluster is a dual stack cluster
Ipv4Ipv6 = 2,
}
impl StackType {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
StackType::Unspecified => "STACK_TYPE_UNSPECIFIED",
StackType::Ipv4 => "IPV4",
StackType::Ipv4Ipv6 => "IPV4_IPV6",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"STACK_TYPE_UNSPECIFIED" => Some(Self::Unspecified),
"IPV4" => Some(Self::Ipv4),
"IPV4_IPV6" => Some(Self::Ipv4Ipv6),
_ => None,
}
}
}
/// Options for in-transit encryption.
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
#[repr(i32)]
pub enum InTransitEncryptionConfig {
/// Unspecified, will be inferred as default -
/// IN_TRANSIT_ENCRYPTION_UNSPECIFIED.
Unspecified = 0,
/// In-transit encryption is disabled.
InTransitEncryptionDisabled = 1,
/// Data in-transit is encrypted using inter-node transparent encryption.
InTransitEncryptionInterNodeTransparent = 2,
}
impl InTransitEncryptionConfig {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
InTransitEncryptionConfig::Unspecified => {
"IN_TRANSIT_ENCRYPTION_CONFIG_UNSPECIFIED"
}
InTransitEncryptionConfig::InTransitEncryptionDisabled => {
"IN_TRANSIT_ENCRYPTION_DISABLED"
}
InTransitEncryptionConfig::InTransitEncryptionInterNodeTransparent => {
"IN_TRANSIT_ENCRYPTION_INTER_NODE_TRANSPARENT"
}
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"IN_TRANSIT_ENCRYPTION_CONFIG_UNSPECIFIED" => Some(Self::Unspecified),
"IN_TRANSIT_ENCRYPTION_DISABLED" => Some(Self::InTransitEncryptionDisabled),
"IN_TRANSIT_ENCRYPTION_INTER_NODE_TRANSPARENT" => {
Some(Self::InTransitEncryptionInterNodeTransparent)
}
_ => None,
}
}
}
/// Generated client implementations.
pub mod cluster_manager_client {
#![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)]
use tonic::codegen::*;
use tonic::codegen::http::Uri;
/// Google Kubernetes Engine Cluster Manager v1beta1
#[derive(Debug, Clone)]
pub struct ClusterManagerClient<T> {
inner: tonic::client::Grpc<T>,
}
impl<T> ClusterManagerClient<T>
where
T: tonic::client::GrpcService<tonic::body::BoxBody>,
T::Error: Into<StdError>,
T::ResponseBody: Body<Data = Bytes> + std::marker::Send + 'static,
<T::ResponseBody as Body>::Error: Into<StdError> + std::marker::Send,
{
pub fn new(inner: T) -> Self {
let inner = tonic::client::Grpc::new(inner);
Self { inner }
}
pub fn with_origin(inner: T, origin: Uri) -> Self {
let inner = tonic::client::Grpc::with_origin(inner, origin);
Self { inner }
}
pub fn with_interceptor<F>(
inner: T,
interceptor: F,
) -> ClusterManagerClient<InterceptedService<T, F>>
where
F: tonic::service::Interceptor,
T::ResponseBody: Default,
T: tonic::codegen::Service<
http::Request<tonic::body::BoxBody>,
Response = http::Response<
<T as tonic::client::GrpcService<tonic::body::BoxBody>>::ResponseBody,
>,
>,
<T as tonic::codegen::Service<
http::Request<tonic::body::BoxBody>,
>>::Error: Into<StdError> + std::marker::Send + std::marker::Sync,
{
ClusterManagerClient::new(InterceptedService::new(inner, interceptor))
}
/// Compress requests with the given encoding.
///
/// This requires the server to support it otherwise it might respond with an
/// error.
#[must_use]
pub fn send_compressed(mut self, encoding: CompressionEncoding) -> Self {
self.inner = self.inner.send_compressed(encoding);
self
}
/// Enable decompressing responses.
#[must_use]
pub fn accept_compressed(mut self, encoding: CompressionEncoding) -> Self {
self.inner = self.inner.accept_compressed(encoding);
self
}
/// Limits the maximum size of a decoded message.
///
/// Default: `4MB`
#[must_use]
pub fn max_decoding_message_size(mut self, limit: usize) -> Self {
self.inner = self.inner.max_decoding_message_size(limit);
self
}
/// Limits the maximum size of an encoded message.
///
/// Default: `usize::MAX`
#[must_use]
pub fn max_encoding_message_size(mut self, limit: usize) -> Self {
self.inner = self.inner.max_encoding_message_size(limit);
self
}
/// Lists all clusters owned by a project in either the specified zone or all
/// zones.
pub async fn list_clusters(
&mut self,
request: impl tonic::IntoRequest<super::ListClustersRequest>,
) -> std::result::Result<
tonic::Response<super::ListClustersResponse>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.container.v1beta1.ClusterManager/ListClusters",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.container.v1beta1.ClusterManager",
"ListClusters",
),
);
self.inner.unary(req, path, codec).await
}
/// Gets the details for a specific cluster.
pub async fn get_cluster(
&mut self,
request: impl tonic::IntoRequest<super::GetClusterRequest>,
) -> std::result::Result<tonic::Response<super::Cluster>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.container.v1beta1.ClusterManager/GetCluster",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.container.v1beta1.ClusterManager",
"GetCluster",
),
);
self.inner.unary(req, path, codec).await
}
/// Creates a cluster, consisting of the specified number and type of Google
/// Compute Engine instances.
///
/// By default, the cluster is created in the project's
/// [default
/// network](https://cloud.google.com/compute/docs/networks-and-firewalls#networks).
///
/// One firewall is added for the cluster. After cluster creation,
/// the Kubelet creates routes for each node to allow the containers
/// on that node to communicate with all other instances in the
/// cluster.
///
/// Finally, an entry is added to the project's global metadata indicating
/// which CIDR range the cluster is using.
pub async fn create_cluster(
&mut self,
request: impl tonic::IntoRequest<super::CreateClusterRequest>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.container.v1beta1.ClusterManager/CreateCluster",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.container.v1beta1.ClusterManager",
"CreateCluster",
),
);
self.inner.unary(req, path, codec).await
}
/// Updates the settings for a specific cluster.
pub async fn update_cluster(
&mut self,
request: impl tonic::IntoRequest<super::UpdateClusterRequest>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.container.v1beta1.ClusterManager/UpdateCluster",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.container.v1beta1.ClusterManager",
"UpdateCluster",
),
);
self.inner.unary(req, path, codec).await
}
/// Updates the version and/or image type of a specific node pool.
pub async fn update_node_pool(
&mut self,
request: impl tonic::IntoRequest<super::UpdateNodePoolRequest>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.container.v1beta1.ClusterManager/UpdateNodePool",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.container.v1beta1.ClusterManager",
"UpdateNodePool",
),
);
self.inner.unary(req, path, codec).await
}
/// Sets the autoscaling settings of a specific node pool.
pub async fn set_node_pool_autoscaling(
&mut self,
request: impl tonic::IntoRequest<super::SetNodePoolAutoscalingRequest>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.container.v1beta1.ClusterManager/SetNodePoolAutoscaling",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.container.v1beta1.ClusterManager",
"SetNodePoolAutoscaling",
),
);
self.inner.unary(req, path, codec).await
}
/// Sets the logging service for a specific cluster.
pub async fn set_logging_service(
&mut self,
request: impl tonic::IntoRequest<super::SetLoggingServiceRequest>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.container.v1beta1.ClusterManager/SetLoggingService",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.container.v1beta1.ClusterManager",
"SetLoggingService",
),
);
self.inner.unary(req, path, codec).await
}
/// Sets the monitoring service for a specific cluster.
pub async fn set_monitoring_service(
&mut self,
request: impl tonic::IntoRequest<super::SetMonitoringServiceRequest>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.container.v1beta1.ClusterManager/SetMonitoringService",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.container.v1beta1.ClusterManager",
"SetMonitoringService",
),
);
self.inner.unary(req, path, codec).await
}
/// Sets the addons for a specific cluster.
pub async fn set_addons_config(
&mut self,
request: impl tonic::IntoRequest<super::SetAddonsConfigRequest>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.container.v1beta1.ClusterManager/SetAddonsConfig",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.container.v1beta1.ClusterManager",
"SetAddonsConfig",
),
);
self.inner.unary(req, path, codec).await
}
/// Sets the locations for a specific cluster.
/// Deprecated. Use
/// [projects.locations.clusters.update](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1beta1/projects.locations.clusters/update)
/// instead.
pub async fn set_locations(
&mut self,
request: impl tonic::IntoRequest<super::SetLocationsRequest>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.container.v1beta1.ClusterManager/SetLocations",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.container.v1beta1.ClusterManager",
"SetLocations",
),
);
self.inner.unary(req, path, codec).await
}
/// Updates the master for a specific cluster.
pub async fn update_master(
&mut self,
request: impl tonic::IntoRequest<super::UpdateMasterRequest>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.container.v1beta1.ClusterManager/UpdateMaster",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.container.v1beta1.ClusterManager",
"UpdateMaster",
),
);
self.inner.unary(req, path, codec).await
}
/// Sets master auth materials. Currently supports changing the admin password
/// or a specific cluster, either via password generation or explicitly setting
/// the password.
pub async fn set_master_auth(
&mut self,
request: impl tonic::IntoRequest<super::SetMasterAuthRequest>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.container.v1beta1.ClusterManager/SetMasterAuth",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.container.v1beta1.ClusterManager",
"SetMasterAuth",
),
);
self.inner.unary(req, path, codec).await
}
/// Deletes the cluster, including the Kubernetes endpoint and all worker
/// nodes.
///
/// Firewalls and routes that were configured during cluster creation
/// are also deleted.
///
/// Other Google Compute Engine resources that might be in use by the cluster,
/// such as load balancer resources, are not deleted if they weren't present
/// when the cluster was initially created.
pub async fn delete_cluster(
&mut self,
request: impl tonic::IntoRequest<super::DeleteClusterRequest>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.container.v1beta1.ClusterManager/DeleteCluster",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.container.v1beta1.ClusterManager",
"DeleteCluster",
),
);
self.inner.unary(req, path, codec).await
}
/// Lists all operations in a project in the specified zone or all zones.
pub async fn list_operations(
&mut self,
request: impl tonic::IntoRequest<super::ListOperationsRequest>,
) -> std::result::Result<
tonic::Response<super::ListOperationsResponse>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.container.v1beta1.ClusterManager/ListOperations",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.container.v1beta1.ClusterManager",
"ListOperations",
),
);
self.inner.unary(req, path, codec).await
}
/// Gets the specified operation.
pub async fn get_operation(
&mut self,
request: impl tonic::IntoRequest<super::GetOperationRequest>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.container.v1beta1.ClusterManager/GetOperation",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.container.v1beta1.ClusterManager",
"GetOperation",
),
);
self.inner.unary(req, path, codec).await
}
/// Cancels the specified operation.
pub async fn cancel_operation(
&mut self,
request: impl tonic::IntoRequest<super::CancelOperationRequest>,
) -> std::result::Result<tonic::Response<()>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.container.v1beta1.ClusterManager/CancelOperation",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.container.v1beta1.ClusterManager",
"CancelOperation",
),
);
self.inner.unary(req, path, codec).await
}
/// Returns configuration info about the Google Kubernetes Engine service.
pub async fn get_server_config(
&mut self,
request: impl tonic::IntoRequest<super::GetServerConfigRequest>,
) -> std::result::Result<tonic::Response<super::ServerConfig>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.container.v1beta1.ClusterManager/GetServerConfig",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.container.v1beta1.ClusterManager",
"GetServerConfig",
),
);
self.inner.unary(req, path, codec).await
}
/// Gets the public component of the cluster signing keys in
/// JSON Web Key format.
pub async fn get_json_web_keys(
&mut self,
request: impl tonic::IntoRequest<super::GetJsonWebKeysRequest>,
) -> std::result::Result<
tonic::Response<super::GetJsonWebKeysResponse>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.container.v1beta1.ClusterManager/GetJSONWebKeys",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.container.v1beta1.ClusterManager",
"GetJSONWebKeys",
),
);
self.inner.unary(req, path, codec).await
}
/// Lists the node pools for a cluster.
pub async fn list_node_pools(
&mut self,
request: impl tonic::IntoRequest<super::ListNodePoolsRequest>,
) -> std::result::Result<
tonic::Response<super::ListNodePoolsResponse>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.container.v1beta1.ClusterManager/ListNodePools",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.container.v1beta1.ClusterManager",
"ListNodePools",
),
);
self.inner.unary(req, path, codec).await
}
/// Retrieves the requested node pool.
pub async fn get_node_pool(
&mut self,
request: impl tonic::IntoRequest<super::GetNodePoolRequest>,
) -> std::result::Result<tonic::Response<super::NodePool>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.container.v1beta1.ClusterManager/GetNodePool",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.container.v1beta1.ClusterManager",
"GetNodePool",
),
);
self.inner.unary(req, path, codec).await
}
/// Creates a node pool for a cluster.
pub async fn create_node_pool(
&mut self,
request: impl tonic::IntoRequest<super::CreateNodePoolRequest>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.container.v1beta1.ClusterManager/CreateNodePool",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.container.v1beta1.ClusterManager",
"CreateNodePool",
),
);
self.inner.unary(req, path, codec).await
}
/// Deletes a node pool from a cluster.
pub async fn delete_node_pool(
&mut self,
request: impl tonic::IntoRequest<super::DeleteNodePoolRequest>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.container.v1beta1.ClusterManager/DeleteNodePool",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.container.v1beta1.ClusterManager",
"DeleteNodePool",
),
);
self.inner.unary(req, path, codec).await
}
/// CompleteNodePoolUpgrade will signal an on-going node pool upgrade to
/// complete.
pub async fn complete_node_pool_upgrade(
&mut self,
request: impl tonic::IntoRequest<super::CompleteNodePoolUpgradeRequest>,
) -> std::result::Result<tonic::Response<()>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.container.v1beta1.ClusterManager/CompleteNodePoolUpgrade",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.container.v1beta1.ClusterManager",
"CompleteNodePoolUpgrade",
),
);
self.inner.unary(req, path, codec).await
}
/// Rolls back a previously Aborted or Failed NodePool upgrade.
/// This makes no changes if the last upgrade successfully completed.
pub async fn rollback_node_pool_upgrade(
&mut self,
request: impl tonic::IntoRequest<super::RollbackNodePoolUpgradeRequest>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.container.v1beta1.ClusterManager/RollbackNodePoolUpgrade",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.container.v1beta1.ClusterManager",
"RollbackNodePoolUpgrade",
),
);
self.inner.unary(req, path, codec).await
}
/// Sets the NodeManagement options for a node pool.
pub async fn set_node_pool_management(
&mut self,
request: impl tonic::IntoRequest<super::SetNodePoolManagementRequest>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.container.v1beta1.ClusterManager/SetNodePoolManagement",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.container.v1beta1.ClusterManager",
"SetNodePoolManagement",
),
);
self.inner.unary(req, path, codec).await
}
/// Sets labels on a cluster.
pub async fn set_labels(
&mut self,
request: impl tonic::IntoRequest<super::SetLabelsRequest>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.container.v1beta1.ClusterManager/SetLabels",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.container.v1beta1.ClusterManager",
"SetLabels",
),
);
self.inner.unary(req, path, codec).await
}
/// Enables or disables the ABAC authorization mechanism on a cluster.
pub async fn set_legacy_abac(
&mut self,
request: impl tonic::IntoRequest<super::SetLegacyAbacRequest>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.container.v1beta1.ClusterManager/SetLegacyAbac",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.container.v1beta1.ClusterManager",
"SetLegacyAbac",
),
);
self.inner.unary(req, path, codec).await
}
/// Starts master IP rotation.
pub async fn start_ip_rotation(
&mut self,
request: impl tonic::IntoRequest<super::StartIpRotationRequest>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.container.v1beta1.ClusterManager/StartIPRotation",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.container.v1beta1.ClusterManager",
"StartIPRotation",
),
);
self.inner.unary(req, path, codec).await
}
/// Completes master IP rotation.
pub async fn complete_ip_rotation(
&mut self,
request: impl tonic::IntoRequest<super::CompleteIpRotationRequest>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.container.v1beta1.ClusterManager/CompleteIPRotation",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.container.v1beta1.ClusterManager",
"CompleteIPRotation",
),
);
self.inner.unary(req, path, codec).await
}
/// SetNodePoolSizeRequest sets the size of a node pool. The new size will be
/// used for all replicas, including future replicas created by modifying
/// [NodePool.locations][google.container.v1beta1.NodePool.locations].
pub async fn set_node_pool_size(
&mut self,
request: impl tonic::IntoRequest<super::SetNodePoolSizeRequest>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.container.v1beta1.ClusterManager/SetNodePoolSize",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.container.v1beta1.ClusterManager",
"SetNodePoolSize",
),
);
self.inner.unary(req, path, codec).await
}
/// Enables or disables Network Policy for a cluster.
pub async fn set_network_policy(
&mut self,
request: impl tonic::IntoRequest<super::SetNetworkPolicyRequest>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.container.v1beta1.ClusterManager/SetNetworkPolicy",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.container.v1beta1.ClusterManager",
"SetNetworkPolicy",
),
);
self.inner.unary(req, path, codec).await
}
/// Sets the maintenance policy for a cluster.
pub async fn set_maintenance_policy(
&mut self,
request: impl tonic::IntoRequest<super::SetMaintenancePolicyRequest>,
) -> std::result::Result<tonic::Response<super::Operation>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.container.v1beta1.ClusterManager/SetMaintenancePolicy",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.container.v1beta1.ClusterManager",
"SetMaintenancePolicy",
),
);
self.inner.unary(req, path, codec).await
}
/// Lists subnetworks that can be used for creating clusters in a project.
pub async fn list_usable_subnetworks(
&mut self,
request: impl tonic::IntoRequest<super::ListUsableSubnetworksRequest>,
) -> std::result::Result<
tonic::Response<super::ListUsableSubnetworksResponse>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.container.v1beta1.ClusterManager/ListUsableSubnetworks",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.container.v1beta1.ClusterManager",
"ListUsableSubnetworks",
),
);
self.inner.unary(req, path, codec).await
}
/// Checks the cluster compatibility with Autopilot mode, and returns a list of
/// compatibility issues.
pub async fn check_autopilot_compatibility(
&mut self,
request: impl tonic::IntoRequest<super::CheckAutopilotCompatibilityRequest>,
) -> std::result::Result<
tonic::Response<super::CheckAutopilotCompatibilityResponse>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.container.v1beta1.ClusterManager/CheckAutopilotCompatibility",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.container.v1beta1.ClusterManager",
"CheckAutopilotCompatibility",
),
);
self.inner.unary(req, path, codec).await
}
/// Fetches locations that offer Google Kubernetes Engine.
pub async fn list_locations(
&mut self,
request: impl tonic::IntoRequest<super::ListLocationsRequest>,
) -> std::result::Result<
tonic::Response<super::ListLocationsResponse>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.container.v1beta1.ClusterManager/ListLocations",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.container.v1beta1.ClusterManager",
"ListLocations",
),
);
self.inner.unary(req, path, codec).await
}
}
}