Skip to content

Commit

Permalink
Moved method on to the Items base model for bulk transaction request
Browse files Browse the repository at this point in the history
  • Loading branch information
Edward Keeble committed Oct 23, 2023
1 parent 2471233 commit 6e07fd3
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ class Items(BaseModel):
"""A group of STAC Item objects, in the form of a dictionary from Item.id -> Item."""

items: Dict[str, Any]
method: BulkTransactionMethod = BulkTransactionMethod.INSERT

def __iter__(self):
"""Return an iterable of STAC Item objects."""
Expand All @@ -47,7 +48,6 @@ def bulk_item_insert(
self,
items: Items,
chunk_size: Optional[int] = None,
method: BulkTransactionMethod = BulkTransactionMethod.INSERT,
**kwargs,
) -> str:
"""Bulk creation of items.
Expand All @@ -71,7 +71,6 @@ class AsyncBaseBulkTransactionsClient(abc.ABC):
async def bulk_item_insert(
self,
items: Items,
method: BulkTransactionMethod = BulkTransactionMethod.INSERT,
**kwargs,
) -> str:
"""Bulk creation of items.
Expand Down

0 comments on commit 6e07fd3

Please sign in to comment.