Struct google_androidmanagement1::api::Policy [−][src]
A policy resource represents a group of settings that govern the behavior of a managed device and the apps installed on it.
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).
- policies get enterprises (response)
- policies patch enterprises (request|response)
Fields
account_types_with_management_disabled: Option<Vec<String>>
Account types that can’t be managed by the user.
add_user_disabled: Option<bool>
Whether adding new users and profiles is disabled.
adjust_volume_disabled: Option<bool>
Whether adjusting the master volume is disabled. Also mutes the device.
advanced_security_overrides: Option<AdvancedSecurityOverrides>
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.
always_on_vpn_package: Option<AlwaysOnVpnPackage>
Configuration for an always-on VPN connection. Use with vpn_config_disabled to prevent modification of this setting.
android_device_policy_tracks: Option<Vec<String>>
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.
app_auto_update_policy: Option<String>
The app auto update policy, which controls when automatic app updates can be applied.
applications: Option<Vec<ApplicationPolicy>>
Policy applied to apps.
auto_date_and_time_zone: Option<String>
Whether auto date, time, and time zone are enabled on a company-owned device. If this is set, then autoTimeRequired is ignored.
auto_time_required: Option<bool>
Whether auto time is required, which prevents the user from manually setting the date and time. If autoDateAndTimeZone is set, this field is ignored.
block_applications_enabled: Option<bool>
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.
bluetooth_config_disabled: Option<bool>
Whether configuring bluetooth is disabled.
bluetooth_contact_sharing_disabled: Option<bool>
Whether bluetooth contact sharing is disabled.
bluetooth_disabled: Option<bool>
Whether bluetooth is disabled. Prefer this setting over bluetooth_config_disabled because bluetooth_config_disabled can be bypassed by the user.
camera_disabled: Option<bool>
Whether all cameras on the device are disabled.
cell_broadcasts_config_disabled: Option<bool>
Whether configuring cell broadcast is disabled.
choose_private_key_rules: Option<Vec<ChoosePrivateKeyRule>>
Rules for determining apps’ access to private keys. See ChoosePrivateKeyRule for details.
compliance_rules: Option<Vec<ComplianceRule>>
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.
create_windows_disabled: Option<bool>
Whether creating windows besides app windows is disabled.
credentials_config_disabled: Option<bool>
Whether configuring user credentials is disabled.
data_roaming_disabled: Option<bool>
Whether roaming data services are disabled.
debugging_features_allowed: Option<bool>
Whether the user is allowed to enable debugging features.
default_permission_policy: Option<String>
The default permission policy for runtime permission requests.
device_owner_lock_screen_info: Option<UserFacingMessage>
The device owner information to be shown on the lock screen.
encryption_policy: Option<String>
Whether encryption is enabled
ensure_verify_apps_enabled: Option<bool>
Whether app verification is force-enabled.
factory_reset_disabled: Option<bool>
Whether factory resetting from settings is disabled.
frp_admin_emails: Option<Vec<String>>
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.
fun_disabled: Option<bool>
Whether the user is allowed to have fun. Controls whether the Easter egg game in Settings is disabled.
install_apps_disabled: Option<bool>
Whether user installation of apps is disabled.
install_unknown_sources_allowed: Option<bool>
This field has no effect.
keyguard_disabled: Option<bool>
Whether the keyguard is disabled.
keyguard_disabled_features: Option<Vec<String>>
Disabled keyguard customizations, such as widgets.
kiosk_custom_launcher_enabled: Option<bool>
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.
kiosk_customization: Option<KioskCustomization>
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.
location_mode: Option<String>
The degree of location detection enabled.
long_support_message: Option<UserFacingMessage>
A message displayed to the user in the device administators settings screen.
maximum_time_to_lock: Option<String>
Maximum time in milliseconds for user activity until the device locks. A value of 0 means there is no restriction.
minimum_api_level: Option<i32>
The minimum allowed Android API level.
mobile_networks_config_disabled: Option<bool>
Whether configuring mobile networks is disabled.
modify_accounts_disabled: Option<bool>
Whether adding or removing accounts is disabled.
mount_physical_media_disabled: Option<bool>
Whether the user mounting physical external media is disabled.
name: Option<String>
The name of the policy in the form enterprises/{enterpriseId}/policies/{policyId}.
network_escape_hatch_enabled: Option<bool>
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.
network_reset_disabled: Option<bool>
Whether resetting network settings is disabled.
onc_certificate_providers: Option<Vec<OncCertificateProvider>>
This feature is not generally available.
open_network_configuration: Option<HashMap<String, String>>
Network configuration for the device. See configure networks for more information.
outgoing_beam_disabled: Option<bool>
Whether using NFC to beam data from apps is disabled.
outgoing_calls_disabled: Option<bool>
Whether outgoing calls are disabled.
password_policies: Option<Vec<PasswordRequirements>>
Password requirement policies. Different policies can be set for work profile or fully managed devices by setting the password_scope field in the policy.
password_requirements: Option<PasswordRequirements>
Password requirements. The field password_requirements.require_password_unlock must not be set. DEPRECATED - Use password_policies.Note:Complexity-based values of PasswordQuality, that is, COMPLEXITY_LOW, COMPLEXITY_MEDIUM, and COMPLEXITY_HIGH, cannot be used here.
permission_grants: Option<Vec<PermissionGrant>>
Explicit permission or group grants or denials for all apps. These values override the default_permission_policy.
permitted_accessibility_services: Option<PackageNameList>
Specifies permitted accessibility services. If the field is not set, any accessibility service can be used. If the field is set, only the accessibility services in this list and the system’s built-in accessibility service can be used. In particular, if the field is set to empty, only the system’s built-in accessibility servicess can be used.
permitted_input_methods: Option<PackageNameList>
If present, only the 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.
persistent_preferred_activities: Option<Vec<PersistentPreferredActivity>>
Default intent handler activities.
personal_usage_policies: Option<PersonalUsagePolicies>
Policies managing personal usage on a company-owned device.
play_store_mode: Option<String>
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.
policy_enforcement_rules: Option<Vec<PolicyEnforcementRule>>
Rules that define the behavior when a particular policy can not be applied on device
private_key_selection_enabled: Option<bool>
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.
recommended_global_proxy: Option<ProxyInfo>
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.
remove_user_disabled: Option<bool>
Whether removing other users is disabled.
safe_boot_disabled: Option<bool>
Whether rebooting the device into safe boot is disabled.
screen_capture_disabled: Option<bool>
Whether screen capture is disabled.
set_user_icon_disabled: Option<bool>
Whether changing the user icon is disabled.
set_wallpaper_disabled: Option<bool>
Whether changing the wallpaper is disabled.
setup_actions: Option<Vec<SetupAction>>
Actions to take during the setup process.
Whether location sharing is disabled.
short_support_message: Option<UserFacingMessage>
A message displayed to the user in the settings screen wherever functionality has been disabled by the admin. If the message is longer than 200 characters it may be truncated.
skip_first_use_hints_enabled: Option<bool>
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.
sms_disabled: Option<bool>
Whether sending and receiving SMS messages is disabled.
status_bar_disabled: Option<bool>
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.
status_reporting_settings: Option<StatusReportingSettings>
Status reporting settings
stay_on_plugged_modes: Option<Vec<String>>
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.
system_update: Option<SystemUpdate>
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.
tethering_config_disabled: Option<bool>
Whether configuring tethering and portable hotspots is disabled.
uninstall_apps_disabled: Option<bool>
Whether user uninstallation of applications is disabled.
unmute_microphone_disabled: Option<bool>
Whether the microphone is muted and adjusting microphone volume is disabled.
usb_file_transfer_disabled: Option<bool>
Whether transferring files over USB is disabled.
usb_mass_storage_enabled: Option<bool>
Whether USB storage is enabled. Deprecated.
version: Option<String>
The version of the policy. This is a read-only field. The version is incremented each time the policy is updated.
vpn_config_disabled: Option<bool>
Whether configuring VPN is disabled.
wifi_config_disabled: Option<bool>
Whether configuring Wi-Fi access points is disabled.
wifi_configs_lockdown_enabled: Option<bool>
DEPRECATED - Use wifi_config_disabled.
Trait Implementations
impl Clone for Policy
[src]
impl Debug for Policy
[src]
impl Default for Policy
[src]
impl<'de> Deserialize<'de> for Policy
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl RequestValue for Policy
[src]
impl ResponseResult for Policy
[src]
impl Serialize for Policy
[src]
Auto Trait Implementations
impl RefUnwindSafe for Policy
impl Send for Policy
impl Sync for Policy
impl Unpin for Policy
impl UnwindSafe for Policy
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,