From 0344b34246b490a7fd1ab1043ce61958eee5bccc Mon Sep 17 00:00:00 2001 From: Willy Kloucek <34452982+wkloucek@users.noreply.github.com> Date: Tue, 16 Mar 2021 12:23:14 +0100 Subject: [PATCH] add etag to versions (#114) --- cs3/storage/provider/v1beta1/resources.proto | 4 ++++ docs/index.html | 12 +++++++++++- 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/cs3/storage/provider/v1beta1/resources.proto b/cs3/storage/provider/v1beta1/resources.proto index 6fce8a3a..fee65dc6 100644 --- a/cs3/storage/provider/v1beta1/resources.proto +++ b/cs3/storage/provider/v1beta1/resources.proto @@ -294,6 +294,10 @@ message FileVersion { // REQUIRED. // The Unix Epoch timestamp in seconds. uint64 mtime = 5; + // REQUIRED. + // As decribed in https://tools.ietf.org/html/rfc7232#section-2.3 + // For a file version, the etag does not change because a version is immutable. + string etag = 6; } // A recycle item represents the information diff --git a/docs/index.html b/docs/index.html index 9adaba33..17b64820 100644 --- a/docs/index.html +++ b/docs/index.html @@ -13391,6 +13391,15 @@

FileVersion

The Unix Epoch timestamp in seconds.

+ + etag + string + +

REQUIRED. +As decribed in https://tools.ietf.org/html/rfc7232#section-2.3 +For a file version, the etag does not change because a version is immutable.

+ + @@ -13558,7 +13567,8 @@

RecycleItem

string

REQUIRED. -The original path of the deleted resource.

+The original path of the deleted resource. +MUST start with the slash character (/).