Skip to content

Commit

Permalink
Encapsulated share+storage info in a dedicated message
Browse files Browse the repository at this point in the history
  • Loading branch information
glpatcern committed Apr 3, 2024
1 parent 04a6b5f commit 44c33f8
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 6 deletions.
9 changes: 3 additions & 6 deletions cs3/gateway/v1beta1/gateway_api.proto
Original file line number Diff line number Diff line change
Expand Up @@ -546,16 +546,13 @@ message ListExistingReceivedSharesResponse {
// Opaque information.
cs3.types.v1beta1.Opaque opaque = 2;
// REQUIRED.
// The underlying shares as returned by the collaboration service.
repeated cs3.sharing.collaboration.v1beta1.ReceivedShare shares = 3;
// REQUIRED.
// The corresponding resource information as returned by the storage provider.
repeated cs3.storage.provider.v1beta1.ResourceInfo resource_infos = 4;
// The shares encapsulating both the share metadata and the storage metadata.
repeated SharedResourceInfo shares = 3;
// OPTIONAL.
// This field represents the pagination token to retrieve the next page of results.
// If the value is "", it means no further results for the request.
// see https://cloud.google.com/apis/design/design_patterns#list_pagination
string next_page_token = 5;
string next_page_token = 4;
}

message OpenInAppRequest {
Expand Down
15 changes: 15 additions & 0 deletions cs3/gateway/v1beta1/resources.proto
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ syntax = "proto3";
package cs3.gateway.v1beta1;

import "cs3/storage/provider/v1beta1/resources.proto";
import "cs3/sharing/collaboration/v1beta1/resources.proto";
import "cs3/types/v1beta1/types.proto";

option csharp_namespace = "Cs3.Gateway.V1Beta1";
Expand Down Expand Up @@ -75,3 +76,17 @@ message FileDownloadProtocol {
// Only makes sense for downloads passing through the data gateway.
string token = 4;
}

// A shared resource includes the sharing information
// and the storage-related information about a resource.
message SharedResourceInfo {
// OPTIONAL.
// Opaque information.
cs3.types.v1beta1.Opaque opaque = 1;
// REQUIRED.
// The underlying share as returned by the collaboration service.
cs3.sharing.collaboration.v1beta1.ReceivedShare share = 2;
// REQUIRED.
// The corresponding resource information as returned by the storage provider.
cs3.storage.provider.v1beta1.ResourceInfo resource_info = 3;
}

0 comments on commit 44c33f8

Please sign in to comment.