Struct google_androidenterprise1::EntitlementMethods
[−]
[src]
pub struct EntitlementMethods<'a, C, A> where C: 'a, A: 'a { /* fields omitted */ }
A builder providing access to all methods supported on entitlement resources.
It is not used directly, but through the AndroidEnterprise
hub.
Example
Instantiate a resource builder
extern crate hyper; extern crate yup_oauth2 as oauth2; extern crate google_androidenterprise1 as androidenterprise1; use std::default::Default; use oauth2::{Authenticator, DefaultAuthenticatorDelegate, ApplicationSecret, MemoryStorage}; use androidenterprise1::AndroidEnterprise; let secret: ApplicationSecret = Default::default(); let auth = Authenticator::new(&secret, DefaultAuthenticatorDelegate, hyper::Client::new(), <MemoryStorage as Default>::default(), None); let mut hub = AndroidEnterprise::new(hyper::Client::new(), auth); // Usually you wouldn't bind this to a variable, but keep calling *CallBuilders* // like `delete(...)`, `get(...)`, `list(...)`, `patch(...)` and `update(...)` // to build up your call. let rb = hub.entitlements();
Methods
impl<'a, C, A> EntitlementMethods<'a, C, A>
[src]
fn list(&self,
enterprise_id: &str,
user_id: &str)
-> EntitlementListCall<'a, C, A>
enterprise_id: &str,
user_id: &str)
-> EntitlementListCall<'a, C, A>
Create a builder to help you perform the following task:
List of all entitlements for the specified user. Only the ID is set.
Arguments
enterpriseId
- The ID of the enterprise.userId
- The ID of the user.
fn update(&self,
request: Entitlement,
enterprise_id: &str,
user_id: &str,
entitlement_id: &str)
-> EntitlementUpdateCall<'a, C, A>
request: Entitlement,
enterprise_id: &str,
user_id: &str,
entitlement_id: &str)
-> EntitlementUpdateCall<'a, C, A>
Create a builder to help you perform the following task:
Adds or updates an entitlement to an app for a user.
Arguments
request
- No description provided.enterpriseId
- The ID of the enterprise.userId
- The ID of the user.entitlementId
- The ID of the entitlement (a product ID), e.g. "app:com.google.android.gm".
fn get(&self,
enterprise_id: &str,
user_id: &str,
entitlement_id: &str)
-> EntitlementGetCall<'a, C, A>
enterprise_id: &str,
user_id: &str,
entitlement_id: &str)
-> EntitlementGetCall<'a, C, A>
Create a builder to help you perform the following task:
Retrieves details of an entitlement.
Arguments
enterpriseId
- The ID of the enterprise.userId
- The ID of the user.entitlementId
- The ID of the entitlement (a product ID), e.g. "app:com.google.android.gm".
fn delete(&self,
enterprise_id: &str,
user_id: &str,
entitlement_id: &str)
-> EntitlementDeleteCall<'a, C, A>
enterprise_id: &str,
user_id: &str,
entitlement_id: &str)
-> EntitlementDeleteCall<'a, C, A>
Create a builder to help you perform the following task:
Removes an entitlement to an app for a user and uninstalls it.
Arguments
enterpriseId
- The ID of the enterprise.userId
- The ID of the user.entitlementId
- The ID of the entitlement (a product ID), e.g. "app:com.google.android.gm".
fn patch(&self,
request: Entitlement,
enterprise_id: &str,
user_id: &str,
entitlement_id: &str)
-> EntitlementPatchCall<'a, C, A>
request: Entitlement,
enterprise_id: &str,
user_id: &str,
entitlement_id: &str)
-> EntitlementPatchCall<'a, C, A>
Create a builder to help you perform the following task:
Adds or updates an entitlement to an app for a user. This method supports patch semantics.
Arguments
request
- No description provided.enterpriseId
- The ID of the enterprise.userId
- The ID of the user.entitlementId
- The ID of the entitlement (a product ID), e.g. "app:com.google.android.gm".