Commit 0464890
Mirror PR #183 (CreateEntities API) in async client
Sync side was updated to use the new CreateEntities API in PR #183.
The async client has its own copy of _create_entity and _create_table,
so we need to mirror those changes manually:
- _AsyncODataClient._create_entity(): URL EntityDefinitions -> CreateEntities,
payload wrapped in Entities[0] array with @odata.type ComplexEntityMetadata
- _AsyncODataClient._create_table(): pass complex=True to _attribute_payload
calls so attribute metadata uses the Complex*Metadata variants required
by CreateEntities
The shared base (_odata_base.py) changes from PR #183 -- including the
_attribute_payload(complex=...) parameter and Complex*Metadata output --
flow into the async client automatically via inheritance.
This is a clean re-apply of the legitimate diff after reverting commit
c1f1237, which accidentally committed many untracked scratch/build files
alongside this change.
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>1 parent 2c12658 commit 0464890
1 file changed
Lines changed: 17 additions & 13 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
845 | 845 | | |
846 | 846 | | |
847 | 847 | | |
848 | | - | |
| 848 | + | |
849 | 849 | | |
850 | | - | |
851 | | - | |
852 | | - | |
853 | | - | |
854 | | - | |
855 | | - | |
856 | | - | |
857 | | - | |
858 | | - | |
859 | | - | |
| 850 | + | |
| 851 | + | |
| 852 | + | |
| 853 | + | |
| 854 | + | |
| 855 | + | |
| 856 | + | |
| 857 | + | |
| 858 | + | |
| 859 | + | |
| 860 | + | |
| 861 | + | |
| 862 | + | |
| 863 | + | |
860 | 864 | | |
861 | 865 | | |
862 | 866 | | |
| |||
1339 | 1343 | | |
1340 | 1344 | | |
1341 | 1345 | | |
1342 | | - | |
| 1346 | + | |
1343 | 1347 | | |
1344 | | - | |
| 1348 | + | |
1345 | 1349 | | |
1346 | 1350 | | |
1347 | 1351 | | |
| |||
0 commit comments