l.pricing : module documentation

Part of libcloud View Source

No module docstring
Function clear_pricing_data Undocumented
Function get_pricing_file_path Undocumented
Function get_pricing Return pricing for the provided driver.
Function set_pricing Populate the driver pricing dictionary.
Function get_size_price Return price for the provided size.
Function invalidate_pricing_cache Invalidate the cache for all the drivers.
Function invalidate_module_pricing_cache Invalidate the cache for the specified driver.
def clear_pricing_data(): (source)
Undocumented
def get_pricing_file_path(file_path=None): (source)
Undocumented
def get_pricing(driver_type, driver_name, pricing_file_path=None): (source)
Return pricing for the provided driver.
Parametersdriver_typeDriver type ('compute' or 'storage') (type: str)
driver_nameDriver name (type: str)
ReturnsDictionary with pricing where a key name is size ID and the value is a price. (type: dict)
def set_pricing(driver_type, driver_name, pricing): (source)
Populate the driver pricing dictionary.
Parametersdriver_typeDriver type ('compute' or 'storage') (type: str)
driver_nameDriver name (type: str)
pricingDictionary where a key is a size ID and a value is a price. (type: dict)
def get_size_price(driver_type, driver_name, size_id): (source)
Return price for the provided size.
Parametersdriver_typeDriver type ('compute' or 'storage') (type: str)
driver_nameDriver name (type: str)
size_idUnique size ID (can be an integer or a string - depends on the driver) (type: int/str)
ReturnsSize price. (type: int)
def invalidate_pricing_cache(): (source)
Invalidate the cache for all the drivers.
def invalidate_module_pricing_cache(driver_type, driver_name): (source)
Invalidate the cache for the specified driver.
Parametersdriver_typeDriver type ('compute' or 'storage') (type: str)
driver_nameDriver name (type: str)
API Documentation for libcloud, generated by pydoctor at 2012-07-15 18:49:10.