Skip to content

Commit a281357

Browse files
committed
Bump version to 0.36.0
1 parent 3c71071 commit a281357

File tree

626 files changed

+25803
-22420
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

626 files changed

+25803
-22420
lines changed

ChangeLog.md

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,13 @@
22

33
> See [BreakingChanges](BreakingChanges.md) for a detailed list of API breaks.
44
5-
## Version X.X.X:
5+
## Version 0.36.0:
6+
7+
### Blob:
8+
- For Standard Storage Accounts only, added support for getting and setting the tier on an individual block blob.
69

710
### Table:
8-
- Fixed bug where inserting entity with an empty sting as RowKey raised error.
11+
- Fixed bug where inserting entity with an empty sting as RowKey or PartitionKey raised error.
912

1013
## Version 0.35.1:
1114

@@ -18,11 +21,6 @@
1821
- Support for 2017-04-17 REST version. Please see our REST API documentation and blogs for information about the related added features. If you are using the Storage Emulator, please update to Emulator version 5.2.
1922
- Fixed a bug where deserialization of service stats throws a TypeError when the service is unavailable.
2023

21-
### Blob:
22-
- For Standard Storage Accounts only, added support for getting and setting the tier on an individual block blob.
23-
24-
## Version X.X.X:
25-
2624
### Blob:
2725
- For Premium Accounts only, added support for getting and setting the tier on a page blob. The tier can also be set when creating or copying from an existing page blob.
2826
- create_from_* and and append_blob_from_* methods will return response_properties which contains the etag and last modified time.

azure/storage/_constants.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
import platform
1616

1717
__author__ = 'Microsoft Corp. <[email protected]>'
18-
__version__ = '0.35.1'
18+
__version__ = '0.36.0'
1919

2020
# x-ms-version for storage service.
2121
X_MS_VERSION = '2017-04-17'

azure/storage/_deserialization.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ def _parse_properties(response, result_class):
115115
attr = getattr(props, info[0])
116116
setattr(attr, info[1], info[2](value))
117117

118-
if props.blob_type == 'PageBlob' and props.blob_tier is not None:
118+
if hasattr(props, 'blob_type') and props.blob_type == 'PageBlob' and hasattr(props, 'blob_tier') and props.blob_tier is not None:
119119
props.blob_tier = _to_upper_str(props.blob_tier)
120120
return props
121121

doc/conf.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,9 +53,9 @@
5353
# built documents.
5454
#
5555
# The short X.Y version.
56-
version = '0.35.1'
56+
version = '0.36.0'
5757
# The full version, including alpha/beta/rc tags.
58-
release = '0.35.1'
58+
release = '0.36.0'
5959

6060
# The language for content autogenerated by Sphinx. Refer to documentation
6161
# for a list of supported languages.

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141

