Beispiel #1
0
    def __init__(self, client: AsyncBlobClient, duration: int):
        self._client = client
        self._duration = duration
        self.id = str(uuid4())
        self._lock = AsyncBlobLeaseClient(self._client, lease_id=self.id)

        self.account_name = self._client.account_name
        self.target = self._client.primary_hostname
        self.url = "{}://{}/{}/{}".format(
            self._client.scheme,
            self._client.primary_hostname,
            quote(self._client.container_name),
            quote(self._client.blob_name, safe='~/'),
        )
 def __init__(self, client: AsyncBlobClient, duration: int):
     self._client = client
     self._duration = duration
     self.id = str(uuid4())
     self._lock = AsyncBlobLeaseClient(self._client, lease_id=self.id)