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

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

Represents an object (BLOB).
Method __init__ @param name: Object name (must be unique per container). @type name: C{str}
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)
@param name: Object name (must be unique per container).
@type  name: C{str}

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

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

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

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

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

@param driver: StorageDriver instance.
@type  driver: L{StorageDriver}
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 2013-04-20 21:40:42.