DeviceOperations Class

Implements

public class DeviceOperations extends BasePartnerComponent<TripletTuple<String,String,String>> implements IDevice

Implements operations that apply to a device.

Constructor Summary

Constructor Description
DeviceOperations(IPartner rootPartnerOperations, String customerId, String deviceBatchId, String deviceId)

Initializes a new instance of the DeviceOperations class.

Method Summary

Modifier and Type Method and Description
void delete()

Deletes a device associated to the customer.

Device patch(Device updateDevice)

Updates a device associated to the customer with a configuration policy.

Inherited Members

BasePartnerComponent<TContext>.getContext() BasePartnerComponent<TContext>.getPartner() java.lang.Object.clone() java.lang.Object.equals(java.lang.Object) java.lang.Object.finalize() java.lang.Object.getClass() java.lang.Object.hashCode() java.lang.Object.notify() java.lang.Object.notifyAll() java.lang.Object.toString() java.lang.Object.wait() java.lang.Object.wait(long) java.lang.Object.wait(long,int)

Constructor Details

DeviceOperations

public DeviceOperations(IPartner rootPartnerOperations, String customerId, String deviceBatchId, String deviceId)

Initializes a new instance of the DeviceOperations class.

Parameters:

rootPartnerOperations - The root partner operations instance.
customerId - The customer identifier.
deviceBatchId - The device batch identifier.
deviceId - The device identifier.

Method Details

delete

public void delete()

Deletes a device associated to the customer.

patch

public Device patch(Device updateDevice)

Updates a device associated to the customer with a configuration policy.

Parameters:

updateDevice - Payload of the update request.

Returns:

The updated device.

Applies to