target.apidocs.com.google.api.services.androidmanagement.v1.AndroidManagement.Enterprises.EnrollmentTokens.html Maven / Gradle / Ivy
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
-
- Enclosing class:
- AndroidManagement.Enterprises
public class AndroidManagement.Enterprises.EnrollmentTokens
extends Object
The "enrollmentTokens" collection of methods.
-
-
Nested Class Summary
Nested Classes
Modifier and Type
Class and Description
class
AndroidManagement.Enterprises.EnrollmentTokens.Create
class
AndroidManagement.Enterprises.EnrollmentTokens.Delete
class
AndroidManagement.Enterprises.EnrollmentTokens.Get
class
AndroidManagement.Enterprises.EnrollmentTokens.List
-
Constructor Summary
Constructors
Constructor and Description
EnrollmentTokens()
-
Method Summary
All Methods Instance Methods Concrete Methods
Modifier and Type
Method and Description
AndroidManagement.Enterprises.EnrollmentTokens.Create
create(String parent,
EnrollmentToken content)
Creates an enrollment token for a given enterprise.
AndroidManagement.Enterprises.EnrollmentTokens.Delete
delete(String name)
Deletes an enrollment token.
AndroidManagement.Enterprises.EnrollmentTokens.Get
get(String name)
Gets an active, unexpired enrollment token.
AndroidManagement.Enterprises.EnrollmentTokens.List
list(String parent)
Lists active, unexpired enrollment tokens for a given enterprise.
-
-
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