Skip to content

Latest commit

 

History

History

google_androidmanagement

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

@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

Output

  • output object
    • access_token string
    • refresh_token string
    • token_type string
    • scope string
    • expiration string

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

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").

Output

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").

Output

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").

Output

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").

Output

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").

Output

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").

Output

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").

Output

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").

Output

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").

Output

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").

Output

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").

Output

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").

Output

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").

Output

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).

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.

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.

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.

Application

  • Application object: Information about an app.
    • appTracks array: Application tracks visible to the enterprise.
    • managedProperties array: The set of managed properties available to be pre-configured for the app.
    • name string: The name of the app in the form enterprises/{enterpriseId}/applications/{package_name}.
    • permissions array: The permissions required by the app.
    • title string: The title of the app. Localized.

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.

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.

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
    • 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)
    • 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.

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.
    • installerPackageName string: The package name of the app that installed this app.
    • keyedAppStates array: List of keyed app states reported by the app.
    • 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
    • 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.

ApplicationReportingSettings

  • ApplicationReportingSettings object: Settings controlling the behavior of application reports.
    • includeRemovedApps boolean: Whether removed apps are included in application reports.

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.

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
    • 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.

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)
    • 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.

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.

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

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.

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.
    • 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.
    • 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.
    • 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.
    • 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.
    • 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.
    • 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
    • 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}.

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.

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.

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.

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)
    • 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.
    • 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.

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.

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
    • batteryThrottlingTemperatures array: Battery throttling temperature thresholds in Celsius for each battery on the device.
      • items number
    • 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
    • cpuThrottlingTemperatures array: CPU throttling temperature thresholds in Celsius for each CPU on the device.
      • items number
    • 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
    • gpuThrottlingTemperatures array: GPU throttling temperature thresholds in Celsius for each GPU on the device.
      • items number
    • 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
    • skinThrottlingTemperatures array: Device skin throttling temperature thresholds in Celsius.
      • items number

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
    • cpuTemperatures array: Current CPU temperatures in Celsius for each CPU on the device.
      • items number
    • 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
    • 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
    • gpuTemperatures array: Current GPU temperatures in Celsius for each GPU on the device.
      • items number
    • skinTemperatures array: Current device skin temperatures in Celsius.
      • items number

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.

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.

LaunchAppAction

  • LaunchAppAction object: An action to launch an app.
    • packageName string: Package name of app to be launched

ListDevicesResponse

  • ListDevicesResponse object: Response to a request to list devices for a given enterprise.
    • devices array: The list of devices.
    • nextPageToken string: If there are more results, a token to retrieve next page of results.

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.

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.

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.

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.

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.
    • 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.
    • 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.

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.

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.

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.

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.

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 applications[2].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.

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.

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.

PackageNameList

  • PackageNameList object: A list of package names.
    • packageNames array: A list of package names.
      • items string

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.

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.

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
    • 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
    • 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.

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.

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
    • cameraDisabled boolean: Whether camera is disabled.
    • maxDaysWithWorkOff integer: Controls how long the work profile can stay off.
    • personalApplications array: Policy applied to applications in the personal profile.
    • personalPlayStoreMode string (values: PLAY_STORE_MODE_UNSPECIFIED, BLACKLIST, BLOCKLIST, ALLOWLIST): Used together with personalApplications to control how apps in the personal profile are allowed or blocked.
    • screenCaptureDisabled boolean: Whether screen capture is disabled.

