| Modifier and Type | Class and Description |
|---|---|
class |
Storage.Buckets.Delete |
class |
Storage.Buckets.Get |
class |
Storage.Buckets.GetIamPolicy |
class |
Storage.Buckets.Insert |
class |
Storage.Buckets.List |
class |
Storage.Buckets.LockRetentionPolicy |
class |
Storage.Buckets.Patch |
class |
Storage.Buckets.SetIamPolicy |
class |
Storage.Buckets.TestIamPermissions |
class |
Storage.Buckets.Update |
| Constructor and Description |
|---|
Buckets() |
| Modifier and Type | Method and Description |
|---|---|
Storage.Buckets.Delete |
delete(String bucket)
Permanently deletes an empty bucket.
|
Storage.Buckets.Get |
get(String bucket)
Returns metadata for the specified bucket.
|
Storage.Buckets.GetIamPolicy |
getIamPolicy(String bucket)
Returns an IAM policy for the specified bucket.
|
Storage.Buckets.Insert |
insert(String project,
Bucket content)
Creates a new bucket.
|
Storage.Buckets.List |
list(String project)
Retrieves a list of buckets for a given project.
|
Storage.Buckets.LockRetentionPolicy |
lockRetentionPolicy(String bucket,
Long ifMetagenerationMatch)
Locks retention policy on a bucket.
|
Storage.Buckets.Patch |
patch(String bucket,
Bucket content)
Patches a bucket.
|
Storage.Buckets.SetIamPolicy |
setIamPolicy(String bucket,
Policy content)
Updates an IAM policy for the specified bucket.
|
Storage.Buckets.TestIamPermissions |
testIamPermissions(String bucket,
List<String> permissions)
Tests a set of permissions on the given bucket to see which, if any, are held by the caller.
|
Storage.Buckets.Update |
update(String bucket,
Bucket content)
Updates a bucket.
|
public Storage.Buckets.Delete delete(String bucket) throws IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.bucket - Name of a bucket.IOExceptionpublic Storage.Buckets.Get get(String bucket) throws IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.bucket - Name of a bucket.IOExceptionpublic Storage.Buckets.GetIamPolicy getIamPolicy(String bucket) throws IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.bucket - Name of a bucket.IOExceptionpublic Storage.Buckets.Insert insert(String project, Bucket content) throws IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.project - A valid API project identifier.content - the BucketIOExceptionpublic Storage.Buckets.List list(String project) throws IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.project - A valid API project identifier.IOExceptionpublic Storage.Buckets.LockRetentionPolicy lockRetentionPolicy(String bucket, Long ifMetagenerationMatch) throws IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.bucket - Name of a bucket.ifMetagenerationMatch - Makes the operation conditional on whether bucket's current metageneration matches the given value.IOExceptionpublic Storage.Buckets.Patch patch(String bucket, Bucket content) throws IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.bucket - Name of a bucket.content - the BucketIOExceptionpublic Storage.Buckets.SetIamPolicy setIamPolicy(String bucket, Policy content) throws IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.bucket - Name of a bucket.content - the PolicyIOExceptionpublic Storage.Buckets.TestIamPermissions testIamPermissions(String bucket, List<String> permissions) throws IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.bucket - Name of a bucket.permissions - Permissions to test.IOExceptionpublic Storage.Buckets.Update update(String bucket, Bucket content) throws IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.bucket - Name of a bucket.content - the BucketIOExceptionCopyright © 2011–2018 Google. All rights reserved.