Class DeviceOperations
java.lang.Object
com.microsoft.store.partnercenter.BasePartnerComponent<TripletTuple<String,String,String>>
com.microsoft.store.partnercenter.devicesdeployment.DeviceOperations
- All Implemented Interfaces:
IDevice,IEntityDeleteOperations<Device>,IEntityPatchOperations<Device>,IPartnerComponent<TripletTuple<String,String,String>>
public class DeviceOperations extends BasePartnerComponent<TripletTuple<String,String,String>> implements IDevice
Implements operations that apply to a device.
-
Constructor Summary
Constructors Constructor Description DeviceOperations(IPartner rootPartnerOperations, String customerId, String deviceBatchId, String deviceId)Initializes a new instance of the DeviceOperations class. -
Method Summary
Methods inherited from class com.microsoft.store.partnercenter.BasePartnerComponent
getContext, getPartnerMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.microsoft.store.partnercenter.IPartnerComponent
getContext, getPartner
-
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
-
patch
Updates a device associated to the customer with a configuration policy.- Specified by:
patchin interfaceIDevice- Specified by:
patchin interfaceIEntityPatchOperations<Device>- Parameters:
updateDevice- Payload of the update request.- Returns:
- The updated device.
-
delete
public void delete()Deletes a device associated to the customer.- Specified by:
deletein interfaceIDevice- Specified by:
deletein interfaceIEntityDeleteOperations<Device>
-