Struct google_iam1::OrganizationMethods[][src]

pub struct OrganizationMethods<'a, C, A> where
    C: 'a,
    A: 'a, 
{ /* fields omitted */ }

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]

Create a builder to help you perform the following task:

Gets a Role definition.

Arguments

  • name - The resource name of the role in one of the following formats: roles/{ROLE_NAME} organizations/{ORGANIZATION_ID}/roles/{ROLE_NAME} projects/{PROJECT_ID}/roles/{ROLE_NAME}

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 - The resource name of the role in one of the following formats: organizations/{ORGANIZATION_ID}/roles/{ROLE_NAME} projects/{PROJECT_ID}/roles/{ROLE_NAME}

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 - The resource name of the role in one of the following formats: organizations/{ORGANIZATION_ID}/roles/{ROLE_NAME} projects/{PROJECT_ID}/roles/{ROLE_NAME}

Create a builder to help you perform the following task:

Creates a new Role.

Arguments

  • request - No description provided.
  • parent - The resource name of the parent resource in one of the following formats: organizations/{ORGANIZATION_ID} projects/{PROJECT_ID}

Create a builder to help you perform the following task:

Updates a Role definition.

Arguments

  • request - No description provided.
  • name - The resource name of the role in one of the following formats: roles/{ROLE_NAME} organizations/{ORGANIZATION_ID}/roles/{ROLE_NAME} projects/{PROJECT_ID}/roles/{ROLE_NAME}

Create a builder to help you perform the following task:

Lists the Roles defined on a resource.

Arguments

  • parent - The resource name of the parent resource in one of the following formats: `` (empty string) -- this refers to curated roles. organizations/{ORGANIZATION_ID} projects/{PROJECT_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> !Sync for OrganizationMethods<'a, C, A>