4242
setup(
4343
name='azure-storage',
44-
version='0.35.1',
44+
version='0.36.0',
4545
description='Microsoft Azure Storage Client Library for Python',
4646
long_description=open('README.rst', 'r').read(),
4747
license='Apache License 2.0',

tests/recordings/test_append_blob.test_append_blob_from_0_bytes.yaml

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -4,58 +4,58 @@ interactions:
44
headers:
55
Connection: [keep-alive]
66
Content-Length: ['0']
7-
User-Agent: [Azure-Storage/0.35.1 (Python CPython 3.6.1; Darwin 16.6.0)]
7+
User-Agent: [Azure-Storage/0.36.0 (Python CPython 3.6.1; Darwin 16.7.0)]
88
x-ms-blob-type: [AppendBlob]
9-
x-ms-client-request-id: [a93746cc-68f4-11e7-84ba-b8e8564491f6]
10-
x-ms-date: ['Sat, 15 Jul 2017 00:29:27 GMT']
9+
x-ms-client-request-id: [9676301e-8784-11e7-a62e-b8e8564491f6]
10+
x-ms-date: ['Tue, 22 Aug 2017 21:55:18 GMT']
1111
x-ms-version: ['2017-04-17']
1212
method: PUT
1313
uri: https://storagename.blob.core.windows.net/utcontainerb59f1281/blobb59f1281
1414
response:
1515
body: {string: ''}
1616
headers:
17-
Date: ['Sat, 15 Jul 2017 00:29:28 GMT']
18-
ETag: ['"0x8D4CB188E0207CD"']
19-
Last-Modified: ['Sat, 15 Jul 2017 00:29:28 GMT']
17+
Date: ['Tue, 22 Aug 2017 21:55:18 GMT']
18+
ETag: ['"0x8D4E9A87A9E238B"']
19+
Last-Modified: ['Tue, 22 Aug 2017 21:55:18 GMT']
2020
Server: [Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0]
2121
Transfer-Encoding: [chunked]
22-
x-ms-request-id: [07a0e5c6-0001-00d4-7101-fd1df4000000]
22+
x-ms-request-id: [80a9aa1e-0001-00e5-1691-1b4623000000]
2323
x-ms-request-server-encrypted: ['true']
2424
x-ms-version: ['2017-04-17']
2525
status: {code: 201, message: Created}
2626
- request:
2727
body: null
2828
headers:
2929
Connection: [keep-alive]
30-
User-Agent: [Azure-Storage/0.35.1 (Python CPython 3.6.1; Darwin 16.6.0)]
31-
x-ms-client-request-id: [a9572110-68f4-11e7-b84e-b8e8564491f6]
32-
x-ms-date: ['Sat, 15 Jul 2017 00:29:28 GMT']
30+
User-Agent: [Azure-Storage/0.36.0 (Python CPython 3.6.1; Darwin 16.7.0)]
31+
x-ms-client-request-id: [969b218a-8784-11e7-8578-b8e8564491f6]
32+
x-ms-date: ['Tue, 22 Aug 2017 21:55:19 GMT']
3333
x-ms-range: [bytes=0-33554431]
3434
x-ms-version: ['2017-04-17']
3535
method: GET
3636
uri: https://storagename.blob.core.windows.net/utcontainerb59f1281/blobb59f1281
3737
response:
3838
body: {string: "\uFEFF<?xml version=\"1.0\" encoding=\"utf-8\"?><Error><Code>InvalidRange</Code><Message>The\
39-
\ range specified is invalid for the current size of the resource.\nRequestId:07a0e5e6-0001-00d4-0c01-fd1df4000000\n\
40-
Time:2017-07-15T00:29:28.7981699Z</Message></Error>"}
39+
\ range specified is invalid for the current size of the resource.\nRequestId:80a9aa47-0001-00e5-3591-1b4623000000\n\
40+
Time:2017-08-22T21:55:18.7787740Z</Message></Error>"}
4141
headers:
4242
Content-Length: ['249']
4343
Content-Range: [bytes */0]
4444
Content-Type: [application/xml]
45-
Date: ['Sat, 15 Jul 2017 00:29:28 GMT']
45+
Date: ['Tue, 22 Aug 2017 21:55:18 GMT']
4646
Server: [Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0]
4747
Vary: [Origin]
48-
x-ms-request-id: [07a0e5e6-0001-00d4-0c01-fd1df4000000]
48+
x-ms-request-id: [80a9aa47-0001-00e5-3591-1b4623000000]
4949
x-ms-version: ['2017-04-17']
5050
status: {code: 416, message: The range specified is invalid for the current size
5151
of the resource.}
5252
- request:
5353
body: null
5454
headers:
5555
Connection: [keep-alive]
56-
User-Agent: [Azure-Storage/0.35.1 (Python CPython 3.6.1; Darwin 16.6.0)]
57-
x-ms-client-request-id: [a95d1d0c-68f4-11e7-9810-b8e8564491f6]
58-
x-ms-date: ['Sat, 15 Jul 2017 00:29:28 GMT']
56+
User-Agent: [Azure-Storage/0.36.0 (Python CPython 3.6.1; Darwin 16.7.0)]
57+
x-ms-client-request-id: [96a1b180-8784-11e7-9d9d-b8e8564491f6]
58+
x-ms-date: ['Tue, 22 Aug 2017 21:55:19 GMT']
5959
x-ms-version: ['2017-04-17']
6060
method: GET
6161
uri: https://storagename.blob.core.windows.net/utcontainerb59f1281/blobb59f1281
@@ -65,16 +65,16 @@ interactions:
6565
Accept-Ranges: [bytes]
6666
Content-Length: ['0']
6767
Content-Type: [application/octet-stream]
68-
Date: ['Sat, 15 Jul 2017 00:29:28 GMT']
69-
ETag: ['"0x8D4CB188E0207CD"']
70-
Last-Modified: ['Sat, 15 Jul 2017 00:29:28 GMT']
68+
Date: ['Tue, 22 Aug 2017 21:55:18 GMT']
69+
ETag: ['"0x8D4E9A87A9E238B"']
70+
Last-Modified: ['Tue, 22 Aug 2017 21:55:18 GMT']
7171
Server: [Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0]
7272
Vary: [Origin]
7373
x-ms-blob-committed-block-count: ['0']
7474
x-ms-blob-type: [AppendBlob]
7575
x-ms-lease-state: [available]
7676
x-ms-lease-status: [unlocked]
77-
x-ms-request-id: [07a0e5fb-0001-00d4-1e01-fd1df4000000]
77+
x-ms-request-id: [80a9aa61-0001-00e5-4a91-1b4623000000]
7878
x-ms-server-encrypted: ['true']
7979
x-ms-version: ['2017-04-17']
8080
status: {code: 200, message: OK}

tests/recordings/test_append_blob.test_append_blob_from_bytes.yaml

Lines changed: 28 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -4,22 +4,22 @@ interactions:
44
headers:
55
Connection: [keep-alive]
66
Content-Length: ['0']
7-
User-Agent: [Azure-Storage/0.35.1 (Python CPython 3.6.1; Darwin 16.6.0)]
7+
User-Agent: [Azure-Storage/0.36.0 (Python CPython 3.6.1; Darwin 16.7.0)]
88
x-ms-blob-type: [AppendBlob]
9-
x-ms-client-request-id: [a991647e-68f4-11e7-bf92-b8e8564491f6]
10-
x-ms-date: ['Sat, 15 Jul 2017 00:29:28 GMT']
9+
x-ms-client-request-id: [96f3c100-8784-11e7-904c-b8e8564491f6]
10+
x-ms-date: ['Tue, 22 Aug 2017 21:55:19 GMT']
1111
x-ms-version: ['2017-04-17']
1212
method: PUT
1313
uri: https://storagename.blob.core.windows.net/utcontainer927f11f2/blob927f11f2
1414
response:
1515
body: {string: ''}
1616
headers:
17-
Date: ['Sat, 15 Jul 2017 00:29:28 GMT']
18-
ETag: ['"0x8D4CB188E5C4656"']
19-
Last-Modified: ['Sat, 15 Jul 2017 00:29:29 GMT']
17+
Date: ['Tue, 22 Aug 2017 21:55:19 GMT']
18+
ETag: ['"0x8D4E9A87B0F97D2"']
19+
Last-Modified: ['Tue, 22 Aug 2017 21:55:19 GMT']
2020
Server: [Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0]
2121
Transfer-Encoding: [chunked]
22-
x-ms-request-id: [db81f098-0001-0044-6101-fd88b8000000]
22+
x-ms-request-id: [883b1127-0001-0059-7091-1b5152000000]
2323
x-ms-request-server-encrypted: ['true']
2424
x-ms-version: ['2017-04-17']
2525
status: {code: 201, message: Created}
@@ -28,34 +28,34 @@ interactions:
2828
headers:
2929
Connection: [keep-alive]
3030
Content-Length: ['26']
31-
User-Agent: [Azure-Storage/0.35.1 (Python CPython 3.6.1; Darwin 16.6.0)]
32-
x-ms-client-request-id: [a9a668c6-68f4-11e7-b801-b8e8564491f6]
33-
x-ms-date: ['Sat, 15 Jul 2017 00:29:28 GMT']
31+
User-Agent: [Azure-Storage/0.36.0 (Python CPython 3.6.1; Darwin 16.7.0)]
32+
x-ms-client-request-id: [9709c728-8784-11e7-a29b-b8e8564491f6]
33+
x-ms-date: ['Tue, 22 Aug 2017 21:55:19 GMT']
3434
x-ms-version: ['2017-04-17']
3535
method: PUT
3636
uri: https://storagename.blob.core.windows.net/utcontainer927f11f2/blob927f11f2?comp=appendblock
3737
response:
3838
body: {string: ''}
3939
headers:
4040
Content-MD5: [w/zT12GS5AB9+0lsymfhOw==]
41-
Date: ['Sat, 15 Jul 2017 00:29:28 GMT']
42-
ETag: ['"0x8D4CB188E6213CB"']
43-
Last-Modified: ['Sat, 15 Jul 2017 00:29:29 GMT']
41+
Date: ['Tue, 22 Aug 2017 21:55:19 GMT']
42+
ETag: ['"0x8D4E9A87B304538"']
43+
Last-Modified: ['Tue, 22 Aug 2017 21:55:19 GMT']
4444
Server: [Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0]
4545
Transfer-Encoding: [chunked]
4646
x-ms-blob-append-offset: ['0']
4747
x-ms-blob-committed-block-count: ['1']
48-
x-ms-request-id: [db81f0a7-0001-0044-6c01-fd88b8000000]
48+
x-ms-request-id: [883b113f-0001-0059-0191-1b5152000000]
4949
x-ms-request-server-encrypted: ['true']
5050
x-ms-version: ['2017-04-17']
5151
status: {code: 201, message: Created}
5252
- request:
5353
body: null
5454
headers:
5555
Connection: [keep-alive]
56-
User-Agent: [Azure-Storage/0.35.1 (Python CPython 3.6.1; Darwin 16.6.0)]
57-
x-ms-client-request-id: [a9ac7fca-68f4-11e7-868c-b8e8564491f6]
58-
x-ms-date: ['Sat, 15 Jul 2017 00:29:28 GMT']
56+
User-Agent: [Azure-Storage/0.36.0 (Python CPython 3.6.1; Darwin 16.7.0)]
57+
x-ms-client-request-id: [972a1f3e-8784-11e7-884c-b8e8564491f6]
58+
x-ms-date: ['Tue, 22 Aug 2017 21:55:19 GMT']
5959
x-ms-version: ['2017-04-17']
6060
method: HEAD
6161
uri: https://storagename.blob.core.windows.net/utcontainer927f11f2/blob927f11f2
@@ -65,26 +65,26 @@ interactions:
6565
Accept-Ranges: [bytes]
6666
Content-Length: ['26']
6767
Content-Type: [application/octet-stream]
68-
Date: ['Sat, 15 Jul 2017 00:29:28 GMT']
69-
ETag: ['"0x8D4CB188E6213CB"']
70-
Last-Modified: ['Sat, 15 Jul 2017 00:29:29 GMT']
68+
Date: ['Tue, 22 Aug 2017 21:55:19 GMT']
69+
ETag: ['"0x8D4E9A87B304538"']
70+
Last-Modified: ['Tue, 22 Aug 2017 21:55:19 GMT']
7171
Server: [Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0]
7272
Vary: [Origin]
7373
x-ms-blob-committed-block-count: ['1']
7474
x-ms-blob-type: [AppendBlob]
7575
x-ms-lease-state: [available]
7676
x-ms-lease-status: [unlocked]
77-
x-ms-request-id: [db81f0b4-0001-0044-7801-fd88b8000000]
77+
x-ms-request-id: [883b1171-0001-0059-2e91-1b5152000000]
7878
x-ms-server-encrypted: ['true']
7979
x-ms-version: ['2017-04-17']
8080
status: {code: 200, message: OK}
8181
- request:
8282
body: null
8383
headers:
8484
Connection: [keep-alive]
85-
User-Agent: [Azure-Storage/0.35.1 (Python CPython 3.6.1; Darwin 16.6.0)]
86-
x-ms-client-request-id: [a9b42e9e-68f4-11e7-9805-b8e8564491f6]
87-
x-ms-date: ['Sat, 15 Jul 2017 00:29:28 GMT']
85+
User-Agent: [Azure-Storage/0.36.0 (Python CPython 3.6.1; Darwin 16.7.0)]
86+
x-ms-client-request-id: [972fd8f4-8784-11e7-871d-b8e8564491f6]
87+
x-ms-date: ['Tue, 22 Aug 2017 21:55:20 GMT']
8888
x-ms-range: [bytes=0-33554431]
8989
x-ms-version: ['2017-04-17']
9090
method: GET
@@ -96,16 +96,16 @@ interactions:
9696
Content-Length: ['26']
9797
Content-Range: [bytes 0-25/26]
9898
Content-Type: [application/octet-stream]
99-
Date: ['Sat, 15 Jul 2017 00:29:28 GMT']
100-
ETag: ['"0x8D4CB188E6213CB"']
101-
Last-Modified: ['Sat, 15 Jul 2017 00:29:29 GMT']
99+
Date: ['Tue, 22 Aug 2017 21:55:19 GMT']
100+
ETag: ['"0x8D4E9A87B304538"']
101+
Last-Modified: ['Tue, 22 Aug 2017 21:55:19 GMT']
102102
Server: [Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0]
103103
Vary: [Origin]
104104
x-ms-blob-committed-block-count: ['1']
105105
x-ms-blob-type: [AppendBlob]
106106
x-ms-lease-state: [available]
107107
x-ms-lease-status: [unlocked]
108-
x-ms-request-id: [db81f0be-0001-0044-0201-fd88b8000000]
108+
x-ms-request-id: [883b117b-0001-0059-3591-1b5152000000]
109109
x-ms-server-encrypted: ['true']
110110
x-ms-version: ['2017-04-17']
111111
status: {code: 206, message: Partial Content}

0 commit comments

Comments
 (0)