Skip to content

Commit 22bf937

Browse files
bambrizsimorenoh
andauthored
updating version for release 4.4.0 (Azure#30696)
* updating version for release 4.4.0 * remove initialheader kwargs * Update CHANGELOG.md --------- Co-authored-by: Simon Moreno <[email protected]>
1 parent 55de2d4 commit 22bf937

File tree

4 files changed

+28
-15
lines changed

4 files changed

+28
-15
lines changed

sdk/cosmos/azure-cosmos/CHANGELOG.md

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,9 @@
11
## Release History
22

3-
### 4.4.0b3 (Unreleased)
3+
### 4.4.0 (2023-06-09)
44

55
#### Features Added
6-
7-
#### Breaking Changes
8-
9-
#### Bugs Fixed
10-
11-
#### Other Changes
6+
- GA release of Patch API and Delete All Items By Partition Key
127

138
### 4.4.0b2 (2023-05-22)
149

@@ -24,7 +19,7 @@
2419
### 4.4.0b1 (2023-04-11)
2520

2621
#### Features Added
27-
- Added **preview** delete all items by partition key functionality. See [PR 29186](https://github.com/Azure/azure-sdk-for-python/pull/29186).
22+
- Added **preview** delete all items by partition key functionality. See [PR 29186](https://github.com/Azure/azure-sdk-for-python/pull/29186). For more information on Partition Key Delete, please see [Azure Cosmos DB Partition Key Delete](https://learn.microsoft.com/azure/cosmos-db/nosql/how-to-delete-by-partition-key?tabs=python-example).
2823
- Added **preview** partial document update (Patch API) functionality and container methods for patching items with operations. See [PR 29497](https://github.com/Azure/azure-sdk-for-python/pull/29497). For more information on Patch, please see [Azure Cosmos DB Partial Document Update](https://learn.microsoft.com/azure/cosmos-db/partial-document-update).
2924

3025
#### Bugs Fixed

sdk/cosmos/azure-cosmos/azure/cosmos/_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,4 @@
1919
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
2020
# SOFTWARE.
2121

22-
VERSION = "4.4.0b3"
22+
VERSION = "4.4.0"

sdk/cosmos/azure-cosmos/azure/cosmos/aio/_container.py

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -545,7 +545,6 @@ async def patch_item(
545545
:keyword str pre_trigger_include: trigger id to be used as pre operation trigger.
546546
:keyword str post_trigger_include: trigger id to be used as post operation trigger.
547547
:keyword str session_token: Token for use with Session consistency.
548-
:keyword dict[str,str] initial_headers: Initial headers to be sent as part of the request.
549548
:keyword str etag: An ETag value, or the wildcard character (*). Used to check if the resource
550549
has changed, and act according to the condition specified by the `match_condition` parameter.
551550
:keyword ~azure.core.MatchConditions match_condition: The match condition to use upon the etag.
@@ -815,11 +814,21 @@ async def delete_all_items_by_partition_key(
815814
partition_key: Union[str, int, float, bool],
816815
**kwargs: Any
817816
) -> None:
818-
"""Exposes an API to delete all items with a single partition key without the user having
819-
to explicitly call delete on each record in the partition key.
817+
"""The delete by partition key feature is an asynchronous, background operation that allows you to delete all
818+
documents with the same logical partition key value, using the Cosmos SDK. The delete by partition key
819+
operation is constrained to consume at most 10% of the total
820+
available RU/s on the container each second. This helps in limiting the resources used by
821+
this background task.
820822
821823
:param partition_key: Partition key for the items to be deleted.
822824
:type partition_key: Any
825+
:keyword str pre_trigger_include: trigger id to be used as pre operation trigger.
826+
:keyword str post_trigger_include: trigger id to be used as post operation trigger.
827+
:keyword str session_token: Token for use with Session consistency.
828+
:keyword str etag: An ETag value, or the wildcard character (*). Used to check if the resource
829+
has changed, and act according to the condition specified by the `match_condition` parameter.
830+
:keyword ~azure.core.MatchConditions match_condition: The match condition to use upon the etag.
831+
:keyword Callable response_hook: A callable invoked with the response metadata.
823832
:rtype: None
824833
"""
825834
request_options = _build_options(kwargs)

sdk/cosmos/azure-cosmos/azure/cosmos/container.py

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -593,7 +593,6 @@ def patch_item(
593593
:keyword str pre_trigger_include: trigger id to be used as pre operation trigger.
594594
:keyword str post_trigger_include: trigger id to be used as post operation trigger.
595595
:keyword str session_token: Token for use with Session consistency.
596-
:keyword dict[str,str] initial_headers: Initial headers to be sent as part of the request.
597596
:keyword str etag: An ETag value, or the wildcard character (*). Used to check if the resource
598597
has changed, and act according to the condition specified by the `match_condition` parameter.
599598
:keyword ~azure.core.MatchConditions match_condition: The match condition to use upon the etag.
@@ -870,11 +869,21 @@ def delete_all_items_by_partition_key(
870869
partition_key: Union[str, int, float, bool],
871870
**kwargs: Any
872871
) -> None:
873-
"""Exposes an API to delete all items with a single partition key without the user having
874-
to explicitly call delete on each record in the partition key.
872+
"""The delete by partition key feature is an asynchronous, background operation that allows you to delete all
873+
documents with the same logical partition key value, using the Cosmos SDK. The delete by partition key
874+
operation is constrained to consume at most 10% of the total
875+
available RU/s on the container each second. This helps in limiting the resources used by
876+
this background task.
875877
876878
:param partition_key: Partition key for the items to be deleted.
877879
:type partition_key: Any
880+
:keyword str pre_trigger_include: trigger id to be used as pre operation trigger.
881+
:keyword str post_trigger_include: trigger id to be used as post operation trigger.
882+
:keyword str session_token: Token for use with Session consistency.
883+
:keyword str etag: An ETag value, or the wildcard character (*). Used to check if the resource
884+
has changed, and act according to the condition specified by the `match_condition` parameter.
885+
:keyword ~azure.core.MatchConditions match_condition: The match condition to use upon the etag.
886+
:keyword Callable response_hook: A callable invoked with the response metadata.
878887
:rtype: None
879888
"""
880889
request_options = build_options(kwargs)

0 commit comments

Comments
 (0)