Skip to content

Commit a9d4281

Browse files
authored
add thumbnail and readme IDs directly to space definition, add support (#246)
for updating quota / name
1 parent 394b8d8 commit a9d4281

File tree

2 files changed

+20
-13
lines changed

2 files changed

+20
-13
lines changed

cs3/storage/provider/v1beta1/resources.proto

Lines changed: 5 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -480,8 +480,11 @@ message StorageSpace {
480480
// Description of the space.
481481
string description = 11;
482482
// OPTIONAL.
483-
// SpaceMetadata contains additional metadata about the space stored externally, such as subtitle, thumbnail, etc.
484-
SpaceMetadata metadata = 12;
483+
// An opaque ID of an optional thumbnail file of the space (usually the inode)
484+
string thumbnail_id = 13;
485+
// OPTIONAL.
486+
// An opaque ID of an optional readme file of the space (usually the inode)
487+
string readme_id = 14;
485488
}
486489

487490
// The id of a storage space.
@@ -510,14 +513,3 @@ message Quota {
510513
uint64 remaining_files = 5;
511514
}
512515

513-
514-
message SpaceMetadata {
515-
// Type of metadata entry
516-
enum Type {
517-
TYPE_README = 0;
518-
TYPE_THUMBNAIL = 1;
519-
}
520-
Type type = 1;
521-
// ID of the entry, usually the inode of the file that contains the actual metadata.
522-
string id = 2;
523-
}

cs3/storage/provider/v1beta1/spaces_api.proto

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,10 @@ message UpdateStorageSpaceRequest {
163163
string alias = 2;
164164
// Update IDs of "special" files, such as readme or thumbnail, directly stored in the space.
165165
SpaceMetadata metadata = 3;
166+
// Update the space quota.
167+
Quota quota = 4;
168+
// Update the space name.
169+
string name = 5;
166170
}
167171
}
168172
// REQUIRED.
@@ -197,3 +201,14 @@ message DeleteStorageSpaceResponse {
197201
// The response status.
198202
cs3.rpc.v1beta1.Status status = 2;
199203
}
204+
205+
message SpaceMetadata {
206+
// Type of metadata entry
207+
enum Type {
208+
TYPE_README = 0;
209+
TYPE_THUMBNAIL = 1;
210+
}
211+
Type type = 1;
212+
// ID of the entry, usually the inode of the file that contains the actual metadata.
213+
string id = 2;
214+
}

0 commit comments

Comments
 (0)