Skip to content

Commit d5115b4

Browse files
[Tables] Release prep (Azure#19026)
1 parent 19e35d6 commit d5115b4

File tree

8 files changed

+18
-12
lines changed

8 files changed

+18
-12
lines changed

sdk/tables/azure-data-tables/CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Release History
22

3-
## 12.0.0 (unreleased)
3+
## 12.0.0 (2021-06-08)
44
**Breaking**
55
* 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)
66
* `TableClient.create_table` now returns an instance of `TableItem`.

sdk/tables/azure-data-tables/azure/data/tables/_base_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
# license information.
55
# --------------------------------------------------------------------------
66

7-
from typing import Dict, Optional, Any, List, Mapping
7+
from typing import Dict, Optional, Any, List, Mapping, Union
88
from uuid import uuid4
99
try:
1010
from urllib.parse import parse_qs, quote, urlparse

sdk/tables/azure-data-tables/azure/data/tables/_models.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -377,10 +377,18 @@ def __init__(self, **kwargs):
377377

378378
def __or__(self, other):
379379
# type: (TableSasPermissions) -> TableSasPermissions
380+
"""
381+
:param other:
382+
:type other: :class:`~azure.data.tables.TableSasPermissions`
383+
"""
380384
return TableSasPermissions(_str=str(self) + str(other))
381385

382386
def __add__(self, other):
383387
# type: (TableSasPermissions) -> TableSasPermissions
388+
"""
389+
:param other:
390+
:type other: :class:`~azure.data.tables.TableSasPermissions`
391+
"""
384392
return TableSasPermissions(_str=str(self) + str(other))
385393

386394
def __str__(self):

sdk/tables/azure-data-tables/azure/data/tables/_table_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -369,7 +369,7 @@ def create_entity(
369369
"""Insert entity in a table.
370370
371371
:param entity: The properties for the table entity.
372-
:type entity: Dict[str,str] or :class:`~azure.data.tables.TableEntity`
372+
:type entity: Union[TableEntity, Mapping[str, Any]]
373373
:return: Dictionary mapping operation metadata returned from the service
374374
:rtype: Dict[str,str]
375375
:raises: :class:`~azure.core.exceptions.HttpResponseError`

sdk/tables/azure-data-tables/azure/data/tables/_table_shared_access_signature.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -95,10 +95,8 @@ def generate_table_sas(credential, table_name, **kwargs):
9595
Use the returned signature with the sas_token parameter of TableService.
9696
9797
98-
:param account_key: Account key
99-
:type account_key: str
100-
:param account_name: Account name
101-
:type account_name: str
98+
:param credential: Credential used for creating Shared Access Signature
99+
:type credential: :class:`~azure.core.credentials.AzureNamedKeyCredential`
102100
:param table_name: Table name
103101
:type table_name: str
104102
:keyword TableSasPermissions permission:

sdk/tables/azure-data-tables/azure/data/tables/_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@
44
# license information.
55
# --------------------------------------------------------------------------
66

7-
VERSION = "12.0.0b7"
7+
VERSION = "12.0.0"

sdk/tables/azure-data-tables/azure/data/tables/aio/_table_client_async.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -351,7 +351,7 @@ async def create_entity(
351351
"""Insert entity in a table.
352352
353353
:param entity: The properties for the table entity.
354-
:type entity: :class:`~azure.data.tables.TableEntity` or Dict[str,str]
354+
:type entity: Union[TableEntity, Mapping[str, Any]]
355355
:return: Dictionary mapping operation metadata returned from the service
356356
:rtype: Dict[str,str]
357357
:raises: :class:`~azure.core.exceptions.ResourceExistsError` If the entity already exists
@@ -468,7 +468,7 @@ def list_entities(self, **kwargs) -> AsyncItemPaged[TableEntity]:
468468
:keyword select: Specify desired properties of an entity to return.
469469
:paramtype select: str or List[str]
470470
:return: AsyncItemPaged[:class:`~azure.data.tables.TableEntity`]
471-
:rtype: ~azure.core.async_paging.AsyncItemPaged
471+
:rtype: ~azure.core.async_paging.AsyncItemPaged[TableEntity]
472472
:raises: :class:`~azure.core.exceptions.HttpResponseError`
473473
474474
.. admonition:: Example:
@@ -509,7 +509,7 @@ def query_entities(
509509
:keyword parameters: Dictionary for formatting query with additional, user defined parameters
510510
:paramtype parameters: Dict[str, Any]
511511
:return: AsyncItemPaged[:class:`~azure.data.tables.TableEntity`]
512-
:rtype: ~azure.core.async_paging.AsyncItemPaged
512+
:rtype: ~azure.core.async_paging.AsyncItemPaged[TableEntity]
513513
:raises: :class:`~azure.core.exceptions.HttpResponseError`
514514
515515
.. admonition:: Example:

sdk/tables/azure-data-tables/setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@
6060
author_email='ascl@microsoft.com',
6161
url='https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/table/azure-table',
6262
classifiers=[
63-
"Development Status :: 4 - Beta",
63+
"Development Status :: 5 - Production/Stable",
6464
'Programming Language :: Python',
6565
'Programming Language :: Python :: 2',
6666
'Programming Language :: Python :: 2.7',

0 commit comments

Comments
 (0)