yandex-cloud 2025.4.14

Generated gRPC clients for the Yandex Cloud API
Documentation
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
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct InstanceGroup {
    /// ID of the instance group.
    #[prost(string, tag = "1")]
    pub id: ::prost::alloc::string::String,
    /// ID of the folder that the instance group belongs to.
    #[prost(string, tag = "2")]
    pub folder_id: ::prost::alloc::string::String,
    /// Creation timestamp in \[RFC3339\](<https://www.ietf.org/rfc/rfc3339.txt>) text format.
    #[prost(message, optional, tag = "3")]
    pub created_at: ::core::option::Option<::prost_types::Timestamp>,
    /// Name of the instance group.
    /// The name is unique within the folder.
    #[prost(string, tag = "4")]
    pub name: ::prost::alloc::string::String,
    /// Description of the instance group.
    #[prost(string, tag = "5")]
    pub description: ::prost::alloc::string::String,
    /// Resource labels as `key:value` pairs.
    #[prost(map = "string, string", tag = "6")]
    pub labels: ::std::collections::HashMap<
        ::prost::alloc::string::String,
        ::prost::alloc::string::String,
    >,
    /// Instance template for creating the instance group.
    /// For more information, see [Instance Templates](/docs/compute/concepts/instance-groups/instance-template).
    #[prost(message, optional, tag = "7")]
    pub instance_template: ::core::option::Option<InstanceTemplate>,
    /// [Scaling policy](/docs/compute/concepts/instance-groups/scale) of the instance group.
    #[prost(message, optional, tag = "8")]
    pub scale_policy: ::core::option::Option<ScalePolicy>,
    /// Deployment policy of the instance group.
    #[prost(message, optional, tag = "9")]
    pub deploy_policy: ::core::option::Option<DeployPolicy>,
    /// Allocation policy of the instance group by zones and regions.
    #[prost(message, optional, tag = "10")]
    pub allocation_policy: ::core::option::Option<AllocationPolicy>,
    /// Status of the Network Load Balancer target group attributed to the instance group.
    #[prost(message, optional, tag = "11")]
    pub load_balancer_state: ::core::option::Option<LoadBalancerState>,
    /// States of instances for this instance group.
    #[prost(message, optional, tag = "12")]
    pub managed_instances_state: ::core::option::Option<ManagedInstancesState>,
    /// Settings for balancing load between instances via [Network Load Balancer](/docs/network-load-balancer/concepts)
    /// (OSI model layer 3).
    #[prost(message, optional, tag = "14")]
    pub load_balancer_spec: ::core::option::Option<LoadBalancerSpec>,
    /// Health checking specification. For more information, see [Health check](/docs/network-load-balancer/concepts/health-check).
    #[prost(message, optional, tag = "15")]
    pub health_checks_spec: ::core::option::Option<HealthChecksSpec>,
    /// ID of the service account. The service account will be used for all API calls
    /// made by the Instance Groups component on behalf of the user (for example, creating instances, adding them to load balancer target group, etc.). For more information, see [Service accounts](/docs/iam/concepts/users/service-accounts).
    /// To get the service account ID, use a \[yandex.cloud.iam.v1.ServiceAccountService.List\] request.
    #[prost(string, tag = "16")]
    pub service_account_id: ::prost::alloc::string::String,
    /// Status of the instance group.
    #[prost(enumeration = "instance_group::Status", tag = "17")]
    pub status: i32,
    #[prost(message, repeated, tag = "18")]
    pub variables: ::prost::alloc::vec::Vec<Variable>,
    /// Flag prohibiting deletion of the instance group.
    ///
    /// Allowed values:</br>- `false`: The instance group can be deleted.</br>- `true`: The instance group cannot be deleted.
    ///
    /// The default is `false`.
    #[prost(bool, tag = "19")]
    pub deletion_protection: bool,
    /// Settings for balancing load between instances via [Application Load Balancer](/docs/application-load-balancer/concepts)
    /// (OSI model layer 7).
    #[prost(message, optional, tag = "20")]
    pub application_load_balancer_spec: ::core::option::Option<
        ApplicationLoadBalancerSpec,
    >,
    /// Status of the Application Load Balancer target group attributed to the instance group.
    ///
    /// Returned if there is a working load balancer that the target group is connected to.
    #[prost(message, optional, tag = "21")]
    pub application_load_balancer_state: ::core::option::Option<
        ApplicationLoadBalancerState,
    >,
    /// AutoHealingPolicy policy of the instance group.
    #[prost(message, optional, tag = "22")]
    pub auto_healing_policy: ::core::option::Option<AutoHealingPolicy>,
}
/// Nested message and enum types in `InstanceGroup`.
pub mod instance_group {
    #[derive(
        Clone,
        Copy,
        Debug,
        PartialEq,
        Eq,
        Hash,
        PartialOrd,
        Ord,
        ::prost::Enumeration
    )]
    #[repr(i32)]
    pub enum Status {
        Unspecified = 0,
        /// Instance group is being started and will become active soon.
        Starting = 1,
        /// Instance group is active.
        /// In this state the group manages its instances and monitors their health,
        /// creating, deleting, stopping, updating and starting instances as needed.
        ///
        /// To stop the instance group, call \[yandex.cloud.compute.v1.instancegroup.InstanceGroupService.Stop\].
        /// To pause the processes in the instance group, i.e. scaling, checking instances' health,
        /// auto-healing and updating them, without stopping the instances,
        /// call \[yandex.cloud.compute.v1.instancegroup.InstanceGroupService.PauseProcesses\].
        Active = 2,
        /// Instance group is being stopped.
        /// Group's instances stop receiving traffic from the load balancer (if any) and are then stopped.
        Stopping = 3,
        /// Instance group is stopped.
        /// In this state the group cannot be updated and does not react to any changes made to its instances.
        /// To start the instance group, call \[yandex.cloud.compute.v1.instancegroup.InstanceGroupService.Start\].
        Stopped = 4,
        /// Instance group is being deleted.
        Deleting = 5,
        /// Instance group is paused.
        /// In this state all the processes regarding the group management, i.e. scaling, checking instances' health,
        /// auto-healing and updating them, are paused. The instances that were running prior to pausing the group, however,
        /// may still be running.
        ///
        /// To resume the processes in the instance group,
        /// call \[yandex.cloud.compute.v1.instancegroup.InstanceGroupService.ResumeProcesses\].
        /// The group status will change to `ACTIVE`.
        Paused = 6,
    }
    impl Status {
        /// String value of the enum field names used in the ProtoBuf definition.
        ///
        /// The values are not transformed in any way and thus are considered stable
        /// (if the ProtoBuf definition does not change) and safe for programmatic use.
        pub fn as_str_name(&self) -> &'static str {
            match self {
                Status::Unspecified => "STATUS_UNSPECIFIED",
                Status::Starting => "STARTING",
                Status::Active => "ACTIVE",
                Status::Stopping => "STOPPING",
                Status::Stopped => "STOPPED",
                Status::Deleting => "DELETING",
                Status::Paused => "PAUSED",
            }
        }
        /// Creates an enum from field names used in the ProtoBuf definition.
        pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
            match value {
                "STATUS_UNSPECIFIED" => Some(Self::Unspecified),
                "STARTING" => Some(Self::Starting),
                "ACTIVE" => Some(Self::Active),
                "STOPPING" => Some(Self::Stopping),
                "STOPPED" => Some(Self::Stopped),
                "DELETING" => Some(Self::Deleting),
                "PAUSED" => Some(Self::Paused),
                _ => None,
            }
        }
    }
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ApplicationLoadBalancerState {
    /// ID of the Application Load Balancer target group attributed to the instance group.
    #[prost(string, tag = "1")]
    pub target_group_id: ::prost::alloc::string::String,
    /// Status message of the target group.
    #[prost(string, tag = "2")]
    pub status_message: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Variable {
    #[prost(string, tag = "1")]
    pub key: ::prost::alloc::string::String,
    #[prost(string, tag = "2")]
    pub value: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct LoadBalancerState {
    /// ID of the Network Load Balancer target group attributed to the instance group.
    #[prost(string, tag = "1")]
    pub target_group_id: ::prost::alloc::string::String,
    /// Status message of the target group.
    #[prost(string, tag = "2")]
    pub status_message: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ManagedInstancesState {
    /// Target number of instances for this instance group.
    #[prost(int64, tag = "1")]
    pub target_size: i64,
    /// The number of running instances that match the current instance template. For more information, see \[ManagedInstance.Status.RUNNING_ACTUAL\].
    #[prost(int64, tag = "4")]
    pub running_actual_count: i64,
    /// The number of running instances that does not match the current instance template. For more information, see \[ManagedInstance.Status.RUNNING_OUTDATED\].
    #[prost(int64, tag = "5")]
    pub running_outdated_count: i64,
    /// The number of instances in flight (for example, updating, starting, deleting). For more information, see \[ManagedInstance.Status\].
    #[prost(int64, tag = "6")]
    pub processing_count: i64,
}
/// Nested message and enum types in `ManagedInstancesState`.
pub mod managed_instances_state {
    #[allow(clippy::derive_partial_eq_without_eq)]
    #[derive(Clone, PartialEq, ::prost::Message)]
    pub struct Statuses {
        /// Instance is being created.
        #[prost(int64, tag = "1")]
        pub creating: i64,
        /// Instance is being started.
        #[prost(int64, tag = "2")]
        pub starting: i64,
        /// Instance is being opened to receive traffic.
        #[prost(int64, tag = "3")]
        pub opening: i64,
        /// Instance is being warmed.
        #[prost(int64, tag = "4")]
        pub warming: i64,
        /// Instance is running normally.
        #[prost(int64, tag = "5")]
        pub running: i64,
        /// Instance is being closed to traffic.
        #[prost(int64, tag = "6")]
        pub closing: i64,
        /// Instance is being stopped.
        #[prost(int64, tag = "7")]
        pub stopping: i64,
        /// Instance is being updated.
        #[prost(int64, tag = "8")]
        pub updating: i64,
        /// Instance is being deleted.
        #[prost(int64, tag = "9")]
        pub deleting: i64,
        /// Instance failed and needs to be recreated.
        #[prost(int64, tag = "10")]
        pub failed: i64,
    }
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ScalePolicy {
    /// Test spec for [automatic scaling policy](/docs/compute/concepts/instance-groups/scale#auto-scale) of the instance group.
    #[prost(message, optional, tag = "3")]
    pub test_auto_scale: ::core::option::Option<scale_policy::AutoScale>,
    #[prost(oneof = "scale_policy::ScaleType", tags = "1, 2")]
    pub scale_type: ::core::option::Option<scale_policy::ScaleType>,
}
/// Nested message and enum types in `ScalePolicy`.
pub mod scale_policy {
    #[allow(clippy::derive_partial_eq_without_eq)]
    #[derive(Clone, PartialEq, ::prost::Message)]
    pub struct AutoScale {
        /// Lower limit for instance count in each zone.
        #[prost(int64, tag = "1")]
        pub min_zone_size: i64,
        /// Upper limit for total instance count (across all zones).
        /// 0 means maximum limit = 100.
        #[prost(int64, tag = "2")]
        pub max_size: i64,
        /// Time in seconds allotted for averaging metrics.
        /// 1 minute by default.
        #[prost(message, optional, tag = "3")]
        pub measurement_duration: ::core::option::Option<::prost_types::Duration>,
        /// The warmup time of the instance in seconds. During this time,
        /// traffic is sent to the instance, but instance metrics are not collected.
        #[prost(message, optional, tag = "4")]
        pub warmup_duration: ::core::option::Option<::prost_types::Duration>,
        /// Minimum amount of time in seconds allotted for monitoring before
        /// Instance Groups can reduce the number of instances in the group.
        /// During this time, the group size doesn't decrease, even if the new metric values
        /// indicate that it should.
        #[prost(message, optional, tag = "5")]
        pub stabilization_duration: ::core::option::Option<::prost_types::Duration>,
        /// Target group size.
        #[prost(int64, tag = "6")]
        pub initial_size: i64,
        /// Defines an autoscaling rule based on the average CPU utilization of the instance group.
        ///
        /// If more than one rule is specified, e.g. CPU utilization and one or more Monitoring metrics (\[custom_rules\]),
        /// the size of the instance group will be equal to the maximum of sizes calculated according to each metric.
        #[prost(message, optional, tag = "7")]
        pub cpu_utilization_rule: ::core::option::Option<CpuUtilizationRule>,
        /// Defines an autoscaling rule based on a [custom metric](/docs/monitoring/operations/metric/add) from Monitoring.
        ///
        /// If more than one rule is specified, e.g. CPU utilization (\[cpu_utilization_rule\]) and one or more Monitoring
        /// metrics, the size of the instance group will be equal to the maximum of sizes calculated according to each metric.
        #[prost(message, repeated, tag = "8")]
        pub custom_rules: ::prost::alloc::vec::Vec<CustomRule>,
        /// Autoscaling type.
        #[prost(enumeration = "auto_scale::AutoScaleType", tag = "9")]
        pub auto_scale_type: i32,
    }
    /// Nested message and enum types in `AutoScale`.
    pub mod auto_scale {
        #[derive(
            Clone,
            Copy,
            Debug,
            PartialEq,
            Eq,
            Hash,
            PartialOrd,
            Ord,
            ::prost::Enumeration
        )]
        #[repr(i32)]
        pub enum AutoScaleType {
            Unspecified = 0,
            /// Scale each zone independently. This is the default.
            Zonal = 1,
            /// Scale group as a whole.
            Regional = 2,
        }
        impl AutoScaleType {
            /// 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 {
                    AutoScaleType::Unspecified => "AUTO_SCALE_TYPE_UNSPECIFIED",
                    AutoScaleType::Zonal => "ZONAL",
                    AutoScaleType::Regional => "REGIONAL",
                }
            }
            /// Creates an enum from field names used in the ProtoBuf definition.
            pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
                match value {
                    "AUTO_SCALE_TYPE_UNSPECIFIED" => Some(Self::Unspecified),
                    "ZONAL" => Some(Self::Zonal),
                    "REGIONAL" => Some(Self::Regional),
                    _ => None,
                }
            }
        }
    }
    #[allow(clippy::derive_partial_eq_without_eq)]
    #[derive(Clone, PartialEq, ::prost::Message)]
    pub struct CpuUtilizationRule {
        /// Target CPU utilization level. Instance Groups maintains this level for each availability zone.
        #[prost(double, tag = "1")]
        pub utilization_target: f64,
    }
    #[allow(clippy::derive_partial_eq_without_eq)]
    #[derive(Clone, PartialEq, ::prost::Message)]
    pub struct CustomRule {
        /// Custom metric rule type. This field affects which label from
        /// the custom metric should be used: `zone_id` or `instance_id`.
        #[prost(enumeration = "custom_rule::RuleType", tag = "1")]
        pub rule_type: i32,
        /// Type of custom metric. This field affects how Instance Groups calculates the average metric value.
        #[prost(enumeration = "custom_rule::MetricType", tag = "2")]
        pub metric_type: i32,
        /// Name of custom metric in Monitoring that should be used for scaling.
        #[prost(string, tag = "3")]
        pub metric_name: ::prost::alloc::string::String,
        /// Labels of custom metric in Monitoring that should be used for scaling.
        #[prost(map = "string, string", tag = "5")]
        pub labels: ::std::collections::HashMap<
            ::prost::alloc::string::String,
            ::prost::alloc::string::String,
        >,
        /// Target value for the custom metric. Instance Groups maintains this level for each availability zone.
        #[prost(double, tag = "4")]
        pub target: f64,
        /// Folder id of custom metric in Monitoring that should be used for scaling.
        #[prost(string, tag = "6")]
        pub folder_id: ::prost::alloc::string::String,
        /// Service of custom metric in Monitoring that should be used for scaling.
        #[prost(string, tag = "7")]
        pub service: ::prost::alloc::string::String,
    }
    /// Nested message and enum types in `CustomRule`.
    pub mod custom_rule {
        #[derive(
            Clone,
            Copy,
            Debug,
            PartialEq,
            Eq,
            Hash,
            PartialOrd,
            Ord,
            ::prost::Enumeration
        )]
        #[repr(i32)]
        pub enum RuleType {
            Unspecified = 0,
            /// This type means that the metric applies to one instance.
            /// First, Instance Groups calculates the average metric value for each instance,
            /// then averages the values for instances in one availability zone or in whole group depends on autoscaling type.
            /// This type of metric must have the `instance_id` label.
            Utilization = 1,
            /// This type means that the metric applies to instances in one availability zone or to whole group depends on autoscaling type.
            /// This type of metric must have the `zone_id` label if ZONAL autoscaling type is chosen.
            Workload = 2,
        }
        impl RuleType {
            /// 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 {
                    RuleType::Unspecified => "RULE_TYPE_UNSPECIFIED",
                    RuleType::Utilization => "UTILIZATION",
                    RuleType::Workload => "WORKLOAD",
                }
            }
            /// Creates an enum from field names used in the ProtoBuf definition.
            pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
                match value {
                    "RULE_TYPE_UNSPECIFIED" => Some(Self::Unspecified),
                    "UTILIZATION" => Some(Self::Utilization),
                    "WORKLOAD" => Some(Self::Workload),
                    _ => None,
                }
            }
        }
        #[derive(
            Clone,
            Copy,
            Debug,
            PartialEq,
            Eq,
            Hash,
            PartialOrd,
            Ord,
            ::prost::Enumeration
        )]
        #[repr(i32)]
        pub enum MetricType {
            Unspecified = 0,
            /// This type is used for metrics that show the metric value at a certain point in time,
            /// such as requests per second to the server on an instance.
            ///
            /// Instance Groups calculates the average metric value for the period
            /// specified in the \[AutoScale.measurement_duration\] field.
            Gauge = 1,
            /// This type is used for metrics that monotonically increase over time,
            /// such as the total number of requests to the server on an instance.
            ///
            /// Instance Groups calculates the average value increase for the period
            /// specified in the \[AutoScale.measurement_duration\] field.
            Counter = 2,
        }
        impl MetricType {
            /// 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 {
                    MetricType::Unspecified => "METRIC_TYPE_UNSPECIFIED",
                    MetricType::Gauge => "GAUGE",
                    MetricType::Counter => "COUNTER",
                }
            }
            /// Creates an enum from field names used in the ProtoBuf definition.
            pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
                match value {
                    "METRIC_TYPE_UNSPECIFIED" => Some(Self::Unspecified),
                    "GAUGE" => Some(Self::Gauge),
                    "COUNTER" => Some(Self::Counter),
                    _ => None,
                }
            }
        }
    }
    #[allow(clippy::derive_partial_eq_without_eq)]
    #[derive(Clone, PartialEq, ::prost::Message)]
    pub struct FixedScale {
        /// Number of instances in the instance group.
        #[prost(int64, tag = "1")]
        pub size: i64,
    }
    #[allow(clippy::derive_partial_eq_without_eq)]
    #[derive(Clone, PartialEq, ::prost::Oneof)]
    pub enum ScaleType {
        /// [Manual scaling policy](/docs/compute/concepts/instance-groups/scale#fixed-policy) of the instance group.
        #[prost(message, tag = "1")]
        FixedScale(FixedScale),
        /// [Automatic scaling policy](/docs/compute/concepts/instance-groups/scale#auto-scale) of the instance group.
        #[prost(message, tag = "2")]
        AutoScale(AutoScale),
    }
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DeployPolicy {
    /// The maximum number of running instances that can be taken offline (i.e., stopped or deleted) at the same time
    /// during the update process.
    /// If \[max_expansion\] is not specified or set to zero, \[max_unavailable\] must be set to a non-zero value.
    #[prost(int64, tag = "1")]
    pub max_unavailable: i64,
    /// The maximum number of instances that can be deleted at the same time.
    ///
    /// The value 0 is any number of virtual machines within the allowed values.
    #[prost(int64, tag = "2")]
    pub max_deleting: i64,
    /// The maximum number of instances that can be created at the same time.
    ///
    /// The value 0 is any number of virtual machines within the allowed values.
    #[prost(int64, tag = "3")]
    pub max_creating: i64,
    /// The maximum number of instances that can be temporarily allocated above the group's target size
    /// during the update process.
    /// If \[max_unavailable\] is not specified or set to zero, \[max_expansion\] must be set to a non-zero value.
    #[prost(int64, tag = "6")]
    pub max_expansion: i64,
    /// Instance startup duration.
    /// Instance will be considered up and running (and start receiving traffic) only after startup_duration
    /// has elapsed and all health checks are passed.
    /// See \[yandex.cloud.compute.v1.instancegroup.ManagedInstance.Status\] for more information.
    #[prost(message, optional, tag = "7")]
    pub startup_duration: ::core::option::Option<::prost_types::Duration>,
    /// Affects the lifecycle of the instance during deployment.
    #[prost(enumeration = "deploy_policy::Strategy", tag = "8")]
    pub strategy: i32,
    /// If instance update requires a less disruptive action than \[minimal_action\],
    /// Instance Groups performs \[minimal_action\] to execute the update
    #[prost(enumeration = "deploy_policy::MinimalAction", tag = "14")]
    pub minimal_action: i32,
}
/// Nested message and enum types in `DeployPolicy`.
pub mod deploy_policy {
    #[derive(
        Clone,
        Copy,
        Debug,
        PartialEq,
        Eq,
        Hash,
        PartialOrd,
        Ord,
        ::prost::Enumeration
    )]
    #[repr(i32)]
    pub enum Strategy {
        Unspecified = 0,
        /// Instance Groups can forcefully stop a running instance. This is the default.
        Proactive = 1,
        /// Instance Groups does not stop a running instance.
        /// Instead, it will wait until the instance stops itself or becomes unhealthy.
        Opportunistic = 2,
    }
    impl Strategy {
        /// 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 {
                Strategy::Unspecified => "STRATEGY_UNSPECIFIED",
                Strategy::Proactive => "PROACTIVE",
                Strategy::Opportunistic => "OPPORTUNISTIC",
            }
        }
        /// Creates an enum from field names used in the ProtoBuf definition.
        pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
            match value {
                "STRATEGY_UNSPECIFIED" => Some(Self::Unspecified),
                "PROACTIVE" => Some(Self::Proactive),
                "OPPORTUNISTIC" => Some(Self::Opportunistic),
                _ => None,
            }
        }
    }
    #[derive(
        Clone,
        Copy,
        Debug,
        PartialEq,
        Eq,
        Hash,
        PartialOrd,
        Ord,
        ::prost::Enumeration
    )]
    #[repr(i32)]
    pub enum MinimalAction {
        Unspecified = 0,
        /// Updating an instance without stopping. This is the default.
        LiveUpdate = 1,
        /// Updating an instance with restart: stopping and then starting the instance.
        Restart = 2,
        /// Re-creating an instance: deleting an instance and creating a new one.
        Recreate = 3,
    }
    impl MinimalAction {
        /// 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 {
                MinimalAction::Unspecified => "MINIMAL_ACTION_UNSPECIFIED",
                MinimalAction::LiveUpdate => "LIVE_UPDATE",
                MinimalAction::Restart => "RESTART",
                MinimalAction::Recreate => "RECREATE",
            }
        }
        /// Creates an enum from field names used in the ProtoBuf definition.
        pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
            match value {
                "MINIMAL_ACTION_UNSPECIFIED" => Some(Self::Unspecified),
                "LIVE_UPDATE" => Some(Self::LiveUpdate),
                "RESTART" => Some(Self::Restart),
                "RECREATE" => Some(Self::Recreate),
                _ => None,
            }
        }
    }
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct AllocationPolicy {
    /// List of availability zones.
    #[prost(message, repeated, tag = "1")]
    pub zones: ::prost::alloc::vec::Vec<allocation_policy::Zone>,
}
/// Nested message and enum types in `AllocationPolicy`.
pub mod allocation_policy {
    #[allow(clippy::derive_partial_eq_without_eq)]
    #[derive(Clone, PartialEq, ::prost::Message)]
    pub struct Zone {
        /// ID of the availability zone where the instance resides.
        #[prost(string, tag = "1")]
        pub zone_id: ::prost::alloc::string::String,
        /// Each instance in a zone will be associated with exactly one of a tag from a pool below.
        /// All specified tags must be unique across the whole group not only the zone.
        /// It is guaranteed that during whole deploy only tags from prefix of the specified list will be used.
        /// It is possible to use tag associated with instance in templating via {instance.tag}.
        #[prost(string, repeated, tag = "2")]
        pub instance_tags_pool: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
    }
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct InstanceTemplate {
    /// Description of the instance template.
    #[prost(string, tag = "1")]
    pub description: ::prost::alloc::string::String,
    /// Resource labels as `key:value` pairs.
    #[prost(map = "string, string", tag = "2")]
    pub labels: ::std::collections::HashMap<
        ::prost::alloc::string::String,
        ::prost::alloc::string::String,
    >,
    /// ID of the hardware platform configuration for the instance.
    /// Platforms allows you to create various types of instances: with a large amount of memory,
    /// with a large number of cores, with a burstable performance.
    /// For more information, see \[Platforms\](/docs/compute/concepts/vm-platforms).
    #[prost(string, tag = "3")]
    pub platform_id: ::prost::alloc::string::String,
    /// Computing resources of the instance such as the amount of memory and number of cores.
    #[prost(message, optional, tag = "4")]
    pub resources_spec: ::core::option::Option<ResourcesSpec>,
    /// The metadata `key:value` pairs assigned to this instance template. This includes custom metadata and predefined keys.
    ///
    /// Metadata values may contain one of the supported placeholders:
    ///    {instance_group.id}
    ///    {instance.short_id}
    ///    {instance.index}
    ///    {instance.index_in_zone}
    ///    {instance.zone_id}
    /// InstanceGroup and Instance labels may be copied to metadata following way:
    ///    {instance_group.labels.some_label_key}
    ///    {instance.labels.another_label_key}
    /// These placeholders will be substituted for each created instance anywhere in the value text.
    /// In the rare case the value requires to contain this placeholder explicitly,
    /// it must be escaped with double brackets, in example {instance.index}.
    ///
    /// For example, you may use the metadata in order to provide your public SSH key to the instance.
    /// For more information, see \[Metadata\](/docs/compute/concepts/vm-metadata).
    #[prost(map = "string, string", tag = "5")]
    pub metadata: ::std::collections::HashMap<
        ::prost::alloc::string::String,
        ::prost::alloc::string::String,
    >,
    /// Boot disk specification that will be attached to the instance.
    #[prost(message, optional, tag = "6")]
    pub boot_disk_spec: ::core::option::Option<AttachedDiskSpec>,
    /// Array of secondary disks that will be attached to the instance.
    #[prost(message, repeated, tag = "7")]
    pub secondary_disk_specs: ::prost::alloc::vec::Vec<AttachedDiskSpec>,
    /// Array of network interfaces that will be attached to the instance.
    #[prost(message, repeated, tag = "8")]
    pub network_interface_specs: ::prost::alloc::vec::Vec<NetworkInterfaceSpec>,
    /// Scheduling policy for the instance.
    #[prost(message, optional, tag = "9")]
    pub scheduling_policy: ::core::option::Option<SchedulingPolicy>,
    /// Service account ID for the instance.
    #[prost(string, tag = "10")]
    pub service_account_id: ::prost::alloc::string::String,
    /// Network settings for the instance.
    #[prost(message, optional, tag = "11")]
    pub network_settings: ::core::option::Option<NetworkSettings>,
    /// Name of the instance.
    /// In order to be unique it must contain at least on of instance unique placeholders:
    ///    {instance.short_id}
    ///    {instance.index}
    ///    combination of {instance.zone_id} and {instance.index_in_zone}
    /// Example: my-instance-{instance.index}
    /// If not set, default is used: {instance_group.id}-{instance.short_id}
    /// It may also contain another placeholders, see metadata doc for full list.
    #[prost(string, tag = "12")]
    pub name: ::prost::alloc::string::String,
    /// Host name for the instance.
    /// This field is used to generate the \[yandex.cloud.compute.v1.Instance.fqdn\] value.
    /// The host name must be unique within the network and region.
    /// If not specified, the host name will be equal to \[yandex.cloud.compute.v1.Instance.id\] of the instance
    /// and FQDN will be `<id>.auto.internal`. Otherwise FQDN will be `<hostname>.<region_id>.internal`.
    ///
    /// In order to be unique it must contain at least on of instance unique placeholders:
    ///    {instance.short_id}
    ///    {instance.index}
    ///    combination of {instance.zone_id} and {instance.index_in_zone}
    /// Example: my-instance-{instance.index}
    /// If not set, `name` value will be used
    /// It may also contain another placeholders, see metadata doc for full list.
    #[prost(string, tag = "13")]
    pub hostname: ::prost::alloc::string::String,
    /// Placement Group
    #[prost(message, optional, tag = "14")]
    pub placement_policy: ::core::option::Option<PlacementPolicy>,
    /// Array of filesystems to attach to the instance.
    ///
    /// The filesystems must reside in the same availability zone as the instance.
    ///
    /// To use the instance with an attached filesystem, the latter must be mounted.
    /// For details, see \[documentation\](/docs/compute/operations/filesystem/attach-to-vm).
    #[prost(message, repeated, tag = "15")]
    pub filesystem_specs: ::prost::alloc::vec::Vec<AttachedFilesystemSpec>,
    /// Metadata options for the instance
    #[prost(message, optional, tag = "16")]
    pub metadata_options: ::core::option::Option<MetadataOptions>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct AttachedFilesystemSpec {
    /// Mode of access to the filesystem that should be attached.
    #[prost(enumeration = "attached_filesystem_spec::Mode", tag = "1")]
    pub mode: i32,
    /// Name of the device representing the filesystem on the instance.
    ///
    /// The name should be used for referencing the filesystem from within the instance
    /// when it's being mounted, resized etc.
    ///
    /// If not specified, a random value will be generated.
    #[prost(string, tag = "2")]
    pub device_name: ::prost::alloc::string::String,
    /// ID of the filesystem that should be attached.
    #[prost(string, tag = "3")]
    pub filesystem_id: ::prost::alloc::string::String,
}
/// Nested message and enum types in `AttachedFilesystemSpec`.
pub mod attached_filesystem_spec {
    #[derive(
        Clone,
        Copy,
        Debug,
        PartialEq,
        Eq,
        Hash,
        PartialOrd,
        Ord,
        ::prost::Enumeration
    )]
    #[repr(i32)]
    pub enum Mode {
        Unspecified = 0,
        /// Read-only access.
        ReadOnly = 1,
        /// Read/Write access. Default value.
        ReadWrite = 2,
    }
    impl Mode {
        /// String value of the enum field names used in the ProtoBuf definition.
        ///
        /// The values are not transformed in any way and thus are considered stable
        /// (if the ProtoBuf definition does not change) and safe for programmatic use.
        pub fn as_str_name(&self) -> &'static str {
            match self {
                Mode::Unspecified => "MODE_UNSPECIFIED",
                Mode::ReadOnly => "READ_ONLY",
                Mode::ReadWrite => "READ_WRITE",
            }
        }
        /// Creates an enum from field names used in the ProtoBuf definition.
        pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
            match value {
                "MODE_UNSPECIFIED" => Some(Self::Unspecified),
                "READ_ONLY" => Some(Self::ReadOnly),
                "READ_WRITE" => Some(Self::ReadWrite),
                _ => None,
            }
        }
    }
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct PlacementPolicy {
    /// Identifier of placement group
    #[prost(string, tag = "1")]
    pub placement_group_id: ::prost::alloc::string::String,
    /// List of affinity rules. Scheduler will attempt to allocate instances according to order of rules.
    #[prost(message, repeated, tag = "2")]
    pub host_affinity_rules: ::prost::alloc::vec::Vec<
        placement_policy::HostAffinityRule,
    >,
}
/// Nested message and enum types in `PlacementPolicy`.
pub mod placement_policy {
    /// Affinity definition
    #[allow(clippy::derive_partial_eq_without_eq)]
    #[derive(Clone, PartialEq, ::prost::Message)]
    pub struct HostAffinityRule {
        /// Affinity label or one of reserved values - 'yc.hostId', 'yc.hostGroupId'
        #[prost(string, tag = "1")]
        pub key: ::prost::alloc::string::String,
        /// Include or exclude action
        #[prost(enumeration = "host_affinity_rule::Operator", tag = "2")]
        pub op: i32,
        /// Affinity value or host ID or host group ID
        #[prost(string, repeated, tag = "3")]
        pub values: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
    }
    /// Nested message and enum types in `HostAffinityRule`.
    pub mod host_affinity_rule {
        #[derive(
            Clone,
            Copy,
            Debug,
            PartialEq,
            Eq,
            Hash,
            PartialOrd,
            Ord,
            ::prost::Enumeration
        )]
        #[repr(i32)]
        pub enum Operator {
            Unspecified = 0,
            In = 1,
            NotIn = 2,
        }
        impl Operator {
            /// String value of the enum field names used in the ProtoBuf definition.
            ///
            /// The values are not transformed in any way and thus are considered stable
            /// (if the ProtoBuf definition does not change) and safe for programmatic use.
            pub fn as_str_name(&self) -> &'static str {
                match self {
                    Operator::Unspecified => "OPERATOR_UNSPECIFIED",
                    Operator::In => "IN",
                    Operator::NotIn => "NOT_IN",
                }
            }
            /// Creates an enum from field names used in the ProtoBuf definition.
            pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
                match value {
                    "OPERATOR_UNSPECIFIED" => Some(Self::Unspecified),
                    "IN" => Some(Self::In),
                    "NOT_IN" => Some(Self::NotIn),
                    _ => None,
                }
            }
        }
    }
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ResourcesSpec {
    /// The amount of memory available to the instance, specified in bytes.
    #[prost(int64, tag = "1")]
    pub memory: i64,
    /// The number of cores available to the instance.
    #[prost(int64, tag = "2")]
    pub cores: i64,
    /// Baseline level of CPU performance with the ability to burst performance above that baseline level.
    /// This field sets baseline performance for each core.
    #[prost(int64, tag = "3")]
    pub core_fraction: i64,
    /// The number of GPUs available to the instance.
    #[prost(int64, tag = "4")]
    pub gpus: i64,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct AttachedDiskSpec {
    /// Access mode to the Disk resource.
    #[prost(enumeration = "attached_disk_spec::Mode", tag = "1")]
    pub mode: i32,
    /// Serial number that is reflected in the /dev/disk/by-id/ tree
    /// of a Linux operating system running within the instance.
    ///
    /// This value can be used to reference the device for mounting, resizing, and so on, from within the instance.
    #[prost(string, tag = "2")]
    pub device_name: ::prost::alloc::string::String,
    /// oneof disk_spec or disk_id
    /// Disk specification that is attached to the instance. For more information, see \[Disks\](/docs/compute/concepts/disk).
    #[prost(message, optional, tag = "3")]
    pub disk_spec: ::core::option::Option<attached_disk_spec::DiskSpec>,
    /// Set to use an existing disk. To set use variables.
    #[prost(string, tag = "4")]
    pub disk_id: ::prost::alloc::string::String,
    /// When set can be later used to change DiskSpec of actual disk.
    #[prost(string, tag = "7")]
    pub name: ::prost::alloc::string::String,
}
/// Nested message and enum types in `AttachedDiskSpec`.
pub mod attached_disk_spec {
    #[allow(clippy::derive_partial_eq_without_eq)]
    #[derive(Clone, PartialEq, ::prost::Message)]
    pub struct DiskSpec {
        /// Description of the disk.
        #[prost(string, tag = "1")]
        pub description: ::prost::alloc::string::String,
        /// ID of the disk type.
        #[prost(string, tag = "2")]
        pub type_id: ::prost::alloc::string::String,
        /// Size of the disk, specified in bytes.
        #[prost(int64, tag = "3")]
        pub size: i64,
        /// When set to true, disk will not be deleted even after managed instance is deleted.
        /// It will be a user's responsibility to delete such disks.
        #[prost(bool, tag = "6")]
        pub preserve_after_instance_delete: bool,
        #[prost(oneof = "disk_spec::SourceOneof", tags = "4, 5")]
        pub source_oneof: ::core::option::Option<disk_spec::SourceOneof>,
    }
    /// Nested message and enum types in `DiskSpec`.
    pub mod disk_spec {
        #[allow(clippy::derive_partial_eq_without_eq)]
        #[derive(Clone, PartialEq, ::prost::Oneof)]
        pub enum SourceOneof {
            /// ID of the image that will be used for disk creation.
            #[prost(string, tag = "4")]
            ImageId(::prost::alloc::string::String),
            /// ID of the snapshot that will be used for disk creation.
            #[prost(string, tag = "5")]
            SnapshotId(::prost::alloc::string::String),
        }
    }
    #[derive(
        Clone,
        Copy,
        Debug,
        PartialEq,
        Eq,
        Hash,
        PartialOrd,
        Ord,
        ::prost::Enumeration
    )]
    #[repr(i32)]
    pub enum Mode {
        Unspecified = 0,
        /// Read-only access.
        ReadOnly = 1,
        /// Read/Write access.
        ReadWrite = 2,
    }
    impl Mode {
        /// String value of the enum field names used in the ProtoBuf definition.
        ///
        /// The values are not transformed in any way and thus are considered stable
        /// (if the ProtoBuf definition does not change) and safe for programmatic use.
        pub fn as_str_name(&self) -> &'static str {
            match self {
                Mode::Unspecified => "MODE_UNSPECIFIED",
                Mode::ReadOnly => "READ_ONLY",
                Mode::ReadWrite => "READ_WRITE",
            }
        }
        /// Creates an enum from field names used in the ProtoBuf definition.
        pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
            match value {
                "MODE_UNSPECIFIED" => Some(Self::Unspecified),
                "READ_ONLY" => Some(Self::ReadOnly),
                "READ_WRITE" => Some(Self::ReadWrite),
                _ => None,
            }
        }
    }
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct NetworkInterfaceSpec {
    /// ID of the network.
    #[prost(string, tag = "1")]
    pub network_id: ::prost::alloc::string::String,
    /// IDs of the subnets.
    #[prost(string, repeated, tag = "2")]
    pub subnet_ids: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
    /// Primary IPv4 address that is assigned to the instance for this network interface.
    #[prost(message, optional, tag = "3")]
    pub primary_v4_address_spec: ::core::option::Option<PrimaryAddressSpec>,
    /// Primary IPv6 address that is assigned to the instance for this network interface. IPv6 not available yet.
    #[prost(message, optional, tag = "4")]
    pub primary_v6_address_spec: ::core::option::Option<PrimaryAddressSpec>,
    /// IDs of security groups.
    #[prost(string, repeated, tag = "5")]
    pub security_group_ids: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct PrimaryAddressSpec {
    /// An external IP address configuration.
    /// If not specified, then this managed instance will have no external internet access.
    #[prost(message, optional, tag = "1")]
    pub one_to_one_nat_spec: ::core::option::Option<OneToOneNatSpec>,
    /// Internal DNS configuration
    #[prost(message, repeated, tag = "2")]
    pub dns_record_specs: ::prost::alloc::vec::Vec<DnsRecordSpec>,
    /// Optional. Manual set static internal IP. To set use variables.
    #[prost(string, tag = "3")]
    pub address: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct OneToOneNatSpec {
    /// IP version for the public IP address.
    #[prost(enumeration = "IpVersion", tag = "1")]
    pub ip_version: i32,
    /// Manual set static public IP. To set use variables. (optional)
    #[prost(string, tag = "2")]
    pub address: ::prost::alloc::string::String,
    /// External DNS configuration
    #[prost(message, repeated, tag = "3")]
    pub dns_record_specs: ::prost::alloc::vec::Vec<DnsRecordSpec>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DnsRecordSpec {
    /// FQDN (required)
    #[prost(string, tag = "1")]
    pub fqdn: ::prost::alloc::string::String,
    /// DNS zone id (optional, if not set, private zone used)
    #[prost(string, tag = "2")]
    pub dns_zone_id: ::prost::alloc::string::String,
    /// DNS record ttl, values in 0-86400 (optional)
    #[prost(int64, tag = "3")]
    pub ttl: i64,
    /// When set to true, also create PTR DNS record (optional)
    #[prost(bool, tag = "4")]
    pub ptr: bool,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SchedulingPolicy {
    /// Preemptible instances are stopped at least once every 24 hours, and can be stopped at any time
    /// if their resources are needed by Compute.
    /// For more information, see [Preemptible Virtual Machines](/docs/compute/concepts/preemptible-vm).
    #[prost(bool, tag = "1")]
    pub preemptible: bool,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct NetworkSettings {
    /// Type of instance network.
    #[prost(enumeration = "network_settings::Type", tag = "1")]
    pub r#type: i32,
}
/// Nested message and enum types in `NetworkSettings`.
pub mod network_settings {
    #[derive(
        Clone,
        Copy,
        Debug,
        PartialEq,
        Eq,
        Hash,
        PartialOrd,
        Ord,
        ::prost::Enumeration
    )]
    #[repr(i32)]
    pub enum Type {
        Unspecified = 0,
        Standard = 1,
        SoftwareAccelerated = 2,
        HardwareAccelerated = 3,
    }
    impl Type {
        /// String value of the enum field names used in the ProtoBuf definition.
        ///
        /// The values are not transformed in any way and thus are considered stable
        /// (if the ProtoBuf definition does not change) and safe for programmatic use.
        pub fn as_str_name(&self) -> &'static str {
            match self {
                Type::Unspecified => "TYPE_UNSPECIFIED",
                Type::Standard => "STANDARD",
                Type::SoftwareAccelerated => "SOFTWARE_ACCELERATED",
                Type::HardwareAccelerated => "HARDWARE_ACCELERATED",
            }
        }
        /// Creates an enum from field names used in the ProtoBuf definition.
        pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
            match value {
                "TYPE_UNSPECIFIED" => Some(Self::Unspecified),
                "STANDARD" => Some(Self::Standard),
                "SOFTWARE_ACCELERATED" => Some(Self::SoftwareAccelerated),
                "HARDWARE_ACCELERATED" => Some(Self::HardwareAccelerated),
                _ => None,
            }
        }
    }
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct LoadBalancerSpec {
    /// Specification of the target group that the instance group will be added to. For more information, see [Target groups and resources](/docs/network-load-balancer/concepts/target-resources).
    #[prost(message, optional, tag = "1")]
    pub target_group_spec: ::core::option::Option<TargetGroupSpec>,
    /// Timeout for waiting for the VM to be checked by the load balancer. If the timeout is exceeded,
    /// the VM will be turned off based on the deployment policy. Specified in seconds.
    #[prost(message, optional, tag = "2")]
    pub max_opening_traffic_duration: ::core::option::Option<::prost_types::Duration>,
    /// Do not wait load balancer health checks.
    #[prost(bool, tag = "4")]
    pub ignore_health_checks: bool,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct TargetGroupSpec {
    /// Name of the target group.
    #[prost(string, tag = "1")]
    pub name: ::prost::alloc::string::String,
    /// Description of the target group.
    #[prost(string, tag = "2")]
    pub description: ::prost::alloc::string::String,
    /// Resource labels as `key:value` pairs.
    #[prost(map = "string, string", tag = "3")]
    pub labels: ::std::collections::HashMap<
        ::prost::alloc::string::String,
        ::prost::alloc::string::String,
    >,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ApplicationLoadBalancerSpec {
    /// Basic properties of the Application Load Balancer target group attributed to the instance group.
    #[prost(message, optional, tag = "1")]
    pub target_group_spec: ::core::option::Option<ApplicationTargetGroupSpec>,
    /// Timeout for waiting for the VM to be checked by the load balancer. If the timeout is exceeded,
    /// the VM will be turned off based on the deployment policy. Specified in seconds.
    #[prost(message, optional, tag = "2")]
    pub max_opening_traffic_duration: ::core::option::Option<::prost_types::Duration>,
    /// Do not wait load balancer health checks.
    #[prost(bool, tag = "3")]
    pub ignore_health_checks: bool,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ApplicationTargetGroupSpec {
    /// Name of the target group.
    #[prost(string, tag = "1")]
    pub name: ::prost::alloc::string::String,
    /// Description of the target group.
    #[prost(string, tag = "2")]
    pub description: ::prost::alloc::string::String,
    /// Resource labels as `key:value` pairs.
    #[prost(map = "string, string", tag = "3")]
    pub labels: ::std::collections::HashMap<
        ::prost::alloc::string::String,
        ::prost::alloc::string::String,
    >,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct HealthChecksSpec {
    /// Health checking specification. For more information, see [Health check](/docs/network-load-balancer/concepts/health-check).
    #[prost(message, repeated, tag = "1")]
    pub health_check_specs: ::prost::alloc::vec::Vec<HealthCheckSpec>,
    /// Timeout for waiting for the VM to become healthy. If the timeout is exceeded,
    /// the VM will be turned off based on the deployment policy. Specified in seconds.
    #[prost(message, optional, tag = "2")]
    pub max_checking_health_duration: ::core::option::Option<::prost_types::Duration>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct HealthCheckSpec {
    /// The interval between health checks. The default is 2 seconds.
    #[prost(message, optional, tag = "1")]
    pub interval: ::core::option::Option<::prost_types::Duration>,
    /// Timeout for the managed instance to return a response for the health check. The default is 1 second.
    #[prost(message, optional, tag = "2")]
    pub timeout: ::core::option::Option<::prost_types::Duration>,
    /// The number of failed health checks for the managed instance to be considered unhealthy. The default (0) is 2.
    #[prost(int64, tag = "3")]
    pub unhealthy_threshold: i64,
    /// The number of successful health checks required in order for the managed instance to be considered healthy. The default (0) is 2.
    #[prost(int64, tag = "4")]
    pub healthy_threshold: i64,
    #[prost(oneof = "health_check_spec::HealthCheckOptions", tags = "5, 6")]
    pub health_check_options: ::core::option::Option<
        health_check_spec::HealthCheckOptions,
    >,
}
/// Nested message and enum types in `HealthCheckSpec`.
pub mod health_check_spec {
    #[allow(clippy::derive_partial_eq_without_eq)]
    #[derive(Clone, PartialEq, ::prost::Message)]
    pub struct TcpOptions {
        /// Port to use for TCP health checks.
        #[prost(int64, tag = "1")]
        pub port: i64,
    }
    #[allow(clippy::derive_partial_eq_without_eq)]
    #[derive(Clone, PartialEq, ::prost::Message)]
    pub struct HttpOptions {
        /// Port to use for HTTP health checks.
        #[prost(int64, tag = "1")]
        pub port: i64,
        /// URL path to set for health checking requests.
        #[prost(string, tag = "2")]
        pub path: ::prost::alloc::string::String,
    }
    #[allow(clippy::derive_partial_eq_without_eq)]
    #[derive(Clone, PartialEq, ::prost::Oneof)]
    pub enum HealthCheckOptions {
        /// Configuration options for a TCP health check.
        #[prost(message, tag = "5")]
        TcpOptions(TcpOptions),
        /// Configuration options for an HTTP health check.
        #[prost(message, tag = "6")]
        HttpOptions(HttpOptions),
    }
}
/// A ManagedInstance resource. For more information, see [Instance Groups Concepts](/docs/compute/concepts/instance-groups/).
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ManagedInstance {
    /// ID of the managed instance.
    #[prost(string, tag = "1")]
    pub id: ::prost::alloc::string::String,
    /// Status of the managed instance.
    #[prost(enumeration = "managed_instance::Status", tag = "2")]
    pub status: i32,
    /// ID of the instance.
    #[prost(string, tag = "3")]
    pub instance_id: ::prost::alloc::string::String,
    /// Fully Qualified Domain Name.
    #[prost(string, tag = "4")]
    pub fqdn: ::prost::alloc::string::String,
    /// The name of the managed instance.
    #[prost(string, tag = "5")]
    pub name: ::prost::alloc::string::String,
    /// Status message for the managed instance.
    #[prost(string, tag = "6")]
    pub status_message: ::prost::alloc::string::String,
    /// ID of the availability zone where the instance resides.
    #[prost(string, tag = "7")]
    pub zone_id: ::prost::alloc::string::String,
    /// Array of network interfaces that are attached to the managed instance.
    #[prost(message, repeated, tag = "8")]
    pub network_interfaces: ::prost::alloc::vec::Vec<NetworkInterface>,
    /// The timestamp in \[RFC3339\](<https://www.ietf.org/rfc/rfc3339.txt>) text format when the status of the managed instance was last changed.
    #[prost(message, optional, tag = "9")]
    pub status_changed_at: ::core::option::Option<::prost_types::Timestamp>,
    /// Managed instance tag.
    #[prost(string, tag = "14")]
    pub instance_tag: ::prost::alloc::string::String,
}
/// Nested message and enum types in `ManagedInstance`.
pub mod managed_instance {
    #[derive(
        Clone,
        Copy,
        Debug,
        PartialEq,
        Eq,
        Hash,
        PartialOrd,
        Ord,
        ::prost::Enumeration
    )]
    #[repr(i32)]
    pub enum Status {
        Unspecified = 0,
        /// Instance is being created.
        CreatingInstance = 11,
        /// Instance is being updated.
        UpdatingInstance = 12,
        /// Instance is being deleted.
        DeletingInstance = 13,
        /// Instance is being started.
        StartingInstance = 14,
        /// Instance is being stopped.
        StoppingInstance = 15,
        /// Instance has been created successfully, but startup duration has not elapsed yet.
        AwaitingStartupDuration = 16,
        /// Instance has been created successfully and startup duration has elapsed, but health checks have not passed yet and the managed instance is not ready to receive traffic.
        CheckingHealth = 17,
        /// Instance Groups is initiating health checks and routing traffic to the instances.
        OpeningTraffic = 18,
        /// Instance is now receiving traffic, but warmup duration has not elapsed yet.
        AwaitingWarmupDuration = 19,
        /// Instance Groups has initiated the process of stopping routing traffic to the instances.
        ClosingTraffic = 20,
        /// Instance is running normally and its attributes match the current InstanceTemplate.
        RunningActual = 21,
        /// Instance is running normally, but its attributes do not match the current InstanceTemplate.
        /// It will be updated, recreated or deleted shortly.
        RunningOutdated = 22,
        /// Instance was stopped.
        Stopped = 23,
        /// Instance was deleted.
        Deleted = 24,
        /// Instance Groups is preparing dependent resources.
        PreparingResources = 25,
    }
    impl Status {
        /// String value of the enum field names used in the ProtoBuf definition.
        ///
        /// The values are not transformed in any way and thus are considered stable
        /// (if the ProtoBuf definition does not change) and safe for programmatic use.
        pub fn as_str_name(&self) -> &'static str {
            match self {
                Status::Unspecified => "STATUS_UNSPECIFIED",
                Status::CreatingInstance => "CREATING_INSTANCE",
                Status::UpdatingInstance => "UPDATING_INSTANCE",
                Status::DeletingInstance => "DELETING_INSTANCE",
                Status::StartingInstance => "STARTING_INSTANCE",
                Status::StoppingInstance => "STOPPING_INSTANCE",
                Status::AwaitingStartupDuration => "AWAITING_STARTUP_DURATION",
                Status::CheckingHealth => "CHECKING_HEALTH",
                Status::OpeningTraffic => "OPENING_TRAFFIC",
                Status::AwaitingWarmupDuration => "AWAITING_WARMUP_DURATION",
                Status::ClosingTraffic => "CLOSING_TRAFFIC",
                Status::RunningActual => "RUNNING_ACTUAL",
                Status::RunningOutdated => "RUNNING_OUTDATED",
                Status::Stopped => "STOPPED",
                Status::Deleted => "DELETED",
                Status::PreparingResources => "PREPARING_RESOURCES",
            }
        }
        /// Creates an enum from field names used in the ProtoBuf definition.
        pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
            match value {
                "STATUS_UNSPECIFIED" => Some(Self::Unspecified),
                "CREATING_INSTANCE" => Some(Self::CreatingInstance),
                "UPDATING_INSTANCE" => Some(Self::UpdatingInstance),
                "DELETING_INSTANCE" => Some(Self::DeletingInstance),
                "STARTING_INSTANCE" => Some(Self::StartingInstance),
                "STOPPING_INSTANCE" => Some(Self::StoppingInstance),
                "AWAITING_STARTUP_DURATION" => Some(Self::AwaitingStartupDuration),
                "CHECKING_HEALTH" => Some(Self::CheckingHealth),
                "OPENING_TRAFFIC" => Some(Self::OpeningTraffic),
                "AWAITING_WARMUP_DURATION" => Some(Self::AwaitingWarmupDuration),
                "CLOSING_TRAFFIC" => Some(Self::ClosingTraffic),
                "RUNNING_ACTUAL" => Some(Self::RunningActual),
                "RUNNING_OUTDATED" => Some(Self::RunningOutdated),
                "STOPPED" => Some(Self::Stopped),
                "DELETED" => Some(Self::Deleted),
                "PREPARING_RESOURCES" => Some(Self::PreparingResources),
                _ => None,
            }
        }
    }
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct NetworkInterface {
    /// The index of the network interface, generated by the server, 0,1,2... etc.
    #[prost(string, tag = "1")]
    pub index: ::prost::alloc::string::String,
    /// MAC address that is assigned to the network interface.
    #[prost(string, tag = "2")]
    pub mac_address: ::prost::alloc::string::String,
    /// ID of the subnet.
    #[prost(string, tag = "3")]
    pub subnet_id: ::prost::alloc::string::String,
    /// Primary IPv4 address that is assigned to the instance for this network interface.
    #[prost(message, optional, tag = "4")]
    pub primary_v4_address: ::core::option::Option<PrimaryAddress>,
    /// Primary IPv6 address that is assigned to the instance for this network interface. IPv6 is not available yet.
    #[prost(message, optional, tag = "5")]
    pub primary_v6_address: ::core::option::Option<PrimaryAddress>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct PrimaryAddress {
    /// An IPv4 internal network address that is assigned to the managed instance for this network interface.
    /// If not specified by the user, an unused internal IP is assigned by the system.
    #[prost(string, tag = "1")]
    pub address: ::prost::alloc::string::String,
    /// One-to-one NAT configuration. If missing, NAT has not been set up.
    #[prost(message, optional, tag = "2")]
    pub one_to_one_nat: ::core::option::Option<OneToOneNat>,
    /// Internal DNS configuration.
    #[prost(message, repeated, tag = "3")]
    pub dns_records: ::prost::alloc::vec::Vec<DnsRecord>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct OneToOneNat {
    /// An IPv4 external network address that is assigned to the managed instance for this network interface.
    #[prost(string, tag = "1")]
    pub address: ::prost::alloc::string::String,
    /// External IP address version.
    #[prost(enumeration = "IpVersion", tag = "2")]
    pub ip_version: i32,
    /// External DNS configuration.
    #[prost(message, repeated, tag = "3")]
    pub dns_records: ::prost::alloc::vec::Vec<DnsRecord>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DnsRecord {
    /// Name of the A/AAAA record as specified when creating the instance.
    /// Note that if `fqdn' has no trailing '.', it is specified relative to the zone (@see dns_zone_id).
    #[prost(string, tag = "1")]
    pub fqdn: ::prost::alloc::string::String,
    /// DNS zone id (optional, if not set, some private zone is used).
    #[prost(string, tag = "2")]
    pub dns_zone_id: ::prost::alloc::string::String,
    /// DNS record ttl (optional, if 0, a reasonable default is used).
    #[prost(int64, tag = "3")]
    pub ttl: i64,
    /// When true, indicates there is a corresponding auto-created PTR DNS record.
    #[prost(bool, tag = "4")]
    pub ptr: bool,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct LogRecord {
    /// Log timestamp in \[RFC3339\](<https://www.ietf.org/rfc/rfc3339.txt>) text format.
    #[prost(message, optional, tag = "1")]
    pub timestamp: ::core::option::Option<::prost_types::Timestamp>,
    /// The log message.
    #[prost(string, tag = "2")]
    pub message: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct AutoHealingPolicy {
    /// Instance Groups performs \[auto_healing_action\] when instance becomes unhealthy.
    #[prost(enumeration = "auto_healing_policy::AutoHealingAction", tag = "1")]
    pub auto_healing_action: i32,
}
/// Nested message and enum types in `AutoHealingPolicy`.
pub mod auto_healing_policy {
    #[derive(
        Clone,
        Copy,
        Debug,
        PartialEq,
        Eq,
        Hash,
        PartialOrd,
        Ord,
        ::prost::Enumeration
    )]
    #[repr(i32)]
    pub enum AutoHealingAction {
        Unspecified = 0,
        /// Re-starting an instance with restart: stopping and then starting the instance.
        Restart = 1,
        /// Re-creating an instance: deleting an instance and creating a new one.
        Recreate = 2,
        /// No action
        None = 3,
    }
    impl AutoHealingAction {
        /// 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 {
                AutoHealingAction::Unspecified => "AUTO_HEALING_ACTION_UNSPECIFIED",
                AutoHealingAction::Restart => "RESTART",
                AutoHealingAction::Recreate => "RECREATE",
                AutoHealingAction::None => "NONE",
            }
        }
        /// Creates an enum from field names used in the ProtoBuf definition.
        pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
            match value {
                "AUTO_HEALING_ACTION_UNSPECIFIED" => Some(Self::Unspecified),
                "RESTART" => Some(Self::Restart),
                "RECREATE" => Some(Self::Recreate),
                "NONE" => Some(Self::None),
                _ => None,
            }
        }
    }
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct MetadataOptions {
    /// Enabled access to GCE flavored metadata
    #[prost(enumeration = "MetadataOption", tag = "1")]
    pub gce_http_endpoint: i32,
    /// Enabled access to AWS flavored metadata (IMDSv1)
    #[prost(enumeration = "MetadataOption", tag = "2")]
    pub aws_v1_http_endpoint: i32,
    /// Enabled access to IAM credentials with GCE flavored metadata
    #[prost(enumeration = "MetadataOption", tag = "3")]
    pub gce_http_token: i32,
    /// Enabled access to IAM credentials with AWS flavored metadata (IMDSv1)
    #[prost(enumeration = "MetadataOption", tag = "4")]
    pub aws_v1_http_token: i32,
}
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
#[repr(i32)]
pub enum IpVersion {
    Unspecified = 0,
    /// IPv4 address, for example 192.168.0.0.
    Ipv4 = 1,
    /// IPv6 address, not available yet.
    Ipv6 = 2,
}
impl IpVersion {
    /// 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 {
            IpVersion::Unspecified => "IP_VERSION_UNSPECIFIED",
            IpVersion::Ipv4 => "IPV4",
            IpVersion::Ipv6 => "IPV6",
        }
    }
    /// Creates an enum from field names used in the ProtoBuf definition.
    pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
        match value {
            "IP_VERSION_UNSPECIFIED" => Some(Self::Unspecified),
            "IPV4" => Some(Self::Ipv4),
            "IPV6" => Some(Self::Ipv6),
            _ => None,
        }
    }
}
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
#[repr(i32)]
pub enum MetadataOption {
    Unspecified = 0,
    /// Option is enabled
    Enabled = 1,
    /// Option is disabled
    Disabled = 2,
}
impl MetadataOption {
    /// 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 {
            MetadataOption::Unspecified => "METADATA_OPTION_UNSPECIFIED",
            MetadataOption::Enabled => "ENABLED",
            MetadataOption::Disabled => "DISABLED",
        }
    }
    /// Creates an enum from field names used in the ProtoBuf definition.
    pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
        match value {
            "METADATA_OPTION_UNSPECIFIED" => Some(Self::Unspecified),
            "ENABLED" => Some(Self::Enabled),
            "DISABLED" => Some(Self::Disabled),
            _ => None,
        }
    }
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ResumeInstanceGroupProcessesRequest {
    /// ID of the instance group to resume processes in.
    ///
    /// The instance group must have a `PAUSED` status (\[InstanceGroup.status\]).
    ///
    /// To get the instance group ID, make a \[InstanceGroupService.List\] request.
    #[prost(string, tag = "1")]
    pub instance_group_id: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ResumeInstanceGroupProcessMetadata {
    /// ID of the instance group that processes are being resumed in.
    #[prost(string, tag = "1")]
    pub instance_group_id: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct PauseInstanceGroupProcessesRequest {
    /// ID of the instance group to pause processes in.
    ///
    /// The instance group must have an `ACTIVE` status (\[InstanceGroup.status\]).
    ///
    /// To get the instance group ID, make a \[InstanceGroupService.List\] request.
    #[prost(string, tag = "1")]
    pub instance_group_id: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct PauseInstanceGroupProcessMetadata {
    /// ID of the instance group that processes are being paused in.
    #[prost(string, tag = "1")]
    pub instance_group_id: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetInstanceGroupRequest {
    /// ID of the InstanceGroup resource to return.
    /// To get the instance group ID, use a \[InstanceGroupService.List\] request.
    #[prost(string, tag = "1")]
    pub instance_group_id: ::prost::alloc::string::String,
    /// Defines which information about the Instance template should be returned in the server response.
    #[prost(enumeration = "InstanceGroupView", tag = "2")]
    pub view: i32,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CreateInstanceGroupRequest {
    /// ID of the folder to create an instance group in.
    /// To get the folder ID, use a \[yandex.cloud.resourcemanager.v1.FolderService.List\] request.
    #[prost(string, tag = "1")]
    pub folder_id: ::prost::alloc::string::String,
    /// Name of the instance group.
    #[prost(string, tag = "3")]
    pub name: ::prost::alloc::string::String,
    /// Description of the instance group.
    #[prost(string, tag = "4")]
    pub description: ::prost::alloc::string::String,
    /// Resource labels as `key:value` pairs.
    #[prost(map = "string, string", tag = "5")]
    pub labels: ::std::collections::HashMap<
        ::prost::alloc::string::String,
        ::prost::alloc::string::String,
    >,
    /// Instance template that the instance group belongs to.
    #[prost(message, optional, tag = "6")]
    pub instance_template: ::core::option::Option<InstanceTemplate>,
    /// [Scaling policy](/docs/compute/concepts/instance-groups/scale) of the instance group.
    #[prost(message, optional, tag = "7")]
    pub scale_policy: ::core::option::Option<ScalePolicy>,
    /// Deployment policy of the instance group.
    #[prost(message, optional, tag = "8")]
    pub deploy_policy: ::core::option::Option<DeployPolicy>,
    /// Allocation policy of the instance group by zones and regions.
    #[prost(message, optional, tag = "9")]
    pub allocation_policy: ::core::option::Option<AllocationPolicy>,
    /// Settings for balancing load between instances via [Network Load Balancer](/docs/network-load-balancer/concepts)
    /// (OSI model layer 3).
    ///
    /// If specified, a Network Load Balancer target group containing all instances from the instance group will be created
    /// and attributed to the instance group.
    #[prost(message, optional, tag = "10")]
    pub load_balancer_spec: ::core::option::Option<LoadBalancerSpec>,
    /// Health checking specification. For more information, see [Health check](/docs/network-load-balancer/concepts/health-check).
    #[prost(message, optional, tag = "11")]
    pub health_checks_spec: ::core::option::Option<HealthChecksSpec>,
    /// ID of the service account. The service account will be used for all API calls
    /// made by the Instance Groups component on behalf of the user (for example, creating instances, adding them to load balancer target group, etc.). For more information, see [Service accounts](/docs/iam/concepts/users/service-accounts).
    /// To get the service account ID, use a \[yandex.cloud.iam.v1.ServiceAccountService.List\] request.
    #[prost(string, tag = "12")]
    pub service_account_id: ::prost::alloc::string::String,
    #[prost(message, repeated, tag = "13")]
    pub variables: ::prost::alloc::vec::Vec<Variable>,
    /// Flag prohibiting deletion of the instance group.
    ///
    /// Allowed values:</br>- `false`: The instance group can be deleted.</br>- `true`: The instance group cannot be deleted.
    ///
    /// The default is `false`.
    #[prost(bool, tag = "14")]
    pub deletion_protection: bool,
    /// Settings for balancing load between instances via [Application Load Balancer](/docs/application-load-balancer/concepts)
    /// (OSI model layer 7).
    ///
    /// If specified, an Application Load Balancer target group containing all instances from the instance group will be created
    /// and attributed to the instance group.
    #[prost(message, optional, tag = "15")]
    pub application_load_balancer_spec: ::core::option::Option<
        ApplicationLoadBalancerSpec,
    >,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CreateInstanceGroupFromYamlRequest {
    /// ID of the folder to create an instance group in.
    /// To get the folder ID, use a \[yandex.cloud.resourcemanager.v1.FolderService.List\] request.
    #[prost(string, tag = "1")]
    pub folder_id: ::prost::alloc::string::String,
    /// \[InstanceGroupService.Create\] request in YAML format.
    #[prost(string, tag = "2")]
    pub instance_group_yaml: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CreateInstanceGroupMetadata {
    /// ID of the instance group that is being created.
    #[prost(string, tag = "1")]
    pub instance_group_id: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct UpdateInstanceGroupRequest {
    /// ID of the instance group to update.
    /// To get the instance group ID, use a \[InstanceGroupService.List\] request.
    #[prost(string, tag = "1")]
    pub instance_group_id: ::prost::alloc::string::String,
    /// Field mask that specifies which fields of the InstanceGroup resource are going to be updated.
    #[prost(message, optional, tag = "2")]
    pub update_mask: ::core::option::Option<::prost_types::FieldMask>,
    /// Name of the instance group.
    #[prost(string, tag = "3")]
    pub name: ::prost::alloc::string::String,
    /// Description of the instance group.
    #[prost(string, tag = "4")]
    pub description: ::prost::alloc::string::String,
    /// Resource labels as `key:value` pairs.
    ///
    /// The existing set of `labels` is completely replaced by the provided set.
    #[prost(map = "string, string", tag = "5")]
    pub labels: ::std::collections::HashMap<
        ::prost::alloc::string::String,
        ::prost::alloc::string::String,
    >,
    /// Instance template that the instance group belongs to.
    #[prost(message, optional, tag = "6")]
    pub instance_template: ::core::option::Option<InstanceTemplate>,
    /// [Scaling policy](/docs/compute/concepts/instance-groups/scale) of the instance group.
    #[prost(message, optional, tag = "7")]
    pub scale_policy: ::core::option::Option<ScalePolicy>,
    /// Deployment policy of the instance group.
    #[prost(message, optional, tag = "8")]
    pub deploy_policy: ::core::option::Option<DeployPolicy>,
    /// Allocation policy of the instance group by zones and regions.
    #[prost(message, optional, tag = "9")]
    pub allocation_policy: ::core::option::Option<AllocationPolicy>,
    /// Health checking specification. For more information, see [Health check](/docs/network-load-balancer/concepts/health-check).
    #[prost(message, optional, tag = "11")]
    pub health_checks_spec: ::core::option::Option<HealthChecksSpec>,
    /// ID of the service account. The service account will be used for all API calls
    /// made by the Instance Groups component on behalf of the user (for example, creating instances, adding them to load balancer target group, etc.). For more information, see [Service accounts](/docs/iam/concepts/users/service-accounts).
    /// To get the service account ID, use a \[yandex.cloud.iam.v1.ServiceAccountService.List\] request.
    #[prost(string, tag = "12")]
    pub service_account_id: ::prost::alloc::string::String,
    /// Settings for balancing load between instances via [Network Load Balancer](/docs/network-load-balancer/concepts)
    /// (OSI model layer 3).
    #[prost(message, optional, tag = "14")]
    pub load_balancer_spec: ::core::option::Option<LoadBalancerSpec>,
    #[prost(message, repeated, tag = "15")]
    pub variables: ::prost::alloc::vec::Vec<Variable>,
    /// Flag that inhibits deletion of the instance group
    #[prost(bool, tag = "16")]
    pub deletion_protection: bool,
    /// Settings for balancing load between instances via [Application Load Balancer](/docs/application-load-balancer/concepts)
    /// (OSI model layer 7).
    #[prost(message, optional, tag = "17")]
    pub application_load_balancer_spec: ::core::option::Option<
        ApplicationLoadBalancerSpec,
    >,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct UpdateInstanceGroupFromYamlRequest {
    /// ID of the instance group to update.
    /// To get the instance group ID, use a \[InstanceGroupService.List\] request.
    #[prost(string, tag = "1")]
    pub instance_group_id: ::prost::alloc::string::String,
    /// \[InstanceGroupService.Update\] request in YAML format.
    #[prost(string, tag = "2")]
    pub instance_group_yaml: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct UpdateInstanceGroupMetadata {
    /// ID of the InstanceGroup resource that is being updated.
    /// To get the instance group ID, use a \[InstanceGroupService.List\] request.
    #[prost(string, tag = "1")]
    pub instance_group_id: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct StartInstanceGroupRequest {
    /// ID of the instance group to start.
    /// To get the instance group ID, use a \[InstanceGroupService.List\] request.
    #[prost(string, tag = "1")]
    pub instance_group_id: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct StartInstanceGroupMetadata {
    /// ID of the InstanceGroup resource that is being started.
    #[prost(string, tag = "1")]
    pub instance_group_id: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct StopInstanceGroupRequest {
    /// ID of the instance group to stop.
    /// To get the instance group ID, use a \[InstanceGroupService.List\] request.
    #[prost(string, tag = "1")]
    pub instance_group_id: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct StopInstanceGroupMetadata {
    /// ID of the InstanceGroup resource that is being stopped.
    #[prost(string, tag = "1")]
    pub instance_group_id: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct RollingRestartRequest {
    /// ID of the instance group to restart instances in.
    /// To get the instance group ID, use a \[InstanceGroupService.List\] request.
    #[prost(string, tag = "1")]
    pub instance_group_id: ::prost::alloc::string::String,
    /// IDs of managed instances in the group to restart
    /// To get instance IDs, use a \[InstanceGroupService.ListInstances\] request.
    #[prost(string, repeated, tag = "2")]
    pub managed_instance_ids: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct RollingRestartMetadata {
    /// ID of the InstanceGroup resource that is being rolling restarted.
    #[prost(string, tag = "1")]
    pub instance_group_id: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct RollingRecreateRequest {
    /// ID of the instance group to recreate instances in.
    /// To get the instance group ID, use a \[InstanceGroupService.List\] request.
    #[prost(string, tag = "1")]
    pub instance_group_id: ::prost::alloc::string::String,
    /// IDs of managed instances in the group to recreate
    /// To get instance IDs, use a \[InstanceGroupService.ListInstances\] request.
    #[prost(string, repeated, tag = "2")]
    pub managed_instance_ids: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct RollingRecreateMetadata {
    /// ID of the InstanceGroup resource that is being rolling recreated.
    #[prost(string, tag = "1")]
    pub instance_group_id: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DeleteInstanceGroupRequest {
    /// ID of the instance group to delete.
    /// To get the instance group ID, use a \[InstanceGroupService.List\] request.
    #[prost(string, tag = "1")]
    pub instance_group_id: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DeleteInstanceGroupMetadata {
    /// ID of the instance group that is being deleted.
    /// To get the instance group ID, use a \[InstanceGroupService.List\] request.
    #[prost(string, tag = "1")]
    pub instance_group_id: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DeleteInstancesMetadata {
    /// ID of the instance group that the instances are being deleted from.
    #[prost(string, tag = "1")]
    pub instance_group_id: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct StopInstancesMetadata {
    /// ID of the instance group that the instances are being stopped from.
    #[prost(string, tag = "1")]
    pub instance_group_id: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListInstanceGroupsRequest {
    /// ID of the folder to list instance groups in.
    /// To get the folder ID, use a \[yandex.cloud.resourcemanager.v1.FolderService.List\] request.
    #[prost(string, tag = "1")]
    pub folder_id: ::prost::alloc::string::String,
    /// The maximum number of results per page to return. If the number of available
    /// results is larger than \[page_size\],
    /// the service returns a \[ListInstanceGroupsResponse.next_page_token\]
    /// that can be used to get the next page of results in subsequent list requests.
    #[prost(int64, tag = "2")]
    pub page_size: i64,
    /// Page token. To get the next page of results,
    /// set \[page_token\] to the \[ListInstanceGroupsResponse.next_page_token\]
    /// returned by a previous list request.
    #[prost(string, tag = "3")]
    pub page_token: ::prost::alloc::string::String,
    /// A filter expression that filters resources listed in the response.
    /// Currently you can use filtering only on the \[InstanceGroup.name\] field.
    #[prost(string, tag = "4")]
    pub filter: ::prost::alloc::string::String,
    /// Defines which information about the Instance template should be returned in the server response.
    #[prost(enumeration = "InstanceGroupView", tag = "5")]
    pub view: i32,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListInstanceGroupsResponse {
    /// Lists instance groups for the specified folder.
    #[prost(message, repeated, tag = "1")]
    pub instance_groups: ::prost::alloc::vec::Vec<InstanceGroup>,
    /// This token allows you to get the next page of results for list requests. If the number of results
    /// is larger than \[ListInstanceGroupsRequest.page_size\], use
    /// \[next_page_token\] as the value
    /// for the \[ListInstanceGroupsRequest.page_token\] query parameter
    /// in the next list request. Each subsequent list request will have its own
    /// \[next_page_token\] to continue paging through the results.
    #[prost(string, tag = "2")]
    pub next_page_token: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListInstanceGroupInstancesRequest {
    /// ID of the InstanceGroup resource to list instances for.
    /// To get the instance group ID, use a \[InstanceGroupService.List\] request.
    #[prost(string, tag = "1")]
    pub instance_group_id: ::prost::alloc::string::String,
    /// The maximum number of results per page to return. If the number of available
    /// results is larger than \[page_size\],
    /// the service returns a \[ListInstanceGroupInstancesResponse.next_page_token\]
    /// that can be used to get the next page of results in subsequent list requests.
    #[prost(int64, tag = "2")]
    pub page_size: i64,
    /// Page token. To get the next page of results,
    /// set \[page_token\] to the \[ListInstanceGroupInstancesResponse.next_page_token\]
    /// returned by a previous list request.
    #[prost(string, tag = "3")]
    pub page_token: ::prost::alloc::string::String,
    /// A filter expression that filters resources listed in the response.
    /// Currently you can use filtering only on the \[ManagedInstance.name\] field.
    #[prost(string, tag = "4")]
    pub filter: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListInstanceGroupInstancesResponse {
    /// Lists instances for the specified instance group.
    #[prost(message, repeated, tag = "1")]
    pub instances: ::prost::alloc::vec::Vec<ManagedInstance>,
    /// This token allows you to get the next page of results for list requests. If the number of results
    /// is more than \[ListInstanceGroupInstancesRequest.page_size\], use
    /// \[next_page_token\] as the value
    /// for the \[ListInstanceGroupInstancesRequest.page_token\] query parameter
    /// in the next list request. Each subsequent list request will have its own
    /// \[next_page_token\] to continue paging through the results.
    #[prost(string, tag = "2")]
    pub next_page_token: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DeleteInstancesRequest {
    /// ID of the instance group that the instances are being deleted from.
    /// To get the ID of the instance group, use the \[InstanceGroupService.List\] request.
    #[prost(string, tag = "1")]
    pub instance_group_id: ::prost::alloc::string::String,
    /// IDs of the instances to delete. Instances will be deleted along with all dependent resources.
    /// Only IDs from the ManagedInstance.id field are allowed, not ManagedInstance.instance_id.
    #[prost(string, repeated, tag = "2")]
    pub managed_instance_ids: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
    /// If set to true, the target size of instance group will not be reduced and
    /// a new instance will be created instead of the deleted one. By default, the target size of instance group
    /// will be reduced by the specified number of instance IDs.
    #[prost(bool, tag = "3")]
    pub create_another: bool,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct StopInstancesRequest {
    /// ID of the instance group that the instances are being stopped from.
    /// To get the ID of the instance group, use the \[InstanceGroupService.List\] request.
    #[prost(string, tag = "1")]
    pub instance_group_id: ::prost::alloc::string::String,
    /// IDs of the instances to stop. After stopping, the instance can be updated, started, or deleted
    /// according to scale and deploy policies.
    /// Only IDs from the ManagedInstance.id field are allowed, not ManagedInstance.instance_id.
    #[prost(string, repeated, tag = "2")]
    pub managed_instance_ids: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListInstanceGroupOperationsRequest {
    /// ID of the InstanceGroup resource to list operations for.
    /// To get the instance group ID, use a \[InstanceGroupService.List\] request.
    #[prost(string, tag = "1")]
    pub instance_group_id: ::prost::alloc::string::String,
    /// The maximum number of results per page to return. If the number of available
    /// results is more than \[page_size\], the service returns a \[ListInstanceGroupOperationsResponse.next_page_token\]
    /// that can be used to get the next page of results in subsequent list requests.
    #[prost(int64, tag = "2")]
    pub page_size: i64,
    /// Page token. To get the next page of results, set \[page_token\] to the
    /// \[ListInstanceGroupOperationsResponse.next_page_token\] returned by a previous list request.
    #[prost(string, tag = "3")]
    pub page_token: ::prost::alloc::string::String,
    /// A filter expression that filters resources listed in the response.
    /// Currently you can use filtering only on the \[InstanceGroup.name\] field.
    #[prost(string, tag = "4")]
    pub filter: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListInstanceGroupOperationsResponse {
    /// Lists operations for the specified instance group.
    #[prost(message, repeated, tag = "1")]
    pub operations: ::prost::alloc::vec::Vec<super::super::super::operation::Operation>,
    /// This token allows you to get the next page of results for list requests. If the number of results
    /// is more than \[ListInstanceGroupOperationsRequest.page_size\], use the \[next_page_token\] as the value
    /// for the \[ListInstanceGroupOperationsRequest.page_token\] query parameter in the next list request.
    /// Each subsequent list request will have its own \[next_page_token\] to continue paging through the results.
    #[prost(string, tag = "2")]
    pub next_page_token: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListInstanceGroupLogRecordsRequest {
    /// ID of the InstanceGroup resource to list logs for.
    /// To get the instance group ID, use a \[InstanceGroupService.List\] request.
    #[prost(string, tag = "1")]
    pub instance_group_id: ::prost::alloc::string::String,
    /// The maximum number of results per page to return. If the number of available
    /// results is larger than \[page_size\],
    /// the service returns a \[ListInstanceGroupLogRecordsResponse.next_page_token\]
    /// that can be used to get the next page of results in subsequent list requests.
    #[prost(int64, tag = "2")]
    pub page_size: i64,
    /// Page token. To get the next page of results,
    /// set \[page_token\] to the \[ListInstanceGroupLogRecordsResponse.next_page_token\]
    /// returned by a previous list request.
    #[prost(string, tag = "3")]
    pub page_token: ::prost::alloc::string::String,
    /// A filter expression that filters resources listed in the response.
    /// Currently you can use filtering only on the \[InstanceGroup.name\] field.
    #[prost(string, tag = "4")]
    pub filter: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListInstanceGroupLogRecordsResponse {
    /// Lists logs for the specified instance group.
    #[prost(message, repeated, tag = "1")]
    pub log_records: ::prost::alloc::vec::Vec<LogRecord>,
    /// This token allows you to get the next page of results for list requests. If the number of results
    /// is larger than \[ListInstanceGroupLogRecordsRequest.page_size\], use
    /// \[next_page_token\] as the value
    /// for the \[ListInstanceGroupLogRecordsRequest.page_token\] query parameter
    /// in the next list request. Each subsequent list request will have its own
    /// \[next_page_token\] to continue paging through the results.
    #[prost(string, tag = "2")]
    pub next_page_token: ::prost::alloc::string::String,
}
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
#[repr(i32)]
pub enum InstanceGroupView {
    /// Doesn't include the metadata of the instance template in the server response.
    Basic = 0,
    /// Returns the metadata of the instance template in the server response.
    Full = 1,
}
impl InstanceGroupView {
    /// 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 {
            InstanceGroupView::Basic => "BASIC",
            InstanceGroupView::Full => "FULL",
        }
    }
    /// Creates an enum from field names used in the ProtoBuf definition.
    pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
        match value {
            "BASIC" => Some(Self::Basic),
            "FULL" => Some(Self::Full),
            _ => None,
        }
    }
}
/// Generated client implementations.
pub mod instance_group_service_client {
    #![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)]
    use tonic::codegen::*;
    use tonic::codegen::http::Uri;
    /// A set of methods for managing InstanceGroup resources.
    #[derive(Debug, Clone)]
    pub struct InstanceGroupServiceClient<T> {
        inner: tonic::client::Grpc<T>,
    }
    impl InstanceGroupServiceClient<tonic::transport::Channel> {
        /// Attempt to create a new client by connecting to a given endpoint.
        pub async fn connect<D>(dst: D) -> Result<Self, tonic::transport::Error>
        where
            D: TryInto<tonic::transport::Endpoint>,
            D::Error: Into<StdError>,
        {
            let conn = tonic::transport::Endpoint::new(dst)?.connect().await?;
            Ok(Self::new(conn))
        }
    }
    impl<T> InstanceGroupServiceClient<T>
    where
        T: tonic::client::GrpcService<tonic::body::BoxBody>,
        T::Error: Into<StdError>,
        T::ResponseBody: Body<Data = Bytes> + Send + 'static,
        <T::ResponseBody as Body>::Error: Into<StdError> + 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,
        ) -> InstanceGroupServiceClient<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> + Send + Sync,
        {
            InstanceGroupServiceClient::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
        }
        /// Returns the specified InstanceGroup resource.
        ///
        /// To get the list of available InstanceGroup resources, make a [List] request.
        pub async fn get(
            &mut self,
            request: impl tonic::IntoRequest<super::GetInstanceGroupRequest>,
        ) -> std::result::Result<tonic::Response<super::InstanceGroup>, 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(
                "/yandex.cloud.compute.v1.instancegroup.InstanceGroupService/Get",
            );
            let mut req = request.into_request();
            req.extensions_mut()
                .insert(
                    GrpcMethod::new(
                        "yandex.cloud.compute.v1.instancegroup.InstanceGroupService",
                        "Get",
                    ),
                );
            self.inner.unary(req, path, codec).await
        }
        /// Retrieves the list of InstanceGroup resources in the specified folder.
        pub async fn list(
            &mut self,
            request: impl tonic::IntoRequest<super::ListInstanceGroupsRequest>,
        ) -> std::result::Result<
            tonic::Response<super::ListInstanceGroupsResponse>,
            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(
                "/yandex.cloud.compute.v1.instancegroup.InstanceGroupService/List",
            );
            let mut req = request.into_request();
            req.extensions_mut()
                .insert(
                    GrpcMethod::new(
                        "yandex.cloud.compute.v1.instancegroup.InstanceGroupService",
                        "List",
                    ),
                );
            self.inner.unary(req, path, codec).await
        }
        /// Creates an instance group in the specified folder.
        /// This method starts an operation that can be cancelled by another operation.
        pub async fn create(
            &mut self,
            request: impl tonic::IntoRequest<super::CreateInstanceGroupRequest>,
        ) -> std::result::Result<
            tonic::Response<super::super::super::super::operation::Operation>,
            tonic::Status,
        > {
            self.inner
                .ready()
                .await
                .map_err(|e| {
                    tonic::Status::new(
                        tonic::Code::Unknown,
                        format!("Service was not ready: {}", e.into()),
                    )
                })?;
            let codec = tonic::codec::ProstCodec::default();
            let path = http::uri::PathAndQuery::from_static(
                "/yandex.cloud.compute.v1.instancegroup.InstanceGroupService/Create",
            );
            let mut req = request.into_request();
            req.extensions_mut()
                .insert(
                    GrpcMethod::new(
                        "yandex.cloud.compute.v1.instancegroup.InstanceGroupService",
                        "Create",
                    ),
                );
            self.inner.unary(req, path, codec).await
        }
        /// Creates an instance group in the specified folder from a YAML file.
        /// This method starts an operation that can be cancelled by another operation.
        pub async fn create_from_yaml(
            &mut self,
            request: impl tonic::IntoRequest<super::CreateInstanceGroupFromYamlRequest>,
        ) -> std::result::Result<
            tonic::Response<super::super::super::super::operation::Operation>,
            tonic::Status,
        > {
            self.inner
                .ready()
                .await
                .map_err(|e| {
                    tonic::Status::new(
                        tonic::Code::Unknown,
                        format!("Service was not ready: {}", e.into()),
                    )
                })?;
            let codec = tonic::codec::ProstCodec::default();
            let path = http::uri::PathAndQuery::from_static(
                "/yandex.cloud.compute.v1.instancegroup.InstanceGroupService/CreateFromYaml",
            );
            let mut req = request.into_request();
            req.extensions_mut()
                .insert(
                    GrpcMethod::new(
                        "yandex.cloud.compute.v1.instancegroup.InstanceGroupService",
                        "CreateFromYaml",
                    ),
                );
            self.inner.unary(req, path, codec).await
        }
        /// Updates the specified instance group.
        /// This method starts an operation that can be cancelled by another operation.
        pub async fn update(
            &mut self,
            request: impl tonic::IntoRequest<super::UpdateInstanceGroupRequest>,
        ) -> std::result::Result<
            tonic::Response<super::super::super::super::operation::Operation>,
            tonic::Status,
        > {
            self.inner
                .ready()
                .await
                .map_err(|e| {
                    tonic::Status::new(
                        tonic::Code::Unknown,
                        format!("Service was not ready: {}", e.into()),
                    )
                })?;
            let codec = tonic::codec::ProstCodec::default();
            let path = http::uri::PathAndQuery::from_static(
                "/yandex.cloud.compute.v1.instancegroup.InstanceGroupService/Update",
            );
            let mut req = request.into_request();
            req.extensions_mut()
                .insert(
                    GrpcMethod::new(
                        "yandex.cloud.compute.v1.instancegroup.InstanceGroupService",
                        "Update",
                    ),
                );
            self.inner.unary(req, path, codec).await
        }
        /// Updates the specified instance group from a YAML file.
        /// This method starts an operation that can be cancelled by another operation.
        pub async fn update_from_yaml(
            &mut self,
            request: impl tonic::IntoRequest<super::UpdateInstanceGroupFromYamlRequest>,
        ) -> std::result::Result<
            tonic::Response<super::super::super::super::operation::Operation>,
            tonic::Status,
        > {
            self.inner
                .ready()
                .await
                .map_err(|e| {
                    tonic::Status::new(
                        tonic::Code::Unknown,
                        format!("Service was not ready: {}", e.into()),
                    )
                })?;
            let codec = tonic::codec::ProstCodec::default();
            let path = http::uri::PathAndQuery::from_static(
                "/yandex.cloud.compute.v1.instancegroup.InstanceGroupService/UpdateFromYaml",
            );
            let mut req = request.into_request();
            req.extensions_mut()
                .insert(
                    GrpcMethod::new(
                        "yandex.cloud.compute.v1.instancegroup.InstanceGroupService",
                        "UpdateFromYaml",
                    ),
                );
            self.inner.unary(req, path, codec).await
        }
        /// Stops the specified instance group.
        pub async fn stop(
            &mut self,
            request: impl tonic::IntoRequest<super::StopInstanceGroupRequest>,
        ) -> std::result::Result<
            tonic::Response<super::super::super::super::operation::Operation>,
            tonic::Status,
        > {
            self.inner
                .ready()
                .await
                .map_err(|e| {
                    tonic::Status::new(
                        tonic::Code::Unknown,
                        format!("Service was not ready: {}", e.into()),
                    )
                })?;
            let codec = tonic::codec::ProstCodec::default();
            let path = http::uri::PathAndQuery::from_static(
                "/yandex.cloud.compute.v1.instancegroup.InstanceGroupService/Stop",
            );
            let mut req = request.into_request();
            req.extensions_mut()
                .insert(
                    GrpcMethod::new(
                        "yandex.cloud.compute.v1.instancegroup.InstanceGroupService",
                        "Stop",
                    ),
                );
            self.inner.unary(req, path, codec).await
        }
        /// Performs rolling restart of specified instances for the specified instance group.
        /// Rolling restart does restart of instances respecting all group policies.
        pub async fn rolling_restart(
            &mut self,
            request: impl tonic::IntoRequest<super::RollingRestartRequest>,
        ) -> std::result::Result<
            tonic::Response<super::super::super::super::operation::Operation>,
            tonic::Status,
        > {
            self.inner
                .ready()
                .await
                .map_err(|e| {
                    tonic::Status::new(
                        tonic::Code::Unknown,
                        format!("Service was not ready: {}", e.into()),
                    )
                })?;
            let codec = tonic::codec::ProstCodec::default();
            let path = http::uri::PathAndQuery::from_static(
                "/yandex.cloud.compute.v1.instancegroup.InstanceGroupService/RollingRestart",
            );
            let mut req = request.into_request();
            req.extensions_mut()
                .insert(
                    GrpcMethod::new(
                        "yandex.cloud.compute.v1.instancegroup.InstanceGroupService",
                        "RollingRestart",
                    ),
                );
            self.inner.unary(req, path, codec).await
        }
        /// Performs rolling recreate of specified instances for the specified instance group.
        /// Rolling recreate does recreate of instance VMs respecting all group policies.
        pub async fn rolling_recreate(
            &mut self,
            request: impl tonic::IntoRequest<super::RollingRecreateRequest>,
        ) -> std::result::Result<
            tonic::Response<super::super::super::super::operation::Operation>,
            tonic::Status,
        > {
            self.inner
                .ready()
                .await
                .map_err(|e| {
                    tonic::Status::new(
                        tonic::Code::Unknown,
                        format!("Service was not ready: {}", e.into()),
                    )
                })?;
            let codec = tonic::codec::ProstCodec::default();
            let path = http::uri::PathAndQuery::from_static(
                "/yandex.cloud.compute.v1.instancegroup.InstanceGroupService/RollingRecreate",
            );
            let mut req = request.into_request();
            req.extensions_mut()
                .insert(
                    GrpcMethod::new(
                        "yandex.cloud.compute.v1.instancegroup.InstanceGroupService",
                        "RollingRecreate",
                    ),
                );
            self.inner.unary(req, path, codec).await
        }
        /// Starts the specified instance group.
        pub async fn start(
            &mut self,
            request: impl tonic::IntoRequest<super::StartInstanceGroupRequest>,
        ) -> std::result::Result<
            tonic::Response<super::super::super::super::operation::Operation>,
            tonic::Status,
        > {
            self.inner
                .ready()
                .await
                .map_err(|e| {
                    tonic::Status::new(
                        tonic::Code::Unknown,
                        format!("Service was not ready: {}", e.into()),
                    )
                })?;
            let codec = tonic::codec::ProstCodec::default();
            let path = http::uri::PathAndQuery::from_static(
                "/yandex.cloud.compute.v1.instancegroup.InstanceGroupService/Start",
            );
            let mut req = request.into_request();
            req.extensions_mut()
                .insert(
                    GrpcMethod::new(
                        "yandex.cloud.compute.v1.instancegroup.InstanceGroupService",
                        "Start",
                    ),
                );
            self.inner.unary(req, path, codec).await
        }
        /// Deletes the specified instance group.
        pub async fn delete(
            &mut self,
            request: impl tonic::IntoRequest<super::DeleteInstanceGroupRequest>,
        ) -> std::result::Result<
            tonic::Response<super::super::super::super::operation::Operation>,
            tonic::Status,
        > {
            self.inner
                .ready()
                .await
                .map_err(|e| {
                    tonic::Status::new(
                        tonic::Code::Unknown,
                        format!("Service was not ready: {}", e.into()),
                    )
                })?;
            let codec = tonic::codec::ProstCodec::default();
            let path = http::uri::PathAndQuery::from_static(
                "/yandex.cloud.compute.v1.instancegroup.InstanceGroupService/Delete",
            );
            let mut req = request.into_request();
            req.extensions_mut()
                .insert(
                    GrpcMethod::new(
                        "yandex.cloud.compute.v1.instancegroup.InstanceGroupService",
                        "Delete",
                    ),
                );
            self.inner.unary(req, path, codec).await
        }
        /// Lists instances for the specified instance group.
        pub async fn list_instances(
            &mut self,
            request: impl tonic::IntoRequest<super::ListInstanceGroupInstancesRequest>,
        ) -> std::result::Result<
            tonic::Response<super::ListInstanceGroupInstancesResponse>,
            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(
                "/yandex.cloud.compute.v1.instancegroup.InstanceGroupService/ListInstances",
            );
            let mut req = request.into_request();
            req.extensions_mut()
                .insert(
                    GrpcMethod::new(
                        "yandex.cloud.compute.v1.instancegroup.InstanceGroupService",
                        "ListInstances",
                    ),
                );
            self.inner.unary(req, path, codec).await
        }
        /// Delete instances from the instance group.
        pub async fn delete_instances(
            &mut self,
            request: impl tonic::IntoRequest<super::DeleteInstancesRequest>,
        ) -> std::result::Result<
            tonic::Response<super::super::super::super::operation::Operation>,
            tonic::Status,
        > {
            self.inner
                .ready()
                .await
                .map_err(|e| {
                    tonic::Status::new(
                        tonic::Code::Unknown,
                        format!("Service was not ready: {}", e.into()),
                    )
                })?;
            let codec = tonic::codec::ProstCodec::default();
            let path = http::uri::PathAndQuery::from_static(
                "/yandex.cloud.compute.v1.instancegroup.InstanceGroupService/DeleteInstances",
            );
            let mut req = request.into_request();
            req.extensions_mut()
                .insert(
                    GrpcMethod::new(
                        "yandex.cloud.compute.v1.instancegroup.InstanceGroupService",
                        "DeleteInstances",
                    ),
                );
            self.inner.unary(req, path, codec).await
        }
        /// Stop instances from the instance group.
        pub async fn stop_instances(
            &mut self,
            request: impl tonic::IntoRequest<super::StopInstancesRequest>,
        ) -> std::result::Result<
            tonic::Response<super::super::super::super::operation::Operation>,
            tonic::Status,
        > {
            self.inner
                .ready()
                .await
                .map_err(|e| {
                    tonic::Status::new(
                        tonic::Code::Unknown,
                        format!("Service was not ready: {}", e.into()),
                    )
                })?;
            let codec = tonic::codec::ProstCodec::default();
            let path = http::uri::PathAndQuery::from_static(
                "/yandex.cloud.compute.v1.instancegroup.InstanceGroupService/StopInstances",
            );
            let mut req = request.into_request();
            req.extensions_mut()
                .insert(
                    GrpcMethod::new(
                        "yandex.cloud.compute.v1.instancegroup.InstanceGroupService",
                        "StopInstances",
                    ),
                );
            self.inner.unary(req, path, codec).await
        }
        /// Lists operations for the specified instance group.
        pub async fn list_operations(
            &mut self,
            request: impl tonic::IntoRequest<super::ListInstanceGroupOperationsRequest>,
        ) -> std::result::Result<
            tonic::Response<super::ListInstanceGroupOperationsResponse>,
            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(
                "/yandex.cloud.compute.v1.instancegroup.InstanceGroupService/ListOperations",
            );
            let mut req = request.into_request();
            req.extensions_mut()
                .insert(
                    GrpcMethod::new(
                        "yandex.cloud.compute.v1.instancegroup.InstanceGroupService",
                        "ListOperations",
                    ),
                );
            self.inner.unary(req, path, codec).await
        }
        /// Lists logs for the specified instance group.
        pub async fn list_log_records(
            &mut self,
            request: impl tonic::IntoRequest<super::ListInstanceGroupLogRecordsRequest>,
        ) -> std::result::Result<
            tonic::Response<super::ListInstanceGroupLogRecordsResponse>,
            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(
                "/yandex.cloud.compute.v1.instancegroup.InstanceGroupService/ListLogRecords",
            );
            let mut req = request.into_request();
            req.extensions_mut()
                .insert(
                    GrpcMethod::new(
                        "yandex.cloud.compute.v1.instancegroup.InstanceGroupService",
                        "ListLogRecords",
                    ),
                );
            self.inner.unary(req, path, codec).await
        }
        /// Lists existing access bindings for the specified instance group.
        pub async fn list_access_bindings(
            &mut self,
            request: impl tonic::IntoRequest<
                super::super::super::super::access::ListAccessBindingsRequest,
            >,
        ) -> std::result::Result<
            tonic::Response<
                super::super::super::super::access::ListAccessBindingsResponse,
            >,
            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(
                "/yandex.cloud.compute.v1.instancegroup.InstanceGroupService/ListAccessBindings",
            );
            let mut req = request.into_request();
            req.extensions_mut()
                .insert(
                    GrpcMethod::new(
                        "yandex.cloud.compute.v1.instancegroup.InstanceGroupService",
                        "ListAccessBindings",
                    ),
                );
            self.inner.unary(req, path, codec).await
        }
        /// Sets access bindings for the specified instance group.
        pub async fn set_access_bindings(
            &mut self,
            request: impl tonic::IntoRequest<
                super::super::super::super::access::SetAccessBindingsRequest,
            >,
        ) -> std::result::Result<
            tonic::Response<super::super::super::super::operation::Operation>,
            tonic::Status,
        > {
            self.inner
                .ready()
                .await
                .map_err(|e| {
                    tonic::Status::new(
                        tonic::Code::Unknown,
                        format!("Service was not ready: {}", e.into()),
                    )
                })?;
            let codec = tonic::codec::ProstCodec::default();
            let path = http::uri::PathAndQuery::from_static(
                "/yandex.cloud.compute.v1.instancegroup.InstanceGroupService/SetAccessBindings",
            );
            let mut req = request.into_request();
            req.extensions_mut()
                .insert(
                    GrpcMethod::new(
                        "yandex.cloud.compute.v1.instancegroup.InstanceGroupService",
                        "SetAccessBindings",
                    ),
                );
            self.inner.unary(req, path, codec).await
        }
        /// Updates access bindings for the specified instance group.
        pub async fn update_access_bindings(
            &mut self,
            request: impl tonic::IntoRequest<
                super::super::super::super::access::UpdateAccessBindingsRequest,
            >,
        ) -> std::result::Result<
            tonic::Response<super::super::super::super::operation::Operation>,
            tonic::Status,
        > {
            self.inner
                .ready()
                .await
                .map_err(|e| {
                    tonic::Status::new(
                        tonic::Code::Unknown,
                        format!("Service was not ready: {}", e.into()),
                    )
                })?;
            let codec = tonic::codec::ProstCodec::default();
            let path = http::uri::PathAndQuery::from_static(
                "/yandex.cloud.compute.v1.instancegroup.InstanceGroupService/UpdateAccessBindings",
            );
            let mut req = request.into_request();
            req.extensions_mut()
                .insert(
                    GrpcMethod::new(
                        "yandex.cloud.compute.v1.instancegroup.InstanceGroupService",
                        "UpdateAccessBindings",
                    ),
                );
            self.inner.unary(req, path, codec).await
        }
        /// Resumes all processes regarding management of the specified instance group,
        /// i.e. scaling, checking instances' health, auto-healing and updating them.
        pub async fn resume_processes(
            &mut self,
            request: impl tonic::IntoRequest<super::ResumeInstanceGroupProcessesRequest>,
        ) -> std::result::Result<
            tonic::Response<super::super::super::super::operation::Operation>,
            tonic::Status,
        > {
            self.inner
                .ready()
                .await
                .map_err(|e| {
                    tonic::Status::new(
                        tonic::Code::Unknown,
                        format!("Service was not ready: {}", e.into()),
                    )
                })?;
            let codec = tonic::codec::ProstCodec::default();
            let path = http::uri::PathAndQuery::from_static(
                "/yandex.cloud.compute.v1.instancegroup.InstanceGroupService/ResumeProcesses",
            );
            let mut req = request.into_request();
            req.extensions_mut()
                .insert(
                    GrpcMethod::new(
                        "yandex.cloud.compute.v1.instancegroup.InstanceGroupService",
                        "ResumeProcesses",
                    ),
                );
            self.inner.unary(req, path, codec).await
        }
        /// Pauses all processes regarding management of the specified instance group,
        /// i.e. scaling, checking instances' health, auto-healing and updating them. Running instances are not stopped.
        pub async fn pause_processes(
            &mut self,
            request: impl tonic::IntoRequest<super::PauseInstanceGroupProcessesRequest>,
        ) -> std::result::Result<
            tonic::Response<super::super::super::super::operation::Operation>,
            tonic::Status,
        > {
            self.inner
                .ready()
                .await
                .map_err(|e| {
                    tonic::Status::new(
                        tonic::Code::Unknown,
                        format!("Service was not ready: {}", e.into()),
                    )
                })?;
            let codec = tonic::codec::ProstCodec::default();
            let path = http::uri::PathAndQuery::from_static(
                "/yandex.cloud.compute.v1.instancegroup.InstanceGroupService/PauseProcesses",
            );
            let mut req = request.into_request();
            req.extensions_mut()
                .insert(
                    GrpcMethod::new(
                        "yandex.cloud.compute.v1.instancegroup.InstanceGroupService",
                        "PauseProcesses",
                    ),
                );
            self.inner.unary(req, path, codec).await
        }
    }
}