Skip to content

Commit

Permalink
update the storageprovider recycle api (#135)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
David Christofas authored Jul 2, 2021
1 parent 1a4ab6b commit 6da44cb
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 0 deletions.
6 changes: 6 additions & 0 deletions cs3/storage/provider/v1beta1/provider_api.proto
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -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 {
Expand Down
16 changes: 16 additions & 0 deletions docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -13805,6 +13805,14 @@ <h3 id="cs3.storage.provider.v1beta1.ListRecycleRequest">ListRecycleRequest</h3>
The value is Unix Epoch timestamp in seconds. </p></td>
</tr>

<tr>
<td>ref</td>
<td><a href="#cs3.storage.provider.v1beta1.Reference">Reference</a></td>
<td></td>
<td><p>OPTIONAL.
The reference to which the action should be performed. </p></td>
</tr>

</tbody>
</table>

Expand Down Expand Up @@ -13891,6 +13899,14 @@ <h3 id="cs3.storage.provider.v1beta1.ListRecycleStreamRequest">ListRecycleStream
The value is Unix Epoch timestamp in seconds. </p></td>
</tr>

<tr>
<td>ref</td>
<td><a href="#cs3.storage.provider.v1beta1.Reference">Reference</a></td>
<td></td>
<td><p>OPTIONAL.
The reference to which the action should be performed. </p></td>
</tr>

</tbody>
</table>

Expand Down
10 changes: 10 additions & 0 deletions proto.lock
Original file line number Diff line number Diff line change
Expand Up @@ -6929,6 +6929,11 @@
"id": 3,
"name": "to_ts",
"type": "cs3.types.v1beta1.Timestamp"
},
{
"id": 4,
"name": "ref",
"type": "Reference"
}
]
},
Expand Down Expand Up @@ -6970,6 +6975,11 @@
"id": 3,
"name": "to_ts",
"type": "cs3.types.v1beta1.Timestamp"
},
{
"id": 4,
"name": "ref",
"type": "Reference"
}
]
},
Expand Down

0 comments on commit 6da44cb

Please sign in to comment.