Policy

  • Policy object: A policy resource represents a group of settings that govern the behavior of a managed device and the apps installed on it.
    • accountTypesWithManagementDisabled array: Account types that can't be managed by the user.
      • items string
    • addUserDisabled boolean: Whether adding new users and profiles is disabled.
    • adjustVolumeDisabled boolean: Whether adjusting the master volume is disabled.
    • advancedSecurityOverrides AdvancedSecurityOverrides
    • alwaysOnVpnPackage AlwaysOnVpnPackage
    • androidDevicePolicyTracks array: The app tracks for Android Device Policy the device can access. The device receives the latest version among all accessible tracks. If no tracks are specified, then the device only uses the production track.
      • items string (values: APP_TRACK_UNSPECIFIED, PRODUCTION, BETA)
    • appAutoUpdatePolicy string (values: APP_AUTO_UPDATE_POLICY_UNSPECIFIED, CHOICE_TO_THE_USER, NEVER, WIFI_ONLY, ALWAYS): The app auto update policy, which controls when automatic app updates can be applied.
    • applications array: Policy applied to apps.
    • autoDateAndTimeZone string (values: AUTO_DATE_AND_TIME_ZONE_UNSPECIFIED, AUTO_DATE_AND_TIME_ZONE_USER_CHOICE, AUTO_DATE_AND_TIME_ZONE_ENFORCED): Whether auto date, time, and time zone are enabled on a company-owned device. If this is set, then autoTimeRequired is ignored.
    • autoTimeRequired boolean: Whether auto time is required, which prevents the user from manually setting the date and time. If autoDateAndTimeZone is set, this field is ignored.
    • blockApplicationsEnabled boolean: Whether applications other than the ones configured in applications are blocked from being installed. When set, applications that were installed under a previous policy but no longer appear in the policy are automatically uninstalled.
    • bluetoothConfigDisabled boolean: Whether configuring bluetooth is disabled.
    • bluetoothContactSharingDisabled boolean: Whether bluetooth contact sharing is disabled.
    • bluetoothDisabled boolean: Whether bluetooth is disabled. Prefer this setting over bluetooth_config_disabled because bluetooth_config_disabled can be bypassed by the user.
    • cameraDisabled boolean: Whether all cameras on the device are disabled.
    • cellBroadcastsConfigDisabled boolean: Whether configuring cell broadcast is disabled.
    • choosePrivateKeyRules array: Rules for automatically choosing a private key and certificate to authenticate the device to a server. The rules are ordered by increasing precedence, so if an outgoing request matches more than one rule, the last rule defines which private key to use.
    • complianceRules array: Rules declaring which mitigating actions to take when a device is not compliant with its policy. When the conditions for multiple rules are satisfied, all of the mitigating actions for the rules are taken. There is a maximum limit of 100 rules. Use policy enforcement rules instead.
    • createWindowsDisabled boolean: Whether creating windows besides app windows is disabled.
    • credentialsConfigDisabled boolean: Whether configuring user credentials is disabled.
    • dataRoamingDisabled boolean: Whether roaming data services are disabled.
    • debuggingFeaturesAllowed boolean: Whether the user is allowed to enable debugging features.
    • defaultPermissionPolicy string (values: PERMISSION_POLICY_UNSPECIFIED, PROMPT, GRANT, DENY): The default permission policy for runtime permission requests.
    • deviceOwnerLockScreenInfo UserFacingMessage
    • encryptionPolicy string (values: ENCRYPTION_POLICY_UNSPECIFIED, ENABLED_WITHOUT_PASSWORD, ENABLED_WITH_PASSWORD): Whether encryption is enabled
    • ensureVerifyAppsEnabled boolean: Whether app verification is force-enabled.
    • factoryResetDisabled boolean: Whether factory resetting from settings is disabled.
    • frpAdminEmails array: Email addresses of device administrators for factory reset protection. When the device is factory reset, it will require one of these admins to log in with the Google account email and password to unlock the device. If no admins are specified, the device won't provide factory reset protection.
      • items string
    • funDisabled boolean: Whether the user is allowed to have fun. Controls whether the Easter egg game in Settings is disabled.
    • installAppsDisabled boolean: Whether user installation of apps is disabled.
    • installUnknownSourcesAllowed boolean: Whether the user is allowed to enable the "Unknown Sources" setting, which allows installation of apps from unknown sources.
    • keyguardDisabled boolean: Whether the keyguard is disabled.
    • keyguardDisabledFeatures array: Disabled keyguard customizations, such as widgets.
      • items string (values: KEYGUARD_DISABLED_FEATURE_UNSPECIFIED, CAMERA, NOTIFICATIONS, UNREDACTED_NOTIFICATIONS, TRUST_AGENTS, DISABLE_FINGERPRINT, DISABLE_REMOTE_INPUT, FACE, IRIS, BIOMETRICS, ALL_FEATURES)
    • kioskCustomLauncherEnabled boolean: Whether the kiosk custom launcher is enabled. This replaces the home screen with a launcher that locks down the device to the apps installed via the applications setting. Apps appear on a single page in alphabetical order. Use kioskCustomization to further configure the kiosk device behavior.
    • kioskCustomization KioskCustomization
    • locationMode string (values: LOCATION_MODE_UNSPECIFIED, HIGH_ACCURACY, SENSORS_ONLY, BATTERY_SAVING, OFF, LOCATION_USER_CHOICE, LOCATION_ENFORCED, LOCATION_DISABLED): The degree of location detection enabled.
    • longSupportMessage UserFacingMessage
    • maximumTimeToLock string: Maximum time in milliseconds for user activity until the device locks. A value of 0 means there is no restriction.
    • minimumApiLevel integer: The minimum allowed Android API level.
    • mobileNetworksConfigDisabled boolean: Whether configuring mobile networks is disabled.
    • modifyAccountsDisabled boolean: Whether adding or removing accounts is disabled.
    • mountPhysicalMediaDisabled boolean: Whether the user mounting physical external media is disabled.
    • name string: The name of the policy in the form enterprises/{enterpriseId}/policies/{policyId}.
    • networkEscapeHatchEnabled boolean: Whether the network escape hatch is enabled. If a network connection can't be made at boot time, the escape hatch prompts the user to temporarily connect to a network in order to refresh the device policy. After applying policy, the temporary network will be forgotten and the device will continue booting. This prevents being unable to connect to a network if there is no suitable network in the last policy and the device boots into an app in lock task mode, or the user is otherwise unable to reach device settings.
    • networkResetDisabled boolean: Whether resetting network settings is disabled.
    • openNetworkConfiguration object: Network configuration for the device. See configure networks for more information.
    • outgoingBeamDisabled boolean: Whether using NFC to beam data from apps is disabled.
    • outgoingCallsDisabled boolean: Whether outgoing calls are disabled.
    • passwordPolicies array: Password requirement policies. Different policies can be set for work profile or fully managed devices by setting the password_scope field in the policy.
    • passwordRequirements PasswordRequirements
    • permissionGrants array: Explicit permission or group grants or denials for all apps. These values override the default_permission_policy.
    • permittedAccessibilityServices PackageNameList
    • permittedInputMethods PackageNameList
    • persistentPreferredActivities array: Default intent handler activities.
    • personalUsagePolicies PersonalUsagePolicies
    • playStoreMode string (values: PLAY_STORE_MODE_UNSPECIFIED, WHITELIST, BLACKLIST): This mode controls which apps are available to the user in the Play Store and the behavior on the device when apps are removed from the policy.
    • policyEnforcementRules array: Rules that define the behavior when a particular policy can not be applied on device
    • privateKeySelectionEnabled boolean: Allows showing UI on a device for a user to choose a private key alias if there are no matching rules in ChoosePrivateKeyRules. For devices below Android P, setting this may leave enterprise keys vulnerable.
    • recommendedGlobalProxy ProxyInfo
    • removeUserDisabled boolean: Whether removing other users is disabled.
    • safeBootDisabled boolean: Whether rebooting the device into safe boot is disabled.
    • screenCaptureDisabled boolean: Whether screen capture is disabled.
    • setUserIconDisabled boolean: Whether changing the user icon is disabled.
    • setWallpaperDisabled boolean: Whether changing the wallpaper is disabled.
    • setupActions array: Actions to take during the setup process.
    • shareLocationDisabled boolean: Whether location sharing is disabled.
    • shortSupportMessage UserFacingMessage
    • skipFirstUseHintsEnabled boolean: Flag to skip hints on the first use. Enterprise admin can enable the system recommendation for apps to skip their user tutorial and other introductory hints on first start-up.
    • smsDisabled boolean: Whether sending and receiving SMS messages is disabled.
    • statusBarDisabled boolean: Whether the status bar is disabled. This disables notifications, quick settings, and other screen overlays that allow escape from full-screen mode. DEPRECATED. To disable the status bar on a kiosk device, use InstallType KIOSK or kioskCustomLauncherEnabled.
    • statusReportingSettings StatusReportingSettings
    • stayOnPluggedModes array: The battery plugged in modes for which the device stays on. When using this setting, it is recommended to clear maximum_time_to_lock so that the device doesn't lock itself while it stays on.
      • items string (values: BATTERY_PLUGGED_MODE_UNSPECIFIED, AC, USB, WIRELESS)
    • systemUpdate SystemUpdate
    • tetheringConfigDisabled boolean: Whether configuring tethering and portable hotspots is disabled.
    • uninstallAppsDisabled boolean: Whether user uninstallation of applications is disabled.
    • unmuteMicrophoneDisabled boolean: Whether the microphone is muted and adjusting microphone volume is disabled.
    • usbFileTransferDisabled boolean: Whether transferring files over USB is disabled.
    • usbMassStorageEnabled boolean: Whether USB storage is enabled. Deprecated.
    • version string: The version of the policy. This is a read-only field. The version is incremented each time the policy is updated.
    • vpnConfigDisabled boolean: Whether configuring VPN is disabled.
    • wifiConfigDisabled boolean: Whether configuring Wi-Fi access points is disabled.
    • wifiConfigsLockdownEnabled boolean: DEPRECATED - Use wifi_config_disabled.

