Cloud Storage API v1beta2 (revision 2)



com.google.api.services.storage
Class Storage.Buckets

java.lang.Object
  extended by com.google.api.services.storage.Storage.Buckets
Enclosing class:
Storage

public class Storage.Buckets
extends Object

The "buckets" collection of methods.


Nested Class Summary
 class Storage.Buckets.Delete
           
 class Storage.Buckets.Get
           
 class Storage.Buckets.Insert
           
 class Storage.Buckets.List
           
 class Storage.Buckets.Patch
           
 class Storage.Buckets.Update
           
 
Constructor Summary
Storage.Buckets()
           
 
Method Summary
 Storage.Buckets.Delete delete(String bucket)
          Permanently deletes an empty bucket.
 Storage.Buckets.Get get(String bucket)
          Returns metadata for the specified bucket.
 Storage.Buckets.Insert insert(String project, Bucket content)
          Creates a new bucket.
 Storage.Buckets.List list(String project)
          Retrieves a list of buckets for a given project.
 Storage.Buckets.Patch patch(String bucket, Bucket content)
          Updates a bucket.
 Storage.Buckets.Update update(String bucket, Bucket content)
          Updates a bucket.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Storage.Buckets

public Storage.Buckets()
Method Detail

delete

public Storage.Buckets.Delete delete(String bucket)
                              throws IOException
Permanently deletes an empty bucket. Create a request for the method "buckets.delete". This request holds the parameters needed by the the storage server. After setting any optional parameters, call the AbstractGoogleClientRequest.execute() method to invoke the remote operation.

Parameters:
bucket - Name of a bucket.
Returns:
the request
Throws:
IOException

get

public Storage.Buckets.Get get(String bucket)
                        throws IOException
Returns metadata for the specified bucket. Create a request for the method "buckets.get". This request holds the parameters needed by the the storage server. After setting any optional parameters, call the AbstractGoogleClientRequest.execute() method to invoke the remote operation.

Parameters:
bucket - Name of a bucket.
Returns:
the request
Throws:
IOException

insert

public Storage.Buckets.Insert insert(String project,
                                     Bucket content)
                              throws IOException
Creates a new bucket. Create a request for the method "buckets.insert". This request holds the parameters needed by the the storage server. After setting any optional parameters, call the AbstractGoogleClientRequest.execute() method to invoke the remote operation.

Parameters:
project - A valid API project identifier.
content - the Bucket
Returns:
the request
Throws:
IOException

list

public Storage.Buckets.List list(String project)
                          throws IOException
Retrieves a list of buckets for a given project. Create a request for the method "buckets.list". This request holds the parameters needed by the the storage server. After setting any optional parameters, call the AbstractGoogleClientRequest.execute() method to invoke the remote operation.

Parameters:
project - A valid API project identifier.
Returns:
the request
Throws:
IOException

patch

public Storage.Buckets.Patch patch(String bucket,
                                   Bucket content)
                            throws IOException
Updates a bucket. This method supports patch semantics. Create a request for the method "buckets.patch". This request holds the parameters needed by the the storage server. After setting any optional parameters, call the AbstractGoogleClientRequest.execute() method to invoke the remote operation.

Parameters:
bucket - Name of a bucket.
content - the Bucket
Returns:
the request
Throws:
IOException

update

public Storage.Buckets.Update update(String bucket,
                                     Bucket content)
                              throws IOException
Updates a bucket. Create a request for the method "buckets.update". This request holds the parameters needed by the the storage server. After setting any optional parameters, call the AbstractGoogleClientRequest.execute() method to invoke the remote operation.

Parameters:
bucket - Name of a bucket.
content - the Bucket
Returns:
the request
Throws:
IOException