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