Package | Description |
---|---|
com.google.cloud.storage |
A client for Cloud Storage - Unified object storage.
|
Modifier and Type | Method and Description |
---|---|
BlobId |
BlobInfo.getBlobId()
Returns the blob's identity.
|
BlobId |
Storage.CopyRequest.getSource()
Returns the blob to copy, as a
BlobId . |
static BlobId |
BlobId.of(String bucket,
String name)
Creates a blob identifier.
|
static BlobId |
BlobId.of(String bucket,
String name,
Long generation)
Creates a
BlobId object. |
Modifier and Type | Method and Description |
---|---|
CopyWriter |
Blob.copyTo(BlobId targetBlob,
Blob.BlobSourceOption... options)
Sends a copy request for the current blob to the target blob.
|
Acl |
Storage.createAcl(BlobId blob,
Acl acl)
Creates a new ACL entry on the specified blob.
|
List<Boolean> |
Storage.delete(BlobId... blobIds)
Deletes the requested blobs.
|
boolean |
Storage.delete(BlobId blob)
Deletes the requested blob.
|
StorageBatchResult<Boolean> |
StorageBatch.delete(BlobId blob,
Storage.BlobSourceOption... options)
Adds a request representing the "delete blob" operation to this batch.
|
boolean |
Storage.delete(BlobId blob,
Storage.BlobSourceOption... options)
Deletes the requested blob.
|
boolean |
Storage.deleteAcl(BlobId blob,
Acl.Entity entity)
Deletes the ACL entry for the specified entity on the specified blob.
|
List<Blob> |
Storage.get(BlobId... blobIds)
Gets the requested blobs.
|
Blob |
Storage.get(BlobId blob)
Returns the requested blob or
null if not found. |
StorageBatchResult<Blob> |
StorageBatch.get(BlobId blob,
Storage.BlobGetOption... options)
Adds a request representing the "get blob" operation to this batch.
|
Blob |
Storage.get(BlobId blob,
Storage.BlobGetOption... options)
Returns the requested blob or
null if not found. |
Acl |
Storage.getAcl(BlobId blob,
Acl.Entity entity)
Returns the ACL entry for the specified entity on the specified blob or
null if not
found. |
List<Acl> |
Storage.listAcls(BlobId blob)
Lists the ACL entries for the provided blob.
|
static BlobInfo.Builder |
BlobInfo.newBuilder(BlobId blobId)
Returns a
BlobInfo builder where blob identity is set using the provided value. |
static Storage.CopyRequest |
Storage.CopyRequest.of(BlobId sourceBlobId,
BlobId targetBlobId)
Creates a copy request.
|
static Storage.CopyRequest |
Storage.CopyRequest.of(BlobId sourceBlobId,
BlobInfo target)
Creates a copy request.
|
static Storage.CopyRequest |
Storage.CopyRequest.of(BlobId sourceBlobId,
String targetBlob)
Creates a copy request.
|
static Storage.CopyRequest |
Storage.CopyRequest.of(String sourceBucket,
String sourceBlob,
BlobId target)
Creates a copy request.
|
byte[] |
Storage.readAllBytes(BlobId blob,
Storage.BlobSourceOption... options)
Reads all the bytes from a blob.
|
ReadChannel |
Storage.reader(BlobId blob,
Storage.BlobSourceOption... options)
Returns a channel for reading the blob's content.
|
abstract BlobInfo.Builder |
BlobInfo.Builder.setBlobId(BlobId blobId)
Sets the blob identity.
|
Blob.Builder |
Blob.Builder.setBlobId(BlobId blobId) |
Storage.CopyRequest.Builder |
Storage.CopyRequest.Builder.setSource(BlobId source)
Sets the blob to copy given a
BlobId . |
Storage.CopyRequest.Builder |
Storage.CopyRequest.Builder.setTarget(BlobId targetId)
Sets the copy target.
|
Storage.CopyRequest.Builder |
Storage.CopyRequest.Builder.setTarget(BlobId targetId,
Iterable<Storage.BlobTargetOption> options)
Sets the copy target and target options.
|
Storage.CopyRequest.Builder |
Storage.CopyRequest.Builder.setTarget(BlobId targetId,
Storage.BlobTargetOption... options)
Sets the copy target.
|
Acl |
Storage.updateAcl(BlobId blob,
Acl acl)
Updates an ACL entry on the specified blob.
|
Modifier and Type | Method and Description |
---|---|
List<Boolean> |
Storage.delete(Iterable<BlobId> blobIds)
Deletes the requested blobs.
|
List<Blob> |
Storage.get(Iterable<BlobId> blobIds)
Gets the requested blobs.
|
Copyright © 2019 Google LLC. All rights reserved.