public interface InventoryApi
Modifier and Type | Method and Description |
---|---|
ManagedObjectRepresentation |
create(ManagedObjectRepresentation managedObject)
Creates managed object in the platform.
|
void |
delete(com.cumulocity.model.idtype.GId id)
Deletes the Managed Object from the Cumulocity Server.
|
void |
deleteCascade(com.cumulocity.model.idtype.GId id)
Deletes the Managed Object and all child devices and child assets recursively from the Cumulocity Server.
|
ManagedObjectRepresentation |
get(com.cumulocity.model.idtype.GId id)
Returns the Managed Object of the Resource.
|
ManagedObjectRepresentation |
get(com.cumulocity.model.idtype.GId id,
QueryParam... params)
Returns the Managed Object of the Resource.
|
ManagedObject |
getManagedObject(com.cumulocity.model.idtype.GId gid)
Deprecated.
|
ManagedObject |
getManagedObjectApi(com.cumulocity.model.idtype.GId gid)
Gets managed object resource by id.
|
ManagedObjectCollection |
getManagedObjects()
Gets the all the managed object in the platform
|
ManagedObjectCollection |
getManagedObjectsByFilter(InventoryFilter filter)
Gets the managed objects from the platform based on specified filter.
|
ManagedObjectCollection |
getManagedObjectsByListOfIds(List<com.cumulocity.model.idtype.GId> ids)
Deprecated.
|
SupportedMeasurementsRepresentation |
getSupportedMeasurements(com.cumulocity.model.idtype.GId id)
Returns supported measurements of the Managed Object specified by its id
|
SupportedSeriesRepresentation |
getSupportedSeries(com.cumulocity.model.idtype.GId id)
Returns supported series of the Managed Object specified by its id
|
ManagedObjectRepresentation |
update(ManagedObjectRepresentation managedObjectRepresentation)
This update the ManagedObject for the operationCollection.
|
ManagedObjectRepresentation get(com.cumulocity.model.idtype.GId id) throws SDKException
id
- Managed Object General IdentifierSDKException
- if query failedManagedObjectRepresentation get(com.cumulocity.model.idtype.GId id, QueryParam... params) throws SDKException
id
- Managed Object General Identifierparams
- query parametersSDKException
- if query failedvoid delete(com.cumulocity.model.idtype.GId id) throws SDKException
id
- Managed Object General IdentifierSDKException
- if the managed object could not be deletedvoid deleteCascade(com.cumulocity.model.idtype.GId id) throws SDKException
id
- Managed Object General IdentifierSDKException
- if the managed object could not be deletedManagedObjectRepresentation update(ManagedObjectRepresentation managedObjectRepresentation) throws SDKException
managedObjectRepresentation
- managed object representationSDKException
- if the managed object could not be updatedManagedObject getManagedObjectApi(com.cumulocity.model.idtype.GId gid) throws SDKException
get()
on the returned resource.gid
- id of the managed object to search forSDKException
- if the query failedManagedObjectRepresentation create(ManagedObjectRepresentation managedObject) throws SDKException
managedObject
- the managed object to be createdSDKException
- if the managed object could not be createdManagedObjectCollection getManagedObjects() throws SDKException
SDKException
- if the query failedManagedObjectCollection getManagedObjectsByFilter(InventoryFilter filter) throws SDKException
type
and fragmentType
is
not supported.filter
- the filter criteria(s)SDKException
- if the query failedIllegalArgumentException
- if both type
and fragmentType
are specified in the filterSupportedMeasurementsRepresentation getSupportedMeasurements(com.cumulocity.model.idtype.GId id) throws SDKException
id
- id of the managed object to search forSDKException
- if managed object does not existsSupportedSeriesRepresentation getSupportedSeries(com.cumulocity.model.idtype.GId id) throws SDKException
id
- id of the managed object to search forSDKException
- if managed object does not exists@Deprecated ManagedObjectCollection getManagedObjectsByListOfIds(List<com.cumulocity.model.idtype.GId> ids) throws SDKException
ids
- the list of ids of the managed objects to search forSDKException
- if the query failed@Deprecated ManagedObject getManagedObject(com.cumulocity.model.idtype.GId gid) throws SDKException
get()
on the returned resource.gid
- id of the managed object to search forSDKException
- if the query failedCopyright © 2020 (C) Cumulocity GmbH. All rights reserved.