public static final class MetadataGetMetadataSchemaRequest.Builder extends Object
| Modifier and Type | Method | Description |
|---|---|---|
MetadataGetMetadataSchemaResponse |
call(String ownerId,
Number objectType) |
Calls getMetadataSchema method, Get metadata schema, or Onshape schema if user/company has no schema for the given object type
|
String |
documentId() |
Get ID of the document the schema is associated with.
|
MetadataGetMetadataSchemaRequest.Builder |
documentId(String value) |
Set ID of the document the schema is associated with.
|
Number |
ownerType() |
Get Schema owner type, which can be: 1:company 2:onshape (default: 1)
|
MetadataGetMetadataSchemaRequest.Builder |
ownerType(Number value) |
Set Schema owner type, which can be: 1:company 2:onshape (default: 1)
|
public final Number ownerType()
public final MetadataGetMetadataSchemaRequest.Builder ownerType(Number value)
value - Schema owner type, which can be: 1:company 2:onshape (default: 1)public final String documentId()
public final MetadataGetMetadataSchemaRequest.Builder documentId(String value)
value - ID of the document the schema is associated with.public final MetadataGetMetadataSchemaResponse call(String ownerId, Number objectType) throws OnshapeException
ownerId - Schema owner ID (Default: null)objectType - Metadata object type, which can be: 0:GLOBAL, 1:DOCUMENT, 2:PART, 3:ASSEMBLY, 4:DRAWING, 5:PART_STUDIO, 6: BLOB_ELEMENT, 7:APP_ELEMENT, 8:VERSION, 9:WORKSPACE (Default: null)OnshapeException - On HTTP or serialization errorCopyright © 2021. All rights reserved.