Struct google_androidmanagement1::Policy[][src]

pub struct Policy {
    pub compliance_rules: Option<Vec<ComplianceRule>>,
    pub data_roaming_disabled: Option<bool>,
    pub network_reset_disabled: Option<bool>,
    pub tethering_config_disabled: Option<bool>,
    pub camera_disabled: Option<bool>,
    pub persistent_preferred_activities: Option<Vec<PersistentPreferredActivity>>,
    pub wifi_configs_lockdown_enabled: Option<bool>,
    pub bluetooth_disabled: Option<bool>,
    pub permitted_input_methods: Option<PackageNameList>,
    pub status_reporting_settings: Option<StatusReportingSettings>,
    pub remove_user_disabled: Option<bool>,
    pub mobile_networks_config_disabled: Option<bool>,
    pub install_unknown_sources_allowed: Option<bool>,
    pub block_applications_enabled: Option<bool>,
    pub bluetooth_config_disabled: Option<bool>,
    pub open_network_configuration: Option<HashMap<String, String>>,
    pub system_update: Option<SystemUpdate>,
    pub long_support_message: Option<UserFacingMessage>,
    pub account_types_with_management_disabled: Option<Vec<String>>,
    pub frp_admin_emails: Option<Vec<String>>,
    pub password_requirements: Option<PasswordRequirements>,
    pub maximum_time_to_lock: Option<String>,
    pub version: Option<String>,
    pub mount_physical_media_disabled: Option<bool>,
    pub vpn_config_disabled: Option<bool>,
    pub modify_accounts_disabled: Option<bool>,
    pub set_wallpaper_disabled: Option<bool>,
    pub ensure_verify_apps_enabled: Option<bool>,
    pub status_bar_disabled: Option<bool>,
    pub add_user_disabled: Option<bool>,
    pub sms_disabled: Option<bool>,
    pub recommended_global_proxy: Option<ProxyInfo>,
    pub usb_file_transfer_disabled: Option<bool>,
    pub wifi_config_disabled: Option<bool>,
    pub outgoing_beam_disabled: Option<bool>,
    pub fun_disabled: Option<bool>,
    pub applications: Option<Vec<ApplicationPolicy>>,
    pub always_on_vpn_package: Option<AlwaysOnVpnPackage>,
    pub unmute_microphone_disabled: Option<bool>,
    pub keyguard_disabled_features: Option<Vec<String>>,
    pub cell_broadcasts_config_disabled: Option<bool>,
    pub debugging_features_allowed: Option<bool>,
    pub keyguard_disabled: Option<bool>,
    pub default_permission_policy: Option<String>,
    pub uninstall_apps_disabled: Option<bool>,
    pub bluetooth_contact_sharing_disabled: Option<bool>,
    pub network_escape_hatch_enabled: Option<bool>,
    pub outgoing_calls_disabled: Option<bool>,
    pub name: Option<String>,
    pub auto_time_required: Option<bool>,
    pub safe_boot_disabled: Option<bool>,
    pub set_user_icon_disabled: Option<bool>,
    pub stay_on_plugged_modes: Option<Vec<String>>,
    pub screen_capture_disabled: Option<bool>,
    pub credentials_config_disabled: Option<bool>,
    pub install_apps_disabled: Option<bool>,
    pub adjust_volume_disabled: Option<bool>,
    pub short_support_message: Option<UserFacingMessage>,
    pub factory_reset_disabled: Option<bool>,
    pub create_windows_disabled: Option<bool>,
}

A policy, which governs behavior for a device.

Activities

This type is used in activities, which are methods you may call on this type or where this type is involved in. The list links the activity name, along with information about where it is used (one of request and response).

Fields

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.

Whether roaming data services are disabled. Requires the beta version of the Android Device Policy app.

Whether resetting network settings is disabled. Requires the beta version of the Android Device Policy app.

Whether configuring tethering and portable hotspots is disabled. Requires the beta version of the Android Device Policy app.

Whether all cameras on the device are disabled.

Default intent handler activities.

Whether WiFi networks defined in Open Network Configuration are locked so they cannot be edited by the user.

Whether bluetooth is disabled. Prefer this setting over bluetooth_config_disabled because bluetooth_config_disabled can be bypassed by the user. Requires the beta version of the Android Device Policy app.

