public class Storage.Objects
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
class |
Storage.Objects.Compose |
class |
Storage.Objects.Copy |
class |
Storage.Objects.Delete |
class |
Storage.Objects.Get |
class |
Storage.Objects.GetIamPolicy |
class |
Storage.Objects.Insert |
class |
Storage.Objects.List |
class |
Storage.Objects.Patch |
class |
Storage.Objects.Rewrite |
class |
Storage.Objects.SetIamPolicy |
class |
Storage.Objects.TestIamPermissions |
class |
Storage.Objects.Update |
class |
Storage.Objects.WatchAll |
Constructor and Description |
---|
Objects() |
Modifier and Type | Method and Description |
---|---|
Storage.Objects.Compose |
compose(java.lang.String destinationBucket,
java.lang.String destinationObject,
ComposeRequest content)
Concatenates a list of existing objects into a new object in the same bucket.
|
Storage.Objects.Copy |
copy(java.lang.String sourceBucket,
java.lang.String sourceObject,
java.lang.String destinationBucket,
java.lang.String destinationObject,
StorageObject content)
Copies a source object to a destination object.
|
Storage.Objects.Delete |
delete(java.lang.String bucket,
java.lang.String object__)
Deletes an object and its metadata.
|
Storage.Objects.Get |
get(java.lang.String bucket,
java.lang.String object__)
Retrieves an object or its metadata.
|
Storage.Objects.GetIamPolicy |
getIamPolicy(java.lang.String bucket,
java.lang.String object__)
Returns an IAM policy for the specified object.
|
Storage.Objects.Insert |
insert(java.lang.String bucket,
StorageObject content)
Stores a new object and metadata.
|
Storage.Objects.Insert |
insert(java.lang.String bucket,
StorageObject content,
com.google.api.client.http.AbstractInputStreamContent mediaContent)
Stores a new object and 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)
Patches an object's metadata.
|
Storage.Objects.Rewrite |
rewrite(java.lang.String sourceBucket,
java.lang.String sourceObject,
java.lang.String destinationBucket,
java.lang.String destinationObject,
StorageObject content)
Rewrites a source object to a destination object.
|
Storage.Objects.SetIamPolicy |
setIamPolicy(java.lang.String bucket,
java.lang.String object__,
Policy content)
Updates an IAM policy for the specified object.
|
Storage.Objects.TestIamPermissions |
testIamPermissions(java.lang.String bucket,
java.lang.String object__,
java.util.List<java.lang.String> permissions)
Tests a set of permissions on the given object to see which, if any, are held by the caller.
|
Storage.Objects.Update |
update(java.lang.String bucket,
java.lang.String object__,
StorageObject content)
Updates an object's metadata.
|
Storage.Objects.WatchAll |
watchAll(java.lang.String bucket,
Channel content)
Watch for changes on all objects in a bucket.
|
public Storage.Objects.Compose compose(java.lang.String destinationBucket, java.lang.String destinationObject, ComposeRequest content) throws java.io.IOException
AbstractGoogleClientRequest.execute()
method to invoke the remote operation.destinationBucket
- Name of the bucket containing the source objects. The destination object is stored in this bucket.destinationObject
- Name of the new object. For information about how to URL encode object names to be path safe, see
Encoding URI Path Parts.content
- the ComposeRequest
java.io.IOException
public Storage.Objects.Copy copy(java.lang.String sourceBucket, java.lang.String sourceObject, java.lang.String destinationBucket, java.lang.String destinationObject, StorageObject content) throws java.io.IOException
AbstractGoogleClientRequest.execute()
method to invoke the remote operation.sourceBucket
- Name of the bucket in which to find the source object.sourceObject
- Name of the source object. For information about how to URL encode object names to be path safe, see
Encoding URI Path Parts.destinationBucket
- Name of the bucket in which to store the new object. Overrides the provided object metadata's bucket
value, if any.For information about how to URL encode object names to be path safe, see
Encoding URI Path Parts.destinationObject
- Name of the new object. Required when the object metadata is not otherwise provided. Overrides the
object metadata's name value, if any.content
- the StorageObject
java.io.IOException
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. For information about how to URL encode object names to be path safe, see
Encoding URI Path Parts.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. For information about how to URL encode object names to be path safe, see
Encoding URI Path Parts.java.io.IOException
public Storage.Objects.GetIamPolicy getIamPolicy(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. For information about how to URL encode object names to be path safe, see
Encoding URI Path Parts.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. For information about how to URL encode object names to be path safe, see
Encoding URI Path Parts.content
- the StorageObject
java.io.IOException
public Storage.Objects.Rewrite rewrite(java.lang.String sourceBucket, java.lang.String sourceObject, java.lang.String destinationBucket, java.lang.String destinationObject, StorageObject content) throws java.io.IOException
AbstractGoogleClientRequest.execute()
method to invoke the remote operation.sourceBucket
- Name of the bucket in which to find the source object.sourceObject
- Name of the source object. For information about how to URL encode object names to be path safe, see
Encoding URI Path Parts.destinationBucket
- Name of the bucket in which to store the new object. Overrides the provided object metadata's bucket
value, if any.destinationObject
- Name of the new object. Required when the object metadata is not otherwise provided. Overrides the
object metadata's name value, if any. For information about how to URL encode object names
to be path safe, see Encoding URI Path Parts.content
- the StorageObject
java.io.IOException
public Storage.Objects.SetIamPolicy setIamPolicy(java.lang.String bucket, java.lang.String object__, Policy 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. For information about how to URL encode object names to be path safe, see
Encoding URI Path Parts.content
- the Policy
java.io.IOException
public Storage.Objects.TestIamPermissions testIamPermissions(java.lang.String bucket, java.lang.String object__, java.util.List<java.lang.String> permissions) 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. For information about how to URL encode object names to be path safe, see
Encoding URI Path Parts.permissions
- Permissions to test.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. For information about how to URL encode object names to be path safe, see
Encoding URI Path Parts.content
- the StorageObject
java.io.IOException
public Storage.Objects.WatchAll watchAll(java.lang.String bucket, Channel content) throws java.io.IOException
AbstractGoogleClientRequest.execute()
method to invoke the remote operation.bucket
- Name of the bucket in which to look for objects.content
- the Channel
java.io.IOException