diff --git a/cs3/gateway/v1beta1/gateway_api.proto b/cs3/gateway/v1beta1/gateway_api.proto index 7749675..503e62b 100644 --- a/cs3/gateway/v1beta1/gateway_api.proto +++ b/cs3/gateway/v1beta1/gateway_api.proto @@ -292,6 +292,9 @@ service GatewayAPI { // Gets share information for a single share. // MUST return CODE_NOT_FOUND if the share reference does not exist. rpc GetOCMShare(cs3.sharing.ocm.v1beta1.GetOCMShareRequest) returns (cs3.sharing.ocm.v1beta1.GetOCMShareResponse); + // Gets share information for a single share by its unlisted token. + // MUST return CODE_NOT_FOUND if the share does not exist. + rpc GetOCMShareByToken(cs3.sharing.ocm.v1beta1.GetOCMShareByTokenRequest) returns (cs3.sharing.ocm.v1beta1.GetOCMShareByTokenResponse); // List the shares the authproviderenticated principal has created, // both as owner and creator. If a filter is specified, only // shares satisfying the filter MUST be returned. diff --git a/cs3/sharing/ocm/v1beta1/ocm_api.proto b/cs3/sharing/ocm/v1beta1/ocm_api.proto index d6d3d7e..04c82d7 100644 --- a/cs3/sharing/ocm/v1beta1/ocm_api.proto +++ b/cs3/sharing/ocm/v1beta1/ocm_api.proto @@ -66,6 +66,9 @@ service OcmAPI { // Gets share information for a single share. // MUST return CODE_NOT_FOUND if the share reference does not exist. rpc GetOCMShare(GetOCMShareRequest) returns (GetOCMShareResponse); + // Gets share information for a single share by its unlisted token. + // MUST return CODE_NOT_FOUND if the share does not exist. + rpc GetOCMShareByToken(GetOCMShareByTokenRequest) returns (GetOCMShareByTokenResponse); // List the shares the authenticated principal has created, // both as owner and creator. If a filter is specified, only // shares satisfying the filter MUST be returned. @@ -244,6 +247,21 @@ message GetOCMShareResponse { Share share = 3; } +message GetOCMShareByTokenRequest { + // REQUIRED. + // The unlisted token to identify the public share. + string token = 1; +} + +message GetOCMShareByTokenResponse { + // REQUIRED. + // The response status. + cs3.rpc.v1beta1.Status status = 1; + // REQUIRED. + // The share. + Share share = 2; +} + message ListReceivedOCMSharesRequest { // OPTIONAL. // Opaque information. diff --git a/docs/index.html b/docs/index.html index 6a471db..d2976f3 100644 --- a/docs/index.html +++ b/docs/index.html @@ -1434,6 +1434,14 @@

Table of Contents

MCreateOCMShareResponse +
  • + MGetOCMShareByTokenRequest +
  • + +
  • + MGetOCMShareByTokenResponse +
  • +
  • MGetOCMShareRequest
  • @@ -3022,6 +3030,14 @@

    GatewayAPI

    MUST return CODE_NOT_FOUND if the share reference does not exist.

    + + GetOCMShareByToken + .cs3.sharing.ocm.v1beta1.GetOCMShareByTokenRequest + .cs3.sharing.ocm.v1beta1.GetOCMShareByTokenResponse +

    Gets share information for a single share by its unlisted token. +MUST return CODE_NOT_FOUND if the share does not exist.

    + + ListOCMShares .cs3.sharing.ocm.v1beta1.ListOCMSharesRequest @@ -12647,6 +12663,64 @@

    CreateOCMShareResponseGetOCMShareByTokenRequest

    +

    + + + + + + + + + + + + + + + + +
    FieldTypeLabelDescription
    tokenstring

    REQUIRED. +The unlisted token to identify the public share.

    + + + + + +

    GetOCMShareByTokenResponse

    +

    + + + + + + + + + + + + + + + + + + + + + + + +
    FieldTypeLabelDescription
    statuscs3.rpc.v1beta1.Status

    REQUIRED. +The response status.

    shareShare

    REQUIRED. +The share.

    + + + + +

    GetOCMShareRequest

    @@ -12826,10 +12900,11 @@

    ListOCMSharesRequest

    int32

    OPTIONAL. -Clients use this field to specify the maximum number of results to be returned by the server. -The server may further constrain the maximum number of results returned in a single page. -If the page_size is 0, the server will decide the number of results to be returned. -see https://cloud.google.com/apis/design/design_patterns#list_pagination

    +Clients use this field to specify the maximum number of results to be +returned by the server. The server may further constrain the maximum number +of results returned in a single page. If the page_size is 0, the server +will decide the number of results to be returned. see +https://cloud.google.com/apis/design/design_patterns#list_pagination

    @@ -12931,8 +13006,8 @@

    ListOCMSharesResponse

    string

    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. +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

    @@ -12966,10 +13041,11 @@

    ListReceivedOCMSha int32

    OPTIONAL. -Clients use this field to specify the maximum number of results to be returned by the server. -The server may further constrain the maximum number of results returned in a single page. -If the page_size is 0, the server will decide the number of results to be returned. -see https://cloud.google.com/apis/design/design_patterns#list_pagination

    +Clients use this field to specify the maximum number of results to be +returned by the server. The server may further constrain the maximum number +of results returned in a single page. If the page_size is 0, the server +will decide the number of results to be returned. see +https://cloud.google.com/apis/design/design_patterns#list_pagination

    @@ -13026,8 +13102,8 @@

    ListReceivedOCMSh string

    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. +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

    @@ -13240,7 +13316,8 @@

    UpdateReceivedOCM google.protobuf.FieldMask

    The update mask applies to the resource. For the `FieldMask` definition, -see https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask

    +see +https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask

    @@ -13356,9 +13433,9 @@

    OcmAPI

    CreateOCMShareResponse

    Creates a new ocm share. MUST return CODE_NOT_FOUND if the resource reference does not exist. -MUST return CODE_ALREADY_EXISTS if the share already exists for the 4-tuple consisting of -(owner, shared_resource, grantee). -New shares MUST be created in the state SHARE_STATE_PENDING.

    +MUST return CODE_ALREADY_EXISTS if the share already exists for the 4-tuple +consisting of (owner, shared_resource, grantee). New shares MUST be created +in the state SHARE_STATE_PENDING.

    @@ -13377,6 +13454,14 @@

    OcmAPI

    MUST return CODE_NOT_FOUND if the share reference does not exist.

    + + GetOCMShareByToken + GetOCMShareByTokenRequest + GetOCMShareByTokenResponse +

    Gets share information for a single share by its unlisted token. +MUST return CODE_NOT_FOUND if the share does not exist.

    + + ListOCMShares ListOCMSharesRequest