l.b.NodeSize(object) : class documentation

Part of libcloud.base View Source View In Hierarchy

Known subclasses: libcloud.drivers.cloudsigma.CloudSigmaNodeSize, libcloud.drivers.elastichosts.ElasticHostsNodeSize

A Base NodeSize class to derive from.

NodeSizes are objects which are typically returned a driver's list_sizes function. They contain a number of different parameters which define how big an image is.

The exact parameters available depends on the provider.

N.B. Where a parameter is "unlimited" (for example bandwidth in Amazon) this will be given as 0.

>>> from libcloud.drivers.dummy import DummyNodeDriver
>>> driver = DummyNodeDriver(0)
>>> size = driver.list_sizes()[0]
>>> size.ram
128
>>> size.bandwidth
500
>>> size.price
4
Method __init__ Undocumented
Method __repr__ Undocumented
def __init__(self, id, name, ram, disk, bandwidth, price, driver): (source)
Undocumented
def __repr__(self): (source)
Undocumented
API Documentation for libcloud, generated by pydoctor at 2012-07-15 18:44:33.