{ "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", "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" } }, "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": "20190624", "rootUrl": "https://androidmanagement.googleapis.com/", "schemas": { "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" }, "Application": { "description": "Information about an app.", "id": "Application", "properties": { "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": { "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" ], "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." ], "type": "string" }, "lockTaskAllowed": { "description": "Whether the app is allowed to lock itself in full-screen mode.", "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 |
Note that the version can automatically increase during the lifetime of the web app, while Google does internal housekeeping to keep the web app up-to-date.", "format": "int64", "type": "string" } }, "type": "object" }, "WebAppIcon": { "description": "An icon for a web app. Supported formats are: png, jpg and webp.", "id": "WebAppIcon", "properties": { "imageData": { "description": "The actual bytes of the image in a base64url encoded string (c.f. RFC4648, section 5 \"Base 64 Encoding with URL and Filename Safe Alphabet\").