From 6da44cbeddd525bfabac6d20d9e645dcd724048d Mon Sep 17 00:00:00 2001
From: David Christofas
Date: Fri, 2 Jul 2021 11:18:59 +0200
Subject: [PATCH] update the storageprovider recycle api (#135)
Added a reference for the target resource on which the action should be executed. This is necessary because we want to be able to perform actions for specific resources in the recycle file tree and not only on the root of a deleted tree.
---
cs3/storage/provider/v1beta1/provider_api.proto | 6 ++++++
docs/index.html | 16 ++++++++++++++++
proto.lock | 10 ++++++++++
3 files changed, 32 insertions(+)
diff --git a/cs3/storage/provider/v1beta1/provider_api.proto b/cs3/storage/provider/v1beta1/provider_api.proto
index 3bc0513b..67881a1a 100644
--- a/cs3/storage/provider/v1beta1/provider_api.proto
+++ b/cs3/storage/provider/v1beta1/provider_api.proto
@@ -435,6 +435,9 @@ message ListRecycleRequest {
// The end time range to query for recycle items.
// The value is Unix Epoch timestamp in seconds.
cs3.types.v1beta1.Timestamp to_ts = 3;
+ // OPTIONAL.
+ // The reference to which the action should be performed.
+ Reference ref = 4;
}
message ListRecycleResponse {
@@ -463,6 +466,9 @@ message ListRecycleStreamRequest {
// The end time range to query for recycle items.
// The value is Unix Epoch timestamp in seconds.
cs3.types.v1beta1.Timestamp to_ts = 3;
+ // OPTIONAL.
+ // The reference to which the action should be performed.
+ Reference ref = 4;
}
message ListRecycleStreamResponse {
diff --git a/docs/index.html b/docs/index.html
index 76d255f3..7c735f53 100644
--- a/docs/index.html
+++ b/docs/index.html
@@ -13805,6 +13805,14 @@ ListRecycleRequest
The value is Unix Epoch timestamp in seconds.
+
+ ref |
+ Reference |
+ |
+ OPTIONAL.
+The reference to which the action should be performed. |
+
+
@@ -13891,6 +13899,14 @@ ListRecycleStream
The value is Unix Epoch timestamp in seconds.
+
+ ref |
+ Reference |
+ |
+ OPTIONAL.
+The reference to which the action should be performed. |
+
+
diff --git a/proto.lock b/proto.lock
index 73563115..ea209c41 100644
--- a/proto.lock
+++ b/proto.lock
@@ -6929,6 +6929,11 @@
"id": 3,
"name": "to_ts",
"type": "cs3.types.v1beta1.Timestamp"
+ },
+ {
+ "id": 4,
+ "name": "ref",
+ "type": "Reference"
}
]
},
@@ -6970,6 +6975,11 @@
"id": 3,
"name": "to_ts",
"type": "cs3.types.v1beta1.Timestamp"
+ },
+ {
+ "id": 4,
+ "name": "ref",
+ "type": "Reference"
}
]
},