@datafire/google_androidmanagement v6.0.0
@datafire/google_androidmanagement
Client library for Android Management API
Installation and Usage
npm install --save @datafire/google_androidmanagement
let google_androidmanagement = require('@datafire/google_androidmanagement').create({
access_token: "",
refresh_token: "",
client_id: "",
client_secret: "",
redirect_uri: ""
});
.then(data => {
console.log(data);
});
Description
The Android Management API provides remote enterprise management of Android devices and apps.
Actions
oauthCallback
Exchange the code passed to your redirect URI for an access_token
google_androidmanagement.oauthCallback({
"code": ""
}, context)
Input
- input
object
- code required
string
- code required
Output
- output
object
- access_token
string
- refresh_token
string
- token_type
string
- scope
string
- expiration
string
- access_token
oauthRefresh
Exchange a refresh_token for an access_token
google_androidmanagement.oauthRefresh(null, context)
Input
This action has no parameters
Output
- output
object
- access_token
string
- refresh_token
string
- token_type
string
- scope
string
- expiration
string
- access_token
androidmanagement.enterprises.create
Creates an enterprise. This is the last step in the enterprise signup flow.
google_androidmanagement.androidmanagement.enterprises.create({}, context)
Input
- input
object
- enterpriseToken
string
: The enterprise token appended to the callback URL. - projectId
string
: The ID of the Google Cloud Platform project which will own the enterprise. - signupUrlName
string
: The name of the SignupUrl used to sign up for the enterprise. - body Enterprise
- $.xgafv
string
(values: 1, 2): V1 error format. - access_token
string
: OAuth access token. - alt
string
(values: json, media, proto): Data format for response. - callback
string
: JSONP - fields
string
: Selector specifying which fields to include in a partial response. - key
string
: 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. - oauth_token
string
: OAuth 2.0 token for the current user. - prettyPrint
boolean
: Returns response with indentations and line breaks. - quotaUser
string
: 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. - upload_protocol
string
: Upload protocol for media (e.g. "raw", "multipart"). - uploadType
string
: Legacy upload protocol for media (e.g. "media", "multipart").
- enterpriseToken
Output
- output Enterprise
androidmanagement.signupUrls.create
Creates an enterprise signup URL.
google_androidmanagement.androidmanagement.signupUrls.create({}, context)
Input
- input
object
- callbackUrl
string
: 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. - projectId
string
: The ID of the Google Cloud Platform project which will own the enterprise. - $.xgafv
string
(values: 1, 2): V1 error format. - access_token
string
: OAuth access token. - alt
string
(values: json, media, proto): Data format for response. - callback
string
: JSONP - fields
string
: Selector specifying which fields to include in a partial response. - key
string
: 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. - oauth_token
string
: OAuth 2.0 token for the current user. - prettyPrint
boolean
: Returns response with indentations and line breaks. - quotaUser
string
: 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. - upload_protocol
string
: Upload protocol for media (e.g. "raw", "multipart"). - uploadType
string
: Legacy upload protocol for media (e.g. "media", "multipart").
- callbackUrl
Output
- output SignupUrl
androidmanagement.enterprises.webApps.delete
Deletes a web app.
google_androidmanagement.androidmanagement.enterprises.webApps.delete({
"name": ""
}, context)
Input
- input
object
- name required
string
: The name of the web app in the form enterprises/{enterpriseId}/webApps/{packageName}. - wipeDataFlags
array
: Optional flags that control the device wiping behavior. - wipeReasonMessage
string
: 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. - $.xgafv
string
(values: 1, 2): V1 error format. - access_token
string
: OAuth access token. - alt
string
(values: json, media, proto): Data format for response. - callback
string
: JSONP - fields
string
: Selector specifying which fields to include in a partial response. - key
string
: 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. - oauth_token
string
: OAuth 2.0 token for the current user. - prettyPrint
boolean
: Returns response with indentations and line breaks. - quotaUser
string
: 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. - upload_protocol
string
: Upload protocol for media (e.g. "raw", "multipart"). - uploadType
string
: Legacy upload protocol for media (e.g. "media", "multipart").
- name required
Output
- output Empty
androidmanagement.enterprises.webApps.get
Gets a web app.
google_androidmanagement.androidmanagement.enterprises.webApps.get({
"name": ""
}, context)
Input
- input
object
- name required
string
: The name of the web app in the form enterprises/{enterpriseId}/webApp/{packageName}. - filter
string
: The standard list filter. - pageSize
integer
: The standard list page size. - pageToken
string
: The standard list page token. - $.xgafv
string
(values: 1, 2): V1 error format. - access_token
string
: OAuth access token. - alt
string
(values: json, media, proto): Data format for response. - callback
string
: JSONP - fields
string
: Selector specifying which fields to include in a partial response. - key
string
: 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. - oauth_token
string
: OAuth 2.0 token for the current user. - prettyPrint
boolean
: Returns response with indentations and line breaks. - quotaUser
string
: 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. - upload_protocol
string
: Upload protocol for media (e.g. "raw", "multipart"). - uploadType
string
: Legacy upload protocol for media (e.g. "media", "multipart").
- name required
Output
- output WebApp
androidmanagement.enterprises.webApps.patch
Updates a web app.
google_androidmanagement.androidmanagement.enterprises.webApps.patch({
"name": ""
}, context)
Input
- input
object
- name required
string
: The name of the web app in the form enterprises/{enterpriseId}/webApps/{packageName}. - updateMask
string
: The field mask indicating the fields to update. If not set, all modifiable fields will be modified. - body WebApp
- $.xgafv
string
(values: 1, 2): V1 error format. - access_token
string
: OAuth access token. - alt
string
(values: json, media, proto): Data format for response. - callback
string
: JSONP - fields
string
: Selector specifying which fields to include in a partial response. - key
string
: 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. - oauth_token
string
: OAuth 2.0 token for the current user. - prettyPrint
boolean
: Returns response with indentations and line breaks. - quotaUser
string
: 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. - upload_protocol
string
: Upload protocol for media (e.g. "raw", "multipart"). - uploadType
string
: Legacy upload protocol for media (e.g. "media", "multipart").
- name required
Output
- output WebApp
androidmanagement.enterprises.devices.operations.cancel
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.
google_androidmanagement.androidmanagement.enterprises.devices.operations.cancel({
"name": ""
}, context)
Input
- input
object
- name required
string
: The name of the operation resource to be cancelled. - $.xgafv
string
(values: 1, 2): V1 error format. - access_token
string
: OAuth access token. - alt
string
(values: json, media, proto): Data format for response. - callback
string
: JSONP - fields
string
: Selector specifying which fields to include in a partial response. - key
string
: 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. - oauth_token
string
: OAuth 2.0 token for the current user. - prettyPrint
boolean
: Returns response with indentations and line breaks. - quotaUser
string
: 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. - upload_protocol
string
: Upload protocol for media (e.g. "raw", "multipart"). - uploadType
string
: Legacy upload protocol for media (e.g. "media", "multipart").
- name required
Output
- output Empty
androidmanagement.enterprises.devices.issueCommand
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.
google_androidmanagement.androidmanagement.enterprises.devices.issueCommand({
"name": ""
}, context)
Input
- input
object
- name required
string
: The name of the device in the form enterprises/{enterpriseId}/devices/{deviceId}. - body Command
- $.xgafv
string
(values: 1, 2): V1 error format. - access_token
string
: OAuth access token. - alt
string
(values: json, media, proto): Data format for response. - callback
string
: JSONP - fields
string
: Selector specifying which fields to include in a partial response. - key
string
: 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. - oauth_token
string
: OAuth 2.0 token for the current user. - prettyPrint
boolean
: Returns response with indentations and line breaks. - quotaUser
string
: 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. - upload_protocol
string
: Upload protocol for media (e.g. "raw", "multipart"). - uploadType
string
: Legacy upload protocol for media (e.g. "media", "multipart").
- name required
Output
- output Operation
androidmanagement.enterprises.devices.list
Lists devices for a given enterprise.
google_androidmanagement.androidmanagement.enterprises.devices.list({
"parent": ""
}, context)
Input
- input
object
- parent required
string
: The name of the enterprise in the form enterprises/{enterpriseId}. - pageSize
integer
: The requested page size. The actual page size may be fixed to a min or max value. - pageToken
string
: A token identifying a page of results returned by the server. - $.xgafv
string
(values: 1, 2): V1 error format. - access_token
string
: OAuth access token. - alt
string
(values: json, media, proto): Data format for response. - callback
string
: JSONP - fields
string
: Selector specifying which fields to include in a partial response. - key
string
: 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. - oauth_token
string
: OAuth 2.0 token for the current user. - prettyPrint
boolean
: Returns response with indentations and line breaks. - quotaUser
string
: 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. - upload_protocol
string
: Upload protocol for media (e.g. "raw", "multipart"). - uploadType
string
: Legacy upload protocol for media (e.g. "media", "multipart").
- parent required
Output
- output ListDevicesResponse
androidmanagement.enterprises.enrollmentTokens.create
Creates an enrollment token for a given enterprise.
google_androidmanagement.androidmanagement.enterprises.enrollmentTokens.create({
"parent": ""
}, context)
Input
- input
object
- parent required
string
: The name of the enterprise in the form enterprises/{enterpriseId}. - body EnrollmentToken
- $.xgafv
string
(values: 1, 2): V1 error format. - access_token
string
: OAuth access token. - alt
string
(values: json, media, proto): Data format for response. - callback
string
: JSONP - fields
string
: Selector specifying which fields to include in a partial response. - key
string
: 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. - oauth_token
string
: OAuth 2.0 token for the current user. - prettyPrint
boolean
: Returns response with indentations and line breaks. - quotaUser
string
: 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. - upload_protocol
string
: Upload protocol for media (e.g. "raw", "multipart"). - uploadType
string
: Legacy upload protocol for media (e.g. "media", "multipart").
- parent required
Output
- output EnrollmentToken
androidmanagement.enterprises.policies.list
Lists policies for a given enterprise.
google_androidmanagement.androidmanagement.enterprises.policies.list({
"parent": ""
}, context)
Input
- input
object
- parent required
string
: The name of the enterprise in the form enterprises/{enterpriseId}. - pageSize
integer
: The requested page size. The actual page size may be fixed to a min or max value. - pageToken
string
: A token identifying a page of results returned by the server. - $.xgafv
string
(values: 1, 2): V1 error format. - access_token
string
: OAuth access token. - alt
string
(values: json, media, proto): Data format for response. - callback
string
: JSONP - fields
string
: Selector specifying which fields to include in a partial response. - key
string
: 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. - oauth_token
string
: OAuth 2.0 token for the current user. - prettyPrint
boolean
: Returns response with indentations and line breaks. - quotaUser
string
: 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. - upload_protocol
string
: Upload protocol for media (e.g. "raw", "multipart"). - uploadType
string
: Legacy upload protocol for media (e.g. "media", "multipart").
- parent required
Output
- output ListPoliciesResponse
androidmanagement.enterprises.webApps.list
Lists web apps for a given enterprise.
google_androidmanagement.androidmanagement.enterprises.webApps.list({
"parent": ""
}, context)
Input
- input
object
- parent required
string
: The name of the enterprise in the form enterprises/{enterpriseId}. - pageSize
integer
: The requested page size. The actual page size may be fixed to a min or max value. - pageToken
string
: A token identifying a page of results returned by the server. - $.xgafv
string
(values: 1, 2): V1 error format. - access_token
string
: OAuth access token. - alt
string
(values: json, media, proto): Data format for response. - callback
string
: JSONP - fields
string
: Selector specifying which fields to include in a partial response. - key
string
: 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. - oauth_token
string
: OAuth 2.0 token for the current user. - prettyPrint
boolean
: Returns response with indentations and line breaks. - quotaUser
string
: 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. - upload_protocol
string
: Upload protocol for media (e.g. "raw", "multipart"). - uploadType
string
: Legacy upload protocol for media (e.g. "media", "multipart").
- parent required
Output
- output ListWebAppsResponse
androidmanagement.enterprises.webApps.create
Creates a web app.
google_androidmanagement.androidmanagement.enterprises.webApps.create({
"parent": ""
}, context)
Input
- input
object
- parent required
string
: The name of the enterprise in the form enterprises/{enterpriseId}. - body WebApp
- $.xgafv
string
(values: 1, 2): V1 error format. - access_token
string
: OAuth access token. - alt
string
(values: json, media, proto): Data format for response. - callback
string
: JSONP - fields
string
: Selector specifying which fields to include in a partial response. - key
string
: 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. - oauth_token
string
: OAuth 2.0 token for the current user. - prettyPrint
boolean
: Returns response with indentations and line breaks. - quotaUser
string
: 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. - upload_protocol
string
: Upload protocol for media (e.g. "raw", "multipart"). - uploadType
string
: Legacy upload protocol for media (e.g. "media", "multipart").
- parent required
Output
- output WebApp
androidmanagement.enterprises.webTokens.create
Creates a web token to access an embeddable managed Google Play web UI for a given enterprise.
google_androidmanagement.androidmanagement.enterprises.webTokens.create({
"parent": ""
}, context)
Input
- input
object
- parent required
string
: The name of the enterprise in the form enterprises/{enterpriseId}. - body WebToken
- $.xgafv
string
(values: 1, 2): V1 error format. - access_token
string
: OAuth access token. - alt
string
(values: json, media, proto): Data format for response. - callback
string
: JSONP - fields
string
: Selector specifying which fields to include in a partial response. - key
string
: 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. - oauth_token
string
: OAuth 2.0 token for the current user. - prettyPrint
boolean
: Returns response with indentations and line breaks. - quotaUser
string
: 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. - upload_protocol
string
: Upload protocol for media (e.g. "raw", "multipart"). - uploadType
string
: Legacy upload protocol for media (e.g. "media", "multipart").
- parent required
Output
- output WebToken
Definitions
AdvancedSecurityOverrides
- AdvancedSecurityOverrides
object
: 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.- commonCriteriaMode
string
(values: COMMON_CRITERIA_MODE_UNSPECIFIED, COMMON_CRITERIA_MODE_DISABLED, COMMON_CRITERIA_MODE_ENABLED): Controls Common Criteria Mode—security standards defined in the Common Criteria for Information Technology Security Evaluation (https://www.commoncriteriaportal.org/) (CC). Enabling Common Criteria Mode increases certain security components on a device, including AES-GCM encryption of Bluetooth Long Term Keys, and Wi-Fi configuration stores.Warning: Common Criteria Mode enforces a strict security model typically only required for IT products used in national security systems and other highly sensitive organizations. Standard device use may be affected. Only enabled if required. - untrustedAppsPolicy
string
(values: UNTRUSTED_APPS_POLICY_UNSPECIFIED, DISALLOW_INSTALL, ALLOW_INSTALL_IN_PERSONAL_PROFILE_ONLY, ALLOW_INSTALL_DEVICE_WIDE): The policy for untrusted apps (apps from unknown sources) enforced on the device. Replaces install_unknown_sources_allowed (deprecated).
- commonCriteriaMode
AlwaysOnVpnPackage
- AlwaysOnVpnPackage
object
: Configuration for an always-on VPN connection.- lockdownEnabled
boolean
: Disallows networking when the VPN is not connected. - packageName
string
: The package name of the VPN app.
- lockdownEnabled
ApiLevelCondition
- ApiLevelCondition
object
: 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.- minApiLevel
integer
: 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.
- minApiLevel
AppTrackInfo
- AppTrackInfo
object
: Id to name association of a app track.- trackAlias
string
: The track name associated with the trackId, set in the Play Console. The name is modifiable from Play Console. - trackId
string
: The unmodifiable unique track identifier, taken from the releaseTrackId in the URL of the Play Console page that displays the app’s track information.
- trackAlias
Application
- Application
object
: Information about an app.- appTracks
array
: Application tracks visible to the enterprise.- items AppTrackInfo
- managedProperties
array
: The set of managed properties available to be pre-configured for the app.- items ManagedProperty
- name
string
: The name of the app in the form enterprises/{enterpriseId}/applications/{package_name}. - permissions
array
: The permissions required by the app.- items ApplicationPermission
- title
string
: The title of the app. Localized.
- appTracks
ApplicationEvent
- ApplicationEvent
object
: An app-related event.- createTime
string
: The creation time of the event. - eventType
string
(values: APPLICATION_EVENT_TYPE_UNSPECIFIED, INSTALLED, CHANGED, DATA_CLEARED, REMOVED, REPLACED, RESTARTED, PINNED, UNPINNED): App event type.
- createTime
ApplicationPermission
- ApplicationPermission
object
: A permission required by the app.- description
string
: A longer description of the permission, providing more detail on what it affects. Localized. - name
string
: The name of the permission. Localized. - permissionId
string
: An opaque string uniquely identifying the permission. Not localized.
- description
ApplicationPolicy
- ApplicationPolicy
object
: Policy for an individual app.- accessibleTrackIds
array
: List of the app’s 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’s production track. More details about each track are available in AppTrackInfo.- items
string
- items
- autoUpdateMode
string
(values: AUTO_UPDATE_MODE_UNSPECIFIED, AUTO_UPDATE_DEFAULT, AUTO_UPDATE_POSTPONED, AUTO_UPDATE_HIGH_PRIORITY): This feature is not generally available. - connectedWorkAndPersonalApp
string
(values: CONNECTED_WORK_AND_PERSONAL_APP_UNSPECIFIED, CONNECTED_WORK_AND_PERSONAL_APP_DISALLOWED, CONNECTED_WORK_AND_PERSONAL_APP_ALLOWED): Controls whether the app can communicate with itself across a device’s work and personal profiles, subject to user consent. - defaultPermissionPolicy
string
(values: PERMISSION_POLICY_UNSPECIFIED, PROMPT, GRANT, DENY): 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. - delegatedScopes
array
: The scopes delegated to the app from Android Device Policy.- items
string
(values: DELEGATED_SCOPE_UNSPECIFIED, CERT_INSTALL, MANAGED_CONFIGURATIONS, BLOCK_UNINSTALL, PERMISSION_GRANT, PACKAGE_ACCESS, ENABLE_SYSTEM_APP)
- items
- disabled
boolean
: Whether the app is disabled. When disabled, the app data is still preserved. - installType
string
(values: INSTALL_TYPE_UNSPECIFIED, PREINSTALLED, FORCE_INSTALLED, BLOCKED, AVAILABLE, REQUIRED_FOR_SETUP, KIOSK): The type of installation to perform. - lockTaskAllowed
boolean
: Whether the app is allowed to lock itself in full-screen mode. DEPRECATED. Use InstallType KIOSK or kioskCustomLauncherEnabled to to configure a dedicated device. - managedConfiguration
object
: 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 - managedConfigurationTemplate ManagedConfigurationTemplate
- minimumVersionCode
integer
: The minimum version of the app that runs on the device. If set, the device attempts to update the app to at least this version code. If the app is not up-to-date, the device will contain a NonComplianceDetail with non_compliance_reason set to APP_NOT_UPDATED. The app must already be published to Google Play with a version code greater than or equal to this value. At most 20 apps may specify a minimum version code per policy. - packageName
string
: The package name of the app. For example, com.google.android.youtube for the YouTube app. - permissionGrants
array
: Explicit permission grants or denials for the app. These values override the default_permission_policy and permission_grants which apply to all apps.- items PermissionGrant
- accessibleTrackIds
ApplicationReport
- ApplicationReport
object
: Information reported about an installed app.- applicationSource
string
(values: APPLICATION_SOURCE_UNSPECIFIED, SYSTEM_APP_FACTORY_VERSION, SYSTEM_APP_UPDATED_VERSION, INSTALLED_FROM_PLAY_STORE): The source of the package. - displayName
string
: The display name of the app. - events
array
: List of app events. The most recent 20 events are stored in the list.- items ApplicationEvent
- installerPackageName
string
: The package name of the app that installed this app. - keyedAppStates
array
: List of keyed app states reported by the app.- items KeyedAppState
- packageName
string
: Package name of the app. - packageSha256Hash
string
: The SHA-256 hash of the app's APK file, which can be used to verify the app hasn't been modified. Each byte of the hash value is represented as a two-digit hexadecimal number. - signingKeyCertFingerprints
array
: The SHA-1 hash of each android.content.pm.Signature (https://developer.android.com/reference/android/content/pm/Signature.html) associated with the app package. Each byte of each hash value is represented as a two-digit hexadecimal number.- items
string
- items
- state
string
(values: APPLICATION_STATE_UNSPECIFIED, REMOVED, INSTALLED): Application state. - versionCode
integer
: The app version code, which can be used to determine whether one version is more recent than another. - versionName
string
: The app version as displayed to the user.
- applicationSource
ApplicationReportingSettings
- ApplicationReportingSettings
object
: Settings controlling the behavior of application reports.- includeRemovedApps
boolean
: Whether removed apps are included in application reports.
- includeRemovedApps
BlockAction
- BlockAction
object
: An action to block access to apps and data on a fully managed device or in a work profile. This action also triggers a device or work profile to displays a user-facing notification with information (where possible) on how to correct the compliance issue. Note: wipeAction must also be specified.- blockAfterDays
integer
: Number of days the policy is non-compliant before the device or work profile is blocked. To block access immediately, set to 0. blockAfterDays must be less than wipeAfterDays. - blockScope
string
(values: BLOCK_SCOPE_UNSPECIFIED, BLOCK_SCOPE_WORK_PROFILE, BLOCK_SCOPE_DEVICE): Specifies the scope of this BlockAction. Only applicable to devices that are company-owned.
- blockAfterDays
ChoosePrivateKeyRule
- ChoosePrivateKeyRule
object
: A rule for automatically choosing a private key and certificate to authenticate the device to a server.- packageNames
array
: The package names for which outgoing requests are subject to this rule. If no package names are specified, then the rule applies to all packages. For each package name listed, the rule applies to that package and all other packages that shared the same Android UID. The SHA256 hash of the signing key signatures of each package_name will be verified against those provided by Play- items
string
- items
- privateKeyAlias
string
: The alias of the private key to be used. - urlPattern
string
: The URL pattern to match against the URL of the outgoing request. The pattern may contain asterisk (*) wildcards. Any URL is matched if unspecified.
- packageNames
Command
- Command
object
: A command.- createTime
string
: The timestamp at which the command was created. The timestamp is automatically generated by the server. - duration
string
: The duration for which the command is valid. The command will expire if not executed by the device during this time. The default duration if unspecified is ten minutes. There is no maximum duration. - errorCode
string
(values: COMMAND_ERROR_CODE_UNSPECIFIED, UNKNOWN, API_LEVEL, MANAGEMENT_MODE, INVALID_VALUE, UNSUPPORTED): If the command failed, an error code explaining the failure. This is not set when the command is cancelled by the caller. - newPassword
string
: For commands of type RESET_PASSWORD, optionally specifies the new password. - resetPasswordFlags
array
: For commands of type RESET_PASSWORD, optionally specifies flags.- items
string
(values: RESET_PASSWORD_FLAG_UNSPECIFIED, REQUIRE_ENTRY, DO_NOT_ASK_CREDENTIALS_ON_BOOT, LOCK_NOW)
- items
- type
string
(values: COMMAND_TYPE_UNSPECIFIED, LOCK, RESET_PASSWORD, REBOOT, RELINQUISH_OWNERSHIP): The type of the command. - userName
string
: The resource name of the user that owns the device in the form enterprises/{enterpriseId}/users/{userId}. This is automatically generated by the server based on the device the command is sent to.
- createTime
CommonCriteriaModeInfo
- CommonCriteriaModeInfo
object
: Information about Common Criteria Mode—security standards defined in the Common Criteria for Information Technology Security Evaluation (https://www.commoncriteriaportal.org/) (CC).This information is only available if statusReportingSettings.commonCriteriaModeEnabled is true in the device's policy.- commonCriteriaModeStatus
string
(values: COMMON_CRITERIA_MODE_STATUS_UNKNOWN, COMMON_CRITERIA_MODE_DISABLED, COMMON_CRITERIA_MODE_ENABLED): Whether Common Criteria Mode is enabled.
- commonCriteriaModeStatus
ComplianceRule
- ComplianceRule
object
: A rule declaring which mitigating actions to take when a device is not compliant with its policy. For every rule, there is always an implicit mitigating action to set policy_compliant to false for the Device resource, and display a message on the device indicating that the device is not compliant with its policy. Other mitigating actions may optionally be taken as well, depending on the field values in the rule.- apiLevelCondition ApiLevelCondition
- disableApps
boolean
: If set to true, the rule includes a mitigating action to disable apps so that the device is effectively disabled, but app data is preserved. If the device is running an app in locked task mode, the app will be closed and a UI showing the reason for non-compliance will be displayed. - nonComplianceDetailCondition NonComplianceDetailCondition
- packageNamesToDisable
array
: If set, the rule includes a mitigating action to disable apps specified in the list, but app data is preserved.- items
string
- items
Date
- Date
object
: Represents a whole or partial calendar date, such as a birthday. The time of day and time zone are either specified elsewhere or are insignificant. The date is relative to the Gregorian Calendar. This can represent one of the following: A full date, with non-zero year, month, and day values A month and day value, with a zero year, such as an anniversary A year on its own, with zero month and day values A year and month value, with a zero day, such as a credit card expiration dateRelated types are google.type.TimeOfDay and google.protobuf.Timestamp.- day
integer
: Day of a month. Must be from 1 to 31 and valid for the year and month, or 0 to specify a year by itself or a year and month where the day isn't significant. - month
integer
: Month of a year. Must be from 1 to 12, or 0 to specify a year without a month and day. - year
integer
: Year of the date. Must be from 1 to 9999, or 0 to specify a date without a year.
- day
Device
- Device
object
: A device owned by an enterprise. Unless otherwise noted, all fields are read-only and can't be modified by enterprises.devices.patch.- apiLevel
integer
: The API level of the Android platform version running on the device. - applicationReports
array
: Reports for apps installed on the device. This information is only available when application_reports_enabled is true in the device's policy.- items ApplicationReport
- appliedPolicyName
string
: The name of the policy currently applied to the device. - appliedPolicyVersion
string
: The version of the policy currently applied to the device. - appliedState
string
(values: DEVICE_STATE_UNSPECIFIED, ACTIVE, DISABLED, DELETED, PROVISIONING): The state currently applied to the device. - commonCriteriaModeInfo CommonCriteriaModeInfo
- deviceSettings DeviceSettings
- disabledReason UserFacingMessage
- displays
array
: Detailed information about displays on the device. This information is only available if displayInfoEnabled is true in the device's policy.- items Display
- enrollmentTime
string
: The time of device enrollment. - enrollmentTokenData
string
: If the device was enrolled with an enrollment token with additional data provided, this field contains that data. - enrollmentTokenName
string
: If the device was enrolled with an enrollment token, this field contains the name of the token. - hardwareInfo HardwareInfo
- hardwareStatusSamples
array
: Hardware status samples in chronological order. This information is only available if hardwareStatusEnabled is true in the device's policy.- items HardwareStatus
- lastPolicyComplianceReportTime
string
: Deprecated. - lastPolicySyncTime
string
: The last time the device fetched its policy. - lastStatusReportTime
string
: The last time the device sent a status report. - managementMode
string
(values: MANAGEMENT_MODE_UNSPECIFIED, DEVICE_OWNER, PROFILE_OWNER): The type of management mode Android Device Policy takes on the device. This influences which policy settings are supported. - memoryEvents
array
: Events related to memory and storage measurements in chronological order. This information is only available if memoryInfoEnabled is true in the device's policy.- items MemoryEvent
- memoryInfo MemoryInfo
- name
string
: The name of the device in the form enterprises/{enterpriseId}/devices/{deviceId}. - networkInfo NetworkInfo
- nonComplianceDetails
array
: Details about policy settings that the device is not compliant with.- items NonComplianceDetail
- ownership
string
(values: OWNERSHIP_UNSPECIFIED, COMPANY_OWNED, PERSONALLY_OWNED): Ownership of the managed device. - policyCompliant
boolean
: Whether the device is compliant with its policy. - policyName
string
: The name of the policy applied to the device, in the form enterprises/{enterpriseId}/policies/{policyId}. If not specified, the policy_name for the device's user is applied. This field can be modified by a patch request. You can specify only the policyId when calling enterprises.devices.patch, as long as the policyId doesn’t contain any slashes. The rest of the policy name is inferred. - powerManagementEvents
array
: Power management events on the device in chronological order. This information is only available if powerManagementEventsEnabled is true in the device's policy.- items PowerManagementEvent
- previousDeviceNames
array
: If the same physical device has been enrolled multiple times, this field contains its previous device names. The serial number is used as the unique identifier to determine if the same physical device has enrolled previously. The names are in chronological order.- items
string
- items
- securityPosture SecurityPosture
- softwareInfo SoftwareInfo
- state
string
(values: DEVICE_STATE_UNSPECIFIED, ACTIVE, DISABLED, DELETED, PROVISIONING): The state to be applied to the device. This field can be modified by a patch request. Note that when calling enterprises.devices.patch, ACTIVE and DISABLED are the only allowable values. To enter the device into a DELETED state, call enterprises.devices.delete. - systemProperties
object
: Map of selected system properties name and value related to the device. This information is only available if systemPropertiesEnabled is true in the device's policy. - user User
- userName
string
: The resource name of the user that owns this device in the form enterprises/{enterpriseId}/users/{userId}.
- apiLevel
DeviceSettings
- DeviceSettings
object
: Information about security related device settings on device.- adbEnabled
boolean
: Whether ADB (https://developer.android.com/studio/command-line/adb.html) is enabled on the device. - developmentSettingsEnabled
boolean
: Whether developer mode is enabled on the device. - encryptionStatus
string
(values: ENCRYPTION_STATUS_UNSPECIFIED, UNSUPPORTED, INACTIVE, ACTIVATING, ACTIVE, ACTIVE_DEFAULT_KEY, ACTIVE_PER_USER): Encryption status from DevicePolicyManager. - isDeviceSecure
boolean
: Whether the device is secured with PIN/password. - isEncrypted
boolean
: Whether the storage encryption is enabled. - unknownSourcesEnabled
boolean
: Whether installing apps from unknown sources is enabled. - verifyAppsEnabled
boolean
: Whether Verify Apps (Google Play Protect (https://support.google.com/googleplay/answer/2812853)) is enabled on the device.
- adbEnabled
Display
- Display
object
: Device display information.- density
integer
: Display density expressed as dots-per-inch. - displayId
integer
: Unique display id. - height
integer
: Display height in pixels. - name
string
: Name of the display. - refreshRate
integer
: Refresh rate of the display in frames per second. - state
string
(values: DISPLAY_STATE_UNSPECIFIED, OFF, ON, DOZE, SUSPENDED): State of the display. - width
integer
: Display width in pixels.
- density
Empty
- Empty
object
: A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); } The JSON representation for Empty is empty JSON object {}.
EnrollmentToken
- EnrollmentToken
object
: An enrollment token.- additionalData
string
: Optional, arbitrary data associated with the enrollment token. This could contain, for example, the ID of an org unit the device is assigned to after enrollment. After a device enrolls with the token, this data will be exposed in the enrollment_token_data field of the Device resource. The data must be 1024 characters or less; otherwise, the creation request will fail. - allowPersonalUsage
string
(values: ALLOW_PERSONAL_USAGE_UNSPECIFIED, PERSONAL_USAGE_ALLOWED, PERSONAL_USAGE_DISALLOWED): Controls whether personal usage is allowed on a device provisioned with this enrollment token.For company-owned devices: Enabling personal usage allows the user to set up a work profile on the device. Disabling personal usage requires the user provision the device as a fully managed device.For personally-owned devices: Enabling personal usage allows the user to set up a work profile on the device. Disabling personal usage will prevent the device from provisioning. Personal usage cannot be disabled on personally-owned device. - duration
string
: The length of time the enrollment token is valid, ranging from 1 minute to 30 days. If not specified, the default duration is 1 hour. - expirationTimestamp
string
: The expiration time of the token. This is a read-only field generated by the server. - name
string
: The name of the enrollment token, which is generated by the server during creation, in the form enterprises/{enterpriseId}/enrollmentTokens/{enrollmentTokenId}. - oneTimeOnly
boolean
: Whether the enrollment token is for one time use only. If the flag is set to true, only one device can use it for registration. - policyName
string
: The name of the policy initially applied to the enrolled device, in the form enterprises/{enterpriseId}/policies/{policyId}. If not specified, the policy_name for the device’s user is applied. If user_name is also not specified, enterprises/{enterpriseId}/policies/default is applied by default. When updating this field, you can specify only the policyId as long as the policyId doesn’t contain any slashes. The rest of the policy name will be inferred. - qrCode
string
: A JSON string whose UTF-8 representation can be used to generate a QR code to enroll a device with this enrollment token. To enroll a device using NFC, the NFC record must contain a serialized java.util.Properties representation of the properties in the JSON. - user User
- value
string
: The token value that's passed to the device and authorizes the device to enroll. This is a read-only field generated by the server.
- additionalData
Enterprise
- Enterprise
object
: The configuration applied to an enterprise.- appAutoApprovalEnabled
boolean
: Deprecated and unused. - enabledNotificationTypes
array
: The types of Google Pub/Sub notifications enabled for the enterprise.- items
string
(values: NOTIFICATION_TYPE_UNSPECIFIED, ENROLLMENT, COMPLIANCE_REPORT, STATUS_REPORT, COMMAND)
- items
- enterpriseDisplayName
string
: The name of the enterprise displayed to users. - logo ExternalData
- name
string
: The name of the enterprise which is generated by the server during creation, in the form enterprises/{enterpriseId}. - primaryColor
integer
: A color in RGB format that indicates the predominant color to display in the device management app UI. The color components are stored as follows: (red << 16) | (green << 8) | blue, where the value of each component is between 0 and 255, inclusive. - pubsubTopic
string
: The topic that Cloud Pub/Sub notifications are published to, in the form projects/{project}/topics/{topic}. This field is only required if Pub/Sub notifications are enabled. - signinDetails
array
: Sign-in details of the enterprise.- items SigninDetail
- termsAndConditions
array
: Terms and conditions that must be accepted when provisioning a device for this enterprise. A page of terms is generated for each value in this list.- items TermsAndConditions
- appAutoApprovalEnabled
ExternalData
- ExternalData
object
: Data hosted at an external location. The data is to be downloaded by Android Device Policy and verified against the hash.- sha256Hash
string
: The base-64 encoded SHA-256 hash of the content hosted at url. If the content doesn't match this hash, Android Device Policy won't use the data. - url
string
: The absolute URL to the data, which must use either the http or https scheme. Android Device Policy doesn't provide any credentials in the GET request, so the URL must be publicly accessible. Including a long, random component in the URL may be used to prevent attackers from discovering the URL.
- sha256Hash
FreezePeriod
- FreezePeriod
object
: A system freeze period. When a device’s clock is within the freeze period, all incoming system updates (including security patches) are blocked and won’t be installed. When a device is outside the freeze period, normal update behavior applies. Leap years are ignored in freeze period calculations, in particular: If Feb. 29th is set as the start or end date of a freeze period, the freeze period will start or end on Feb. 28th instead. When a device’s system clock reads Feb. 29th, it’s treated as Feb. 28th. * When calculating the number of days in a freeze period or the time between two freeze periods, Feb. 29th is ignored and not counted as a day.
HardwareInfo
- HardwareInfo
object
: Information about device hardware. The fields related to temperature thresholds are only available if hardwareStatusEnabled is true in the device's policy.- batteryShutdownTemperatures
array
: Battery shutdown temperature thresholds in Celsius for each battery on the device.- items
number
- items
- batteryThrottlingTemperatures
array
: Battery throttling temperature thresholds in Celsius for each battery on the device.- items
number
- items
- brand
string
: Brand of the device. For example, Google. - cpuShutdownTemperatures
array
: CPU shutdown temperature thresholds in Celsius for each CPU on the device.- items
number
- items
- cpuThrottlingTemperatures
array
: CPU throttling temperature thresholds in Celsius for each CPU on the device.- items
number
- items
- deviceBasebandVersion
string
: Baseband version. For example, MDM9625_104662.22.05.34p. - gpuShutdownTemperatures
array
: GPU shutdown temperature thresholds in Celsius for each GPU on the device.- items
number
- items
- gpuThrottlingTemperatures
array
: GPU throttling temperature thresholds in Celsius for each GPU on the device.- items
number
- items
- hardware
string
: Name of the hardware. For example, Angler. - manufacturer
string
: Manufacturer. For example, Motorola. - model
string
: The model of the device. For example, Asus Nexus 7. - serialNumber
string
: The device serial number. - skinShutdownTemperatures
array
: Device skin shutdown temperature thresholds in Celsius.- items
number
- items
- skinThrottlingTemperatures
array
: Device skin throttling temperature thresholds in Celsius.- items
number
- items
- batteryShutdownTemperatures
HardwareStatus
- HardwareStatus
object
: Hardware status. Temperatures may be compared to the temperature thresholds available in hardwareInfo to determine hardware health.- batteryTemperatures
array
: Current battery temperatures in Celsius for each battery on the device.- items
number
- items
- cpuTemperatures
array
: Current CPU temperatures in Celsius for each CPU on the device.- items
number
- items
- cpuUsages
array
: CPU usages in percentage for each core available on the device. Usage is 0 for each unplugged core. Empty array implies that CPU usage is not supported in the system.- items
number
- items
- createTime
string
: The time the measurements were taken. - fanSpeeds
array
: Fan speeds in RPM for each fan on the device. Empty array means that there are no fans or fan speed is not supported on the system.- items
number
- items
- gpuTemperatures
array
: Current GPU temperatures in Celsius for each GPU on the device.- items
number
- items
- skinTemperatures
array
: Current device skin temperatures in Celsius.- items
number
- items
- batteryTemperatures
KeyedAppState
- KeyedAppState
object
: Keyed app state reported by the app.- createTime
string
: The creation time of the app state on the device. - data
string
: Optionally, a machine-readable value to be read by the EMM. For example, setting values that the admin can choose to query against in the EMM console (e.g. “notify me if the battery_warning data < 10”). - key
string
: The key for the app state. Acts as a point of reference for what the app is providing state for. For example, when providing managed configuration feedback, this key could be the managed configuration key. - lastUpdateTime
string
: The time the app state was most recently updated. - message
string
: Optionally, a free-form message string to explain the app state. If the state was triggered by a particular value (e.g. a managed configuration value), it should be included in the message. - severity
string
(values: SEVERITY_UNSPECIFIED, INFO, ERROR): The severity of the app state.
- createTime
KioskCustomization
- KioskCustomization
object
: Settings controlling the behavior of a device in kiosk mode. To enable kiosk mode, set kioskCustomLauncherEnabled to true or specify an app in the policy with installType KIOSK.- deviceSettings
string
(values: DEVICE_SETTINGS_UNSPECIFIED, SETTINGS_ACCESS_ALLOWED, SETTINGS_ACCESS_BLOCKED): Specifies whether the Settings app is allowed in kiosk mode. - powerButtonActions
string
(values: POWER_BUTTON_ACTIONS_UNSPECIFIED, POWER_BUTTON_AVAILABLE, POWER_BUTTON_BLOCKED): Sets the behavior of a device in kiosk mode when a user presses and holds (long-presses) the Power button. - statusBar
string
(values: STATUS_BAR_UNSPECIFIED, NOTIFICATIONS_AND_SYSTEM_INFO_ENABLED, NOTIFICATIONS_AND_SYSTEM_INFO_DISABLED, SYSTEM_INFO_ONLY): Specifies whether system info and notifications are disabled in kiosk mode. - systemErrorWarnings
string
(values: SYSTEM_ERROR_WARNINGS_UNSPECIFIED, ERROR_AND_WARNINGS_ENABLED, ERROR_AND_WARNINGS_MUTED): Specifies whether system error dialogs for crashed or unresponsive apps are blocked in kiosk mode. When blocked, the system will force-stop the app as if the user chooses the "close app" option on the UI. - systemNavigation
string
(values: SYSTEM_NAVIGATION_UNSPECIFIED, NAVIGATION_ENABLED, NAVIGATION_DISABLED, HOME_BUTTON_ONLY): Specifies which navigation features are enabled (e.g. Home, Overview buttons) in kiosk mode.
- deviceSettings
LaunchAppAction
- LaunchAppAction
object
: An action to launch an app.- packageName
string
: Package name of app to be launched
- packageName
ListDevicesResponse
- ListDevicesResponse
object
: Response to a request to list devices for a given enterprise.- devices
array
: The list of devices.- items Device
- nextPageToken
string
: If there are more results, a token to retrieve next page of results.
- devices
ListOperationsResponse
- ListOperationsResponse
object
: The response message for Operations.ListOperations.- nextPageToken
string
: The standard List next-page token. - operations
array
: A list of operations that matches the specified filter in the request.- items Operation
- nextPageToken
ListPoliciesResponse
- ListPoliciesResponse
object
: Response to a request to list policies for a given enterprise.- nextPageToken
string
: If there are more results, a token to retrieve next page of results. - policies
array
: The list of policies.- items Policy
- nextPageToken
ListWebAppsResponse
- ListWebAppsResponse
object
: Response to a request to list web apps for a given enterprise.- nextPageToken
string
: If there are more results, a token to retrieve next page of results. - webApps
array
: The list of web apps.- items WebApp
- nextPageToken
ManagedConfigurationTemplate
- ManagedConfigurationTemplate
object
: The managed configurations template for the app, saved from the managed configurations iframe.- configurationVariables
object
: Optional, a map containing configuration variables defined for the configuration. - templateId
string
: The ID of the managed configurations template.
- configurationVariables
ManagedProperty
- ManagedProperty
object
: Managed property.- description
string
: A longer description of the property, providing more detail of what it affects. Localized. - entries
array
: For CHOICE or MULTISELECT properties, the list of possible entries.- items ManagedPropertyEntry
- key
string
: The unique key that the app uses to identify the property, e.g. "com.google.android.gm.fieldname". - nestedProperties
array
: For BUNDLE_ARRAY properties, the list of nested properties. A BUNDLE_ARRAY property is at most two levels deep.- items ManagedProperty
- title
string
: The name of the property. Localized. - type
string
(values: MANAGED_PROPERTY_TYPE_UNSPECIFIED, BOOL, STRING, INTEGER, CHOICE, MULTISELECT, HIDDEN, BUNDLE, BUNDLE_ARRAY): The type of the property.
- description
ManagedPropertyEntry
- ManagedPropertyEntry
object
: An entry of a managed property.- name
string
: The human-readable name of the value. Localized. - value
string
: The machine-readable value of the entry, which should be used in the configuration. Not localized.
- name
MemoryEvent
- MemoryEvent
object
: An event related to memory and storage measurements.- byteCount
string
: The number of free bytes in the medium, or for EXTERNAL_STORAGE_DETECTED, the total capacity in bytes of the storage medium. - createTime
string
: The creation time of the event. - eventType
string
(values: MEMORY_EVENT_TYPE_UNSPECIFIED, RAM_MEASURED, INTERNAL_STORAGE_MEASURED, EXTERNAL_STORAGE_DETECTED, EXTERNAL_STORAGE_REMOVED, EXTERNAL_STORAGE_MEASURED): Event type.
- byteCount
MemoryInfo
- MemoryInfo
object
: Information about device memory and storage.- totalInternalStorage
string
: Total internal storage on device in bytes. - totalRam
string
: Total RAM on device in bytes.
- totalInternalStorage
NetworkInfo
- NetworkInfo
object
: Device network info.- imei
string
: IMEI number of the GSM device. For example, A1000031212. - meid
string
: MEID number of the CDMA device. For example, A00000292788E1. - networkOperatorName
string
: Alphabetic name of current registered operator. For example, Vodafone. - wifiMacAddress
string
: Wi-Fi MAC address of the device. For example, 7c:11:11:11:11:11.
- imei
NonComplianceDetail
- NonComplianceDetail
object
: Provides detail about non-compliance with a policy setting.- fieldPath
string
: For settings with nested fields, if a particular nested field is out of compliance, this specifies the full path to the offending field. The path is formatted in the same way the policy JSON field would be referenced in JavaScript, that is: 1) For object-typed fields, the field name is followed by a dot then by a subfield name. 2) For array-typed fields, the field name is followed by the array index enclosed in brackets. For example, to indicate a problem with the url field in the externalData field in the 3rd application, the path would be applications2.externalData.url - installationFailureReason
string
(values: INSTALLATION_FAILURE_REASON_UNSPECIFIED, INSTALLATION_FAILURE_REASON_UNKNOWN, IN_PROGRESS, NOT_FOUND, NOT_COMPATIBLE_WITH_DEVICE, NOT_APPROVED, PERMISSIONS_NOT_ACCEPTED, NOT_AVAILABLE_IN_COUNTRY, NO_LICENSES_REMAINING, NOT_ENROLLED, USER_INVALID): If package_name is set and the non-compliance reason is APP_NOT_INSTALLED or APP_NOT_UPDATED, the detailed reason the app can't be installed or updated. - nonComplianceReason
string
(values: NON_COMPLIANCE_REASON_UNSPECIFIED, API_LEVEL, MANAGEMENT_MODE, USER_ACTION, INVALID_VALUE, APP_NOT_INSTALLED, UNSUPPORTED, APP_INSTALLED, PENDING, APP_INCOMPATIBLE, APP_NOT_UPDATED): The reason the device is not in compliance with the setting. - packageName
string
: The package name indicating which app is out of compliance, if applicable. - settingName
string
: The name of the policy setting. This is the JSON field name of a top-level Policy field.
- fieldPath
NonComplianceDetailCondition
- NonComplianceDetailCondition
object
: A compliance rule condition which is satisfied if there exists any matching NonComplianceDetail for the device. A NonComplianceDetail matches a NonComplianceDetailCondition if all the fields which are set within the NonComplianceDetailCondition match the corresponding NonComplianceDetail fields.- nonComplianceReason
string
(values: NON_COMPLIANCE_REASON_UNSPECIFIED, API_LEVEL, MANAGEMENT_MODE, USER_ACTION, INVALID_VALUE, APP_NOT_INSTALLED, UNSUPPORTED, APP_INSTALLED, PENDING, APP_INCOMPATIBLE, APP_NOT_UPDATED): The reason the device is not in compliance with the setting. If not set, then this condition matches any reason. - packageName
string
: The package name of the app that's out of compliance. If not set, then this condition matches any package name. - settingName
string
: The name of the policy setting. This is the JSON field name of a top-level Policy field. If not set, then this condition matches any setting name.
- nonComplianceReason
Operation
- Operation
object
: This resource represents a long-running operation that is the result of a network API call.- done
boolean
: If the value is false, it means the operation is still in progress. If true, the operation is completed, and either error or response is available. - error Status
- metadata
object
: Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any. - name
string
: The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the name should be a resource name ending with operations/{unique_id}. - response
object
: The normal response of the operation in case of success. If the original method returns no data on success, such as Delete, the response is google.protobuf.Empty. If the original method is standard Get/Create/Update, the response should be the resource. For other methods, the response should have the type XxxResponse, where Xxx is the original method name. For example, if the original method name is TakeSnapshot(), the inferred response type is TakeSnapshotResponse.
- done
PackageNameList
- PackageNameList
object
: A list of package names.- packageNames
array
: A list of package names.- items
string
- items
- packageNames
PasswordRequirements
- PasswordRequirements
object
: Requirements for the password used to unlock a device.- maximumFailedPasswordsForWipe
integer
: Number of incorrect device-unlock passwords that can be entered before a device is wiped. A value of 0 means there is no restriction. - passwordExpirationTimeout
string
: Password expiration timeout. - passwordHistoryLength
integer
: The length of the password history. After setting this field, the user won't be able to enter a new password that is the same as any password in the history. A value of 0 means there is no restriction. - passwordMinimumLength
integer
: The minimum allowed password length. A value of 0 means there is no restriction. Only enforced when password_quality is NUMERIC, NUMERIC_COMPLEX, ALPHABETIC, ALPHANUMERIC, or COMPLEX. - passwordMinimumLetters
integer
: Minimum number of letters required in the password. Only enforced when password_quality is COMPLEX. - passwordMinimumLowerCase
integer
: Minimum number of lower case letters required in the password. Only enforced when password_quality is COMPLEX. - passwordMinimumNonLetter
integer
: Minimum number of non-letter characters (numerical digits or symbols) required in the password. Only enforced when password_quality is COMPLEX. - passwordMinimumNumeric
integer
: Minimum number of numerical digits required in the password. Only enforced when password_quality is COMPLEX. - passwordMinimumSymbols
integer
: Minimum number of symbols required in the password. Only enforced when password_quality is COMPLEX. - passwordMinimumUpperCase
integer
: Minimum number of upper case letters required in the password. Only enforced when password_quality is COMPLEX. - passwordQuality
string
(values: PASSWORD_QUALITY_UNSPECIFIED, BIOMETRIC_WEAK, SOMETHING, NUMERIC, NUMERIC_COMPLEX, ALPHABETIC, ALPHANUMERIC, COMPLEX): The required password quality. - passwordScope
string
(values: SCOPE_UNSPECIFIED, SCOPE_DEVICE, SCOPE_PROFILE): The scope that the password requirement applies to. - requirePasswordUnlock
string
(values: REQUIRE_PASSWORD_UNLOCK_UNSPECIFIED, USE_DEFAULT_DEVICE_TIMEOUT, REQUIRE_EVERY_DAY): The length of time after a device or work profile is unlocked using a strong form of authentication (password, PIN, pattern) that it can be unlocked using any other authentication method (e.g. fingerprint, trust agents, face). After the specified time period elapses, only strong forms of authentication can be used to unlock the device or work profile.
- maximumFailedPasswordsForWipe
PermissionGrant
- PermissionGrant
object
: Configuration for an Android permission and its grant state.- permission
string
: The Android permission or group, e.g. android.permission.READ_CALENDAR or android.permission_group.CALENDAR. - policy
string
(values: PERMISSION_POLICY_UNSPECIFIED, PROMPT, GRANT, DENY): The policy for granting the permission.
- permission
PersistentPreferredActivity
- PersistentPreferredActivity
object
: A default activity for handling intents that match a particular intent filter. Note: To set up a kiosk, use InstallType to KIOSK rather than use persistent preferred activities.- actions
array
: The intent actions to match in the filter. If any actions are included in the filter, then an intent's action must be one of those values for it to match. If no actions are included, the intent action is ignored.- items
string
- items
- categories
array
: The intent categories to match in the filter. An intent includes the categories that it requires, all of which must be included in the filter in order to match. In other words, adding a category to the filter has no impact on matching unless that category is specified in the intent.- items
string
- items
- receiverActivity
string
: The activity that should be the default intent handler. This should be an Android component name, e.g. com.android.enterprise.app/.MainActivity. Alternatively, the value may be the package name of an app, which causes Android Device Policy to choose an appropriate activity from the app to handle the intent.
- actions
PersonalApplicationPolicy
- PersonalApplicationPolicy
object
: Policies for apps in the personal profile of a company-owned device with a work profile.- installType
string
(values: INSTALL_TYPE_UNSPECIFIED, BLOCKED, AVAILABLE): The type of installation to perform. - packageName
string
: The package name of the application.
- installType
PersonalUsagePolicies
- PersonalUsagePolicies
object
: Policies controlling personal usage on a company-owned device with a work profile.- accountTypesWithManagementDisabled
array
: Account types that can't be managed by the user.- items
string
- items
- cameraDisabled
boolean
: Whet
- accountTypesWithManagementDisabled