Struct google_cloudasset1_beta1::api::FolderMethods
source · [−]pub struct FolderMethods<'a> { /* private fields */ }
Expand description
A builder providing access to all methods supported on folder resources.
It is not used directly, but through the CloudAsset
hub.
Example
Instantiate a resource builder
extern crate hyper;
extern crate hyper_rustls;
extern crate google_cloudasset1_beta1 as cloudasset1_beta1;
use std::default::Default;
use cloudasset1_beta1::{CloudAsset, oauth2, hyper, hyper_rustls};
let secret: oauth2::ApplicationSecret = Default::default();
let auth = oauth2::InstalledFlowAuthenticator::builder(
secret,
oauth2::InstalledFlowReturnMethod::HTTPRedirect,
).build().await.unwrap();
let mut hub = CloudAsset::new(hyper::Client::builder().build(hyper_rustls::HttpsConnector::with_native_roots()), auth);
// Usually you wouldn't bind this to a variable, but keep calling *CallBuilders*
// like `export_assets(...)` and `operations_get(...)`
// to build up your call.
let rb = hub.folders();
Implementations
sourceimpl<'a> FolderMethods<'a>
impl<'a> FolderMethods<'a>
sourcepub fn operations_get(&self, name: &str) -> FolderOperationGetCall<'a>
pub fn operations_get(&self, name: &str) -> FolderOperationGetCall<'a>
Create a builder to help you perform the following task:
Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.
Arguments
name
- The name of the operation resource.
sourcepub fn export_assets(
&self,
request: ExportAssetsRequest,
parent: &str
) -> FolderExportAssetCall<'a>
pub fn export_assets(
&self,
request: ExportAssetsRequest,
parent: &str
) -> FolderExportAssetCall<'a>
Create a builder to help you perform the following task:
Exports assets with time and resource types to a given Cloud Storage location. The output format is newline-delimited JSON. This API implements the google.longrunning.Operation API allowing you to keep track of the export. We recommend intervals of at least 2 seconds with exponential retry to poll the export operation result. For regular-size resource parent, the export operation usually finishes within 5 minutes.
Arguments
request
- No description provided.parent
- Required. The relative name of the root asset. This can only be an organization number (such as “organizations/123”), a project ID (such as “projects/my-project-id”), a project number (such as “projects/12345”), or a folder number (such as “folders/123”).
Trait Implementations
impl<'a> MethodsBuilder for FolderMethods<'a>
Auto Trait Implementations
impl<'a> !RefUnwindSafe for FolderMethods<'a>
impl<'a> Send for FolderMethods<'a>
impl<'a> Sync for FolderMethods<'a>
impl<'a> Unpin for FolderMethods<'a>
impl<'a> !UnwindSafe for FolderMethods<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more