Struct google_androidenterprise1::Entitlement [] [src]

pub struct Entitlement {
    pub kind: Option<String>,
    pub reason: Option<String>,
    pub product_id: Option<String>,
}

The existence of an entitlement resource means that a user has the right to use a particular app on any of their devices. This might be because the app is free or because they have been allocated a license to the app from a group license purchased by the enterprise.

It should always be true that a user has an app installed on one of their devices only if they have an entitlement to it. So if an entitlement is deleted, the app will be uninstalled from all devices. Similarly if the user installs an app (and is permitted to do so), or the EMM triggers an install of the app, an entitlement to that app is automatically created. If this is impossible - e.g. the enterprise has not purchased sufficient licenses - then installation fails.

Note that entitlements are always user specific, not device specific; a user may have an entitlement even though they have not installed the app anywhere. Once they have an entitlement they can install the app on multiple devices.

The API can be used to create an entitlement. If the app is a free app, a group license for that app is created. If it's a paid app, creating the entitlement consumes one license; it remains consumed until the entitlement is removed. Optionally an installation of the app on all the user's managed devices can be triggered at the time the entitlement is created. An entitlement cannot be created for an app if the app requires permissions that the enterprise has not yet accepted.

Entitlements for paid apps that are due to purchases by the user on a non-managed profile will have "userPurchase" as entitlement reason; those entitlements cannot be removed via the API.

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

Identifies what kind of resource this is. Value: the fixed string "androidenterprise#entitlement".

The reason for the entitlement, e.g. "free" for free apps. This is temporary, it will be replaced by the acquisition kind field of group licenses.

The ID of the product that the entitlement is for, e.g. "app:com.google.android.gm".

Trait Implementations

impl Default for Entitlement
[src]

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

impl Clone for Entitlement
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for Entitlement
[src]

Formats the value using the given formatter.

impl RequestValue for Entitlement
[src]

impl Resource for Entitlement
[src]

impl ResponseResult for Entitlement
[src]