Struct google_storage1::api::AnywhereCachMethods
source · pub struct AnywhereCachMethods<'a, S>where
S: 'a,{ /* private fields */ }
Expand description
A builder providing access to all methods supported on anywhereCach resources.
It is not used directly, but through the Storage
hub.
§Example
Instantiate a resource builder
extern crate hyper;
extern crate hyper_rustls;
extern crate google_storage1 as storage1;
use std::default::Default;
use storage1::{Storage, oauth2, hyper, hyper_rustls, chrono, FieldMask};
let secret: oauth2::ApplicationSecret = Default::default();
let auth = oauth2::InstalledFlowAuthenticator::builder(
secret,
oauth2::InstalledFlowReturnMethod::HTTPRedirect,
).build().await.unwrap();
let mut hub = Storage::new(hyper::Client::builder().build(hyper_rustls::HttpsConnectorBuilder::new().with_native_roots().https_or_http().enable_http1().build()), auth);
// Usually you wouldn't bind this to a variable, but keep calling *CallBuilders*
// like `disable(...)`, `get(...)`, `insert(...)`, `list(...)`, `pause(...)`, `resume(...)` and `update(...)`
// to build up your call.
let rb = hub.anywhere_caches();
Implementations§
source§impl<'a, S> AnywhereCachMethods<'a, S>
impl<'a, S> AnywhereCachMethods<'a, S>
sourcepub fn disable(
&self,
bucket: &str,
anywhere_cache_id: &str
) -> AnywhereCachDisableCall<'a, S>
pub fn disable( &self, bucket: &str, anywhere_cache_id: &str ) -> AnywhereCachDisableCall<'a, S>
Create a builder to help you perform the following task:
Disables an Anywhere Cache instance.
§Arguments
bucket
- Name of the parent bucket.anywhereCacheId
- The ID of requested Anywhere Cache instance.
sourcepub fn get(
&self,
bucket: &str,
anywhere_cache_id: &str
) -> AnywhereCachGetCall<'a, S>
pub fn get( &self, bucket: &str, anywhere_cache_id: &str ) -> AnywhereCachGetCall<'a, S>
Create a builder to help you perform the following task:
Returns the metadata of an Anywhere Cache instance.
§Arguments
bucket
- Name of the parent bucket.anywhereCacheId
- The ID of requested Anywhere Cache instance.
sourcepub fn insert(
&self,
request: AnywhereCache,
bucket: &str
) -> AnywhereCachInsertCall<'a, S>
pub fn insert( &self, request: AnywhereCache, bucket: &str ) -> AnywhereCachInsertCall<'a, S>
Create a builder to help you perform the following task:
Creates an Anywhere Cache instance.
§Arguments
request
- No description provided.bucket
- Name of the parent bucket.
sourcepub fn list(&self, bucket: &str) -> AnywhereCachListCall<'a, S>
pub fn list(&self, bucket: &str) -> AnywhereCachListCall<'a, S>
Create a builder to help you perform the following task:
Returns a list of Anywhere Cache instances of the bucket matching the criteria.
§Arguments
bucket
- Name of the parent bucket.
sourcepub fn pause(
&self,
bucket: &str,
anywhere_cache_id: &str
) -> AnywhereCachPauseCall<'a, S>
pub fn pause( &self, bucket: &str, anywhere_cache_id: &str ) -> AnywhereCachPauseCall<'a, S>
Create a builder to help you perform the following task:
Pauses an Anywhere Cache instance.
§Arguments
bucket
- Name of the parent bucket.anywhereCacheId
- The ID of requested Anywhere Cache instance.
sourcepub fn resume(
&self,
bucket: &str,
anywhere_cache_id: &str
) -> AnywhereCachResumeCall<'a, S>
pub fn resume( &self, bucket: &str, anywhere_cache_id: &str ) -> AnywhereCachResumeCall<'a, S>
Create a builder to help you perform the following task:
Resumes a paused or disabled Anywhere Cache instance.
§Arguments
bucket
- Name of the parent bucket.anywhereCacheId
- The ID of requested Anywhere Cache instance.
sourcepub fn update(
&self,
request: AnywhereCache,
bucket: &str,
anywhere_cache_id: &str
) -> AnywhereCachUpdateCall<'a, S>
pub fn update( &self, request: AnywhereCache, bucket: &str, anywhere_cache_id: &str ) -> AnywhereCachUpdateCall<'a, S>
Create a builder to help you perform the following task:
Updates the config(ttl and admissionPolicy) of an Anywhere Cache instance.
§Arguments
request
- No description provided.bucket
- Name of the parent bucket.anywhereCacheId
- The ID of requested Anywhere Cache instance.