Skip to content

Commit 544dc6f

Browse files
committed
[Tables] Release prep
Signed-off-by: Paul Van Eck <[email protected]>
1 parent 0f2ff43 commit 544dc6f

Some content is hidden

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

44 files changed

+2263
-10426
lines changed

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

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,16 @@
11
# Release History
22

3-
## 12.7.0b1 (Unreleased)
3+
## 12.7.0 (Unreleased)
44

55
### Features Added
6-
* Added to support customized encoding and decoding in entity CRUD operations.
7-
* Added to support Entity property in Tuple and Enum types.
8-
* Added to support flatten Entity metadata in entity deserialization by passing kwarg `flatten_result_entity` when creating clients.
6+
97
* Added support for configuring custom audiences for `TokenCredential` authentication when initializing a `TableClient` or `TableServiceClient`. ([#40487](https://github.com/Azure/azure-sdk-for-python/pull/40487))
108

9+
### Breaking Changes
10+
1111
### Bugs Fixed
12-
* Fixed duplicate odata tag bug in encoder when Entity property has "@odata.type" provided.
13-
* Fixed a bug in encoder that int32 and int64 are mapped to int32 when no "@odata.type" provided.
1412

1513
### Other Changes
16-
* Removed value range validation for Entity property in int64.
1714

1815
## 12.6.0 (2024-11-21)
1916

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

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Please note, this package is a replacement for [`azure-cosmosdb-tables`](https:/
1616
The Azure Tables SDK can access an Azure Storage or CosmosDB account.
1717

1818
### Prerequisites
19-
* Python 3.8 or later is required to use this package.
19+
* Python 3.9 or later is required to use this package.
2020
* You must have an [Azure subscription][azure_subscription] and either
2121
* an [Azure Storage account][azure_storage_account] or
2222
* an [Azure Cosmos Account][azure_cosmos_account].
@@ -450,5 +450,3 @@ This project has adopted the [Microsoft Open Source Code of Conduct][msft_oss_co
450450
[query_entities]:https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/tables/azure-data-tables/samples/sample_query_table.py#L75-L89
451451
[get_entity]:https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/tables/azure-data-tables/samples/sample_update_upsert_merge_entities.py#L67-L71
452452
[upsert_entity]:https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/tables/azure-data-tables/samples/sample_update_upsert_merge_entities.py#L155-L163
453-
454-

sdk/tables/azure-data-tables/assets.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22
"AssetsRepo": "Azure/azure-sdk-assets",
33
"AssetsRepoPrefixPath": "python",
44
"TagPrefix": "python/tables/azure-data-tables",
5-
"Tag": "python/tables/azure-data-tables_48a9914a75"
5+
"Tag": "python/tables/azure-data-tables_4b2225ae2f"
66
}

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ class AzureSigningError(ClientAuthenticationError):
2626
"""
2727
Represents a fatal error when attempting to sign a request.
2828
In general, the cause of this exception is user error. For example, the given account key is not valid.
29-
Please visit https://learn.microsoft.com/azure/storage/common/storage-create-storage-account for more info.
29+
Please visit https://learn.microsoft.com/en-us/azure/storage/common/storage-create-storage-account for more info.
3030
"""
3131

3232

@@ -160,8 +160,8 @@ def _get_canonicalized_resource_query(self, request):
160160
class BearerTokenChallengePolicy(BearerTokenCredentialPolicy):
161161
"""Adds a bearer token Authorization header to requests, for the tenant provided in authentication challenges.
162162
163-
See https://learn.microsoft.com/azure/active-directory/develop/claims-challenge for documentation on AAD
164-
authentication challenges.
163+
See https://learn.microsoft.com/azure/active-directory/develop/claims-challenge for documentation on Microsoft
164+
Entra authentication challenges.
165165
166166
:param credential: The credential.
167167
:type credential: ~azure.core.TokenCredential

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

Lines changed: 1 addition & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
import hmac
99
from datetime import timezone
1010
from urllib.parse import ParseResult
11-
from typing import Optional, Tuple, List, Dict, Any, Union, cast
11+
from typing import Optional, Tuple, List
1212

1313

1414
def _to_str(value):
@@ -85,51 +85,3 @@ def _get_account(parsed_url: ParseResult) -> Tuple[List[str], Optional[str]]:
8585
account = parsed_url.netloc.split(".table.core.")
8686
account_name = account[0] if len(account) > 1 else None
8787
return account, account_name
88-
89-
90-
def _prepare_key(key: Union[str, int, float, None]) -> str:
91-
"""Duplicate the single quote char to escape.
92-
93-
:param str key: The entity PartitionKey or RowKey value in table entity.
94-
:return: The entity PartitionKey or RowKey value in table entity.
95-
:rtype: str
96-
"""
97-
try:
98-
return cast(str, key).replace("'", "''")
99-
except (AttributeError, TypeError) as exc:
100-
raise TypeError("PartitionKey or RowKey must be of type string.") from exc
101-
102-
103-
def _get_enum_value(value):
104-
if value is None or value in ["None", ""]:
105-
return None
106-
try:
107-
return value.value
108-
except AttributeError:
109-
return value
110-
111-
112-
def _normalize_headers(headers):
113-
normalized = {}
114-
for key, value in headers.items():
115-
if key.startswith("x-ms-"):
116-
key = key[5:]
117-
normalized[key.lower().replace("-", "_")] = _get_enum_value(value)
118-
return normalized
119-
120-
121-
def _return_headers_and_deserialized(_, deserialized, response_headers):
122-
return _normalize_headers(response_headers), deserialized
123-
124-
125-
def _trim_service_metadata(metadata: Dict[str, str], content: Optional[Dict[str, Any]] = None) -> Dict[str, Any]:
126-
result: Dict[str, Any] = {
127-
"date": metadata.pop("date", None),
128-
"etag": metadata.pop("etag", None),
129-
"version": metadata.pop("version", None),
130-
}
131-
preference = metadata.pop("preference_applied", None)
132-
if preference:
133-
result["preference_applied"] = preference
134-
result["content"] = content
135-
return result

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

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,5 +23,3 @@
2323
MIN_INT32 = -(2**31) # -2147483648
2424
MAX_INT64 = (2**63) - 1 # 9223372036854775807
2525
MIN_INT64 = -(2**63) # -9223372036854775808
26-
27-
_ERROR_VALUE_TOO_LARGE = "{0} is too large to be cast to type {1}."

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

Lines changed: 0 additions & 190 deletions
This file was deleted.

0 commit comments

Comments
 (0)