l.s.b.Object(object) : class documentation

Part of libcloud.storage.base View Source View In Hierarchy

Represents an object (BLOB).
Method __init__ @type name: C{str} @param name: Object name (must be unique per container).
Method get_cdn_url Undocumented
Method enable_cdn Undocumented
Method download Undocumented
Method as_stream Undocumented
Method delete Undocumented
Method __repr__ Undocumented
def __init__(self, name, size, hash, extra, meta_data, container, driver): (source)
@type name: C{str}
@param name: Object name (must be unique per container).

@type size: C{int}
@param size: Object size in bytes.

@type hash: C{string}
@param hash Object hash.

@type container: C{Container}
@param container: Object container.

@type extra: C{dict}
@param extra: Extra attributes.

@type meta_data: C{dict}
@param meta_data: Optional object meta data.

@type driver: C{StorageDriver}
@param driver: StorageDriver instance.
def get_cdn_url(self): (source)
Undocumented
def enable_cdn(self, **kwargs): (source)
Undocumented
def download(self, destination_path, overwrite_existing=False, delete_on_failure=True): (source)
Undocumented
def as_stream(self, chunk_size=None): (source)
Undocumented
def delete(self): (source)
Undocumented
def __repr__(self): (source)
Undocumented
API Documentation for libcloud, generated by pydoctor at 2012-11-19 11:53:43.