public class AndroidEnterprise.Devices extends Object
Modifier and Type | Class and Description |
---|---|
class |
AndroidEnterprise.Devices.Get |
class |
AndroidEnterprise.Devices.GetState |
class |
AndroidEnterprise.Devices.List |
class |
AndroidEnterprise.Devices.Patch |
class |
AndroidEnterprise.Devices.SetState |
class |
AndroidEnterprise.Devices.Update |
Constructor and Description |
---|
Devices() |
Modifier and Type | Method and Description |
---|---|
AndroidEnterprise.Devices.Get |
get(String enterpriseId,
String userId,
String deviceId)
Retrieves the details of a device.
|
AndroidEnterprise.Devices.GetState |
getState(String enterpriseId,
String userId,
String deviceId)
Retrieves whether a device's access to Google services is enabled or disabled.
|
AndroidEnterprise.Devices.List |
list(String enterpriseId,
String userId)
Retrieves the IDs of all of a user's devices.
|
AndroidEnterprise.Devices.Patch |
patch(String enterpriseId,
String userId,
String deviceId,
Device content)
Updates the device policy.
|
AndroidEnterprise.Devices.SetState |
setState(String enterpriseId,
String userId,
String deviceId,
DeviceState content)
Sets whether a device's access to Google services is enabled or disabled.
|
AndroidEnterprise.Devices.Update |
update(String enterpriseId,
String userId,
String deviceId,
Device content)
Updates the device policy
Create a request for the method "devices.update".
|
public AndroidEnterprise.Devices.Get get(String enterpriseId, String userId, String deviceId) throws IOException
AbstractGoogleClientRequest.execute()
method to invoke the remote operation.enterpriseId
- The ID of the enterprise.userId
- The ID of the user.deviceId
- The ID of the device.IOException
public AndroidEnterprise.Devices.GetState getState(String enterpriseId, String userId, String deviceId) throws IOException
AbstractGoogleClientRequest.execute()
method to invoke the remote operation.enterpriseId
- The ID of the enterprise.userId
- The ID of the user.deviceId
- The ID of the device.IOException
public AndroidEnterprise.Devices.List list(String enterpriseId, String userId) throws IOException
AbstractGoogleClientRequest.execute()
method to invoke the remote operation.enterpriseId
- The ID of the enterprise.userId
- The ID of the user.IOException
public AndroidEnterprise.Devices.Patch patch(String enterpriseId, String userId, String deviceId, Device content) throws IOException
AbstractGoogleClientRequest.execute()
method to invoke the remote operation.enterpriseId
- The ID of the enterprise.userId
- The ID of the user.deviceId
- The ID of the device.content
- the Device
IOException
public AndroidEnterprise.Devices.SetState setState(String enterpriseId, String userId, String deviceId, DeviceState content) throws IOException
AbstractGoogleClientRequest.execute()
method to invoke the remote operation.enterpriseId
- The ID of the enterprise.userId
- The ID of the user.deviceId
- The ID of the device.content
- the DeviceState
IOException
public AndroidEnterprise.Devices.Update update(String enterpriseId, String userId, String deviceId, Device content) throws IOException
AbstractGoogleClientRequest.execute()
method to invoke the remote operation.enterpriseId
- The ID of the enterprise.userId
- The ID of the user.deviceId
- The ID of the device.content
- the Device
IOException
Copyright © 2011–2019 Google. All rights reserved.