[][src]Struct google_accessapproval1_beta1::ProjectMethods

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

A builder providing access to all methods supported on project resources. It is not used directly, but through the AccessApproval hub.

Example

Instantiate a resource builder

extern crate hyper;
extern crate hyper_rustls;
extern crate yup_oauth2 as oauth2;
extern crate google_accessapproval1_beta1 as accessapproval1_beta1;
 
use std::default::Default;
use oauth2::{Authenticator, DefaultAuthenticatorDelegate, ApplicationSecret, MemoryStorage};
use accessapproval1_beta1::AccessApproval;
 
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 = AccessApproval::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 `approval_requests_approve(...)`, `approval_requests_dismiss(...)`, `approval_requests_get(...)`, `approval_requests_list(...)`, `get_access_approval_settings(...)` and `update_access_approval_settings(...)`
// to build up your call.
let rb = hub.projects();

Methods

impl<'a, C, A> ProjectMethods<'a, C, A>[src]

pub fn approval_requests_list(
    &self,
    parent: &str
) -> ProjectApprovalRequestListCall<'a, C, A>
[src]

Create a builder to help you perform the following task:

Lists approval requests associated with a project, folder, or organization. Approval requests can be filtered by state (pending, active, dismissed). The order is reverse chronological.

Arguments

  • parent - The parent resource. This may be "projects/{project_id}", "folders/{folder_id}", or "organizations/{organization_id}".

pub fn get_access_approval_settings(
    &self,
    name: &str
) -> ProjectGetAccessApprovalSettingCall<'a, C, A>
[src]

Create a builder to help you perform the following task:

Gets the settings associated with a project, folder, or organization.

Arguments

  • name - Name of the AccessApprovalSettings to retrieve.

pub fn approval_requests_get(
    &self,
    name: &str
) -> ProjectApprovalRequestGetCall<'a, C, A>
[src]

Create a builder to help you perform the following task:

Gets an approval request. Returns NOT_FOUND if the request does not exist.

Arguments

  • name - Name of the approval request to retrieve.

pub fn approval_requests_approve(
    &self,
    request: ApproveApprovalRequestMessage,
    name: &str
) -> ProjectApprovalRequestApproveCall<'a, C, A>
[src]

Create a builder to help you perform the following task:

Approves a request and returns the updated ApprovalRequest.

Returns NOT_FOUND if the request does not exist. Returns FAILED_PRECONDITION if the request exists but is not in a pending state.

Arguments

  • request - No description provided.
  • name - Name of the approval request to approve.

pub fn update_access_approval_settings(
    &self,
    request: AccessApprovalSettings,
    name: &str
) -> ProjectUpdateAccessApprovalSettingCall<'a, C, A>
[src]

Create a builder to help you perform the following task:

Updates the settings associated with a project, folder, or organization. Completely replaces the existing settings.

Arguments

  • request - No description provided.
  • name - The resource name of the settings. Format is one of:
    1. "projects/{project_id}/accessApprovalSettings"
    2. "folders/{folder_id}/accessApprovalSettings"
    3. "organizations/{organization_id}/accessApprovalSettings"

pub fn approval_requests_dismiss(
    &self,
    request: DismissApprovalRequestMessage,
    name: &str
) -> ProjectApprovalRequestDismisCall<'a, C, A>
[src]

Create a builder to help you perform the following task:

Dismisses a request. Returns the updated ApprovalRequest.

NOTE: This does not deny access to the resource if another request has been made and approved. It is equivalent in effect to ignoring the request altogether.

Returns NOT_FOUND if the request does not exist.

Returns FAILED_PRECONDITION if the request exists but is not in a pending state.

Arguments

  • request - No description provided.
  • name - Name of the ApprovalRequest to dismiss.

Trait Implementations

impl<'a, C, A> MethodsBuilder for ProjectMethods<'a, C, A>[src]

Auto Trait Implementations

impl<'a, C, A> !Send for ProjectMethods<'a, C, A>

impl<'a, C, A> Unpin for ProjectMethods<'a, C, A>

impl<'a, C, A> !Sync for ProjectMethods<'a, C, A>

impl<'a, C, A> !UnwindSafe for ProjectMethods<'a, C, A>

impl<'a, C, A> !RefUnwindSafe for ProjectMethods<'a, C, A>

Blanket Implementations

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Typeable for T where
    T: Any

fn get_type(&self) -> TypeId

Get the TypeId of this object.