AndroidManagement
import { AndroidManagement } from "https://googleapis.deno.dev/v1/androidmanagement:v1.ts";
The Android Management API provides remote enterprise management of Android devices and apps.
§Methods
Gets info about an application.
The name of the application in the form enterprises/{enterpriseId}/applications/{package_name}.
Creates an enterprise. This is the last step in the enterprise signup flow. See also: SigninDetail
Permanently deletes an enterprise and all accounts and data associated with it. Warning: this will result in a cascaded deletion of all AM API devices associated with the deleted enterprise. Only available for EMM-managed enterprises.
The name of the enterprise in the form enterprises/{enterpriseId}.
Deletes a device. This operation wipes the device. Deleted devices do not show up in enterprises.devices.list calls and a 404 is returned from enterprises.devices.get.
The name of the device in the form enterprises/{enterpriseId}/devices/{deviceId}.
Issues a command to a device. The Operation resource returned contains a Command in its metadata field. Use the get operation method to get the status of the command.
The name of the device in the form enterprises/{enterpriseId}/devices/{deviceId}.
Lists devices for a given enterprise. Deleted devices are not returned in the response.
The name of the enterprise in the form enterprises/{enterpriseId}.
Starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. If the server doesn't support this method, it returns google.rpc.Code.UNIMPLEMENTED. Clients can use Operations.GetOperation or other methods to check whether the cancellation succeeded or whether the operation completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an Operation.error value with a google.rpc.Status.code of 1, corresponding to Code.CANCELLED.
The name of the operation resource to be cancelled.
Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns UNIMPLEMENTED.
The name of the operation's parent resource.
Updates a device.
The name of the device in the form enterprises/{enterpriseId}/devices/{deviceId}.
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. Once an enrollment token has been created, it's not possible to retrieve the token's content anymore using AM API. It is recommended for EMMs to securely store the token if it's intended to be reused.
The name of the enterprise in the form enterprises/{enterpriseId}.
Gets an active, unexpired enrollment token. Only a partial view of EnrollmentToken is returned: all the fields but name and expiration_timestamp are empty. 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.
Required. The name of the enrollment token in the form enterprises/{enterpriseId}/enrollmentTokens/{enrollmentTokenId}.
Lists active, unexpired enrollment tokens for a given enterprise. The list items contain only a partial view of EnrollmentToken: all the fields but name and expiration_timestamp are empty. 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.
Required. The name of the enterprise in the form enterprises/{enterpriseId}.
Gets an enterprise.
The name of the enterprise in the form enterprises/{enterpriseId}.
Lists EMM-managed enterprises. Only BASIC fields are returned.
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.
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}
Gets a migration token.
Required. The name of the migration token to retrieve. Format: enterprises/{enterprise}/migrationTokens/{migration_token}
Lists migration tokens.
Required. The enterprise which the migration tokens belong to. Format: enterprises/{enterprise}
Updates an enterprise. See also: SigninDetail
The name of the enterprise in the form enterprises/{enterpriseId}.
Lists policies for a given enterprise.
The name of the enterprise in the form enterprises/{enterpriseId}.
Updates or creates a policy.
The name of the policy in the form enterprises/{enterpriseId}/policies/{policyId}.
Lists web apps for a given enterprise.
The name of the enterprise in the form enterprises/{enterpriseId}.
Updates a web app.
The name of the web app in the form enterprises/{enterpriseId}/webApps/{packageName}.
Get the device provisioning information by the identifier provided in the sign-in url.
Required. The identifier that Android Device Policy passes to the 3P sign-in page in the form of provisioningInfo/{provisioning_info}.
Creates an enterprise signup URL.