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
/// A bucket resource.
/// For details about the concept, see \[documentation\](/docs/storage/concepts/bucket).
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Bucket {
    /// ID of the bucket. Always equal to \[name\], which has priority.
    #[prost(string, tag = "1")]
    pub id: ::prost::alloc::string::String,
    /// Name of the bucket.
    ///
    /// The name is unique within the platform. For naming limitations and rules, see
    /// \[documentation\](/docs/storage/concepts/bucket#naming).
    #[prost(string, tag = "2")]
    pub name: ::prost::alloc::string::String,
    /// ID of the folder that the bucket belongs to.
    #[prost(string, tag = "3")]
    pub folder_id: ::prost::alloc::string::String,
    /// Flags for configuring public (anonymous) access to the bucket's content and settings.
    /// For details, see \[documentation\](/docs/storage/concepts/bucket#bucket-access).
    #[prost(message, optional, tag = "4")]
    pub anonymous_access_flags: ::core::option::Option<AnonymousAccessFlags>,
    /// Default storage class for objects in the bucket. Supported classes are standard storage (`STANDARD`), cold storage
    /// (`COLD`, `STANDARD_IA`, `NEARLINE` all synonyms), and ice storage (`ICE` and `GLACIER` are synonyms).
    /// For details, see \[documentation\](/docs/storage/concepts/storage-class).
    #[prost(string, tag = "5")]
    pub default_storage_class: ::prost::alloc::string::String,
    /// Bucket versioning status.
    /// For details, see \[documentation\](/docs/storage/concepts/versioning).
    #[prost(enumeration = "Versioning", tag = "6")]
    pub versioning: i32,
    /// Maximum size of the bucket, in bytes.
    /// For details, see \[documentation\](/docs/storage/operations/buckets/limit-max-volume).
    #[prost(int64, tag = "7")]
    pub max_size: i64,
    /// Bucket policies that set permissions for actions with the bucket, its objects, and groups of objects.
    /// For details, see \[documentation\](/docs/storage/concepts/policy).
    #[prost(message, optional, tag = "8")]
    pub policy: ::core::option::Option<::prost_types::Struct>,
    /// Access control list (ACL) of the bucket.
    /// For details, see \[documentation\](/docs/storage/concepts/acl).
    #[prost(message, optional, tag = "9")]
    pub acl: ::core::option::Option<Acl>,
    /// Creation timestamp.
    #[prost(message, optional, tag = "10")]
    pub created_at: ::core::option::Option<::prost_types::Timestamp>,
    /// List of rules for cross-domain requests to objects in the bucket (cross-origin resource sharing, CORS).
    /// For details, see \[documentation\](/docs/storage/concepts/cors).
    #[prost(message, repeated, tag = "11")]
    pub cors: ::prost::alloc::vec::Vec<CorsRule>,
    /// Configuration for hosting a static website in the bucket.
    /// For details, see \[documentation\](/docs/storage/concepts/hosting).
    #[prost(message, optional, tag = "12")]
    pub website_settings: ::core::option::Option<WebsiteSettings>,
    /// List of object lifecycle rules for the bucket.
    /// For details, see \[documentation\](/docs/storage/concepts/lifecycles).
    #[prost(message, repeated, tag = "13")]
    pub lifecycle_rules: ::prost::alloc::vec::Vec<LifecycleRule>,
    /// List of tags for the bucket.
    /// For details, see \[documentation\](/docs/resource-manager/concepts/labels).
    #[prost(message, repeated, tag = "14")]
    pub tags: ::prost::alloc::vec::Vec<Tag>,
    /// Configuration for object lock on the bucket.
    /// For details about the concept, see \[documentation\](/docs/storage/concepts/object-lock).
    #[prost(message, optional, tag = "15")]
    pub object_lock: ::core::option::Option<ObjectLock>,
    /// Configuration for bucket's encryption
    /// For details, see \[documentation\](/docs/storage/concepts/encryption)
    #[prost(message, optional, tag = "16")]
    pub encryption: ::core::option::Option<Encryption>,
    /// Bucket allowed private endpoints.
    #[prost(message, optional, tag = "17")]
    pub allowed_private_endpoints: ::core::option::Option<BucketAllowedPrivateEndpoints>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Tag {
    /// Key of the bucket tag.
    #[prost(string, tag = "1")]
    pub key: ::prost::alloc::string::String,
    /// Value of the bucket tag.
    #[prost(string, tag = "2")]
    pub value: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Acl {
    /// List of permissions granted and the grantees.
    #[prost(message, repeated, tag = "1")]
    pub grants: ::prost::alloc::vec::Vec<acl::Grant>,
}
/// Nested message and enum types in `ACL`.
pub mod acl {
    /// A grant resource, used to specify the permission granted and the grantee.
    #[allow(clippy::derive_partial_eq_without_eq)]
    #[derive(Clone, PartialEq, ::prost::Message)]
    pub struct Grant {
        /// Permission granted by the grant.
        #[prost(enumeration = "grant::Permission", tag = "1")]
        pub permission: i32,
        /// The grantee type for the grant.
        #[prost(enumeration = "grant::GrantType", tag = "2")]
        pub grant_type: i32,
        /// ID of the account who is a grantee. Required when the \[grant_type\] is `GRANT_TYPE_ACCOUNT`.
        #[prost(string, tag = "3")]
        pub grantee_id: ::prost::alloc::string::String,
    }
    /// Nested message and enum types in `Grant`.
    pub mod grant {
        #[derive(
            Clone,
            Copy,
            Debug,
            PartialEq,
            Eq,
            Hash,
            PartialOrd,
            Ord,
            ::prost::Enumeration
        )]
        #[repr(i32)]
        pub enum Permission {
            Unspecified = 0,
            /// Allows grantee the `PERMISSION_WRITE`, `PERMISSION_WRITE_ACP`, `PERMISSION_READ`, and `PERMISSION_READ_ACP`
            /// on the bucket.
            ///
            /// Maps to `x-amz-grant-full-control` header for \[bucketPutAcl\](/docs/storage/s3/api-ref/acl/bucketput) method of
            /// Amazon S3-compatible HTTP API.
            FullControl = 1,
            /// Allows grantee to create new objects in the bucket. For the bucket and object owners of existing objects, also
            /// allows deletions and overwrites of those objects.
            ///
            /// Maps to `x-amz-grant-write` header for \[bucketPutAcl\](/docs/storage/s3/api-ref/acl/bucketput) method of Amazon
            /// S3-compatible HTTP API.
            Write = 2,
            /// Allows grantee to write the ACL for the bucket.
            ///
            /// Maps to `x-amz-grant-write-acp` header for \[bucketPutAcl\](/docs/storage/s3/api-ref/acl/bucketput) method of
            /// Amazon S3-compatible HTTP API.
            WriteAcp = 3,
            /// Allows grantee to list the objects in the bucket.
            ///
            /// Maps to `x-amz-grant-read` header for \[bucketPutAcl\](/docs/storage/s3/api-ref/acl/bucketput) method of Amazon
            /// S3-compatible HTTP API.
            Read = 4,
            /// Allows grantee to read the bucket ACL
            ///
            /// Maps to `x-amz-grant-read-acp` header for \[bucketPutAcl\](/docs/storage/s3/api-ref/acl/bucketput) method of
            /// Amazon S3-compatible HTTP API.
            ReadAcp = 5,
        }
        impl Permission {
            /// 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 {
                    Permission::Unspecified => "PERMISSION_UNSPECIFIED",
                    Permission::FullControl => "PERMISSION_FULL_CONTROL",
                    Permission::Write => "PERMISSION_WRITE",
                    Permission::WriteAcp => "PERMISSION_WRITE_ACP",
                    Permission::Read => "PERMISSION_READ",
                    Permission::ReadAcp => "PERMISSION_READ_ACP",
                }
            }
            /// Creates an enum from field names used in the ProtoBuf definition.
            pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
                match value {
                    "PERMISSION_UNSPECIFIED" => Some(Self::Unspecified),
                    "PERMISSION_FULL_CONTROL" => Some(Self::FullControl),
                    "PERMISSION_WRITE" => Some(Self::Write),
                    "PERMISSION_WRITE_ACP" => Some(Self::WriteAcp),
                    "PERMISSION_READ" => Some(Self::Read),
                    "PERMISSION_READ_ACP" => Some(Self::ReadAcp),
                    _ => None,
                }
            }
        }
        #[derive(
            Clone,
            Copy,
            Debug,
            PartialEq,
            Eq,
            Hash,
            PartialOrd,
            Ord,
            ::prost::Enumeration
        )]
        #[repr(i32)]
        pub enum GrantType {
            Unspecified = 0,
            /// A grantee is an [account on the platform](/docs/iam/concepts/#accounts).
            ///
            /// For this grantee type, you need to specify the user ID in \[Bucket.acl.grants.grantee_id\] field. To get user ID, see
            /// \[instruction\](/docs/iam/operations/users/get).
            ///
            /// Maps to using `id="*"` value for `x-amz-grant-*` header (\[bucketPutAcl\](/docs/storage/s3/api-ref/acl/bucketput)
            /// method of Amazon S3-compatible HTTP API).
            Account = 1,
            /// Grantees are all authenticated users, both from your clouds and other users' clouds. Access
            /// permission to this group allows any account on the platform to access the resource via a signed (authenticated)
            /// request.
            ///
            /// Maps to using `uri="<http://acs.amazonaws.com/groups/global/AuthenticatedUsers"`> value for `x-amz-grant-*`
            /// header (\[bucketPutAcl\](/docs/storage/s3/api-ref/acl/bucketput) method of Amazon S3-compatible HTTP API).
            AllAuthenticatedUsers = 2,
            /// Grantees are all internet users. Access permission to this group allows anyone in the world access to the
            /// resource via signed (authenticated) or unsigned (anonymous) requests.
            ///
            /// Maps to using `uri="<http://acs.amazonaws.com/groups/global/AllUsers"`> value for `x-amz-grant-*` header
            /// (\[bucketPutAcl\](/docs/storage/s3/api-ref/acl/bucketput) method of Amazon S3-compatible HTTP API).
            AllUsers = 3,
        }
        impl GrantType {
            /// 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 {
                    GrantType::Unspecified => "GRANT_TYPE_UNSPECIFIED",
                    GrantType::Account => "GRANT_TYPE_ACCOUNT",
                    GrantType::AllAuthenticatedUsers => {
                        "GRANT_TYPE_ALL_AUTHENTICATED_USERS"
                    }
                    GrantType::AllUsers => "GRANT_TYPE_ALL_USERS",
                }
            }
            /// Creates an enum from field names used in the ProtoBuf definition.
            pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
                match value {
                    "GRANT_TYPE_UNSPECIFIED" => Some(Self::Unspecified),
                    "GRANT_TYPE_ACCOUNT" => Some(Self::Account),
                    "GRANT_TYPE_ALL_AUTHENTICATED_USERS" => {
                        Some(Self::AllAuthenticatedUsers)
                    }
                    "GRANT_TYPE_ALL_USERS" => Some(Self::AllUsers),
                    _ => None,
                }
            }
        }
    }
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct AnonymousAccessFlags {
    /// Specifies whether public (anonymous) access to read objects in the bucket is enabled.
    #[prost(message, optional, tag = "1")]
    pub read: ::core::option::Option<bool>,
    /// Specifies whether public (anonymous) access to the list of objects in the bucket is enabled.
    #[prost(message, optional, tag = "2")]
    pub list: ::core::option::Option<bool>,
    /// Specifies whether public (anonymous) access to read \[CORS\](/docs/storage/concepts/cors),
    /// [static website hosting](/docs/storage/concepts/hosting), and
    /// [object lifecycles](/docs/storage/concepts/lifecycles) settings of the bucket is enabled.
    #[prost(message, optional, tag = "3")]
    pub config_read: ::core::option::Option<bool>,
}
/// A CORS rule resource.
/// For details about the concept, see \[documentation\](/docs/storage/concepts/cors).
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CorsRule {
    /// ID of the CORS rule.
    #[prost(string, tag = "1")]
    pub id: ::prost::alloc::string::String,
    /// List of HTTP methods allowed by the CORS rule.
    ///
    /// When a client sends a CORS-preflight `options` request with the `Access-Control-Request-Method` header (see
    /// [S3-compatible API reference](/docs/storage/s3/api-ref/object/options)), the specified method is checked against
    /// the list of the allowed methods. If there is a match, all the allowed methods are listed in the
    /// `Access-Control-Allow-Methods` header of the response.
    #[prost(enumeration = "cors_rule::Method", repeated, packed = "false", tag = "2")]
    pub allowed_methods: ::prost::alloc::vec::Vec<i32>,
    /// List of HTTP headers allowed by the CORS rule.
    ///
    /// When a client sends a CORS-preflight `options` request with the `Access-Control-Request-Headers` header (see
    /// [S3-compatible API reference](/docs/storage/s3/api-ref/object/options)), the specified headers are checked against
    /// the list of the allowed headers. If there is a match, the specified headers that are allowed are listed in the
    /// `Access-Control-Allow-Headers` header of the response.
    ///
    /// Each string in the list can contain at most one `*` wildcard character that matches 0 or more characters.
    /// For example, `x-amz-*` value will allow all Amazon S3-compatible headers.
    #[prost(string, repeated, tag = "3")]
    pub allowed_headers: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
    /// List of request origins allowed by the CORS rule.
    ///
    /// Each string in the list can contain at most one `*` wildcard character that matches 0 or more characters.
    /// For example, `<http://*.example.com`> value will allow requests originating from all subdomains of `example.com`.
    #[prost(string, repeated, tag = "4")]
    pub allowed_origins: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
    /// List of headers contained in responses to CORS requests that can be accessed by applications.
    #[prost(string, repeated, tag = "5")]
    pub expose_headers: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
    /// Time in seconds that a client can cache the response to a CORS-preflight request as identified by the
    /// object requested, the HTTP method, and the origin.
    #[prost(message, optional, tag = "6")]
    pub max_age_seconds: ::core::option::Option<i64>,
}
/// Nested message and enum types in `CorsRule`.
pub mod cors_rule {
    /// List of HTTP methods that are allowed by the CORS rule.
    ///
    /// When a client sends a CORS-preflight `options` request with the `Access-Control-Request-Method` header (see
    /// S3-compatible API reference](/docs/storage/s3/api-ref/object/options)), the specified method is checked against the
    /// list of the allowed methods. If there is a match, all the allowed methods are listed in the
    /// `Access-Control-Allow-Methods` header of the response.
    #[derive(
        Clone,
        Copy,
        Debug,
        PartialEq,
        Eq,
        Hash,
        PartialOrd,
        Ord,
        ::prost::Enumeration
    )]
    #[repr(i32)]
    pub enum Method {
        Unspecified = 0,
        /// HTTP `GET` method.
        Get = 1,
        /// HTTP `HEAD` method.
        Head = 2,
        /// HTTP `POST` method.
        Post = 3,
        /// HTTP `PUT` method.
        Put = 4,
        /// HTTP `DELETE` method.
        Delete = 5,
    }
    impl Method {
        /// 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 {
                Method::Unspecified => "METHOD_UNSPECIFIED",
                Method::Get => "METHOD_GET",
                Method::Head => "METHOD_HEAD",
                Method::Post => "METHOD_POST",
                Method::Put => "METHOD_PUT",
                Method::Delete => "METHOD_DELETE",
            }
        }
        /// Creates an enum from field names used in the ProtoBuf definition.
        pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
            match value {
                "METHOD_UNSPECIFIED" => Some(Self::Unspecified),
                "METHOD_GET" => Some(Self::Get),
                "METHOD_HEAD" => Some(Self::Head),
                "METHOD_POST" => Some(Self::Post),
                "METHOD_PUT" => Some(Self::Put),
                "METHOD_DELETE" => Some(Self::Delete),
                _ => None,
            }
        }
    }
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct WebsiteSettings {
    /// Key of the index page object that is returned when a response is made to the root of the website.
    ///
    /// Either \[index\] or \[redirect_all_requests\] must be specified in order for the bucket to host a static website.
    ///
    /// If specified, the index page object must be located in the root of the bucket.
    #[prost(string, tag = "1")]
    pub index: ::prost::alloc::string::String,
    /// Key of the error page object that is returned when an error occurs.
    #[prost(string, tag = "2")]
    pub error: ::prost::alloc::string::String,
    /// Configuration for redirecting all requests sent to the website.
    ///
    /// Either \[redirect_all_requests\] or \[index\] must be specified in order for the bucket to host a static website.
    /// If \[redirect_all_requests\] is specified, it must be the only field in \[Bucket.website_settings\].
    #[prost(message, optional, tag = "3")]
    pub redirect_all_requests: ::core::option::Option<website_settings::Scheme>,
    /// List of redirect rules.
    #[prost(message, repeated, tag = "4")]
    pub routing_rules: ::prost::alloc::vec::Vec<website_settings::RoutingRule>,
}
/// Nested message and enum types in `WebsiteSettings`.
pub mod website_settings {
    /// A configuration resource for redirecting all requests sent to the website.
    #[allow(clippy::derive_partial_eq_without_eq)]
    #[derive(Clone, PartialEq, ::prost::Message)]
    pub struct Scheme {
        /// Scheme of the redirect URI.
        #[prost(enumeration = "Protocol", tag = "1")]
        pub protocol: i32,
        /// Hostname of the redirect URI.
        #[prost(string, tag = "2")]
        pub hostname: ::prost::alloc::string::String,
    }
    #[allow(clippy::derive_partial_eq_without_eq)]
    #[derive(Clone, PartialEq, ::prost::Message)]
    pub struct Condition {
        /// HTTP status code (number only) that must match for the redirect to apply.
        #[prost(string, tag = "1")]
        pub http_error_code_returned_equals: ::prost::alloc::string::String,
        /// Prefix of the object key from which requests are redirected.
        #[prost(string, tag = "2")]
        pub key_prefix_equals: ::prost::alloc::string::String,
    }
    #[allow(clippy::derive_partial_eq_without_eq)]
    #[derive(Clone, PartialEq, ::prost::Message)]
    pub struct Redirect {
        /// Hostname of the redirect URI.
        #[prost(string, tag = "1")]
        pub hostname: ::prost::alloc::string::String,
        /// HTTP status code of the redirect response.
        ///
        /// Default value: `"301"`.
        #[prost(string, tag = "2")]
        pub http_redirect_code: ::prost::alloc::string::String,
        /// Scheme of the redirect URI.
        #[prost(enumeration = "Protocol", tag = "3")]
        pub protocol: i32,
        /// Substitution for the prefix of the object key specified in \[Condition.key_prefix_equals\].
        ///
        /// At most one of \[replace_key_prefix_with\] and \[replace_key_with\] can be specified.
        #[prost(string, tag = "4")]
        pub replace_key_prefix_with: ::prost::alloc::string::String,
        /// New object key.
        ///
        /// At most one of \[replace_key_with\] and \[replace_key_prefix_with\] can be specified.
        #[prost(string, tag = "5")]
        pub replace_key_with: ::prost::alloc::string::String,
    }
    /// List of redirect rules.
    #[allow(clippy::derive_partial_eq_without_eq)]
    #[derive(Clone, PartialEq, ::prost::Message)]
    pub struct RoutingRule {
        /// Redirect condition.
        #[prost(message, optional, tag = "1")]
        pub condition: ::core::option::Option<Condition>,
        /// Redirect instructions.
        #[prost(message, optional, tag = "2")]
        pub redirect: ::core::option::Option<Redirect>,
    }
    #[derive(
        Clone,
        Copy,
        Debug,
        PartialEq,
        Eq,
        Hash,
        PartialOrd,
        Ord,
        ::prost::Enumeration
    )]
    #[repr(i32)]
    pub enum Protocol {
        Unspecified = 0,
        /// `http` scheme.
        Http = 1,
        /// `https` scheme.
        Https = 2,
    }
    impl Protocol {
        /// 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 {
                Protocol::Unspecified => "PROTOCOL_UNSPECIFIED",
                Protocol::Http => "PROTOCOL_HTTP",
                Protocol::Https => "PROTOCOL_HTTPS",
            }
        }
        /// Creates an enum from field names used in the ProtoBuf definition.
        pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
            match value {
                "PROTOCOL_UNSPECIFIED" => Some(Self::Unspecified),
                "PROTOCOL_HTTP" => Some(Self::Http),
                "PROTOCOL_HTTPS" => Some(Self::Https),
                _ => None,
            }
        }
    }
}
/// An object lifecycle rule resource for the bucket.
/// For details about the concept, see \[documentation\](/docs/storage/concepts/lifecycles).
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct LifecycleRule {
    /// ID of the rule. Provided by the client or generated at creation time.
    #[prost(message, optional, tag = "1")]
    pub id: ::core::option::Option<::prost::alloc::string::String>,
    /// Indicates whether the rule is in effect.
    #[prost(bool, tag = "2")]
    pub enabled: bool,
    /// Filter that identifies the objects to which the rule applies.
    ///
    /// If not specified, the rule applies to all objects in the bucket.
    #[prost(message, optional, tag = "3")]
    pub filter: ::core::option::Option<lifecycle_rule::RuleFilter>,
    /// Expiration rule.
    ///
    /// The expiration of an object is described as follows.
    ///
    /// For the unversioned bucket (\[Bucket.versioning\] is `VERSIONING_DISABLED`), the object is deleted and cannot be
    /// recovered.
    ///
    /// For the bucket with versioning enabled (\[Bucket.versioning\] is `VERSIONING_ENABLED`), the current version of the
    /// object (if it exists and is not a delete marker) is retained as a non-current version, and a delete marker becomes
    /// the current version of the object.
    ///
    /// For the bucket with versioning suspended (\[Bucket.versioning\] is `VERSIONING_SUSPENDED`), the current version of
    /// the object is retained as a non-current version if it is not a delete marker, or is removed otherwise, and a
    /// delete marker becomes the current version of the object.
    #[prost(message, optional, tag = "4")]
    pub expiration: ::core::option::Option<lifecycle_rule::Expiration>,
    /// List of transition rules.
    ///
    /// The transition of an object is described as follows.
    ///
    /// For the unversioned bucket (\[Bucket.versioning\] is `VERSIONING_DISABLED`), the object is transitioned to the
    /// specified storage class.
    ///
    /// For the bucket with versioning enabled (\[Bucket.versioning\] is `VERSIONING_ENABLED`) or suspended
    /// (`VERSIONING_SUSPENDED`), the current version of the object is transitioned to the specified storage class.
    #[prost(message, repeated, tag = "5")]
    pub transitions: ::prost::alloc::vec::Vec<lifecycle_rule::Transition>,
    /// Configuration for aborting incomplete [multipart uploads](/docs/storage/concepts/multipart).
    #[prost(message, optional, tag = "6")]
    pub abort_incomplete_multipart_upload: ::core::option::Option<
        lifecycle_rule::AfterDays,
    >,
    /// Expiration rule for non-current versions of objects in a bucket with versioning enabled (\[Bucket.versioning\] is
    /// `VERSIONING_ENABLED`) or suspended (`VERSIONING_SUSPENDED`).
    ///
    /// At expiration, the non-current version of the object is deleted and cannot be recovered.
    #[prost(message, optional, tag = "7")]
    pub noncurrent_expiration: ::core::option::Option<
        lifecycle_rule::NoncurrentExpiration,
    >,
    /// List of transition rules for non-current versions of objects in a bucket with versioning enabled
    /// (\[Bucket.versioning\] is `VERSIONING_ENABLED`) or suspended (`VERSIONING_SUSPENDED`).
    ///
    /// At transition, the non-current version of the object is transitioned to the specified storage class.
    #[prost(message, repeated, tag = "8")]
    pub noncurrent_transitions: ::prost::alloc::vec::Vec<
        lifecycle_rule::NoncurrentTransition,
    >,
    /// Expiration rule for non-current delete markers of an objects in a bucket with versioning
    /// enabled (\[Bucket.versioning\] is `VERSIONING_ENABLED`) or suspended (`VERSIONING_SUSPENDED`).
    /// Works in the same way as noncurrent_expiration rule, but only for delete markers.
    ///
    /// At expiration, the non-current delete marker of the object is deleted and cannot be recovered.
    #[prost(message, optional, tag = "9")]
    pub noncurrent_delete_markers: ::core::option::Option<
        lifecycle_rule::NoncurrentDeleteMarkers,
    >,
}
/// Nested message and enum types in `LifecycleRule`.
pub mod lifecycle_rule {
    #[allow(clippy::derive_partial_eq_without_eq)]
    #[derive(Clone, PartialEq, ::prost::Message)]
    pub struct AfterDays {
        /// Time period, in number of days from the start of the multipart upload, after which the incomplete upload is
        /// aborted.
        #[prost(message, optional, tag = "1")]
        pub days_after_expiration: ::core::option::Option<i64>,
    }
    #[allow(clippy::derive_partial_eq_without_eq)]
    #[derive(Clone, PartialEq, ::prost::Message)]
    pub struct NoncurrentDeleteMarkers {
        /// Time period, in number of days since the version of a delete marker was classified as non-current, after which
        /// the delete marker expires.
        #[prost(message, optional, tag = "1")]
        pub noncurrent_days: ::core::option::Option<i64>,
    }
    #[allow(clippy::derive_partial_eq_without_eq)]
    #[derive(Clone, PartialEq, ::prost::Message)]
    pub struct NoncurrentExpiration {
        /// Time period, in number of days since the version of an object was classified as non-current, after which the
        /// version expires.
        #[prost(message, optional, tag = "1")]
        pub noncurrent_days: ::core::option::Option<i64>,
    }
    /// List of transition rules for non-current versions of objects in a bucket with versioning enabled
    /// (\[Bucket.versioning\] is `VERSIONING_ENABLED`) or suspended (`VERSIONING_SUSPENDED`).
    ///
    /// At transition, the non-current version of the object is transitioned to the specified storage class.
    #[allow(clippy::derive_partial_eq_without_eq)]
    #[derive(Clone, PartialEq, ::prost::Message)]
    pub struct NoncurrentTransition {
        /// Time period, in number of days since the version of an object was classified as non-current, after which the
        /// version is transitioned.
        #[prost(message, optional, tag = "1")]
        pub noncurrent_days: ::core::option::Option<i64>,
        /// Storage class to which a non-current version of an object is transitioned from standard storage.
        ///
        /// The only supported class is cold storage (`COLD`, `STANDARD_IA`, `NEARLINE` all synonyms). Transitions from cold
        /// to standard storage and transitions to or from ice storage are not allowed.
        #[prost(string, tag = "2")]
        pub storage_class: ::prost::alloc::string::String,
    }
    /// List of transition rules.
    ///
    /// The transition of an object is described as follows.
    ///
    /// For the unversioned bucket (\[Bucket.versioning\] is `VERSIONING_DISABLED`), the object is transitioned to the
    /// specified storage class.
    ///
    /// For the bucket with versioning enabled (\[Bucket.versioning\] is `VERSIONING_ENABLED`) or suspended
    /// (`VERSIONING_SUSPENDED`), the current version of the object is transitioned to the specified storage class.
    #[allow(clippy::derive_partial_eq_without_eq)]
    #[derive(Clone, PartialEq, ::prost::Message)]
    pub struct Transition {
        /// Specific date of object transition.
        ///
        /// The rule continues to apply even after the date has passed, i.e. any new objects created in the bucket are
        /// transitioned immediately.
        ///
        /// At most one of \[date\] and \[days\] fields can be specified.
        #[prost(message, optional, tag = "1")]
        pub date: ::core::option::Option<::prost_types::Timestamp>,
        /// Time period, in number of days from the creation or modification of the object, after which an object is
        /// transitioned.
        ///
        /// At most one of \[days\] and \[date\] fields can be specified.
        #[prost(message, optional, tag = "2")]
        pub days: ::core::option::Option<i64>,
        /// Storage class to which an object is transitioned from standard storage.
        ///
        /// The only supported class is cold storage (`COLD`, `STANDARD_IA`, `NEARLINE` all synonyms). Transitions from cold
        /// to standard storage and transitions to or from ice storage are not allowed.
        #[prost(string, tag = "4")]
        pub storage_class: ::prost::alloc::string::String,
    }
    #[allow(clippy::derive_partial_eq_without_eq)]
    #[derive(Clone, PartialEq, ::prost::Message)]
    pub struct Expiration {
        /// Specific date of object expiration.
        ///
        /// The rule continues to apply even after the date has passed, i.e. any new objects created in the bucket expire
        /// immediately.
        ///
        /// Exactly one of \[date\], \[days\], and \[expired_object_delete_marker\] fields can be specified.
        #[prost(message, optional, tag = "1")]
        pub date: ::core::option::Option<::prost_types::Timestamp>,
        /// Time period, in number of days from the creation or modification of the object, after which an object expires.
        ///
        /// Exactly one of \[days\], \[date\], and \[expired_object_delete_marker\] fields can be specified.
        #[prost(message, optional, tag = "2")]
        pub days: ::core::option::Option<i64>,
        /// Indicates whether a delete marker of an object with no non-current versions (referred to as an expired object
        /// delete marker) is removed at the object's expiration.
        ///
        /// Exactly one of \[expired_object_delete_marker\], \[date\], and \[days\] fields can be specified.
        #[prost(message, optional, tag = "3")]
        pub expired_object_delete_marker: ::core::option::Option<bool>,
    }
    #[allow(clippy::derive_partial_eq_without_eq)]
    #[derive(Clone, PartialEq, ::prost::Message)]
    pub struct RuleFilter {
        /// Key prefix that the object must have in order for the rule to apply.
        #[prost(string, tag = "1")]
        pub prefix: ::prost::alloc::string::String,
        /// Size that the object must be greater.
        #[prost(message, optional, tag = "2")]
        pub object_size_greater_than: ::core::option::Option<i64>,
        /// Size that the object must be less t.
        #[prost(message, optional, tag = "3")]
        pub object_size_less_than: ::core::option::Option<i64>,
        /// Tags that the object's tag set must have for the rule to apply.
        #[prost(message, optional, tag = "4")]
        pub tag: ::core::option::Option<super::Tag>,
        /// Apply a logical AND to all of the predicates configured inside the And operator.
        #[prost(message, optional, tag = "5")]
        pub and_operator: ::core::option::Option<rule_filter::And>,
    }
    /// Nested message and enum types in `RuleFilter`.
    pub mod rule_filter {
        #[allow(clippy::derive_partial_eq_without_eq)]
        #[derive(Clone, PartialEq, ::prost::Message)]
        pub struct And {
            #[prost(string, tag = "1")]
            pub prefix: ::prost::alloc::string::String,
            #[prost(message, optional, tag = "2")]
            pub object_size_greater_than: ::core::option::Option<i64>,
            #[prost(message, optional, tag = "3")]
            pub object_size_less_than: ::core::option::Option<i64>,
            #[prost(message, repeated, tag = "4")]
            pub tag: ::prost::alloc::vec::Vec<super::super::Tag>,
        }
    }
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Counters {
    /// Total size of objects uploaded in single operation, in bytes.
    #[prost(int64, tag = "1")]
    pub simple_object_size: i64,
    /// Number of objects uploaded in single operation.
    #[prost(int64, tag = "2")]
    pub simple_object_count: i64,
    /// Total size of uploaded parts in incomplete multipart uploads, in bytes.
    #[prost(int64, tag = "3")]
    pub objects_parts_size: i64,
    /// Number of uploaded parts in incomplete multipart uploads.
    #[prost(int64, tag = "4")]
    pub objects_parts_count: i64,
    /// Total size of objects uploaded in multiple parts, in bytes.
    #[prost(int64, tag = "5")]
    pub multipart_objects_size: i64,
    /// Number of objects uploaded in multiple parts.
    #[prost(int64, tag = "6")]
    pub multipart_objects_count: i64,
    /// Number of incomplete multipart uploads.
    #[prost(int64, tag = "7")]
    pub active_multipart_count: i64,
}
/// A resource for size of available space in a bucket for a storage class.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct OptionalSizeByClass {
    /// Storage class. Supported classes are standard storage (`STANDARD`), cold storage (`COLD`, `STANDARD_IA`, `NEARLINE`
    /// all synonyms), and ice storage (`ICE` and `GLACIER` are synonyms).
    /// For details, see \[documentation\](/docs/storage/concepts/storage-class).
    #[prost(string, tag = "1")]
    pub storage_class: ::prost::alloc::string::String,
    /// Size of available space in the bucket for the storage class.
    #[prost(message, optional, tag = "2")]
    pub class_size: ::core::option::Option<i64>,
}
/// A resource for size of used space in a bucket for a storage class.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SizeByClass {
    /// Storage class. Supported classes are standard storage (`STANDARD`), cold storage (`COLD`, `STANDARD_IA`, `NEARLINE`
    /// all synonyms), and ice storage (`ICE` and `GLACIER` are synonyms).
    /// For details, see \[documentation\](/docs/storage/concepts/storage-class).
    #[prost(string, tag = "1")]
    pub storage_class: ::prost::alloc::string::String,
    /// Size of used space in the bucket for the storage class.
    #[prost(int64, tag = "2")]
    pub class_size: i64,
}
/// A resource for object-related statistics for a storage class by type of upload (simple vs. multipart).
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CountersByClass {
    /// Storage class. Supported classes are standard storage (`STANDARD`), cold storage (`COLD`, `STANDARD_IA`, `NEARLINE`
    /// all synonyms), and ice storage (`ice` and `GLACIER` are synonyms).
    /// For details, see \[documentation\](/docs/storage/concepts/storage-class).
    #[prost(string, tag = "1")]
    pub storage_class: ::prost::alloc::string::String,
    /// Object-related statistics for the storage class by type of upload.
    #[prost(message, optional, tag = "2")]
    pub counters: ::core::option::Option<Counters>,
}
/// A bucket statistics resource.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct BucketStats {
    /// Name of the bucket.
    #[prost(string, tag = "1")]
    pub name: ::prost::alloc::string::String,
    /// Maximum size of the bucket, in bytes.
    #[prost(message, optional, tag = "2")]
    pub max_size: ::core::option::Option<i64>,
    /// Size of used space in the bucket, in bytes.
    #[prost(int64, tag = "3")]
    pub used_size: i64,
    /// Size of available space in the bucket by storage class, in bytes.
    #[prost(message, repeated, tag = "4")]
    pub storage_class_max_sizes: ::prost::alloc::vec::Vec<OptionalSizeByClass>,
    /// Size of used space in the bucket by storage class, in bytes.
    #[prost(message, repeated, tag = "5")]
    pub storage_class_used_sizes: ::prost::alloc::vec::Vec<SizeByClass>,
    /// Object-related statistics by storage class and type of upload (simple vs. multipart), in bytes.
    #[prost(message, repeated, tag = "6")]
    pub storage_class_counters: ::prost::alloc::vec::Vec<CountersByClass>,
    /// Default storage class for objects in the bucket. Supported classes are standard storage (`STANDARD`), cold storage
    /// (`COLD`, `STANDARD_IA`, `NEARLINE` all synonyms), and ice storage (`ICE` and `GLACIER` are synonyms).
    /// For details, see \[documentation\](/docs/storage/concepts/storage-class).
    #[prost(message, optional, tag = "7")]
    pub default_storage_class: ::core::option::Option<::prost::alloc::string::String>,
    /// Flags for configuring public (anonymous) access to the bucket's content and settings.
    /// For details, see \[documentation\](/docs/storage/concepts/bucket#bucket-access).
    #[prost(message, optional, tag = "8")]
    pub anonymous_access_flags: ::core::option::Option<AnonymousAccessFlags>,
    /// Bucket creation timestamp.
    #[prost(message, optional, tag = "9")]
    pub created_at: ::core::option::Option<::prost_types::Timestamp>,
    /// Bucket latest update timestamp.
    #[prost(message, optional, tag = "10")]
    pub updated_at: ::core::option::Option<::prost_types::Timestamp>,
}
/// A resource for HTTPS configuration of a bucket.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct HttpsConfig {
    /// Name of the bucket.
    #[prost(string, tag = "1")]
    pub name: ::prost::alloc::string::String,
    /// Type of TLS certificate source.
    #[prost(enumeration = "https_config::SourceType", tag = "2")]
    pub source_type: i32,
    /// Issuer of the TLS certificate.
    #[prost(message, optional, tag = "3")]
    pub issuer: ::core::option::Option<::prost::alloc::string::String>,
    /// Subject of the TLS certificate.
    #[prost(message, optional, tag = "4")]
    pub subject: ::core::option::Option<::prost::alloc::string::String>,
    /// List of DNS names of the TLS certificate (Subject Alternative Name field).
    #[prost(string, repeated, tag = "5")]
    pub dns_names: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
    /// Start of the TLS certificate validity period (Not Before field).
    #[prost(message, optional, tag = "6")]
    pub not_before: ::core::option::Option<::prost_types::Timestamp>,
    /// End of the TLS certificate validity period (Not After field)
    #[prost(message, optional, tag = "7")]
    pub not_after: ::core::option::Option<::prost_types::Timestamp>,
    /// ID of the TLS certificate in Certificate Manager.
    ///
    /// To get information about the certificate from Certificate Manager, make a
    /// \[yandex.cloud.certificatemanager.v1.CertificateService.Get\] request.
    #[prost(string, tag = "8")]
    pub certificate_id: ::prost::alloc::string::String,
}
/// Nested message and enum types in `HTTPSConfig`.
pub mod https_config {
    /// A resource for type of TLS certificate source.
    #[derive(
        Clone,
        Copy,
        Debug,
        PartialEq,
        Eq,
        Hash,
        PartialOrd,
        Ord,
        ::prost::Enumeration
    )]
    #[repr(i32)]
    pub enum SourceType {
        Unspecified = 0,
        /// Your certificate, uploaded directly.
        SelfManaged = 1,
        /// Certificate managed by Certificate Manager.
        ManagedByCertificateManager = 2,
    }
    impl SourceType {
        /// 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 {
                SourceType::Unspecified => "SOURCE_TYPE_UNSPECIFIED",
                SourceType::SelfManaged => "SOURCE_TYPE_SELF_MANAGED",
                SourceType::ManagedByCertificateManager => {
                    "SOURCE_TYPE_MANAGED_BY_CERTIFICATE_MANAGER"
                }
            }
        }
        /// Creates an enum from field names used in the ProtoBuf definition.
        pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
            match value {
                "SOURCE_TYPE_UNSPECIFIED" => Some(Self::Unspecified),
                "SOURCE_TYPE_SELF_MANAGED" => Some(Self::SelfManaged),
                "SOURCE_TYPE_MANAGED_BY_CERTIFICATE_MANAGER" => {
                    Some(Self::ManagedByCertificateManager)
                }
                _ => None,
            }
        }
    }
}
/// A resource for Object Lock configuration of a bucket.
/// For details about the concept, see \[documentation\](/docs/storage/concepts/object-lock).
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ObjectLock {
    #[prost(enumeration = "object_lock::ObjectLockStatus", tag = "2")]
    pub status: i32,
    #[prost(message, optional, tag = "3")]
    pub default_retention: ::core::option::Option<object_lock::DefaultRetention>,
}
/// Nested message and enum types in `ObjectLock`.
pub mod object_lock {
    /// Default lock configuration for added objects
    #[allow(clippy::derive_partial_eq_without_eq)]
    #[derive(Clone, PartialEq, ::prost::Message)]
    pub struct DefaultRetention {
        #[prost(enumeration = "default_retention::Mode", tag = "1")]
        pub mode: i32,
        #[prost(oneof = "default_retention::Period", tags = "2, 3")]
        pub period: ::core::option::Option<default_retention::Period>,
    }
    /// Nested message and enum types in `DefaultRetention`.
    pub mod default_retention {
        /// Lock type
        #[derive(
            Clone,
            Copy,
            Debug,
            PartialEq,
            Eq,
            Hash,
            PartialOrd,
            Ord,
            ::prost::Enumeration
        )]
        #[repr(i32)]
        pub enum Mode {
            Unspecified = 0,
            Governance = 1,
            Compliance = 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::Governance => "MODE_GOVERNANCE",
                    Mode::Compliance => "MODE_COMPLIANCE",
                }
            }
            /// 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),
                    "MODE_GOVERNANCE" => Some(Self::Governance),
                    "MODE_COMPLIANCE" => Some(Self::Compliance),
                    _ => None,
                }
            }
        }
        #[allow(clippy::derive_partial_eq_without_eq)]
        #[derive(Clone, PartialEq, ::prost::Oneof)]
        pub enum Period {
            /// Number of days for locking
            #[prost(int64, tag = "2")]
            Days(i64),
            /// Number of years for locking
            #[prost(int64, tag = "3")]
            Years(i64),
        }
    }
    /// Activity status of the object lock settings on the bucket
    #[derive(
        Clone,
        Copy,
        Debug,
        PartialEq,
        Eq,
        Hash,
        PartialOrd,
        Ord,
        ::prost::Enumeration
    )]
    #[repr(i32)]
    pub enum ObjectLockStatus {
        Unspecified = 0,
        Disabled = 1,
        Enabled = 2,
    }
    impl ObjectLockStatus {
        /// 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 {
                ObjectLockStatus::Unspecified => "OBJECT_LOCK_STATUS_UNSPECIFIED",
                ObjectLockStatus::Disabled => "OBJECT_LOCK_STATUS_DISABLED",
                ObjectLockStatus::Enabled => "OBJECT_LOCK_STATUS_ENABLED",
            }
        }
        /// Creates an enum from field names used in the ProtoBuf definition.
        pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
            match value {
                "OBJECT_LOCK_STATUS_UNSPECIFIED" => Some(Self::Unspecified),
                "OBJECT_LOCK_STATUS_DISABLED" => Some(Self::Disabled),
                "OBJECT_LOCK_STATUS_ENABLED" => Some(Self::Enabled),
                _ => None,
            }
        }
    }
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Encryption {
    #[prost(message, repeated, tag = "1")]
    pub rules: ::prost::alloc::vec::Vec<encryption::EncryptionRule>,
}
/// Nested message and enum types in `Encryption`.
pub mod encryption {
    #[allow(clippy::derive_partial_eq_without_eq)]
    #[derive(Clone, PartialEq, ::prost::Message)]
    pub struct EncryptionRule {
        #[prost(string, tag = "1")]
        pub kms_master_key_id: ::prost::alloc::string::String,
        #[prost(string, tag = "2")]
        pub sse_algorithm: ::prost::alloc::string::String,
    }
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct BucketAllowedPrivateEndpoints {
    /// if true, private endpoints white list check is enabled
    /// even if private_endpoints list is empty
    #[prost(bool, tag = "1")]
    pub enabled: bool,
    /// white list of private endpoints bucket accessible from
    #[prost(string, repeated, tag = "2")]
    pub private_endpoints: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
}
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
#[repr(i32)]
pub enum Versioning {
    Unspecified = 0,
    /// The bucket is unversioned, i.e. versioning has never been enabled for the bucket, including at its creation.
    /// Objects that are stored in the bucket have a version ID of `null`.
    ///
    /// To enable versioning, change status to `VERSIONING_ENABLED` via a \[BucketService.Update\] request. Note that this
    /// action is irreversible, and a bucket with versioning enabled can never return to `VERSIONING_DISABLED` state.
    Disabled = 1,
    /// Bucket versioning is enabled, i.e. all new objects are versioned and given a unique version ID, and objects that
    /// already existed at the time versioning was enabled will be versioned and given a unique version ID when modified
    /// by future requests.
    ///
    /// To suspend versioning, change status to `VERSIONING_SUSPENDED` via a \[BucketService.Update\] request. You cannot
    /// disable versioning altogether for a bucket that already had it enabled; objects that had version IDs will keep
    /// them.
    Enabled = 2,
    /// Bucket versioning is suspended, i.e. new objects are not versioned, but objects that already existed at the time
    /// versioning was suspended are still versioned and keep their version IDs.
    ///
    /// To resume versioning, change status to `VERSIONING_ENABLED` via a \[BucketService.Update\] request.
    Suspended = 3,
}
impl Versioning {
    /// 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 {
            Versioning::Unspecified => "VERSIONING_UNSPECIFIED",
            Versioning::Disabled => "VERSIONING_DISABLED",
            Versioning::Enabled => "VERSIONING_ENABLED",
            Versioning::Suspended => "VERSIONING_SUSPENDED",
        }
    }
    /// Creates an enum from field names used in the ProtoBuf definition.
    pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
        match value {
            "VERSIONING_UNSPECIFIED" => Some(Self::Unspecified),
            "VERSIONING_DISABLED" => Some(Self::Disabled),
            "VERSIONING_ENABLED" => Some(Self::Enabled),
            "VERSIONING_SUSPENDED" => Some(Self::Suspended),
            _ => None,
        }
    }
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetBucketRequest {
    /// Name of the bucket to return.
    ///
    /// To get the bucket name, make a \[BucketService.List\] request.
    #[prost(string, tag = "1")]
    pub name: ::prost::alloc::string::String,
    /// Scope of information about the bucket to return.
    ///
    /// Access to scopes is managed via [Identity and Access Management roles](/docs/storage/security),
    /// bucket \[ACL\](/docs/storage/concepts/acl) and \[policies\](/docs/storage/concepts/policy).
    #[prost(enumeration = "get_bucket_request::View", tag = "2")]
    pub view: i32,
}
/// Nested message and enum types in `GetBucketRequest`.
pub mod get_bucket_request {
    #[derive(
        Clone,
        Copy,
        Debug,
        PartialEq,
        Eq,
        Hash,
        PartialOrd,
        Ord,
        ::prost::Enumeration
    )]
    #[repr(i32)]
    pub enum View {
        Unspecified = 0,
        /// Returns basic information about a bucket.
        ///
        /// The following fields will _not_ be returned: \[Bucket.acl\], \[Bucket.cors\], \[Bucket.website_settings\],
        /// \[Bucket.lifecycle_rules\], \[Bucket.tags\].
        Basic = 1,
        /// Returns basic information and access control list (ACL) for the bucket.
        ///
        /// The following fields will _not_ be returned: \[Bucket.cors\], \[Bucket.website_settings\], \[Bucket.lifecycle_rules\],
        /// \[Bucket.tags\].
        Acl = 2,
        /// Returns full information about a bucket.
        Full = 3,
    }
    impl View {
        /// 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 {
                View::Unspecified => "VIEW_UNSPECIFIED",
                View::Basic => "VIEW_BASIC",
                View::Acl => "VIEW_ACL",
                View::Full => "VIEW_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 {
                "VIEW_UNSPECIFIED" => Some(Self::Unspecified),
                "VIEW_BASIC" => Some(Self::Basic),
                "VIEW_ACL" => Some(Self::Acl),
                "VIEW_FULL" => Some(Self::Full),
                _ => None,
            }
        }
    }
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListBucketsRequest {
    /// ID of the folder to list buckets in.
    ///
    /// To get the folder ID, make a \[yandex.cloud.resourcemanager.v1.FolderService.List\] request.
    #[prost(string, tag = "1")]
    pub folder_id: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListBucketsResponse {
    /// List of buckets in the specified folder.
    #[prost(message, repeated, tag = "1")]
    pub buckets: ::prost::alloc::vec::Vec<Bucket>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CreateBucketRequest {
    /// Name of the bucket.
    ///
    /// The name must be unique within the platform. For naming limitations and rules, see
    /// \[documentation\](/docs/storage/concepts/bucket#naming).
    #[prost(string, tag = "1")]
    pub name: ::prost::alloc::string::String,
    /// ID of the folder to create a bucket in.
    ///
    /// To get the folder ID, make a \[yandex.cloud.resourcemanager.v1.FolderService.List\] request.
    #[prost(string, tag = "2")]
    pub folder_id: ::prost::alloc::string::String,
    /// Default storage class for objects in the bucket. Supported classes are standard storage (`STANDARD`), cold storage
    /// (`COLD`, `STANDARD_IA`, `NEARLINE` all synonyms), and ice storage (`ICE` and `GLACIER` are synonyms).
    /// For details, see \[documentation\](/docs/storage/concepts/storage-class).
    #[prost(string, tag = "4")]
    pub default_storage_class: ::prost::alloc::string::String,
    /// Maximum size of the bucket.
    /// For details, see \[documentation\](/docs/storage/operations/buckets/limit-max-volume).
    #[prost(int64, tag = "5")]
    pub max_size: i64,
    /// Flags for configuring public (anonymous) access to the bucket's content and settings.
    /// For details, see \[documentation\](/docs/storage/concepts/bucket#bucket-access).
    #[prost(message, optional, tag = "6")]
    pub anonymous_access_flags: ::core::option::Option<AnonymousAccessFlags>,
    /// Access control list (ACL) of the bucket.
    /// For details, see \[documentation\](/docs/storage/concepts/acl).
    #[prost(message, optional, tag = "7")]
    pub acl: ::core::option::Option<Acl>,
    /// List of tags for the bucket.
    /// For details, see \[documentation\](/docs/resource-manager/concepts/labels).
    #[prost(message, repeated, tag = "8")]
    pub tags: ::prost::alloc::vec::Vec<Tag>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CreateBucketMetadata {
    /// Name of the bucket that is being created.
    #[prost(string, tag = "1")]
    pub name: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct UpdateBucketRequest {
    /// Name of the bucket to update.
    ///
    /// The name cannot be updated.
    ///
    /// To get the bucket name, make a \[BucketService.List\] request.
    #[prost(string, tag = "1")]
    pub name: ::prost::alloc::string::String,
    /// Update mask that specifies which attributes of the bucket should be updated.
    /// Use * for full update.
    #[prost(message, optional, tag = "2")]
    pub update_mask: ::core::option::Option<::prost_types::FieldMask>,
    /// Flags for configuring public (anonymous) access to the bucket's content and settings.
    /// For details, see \[documentation\](/docs/storage/concepts/bucket#bucket-access).
    #[prost(message, optional, tag = "3")]
    pub anonymous_access_flags: ::core::option::Option<AnonymousAccessFlags>,
    /// Default storage class for objects in the bucket. Supported classes are standard storage (`STANDARD`), cold storage
    /// (`COLD`, `STANDARD_IA`, `NEARLINE` all synonyms), and ice storage (`ICE` and `GLACIER` are synonyms).
    /// For details, see \[documentation\](/docs/storage/concepts/storage-class).
    #[prost(string, tag = "4")]
    pub default_storage_class: ::prost::alloc::string::String,
    /// Maximum size of the bucket, in bytes.
    /// For details, see \[documentation\](/docs/storage/operations/buckets/limit-max-volume).
    #[prost(int64, tag = "5")]
    pub max_size: i64,
    /// List of rules for cross-domain requests to objects in the bucket (cross-origin resource sharing, CORS).
    /// For details, see \[documentation\](/docs/storage/concepts/cors).
    #[prost(message, repeated, tag = "6")]
    pub cors: ::prost::alloc::vec::Vec<CorsRule>,
    /// Configuration for hosting a static website in the bucket.
    /// For details, see \[documentation\](/docs/storage/concepts/hosting).
    #[prost(message, optional, tag = "7")]
    pub website_settings: ::core::option::Option<WebsiteSettings>,
    /// Bucket versioning status.
    /// For details, see \[documentation\](/docs/storage/concepts/versioning).
    #[prost(enumeration = "Versioning", tag = "8")]
    pub versioning: i32,
    /// List of object lifecycle rules for the bucket.
    /// For details, see \[documentation\](/docs/storage/concepts/lifecycles).
    #[prost(message, repeated, tag = "9")]
    pub lifecycle_rules: ::prost::alloc::vec::Vec<LifecycleRule>,
    /// Bucket policies that set permissions for actions with the bucket, its objects, and groups of objects.
    /// For details, see \[documentation\](/docs/storage/concepts/policy).
    #[prost(message, optional, tag = "10")]
    pub policy: ::core::option::Option<::prost_types::Struct>,
    /// Access control list (ACL) of the bucket.
    /// For details, see \[documentation\](/docs/storage/concepts/acl).
    #[prost(message, optional, tag = "11")]
    pub acl: ::core::option::Option<Acl>,
    /// List of tags for the bucket.
    /// For details, see \[documentation\](/docs/resource-manager/concepts/labels).
    #[prost(message, repeated, tag = "12")]
    pub tags: ::prost::alloc::vec::Vec<Tag>,
    /// Configuration for object lock on the bucket.
    /// For details about the concept, see \[documentation\](/docs/storage/concepts/object-lock).
    #[prost(message, optional, tag = "13")]
    pub object_lock: ::core::option::Option<ObjectLock>,
    /// Configuration for bucket's encryption
    /// For detauls, see \[documentation\](/docs/storage/concepts/encryption)
    #[prost(message, optional, tag = "14")]
    pub encryption: ::core::option::Option<Encryption>,
    /// requires permission s3:PutBucketAllowedPrivateEndpoints
    #[prost(message, optional, tag = "15")]
    pub allowed_private_endpoints: ::core::option::Option<BucketAllowedPrivateEndpoints>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct UpdateBucketMetadata {
    /// Name of the bucket that is being updated.
    #[prost(string, tag = "1")]
    pub name: ::prost::alloc::string::String,
}
/// DeleteBucketRequest deletes requested bucket from the Cloud.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DeleteBucketRequest {
    /// Name of the bucket to update.
    ///
    /// To get the bucket name, make a \[BucketService.List\] request.
    #[prost(string, tag = "1")]
    pub name: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DeleteBucketMetadata {
    /// Name of the bucket that is being deleted.
    #[prost(string, tag = "1")]
    pub name: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetBucketStatsRequest {
    /// Name of the bucket to return the statistics for.
    #[prost(string, tag = "1")]
    pub name: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetBucketHttpsConfigRequest {
    /// Name of the bucket to return the HTTPS configuration for.
    #[prost(string, tag = "1")]
    pub name: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SelfManagedHttpsConfigParams {
    /// \[PEM\](<https://en.wikipedia.org/wiki/Privacy-Enhanced_Mail>)-encoded certificate.
    #[prost(string, tag = "1")]
    pub certificate_pem: ::prost::alloc::string::String,
    /// \[PEM\](<https://en.wikipedia.org/wiki/Privacy-Enhanced_Mail>)-encoded private key for the certificate.
    #[prost(string, tag = "2")]
    pub private_key_pem: ::prost::alloc::string::String,
}
/// A resource for a TLS certificate from Certificate Manager.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CertificateManagerHttpsConfigParams {
    /// ID of the certificate.
    ///
    /// To get the list of all available certificates, make a \[yandex.cloud.certificatemanager.v1.CertificateService.List\]
    /// request.
    #[prost(string, tag = "1")]
    pub certificate_id: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SetBucketHttpsConfigRequest {
    /// Name of the bucket to update the HTTPS configuration for.
    #[prost(string, tag = "1")]
    pub name: ::prost::alloc::string::String,
    /// HTTPS configuration parameters.
    #[prost(oneof = "set_bucket_https_config_request::Params", tags = "2, 3")]
    pub params: ::core::option::Option<set_bucket_https_config_request::Params>,
}
/// Nested message and enum types in `SetBucketHTTPSConfigRequest`.
pub mod set_bucket_https_config_request {
    /// HTTPS configuration parameters.
    #[allow(clippy::derive_partial_eq_without_eq)]
    #[derive(Clone, PartialEq, ::prost::Oneof)]
    pub enum Params {
        /// Your TLS certificate, uploaded directly.
        ///
        /// Object Storage only supports \[PEM\](<https://en.wikipedia.org/wiki/Privacy-Enhanced_Mail>)-encoded certificates.
        #[prost(message, tag = "2")]
        SelfManaged(super::SelfManagedHttpsConfigParams),
        /// TLS certificate from Certificate Manager.
        ///
        /// To create a certificate in Certificate Manager, make a
        /// \[yandex.cloud.certificatemanager.v1.CertificateService.Create\] request.
        #[prost(message, tag = "3")]
        CertificateManager(super::CertificateManagerHttpsConfigParams),
    }
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SetBucketHttpsConfigMetadata {
    /// Name of the bucket the HTTPS configuration is being updated for.
    #[prost(string, tag = "1")]
    pub name: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DeleteBucketHttpsConfigRequest {
    /// Name of the bucket to delete the HTTPS configuration for.
    #[prost(string, tag = "1")]
    pub name: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DeleteBucketHttpsConfigMetadata {
    /// Name of the bucket the HTTPS configuration is being deleted for.
    #[prost(string, tag = "1")]
    pub name: ::prost::alloc::string::String,
}
/// Generated client implementations.
pub mod bucket_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 buckets.
    #[derive(Debug, Clone)]
    pub struct BucketServiceClient<T> {
        inner: tonic::client::Grpc<T>,
    }
    impl BucketServiceClient<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> BucketServiceClient<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,
        ) -> BucketServiceClient<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,
        {
            BucketServiceClient::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
        }
        /// Retrieves the list of buckets in the specified folder.
        ///
        /// The following fields will not be returned for buckets in the list: [Bucket.policy], [Bucket.acl], [Bucket.cors],
        /// [Bucket.website_settings], [Bucket.lifecycle_rules], [Bucket.tags].
        pub async fn list(
            &mut self,
            request: impl tonic::IntoRequest<super::ListBucketsRequest>,
        ) -> std::result::Result<
            tonic::Response<super::ListBucketsResponse>,
            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.storage.v1.BucketService/List",
            );
            let mut req = request.into_request();
            req.extensions_mut()
                .insert(
                    GrpcMethod::new("yandex.cloud.storage.v1.BucketService", "List"),
                );
            self.inner.unary(req, path, codec).await
        }
        /// Returns the specified bucket.
        ///
        /// To get the list of all available buckets, make a [List] request.
        pub async fn get(
            &mut self,
            request: impl tonic::IntoRequest<super::GetBucketRequest>,
        ) -> std::result::Result<tonic::Response<super::Bucket>, 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.storage.v1.BucketService/Get",
            );
            let mut req = request.into_request();
            req.extensions_mut()
                .insert(GrpcMethod::new("yandex.cloud.storage.v1.BucketService", "Get"));
            self.inner.unary(req, path, codec).await
        }
        /// Creates a bucket in the specified folder.
        pub async fn create(
            &mut self,
            request: impl tonic::IntoRequest<super::CreateBucketRequest>,
        ) -> std::result::Result<
            tonic::Response<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.storage.v1.BucketService/Create",
            );
            let mut req = request.into_request();
            req.extensions_mut()
                .insert(
                    GrpcMethod::new("yandex.cloud.storage.v1.BucketService", "Create"),
                );
            self.inner.unary(req, path, codec).await
        }
        /// Updates the specified bucket.
        ///
        /// In most cases, `storage.editor` role (see [documentation](/docs/storage/security/#storage-editor)) should be enough
        /// to update a bucket, subject to its [policy](/docs/storage/concepts/policy).
        pub async fn update(
            &mut self,
            request: impl tonic::IntoRequest<super::UpdateBucketRequest>,
        ) -> std::result::Result<
            tonic::Response<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.storage.v1.BucketService/Update",
            );
            let mut req = request.into_request();
            req.extensions_mut()
                .insert(
                    GrpcMethod::new("yandex.cloud.storage.v1.BucketService", "Update"),
                );
            self.inner.unary(req, path, codec).await
        }
        /// Deletes the specified bucket.
        pub async fn delete(
            &mut self,
            request: impl tonic::IntoRequest<super::DeleteBucketRequest>,
        ) -> std::result::Result<
            tonic::Response<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.storage.v1.BucketService/Delete",
            );
            let mut req = request.into_request();
            req.extensions_mut()
                .insert(
                    GrpcMethod::new("yandex.cloud.storage.v1.BucketService", "Delete"),
                );
            self.inner.unary(req, path, codec).await
        }
        /// Returns the statistics for the specified bucket.
        pub async fn get_stats(
            &mut self,
            request: impl tonic::IntoRequest<super::GetBucketStatsRequest>,
        ) -> std::result::Result<tonic::Response<super::BucketStats>, 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.storage.v1.BucketService/GetStats",
            );
            let mut req = request.into_request();
            req.extensions_mut()
                .insert(
                    GrpcMethod::new("yandex.cloud.storage.v1.BucketService", "GetStats"),
                );
            self.inner.unary(req, path, codec).await
        }
        /// Returns the HTTPS configuration for the specified bucket.
        pub async fn get_https_config(
            &mut self,
            request: impl tonic::IntoRequest<super::GetBucketHttpsConfigRequest>,
        ) -> std::result::Result<tonic::Response<super::HttpsConfig>, 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.storage.v1.BucketService/GetHTTPSConfig",
            );
            let mut req = request.into_request();
            req.extensions_mut()
                .insert(
                    GrpcMethod::new(
                        "yandex.cloud.storage.v1.BucketService",
                        "GetHTTPSConfig",
                    ),
                );
            self.inner.unary(req, path, codec).await
        }
        /// Updates the HTTPS configuration for the specified bucket.
        ///
        /// The updated configuration could take up to 30 minutes to apply to the bucket.
        pub async fn set_https_config(
            &mut self,
            request: impl tonic::IntoRequest<super::SetBucketHttpsConfigRequest>,
        ) -> std::result::Result<
            tonic::Response<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.storage.v1.BucketService/SetHTTPSConfig",
            );
            let mut req = request.into_request();
            req.extensions_mut()
                .insert(
                    GrpcMethod::new(
                        "yandex.cloud.storage.v1.BucketService",
                        "SetHTTPSConfig",
                    ),
                );
            self.inner.unary(req, path, codec).await
        }
        /// Deletes the HTTPS configuration for the specified bucket.
        pub async fn delete_https_config(
            &mut self,
            request: impl tonic::IntoRequest<super::DeleteBucketHttpsConfigRequest>,
        ) -> std::result::Result<
            tonic::Response<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.storage.v1.BucketService/DeleteHTTPSConfig",
            );
            let mut req = request.into_request();
            req.extensions_mut()
                .insert(
                    GrpcMethod::new(
                        "yandex.cloud.storage.v1.BucketService",
                        "DeleteHTTPSConfig",
                    ),
                );
            self.inner.unary(req, path, codec).await
        }
    }
}
/// Represents a response of the get object request to S3.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct S3apiGetObjectResponse {
    /// MD5 hash of the object.
    #[prost(string, tag = "1")]
    pub etag: ::prost::alloc::string::String,
    /// Unique request ID.
    #[prost(string, tag = "2")]
    pub request_id: ::prost::alloc::string::String,
    /// Indicates that a range of bytes was specified in the request.
    #[prost(string, tag = "3")]
    pub accept_ranges: ::prost::alloc::string::String,
    /// Specifies caching behavior along the request/reply chain.
    #[prost(string, tag = "4")]
    pub cache_control: ::prost::alloc::string::String,
    /// Specifies presentational information for the object.
    #[prost(string, tag = "5")]
    pub content_disposition: ::prost::alloc::string::String,
    /// Indicates what content encodings have been applied to the object.
    #[prost(string, tag = "6")]
    pub content_encoding: ::prost::alloc::string::String,
    /// The language the content is in.
    #[prost(string, tag = "7")]
    pub content_language: ::prost::alloc::string::String,
    /// Size of the body in bytes.
    #[prost(int64, tag = "8")]
    pub content_length: i64,
    /// The portion of the object returned in the response.
    #[prost(string, tag = "9")]
    pub content_range: ::prost::alloc::string::String,
    /// A standard MIME type describing the format of the object data.
    #[prost(string, tag = "10")]
    pub content_type: ::prost::alloc::string::String,
    /// Version ID of the object.
    #[prost(string, tag = "11")]
    pub version_id: ::prost::alloc::string::String,
    /// The date and time at which the object is no longer cacheable.
    #[prost(message, optional, tag = "12")]
    pub expires_at: ::core::option::Option<::prost_types::Timestamp>,
    /// Date and time when the object was last modified.
    #[prost(message, optional, tag = "13")]
    pub last_modified_at: ::core::option::Option<::prost_types::Timestamp>,
    /// Object user-defined metadata.
    #[prost(map = "string, string", tag = "14")]
    pub metadata: ::std::collections::HashMap<
        ::prost::alloc::string::String,
        ::prost::alloc::string::String,
    >,
    /// Provides storage class information of the object.
    #[prost(string, tag = "15")]
    pub storage_class: ::prost::alloc::string::String,
    /// Encryption algorithm used to encrypt the object.
    #[prost(string, tag = "16")]
    pub server_side_encryption: ::prost::alloc::string::String,
    /// ID of the key KMS.
    #[prost(string, tag = "17")]
    pub sse_kms_key_id: ::prost::alloc::string::String,
    /// Type of retention put on the object.
    #[prost(string, tag = "18")]
    pub object_lock_mode: ::prost::alloc::string::String,
    /// Date and time until which the object is retained
    #[prost(message, optional, tag = "19")]
    pub object_lock_retain_until_date: ::core::option::Option<::prost_types::Timestamp>,
    /// Type of legal hold put on the object
    #[prost(string, tag = "20")]
    pub object_lock_legal_hold_status: ::prost::alloc::string::String,
}
/// Represents a response of the put object request to S3.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct S3apiPutObjectResponse {
    /// MD5 hash of the object.
    #[prost(string, tag = "1")]
    pub etag: ::prost::alloc::string::String,
    /// Unique request ID.
    #[prost(string, tag = "2")]
    pub request_id: ::prost::alloc::string::String,
    /// Version ID of the object.
    #[prost(string, tag = "3")]
    pub version_id: ::prost::alloc::string::String,
}
/// Represents a response of the delete object request to S3.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct S3apiDeleteObjectResponse {
    /// Unique request ID.
    #[prost(string, tag = "1")]
    pub request_id: ::prost::alloc::string::String,
    /// Version ID of the object.
    #[prost(string, tag = "2")]
    pub version_id: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CopyObjectResult {
    /// Returns the ETag of the new object.
    #[prost(string, tag = "1")]
    pub etag: ::prost::alloc::string::String,
    /// Creation date of the object.
    #[prost(message, optional, tag = "2")]
    pub last_modified_at: ::core::option::Option<::prost_types::Timestamp>,
}
/// Represents a response of the copy object request to S3.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct S3apiCopyObjectResponse {
    /// Container for all response elements.
    #[prost(message, optional, tag = "1")]
    pub copy_object_result: ::core::option::Option<CopyObjectResult>,
    /// Unique request ID.
    #[prost(string, tag = "2")]
    pub request_id: ::prost::alloc::string::String,
    /// Version ID of the source object that was copied.
    #[prost(string, tag = "3")]
    pub copy_source_version_id: ::prost::alloc::string::String,
    /// Version ID of the newly created copy.
    #[prost(string, tag = "4")]
    pub version_id: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SuccessfullyDeletedObject {
    /// The name of the deleted object.
    #[prost(string, tag = "1")]
    pub key: ::prost::alloc::string::String,
    /// The version ID of the deleted object.
    #[prost(string, tag = "2")]
    pub version_id: ::prost::alloc::string::String,
    /// Specifies whether the versioned object that was permanently deleted was (true) or was not (false) a delete marker.
    #[prost(bool, tag = "3")]
    pub delete_marker: bool,
    /// The version ID of the delete marker created as a result of the DELETE operation.
    #[prost(string, tag = "4")]
    pub delete_marker_version_id: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DeleteObjectError {
    /// The error key.
    #[prost(string, tag = "1")]
    pub key: ::prost::alloc::string::String,
    /// The version ID of the error.
    #[prost(string, tag = "2")]
    pub version_id: ::prost::alloc::string::String,
    /// The error code is a string that uniquely identifies an error condition.
    #[prost(string, tag = "3")]
    pub code: ::prost::alloc::string::String,
    /// The error message contains a generic description of the error condition in English.
    #[prost(string, tag = "4")]
    pub msg: ::prost::alloc::string::String,
}
/// Represents a response of the delete objects request to S3.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct S3apiDeleteObjectsResponse {
    /// List of successfully deleted objects
    #[prost(message, repeated, tag = "1")]
    pub deleted: ::prost::alloc::vec::Vec<SuccessfullyDeletedObject>,
    /// List of objects that attempted to be deleted but encountered an error
    #[prost(message, repeated, tag = "2")]
    pub errors: ::prost::alloc::vec::Vec<DeleteObjectError>,
    /// Unique request ID.
    #[prost(string, tag = "3")]
    pub request_id: ::prost::alloc::string::String,
}
/// Represents a response of the put object retention request to S3.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct S3apiPutObjectRetentionResponse {
    /// Unique request ID.
    #[prost(string, tag = "1")]
    pub request_id: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ObjectLockRetention {
    /// Indicates the Retention mode for the specified object.
    #[prost(string, tag = "1")]
    pub mode: ::prost::alloc::string::String,
    /// The date on which this object lock retention will expire.
    #[prost(message, optional, tag = "2")]
    pub retain_until_date: ::core::option::Option<::prost_types::Timestamp>,
}
/// Represents a response of the get object retention request to S3.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct S3apiGetObjectRetentionResponse {
    /// Unique request ID.
    #[prost(string, tag = "1")]
    pub request_id: ::prost::alloc::string::String,
    /// An object retention settings.
    #[prost(message, optional, tag = "2")]
    pub retention: ::core::option::Option<ObjectLockRetention>,
}
/// Represents a response of the put object retention request to S3.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct S3apiPutObjectLegalHoldResponse {
    /// Unique request ID.
    #[prost(string, tag = "1")]
    pub request_id: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ObjectLockLegalHold {
    /// Indicates whether the specified object has a legal hold in place.
    #[prost(string, tag = "1")]
    pub status: ::prost::alloc::string::String,
}
/// Represents a response of the get object legal hold request to S3.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct S3apiGetObjectLegalHoldResponse {
    /// Unique request ID.
    #[prost(string, tag = "1")]
    pub request_id: ::prost::alloc::string::String,
    /// The current legal hold status for the specified object.
    #[prost(message, optional, tag = "2")]
    pub legal_hold: ::core::option::Option<ObjectLockLegalHold>,
}
/// Represents a response of put object tagging request to S3.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct S3apiPutObjectTaggingResponse {
    /// Unique request ID.
    #[prost(string, tag = "1")]
    pub request_id: ::prost::alloc::string::String,
    /// The versionId of the object the tag-set was added to.
    #[prost(string, tag = "2")]
    pub version_id: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ObjectTag {
    /// Key of the object tag.
    #[prost(string, tag = "1")]
    pub key: ::prost::alloc::string::String,
    /// Value of the object tag.
    #[prost(string, tag = "2")]
    pub value: ::prost::alloc::string::String,
}
/// Represents a response of get object tagging request to S3.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct S3apiGetObjectTaggingResponse {
    /// Unique request ID.
    #[prost(string, tag = "1")]
    pub request_id: ::prost::alloc::string::String,
    /// The versionId of the object for which you got the tagging information.
    #[prost(string, tag = "2")]
    pub version_id: ::prost::alloc::string::String,
    /// Contains the tag set.
    #[prost(message, repeated, tag = "3")]
    pub tag_set: ::prost::alloc::vec::Vec<ObjectTag>,
}
/// Represents a response of delete object tagging request to S3.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct S3apiDeleteObjectTaggingResponse {
    /// Unique request ID.
    #[prost(string, tag = "1")]
    pub request_id: ::prost::alloc::string::String,
    /// The versionId of the object the tag-set was removed from.
    #[prost(string, tag = "2")]
    pub version_id: ::prost::alloc::string::String,
}
/// Represents a response of start multipart upload request to S3.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct S3apiStartMultipartUploadResponse {
    /// Unique request ID.
    #[prost(string, tag = "1")]
    pub request_id: ::prost::alloc::string::String,
    /// The name of the bucket in which the initiated multipart upload was initiated.
    #[prost(string, tag = "2")]
    pub bucket: ::prost::alloc::string::String,
    /// Object key for which the multipart upload was initiated.
    #[prost(string, tag = "3")]
    pub key: ::prost::alloc::string::String,
    /// The ID of the initiated multipart upload.
    #[prost(string, tag = "4")]
    pub upload_id: ::prost::alloc::string::String,
}
/// Represents a response of upload part request to S3.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct S3apiUploadPartResponse {
    /// Unique request ID.
    #[prost(string, tag = "1")]
    pub request_id: ::prost::alloc::string::String,
    /// MD5 hash of the object.
    #[prost(string, tag = "2")]
    pub etag: ::prost::alloc::string::String,
}
/// Represents a response of list parts request to S3.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct S3apiListPartsResponse {
    /// The name of the bucket to which the multipart upload was initiated.
    #[prost(string, tag = "1")]
    pub bucket: ::prost::alloc::string::String,
    /// Object key for which the multipart upload was initiated.
    #[prost(string, tag = "2")]
    pub key: ::prost::alloc::string::String,
    /// Upload ID identifying the multipart upload whose parts are being listed.
    #[prost(string, tag = "3")]
    pub upload_id: ::prost::alloc::string::String,
    /// When a list is truncated, this element specifies the last part in the list, as
    /// well as the value to use for the part-number-marker request parameter in a
    /// subsequent request.
    #[prost(string, tag = "4")]
    pub part_number_marker: ::prost::alloc::string::String,
    /// When a list is truncated, this element specifies the last part in the list, as
    /// well as the value to use for the part-number-marker request parameter in a
    /// subsequent request.
    #[prost(string, tag = "5")]
    pub next_part_number_marker: ::prost::alloc::string::String,
    /// Maximum number of parts that were allowed in the response.
    #[prost(int64, tag = "6")]
    pub max_parts: i64,
    /// Indicates whether the returned list of parts is truncated.
    #[prost(bool, tag = "7")]
    pub is_truncated: bool,
    /// Container for elements related to a particular part.
    #[prost(message, repeated, tag = "8")]
    pub parts: ::prost::alloc::vec::Vec<S3apiPart>,
    /// Container element that identifies who initiated the multipart upload.
    #[prost(message, optional, tag = "9")]
    pub initiator: ::core::option::Option<S3apiOwner>,
    /// Container element that identifies who initiated the multipart upload.
    #[prost(message, optional, tag = "10")]
    pub owner: ::core::option::Option<S3apiOwner>,
    /// Class of storage used to store the uploaded object.
    #[prost(string, tag = "11")]
    pub storage_class: ::prost::alloc::string::String,
    /// Unique request ID.
    #[prost(string, tag = "12")]
    pub request_id: ::prost::alloc::string::String,
}
/// Container for elements related to a part.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct S3apiPart {
    /// Part number identifying the part. This is a positive integer between 1 and
    /// 10,000.
    #[prost(int64, tag = "1")]
    pub part_number: i64,
    /// Date and time at which the part was uploaded.
    #[prost(message, optional, tag = "2")]
    pub last_modified_at: ::core::option::Option<::prost_types::Timestamp>,
    /// Size in bytes of the uploaded part data.
    #[prost(int64, tag = "3")]
    pub size: i64,
    /// Entity tag returned when the part was uploaded.
    #[prost(string, tag = "4")]
    pub etag: ::prost::alloc::string::String,
}
/// Represents a response of abort multipart upload request to S3.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct S3apiAbortMultipartUploadResponse {
    /// Unique request ID.
    #[prost(string, tag = "1")]
    pub request_id: ::prost::alloc::string::String,
}
/// Represents a response of complete multipart upload request to S3.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct S3apiCompleteMultipartUploadResponse {
    /// Unique request ID.
    #[prost(string, tag = "1")]
    pub request_id: ::prost::alloc::string::String,
    /// The name of the bucket that contains the newly created object.
    #[prost(string, tag = "2")]
    pub bucket: ::prost::alloc::string::String,
    /// The object key of the newly created object.
    #[prost(string, tag = "3")]
    pub key: ::prost::alloc::string::String,
    /// Entity tag that identifies the newly created object's data.
    #[prost(string, tag = "4")]
    pub etag: ::prost::alloc::string::String,
    /// The URI that identifies the newly created object.
    #[prost(string, tag = "5")]
    pub location: ::prost::alloc::string::String,
    /// Version ID of the newly created object, in case the bucket has versioning
    /// turned on.
    #[prost(string, tag = "6")]
    pub version_id: ::prost::alloc::string::String,
}
/// Represents a response of list multipart uploads request to S3.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct S3apiListMultipartUploadsResponse {
    /// The name of the bucket to which the multipart upload was initiated.
    #[prost(string, tag = "1")]
    pub bucket: ::prost::alloc::string::String,
    /// The key at or after which the listing began.
    #[prost(string, tag = "2")]
    pub key_marker: ::prost::alloc::string::String,
    /// Upload ID after which listing began.
    #[prost(string, tag = "3")]
    pub upload_id_marker: ::prost::alloc::string::String,
    /// When a list is truncated, this element specifies the value that should be used
    /// for the key-marker request parameter in a subsequent request.
    #[prost(string, tag = "4")]
    pub next_key_marker: ::prost::alloc::string::String,
    /// When a list is truncated, this element specifies the value that should be used
    /// for the upload-id-marker request parameter in a subsequent request.
    #[prost(string, tag = "5")]
    pub next_upload_id_marker: ::prost::alloc::string::String,
    /// Contains the delimiter you specified in the request.
    #[prost(string, tag = "6")]
    pub delimiter: ::prost::alloc::string::String,
    /// When a prefix is provided in the request, this field contains the specified
    /// prefix.
    #[prost(string, tag = "7")]
    pub prefix: ::prost::alloc::string::String,
    /// Maximum number of multipart uploads that could have been included in the
    /// response.
    #[prost(int64, tag = "8")]
    pub max_uploads: i64,
    /// Indicates whether the returned list of multipart uploads is truncated.
    #[prost(bool, tag = "9")]
    pub is_truncated: bool,
    /// Container for elements related to a particular multipart upload.
    #[prost(message, repeated, tag = "10")]
    pub uploads: ::prost::alloc::vec::Vec<S3apiMultipartUpload>,
    /// If you specify a delimiter in the request, then the result returns each
    /// distinct key prefix containing the delimiter in a CommonPrefixes element.
    #[prost(string, repeated, tag = "11")]
    pub common_prefixes: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
    /// Unique request ID.
    #[prost(string, tag = "12")]
    pub request_id: ::prost::alloc::string::String,
}
/// Container for the MultipartUpload for the S3 object.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct S3apiMultipartUpload {
    /// Key of the object for which the multipart upload was initiated.
    #[prost(string, tag = "1")]
    pub key: ::prost::alloc::string::String,
    /// Upload ID that identifies the multipart upload.
    #[prost(string, tag = "2")]
    pub upload_id: ::prost::alloc::string::String,
    /// Identifies who initiated the multipart upload.
    #[prost(message, optional, tag = "3")]
    pub initiator: ::core::option::Option<S3apiOwner>,
    /// Specifies the owner of the object that is part of the multipart upload.
    #[prost(message, optional, tag = "4")]
    pub owner: ::core::option::Option<S3apiOwner>,
    /// The class of storage used to store the object.
    #[prost(string, tag = "5")]
    pub storage_class: ::prost::alloc::string::String,
    /// Date and time at which the multipart upload was initiated.
    #[prost(message, optional, tag = "6")]
    pub initiated_at: ::core::option::Option<::prost_types::Timestamp>,
}
/// Container for the owner/initiator display name and ID.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct S3apiOwner {
    /// Container for the ID of the owner/initiator.
    #[prost(string, tag = "1")]
    pub id: ::prost::alloc::string::String,
    /// Container for the display name of the owner/initiator.
    #[prost(string, tag = "2")]
    pub display_name: ::prost::alloc::string::String,
}
/// Response message for UploadPartCopy operation
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct S3apiUploadPartCopyResponse {
    /// Entity tag of the object.
    #[prost(string, tag = "1")]
    pub etag: ::prost::alloc::string::String,
    /// Date and time at which the object was uploaded.
    #[prost(message, optional, tag = "2")]
    pub last_modified_at: ::core::option::Option<::prost_types::Timestamp>,
    /// Unique request ID.
    #[prost(string, tag = "3")]
    pub request_id: ::prost::alloc::string::String,
}
/// Represents a response of list objects v2 request to S3.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct S3apiListObjectsV2Response {
    /// A flag that indicates whether S3 returned all of the results that satisfied the search criteria.
    #[prost(bool, tag = "1")]
    pub is_truncated: bool,
    /// Metadata about each object returned.
    #[prost(message, repeated, tag = "2")]
    pub contents: ::prost::alloc::vec::Vec<S3apiObject>,
    /// The bucket name.
    #[prost(string, tag = "3")]
    pub name: ::prost::alloc::string::String,
    /// Keys that begin with the indicated prefix.
    #[prost(string, tag = "4")]
    pub prefix: ::prost::alloc::string::String,
    /// Causes keys that contain the same string between the prefix and the first occurrence of the delimiter to be rolled up into a single result element in the CommonPrefixes collection.
    #[prost(string, tag = "5")]
    pub delimiter: ::prost::alloc::string::String,
    /// The maximum number of keys returned in the response body.
    #[prost(int64, tag = "6")]
    pub max_keys: i64,
    /// All of the keys rolled up into a common prefix count as a single return when calculating the number of returns.
    #[prost(message, repeated, tag = "7")]
    pub common_prefixes: ::prost::alloc::vec::Vec<S3apiCommonPrefix>,
    /// The number of keys returned with this request.
    #[prost(int64, tag = "8")]
    pub key_count: i64,
    /// Indicates where in the bucket listing begins. This is only returned if a continuation token was used in the request.
    #[prost(string, tag = "9")]
    pub continuation_token: ::prost::alloc::string::String,
    /// If the response is truncated, S3 returns this continuation token, which you can use in the next request to fetch the next set of keys.
    #[prost(string, tag = "10")]
    pub next_continuation_token: ::prost::alloc::string::String,
    /// StartAfter is where you want S3 to start listing from. This is only returned if a start-after was used in the request.
    #[prost(string, tag = "11")]
    pub start_after: ::prost::alloc::string::String,
    /// Unique request ID.
    #[prost(string, tag = "12")]
    pub request_id: ::prost::alloc::string::String,
}
/// Container for object metadata.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct S3apiObject {
    /// The object key.
    #[prost(string, tag = "1")]
    pub key: ::prost::alloc::string::String,
    /// Date and time the object was last modified.
    #[prost(message, optional, tag = "2")]
    pub last_modified: ::core::option::Option<::prost_types::Timestamp>,
    /// The entity tag is a hash of the object.
    #[prost(string, tag = "3")]
    pub etag: ::prost::alloc::string::String,
    /// Size in bytes of the object.
    #[prost(int64, tag = "4")]
    pub size: i64,
    /// The owner of the object.
    #[prost(message, optional, tag = "5")]
    pub owner: ::core::option::Option<S3apiOwner>,
    /// The class of storage used to store the object.
    #[prost(string, tag = "6")]
    pub storage_class: ::prost::alloc::string::String,
}
/// Container for common prefix information.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct S3apiCommonPrefix {
    /// Container for the specified common prefix.
    #[prost(string, tag = "1")]
    pub prefix: ::prost::alloc::string::String,
}