Modifier and Type | Method and Description |
---|---|
GoogleCloudStorageObject |
composeObjects(String destinationBucket,
String destinationObject,
ComposeObjectTemplate composeObjectTemplate)
Concatenates a list of existing objects into a new object in the same bucket.
|
GoogleCloudStorageObject |
composeObjects(String destinationBucket,
String destinationObject,
ComposeObjectTemplate composeObjectTemplate,
ComposeObjectOptions options)
Concatenates a list of existing objects into a new object in the same bucket.
|
GoogleCloudStorageObject |
copyObject(String destinationBucket,
String destinationObject,
String sourceBucket,
String sourceObject)
Copies an object to a specified location.
|
GoogleCloudStorageObject |
copyObject(String destinationBucket,
String destinationObject,
String sourceBucket,
String sourceObject,
CopyObjectOptions options)
Copies an object to a specified location.
|
GoogleCloudStorageObject |
copyObject(String destinationBucket,
String destinationObject,
String sourceBucket,
String sourceObject,
ObjectTemplate template)
Copies an object to a specified location with updated metadata.
|
boolean |
deleteObject(String bucketName,
String objectName)
Deletes an object and its metadata.
|
boolean |
deleteObject(String bucketName,
String objectName,
DeleteObjectOptions options)
Deletes an object and its metadata.
|
PayloadEnclosing |
download(String bucketName,
String objectName)
Retrieve an object or their metadata
|
PayloadEnclosing |
download(String bucketName,
String objectName,
HttpRequestOptions options)
Retrieves objects
|
GoogleCloudStorageObject |
getObject(String bucketName,
String objectName)
Retrieve an object metadata
|
GoogleCloudStorageObject |
getObject(String bucketName,
String objectName,
HttpRequestOptions options)
Retrieves objects metadata
|
ListPageWithPrefixes<GoogleCloudStorageObject> |
listObjects(String bucketName)
Retrieves a list of objects matching the criteria.
|
ListPageWithPrefixes<GoogleCloudStorageObject> |
listObjects(String bucketName,
ListObjectOptions options)
Retrieves a list of objects matching the criteria.
|
GoogleCloudStorageObject |
multipartUpload(String bucketName,
ObjectTemplate objectTemplate,
Payload payload)
Stores a new object with metadata.
|
boolean |
objectExists(String bucketName,
String objectName)
Check the existence of an object
|
GoogleCloudStorageObject |
patchObject(String bucketName,
String objectName,
ObjectTemplate objectTemplate)
Updates an object according to patch semantics
|
GoogleCloudStorageObject |
patchObject(String bucketName,
String objectName,
ObjectTemplate objectTemplate,
UpdateObjectOptions options)
Updates an object according to patch semantics
|
RewriteResponse |
rewriteObjects(String destinationBucket,
String destinationObject,
String sourceBucket,
String sourceObject)
Rewrites a source object to a destination object.
|
RewriteResponse |
rewriteObjects(String destinationBucket,
String destinationObject,
String sourceBucket,
String sourceObject,
RewriteObjectOptions options)
Rewrites a source object to a destination object.
|
GoogleCloudStorageObject |
simpleUpload(String bucketName,
String contentType,
Long contentLength,
Payload payload,
InsertObjectOptions options)
Stores a new object.
|
GoogleCloudStorageObject |
updateObject(String bucketName,
String objectName,
ObjectTemplate objectTemplate)
Updates an object metadata
|
GoogleCloudStorageObject |
updateObject(String bucketName,
String objectName,
ObjectTemplate objectTemplate,
UpdateObjectOptions options)
Updates an object
|
@Named(value="Object:Exist") @GET @Path(value="storage/v1/b/{bucket}/o/{object}") boolean objectExists(@PathParam(value="bucket") String bucketName, @PathParam(value="object")@Encoded String objectName)
bucketName
- Name of the bucket in which the object residesobjectName
- Name of the objectObject
true if object exists@Named(value="Object:get") @GET @Path(value="storage/v1/b/{bucket}/o/{object}") @Consumes(value="application/json") @Nullable GoogleCloudStorageObject getObject(@PathParam(value="bucket") String bucketName, @PathParam(value="object")@Encoded String objectName)
bucketName
- Name of the bucket in which the object residesobjectName
- Name of the objectObject
resource@Named(value="Object:get") @GET @Path(value="storage/v1/b/{bucket}/o/{object}") @Consumes(value="application/json") @Nullable GoogleCloudStorageObject getObject(@PathParam(value="bucket") String bucketName, @PathParam(value="object")@Encoded String objectName, HttpRequestOptions options)
bucketName
- Name of the bucket in which the object residesobjectName
- Name of the objectoptions
- A class that implements HttpRequestOptions
such as GetObjectOptions
with optional query parametersGoogleCloudStorageObject
@Named(value="Object:get") @GET @Path(value="storage/v1/b/{bucket}/o/{object}") @Nullable PayloadEnclosing download(@PathParam(value="bucket") String bucketName, @PathParam(value="object")@Encoded String objectName)
bucketName
- Name of the bucket in which the object residesobjectName
- Name of the objectObject
resource@Named(value="Object:get") @GET @Path(value="storage/v1/b/{bucket}/o/{object}") @Nullable PayloadEnclosing download(@PathParam(value="bucket") String bucketName, @PathParam(value="object")@Encoded String objectName, HttpRequestOptions options)
bucketName
- Name of the bucket in which the object residesobjectName
- Name of the objectoptions
- A class that implements HttpRequestOptions
such as GetObjectOptions
with optional query parametersGoogleCloudStorageObject
@Named(value="Object:simpleUpload") @POST @Consumes(value="application/json") @Path(value="/upload/storage/v1/b/{bucket}/o") GoogleCloudStorageObject simpleUpload(@PathParam(value="bucket") String bucketName, @HeaderParam(value="Content-Type") String contentType, @HeaderParam(value="Content-Length") Long contentLength, Payload payload, InsertObjectOptions options)
bucketName
- Name of the bucket in which the object to be storedoptions
- Supply an InsertObjectOptions
. 'name' should not null.GoogleCloudStorageObject
https://developers.google.com/storage/docs/json_api/v1/how-tos/upload#simple
@Named(value="Object:delete") @DELETE @Path(value="storage/v1/b/{bucket}/o/{object}") boolean deleteObject(@PathParam(value="bucket") String bucketName, @PathParam(value="object")@Encoded String objectName)
bucketName
- Name of the bucket in which the object to be deleted residesobjectName
- Name of the object@Named(value="Object:delete") @DELETE @Path(value="storage/v1/b/{bucket}/o/{object}") boolean deleteObject(@PathParam(value="bucket") String bucketName, @PathParam(value="object")@Encoded String objectName, DeleteObjectOptions options)
bucketName
- Name of the bucket in which the object to be deleted residesobjectName
- Name of the objectoptions
- Supply DeleteObjectOptions
with optional query parameters@Named(value="Object:list") @GET @Consumes(value="application/json") @Path(value="storage/v1/b/{bucket}/o") ListPageWithPrefixes<GoogleCloudStorageObject> listObjects(@PathParam(value="bucket") String bucketName)
bucketName
- Name of the bucket in which to look for objects.@Named(value="Object:list") @GET @Consumes(value="application/json") @Path(value="storage/v1/b/{bucket}/o") ListPageWithPrefixes<GoogleCloudStorageObject> listObjects(@PathParam(value="bucket") String bucketName, ListObjectOptions options)
bucketName
- Name of the bucket in which to look for objects.options
- Supply ListObjectOptions
ListPage
@Named(value="Object:update") @PUT @Consumes(value="application/json") @Produces(value="application/json") @Path(value="storage/v1/b/{bucket}/o/{object}") GoogleCloudStorageObject updateObject(@PathParam(value="bucket") String bucketName, @PathParam(value="object")@Encoded String objectName, ObjectTemplate objectTemplate)
bucketName
- Name of the bucket in which the object residesobjectName
- Name of the objectobjectTemplate
- Supply an ObjectTemplate
GoogleCloudStorageObject
@Named(value="Object:update") @PUT @Consumes(value="application/json") @Produces(value="application/json") @Path(value="storage/v1/b/{bucket}/o/{object}") GoogleCloudStorageObject updateObject(@PathParam(value="bucket") String bucketName, @PathParam(value="object")@Encoded String objectName, ObjectTemplate objectTemplate, UpdateObjectOptions options)
bucketName
- Name of the bucket in which the object residesobjectName
- Name of the objectobjectTemplate
- Supply anObjectTemplate
options
- Supply UpdateObjectOptions
with optional query parametersGoogleCloudStorageObject
.@Named(value="Object:patch") @Consumes(value="application/json") @Produces(value="application/json") @Path(value="storage/v1/b/{bucket}/o/{object}") GoogleCloudStorageObject patchObject(@PathParam(value="bucket") String bucketName, @PathParam(value="object")@Encoded String objectName, ObjectTemplate objectTemplate)
bucketName
- Name of the bucket in which the object residesobjectName
- Name of the objectobjectTemplate
- Supply ObjectTemplate
with optional query parametersGoogleCloudStorageObject
@Named(value="Object:patch") @PUT @Consumes(value="application/json") @Produces(value="application/json") @Path(value="storage/v1/b/{bucket}/o/{object}") GoogleCloudStorageObject patchObject(@PathParam(value="bucket") String bucketName, @PathParam(value="object")@Encoded String objectName, ObjectTemplate objectTemplate, UpdateObjectOptions options)
bucketName
- Name of the bucket in which the object residesobjectName
- Name of the objectobjectTemplate
- Supply ObjectTemplate
with optional query parametersoptions
- Supply UpdateObjectOptions
with optional query parametersGoogleCloudStorageObject
@Named(value="Object:compose") @POST @Consumes(value="application/json") @Path(value="storage/v1/b/{destinationBucket}/o/{destinationObject}/compose") GoogleCloudStorageObject composeObjects(@PathParam(value="destinationBucket") String destinationBucket, @PathParam(value="destinationObject")@Encoded String destinationObject, ComposeObjectTemplate composeObjectTemplate)
destinationBucket
- Name of the bucket in which the object to be storeddestinationObject
- The type of upload request.composeObjectTemplate
- Supply a ComposeObjectTemplate
GoogleCloudStorageObject
@Named(value="Object:compose") @POST @Consumes(value="application/json") @Path(value="storage/v1/b/{destinationBucket}/o/{destinationObject}/compose") GoogleCloudStorageObject composeObjects(@PathParam(value="destinationBucket") String destinationBucket, @PathParam(value="destinationObject")@Encoded String destinationObject, ComposeObjectTemplate composeObjectTemplate, ComposeObjectOptions options)
destinationBucket
- Name of the bucket in which the object to be storeddestinationObject
- The type of upload request.composeObjectTemplate
- Supply a ComposeObjectTemplate
options
- Supply an ComposeObjectOptions
GoogleCloudStorageObject
@Named(value="Object:copy") @POST @Consumes(value="application/json") @Path(value="/storage/v1/b/{sourceBucket}/o/{sourceObject}/copyTo/b/{destinationBucket}/o/{destinationObject}") GoogleCloudStorageObject copyObject(@PathParam(value="destinationBucket") String destinationBucket, @PathParam(value="destinationObject")@Encoded String destinationObject, @PathParam(value="sourceBucket") String sourceBucket, @PathParam(value="sourceObject")@Encoded String sourceObject)
destinationBucket
- Name of the bucket in which to store the new objectdestinationObject
- Name of the new object.sourceBucket
- Name of the bucket in which to find the source objectsourceObject
- Name of the source objectGoogleCloudStorageObject
@Named(value="Object:copy") @POST @Consumes(value="application/json") @Path(value="/storage/v1/b/{sourceBucket}/o/{sourceObject}/copyTo/b/{destinationBucket}/o/{destinationObject}") GoogleCloudStorageObject copyObject(@PathParam(value="destinationBucket") String destinationBucket, @PathParam(value="destinationObject")@Encoded String destinationObject, @PathParam(value="sourceBucket") String sourceBucket, @PathParam(value="sourceObject")@Encoded String sourceObject, ObjectTemplate template)
destinationBucket
- Name of the bucket in which to store the new objectdestinationObject
- Name of the new object.sourceBucket
- Name of the bucket in which to find the source objectsourceObject
- Name of the source objecttemplate
- Supply a CopyObjectOptions
GoogleCloudStorageObject
@Named(value="Object:copy") @POST @Consumes(value="application/json") @Path(value="/storage/v1/b/{sourceBucket}/o/{sourceObject}/copyTo/b/{destinationBucket}/o/{destinationObject}") GoogleCloudStorageObject copyObject(@PathParam(value="destinationBucket") String destinationBucket, @PathParam(value="destinationObject")@Encoded String destinationObject, @PathParam(value="sourceBucket") String sourceBucket, @PathParam(value="sourceObject")@Encoded String sourceObject, CopyObjectOptions options)
destinationBucket
- Name of the bucket in which to store the new objectdestinationObject
- Name of the new object.sourceBucket
- Name of the bucket in which to find the source objectsourceObject
- Name of the source objectoptions
- Supply a CopyObjectOptions
GoogleCloudStorageObject
@Named(value="Object:multipartUpload") @POST @Consumes(value="application/json") @Path(value="/upload/storage/v1/b/{bucket}/o") GoogleCloudStorageObject multipartUpload(@PathParam(value="bucket") String bucketName, ObjectTemplate objectTemplate, Payload payload)
bucketName
- Name of the bucket in which the object to be storedobjectTemplate
- Supply an ObjectTemplate
.GoogleCloudStorageObject
https://developers.google.com/storage/docs/json_api/v1/how-tos/upload#multipart
@Named(value="Object:rewrite") @POST @Consumes(value="application/json") @Path(value="/storage/v1/b/{sourceBucket}/o/{sourceObject}/rewriteTo/b/{destinationBucket}/o/{destinationObject}") RewriteResponse rewriteObjects(@PathParam(value="destinationBucket") String destinationBucket, @PathParam(value="destinationObject")@Encoded String destinationObject, @PathParam(value="sourceBucket") String sourceBucket, @PathParam(value="sourceObject")@Encoded String sourceObject)
destinationBucket
- Name of the bucket in which the object to be storeddestinationObject
- Name of the new object.sourceBucket
- Name of the bucket in which to find the source object.sourceObject
- Name of the source object.RewriteResponse
@Named(value="Object:rewrite") @POST @Consumes(value="application/json") @Path(value="/storage/v1/b/{sourceBucket}/o/{sourceObject}/rewriteTo/b/{destinationBucket}/o/{destinationObject}") RewriteResponse rewriteObjects(@PathParam(value="destinationBucket") String destinationBucket, @PathParam(value="destinationObject")@Encoded String destinationObject, @PathParam(value="sourceBucket") String sourceBucket, @PathParam(value="sourceObject")@Encoded String sourceObject, RewriteObjectOptions options)
destinationBucket
- Name of the bucket in which the object to be storeddestinationObject
- Name of the new object.sourceBucket
- Name of the bucket in which to find the source object.sourceObject
- Name of the source object.options
- Supply an RewriteObjectOptions
RewriteResponse
Copyright © 2009-2018 The Apache Software Foundation. All Rights Reserved.