PolicyEnforcementRule

  • PolicyEnforcementRule object: A rule that defines the actions to take if a device or work profile is not compliant with the policy specified in settingName.
    • blockAction BlockAction
    • settingName string: The top-level policy to enforce. For example, applications or passwordPolicies.
    • wipeAction WipeAction

PostureDetail

  • PostureDetail object: Additional details regarding the security posture of the device.
    • advice array: Corresponding admin-facing advice to mitigate this security risk and improve the security posture of the device.
    • securityRisk string (values: SECURITY_RISK_UNSPECIFIED, UNKNOWN_OS, COMPROMISED_OS): A specific security risk that negatively affects the security posture of the device.

PowerManagementEvent

  • PowerManagementEvent object: A power management event.
    • batteryLevel number: For BATTERY_LEVEL_COLLECTED events, the battery level as a percentage.
    • createTime string: The creation time of the event.
    • eventType string (values: POWER_MANAGEMENT_EVENT_TYPE_UNSPECIFIED, BATTERY_LEVEL_COLLECTED, POWER_CONNECTED, POWER_DISCONNECTED, BATTERY_LOW, BATTERY_OKAY, BOOT_COMPLETED, SHUTDOWN): Event type.

ProxyInfo

  • ProxyInfo object: Configuration info for an HTTP proxy. For a direct proxy, set the host, port, and excluded_hosts fields. For a PAC script proxy, set the pac_uri field.
    • host string: The host of the direct proxy.
    • excludedHosts array: For a direct proxy, the hosts for which the proxy is bypassed. The host names may contain wildcards such as *.example.com.
      • items string
    • pacUri string: The URI of the PAC script used to configure the proxy.
    • port integer: The port of the direct proxy.

