Get desktop application:
View/edit binary Protocol Buffers messages
User Share Provider API The User Share Provider API is meant to manipulate share resources for a specific share type (user or group) from the perspective of the creator of the share and from the perspective of the recipient, both known to the local system. See OCM for remote shares. The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", "SHOULD", "SHOULD NOT", "RECOMMENDED", "MAY", and "OPTIONAL" in this document are to be interpreted as described in RFC 2119. The following are global requirements that apply to all methods: Any method MUST return CODE_OK on a succesful operation. Any method MAY return NOT_IMPLEMENTED. Any method MAY return INTERNAL. Any method MAY return UNKNOWN. Any method MAY return UNAUTHENTICATED.
Used as request type in: gateway.v1beta1.GatewayAPI.CreateShare, CollaborationAPI.CreateShare
OPTIONAL. Opaque information.
REQUIRED. The information of the resource to be shared.
REQUIRED. The share grant for the share.
Used as response type in: gateway.v1beta1.GatewayAPI.CreateShare, CollaborationAPI.CreateShare
REQUIRED. The response status.
OPTIONAL. Opaque information.
REQUIRED. The created share.
Represents a filter to apply to the request.
Used in: ,
REQUIRED.
Used with TYPE_SPACE_ROOT.
The filter to apply.
Used in:
Filter shares by whether the shared resource is a space root. When the term `space_root` is true, only shares on space roots are returned. When false, shares on space roots are excluded.
Used as request type in: gateway.v1beta1.GatewayAPI.GetReceivedShare, CollaborationAPI.GetReceivedShare
OPTIONAL. Opaque information.
REQUIRED. The reference of the received share.
Used as response type in: gateway.v1beta1.GatewayAPI.GetReceivedShare, CollaborationAPI.GetReceivedShare
REQUIRED. The response status.
OPTIONAL. Opaque information.
REQUIRED. The share.
Used as request type in: gateway.v1beta1.GatewayAPI.GetShare, CollaborationAPI.GetShare
OPTIONAL. Opaque information.
REQUIRED. The reference to which the action should be performed.
Used as response type in: gateway.v1beta1.GatewayAPI.GetShare, CollaborationAPI.GetShare
REQUIRED. The response status.
OPTIONAL. Opaque information.
REQUIRED. The share.
Used as request type in: gateway.v1beta1.GatewayAPI.ListExistingReceivedShares, gateway.v1beta1.GatewayAPI.ListReceivedShares, CollaborationAPI.ListReceivedShares
OPTIONAL. Opaque information.
OPTIONAL. The list of filters to apply if any.
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
OPTIONAL. The client uses this field to request a specific page of the list results.
Used as response type in: gateway.v1beta1.GatewayAPI.ListReceivedShares, CollaborationAPI.ListReceivedShares
REQUIRED. The response status.
OPTIONAL. Opaque information.
REQUIRED. The list of received shares.
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
Used as request type in: gateway.v1beta1.GatewayAPI.ListExistingShares, gateway.v1beta1.GatewayAPI.ListShares, CollaborationAPI.ListShares
OPTIONAL. Opaque information.
OPTIONAL. The list of filters to apply if any.
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
OPTIONAL. The client uses this field to request a specific page of the list results.
Used as response type in: gateway.v1beta1.GatewayAPI.ListShares, CollaborationAPI.ListShares
REQUIRED. The response status.
OPTIONAL. Opaque information.
REQUIRED. The list of shares.
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
A received share is the share that a grantee will receive. It expands the original share by adding state to the share, a display name from the perspective of the grantee and a resource mount point in case the share will be mounted in a storage provider.
Used in: , , , ,
REQUIRED.
REQUIRED. The state of the share.
REQUIRED. The mount point of the share.
OPTIONAL. Flag to hide the share, defaults to false.
OPTIONAL. An alternate identifier to allow a recipient to rename the share. If missing, use the original folder name.
Used as request type in: gateway.v1beta1.GatewayAPI.RemoveShare, CollaborationAPI.RemoveShare
OPTIONAL. Opaque information.
REQUIRED. The reference to which the action should be performed.
Used as response type in: gateway.v1beta1.GatewayAPI.RemoveShare, CollaborationAPI.RemoveShare
REQUIRED. The response status.
OPTIONAL. Opaque information.
Shares are relationships between a resource owner (usually the authenticated user) who grants permissions to a recipient (grantee) on a specified resource (resource_id). UserShares represents both user and groups.
Used in: , , , , , ,
REQUIRED. Opaque unique identifier of the share.
REQUIRED. Unique identifier of the shared resource.
REQUIRED. Permissions for the grantee to use the resource.
REQUIRED. The receiver of the share, like a user, group ...
REQUIRED. Uniquely identifies the owner of the share (the resource owner at the time of creating the share). In case the ownership of the underlying resource changes the share owner field MAY change to reflect the change of ownsership.
REQUIRED. Uniquely identifies a principal who initiates the share creation. A creator can create shares on behalf of the owner (because of re-sharing, because belonging to special groups, ...). Creator and owner often result in being the same principal.
REQUIRED. Creation time of the share.
REQUIRED. Last modification time of the share.
OPTIONAL. The expiration time of the share.
OPTIONAL. A user-defined description for the share.
A share grant specifies the share permissions for a grantee.
Used in:
REQUIRED. The grantee of the grant.
REQUIRED. The share permissions for the grant.
OPTIONAL Expiration of the grant.
A share id identifies uniquely a // share in the share provider namespace. A ShareId MUST be unique inside the share provider.
Used in: ,
REQUIRED. The internal id used by service implementor to uniquely Collaboration the share in the internal implementation of the service.
Uniquely identifies a share in the share provider. A share MUST be uniquely identify by four (4) elements: 1) The share provider id 2) The owner of the share 3) The resource id 4) The grantee for the share This 4-tuple MUST be unique. For example, owner Alice shares the resource /home/docs with id home:1234 to an user named Bob. The 4-tuple will consist of 1) The share provider id = "user" 2) The owner of the share = "Alice" 3) The resource id = "home:1234" 4) The grantee for the share = Grantee("type" = "user", "" => "Bob")
Used in:
REQUIRED.
REQUIRED.
REQUIRED.
The permissions for a share.
Used in: , ,
TODO(labkode): additional permissions for shares like re-sharing and denying
The mechanism to identify a share in the share provider namespace.
Used in: , , ,
REQUIRED. One of the specifications MUST be specified.
The id of the share.
The combination of fields that make the share unique.
The state of the share.
Used in: ,
The share is no longer valid, for example, the share expired.
New shares MUST be created in the SHARE_STATE_PENDING state. This state means the share is pending to be accepted or rejected by the recipient of the share.
The recipient of the share has accepted the share.
The recipient of the share has rejected the share. Does not mean the share is removed, the recipient MAY change the state to accepted or pending.
TODO(labkode): clean up display_name ? we'll use storage links for that.
Used as request type in: gateway.v1beta1.GatewayAPI.UpdateReceivedShare, CollaborationAPI.UpdateReceivedShare
OPTIONAL. Opaque information.
REQUIRED. The received share to update.
The update mask applies to the resource. For the `FieldMask` definition, see https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask
Used as response type in: gateway.v1beta1.GatewayAPI.UpdateReceivedShare, CollaborationAPI.UpdateReceivedShare
REQUIRED. The response status.
OPTIONAL. Opaque information.
REQUIRED. The updated share.
Used as request type in: gateway.v1beta1.GatewayAPI.UpdateShare, CollaborationAPI.UpdateShare
OPTIONAL. Opaque information.
REQUIRED. Deprecated use the share and update_mask attribute.
REQUIRED. Deprecated use the share and update_mask attribute.
The update mask applies to the resource. For the `FieldMask` definition, see https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask
REQUIRED. The share containing the new data
REQUIRED.
Used in:
One of the update fields MUST be specified.
Update the permissions.
Update the display name.
Update the expiration time.
Used as response type in: gateway.v1beta1.GatewayAPI.UpdateShare, CollaborationAPI.UpdateShare
REQUIRED. The response status.
OPTIONAL. Opaque information.
REQUIRED. The updated share.