Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Storage] Some final touches #7156

Merged
merged 6 commits into from
Sep 10, 2019
Merged
Show file tree
Hide file tree
Changes from 5 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
21 changes: 21 additions & 0 deletions sdk/storage/azure-storage-blob/HISTORY.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,27 @@
# Change Log azure-storage-blob


## Version 12.0.0b3:

**New features**
- Added SAS support for snapshot and identity.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Missing:

  • Added support for append block from URL(synchronously) for append blobs.
  • Added support for update page from URL(synchronously) for page blobs.
  • Added support for client provided encryption key to numerous APIs.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

updated it.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remember to remove synchronously 😀
Added support for append block from URL for append blobs.
Added support for upload pages from URL for page blobs.
Added support for client provided encryption key to numerous APIs.

- Distributed tracing framework OpenCensus is now supported.
- Added support for append block from URL for append blobs.
- Added support for update page from URL for page blobs.
- Added support for client provided encryption key to numerous APIs.

**Dependency updates**
- Adopted [azure-core](https://pypi.org/project/azure-core/) 1.0.0b3
- If you later want to revert to previous versions of azure-storage-blob, or another Azure SDK
library requiring azure-core 1.0.0b1 or azure-core 1.0.0b2, you must explicitly install
the specific version of azure-core as well. For example:

`pip install azure-core==1.0.0b2 azure-storage-blob==12.0.0b2`

**Fixes and improvements**
- Fix where content-type was being added in the request when not mentioned explicitly.


## Version 12.0.0b2:

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

VERSION = "12.0.0b2"
VERSION = "12.0.0b3"
2 changes: 1 addition & 1 deletion sdk/storage/azure-storage-blob/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@
'tests.common'
]),
install_requires=[
"azure-core<2.0.0,>=1.0.0b2",
"azure-core<2.0.0,>=1.0.0b3",
"msrest>=0.5.0",
"cryptography>=2.1.4"
],
Expand Down
18 changes: 18 additions & 0 deletions sdk/storage/azure-storage-file/HISTORY.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,24 @@
# Change Log azure-storage-file


## Version 12.0.0b3:

**New features**
- Added FileSmbProperties REST Parity.
- Added support for PutRangeThroughURL.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

two statements above could be removed

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:shipit:


Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • Added upload_range_from_url API to writes the bytes from one Azure File endpoint into the specified range of another Azure File endpoint.
  • Added set_http_headers for directory_client, create_permission_for_share and get_permission_for_share APIs
  • Added optional parameters smb properties related parameters for create_file*, create_directory* related APIs and set_http_headers API
  • Updated get_properties for directory and file so that the response has SMB properties

**Dependency updates**
- Adopted [azure-core](https://pypi.org/project/azure-core/) 1.0.0b3
- If you later want to revert to previous versions of azure-storage-file, or another Azure SDK
library requiring azure-core 1.0.0b1 or azure-core 1.0.0b2, you must explicitly install
the specific version of azure-core as well. For example:

`pip install azure-core==1.0.0b2 azure-storage-file==12.0.0b2`

**Fixes and improvements**
- Fix where content-type was being added in the request when not mentioned explicitly.


## Version 12.0.0b2:

**Breaking changes**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -609,10 +609,7 @@ class SharePermission(Model):
}

_attribute_map = {
'permission': {'key': 'permission', 'type': 'str', 'xml': {'name': 'permission'}},
}

_xml_map = {
'permission': {'key': 'permission', 'type': 'str'},
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we should avoid manual edits to the generated files, right?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@zezha-msft - you're correct - this is a temporary workaround for the json/xml feature.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It seems we can avoid it once all libraries which depend on msrest upgraded on the next release

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's correct. This will be reverted as soon as msrest is updated.

}

def __init__(self, **kwargs):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -609,10 +609,7 @@ class SharePermission(Model):
}

_attribute_map = {
'permission': {'key': 'permission', 'type': 'str', 'xml': {'name': 'permission'}},
}

_xml_map = {
'permission': {'key': 'permission', 'type': 'str'},
}

def __init__(self, *, permission: str, **kwargs) -> None:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@
# license information.
# --------------------------------------------------------------------------

VERSION = '12.0.0b2'
VERSION = '12.0.0b3'
2 changes: 1 addition & 1 deletion sdk/storage/azure-storage-file/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@
'tests.common'
]),
install_requires=[
"azure-core<2.0.0,>=1.0.0b2",
"azure-core<2.0.0,>=1.0.0b3",
"msrest>=0.5.0",
"cryptography>=2.1.4"
],
Expand Down
11 changes: 11 additions & 0 deletions sdk/storage/azure-storage-queue/HISTORY.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,17 @@
# Change Log azure-storage-queue


## Version 12.0.0b3:

**Dependency updates**
- Adopted [azure-core](https://pypi.org/project/azure-core/) 1.0.0b3
- If you later want to revert to previous versions of azure-storage-queue, or another Azure SDK
library requiring azure-core 1.0.0b1 or azure-core 1.0.0b2, you must explicitly install
the specific version of azure-core as well. For example:

`pip install azure-core==1.0.0b2 azure-storage-queue==12.0.0b2`


## Version 12.0.0b2:

**Breaking changes**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@
# regenerated.
# --------------------------------------------------------------------------

VERSION = "12.0.0b2"
VERSION = "12.0.0b3"
2 changes: 1 addition & 1 deletion sdk/storage/azure-storage-queue/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@
'tests.common'
]),
install_requires=[
"azure-core<2.0.0,>=1.0.0b2",
"azure-core<2.0.0,>=1.0.0b3",
"msrest>=0.5.0",
"cryptography>=2.1.4"
],
Expand Down
3 changes: 3 additions & 0 deletions shared_requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -100,3 +100,6 @@ aiohttp>=3.0
aiodns>=2.0
python-dateutil>=2.8.0
six>=1.6
#override azure-storage-blob azure-core<2.0.0,>=1.0.0b3
#override azure-storage-queue azure-core<2.0.0,>=1.0.0b3
#override azure-storage-file azure-core<2.0.0,>=1.0.0b3