Struct google_cloudasset1_beta1::api::ProjectMethods
source · [−]pub struct ProjectMethods<'a> { /* private fields */ }
Expand description
A builder providing access to all methods supported on project 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 `batch_get_assets_history(...)`, `export_assets(...)` and `operations_get(...)`
// to build up your call.
let rb = hub.projects();
Implementations
sourceimpl<'a> ProjectMethods<'a>
impl<'a> ProjectMethods<'a>
sourcepub fn operations_get(&self, name: &str) -> ProjectOperationGetCall<'a>
pub fn operations_get(&self, name: &str) -> ProjectOperationGetCall<'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 batch_get_assets_history(
&self,
parent: &str
) -> ProjectBatchGetAssetsHistoryCall<'a>
pub fn batch_get_assets_history(
&self,
parent: &str
) -> ProjectBatchGetAssetsHistoryCall<'a>
Create a builder to help you perform the following task:
Batch gets the update history of assets that overlap a time window. For IAM_POLICY content, this API outputs history when the asset and its attached IAM POLICY both exist. This can create gaps in the output history. Otherwise, this API outputs history with asset in both non-delete or deleted status. If a specified asset does not exist, this API returns an INVALID_ARGUMENT error.
Arguments
parent
- Required. The relative name of the root asset. It can only be an organization number (such as “organizations/123”), a project ID (such as “projects/my-project-id”)“, or a project number (such as “projects/12345”).
sourcepub fn export_assets(
&self,
request: ExportAssetsRequest,
parent: &str
) -> ProjectExportAssetCall<'a>
pub fn export_assets(
&self,
request: ExportAssetsRequest,
parent: &str
) -> ProjectExportAssetCall<'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 ProjectMethods<'a>
Auto Trait Implementations
impl<'a> !RefUnwindSafe for ProjectMethods<'a>
impl<'a> Send for ProjectMethods<'a>
impl<'a> Sync for ProjectMethods<'a>
impl<'a> Unpin for ProjectMethods<'a>
impl<'a> !UnwindSafe for ProjectMethods<'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