l.c.b.StorageVolume(UuidMixin) : class documentation

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

A base StorageVolume class to derive from.
Method __init__ Undocumented
Method attach Attach this volume to a node.
Method detach Detach this volume from its node
Method destroy Destroy this storage volume.
Method __repr__ Undocumented

Inherited from UuidMixin:

Method get_uuid Unique hash for a node, node image, or node size
Method uuid Undocumented
def __init__(self, id, name, size, driver, extra=None): (source)
Undocumented
def attach(self, node, device=None): (source)
Attach this volume to a node.

@param      node: Node to attach volume to
@type       node: L{Node}

@param      device: Where the device is exposed,
                    e.g. '/dev/sdb (optional)
@type       device: C{str}

@returns C{bool}
def detach(self): (source)
Detach this volume from its node

@returns C{bool}
def destroy(self): (source)
Destroy this storage volume.

@returns C{bool}
def __repr__(self): (source)
Undocumented
API Documentation for libcloud, generated by pydoctor at 2013-07-01 17:02:02.