Part of libcloud.compute.base View Source View In Hierarchy
Known subclasses: libcloud.compute.drivers.bluebox.BlueboxNodeSize, libcloud.compute.drivers.cloudsigma.CloudSigmaNodeSize, libcloud.compute.drivers.elasticstack.ElasticStackNodeSize, libcloud.compute.drivers.opennebula.OpenNebulaNodeSize
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.compute.drivers.dummy import DummyNodeDriver >>> driver = DummyNodeDriver(0) >>> size = driver.list_sizes()[0] >>> size.ram 128 >>> size.bandwidth 500 >>> size.price 4