Struct google_clouduseraccountsvm_beta::GroupMethods
[−]
[src]
pub struct GroupMethods<'a, C, A> where C: 'a, A: 'a { /* fields omitted */ }
A builder providing access to all methods supported on group resources.
It is not used directly, but through the CloudUserAccounts
hub.
Example
Instantiate a resource builder
extern crate hyper; extern crate yup_oauth2 as oauth2; extern crate google_clouduseraccountsvm_beta as clouduseraccountsvm_beta; use std::default::Default; use oauth2::{Authenticator, DefaultAuthenticatorDelegate, ApplicationSecret, MemoryStorage}; use clouduseraccountsvm_beta::CloudUserAccounts; let secret: ApplicationSecret = Default::default(); let auth = Authenticator::new(&secret, DefaultAuthenticatorDelegate, hyper::Client::new(), <MemoryStorage as Default>::default(), None); let mut hub = CloudUserAccounts::new(hyper::Client::new(), auth); // Usually you wouldn't bind this to a variable, but keep calling *CallBuilders* // like `add_member(...)`, `delete(...)`, `get(...)`, `insert(...)`, `list(...)` and `remove_member(...)` // to build up your call. let rb = hub.groups();
Methods
impl<'a, C, A> GroupMethods<'a, C, A>
[src]
fn delete(&self, project: &str, group_name: &str) -> GroupDeleteCall<'a, C, A>
Create a builder to help you perform the following task:
Deletes the specified Group resource.
Arguments
project
- Project ID for this request.groupName
- Name of the Group resource to delete.
fn get(&self, project: &str, group_name: &str) -> GroupGetCall<'a, C, A>
Create a builder to help you perform the following task:
Returns the specified Group resource.
Arguments
project
- Project ID for this request.groupName
- Name of the Group resource to return.
fn add_member(&self,
request: GroupsAddMemberRequest,
project: &str,
group_name: &str)
-> GroupAddMemberCall<'a, C, A>
request: GroupsAddMemberRequest,
project: &str,
group_name: &str)
-> GroupAddMemberCall<'a, C, A>
Create a builder to help you perform the following task:
Adds users to the specified group.
Arguments
request
- No description provided.project
- Project ID for this request.groupName
- Name of the group for this request.
fn insert(&self, request: Group, project: &str) -> GroupInsertCall<'a, C, A>
Create a builder to help you perform the following task:
Creates a Group resource in the specified project using the data included in the request.
Arguments
request
- No description provided.project
- Project ID for this request.
fn list(&self, project: &str) -> GroupListCall<'a, C, A>
Create a builder to help you perform the following task:
Retrieves the list of groups contained within the specified project.
Arguments
project
- Project ID for this request.
fn remove_member(&self,
request: GroupsRemoveMemberRequest,
project: &str,
group_name: &str)
-> GroupRemoveMemberCall<'a, C, A>
request: GroupsRemoveMemberRequest,
project: &str,
group_name: &str)
-> GroupRemoveMemberCall<'a, C, A>
Create a builder to help you perform the following task:
Removes users from the specified group.
Arguments
request
- No description provided.project
- Project ID for this request.groupName
- Name of the group for this request.