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
// This file is @generated by prost-build.
/// Represents a Dataform Git repository.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Repository {
/// Output only. The repository's name.
#[prost(string, tag = "1")]
pub name: ::prost::alloc::string::String,
/// Optional. The repository's user-friendly name.
#[prost(string, tag = "8")]
pub display_name: ::prost::alloc::string::String,
/// Optional. If set, configures this repository to be linked to a Git remote.
#[prost(message, optional, tag = "2")]
pub git_remote_settings: ::core::option::Option<repository::GitRemoteSettings>,
/// Optional. The name of the Secret Manager secret version to be used to
/// interpolate variables into the .npmrc file for package installation
/// operations. Must be in the format `projects/*/secrets/*/versions/*`. The
/// file itself must be in a JSON format.
#[prost(string, tag = "3")]
pub npmrc_environment_variables_secret_version: ::prost::alloc::string::String,
/// Optional. If set, fields of `workspace_compilation_overrides` override the
/// default compilation settings that are specified in dataform.json when
/// creating workspace-scoped compilation results. See documentation for
/// `WorkspaceCompilationOverrides` for more information.
#[prost(message, optional, tag = "4")]
pub workspace_compilation_overrides: ::core::option::Option<
repository::WorkspaceCompilationOverrides,
>,
/// Optional. Repository user labels.
#[prost(btree_map = "string, string", tag = "5")]
pub labels: ::prost::alloc::collections::BTreeMap<
::prost::alloc::string::String,
::prost::alloc::string::String,
>,
/// Optional. Input only. If set to true, the authenticated user will be
/// granted the roles/dataform.admin role on the created repository. To modify
/// access to the created repository later apply setIamPolicy from
/// <https://cloud.google.com/dataform/reference/rest#rest-resource:-v1beta1.projects.locations.repositories>
#[prost(bool, tag = "9")]
pub set_authenticated_user_admin: bool,
/// Optional. The service account to run workflow invocations under.
#[prost(string, tag = "10")]
pub service_account: ::prost::alloc::string::String,
}
/// Nested message and enum types in `Repository`.
pub mod repository {
/// Controls Git remote configuration for a repository.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GitRemoteSettings {
/// Required. The Git remote's URL.
#[prost(string, tag = "1")]
pub url: ::prost::alloc::string::String,
/// Required. The Git remote's default branch name.
#[prost(string, tag = "2")]
pub default_branch: ::prost::alloc::string::String,
/// Optional. The name of the Secret Manager secret version to use as an
/// authentication token for Git operations. Must be in the format
/// `projects/*/secrets/*/versions/*`.
#[prost(string, tag = "3")]
pub authentication_token_secret_version: ::prost::alloc::string::String,
/// Optional. Authentication fields for remote uris using SSH protocol.
#[prost(message, optional, tag = "5")]
pub ssh_authentication_config: ::core::option::Option<
git_remote_settings::SshAuthenticationConfig,
>,
/// Output only. Deprecated: The field does not contain any token status
/// information. Instead use
/// <https://cloud.google.com/dataform/reference/rest/v1beta1/projects.locations.repositories/computeAccessTokenStatus>
#[deprecated]
#[prost(enumeration = "git_remote_settings::TokenStatus", tag = "4")]
pub token_status: i32,
}
/// Nested message and enum types in `GitRemoteSettings`.
pub mod git_remote_settings {
/// Configures fields for performing SSH authentication.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SshAuthenticationConfig {
/// Required. The name of the Secret Manager secret version to use as a
/// ssh private key for Git operations.
/// Must be in the format `projects/*/secrets/*/versions/*`.
#[prost(string, tag = "1")]
pub user_private_key_secret_version: ::prost::alloc::string::String,
/// Required. Content of a public SSH key to verify an identity of a remote
/// Git host.
#[prost(string, tag = "2")]
pub host_public_key: ::prost::alloc::string::String,
}
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum TokenStatus {
/// Default value. This value is unused.
Unspecified = 0,
/// The token could not be found in Secret Manager (or the Dataform
/// Service Account did not have permission to access it).
NotFound = 1,
/// The token could not be used to authenticate against the Git remote.
Invalid = 2,
/// The token was used successfully to authenticate against the Git remote.
Valid = 3,
}
impl TokenStatus {
/// 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 {
TokenStatus::Unspecified => "TOKEN_STATUS_UNSPECIFIED",
TokenStatus::NotFound => "NOT_FOUND",
TokenStatus::Invalid => "INVALID",
TokenStatus::Valid => "VALID",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"TOKEN_STATUS_UNSPECIFIED" => Some(Self::Unspecified),
"NOT_FOUND" => Some(Self::NotFound),
"INVALID" => Some(Self::Invalid),
"VALID" => Some(Self::Valid),
_ => None,
}
}
}
}
/// Configures workspace compilation overrides for a repository.
/// Primarily used by the UI (`console.cloud.google.com`).
/// `schema_suffix` and `table_prefix` can have a special expression -
/// `${workspaceName}`, which refers to the workspace name from which the
/// compilation results will be created. API callers are expected to resolve
/// the expression in these overrides and provide them explicitly in
/// `code_compilation_config`
/// (<https://cloud.google.com/dataform/reference/rest/v1beta1/projects.locations.repositories.compilationResults#codecompilationconfig>)
/// when creating workspace-scoped compilation results.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct WorkspaceCompilationOverrides {
/// Optional. The default database (Google Cloud project ID).
#[prost(string, tag = "1")]
pub default_database: ::prost::alloc::string::String,
/// Optional. The suffix that should be appended to all schema (BigQuery
/// dataset ID) names.
#[prost(string, tag = "2")]
pub schema_suffix: ::prost::alloc::string::String,
/// Optional. The prefix that should be prepended to all table names.
#[prost(string, tag = "3")]
pub table_prefix: ::prost::alloc::string::String,
}
}
/// `ListRepositories` request message.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListRepositoriesRequest {
/// Required. The location in which to list repositories. Must be in the format
/// `projects/*/locations/*`.
#[prost(string, tag = "1")]
pub parent: ::prost::alloc::string::String,
/// Optional. Maximum number of repositories to return. The server may return
/// fewer items than requested. If unspecified, the server will pick an
/// appropriate default.
#[prost(int32, tag = "2")]
pub page_size: i32,
/// Optional. Page token received from a previous `ListRepositories` call.
/// Provide this to retrieve the subsequent page.
///
/// When paginating, all other parameters provided to `ListRepositories`
/// must match the call that provided the page token.
#[prost(string, tag = "3")]
pub page_token: ::prost::alloc::string::String,
/// Optional. This field only supports ordering by `name`. If unspecified, the
/// server will choose the ordering. If specified, the default order is
/// ascending for the `name` field.
#[prost(string, tag = "4")]
pub order_by: ::prost::alloc::string::String,
/// Optional. Filter for the returned list.
#[prost(string, tag = "5")]
pub filter: ::prost::alloc::string::String,
}
/// `ListRepositories` response message.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListRepositoriesResponse {
/// List of repositories.
#[prost(message, repeated, tag = "1")]
pub repositories: ::prost::alloc::vec::Vec<Repository>,
/// A token which can be sent as `page_token` to retrieve the next page.
/// If this field is omitted, there are no subsequent pages.
#[prost(string, tag = "2")]
pub next_page_token: ::prost::alloc::string::String,
/// Locations which could not be reached.
#[prost(string, repeated, tag = "3")]
pub unreachable: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
}
/// `GetRepository` request message.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetRepositoryRequest {
/// Required. The repository's name.
#[prost(string, tag = "1")]
pub name: ::prost::alloc::string::String,
}
/// `CreateRepository` request message.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CreateRepositoryRequest {
/// Required. The location in which to create the repository. Must be in the
/// format `projects/*/locations/*`.
#[prost(string, tag = "1")]
pub parent: ::prost::alloc::string::String,
/// Required. The repository to create.
#[prost(message, optional, tag = "2")]
pub repository: ::core::option::Option<Repository>,
/// Required. The ID to use for the repository, which will become the final
/// component of the repository's resource name.
#[prost(string, tag = "3")]
pub repository_id: ::prost::alloc::string::String,
}
/// `UpdateRepository` request message.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct UpdateRepositoryRequest {
/// Optional. Specifies the fields to be updated in the repository. If left
/// unset, all fields will be updated.
#[prost(message, optional, tag = "1")]
pub update_mask: ::core::option::Option<::prost_types::FieldMask>,
/// Required. The repository to update.
#[prost(message, optional, tag = "2")]
pub repository: ::core::option::Option<Repository>,
}
/// `DeleteRepository` request message.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DeleteRepositoryRequest {
/// Required. The repository's name.
#[prost(string, tag = "1")]
pub name: ::prost::alloc::string::String,
/// If set to true, any child resources of this repository will also be
/// deleted. (Otherwise, the request will only succeed if the repository has no
/// child resources.)
#[prost(bool, tag = "2")]
pub force: bool,
}
/// `CommitRepositoryChanges` request message.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CommitRepositoryChangesRequest {
/// Required. The repository's name.
#[prost(string, tag = "1")]
pub name: ::prost::alloc::string::String,
/// Required. The changes to commit to the repository.
#[prost(message, optional, tag = "2")]
pub commit_metadata: ::core::option::Option<CommitMetadata>,
/// Optional. The commit SHA which must be the repository's current HEAD before
/// applying this commit; otherwise this request will fail. If unset, no
/// validation on the current HEAD commit SHA is performed.
#[prost(string, tag = "4")]
pub required_head_commit_sha: ::prost::alloc::string::String,
/// A map to the path of the file to the operation. The path is the full file
/// path including filename, from repository root.
#[prost(btree_map = "string, message", tag = "3")]
pub file_operations: ::prost::alloc::collections::BTreeMap<
::prost::alloc::string::String,
commit_repository_changes_request::FileOperation,
>,
}
/// Nested message and enum types in `CommitRepositoryChangesRequest`.
pub mod commit_repository_changes_request {
/// Represents a single file operation to the repository.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct FileOperation {
#[prost(oneof = "file_operation::Operation", tags = "1, 2")]
pub operation: ::core::option::Option<file_operation::Operation>,
}
/// Nested message and enum types in `FileOperation`.
pub mod file_operation {
/// Represents the write file operation (for files added or modified).
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct WriteFile {
/// The file's contents.
#[prost(bytes = "bytes", tag = "1")]
pub contents: ::prost::bytes::Bytes,
}
/// Represents the delete file operation.
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct DeleteFile {}
#[derive(Clone, PartialEq, ::prost::Oneof)]
pub enum Operation {
/// Represents the write operation.
#[prost(message, tag = "1")]
WriteFile(WriteFile),
/// Represents the delete operation.
#[prost(message, tag = "2")]
DeleteFile(DeleteFile),
}
}
}
/// `ReadRepositoryFile` request message.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ReadRepositoryFileRequest {
/// Required. The repository's name.
#[prost(string, tag = "1")]
pub name: ::prost::alloc::string::String,
/// Optional. The commit SHA for the commit to read from. If unset, the file
/// will be read from HEAD.
#[prost(string, tag = "2")]
pub commit_sha: ::prost::alloc::string::String,
/// Required. Full file path to read including filename, from repository root.
#[prost(string, tag = "3")]
pub path: ::prost::alloc::string::String,
}
/// `ReadRepositoryFile` response message.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ReadRepositoryFileResponse {
/// The file's contents.
#[prost(bytes = "bytes", tag = "1")]
pub contents: ::prost::bytes::Bytes,
}
/// `QueryRepositoryDirectoryContents` request message.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct QueryRepositoryDirectoryContentsRequest {
/// Required. The repository's name.
#[prost(string, tag = "1")]
pub name: ::prost::alloc::string::String,
/// Optional. The Commit SHA for the commit to query from. If unset, the
/// directory will be queried from HEAD.
#[prost(string, tag = "2")]
pub commit_sha: ::prost::alloc::string::String,
/// Optional. The directory's full path including directory name, relative to
/// root. If left unset, the root is used.
#[prost(string, tag = "3")]
pub path: ::prost::alloc::string::String,
/// Optional. Maximum number of paths to return. The server may return fewer
/// items than requested. If unspecified, the server will pick an appropriate
/// default.
#[prost(int32, tag = "4")]
pub page_size: i32,
/// Optional. Page token received from a previous
/// `QueryRepositoryDirectoryContents` call. Provide this to retrieve the
/// subsequent page.
///
/// When paginating, all other parameters provided to
/// `QueryRepositoryDirectoryContents` must match the call that provided the
/// page token.
#[prost(string, tag = "5")]
pub page_token: ::prost::alloc::string::String,
}
/// `QueryRepositoryDirectoryContents` response message.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct QueryRepositoryDirectoryContentsResponse {
/// List of entries in the directory.
#[prost(message, repeated, tag = "1")]
pub directory_entries: ::prost::alloc::vec::Vec<DirectoryEntry>,
/// A token, which can be sent as `page_token` to retrieve the next page.
/// If this field is omitted, there are no subsequent pages.
#[prost(string, tag = "2")]
pub next_page_token: ::prost::alloc::string::String,
}
/// `FetchRepositoryHistory` request message.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct FetchRepositoryHistoryRequest {
/// Required. The repository's name.
#[prost(string, tag = "1")]
pub name: ::prost::alloc::string::String,
/// Optional. Maximum number of commits to return. The server may return fewer
/// items than requested. If unspecified, the server will pick an appropriate
/// default.
#[prost(int32, tag = "2")]
pub page_size: i32,
/// Optional. Page token received from a previous `FetchRepositoryHistory`
/// call. Provide this to retrieve the subsequent page.
///
/// When paginating, all other parameters provided to `FetchRepositoryHistory`
/// must match the call that provided the page token.
#[prost(string, tag = "5")]
pub page_token: ::prost::alloc::string::String,
}
/// `FetchRepositoryHistory` response message.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct FetchRepositoryHistoryResponse {
/// A list of commit logs, ordered by 'git log' default order.
#[prost(message, repeated, tag = "1")]
pub commits: ::prost::alloc::vec::Vec<CommitLogEntry>,
/// A token, which can be sent as `page_token` to retrieve the next page.
/// If this field is omitted, there are no subsequent pages.
#[prost(string, tag = "2")]
pub next_page_token: ::prost::alloc::string::String,
}
/// Represents a single commit log.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CommitLogEntry {
/// Commit timestamp.
#[prost(message, optional, tag = "1")]
pub commit_time: ::core::option::Option<::prost_types::Timestamp>,
/// The commit SHA for this commit log entry.
#[prost(string, tag = "2")]
pub commit_sha: ::prost::alloc::string::String,
/// The commit author for this commit log entry.
#[prost(message, optional, tag = "3")]
pub author: ::core::option::Option<CommitAuthor>,
/// The commit message for this commit log entry.
#[prost(string, tag = "4")]
pub commit_message: ::prost::alloc::string::String,
}
/// Represents a Dataform Git commit.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CommitMetadata {
/// Required. The commit's author.
#[prost(message, optional, tag = "1")]
pub author: ::core::option::Option<CommitAuthor>,
/// Optional. The commit's message.
#[prost(string, tag = "2")]
pub commit_message: ::prost::alloc::string::String,
}
/// `ComputeRepositoryAccessTokenStatus` request message.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ComputeRepositoryAccessTokenStatusRequest {
/// Required. The repository's name.
#[prost(string, tag = "1")]
pub name: ::prost::alloc::string::String,
}
/// `ComputeRepositoryAccessTokenStatus` response message.
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct ComputeRepositoryAccessTokenStatusResponse {
/// Indicates the status of the Git access token.
#[prost(
enumeration = "compute_repository_access_token_status_response::TokenStatus",
tag = "1"
)]
pub token_status: i32,
}
/// Nested message and enum types in `ComputeRepositoryAccessTokenStatusResponse`.
pub mod compute_repository_access_token_status_response {
/// Indicates the status of a Git authentication token.
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum TokenStatus {
/// Default value. This value is unused.
Unspecified = 0,
/// The token could not be found in Secret Manager (or the Dataform
/// Service Account did not have permission to access it).
NotFound = 1,
/// The token could not be used to authenticate against the Git remote.
Invalid = 2,
/// The token was used successfully to authenticate against the Git remote.
Valid = 3,
}
impl TokenStatus {
/// 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 {
TokenStatus::Unspecified => "TOKEN_STATUS_UNSPECIFIED",
TokenStatus::NotFound => "NOT_FOUND",
TokenStatus::Invalid => "INVALID",
TokenStatus::Valid => "VALID",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"TOKEN_STATUS_UNSPECIFIED" => Some(Self::Unspecified),
"NOT_FOUND" => Some(Self::NotFound),
"INVALID" => Some(Self::Invalid),
"VALID" => Some(Self::Valid),
_ => None,
}
}
}
}
/// `FetchRemoteBranches` request message.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct FetchRemoteBranchesRequest {
/// Required. The repository's name.
#[prost(string, tag = "1")]
pub name: ::prost::alloc::string::String,
}
/// `FetchRemoteBranches` response message.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct FetchRemoteBranchesResponse {
/// The remote repository's branch names.
#[prost(string, repeated, tag = "1")]
pub branches: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
}
/// Represents a Dataform Git workspace.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Workspace {
/// Output only. The workspace's name.
#[prost(string, tag = "1")]
pub name: ::prost::alloc::string::String,
}
/// `ListWorkspaces` request message.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListWorkspacesRequest {
/// Required. The repository in which to list workspaces. Must be in the
/// format `projects/*/locations/*/repositories/*`.
#[prost(string, tag = "1")]
pub parent: ::prost::alloc::string::String,
/// Optional. Maximum number of workspaces to return. The server may return
/// fewer items than requested. If unspecified, the server will pick an
/// appropriate default.
#[prost(int32, tag = "2")]
pub page_size: i32,
/// Optional. Page token received from a previous `ListWorkspaces` call.
/// Provide this to retrieve the subsequent page.
///
/// When paginating, all other parameters provided to `ListWorkspaces`
/// must match the call that provided the page token.
#[prost(string, tag = "3")]
pub page_token: ::prost::alloc::string::String,
/// Optional. This field only supports ordering by `name`. If unspecified, the
/// server will choose the ordering. If specified, the default order is
/// ascending for the `name` field.
#[prost(string, tag = "4")]
pub order_by: ::prost::alloc::string::String,
/// Optional. Filter for the returned list.
#[prost(string, tag = "5")]
pub filter: ::prost::alloc::string::String,
}
/// `ListWorkspaces` response message.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListWorkspacesResponse {
/// List of workspaces.
#[prost(message, repeated, tag = "1")]
pub workspaces: ::prost::alloc::vec::Vec<Workspace>,
/// A token, which can be sent as `page_token` to retrieve the next page.
/// If this field is omitted, there are no subsequent pages.
#[prost(string, tag = "2")]
pub next_page_token: ::prost::alloc::string::String,
/// Locations which could not be reached.
#[prost(string, repeated, tag = "3")]
pub unreachable: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
}
/// `GetWorkspace` request message.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetWorkspaceRequest {
/// Required. The workspace's name.
#[prost(string, tag = "1")]
pub name: ::prost::alloc::string::String,
}
/// `CreateWorkspace` request message.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CreateWorkspaceRequest {
/// Required. The repository in which to create the workspace. Must be in the
/// format `projects/*/locations/*/repositories/*`.
#[prost(string, tag = "1")]
pub parent: ::prost::alloc::string::String,
/// Required. The workspace to create.
#[prost(message, optional, tag = "2")]
pub workspace: ::core::option::Option<Workspace>,
/// Required. The ID to use for the workspace, which will become the final
/// component of the workspace's resource name.
#[prost(string, tag = "3")]
pub workspace_id: ::prost::alloc::string::String,
}
/// `DeleteWorkspace` request message.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DeleteWorkspaceRequest {
/// Required. The workspace resource's name.
#[prost(string, tag = "1")]
pub name: ::prost::alloc::string::String,
}
/// Represents the author of a Git commit.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CommitAuthor {
/// Required. The commit author's name.
#[prost(string, tag = "1")]
pub name: ::prost::alloc::string::String,
/// Required. The commit author's email address.
#[prost(string, tag = "2")]
pub email_address: ::prost::alloc::string::String,
}
/// `PullGitCommits` request message.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct PullGitCommitsRequest {
/// Required. The workspace's name.
#[prost(string, tag = "1")]
pub name: ::prost::alloc::string::String,
/// Optional. The name of the branch in the Git remote from which to pull
/// commits. If left unset, the repository's default branch name will be used.
#[prost(string, tag = "2")]
pub remote_branch: ::prost::alloc::string::String,
/// Required. The author of any merge commit which may be created as a result
/// of merging fetched Git commits into this workspace.
#[prost(message, optional, tag = "3")]
pub author: ::core::option::Option<CommitAuthor>,
}
/// `PushGitCommits` request message.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct PushGitCommitsRequest {
/// Required. The workspace's name.
#[prost(string, tag = "1")]
pub name: ::prost::alloc::string::String,
/// Optional. The name of the branch in the Git remote to which commits should
/// be pushed. If left unset, the repository's default branch name will be
/// used.
#[prost(string, tag = "2")]
pub remote_branch: ::prost::alloc::string::String,
}
/// `FetchFileGitStatuses` request message.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct FetchFileGitStatusesRequest {
/// Required. The workspace's name.
#[prost(string, tag = "1")]
pub name: ::prost::alloc::string::String,
}
/// `FetchFileGitStatuses` response message.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct FetchFileGitStatusesResponse {
/// A list of all files which have uncommitted Git changes. There will only be
/// a single entry for any given file.
#[prost(message, repeated, tag = "1")]
pub uncommitted_file_changes: ::prost::alloc::vec::Vec<
fetch_file_git_statuses_response::UncommittedFileChange,
>,
}
/// Nested message and enum types in `FetchFileGitStatusesResponse`.
pub mod fetch_file_git_statuses_response {
/// Represents the Git state of a file with uncommitted changes.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct UncommittedFileChange {
/// The file's full path including filename, relative to the workspace root.
#[prost(string, tag = "1")]
pub path: ::prost::alloc::string::String,
/// Indicates the status of the file.
#[prost(enumeration = "uncommitted_file_change::State", tag = "2")]
pub state: i32,
}
/// Nested message and enum types in `UncommittedFileChange`.
pub mod uncommitted_file_change {
/// Indicates the status of an uncommitted file change.
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum State {
/// Default value. This value is unused.
Unspecified = 0,
/// The file has been newly added.
Added = 1,
/// The file has been deleted.
Deleted = 2,
/// The file has been modified.
Modified = 3,
/// The file contains merge conflicts.
HasConflicts = 4,
}
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::Added => "ADDED",
State::Deleted => "DELETED",
State::Modified => "MODIFIED",
State::HasConflicts => "HAS_CONFLICTS",
}
}
/// 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),
"ADDED" => Some(Self::Added),
"DELETED" => Some(Self::Deleted),
"MODIFIED" => Some(Self::Modified),
"HAS_CONFLICTS" => Some(Self::HasConflicts),
_ => None,
}
}
}
}
}
/// `FetchGitAheadBehind` request message.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct FetchGitAheadBehindRequest {
/// Required. The workspace's name.
#[prost(string, tag = "1")]
pub name: ::prost::alloc::string::String,
/// Optional. The name of the branch in the Git remote against which this
/// workspace should be compared. If left unset, the repository's default
/// branch name will be used.
#[prost(string, tag = "2")]
pub remote_branch: ::prost::alloc::string::String,
}
/// `FetchGitAheadBehind` response message.
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct FetchGitAheadBehindResponse {
/// The number of commits in the remote branch that are not in the workspace.
#[prost(int32, tag = "1")]
pub commits_ahead: i32,
/// The number of commits in the workspace that are not in the remote branch.
#[prost(int32, tag = "2")]
pub commits_behind: i32,
}
/// `CommitWorkspaceChanges` request message.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CommitWorkspaceChangesRequest {
/// Required. The workspace's name.
#[prost(string, tag = "1")]
pub name: ::prost::alloc::string::String,
/// Required. The commit's author.
#[prost(message, optional, tag = "4")]
pub author: ::core::option::Option<CommitAuthor>,
/// Optional. The commit's message.
#[prost(string, tag = "2")]
pub commit_message: ::prost::alloc::string::String,
/// Optional. Full file paths to commit including filename, rooted at workspace
/// root. If left empty, all files will be committed.
#[prost(string, repeated, tag = "3")]
pub paths: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
}
/// `ResetWorkspaceChanges` request message.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ResetWorkspaceChangesRequest {
/// Required. The workspace's name.
#[prost(string, tag = "1")]
pub name: ::prost::alloc::string::String,
/// Optional. Full file paths to reset back to their committed state including
/// filename, rooted at workspace root. If left empty, all files will be reset.
#[prost(string, repeated, tag = "2")]
pub paths: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
/// Optional. If set to true, untracked files will be deleted.
#[prost(bool, tag = "3")]
pub clean: bool,
}
/// `FetchFileDiff` request message.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct FetchFileDiffRequest {
/// Required. The workspace's name.
#[prost(string, tag = "1")]
pub workspace: ::prost::alloc::string::String,
/// Required. The file's full path including filename, relative to the
/// workspace root.
#[prost(string, tag = "2")]
pub path: ::prost::alloc::string::String,
}
/// `FetchFileDiff` response message.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct FetchFileDiffResponse {
/// The raw formatted Git diff for the file.
#[prost(string, tag = "1")]
pub formatted_diff: ::prost::alloc::string::String,
}
/// `QueryDirectoryContents` request message.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct QueryDirectoryContentsRequest {
/// Required. The workspace's name.
#[prost(string, tag = "1")]
pub workspace: ::prost::alloc::string::String,
/// Optional. The directory's full path including directory name, relative to
/// the workspace root. If left unset, the workspace root is used.
#[prost(string, tag = "2")]
pub path: ::prost::alloc::string::String,
/// Optional. Maximum number of paths to return. The server may return fewer
/// items than requested. If unspecified, the server will pick an appropriate
/// default.
#[prost(int32, tag = "3")]
pub page_size: i32,
/// Optional. Page token received from a previous `QueryDirectoryContents`
/// call. Provide this to retrieve the subsequent page.
///
/// When paginating, all other parameters provided to
/// `QueryDirectoryContents` must match the call that provided the page
/// token.
#[prost(string, tag = "4")]
pub page_token: ::prost::alloc::string::String,
}
/// `QueryDirectoryContents` response message.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct QueryDirectoryContentsResponse {
/// List of entries in the directory.
#[prost(message, repeated, tag = "1")]
pub directory_entries: ::prost::alloc::vec::Vec<DirectoryEntry>,
/// A token, which can be sent as `page_token` to retrieve the next page.
/// If this field is omitted, there are no subsequent pages.
#[prost(string, tag = "2")]
pub next_page_token: ::prost::alloc::string::String,
}
/// Represents a single entry in a directory.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DirectoryEntry {
#[prost(oneof = "directory_entry::Entry", tags = "1, 2")]
pub entry: ::core::option::Option<directory_entry::Entry>,
}
/// Nested message and enum types in `DirectoryEntry`.
pub mod directory_entry {
#[derive(Clone, PartialEq, ::prost::Oneof)]
pub enum Entry {
/// A file in the directory.
#[prost(string, tag = "1")]
File(::prost::alloc::string::String),
/// A child directory in the directory.
#[prost(string, tag = "2")]
Directory(::prost::alloc::string::String),
}
}
/// `MakeDirectory` request message.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct MakeDirectoryRequest {
/// Required. The workspace's name.
#[prost(string, tag = "1")]
pub workspace: ::prost::alloc::string::String,
/// Required. The directory's full path including directory name, relative to
/// the workspace root.
#[prost(string, tag = "2")]
pub path: ::prost::alloc::string::String,
}
/// `MakeDirectory` response message.
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct MakeDirectoryResponse {}
/// `RemoveDirectory` request message.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct RemoveDirectoryRequest {
/// Required. The workspace's name.
#[prost(string, tag = "1")]
pub workspace: ::prost::alloc::string::String,
/// Required. The directory's full path including directory name, relative to
/// the workspace root.
#[prost(string, tag = "2")]
pub path: ::prost::alloc::string::String,
}
/// `MoveDirectory` request message.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct MoveDirectoryRequest {
/// Required. The workspace's name.
#[prost(string, tag = "1")]
pub workspace: ::prost::alloc::string::String,
/// Required. The directory's full path including directory name, relative to
/// the workspace root.
#[prost(string, tag = "2")]
pub path: ::prost::alloc::string::String,
/// Required. The new path for the directory including directory name, rooted
/// at workspace root.
#[prost(string, tag = "3")]
pub new_path: ::prost::alloc::string::String,
}
/// `MoveDirectory` response message.
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct MoveDirectoryResponse {}
/// `ReadFile` request message.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ReadFileRequest {
/// Required. The workspace's name.
#[prost(string, tag = "1")]
pub workspace: ::prost::alloc::string::String,
/// Required. The file's full path including filename, relative to the
/// workspace root.
#[prost(string, tag = "2")]
pub path: ::prost::alloc::string::String,
}
/// `ReadFile` response message.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ReadFileResponse {
/// The file's contents.
#[prost(bytes = "bytes", tag = "1")]
pub file_contents: ::prost::bytes::Bytes,
}
/// `RemoveFile` request message.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct RemoveFileRequest {
/// Required. The workspace's name.
#[prost(string, tag = "1")]
pub workspace: ::prost::alloc::string::String,
/// Required. The file's full path including filename, relative to the
/// workspace root.
#[prost(string, tag = "2")]
pub path: ::prost::alloc::string::String,
}
/// `MoveFile` request message.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct MoveFileRequest {
/// Required. The workspace's name.
#[prost(string, tag = "1")]
pub workspace: ::prost::alloc::string::String,
/// Required. The file's full path including filename, relative to the
/// workspace root.
#[prost(string, tag = "2")]
pub path: ::prost::alloc::string::String,
/// Required. The file's new path including filename, relative to the workspace
/// root.
#[prost(string, tag = "3")]
pub new_path: ::prost::alloc::string::String,
}
/// `MoveFile` response message.
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct MoveFileResponse {}
/// `WriteFile` request message.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct WriteFileRequest {
/// Required. The workspace's name.
#[prost(string, tag = "1")]
pub workspace: ::prost::alloc::string::String,
/// Required. The file.
#[prost(string, tag = "2")]
pub path: ::prost::alloc::string::String,
/// Required. The file's contents.
#[prost(bytes = "bytes", tag = "3")]
pub contents: ::prost::bytes::Bytes,
}
/// `WriteFile` response message.
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct WriteFileResponse {}
/// `InstallNpmPackages` request message.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct InstallNpmPackagesRequest {
/// Required. The workspace's name.
#[prost(string, tag = "1")]
pub workspace: ::prost::alloc::string::String,
}
/// `InstallNpmPackages` response message.
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct InstallNpmPackagesResponse {}
/// Represents a Dataform release configuration.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ReleaseConfig {
/// Output only. The release config's name.
#[prost(string, tag = "1")]
pub name: ::prost::alloc::string::String,
/// Required. Git commit/tag/branch name at which the repository should be
/// compiled. Must exist in the remote repository. Examples:
/// - a commit SHA: `12ade345`
/// - a tag: `tag1`
/// - a branch name: `branch1`
#[prost(string, tag = "2")]
pub git_commitish: ::prost::alloc::string::String,
/// Optional. If set, fields of `code_compilation_config` override the default
/// compilation settings that are specified in dataform.json.
#[prost(message, optional, tag = "3")]
pub code_compilation_config: ::core::option::Option<CodeCompilationConfig>,
/// Optional. Optional schedule (in cron format) for automatic creation of
/// compilation results.
#[prost(string, tag = "4")]
pub cron_schedule: ::prost::alloc::string::String,
/// Optional. Specifies the time zone to be used when interpreting
/// cron_schedule. Must be a time zone name from the time zone database
/// (<https://en.wikipedia.org/wiki/List_of_tz_database_time_zones>). If left
/// unspecified, the default is UTC.
#[prost(string, tag = "7")]
pub time_zone: ::prost::alloc::string::String,
/// Output only. Records of the 10 most recent scheduled release attempts,
/// ordered in in descending order of `release_time`. Updated whenever
/// automatic creation of a compilation result is triggered by cron_schedule.
#[prost(message, repeated, tag = "5")]
pub recent_scheduled_release_records: ::prost::alloc::vec::Vec<
release_config::ScheduledReleaseRecord,
>,
/// Optional. The name of the currently released compilation result for this
/// release config. This value is updated when a compilation result is created
/// from this release config, or when this resource is updated by API call
/// (perhaps to roll back to an earlier release). The compilation result must
/// have been created using this release config. Must be in the format
/// `projects/*/locations/*/repositories/*/compilationResults/*`.
#[prost(string, tag = "6")]
pub release_compilation_result: ::prost::alloc::string::String,
}
/// Nested message and enum types in `ReleaseConfig`.
pub mod release_config {
/// A record of an attempt to create a compilation result for this release
/// config.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ScheduledReleaseRecord {
/// The timestamp of this release attempt.
#[prost(message, optional, tag = "1")]
pub release_time: ::core::option::Option<::prost_types::Timestamp>,
#[prost(oneof = "scheduled_release_record::Result", tags = "2, 3")]
pub result: ::core::option::Option<scheduled_release_record::Result>,
}
/// Nested message and enum types in `ScheduledReleaseRecord`.
pub mod scheduled_release_record {
#[derive(Clone, PartialEq, ::prost::Oneof)]
pub enum Result {
/// The name of the created compilation result, if one was successfully
/// created. Must be in the format
/// `projects/*/locations/*/repositories/*/compilationResults/*`.
#[prost(string, tag = "2")]
CompilationResult(::prost::alloc::string::String),
/// The error status encountered upon this attempt to create the
/// compilation result, if the attempt was unsuccessful.
#[prost(message, tag = "3")]
ErrorStatus(super::super::super::super::super::rpc::Status),
}
}
}
/// `ListReleaseConfigs` request message.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListReleaseConfigsRequest {
/// Required. The repository in which to list release configs. Must be in the
/// format `projects/*/locations/*/repositories/*`.
#[prost(string, tag = "1")]
pub parent: ::prost::alloc::string::String,
/// Optional. Maximum number of release configs to return. The server may
/// return fewer items than requested. If unspecified, the server will pick an
/// appropriate default.
#[prost(int32, tag = "2")]
pub page_size: i32,
/// Optional. Page token received from a previous `ListReleaseConfigs` call.
/// Provide this to retrieve the subsequent page.
///
/// When paginating, all other parameters provided to `ListReleaseConfigs`
/// must match the call that provided the page token.
#[prost(string, tag = "3")]
pub page_token: ::prost::alloc::string::String,
}
/// `ListReleaseConfigs` response message.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListReleaseConfigsResponse {
/// List of release configs.
#[prost(message, repeated, tag = "1")]
pub release_configs: ::prost::alloc::vec::Vec<ReleaseConfig>,
/// A token, which can be sent as `page_token` to retrieve the next page.
/// If this field is omitted, there are no subsequent pages.
#[prost(string, tag = "2")]
pub next_page_token: ::prost::alloc::string::String,
/// Locations which could not be reached.
#[prost(string, repeated, tag = "3")]
pub unreachable: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
}
/// `GetReleaseConfig` request message.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetReleaseConfigRequest {
/// Required. The release config's name.
#[prost(string, tag = "1")]
pub name: ::prost::alloc::string::String,
}
/// `CreateReleaseConfig` request message.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CreateReleaseConfigRequest {
/// Required. The repository in which to create the release config. Must be in
/// the format `projects/*/locations/*/repositories/*`.
#[prost(string, tag = "1")]
pub parent: ::prost::alloc::string::String,
/// Required. The release config to create.
#[prost(message, optional, tag = "2")]
pub release_config: ::core::option::Option<ReleaseConfig>,
/// Required. The ID to use for the release config, which will become the final
/// component of the release config's resource name.
#[prost(string, tag = "3")]
pub release_config_id: ::prost::alloc::string::String,
}
/// `UpdateReleaseConfig` request message.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct UpdateReleaseConfigRequest {
/// Optional. Specifies the fields to be updated in the release config. If left
/// unset, all fields will be updated.
#[prost(message, optional, tag = "1")]
pub update_mask: ::core::option::Option<::prost_types::FieldMask>,
/// Required. The release config to update.
#[prost(message, optional, tag = "2")]
pub release_config: ::core::option::Option<ReleaseConfig>,
}
/// `DeleteReleaseConfig` request message.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DeleteReleaseConfigRequest {
/// Required. The release config's name.
#[prost(string, tag = "1")]
pub name: ::prost::alloc::string::String,
}
/// Represents the result of compiling a Dataform project.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CompilationResult {
/// Output only. The compilation result's name.
#[prost(string, tag = "1")]
pub name: ::prost::alloc::string::String,
/// Immutable. If set, fields of `code_compilation_config` override the default
/// compilation settings that are specified in dataform.json.
#[prost(message, optional, tag = "4")]
pub code_compilation_config: ::core::option::Option<CodeCompilationConfig>,
/// Output only. The fully resolved Git commit SHA of the code that was
/// compiled. Not set for compilation results whose source is a workspace.
#[prost(string, tag = "8")]
pub resolved_git_commit_sha: ::prost::alloc::string::String,
/// Output only. The version of `@dataform/core` that was used for compilation.
#[prost(string, tag = "5")]
pub dataform_core_version: ::prost::alloc::string::String,
/// Output only. Errors encountered during project compilation.
#[prost(message, repeated, tag = "6")]
pub compilation_errors: ::prost::alloc::vec::Vec<
compilation_result::CompilationError,
>,
#[prost(oneof = "compilation_result::Source", tags = "2, 3, 7")]
pub source: ::core::option::Option<compilation_result::Source>,
}
/// Nested message and enum types in `CompilationResult`.
pub mod compilation_result {
/// An error encountered when attempting to compile a Dataform project.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CompilationError {
/// Output only. The error's top level message.
#[prost(string, tag = "1")]
pub message: ::prost::alloc::string::String,
/// Output only. The error's full stack trace.
#[prost(string, tag = "2")]
pub stack: ::prost::alloc::string::String,
/// Output only. The path of the file where this error occurred, if
/// available, relative to the project root.
#[prost(string, tag = "3")]
pub path: ::prost::alloc::string::String,
/// Output only. The identifier of the action where this error occurred, if
/// available.
#[prost(message, optional, tag = "4")]
pub action_target: ::core::option::Option<super::Target>,
}
#[derive(Clone, PartialEq, ::prost::Oneof)]
pub enum Source {
/// Immutable. Git commit/tag/branch name at which the repository should be
/// compiled. Must exist in the remote repository. Examples:
/// - a commit SHA: `12ade345`
/// - a tag: `tag1`
/// - a branch name: `branch1`
#[prost(string, tag = "2")]
GitCommitish(::prost::alloc::string::String),
/// Immutable. The name of the workspace to compile. Must be in the format
/// `projects/*/locations/*/repositories/*/workspaces/*`.
#[prost(string, tag = "3")]
Workspace(::prost::alloc::string::String),
/// Immutable. The name of the release config to compile. The release
/// config's 'current_compilation_result' field will be updated to this
/// compilation result. Must be in the format
/// `projects/*/locations/*/repositories/*/releaseConfigs/*`.
#[prost(string, tag = "7")]
ReleaseConfig(::prost::alloc::string::String),
}
}
/// Configures various aspects of Dataform code compilation.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CodeCompilationConfig {
/// Optional. The default database (Google Cloud project ID).
#[prost(string, tag = "1")]
pub default_database: ::prost::alloc::string::String,
/// Optional. The default schema (BigQuery dataset ID).
#[prost(string, tag = "2")]
pub default_schema: ::prost::alloc::string::String,
/// Optional. The default BigQuery location to use. Defaults to "US".
/// See the BigQuery docs for a full list of locations:
/// <https://cloud.google.com/bigquery/docs/locations.>
#[prost(string, tag = "8")]
pub default_location: ::prost::alloc::string::String,
/// Optional. The default schema (BigQuery dataset ID) for assertions.
#[prost(string, tag = "3")]
pub assertion_schema: ::prost::alloc::string::String,
/// Optional. User-defined variables that are made available to project code
/// during compilation.
#[prost(btree_map = "string, string", tag = "4")]
pub vars: ::prost::alloc::collections::BTreeMap<
::prost::alloc::string::String,
::prost::alloc::string::String,
>,
/// Optional. The suffix that should be appended to all database (Google Cloud
/// project ID) names.
#[prost(string, tag = "5")]
pub database_suffix: ::prost::alloc::string::String,
/// Optional. The suffix that should be appended to all schema (BigQuery
/// dataset ID) names.
#[prost(string, tag = "6")]
pub schema_suffix: ::prost::alloc::string::String,
/// Optional. The prefix that should be prepended to all table names.
#[prost(string, tag = "7")]
pub table_prefix: ::prost::alloc::string::String,
}
/// `ListCompilationResults` request message.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListCompilationResultsRequest {
/// Required. The repository in which to list compilation results. Must be in
/// the format `projects/*/locations/*/repositories/*`.
#[prost(string, tag = "1")]
pub parent: ::prost::alloc::string::String,
/// Optional. Maximum number of compilation results to return. The server may
/// return fewer items than requested. If unspecified, the server will pick an
/// appropriate default.
#[prost(int32, tag = "2")]
pub page_size: i32,
/// Optional. Page token received from a previous `ListCompilationResults`
/// call. Provide this to retrieve the subsequent page.
///
/// When paginating, all other parameters provided to `ListCompilationResults`
/// must match the call that provided the page token.
#[prost(string, tag = "3")]
pub page_token: ::prost::alloc::string::String,
}
/// `ListCompilationResults` response message.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListCompilationResultsResponse {
/// List of compilation results.
#[prost(message, repeated, tag = "1")]
pub compilation_results: ::prost::alloc::vec::Vec<CompilationResult>,
/// A token, which can be sent as `page_token` to retrieve the next page.
/// If this field is omitted, there are no subsequent pages.
#[prost(string, tag = "2")]
pub next_page_token: ::prost::alloc::string::String,
/// Locations which could not be reached.
#[prost(string, repeated, tag = "3")]
pub unreachable: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
}
/// `GetCompilationResult` request message.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetCompilationResultRequest {
/// Required. The compilation result's name.
#[prost(string, tag = "1")]
pub name: ::prost::alloc::string::String,
}
/// `CreateCompilationResult` request message.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CreateCompilationResultRequest {
/// Required. The repository in which to create the compilation result. Must be
/// in the format `projects/*/locations/*/repositories/*`.
#[prost(string, tag = "1")]
pub parent: ::prost::alloc::string::String,
/// Required. The compilation result to create.
#[prost(message, optional, tag = "2")]
pub compilation_result: ::core::option::Option<CompilationResult>,
}
/// Represents an action identifier. If the action writes output, the output
/// will be written to the referenced database object.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Target {
/// The action's database (Google Cloud project ID) .
#[prost(string, tag = "1")]
pub database: ::prost::alloc::string::String,
/// The action's schema (BigQuery dataset ID), within `database`.
#[prost(string, tag = "2")]
pub schema: ::prost::alloc::string::String,
/// The action's name, within `database` and `schema`.
#[prost(string, tag = "3")]
pub name: ::prost::alloc::string::String,
}
/// Describes a relation and its columns.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct RelationDescriptor {
/// A text description of the relation.
#[prost(string, tag = "1")]
pub description: ::prost::alloc::string::String,
/// A list of descriptions of columns within the relation.
#[prost(message, repeated, tag = "2")]
pub columns: ::prost::alloc::vec::Vec<relation_descriptor::ColumnDescriptor>,
/// A set of BigQuery labels that should be applied to the relation.
#[prost(btree_map = "string, string", tag = "3")]
pub bigquery_labels: ::prost::alloc::collections::BTreeMap<
::prost::alloc::string::String,
::prost::alloc::string::String,
>,
}
/// Nested message and enum types in `RelationDescriptor`.
pub mod relation_descriptor {
/// Describes a column.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ColumnDescriptor {
/// The identifier for the column. Each entry in `path` represents one level
/// of nesting.
#[prost(string, repeated, tag = "1")]
pub path: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
/// A textual description of the column.
#[prost(string, tag = "2")]
pub description: ::prost::alloc::string::String,
/// A list of BigQuery policy tags that will be applied to the column.
#[prost(string, repeated, tag = "3")]
pub bigquery_policy_tags: ::prost::alloc::vec::Vec<
::prost::alloc::string::String,
>,
}
}
/// Represents a single Dataform action in a compilation result.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CompilationResultAction {
/// This action's identifier. Unique within the compilation result.
#[prost(message, optional, tag = "1")]
pub target: ::core::option::Option<Target>,
/// The action's identifier if the project had been compiled without any
/// overrides configured. Unique within the compilation result.
#[prost(message, optional, tag = "2")]
pub canonical_target: ::core::option::Option<Target>,
/// The full path including filename in which this action is located, relative
/// to the workspace root.
#[prost(string, tag = "3")]
pub file_path: ::prost::alloc::string::String,
#[prost(oneof = "compilation_result_action::CompiledObject", tags = "4, 5, 6, 7")]
pub compiled_object: ::core::option::Option<
compilation_result_action::CompiledObject,
>,
}
/// Nested message and enum types in `CompilationResultAction`.
pub mod compilation_result_action {
/// Represents a database relation.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Relation {
/// A list of actions that this action depends on.
#[prost(message, repeated, tag = "1")]
pub dependency_targets: ::prost::alloc::vec::Vec<super::Target>,
/// Whether this action is disabled (i.e. should not be run).
#[prost(bool, tag = "2")]
pub disabled: bool,
/// Arbitrary, user-defined tags on this action.
#[prost(string, repeated, tag = "3")]
pub tags: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
/// Descriptor for the relation and its columns.
#[prost(message, optional, tag = "4")]
pub relation_descriptor: ::core::option::Option<super::RelationDescriptor>,
/// The type of this relation.
#[prost(enumeration = "relation::RelationType", tag = "5")]
pub relation_type: i32,
/// The SELECT query which returns rows which this relation should contain.
#[prost(string, tag = "6")]
pub select_query: ::prost::alloc::string::String,
/// SQL statements to be executed before creating the relation.
#[prost(string, repeated, tag = "7")]
pub pre_operations: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
/// SQL statements to be executed after creating the relation.
#[prost(string, repeated, tag = "8")]
pub post_operations: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
/// Configures `INCREMENTAL_TABLE` settings for this relation. Only set if
/// `relation_type` is `INCREMENTAL_TABLE`.
#[prost(message, optional, tag = "9")]
pub incremental_table_config: ::core::option::Option<
relation::IncrementalTableConfig,
>,
/// The SQL expression used to partition the relation.
#[prost(string, tag = "10")]
pub partition_expression: ::prost::alloc::string::String,
/// A list of columns or SQL expressions used to cluster the table.
#[prost(string, repeated, tag = "11")]
pub cluster_expressions: ::prost::alloc::vec::Vec<
::prost::alloc::string::String,
>,
/// Sets the partition expiration in days.
#[prost(int32, tag = "12")]
pub partition_expiration_days: i32,
/// Specifies whether queries on this table must include a predicate filter
/// that filters on the partitioning column.
#[prost(bool, tag = "13")]
pub require_partition_filter: bool,
/// Additional options that will be provided as key/value pairs into the
/// options clause of a create table/view statement. See
/// <https://cloud.google.com/bigquery/docs/reference/standard-sql/data-definition-language>
/// for more information on which options are supported.
#[prost(btree_map = "string, string", tag = "14")]
pub additional_options: ::prost::alloc::collections::BTreeMap<
::prost::alloc::string::String,
::prost::alloc::string::String,
>,
}
/// Nested message and enum types in `Relation`.
pub mod relation {
/// Contains settings for relations of type `INCREMENTAL_TABLE`.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct IncrementalTableConfig {
/// The SELECT query which returns rows which should be inserted into the
/// relation if it already exists and is not being refreshed.
#[prost(string, tag = "1")]
pub incremental_select_query: ::prost::alloc::string::String,
/// Whether this table should be protected from being refreshed.
#[prost(bool, tag = "2")]
pub refresh_disabled: bool,
/// A set of columns or SQL expressions used to define row uniqueness.
/// If any duplicates are discovered (as defined by `unique_key_parts`),
/// only the newly selected rows (as defined by `incremental_select_query`)
/// will be included in the relation.
#[prost(string, repeated, tag = "3")]
pub unique_key_parts: ::prost::alloc::vec::Vec<
::prost::alloc::string::String,
>,
/// A SQL expression conditional used to limit the set of existing rows
/// considered for a merge operation (see `unique_key_parts` for more
/// information).
#[prost(string, tag = "4")]
pub update_partition_filter: ::prost::alloc::string::String,
/// SQL statements to be executed before inserting new rows into the
/// relation.
#[prost(string, repeated, tag = "5")]
pub incremental_pre_operations: ::prost::alloc::vec::Vec<
::prost::alloc::string::String,
>,
/// SQL statements to be executed after inserting new rows into the
/// relation.
#[prost(string, repeated, tag = "6")]
pub incremental_post_operations: ::prost::alloc::vec::Vec<
::prost::alloc::string::String,
>,
}
/// Indicates the type of this relation.
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum RelationType {
/// Default value. This value is unused.
Unspecified = 0,
/// The relation is a table.
Table = 1,
/// The relation is a view.
View = 2,
/// The relation is an incrementalized table.
IncrementalTable = 3,
/// The relation is a materialized view.
MaterializedView = 4,
}
impl RelationType {
/// 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 {
RelationType::Unspecified => "RELATION_TYPE_UNSPECIFIED",
RelationType::Table => "TABLE",
RelationType::View => "VIEW",
RelationType::IncrementalTable => "INCREMENTAL_TABLE",
RelationType::MaterializedView => "MATERIALIZED_VIEW",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"RELATION_TYPE_UNSPECIFIED" => Some(Self::Unspecified),
"TABLE" => Some(Self::Table),
"VIEW" => Some(Self::View),
"INCREMENTAL_TABLE" => Some(Self::IncrementalTable),
"MATERIALIZED_VIEW" => Some(Self::MaterializedView),
_ => None,
}
}
}
}
/// Represents a list of arbitrary database operations.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Operations {
/// A list of actions that this action depends on.
#[prost(message, repeated, tag = "1")]
pub dependency_targets: ::prost::alloc::vec::Vec<super::Target>,
/// Whether this action is disabled (i.e. should not be run).
#[prost(bool, tag = "2")]
pub disabled: bool,
/// Arbitrary, user-defined tags on this action.
#[prost(string, repeated, tag = "3")]
pub tags: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
/// Descriptor for any output relation and its columns. Only set if
/// `has_output` is true.
#[prost(message, optional, tag = "6")]
pub relation_descriptor: ::core::option::Option<super::RelationDescriptor>,
/// A list of arbitrary SQL statements that will be executed without
/// alteration.
#[prost(string, repeated, tag = "4")]
pub queries: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
/// Whether these operations produce an output relation.
#[prost(bool, tag = "5")]
pub has_output: bool,
}
/// Represents an assertion upon a SQL query which is required return zero
/// rows.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Assertion {
/// A list of actions that this action depends on.
#[prost(message, repeated, tag = "1")]
pub dependency_targets: ::prost::alloc::vec::Vec<super::Target>,
/// The parent action of this assertion. Only set if this assertion was
/// automatically generated.
#[prost(message, optional, tag = "5")]
pub parent_action: ::core::option::Option<super::Target>,
/// Whether this action is disabled (i.e. should not be run).
#[prost(bool, tag = "2")]
pub disabled: bool,
/// Arbitrary, user-defined tags on this action.
#[prost(string, repeated, tag = "3")]
pub tags: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
/// The SELECT query which must return zero rows in order for this assertion
/// to succeed.
#[prost(string, tag = "4")]
pub select_query: ::prost::alloc::string::String,
/// Descriptor for the assertion's automatically-generated view and its
/// columns.
#[prost(message, optional, tag = "6")]
pub relation_descriptor: ::core::option::Option<super::RelationDescriptor>,
}
/// Represents a relation which is not managed by Dataform but which may be
/// referenced by Dataform actions.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Declaration {
/// Descriptor for the relation and its columns. Used as documentation only,
/// i.e. values here will result in no changes to the relation's metadata.
#[prost(message, optional, tag = "1")]
pub relation_descriptor: ::core::option::Option<super::RelationDescriptor>,
}
#[derive(Clone, PartialEq, ::prost::Oneof)]
pub enum CompiledObject {
/// The database relation created/updated by this action.
#[prost(message, tag = "4")]
Relation(Relation),
/// The database operations executed by this action.
#[prost(message, tag = "5")]
Operations(Operations),
/// The assertion executed by this action.
#[prost(message, tag = "6")]
Assertion(Assertion),
/// The declaration declared by this action.
#[prost(message, tag = "7")]
Declaration(Declaration),
}
}
/// `QueryCompilationResultActions` request message.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct QueryCompilationResultActionsRequest {
/// Required. The compilation result's name.
#[prost(string, tag = "1")]
pub name: ::prost::alloc::string::String,
/// Optional. Maximum number of compilation results to return. The server may
/// return fewer items than requested. If unspecified, the server will pick an
/// appropriate default.
#[prost(int32, tag = "2")]
pub page_size: i32,
/// Optional. Page token received from a previous
/// `QueryCompilationResultActions` call. Provide this to retrieve the
/// subsequent page.
///
/// When paginating, all other parameters provided to
/// `QueryCompilationResultActions` must match the call that provided the page
/// token.
#[prost(string, tag = "3")]
pub page_token: ::prost::alloc::string::String,
/// Optional. Optional filter for the returned list. Filtering is only
/// currently supported on the `file_path` field.
#[prost(string, tag = "4")]
pub filter: ::prost::alloc::string::String,
}
/// `QueryCompilationResultActions` response message.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct QueryCompilationResultActionsResponse {
/// List of compilation result actions.
#[prost(message, repeated, tag = "1")]
pub compilation_result_actions: ::prost::alloc::vec::Vec<CompilationResultAction>,
/// A token, which can be sent as `page_token` to retrieve the next page.
/// If this field is omitted, there are no subsequent pages.
#[prost(string, tag = "2")]
pub next_page_token: ::prost::alloc::string::String,
}
/// Represents a Dataform workflow configuration.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct WorkflowConfig {
/// Output only. The workflow config's name.
#[prost(string, tag = "1")]
pub name: ::prost::alloc::string::String,
/// Required. The name of the release config whose release_compilation_result
/// should be executed. Must be in the format
/// `projects/*/locations/*/repositories/*/releaseConfigs/*`.
#[prost(string, tag = "2")]
pub release_config: ::prost::alloc::string::String,
/// Optional. If left unset, a default InvocationConfig will be used.
#[prost(message, optional, tag = "3")]
pub invocation_config: ::core::option::Option<InvocationConfig>,
/// Optional. Optional schedule (in cron format) for automatic execution of
/// this workflow config.
#[prost(string, tag = "4")]
pub cron_schedule: ::prost::alloc::string::String,
/// Optional. Specifies the time zone to be used when interpreting
/// cron_schedule. Must be a time zone name from the time zone database
/// (<https://en.wikipedia.org/wiki/List_of_tz_database_time_zones>). If left
/// unspecified, the default is UTC.
#[prost(string, tag = "7")]
pub time_zone: ::prost::alloc::string::String,
/// Output only. Records of the 10 most recent scheduled execution attempts,
/// ordered in in descending order of `execution_time`. Updated whenever
/// automatic creation of a workflow invocation is triggered by cron_schedule.
#[prost(message, repeated, tag = "5")]
pub recent_scheduled_execution_records: ::prost::alloc::vec::Vec<
workflow_config::ScheduledExecutionRecord,
>,
}
/// Nested message and enum types in `WorkflowConfig`.
pub mod workflow_config {
/// A record of an attempt to create a workflow invocation for this workflow
/// config.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ScheduledExecutionRecord {
/// The timestamp of this execution attempt.
#[prost(message, optional, tag = "1")]
pub execution_time: ::core::option::Option<::prost_types::Timestamp>,
#[prost(oneof = "scheduled_execution_record::Result", tags = "2, 3")]
pub result: ::core::option::Option<scheduled_execution_record::Result>,
}
/// Nested message and enum types in `ScheduledExecutionRecord`.
pub mod scheduled_execution_record {
#[derive(Clone, PartialEq, ::prost::Oneof)]
pub enum Result {
/// The name of the created workflow invocation, if one was successfully
/// created. Must be in the format
/// `projects/*/locations/*/repositories/*/workflowInvocations/*`.
#[prost(string, tag = "2")]
WorkflowInvocation(::prost::alloc::string::String),
/// The error status encountered upon this attempt to create the
/// workflow invocation, if the attempt was unsuccessful.
#[prost(message, tag = "3")]
ErrorStatus(super::super::super::super::super::rpc::Status),
}
}
}
/// Includes various configuration options for a workflow invocation.
/// If both `included_targets` and `included_tags` are unset, all actions
/// will be included.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct InvocationConfig {
/// Optional. The set of action identifiers to include.
#[prost(message, repeated, tag = "1")]
pub included_targets: ::prost::alloc::vec::Vec<Target>,
/// Optional. The set of tags to include.
#[prost(string, repeated, tag = "2")]
pub included_tags: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
/// Optional. When set to true, transitive dependencies of included actions
/// will be executed.
#[prost(bool, tag = "3")]
pub transitive_dependencies_included: bool,
/// Optional. When set to true, transitive dependents of included actions will
/// be executed.
#[prost(bool, tag = "4")]
pub transitive_dependents_included: bool,
/// Optional. When set to true, any incremental tables will be fully refreshed.
#[prost(bool, tag = "5")]
pub fully_refresh_incremental_tables_enabled: bool,
/// Optional. The service account to run workflow invocations under.
#[prost(string, tag = "6")]
pub service_account: ::prost::alloc::string::String,
}
/// `ListWorkflowConfigs` request message.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListWorkflowConfigsRequest {
/// Required. The repository in which to list workflow configs. Must be in the
/// format `projects/*/locations/*/repositories/*`.
#[prost(string, tag = "1")]
pub parent: ::prost::alloc::string::String,
/// Optional. Maximum number of workflow configs to return. The server may
/// return fewer items than requested. If unspecified, the server will pick an
/// appropriate default.
#[prost(int32, tag = "2")]
pub page_size: i32,
/// Optional. Page token received from a previous `ListWorkflowConfigs` call.
/// Provide this to retrieve the subsequent page.
///
/// When paginating, all other parameters provided to `ListWorkflowConfigs`
/// must match the call that provided the page token.
#[prost(string, tag = "3")]
pub page_token: ::prost::alloc::string::String,
}
/// `ListWorkflowConfigs` response message.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListWorkflowConfigsResponse {
/// List of workflow configs.
#[prost(message, repeated, tag = "1")]
pub workflow_configs: ::prost::alloc::vec::Vec<WorkflowConfig>,
/// A token, which can be sent as `page_token` to retrieve the next page.
/// If this field is omitted, there are no subsequent pages.
#[prost(string, tag = "2")]
pub next_page_token: ::prost::alloc::string::String,
/// Locations which could not be reached.
#[prost(string, repeated, tag = "3")]
pub unreachable: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
}
/// `GetWorkflowConfig` request message.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetWorkflowConfigRequest {
/// Required. The workflow config's name.
#[prost(string, tag = "1")]
pub name: ::prost::alloc::string::String,
}
/// `CreateWorkflowConfig` request message.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CreateWorkflowConfigRequest {
/// Required. The repository in which to create the workflow config. Must be in
/// the format `projects/*/locations/*/repositories/*`.
#[prost(string, tag = "1")]
pub parent: ::prost::alloc::string::String,
/// Required. The workflow config to create.
#[prost(message, optional, tag = "2")]
pub workflow_config: ::core::option::Option<WorkflowConfig>,
/// Required. The ID to use for the workflow config, which will become the
/// final component of the workflow config's resource name.
#[prost(string, tag = "3")]
pub workflow_config_id: ::prost::alloc::string::String,
}
/// `UpdateWorkflowConfig` request message.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct UpdateWorkflowConfigRequest {
/// Optional. Specifies the fields to be updated in the workflow config. If
/// left unset, all fields will be updated.
#[prost(message, optional, tag = "1")]
pub update_mask: ::core::option::Option<::prost_types::FieldMask>,
/// Required. The workflow config to update.
#[prost(message, optional, tag = "2")]
pub workflow_config: ::core::option::Option<WorkflowConfig>,
}
/// `DeleteWorkflowConfig` request message.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DeleteWorkflowConfigRequest {
/// Required. The workflow config's name.
#[prost(string, tag = "1")]
pub name: ::prost::alloc::string::String,
}
/// Represents a single invocation of a compilation result.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct WorkflowInvocation {
/// Output only. The workflow invocation's name.
#[prost(string, tag = "1")]
pub name: ::prost::alloc::string::String,
/// Immutable. If left unset, a default InvocationConfig will be used.
#[prost(message, optional, tag = "3")]
pub invocation_config: ::core::option::Option<InvocationConfig>,
/// Output only. This workflow invocation's current state.
#[prost(enumeration = "workflow_invocation::State", tag = "4")]
pub state: i32,
/// Output only. This workflow invocation's timing details.
#[prost(message, optional, tag = "5")]
pub invocation_timing: ::core::option::Option<super::super::super::r#type::Interval>,
#[prost(oneof = "workflow_invocation::CompilationSource", tags = "2, 6")]
pub compilation_source: ::core::option::Option<
workflow_invocation::CompilationSource,
>,
}
/// Nested message and enum types in `WorkflowInvocation`.
pub mod workflow_invocation {
/// Represents the current state of a workflow invocation.
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum State {
/// Default value. This value is unused.
Unspecified = 0,
/// The workflow invocation is currently running.
Running = 1,
/// The workflow invocation succeeded. A terminal state.
Succeeded = 2,
/// The workflow invocation was cancelled. A terminal state.
Cancelled = 3,
/// The workflow invocation failed. A terminal state.
Failed = 4,
/// The workflow invocation is being cancelled, but some actions are still
/// running.
Canceling = 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::Running => "RUNNING",
State::Succeeded => "SUCCEEDED",
State::Cancelled => "CANCELLED",
State::Failed => "FAILED",
State::Canceling => "CANCELING",
}
}
/// 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),
"RUNNING" => Some(Self::Running),
"SUCCEEDED" => Some(Self::Succeeded),
"CANCELLED" => Some(Self::Cancelled),
"FAILED" => Some(Self::Failed),
"CANCELING" => Some(Self::Canceling),
_ => None,
}
}
}
#[derive(Clone, PartialEq, ::prost::Oneof)]
pub enum CompilationSource {
/// Immutable. The name of the compilation result to use for this invocation.
/// Must be in the format
/// `projects/*/locations/*/repositories/*/compilationResults/*`.
#[prost(string, tag = "2")]
CompilationResult(::prost::alloc::string::String),
/// Immutable. The name of the workflow config to invoke. Must be in the
/// format `projects/*/locations/*/repositories/*/workflowConfigs/*`.
#[prost(string, tag = "6")]
WorkflowConfig(::prost::alloc::string::String),
}
}
/// `ListWorkflowInvocations` request message.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListWorkflowInvocationsRequest {
/// Required. The parent resource of the WorkflowInvocation type. Must be in
/// the format `projects/*/locations/*/repositories/*`.
#[prost(string, tag = "1")]
pub parent: ::prost::alloc::string::String,
/// Optional. Maximum number of workflow invocations to return. The server may
/// return fewer items than requested. If unspecified, the server will pick an
/// appropriate default.
#[prost(int32, tag = "2")]
pub page_size: i32,
/// Optional. Page token received from a previous `ListWorkflowInvocations`
/// call. Provide this to retrieve the subsequent page.
///
/// When paginating, all other parameters provided to `ListWorkflowInvocations`
/// must match the call that provided the page token.
#[prost(string, tag = "3")]
pub page_token: ::prost::alloc::string::String,
/// Optional. This field only supports ordering by `name`. If unspecified, the
/// server will choose the ordering. If specified, the default order is
/// ascending for the `name` field.
#[prost(string, tag = "4")]
pub order_by: ::prost::alloc::string::String,
/// Optional. Filter for the returned list.
#[prost(string, tag = "5")]
pub filter: ::prost::alloc::string::String,
}
/// `ListWorkflowInvocations` response message.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListWorkflowInvocationsResponse {
/// List of workflow invocations.
#[prost(message, repeated, tag = "1")]
pub workflow_invocations: ::prost::alloc::vec::Vec<WorkflowInvocation>,
/// A token, which can be sent as `page_token` to retrieve the next page.
/// If this field is omitted, there are no subsequent pages.
#[prost(string, tag = "2")]
pub next_page_token: ::prost::alloc::string::String,
/// Locations which could not be reached.
#[prost(string, repeated, tag = "3")]
pub unreachable: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
}
/// `GetWorkflowInvocation` request message.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetWorkflowInvocationRequest {
/// Required. The workflow invocation resource's name.
#[prost(string, tag = "1")]
pub name: ::prost::alloc::string::String,
}
/// `CreateWorkflowInvocation` request message.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CreateWorkflowInvocationRequest {
/// Required. The repository in which to create the workflow invocation. Must
/// be in the format `projects/*/locations/*/repositories/*`.
#[prost(string, tag = "1")]
pub parent: ::prost::alloc::string::String,
/// Required. The workflow invocation resource to create.
#[prost(message, optional, tag = "2")]
pub workflow_invocation: ::core::option::Option<WorkflowInvocation>,
}
/// `DeleteWorkflowInvocation` request message.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DeleteWorkflowInvocationRequest {
/// Required. The workflow invocation resource's name.
#[prost(string, tag = "1")]
pub name: ::prost::alloc::string::String,
}
/// `CancelWorkflowInvocation` request message.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CancelWorkflowInvocationRequest {
/// Required. The workflow invocation resource's name.
#[prost(string, tag = "1")]
pub name: ::prost::alloc::string::String,
}
/// Represents a single action in a workflow invocation.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct WorkflowInvocationAction {
/// Output only. This action's identifier. Unique within the workflow
/// invocation.
#[prost(message, optional, tag = "1")]
pub target: ::core::option::Option<Target>,
/// Output only. The action's identifier if the project had been compiled
/// without any overrides configured. Unique within the compilation result.
#[prost(message, optional, tag = "2")]
pub canonical_target: ::core::option::Option<Target>,
/// Output only. This action's current state.
#[prost(enumeration = "workflow_invocation_action::State", tag = "4")]
pub state: i32,
/// Output only. If and only if action's state is FAILED a failure reason is
/// set.
#[prost(string, tag = "7")]
pub failure_reason: ::prost::alloc::string::String,
/// Output only. This action's timing details.
/// `start_time` will be set if the action is in [RUNNING, SUCCEEDED,
/// CANCELLED, FAILED] state.
/// `end_time` will be set if the action is in \[SUCCEEDED, CANCELLED, FAILED\]
/// state.
#[prost(message, optional, tag = "5")]
pub invocation_timing: ::core::option::Option<super::super::super::r#type::Interval>,
/// Output only. The workflow action's bigquery action details.
#[prost(message, optional, tag = "6")]
pub bigquery_action: ::core::option::Option<
workflow_invocation_action::BigQueryAction,
>,
}
/// Nested message and enum types in `WorkflowInvocationAction`.
pub mod workflow_invocation_action {
/// Represents a workflow action that will run against BigQuery.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct BigQueryAction {
/// Output only. The generated BigQuery SQL script that will be executed.
#[prost(string, tag = "1")]
pub sql_script: ::prost::alloc::string::String,
}
/// Represents the current state of a workflow invocation action.
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum State {
/// The action has not yet been considered for invocation.
Pending = 0,
/// The action is currently running.
Running = 1,
/// Execution of the action was skipped because upstream dependencies did not
/// all complete successfully. A terminal state.
Skipped = 2,
/// Execution of the action was disabled as per the configuration of the
/// corresponding compilation result action. A terminal state.
Disabled = 3,
/// The action succeeded. A terminal state.
Succeeded = 4,
/// The action was cancelled. A terminal state.
Cancelled = 5,
/// The action failed. A terminal state.
Failed = 6,
}
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::Pending => "PENDING",
State::Running => "RUNNING",
State::Skipped => "SKIPPED",
State::Disabled => "DISABLED",
State::Succeeded => "SUCCEEDED",
State::Cancelled => "CANCELLED",
State::Failed => "FAILED",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"PENDING" => Some(Self::Pending),
"RUNNING" => Some(Self::Running),
"SKIPPED" => Some(Self::Skipped),
"DISABLED" => Some(Self::Disabled),
"SUCCEEDED" => Some(Self::Succeeded),
"CANCELLED" => Some(Self::Cancelled),
"FAILED" => Some(Self::Failed),
_ => None,
}
}
}
}
/// `QueryWorkflowInvocationActions` request message.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct QueryWorkflowInvocationActionsRequest {
/// Required. The workflow invocation's name.
#[prost(string, tag = "1")]
pub name: ::prost::alloc::string::String,
/// Optional. Maximum number of workflow invocations to return. The server may
/// return fewer items than requested. If unspecified, the server will pick an
/// appropriate default.
#[prost(int32, tag = "2")]
pub page_size: i32,
/// Optional. Page token received from a previous
/// `QueryWorkflowInvocationActions` call. Provide this to retrieve the
/// subsequent page.
///
/// When paginating, all other parameters provided to
/// `QueryWorkflowInvocationActions` must match the call that provided the page
/// token.
#[prost(string, tag = "3")]
pub page_token: ::prost::alloc::string::String,
}
/// `QueryWorkflowInvocationActions` response message.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct QueryWorkflowInvocationActionsResponse {
/// List of workflow invocation actions.
#[prost(message, repeated, tag = "1")]
pub workflow_invocation_actions: ::prost::alloc::vec::Vec<WorkflowInvocationAction>,
/// A token, which can be sent as `page_token` to retrieve the next page.
/// If this field is omitted, there are no subsequent pages.
#[prost(string, tag = "2")]
pub next_page_token: ::prost::alloc::string::String,
}
/// Generated client implementations.
pub mod dataform_client {
#![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)]
use tonic::codegen::*;
use tonic::codegen::http::Uri;
/// Dataform is a service to develop, create, document, test, and update curated
/// tables in BigQuery.
#[derive(Debug, Clone)]
pub struct DataformClient<T> {
inner: tonic::client::Grpc<T>,
}
impl<T> DataformClient<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,
) -> DataformClient<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,
{
DataformClient::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 Repositories in a given project and location.
pub async fn list_repositories(
&mut self,
request: impl tonic::IntoRequest<super::ListRepositoriesRequest>,
) -> std::result::Result<
tonic::Response<super::ListRepositoriesResponse>,
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.cloud.dataform.v1beta1.Dataform/ListRepositories",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.dataform.v1beta1.Dataform",
"ListRepositories",
),
);
self.inner.unary(req, path, codec).await
}
/// Fetches a single Repository.
pub async fn get_repository(
&mut self,
request: impl tonic::IntoRequest<super::GetRepositoryRequest>,
) -> std::result::Result<tonic::Response<super::Repository>, 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.cloud.dataform.v1beta1.Dataform/GetRepository",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.dataform.v1beta1.Dataform",
"GetRepository",
),
);
self.inner.unary(req, path, codec).await
}
/// Creates a new Repository in a given project and location.
pub async fn create_repository(
&mut self,
request: impl tonic::IntoRequest<super::CreateRepositoryRequest>,
) -> std::result::Result<tonic::Response<super::Repository>, 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.cloud.dataform.v1beta1.Dataform/CreateRepository",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.dataform.v1beta1.Dataform",
"CreateRepository",
),
);
self.inner.unary(req, path, codec).await
}
/// Updates a single Repository.
pub async fn update_repository(
&mut self,
request: impl tonic::IntoRequest<super::UpdateRepositoryRequest>,
) -> std::result::Result<tonic::Response<super::Repository>, 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.cloud.dataform.v1beta1.Dataform/UpdateRepository",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.dataform.v1beta1.Dataform",
"UpdateRepository",
),
);
self.inner.unary(req, path, codec).await
}
/// Deletes a single Repository.
pub async fn delete_repository(
&mut self,
request: impl tonic::IntoRequest<super::DeleteRepositoryRequest>,
) -> 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.cloud.dataform.v1beta1.Dataform/DeleteRepository",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.dataform.v1beta1.Dataform",
"DeleteRepository",
),
);
self.inner.unary(req, path, codec).await
}
/// Applies a Git commit to a Repository. The Repository must not have a value
/// for `git_remote_settings.url`.
pub async fn commit_repository_changes(
&mut self,
request: impl tonic::IntoRequest<super::CommitRepositoryChangesRequest>,
) -> 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.cloud.dataform.v1beta1.Dataform/CommitRepositoryChanges",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.dataform.v1beta1.Dataform",
"CommitRepositoryChanges",
),
);
self.inner.unary(req, path, codec).await
}
/// Returns the contents of a file (inside a Repository). The Repository
/// must not have a value for `git_remote_settings.url`.
pub async fn read_repository_file(
&mut self,
request: impl tonic::IntoRequest<super::ReadRepositoryFileRequest>,
) -> std::result::Result<
tonic::Response<super::ReadRepositoryFileResponse>,
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.cloud.dataform.v1beta1.Dataform/ReadRepositoryFile",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.dataform.v1beta1.Dataform",
"ReadRepositoryFile",
),
);
self.inner.unary(req, path, codec).await
}
/// Returns the contents of a given Repository directory. The Repository must
/// not have a value for `git_remote_settings.url`.
pub async fn query_repository_directory_contents(
&mut self,
request: impl tonic::IntoRequest<
super::QueryRepositoryDirectoryContentsRequest,
>,
) -> std::result::Result<
tonic::Response<super::QueryRepositoryDirectoryContentsResponse>,
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.cloud.dataform.v1beta1.Dataform/QueryRepositoryDirectoryContents",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.dataform.v1beta1.Dataform",
"QueryRepositoryDirectoryContents",
),
);
self.inner.unary(req, path, codec).await
}
/// Fetches a Repository's history of commits. The Repository must not have a
/// value for `git_remote_settings.url`.
pub async fn fetch_repository_history(
&mut self,
request: impl tonic::IntoRequest<super::FetchRepositoryHistoryRequest>,
) -> std::result::Result<
tonic::Response<super::FetchRepositoryHistoryResponse>,
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.cloud.dataform.v1beta1.Dataform/FetchRepositoryHistory",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.dataform.v1beta1.Dataform",
"FetchRepositoryHistory",
),
);
self.inner.unary(req, path, codec).await
}
/// Computes a Repository's Git access token status.
pub async fn compute_repository_access_token_status(
&mut self,
request: impl tonic::IntoRequest<
super::ComputeRepositoryAccessTokenStatusRequest,
>,
) -> std::result::Result<
tonic::Response<super::ComputeRepositoryAccessTokenStatusResponse>,
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.cloud.dataform.v1beta1.Dataform/ComputeRepositoryAccessTokenStatus",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.dataform.v1beta1.Dataform",
"ComputeRepositoryAccessTokenStatus",
),
);
self.inner.unary(req, path, codec).await
}
/// Fetches a Repository's remote branches.
pub async fn fetch_remote_branches(
&mut self,
request: impl tonic::IntoRequest<super::FetchRemoteBranchesRequest>,
) -> std::result::Result<
tonic::Response<super::FetchRemoteBranchesResponse>,
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.cloud.dataform.v1beta1.Dataform/FetchRemoteBranches",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.dataform.v1beta1.Dataform",
"FetchRemoteBranches",
),
);
self.inner.unary(req, path, codec).await
}
/// Lists Workspaces in a given Repository.
pub async fn list_workspaces(
&mut self,
request: impl tonic::IntoRequest<super::ListWorkspacesRequest>,
) -> std::result::Result<
tonic::Response<super::ListWorkspacesResponse>,
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.cloud.dataform.v1beta1.Dataform/ListWorkspaces",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.dataform.v1beta1.Dataform",
"ListWorkspaces",
),
);
self.inner.unary(req, path, codec).await
}
/// Fetches a single Workspace.
pub async fn get_workspace(
&mut self,
request: impl tonic::IntoRequest<super::GetWorkspaceRequest>,
) -> std::result::Result<tonic::Response<super::Workspace>, 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.cloud.dataform.v1beta1.Dataform/GetWorkspace",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.dataform.v1beta1.Dataform",
"GetWorkspace",
),
);
self.inner.unary(req, path, codec).await
}
/// Creates a new Workspace in a given Repository.
pub async fn create_workspace(
&mut self,
request: impl tonic::IntoRequest<super::CreateWorkspaceRequest>,
) -> std::result::Result<tonic::Response<super::Workspace>, 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.cloud.dataform.v1beta1.Dataform/CreateWorkspace",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.dataform.v1beta1.Dataform",
"CreateWorkspace",
),
);
self.inner.unary(req, path, codec).await
}
/// Deletes a single Workspace.
pub async fn delete_workspace(
&mut self,
request: impl tonic::IntoRequest<super::DeleteWorkspaceRequest>,
) -> 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.cloud.dataform.v1beta1.Dataform/DeleteWorkspace",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.dataform.v1beta1.Dataform",
"DeleteWorkspace",
),
);
self.inner.unary(req, path, codec).await
}
/// Installs dependency NPM packages (inside a Workspace).
pub async fn install_npm_packages(
&mut self,
request: impl tonic::IntoRequest<super::InstallNpmPackagesRequest>,
) -> std::result::Result<
tonic::Response<super::InstallNpmPackagesResponse>,
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.cloud.dataform.v1beta1.Dataform/InstallNpmPackages",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.dataform.v1beta1.Dataform",
"InstallNpmPackages",
),
);
self.inner.unary(req, path, codec).await
}
/// Pulls Git commits from the Repository's remote into a Workspace.
pub async fn pull_git_commits(
&mut self,
request: impl tonic::IntoRequest<super::PullGitCommitsRequest>,
) -> 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.cloud.dataform.v1beta1.Dataform/PullGitCommits",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.dataform.v1beta1.Dataform",
"PullGitCommits",
),
);
self.inner.unary(req, path, codec).await
}
/// Pushes Git commits from a Workspace to the Repository's remote.
pub async fn push_git_commits(
&mut self,
request: impl tonic::IntoRequest<super::PushGitCommitsRequest>,
) -> 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.cloud.dataform.v1beta1.Dataform/PushGitCommits",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.dataform.v1beta1.Dataform",
"PushGitCommits",
),
);
self.inner.unary(req, path, codec).await
}
/// Fetches Git statuses for the files in a Workspace.
pub async fn fetch_file_git_statuses(
&mut self,
request: impl tonic::IntoRequest<super::FetchFileGitStatusesRequest>,
) -> std::result::Result<
tonic::Response<super::FetchFileGitStatusesResponse>,
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.cloud.dataform.v1beta1.Dataform/FetchFileGitStatuses",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.dataform.v1beta1.Dataform",
"FetchFileGitStatuses",
),
);
self.inner.unary(req, path, codec).await
}
/// Fetches Git ahead/behind against a remote branch.
pub async fn fetch_git_ahead_behind(
&mut self,
request: impl tonic::IntoRequest<super::FetchGitAheadBehindRequest>,
) -> std::result::Result<
tonic::Response<super::FetchGitAheadBehindResponse>,
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.cloud.dataform.v1beta1.Dataform/FetchGitAheadBehind",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.dataform.v1beta1.Dataform",
"FetchGitAheadBehind",
),
);
self.inner.unary(req, path, codec).await
}
/// Applies a Git commit for uncommitted files in a Workspace.
pub async fn commit_workspace_changes(
&mut self,
request: impl tonic::IntoRequest<super::CommitWorkspaceChangesRequest>,
) -> 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.cloud.dataform.v1beta1.Dataform/CommitWorkspaceChanges",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.dataform.v1beta1.Dataform",
"CommitWorkspaceChanges",
),
);
self.inner.unary(req, path, codec).await
}
/// Performs a Git reset for uncommitted files in a Workspace.
pub async fn reset_workspace_changes(
&mut self,
request: impl tonic::IntoRequest<super::ResetWorkspaceChangesRequest>,
) -> 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.cloud.dataform.v1beta1.Dataform/ResetWorkspaceChanges",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.dataform.v1beta1.Dataform",
"ResetWorkspaceChanges",
),
);
self.inner.unary(req, path, codec).await
}
/// Fetches Git diff for an uncommitted file in a Workspace.
pub async fn fetch_file_diff(
&mut self,
request: impl tonic::IntoRequest<super::FetchFileDiffRequest>,
) -> std::result::Result<
tonic::Response<super::FetchFileDiffResponse>,
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.cloud.dataform.v1beta1.Dataform/FetchFileDiff",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.dataform.v1beta1.Dataform",
"FetchFileDiff",
),
);
self.inner.unary(req, path, codec).await
}
/// Returns the contents of a given Workspace directory.
pub async fn query_directory_contents(
&mut self,
request: impl tonic::IntoRequest<super::QueryDirectoryContentsRequest>,
) -> std::result::Result<
tonic::Response<super::QueryDirectoryContentsResponse>,
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.cloud.dataform.v1beta1.Dataform/QueryDirectoryContents",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.dataform.v1beta1.Dataform",
"QueryDirectoryContents",
),
);
self.inner.unary(req, path, codec).await
}
/// Creates a directory inside a Workspace.
pub async fn make_directory(
&mut self,
request: impl tonic::IntoRequest<super::MakeDirectoryRequest>,
) -> std::result::Result<
tonic::Response<super::MakeDirectoryResponse>,
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.cloud.dataform.v1beta1.Dataform/MakeDirectory",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.dataform.v1beta1.Dataform",
"MakeDirectory",
),
);
self.inner.unary(req, path, codec).await
}
/// Deletes a directory (inside a Workspace) and all of its contents.
pub async fn remove_directory(
&mut self,
request: impl tonic::IntoRequest<super::RemoveDirectoryRequest>,
) -> 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.cloud.dataform.v1beta1.Dataform/RemoveDirectory",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.dataform.v1beta1.Dataform",
"RemoveDirectory",
),
);
self.inner.unary(req, path, codec).await
}
/// Moves a directory (inside a Workspace), and all of its contents, to a new
/// location.
pub async fn move_directory(
&mut self,
request: impl tonic::IntoRequest<super::MoveDirectoryRequest>,
) -> std::result::Result<
tonic::Response<super::MoveDirectoryResponse>,
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.cloud.dataform.v1beta1.Dataform/MoveDirectory",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.dataform.v1beta1.Dataform",
"MoveDirectory",
),
);
self.inner.unary(req, path, codec).await
}
/// Returns the contents of a file (inside a Workspace).
pub async fn read_file(
&mut self,
request: impl tonic::IntoRequest<super::ReadFileRequest>,
) -> std::result::Result<
tonic::Response<super::ReadFileResponse>,
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.cloud.dataform.v1beta1.Dataform/ReadFile",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new("google.cloud.dataform.v1beta1.Dataform", "ReadFile"),
);
self.inner.unary(req, path, codec).await
}
/// Deletes a file (inside a Workspace).
pub async fn remove_file(
&mut self,
request: impl tonic::IntoRequest<super::RemoveFileRequest>,
) -> 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.cloud.dataform.v1beta1.Dataform/RemoveFile",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.dataform.v1beta1.Dataform",
"RemoveFile",
),
);
self.inner.unary(req, path, codec).await
}
/// Moves a file (inside a Workspace) to a new location.
pub async fn move_file(
&mut self,
request: impl tonic::IntoRequest<super::MoveFileRequest>,
) -> std::result::Result<
tonic::Response<super::MoveFileResponse>,
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.cloud.dataform.v1beta1.Dataform/MoveFile",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new("google.cloud.dataform.v1beta1.Dataform", "MoveFile"),
);
self.inner.unary(req, path, codec).await
}
/// Writes to a file (inside a Workspace).
pub async fn write_file(
&mut self,
request: impl tonic::IntoRequest<super::WriteFileRequest>,
) -> std::result::Result<
tonic::Response<super::WriteFileResponse>,
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.cloud.dataform.v1beta1.Dataform/WriteFile",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.dataform.v1beta1.Dataform",
"WriteFile",
),
);
self.inner.unary(req, path, codec).await
}
/// Lists ReleaseConfigs in a given Repository.
pub async fn list_release_configs(
&mut self,
request: impl tonic::IntoRequest<super::ListReleaseConfigsRequest>,
) -> std::result::Result<
tonic::Response<super::ListReleaseConfigsResponse>,
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.cloud.dataform.v1beta1.Dataform/ListReleaseConfigs",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.dataform.v1beta1.Dataform",
"ListReleaseConfigs",
),
);
self.inner.unary(req, path, codec).await
}
/// Fetches a single ReleaseConfig.
pub async fn get_release_config(
&mut self,
request: impl tonic::IntoRequest<super::GetReleaseConfigRequest>,
) -> std::result::Result<tonic::Response<super::ReleaseConfig>, 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.cloud.dataform.v1beta1.Dataform/GetReleaseConfig",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.dataform.v1beta1.Dataform",
"GetReleaseConfig",
),
);
self.inner.unary(req, path, codec).await
}
/// Creates a new ReleaseConfig in a given Repository.
pub async fn create_release_config(
&mut self,
request: impl tonic::IntoRequest<super::CreateReleaseConfigRequest>,
) -> std::result::Result<tonic::Response<super::ReleaseConfig>, 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.cloud.dataform.v1beta1.Dataform/CreateReleaseConfig",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.dataform.v1beta1.Dataform",
"CreateReleaseConfig",
),
);
self.inner.unary(req, path, codec).await
}
/// Updates a single ReleaseConfig.
pub async fn update_release_config(
&mut self,
request: impl tonic::IntoRequest<super::UpdateReleaseConfigRequest>,
) -> std::result::Result<tonic::Response<super::ReleaseConfig>, 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.cloud.dataform.v1beta1.Dataform/UpdateReleaseConfig",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.dataform.v1beta1.Dataform",
"UpdateReleaseConfig",
),
);
self.inner.unary(req, path, codec).await
}
/// Deletes a single ReleaseConfig.
pub async fn delete_release_config(
&mut self,
request: impl tonic::IntoRequest<super::DeleteReleaseConfigRequest>,
) -> 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.cloud.dataform.v1beta1.Dataform/DeleteReleaseConfig",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.dataform.v1beta1.Dataform",
"DeleteReleaseConfig",
),
);
self.inner.unary(req, path, codec).await
}
/// Lists CompilationResults in a given Repository.
pub async fn list_compilation_results(
&mut self,
request: impl tonic::IntoRequest<super::ListCompilationResultsRequest>,
) -> std::result::Result<
tonic::Response<super::ListCompilationResultsResponse>,
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.cloud.dataform.v1beta1.Dataform/ListCompilationResults",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.dataform.v1beta1.Dataform",
"ListCompilationResults",
),
);
self.inner.unary(req, path, codec).await
}
/// Fetches a single CompilationResult.
pub async fn get_compilation_result(
&mut self,
request: impl tonic::IntoRequest<super::GetCompilationResultRequest>,
) -> std::result::Result<
tonic::Response<super::CompilationResult>,
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.cloud.dataform.v1beta1.Dataform/GetCompilationResult",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.dataform.v1beta1.Dataform",
"GetCompilationResult",
),
);
self.inner.unary(req, path, codec).await
}
/// Creates a new CompilationResult in a given project and location.
pub async fn create_compilation_result(
&mut self,
request: impl tonic::IntoRequest<super::CreateCompilationResultRequest>,
) -> std::result::Result<
tonic::Response<super::CompilationResult>,
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.cloud.dataform.v1beta1.Dataform/CreateCompilationResult",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.dataform.v1beta1.Dataform",
"CreateCompilationResult",
),
);
self.inner.unary(req, path, codec).await
}
/// Returns CompilationResultActions in a given CompilationResult.
pub async fn query_compilation_result_actions(
&mut self,
request: impl tonic::IntoRequest<super::QueryCompilationResultActionsRequest>,
) -> std::result::Result<
tonic::Response<super::QueryCompilationResultActionsResponse>,
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.cloud.dataform.v1beta1.Dataform/QueryCompilationResultActions",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.dataform.v1beta1.Dataform",
"QueryCompilationResultActions",
),
);
self.inner.unary(req, path, codec).await
}
/// Lists WorkflowConfigs in a given Repository.
pub async fn list_workflow_configs(
&mut self,
request: impl tonic::IntoRequest<super::ListWorkflowConfigsRequest>,
) -> std::result::Result<
tonic::Response<super::ListWorkflowConfigsResponse>,
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.cloud.dataform.v1beta1.Dataform/ListWorkflowConfigs",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.dataform.v1beta1.Dataform",
"ListWorkflowConfigs",
),
);
self.inner.unary(req, path, codec).await
}
/// Fetches a single WorkflowConfig.
pub async fn get_workflow_config(
&mut self,
request: impl tonic::IntoRequest<super::GetWorkflowConfigRequest>,
) -> std::result::Result<tonic::Response<super::WorkflowConfig>, 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.cloud.dataform.v1beta1.Dataform/GetWorkflowConfig",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.dataform.v1beta1.Dataform",
"GetWorkflowConfig",
),
);
self.inner.unary(req, path, codec).await
}
/// Creates a new WorkflowConfig in a given Repository.
pub async fn create_workflow_config(
&mut self,
request: impl tonic::IntoRequest<super::CreateWorkflowConfigRequest>,
) -> std::result::Result<tonic::Response<super::WorkflowConfig>, 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.cloud.dataform.v1beta1.Dataform/CreateWorkflowConfig",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.dataform.v1beta1.Dataform",
"CreateWorkflowConfig",
),
);
self.inner.unary(req, path, codec).await
}
/// Updates a single WorkflowConfig.
pub async fn update_workflow_config(
&mut self,
request: impl tonic::IntoRequest<super::UpdateWorkflowConfigRequest>,
) -> std::result::Result<tonic::Response<super::WorkflowConfig>, 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.cloud.dataform.v1beta1.Dataform/UpdateWorkflowConfig",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.dataform.v1beta1.Dataform",
"UpdateWorkflowConfig",
),
);
self.inner.unary(req, path, codec).await
}
/// Deletes a single WorkflowConfig.
pub async fn delete_workflow_config(
&mut self,
request: impl tonic::IntoRequest<super::DeleteWorkflowConfigRequest>,
) -> 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.cloud.dataform.v1beta1.Dataform/DeleteWorkflowConfig",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.dataform.v1beta1.Dataform",
"DeleteWorkflowConfig",
),
);
self.inner.unary(req, path, codec).await
}
/// Lists WorkflowInvocations in a given Repository.
pub async fn list_workflow_invocations(
&mut self,
request: impl tonic::IntoRequest<super::ListWorkflowInvocationsRequest>,
) -> std::result::Result<
tonic::Response<super::ListWorkflowInvocationsResponse>,
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.cloud.dataform.v1beta1.Dataform/ListWorkflowInvocations",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.dataform.v1beta1.Dataform",
"ListWorkflowInvocations",
),
);
self.inner.unary(req, path, codec).await
}
/// Fetches a single WorkflowInvocation.
pub async fn get_workflow_invocation(
&mut self,
request: impl tonic::IntoRequest<super::GetWorkflowInvocationRequest>,
) -> std::result::Result<
tonic::Response<super::WorkflowInvocation>,
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.cloud.dataform.v1beta1.Dataform/GetWorkflowInvocation",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.dataform.v1beta1.Dataform",
"GetWorkflowInvocation",
),
);
self.inner.unary(req, path, codec).await
}
/// Creates a new WorkflowInvocation in a given Repository.
pub async fn create_workflow_invocation(
&mut self,
request: impl tonic::IntoRequest<super::CreateWorkflowInvocationRequest>,
) -> std::result::Result<
tonic::Response<super::WorkflowInvocation>,
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.cloud.dataform.v1beta1.Dataform/CreateWorkflowInvocation",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.dataform.v1beta1.Dataform",
"CreateWorkflowInvocation",
),
);
self.inner.unary(req, path, codec).await
}
/// Deletes a single WorkflowInvocation.
pub async fn delete_workflow_invocation(
&mut self,
request: impl tonic::IntoRequest<super::DeleteWorkflowInvocationRequest>,
) -> 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.cloud.dataform.v1beta1.Dataform/DeleteWorkflowInvocation",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.dataform.v1beta1.Dataform",
"DeleteWorkflowInvocation",
),
);
self.inner.unary(req, path, codec).await
}
/// Requests cancellation of a running WorkflowInvocation.
pub async fn cancel_workflow_invocation(
&mut self,
request: impl tonic::IntoRequest<super::CancelWorkflowInvocationRequest>,
) -> 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.cloud.dataform.v1beta1.Dataform/CancelWorkflowInvocation",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.dataform.v1beta1.Dataform",
"CancelWorkflowInvocation",
),
);
self.inner.unary(req, path, codec).await
}
/// Returns WorkflowInvocationActions in a given WorkflowInvocation.
pub async fn query_workflow_invocation_actions(
&mut self,
request: impl tonic::IntoRequest<
super::QueryWorkflowInvocationActionsRequest,
>,
) -> std::result::Result<
tonic::Response<super::QueryWorkflowInvocationActionsResponse>,
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.cloud.dataform.v1beta1.Dataform/QueryWorkflowInvocationActions",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.cloud.dataform.v1beta1.Dataform",
"QueryWorkflowInvocationActions",
),
);
self.inner.unary(req, path, codec).await
}
}
}