[−][src]Struct google_iam1::OrganizationMethods
A builder providing access to all methods supported on organization resources.
It is not used directly, but through the Iam
hub.
Example
Instantiate a resource builder
extern crate hyper; extern crate hyper_rustls; extern crate yup_oauth2 as oauth2; extern crate google_iam1 as iam1; use std::default::Default; use oauth2::{Authenticator, DefaultAuthenticatorDelegate, ApplicationSecret, MemoryStorage}; use iam1::Iam; 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 = Iam::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 `roles_create(...)`, `roles_delete(...)`, `roles_get(...)`, `roles_list(...)`, `roles_patch(...)` and `roles_undelete(...)` // to build up your call. let rb = hub.organizations();
Methods
impl<'a, C, A> OrganizationMethods<'a, C, A>
[src]
pub fn roles_get(&self, name: &str) -> OrganizationRoleGetCall<'a, C, A>
[src]
Create a builder to help you perform the following task:
Gets a Role definition.
Arguments
name
- Thename
parameter's value depends on the target resource for the request, namelyroles
,projects
, ororganizations
. Each resource type'sname
value format is described below: *roles.get()
:roles/{ROLE_NAME}
. This method returns results from all predefined roles in Cloud IAM. Example request URL:https://iam.googleapis.com/v1/roles/{ROLE_NAME}
*projects.roles.get()
:projects/{PROJECT_ID}/roles/{CUSTOM_ROLE_ID}
. This method returns only custom roles that have been created at the project level. Example request URL:https://iam.googleapis.com/v1/projects/{PROJECT_ID}/roles/{CUSTOM_ROLE_ID}
*organizations.roles.get()
:organizations/{ORGANIZATION_ID}/roles/{CUSTOM_ROLE_ID}
. This method returns only custom roles that have been created at the organization level. Example request URL:https://iam.googleapis.com/v1/organizations/{ORGANIZATION_ID}/roles/{CUSTOM_ROLE_ID}
Note: Wildcard (*) values are invalid; you must specify a complete project ID or organization ID.
pub fn roles_undelete(
&self,
request: UndeleteRoleRequest,
name: &str
) -> OrganizationRoleUndeleteCall<'a, C, A>
[src]
&self,
request: UndeleteRoleRequest,
name: &str
) -> OrganizationRoleUndeleteCall<'a, C, A>
Create a builder to help you perform the following task:
Undelete a Role, bringing it back in its previous state.
Arguments
request
- No description provided.name
- Thename
parameter's value depends on the target resource for the request, namelyprojects
ororganizations
. Each resource type'sname
value format is described below: *projects.roles.undelete()
:projects/{PROJECT_ID}/roles/{CUSTOM_ROLE_ID}
. This method undeletes only custom roles that have been created at the project level. Example request URL:https://iam.googleapis.com/v1/projects/{PROJECT_ID}/roles/{CUSTOM_ROLE_ID}
*organizations.roles.undelete()
:organizations/{ORGANIZATION_ID}/roles/{CUSTOM_ROLE_ID}
. This method undeletes only custom roles that have been created at the organization level. Example request URL:https://iam.googleapis.com/v1/organizations/{ORGANIZATION_ID}/roles/{CUSTOM_ROLE_ID}
Note: Wildcard (*) values are invalid; you must specify a complete project ID or organization ID.
pub fn roles_delete(&self, name: &str) -> OrganizationRoleDeleteCall<'a, C, A>
[src]
Create a builder to help you perform the following task:
Soft deletes a role. The role is suspended and cannot be used to create new
IAM Policy Bindings.
The Role will not be included in ListRoles()
unless show_deleted
is set
in the ListRolesRequest
. The Role contains the deleted boolean set.
Existing Bindings remains, but are inactive. The Role can be undeleted
within 7 days. After 7 days the Role is deleted and all Bindings associated
with the role are removed.
Arguments
name
- Thename
parameter's value depends on the target resource for the request, namelyprojects
ororganizations
. Each resource type'sname
value format is described below: *projects.roles.delete()
:projects/{PROJECT_ID}/roles/{CUSTOM_ROLE_ID}
. This method deletes only custom roles that have been created at the project level. Example request URL:https://iam.googleapis.com/v1/projects/{PROJECT_ID}/roles/{CUSTOM_ROLE_ID}
*organizations.roles.delete()
:organizations/{ORGANIZATION_ID}/roles/{CUSTOM_ROLE_ID}
. This method deletes only custom roles that have been created at the organization level. Example request URL:https://iam.googleapis.com/v1/organizations/{ORGANIZATION_ID}/roles/{CUSTOM_ROLE_ID}
Note: Wildcard (*) values are invalid; you must specify a complete project ID or organization ID.
pub fn roles_create(
&self,
request: CreateRoleRequest,
parent: &str
) -> OrganizationRoleCreateCall<'a, C, A>
[src]
&self,
request: CreateRoleRequest,
parent: &str
) -> OrganizationRoleCreateCall<'a, C, A>
Create a builder to help you perform the following task:
Creates a new Role.
Arguments
request
- No description provided.parent
- Theparent
parameter's value depends on the target resource for the request, namelyprojects
ororganizations
. Each resource type'sparent
value format is described below: *projects.roles.create()
:projects/{PROJECT_ID}
. This method creates project-level custom roles. Example request URL:https://iam.googleapis.com/v1/projects/{PROJECT_ID}/roles
*organizations.roles.create()
:organizations/{ORGANIZATION_ID}
. This method creates organization-level custom roles. Example request URL:https://iam.googleapis.com/v1/organizations/{ORGANIZATION_ID}/roles
Note: Wildcard (*) values are invalid; you must specify a complete project ID or organization ID.
pub fn roles_patch(
&self,
request: Role,
name: &str
) -> OrganizationRolePatchCall<'a, C, A>
[src]
&self,
request: Role,
name: &str
) -> OrganizationRolePatchCall<'a, C, A>
Create a builder to help you perform the following task:
Updates a Role definition.
Arguments
request
- No description provided.name
- Thename
parameter's value depends on the target resource for the request, namelyprojects
ororganizations
. Each resource type'sname
value format is described below: *projects.roles.patch()
:projects/{PROJECT_ID}/roles/{CUSTOM_ROLE_ID}
. This method updates only custom roles that have been created at the project level. Example request URL:https://iam.googleapis.com/v1/projects/{PROJECT_ID}/roles/{CUSTOM_ROLE_ID}
*organizations.roles.patch()
:organizations/{ORGANIZATION_ID}/roles/{CUSTOM_ROLE_ID}
. This method updates only custom roles that have been created at the organization level. Example request URL:https://iam.googleapis.com/v1/organizations/{ORGANIZATION_ID}/roles/{CUSTOM_ROLE_ID}
Note: Wildcard (*) values are invalid; you must specify a complete project ID or organization ID.
pub fn roles_list(&self, parent: &str) -> OrganizationRoleListCall<'a, C, A>
[src]
Create a builder to help you perform the following task:
Lists the Roles defined on a resource.
Arguments
parent
- Theparent
parameter's value depends on the target resource for the request, namelyroles
,projects
, ororganizations
. Each resource type'sparent
value format is described below: *roles.list()
: An empty string. This method doesn't require a resource; it simply returns all predefined roles in Cloud IAM. Example request URL:https://iam.googleapis.com/v1/roles
*projects.roles.list()
:projects/{PROJECT_ID}
. This method lists all project-level custom roles. Example request URL:https://iam.googleapis.com/v1/projects/{PROJECT_ID}/roles
*organizations.roles.list()
:organizations/{ORGANIZATION_ID}
. This method lists all organization-level custom roles. Example request URL:https://iam.googleapis.com/v1/organizations/{ORGANIZATION_ID}/roles
Note: Wildcard (*) values are invalid; you must specify a complete project ID or organization ID.
Trait Implementations
impl<'a, C, A> MethodsBuilder for OrganizationMethods<'a, C, A>
[src]
Auto Trait Implementations
impl<'a, C, A> !Send for OrganizationMethods<'a, C, A>
impl<'a, C, A> Unpin for OrganizationMethods<'a, C, A>
impl<'a, C, A> !Sync for OrganizationMethods<'a, C, A>
impl<'a, C, A> !UnwindSafe for OrganizationMethods<'a, C, A>
impl<'a, C, A> !RefUnwindSafe for OrganizationMethods<'a, C, A>
Blanket Implementations
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Typeable for T where
T: Any,
T: Any,