public class AssetStructureClient extends MindsphereAPIClient
| Modifier and Type | Class and Description |
|---|---|
static class |
AssetStructureClient.ClientBuilder |
MindsphereAPIClient.Builder<T extends MindsphereAPIClient.Builder<T>>credentials, restClientConfig, restTemplate| Modifier | Constructor and Description |
|---|---|
protected |
AssetStructureClient(AssetStructureClient.ClientBuilder builder) |
| Modifier and Type | Method and Description |
|---|---|
static AssetStructureClient.ClientBuilder |
builder() |
StructureAspects |
getAspects(String id)
Get all static and dynamic aspects of a given asset
|
StructureAspects |
getAspects(String id,
Integer page,
Integer size)
Get all static and dynamic aspects of a given asset
|
StructureAspects |
getAspects(String id,
Integer page,
Integer size,
String sort,
String filter,
String ifNoneMatch)
Get all static and dynamic aspects of a given asset
|
StructureAspects |
getAspects(String id,
String sort,
String filter)
Get all static and dynamic aspects of a given asset
|
StructureVariables |
getVariables(String id)
Get all variables of a given asset including inherited ones
|
StructureVariables |
getVariables(String id,
Integer page,
Integer size)
Get all variables of a given asset including inherited ones
|
StructureVariables |
getVariables(String id,
Integer page,
Integer size,
String sort,
String filter,
String ifNoneMatch)
Get all variables of a given asset including inherited ones
|
StructureVariables |
getVariables(String id,
String sort,
String filter)
Get all variables of a given asset including inherited ones
|
protected AssetStructureClient(AssetStructureClient.ClientBuilder builder)
public static AssetStructureClient.ClientBuilder builder()
public StructureVariables getVariables(String id, Integer page, Integer size, String sort, String filter, String ifNoneMatch) throws MindsphereException
Response Status Codes
200 - Variables of the given asset matched by the given filter criteria
304 - Resource variables have not been modified
400 - Bad request, in case of invalid parameters
401 - User is not authenticated
403 - User is not authorized for request
404 - Asset not found
500 - Server error, for more information see error-code and message
id - Unique identifierpage - Specifies the requested page indexsize - Specifies the number of elements in a pagesort - Specifies the ordering of returned elementsfilter - Specifies the additional filtering criteria, e.g. "{\"name\":\"variable_name\"}" or as an encoded string, "%7B%22name%22:%22variable_name%22%7D"ifNoneMatch - ETag hash of previous request to allow cachingMindsphereException - thrown if an error occurs while attempting to invoke the APIpublic StructureVariables getVariables(String id) throws MindsphereException
Response Status Codes
200 - Variables of the given asset matched by the given filter criteria
304 - Resource variables have not been modified
400 - Bad request, in case of invalid parameters
401 - User is not authenticated
403 - User is not authorized for request
404 - Asset not found
500 - Server error, for more information see error-code and message
id - Unique identifierMindsphereServiceException - thrown if an error occurs while attempting to invoke the APIMindsphereExceptionpublic StructureVariables getVariables(String id, Integer page, Integer size) throws MindsphereException
Response Status Codes
200 - Variables of the given asset matched by the given filter criteria
304 - Resource variables have not been modified
400 - Bad request, in case of invalid parameters
401 - User is not authenticated
403 - User is not authorized for request
404 - Asset not found
500 - Server error, for more information see error-code and message
id - Unique identifierpage - Specifies the requested page indexsize - Specifies the number of elements in a pageMindsphereServiceException - thrown if an error occurs while attempting to invoke the APIMindsphereExceptionpublic StructureVariables getVariables(String id, String sort, String filter) throws MindsphereException
Response Status Codes
200 - Variables of the given asset matched by the given filter criteria
304 - Resource variables have not been modified
400 - Bad request, in case of invalid parameters
401 - User is not authenticated
403 - User is not authorized for request
404 - Asset not found
500 - Server error, for more information see error-code and message
id - Unique identifiersort - Specifies the ordering of returned elementsfilter - Specifies the additional filtering criteria, e.g. "{\"name\":\"variable_name\"}" or as an encoded string, "%7B%22name%22:%22variable_name%22%7D"MindsphereServiceException - thrown if an error occurs while attempting to invoke the APIMindsphereExceptionpublic StructureAspects getAspects(String id, Integer page, Integer size, String sort, String filter, String ifNoneMatch) throws MindsphereException
Response Status Codes
200 - Static and dynamic aspects of the given asset matched by the given filter criteria
304 - Resource aspects have not been modified
400 - Bad request, in case of invalid parameters
401 - User is not authenticated
403 - User is not authorized for request
404 - Asset not found
500 - Server error, for more information see error-code and message
id - Unique identifierpage - Specifies the requested page indexsize - Specifies the number of elements in a pagesort - Specifies the ordering of returned elementsfilter - Specifies the additional filtering criteria, e.g. "{\"name\":\"aspect_name\"}" or as an encoded string, "%7B%22name%22:%22aspect_name%22%7D"ifNoneMatch - ETag hash of previous request to allow cachingMindsphereException - thrown if an error occurs while attempting to invoke the APIpublic StructureAspects getAspects(String id) throws MindsphereException
Response Status Codes
200 - Static and dynamic aspects of the given asset matched by the given filter criterias
304 - Resource aspects have not been modified
400 - Bad request, in case of invalid parameters
401 - User is not authenticated
403 - User is not authorized for request
404 - Asset not found
500 - Server error, for more information see errorcode and message
id - Unique identifierMindsphereServiceException - thrown if an error occurs while attempting to invoke the APIMindsphereExceptionpublic StructureAspects getAspects(String id, Integer page, Integer size) throws MindsphereException
Response Status Codes
200 - Static and dynamic aspects of the given asset matched by the given filter criterias
304 - Resource aspects have not been modified
400 - Bad request, in case of invalid parameters
401 - User is not authenticated
403 - User is not authorized for request
404 - Asset not found
500 - Server error, for more information see errorcode and message
id - Unique identifierpage - Specifies the requested page indexsize - Specifies the number of elements in a pageMindsphereServiceException - thrown if an error occurs while attempting to invoke the APIMindsphereExceptionpublic StructureAspects getAspects(String id, String sort, String filter) throws MindsphereException
Response Status Codes
200 - Static and dynamic aspects of the given asset matched by the given filter criteria
304 - Resource aspects have not been modified
400 - Bad request, in case of invalid parameters
401 - User is not authenticated
403 - User is not authorized for request
404 - Asset not found
500 - Server error, for more information see error-code and message
id - Unique identifiersort - Specifies the ordering of returned elementsfilter - Specifies the additional filtering criteria, e.g. "{\"name\":\"aspect_name\"}" or as an encoded string, "%7B%22name%22:%22aspect_name%22%7D"MindsphereServiceException - thrown if an error occurs while attempting to invoke the APIMindsphereException