[−][src]Struct google_accessapproval1_beta1::FolderMethods
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_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.folders();
Methods
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]
&self,
request: AccessApprovalSettings,
name: &str
) -> FolderUpdateAccessApprovalSettingCall<'a, C, A>
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:- "projects/{project_id}/accessApprovalSettings"
- "folders/{folder_id}/accessApprovalSettings"
- "organizations/{organization_id}/accessApprovalSettings"
pub fn approval_requests_approve(
&self,
request: ApproveApprovalRequestMessage,
name: &str
) -> FolderApprovalRequestApproveCall<'a, C, A>
[src]
&self,
request: ApproveApprovalRequestMessage,
name: &str
) -> FolderApprovalRequestApproveCall<'a, C, A>
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]
&self,
name: &str
) -> FolderGetAccessApprovalSettingCall<'a, C, A>
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]
&self,
name: &str
) -> FolderApprovalRequestGetCall<'a, C, A>
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]
&self,
parent: &str
) -> FolderApprovalRequestListCall<'a, C, A>
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 approval_requests_dismiss(
&self,
request: DismissApprovalRequestMessage,
name: &str
) -> FolderApprovalRequestDismisCall<'a, C, A>
[src]
&self,
request: DismissApprovalRequestMessage,
name: &str
) -> FolderApprovalRequestDismisCall<'a, C, A>
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> !Send for FolderMethods<'a, C, A>
impl<'a, C, A> Unpin for FolderMethods<'a, C, A>
impl<'a, C, A> !Sync for FolderMethods<'a, C, A>
impl<'a, C, A> !UnwindSafe for FolderMethods<'a, C, A>
impl<'a, C, A> !RefUnwindSafe for FolderMethods<'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,