Struct google_androidenterprise1::ProductMethods
[−]
[src]
pub struct ProductMethods<'a, C, A> where
C: 'a,
A: 'a, { /* fields omitted */ }
A builder providing access to all methods supported on product resources.
It is not used directly, but through the AndroidEnterprise
hub.
Example
Instantiate a resource builder
extern crate hyper; extern crate hyper_rustls; 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::with_connector(hyper::net::HttpsConnector::new(hyper_rustls::TlsClient::new())), <MemoryStorage as Default>::default(), None); let mut hub = AndroidEnterprise::new(hyper::Client::with_connector(hyper::net::HttpsConnector::new(hyper_rustls::TlsClient::new())), auth); // Usually you wouldn't bind this to a variable, but keep calling *CallBuilders* // like `approve(...)`, `generate_approval_url(...)`, `get(...)`, `get_app_restrictions_schema(...)`, `get_permissions(...)`, `list(...)` and `unapprove(...)` // to build up your call. let rb = hub.products();
Methods
impl<'a, C, A> ProductMethods<'a, C, A>
[src]
fn get_permissions(
&self,
enterprise_id: &str,
product_id: &str
) -> ProductGetPermissionCall<'a, C, A>
[src]
&self,
enterprise_id: &str,
product_id: &str
) -> ProductGetPermissionCall<'a, C, A>
Create a builder to help you perform the following task:
Retrieves the Android app permissions required by this app.
Arguments
enterpriseId
- The ID of the enterprise.productId
- The ID of the product.
fn unapprove(
&self,
enterprise_id: &str,
product_id: &str
) -> ProductUnapproveCall<'a, C, A>
[src]
&self,
enterprise_id: &str,
product_id: &str
) -> ProductUnapproveCall<'a, C, A>
Create a builder to help you perform the following task:
Unapproves the specified product (and the relevant app permissions, if any)
Arguments
enterpriseId
- The ID of the enterprise.productId
- The ID of the product.
fn generate_approval_url(
&self,
enterprise_id: &str,
product_id: &str
) -> ProductGenerateApprovalUrlCall<'a, C, A>
[src]
&self,
enterprise_id: &str,
product_id: &str
) -> ProductGenerateApprovalUrlCall<'a, C, A>
Create a builder to help you perform the following task:
Generates a URL that can be rendered in an iframe to display the permissions (if any) of a product. An enterprise admin must view these permissions and accept them on behalf of their organization in order to approve that product.
Admins should accept the displayed permissions by interacting with a separate UI element in the EMM console, which in turn should trigger the use of this URL as the approvalUrlInfo.approvalUrl property in a Products.approve call to approve the product. This URL can only be used to display permissions for up to 1 day.
Arguments
enterpriseId
- The ID of the enterprise.productId
- The ID of the product.
fn get(&self, enterprise_id: &str, product_id: &str) -> ProductGetCall<'a, C, A>
[src]
Create a builder to help you perform the following task:
Retrieves details of a product for display to an enterprise admin.
Arguments
enterpriseId
- The ID of the enterprise.productId
- The ID of the product, e.g. "app:com.google.android.gm".
fn approve(
&self,
request: ProductsApproveRequest,
enterprise_id: &str,
product_id: &str
) -> ProductApproveCall<'a, C, A>
[src]
&self,
request: ProductsApproveRequest,
enterprise_id: &str,
product_id: &str
) -> ProductApproveCall<'a, C, A>
Create a builder to help you perform the following task:
Approves the specified product and the relevant app permissions, if any. The maximum number of products that you can approve per enterprise customer is 1,000.
To learn how to use managed Google Play to design and create a store layout to display approved products to your users, see Store Layout Design.
Arguments
request
- No description provided.enterpriseId
- The ID of the enterprise.productId
- The ID of the product.
fn get_app_restrictions_schema(
&self,
enterprise_id: &str,
product_id: &str
) -> ProductGetAppRestrictionsSchemaCall<'a, C, A>
[src]
&self,
enterprise_id: &str,
product_id: &str
) -> ProductGetAppRestrictionsSchemaCall<'a, C, A>
Create a builder to help you perform the following task:
Retrieves the schema that defines the configurable properties for this product. All products have a schema, but this schema may be empty if no managed configurations have been defined. This schema can be used to populate a UI that allows an admin to configure the product. To apply a managed configuration based on the schema obtained using this API, see Managed Configurations through Play.
Arguments
enterpriseId
- The ID of the enterprise.productId
- The ID of the product.
fn list(&self, enterprise_id: &str) -> ProductListCall<'a, C, A>
[src]
Create a builder to help you perform the following task:
Finds approved products that match a query, or all approved products if there is no query.
Arguments
enterpriseId
- The ID of the enterprise.