Skip to content

Commit

Permalink
[Tables] Release prep (#19026)
Browse files Browse the repository at this point in the history
  • Loading branch information
seankane-msft authored Jun 7, 2021
1 parent 19e35d6 commit d5115b4
Show file tree
Hide file tree
Showing 8 changed files with 18 additions and 12 deletions.
2 changes: 1 addition & 1 deletion sdk/tables/azure-data-tables/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Release History

## 12.0.0 (unreleased)
## 12.0.0 (2021-06-08)
**Breaking**
* EdmType.Binary data in entities will now be deserialized as `bytes` in Python 3 and `str` in Python 2, rather than an `EdmProperty` instance. Likewise on serialization, `bytes` in Python 3 and `str` in Python 2 will be interpreted as binary (this is unchanged for Python 3, but breaking for Python 2, where `str` was previously serialized as EdmType.String)
* `TableClient.create_table` now returns an instance of `TableItem`.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
# license information.
# --------------------------------------------------------------------------

from typing import Dict, Optional, Any, List, Mapping
from typing import Dict, Optional, Any, List, Mapping, Union
from uuid import uuid4
try:
from urllib.parse import parse_qs, quote, urlparse
Expand Down
8 changes: 8 additions & 0 deletions sdk/tables/azure-data-tables/azure/data/tables/_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -377,10 +377,18 @@ def __init__(self, **kwargs):

def __or__(self, other):
# type: (TableSasPermissions) -> TableSasPermissions
"""
:param other:
:type other: :class:`~azure.data.tables.TableSasPermissions`
"""
return TableSasPermissions(_str=str(self) + str(other))

def __add__(self, other):
# type: (TableSasPermissions) -> TableSasPermissions
"""
:param other:
:type other: :class:`~azure.data.tables.TableSasPermissions`
"""
return TableSasPermissions(_str=str(self) + str(other))

def __str__(self):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -369,7 +369,7 @@ def create_entity(
"""Insert entity in a table.
:param entity: The properties for the table entity.
:type entity: Dict[str,str] or :class:`~azure.data.tables.TableEntity`
:type entity: Union[TableEntity, Mapping[str, Any]]
:return: Dictionary mapping operation metadata returned from the service
:rtype: Dict[str,str]
:raises: :class:`~azure.core.exceptions.HttpResponseError`
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -95,10 +95,8 @@ def generate_table_sas(credential, table_name, **kwargs):
Use the returned signature with the sas_token parameter of TableService.
:param account_key: Account key
:type account_key: str
:param account_name: Account name
:type account_name: str
:param credential: Credential used for creating Shared Access Signature
:type credential: :class:`~azure.core.credentials.AzureNamedKeyCredential`
:param table_name: Table name
:type table_name: str
:keyword TableSasPermissions permission:
Expand Down
2 changes: 1 addition & 1 deletion sdk/tables/azure-data-tables/azure/data/tables/_version.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@
# license information.
# --------------------------------------------------------------------------

VERSION = "12.0.0b7"
VERSION = "12.0.0"
Original file line number Diff line number Diff line change
Expand Up @@ -351,7 +351,7 @@ async def create_entity(
"""Insert entity in a table.
:param entity: The properties for the table entity.
:type entity: :class:`~azure.data.tables.TableEntity` or Dict[str,str]
:type entity: Union[TableEntity, Mapping[str, Any]]
:return: Dictionary mapping operation metadata returned from the service
:rtype: Dict[str,str]
:raises: :class:`~azure.core.exceptions.ResourceExistsError` If the entity already exists
Expand Down Expand Up @@ -468,7 +468,7 @@ def list_entities(self, **kwargs) -> AsyncItemPaged[TableEntity]:
:keyword select: Specify desired properties of an entity to return.
:paramtype select: str or List[str]
:return: AsyncItemPaged[:class:`~azure.data.tables.TableEntity`]
:rtype: ~azure.core.async_paging.AsyncItemPaged
:rtype: ~azure.core.async_paging.AsyncItemPaged[TableEntity]
:raises: :class:`~azure.core.exceptions.HttpResponseError`
.. admonition:: Example:
Expand Down Expand Up @@ -509,7 +509,7 @@ def query_entities(
:keyword parameters: Dictionary for formatting query with additional, user defined parameters
:paramtype parameters: Dict[str, Any]
:return: AsyncItemPaged[:class:`~azure.data.tables.TableEntity`]
:rtype: ~azure.core.async_paging.AsyncItemPaged
:rtype: ~azure.core.async_paging.AsyncItemPaged[TableEntity]
:raises: :class:`~azure.core.exceptions.HttpResponseError`
.. admonition:: Example:
Expand Down
2 changes: 1 addition & 1 deletion sdk/tables/azure-data-tables/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@
author_email='[email protected]',
url='https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/table/azure-table',
classifiers=[
"Development Status :: 4 - Beta",
"Development Status :: 5 - Production/Stable",
'Programming Language :: Python',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
Expand Down

0 comments on commit d5115b4

Please sign in to comment.