If present, only input methods provided by packages in this list are permitted. If this field is present, but the list is empty, then only system input methods are permitted. Requires the beta version of the Android Device Policy app.

Status reporting settings

Whether removing other users is disabled.

Whether configuring mobile networks is disabled. Requires the beta version of the Android Device Policy app.

Whether the user is allowed to enable the "Unknown Sources" setting, which allows installation of apps from unknown sources.

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.

Whether configuring bluetooth is disabled. Requires the beta version of the Android Device Policy app.

Network configuration for the device. See configure networks for more information.

The system update policy, which controls how OS updates are applied. If the update type is WINDOWED, the update window will automatically apply to Play app updates as well.

A message displayed to the user in the device administators settings screen. Requires the beta version of the Android Device Policy app.

Account types that cannot be managed by the user. Requires the beta version of the Android Device Policy app.

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 will not provide factory reset protection.

Password requirements.

Maximum time in milliseconds for user activity until the device will lock. A value of 0 means there is no restriction.

The version of the policy. This is a read-only field. The version is incremented each time the policy is updated.

Whether the user mounting physical external media is disabled. Requires the beta version of the Android Device Policy app.

Whether configuring VPN is disabled. Requires the beta version of the Android Device Policy app.

Whether adding or removing accounts is disabled.

Whether changing the wallpaper is disabled. Requires the beta version of the Android Device Policy app.

Whether application verification is forced to be enabled. Requires the beta version of the Android Device Policy app.

Whether the status bar is disabled. This disables notifications, quick settings and other screen overlays that allow escape from full-screen mode.

Whether adding new users and profiles is disabled.

Whether sending or receiving SMS messages is disabled. Requires the beta version of the Android Device Policy app.

The network-independent global HTTP proxy. Typically proxies should be configured per-network in open_network_configuration. However for unusual configurations like general internal filtering a global HTTP proxy may be useful. If the proxy is not accessible, network access may break. The global proxy is only a recommendation and some apps may ignore it. Requires the beta version of the Android Device Policy app.

Whether transferring files over USB is disabled. Requires the beta version of the Android Device Policy app.

Whether configuring WiFi access points is disabled.

Whether using NFC to beam out data from apps is disabled. Requires the beta version of the Android Device Policy app.

Whether the user is allowed to have fun. Controls whether the Easter egg game in Settings is disabled.

Policy applied to apps.

Configuration for an always-on VPN connection. Use with vpn_config_disabled to prevent modification of this setting. Requires the beta version of the Android Device Policy app.

Whether the microphone is muted and adjusting microphone volume is disabled.

Disabled keyguard customizations, such as widgets. Requires the beta version of the Android Device Policy app.

Whether configuring cell broadcast is disabled. Requires the beta version of the Android Device Policy app.

Whether the user is allowed to enable debugging features.

Whether the keyguard is disabled.

The default permission policy for requests for runtime permissions.

Whether user uninstallation of applications is disabled. Requires the beta version of the Android Device Policy app.

Whether bluetooth contact sharing is disabled. Requires the beta version of the Android Device Policy app.

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.

Whether outgoing calls are disabled. Requires the beta version of the Android Device Policy app.

The name of the policy in the form enterprises/{enterpriseId}/policies/{policyId}

Whether auto time is required, which prevents the user from manually setting the date and time.

Whether rebooting the device into safe boot is disabled.

Whether changing the user icon is disabled. Requires the beta version of the Android Device Policy app.

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.

Whether screen capture is disabled.

Whether configuring user credentials is disabled. Requires the beta version of the Android Device Policy app.

Whether user installation of apps is disabled. Requires the beta version of the Android Device Policy app.

Whether adjusting the master volume is disabled.

A message displayed to the user in the settings screen wherever functionality has been disabled by the admin. Requires the beta version of the Android Device Policy app.

Whether factory resetting from settings is disabled.

Whether creating windows besides app windows is disabled. Requires the beta version of the Android Device Policy app.

Trait Implementations

impl Default for Policy
[src]

Returns the "default value" for a type. Read more

impl Clone for Policy
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for Policy
[src]

Formats the value using the given formatter. Read more

impl RequestValue for Policy
[src]

impl ResponseResult for Policy
[src]

Auto Trait Implementations

impl Send for Policy

impl Sync for Policy