Package | Description |
---|---|
com.google.storage.v2 |
A client to Cloud Storage API
|
Modifier and Type | Method and Description |
---|---|
BucketName |
BucketName.Builder.build() |
static BucketName |
BucketName.of(String project,
String bucket) |
static BucketName |
BucketName.parse(String formattedString) |
Modifier and Type | Method and Description |
---|---|
static List<BucketName> |
BucketName.parseList(List<String> formattedStrings) |
Modifier and Type | Method and Description |
---|---|
NotificationConfig |
StorageClient.createNotificationConfig(BucketName parent,
NotificationConfig notificationConfig)
Creates a NotificationConfig for a given bucket.
|
void |
StorageClient.deleteBucket(BucketName name)
Permanently deletes an empty bucket.
|
void |
StorageClient.deleteObject(BucketName bucket,
String object)
Deletes an object and its metadata.
|
void |
StorageClient.deleteObject(BucketName bucket,
String object,
long generation)
Deletes an object and its metadata.
|
Bucket |
StorageClient.getBucket(BucketName name)
Returns metadata for the specified bucket.
|
Object |
StorageClient.getObject(BucketName bucket,
String object)
Retrieves an object's metadata.
|
Object |
StorageClient.getObject(BucketName bucket,
String object,
long generation)
Retrieves an object's metadata.
|
StorageClient.ListNotificationConfigsPagedResponse |
StorageClient.listNotificationConfigs(BucketName parent)
Retrieves a list of NotificationConfigs for a given bucket.
|
StorageClient.ListObjectsPagedResponse |
StorageClient.listObjects(BucketName parent)
Retrieves a list of objects matching the criteria.
|
Bucket |
StorageClient.lockBucketRetentionPolicy(BucketName bucket)
Locks retention policy on a bucket.
|
Modifier and Type | Method and Description |
---|---|
static List<String> |
BucketName.toStringList(List<BucketName> values) |
Copyright © 2023 Google LLC. All rights reserved.