public class ObjectStorageContainerServiceImpl extends BaseObjectStorageService implements ObjectStorageContainerService
BaseOpenStackService.Invocation<R>| Constructor and Description |
|---|
ObjectStorageContainerServiceImpl() |
| 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 |
isResponseSuccess, isResponseSuccessdelete, deleteWithResponse, get, getProvider, getServiceVersion, getXOpenstackRequestId, head, patch, patchWithResponse, post, postWithResponse, put, request, toList, uripublic List<? extends SwiftContainer> list()
list in interface ObjectStorageContainerServicepublic List<? extends SwiftContainer> list(ContainerListOptions options)
list in interface ObjectStorageContainerServiceoptions - the query based optionspublic ActionResponse create(String name)
namecreate in interface ObjectStorageContainerServicename - the name of the new containerpublic ActionResponse create(String name, CreateUpdateContainerOptions options)
name with optionscreate in interface ObjectStorageContainerServicename - the name of the new containeroptions - the options to use when creating a containerpublic String createPath(String containerName, String path)
containerNamecreatePath in interface ObjectStorageContainerServicecontainerName - the name of the containerpath - the path to createpublic ActionResponse update(String name, CreateUpdateContainerOptions options)
name with optionsupdate in interface ObjectStorageContainerServicename - the name of the container to updateoptions - the options to use when updating a containerpublic ActionResponse delete(String name)
namedelete in interface ObjectStorageContainerServicename - the name of the container to deletepublic Map<String,String> getMetadata(String name)
getMetadata in interface ObjectStorageContainerServicename - the container namepublic boolean updateMetadata(String name, Map<String,String> metadata)
nameupdateMetadata in interface ObjectStorageContainerServicename - the name of the containermetadata - the metadata to create/update for this containerpublic boolean deleteMetadata(String name, Map<String,String> metadata)
namedeleteMetadata in interface ObjectStorageContainerServicename - the name of the containermetadata - the metadata items to remove from the container's metadataCopyright © 2017. All rights reserved.