Skip to content

Commit 8e620d5

Browse files
committed
Update openapi-python-client
1 parent a9d32d3 commit 8e620d5

File tree

4 files changed

+10
-10
lines changed

4 files changed

+10
-10
lines changed

generator/requirements.txt

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
# TODO: replace with openapi-python-client==0.8.1 when released
2-
https://github.com/triaxtec/openapi-python-client/archive/078b4175e114baccc6534ebc8e932e04211cc3cf.zip
1+
# TODO: replace with upstream openapi-python-client when PR #375 is merged and released
2+
https://github.com/ramnes/openapi-python-client/archive/797b76fd98d3546510ac52946056eaa745d7c685.zip

sftpgo_client/base/api/maintenance/dumpdata.py

+6-6
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,15 @@
66
from ...models.api_response import ApiResponse
77
from ...models.backup_data import BackupData
88
from ...models.dumpdata_indent import DumpdataIndent
9-
from ...models.dumpdata_outpuata import DumpdataOutpuata
9+
from ...models.dumpdata_output_data import DumpdataOutputData
1010
from ...types import UNSET, Response, Unset
1111

1212

1313
def _get_kwargs(
1414
*,
1515
client: Client,
1616
output_file: Union[Unset, str] = UNSET,
17-
output_data: Union[Unset, DumpdataOutpuata] = UNSET,
17+
output_data: Union[Unset, DumpdataOutputData] = UNSET,
1818
indent: Union[Unset, DumpdataIndent] = UNSET,
1919
) -> Dict[str, Any]:
2020
url = "{}/dumpdata".format(client.base_url)
@@ -105,7 +105,7 @@ def sync_detailed(
105105
*,
106106
client: Client,
107107
output_file: Union[Unset, str] = UNSET,
108-
output_data: Union[Unset, DumpdataOutpuata] = UNSET,
108+
output_data: Union[Unset, DumpdataOutputData] = UNSET,
109109
indent: Union[Unset, DumpdataIndent] = UNSET,
110110
) -> Response[Union[Union[ApiResponse, BackupData], None, None, None, None]]:
111111
kwargs = _get_kwargs(
@@ -126,7 +126,7 @@ def sync(
126126
*,
127127
client: Client,
128128
output_file: Union[Unset, str] = UNSET,
129-
output_data: Union[Unset, DumpdataOutpuata] = UNSET,
129+
output_data: Union[Unset, DumpdataOutputData] = UNSET,
130130
indent: Union[Unset, DumpdataIndent] = UNSET,
131131
) -> Optional[Union[Union[ApiResponse, BackupData], None, None, None, None]]:
132132
""" Backups data as data provider independent JSON. The backup can be saved in a local file on the server, to avoid exposing sensitive data over the network, or returned as response body. The output of dumpdata can be used as input for loaddata """
@@ -143,7 +143,7 @@ async def asyncio_detailed(
143143
*,
144144
client: Client,
145145
output_file: Union[Unset, str] = UNSET,
146-
output_data: Union[Unset, DumpdataOutpuata] = UNSET,
146+
output_data: Union[Unset, DumpdataOutputData] = UNSET,
147147
indent: Union[Unset, DumpdataIndent] = UNSET,
148148
) -> Response[Union[Union[ApiResponse, BackupData], None, None, None, None]]:
149149
kwargs = _get_kwargs(
@@ -163,7 +163,7 @@ async def asyncio(
163163
*,
164164
client: Client,
165165
output_file: Union[Unset, str] = UNSET,
166-
output_data: Union[Unset, DumpdataOutpuata] = UNSET,
166+
output_data: Union[Unset, DumpdataOutputData] = UNSET,
167167
indent: Union[Unset, DumpdataIndent] = UNSET,
168168
) -> Optional[Union[Union[ApiResponse, BackupData], None, None, None, None]]:
169169
""" Backups data as data provider independent JSON. The backup can be saved in a local file on the server, to avoid exposing sensitive data over the network, or returned as response body. The output of dumpdata can be used as input for loaddata """

sftpgo_client/base/models/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
from .data_provider_status import DataProviderStatus
1717
from .dir_permissions import DirPermissions
1818
from .dumpdata_indent import DumpdataIndent
19-
from .dumpdata_outpuata import DumpdataOutpuata
19+
from .dumpdata_output_data import DumpdataOutputData
2020
from .extensions_filter import ExtensionsFilter
2121
from .filesystem_config import FilesystemConfig
2222
from .filesystem_config_provider import FilesystemConfigProvider

sftpgo_client/base/models/dumpdata_outpuata.py renamed to sftpgo_client/base/models/dumpdata_output_data.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
from enum import IntEnum
22

33

4-
class DumpdataOutpuata(IntEnum):
4+
class DumpdataOutputData(IntEnum):
55
VALUE_0 = 0
66
VALUE_1 = 1
77

0 commit comments

Comments
 (0)