-
Notifications
You must be signed in to change notification settings - Fork 4
/
bucket.pb.go
3938 lines (3527 loc) · 165 KB
/
bucket.pb.go
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
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.29.0
// protoc v3.17.3
// source: yandex/cloud/storage/v1/bucket.proto
package storage
import (
_ "github.com/yandex-cloud/go-genproto/yandex/cloud"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
structpb "google.golang.org/protobuf/types/known/structpb"
timestamppb "google.golang.org/protobuf/types/known/timestamppb"
wrapperspb "google.golang.org/protobuf/types/known/wrapperspb"
reflect "reflect"
sync "sync"
)
const (
// Verify that this generated code is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
// Verify that runtime/protoimpl is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)
type Versioning int32
const (
Versioning_VERSIONING_UNSPECIFIED Versioning = 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.
Versioning_VERSIONING_DISABLED Versioning = 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.
Versioning_VERSIONING_ENABLED Versioning = 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.
Versioning_VERSIONING_SUSPENDED Versioning = 3
)
// Enum value maps for Versioning.
var (
Versioning_name = map[int32]string{
0: "VERSIONING_UNSPECIFIED",
1: "VERSIONING_DISABLED",
2: "VERSIONING_ENABLED",
3: "VERSIONING_SUSPENDED",
}
Versioning_value = map[string]int32{
"VERSIONING_UNSPECIFIED": 0,
"VERSIONING_DISABLED": 1,
"VERSIONING_ENABLED": 2,
"VERSIONING_SUSPENDED": 3,
}
)
func (x Versioning) Enum() *Versioning {
p := new(Versioning)
*p = x
return p
}
func (x Versioning) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (Versioning) Descriptor() protoreflect.EnumDescriptor {
return file_yandex_cloud_storage_v1_bucket_proto_enumTypes[0].Descriptor()
}
func (Versioning) Type() protoreflect.EnumType {
return &file_yandex_cloud_storage_v1_bucket_proto_enumTypes[0]
}
func (x Versioning) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use Versioning.Descriptor instead.
func (Versioning) EnumDescriptor() ([]byte, []int) {
return file_yandex_cloud_storage_v1_bucket_proto_rawDescGZIP(), []int{0}
}
type ACL_Grant_Permission int32
const (
ACL_Grant_PERMISSION_UNSPECIFIED ACL_Grant_Permission = 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.
ACL_Grant_PERMISSION_FULL_CONTROL ACL_Grant_Permission = 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.
ACL_Grant_PERMISSION_WRITE ACL_Grant_Permission = 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.
ACL_Grant_PERMISSION_WRITE_ACP ACL_Grant_Permission = 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.
ACL_Grant_PERMISSION_READ ACL_Grant_Permission = 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.
ACL_Grant_PERMISSION_READ_ACP ACL_Grant_Permission = 5
)
// Enum value maps for ACL_Grant_Permission.
var (
ACL_Grant_Permission_name = map[int32]string{
0: "PERMISSION_UNSPECIFIED",
1: "PERMISSION_FULL_CONTROL",
2: "PERMISSION_WRITE",
3: "PERMISSION_WRITE_ACP",
4: "PERMISSION_READ",
5: "PERMISSION_READ_ACP",
}
ACL_Grant_Permission_value = map[string]int32{
"PERMISSION_UNSPECIFIED": 0,
"PERMISSION_FULL_CONTROL": 1,
"PERMISSION_WRITE": 2,
"PERMISSION_WRITE_ACP": 3,
"PERMISSION_READ": 4,
"PERMISSION_READ_ACP": 5,
}
)
func (x ACL_Grant_Permission) Enum() *ACL_Grant_Permission {
p := new(ACL_Grant_Permission)
*p = x
return p
}
func (x ACL_Grant_Permission) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (ACL_Grant_Permission) Descriptor() protoreflect.EnumDescriptor {
return file_yandex_cloud_storage_v1_bucket_proto_enumTypes[1].Descriptor()
}
func (ACL_Grant_Permission) Type() protoreflect.EnumType {
return &file_yandex_cloud_storage_v1_bucket_proto_enumTypes[1]
}
func (x ACL_Grant_Permission) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use ACL_Grant_Permission.Descriptor instead.
func (ACL_Grant_Permission) EnumDescriptor() ([]byte, []int) {
return file_yandex_cloud_storage_v1_bucket_proto_rawDescGZIP(), []int{2, 0, 0}
}
type ACL_Grant_GrantType int32
const (
ACL_Grant_GRANT_TYPE_UNSPECIFIED ACL_Grant_GrantType = 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).
ACL_Grant_GRANT_TYPE_ACCOUNT ACL_Grant_GrantType = 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).
ACL_Grant_GRANT_TYPE_ALL_AUTHENTICATED_USERS ACL_Grant_GrantType = 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).
ACL_Grant_GRANT_TYPE_ALL_USERS ACL_Grant_GrantType = 3
)
// Enum value maps for ACL_Grant_GrantType.
var (
ACL_Grant_GrantType_name = map[int32]string{
0: "GRANT_TYPE_UNSPECIFIED",
1: "GRANT_TYPE_ACCOUNT",
2: "GRANT_TYPE_ALL_AUTHENTICATED_USERS",
3: "GRANT_TYPE_ALL_USERS",
}
ACL_Grant_GrantType_value = map[string]int32{
"GRANT_TYPE_UNSPECIFIED": 0,
"GRANT_TYPE_ACCOUNT": 1,
"GRANT_TYPE_ALL_AUTHENTICATED_USERS": 2,
"GRANT_TYPE_ALL_USERS": 3,
}
)
func (x ACL_Grant_GrantType) Enum() *ACL_Grant_GrantType {
p := new(ACL_Grant_GrantType)
*p = x
return p
}
func (x ACL_Grant_GrantType) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (ACL_Grant_GrantType) Descriptor() protoreflect.EnumDescriptor {
return file_yandex_cloud_storage_v1_bucket_proto_enumTypes[2].Descriptor()
}
func (ACL_Grant_GrantType) Type() protoreflect.EnumType {
return &file_yandex_cloud_storage_v1_bucket_proto_enumTypes[2]
}
func (x ACL_Grant_GrantType) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use ACL_Grant_GrantType.Descriptor instead.
func (ACL_Grant_GrantType) EnumDescriptor() ([]byte, []int) {
return file_yandex_cloud_storage_v1_bucket_proto_rawDescGZIP(), []int{2, 0, 1}
}
// 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.
type CorsRule_Method int32
const (
CorsRule_METHOD_UNSPECIFIED CorsRule_Method = 0
// HTTP `GET` method.
CorsRule_METHOD_GET CorsRule_Method = 1
// HTTP `HEAD` method.
CorsRule_METHOD_HEAD CorsRule_Method = 2
// HTTP `POST` method.
CorsRule_METHOD_POST CorsRule_Method = 3
// HTTP `PUT` method.
CorsRule_METHOD_PUT CorsRule_Method = 4
// HTTP `DELETE` method.
CorsRule_METHOD_DELETE CorsRule_Method = 5
)
// Enum value maps for CorsRule_Method.
var (
CorsRule_Method_name = map[int32]string{
0: "METHOD_UNSPECIFIED",
1: "METHOD_GET",
2: "METHOD_HEAD",
3: "METHOD_POST",
4: "METHOD_PUT",
5: "METHOD_DELETE",
}
CorsRule_Method_value = map[string]int32{
"METHOD_UNSPECIFIED": 0,
"METHOD_GET": 1,
"METHOD_HEAD": 2,
"METHOD_POST": 3,
"METHOD_PUT": 4,
"METHOD_DELETE": 5,
}
)
func (x CorsRule_Method) Enum() *CorsRule_Method {
p := new(CorsRule_Method)
*p = x
return p
}
func (x CorsRule_Method) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (CorsRule_Method) Descriptor() protoreflect.EnumDescriptor {
return file_yandex_cloud_storage_v1_bucket_proto_enumTypes[3].Descriptor()
}
func (CorsRule_Method) Type() protoreflect.EnumType {
return &file_yandex_cloud_storage_v1_bucket_proto_enumTypes[3]
}
func (x CorsRule_Method) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use CorsRule_Method.Descriptor instead.
func (CorsRule_Method) EnumDescriptor() ([]byte, []int) {
return file_yandex_cloud_storage_v1_bucket_proto_rawDescGZIP(), []int{4, 0}
}
type WebsiteSettings_Protocol int32
const (
WebsiteSettings_PROTOCOL_UNSPECIFIED WebsiteSettings_Protocol = 0
// `http` scheme.
WebsiteSettings_PROTOCOL_HTTP WebsiteSettings_Protocol = 1
// `https` scheme.
WebsiteSettings_PROTOCOL_HTTPS WebsiteSettings_Protocol = 2
)
// Enum value maps for WebsiteSettings_Protocol.
var (
WebsiteSettings_Protocol_name = map[int32]string{
0: "PROTOCOL_UNSPECIFIED",
1: "PROTOCOL_HTTP",
2: "PROTOCOL_HTTPS",
}
WebsiteSettings_Protocol_value = map[string]int32{
"PROTOCOL_UNSPECIFIED": 0,
"PROTOCOL_HTTP": 1,
"PROTOCOL_HTTPS": 2,
}
)
func (x WebsiteSettings_Protocol) Enum() *WebsiteSettings_Protocol {
p := new(WebsiteSettings_Protocol)
*p = x
return p
}
func (x WebsiteSettings_Protocol) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (WebsiteSettings_Protocol) Descriptor() protoreflect.EnumDescriptor {
return file_yandex_cloud_storage_v1_bucket_proto_enumTypes[4].Descriptor()
}
func (WebsiteSettings_Protocol) Type() protoreflect.EnumType {
return &file_yandex_cloud_storage_v1_bucket_proto_enumTypes[4]
}
func (x WebsiteSettings_Protocol) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use WebsiteSettings_Protocol.Descriptor instead.
func (WebsiteSettings_Protocol) EnumDescriptor() ([]byte, []int) {
return file_yandex_cloud_storage_v1_bucket_proto_rawDescGZIP(), []int{5, 0}
}
// A resource for type of TLS certificate source.
type HTTPSConfig_SourceType int32
const (
HTTPSConfig_SOURCE_TYPE_UNSPECIFIED HTTPSConfig_SourceType = 0
// Your certificate, uploaded directly.
HTTPSConfig_SOURCE_TYPE_SELF_MANAGED HTTPSConfig_SourceType = 1
// Certificate managed by Certificate Manager.
HTTPSConfig_SOURCE_TYPE_MANAGED_BY_CERTIFICATE_MANAGER HTTPSConfig_SourceType = 2
)
// Enum value maps for HTTPSConfig_SourceType.
var (
HTTPSConfig_SourceType_name = map[int32]string{
0: "SOURCE_TYPE_UNSPECIFIED",
1: "SOURCE_TYPE_SELF_MANAGED",
2: "SOURCE_TYPE_MANAGED_BY_CERTIFICATE_MANAGER",
}
HTTPSConfig_SourceType_value = map[string]int32{
"SOURCE_TYPE_UNSPECIFIED": 0,
"SOURCE_TYPE_SELF_MANAGED": 1,
"SOURCE_TYPE_MANAGED_BY_CERTIFICATE_MANAGER": 2,
}
)
func (x HTTPSConfig_SourceType) Enum() *HTTPSConfig_SourceType {
p := new(HTTPSConfig_SourceType)
*p = x
return p
}
func (x HTTPSConfig_SourceType) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (HTTPSConfig_SourceType) Descriptor() protoreflect.EnumDescriptor {
return file_yandex_cloud_storage_v1_bucket_proto_enumTypes[5].Descriptor()
}
func (HTTPSConfig_SourceType) Type() protoreflect.EnumType {
return &file_yandex_cloud_storage_v1_bucket_proto_enumTypes[5]
}
func (x HTTPSConfig_SourceType) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use HTTPSConfig_SourceType.Descriptor instead.
func (HTTPSConfig_SourceType) EnumDescriptor() ([]byte, []int) {
return file_yandex_cloud_storage_v1_bucket_proto_rawDescGZIP(), []int{12, 0}
}
// Activity status of the object lock settings on the bucket
type ObjectLock_ObjectLockStatus int32
const (
ObjectLock_OBJECT_LOCK_STATUS_UNSPECIFIED ObjectLock_ObjectLockStatus = 0
ObjectLock_OBJECT_LOCK_STATUS_DISABLED ObjectLock_ObjectLockStatus = 1
ObjectLock_OBJECT_LOCK_STATUS_ENABLED ObjectLock_ObjectLockStatus = 2
)
// Enum value maps for ObjectLock_ObjectLockStatus.
var (
ObjectLock_ObjectLockStatus_name = map[int32]string{
0: "OBJECT_LOCK_STATUS_UNSPECIFIED",
1: "OBJECT_LOCK_STATUS_DISABLED",
2: "OBJECT_LOCK_STATUS_ENABLED",
}
ObjectLock_ObjectLockStatus_value = map[string]int32{
"OBJECT_LOCK_STATUS_UNSPECIFIED": 0,
"OBJECT_LOCK_STATUS_DISABLED": 1,
"OBJECT_LOCK_STATUS_ENABLED": 2,
}
)
func (x ObjectLock_ObjectLockStatus) Enum() *ObjectLock_ObjectLockStatus {
p := new(ObjectLock_ObjectLockStatus)
*p = x
return p
}
func (x ObjectLock_ObjectLockStatus) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (ObjectLock_ObjectLockStatus) Descriptor() protoreflect.EnumDescriptor {
return file_yandex_cloud_storage_v1_bucket_proto_enumTypes[6].Descriptor()
}
func (ObjectLock_ObjectLockStatus) Type() protoreflect.EnumType {
return &file_yandex_cloud_storage_v1_bucket_proto_enumTypes[6]
}
func (x ObjectLock_ObjectLockStatus) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use ObjectLock_ObjectLockStatus.Descriptor instead.
func (ObjectLock_ObjectLockStatus) EnumDescriptor() ([]byte, []int) {
return file_yandex_cloud_storage_v1_bucket_proto_rawDescGZIP(), []int{13, 0}
}
// Lock type
type ObjectLock_DefaultRetention_Mode int32
const (
ObjectLock_DefaultRetention_MODE_UNSPECIFIED ObjectLock_DefaultRetention_Mode = 0
ObjectLock_DefaultRetention_MODE_GOVERNANCE ObjectLock_DefaultRetention_Mode = 1
ObjectLock_DefaultRetention_MODE_COMPLIANCE ObjectLock_DefaultRetention_Mode = 2
)
// Enum value maps for ObjectLock_DefaultRetention_Mode.
var (
ObjectLock_DefaultRetention_Mode_name = map[int32]string{
0: "MODE_UNSPECIFIED",
1: "MODE_GOVERNANCE",
2: "MODE_COMPLIANCE",
}
ObjectLock_DefaultRetention_Mode_value = map[string]int32{
"MODE_UNSPECIFIED": 0,
"MODE_GOVERNANCE": 1,
"MODE_COMPLIANCE": 2,
}
)
func (x ObjectLock_DefaultRetention_Mode) Enum() *ObjectLock_DefaultRetention_Mode {
p := new(ObjectLock_DefaultRetention_Mode)
*p = x
return p
}
func (x ObjectLock_DefaultRetention_Mode) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (ObjectLock_DefaultRetention_Mode) Descriptor() protoreflect.EnumDescriptor {
return file_yandex_cloud_storage_v1_bucket_proto_enumTypes[7].Descriptor()
}
func (ObjectLock_DefaultRetention_Mode) Type() protoreflect.EnumType {
return &file_yandex_cloud_storage_v1_bucket_proto_enumTypes[7]
}
func (x ObjectLock_DefaultRetention_Mode) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use ObjectLock_DefaultRetention_Mode.Descriptor instead.
func (ObjectLock_DefaultRetention_Mode) EnumDescriptor() ([]byte, []int) {
return file_yandex_cloud_storage_v1_bucket_proto_rawDescGZIP(), []int{13, 0, 0}
}
// A bucket resource.
// For details about the concept, see [documentation](/docs/storage/concepts/bucket).
type Bucket struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// ID of the bucket. Always equal to [name], which has priority.
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
// Name of the bucket.
//
// The name is unique within the platform. For naming limitations and rules, see
// [documentation](/docs/storage/concepts/bucket#naming).
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
// ID of the folder that the bucket belongs to.
FolderId string `protobuf:"bytes,3,opt,name=folder_id,json=folderId,proto3" json:"folder_id,omitempty"`
// Flags for configuring public (anonymous) access to the bucket's content and settings.
// For details, see [documentation](/docs/storage/concepts/bucket#bucket-access).
AnonymousAccessFlags *AnonymousAccessFlags `protobuf:"bytes,4,opt,name=anonymous_access_flags,json=anonymousAccessFlags,proto3" json:"anonymous_access_flags,omitempty"`
// 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).
DefaultStorageClass string `protobuf:"bytes,5,opt,name=default_storage_class,json=defaultStorageClass,proto3" json:"default_storage_class,omitempty"`
// Bucket versioning status.
// For details, see [documentation](/docs/storage/concepts/versioning).
Versioning Versioning `protobuf:"varint,6,opt,name=versioning,proto3,enum=yandex.cloud.storage.v1.Versioning" json:"versioning,omitempty"`
// Maximum size of the bucket, in bytes.
// For details, see [documentation](/docs/storage/operations/buckets/limit-max-volume).
MaxSize int64 `protobuf:"varint,7,opt,name=max_size,json=maxSize,proto3" json:"max_size,omitempty"`
// Bucket policies that set permissions for actions with the bucket, its objects, and groups of objects.
// For details, see [documentation](/docs/storage/concepts/policy).
Policy *structpb.Struct `protobuf:"bytes,8,opt,name=policy,proto3" json:"policy,omitempty"`
// Access control list (ACL) of the bucket.
// For details, see [documentation](/docs/storage/concepts/acl).
Acl *ACL `protobuf:"bytes,9,opt,name=acl,proto3" json:"acl,omitempty"`
// Creation timestamp.
CreatedAt *timestamppb.Timestamp `protobuf:"bytes,10,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
// 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).
Cors []*CorsRule `protobuf:"bytes,11,rep,name=cors,proto3" json:"cors,omitempty"`
// Configuration for hosting a static website in the bucket.
// For details, see [documentation](/docs/storage/concepts/hosting).
WebsiteSettings *WebsiteSettings `protobuf:"bytes,12,opt,name=website_settings,json=websiteSettings,proto3" json:"website_settings,omitempty"`
// List of object lifecycle rules for the bucket.
// For details, see [documentation](/docs/storage/concepts/lifecycles).
LifecycleRules []*LifecycleRule `protobuf:"bytes,13,rep,name=lifecycle_rules,json=lifecycleRules,proto3" json:"lifecycle_rules,omitempty"`
// List of tags for the bucket.
// For details, see [documentation](/docs/resource-manager/concepts/labels).
Tags []*Tag `protobuf:"bytes,14,rep,name=tags,proto3" json:"tags,omitempty"`
// Configuration for object lock on the bucket.
// For details about the concept, see [documentation](/docs/storage/concepts/object-lock).
ObjectLock *ObjectLock `protobuf:"bytes,15,opt,name=object_lock,json=objectLock,proto3" json:"object_lock,omitempty"`
// Configuration for bucket's encryption
// For detauls, see [documentation](/docs/storage/concepts/encryption)
Encryption *Encryption `protobuf:"bytes,16,opt,name=encryption,proto3" json:"encryption,omitempty"`
}
func (x *Bucket) Reset() {
*x = Bucket{}
if protoimpl.UnsafeEnabled {
mi := &file_yandex_cloud_storage_v1_bucket_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *Bucket) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Bucket) ProtoMessage() {}
func (x *Bucket) ProtoReflect() protoreflect.Message {
mi := &file_yandex_cloud_storage_v1_bucket_proto_msgTypes[0]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use Bucket.ProtoReflect.Descriptor instead.
func (*Bucket) Descriptor() ([]byte, []int) {
return file_yandex_cloud_storage_v1_bucket_proto_rawDescGZIP(), []int{0}
}
func (x *Bucket) GetId() string {
if x != nil {
return x.Id
}
return ""
}
func (x *Bucket) GetName() string {
if x != nil {
return x.Name
}
return ""
}
func (x *Bucket) GetFolderId() string {
if x != nil {
return x.FolderId
}
return ""
}
func (x *Bucket) GetAnonymousAccessFlags() *AnonymousAccessFlags {
if x != nil {
return x.AnonymousAccessFlags
}
return nil
}
func (x *Bucket) GetDefaultStorageClass() string {
if x != nil {
return x.DefaultStorageClass
}
return ""
}
func (x *Bucket) GetVersioning() Versioning {
if x != nil {
return x.Versioning
}
return Versioning_VERSIONING_UNSPECIFIED
}
func (x *Bucket) GetMaxSize() int64 {
if x != nil {
return x.MaxSize
}
return 0
}
func (x *Bucket) GetPolicy() *structpb.Struct {
if x != nil {
return x.Policy
}
return nil
}
func (x *Bucket) GetAcl() *ACL {
if x != nil {
return x.Acl
}
return nil
}
func (x *Bucket) GetCreatedAt() *timestamppb.Timestamp {
if x != nil {
return x.CreatedAt
}
return nil
}
func (x *Bucket) GetCors() []*CorsRule {
if x != nil {
return x.Cors
}
return nil
}
func (x *Bucket) GetWebsiteSettings() *WebsiteSettings {
if x != nil {
return x.WebsiteSettings
}
return nil
}
func (x *Bucket) GetLifecycleRules() []*LifecycleRule {
if x != nil {
return x.LifecycleRules
}
return nil
}
func (x *Bucket) GetTags() []*Tag {
if x != nil {
return x.Tags
}
return nil
}
func (x *Bucket) GetObjectLock() *ObjectLock {
if x != nil {
return x.ObjectLock
}
return nil
}
func (x *Bucket) GetEncryption() *Encryption {
if x != nil {
return x.Encryption
}
return nil
}
type Tag struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Key of the bucket tag.
Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
// Value of the bucket tag.
Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
}
func (x *Tag) Reset() {
*x = Tag{}
if protoimpl.UnsafeEnabled {
mi := &file_yandex_cloud_storage_v1_bucket_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *Tag) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Tag) ProtoMessage() {}
func (x *Tag) ProtoReflect() protoreflect.Message {
mi := &file_yandex_cloud_storage_v1_bucket_proto_msgTypes[1]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use Tag.ProtoReflect.Descriptor instead.
func (*Tag) Descriptor() ([]byte, []int) {
return file_yandex_cloud_storage_v1_bucket_proto_rawDescGZIP(), []int{1}
}
func (x *Tag) GetKey() string {
if x != nil {
return x.Key
}
return ""
}
func (x *Tag) GetValue() string {
if x != nil {
return x.Value
}
return ""
}
type ACL struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// List of permissions granted and the grantees.
Grants []*ACL_Grant `protobuf:"bytes,1,rep,name=grants,proto3" json:"grants,omitempty"`
}
func (x *ACL) Reset() {
*x = ACL{}
if protoimpl.UnsafeEnabled {
mi := &file_yandex_cloud_storage_v1_bucket_proto_msgTypes[2]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *ACL) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ACL) ProtoMessage() {}
func (x *ACL) ProtoReflect() protoreflect.Message {
mi := &file_yandex_cloud_storage_v1_bucket_proto_msgTypes[2]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use ACL.ProtoReflect.Descriptor instead.
func (*ACL) Descriptor() ([]byte, []int) {
return file_yandex_cloud_storage_v1_bucket_proto_rawDescGZIP(), []int{2}
}
func (x *ACL) GetGrants() []*ACL_Grant {
if x != nil {
return x.Grants
}
return nil
}
type AnonymousAccessFlags struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Specifies whether public (anonymous) access to read objects in the bucket is enabled.
Read *wrapperspb.BoolValue `protobuf:"bytes,1,opt,name=read,proto3" json:"read,omitempty"`
// Specifies whether public (anonymous) access to the list of objects in the bucket is enabled.
List *wrapperspb.BoolValue `protobuf:"bytes,2,opt,name=list,proto3" json:"list,omitempty"`
// 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.
ConfigRead *wrapperspb.BoolValue `protobuf:"bytes,3,opt,name=config_read,json=configRead,proto3" json:"config_read,omitempty"`
}
func (x *AnonymousAccessFlags) Reset() {
*x = AnonymousAccessFlags{}
if protoimpl.UnsafeEnabled {
mi := &file_yandex_cloud_storage_v1_bucket_proto_msgTypes[3]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *AnonymousAccessFlags) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*AnonymousAccessFlags) ProtoMessage() {}
func (x *AnonymousAccessFlags) ProtoReflect() protoreflect.Message {
mi := &file_yandex_cloud_storage_v1_bucket_proto_msgTypes[3]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use AnonymousAccessFlags.ProtoReflect.Descriptor instead.
func (*AnonymousAccessFlags) Descriptor() ([]byte, []int) {
return file_yandex_cloud_storage_v1_bucket_proto_rawDescGZIP(), []int{3}
}
func (x *AnonymousAccessFlags) GetRead() *wrapperspb.BoolValue {
if x != nil {
return x.Read
}
return nil
}
func (x *AnonymousAccessFlags) GetList() *wrapperspb.BoolValue {
if x != nil {
return x.List
}
return nil
}
func (x *AnonymousAccessFlags) GetConfigRead() *wrapperspb.BoolValue {
if x != nil {
return x.ConfigRead
}
return nil
}
// A CORS rule resource.
// For details about the concept, see [documentation](/docs/storage/concepts/cors).
type CorsRule struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// ID of the CORS rule.
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
// 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.
AllowedMethods []CorsRule_Method `protobuf:"varint,2,rep,packed,name=allowed_methods,json=allowedMethods,proto3,enum=yandex.cloud.storage.v1.CorsRule_Method" json:"allowed_methods,omitempty"`
// 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.
AllowedHeaders []string `protobuf:"bytes,3,rep,name=allowed_headers,json=allowedHeaders,proto3" json:"allowed_headers,omitempty"`
// 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`.
AllowedOrigins []string `protobuf:"bytes,4,rep,name=allowed_origins,json=allowedOrigins,proto3" json:"allowed_origins,omitempty"`
// List of headers contained in responses to CORS requests that can be accessed by applications.
ExposeHeaders []string `protobuf:"bytes,5,rep,name=expose_headers,json=exposeHeaders,proto3" json:"expose_headers,omitempty"`
// 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.
MaxAgeSeconds *wrapperspb.Int64Value `protobuf:"bytes,6,opt,name=max_age_seconds,json=maxAgeSeconds,proto3" json:"max_age_seconds,omitempty"`
}
func (x *CorsRule) Reset() {
*x = CorsRule{}
if protoimpl.UnsafeEnabled {
mi := &file_yandex_cloud_storage_v1_bucket_proto_msgTypes[4]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *CorsRule) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*CorsRule) ProtoMessage() {}
func (x *CorsRule) ProtoReflect() protoreflect.Message {
mi := &file_yandex_cloud_storage_v1_bucket_proto_msgTypes[4]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use CorsRule.ProtoReflect.Descriptor instead.
func (*CorsRule) Descriptor() ([]byte, []int) {
return file_yandex_cloud_storage_v1_bucket_proto_rawDescGZIP(), []int{4}
}
func (x *CorsRule) GetId() string {
if x != nil {
return x.Id
}
return ""
}
func (x *CorsRule) GetAllowedMethods() []CorsRule_Method {
if x != nil {
return x.AllowedMethods
}
return nil
}
func (x *CorsRule) GetAllowedHeaders() []string {
if x != nil {
return x.AllowedHeaders
}
return nil
}
func (x *CorsRule) GetAllowedOrigins() []string {
if x != nil {
return x.AllowedOrigins
}
return nil
}
func (x *CorsRule) GetExposeHeaders() []string {
if x != nil {
return x.ExposeHeaders
}
return nil
}
func (x *CorsRule) GetMaxAgeSeconds() *wrapperspb.Int64Value {
if x != nil {
return x.MaxAgeSeconds
}
return nil