public class Storage
extends com.google.api.client.googleapis.services.json.AbstractGoogleJsonClient
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
.
Modifier and Type | Class and Description |
---|---|
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.
|
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
DEFAULT_BASE_URL
The default encoded base URL of the service.
|
static java.lang.String |
DEFAULT_ROOT_URL
The default encoded root URL of the service.
|
static java.lang.String |
DEFAULT_SERVICE_PATH
The default encoded service path of the service.
|
Constructor and Description |
---|
Storage(com.google.api.client.http.HttpTransport transport,
com.google.api.client.json.JsonFactory jsonFactory,
com.google.api.client.http.HttpRequestInitializer httpRequestInitializer)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
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(com.google.api.client.googleapis.services.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.
|
getJsonFactory, getObjectParser
public static final java.lang.String DEFAULT_ROOT_URL
public static final java.lang.String DEFAULT_SERVICE_PATH
public static final java.lang.String DEFAULT_BASE_URL
public Storage(com.google.api.client.http.HttpTransport transport, com.google.api.client.json.JsonFactory jsonFactory, com.google.api.client.http.HttpRequestInitializer httpRequestInitializer)
Use Storage.Builder
if you need to specify any of the optional parameters.
transport
- HTTP transport, which should normally be:
com.google.api.client.extensions.appengine.http.UrlFetchTransport
newCompatibleTransport
from
com.google.api.client.extensions.android.http.AndroidHttp
com.google.api.client.googleapis.javanet.GoogleNetHttpTransport#newTrustedTransport()
jsonFactory
- JSON factory, which may be:
com.google.api.client.json.jackson2.JacksonFactory
com.google.api.client.json.gson.GsonFactory
com.google.api.client.extensions.android.json.AndroidJsonFactory
httpRequestInitializer
- HTTP request initializer or null
for noneprotected void initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest<?> httpClientRequest) throws java.io.IOException
initialize
in class com.google.api.client.googleapis.services.AbstractGoogleClient
java.io.IOException
public Storage.BucketAccessControls bucketAccessControls()
The typical use is:
Storage storage = new Storage(...);
Storage.BucketAccessControls.List request = storage.bucketAccessControls().list(parameters ...)
public Storage.Buckets buckets()
The typical use is:
Storage storage = new Storage(...);
Storage.Buckets.List request = storage.buckets().list(parameters ...)
public Storage.Channels channels()
The typical use is:
Storage storage = new Storage(...);
Storage.Channels.List request = storage.channels().list(parameters ...)
public Storage.DefaultObjectAccessControls defaultObjectAccessControls()
The typical use is:
Storage storage = new Storage(...);
Storage.DefaultObjectAccessControls.List request = storage.defaultObjectAccessControls().list(parameters ...)
public Storage.ObjectAccessControls objectAccessControls()
The typical use is:
Storage storage = new Storage(...);
Storage.ObjectAccessControls.List request = storage.objectAccessControls().list(parameters ...)
public Storage.Objects objects()
The typical use is:
Storage storage = new Storage(...);
Storage.Objects.List request = storage.objects().list(parameters ...)