public class Storage extends 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
.
Upgrade warning: this class now extends AbstractGoogleJsonClient
, whereas in prior
version 1.8 it extended GoogleClient
.
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.ObjectAccessControls
The "objectAccessControls" collection of methods.
|
class |
Storage.Objects
The "objects" collection of methods.
|
Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_BASE_URL
Deprecated.
(scheduled to be removed in 1.13)
|
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 and Description |
---|
Storage(HttpTransport transport,
JsonFactory jsonFactory,
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.
|
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.
|
getJsonFactory, getObjectParser
batch, batch, getApplicationName, getBaseUrl, getGoogleClientRequestInitializer, getRequestFactory, getRootUrl, getServicePath, getSuppressPatternChecks
public static final String DEFAULT_ROOT_URL
public static final String DEFAULT_SERVICE_PATH
@Deprecated public static final String DEFAULT_BASE_URL
public Storage(HttpTransport transport, JsonFactory jsonFactory, HttpRequestInitializer httpRequestInitializer)
Use Storage.Builder
if you need to specify any of the optional parameters.
transport
- HTTP transportjsonFactory
- JSON factoryhttpRequestInitializer
- HTTP request initializer or null
for noneprotected void initialize(AbstractGoogleClientRequest<?> httpClientRequest) throws IOException
initialize
in class AbstractGoogleClient
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.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 ...)