Struct google_storage1::BucketMethods [−][src]
pub struct BucketMethods<'a, C, A> where
C: 'a,
A: 'a, { /* fields omitted */ }
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(...)`, `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]
impl<'a, C, A> BucketMethods<'a, C, A>
pub fn patch(&self, request: Bucket, bucket: &str) -> BucketPatchCall<'a, C, A>
[src]
pub fn patch(&self, request: Bucket, bucket: &str) -> BucketPatchCall<'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. This method supports patch semantics.
Arguments
request
- No description provided.bucket
- Name of a bucket.
pub fn update(
&self,
request: Bucket,
bucket: &str
) -> BucketUpdateCall<'a, C, A>
[src]
pub fn update(
&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]
pub fn get(&self, bucket: &str) -> BucketGetCall<'a, C, A>
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]
pub fn delete(&self, bucket: &str) -> BucketDeleteCall<'a, C, A>
Create a builder to help you perform the following task:
Permanently deletes an empty bucket.
Arguments
bucket
- Name of a bucket.
pub fn insert(
&self,
request: Bucket,
project: &str
) -> BucketInsertCall<'a, C, A>
[src]
pub fn insert(
&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]
pub fn test_iam_permissions(
&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]
pub fn set_iam_policy(
&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]
pub fn get_iam_policy(&self, bucket: &str) -> BucketGetIamPolicyCall<'a, C, A>
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]
pub fn list(&self, project: &str) -> BucketListCall<'a, C, A>
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]
impl<'a, C, A> MethodsBuilder for BucketMethods<'a, C, A>
Auto Trait Implementations
impl<'a, C, A> !Send for BucketMethods<'a, C, A>
impl<'a, C, A> !Send for BucketMethods<'a, C, A>
impl<'a, C, A> !Sync for BucketMethods<'a, C, A>
impl<'a, C, A> !Sync for BucketMethods<'a, C, A>