public static final class BlobElementsUploadFileUpdateElementRequest.Builder extends Object
| Modifier and Type | Method | Description |
|---|---|---|
Boolean |
allowFaultyParts() |
Get If not specified or if specified as false, bodies to be imported are examined for validity and any found to be faulty are removed from the import.
|
BlobElementsUploadFileUpdateElementRequest.Builder |
allowFaultyParts(Boolean value) |
Set If not specified or if specified as false, bodies to be imported are examined for validity and any found to be faulty are removed from the import.
|
BlobElementsUploadFileUpdateElementResponse |
call(OnshapeDocument document) |
Calls uploadFileUpdateElement method, Update a blob element by uploading a file.
|
BlobElementsUploadFileUpdateElementResponse |
call(String did,
String wid,
String eid) |
Calls uploadFileUpdateElement method, Update a blob element by uploading a file.
|
Boolean |
createComposite() |
Get If the value is specified as true, each part studio contains a single composite part made up of all its topologies.
|
BlobElementsUploadFileUpdateElementRequest.Builder |
createComposite(Boolean value) |
Set If the value is specified as true, each part studio contains a single composite part made up of all its topologies.
|
String |
encodedFilename() |
Get Filename override interpreted as a URL-encoded string.
|
BlobElementsUploadFileUpdateElementRequest.Builder |
encodedFilename(String value) |
Set Filename override interpreted as a URL-encoded string.
|
Blob |
file() |
Get File data to upload.
|
BlobElementsUploadFileUpdateElementRequest.Builder |
file(Blob value) |
Set File data to upload.
|
Number |
fileContentLength() |
Get The length of the file being uploaded, in bytes.
|
BlobElementsUploadFileUpdateElementRequest.Builder |
fileContentLength(Number value) |
Set The length of the file being uploaded, in bytes.
|
Boolean |
flattenAssemblies() |
Get If true, remove assembly structure and create only a Part Studio
|
BlobElementsUploadFileUpdateElementRequest.Builder |
flattenAssemblies(Boolean value) |
Set If true, remove assembly structure and create only a Part Studio
|
Boolean |
importInBackground() |
Get If storeInDocument is true and formatName is ONSHAPE and the source is a Parasolid file, this specifies the preference as to whether the import should be completed prior to the completion of the request (importInBackground=false) or whether it should be performed asynchronously (importInBackground=true).
|
BlobElementsUploadFileUpdateElementRequest.Builder |
importInBackground(Boolean value) |
Set If storeInDocument is true and formatName is ONSHAPE and the source is a Parasolid file, this specifies the preference as to whether the import should be completed prior to the completion of the request (importInBackground=false) or whether it should be performed asynchronously (importInBackground=true).
|
String |
parentChangeId() |
Get The element microversion of the blob element that will be updated.
|
BlobElementsUploadFileUpdateElementRequest.Builder |
parentChangeId(String value) |
Set The element microversion of the blob element that will be updated.
|
Boolean |
translate() |
Get Whether the uploaded file should be translated to Onshape format, if possible
|
BlobElementsUploadFileUpdateElementRequest.Builder |
translate(Boolean value) |
Set Whether the uploaded file should be translated to Onshape format, if possible
|
Boolean |
yAxisIsUp() |
Get If true, treat the model's Y axis as the vertical axis.
|
BlobElementsUploadFileUpdateElementRequest.Builder |
yAxisIsUp(Boolean value) |
Set If true, treat the model's Y axis as the vertical axis.
|
public final Blob file()
public final BlobElementsUploadFileUpdateElementRequest.Builder file(Blob value)
value - File data to upload. This field should normally have a Content-Disposition header field with a "filename" attribute, naming the uploaded file.public final String encodedFilename()
public final BlobElementsUploadFileUpdateElementRequest.Builder encodedFilename(String value)
value - Filename override interpreted as a URL-encoded string. If specified, this overrides the filename from a Content-Disposition in the file field.public final Number fileContentLength()
public final BlobElementsUploadFileUpdateElementRequest.Builder fileContentLength(Number value)
value - The length of the file being uploaded, in bytes. If not present, Onshape may restrict the upload size under some operating conditions, as the file contents may need to be buffered in memory. If specified, it should be the actual length of the data being uploaded.public final Boolean translate()
public final BlobElementsUploadFileUpdateElementRequest.Builder translate(Boolean value)
value - Whether the uploaded file should be translated to Onshape format, if possiblepublic final Boolean flattenAssemblies()
public final BlobElementsUploadFileUpdateElementRequest.Builder flattenAssemblies(Boolean value)
value - If true, remove assembly structure and create only a Part Studiopublic final Boolean yAxisIsUp()
public final BlobElementsUploadFileUpdateElementRequest.Builder yAxisIsUp(Boolean value)
value - If true, treat the model's Y axis as the vertical axis. Otherwise, Z is treated as the vertical axis.public final Boolean importInBackground()
public final BlobElementsUploadFileUpdateElementRequest.Builder importInBackground(Boolean value)
value - If storeInDocument is true and formatName is ONSHAPE and the source is a Parasolid file, this specifies the preference as to whether the import should be completed prior to the completion of the request (importInBackground=false) or whether it should be performed asynchronously (importInBackground=true). Historically, this parameter was implicitly set to false, but large imports can take long enough that the request could result in a timeout. Applications are encouraged to set this parameter to true for reliable operation.public final Boolean allowFaultyParts()
public final BlobElementsUploadFileUpdateElementRequest.Builder allowFaultyParts(Boolean value)
value - If not specified or if specified as false, bodies to be imported are examined for validity and any found to be faulty are removed from the import. If all bodies are found to be faulty, the import fails. If the value is specified as true, we attempt to import the bodies that appear to have faults.public final Boolean createComposite()
public final BlobElementsUploadFileUpdateElementRequest.Builder createComposite(Boolean value)
value - If the value is specified as true, each part studio contains a single composite part made up of all its topologies.public final String parentChangeId()
public final BlobElementsUploadFileUpdateElementRequest.Builder parentChangeId(String value)
value - The element microversion of the blob element that will be updated. If the requested mv doesn't match the workspace mv, this call will result in a 400. The element microversionId can be retrieved from documents:getElementList.public final BlobElementsUploadFileUpdateElementResponse call(String did, String wid, String eid) throws OnshapeException
did - Document IDwid - Workspace IDeid - Element IDOnshapeException - On HTTP or serialization errorpublic final BlobElementsUploadFileUpdateElementResponse call(OnshapeDocument document) throws OnshapeException
document - Document object from Onshape URL.OnshapeException - On HTTP or serialization errorCopyright © 2021. All rights reserved.