Class HttpStorageRpc (2.19.0)
Stay organized with collections
Save and categorize content based on your preferences.
public class HttpStorageRpc implements StorageRpc
Static Fields
DEFAULT_PROJECTION
public static final String DEFAULT_PROJECTION
Field Value
NO_ACL_PROJECTION
public static final String NO_ACL_PROJECTION
Field Value
Constructors
HttpStorageRpc(StorageOptions options)
public HttpStorageRpc(StorageOptions options)
Parameter
HttpStorageRpc(StorageOptions options, JsonFactory jsonFactory)
public HttpStorageRpc(StorageOptions options, JsonFactory jsonFactory)
Parameters
Name |
Description |
options |
StorageOptions
|
jsonFactory |
com.google.api.client.json.JsonFactory
|
Methods
compose(Iterable<StorageObject> sources, StorageObject target, Map<StorageRpc.Option,?> targetOptions)
public StorageObject compose(Iterable<StorageObject> sources, StorageObject target, Map<StorageRpc.Option,?> targetOptions)
Parameters
Name |
Description |
sources |
Iterable<com.google.api.services.storage.model.StorageObject>
|
target |
com.google.api.services.storage.model.StorageObject
|
targetOptions |
Map<Option,?>
|
Returns
Type |
Description |
com.google.api.services.storage.model.StorageObject |
|
continueRewrite(StorageRpc.RewriteResponse previousResponse)
public StorageRpc.RewriteResponse continueRewrite(StorageRpc.RewriteResponse previousResponse)
Continues rewriting on an already open rewrite channel.
Parameter
Returns
create(Bucket bucket, Map<StorageRpc.Option,?> options)
public Bucket create(Bucket bucket, Map<StorageRpc.Option,?> options)
Parameters
Name |
Description |
bucket |
com.google.api.services.storage.model.Bucket
|
options |
Map<Option,?>
|
Returns
Type |
Description |
com.google.api.services.storage.model.Bucket |
|
public StorageObject create(StorageObject storageObject, InputStream content, Map<StorageRpc.Option,?> options)
Creates a new storage object.
Parameters
Name |
Description |
storageObject |
com.google.api.services.storage.model.StorageObject
|
content |
InputStream
|
options |
Map<Option,?>
|
Returns
Type |
Description |
com.google.api.services.storage.model.StorageObject |
|
createAcl(BucketAccessControl acl, Map<StorageRpc.Option,?> options)
public BucketAccessControl createAcl(BucketAccessControl acl, Map<StorageRpc.Option,?> options)
Creates a new ACL entry on the specified bucket.
Parameters
Name |
Description |
acl |
com.google.api.services.storage.model.BucketAccessControl
|
options |
Map<Option,?>
|
Returns
Type |
Description |
com.google.api.services.storage.model.BucketAccessControl |
|
createAcl(ObjectAccessControl acl)
public ObjectAccessControl createAcl(ObjectAccessControl acl)
Creates a new ACL entry on the specified object.
Parameter
Name |
Description |
acl |
com.google.api.services.storage.model.ObjectAccessControl
|
Returns
Type |
Description |
com.google.api.services.storage.model.ObjectAccessControl |
|
createBatch()
public RpcBatch createBatch()
Returns
createDefaultAcl(ObjectAccessControl acl)
public ObjectAccessControl createDefaultAcl(ObjectAccessControl acl)
Creates a new default object ACL entry on the specified bucket.
Parameter
Name |
Description |
acl |
com.google.api.services.storage.model.ObjectAccessControl
|
Returns
Type |
Description |
com.google.api.services.storage.model.ObjectAccessControl |
|
createHmacKey(String serviceAccountEmail, Map<StorageRpc.Option,?> options)
public HmacKey createHmacKey(String serviceAccountEmail, Map<StorageRpc.Option,?> options)
Creates a new HMAC key for the provided service account email.
Parameters
Returns
Type |
Description |
com.google.api.services.storage.model.HmacKey |
|
createNotification(String bucket, Notification notification)
public Notification createNotification(String bucket, Notification notification)
Creates the notification for a given bucket.
Parameters
Name |
Description |
bucket |
String
|
notification |
com.google.api.services.storage.model.Notification
|
Returns
Type |
Description |
com.google.api.services.storage.model.Notification |
|
delete(Bucket bucket, Map<StorageRpc.Option,?> options)
public boolean delete(Bucket bucket, Map<StorageRpc.Option,?> options)
Deletes the requested bucket.
Parameters
Name |
Description |
bucket |
com.google.api.services.storage.model.Bucket
|
options |
Map<Option,?>
|
Returns
delete(StorageObject blob, Map<StorageRpc.Option,?> options)
public boolean delete(StorageObject blob, Map<StorageRpc.Option,?> options)
Deletes the requested storage object.
Parameters
Name |
Description |
blob |
com.google.api.services.storage.model.StorageObject
|
options |
Map<Option,?>
|
Returns
deleteAcl(String bucket, String object, Long generation, String entity)
public boolean deleteAcl(String bucket, String object, Long generation, String entity)
Deletes the ACL entry for the specified entity on the specified object.
Parameters
Returns
deleteAcl(String bucket, String entity, Map<StorageRpc.Option,?> options)
public boolean deleteAcl(String bucket, String entity, Map<StorageRpc.Option,?> options)
Deletes the ACL entry for the specified entity on the specified bucket.
Parameters
Returns
deleteDefaultAcl(String bucket, String entity)
public boolean deleteDefaultAcl(String bucket, String entity)
Deletes the default object ACL entry for the specified entity on the specified bucket.
Parameters
Returns