@@ -1786,50 +1786,49 @@ paths:
1786
1786
application/json :
1787
1787
schema :
1788
1788
$ref : ' #/components/schemas/HTTPValidationError'
1789
- /public/connections/bulk :
1790
- put :
1789
+ patch :
1791
1790
tags :
1792
1791
- Connection
1793
- summary : Put Connections
1794
- description : Create connection entry .
1795
- operationId : put_connections
1792
+ summary : Bulk Connections
1793
+ description : Bulk create, update, and delete connections .
1794
+ operationId : bulk_connections
1796
1795
requestBody :
1796
+ required : true
1797
1797
content :
1798
1798
application/json :
1799
1799
schema :
1800
1800
$ref : ' #/components/schemas/ConnectionBulkBody'
1801
- required : true
1802
1801
responses :
1803
1802
' 200 ' :
1804
- description : Created with overwrite
1803
+ description : Successful Response
1805
1804
content :
1806
1805
application/json :
1807
1806
schema :
1808
- $ref : ' #/components/schemas/ConnectionCollectionResponse '
1807
+ $ref : ' #/components/schemas/ConnectionBulkResponse '
1809
1808
' 401 ' :
1810
- description : Unauthorized
1811
1809
content :
1812
1810
application/json :
1813
1811
schema :
1814
1812
$ref : ' #/components/schemas/HTTPExceptionResponse'
1813
+ description : Unauthorized
1815
1814
' 403 ' :
1816
- description : Forbidden
1817
1815
content :
1818
1816
application/json :
1819
1817
schema :
1820
1818
$ref : ' #/components/schemas/HTTPExceptionResponse'
1821
- ' 409 ' :
1822
- description : Conflict
1819
+ description : Forbidden
1820
+ ' 404 ' :
1823
1821
content :
1824
1822
application/json :
1825
1823
schema :
1826
1824
$ref : ' #/components/schemas/HTTPExceptionResponse'
1827
- ' 201 ' :
1828
- description : Created
1825
+ description : Not Found
1826
+ ' 409 ' :
1829
1827
content :
1830
1828
application/json :
1831
1829
schema :
1832
- $ref : ' #/components/schemas/ConnectionCollectionResponse'
1830
+ $ref : ' #/components/schemas/HTTPExceptionResponse'
1831
+ description : Conflict
1833
1832
' 422 ' :
1834
1833
description : Validation Error
1835
1834
content :
@@ -1850,7 +1849,7 @@ paths:
1850
1849
as some hook classes tries to find out the `conn` from their __init__ method
1851
1850
& errors out if not found.
1852
1851
1853
- It also deletes the conn id env variable after the test.'
1852
+ It also deletes the conn id env connection after the test.'
1854
1853
operationId : test_connection
1855
1854
requestBody :
1856
1855
content :
@@ -5983,6 +5982,18 @@ paths:
5983
5982
schema :
5984
5983
$ref : ' #/components/schemas/HTTPExceptionResponse'
5985
5984
description : Forbidden
5985
+ ' 404 ' :
5986
+ content :
5987
+ application/json :
5988
+ schema :
5989
+ $ref : ' #/components/schemas/HTTPExceptionResponse'
5990
+ description : Not Found
5991
+ ' 409 ' :
5992
+ content :
5993
+ application/json :
5994
+ schema :
5995
+ $ref : ' #/components/schemas/HTTPExceptionResponse'
5996
+ description : Conflict
5986
5997
' 422 ' :
5987
5998
description : Validation Error
5988
5999
content :
@@ -6886,24 +6897,158 @@ components:
6886
6897
- conn_type
6887
6898
title : ConnectionBody
6888
6899
description : Connection Serializer for requests body.
6900
+ ConnectionBulkActionResponse :
6901
+ properties :
6902
+ success :
6903
+ items :
6904
+ type : string
6905
+ type : array
6906
+ title : Success
6907
+ description : A list of connection_ids representing successful operations.
6908
+ errors :
6909
+ items :
6910
+ type : object
6911
+ type : array
6912
+ title : Errors
6913
+ description : A list of errors encountered during the operation, each containing
6914
+ details about the issue.
6915
+ type : object
6916
+ title : ConnectionBulkActionResponse
6917
+ description : ' Serializer for individual bulk action responses.
6918
+
6919
+
6920
+ Represents the outcome of a single bulk operation (create, update, or delete).
6921
+
6922
+ The response includes a list of successful connection_ids and any errors encountered
6923
+ during the operation.
6924
+
6925
+ This structure helps users understand which key actions succeeded and which
6926
+ failed.'
6889
6927
ConnectionBulkBody :
6890
6928
properties :
6929
+ actions :
6930
+ items :
6931
+ anyOf :
6932
+ - $ref : ' #/components/schemas/ConnectionBulkCreateAction'
6933
+ - $ref : ' #/components/schemas/ConnectionBulkUpdateAction'
6934
+ - $ref : ' #/components/schemas/ConnectionBulkDeleteAction'
6935
+ type : array
6936
+ title : Actions
6937
+ description : A list of Connection actions to perform.
6938
+ type : object
6939
+ required :
6940
+ - actions
6941
+ title : ConnectionBulkBody
6942
+ description : Request body for bulk Connection operations (create, update, delete).
6943
+ ConnectionBulkCreateAction :
6944
+ properties :
6945
+ action :
6946
+ type : string
6947
+ const : create
6948
+ title : Action
6949
+ default : create
6891
6950
connections :
6892
6951
items :
6893
6952
$ref : ' #/components/schemas/ConnectionBody'
6894
6953
type : array
6895
6954
title : Connections
6896
- overwrite :
6955
+ description : A list of connections to be created.
6956
+ action_if_exists :
6957
+ type : string
6958
+ enum :
6959
+ - skip
6960
+ - overwrite
6961
+ - fail
6962
+ title : Action If Exists
6963
+ default : fail
6964
+ type : object
6965
+ required :
6966
+ - connections
6967
+ title : ConnectionBulkCreateAction
6968
+ description : Bulk Create Variable serializer for request bodies.
6969
+ ConnectionBulkDeleteAction :
6970
+ properties :
6971
+ action :
6972
+ type : string
6973
+ const : delete
6974
+ title : Action
6975
+ default : delete
6976
+ connection_ids :
6977
+ items :
6978
+ type : string
6979
+ type : array
6980
+ title : Connection Ids
6981
+ description : A list of connection IDs to be deleted.
6982
+ action_if_not_exists :
6983
+ type : string
6984
+ enum :
6985
+ - skip
6986
+ - fail
6987
+ title : Action If Not Exists
6988
+ default : fail
6989
+ type : object
6990
+ required :
6991
+ - connection_ids
6992
+ title : ConnectionBulkDeleteAction
6993
+ description : Bulk Delete Connection serializer for request bodies.
6994
+ ConnectionBulkResponse :
6995
+ properties :
6996
+ create :
6897
6997
anyOf :
6898
- - type : boolean
6998
+ - $ref : ' #/components/schemas/ConnectionBulkActionResponse '
6899
6999
- type : ' null'
6900
- title : Overwrite
6901
- default : false
7000
+ description : Details of the bulk create operation, including successful
7001
+ connection_ids and errors.
7002
+ update :
7003
+ anyOf :
7004
+ - $ref : ' #/components/schemas/ConnectionBulkActionResponse'
7005
+ - type : ' null'
7006
+ description : Details of the bulk update operation, including successful
7007
+ connection_ids and errors.
7008
+ delete :
7009
+ anyOf :
7010
+ - $ref : ' #/components/schemas/ConnectionBulkActionResponse'
7011
+ - type : ' null'
7012
+ description : Details of the bulk delete operation, including successful
7013
+ connection_ids and errors.
7014
+ type : object
7015
+ title : ConnectionBulkResponse
7016
+ description : ' Serializer for responses to bulk connection operations.
7017
+
7018
+
7019
+ This represents the results of create, update, and delete actions performed
7020
+ on connections in bulk.
7021
+
7022
+ Each action (if requested) is represented as a field containing details about
7023
+ successful connection_ids and any encountered errors.
7024
+
7025
+ Fields are populated in the response only if the respective action was part
7026
+ of the request, else are set None.'
7027
+ ConnectionBulkUpdateAction :
7028
+ properties :
7029
+ action :
7030
+ type : string
7031
+ const : update
7032
+ title : Action
7033
+ default : update
7034
+ connections :
7035
+ items :
7036
+ $ref : ' #/components/schemas/ConnectionBody'
7037
+ type : array
7038
+ title : Connections
7039
+ description : A list of connections to be updated.
7040
+ action_if_not_exists :
7041
+ type : string
7042
+ enum :
7043
+ - skip
7044
+ - fail
7045
+ title : Action If Not Exists
7046
+ default : fail
6902
7047
type : object
6903
7048
required :
6904
7049
- connections
6905
- title : ConnectionBulkBody
6906
- description : Connections Serializer for requests body .
7050
+ title : ConnectionBulkUpdateAction
7051
+ description : Bulk Update Connection serializer for request bodies .
6907
7052
ConnectionCollectionResponse :
6908
7053
properties :
6909
7054
connections :
0 commit comments