@@ -50,7 +50,8 @@ message BucketRedundancy {
50
50
}
51
51
52
52
message CreateBucketRequest {
53
- string name = 1 ;
53
+ /// If no name is provided then the bucket generated UUID is used.
54
+ optional string name = 1 ;
54
55
// Public,PrivateShared, Private,
55
56
optional string visibility = 2 ;
56
57
// The encryption algorithm used for the bucket. Currently only supports
@@ -60,13 +61,10 @@ message CreateBucketRequest {
60
61
/// bucket are required to enter the password. The field doesn't affect
61
62
/// encryption, only access control.
62
63
optional string password = 4 ;
63
- /// Redundancy settings TODO: Currently not supported.
64
- // optional BucketRedundancy redundancy = 5;
65
- // Optional description of the bucket.
64
+
66
65
optional string description = 8 ;
67
- // Storage class, Standard. Will later support Performant(That will use SSD or
68
- // NVME?), Extra-Performant(NVME) with super fast ethernet.
69
- string storage_class = 9 ;
66
+ /// The underlying storage engine to use. Look into storage-engine in documentation for more information.
67
+ string storage_engine_type = 9 ;
70
68
// Tag the storage, like pictures, music, videos, etc.
71
69
repeated string tags = 10 ;
72
70
// When the bucket will expire.
@@ -79,8 +77,8 @@ message CreateBucketRequest {
79
77
bool is_nsfw = 14 ;
80
78
// If the bucket is searchable or not, Will end up costing more.
81
79
bool is_searchable = 15 ;
82
- /// If the user is allowed to clone and distribute the same content. If this
83
- /// value is false for a bucket assume it's not okay to redustribute .
80
+ /// If the user ris allowed to clone and distribute the same content. If this
81
+ // /// value is false for a bucket assume it's not okay to redistribute .
84
82
bool is_bucket_cloneable = 16 ;
85
83
/// If the bucket is non-sharable it will use zero-knowledge encryption.
86
84
bool is_sharable = 17 ;
@@ -109,9 +107,7 @@ message DeleteBucketResponse {
109
107
/// This api endpoint will be updated in the future to support more options and
110
108
/// is not priority yet because of being complicated.
111
109
message UpdateBucketRequest {
112
- string bucket_id = 1 ;
113
- string bucket_user_id = 2 ;
114
-
110
+ BucketGuid bucket_guid = 1 ;
115
111
optional string name = 3 ;
116
112
// Public,PrivateShared, Private,
117
113
optional string visibility = 4 ;
@@ -207,6 +203,9 @@ message CloneBucketRequest {
207
203
optional string new_bucket_type = 4 ;
208
204
optional string new_bucket_encryption = 5 ;
209
205
optional string new_bucket_password = 6 ;
206
+
207
+ bool should_abandon_partial = 7 ; /// If
208
+ bool should_overwrite = 8 ;
210
209
}
211
210
212
211
message CloneBucketResponse {}
@@ -217,7 +216,7 @@ message DeleteFilesInBucketRequest {
217
216
repeated string filepaths = 3 ;
218
217
/// Will remove the capacity form the bucket of x amount of bytes.
219
218
/// Default this should be true in most cases.
220
- /// Only false if the user intneds to keep the storage to be uploaded to later
219
+ /// Only false if the user intends to keep the storage to be uploaded to later
221
220
/// on...
222
221
bool is_capacity_destructive = 7 ;
223
222
}
0 commit comments