|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ObjectApi
Provides access to Object entities via their REST API.
| Method Summary | |
|---|---|
GCSObject |
composeObjects(String destinationBucket,
String destinationObject,
ComposeObjectTemplate composeObjectTemplate)
Concatenates a list of existing objects into a new object in the same bucket. |
GCSObject |
composeObjects(String destinationBucket,
String destinationObject,
ComposeObjectTemplate composeObjectTemplate,
ComposeObjectOptions options)
Concatenates a list of existing objects into a new object in the same bucket. |
GCSObject |
copyObject(String destinationBucket,
String destinationObject,
String sourceBucket,
String sourceObject)
Copies an object to a specified location. |
GCSObject |
copyObject(String destinationBucket,
String destinationObject,
String sourceBucket,
String sourceObject,
CopyObjectOptions options)
Copies an object to a specified location. |
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. |
org.jclouds.http.internal.PayloadEnclosingImpl |
download(String bucketName,
String objectName)
Retrieve an object or their metadata |
org.jclouds.http.internal.PayloadEnclosingImpl |
download(String bucketName,
String objectName,
GetObjectOptions options)
Retrieves objects |
GCSObject |
getObject(String bucketName,
String objectName)
Retrieve an object metadata |
GCSObject |
getObject(String bucketName,
String objectName,
GetObjectOptions options)
Retrieves objects metadata |
ListPage<GCSObject> |
listObjects(String bucketName)
Retrieves a list of objects matching the criteria. |
ListPage<GCSObject> |
listObjects(String bucketName,
ListObjectOptions options)
Retrieves a list of objects matching the criteria. |
GCSObject |
multipartUpload(String bucketName,
ObjectTemplate objectTemplate,
org.jclouds.io.Payload payload)
Stores a new object with metadata. |
boolean |
objectExist(String bucketName,
String objectName)
Check the existence of an object |
GCSObject |
patchObject(String bucketName,
String objectName,
ObjectTemplate objectTemplate)
Updates an object according to patch semantics |
GCSObject |
patchObject(String bucketName,
String objectName,
ObjectTemplate objectTemplate,
UpdateObjectOptions options)
Updates an object according to patch semantics |
GCSObject |
simpleUpload(String bucketName,
String contentType,
Long contentLength,
org.jclouds.io.Payload payload,
InsertObjectOptions Options)
Stores a new object.Bject metadata setting is not supported with simple uploads |
GCSObject |
updateObject(String bucketName,
String objectName,
ObjectTemplate objectTemplate)
Updates an object metadata |
GCSObject |
updateObject(String bucketName,
String objectName,
ObjectTemplate objectTemplate,
UpdateObjectOptions options)
Updates an object |
| Method Detail |
|---|
@Named(value="Object:Exist")
@Nullable
boolean objectExist(String bucketName,
String objectName)
bucketName - Name of the bucket in which the object residesobjectName - Name of the object
Object true if object exists
@Named(value="Object:get")
@Nullable
GCSObject getObject(String bucketName,
String objectName)
bucketName - Name of the bucket in which the object residesobjectName - Name of the object
Object resource
@Named(value="Object:get")
@Nullable
GCSObject getObject(String bucketName,
String objectName,
GetObjectOptions options)
bucketName - Name of the bucket in which the object residesobjectName - Name of the objectoptions - Supply GetObjectOptions with optional query parameters
GCSObject
@Named(value="Object:get")
@Nullable
org.jclouds.http.internal.PayloadEnclosingImpl download(String bucketName,
String objectName)
bucketName - Name of the bucket in which the object residesobjectName - Name of the object
Object resource
@Named(value="Object:get")
@Nullable
org.jclouds.http.internal.PayloadEnclosingImpl download(String bucketName,
String objectName,
GetObjectOptions options)
bucketName - Name of the bucket in which the object residesobjectName - Name of the objectoptions - Supply GetObjectOptions with optional query parameters
GCSObject
@Named(value="Object:simpleUpload")
GCSObject simpleUpload(String bucketName,
@HeaderParam(value="Content-Type")
String contentType,
@HeaderParam(value="Content-Length")
Long contentLength,
org.jclouds.io.Payload payload,
InsertObjectOptions Options)
bucketName - Name of the bucket in which the object to be storedoptions - Supply an InsertObjectOptions. 'name' should not null.
GCSObjecthttps://developers.google.com/storage/docs/json_api/v1/how-tos/upload#simple
@Named(value="Object:delete")
boolean deleteObject(String bucketName,
String objectName)
bucketName - Name of the bucket in which the object to be deleted residesobjectName - Name of the object
@Named(value="Object:delete")
boolean deleteObject(String bucketName,
String objectName,
DeleteObjectOptions options)
bucketName - Name of the bucket in which the object to be deleted residesobjectName - Name of the objectoptions - Supply DeletObjectOptions with optional query parameters@Named(value="Object:list") @Nullable ListPage<GCSObject> listObjects(String bucketName)
bucketName - Name of the bucket in which to look for objects.
ListPage
@Named(value="Object:list")
@Nullable
ListPage<GCSObject> listObjects(String bucketName,
ListObjectOptions options)
bucketName - Name of the bucket in which to look for objects.options - Supply ListObjectOptions
ListPage
@Named(value="Object:update")
GCSObject updateObject(String bucketName,
String objectName,
ObjectTemplate objectTemplate)
bucketName - Name of the bucket in which the object residesobjectName - Name of the objectobjectTemplate - Supply an ObjectTemplate
GCSObject
@Named(value="Object:update")
GCSObject updateObject(String bucketName,
String objectName,
ObjectTemplate objectTemplate,
UpdateObjectOptions options)
bucketName - Name of the bucket in which the object residesobjectName - Name of the objectobjectTemplate - Supply anObjectTemplateoptions - Supply UpdateObjectOptions with optional query parameters
GCSObject .
@Named(value="Object:patch")
GCSObject patchObject(String bucketName,
String objectName,
ObjectTemplate objectTemplate)
bucketName - Name of the bucket in which the object residesobjectName - Name of the objectobjectTemplate - Supply ObjectTemplate with optional query parameters
GCSObject
@Named(value="Object:patch")
GCSObject patchObject(String bucketName,
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 parameters
GCSObject
@Named(value="Object:compose")
GCSObject composeObjects(String destinationBucket,
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
GCSObject
@Named(value="Object:compose")
GCSObject composeObjects(String destinationBucket,
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 ComposeObjectTemplateoptions - Supply an ComposeObjectOptions
GCSObject
@Named(value="Object:copy")
GCSObject copyObject(String destinationBucket,
String destinationObject,
String sourceBucket,
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 object
GCSObject
@Named(value="Object:copy")
GCSObject copyObject(String destinationBucket,
String destinationObject,
String sourceBucket,
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
GCSObject
@Named(value="Object:multipartUpload")
GCSObject multipartUpload(String bucketName,
ObjectTemplate objectTemplate,
org.jclouds.io.Payload payload)
bucketName - Name of the bucket in which the object to be storedobjectTemplate - Supply an ObjectTemplate.
GCSObjecthttps://developers.google.com/storage/docs/json_api/v1/how-tos/upload#multipart
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||