SoftLayer Object Storage python client.
See COPYING for license information
Returns an Object Storage client (using httplib2)
@param username: username for Object Storage @param password: password or api key for Object Storage @param auth_url: Auth URL for Object Storage @param auth_token: If provided, bypasses authentication and uses the given auth_token @return: object_storage.client.Client
Returns an Object Storage client (using httplib2)
@param username: username for Object Storage @param password: password or api key for Object Storage @param auth_url: Auth URL for Object Storage @param auth_token: If provided, bypasses authentication and uses the given auth_token @return: object_storage.client.Client
Returns an Object Storage client (using Requests)
Returns an Object Storage client (using Twisted)
Client class. Primary interface for the client.
constructor for Client object
@param username: the username @param api_key: api_key for Object Storage @param connection: object_storage.transport.AuthenticatedConnection
instance.
@param container_class: factory or class for Container constructing @param object_class: factory or class for StorageObject constructing
loads data if not already available and returns the properties
Access the search interface. @param q: the search query. This can be None. @param options: options for the search API. Valid options:
q.[fieldname] -> define search query for a specific field. field -> field name (when using q) type -> ‘object’ or ‘container’; default shows both. recursive -> whether to search recursively or to limit to
one level; default=true
Sets the delimiter for pseudo hierarchical directory structure. @param delimiter: delimiter to use
Sets the storage URL. After authentication, the URL is automatically populated, but the default value can be overwritten.
@param url: url to use to call the Object Storage API.
Initializes container object.
@param name: name of the container @param headers: initial headers to use to initialize the object
Makes a container object and calls load() on it. @param name: container name @raises ResponseError
Sets metadata for the account
@param meta: dict of metadata on the account @raises ResponseError
Creates a new container
@param name: container name @raises ResponseError
Deletes a container.
@param name: container name @raises ResponseError @raises ContainerNotEmpty if container is not empty
Lists containers
@param marker: start listing after this container name @param headers: extra headers to use when making the listing call @raises ResponseError
Lists public containers. Same interface as self.containers()
@raises ResponseError
Initialize a StorageObject instance
@param container: container name @param name: object name @param headers: initial headers to use to initialize the object
Load an object from swift
@param container: container name @param name: object name @raises ResponseError
Delete an object from swift
@param container: container name @param name: object name @raises ResponseError
Returns the url of the resource
@param path: path to append to the end of the URL
Make an HTTP request
@param method: HTTP method (GET, HEAD, POST, PUT, ...) @param path: path @raises ResponseError