EnterprisesEnrollmentTokens
class EnterprisesEnrollmentTokens extends Resource (View source)
The "enrollmentTokens" collection of methods.
Typical usage is:
$androidmanagementService = new Google\Service\AndroidManagement(...);
$enrollmentTokens = $androidmanagementService->enterprises_enrollmentTokens;
Methods
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. (enrollmentTokens.create)
Deletes an enrollment token. This operation invalidates the token, preventing its future use. (enrollmentTokens.delete)
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. (enrollmentTokens.get)
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.
Details
EnrollmentToken
create(string $parent, EnrollmentToken $postBody, array $optParams = [])
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. (enrollmentTokens.create)
AndroidmanagementEmpty
delete(string $name, array $optParams = [])
Deletes an enrollment token. This operation invalidates the token, preventing its future use. (enrollmentTokens.delete)
EnrollmentToken
get(string $name, array $optParams = [])
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. (enrollmentTokens.get)
ListEnrollmentTokensResponse
listEnterprisesEnrollmentTokens(string $parent, array $optParams = [])
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.
(enrollmentTokens.listEnterprisesEnrollmentTokens)