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 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::new(), <MemoryStorage as Default>::default(), None); let mut hub = Storage::new(hyper::Client::new(), auth); // Usually you wouldn't bind this to a variable, but keep calling *CallBuilders* // like `delete(...)`, `get(...)`, `insert(...)`, `list(...)`, `patch(...)` and `update(...)` // to build up your call. let rb = hub.buckets();
Methods
impl<'a, C, A> BucketMethods<'a, C, A>
[src]
fn update(&self, request: Bucket, bucket: &str) -> BucketUpdateCall<'a, C, A>
Create a builder to help you perform the following task:
Updates a bucket.
Arguments
request
- No description provided.bucket
- Name of a bucket.
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.
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.
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.
fn patch(&self, request: Bucket, bucket: &str) -> BucketPatchCall<'a, C, A>
Create a builder to help you perform the following task:
Updates a bucket. This method supports patch semantics.
Arguments
request
- No description provided.bucket
- Name of a bucket.
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.