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