[−][src]Struct google_androidmanagement1::Policy
A policy resources represents a group 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 patch enterprises (request|response)
- policies get enterprises (response)
Fields
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.
data_roaming_disabled: Option<bool>
Whether roaming data services are disabled.
network_reset_disabled: Option<bool>
Whether resetting network settings is disabled.
Whether location sharing is disabled.
persistent_preferred_activities: Option<Vec<PersistentPreferredActivity>>
Default intent handler activities.
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.
status_reporting_settings: Option<StatusReportingSettings>
Status reporting settings
bluetooth_config_disabled: Option<bool>
Whether configuring bluetooth is disabled.
location_mode: Option<String>
The degree of location detection enabled. The user may change the value unless the user is otherwise blocked from accessing device settings.
mobile_networks_config_disabled: Option<bool>
Whether configuring mobile networks is disabled.
install_unknown_sources_allowed: Option<bool>
Whether the user is allowed to enable the "Unknown Sources" setting, which allows installation of apps from unknown sources.
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.
long_support_message: Option<UserFacingMessage>
A message displayed to the user in the device administators settings screen.
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.
device_owner_lock_screen_info: Option<UserFacingMessage>
The device owner information to be shown on the lock screen.
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.
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.
choose_private_key_rules: Option<Vec<ChoosePrivateKeyRule>>
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.
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.
usb_file_transfer_disabled: Option<bool>
Whether transferring files over USB is disabled.
outgoing_beam_disabled: Option<bool>
Whether using NFC to beam data from apps is disabled.
fun_disabled: Option<bool>
Whether the user is allowed to have fun. Controls whether the Easter egg game in Settings is disabled.
always_on_vpn_package: Option<AlwaysOnVpnPackage>
Configuration for an always-on VPN connection. Use with vpn_config_disabled to prevent modification of this setting.
keyguard_disabled_features: Option<Vec<String>>
Disabled keyguard customizations, such as widgets.
cell_broadcasts_config_disabled: Option<bool>
Whether configuring cell broadcast is disabled.
keyguard_disabled: Option<bool>
Whether the keyguard is disabled.
default_permission_policy: Option<String>
The default permission policy for runtime permission requests.
factory_reset_disabled: Option<bool>
Whether factory resetting from settings is 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.
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.
name: Option<String>
The name of the policy in the form enterprises/{enterpriseId}/policies/{policyId}.
app_auto_update_policy: Option<String>
The app auto update policy, which controls when automatic app updates can be applied.
set_user_icon_disabled: Option<bool>
Whether changing the user icon is disabled.
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.
install_apps_disabled: Option<bool>
Whether user installation of apps is disabled.
adjust_volume_disabled: Option<bool>
Whether adjusting the master volume 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.
ensure_verify_apps_enabled: Option<bool>
Whether app verification is force-enabled.
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.
policy_enforcement_rules: Option<Vec<PolicyEnforcementRule>>
Rules that define the behavior when a particular policy can not be applied on device
setup_actions: Option<Vec<SetupAction>>
Actions to take during the setup process.
tethering_config_disabled: Option<bool>
Whether configuring tethering and portable hotspots is disabled.
camera_disabled: Option<bool>
Whether all cameras on the device are disabled.
wifi_configs_lockdown_enabled: Option<bool>
DEPRECATED - Use wifi_config_disabled.
add_user_disabled: Option<bool>
Whether adding new users and profiles is disabled.
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. The apps appear on a single page in alphabetical order. It is recommended to also use status_bar_disabled to block access to device settings.
safe_boot_disabled: Option<bool>
Whether rebooting the device into safe boot is disabled.
remove_user_disabled: Option<bool>
Whether removing other users is disabled.
open_network_configuration: Option<HashMap<String, String>>
Network configuration for the device. See configure networks for more information.
account_types_with_management_disabled: Option<Vec<String>>
Account types that can't be managed by the user.
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.
password_requirements: Option<PasswordRequirements>
Password requirements. DEPRECATED - Use password_policies
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.
version: Option<String>
The version of the policy. This is a read-only field. The version is incremented each time the policy is updated.
mount_physical_media_disabled: Option<bool>
Whether the user mounting physical external media is disabled.
vpn_config_disabled: Option<bool>
Whether configuring VPN is disabled.
modify_accounts_disabled: Option<bool>
Whether adding or removing accounts is disabled.
set_wallpaper_disabled: Option<bool>
Whether changing the wallpaper is disabled.
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.
encryption_policy: Option<String>
Whether encryption is enabled
sms_disabled: Option<bool>
Whether sending and receiving SMS messages is disabled.
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.
bluetooth_contact_sharing_disabled: Option<bool>
Whether bluetooth contact sharing is disabled.
wifi_config_disabled: Option<bool>
Whether configuring Wi-Fi access points is disabled.
usb_mass_storage_enabled: Option<bool>
Whether USB storage is enabled. Deprecated.
applications: Option<Vec<ApplicationPolicy>>
Policy applied to apps.
unmute_microphone_disabled: Option<bool>
Whether the microphone is muted and adjusting microphone volume is disabled.
debugging_features_allowed: Option<bool>
Whether the user is allowed to enable debugging features.
uninstall_apps_disabled: Option<bool>
Whether user uninstallation of applications is disabled.
minimum_api_level: Option<i32>
The minimum allowed Android API level.
outgoing_calls_disabled: Option<bool>
Whether outgoing calls are disabled.
auto_time_required: Option<bool>
Whether auto time is required, which prevents the user from manually setting the date and time.
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.
screen_capture_disabled: Option<bool>
Whether screen capture is disabled.
credentials_config_disabled: Option<bool>
Whether configuring user credentials is disabled.
permission_grants: Option<Vec<PermissionGrant>>
Explicit permission or group grants or denials for all apps. These values override the default_permission_policy.
create_windows_disabled: Option<bool>
Whether creating windows besides app windows is disabled.
Trait Implementations
impl ResponseResult for Policy
[src]
impl RequestValue for Policy
[src]
impl Default for Policy
[src]
impl Clone for Policy
[src]
fn clone(&self) -> Policy
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Debug for Policy
[src]
impl Serialize for Policy
[src]
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl<'de> Deserialize<'de> for Policy
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
Auto Trait Implementations
impl Send for Policy
impl Unpin for Policy
impl Sync for Policy
impl UnwindSafe for Policy
impl RefUnwindSafe for Policy
Blanket Implementations
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
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.
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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Typeable for T where
T: Any,
T: Any,
impl<T> DeserializeOwned for T where
T: Deserialize<'de>,
[src]
T: Deserialize<'de>,