public class AssetLocationClient extends MindsphereAPIClient
| Modifier and Type | Class and Description |
|---|---|
static class |
AssetLocationClient.ClientBuilder |
MindsphereAPIClient.Builder<T extends MindsphereAPIClient.Builder<T>>credentials, restClientConfig, restTemplate| Modifier | Constructor and Description |
|---|---|
protected |
AssetLocationClient(AssetLocationClient.ClientBuilder builder) |
| Modifier and Type | Method and Description |
|---|---|
static AssetLocationClient.ClientBuilder |
builder() |
void |
createOrUpdateAssetLocation(String id,
Location location,
String ifMatch)
Update location assigned to given asset.
|
AssetResource |
deleteAssetLocation(String id,
String ifMatch)
Delete location assigned to given asset.
|
protected AssetLocationClient(AssetLocationClient.ClientBuilder builder)
public static AssetLocationClient.ClientBuilder builder()
public AssetResource deleteAssetLocation(String id, String ifMatch) throws MindsphereException
Response Status Codes
200 - Location has been successfully deleted
401 - User is not authenticated
403 - User is not authorized for request
404 - Asset not found with given asset identifier
409 - Location not assigned to the given asset
500 - Server error, for more information see errorcode and message
id - Unique identifierifMatch - Last known version to facilitate optimistic lockingMindsphereException - thrown if an error occurs while attempting to invoke the APIpublic void createOrUpdateAssetLocation(String id,
Location location,
String ifMatch)
throws MindsphereException
Response Status Codes
200 - Location has been successfully created or updated
400 - Invalid request
401 - User is not authenticated
403 - User is not authorized for request
404 - Asset not found with given asset identifier
412 - Location is changed in the background
500 - Server error, for more information see errorcode and message
id - Unique identifierlocation - locationifMatch - Last known version to facilitate optimistic lockingMindsphereException - thrown if an error occurs while attempting to invoke the API