[−][src]Struct google_storage1::BucketMethods
A builder providing access to all methods supported on bucket 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 yup_oauth2 as oauth2; extern crate google_storage1 as storage1; use std::default::Default; use oauth2::{Authenticator, DefaultAuthenticatorDelegate, ApplicationSecret, MemoryStorage}; use storage1::Storage; 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 = Storage::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 `delete(...)`, `get(...)`, `get_iam_policy(...)`, `insert(...)`, `list(...)`, `lock_retention_policy(...)`, `patch(...)`, `set_iam_policy(...)`, `test_iam_permissions(...)` and `update(...)` // to build up your call. let rb = hub.buckets();
Methods
impl<'a, C, A> BucketMethods<'a, C, A>
[src]
pub fn patch(&self, request: Bucket, bucket: &str) -> BucketPatchCall<'a, C, A>
[src]
Create a builder to help you perform the following task:
Patches a bucket. Changes to the bucket will be readable immediately after writing, but configuration changes may take time to propagate.
Arguments
request
- No description provided.bucket
- Name of a bucket.
pub fn update(
&self,
request: Bucket,
bucket: &str
) -> BucketUpdateCall<'a, C, A>
[src]
&self,
request: Bucket,
bucket: &str
) -> BucketUpdateCall<'a, C, A>
Create a builder to help you perform the following task:
Updates a bucket. Changes to the bucket will be readable immediately after writing, but configuration changes may take time to propagate.
Arguments
request
- No description provided.bucket
- Name of a bucket.
pub fn get(&self, bucket: &str) -> BucketGetCall<'a, C, A>
[src]
Create a builder to help you perform the following task:
Returns metadata for the specified bucket.
Arguments
bucket
- Name of a bucket.
pub fn delete(&self, bucket: &str) -> BucketDeleteCall<'a, C, A>
[src]
Create a builder to help you perform the following task:
Permanently deletes an empty bucket.
Arguments
bucket
- Name of a bucket.
pub fn lock_retention_policy(
&self,
bucket: &str,
if_metageneration_match: &str
) -> BucketLockRetentionPolicyCall<'a, C, A>
[src]
&self,
bucket: &str,
if_metageneration_match: &str
) -> BucketLockRetentionPolicyCall<'a, C, A>
Create a builder to help you perform the following task:
Locks retention policy on a bucket.
Arguments
bucket
- Name of a bucket.ifMetagenerationMatch
- Makes the operation conditional on whether bucket's current metageneration matches the given value.
pub fn insert(
&self,
request: Bucket,
project: &str
) -> BucketInsertCall<'a, C, A>
[src]
&self,
request: Bucket,
project: &str
) -> BucketInsertCall<'a, C, A>
Create a builder to help you perform the following task:
Creates a new bucket.
Arguments
request
- No description provided.project
- A valid API project identifier.
pub fn test_iam_permissions(
&self,
bucket: &str,
permissions: &Vec<String>
) -> BucketTestIamPermissionCall<'a, C, A>
[src]
&self,
bucket: &str,
permissions: &Vec<String>
) -> BucketTestIamPermissionCall<'a, C, A>
Create a builder to help you perform the following task:
Tests a set of permissions on the given bucket to see which, if any, are held by the caller.
Arguments
bucket
- Name of a bucket.permissions
- Permissions to test.
pub fn set_iam_policy(
&self,
request: Policy,
bucket: &str
) -> BucketSetIamPolicyCall<'a, C, A>
[src]
&self,
request: Policy,
bucket: &str
) -> BucketSetIamPolicyCall<'a, C, A>
Create a builder to help you perform the following task:
Updates an IAM policy for the specified bucket.
Arguments
request
- No description provided.bucket
- Name of a bucket.
pub fn get_iam_policy(&self, bucket: &str) -> BucketGetIamPolicyCall<'a, C, A>
[src]
Create a builder to help you perform the following task:
Returns an IAM policy for the specified bucket.
Arguments
bucket
- Name of a bucket.
pub fn list(&self, project: &str) -> BucketListCall<'a, C, A>
[src]
Create a builder to help you perform the following task:
Retrieves a list of buckets for a given project.
Arguments
project
- A valid API project identifier.
Trait Implementations
impl<'a, C, A> MethodsBuilder for BucketMethods<'a, C, A>
[src]
Auto Trait Implementations
impl<'a, C, A> !Send for BucketMethods<'a, C, A>
impl<'a, C, A> !Sync for BucketMethods<'a, C, A>
impl<'a, C, A> Unpin for BucketMethods<'a, C, A>
impl<'a, C, A> !UnwindSafe for BucketMethods<'a, C, A>
impl<'a, C, A> !RefUnwindSafe for BucketMethods<'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 = !
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> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Typeable for T where
T: Any,
T: Any,