Package | Description |
---|---|
com.google.cloud.storage.spi.v1 | |
com.google.cloud.storage.testing |
A testing helper for Google Cloud Storage.
|
Modifier and Type | Field and Description |
---|---|
Map<StorageRpc.Option,?> |
StorageRpc.RewriteRequest.sourceOptions |
Map<StorageRpc.Option,?> |
StorageRpc.RewriteRequest.targetOptions |
Modifier and Type | Method and Description |
---|---|
static StorageRpc.Option |
StorageRpc.Option.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static StorageRpc.Option[] |
StorageRpc.Option.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
Modifier and Type | Method and Description |
---|---|
void |
RpcBatch.addDelete(com.google.api.services.storage.model.StorageObject storageObject,
RpcBatch.Callback<Void> callback,
Map<StorageRpc.Option,?> options)
Adds a call to "delete storage object" to the batch, with the provided
callback and
options . |
void |
RpcBatch.addGet(com.google.api.services.storage.model.StorageObject storageObject,
RpcBatch.Callback<com.google.api.services.storage.model.StorageObject> callback,
Map<StorageRpc.Option,?> options)
Adds a call to "get storage object" to the batch, with the provided
callback and options . |
void |
RpcBatch.addPatch(com.google.api.services.storage.model.StorageObject storageObject,
RpcBatch.Callback<com.google.api.services.storage.model.StorageObject> callback,
Map<StorageRpc.Option,?> options)
Adds a call to "patch storage object" to the batch, with the provided
callback and
options . |
com.google.api.services.storage.model.StorageObject |
HttpStorageRpc.compose(Iterable<com.google.api.services.storage.model.StorageObject> sources,
com.google.api.services.storage.model.StorageObject target,
Map<StorageRpc.Option,?> targetOptions) |
com.google.api.services.storage.model.StorageObject |
StorageRpc.compose(Iterable<com.google.api.services.storage.model.StorageObject> sources,
com.google.api.services.storage.model.StorageObject target,
Map<StorageRpc.Option,?> targetOptions)
Sends a compose request.
|
com.google.api.services.storage.model.Bucket |
HttpStorageRpc.create(com.google.api.services.storage.model.Bucket bucket,
Map<StorageRpc.Option,?> options) |
com.google.api.services.storage.model.Bucket |
StorageRpc.create(com.google.api.services.storage.model.Bucket bucket,
Map<StorageRpc.Option,?> options)
Creates a new bucket.
|
com.google.api.services.storage.model.StorageObject |
HttpStorageRpc.create(com.google.api.services.storage.model.StorageObject storageObject,
InputStream content,
Map<StorageRpc.Option,?> options) |
com.google.api.services.storage.model.StorageObject |
StorageRpc.create(com.google.api.services.storage.model.StorageObject object,
InputStream content,
Map<StorageRpc.Option,?> options)
Creates a new storage object.
|
com.google.api.services.storage.model.BucketAccessControl |
HttpStorageRpc.createAcl(com.google.api.services.storage.model.BucketAccessControl acl,
Map<StorageRpc.Option,?> options) |
com.google.api.services.storage.model.BucketAccessControl |
StorageRpc.createAcl(com.google.api.services.storage.model.BucketAccessControl acl,
Map<StorageRpc.Option,?> options)
Creates a new ACL entry on the specified bucket.
|
com.google.api.services.storage.model.HmacKey |
HttpStorageRpc.createHmacKey(String serviceAccountEmail,
Map<StorageRpc.Option,?> options) |
com.google.api.services.storage.model.HmacKey |
StorageRpc.createHmacKey(String serviceAccountEmail,
Map<StorageRpc.Option,?> options)
Creates a new HMAC key for the provided service account email.
|
boolean |
HttpStorageRpc.delete(com.google.api.services.storage.model.Bucket bucket,
Map<StorageRpc.Option,?> options) |
boolean |
StorageRpc.delete(com.google.api.services.storage.model.Bucket bucket,
Map<StorageRpc.Option,?> options)
Deletes the requested bucket.
|
boolean |
HttpStorageRpc.delete(com.google.api.services.storage.model.StorageObject blob,
Map<StorageRpc.Option,?> options) |
boolean |
StorageRpc.delete(com.google.api.services.storage.model.StorageObject object,
Map<StorageRpc.Option,?> options)
Deletes the requested storage object.
|
boolean |
HttpStorageRpc.deleteAcl(String bucket,
String entity,
Map<StorageRpc.Option,?> options) |
boolean |
StorageRpc.deleteAcl(String bucket,
String entity,
Map<StorageRpc.Option,?> options)
Deletes the ACL entry for the specified entity on the specified bucket.
|
void |
HttpStorageRpc.deleteHmacKey(com.google.api.services.storage.model.HmacKeyMetadata hmacKeyMetadata,
Map<StorageRpc.Option,?> options) |
void |
StorageRpc.deleteHmacKey(com.google.api.services.storage.model.HmacKeyMetadata hmacKeyMetadata,
Map<StorageRpc.Option,?> options)
Deletes the HMAC key associated with the provided metadata object.
|
com.google.api.services.storage.model.Bucket |
HttpStorageRpc.get(com.google.api.services.storage.model.Bucket bucket,
Map<StorageRpc.Option,?> options) |
com.google.api.services.storage.model.Bucket |
StorageRpc.get(com.google.api.services.storage.model.Bucket bucket,
Map<StorageRpc.Option,?> options)
Returns the requested bucket or
null if not found. |
com.google.api.services.storage.model.StorageObject |
HttpStorageRpc.get(com.google.api.services.storage.model.StorageObject object,
Map<StorageRpc.Option,?> options) |
com.google.api.services.storage.model.StorageObject |
StorageRpc.get(com.google.api.services.storage.model.StorageObject object,
Map<StorageRpc.Option,?> options)
Returns the requested storage object or
null if not found. |
com.google.api.services.storage.model.BucketAccessControl |
HttpStorageRpc.getAcl(String bucket,
String entity,
Map<StorageRpc.Option,?> options) |
com.google.api.services.storage.model.BucketAccessControl |
StorageRpc.getAcl(String bucket,
String entity,
Map<StorageRpc.Option,?> options)
Returns the ACL entry for the specified entity on the specified bucket or
null if not
found. |
com.google.api.services.storage.model.HmacKeyMetadata |
HttpStorageRpc.getHmacKey(String accessId,
Map<StorageRpc.Option,?> options) |
com.google.api.services.storage.model.HmacKeyMetadata |
StorageRpc.getHmacKey(String accessId,
Map<StorageRpc.Option,?> options)
Returns the HMAC key associated with the provided access id.
|
com.google.api.services.storage.model.Policy |
HttpStorageRpc.getIamPolicy(String bucket,
Map<StorageRpc.Option,?> options) |
com.google.api.services.storage.model.Policy |
StorageRpc.getIamPolicy(String bucket,
Map<StorageRpc.Option,?> options)
Returns the IAM policy for the specified bucket.
|
com.google.cloud.Tuple<String,Iterable<com.google.api.services.storage.model.Bucket>> |
HttpStorageRpc.list(Map<StorageRpc.Option,?> options) |
com.google.cloud.Tuple<String,Iterable<com.google.api.services.storage.model.Bucket>> |
StorageRpc.list(Map<StorageRpc.Option,?> options)
Lists the project's buckets.
|
com.google.cloud.Tuple<String,Iterable<com.google.api.services.storage.model.StorageObject>> |
HttpStorageRpc.list(String bucket,
Map<StorageRpc.Option,?> options) |
com.google.cloud.Tuple<String,Iterable<com.google.api.services.storage.model.StorageObject>> |
StorageRpc.list(String bucket,
Map<StorageRpc.Option,?> options)
Lists the bucket's blobs.
|
List<com.google.api.services.storage.model.BucketAccessControl> |
HttpStorageRpc.listAcls(String bucket,
Map<StorageRpc.Option,?> options) |
List<com.google.api.services.storage.model.BucketAccessControl> |
StorageRpc.listAcls(String bucket,
Map<StorageRpc.Option,?> options)
Lists the ACL entries for the provided bucket.
|
com.google.cloud.Tuple<String,Iterable<com.google.api.services.storage.model.HmacKeyMetadata>> |
HttpStorageRpc.listHmacKeys(Map<StorageRpc.Option,?> options) |
com.google.cloud.Tuple<String,Iterable<com.google.api.services.storage.model.HmacKeyMetadata>> |
StorageRpc.listHmacKeys(Map<StorageRpc.Option,?> options)
Lists the HMAC keys for the provided service account email.
|
byte[] |
HttpStorageRpc.load(com.google.api.services.storage.model.StorageObject from,
Map<StorageRpc.Option,?> options) |
byte[] |
StorageRpc.load(com.google.api.services.storage.model.StorageObject storageObject,
Map<StorageRpc.Option,?> options)
Reads all the bytes from a storage object.
|
com.google.api.services.storage.model.Bucket |
HttpStorageRpc.lockRetentionPolicy(com.google.api.services.storage.model.Bucket bucket,
Map<StorageRpc.Option,?> options) |
com.google.api.services.storage.model.Bucket |
StorageRpc.lockRetentionPolicy(com.google.api.services.storage.model.Bucket bucket,
Map<StorageRpc.Option,?> options)
Lock retention policy for the provided bucket.
|
String |
HttpStorageRpc.open(com.google.api.services.storage.model.StorageObject object,
Map<StorageRpc.Option,?> options) |
String |
StorageRpc.open(com.google.api.services.storage.model.StorageObject object,
Map<StorageRpc.Option,?> options)
Opens a resumable upload channel for a given storage object.
|
com.google.api.services.storage.model.Bucket |
HttpStorageRpc.patch(com.google.api.services.storage.model.Bucket bucket,
Map<StorageRpc.Option,?> options) |
com.google.api.services.storage.model.Bucket |
StorageRpc.patch(com.google.api.services.storage.model.Bucket bucket,
Map<StorageRpc.Option,?> options)
Updates bucket information.
|
com.google.api.services.storage.model.StorageObject |
HttpStorageRpc.patch(com.google.api.services.storage.model.StorageObject storageObject,
Map<StorageRpc.Option,?> options) |
com.google.api.services.storage.model.StorageObject |
StorageRpc.patch(com.google.api.services.storage.model.StorageObject storageObject,
Map<StorageRpc.Option,?> options)
Updates the storage object's information.
|
com.google.api.services.storage.model.BucketAccessControl |
HttpStorageRpc.patchAcl(com.google.api.services.storage.model.BucketAccessControl acl,
Map<StorageRpc.Option,?> options) |
com.google.api.services.storage.model.BucketAccessControl |
StorageRpc.patchAcl(com.google.api.services.storage.model.BucketAccessControl acl,
Map<StorageRpc.Option,?> options)
Updates an ACL entry on the specified bucket.
|
com.google.cloud.Tuple<String,byte[]> |
HttpStorageRpc.read(com.google.api.services.storage.model.StorageObject from,
Map<StorageRpc.Option,?> options,
long position,
int bytes) |
com.google.cloud.Tuple<String,byte[]> |
StorageRpc.read(com.google.api.services.storage.model.StorageObject from,
Map<StorageRpc.Option,?> options,
long position,
int bytes)
Reads the given amount of bytes from a storage object at the given position.
|
long |
HttpStorageRpc.read(com.google.api.services.storage.model.StorageObject from,
Map<StorageRpc.Option,?> options,
long position,
OutputStream outputStream) |
long |
StorageRpc.read(com.google.api.services.storage.model.StorageObject from,
Map<StorageRpc.Option,?> options,
long position,
OutputStream outputStream)
Reads all the bytes from a storage object at the given position in to outputstream using direct
download.
|
com.google.api.services.storage.model.Policy |
HttpStorageRpc.setIamPolicy(String bucket,
com.google.api.services.storage.model.Policy policy,
Map<StorageRpc.Option,?> options) |
com.google.api.services.storage.model.Policy |
StorageRpc.setIamPolicy(String bucket,
com.google.api.services.storage.model.Policy policy,
Map<StorageRpc.Option,?> options)
Updates the IAM policy for the specified bucket.
|
com.google.api.services.storage.model.TestIamPermissionsResponse |
HttpStorageRpc.testIamPermissions(String bucket,
List<String> permissions,
Map<StorageRpc.Option,?> options) |
com.google.api.services.storage.model.TestIamPermissionsResponse |
StorageRpc.testIamPermissions(String bucket,
List<String> permissions,
Map<StorageRpc.Option,?> options)
Tests whether the caller holds the specified permissions for the specified bucket.
|
com.google.api.services.storage.model.HmacKeyMetadata |
HttpStorageRpc.updateHmacKey(com.google.api.services.storage.model.HmacKeyMetadata hmacKeyMetadata,
Map<StorageRpc.Option,?> options) |
com.google.api.services.storage.model.HmacKeyMetadata |
StorageRpc.updateHmacKey(com.google.api.services.storage.model.HmacKeyMetadata hmacKeyMetadata,
Map<StorageRpc.Option,?> options)
Updates an HMAC key for the provided metadata object and returns the updated object.
|
Constructor and Description |
---|
RewriteRequest(com.google.api.services.storage.model.StorageObject source,
Map<StorageRpc.Option,?> sourceOptions,
boolean overrideInfo,
com.google.api.services.storage.model.StorageObject target,
Map<StorageRpc.Option,?> targetOptions,
Long megabytesRewrittenPerCall) |
RewriteRequest(com.google.api.services.storage.model.StorageObject source,
Map<StorageRpc.Option,?> sourceOptions,
boolean overrideInfo,
com.google.api.services.storage.model.StorageObject target,
Map<StorageRpc.Option,?> targetOptions,
Long megabytesRewrittenPerCall) |
Modifier and Type | Method and Description |
---|---|
com.google.api.services.storage.model.StorageObject |
StorageRpcTestBase.compose(Iterable<com.google.api.services.storage.model.StorageObject> sources,
com.google.api.services.storage.model.StorageObject target,
Map<StorageRpc.Option,?> targetOptions) |
com.google.api.services.storage.model.Bucket |
StorageRpcTestBase.create(com.google.api.services.storage.model.Bucket bucket,
Map<StorageRpc.Option,?> options) |
com.google.api.services.storage.model.StorageObject |
StorageRpcTestBase.create(com.google.api.services.storage.model.StorageObject object,
InputStream content,
Map<StorageRpc.Option,?> options) |
com.google.api.services.storage.model.BucketAccessControl |
StorageRpcTestBase.createAcl(com.google.api.services.storage.model.BucketAccessControl acl,
Map<StorageRpc.Option,?> options) |
com.google.api.services.storage.model.HmacKey |
StorageRpcTestBase.createHmacKey(String serviceAccountEmail,
Map<StorageRpc.Option,?> options) |
boolean |
StorageRpcTestBase.delete(com.google.api.services.storage.model.Bucket bucket,
Map<StorageRpc.Option,?> options) |
boolean |
StorageRpcTestBase.delete(com.google.api.services.storage.model.StorageObject object,
Map<StorageRpc.Option,?> options) |
boolean |
StorageRpcTestBase.deleteAcl(String bucket,
String entity,
Map<StorageRpc.Option,?> options) |
void |
StorageRpcTestBase.deleteHmacKey(com.google.api.services.storage.model.HmacKeyMetadata hmacKeyMetadata,
Map<StorageRpc.Option,?> options) |
com.google.api.services.storage.model.Bucket |
StorageRpcTestBase.get(com.google.api.services.storage.model.Bucket bucket,
Map<StorageRpc.Option,?> options) |
com.google.api.services.storage.model.StorageObject |
StorageRpcTestBase.get(com.google.api.services.storage.model.StorageObject object,
Map<StorageRpc.Option,?> options) |
com.google.api.services.storage.model.BucketAccessControl |
StorageRpcTestBase.getAcl(String bucket,
String entity,
Map<StorageRpc.Option,?> options) |
com.google.api.services.storage.model.HmacKeyMetadata |
StorageRpcTestBase.getHmacKey(String accessId,
Map<StorageRpc.Option,?> options) |
com.google.api.services.storage.model.Policy |
StorageRpcTestBase.getIamPolicy(String bucket,
Map<StorageRpc.Option,?> options) |
com.google.cloud.Tuple<String,Iterable<com.google.api.services.storage.model.Bucket>> |
StorageRpcTestBase.list(Map<StorageRpc.Option,?> options) |
com.google.cloud.Tuple<String,Iterable<com.google.api.services.storage.model.StorageObject>> |
StorageRpcTestBase.list(String bucket,
Map<StorageRpc.Option,?> options) |
List<com.google.api.services.storage.model.BucketAccessControl> |
StorageRpcTestBase.listAcls(String bucket,
Map<StorageRpc.Option,?> options) |
com.google.cloud.Tuple<String,Iterable<com.google.api.services.storage.model.HmacKeyMetadata>> |
StorageRpcTestBase.listHmacKeys(Map<StorageRpc.Option,?> options) |
byte[] |
StorageRpcTestBase.load(com.google.api.services.storage.model.StorageObject storageObject,
Map<StorageRpc.Option,?> options) |
com.google.api.services.storage.model.Bucket |
StorageRpcTestBase.lockRetentionPolicy(com.google.api.services.storage.model.Bucket bucket,
Map<StorageRpc.Option,?> options) |
String |
StorageRpcTestBase.open(com.google.api.services.storage.model.StorageObject object,
Map<StorageRpc.Option,?> options) |
com.google.api.services.storage.model.Bucket |
StorageRpcTestBase.patch(com.google.api.services.storage.model.Bucket bucket,
Map<StorageRpc.Option,?> options) |
com.google.api.services.storage.model.StorageObject |
StorageRpcTestBase.patch(com.google.api.services.storage.model.StorageObject storageObject,
Map<StorageRpc.Option,?> options) |
com.google.api.services.storage.model.BucketAccessControl |
StorageRpcTestBase.patchAcl(com.google.api.services.storage.model.BucketAccessControl acl,
Map<StorageRpc.Option,?> options) |
com.google.cloud.Tuple<String,byte[]> |
StorageRpcTestBase.read(com.google.api.services.storage.model.StorageObject from,
Map<StorageRpc.Option,?> options,
long position,
int bytes) |
long |
StorageRpcTestBase.read(com.google.api.services.storage.model.StorageObject from,
Map<StorageRpc.Option,?> options,
long position,
OutputStream outputStream) |
com.google.api.services.storage.model.Policy |
StorageRpcTestBase.setIamPolicy(String bucket,
com.google.api.services.storage.model.Policy policy,
Map<StorageRpc.Option,?> options) |
com.google.api.services.storage.model.TestIamPermissionsResponse |
StorageRpcTestBase.testIamPermissions(String bucket,
List<String> permissions,
Map<StorageRpc.Option,?> options) |
com.google.api.services.storage.model.HmacKeyMetadata |
StorageRpcTestBase.updateHmacKey(com.google.api.services.storage.model.HmacKeyMetadata hmacKeyMetadata,
Map<StorageRpc.Option,?> options) |
Copyright © 2023 Google LLC. All rights reserved.