Package com.qiniu.linking
Class LinkingDeviceManager
- java.lang.Object
-
- com.qiniu.linking.LinkingDeviceManager
-
public class LinkingDeviceManager extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description LinkingDeviceManager(Auth auth)LinkingDeviceManager(Auth auth, java.lang.String host)LinkingDeviceManager(Auth auth, java.lang.String host, Client client)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DeviceKey[]addDeviceKey(java.lang.String appid, java.lang.String deviceName)DeviceKey[]cloneDeviceKey(java.lang.String appid, java.lang.String fromDeviceName, java.lang.String toDeviceName, boolean cleanSelfKeys, boolean deleteDevice, java.lang.String deviceAccessKey)voidcreateDevice(java.lang.String appid, Device device)voidcreateDevice(java.lang.String appid, java.lang.String deviceName)voiddeleteDevice(java.lang.String appid, java.lang.String deviceName)voiddeleteDeviceKey(java.lang.String appid, java.lang.String deviceName, java.lang.String accessKey)DevicegetDevice(java.lang.String appid, java.lang.String deviceName)DevicegetDeviceByAccessKey(java.lang.String deviceAccessKey)DeviceListinglistDevice(java.lang.String appid, java.lang.String prefix, java.lang.String marker, int limit, boolean online)DeviceHistoryListinglistDeviceHistory(java.lang.String appid, java.lang.String deviceName, long start, long end, java.lang.String marker, int limit)DeviceKey[]queryDeviceKey(java.lang.String appid, java.lang.String deviceName)DeviceupdateDevice(java.lang.String appid, java.lang.String deviceName, PatchOperation[] operations)voidupdateDeviceKeyState(java.lang.String appid, java.lang.String deviceName, java.lang.String accessKey, int state)
-
-
-
Method Detail
-
createDevice
public void createDevice(java.lang.String appid, java.lang.String deviceName) throws QiniuException- Throws:
QiniuException
-
createDevice
public void createDevice(java.lang.String appid, Device device) throws QiniuException- Throws:
QiniuException
-
deleteDevice
public void deleteDevice(java.lang.String appid, java.lang.String deviceName) throws QiniuException- Throws:
QiniuException
-
listDevice
public DeviceListing listDevice(java.lang.String appid, java.lang.String prefix, java.lang.String marker, int limit, boolean online) throws QiniuException
- Throws:
QiniuException
-
getDevice
public Device getDevice(java.lang.String appid, java.lang.String deviceName) throws QiniuException
- Throws:
QiniuException
-
getDeviceByAccessKey
public Device getDeviceByAccessKey(java.lang.String deviceAccessKey) throws QiniuException
- Throws:
QiniuException
-
updateDevice
public Device updateDevice(java.lang.String appid, java.lang.String deviceName, PatchOperation[] operations) throws QiniuException
- Throws:
QiniuException
-
listDeviceHistory
public DeviceHistoryListing listDeviceHistory(java.lang.String appid, java.lang.String deviceName, long start, long end, java.lang.String marker, int limit) throws QiniuException
- Throws:
QiniuException
-
addDeviceKey
public DeviceKey[] addDeviceKey(java.lang.String appid, java.lang.String deviceName) throws QiniuException
- Throws:
QiniuException
-
queryDeviceKey
public DeviceKey[] queryDeviceKey(java.lang.String appid, java.lang.String deviceName) throws QiniuException
- Throws:
QiniuException
-
deleteDeviceKey
public void deleteDeviceKey(java.lang.String appid, java.lang.String deviceName, java.lang.String accessKey) throws QiniuException- Throws:
QiniuException
-
updateDeviceKeyState
public void updateDeviceKeyState(java.lang.String appid, java.lang.String deviceName, java.lang.String accessKey, int state) throws QiniuException- Throws:
QiniuException
-
cloneDeviceKey
public DeviceKey[] cloneDeviceKey(java.lang.String appid, java.lang.String fromDeviceName, java.lang.String toDeviceName, boolean cleanSelfKeys, boolean deleteDevice, java.lang.String deviceAccessKey) throws QiniuException
- Throws:
QiniuException
-
-