@@ -69,7 +69,7 @@ def __init__( # pylint: disable=missing-client-constructor-parameter-credential
6969 api_version : Optional [str ] = None ,
7070 ** kwargs : Any ,
7171 ) -> None :
72- """Create TableClient from a Credential.
72+ """Creates TableClient from a Credential.
7373
7474 :param str endpoint: A URL to an Azure Tables account.
7575 :param str table_name: The table name.
@@ -356,6 +356,7 @@ async def delete_entity(
356356 ) -> None :
357357 """Deletes the specified entity in a table. No error will be raised if
358358 the entity or PartitionKey-RowKey pairing is not found.
359+
359360 :param entity: The entity to delete.
360361 :type entity: Custom entity type
361362 :keyword etag: Etag of the entity.
@@ -400,7 +401,7 @@ async def delete_entity(self, *args: Union[EntityType, str, T], **kwargs: Any) -
400401 table = self .table_name ,
401402 partition_key = encoder .prepare_key (partition_key ),
402403 row_key = encoder .prepare_key (row_key ),
403- etag = etag ,
404+ etag = etag or "*" ,
404405 match_condition = match_condition ,
405406 ** kwargs ,
406407 )
@@ -413,7 +414,7 @@ async def delete_entity(self, *args: Union[EntityType, str, T], **kwargs: Any) -
413414 async def create_entity (
414415 self , entity : EntityType , * , encoder : TableEntityEncoderABC [EntityType ] = DEFAULT_ENCODER , ** kwargs
415416 ) -> Dict [str , Any ]:
416- """Inserts entity in a table.
417+ """Inserts an entity in a table.
417418
418419 :param entity: The properties for the table entity.
419420 :type entity: ~azure.data.tables.TableEntity or Mapping
@@ -437,7 +438,7 @@ async def create_entity(
437438
438439 @overload
439440 async def create_entity (self , entity : T , * , encoder : TableEntityEncoderABC [T ], ** kwargs ) -> Dict [str , Any ]:
440- """Insert entity in a table.
441+ """Inserts an entity in a table.
441442 :param entity: The properties for the table entity.
442443 :type entity: Custom entity type
443444 :keyword encoder: The encoder used to serialize the outgoing Tables entities.
@@ -483,7 +484,7 @@ async def update_entity(
483484 encoder : TableEntityEncoderABC [EntityType ] = DEFAULT_ENCODER ,
484485 ** kwargs ,
485486 ) -> Dict [str , Any ]:
486- """Updates an entity in a table.
487+ """Updates an already existing entity in a table.
487488
488489 :param entity: The properties for the table entity.
489490 :type entity: ~azure.data.tables.TableEntity or dict[str, Any]
@@ -522,7 +523,8 @@ async def update_entity(
522523 encoder : TableEntityEncoderABC [T ],
523524 ** kwargs ,
524525 ) -> Dict [str , Any ]:
525- """Update entity in a table.
526+ """Updates an already existing entity in a table.
527+
526528 :param entity: The properties for the table entity.
527529 :type entity: Custom entity type
528530 :param mode: Merge or Replace entity.
@@ -745,7 +747,7 @@ async def upsert_entity(
745747 encoder : TableEntityEncoderABC [EntityType ] = DEFAULT_ENCODER ,
746748 ** kwargs ,
747749 ) -> Dict [str , Any ]:
748- """Updates (merge or replace) an entity into a table.
750+ """Updates (merge or replace) or inserts an entity into a table.
749751
750752 :param entity: The properties for the table entity.
751753 :type entity: ~azure.data.tables.TableEntity or dict[str, Any]
@@ -772,7 +774,8 @@ async def upsert_entity(
772774 async def upsert_entity (
773775 self , entity : T , mode : Union [str , UpdateMode ] = UpdateMode .MERGE , * , encoder : TableEntityEncoderABC [T ], ** kwargs
774776 ) -> Dict [str , Any ]:
775- """Updates (merge or replace) an entity into a table.
777+ """Updates (merge or replace) or inserts an entity into a table.
778+
776779 :param entity: The properties for the table entity.
777780 :type entity: Custom entity type
778781 :param mode: Merge or Replace entity.
0 commit comments