public interface ObjectStorageContainerService extends RestService
| Modifier and Type | Method and Description |
|---|---|
ActionResponse |
create(String name)
Creates a new container with the specified
name |
ActionResponse |
create(String name,
CreateUpdateContainerOptions options)
Creates a new container with the specified
name with options |
String |
createPath(String containerName,
String path)
Creates a pseudo path aka directory for the specified
containerName |
ActionResponse |
delete(String name)
Deletes an empty container with the specified
name |
boolean |
deleteMetadata(String name,
Map<String,String> metadata)
Deletes metadata items from the specified container
name |
Map<String,String> |
getMetadata(String name)
Gets the Metadata for a given container
|
List<? extends SwiftContainer> |
list()
Listing of all containers associated with the Account (max result size is 10,000);
|
List<? extends SwiftContainer> |
list(ContainerListOptions options)
Listing of all containers with the associated options used in the query
|
ActionResponse |
update(String name,
CreateUpdateContainerOptions options)
Updates a container with the specified
name with options |
boolean |
updateMetadata(String name,
Map<String,String> metadata)
Creates or Updates metadata items for the specified container
name |
List<? extends SwiftContainer> list()
List<? extends SwiftContainer> list(ContainerListOptions options)
options - the query based optionsActionResponse create(String name)
namename - the name of the new containerString createPath(String containerName, String path)
containerNamecontainerName - the name of the containerpath - the path to createActionResponse create(String name, CreateUpdateContainerOptions options)
name with optionsname - the name of the new containeroptions - the options to use when creating a containerActionResponse update(String name, CreateUpdateContainerOptions options)
name with optionsname - the name of the container to updateoptions - the options to use when updating a containerthe - action responseActionResponse delete(String name)
namename - the name of the container to deleteMap<String,String> getMetadata(String name)
name - the container nameboolean updateMetadata(String name, Map<String,String> metadata)
namename - the name of the containermetadata - the metadata to create/update for this containerboolean deleteMetadata(String name, Map<String,String> metadata)
namename - the name of the containermetadata - the metadata items to remove from the container's metadataCopyright © 2017. All rights reserved.