target.apidocs.com.google.api.services.androidmanagement.v1.AndroidManagement.Enterprises.Devices.html Maven / Gradle / Ivy
AndroidManagement.Enterprises.Devices (Android Management API v1-rev20241114-2.0.0)
com.google.api.services.androidmanagement.v1
Class AndroidManagement.Enterprises.Devices
- java.lang.Object
-
- com.google.api.services.androidmanagement.v1.AndroidManagement.Enterprises.Devices
-
- Enclosing class:
- AndroidManagement.Enterprises
public class AndroidManagement.Enterprises.Devices
extends Object
The "devices" collection of methods.
-
-
Nested Class Summary
Nested Classes
Modifier and Type
Class and Description
class
AndroidManagement.Enterprises.Devices.Delete
class
AndroidManagement.Enterprises.Devices.Get
class
AndroidManagement.Enterprises.Devices.IssueCommand
class
AndroidManagement.Enterprises.Devices.List
class
AndroidManagement.Enterprises.Devices.Operations
The "operations" collection of methods.
class
AndroidManagement.Enterprises.Devices.Patch
-
Constructor Summary
Constructors
Constructor and Description
Devices()
-
Method Summary
All Methods Instance Methods Concrete Methods
Modifier and Type
Method and Description
AndroidManagement.Enterprises.Devices.Delete
delete(String name)
Deletes a device.
AndroidManagement.Enterprises.Devices.Get
get(String name)
Gets a device.
AndroidManagement.Enterprises.Devices.IssueCommand
issueCommand(String name,
Command content)
Issues a command to a device.
AndroidManagement.Enterprises.Devices.List
list(String parent)
Lists devices for a given enterprise.
AndroidManagement.Enterprises.Devices.Operations
operations()
An accessor for creating requests from the Operations collection.
AndroidManagement.Enterprises.Devices.Patch
patch(String name,
Device content)
Updates a device.
-
-
Method Detail
-
delete
public AndroidManagement.Enterprises.Devices.Delete delete(String name)
throws IOException
Deletes a device. This operation wipes the device. Deleted devices do not show up in
enterprises.devices.list calls and a 404 is returned from enterprises.devices.get.
Create a request for the method "devices.delete".
This request holds the parameters needed by the androidmanagement server. After setting any
optional parameters, call the AbstractGoogleClientRequest.execute()
method to invoke the remote operation.
- Parameters:
name
- The name of the device in the form enterprises/{enterpriseId}/devices/{deviceId}.
- Returns:
- the request
- Throws:
IOException
-
get
public AndroidManagement.Enterprises.Devices.Get get(String name)
throws IOException
Gets a device. Deleted devices will respond with a 404 error.
Create a request for the method "devices.get".
This request holds the parameters needed by the androidmanagement server. After setting any
optional parameters, call the AbstractGoogleClientRequest.execute()
method to invoke the remote operation.
- Parameters:
name
- The name of the device in the form enterprises/{enterpriseId}/devices/{deviceId}.
- Returns:
- the request
- Throws:
IOException
-
issueCommand
public AndroidManagement.Enterprises.Devices.IssueCommand issueCommand(String name,
Command content)
throws IOException
Issues a command to a device. The Operation resource returned contains a Command in its metadata
field. Use the get operation method to get the status of the command.
Create a request for the method "devices.issueCommand".
This request holds the parameters needed by the androidmanagement server. After setting any
optional parameters, call the AbstractGoogleClientRequest.execute()
method to invoke the remote
operation.
- Parameters:
name
- The name of the device in the form enterprises/{enterpriseId}/devices/{deviceId}.
content
- the Command
- Returns:
- the request
- Throws:
IOException
-
list
public AndroidManagement.Enterprises.Devices.List list(String parent)
throws IOException
Lists devices for a given enterprise. Deleted devices are not returned in the response.
Create a request for the method "devices.list".
This request holds the parameters needed by the androidmanagement server. After setting any
optional parameters, call the AbstractGoogleClientRequest.execute()
method to invoke the remote operation.
- Parameters:
parent
- The name of the enterprise in the form enterprises/{enterpriseId}.
- Returns:
- the request
- Throws:
IOException
-
patch
public AndroidManagement.Enterprises.Devices.Patch patch(String name,
Device content)
throws IOException
Updates a device.
Create a request for the method "devices.patch".
This request holds the parameters needed by the androidmanagement server. After setting any
optional parameters, call the AbstractGoogleClientRequest.execute()
method to invoke the remote operation.
- Parameters:
name
- The name of the device in the form enterprises/{enterpriseId}/devices/{deviceId}.
content
- the Device
- Returns:
- the request
- Throws:
IOException
-
operations
public AndroidManagement.Enterprises.Devices.Operations operations()
An accessor for creating requests from the Operations collection.
The typical use is:
AndroidManagement androidmanagement = new AndroidManagement(...);
AndroidManagement.Operations.List request = androidmanagement.operations().list(parameters ...)
- Returns:
- the resource collection
Copyright © 2011–2024 Google. All rights reserved.
© 2015 - 2024 Weber Informatics LLC | Privacy Policy