Struct google_admin1_directory::ResourceMethods [−][src]
pub struct ResourceMethods<'a, C, A> where
C: 'a,
A: 'a, { /* fields omitted */ }
A builder providing access to all methods supported on resource resources.
It is not used directly, but through the Directory
hub.
Example
Instantiate a resource builder
extern crate hyper; extern crate hyper_rustls; extern crate yup_oauth2 as oauth2; extern crate google_admin1_directory as admin1_directory; use std::default::Default; use oauth2::{Authenticator, DefaultAuthenticatorDelegate, ApplicationSecret, MemoryStorage}; use admin1_directory::Directory; 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 = Directory::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 `calendars_delete(...)`, `calendars_get(...)`, `calendars_insert(...)`, `calendars_list(...)`, `calendars_patch(...)` and `calendars_update(...)` // to build up your call. let rb = hub.resources();
Methods
impl<'a, C, A> ResourceMethods<'a, C, A>
[src]
impl<'a, C, A> ResourceMethods<'a, C, A>
pub fn calendars_list(
&self,
customer: &str
) -> ResourceCalendarListCall<'a, C, A>
[src]
pub fn calendars_list(
&self,
customer: &str
) -> ResourceCalendarListCall<'a, C, A>
Create a builder to help you perform the following task:
Retrieves a list of calendar resources for an account.
Arguments
customer
- The unique ID for the customer's G Suite account. As an account administrator, you can also use the my_customer alias to represent your account's customer ID.
pub fn calendars_get(
&self,
customer: &str,
calendar_resource_id: &str
) -> ResourceCalendarGetCall<'a, C, A>
[src]
pub fn calendars_get(
&self,
customer: &str,
calendar_resource_id: &str
) -> ResourceCalendarGetCall<'a, C, A>
Create a builder to help you perform the following task:
Retrieves a calendar resource.
Arguments
customer
- The unique ID for the customer's G Suite account. As an account administrator, you can also use the my_customer alias to represent your account's customer ID.calendarResourceId
- The unique ID of the calendar resource to retrieve.
pub fn calendars_insert(
&self,
request: CalendarResource,
customer: &str
) -> ResourceCalendarInsertCall<'a, C, A>
[src]
pub fn calendars_insert(
&self,
request: CalendarResource,
customer: &str
) -> ResourceCalendarInsertCall<'a, C, A>
Create a builder to help you perform the following task:
Inserts a calendar resource.
Arguments
request
- No description provided.customer
- The unique ID for the customer's G Suite account. As an account administrator, you can also use the my_customer alias to represent your account's customer ID.
pub fn calendars_patch(
&self,
request: CalendarResource,
customer: &str,
calendar_resource_id: &str
) -> ResourceCalendarPatchCall<'a, C, A>
[src]
pub fn calendars_patch(
&self,
request: CalendarResource,
customer: &str,
calendar_resource_id: &str
) -> ResourceCalendarPatchCall<'a, C, A>
Create a builder to help you perform the following task:
Updates a calendar resource.
This method supports patch semantics, meaning you only need to include the fields you wish to update. Fields that are not present in the request will be preserved. This method supports patch semantics.
Arguments
request
- No description provided.customer
- The unique ID for the customer's G Suite account. As an account administrator, you can also use the my_customer alias to represent your account's customer ID.calendarResourceId
- The unique ID of the calendar resource to update.
pub fn calendars_update(
&self,
request: CalendarResource,
customer: &str,
calendar_resource_id: &str
) -> ResourceCalendarUpdateCall<'a, C, A>
[src]
pub fn calendars_update(
&self,
request: CalendarResource,
customer: &str,
calendar_resource_id: &str
) -> ResourceCalendarUpdateCall<'a, C, A>
Create a builder to help you perform the following task:
Updates a calendar resource.
This method supports patch semantics, meaning you only need to include the fields you wish to update. Fields that are not present in the request will be preserved.
Arguments
request
- No description provided.customer
- The unique ID for the customer's G Suite account. As an account administrator, you can also use the my_customer alias to represent your account's customer ID.calendarResourceId
- The unique ID of the calendar resource to update.
pub fn calendars_delete(
&self,
customer: &str,
calendar_resource_id: &str
) -> ResourceCalendarDeleteCall<'a, C, A>
[src]
pub fn calendars_delete(
&self,
customer: &str,
calendar_resource_id: &str
) -> ResourceCalendarDeleteCall<'a, C, A>
Create a builder to help you perform the following task:
Deletes a calendar resource.
Arguments
customer
- The unique ID for the customer's G Suite account. As an account administrator, you can also use the my_customer alias to represent your account's customer ID.calendarResourceId
- The unique ID of the calendar resource to delete.
Trait Implementations
impl<'a, C, A> MethodsBuilder for ResourceMethods<'a, C, A>
[src]
impl<'a, C, A> MethodsBuilder for ResourceMethods<'a, C, A>
Auto Trait Implementations
impl<'a, C, A> !Send for ResourceMethods<'a, C, A>
impl<'a, C, A> !Send for ResourceMethods<'a, C, A>
impl<'a, C, A> !Sync for ResourceMethods<'a, C, A>
impl<'a, C, A> !Sync for ResourceMethods<'a, C, A>