Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions sdk/storage/azure-storage-blob/HISTORY.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# Change Log azure-storage-blob

## Version 12.0.0:

**Breaking changes**

- NoRetry policy has been removed. Use keyword argument `retry_total=0` for no retries.

## Version 12.0.0b4:

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
from .blob_service_client import BlobServiceClient
from .lease import LeaseClient
from .download import StorageStreamDownloader
from ._shared.policies import ExponentialRetry, LinearRetry, NoRetry
from ._shared.policies import ExponentialRetry, LinearRetry
from ._shared.models import(
LocationMode,
ResourceTypes,
Expand Down Expand Up @@ -65,7 +65,6 @@
'UserDelegationKey',
'ExponentialRetry',
'LinearRetry',
'NoRetry',
'LocationMode',
'BlockState',
'StandardBlobTier',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -546,15 +546,6 @@ def send(self, request):
return response


class NoRetry(StorageRetryPolicy):

def __init__(self):
super(NoRetry, self).__init__(retry_total=0)

def increment(self, *args, **kwargs): # pylint: disable=unused-argument,arguments-differ
return False


class ExponentialRetry(StorageRetryPolicy):
"""Exponential retry."""

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -129,15 +129,6 @@ async def send(self, request):
return response


class NoRetry(AsyncStorageRetryPolicy):

def __init__(self):
super(NoRetry, self).__init__(retry_total=0)

def increment(self, *args, **kwargs): # pylint: disable=unused-argument,arguments-differ
return False


class ExponentialRetry(AsyncStorageRetryPolicy):
"""Exponential retry."""

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
# license information.
# --------------------------------------------------------------------------

from .._shared.policies_async import ExponentialRetry, LinearRetry, NoRetry
from .._shared.policies_async import ExponentialRetry, LinearRetry
from .._shared.models import(
LocationMode,
ResourceTypes,
Expand Down Expand Up @@ -55,7 +55,6 @@
'StorageErrorCode',
'ExponentialRetry',
'LinearRetry',
'NoRetry',
'LocationMode',
'BlockState',
'StandardBlobTier',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -159,4 +159,84 @@ interactions:
status:
code: 202
message: Accepted
- request:
body: null
headers:
Accept:
- '*/*'
Accept-Encoding:
- gzip, deflate
Connection:
- keep-alive
Content-Length:
- '0'
User-Agent:
- azsdk-python-storage-blob/12.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0)
x-ms-client-request-id:
- 7747f81c-ec78-11e9-b89b-b831b58100e8
x-ms-date:
- Fri, 11 Oct 2019 22:42:55 GMT
x-ms-version:
- '2019-02-02'
method: PUT
uri: https://blobstoragename.blob.core.windows.net/7d860a15?restype=container
response:
body:
string: ''
headers:
Content-Length:
- '0'
Date:
- Fri, 11 Oct 2019 22:42:55 GMT
ETag:
- '"0x8D74E9C5B7D4C43"'
Last-Modified:
- Fri, 11 Oct 2019 22:42:55 GMT
Server:
- Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0
x-ms-request-id:
- e1252138-201e-0048-4585-80d76b000000
x-ms-version:
- '2019-02-02'
status:
code: 201
message: Created
- request:
body: null
headers:
Accept:
- '*/*'
Accept-Encoding:
- gzip, deflate
Connection:
- keep-alive
Content-Length:
- '0'
User-Agent:
- azsdk-python-storage-blob/12.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0)
x-ms-client-request-id:
- 77696406-ec78-11e9-b716-b831b58100e8
x-ms-date:
- Fri, 11 Oct 2019 22:42:55 GMT
x-ms-version:
- '2019-02-02'
method: DELETE
uri: https://blobstoragename.blob.core.windows.net/7d860a15?restype=container
response:
body:
string: ''
headers:
Content-Length:
- '0'
Date:
- Fri, 11 Oct 2019 22:42:55 GMT
Server:
- Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0
x-ms-request-id:
- e1252187-201e-0048-0985-80d76b000000
x-ms-version:
- '2019-02-02'
status:
code: 202
message: Accepted
version: 1
Original file line number Diff line number Diff line change
Expand Up @@ -87,4 +87,88 @@ interactions:
- /17050f0f
- restype=container
- ''
- request:
body: null
headers:
User-Agent:
- azsdk-python-storage-blob/12.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0)
x-ms-client-request-id:
- 62330e10-ec78-11e9-a265-b831b58100e8
x-ms-date:
- Fri, 11 Oct 2019 22:42:19 GMT
x-ms-version:
- '2019-02-02'
method: PUT
uri: https://blobstoragename.blob.core.windows.net/17050f0f?restype=container
response:
body:
string: ''
headers:
? !!python/object/new:multidict._istr.istr
- Content-Length
: '0'
? !!python/object/new:multidict._istr.istr
- Date
: Fri, 11 Oct 2019 22:42:19 GMT
? !!python/object/new:multidict._istr.istr
- Etag
: '"0x8D74E9C465E6131"'
? !!python/object/new:multidict._istr.istr
- Last-Modified
: Fri, 11 Oct 2019 22:42:19 GMT
? !!python/object/new:multidict._istr.istr
- Server
: Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0
x-ms-request-id: 97182d73-c01e-0040-4a85-80cd64000000
x-ms-version: '2019-02-02'
status:
code: 201
message: Created
url: !!python/object/new:yarl.URL
state: !!python/tuple
- !!python/object/new:urllib.parse.SplitResult
- https
- pythonstoragelivetest.blob.core.windows.net
- /17050f0f
- restype=container
- ''
- request:
body: null
headers:
User-Agent:
- azsdk-python-storage-blob/12.0.0b4 Python/3.7.3 (Windows-10-10.0.18362-SP0)
x-ms-client-request-id:
- 624ab50c-ec78-11e9-b8dd-b831b58100e8
x-ms-date:
- Fri, 11 Oct 2019 22:42:20 GMT
x-ms-version:
- '2019-02-02'
method: DELETE
uri: https://blobstoragename.blob.core.windows.net/17050f0f?restype=container
response:
body:
string: ''
headers:
? !!python/object/new:multidict._istr.istr
- Content-Length
: '0'
? !!python/object/new:multidict._istr.istr
- Date
: Fri, 11 Oct 2019 22:42:19 GMT
? !!python/object/new:multidict._istr.istr
- Server
: Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0
x-ms-request-id: 97182d8f-c01e-0040-6085-80cd64000000
x-ms-version: '2019-02-02'
status:
code: 202
message: Accepted
url: !!python/object/new:yarl.URL
state: !!python/tuple
- !!python/object/new:urllib.parse.SplitResult
- https
- pythonstoragelivetest.blob.core.windows.net
- /17050f0f
- restype=container
- ''
version: 1
3 changes: 1 addition & 2 deletions sdk/storage/azure-storage-blob/tests/test_retry.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
LocationMode,
LinearRetry,
ExponentialRetry,
NoRetry
)

