Package | Description |
---|---|
com.google.cloud.storage |
A client for Cloud Storage - Unified object storage.
|
Modifier and Type | Method and Description |
---|---|
static Bucket.BlobTargetOption |
Bucket.BlobTargetOption.doesNotExist()
Returns an option that causes an operation to succeed only if the target blob does not exist.
|
static Bucket.BlobTargetOption |
Bucket.BlobTargetOption.encryptionKey(Key key)
Returns an option to set a customer-supplied AES256 key for server-side encryption of the
blob.
|
static Bucket.BlobTargetOption |
Bucket.BlobTargetOption.encryptionKey(String key)
Returns an option to set a customer-supplied AES256 key for server-side encryption of the
blob.
|
static Bucket.BlobTargetOption |
Bucket.BlobTargetOption.generationMatch(long generation)
Returns an option for blob's data generation match.
|
static Bucket.BlobTargetOption |
Bucket.BlobTargetOption.generationNotMatch(long generation)
Returns an option for blob's data generation mismatch.
|
static Bucket.BlobTargetOption |
Bucket.BlobTargetOption.kmsKeyName(String kmsKeyName)
Returns an option to set a customer-managed KMS key for server-side encryption of the blob.
|
static Bucket.BlobTargetOption |
Bucket.BlobTargetOption.metagenerationMatch(long metageneration)
Returns an option for blob's metageneration match.
|
static Bucket.BlobTargetOption |
Bucket.BlobTargetOption.metagenerationNotMatch(long metageneration)
Returns an option for blob's metageneration mismatch.
|
static Bucket.BlobTargetOption |
Bucket.BlobTargetOption.predefinedAcl(Storage.PredefinedAcl acl)
Returns an option for specifying blob's predefined ACL configuration.
|
static Bucket.BlobTargetOption |
Bucket.BlobTargetOption.userProject(String userProject)
Returns an option for blob's billing user project.
|
Modifier and Type | Method and Description |
---|---|
Blob |
Bucket.create(String blob,
byte[] content,
Bucket.BlobTargetOption... options)
Creates a new blob in this bucket.
|
Blob |
Bucket.create(String blob,
byte[] content,
String contentType,
Bucket.BlobTargetOption... options)
Creates a new blob in this bucket.
|
Copyright © 2019 Google LLC. All rights reserved.