diff --git a/cs3/gateway/v1beta1/gateway_api.proto b/cs3/gateway/v1beta1/gateway_api.proto index a572c483..a1831efe 100644 --- a/cs3/gateway/v1beta1/gateway_api.proto +++ b/cs3/gateway/v1beta1/gateway_api.proto @@ -132,10 +132,10 @@ service GatewayAPI { // TODO: What code if resource not of type file? rpc ListFileVersions(cs3.storage.provider.v1beta1.ListFileVersionsRequest) returns (cs3.storage.provider.v1beta1.ListFileVersionsResponse); // Returns a stream of recycle items for this storage provider. - rpc ListRecycleStream(ListRecycleStreamRequest) returns (stream cs3.storage.provider.v1beta1.ListRecycleStreamResponse); + rpc ListRecycleStream(cs3.storage.provider.v1beta1.ListRecycleStreamRequest) returns (stream cs3.storage.provider.v1beta1.ListRecycleStreamResponse); // Returns a list of recycle items for this storage provider. // MUST return CODE_OK and MUST return an empty list if no recycle items are available. - rpc ListRecycle(ListRecycleRequest) returns (cs3.storage.provider.v1beta1.ListRecycleResponse); + rpc ListRecycle(cs3.storage.provider.v1beta1.ListRecycleRequest) returns (cs3.storage.provider.v1beta1.ListRecycleResponse); // Moves a resource from one reference to another. // MUST return CODE_NOT_FOUND if any of the references do not exist. // MUST return CODE_PRECONDITION_FAILED if the source reference @@ -144,7 +144,7 @@ service GatewayAPI { // Permanently removes a recycle item from the recycle. // This operation is irrevocable. // MUST return CODE_NOT_FOUND if the recycle item id does not exist. - rpc PurgeRecycle(PurgeRecycleRequest) returns (cs3.storage.provider.v1beta1.PurgeRecycleResponse); + rpc PurgeRecycle(cs3.storage.provider.v1beta1.PurgeRecycleRequest) returns (cs3.storage.provider.v1beta1.PurgeRecycleResponse); // Restores a file version for the provided reference. // MUST return CODE_NOT_FOUND if the reference does not exist. // MUST return CODE_NOT_FOUND if the version does not exist. @@ -446,53 +446,6 @@ message GetQuotaRequest { cs3.storage.provider.v1beta1.Reference ref = 2; } -message ListRecycleRequest { - // OPTIONAL. - // Opaque information. - cs3.types.v1beta1.Opaque opaque = 1; - // REQUIRED. - // The reference to which the action should be performed. - cs3.storage.provider.v1beta1.Reference ref = 2; - // OPTIONAL. - // SHOULD be specified. - // The start time range to query for recycle items. - // The value is the Unix Epoch timestamp in seconds. - cs3.types.v1beta1.Timestamp from_ts = 3; - // OPTIONAL. - // SHOULD be specified. - // The end time range to query for recycle items. - // The value is Unix Epoch timestamp in seconds. - cs3.types.v1beta1.Timestamp to_ts = 4; -} - -message ListRecycleStreamRequest { - // OPTIONAL. - // Opaque information. - cs3.types.v1beta1.Opaque opaque = 1; - // REQUIRED. - // The reference to which the action should be performed. - cs3.storage.provider.v1beta1.Reference ref = 2; - // OPTIONAL. - // SHOULD be specified. - // The start time range to query for recycle items. - // The value is the Unix Epoch timestamp in seconds. - cs3.types.v1beta1.Timestamp from_ts = 3; - // OPTIONAL. - // SHOULD be specified. - // The end time range to query for recycle items. - // The value is Unix Epoch timestamp in seconds. - cs3.types.v1beta1.Timestamp to_ts = 4; -} - -message PurgeRecycleRequest { - // OPTIONAL. - // Opaque information. - cs3.types.v1beta1.Opaque opaque = 1; - // REQUIRED. - // The reference to which the action should be performed. - cs3.storage.provider.v1beta1.Reference ref = 2; -} - message InitiateFileDownloadResponse { // REQUIRED. // The response status. diff --git a/cs3/storage/provider/v1beta1/provider_api.proto b/cs3/storage/provider/v1beta1/provider_api.proto index cbceafbc..63b94d3f 100644 --- a/cs3/storage/provider/v1beta1/provider_api.proto +++ b/cs3/storage/provider/v1beta1/provider_api.proto @@ -465,6 +465,10 @@ message ListRecycleRequest { // OPTIONAL. // The reference to which the action should be performed. Reference ref = 4; + // OPTIONAL. + // The key for a recycle item to be listed. + // If provided, the item corresponding to the key will be listed. + string key = 5; } message ListRecycleResponse { @@ -496,6 +500,10 @@ message ListRecycleStreamRequest { // OPTIONAL. // The reference to which the action should be performed. Reference ref = 4; + // OPTIONAL. + // The key for a recycle item to be listed. + // If provided, the item corresponding to the key will be listed. + string key = 5; } message ListRecycleStreamResponse { @@ -538,6 +546,9 @@ message PurgeRecycleRequest { // REQUIRED. // The reference to which the action should be performed. Reference ref = 2; + // REQUIRED. + // The key corresponding to the item to be purged.. + string key = 3; } message PurgeRecycleResponse { diff --git a/docs/index.html b/docs/index.html index 2376d6b6..0478d878 100644 --- a/docs/index.html +++ b/docs/index.html @@ -202,22 +202,10 @@
Field | Type | Label | Description |
opaque | -cs3.types.v1beta1.Opaque | -- | OPTIONAL. -Opaque information. |
-
ref | -cs3.storage.provider.v1beta1.Reference | -- | REQUIRED. -The reference to which the action should be performed. |
-
from_ts | -cs3.types.v1beta1.Timestamp | -- | OPTIONAL. -SHOULD be specified. -The start time range to query for recycle items. -The value is the Unix Epoch timestamp in seconds. |
-
to_ts | -cs3.types.v1beta1.Timestamp | -- | OPTIONAL. -SHOULD be specified. -The end time range to query for recycle items. -The value is Unix Epoch timestamp in seconds. |
-
Field | Type | Label | Description |
opaque | -cs3.types.v1beta1.Opaque | -- | OPTIONAL. -Opaque information. |
-
ref | -cs3.storage.provider.v1beta1.Reference | -- | REQUIRED. -The reference to which the action should be performed. |
-
from_ts | -cs3.types.v1beta1.Timestamp | -- | OPTIONAL. -SHOULD be specified. -The start time range to query for recycle items. -The value is the Unix Epoch timestamp in seconds. |
-
to_ts | -cs3.types.v1beta1.Timestamp | -- | OPTIONAL. -SHOULD be specified. -The end time range to query for recycle items. -The value is Unix Epoch timestamp in seconds. |
-
Field | Type | Label | Description |
opaque | -cs3.types.v1beta1.Opaque | -- | OPTIONAL. -Opaque information. |
-
ref | -cs3.storage.provider.v1beta1.Reference | -- | REQUIRED. -The reference to which the action should be performed. |
-
Returns a stream of recycle items for this storage provider.
Returns a list of recycle items for this storage provider. MUST return CODE_OK and MUST return an empty list if no recycle items are available.
Permanently removes a recycle item from the recycle. This operation is irrevocable. @@ -14228,6 +14077,15 @@
OPTIONAL. +The key for a recycle item to be listed. +If provided, the item corresponding to the key will be listed.
OPTIONAL. +The key for a recycle item to be listed. +If provided, the item corresponding to the key will be listed.
REQUIRED. +The key corresponding to the item to be purged..