pub struct ZoneOperationMethods<'a, C>where
C: 'a,{ /* private fields */ }
Expand description
A builder providing access to all methods supported on zoneOperation resources.
It is not used directly, but through the Compute
hub.
§Example
Instantiate a resource builder
extern crate hyper;
extern crate hyper_rustls;
extern crate google_compute1 as compute1;
use compute1::{Compute, FieldMask, hyper_rustls, hyper_util, yup_oauth2};
let secret: yup_oauth2::ApplicationSecret = Default::default();
let auth = yup_oauth2::InstalledFlowAuthenticator::builder(
secret,
yup_oauth2::InstalledFlowReturnMethod::HTTPRedirect,
).build().await.unwrap();
let client = hyper_util::client::legacy::Client::builder(
hyper_util::rt::TokioExecutor::new()
)
.build(
hyper_rustls::HttpsConnectorBuilder::new()
.with_native_roots()
.unwrap()
.https_or_http()
.enable_http1()
.build()
);
let mut hub = Compute::new(client, auth);
// Usually you wouldn't bind this to a variable, but keep calling *CallBuilders*
// like `delete(...)`, `get(...)`, `list(...)` and `wait(...)`
// to build up your call.
let rb = hub.zone_operations();
Implementations§
Source§impl<'a, C> ZoneOperationMethods<'a, C>
impl<'a, C> ZoneOperationMethods<'a, C>
Sourcepub fn delete(
&self,
project: &str,
zone: &str,
operation: &str,
) -> ZoneOperationDeleteCall<'a, C>
pub fn delete( &self, project: &str, zone: &str, operation: &str, ) -> ZoneOperationDeleteCall<'a, C>
Create a builder to help you perform the following task:
Deletes the specified zone-specific Operations resource.
§Arguments
project
- Project ID for this request.zone
- Name of the zone for this request.operation
- Name of the Operations resource to delete.
Sourcepub fn get(
&self,
project: &str,
zone: &str,
operation: &str,
) -> ZoneOperationGetCall<'a, C>
pub fn get( &self, project: &str, zone: &str, operation: &str, ) -> ZoneOperationGetCall<'a, C>
Create a builder to help you perform the following task:
Retrieves the specified zone-specific Operations resource.
§Arguments
project
- Project ID for this request.zone
- Name of the zone for this request.operation
- Name of the Operations resource to return.
Sourcepub fn list(&self, project: &str, zone: &str) -> ZoneOperationListCall<'a, C>
pub fn list(&self, project: &str, zone: &str) -> ZoneOperationListCall<'a, C>
Create a builder to help you perform the following task:
Retrieves a list of Operation resources contained within the specified zone.
§Arguments
project
- Project ID for this request.zone
- Name of the zone for request.
Sourcepub fn wait(
&self,
project: &str,
zone: &str,
operation: &str,
) -> ZoneOperationWaitCall<'a, C>
pub fn wait( &self, project: &str, zone: &str, operation: &str, ) -> ZoneOperationWaitCall<'a, C>
Create a builder to help you perform the following task:
Waits for the specified Operation resource to return as DONE
or for the request to approach the 2 minute deadline, and retrieves the specified Operation resource. This method waits for no more than the 2 minutes and then returns the current state of the operation, which might be DONE
or still in progress. This method is called on a best-effort basis. Specifically: - In uncommon cases, when the server is overloaded, the request might return before the default deadline is reached, or might return after zero seconds. - If the default deadline is reached, there is no guarantee that the operation is actually done when the method returns. Be prepared to retry if the operation is not DONE
.
§Arguments
project
- Project ID for this request.zone
- Name of the zone for this request.operation
- Name of the Operations resource to return.
Trait Implementations§
impl<'a, C> MethodsBuilder for ZoneOperationMethods<'a, C>
Auto Trait Implementations§
impl<'a, C> Freeze for ZoneOperationMethods<'a, C>
impl<'a, C> !RefUnwindSafe for ZoneOperationMethods<'a, C>
impl<'a, C> Send for ZoneOperationMethods<'a, C>where
C: Sync,
impl<'a, C> Sync for ZoneOperationMethods<'a, C>where
C: Sync,
impl<'a, C> Unpin for ZoneOperationMethods<'a, C>
impl<'a, C> !UnwindSafe for ZoneOperationMethods<'a, C>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more