55
66from ... import errors
77from ...client import AuthenticatedClient , Client
8- from ...models .backup_export_request import BackupExportRequest
98from ...models .http_validation_error import HTTPValidationError
109from ...types import UNSET , Response , Unset
1110
1211
1312def _get_kwargs (
1413 graph_id : str ,
14+ backup_id : str ,
1515 * ,
16- body : BackupExportRequest ,
1716 authorization : Union [None , Unset , str ] = UNSET ,
1817 auth_token : Union [None , Unset , str ] = UNSET ,
1918) -> dict [str , Any ]:
@@ -27,14 +26,10 @@ def _get_kwargs(
2726
2827 _kwargs : dict [str , Any ] = {
2928 "method" : "post" ,
30- "url" : f"/v1/{ graph_id } /backup /export" ,
29+ "url" : f"/v1/{ graph_id } /backups/ { backup_id } /export" ,
3130 "cookies" : cookies ,
3231 }
3332
34- _kwargs ["json" ] = body .to_dict ()
35-
36- headers ["Content-Type" ] = "application/json"
37-
3833 _kwargs ["headers" ] = headers
3934 return _kwargs
4035
@@ -74,9 +69,9 @@ def _build_response(
7469
7570def sync_detailed (
7671 graph_id : str ,
72+ backup_id : str ,
7773 * ,
7874 client : AuthenticatedClient ,
79- body : BackupExportRequest ,
8075 authorization : Union [None , Unset , str ] = UNSET ,
8176 auth_token : Union [None , Unset , str ] = UNSET ,
8277) -> Response [Union [Any , HTTPValidationError ]]:
@@ -86,9 +81,9 @@ def sync_detailed(
8681
8782 Args:
8883 graph_id (str): Graph database identifier
84+ backup_id (str): Backup identifier
8985 authorization (Union[None, Unset, str]):
9086 auth_token (Union[None, Unset, str]):
91- body (BackupExportRequest): Request model for exporting a backup.
9287
9388 Raises:
9489 errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
@@ -100,7 +95,7 @@ def sync_detailed(
10095
10196 kwargs = _get_kwargs (
10297 graph_id = graph_id ,
103- body = body ,
98+ backup_id = backup_id ,
10499 authorization = authorization ,
105100 auth_token = auth_token ,
106101 )
@@ -114,9 +109,9 @@ def sync_detailed(
114109
115110def sync (
116111 graph_id : str ,
112+ backup_id : str ,
117113 * ,
118114 client : AuthenticatedClient ,
119- body : BackupExportRequest ,
120115 authorization : Union [None , Unset , str ] = UNSET ,
121116 auth_token : Union [None , Unset , str ] = UNSET ,
122117) -> Optional [Union [Any , HTTPValidationError ]]:
@@ -126,9 +121,9 @@ def sync(
126121
127122 Args:
128123 graph_id (str): Graph database identifier
124+ backup_id (str): Backup identifier
129125 authorization (Union[None, Unset, str]):
130126 auth_token (Union[None, Unset, str]):
131- body (BackupExportRequest): Request model for exporting a backup.
132127
133128 Raises:
134129 errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
@@ -140,18 +135,18 @@ def sync(
140135
141136 return sync_detailed (
142137 graph_id = graph_id ,
138+ backup_id = backup_id ,
143139 client = client ,
144- body = body ,
145140 authorization = authorization ,
146141 auth_token = auth_token ,
147142 ).parsed
148143
149144
150145async def asyncio_detailed (
151146 graph_id : str ,
147+ backup_id : str ,
152148 * ,
153149 client : AuthenticatedClient ,
154- body : BackupExportRequest ,
155150 authorization : Union [None , Unset , str ] = UNSET ,
156151 auth_token : Union [None , Unset , str ] = UNSET ,
157152) -> Response [Union [Any , HTTPValidationError ]]:
@@ -161,9 +156,9 @@ async def asyncio_detailed(
161156
162157 Args:
163158 graph_id (str): Graph database identifier
159+ backup_id (str): Backup identifier
164160 authorization (Union[None, Unset, str]):
165161 auth_token (Union[None, Unset, str]):
166- body (BackupExportRequest): Request model for exporting a backup.
167162
168163 Raises:
169164 errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
@@ -175,7 +170,7 @@ async def asyncio_detailed(
175170
176171 kwargs = _get_kwargs (
177172 graph_id = graph_id ,
178- body = body ,
173+ backup_id = backup_id ,
179174 authorization = authorization ,
180175 auth_token = auth_token ,
181176 )
@@ -187,9 +182,9 @@ async def asyncio_detailed(
187182
188183async def asyncio (
189184 graph_id : str ,
185+ backup_id : str ,
190186 * ,
191187 client : AuthenticatedClient ,
192- body : BackupExportRequest ,
193188 authorization : Union [None , Unset , str ] = UNSET ,
194189 auth_token : Union [None , Unset , str ] = UNSET ,
195190) -> Optional [Union [Any , HTTPValidationError ]]:
@@ -199,9 +194,9 @@ async def asyncio(
199194
200195 Args:
201196 graph_id (str): Graph database identifier
197+ backup_id (str): Backup identifier
202198 authorization (Union[None, Unset, str]):
203199 auth_token (Union[None, Unset, str]):
204- body (BackupExportRequest): Request model for exporting a backup.
205200
206201 Raises:
207202 errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
@@ -214,8 +209,8 @@ async def asyncio(
214209 return (
215210 await asyncio_detailed (
216211 graph_id = graph_id ,
212+ backup_id = backup_id ,
217213 client = client ,
218- body = body ,
219214 authorization = authorization ,
220215 auth_token = auth_token ,
221216 )
0 commit comments