Struct google_admin1_directory::RoleMethods
[−]
[src]
pub struct RoleMethods<'a, C, A> where
C: 'a,
A: 'a, { /* fields omitted */ }
A builder providing access to all methods supported on role 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 `delete(...)`, `get(...)`, `insert(...)`, `list(...)`, `patch(...)` and `update(...)` // to build up your call. let rb = hub.roles();
Methods
impl<'a, C, A> RoleMethods<'a, C, A>
[src]
fn update(
&self,
request: Role,
customer: &str,
role_id: &str
) -> RoleUpdateCall<'a, C, A>
[src]
&self,
request: Role,
customer: &str,
role_id: &str
) -> RoleUpdateCall<'a, C, A>
Create a builder to help you perform the following task:
Updates a role.
Arguments
request
- No description provided.customer
- Immutable ID of the G Suite account.roleId
- Immutable ID of the role.
fn get(&self, customer: &str, role_id: &str) -> RoleGetCall<'a, C, A>
[src]
Create a builder to help you perform the following task:
Retrieves a role.
Arguments
customer
- Immutable ID of the G Suite account.roleId
- Immutable ID of the role.
fn delete(&self, customer: &str, role_id: &str) -> RoleDeleteCall<'a, C, A>
[src]
Create a builder to help you perform the following task:
Deletes a role.
Arguments
customer
- Immutable ID of the G Suite account.roleId
- Immutable ID of the role.
fn patch(
&self,
request: Role,
customer: &str,
role_id: &str
) -> RolePatchCall<'a, C, A>
[src]
&self,
request: Role,
customer: &str,
role_id: &str
) -> RolePatchCall<'a, C, A>
Create a builder to help you perform the following task:
Updates a role. This method supports patch semantics.
Arguments
request
- No description provided.customer
- Immutable ID of the G Suite account.roleId
- Immutable ID of the role.
fn insert(&self, request: Role, customer: &str) -> RoleInsertCall<'a, C, A>
[src]
Create a builder to help you perform the following task:
Creates a role.
Arguments
request
- No description provided.customer
- Immutable ID of the G Suite account.
fn list(&self, customer: &str) -> RoleListCall<'a, C, A>
[src]
Create a builder to help you perform the following task:
Retrieves a paginated list of all the roles in a domain.
Arguments
customer
- Immutable ID of the G Suite account.