Struct google_androidenterprise1::CollectionMethods
[−]
[src]
pub struct CollectionMethods<'a, C, A> where C: 'a, A: 'a { /* fields omitted */ }
A builder providing access to all methods supported on collection 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(...)`, `insert(...)`, `list(...)`, `patch(...)` and `update(...)` // to build up your call. let rb = hub.collections();
Methods
impl<'a, C, A> CollectionMethods<'a, C, A>
[src]
fn patch(&self,
request: Collection,
enterprise_id: &str,
collection_id: &str)
-> CollectionPatchCall<'a, C, A>
request: Collection,
enterprise_id: &str,
collection_id: &str)
-> CollectionPatchCall<'a, C, A>
Create a builder to help you perform the following task:
Updates a collection. This method supports patch semantics.
Arguments
request
- No description provided.enterpriseId
- The ID of the enterprise.collectionId
- The ID of the collection.
fn list(&self, enterprise_id: &str) -> CollectionListCall<'a, C, A>
Create a builder to help you perform the following task:
Retrieves the IDs of all the collections for an enterprise.
Arguments
enterpriseId
- The ID of the enterprise.
fn get(&self,
enterprise_id: &str,
collection_id: &str)
-> CollectionGetCall<'a, C, A>
enterprise_id: &str,
collection_id: &str)
-> CollectionGetCall<'a, C, A>
Create a builder to help you perform the following task:
Retrieves the details of a collection.
Arguments
enterpriseId
- The ID of the enterprise.collectionId
- The ID of the collection.
fn delete(&self,
enterprise_id: &str,
collection_id: &str)
-> CollectionDeleteCall<'a, C, A>
enterprise_id: &str,
collection_id: &str)
-> CollectionDeleteCall<'a, C, A>
Create a builder to help you perform the following task:
Deletes a collection.
Arguments
enterpriseId
- The ID of the enterprise.collectionId
- The ID of the collection.
fn insert(&self,
request: Collection,
enterprise_id: &str)
-> CollectionInsertCall<'a, C, A>
request: Collection,
enterprise_id: &str)
-> CollectionInsertCall<'a, C, A>
Create a builder to help you perform the following task:
Creates a new collection.
Arguments
request
- No description provided.enterpriseId
- The ID of the enterprise.
fn update(&self,
request: Collection,
enterprise_id: &str,
collection_id: &str)
-> CollectionUpdateCall<'a, C, A>
request: Collection,
enterprise_id: &str,
collection_id: &str)
-> CollectionUpdateCall<'a, C, A>
Create a builder to help you perform the following task:
Updates a collection.
Arguments
request
- No description provided.enterpriseId
- The ID of the enterprise.collectionId
- The ID of the collection.