[][src]Struct google_accessapproval1::FolderMethods

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

A builder providing access to all methods supported on folder 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 as accessapproval1;
 
use std::default::Default;
use oauth2::{Authenticator, DefaultAuthenticatorDelegate, ApplicationSecret, MemoryStorage};
use accessapproval1::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(...)`, `delete_access_approval_settings(...)`, `get_access_approval_settings(...)` and `update_access_approval_settings(...)`
// to build up your call.
let rb = hub.folders();

Implementations

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

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

Create a builder to help you perform the following task:

Updates the settings associated with a project, folder, or organization. Settings to update are determined by the value of field_mask.

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_approve(
    &self,
    request: ApproveApprovalRequestMessage,
    name: &str
) -> FolderApprovalRequestApproveCall<'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 get_access_approval_settings(
    &self,
    name: &str
) -> FolderGetAccessApprovalSettingCall<'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
) -> FolderApprovalRequestGetCall<'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_list(
    &self,
    parent: &str
) -> FolderApprovalRequestListCall<'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 delete_access_approval_settings(
    &self,
    name: &str
) -> FolderDeleteAccessApprovalSettingCall<'a, C, A>
[src]

Create a builder to help you perform the following task:

Deletes the settings associated with a project, folder, or organization. This will have the effect of disabling Access Approval for the project, folder, or organization, but only if all ancestors also have Access Approval disabled. If Access Approval is enabled at a higher level of the hierarchy, then Access Approval will still be enabled at this level as the settings are inherited.

Arguments

  • name - Name of the AccessApprovalSettings to delete.

pub fn approval_requests_dismiss(
    &self,
    request: DismissApprovalRequestMessage,
    name: &str
) -> FolderApprovalRequestDismisCall<'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 FolderMethods<'a, C, A>[src]

Auto Trait Implementations

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

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

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

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

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

Blanket Implementations

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

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

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

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> Typeable for T where
    T: Any