| Modifier and Type | Class and Description |
|---|---|
class |
Storage.Directories.Delete |
class |
Storage.Directories.Get |
class |
Storage.Directories.Insert |
class |
Storage.Directories.List |
class |
Storage.Directories.Rename |
| Constructor and Description |
|---|
Directories() |
| Modifier and Type | Method and Description |
|---|---|
Storage.Directories.Delete |
delete(String bucket,
String directory)
Permanently deletes a directory.
|
Storage.Directories.Get |
get(String bucket,
String directory)
Returns metadata for the specified directory.
|
Storage.Directories.Insert |
insert(String bucket,
Directory content)
Creates a new directory.
|
Storage.Directories.List |
list(String bucket)
Retrieves a list of directories matching the criteria.
|
Storage.Directories.Rename |
rename(String bucket,
String sourceDirectory,
String destinationDirectory)
Renames a source directory to a destination directory.
|
public Storage.Directories.Delete delete(String bucket, String directory) throws IOException
Create a request for the method "directories.delete".
This request holds the parameters needed by the storage server. After setting any optional
parameters, call the AbstractGoogleClientRequest.execute() method to invoke the remote operation.
bucket - Name of the bucket in which the directory resides.directory - Name of a directory.IOExceptionpublic Storage.Directories.Get get(String bucket, String directory) throws IOException
Create a request for the method "directories.get".
This request holds the parameters needed by the storage server. After setting any optional
parameters, call the AbstractGoogleClientRequest.execute() method to invoke the remote operation.
bucket - Name of the bucket in which the directory resides.directory - Name of a directory.IOExceptionpublic Storage.Directories.Insert insert(String bucket, Directory content) throws IOException
Create a request for the method "directories.insert".
This request holds the parameters needed by the storage server. After setting any optional
parameters, call the AbstractGoogleClientRequest.execute() method to invoke the remote operation.
bucket - Name of the bucket in which the directory resides.content - the DirectoryIOExceptionpublic Storage.Directories.List list(String bucket) throws IOException
Create a request for the method "directories.list".
This request holds the parameters needed by the storage server. After setting any optional
parameters, call the AbstractGoogleClientRequest.execute() method to invoke the remote operation.
bucket - Name of the bucket in which to look for directories.IOExceptionpublic Storage.Directories.Rename rename(String bucket, String sourceDirectory, String destinationDirectory) throws IOException
Create a request for the method "directories.rename".
This request holds the parameters needed by the storage server. After setting any optional
parameters, call the AbstractGoogleClientRequest.execute() method to invoke the remote operation.
bucket - Name of the bucket in which the directories are in.sourceDirectory - Name of the source directory.destinationDirectory - Name of the directory.IOExceptionCopyright © 2022. All rights reserved.