@@ -1152,6 +1152,48 @@ class BulkCreateActionVariableBody(BaseModel):
11521152 action_on_existence : BulkActionOnExistence | None = "fail"
11531153
11541154
1155+ class BulkDeleteActionConnectionBody (BaseModel ):
1156+ model_config = ConfigDict (
1157+ extra = "forbid" ,
1158+ )
1159+ action : Annotated [
1160+ Literal ["delete" ], Field (description = "The action to be performed on the entities." , title = "Action" )
1161+ ]
1162+ entities : Annotated [
1163+ list [str | ConnectionBody ],
1164+ Field (description = "A list of entity id/key or entity objects to be deleted." , title = "Entities" ),
1165+ ]
1166+ action_on_non_existence : BulkActionNotOnExistence | None = "fail"
1167+
1168+
1169+ class BulkDeleteActionPoolBody (BaseModel ):
1170+ model_config = ConfigDict (
1171+ extra = "forbid" ,
1172+ )
1173+ action : Annotated [
1174+ Literal ["delete" ], Field (description = "The action to be performed on the entities." , title = "Action" )
1175+ ]
1176+ entities : Annotated [
1177+ list [str | PoolBody ],
1178+ Field (description = "A list of entity id/key or entity objects to be deleted." , title = "Entities" ),
1179+ ]
1180+ action_on_non_existence : BulkActionNotOnExistence | None = "fail"
1181+
1182+
1183+ class BulkDeleteActionVariableBody (BaseModel ):
1184+ model_config = ConfigDict (
1185+ extra = "forbid" ,
1186+ )
1187+ action : Annotated [
1188+ Literal ["delete" ], Field (description = "The action to be performed on the entities." , title = "Action" )
1189+ ]
1190+ entities : Annotated [
1191+ list [str | VariableBody ],
1192+ Field (description = "A list of entity id/key or entity objects to be deleted." , title = "Entities" ),
1193+ ]
1194+ action_on_non_existence : BulkActionNotOnExistence | None = "fail"
1195+
1196+
11551197class BulkTaskInstanceBody (BaseModel ):
11561198 """
11571199 Request body for bulk update, and delete task instances.
@@ -1804,62 +1846,52 @@ class BackfillCollectionResponse(BaseModel):
18041846 total_entries : Annotated [int , Field (title = "Total Entries" )]
18051847
18061848
1807- class BulkCreateActionBulkTaskInstanceBody (BaseModel ):
1849+ class BulkBodyConnectionBody (BaseModel ):
18081850 model_config = ConfigDict (
18091851 extra = "forbid" ,
18101852 )
1811- action : Annotated [
1812- Literal [ "create" ], Field ( description = "The action to be performed on the entities." , title = "Action" )
1813- ]
1814- entities : Annotated [
1815- list [ BulkTaskInstanceBody ], Field (description = "A list of entities to be created." , title = "Entities" )
1853+ actions : Annotated [
1854+ list [
1855+ BulkCreateActionConnectionBody | BulkUpdateActionConnectionBody | BulkDeleteActionConnectionBody
1856+ ],
1857+ Field (title = "Actions" ),
18161858 ]
1817- action_on_existence : BulkActionOnExistence | None = "fail"
18181859
18191860
1820- class BulkDeleteActionBulkTaskInstanceBody (BaseModel ):
1861+ class BulkBodyPoolBody (BaseModel ):
18211862 model_config = ConfigDict (
18221863 extra = "forbid" ,
18231864 )
1824- action : Annotated [
1825- Literal ["delete" ], Field (description = "The action to be performed on the entities." , title = "Action" )
1826- ]
1827- entities : Annotated [
1828- list [str | BulkTaskInstanceBody ],
1829- Field (description = "A list of entity id/key or entity objects to be deleted." , title = "Entities" ),
1865+ actions : Annotated [
1866+ list [BulkCreateActionPoolBody | BulkUpdateActionPoolBody | BulkDeleteActionPoolBody ],
1867+ Field (title = "Actions" ),
18301868 ]
1831- action_on_non_existence : BulkActionNotOnExistence | None = "fail"
18321869
18331870
1834- class BulkDeleteActionConnectionBody (BaseModel ):
1871+ class BulkBodyVariableBody (BaseModel ):
18351872 model_config = ConfigDict (
18361873 extra = "forbid" ,
18371874 )
1838- action : Annotated [
1839- Literal ["delete" ], Field (description = "The action to be performed on the entities." , title = "Action" )
1840- ]
1841- entities : Annotated [
1842- list [str | BulkTaskInstanceBody ],
1843- Field (description = "A list of entity id/key or entity objects to be deleted." , title = "Entities" ),
1875+ actions : Annotated [
1876+ list [BulkCreateActionVariableBody | BulkUpdateActionVariableBody | BulkDeleteActionVariableBody ],
1877+ Field (title = "Actions" ),
18441878 ]
1845- action_on_non_existence : BulkActionNotOnExistence | None = "fail"
18461879
18471880
1848- class BulkDeleteActionPoolBody (BaseModel ):
1881+ class BulkCreateActionBulkTaskInstanceBody (BaseModel ):
18491882 model_config = ConfigDict (
18501883 extra = "forbid" ,
18511884 )
18521885 action : Annotated [
1853- Literal ["delete " ], Field (description = "The action to be performed on the entities." , title = "Action" )
1886+ Literal ["create " ], Field (description = "The action to be performed on the entities." , title = "Action" )
18541887 ]
18551888 entities : Annotated [
1856- list [str | BulkTaskInstanceBody ],
1857- Field (description = "A list of entity id/key or entity objects to be deleted." , title = "Entities" ),
1889+ list [BulkTaskInstanceBody ], Field (description = "A list of entities to be created." , title = "Entities" )
18581890 ]
1859- action_on_non_existence : BulkActionNotOnExistence | None = "fail"
1891+ action_on_existence : BulkActionOnExistence | None = "fail"
18601892
18611893
1862- class BulkDeleteActionVariableBody (BaseModel ):
1894+ class BulkDeleteActionBulkTaskInstanceBody (BaseModel ):
18631895 model_config = ConfigDict (
18641896 extra = "forbid" ,
18651897 )
@@ -1987,35 +2019,3 @@ class BulkBodyBulkTaskInstanceBody(BaseModel):
19872019 ],
19882020 Field (title = "Actions" ),
19892021 ]
1990-
1991-
1992- class BulkBodyConnectionBody (BaseModel ):
1993- model_config = ConfigDict (
1994- extra = "forbid" ,
1995- )
1996- actions : Annotated [
1997- list [
1998- BulkCreateActionConnectionBody | BulkUpdateActionConnectionBody | BulkDeleteActionConnectionBody
1999- ],
2000- Field (title = "Actions" ),
2001- ]
2002-
2003-
2004- class BulkBodyPoolBody (BaseModel ):
2005- model_config = ConfigDict (
2006- extra = "forbid" ,
2007- )
2008- actions : Annotated [
2009- list [BulkCreateActionPoolBody | BulkUpdateActionPoolBody | BulkDeleteActionPoolBody ],
2010- Field (title = "Actions" ),
2011- ]
2012-
2013-
2014- class BulkBodyVariableBody (BaseModel ):
2015- model_config = ConfigDict (
2016- extra = "forbid" ,
2017- )
2018- actions : Annotated [
2019- list [BulkCreateActionVariableBody | BulkUpdateActionVariableBody | BulkDeleteActionVariableBody ],
2020- Field (title = "Actions" ),
2021- ]
0 commit comments