class EnterprisesMigrationTokens extends Resource (View source)

The "migrationTokens" collection of methods.

Typical usage is:

 $androidmanagementService = new Google\Service\AndroidManagement(...);
 $migrationTokens = $androidmanagementService->enterprises_migrationTokens;

Methods

create(string $parent, MigrationToken $postBody, array $optParams = [])

Creates a migration token, to migrate an existing device from being managed by the EMM's Device Policy Controller (DPC) to being managed by the Android Management API. See the guide (https://developers.google.com/android/management/dpc-migration) for more details. (migrationTokens.create)

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

Gets a migration token. (migrationTokens.get)

listEnterprisesMigrationTokens(string $parent, array $optParams = [])

Lists migration tokens. (migrationTokens.listEnterprisesMigrationTokens)

Details

MigrationToken create(string $parent, MigrationToken $postBody, array $optParams = [])

Creates a migration token, to migrate an existing device from being managed by the EMM's Device Policy Controller (DPC) to being managed by the Android Management API. See the guide (https://developers.google.com/android/management/dpc-migration) for more details. (migrationTokens.create)

Parameters

string $parent

Required. The enterprise in which this migration token is created. This must be the same enterprise which already manages the device in the Play EMM API. Format: enterprises/{enterprise}

MigrationToken $postBody
array $optParams

Optional parameters.

Return Value

MigrationToken

Exceptions

Exception

MigrationToken get(string $name, array $optParams = [])

Gets a migration token. (migrationTokens.get)

Parameters

string $name

Required. The name of the migration token to retrieve. Format: enterprises/{enterprise}/migrationTokens/{migration_token}

array $optParams

Optional parameters.

Return Value

MigrationToken

Exceptions

Exception

ListMigrationTokensResponse listEnterprisesMigrationTokens(string $parent, array $optParams = [])

Lists migration tokens. (migrationTokens.listEnterprisesMigrationTokens)

Parameters

string $parent

Required. The enterprise which the migration tokens belong to. Format: enterprises/{enterprise}

array $optParams

Optional parameters.

Return Value

ListMigrationTokensResponse

Exceptions

Exception