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

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

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






AndroidManagement.Enterprises.EnrollmentTokens (Android Management API v1-rev20241114-2.0.0)












com.google.api.services.androidmanagement.v1

Class AndroidManagement.Enterprises.EnrollmentTokens

  • java.lang.Object
    • com.google.api.services.androidmanagement.v1.AndroidManagement.Enterprises.EnrollmentTokens
    • Constructor Detail

      • EnrollmentTokens

        public EnrollmentTokens()
    • Method Detail

      • create

        public AndroidManagement.Enterprises.EnrollmentTokens.Create create(String parent,
                                                                            EnrollmentToken content)
                                                                     throws IOException
        Creates an enrollment token for a given enterprise. It's up to the caller's responsibility to manage the lifecycle of newly created tokens and deleting them when they're not intended to be used anymore. Create a request for the method "enrollmentTokens.create". 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}.
        content - the EnrollmentToken
        Returns:
        the request
        Throws:
        IOException
      • delete

        public AndroidManagement.Enterprises.EnrollmentTokens.Delete delete(String name)
                                                                     throws IOException
        Deletes an enrollment token. This operation invalidates the token, preventing its future use. Create a request for the method "enrollmentTokens.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 enrollment token in the form enterprises/{enterpriseId}/enrollmentTokens/{enrollmentTokenId}.
        Returns:
        the request
        Throws:
        IOException
      • get

        public AndroidManagement.Enterprises.EnrollmentTokens.Get get(String name)
                                                               throws IOException
        Gets an active, unexpired enrollment token. A partial view of the enrollment token is returned. Only the following fields are populated: name, expirationTimestamp, allowPersonalUsage, value, qrCode. This method is meant to help manage active enrollment tokens lifecycle. For security reasons, it's recommended to delete active enrollment tokens as soon as they're not intended to be used anymore. Create a request for the method "enrollmentTokens.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 - Required. The name of the enrollment token in the form enterprises/{enterpriseId}/enrollmentTokens/{enrollmentTokenId}.
        Returns:
        the request
        Throws:
        IOException
      • list

        public AndroidManagement.Enterprises.EnrollmentTokens.List list(String parent)
                                                                 throws IOException
        Lists active, unexpired enrollment tokens for a given enterprise. The list items contain only a partial view of EnrollmentToken object. Only the following fields are populated: name, expirationTimestamp, allowPersonalUsage, value, qrCode. This method is meant to help manage active enrollment tokens lifecycle. For security reasons, it's recommended to delete active enrollment tokens as soon as they're not intended to be used anymore. Create a request for the method "enrollmentTokens.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 - Required. The name of the enterprise in the form enterprises/{enterpriseId}.
        Returns:
        the request
        Throws:
        IOException

Copyright © 2011–2024 Google. All rights reserved.





© 2015 - 2024 Weber Informatics LLC | Privacy Policy