{ "auth": { "oauth2": { "scopes": { "https://www.googleapis.com/auth/androidmanagement": { "description": "Manage Android devices and apps for your customers" } } } }, "basePath": "", "baseUrl": "https://androidmanagement.googleapis.com/", "batchPath": "batch", "canonicalName": "Android Management", "description": "The Android Management API provides remote enterprise management of Android devices and apps.", "discoveryVersion": "v1", "documentationLink": "https://developers.google.com/android/management", "fullyEncodeReservedExpansion": true, "icons": { "x16": "http://www.google.com/images/icons/product/search-16.gif", "x32": "http://www.google.com/images/icons/product/search-32.gif" }, "id": "androidmanagement:v1", "kind": "discovery#restDescription", "mtlsRootUrl": "https://androidmanagement.mtls.googleapis.com/", "name": "androidmanagement", "ownerDomain": "google.com", "ownerName": "Google", "parameters": { "$.xgafv": { "description": "V1 error format.", "enum": [ "1", "2" ], "enumDescriptions": [ "v1 error format", "v2 error format" ], "location": "query", "type": "string" }, "access_token": { "description": "OAuth access token.", "location": "query", "type": "string" }, "alt": { "default": "json", "description": "Data format for response.", "enum": [ "json", "media", "proto" ], "enumDescriptions": [ "Responses with Content-Type of application/json", "Media download with context-dependent Content-Type", "Responses with Content-Type of application/x-protobuf" ], "location": "query", "type": "string" }, "callback": { "description": "JSONP", "location": "query", "type": "string" }, "fields": { "description": "Selector specifying which fields to include in a partial response.", "location": "query", "type": "string" }, "key": { "description": "API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.", "location": "query", "type": "string" }, "oauth_token": { "description": "OAuth 2.0 token for the current user.", "location": "query", "type": "string" }, "prettyPrint": { "default": "true", "description": "Returns response with indentations and line breaks.", "location": "query", "type": "boolean" }, "quotaUser": { "description": "Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.", "location": "query", "type": "string" }, "uploadType": { "description": "Legacy upload protocol for media (e.g. \"media\", \"multipart\").", "location": "query", "type": "string" }, "upload_protocol": { "description": "Upload protocol for media (e.g. \"raw\", \"multipart\").", "location": "query", "type": "string" } }, "protocol": "rest", "resources": { "enterprises": { "methods": { "create": { "description": "Creates an enterprise. This is the last step in the enterprise signup flow.", "flatPath": "v1/enterprises", "httpMethod": "POST", "id": "androidmanagement.enterprises.create", "parameterOrder": [], "parameters": { "enterpriseToken": { "description": "The enterprise token appended to the callback URL.", "location": "query", "type": "string" }, "projectId": { "description": "The ID of the Google Cloud Platform project which will own the enterprise.", "location": "query", "type": "string" }, "signupUrlName": { "description": "The name of the SignupUrl used to sign up for the enterprise.", "location": "query", "type": "string" } }, "path": "v1/enterprises", "request": { "$ref": "Enterprise" }, "response": { "$ref": "Enterprise" }, "scopes": [ "https://www.googleapis.com/auth/androidmanagement" ] }, "get": { "description": "Gets an enterprise.", "flatPath": "v1/enterprises/{enterprisesId}", "httpMethod": "GET", "id": "androidmanagement.enterprises.get", "parameterOrder": [ "name" ], "parameters": { "name": { "description": "The name of the enterprise in the form enterprises/{enterpriseId}.", "location": "path", "pattern": "^enterprises/[^/]+$", "required": true, "type": "string" } }, "path": "v1/{+name}", "response": { "$ref": "Enterprise" }, "scopes": [ "https://www.googleapis.com/auth/androidmanagement" ] }, "patch": { "description": "Updates an enterprise.", "flatPath": "v1/enterprises/{enterprisesId}", "httpMethod": "PATCH", "id": "androidmanagement.enterprises.patch", "parameterOrder": [ "name" ], "parameters": { "name": { "description": "The name of the enterprise in the form enterprises/{enterpriseId}.", "location": "path", "pattern": "^enterprises/[^/]+$", "required": true, "type": "string" }, "updateMask": { "description": "The field mask indicating the fields to update. If not set, all modifiable fields will be modified.", "format": "google-fieldmask", "location": "query", "type": "string" } }, "path": "v1/{+name}", "request": { "$ref": "Enterprise" }, "response": { "$ref": "Enterprise" }, "scopes": [ "https://www.googleapis.com/auth/androidmanagement" ] } }, "resources": { "applications": { "methods": { "get": { "description": "Gets info about an application.", "flatPath": "v1/enterprises/{enterprisesId}/applications/{applicationsId}", "httpMethod": "GET", "id": "androidmanagement.enterprises.applications.get", "parameterOrder": [ "name" ], "parameters": { "languageCode": { "description": "The preferred language for localized application info, as a BCP47 tag (e.g. \"en-US\", \"de\"). If not specified the default language of the application will be used.", "location": "query", "type": "string" }, "name": { "description": "The name of the application in the form enterprises/{enterpriseId}/applications/{package_name}.", "location": "path", "pattern": "^enterprises/[^/]+/applications/[^/]+$", "required": true, "type": "string" } }, "path": "v1/{+name}", "response": { "$ref": "Application" }, "scopes": [ "https://www.googleapis.com/auth/androidmanagement" ] } } }, "devices": { "methods": { "delete": { "description": "Deletes a device. This operation wipes the device.", "flatPath": "v1/enterprises/{enterprisesId}/devices/{devicesId}", "httpMethod": "DELETE", "id": "androidmanagement.enterprises.devices.delete", "parameterOrder": [ "name" ], "parameters": { "name": { "description": "The name of the device in the form enterprises/{enterpriseId}/devices/{deviceId}.", "location": "path", "pattern": "^enterprises/[^/]+/devices/[^/]+$", "required": true, "type": "string" }, "wipeDataFlags": { "description": "Optional flags that control the device wiping behavior.", "enum": [ "WIPE_DATA_FLAG_UNSPECIFIED", "PRESERVE_RESET_PROTECTION_DATA", "WIPE_EXTERNAL_STORAGE" ], "location": "query", "repeated": true, "type": "string" }, "wipeReasonMessage": { "description": "Optional. A short message displayed to the user before wiping the work profile on personal devices. This has no effect on company owned devices. The maximum message length is 200 characters.", "location": "query", "type": "string" } }, "path": "v1/{+name}", "response": { "$ref": "Empty" }, "scopes": [ "https://www.googleapis.com/auth/androidmanagement" ] }, "get": { "description": "Gets a device.", "flatPath": "v1/enterprises/{enterprisesId}/devices/{devicesId}", "httpMethod": "GET", "id": "androidmanagement.enterprises.devices.get", "parameterOrder": [ "name" ], "parameters": { "name": { "description": "The name of the device in the form enterprises/{enterpriseId}/devices/{deviceId}.", "location": "path", "pattern": "^enterprises/[^/]+/devices/[^/]+$", "required": true, "type": "string" } }, "path": "v1/{+name}", "response": { "$ref": "Device" }, "scopes": [ "https://www.googleapis.com/auth/androidmanagement" ] }, "issueCommand": { "description": "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.", "flatPath": "v1/enterprises/{enterprisesId}/devices/{devicesId}:issueCommand", "httpMethod": "POST", "id": "androidmanagement.enterprises.devices.issueCommand", "parameterOrder": [ "name" ], "parameters": { "name": { "description": "The name of the device in the form enterprises/{enterpriseId}/devices/{deviceId}.", "location": "path", "pattern": "^enterprises/[^/]+/devices/[^/]+$", "required": true, "type": "string" } }, "path": "v1/{+name}:issueCommand", "request": { "$ref": "Command" }, "response": { "$ref": "Operation" }, "scopes": [ "https://www.googleapis.com/auth/androidmanagement" ] }, "list": { "description": "Lists devices for a given enterprise.", "flatPath": "v1/enterprises/{enterprisesId}/devices", "httpMethod": "GET", "id": "androidmanagement.enterprises.devices.list", "parameterOrder": [ "parent" ], "parameters": { "pageSize": { "description": "The requested page size. The actual page size may be fixed to a min or max value.", "format": "int32", "location": "query", "type": "integer" }, "pageToken": { "description": "A token identifying a page of results returned by the server.", "location": "query", "type": "string" }, "parent": { "description": "The name of the enterprise in the form enterprises/{enterpriseId}.", "location": "path", "pattern": "^enterprises/[^/]+$", "required": true, "type": "string" } }, "path": "v1/{+parent}/devices", "response": { "$ref": "ListDevicesResponse" }, "scopes": [ "https://www.googleapis.com/auth/androidmanagement" ] }, "patch": { "description": "Updates a device.", "flatPath": "v1/enterprises/{enterprisesId}/devices/{devicesId}", "httpMethod": "PATCH", "id": "androidmanagement.enterprises.devices.patch", "parameterOrder": [ "name" ], "parameters": { "name": { "description": "The name of the device in the form enterprises/{enterpriseId}/devices/{deviceId}.", "location": "path", "pattern": "^enterprises/[^/]+/devices/[^/]+$", "required": true, "type": "string" }, "updateMask": { "description": "The field mask indicating the fields to update. If not set, all modifiable fields will be modified.", "format": "google-fieldmask", "location": "query", "type": "string" } }, "path": "v1/{+name}", "request": { "$ref": "Device" }, "response": { "$ref": "Device" }, "scopes": [ "https://www.googleapis.com/auth/androidmanagement" ] } }, "resources": { "operations": { "methods": { "cancel": { "description": "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.", "flatPath": "v1/enterprises/{enterprisesId}/devices/{devicesId}/operations/{operationsId}:cancel", "httpMethod": "POST", "id": "androidmanagement.enterprises.devices.operations.cancel", "parameterOrder": [ "name" ], "parameters": { "name": { "description": "The name of the operation resource to be cancelled.", "location": "path", "pattern": "^enterprises/[^/]+/devices/[^/]+/operations/[^/]+$", "required": true, "type": "string" } }, "path": "v1/{+name}:cancel", "response": { "$ref": "Empty" }, "scopes": [ "https://www.googleapis.com/auth/androidmanagement" ] }, "delete": { "description": "Deletes a long-running operation. This method indicates that the client is no longer interested in the operation result. It does not cancel the operation. If the server doesn't support this method, it returns google.rpc.Code.UNIMPLEMENTED.", "flatPath": "v1/enterprises/{enterprisesId}/devices/{devicesId}/operations/{operationsId}", "httpMethod": "DELETE", "id": "androidmanagement.enterprises.devices.operations.delete", "parameterOrder": [ "name" ], "parameters": { "name": { "description": "The name of the operation resource to be deleted.", "location": "path", "pattern": "^enterprises/[^/]+/devices/[^/]+/operations/[^/]+$", "required": true, "type": "string" } }, "path": "v1/{+name}", "response": { "$ref": "Empty" }, "scopes": [ "https://www.googleapis.com/auth/androidmanagement" ] }, "get": { "description": "Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.", "flatPath": "v1/enterprises/{enterprisesId}/devices/{devicesId}/operations/{operationsId}", "httpMethod": "GET", "id": "androidmanagement.enterprises.devices.operations.get", "parameterOrder": [ "name" ], "parameters": { "name": { "description": "The name of the operation resource.", "location": "path", "pattern": "^enterprises/[^/]+/devices/[^/]+/operations/[^/]+$", "required": true, "type": "string" } }, "path": "v1/{+name}", "response": { "$ref": "Operation" }, "scopes": [ "https://www.googleapis.com/auth/androidmanagement" ] }, "list": { "description": "Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns UNIMPLEMENTED.NOTE: the name binding allows API services to override the binding to use different resource name schemes, such as users/*/operations. To override the binding, API services can add a binding such as \"/v1/{name=users/*}/operations\" to their service configuration. For backwards compatibility, the default name includes the operations collection id, however overriding users must ensure the name binding is the parent resource, without the operations collection id.", "flatPath": "v1/enterprises/{enterprisesId}/devices/{devicesId}/operations", "httpMethod": "GET", "id": "androidmanagement.enterprises.devices.operations.list", "parameterOrder": [ "name" ], "parameters": { "filter": { "description": "The standard list filter.", "location": "query", "type": "string" }, "name": { "description": "The name of the operation's parent resource.", "location": "path", "pattern": "^enterprises/[^/]+/devices/[^/]+/operations$", "required": true, "type": "string" }, "pageSize": { "description": "The standard list page size.", "format": "int32", "location": "query", "type": "integer" }, "pageToken": { "description": "The standard list page token.", "location": "query", "type": "string" } }, "path": "v1/{+name}", "response": { "$ref": "ListOperationsResponse" }, "scopes": [ "https://www.googleapis.com/auth/androidmanagement" ] } } } } }, "enrollmentTokens": { "methods": { "create": { "description": "Creates an enrollment token for a given enterprise.", "flatPath": "v1/enterprises/{enterprisesId}/enrollmentTokens", "httpMethod": "POST", "id": "androidmanagement.enterprises.enrollmentTokens.create", "parameterOrder": [ "parent" ], "parameters": { "parent": { "description": "The name of the enterprise in the form enterprises/{enterpriseId}.", "location": "path", "pattern": "^enterprises/[^/]+$", "required": true, "type": "string" } }, "path": "v1/{+parent}/enrollmentTokens", "request": { "$ref": "EnrollmentToken" }, "response": { "$ref": "EnrollmentToken" }, "scopes": [ "https://www.googleapis.com/auth/androidmanagement" ] }, "delete": { "description": "Deletes an enrollment token. This operation invalidates the token, preventing its future use.", "flatPath": "v1/enterprises/{enterprisesId}/enrollmentTokens/{enrollmentTokensId}", "httpMethod": "DELETE", "id": "androidmanagement.enterprises.enrollmentTokens.delete", "parameterOrder": [ "name" ], "parameters": { "name": { "description": "The name of the enrollment token in the form enterprises/{enterpriseId}/enrollmentTokens/{enrollmentTokenId}.", "location": "path", "pattern": "^enterprises/[^/]+/enrollmentTokens/[^/]+$", "required": true, "type": "string" } }, "path": "v1/{+name}", "response": { "$ref": "Empty" }, "scopes": [ "https://www.googleapis.com/auth/androidmanagement" ] } } }, "policies": { "methods": { "delete": { "description": "Deletes a policy. This operation is only permitted if no devices are currently referencing the policy.", "flatPath": "v1/enterprises/{enterprisesId}/policies/{policiesId}", "httpMethod": "DELETE", "id": "androidmanagement.enterprises.policies.delete", "parameterOrder": [ "name" ], "parameters": { "name": { "description": "The name of the policy in the form enterprises/{enterpriseId}/policies/{policyId}.", "location": "path", "pattern": "^enterprises/[^/]+/policies/[^/]+$", "required": true, "type": "string" } }, "path": "v1/{+name}", "response": { "$ref": "Empty" }, "scopes": [ "https://www.googleapis.com/auth/androidmanagement" ] }, "get": { "description": "Gets a policy.", "flatPath": "v1/enterprises/{enterprisesId}/policies/{policiesId}", "httpMethod": "GET", "id": "androidmanagement.enterprises.policies.get", "parameterOrder": [ "name" ], "parameters": { "name": { "description": "The name of the policy in the form enterprises/{enterpriseId}/policies/{policyId}.", "location": "path", "pattern": "^enterprises/[^/]+/policies/[^/]+$", "required": true, "type": "string" } }, "path": "v1/{+name}", "response": { "$ref": "Policy" }, "scopes": [ "https://www.googleapis.com/auth/androidmanagement" ] }, "list": { "description": "Lists policies for a given enterprise.", "flatPath": "v1/enterprises/{enterprisesId}/policies", "httpMethod": "GET", "id": "androidmanagement.enterprises.policies.list", "parameterOrder": [ "parent" ], "parameters": { "pageSize": { "description": "The requested page size. The actual page size may be fixed to a min or max value.", "format": "int32", "location": "query", "type": "integer" }, "pageToken": { "description": "A token identifying a page of results returned by the server.", "location": "query", "type": "string" }, "parent": { "description": "The name of the enterprise in the form enterprises/{enterpriseId}.", "location": "path", "pattern": "^enterprises/[^/]+$", "required": true, "type": "string" } }, "path": "v1/{+parent}/policies", "response": { "$ref": "ListPoliciesResponse" }, "scopes": [ "https://www.googleapis.com/auth/androidmanagement" ] }, "patch": { "description": "Updates or creates a policy.", "flatPath": "v1/enterprises/{enterprisesId}/policies/{policiesId}", "httpMethod": "PATCH", "id": "androidmanagement.enterprises.policies.patch", "parameterOrder": [ "name" ], "parameters": { "name": { "description": "The name of the policy in the form enterprises/{enterpriseId}/policies/{policyId}.", "location": "path", "pattern": "^enterprises/[^/]+/policies/[^/]+$", "required": true, "type": "string" }, "updateMask": { "description": "The field mask indicating the fields to update. If not set, all modifiable fields will be modified.", "format": "google-fieldmask", "location": "query", "type": "string" } }, "path": "v1/{+name}", "request": { "$ref": "Policy" }, "response": { "$ref": "Policy" }, "scopes": [ "https://www.googleapis.com/auth/androidmanagement" ] } } }, "webApps": { "methods": { "create": { "description": "Creates a web app.", "flatPath": "v1/enterprises/{enterprisesId}/webApps", "httpMethod": "POST", "id": "androidmanagement.enterprises.webApps.create", "parameterOrder": [ "parent" ], "parameters": { "parent": { "description": "The name of the enterprise in the form enterprises/{enterpriseId}.", "location": "path", "pattern": "^enterprises/[^/]+$", "required": true, "type": "string" } }, "path": "v1/{+parent}/webApps", "request": { "$ref": "WebApp" }, "response": { "$ref": "WebApp" }, "scopes": [ "https://www.googleapis.com/auth/androidmanagement" ] }, "delete": { "description": "Deletes a web app.", "flatPath": "v1/enterprises/{enterprisesId}/webApps/{webAppsId}", "httpMethod": "DELETE", "id": "androidmanagement.enterprises.webApps.delete", "parameterOrder": [ "name" ], "parameters": { "name": { "description": "The name of the web app in the form enterprises/{enterpriseId}/webApps/{packageName}.", "location": "path", "pattern": "^enterprises/[^/]+/webApps/[^/]+$", "required": true, "type": "string" } }, "path": "v1/{+name}", "response": { "$ref": "Empty" }, "scopes": [ "https://www.googleapis.com/auth/androidmanagement" ] }, "get": { "description": "Gets a web app.", "flatPath": "v1/enterprises/{enterprisesId}/webApps/{webAppsId}", "httpMethod": "GET", "id": "androidmanagement.enterprises.webApps.get", "parameterOrder": [ "name" ], "parameters": { "name": { "description": "The name of the web app in the form enterprises/{enterpriseId}/webApp/{packageName}.", "location": "path", "pattern": "^enterprises/[^/]+/webApps/[^/]+$", "required": true, "type": "string" } }, "path": "v1/{+name}", "response": { "$ref": "WebApp" }, "scopes": [ "https://www.googleapis.com/auth/androidmanagement" ] }, "list": { "description": "Lists web apps for a given enterprise.", "flatPath": "v1/enterprises/{enterprisesId}/webApps", "httpMethod": "GET", "id": "androidmanagement.enterprises.webApps.list", "parameterOrder": [ "parent" ], "parameters": { "pageSize": { "description": "The requested page size. The actual page size may be fixed to a min or max value.", "format": "int32", "location": "query", "type": "integer" }, "pageToken": { "description": "A token identifying a page of results returned by the server.", "location": "query", "type": "string" }, "parent": { "description": "The name of the enterprise in the form enterprises/{enterpriseId}.", "location": "path", "pattern": "^enterprises/[^/]+$", "required": true, "type": "string" } }, "path": "v1/{+parent}/webApps", "response": { "$ref": "ListWebAppsResponse" }, "scopes": [ "https://www.googleapis.com/auth/androidmanagement" ] }, "patch": { "description": "Updates a web app.", "flatPath": "v1/enterprises/{enterprisesId}/webApps/{webAppsId}", "httpMethod": "PATCH", "id": "androidmanagement.enterprises.webApps.patch", "parameterOrder": [ "name" ], "parameters": { "name": { "description": "The name of the web app in the form enterprises/{enterpriseId}/webApps/{packageName}.", "location": "path", "pattern": "^enterprises/[^/]+/webApps/[^/]+$", "required": true, "type": "string" }, "updateMask": { "description": "The field mask indicating the fields to update. If not set, all modifiable fields will be modified.", "format": "google-fieldmask", "location": "query", "type": "string" } }, "path": "v1/{+name}", "request": { "$ref": "WebApp" }, "response": { "$ref": "WebApp" }, "scopes": [ "https://www.googleapis.com/auth/androidmanagement" ] } } }, "webTokens": { "methods": { "create": { "description": "Creates a web token to access an embeddable managed Google Play web UI for a given enterprise.", "flatPath": "v1/enterprises/{enterprisesId}/webTokens", "httpMethod": "POST", "id": "androidmanagement.enterprises.webTokens.create", "parameterOrder": [ "parent" ], "parameters": { "parent": { "description": "The name of the enterprise in the form enterprises/{enterpriseId}.", "location": "path", "pattern": "^enterprises/[^/]+$", "required": true, "type": "string" } }, "path": "v1/{+parent}/webTokens", "request": { "$ref": "WebToken" }, "response": { "$ref": "WebToken" }, "scopes": [ "https://www.googleapis.com/auth/androidmanagement" ] } } } } }, "signupUrls": { "methods": { "create": { "description": "Creates an enterprise signup URL.", "flatPath": "v1/signupUrls", "httpMethod": "POST", "id": "androidmanagement.signupUrls.create", "parameterOrder": [], "parameters": { "callbackUrl": { "description": "The callback URL that the admin will be redirected to after successfully creating an enterprise. Before redirecting there the system will add a query parameter to this URL named enterpriseToken which will contain an opaque token to be used for the create enterprise request. The URL will be parsed then reformatted in order to add the enterpriseToken parameter, so there may be some minor formatting changes.", "location": "query", "type": "string" }, "projectId": { "description": "The ID of the Google Cloud Platform project which will own the enterprise.", "location": "query", "type": "string" } }, "path": "v1/signupUrls", "response": { "$ref": "SignupUrl" }, "scopes": [ "https://www.googleapis.com/auth/androidmanagement" ] } } } }, "revision": "20200701", "rootUrl": "https://androidmanagement.googleapis.com/", "schemas": { "AdvancedSecurityOverrides": { "description": "Security policies set to the most secure values by default. To maintain the security posture of a device, we don't recommend overriding any of the default values.", "id": "AdvancedSecurityOverrides", "properties": { "untrustedAppsPolicy": { "description": "The policy for untrusted apps (apps from unknown sources) enforced on the device. Replaces install_unknown_sources_allowed (deprecated).", "enum": [ "UNTRUSTED_APPS_POLICY_UNSPECIFIED", "DISALLOW_INSTALL", "ALLOW_INSTALL_IN_PERSONAL_PROFILE_ONLY", "ALLOW_INSTALL_DEVICE_WIDE" ], "enumDescriptions": [ "Unspecified. Defaults to DISALLOW_INSTALL.", "Default. Disallow untrusted app installs on entire device.", "For devices with work profiles, allow untrusted app installs in the device's personal profile only.", "Allow untrusted app installs on entire device." ], "type": "string" } }, "type": "object" }, "AlwaysOnVpnPackage": { "description": "Configuration for an always-on VPN connection.", "id": "AlwaysOnVpnPackage", "properties": { "lockdownEnabled": { "description": "Disallows networking when the VPN is not connected.", "type": "boolean" }, "packageName": { "description": "The package name of the VPN app.", "type": "string" } }, "type": "object" }, "ApiLevelCondition": { "description": "A compliance rule condition which is satisfied if the Android Framework API level on the device doesn't meet a minimum requirement. There can only be one rule with this type of condition per policy.", "id": "ApiLevelCondition", "properties": { "minApiLevel": { "description": "The minimum desired Android Framework API level. If the device doesn't meet the minimum requirement, this condition is satisfied. Must be greater than zero.", "format": "int32", "type": "integer" } }, "type": "object" }, "AppTrackInfo": { "description": "Id to name association of a app track.", "id": "AppTrackInfo", "properties": { "trackAlias": { "description": "The track name associated with the trackId, set in the Play Console. The name is modifiable from Play Console.", "type": "string" }, "trackId": { "description": "The unmodifiable unique track identifier, taken from the releaseTrackId in the URL of the Play Console page that displays the app\u2019s track information.", "type": "string" } }, "type": "object" }, "Application": { "description": "Information about an app.", "id": "Application", "properties": { "appTracks": { "description": "Application tracks visible to the enterprise.", "items": { "$ref": "AppTrackInfo" }, "type": "array" }, "managedProperties": { "description": "The set of managed properties available to be pre-configured for the app.", "items": { "$ref": "ManagedProperty" }, "type": "array" }, "name": { "description": "The name of the app in the form enterprises/{enterpriseId}/applications/{package_name}.", "type": "string" }, "permissions": { "description": "The permissions required by the app.", "items": { "$ref": "ApplicationPermission" }, "type": "array" }, "title": { "description": "The title of the app. Localized.", "type": "string" } }, "type": "object" }, "ApplicationEvent": { "description": "An app-related event.", "id": "ApplicationEvent", "properties": { "createTime": { "description": "The creation time of the event.", "format": "google-datetime", "type": "string" }, "eventType": { "description": "App event type.", "enum": [ "APPLICATION_EVENT_TYPE_UNSPECIFIED", "INSTALLED", "CHANGED", "DATA_CLEARED", "REMOVED", "REPLACED", "RESTARTED", "PINNED", "UNPINNED" ], "enumDescriptions": [ "This value is disallowed.", "The app was installed.", "The app was changed, for example, a component was enabled or disabled.", "The app data was cleared.", "The app was removed.", "A new version of the app has been installed, replacing the old version.", "The app was restarted.", "The app was pinned to the foreground.", "The app was unpinned." ], "type": "string" } }, "type": "object" }, "ApplicationPermission": { "description": "A permission required by the app.", "id": "ApplicationPermission", "properties": { "description": { "description": "A longer description of the permission, providing more detail on what it affects. Localized.", "type": "string" }, "name": { "description": "The name of the permission. Localized.", "type": "string" }, "permissionId": { "description": "An opaque string uniquely identifying the permission. Not localized.", "type": "string" } }, "type": "object" }, "ApplicationPolicy": { "description": "Policy for an individual app.", "id": "ApplicationPolicy", "properties": { "accessibleTrackIds": { "description": "List of the app\u2019s track IDs that a device belonging to the enterprise can access. If the list contains multiple track IDs, devices receive the latest version among all accessible tracks. If the list contains no track IDs, devices only have access to the app\u2019s production track. More details about each track are available in AppTrackInfo.", "items": { "type": "string" }, "type": "array" }, "defaultPermissionPolicy": { "description": "The default policy for all permissions requested by the app. If specified, this overrides the policy-level default_permission_policy which applies to all apps. It does not override the permission_grants which applies to all apps.", "enum": [ "PERMISSION_POLICY_UNSPECIFIED", "PROMPT", "GRANT", "DENY" ], "enumDescriptions": [ "Policy not specified. If no policy is specified for a permission at any level, then the PROMPT behavior is used by default.", "Prompt the user to grant a permission.", "Automatically grant a permission.", "Automatically deny a permission." ], "type": "string" }, "delegatedScopes": { "description": "The scopes delegated to the app from Android Device Policy.", "enumDescriptions": [ "No delegation scope specified.", "Grants access to certificate installation and management.", "Grants access to managed configurations management.", "Grants access to blocking uninstallation.", "Grants access to permission policy and permission grant state.", "Grants access to package access state.", "Grants access for enabling system apps." ], "items": { "enum": [ "DELEGATED_SCOPE_UNSPECIFIED", "CERT_INSTALL", "MANAGED_CONFIGURATIONS", "BLOCK_UNINSTALL", "PERMISSION_GRANT", "PACKAGE_ACCESS", "ENABLE_SYSTEM_APP" ], "type": "string" }, "type": "array" }, "disabled": { "description": "Whether the app is disabled. When disabled, the app data is still preserved.", "type": "boolean" }, "installType": { "description": "The type of installation to perform.", "enum": [ "INSTALL_TYPE_UNSPECIFIED", "PREINSTALLED", "FORCE_INSTALLED", "BLOCKED", "AVAILABLE", "REQUIRED_FOR_SETUP", "KIOSK" ], "enumDescriptions": [ "Unspecified. Defaults to AVAILABLE.", "The app is automatically installed and can be removed by the user.", "The app is automatically installed and can't be removed by the user.", "The app is blocked and can't be installed. If the app was installed under a previous policy, it will be uninstalled.", "The app is available to install.", "The app is automatically installed and can't be removed by the user and will prevent setup from completion until installation is complete.", "The app is automatically installed in kiosk mode: it's set as the preferred home intent and whitelisted for lock task mode. Device setup won't complete until the app is installed. After installation, users won't be able to remove the app. You can only set this installType for one app per policy. When this is present in the policy, status bar will be automatically disabled." ], "type": "string" }, "lockTaskAllowed": { "description": "Whether the app is allowed to lock itself in full-screen mode. DEPRECATED. Use InstallType KIOSK or kioskCustomLauncherEnabled to to configure a dedicated device.", "type": "boolean" }, "managedConfiguration": { "additionalProperties": { "description": "Properties of the object.", "type": "any" }, "description": "Managed configuration applied to the app. The format for the configuration is dictated by the ManagedProperty values supported by the app. Each field name in the managed configuration must match the key field of the ManagedProperty. The field value must be compatible with the type of the ManagedProperty:
| type | JSON value |
| BOOL | true or false |
| STRING | string |
| INTEGER | number |
| CHOICE | string |
| MULTISELECT | array of strings |
| HIDDEN | string |
| BUNDLE_ARRAY | array of objects |