def __init__( self, account_url, # type: str credential=None, # type: Optional[Any] loop=None, # type: Any **kwargs # type: Any ): # type: (...) -> None kwargs['retry_policy'] = kwargs.get('retry_policy') or ExponentialRetry(**kwargs) super(QueueServiceClient, self).__init__( # type: ignore account_url, credential=credential, loop=loop, **kwargs) self._client = AzureQueueStorage(url=self.url, pipeline=self._pipeline, loop=loop) # type: ignore self._loop = loop
def __init__( self, queue_url, # type: str queue=None, # type: Optional[Union[QueueProperties, str]] credential=None, # type: Optional[Any] loop=None, # type: Any **kwargs # type: Any ): # type: (...) -> None kwargs["retry_policy"] = kwargs.get( "retry_policy") or ExponentialRetry(**kwargs) super(QueueClient, self).__init__(queue_url, queue=queue, credential=credential, loop=loop, **kwargs) self._client = AzureQueueStorage(self.url, pipeline=self._pipeline, loop=loop) # type: ignore self._loop = loop