| Modifier and Type | Method and Description |
|---|---|
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
|
@Named(value="Bucket:get")
@GET
@Path(value="/b/{bucket}")
boolean bucketExist(@PathParam(value="bucket")
String bucketName)
bucketName - Name of the bucketBucket true if bucket exist@Named(value="Bucket:get")
@GET
@Produces(value="application/json")
@Path(value="/b/{bucket}")
@Nullable
Bucket getBucket(@PathParam(value="bucket")
String bucketName)
bucketName - Name of the bucketBucket resource@Named(value="Bucket:get")
@GET
@Produces(value="application/json")
@Path(value="/b/{bucket}")
@Nullable
Bucket getBucket(@PathParam(value="bucket")
String bucketName,
GetBucketOptions options)
bucketName - Name of the bucketoptions - Supply GetBucketOptions with optional query parametersBucket resource@Named(value="Bucket:insert") @POST @Path(value="/b") Bucket createBucket(@QueryParam(value="project") String projectId, BucketTemplate bucketTemplate)
projectId - A valid API project identifierbucketTemplate - supply a BucketTemplate resourceBucket resource.@Named(value="Bucket:insert") @POST @Path(value="/b") Bucket createBucket(@QueryParam(value="project") String projectId, BucketTemplate bucketTemplate, InsertBucketOptions options)
projectId - A valid API project identifierbucketTemplate - Supply a BucketTemplate resourceoptions - Supply InsertBucketOptions with optional query parametersBucket resource.@Named(value="Bucket:delete")
@DELETE
@Path(value="/b/{bucket}")
boolean deleteBucket(@PathParam(value="bucket")
String bucketName)
bucketName - Name of the bucket@Named(value="Bucket:delete")
@DELETE
@Path(value="/b/{bucket}")
boolean deleteBucket(@PathParam(value="bucket")
String bucketName,
DeleteBucketOptions options)
bucketName - Name of the bucketoptions - Supply DeleteBucketOptions with optional query parameters@Named(value="Bucket:list") @GET @Produces(value="application/json") @Path(value="/b") ListPage<Bucket> listBucket(@QueryParam(value="project") String projectId)
projectId - A valid API project identifierListPage@Named(value="Bucket:list") @GET @Produces(value="application/json") @Path(value="/b") ListPage<Bucket> listBucket(@QueryParam(value="project") String projectId, ListOptions options)
projectId - A valid API project identifieroptions - Supply ListOptions with optional query parameters@Named(value="Bucket:update")
@PUT
@Produces(value="application/json")
@Path(value="/b/{bucket}")
Bucket updateBucket(@PathParam(value="bucket")
String bucketName,
BucketTemplate bucketTemplate)
bucketName - Name of the bucketbucketTemplate - Supply a BucketTemplate resource with list of BucketAccessControlsBucket resource.@Named(value="Bucket:update")
@PUT
@Produces(value="application/json")
@Path(value="/b/{bucket}")
Bucket updateBucket(@PathParam(value="bucket")
String bucketName,
BucketTemplate bucketTemplate,
UpdateBucketOptions options)
bucketName - Name of the bucketbucketTemplate - Supply a BucketTemplate resource with list of BucketAccessControlsoptions - Supply UpdateBucketOptions with optional query parametersBucket resource.@Named(value="Bucket:patch")
@Produces(value="application/json")
@Path(value="/b/{bucket}")
Bucket patchBucket(@PathParam(value="bucket")
String bucketName,
BucketTemplate bucketTemplate)
bucketName - Name of the bucketbucketTemplate - Supply a BucketTemplate resource with list of BucketAccessControlsBucket resource.@Named(value="Bucket:patch")
@Produces(value="application/json")
@Path(value="/b/{bucket}")
Bucket patchBucket(@PathParam(value="bucket")
String bucketName,
BucketTemplate bucketTemplate,
UpdateBucketOptions options)
bucketName - Name of the bucketbucketTemplate - Supply a BucketTemplate resource with list of BucketAccessControlsoptions - Supply UpdateBucketOptions with optional query parametersBucket resource.Copyright © 2009-2018 The Apache Software Foundation. All Rights Reserved.