l.c.g.BaseObject(object) : class documentation

Part of libcloud.common.gandi View Source View In Hierarchy

Known subclasses: libcloud.common.gandi.Disk, libcloud.common.gandi.IPAddress, libcloud.common.gandi.NetworkInterface

Base class for objects not conventional
Method __init__ Undocumented
Method get_uuid Unique hash for this object
def __init__(self, id, state, driver): (source)
Undocumented
def get_uuid(self): (source)
Unique hash for this object

@return: C{string}

The hash is a function of an SHA1 hash of prefix, the object's ID and
its driver which means that it should be unique between all
interfaces.
TODO : to review
>>> from libcloud.compute.drivers.dummy import DummyNodeDriver
>>> driver = DummyNodeDriver(0)
>>> vif = driver.create_interface()
>>> vif.get_uuid()
'd3748461511d8b9b0e0bfa0d4d3383a619a2bb9f'

Note, for example, that this example will always produce the
same UUID!
API Documentation for libcloud, generated by pydoctor at 2013-07-01 17:02:02.