SecurityPosture

  • SecurityPosture object: The security posture of the device, as determined by the current device state and the policies applied.
    • devicePosture string (values: POSTURE_UNSPECIFIED, SECURE, AT_RISK, POTENTIALLY_COMPROMISED): Device's security posture value.
    • postureDetails array: Additional details regarding the security posture of the device.

SetupAction

SigninDetail

  • SigninDetail object: A resource containing sign in details for an enterprise.
    • 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.
    • 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. This is a read-only field generated by the server.
    • signinEnrollmentToken string: An enterprise wide enrollment token used to trigger custom sign-in flow. This is a read-only field generated by the server.
    • signinUrl string: Sign-in URL for authentication when device is provisioned with a sign-in enrollment token. The sign-in endpoint should finish authentication flow with a URL in the form of https://enterprise.google.com/android/enroll?et= for a successful login, or https://enterprise.google.com/android/enroll/invalid for a failed login.

SignupUrl

  • SignupUrl object: An enterprise signup URL.
    • name string: The name of the resource. Use this value in the signupUrl field when calling enterprises.create to complete the enterprise signup flow.
    • url string: A URL where an enterprise admin can register their enterprise. The page can't be rendered in an iframe.

SoftwareInfo

  • SoftwareInfo object: Information about device software.
    • androidBuildNumber string: Android build ID string meant for displaying to the user. For example, shamu-userdebug 6.0.1 MOB30I 2756745 dev-keys.
    • androidBuildTime string: Build time.
    • androidDevicePolicyVersionCode integer: The Android Device Policy app version code.
    • androidDevicePolicyVersionName string: The Android Device Policy app version as displayed to the user.
    • androidVersion string: The user-visible Android version string. For example, 6.0.1.
    • bootloaderVersion string: The system bootloader version number, e.g. 0.6.7.
    • deviceBuildSignature string: SHA-256 hash of android.content.pm.Signature (https://developer.android.com/reference/android/content/pm/Signature.html) associated with the system package, which can be used to verify that the system build hasn't been modified.
    • deviceKernelVersion string: Kernel version, for example, 2.6.32.9-g103d848.
    • primaryLanguageCode string: An IETF BCP 47 language code for the primary locale on the device.
    • securityPatchLevel string: Security patch level, e.g. 2016-05-01.
    • systemUpdateInfo SystemUpdateInfo

Status

  • Status object: The Status type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by gRPC (https://github.com/grpc). Each Status message contains three pieces of data: error code, error message, and error details.You can find out more about this error model and how to work with it in the API Design Guide (https://cloud.google.com/apis/design/errors).
    • code integer: The status code, which should be an enum value of google.rpc.Code.
    • details array: A list of messages that carry the error details. There is a common set of message types for APIs to use.
      • items object
    • message string: A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.

StatusReportingSettings

  • StatusReportingSettings object: Settings controlling the behavior of status reports.
    • applicationReportingSettings ApplicationReportingSettings
    • applicationReportsEnabled boolean: Whether app reports are enabled.
    • commonCriteriaModeEnabled boolean: Whether Common Criteria Mode reporting is enabled.
    • deviceSettingsEnabled boolean: Whether device settings reporting is enabled.
    • displayInfoEnabled boolean: Whether displays reporting is enabled. Report data is not available for personally owned devices with work profiles.
    • hardwareStatusEnabled boolean: Whether hardware status reporting is enabled. Report data is not available for personally owned devices with work profiles.
    • memoryInfoEnabled boolean: Whether memory reporting is enabled.
    • networkInfoEnabled boolean: Whether network info reporting is enabled.
    • powerManagementEventsEnabled boolean: Whether power management event reporting is enabled. Report data is not available for personally owned devices with work profiles.
    • softwareInfoEnabled boolean: Whether software info reporting is enabled.
    • systemPropertiesEnabled boolean: Whether system properties reporting is enabled.

SystemUpdate

  • SystemUpdate object: Configuration for managing system updates
    • endMinutes integer: If the type is WINDOWED, the end of the maintenance window, measured as the number of minutes after midnight in device's local time. This value must be between 0 and 1439, inclusive. If this value is less than start_minutes, then the maintenance window spans midnight. If the maintenance window specified is smaller than 30 minutes, the actual window is extended to 30 minutes beyond the start time.
    • freezePeriods array: An annually repeating time period in which over-the-air (OTA) system updates are postponed to freeze the OS version running on a device. To prevent freezing the device indefinitely, each freeze period must be separated by at least 60 days.
    • startMinutes integer: If the type is WINDOWED, the start of the maintenance window, measured as the number of minutes after midnight in the device's local time. This value must be between 0 and 1439, inclusive.
    • type string (values: SYSTEM_UPDATE_TYPE_UNSPECIFIED, AUTOMATIC, WINDOWED, POSTPONE): The type of system update to configure.

SystemUpdateInfo

  • SystemUpdateInfo object: Information about a potential pending system update.
    • updateReceivedTime string: The time when the update was first available. A zero value indicates that this field is not set. This field is set only if an update is available (that is, updateStatus is neither UPDATE_STATUS_UNKNOWN nor UP_TO_DATE).
    • updateStatus string (values: UPDATE_STATUS_UNKNOWN, UP_TO_DATE, UNKNOWN_UPDATE_AVAILABLE, SECURITY_UPDATE_AVAILABLE, OS_UPDATE_AVAILABLE): The status of an update: whether an update exists and what type it is.

TermsAndConditions

User

  • User object: A user belonging to an enterprise.
    • accountIdentifier string: A unique identifier you create for this user, such as user342 or asset#44418. This field must be set when the user is created and can't be updated. This field must not contain personally identifiable information (PII). This identifier must be 1024 characters or less; otherwise, the update policy request will fail.

UserFacingMessage

  • UserFacingMessage object: Provides a user-facing message with locale info. The maximum message length is 4096 characters.
    • defaultMessage string: The default message displayed if no localized message is specified or the user's locale doesn't match with any of the localized messages. A default message must be provided if any localized messages are provided.
    • localizedMessages object: A map containing pairs, where locale is a well-formed BCP 47 language (https://www.w3.org/International/articles/language-tags/) code, such as en-US, es-ES, or fr.

WebApp

  • WebApp object: A web app.
    • displayMode string (values: DISPLAY_MODE_UNSPECIFIED, MINIMAL_UI, STANDALONE, FULL_SCREEN): The display mode of the web app.
    • icons array: A list of icons for the web app. Must have at least one element.
    • name string: The name of the web app, which is generated by the server during creation in the form enterprises/{enterpriseId}/webApps/{packageName}.
    • startUrl string: The start URL, i.e. the URL that should load when the user opens the application.
    • title string: The title of the web app as displayed to the user (e.g., amongst a list of other applications, or as a label for an icon).
    • versionCode string: The current version of the app.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.

WebAppIcon

  • WebAppIcon object: An icon for a web app. Supported formats are: png, jpg and webp.
    • imageData string: 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"). - The image type can be png or jpg. - The image should ideally be square. - The image should ideally have a size of 512x512.

WebToken

  • WebToken object: A web token used to access the managed Google Play iframe.
    • enabledFeatures array: The features to enable. Use this if you want to control exactly which feature(s) will be activated; leave empty to allow all features.Restrictions / things to note: - If no features are listed here, all features are enabled — this is the default behavior where you give access to all features to your admins. - This must not contain any FEATURE_UNSPECIFIED values. - Repeated values are ignored
      • items string (values: FEATURE_UNSPECIFIED, PLAY_SEARCH, PRIVATE_APPS, WEB_APPS, STORE_BUILDER, MANAGED_CONFIGURATIONS)
    • name string: The name of the web token, which is generated by the server during creation in the form enterprises/{enterpriseId}/webTokens/{webTokenId}.
    • parentFrameUrl string: The URL of the parent frame hosting the iframe with the embedded UI. To prevent XSS, the iframe may not be hosted at other URLs. The URL must use the https scheme.
    • permissions array: Permissions available to an admin in the embedded UI. An admin must have all of these permissions in order to view the UI. This field is deprecated.
      • items string (values: WEB_TOKEN_PERMISSION_UNSPECIFIED, APPROVE_APPS)
    • value string: The token value which is used in the hosting page to generate the iframe with the embedded UI. This is a read-only field generated by the server.

WipeAction

  • WipeAction object: An action to reset a fully managed device or delete a work profile. Note: blockAction must also be specified.
    • preserveFrp boolean: Whether the factory-reset protection data is preserved on the device. This setting doesn’t apply to work profiles.
    • wipeAfterDays integer: Number of days the policy is non-compliant before the device or work profile is wiped. wipeAfterDays must be greater than blockAfterDays.