l.s.d.a.AzureBlobLease(object) : class documentation

Part of libcloud.storage.drivers.azure_blobs View Source View In Hierarchy

A class to help in leasing an azure blob and renewing the lease
Method __init__ @param driver: The Azure storage driver that is being used @type driver: L{AzureStorageDriver}
Method renew Renew the lease if it is older than a predefined time period
Method update_headers Update the lease id in the headers
Method __enter__ Undocumented
Method __exit__ Undocumented
def __init__(self, driver, object_path, use_lease): (source)
@param driver: The Azure storage driver that is being used
@type driver: L{AzureStorageDriver}

@param object_path: The path of the object we need to lease
@type object_path: C{str}

@param use_lease: Indicates if we must take a lease or not
@type use_lease: C{bool}
def renew(self): (source)
Renew the lease if it is older than a predefined time period
def update_headers(self, headers): (source)
Update the lease id in the headers
def __enter__(self): (source)
Undocumented
def __exit__(self, type, value, traceback): (source)
Undocumented
API Documentation for libcloud, generated by pydoctor at 2013-03-28 10:45:49.