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.Patch |
class |
Storage.Buckets.SetIamPolicy |
class |
Storage.Buckets.TestIamPermissions |
class |
Storage.Buckets.Update |
Constructor and Description |
---|
Storage.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.Patch |
patch(String bucket,
Bucket content)
Updates 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.IOException
public Storage.Buckets.Get get(String bucket) throws IOException
AbstractGoogleClientRequest.execute()
method to invoke the remote operation.bucket
- Name of a bucket.IOException
public Storage.Buckets.GetIamPolicy getIamPolicy(String bucket) throws IOException
AbstractGoogleClientRequest.execute()
method to invoke the remote operation.bucket
- Name of a bucket.IOException
public 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 Bucket
IOException
public Storage.Buckets.List list(String project) throws IOException
AbstractGoogleClientRequest.execute()
method to invoke the remote operation.project
- A valid API project identifier.IOException
public 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 Bucket
IOException
public 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 Policy
IOException
public 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.IOException
public 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 Bucket
IOException