public static final class MetadataGetMetadataRequest.Builder extends Object
| Modifier and Type | Method | Description |
|---|---|---|
MetadataGetMetadataResponse |
call(OnshapeDocument document) |
Calls getMetadata method, Get workspace / version metadata
|
MetadataGetMetadataResponse |
call(String did,
WV wvType,
String wv) |
Calls getMetadata method, Get workspace / version metadata
|
String |
configuration() |
Get Configuration string
|
MetadataGetMetadataRequest.Builder |
configuration(String value) |
Set Configuration string
|
Number |
depth() |
Get Number of levels of hierarchy to populate in metadata REST API response, 1 - simple fields of top level object, 2 - collection and object fields in the top level object, etc.
|
MetadataGetMetadataRequest.Builder |
depth(Number value) |
Set Number of levels of hierarchy to populate in metadata REST API response, 1 - simple fields of top level object, 2 - collection and object fields in the top level object, etc.
|
Number |
detailLevel() |
Get Filter out metadata properties by detail level, 1 - fewer fields, ..., 5 - all fields.
|
MetadataGetMetadataRequest.Builder |
detailLevel(Number value) |
Set Filter out metadata properties by detail level, 1 - fewer fields, ..., 5 - all fields.
|
Number |
e_limit() |
Get Element page size, number of the items returned will not exceed this value
|
MetadataGetMetadataRequest.Builder |
e_limit(Number value) |
Set Element page size, number of the items returned will not exceed this value
|
Number |
e_offset() |
Get Element page offset
|
MetadataGetMetadataRequest.Builder |
e_offset(Number value) |
Set Element page offset
|
Boolean |
inferMetadataOwner() |
Get If the URL references a Standard Content part, specifying a value of true causes the API to use the owner of the referencing linkDocument as the metadata scope and the href of the returned part is modified to reflect this metadata scope.
|
MetadataGetMetadataRequest.Builder |
inferMetadataOwner(Boolean value) |
Set If the URL references a Standard Content part, specifying a value of true causes the API to use the owner of the referencing linkDocument as the metadata scope and the href of the returned part is modified to reflect this metadata scope.
|
String |
linkDocumentId() |
Get Id of document that links to the document being accessed.
|
MetadataGetMetadataRequest.Builder |
linkDocumentId(String value) |
Set Id of document that links to the document being accessed.
|
Boolean |
noNull() |
Get Filter out empty metadata properties if True.
|
MetadataGetMetadataRequest.Builder |
noNull(Boolean value) |
Set Filter out empty metadata properties if True.
|
Boolean |
thumbnail() |
Get Thumbnails information will be returned if true
|
MetadataGetMetadataRequest.Builder |
thumbnail(Boolean value) |
Set Thumbnails information will be returned if true
|
public final Number depth()
public final MetadataGetMetadataRequest.Builder depth(Number value)
value - Number of levels of hierarchy to populate in metadata REST API response, 1 - simple fields of top level object, 2 - collection and object fields in the top level object, etc.public final Number detailLevel()
public final MetadataGetMetadataRequest.Builder detailLevel(Number value)
value - Filter out metadata properties by detail level, 1 - fewer fields, ..., 5 - all fields.public final Boolean noNull()
public final MetadataGetMetadataRequest.Builder noNull(Boolean value)
value - Filter out empty metadata properties if True.public final Boolean thumbnail()
public final MetadataGetMetadataRequest.Builder thumbnail(Boolean value)
value - Thumbnails information will be returned if truepublic final Number e_offset()
public final MetadataGetMetadataRequest.Builder e_offset(Number value)
value - Element page offsetpublic final Number e_limit()
public final MetadataGetMetadataRequest.Builder e_limit(Number value)
value - Element page size, number of the items returned will not exceed this valuepublic final String linkDocumentId()
public final MetadataGetMetadataRequest.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 String configuration()
public final MetadataGetMetadataRequest.Builder configuration(String value)
value - Configuration stringpublic final Boolean inferMetadataOwner()
public final MetadataGetMetadataRequest.Builder inferMetadataOwner(Boolean value)
value - If the URL references a Standard Content part, specifying a value of true causes the API to use the owner of the referencing linkDocument as the metadata scope and the href of the returned part is modified to reflect this metadata scope. If not explictly set or if set to false, the part metadata returned is the metadata defined internal to the Standard Content document.public final MetadataGetMetadataResponse call(String did, WV wvType, String wv) throws OnshapeException
did - Document IDwvType - Type of Workspace or Versionwv - Workspace (w) or Version (v) IDOnshapeException - On HTTP or serialization errorpublic final MetadataGetMetadataResponse call(OnshapeDocument document) throws OnshapeException
document - Document object from Onshape URL.OnshapeException - On HTTP or serialization errorCopyright © 2021. All rights reserved.