class EnterprisesEnrollmentTokens extends Resource (View source)

The "enrollmentTokens" collection of methods.

Typical usage is:

 $androidmanagementService = new Google\Service\AndroidManagement(...);
 $enrollmentTokens = $androidmanagementService->enterprises_enrollmentTokens;

Methods

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)

delete(string $name, array $optParams = [])

Deletes an enrollment token. This operation invalidates the token, preventing its future use. (enrollmentTokens.delete)

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)

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.

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)

Parameters

string $parent

The name of the enterprise in the form enterprises/{enterpriseId}.

EnrollmentToken $postBody
array $optParams

Optional parameters.

Return Value

EnrollmentToken

Exceptions

Exception

AndroidmanagementEmpty delete(string $name, array $optParams = [])

Deletes an enrollment token. This operation invalidates the token, preventing its future use. (enrollmentTokens.delete)

Parameters

string $name

The name of the enrollment token in the form enterprises/{enterpriseId}/enrollmentTokens/{enrollmentTokenId}.

array $optParams

Optional parameters.

Return Value

AndroidmanagementEmpty

Exceptions

Exception

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)

Parameters

string $name

Required. The name of the enrollment token in the form enterprises/{enterpriseId}/enrollmentTokens/{enrollmentTokenId}.

array $optParams

Optional parameters.

Return Value

EnrollmentToken

Exceptions

Exception

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)

Parameters

string $parent

Required. The name of the enterprise in the form enterprises/{enterpriseId}.

array $optParams

Optional parameters.

Return Value

ListEnrollmentTokensResponse

Exceptions

Exception