public class Storage.Objects
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
class |
Storage.Objects.Delete |
class |
Storage.Objects.Get |
class |
Storage.Objects.Insert |
class |
Storage.Objects.List |
class |
Storage.Objects.Patch |
class |
Storage.Objects.Update |
Constructor and Description |
---|
Storage.Objects() |
Modifier and Type | Method and Description |
---|---|
Storage.Objects.Delete |
delete(java.lang.String bucket,
java.lang.String object__)
Deletes data blobs and associated metadata.
|
Storage.Objects.Get |
get(java.lang.String bucket,
java.lang.String object__)
Retrieves objects or their associated metadata.
|
Storage.Objects.Insert |
insert(java.lang.String bucket,
StorageObject content)
Stores new data blobs and associated metadata.
|
Storage.Objects.Insert |
insert(java.lang.String bucket,
StorageObject content,
com.google.api.client.http.AbstractInputStreamContent mediaContent)
Stores new data blobs and associated metadata.
|
Storage.Objects.List |
list(java.lang.String bucket)
Retrieves a list of objects matching the criteria.
|
Storage.Objects.Patch |
patch(java.lang.String bucket,
java.lang.String object__,
StorageObject content)
Updates a data blob's associated metadata.
|
Storage.Objects.Update |
update(java.lang.String bucket,
java.lang.String object__,
StorageObject content)
Updates a data blob's associated metadata.
|
public Storage.Objects.Delete delete(java.lang.String bucket, java.lang.String object__) throws java.io.IOException
AbstractGoogleClientRequest.execute()
method to invoke the remote operation.bucket
- Name of the bucket in which the object resides.object__
- Name of the object.java.io.IOException
public Storage.Objects.Get get(java.lang.String bucket, java.lang.String object__) throws java.io.IOException
AbstractGoogleClientRequest.execute()
method to invoke the remote operation.bucket
- Name of the bucket in which the object resides.object__
- Name of the object.java.io.IOException
public Storage.Objects.Insert insert(java.lang.String bucket, StorageObject content) throws java.io.IOException
AbstractGoogleClientRequest.execute()
method to invoke the remote operation.bucket
- Name of the bucket in which to store the new object. Overrides the provided object metadata's bucket
value, if any.content
- the StorageObject
java.io.IOException
public Storage.Objects.Insert insert(java.lang.String bucket, StorageObject content, com.google.api.client.http.AbstractInputStreamContent mediaContent) throws java.io.IOException
AbstractGoogleClientRequest.execute()
method to invoke the remote operation.
This method should be used for uploading media content.
bucket
- Name of the bucket in which to store the new object. Overrides the provided object metadata's bucket
value, if any.content
- the StorageObject
media metadata or null
if nonemediaContent
- The media HTTP content or null
if none.java.io.IOException
- if the initialization of the request failspublic Storage.Objects.List list(java.lang.String bucket) throws java.io.IOException
AbstractGoogleClientRequest.execute()
method to invoke the remote operation.bucket
- Name of the bucket in which to look for objects.java.io.IOException
public Storage.Objects.Patch patch(java.lang.String bucket, java.lang.String object__, StorageObject content) throws java.io.IOException
AbstractGoogleClientRequest.execute()
method to invoke the remote operation.bucket
- Name of the bucket in which the object resides.object__
- Name of the object.content
- the StorageObject
java.io.IOException
public Storage.Objects.Update update(java.lang.String bucket, java.lang.String object__, StorageObject content) throws java.io.IOException
AbstractGoogleClientRequest.execute()
method to invoke the remote operation.bucket
- Name of the bucket in which the object resides.object__
- Name of the object.content
- the StorageObject
java.io.IOException