public class AssettypeClient extends MindsphereAPIClient
Modifier and Type | Class and Description |
---|---|
static class |
AssettypeClient.ClientBuilder |
MindsphereAPIClient.Builder<T extends MindsphereAPIClient.Builder<T>>
credentials, restClientConfig, restTemplate
Constructor and Description |
---|
AssettypeClient(AssettypeClient.ClientBuilder builder) |
Modifier and Type | Method and Description |
---|---|
static AssettypeClient.ClientBuilder |
builder() |
void |
deleteAssetType(DeleteAssetTypeRequest requestObject)
Delete an asset type
Deletes an asset type.
|
void |
deleteAssetType(String ifMatch,
String id)
Delete an asset type Deletes an asset type.
|
AssetTypeResource |
deleteAssetTypeFileAssignment(DeleteAssetTypeFileAssignmentRequest requestObject)
Deletes a file assignment from an asset type
Deletes a file assignment from an asset type.
|
AssetTypeResource |
deleteAssetTypeFileAssignment(String id,
String key,
String ifMatch)
Deletes a file assignment from an asset type Deletes a file assignment from
an asset type.
|
AssetTypeResource |
getAssetType(GetAssetTypeRequest requestObject)
Read an asset type
Read an asset type
|
AssetTypeResource |
getAssetType(String id,
String ifNoneMatch,
Boolean exploded)
Read an asset type Read an asset type
|
AssetTypeListResource |
getAssetTypesContains(FieldTypeEnum fieldType,
String filterValue)
Filter asset types by name or tenantId or parentTypeId.
|
AssetTypeListResource |
getAssetTypesEndsWith(FieldTypeEnum fieldType,
String filterValue)
Filter asset types by name or tenantId or parentTypeId.
|
AssetTypeListResource |
getAssetTypesEqualTo(FieldTypeEnum fieldType,
String filterValue)
Filter asset types by name or tenantId or parentTypeId.
|
AssetTypeListResource |
getAssetTypesLike(FieldTypeEnum fieldType,
String... filterValue)
Filter asset types by name or tenantId or parentTypeId.
|
AssetTypeListResource |
getAssetTypesStartsWith(FieldTypeEnum fieldType,
String filterValue)
Filter asset types by name or tenantId or parentTypeId.
|
AssetTypeListResource |
listAssetTypes(Integer page,
Integer size,
String sort,
String filter,
String ifNoneMatch,
Boolean exploded)
List all asset types List all asset types
|
AssetTypeListResource |
listAssetTypes(ListAssetTypesRequest requestObject)
List all asset types
List all asset types
|
AssetTypeResource |
saveAssetType(SaveAssetTypeRequest requestObject)
Create or Update an asset type
Create or Update an asset type
|
AssetTypeResource |
saveAssetType(String id,
AssetType assettype,
String ifMatch)
Create or Update an asset type Create or Update an asset type
|
AssetTypeResource |
saveAssetType(String id,
AssetType assettype,
String ifMatch,
String ifNoneMatch,
Boolean exploded)
Create or Update an asset type Create or Update an asset type
|
AssetTypeResource |
saveAssetTypeFileAssignment(SaveAssetTypeFileAssignmentRequest requestObject)
Add a new file assignment to an asset type
Add a new file assignment to a given asset type.
|
AssetTypeResource |
saveAssetTypeFileAssignment(String ifMatch,
String id,
String key,
KeyedFileAssignment assignment)
Add a new file assignment to an asset type Add a new file assignment to a
given asset type.
|
AssetTypeResource |
updateAssetType(String ifMatch,
String id,
AssetType assettype)
Patch an asset type Patch an asset type.
|
AssetTypeResource |
updateAssetType(String ifMatch,
String id,
AssetType assettype,
Boolean exploded)
Patch an asset type Patch an asset type.
|
AssetTypeResource |
updateAssetType(UpdateAssetTypeRequest requestObject)
Patch an asset type
Patch an asset type.
|
public AssettypeClient(AssettypeClient.ClientBuilder builder)
public static AssettypeClient.ClientBuilder builder()
public void deleteAssetType(DeleteAssetTypeRequest requestObject) throws MindsphereException
204 - Asset type deletion was successful
400 - Invalid request
401 - User is not authenticated
403 - User is not authorized for request
412 - AssetType is changed in the background
500 - Server error, for more information see errorcode and message
requestObject
- - Object of type DeleteAssetTypeRequest {Parameters are If-Match*,id*}MindsphereException
- if an error occurs while attempting to invoke the APIpublic AssetTypeResource deleteAssetTypeFileAssignment(DeleteAssetTypeFileAssignmentRequest requestObject) throws MindsphereException
200 - The assignment has been deleted
401 - User is not authenticated
403 - User is not authorized for request
404 - Asset type or key not found
412 - Asset type or the file assignment has changed in the background
500 - Server error, for more information see errorcode and message
requestObject
- - Object of type DeleteAssetTypeFileAssignmentRequest {Parameters are id*,key*,If-Match*}MindsphereException
- if an error occurs while attempting to invoke the APIpublic AssetTypeResource getAssetType(GetAssetTypeRequest requestObject) throws MindsphereException
200 - Returns the asset type
304 - AssetType not changed
400 - Invalid request
401 - User is not authenticated
403 - User is not authorized for request
500 - Server error, for more information see errorcode and message
requestObject
- - Object of type GetAssetTypeRequest {Parameters are id*,If-None-Match,exploded}MindsphereException
- if an error occurs while attempting to invoke the APIpublic AssetTypeListResource listAssetTypes(ListAssetTypesRequest requestObject) throws MindsphereException
200 - Array of asset types matched the tenant scope and filter criterias
304 - Asset-types page not changed
400 - Invalid request
401 - User is not authenticated
403 - User is not authorized for request
500 - Server error, for more information see errorcode and message
requestObject
- - Object of type ListAssetTypesRequest {Parameters are page,size,sort,filter,If-None-Match,exploded}MindsphereException
- if an error occurs while attempting to invoke the APIpublic AssetTypeResource saveAssetType(SaveAssetTypeRequest requestObject) throws MindsphereException
200 - The asset type has been updated
201 - The asset type has been created
400 - Invalid request
401 - User is not authenticated
403 - User is not authorized for request
412 - AssetType is changed in the background
500 - Server error, for more information see errorcode and message
requestObject
- - Object of type SaveAssetTypeRequest {Parameters are id*,assettype*,If-Match,If-None-Match,exploded}MindsphereException
- if an error occurs while attempting to invoke the APIpublic AssetTypeResource saveAssetTypeFileAssignment(SaveAssetTypeFileAssignmentRequest requestObject) throws MindsphereException
200 - The assignment has been updated or a new assignment has been added
401 - User is not authenticated
403 - User is not authorized for request
404 - Asset type not found
412 - Asset type or the file assignment has changed in the background
500 - Server error, for more information see errorcode and message
requestObject
- - Object of type SaveAssetTypeFileAssignmentRequest {Parameters are If-Match*,id*,key*,assignment*}MindsphereException
- if an error occurs while attempting to invoke the APIpublic AssetTypeResource updateAssetType(UpdateAssetTypeRequest requestObject) throws MindsphereException
200 - The asset type has been updated
400 - Invalid request
401 - User is not authenticated
403 - User is not authorized for request
404 - AssetType not found
412 - AssetType is changed in the background
500 - Server error, for more information see errorcode and message
requestObject
- - Object of type UpdateAssetTypeRequest {Parameters are If-Match*,id*,assettype*,exploded}MindsphereException
- if an error occurs while attempting to invoke the APIpublic void deleteAssetType(String ifMatch, String id) throws MindsphereException
204 - Asset type deletion was successful
400 - Invalid request
401 - User is not authenticated
403 - User is not authorized for request
412 - AssetType is changed in the background
500 - Server error, for more information see errorcode and message
ifMatch
- Last known version to facilitate optimistic lockingid
- The type's id is a unique identifier. The id's length must
be between 1 and 128 characters and matches the following symbols
\"A-Z\", \"a-z\", \"0-9\",
\"_\" and \".\" beginning with the tenant
prefix what has a maximum of 8 characters. (e.g .
ten_pref.type_id)MindsphereException
- if an error occurs while attempting to invoke the APIpublic AssetTypeResource deleteAssetTypeFileAssignment(String id, String key, String ifMatch) throws MindsphereException
200 - The assignment has been deleted
401 - User is not authenticated
403 - User is not authorized for request
404 - Asset type or key not found
412 - Asset type or the file assignment has changed in the background
500 - Server error, for more information see errorcode and message
id
- The type's id is a unique identifier. The id's length must
be between 1 and 128 characters and matches the following symbols
\"A-Z\", \"a-z\", \"0-9\",
\"_\" and \".\" beginning with the tenant
prefix what has a maximum of 8 characters. (e.g .
ten_pref.type_id)key
- Keyword for the file to be assigned to an asset or asset type.ifMatch
- Last known version to facilitate optimistic lockingMindsphereException
- if an error occurs while attempting to invoke the APIpublic AssetTypeResource getAssetType(String id, String ifNoneMatch, Boolean exploded) throws MindsphereException
200 - Returns the asset type
304 - AssetType not changed
400 - Invalid request
401 - User is not authenticated
403 - User is not authorized for request
500 - Server error, for more information see errorcode and message
id
- The type's id is a unique identifier. The id's length must
be between 1 and 128 characters and matches the following symbols
\"A-Z\", \"a-z\", \"0-9\",
\"_\" and \".\" beginning with the tenant
prefix what has a maximum of 8 characters. (e.g .
ten_pref.type_id)ifNoneMatch
- ETag hash of previous request to allow cachingexploded
- Specifies if the asset type should include all of it's
inherited variables and aspects. Default is false.MindsphereException
- if an error occurs while attempting to invoke the APIpublic AssetTypeListResource listAssetTypes(Integer page, Integer size, String sort, String filter, String ifNoneMatch, Boolean exploded) throws MindsphereException
200 - Array of asset types matched the tenant scope and filter criterias
304 - Asset-types page not changed
400 - Invalid request
401 - User is not authenticated
403 - User is not authorized for request
500 - Server error, for more information see errorcode and message
page
- Specifies the requested page indexsize
- Specifies the number of elements in a pagesort
- Specifies the ordering of returned elementsfilter
- Specifies the additional filtering criteriaifNoneMatch
- ETag hash of previous request to allow cachingexploded
- Specifies if the asset type should include all of it's
inherited variables and aspects. Default is false.MindsphereException
- if an error occurs while attempting to invoke the APIpublic AssetTypeResource saveAssetType(String id, AssetType assettype, String ifMatch) throws MindsphereException
200 - The asset type has been updated
201 - The asset type has been created
400 - Invalid request
401 - User is not authenticated
403 - User is not authorized for request
412 - AssetType is changed in the background
500 - Server error, for more information see errorcode and message
id
- The type's id is a unique identifier. The id's length must
be between 1 and 128 characters and matches the following symbols
\"A-Z\", \"a-z\", \"0-9\",
\"_\" and \".\" beginning with the tenant
prefix what has a maximum of 8 characters. (e.g .
ten_pref.type_id)assettype
- asset typeifMatch
- Last known version to facilitate optimistic lockingMindsphereException
- if an error occurs while attempting to invoke the APIpublic AssetTypeResource saveAssetType(String id, AssetType assettype, String ifMatch, String ifNoneMatch, Boolean exploded) throws MindsphereException
200 - The asset type has been updated
201 - The asset type has been created
400 - Invalid request
401 - User is not authenticated
403 - User is not authorized for request
412 - AssetType is changed in the background
500 - Server error, for more information see errorcode and message
id
- The type's id is a unique identifier. The id's length must
be between 1 and 128 characters and matches the following symbols
\"A-Z\", \"a-z\", \"0-9\",
\"_\" and \".\" beginning with the tenant
prefix what has a maximum of 8 characters. (e.g .
ten_pref.type_id)assettype
- asset typeifMatch
- Last known version to facilitate optimistic lockingifNoneMatch
- Set ifNoneMatch header to \"*\" for ensuring create
requestexploded
- Specifies if the asset type should include all of it's
inherited variables and aspects. Default is false.MindsphereException
- if an error occurs while attempting to invoke the APIpublic AssetTypeResource saveAssetTypeFileAssignment(String ifMatch, String id, String key, KeyedFileAssignment assignment) throws MindsphereException
200 - The assignment has been updated or a new assignment has been added
401 - User is not authenticated
403 - User is not authorized for request
404 - Asset type not found
412 - Asset type or the file assignment has changed in the background
500 - Server error, for more information see errorcode and message
ifMatch
- Last known version to facilitate optimistic lockingid
- The type's id is a unique identifier. The id's length must
be between 1 and 128 characters and matches the following symbols
\"A-Z\", \"a-z\", \"0-9\",
\"_\" and \".\" beginning with the tenant
prefix what has a maximum of 8 characters. (e.g .
ten_pref.type_id)key
- Keyword for the file to be assigned to an asset or asset type.assignment
- Data for file assignmentMindsphereException
- if an error occurs while attempting to invoke the APIpublic AssetTypeResource updateAssetType(String ifMatch, String id, AssetType assettype) throws MindsphereException
200 - The asset type has been updated
400 - Invalid request
401 - User is not authenticated
403 - User is not authorized for request
404 - AssetType not found
412 - AssetType is changed in the background
500 - Server error, for more information see errorcode and message
ifMatch
- Last known version to facilitate optimistic lockingid
- The type's id is a unique identifier. The id's length must
be between 1 and 128 characters and matches the following symbols
\"A-Z\", \"a-z\", \"0-9\",
\"_\" and \".\" beginning with the tenant
prefix what has a maximum of 8 characters. (e.g .
ten_pref.type_id)assettype
- asset typeMindsphereException
- if an error occurs while attempting to invoke the APIpublic AssetTypeResource updateAssetType(String ifMatch, String id, AssetType assettype, Boolean exploded) throws MindsphereException
200 - The asset type has been updated
400 - Invalid request
401 - User is not authenticated
403 - User is not authorized for request
404 - AssetType not found
412 - AssetType is changed in the background
500 - Server error, for more information see errorcode and message
ifMatch
- Last known version to facilitate optimistic lockingid
- The type's id is a unique identifier. The id's length must
be between 1 and 128 characters and matches the following symbols
\"A-Z\", \"a-z\", \"0-9\",
\"_\" and \".\" beginning with the tenant
prefix what has a maximum of 8 characters. (e.g .
ten_pref.type_id)assettype
- asset typeexploded
- Specifies if the asset type should include all of it's
inherited variables and aspects. Default is false.MindsphereException
- if an error occurs while attempting to invoke the APIpublic AssetTypeListResource getAssetTypesEqualTo(FieldTypeEnum fieldType, String filterValue) throws MindsphereException
200 - Array of asset types matched the tenant scope and filter the array of input values
304 - Asset-types page not changed
400 - Invalid request
401 - User is not authenticated
403 - User is not authorized for request
500 - Server error, for more information see errorcode and message
fieldType
- Field type on which asset types need to be filtered.filterValue
- Value based on which asset types need to be filtered.MindsphereException
- if an error occurs while attempting to invoke the
APIpublic AssetTypeListResource getAssetTypesLike(FieldTypeEnum fieldType, String... filterValue) throws MindsphereException
200 - Array of asset types matched the tenant scope and filter the array of input values
304 - Asset-types page not changed
400 - Invalid request
401 - User is not authenticated
403 - User is not authorized for request
500 - Server error, for more information see errorcode and message
fieldType
- Field type on which asset types need to be filtered.filterValue
- Variable array of values based on which asset types need to be filtered.MindsphereException
- if an error occurs while attempting to invoke the
APIpublic AssetTypeListResource getAssetTypesStartsWith(FieldTypeEnum fieldType, String filterValue) throws MindsphereException
200 - Array of asset types matched the tenant scope and filter the array of input values
304 - Asset-types page not changed
400 - Invalid request
401 - User is not authenticated
403 - User is not authorized for request
500 - Server error, for more information see errorcode and message
fieldType
- Field type on which asset types need to be filtered.filterValue
- Value based on which asset types need to be filtered.MindsphereException
- if an error occurs while attempting to invoke the
APIpublic AssetTypeListResource getAssetTypesEndsWith(FieldTypeEnum fieldType, String filterValue) throws MindsphereException
200 - Array of asset types matched the tenant scope and filter the array of input values
304 - Asset-types page not changed
400 - Invalid request
401 - User is not authenticated
403 - User is not authorized for request
500 - Server error, for more information see errorcode and message
fieldType
- Field type on which asset types need to be filtered.filterValue
- Value based on which asset types need to be filtered.MindsphereException
- if an error occurs while attempting to invoke the
APIpublic AssetTypeListResource getAssetTypesContains(FieldTypeEnum fieldType, String filterValue) throws MindsphereException
200 - Array of asset types matched the tenant scope and filter the array of input values
304 - Asset-types page not changed
400 - Invalid request
401 - User is not authenticated
403 - User is not authorized for request
500 - Server error, for more information see errorcode and message
fieldType
- Field type on which asset types need to be filtered.filterValue
- Value based on which asset types need to be filtered.MindsphereException
- if an error occurs while attempting to invoke the
API