Container class. Encapsulates Storage containers.
constructor for Container
@param name: container name @param headers: init headers to use when initializing the container @param client: object_storage.client instance.
Tries to load the container to check existance
@raises ResponseError @return: boolean, true if exists else false
load data for the container
@param cdn: True if you want CDN information; default=True @return: object_storage.container, self
loads data if not already available and returns the properties
Sets metadata for the container
@param meta: dict of metadata on the container @raises ResponseError
Delete container
@raises ResponseError @return: True
Deletes an object in the container
@param obj: object name to delete @raises ResponseError
Rename container. Will not work if container is not empty.
@param new_container: new container name @raises ResponseError
Lists objects in the container.
@param limit: limit of results to return. @param marker: start listing after this object name @param base_only: only return the base objects.
container/object not container/dir/object
@param headers: extra headers to use in the request @raises ResponseError @return: list of StorageObject instances
Set time to live for CDN
@param ttl: time in seconds to set as the TTL @raises ResponseError
Set read ACL
@param acl: ACL to set for the container @raises ResponseError
Set write ACL
@param acl: ACL to set for the container @raises ResponseError
Make container public
@param ttl: time in seconds to set as the TTL @raises ResponseError
Make container public
@param ttl: time in seconds to set as the TTL @raises ResponseError
Make container private (empty ACL)
@raises ResponseError