from testcase import (
Expand Down Expand Up @@ -141,7 +140,7 @@ def test_no_retry(self):
# Arrange
container_name = self.get_resource_name()
service = self._create_storage_service(
BlobServiceClient, self.settings, retry_policy=NoRetry())
BlobServiceClient, self.settings, retry_total=0)


# Force the create call to 'timeout' with a 408
Expand Down
3 changes: 1 addition & 2 deletions sdk/storage/azure-storage-blob/tests/test_retry_async.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
LocationMode,
LinearRetry,
ExponentialRetry,
NoRetry
)

from testcase import (
Expand Down Expand Up @@ -177,7 +176,7 @@ async def _test_no_retry_async(self):
# Arrange
container_name = self.get_resource_name()
service = self._create_storage_service(
BlobServiceClient, self.settings, retry_policy=NoRetry(), transport=AiohttpTestTransport())
BlobServiceClient, self.settings, retry_total=0, transport=AiohttpTestTransport())


# Force the create call to 'timeout' with a 408
Expand Down
6 changes: 6 additions & 0 deletions sdk/storage/azure-storage-file/HISTORY.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Change Log azure-storage-file

## Version 12.0.0:

**Breaking changes**

- NoRetry policy has been removed. Use keyword argument `retry_total=0` for no retries.

## Version 12.0.0b4:

**Breaking changes**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
from .directory_client import DirectoryClient
from .share_client import ShareClient
from .file_service_client import FileServiceClient
from ._shared.policies import ExponentialRetry, LinearRetry, NoRetry
from ._shared.policies import ExponentialRetry, LinearRetry
from ._shared.models import(
LocationMode,
ResourceTypes,
Expand Down Expand Up @@ -45,7 +45,6 @@
'FileServiceClient',
'ExponentialRetry',
'LinearRetry',
'NoRetry',
'LocationMode',
'ResourceTypes',
'AccountSasPermissions',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -546,15 +546,6 @@ def send(self, request):
return response


class NoRetry(StorageRetryPolicy):

def __init__(self):
super(NoRetry, self).__init__(retry_total=0)

def increment(self, *args, **kwargs): # pylint: disable=unused-argument,arguments-differ
return False


class ExponentialRetry(StorageRetryPolicy):
"""Exponential retry."""

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -129,15 +129,6 @@ async def send(self, request):
return response


class NoRetry(AsyncStorageRetryPolicy):

def __init__(self):
super(NoRetry, self).__init__(retry_total=0)

def increment(self, *args, **kwargs): # pylint: disable=unused-argument,arguments-differ
return False


class ExponentialRetry(AsyncStorageRetryPolicy):
"""Exponential retry."""

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
from .directory_client_async import DirectoryClient
from .share_client_async import ShareClient
from .file_service_client_async import FileServiceClient
from .._shared.policies_async import ExponentialRetry, LinearRetry, NoRetry
from .._shared.policies_async import ExponentialRetry, LinearRetry
from .._shared.models import (
LocationMode,
ResourceTypes,
Expand Down Expand Up @@ -40,7 +40,6 @@
'FileServiceClient',
'ExponentialRetry',
'LinearRetry',
'NoRetry',
'LocationMode',
'ResourceTypes',
'AccountSasPermissions',
Expand Down
6 changes: 6 additions & 0 deletions sdk/storage/azure-storage-queue/HISTORY.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Change Log azure-storage-queue

## Version 12.0.0:

**Breaking changes**

- NoRetry policy has been removed. Use keyword argument `retry_total=0` for no retries.

## Version 12.0.0b4:

**Breaking changes**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
from .version import VERSION
from .queue_client import QueueClient
from .queue_service_client import QueueServiceClient
from ._shared.policies import ExponentialRetry, LinearRetry, NoRetry
from ._shared.policies import ExponentialRetry, LinearRetry
from ._shared.models import(
LocationMode,
ResourceTypes,
Expand Down Expand Up @@ -44,7 +44,6 @@
'QueueServiceClient',
'ExponentialRetry',
'LinearRetry',
'NoRetry',
'LocationMode',
'ResourceTypes',
'AccountSasPermissions',
Expand Down
Loading