Struct google_androidmanagement1::api::ApplicationPolicy
source · [−]pub struct ApplicationPolicy {Show 14 fields
pub accessible_track_ids: Option<Vec<String>>,
pub auto_update_mode: Option<String>,
pub connected_work_and_personal_app: Option<String>,
pub default_permission_policy: Option<String>,
pub delegated_scopes: Option<Vec<String>>,
pub disabled: Option<bool>,
pub extension_config: Option<ExtensionConfig>,
pub install_type: Option<String>,
pub lock_task_allowed: Option<bool>,
pub managed_configuration: Option<HashMap<String, String>>,
pub managed_configuration_template: Option<ManagedConfigurationTemplate>,
pub minimum_version_code: Option<i32>,
pub package_name: Option<String>,
pub permission_grants: Option<Vec<PermissionGrant>>,
}Expand description
Policy for an individual app.
This type is not used in any activity, and only used as part of another schema.
Fields
accessible_track_ids: Option<Vec<String>>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.
auto_update_mode: Option<String>Controls the auto-update mode for the app.
connected_work_and_personal_app: Option<String>Controls whether the app can communicate with itself across a device’s work and personal profiles, subject to user consent.
default_permission_policy: Option<String>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.
delegated_scopes: Option<Vec<String>>The scopes delegated to the app from Android Device Policy.
disabled: Option<bool>Whether the app is disabled. When disabled, the app data is still preserved.
extension_config: Option<ExtensionConfig>Configuration to enable this app as an extension app, with the capability of interacting with Android Device Policy offline.This field can be set for at most one app.
install_type: Option<String>The type of installation to perform.
lock_task_allowed: Option<bool>Whether the app is allowed to lock itself in full-screen mode. DEPRECATED. Use InstallType KIOSK or kioskCustomLauncherEnabled to to configure a dedicated device.
managed_configuration: Option<HashMap<String, String>>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
managed_configuration_template: Option<ManagedConfigurationTemplate>The managed configurations template for the app, saved from the managed configurations iframe. This field is ignored if managed_configuration is set.
minimum_version_code: Option<i32>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.
package_name: Option<String>The package name of the app. For example, com.google.android.youtube for the YouTube app.
permission_grants: Option<Vec<PermissionGrant>>Explicit permission grants or denials for the app. These values override the default_permission_policy and permission_grants which apply to all apps.
Trait Implementations
sourceimpl Clone for ApplicationPolicy
impl Clone for ApplicationPolicy
sourcefn clone(&self) -> ApplicationPolicy
fn clone(&self) -> ApplicationPolicy
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for ApplicationPolicy
impl Debug for ApplicationPolicy
sourceimpl Default for ApplicationPolicy
impl Default for ApplicationPolicy
sourcefn default() -> ApplicationPolicy
fn default() -> ApplicationPolicy
Returns the “default value” for a type. Read more
sourceimpl<'de> Deserialize<'de> for ApplicationPolicy
impl<'de> Deserialize<'de> for ApplicationPolicy
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl Serialize for ApplicationPolicy
impl Serialize for ApplicationPolicy
impl Part for ApplicationPolicy
Auto Trait Implementations
impl RefUnwindSafe for ApplicationPolicy
impl Send for ApplicationPolicy
impl Sync for ApplicationPolicy
impl Unpin for ApplicationPolicy
impl UnwindSafe for ApplicationPolicy
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more