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]

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.

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.

Create a builder to help you perform the following task:

Returns metadata for the specified bucket.

Arguments

  • bucket - Name of a bucket.

Create a builder to help you perform the following task:

Permanently deletes an empty bucket.

Arguments

  • bucket - Name of a bucket.

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.

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.

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.

Create a builder to help you perform the following task:

Returns an IAM policy for the specified bucket.

Arguments

  • bucket - Name of a bucket.

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>