All Downloads are FREE. Search and download functionalities are using the official Maven repository.

target.apidocs.com.google.api.services.androidmanagement.v1.AndroidManagement.Enterprises.Devices.html Maven / Gradle / Ivy

There is a newer version: v1-rev20241204-2.0.0
Show newest version






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
    • Constructor Detail

      • Devices

        public Devices()
    • 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