public class Storage.Buckets
extends java.lang.Object
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(java.lang.String bucket)
Permanently deletes an empty bucket.
|
Storage.Buckets.Get |
get(java.lang.String bucket)
Returns metadata for the specified bucket.
|
Storage.Buckets.GetIamPolicy |
getIamPolicy(java.lang.String bucket)
Returns an IAM policy for the specified bucket.
|
Storage.Buckets.Insert |
insert(java.lang.String project,
Bucket content)
Creates a new bucket.
|
Storage.Buckets.List |
list(java.lang.String project)
Retrieves a list of buckets for a given project.
|
Storage.Buckets.LockRetentionPolicy |
lockRetentionPolicy(java.lang.String bucket,
java.lang.Long ifMetagenerationMatch)
Locks retention policy on a bucket.
|
Storage.Buckets.Patch |
patch(java.lang.String bucket,
Bucket content)
Updates a bucket.
|
Storage.Buckets.SetIamPolicy |
setIamPolicy(java.lang.String bucket,
Policy content)
Updates an IAM policy for the specified bucket.
|
Storage.Buckets.TestIamPermissions |
testIamPermissions(java.lang.String bucket,
java.util.List<java.lang.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(java.lang.String bucket,
Bucket content)
Updates a bucket.
|
public Storage.Buckets.Delete delete(java.lang.String bucket) throws java.io.IOException
AbstractGoogleClientRequest.execute()
method to invoke the remote operation.bucket
- Name of a bucket.java.io.IOException
public Storage.Buckets.Get get(java.lang.String bucket) throws java.io.IOException
AbstractGoogleClientRequest.execute()
method to invoke the remote operation.bucket
- Name of a bucket.java.io.IOException
public Storage.Buckets.GetIamPolicy getIamPolicy(java.lang.String bucket) throws java.io.IOException
AbstractGoogleClientRequest.execute()
method to invoke the remote operation.bucket
- Name of a bucket.java.io.IOException
public Storage.Buckets.Insert insert(java.lang.String project, Bucket content) throws java.io.IOException
AbstractGoogleClientRequest.execute()
method to invoke the remote operation.project
- A valid API project identifier.content
- the Bucket
java.io.IOException
public Storage.Buckets.List list(java.lang.String project) throws java.io.IOException
AbstractGoogleClientRequest.execute()
method to invoke the remote operation.project
- A valid API project identifier.java.io.IOException
public Storage.Buckets.LockRetentionPolicy lockRetentionPolicy(java.lang.String bucket, java.lang.Long ifMetagenerationMatch) throws java.io.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.java.io.IOException
public Storage.Buckets.Patch patch(java.lang.String bucket, Bucket content) throws java.io.IOException
AbstractGoogleClientRequest.execute()
method to invoke the remote operation.bucket
- Name of a bucket.content
- the Bucket
java.io.IOException
public Storage.Buckets.SetIamPolicy setIamPolicy(java.lang.String bucket, Policy content) throws java.io.IOException
AbstractGoogleClientRequest.execute()
method to invoke the remote operation.bucket
- Name of a bucket.content
- the Policy
java.io.IOException
public Storage.Buckets.TestIamPermissions testIamPermissions(java.lang.String bucket, java.util.List<java.lang.String> permissions) throws java.io.IOException
AbstractGoogleClientRequest.execute()
method to invoke the remote operation.bucket
- Name of a bucket.permissions
- Permissions to test.java.io.IOException
public Storage.Buckets.Update update(java.lang.String bucket, Bucket content) throws java.io.IOException
AbstractGoogleClientRequest.execute()
method to invoke the remote operation.bucket
- Name of a bucket.content
- the Bucket
java.io.IOException