public static final class DocumentsShareDocumentRequest.Builder extends Object
| Modifier and Type | Method | Description |
|---|---|---|
DocumentsShareDocumentResponse |
call(OnshapeDocument document) |
Calls shareDocument method, Share document with one or more entities, which may be users, companies, teams or applications.
|
DocumentsShareDocumentResponse |
call(String did) |
Calls shareDocument method, Share document with one or more entities, which may be users, companies, teams or applications.
|
String |
documentId() |
Get The ID of the document to be shared.
|
DocumentsShareDocumentRequest.Builder |
documentId(String value) |
Set The ID of the document to be shared.
|
String |
elementId() |
Get The ID of an element within the document to share.
|
DocumentsShareDocumentRequest.Builder |
elementId(String value) |
Set The ID of an element within the document to share.
|
DocumentsShareDocumentRequestEntries[] |
entries() |
Get List of target entities to share with.
|
DocumentsShareDocumentRequest.Builder |
entries(DocumentsShareDocumentRequestEntries[] value) |
Set List of target entities to share with.
|
String |
message() |
Get An optional message to include in the share email.
|
DocumentsShareDocumentRequest.Builder |
message(String value) |
Set An optional message to include in the share email.
|
String[] |
permissionSet() |
Get The permissions to grant to the entities.
|
DocumentsShareDocumentRequest.Builder |
permissionSet(String[] value) |
Set The permissions to grant to the entities.
|
Boolean |
update() |
Get If true, indicates that the request is intended to be an update of existing share permissions for the entities in the entries list.
|
DocumentsShareDocumentRequest.Builder |
update(Boolean value) |
Set If true, indicates that the request is intended to be an update of existing share permissions for the entities in the entries list.
|
String |
workspaceId() |
Get The ID of a workspace for use as the scope of sharing.
|
DocumentsShareDocumentRequest.Builder |
workspaceId(String value) |
Set The ID of a workspace for use as the scope of sharing.
|
public final String documentId()
public final DocumentsShareDocumentRequest.Builder documentId(String value)
value - The ID of the document to be shared. Must match the document ID specified in the URL.public final String workspaceId()
public final DocumentsShareDocumentRequest.Builder workspaceId(String value)
value - The ID of a workspace for use as the scope of sharing. Used only to form URLs in a share email to the share recipient.public final String elementId()
public final DocumentsShareDocumentRequest.Builder elementId(String value)
value - The ID of an element within the document to share. Used only to form URLs in a share email to the share recipient.public final DocumentsShareDocumentRequestEntries[] entries()
public final DocumentsShareDocumentRequest.Builder entries(DocumentsShareDocumentRequestEntries[] value)
value - List of target entities to share with. Must not be empty.public final String[] permissionSet()
public final DocumentsShareDocumentRequest.Builder permissionSet(String[] value)
value - The permissions to grant to the entities. Must not be empty. The valid permissions are READ, WRITE, DELETE, RESHARE, COMMENT, LINK, COPY, OWNER. It is an error for a permission set to be specified that is identical to the current permissions for an entity in the entries list.public final Boolean update()
public final DocumentsShareDocumentRequest.Builder update(Boolean value)
value - If true, indicates that the request is intended to be an update of existing share permissions for the entities in the entries list.public final String message()
public final DocumentsShareDocumentRequest.Builder message(String value)
value - An optional message to include in the share email. This message has a maximum allowed size.public final DocumentsShareDocumentResponse call(String did) throws OnshapeException
did - Document IDOnshapeException - On HTTP or serialization errorpublic final DocumentsShareDocumentResponse call(OnshapeDocument document) throws OnshapeException
document - Document object from Onshape URL.OnshapeException - On HTTP or serialization errorCopyright © 2021. All rights reserved.