Cloud Storage API v1beta2 (revision 2)



com.google.api.services.storage
Class Storage

java.lang.Object
  extended by com.google.api.client.googleapis.services.AbstractGoogleClient
      extended by com.google.api.client.googleapis.services.json.AbstractGoogleJsonClient
          extended by com.google.api.services.storage.Storage

public class Storage
extends AbstractGoogleJsonClient

Service definition for Storage (v1beta2).

Lets you store and retrieve potentially-large, immutable data objects.

For more information about this service, see the API Documentation

This service uses StorageRequestInitializer to initialize global parameters via its Storage.Builder.

Since:
1.3
Author:
Google, Inc.

Nested Class Summary
 class Storage.BucketAccessControls
          The "bucketAccessControls" collection of methods.
 class Storage.Buckets
          The "buckets" collection of methods.
static class Storage.Builder
          Builder for Storage.
 class Storage.Channels
          The "channels" collection of methods.
 class Storage.DefaultObjectAccessControls
          The "defaultObjectAccessControls" collection of methods.
 class Storage.ObjectAccessControls
          The "objectAccessControls" collection of methods.
 class Storage.Objects
          The "objects" collection of methods.
 
Field Summary
static String DEFAULT_BASE_URL
          The default encoded base URL of the service.
static String DEFAULT_ROOT_URL
          The default encoded root URL of the service.
static String DEFAULT_SERVICE_PATH
          The default encoded service path of the service.
 
Constructor Summary
Storage(HttpTransport transport, JsonFactory jsonFactory, HttpRequestInitializer httpRequestInitializer)
          Constructor.
 
Method Summary
 Storage.BucketAccessControls bucketAccessControls()
          An accessor for creating requests from the BucketAccessControls collection.
 Storage.Buckets buckets()
          An accessor for creating requests from the Buckets collection.
 Storage.Channels channels()
          An accessor for creating requests from the Channels collection.
 Storage.DefaultObjectAccessControls defaultObjectAccessControls()
          An accessor for creating requests from the DefaultObjectAccessControls collection.
protected  void initialize(AbstractGoogleClientRequest<?> httpClientRequest)
           
 Storage.ObjectAccessControls objectAccessControls()
          An accessor for creating requests from the ObjectAccessControls collection.
 Storage.Objects objects()
          An accessor for creating requests from the Objects collection.
 
Methods inherited from class com.google.api.client.googleapis.services.json.AbstractGoogleJsonClient
getJsonFactory, getObjectParser
 
Methods inherited from class com.google.api.client.googleapis.services.AbstractGoogleClient
batch, batch, getApplicationName, getBaseUrl, getGoogleClientRequestInitializer, getRequestFactory, getRootUrl, getServicePath, getSuppressPatternChecks, getSuppressRequiredParameterChecks
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_ROOT_URL

public static final String DEFAULT_ROOT_URL
The default encoded root URL of the service. This is determined when the library is generated and normally should not be changed.

Since:
1.7
See Also:
Constant Field Values

DEFAULT_SERVICE_PATH

public static final String DEFAULT_SERVICE_PATH
The default encoded service path of the service. This is determined when the library is generated and normally should not be changed.

Since:
1.7
See Also:
Constant Field Values

DEFAULT_BASE_URL

public static final String DEFAULT_BASE_URL
The default encoded base URL of the service. This is determined when the library is generated and normally should not be changed.

See Also:
Constant Field Values
Constructor Detail

Storage

public Storage(HttpTransport transport,
               JsonFactory jsonFactory,
               HttpRequestInitializer httpRequestInitializer)
Constructor.

Use Storage.Builder if you need to specify any of the optional parameters.

Parameters:
transport - HTTP transport, which should normally be:
  • Google App Engine: com.google.api.client.extensions.appengine.http.UrlFetchTransport
  • Android: newCompatibleTransport from com.google.api.client.extensions.android.http.AndroidHttp
  • Java: GoogleNetHttpTransport
jsonFactory - JSON factory, which may be:
  • Jackson: com.google.api.client.json.jackson2.JacksonFactory
  • Google GSON: com.google.api.client.json.gson.GsonFactory
  • Android Honeycomb or higher: com.google.api.client.extensions.android.json.AndroidJsonFactory
httpRequestInitializer - HTTP request initializer or null for none
Since:
1.7
Method Detail

initialize

protected void initialize(AbstractGoogleClientRequest<?> httpClientRequest)
                   throws IOException
Overrides:
initialize in class AbstractGoogleClient
Throws:
IOException

bucketAccessControls

public Storage.BucketAccessControls bucketAccessControls()
An accessor for creating requests from the BucketAccessControls collection.

The typical use is:

   Storage storage = new Storage(...);
   Storage.BucketAccessControls.List request = storage.bucketAccessControls().list(parameters ...)
 

Returns:
the resource collection

buckets

public Storage.Buckets buckets()
An accessor for creating requests from the Buckets collection.

The typical use is:

   Storage storage = new Storage(...);
   Storage.Buckets.List request = storage.buckets().list(parameters ...)
 

Returns:
the resource collection

channels

public Storage.Channels channels()
An accessor for creating requests from the Channels collection.

The typical use is:

   Storage storage = new Storage(...);
   Storage.Channels.List request = storage.channels().list(parameters ...)
 

Returns:
the resource collection

defaultObjectAccessControls

public Storage.DefaultObjectAccessControls defaultObjectAccessControls()
An accessor for creating requests from the DefaultObjectAccessControls collection.

The typical use is:

   Storage storage = new Storage(...);
   Storage.DefaultObjectAccessControls.List request = storage.defaultObjectAccessControls().list(parameters ...)
 

Returns:
the resource collection

objectAccessControls

public Storage.ObjectAccessControls objectAccessControls()
An accessor for creating requests from the ObjectAccessControls collection.

The typical use is:

   Storage storage = new Storage(...);
   Storage.ObjectAccessControls.List request = storage.objectAccessControls().list(parameters ...)
 

Returns:
the resource collection

objects

public Storage.Objects objects()
An accessor for creating requests from the Objects collection.

The typical use is:

   Storage storage = new Storage(...);
   Storage.Objects.List request = storage.objects().list(parameters ...)
 

Returns:
the resource collection