|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface BucketApi
Provides access to Bucket entities via their REST API.
| Method Summary | |
|---|---|
boolean |
bucketExist(String bucketName)
Check the existence of a bucket |
Bucket |
createBucket(String projectId,
BucketTemplate bucketTemplate)
Creates a new bucket |
Bucket |
createBucket(String projectId,
BucketTemplate bucketTemplate,
InsertBucketOptions options)
Creates a new Bucket |
boolean |
deleteBucket(String bucketName)
Permanently deletes an empty Bucket.If bucket is not empty 409 error to indicate the conflict. |
boolean |
deleteBucket(String bucketName,
DeleteBucketOptions options)
Permanently deletes an empty Bucket.If bucket is not empty 409 error to indicate the conflict. |
Bucket |
getBucket(String bucketName)
Returns metadata for the specified bucket. |
Bucket |
getBucket(String bucketName,
GetBucketOptions options)
Returns metadata for the specified bucket |
ListPage<Bucket> |
listBucket(String projectId)
Retrieves a list of buckets for a given project |
ListPage<Bucket> |
listBucket(String projectId,
ListOptions options)
Retrieves a list of buckets for a given project |
Bucket |
patchBucket(String bucketName,
BucketTemplate bucketTemplate)
Updates a bucket supporting patch semantics. |
Bucket |
patchBucket(String bucketName,
BucketTemplate bucketTemplate,
UpdateBucketOptions options)
Updates a bucket supporting patch semantics. |
Bucket |
updateBucket(String bucketName,
BucketTemplate bucketTemplate)
Updates a bucket |
Bucket |
updateBucket(String bucketName,
BucketTemplate bucketTemplate,
UpdateBucketOptions options)
Updates a bucket |
| Method Detail |
|---|
@Named(value="Bucket:get") boolean bucketExist(String bucketName)
bucketName - Name of the bucket
Bucket true if bucket exist@Named(value="Bucket:get") @Nullable Bucket getBucket(String bucketName)
bucketName - Name of the bucket
Bucket resource
@Named(value="Bucket:get")
@Nullable
Bucket getBucket(String bucketName,
GetBucketOptions options)
bucketName - Name of the bucketoptions - Supply GetBucketOptions with optional query parameters
Bucket resource
@Named(value="Bucket:insert")
Bucket createBucket(String projectId,
BucketTemplate bucketTemplate)
projectId - A valid API project identifierbucketTemplate - supply a BucketTemplate resource
Bucket resource.
@Named(value="Bucket:insert")
Bucket createBucket(String projectId,
BucketTemplate bucketTemplate,
InsertBucketOptions options)
projectId - A valid API project identifierbucketTemplate - Supply a BucketTemplate resourceoptions - Supply InsertBucketOptions with optional query parameters
Bucket resource.@Named(value="Bucket:delete") boolean deleteBucket(String bucketName)
bucketName - Name of the bucket
@Named(value="Bucket:delete")
boolean deleteBucket(String bucketName,
DeleteBucketOptions options)
bucketName - Name of the bucketoptions - Supply DeleteBucketOptions with optional query parameters@Named(value="Bucket:list") @Nullable ListPage<Bucket> listBucket(String projectId)
projectId - A valid API project identifier
ListPage
@Named(value="Bucket:list")
@Nullable
ListPage<Bucket> listBucket(String projectId,
ListOptions options)
projectId - A valid API project identifieroptions - Supply ListOptions with optional query parameters
@Named(value="Bucket:update")
Bucket updateBucket(String bucketName,
BucketTemplate bucketTemplate)
bucketName - Name of the bucketbucketTemplate - Supply a BucketTemplate resource with list of BucketAccessControls
Bucket resource.
@Named(value="Bucket:update")
Bucket updateBucket(String bucketName,
BucketTemplate bucketTemplate,
UpdateBucketOptions options)
bucketName - Name of the bucketbucketTemplate - Supply a BucketTemplate resource with list of BucketAccessControlsoptions - Supply UpdateBucketOptions with optional query parameters
Bucket resource.
@Named(value="Bucket:patch")
Bucket patchBucket(String bucketName,
BucketTemplate bucketTemplate)
bucketName - Name of the bucketbucketTemplate - Supply a BucketTemplate resource with list of BucketAccessControls
Bucket resource.
@Named(value="Bucket:patch")
Bucket patchBucket(String bucketName,
BucketTemplate bucketTemplate,
UpdateBucketOptions options)
bucketName - Name of the bucketbucketTemplate - Supply a BucketTemplate resource with list of BucketAccessControlsoptions - Supply UpdateBucketOptions with optional query parameters
Bucket resource.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||