From 0a15f24ea3b29426c38b83f3678fa086f9766686 Mon Sep 17 00:00:00 2001 From: Hugo Labrador Date: Tue, 27 Aug 2019 14:02:21 +0200 Subject: [PATCH] Add CreateReference method to StorageProviderService (#29) * Add operation redirects: Code.CODE_REDIRECT and Status.target_uri * add CreateReference method for storage provider --- .../v0alpha/storageprovider.proto | 21 +++++ docs/index.html | 82 +++++++++++++++++++ 2 files changed, 103 insertions(+) diff --git a/cs3/storageprovider/v0alpha/storageprovider.proto b/cs3/storageprovider/v0alpha/storageprovider.proto index e9ad744..e867088 100644 --- a/cs3/storageprovider/v0alpha/storageprovider.proto +++ b/cs3/storageprovider/v0alpha/storageprovider.proto @@ -132,6 +132,9 @@ service StorageProviderService { // MUST return CODE_NOT_FOUND if the reference does not exist. // MUST return CODE_PRECONDITION_FAILED if the acl does not exist. rpc UpdateGrant(UpdateGrantRequest) returns (UpdateGrantResponse); + // Creates a reference to another resource in the same cluster or another domain (OCM shares). + // The references resource can be accessed by the protocol specificied in the request message. + rpc CreateReference(CreateReferenceRequest) returns (CreateReferenceResponse); } message AddGrantRequest { @@ -593,3 +596,21 @@ message UpdateGrantResponse { // Opaque information. cs3.types.Opaque opaque = 2; } + +message CreateReferenceRequest { + // OPTIONAL. + // Opaque information. + cs3.types.Opaque opaque = 1; + // REQUIRED. + // The reference resource by RFC3986. + string target_uri = 2; +} + +message CreateReferenceResponse { + // REQUIRED. + // The response status. + cs3.rpc.Status status = 1; + // OPTIONAL. + // Opaque information. + cs3.types.Opaque opaque = 2; +} diff --git a/docs/index.html b/docs/index.html index 13cf8ea..0a920b3 100644 --- a/docs/index.html +++ b/docs/index.html @@ -727,6 +727,14 @@

Table of Contents

MCreateContainerResponse +
  • + MCreateReferenceRequest +
  • + +
  • + MCreateReferenceResponse +
  • +
  • MDeleteRequest
  • @@ -5364,6 +5372,72 @@

    CreateContainerRespo +

    CreateReferenceRequest

    +

    + + + + + + + + + + + + + + + + + + + + + + + +
    FieldTypeLabelDescription
    opaquecs3.types.Opaque

    OPTIONAL. +Opaque information.

    target_uristring

    REQUIRED. +The reference resource by RFC3986.

    + + + + + +

    CreateReferenceResponse

    +

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

    REQUIRED. +The response status.

    opaquecs3.types.Opaque

    OPTIONAL. +Opaque information.

    + + + + +

    DeleteRequest

    @@ -6997,6 +7071,14 @@

    StorageProviderServic MUST return CODE_PRECONDITION_FAILED if the acl does not exist.

    + + CreateReference + CreateReferenceRequest + CreateReferenceResponse +

    Creates a reference to another resource in the same cluster or another domain (OCM shares). +The references resource can be accessed by the protocol specificied in the request message.

    + +