diff --git a/cs3/storage/provider/v1beta1/resources.proto b/cs3/storage/provider/v1beta1/resources.proto index 8b8cf0cf..28bef620 100644 --- a/cs3/storage/provider/v1beta1/resources.proto +++ b/cs3/storage/provider/v1beta1/resources.proto @@ -28,6 +28,7 @@ option java_package = "com.cs3.storage.provider.v1beta1"; option objc_class_prefix = "CSP"; option php_namespace = "Cs3\\Storage\\Provider\\V1Beta1"; +import "cs3/identity/group/v1beta1/resources.proto"; import "cs3/identity/user/v1beta1/resources.proto"; import "cs3/types/v1beta1/types.proto"; @@ -255,9 +256,9 @@ message Grantee { // REQUIRED. // The type of the grantee. GranteeType type = 1; + // REQUIRED. // The unique id for the grantee. - // For example, a group name, user name or uuid. - cs3.identity.user.v1beta1.UserId id = 2; + GranteeId grantee_id = 2; // OPTIONAL. // Opaque information such as UID or GID. cs3.types.v1beta1.Opaque opaque = 3; @@ -272,6 +273,18 @@ enum GranteeType { GRANTEE_TYPE_GROUP = 2; } +// The unique id for the grantee. +// For example, a group name, user name or uuid. +message GranteeId { + // One of the ids MUST be specified. + oneof id { + // The user id. + cs3.identity.user.v1beta1.UserId user_id = 1; + // The group id. + cs3.identity.group.v1beta1.GroupId group_id = 2; + } +} + // The information for a file version. // TODO(labkode): make size and mtime OPTIONAL? message FileVersion { diff --git a/docs/index.html b/docs/index.html index 6cefdc13..238a4487 100644 --- a/docs/index.html +++ b/docs/index.html @@ -1511,6 +1511,10 @@

Table of Contents

MGrantee +
  • + MGranteeId +
  • +
  • MRecycleItem
  • @@ -12806,11 +12810,11 @@

    Grantee

    - id - cs3.identity.user.v1beta1.UserId + grantee_id + GranteeId -

    The unique id for the grantee. -For example, a group name, user name or uuid.

    +

    REQUIRED. +The unique id for the grantee.

    @@ -12828,6 +12832,37 @@

    Grantee

    +

    GranteeId

    +

    The unique id for the grantee.

    For example, a group name, user name or uuid.

    + + + + + + + + + + + + + + + + + + + + + + + +
    FieldTypeLabelDescription
    user_idcs3.identity.user.v1beta1.UserId

    The user id.

    group_idcs3.identity.group.v1beta1.GroupId

    The group id.

    + + + + +

    RecycleItem

    A recycle item represents the information

    of a deleted resource.

    diff --git a/proto.lock b/proto.lock index 088cbc49..fa488d8d 100644 --- a/proto.lock +++ b/proto.lock @@ -6732,8 +6732,8 @@ }, { "id": 2, - "name": "id", - "type": "cs3.identity.user.v1beta1.UserId" + "name": "grantee_id", + "type": "GranteeId" }, { "id": 3, @@ -6742,6 +6742,21 @@ } ] }, + { + "name": "GranteeId", + "fields": [ + { + "id": 1, + "name": "user_id", + "type": "cs3.identity.user.v1beta1.UserId" + }, + { + "id": 2, + "name": "group_id", + "type": "cs3.identity.group.v1beta1.GroupId" + } + ] + }, { "name": "FileVersion", "fields": [ @@ -6863,6 +6878,9 @@ { "path": "cs3/identity/user/v1beta1/resources.proto" }, + { + "path": "cs3/identity/group/v1beta1/resources.proto" + }, { "path": "cs3/types/v1beta1/types.proto" }