public static final class PartsGetPartsRequest.Builder extends Object
| Modifier and Type | Method | Description |
|---|---|---|
PartsGetPartsResponse |
call(OnshapeDocument document) |
Calls getParts method, Get list of parts
|
PartsGetPartsResponse |
call(String did,
WVM wvmType,
String wvm) |
Calls getParts method, Get list of parts
|
Boolean |
includeFlatParts() |
Get Whether or not to include flattened sheet metal parts
|
PartsGetPartsRequest.Builder |
includeFlatParts(Boolean value) |
Set Whether or not to include flattened sheet metal parts
|
Boolean |
includePropertyDefaults() |
Get If true, include metadata schema property defaults in response
|
PartsGetPartsRequest.Builder |
includePropertyDefaults(Boolean value) |
Set If true, include metadata schema property defaults in response
|
String |
linkDocumentId() |
Get Id of document that links to the document being accessed.
|
PartsGetPartsRequest.Builder |
linkDocumentId(String value) |
Set Id of document that links to the document being accessed.
|
Boolean |
withThumbnails() |
Get Whether or not to include thumbnails (not supported for microversion)
|
PartsGetPartsRequest.Builder |
withThumbnails(Boolean value) |
Set Whether or not to include thumbnails (not supported for microversion)
|
public final Boolean withThumbnails()
public final PartsGetPartsRequest.Builder withThumbnails(Boolean value)
value - Whether or not to include thumbnails (not supported for microversion)public final Boolean includeFlatParts()
public final PartsGetPartsRequest.Builder includeFlatParts(Boolean value)
value - Whether or not to include flattened sheet metal partspublic final String linkDocumentId()
public final PartsGetPartsRequest.Builder linkDocumentId(String value)
value - Id of document that links to the document being accessed. This may provide additional access rights to the document. Allowed only with version (v) path parameter.public final Boolean includePropertyDefaults()
public final PartsGetPartsRequest.Builder includePropertyDefaults(Boolean value)
value - If true, include metadata schema property defaults in responsepublic final PartsGetPartsResponse call(String did, WVM wvmType, String wvm) throws OnshapeException
did - Document IDwvmType - Type of Workspace, Version or Microversionwvm - Workspace (w), Version (v) or Microversion (m) IDOnshapeException - On HTTP or serialization errorpublic final PartsGetPartsResponse call(OnshapeDocument document) throws OnshapeException
document - Document object from Onshape URL.OnshapeException - On HTTP or serialization errorCopyright © 2021. All rights reserved.