From e8c042b960f8bdce98d2f8e6a3f647906396f277 Mon Sep 17 00:00:00 2001 From: SDK Generator Bot Date: Fri, 4 Jul 2025 09:04:59 +0000 Subject: [PATCH] Generate postgresflex --- .../src/stackit/postgresflex/__init__.py | 262 +++++++++++++----- .../stackit/postgresflex/api/default_api.py | 210 +++++++------- .../src/stackit/postgresflex/api_client.py | 23 +- .../src/stackit/postgresflex/configuration.py | 44 ++- .../src/stackit/postgresflex/exceptions.py | 23 +- .../stackit/postgresflex/models/__init__.py | 2 +- .../src/stackit/postgresflex/models/acl.py | 4 +- .../postgresflex/models/api_configuration.py | 4 +- .../api_extension_config_load_response.py | 4 +- .../api_extension_configure_response.py | 4 +- .../models/api_extension_delete_response.py | 4 +- .../postgresflex/models/api_extension_list.py | 4 +- .../models/api_extension_load_response.py | 4 +- .../models/api_install_response.py | 4 +- .../models/api_installed_list_response.py | 4 +- .../src/stackit/postgresflex/models/backup.py | 4 +- .../models/clone_instance_payload.py | 4 +- .../models/clone_instance_response.py | 4 +- .../models/create_database_payload.py | 4 +- .../models/create_instance_payload.py | 4 +- .../models/create_instance_response.py | 4 +- .../models/create_user_payload.py | 4 +- .../models/create_user_response.py | 4 +- .../src/stackit/postgresflex/models/error.py | 4 +- .../models/extensions_configuration.py | 4 +- .../extensions_extension_list_response.py | 4 +- .../models/extensions_new_config.py | 4 +- .../src/stackit/postgresflex/models/flavor.py | 4 +- .../models/get_backup_response.py | 4 +- .../postgresflex/models/get_user_response.py | 4 +- .../stackit/postgresflex/models/instance.py | 4 +- .../instance_create_database_response.py | 4 +- .../models/instance_data_point.py | 4 +- .../postgresflex/models/instance_database.py | 4 +- .../postgresflex/models/instance_host.py | 4 +- .../models/instance_host_metric.py | 4 +- .../instance_list_databases_response.py | 4 +- .../models/instance_list_instance.py | 4 +- .../models/instance_metrics_response.py | 4 +- .../postgresflex/models/instance_response.py | 4 +- .../models/list_backups_response.py | 4 +- .../models/list_flavors_response.py | 4 +- .../models/list_instances_response.py | 4 +- .../models/list_storages_response.py | 4 +- .../models/list_users_response.py | 4 +- .../models/list_users_response_item.py | 4 +- .../models/list_versions_response.py | 4 +- .../models/partial_update_instance_payload.py | 4 +- .../partial_update_instance_response.py | 4 +- .../models/partial_update_user_payload.py | 4 +- .../models/postgres_database_parameter.py | 4 +- .../postgres_database_parameter_response.py | 4 +- .../models/reset_user_response.py | 4 +- .../stackit/postgresflex/models/storage.py | 4 +- .../postgresflex/models/storage_range.py | 4 +- .../models/update_backup_schedule_payload.py | 4 +- .../models/update_instance_payload.py | 4 +- .../models/update_user_payload.py | 4 +- .../src/stackit/postgresflex/models/user.py | 4 +- .../postgresflex/models/user_response.py | 4 +- .../src/stackit/postgresflex/rest.py | 4 +- 61 files changed, 481 insertions(+), 303 deletions(-) diff --git a/services/postgresflex/src/stackit/postgresflex/__init__.py b/services/postgresflex/src/stackit/postgresflex/__init__.py index e2c503d9..dc98383f 100644 --- a/services/postgresflex/src/stackit/postgresflex/__init__.py +++ b/services/postgresflex/src/stackit/postgresflex/__init__.py @@ -12,109 +12,233 @@ Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 docstring might be too long +""" # noqa: E501 __version__ = "1.0.0" +# Define package exports +__all__ = [ + "DefaultApi", + "ApiResponse", + "ApiClient", + "HostConfiguration", + "OpenApiException", + "ApiTypeError", + "ApiValueError", + "ApiKeyError", + "ApiAttributeError", + "ApiException", + "ACL", + "ApiConfiguration", + "ApiExtensionConfigLoadResponse", + "ApiExtensionConfigureResponse", + "ApiExtensionDeleteResponse", + "ApiExtensionList", + "ApiExtensionLoadResponse", + "ApiInstallResponse", + "ApiInstalledListResponse", + "Backup", + "CloneInstancePayload", + "CloneInstanceResponse", + "CreateDatabasePayload", + "CreateInstancePayload", + "CreateInstanceResponse", + "CreateUserPayload", + "CreateUserResponse", + "Error", + "ExtensionsConfiguration", + "ExtensionsExtensionListResponse", + "ExtensionsNewConfig", + "Flavor", + "GetBackupResponse", + "GetUserResponse", + "Instance", + "InstanceCreateDatabaseResponse", + "InstanceDataPoint", + "InstanceDatabase", + "InstanceHost", + "InstanceHostMetric", + "InstanceListDatabasesResponse", + "InstanceListInstance", + "InstanceMetricsResponse", + "InstanceResponse", + "ListBackupsResponse", + "ListFlavorsResponse", + "ListInstancesResponse", + "ListStoragesResponse", + "ListUsersResponse", + "ListUsersResponseItem", + "ListVersionsResponse", + "PartialUpdateInstancePayload", + "PartialUpdateInstanceResponse", + "PartialUpdateUserPayload", + "PostgresDatabaseParameter", + "PostgresDatabaseParameterResponse", + "ResetUserResponse", + "Storage", + "StorageRange", + "UpdateBackupSchedulePayload", + "UpdateInstancePayload", + "UpdateUserPayload", + "User", + "UserResponse", +] + # import apis into sdk package -from stackit.postgresflex.api.default_api import DefaultApi -from stackit.postgresflex.api_client import ApiClient +from stackit.postgresflex.api.default_api import DefaultApi as DefaultApi +from stackit.postgresflex.api_client import ApiClient as ApiClient # import ApiClient -from stackit.postgresflex.api_response import ApiResponse -from stackit.postgresflex.configuration import HostConfiguration -from stackit.postgresflex.exceptions import ( - ApiAttributeError, - ApiException, - ApiKeyError, - ApiTypeError, - ApiValueError, - OpenApiException, -) +from stackit.postgresflex.api_response import ApiResponse as ApiResponse +from stackit.postgresflex.configuration import HostConfiguration as HostConfiguration +from stackit.postgresflex.exceptions import ApiAttributeError as ApiAttributeError +from stackit.postgresflex.exceptions import ApiException as ApiException +from stackit.postgresflex.exceptions import ApiKeyError as ApiKeyError +from stackit.postgresflex.exceptions import ApiTypeError as ApiTypeError +from stackit.postgresflex.exceptions import ApiValueError as ApiValueError +from stackit.postgresflex.exceptions import OpenApiException as OpenApiException # import models into sdk package -from stackit.postgresflex.models.acl import ACL -from stackit.postgresflex.models.api_configuration import ApiConfiguration +from stackit.postgresflex.models.acl import ACL as ACL +from stackit.postgresflex.models.api_configuration import ( + ApiConfiguration as ApiConfiguration, +) from stackit.postgresflex.models.api_extension_config_load_response import ( - ApiExtensionConfigLoadResponse, + ApiExtensionConfigLoadResponse as ApiExtensionConfigLoadResponse, ) from stackit.postgresflex.models.api_extension_configure_response import ( - ApiExtensionConfigureResponse, + ApiExtensionConfigureResponse as ApiExtensionConfigureResponse, ) from stackit.postgresflex.models.api_extension_delete_response import ( - ApiExtensionDeleteResponse, + ApiExtensionDeleteResponse as ApiExtensionDeleteResponse, +) +from stackit.postgresflex.models.api_extension_list import ( + ApiExtensionList as ApiExtensionList, ) -from stackit.postgresflex.models.api_extension_list import ApiExtensionList from stackit.postgresflex.models.api_extension_load_response import ( - ApiExtensionLoadResponse, + ApiExtensionLoadResponse as ApiExtensionLoadResponse, +) +from stackit.postgresflex.models.api_install_response import ( + ApiInstallResponse as ApiInstallResponse, ) -from stackit.postgresflex.models.api_install_response import ApiInstallResponse from stackit.postgresflex.models.api_installed_list_response import ( - ApiInstalledListResponse, -) -from stackit.postgresflex.models.backup import Backup -from stackit.postgresflex.models.clone_instance_payload import CloneInstancePayload -from stackit.postgresflex.models.clone_instance_response import CloneInstanceResponse -from stackit.postgresflex.models.create_database_payload import CreateDatabasePayload -from stackit.postgresflex.models.create_instance_payload import CreateInstancePayload -from stackit.postgresflex.models.create_instance_response import CreateInstanceResponse -from stackit.postgresflex.models.create_user_payload import CreateUserPayload -from stackit.postgresflex.models.create_user_response import CreateUserResponse -from stackit.postgresflex.models.error import Error -from stackit.postgresflex.models.extensions_configuration import ExtensionsConfiguration + ApiInstalledListResponse as ApiInstalledListResponse, +) +from stackit.postgresflex.models.backup import Backup as Backup +from stackit.postgresflex.models.clone_instance_payload import ( + CloneInstancePayload as CloneInstancePayload, +) +from stackit.postgresflex.models.clone_instance_response import ( + CloneInstanceResponse as CloneInstanceResponse, +) +from stackit.postgresflex.models.create_database_payload import ( + CreateDatabasePayload as CreateDatabasePayload, +) +from stackit.postgresflex.models.create_instance_payload import ( + CreateInstancePayload as CreateInstancePayload, +) +from stackit.postgresflex.models.create_instance_response import ( + CreateInstanceResponse as CreateInstanceResponse, +) +from stackit.postgresflex.models.create_user_payload import ( + CreateUserPayload as CreateUserPayload, +) +from stackit.postgresflex.models.create_user_response import ( + CreateUserResponse as CreateUserResponse, +) +from stackit.postgresflex.models.error import Error as Error +from stackit.postgresflex.models.extensions_configuration import ( + ExtensionsConfiguration as ExtensionsConfiguration, +) from stackit.postgresflex.models.extensions_extension_list_response import ( - ExtensionsExtensionListResponse, + ExtensionsExtensionListResponse as ExtensionsExtensionListResponse, +) +from stackit.postgresflex.models.extensions_new_config import ( + ExtensionsNewConfig as ExtensionsNewConfig, +) +from stackit.postgresflex.models.flavor import Flavor as Flavor +from stackit.postgresflex.models.get_backup_response import ( + GetBackupResponse as GetBackupResponse, +) +from stackit.postgresflex.models.get_user_response import ( + GetUserResponse as GetUserResponse, ) -from stackit.postgresflex.models.extensions_new_config import ExtensionsNewConfig -from stackit.postgresflex.models.flavor import Flavor -from stackit.postgresflex.models.get_backup_response import GetBackupResponse -from stackit.postgresflex.models.get_user_response import GetUserResponse -from stackit.postgresflex.models.instance import Instance +from stackit.postgresflex.models.instance import Instance as Instance from stackit.postgresflex.models.instance_create_database_response import ( - InstanceCreateDatabaseResponse, + InstanceCreateDatabaseResponse as InstanceCreateDatabaseResponse, +) +from stackit.postgresflex.models.instance_data_point import ( + InstanceDataPoint as InstanceDataPoint, +) +from stackit.postgresflex.models.instance_database import ( + InstanceDatabase as InstanceDatabase, +) +from stackit.postgresflex.models.instance_host import InstanceHost as InstanceHost +from stackit.postgresflex.models.instance_host_metric import ( + InstanceHostMetric as InstanceHostMetric, ) -from stackit.postgresflex.models.instance_data_point import InstanceDataPoint -from stackit.postgresflex.models.instance_database import InstanceDatabase -from stackit.postgresflex.models.instance_host import InstanceHost -from stackit.postgresflex.models.instance_host_metric import InstanceHostMetric from stackit.postgresflex.models.instance_list_databases_response import ( - InstanceListDatabasesResponse, + InstanceListDatabasesResponse as InstanceListDatabasesResponse, +) +from stackit.postgresflex.models.instance_list_instance import ( + InstanceListInstance as InstanceListInstance, ) -from stackit.postgresflex.models.instance_list_instance import InstanceListInstance from stackit.postgresflex.models.instance_metrics_response import ( - InstanceMetricsResponse, -) -from stackit.postgresflex.models.instance_response import InstanceResponse -from stackit.postgresflex.models.list_backups_response import ListBackupsResponse -from stackit.postgresflex.models.list_flavors_response import ListFlavorsResponse -from stackit.postgresflex.models.list_instances_response import ListInstancesResponse -from stackit.postgresflex.models.list_storages_response import ListStoragesResponse -from stackit.postgresflex.models.list_users_response import ListUsersResponse -from stackit.postgresflex.models.list_users_response_item import ListUsersResponseItem -from stackit.postgresflex.models.list_versions_response import ListVersionsResponse + InstanceMetricsResponse as InstanceMetricsResponse, +) +from stackit.postgresflex.models.instance_response import ( + InstanceResponse as InstanceResponse, +) +from stackit.postgresflex.models.list_backups_response import ( + ListBackupsResponse as ListBackupsResponse, +) +from stackit.postgresflex.models.list_flavors_response import ( + ListFlavorsResponse as ListFlavorsResponse, +) +from stackit.postgresflex.models.list_instances_response import ( + ListInstancesResponse as ListInstancesResponse, +) +from stackit.postgresflex.models.list_storages_response import ( + ListStoragesResponse as ListStoragesResponse, +) +from stackit.postgresflex.models.list_users_response import ( + ListUsersResponse as ListUsersResponse, +) +from stackit.postgresflex.models.list_users_response_item import ( + ListUsersResponseItem as ListUsersResponseItem, +) +from stackit.postgresflex.models.list_versions_response import ( + ListVersionsResponse as ListVersionsResponse, +) from stackit.postgresflex.models.partial_update_instance_payload import ( - PartialUpdateInstancePayload, + PartialUpdateInstancePayload as PartialUpdateInstancePayload, ) from stackit.postgresflex.models.partial_update_instance_response import ( - PartialUpdateInstanceResponse, + PartialUpdateInstanceResponse as PartialUpdateInstanceResponse, ) from stackit.postgresflex.models.partial_update_user_payload import ( - PartialUpdateUserPayload, + PartialUpdateUserPayload as PartialUpdateUserPayload, ) from stackit.postgresflex.models.postgres_database_parameter import ( - PostgresDatabaseParameter, + PostgresDatabaseParameter as PostgresDatabaseParameter, ) from stackit.postgresflex.models.postgres_database_parameter_response import ( - PostgresDatabaseParameterResponse, + PostgresDatabaseParameterResponse as PostgresDatabaseParameterResponse, +) +from stackit.postgresflex.models.reset_user_response import ( + ResetUserResponse as ResetUserResponse, ) -from stackit.postgresflex.models.reset_user_response import ResetUserResponse -from stackit.postgresflex.models.storage import Storage -from stackit.postgresflex.models.storage_range import StorageRange +from stackit.postgresflex.models.storage import Storage as Storage +from stackit.postgresflex.models.storage_range import StorageRange as StorageRange from stackit.postgresflex.models.update_backup_schedule_payload import ( - UpdateBackupSchedulePayload, + UpdateBackupSchedulePayload as UpdateBackupSchedulePayload, +) +from stackit.postgresflex.models.update_instance_payload import ( + UpdateInstancePayload as UpdateInstancePayload, +) +from stackit.postgresflex.models.update_user_payload import ( + UpdateUserPayload as UpdateUserPayload, ) -from stackit.postgresflex.models.update_instance_payload import UpdateInstancePayload -from stackit.postgresflex.models.update_user_payload import UpdateUserPayload -from stackit.postgresflex.models.user import User -from stackit.postgresflex.models.user_response import UserResponse +from stackit.postgresflex.models.user import User as User +from stackit.postgresflex.models.user_response import UserResponse as UserResponse diff --git a/services/postgresflex/src/stackit/postgresflex/api/default_api.py b/services/postgresflex/src/stackit/postgresflex/api/default_api.py index e2de1f6a..f1f329cd 100644 --- a/services/postgresflex/src/stackit/postgresflex/api/default_api.py +++ b/services/postgresflex/src/stackit/postgresflex/api/default_api.py @@ -10,7 +10,7 @@ Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 docstring might be too long +""" # noqa: E501 from typing import Any, Dict, List, Optional, Tuple, Union @@ -134,7 +134,7 @@ def clone_instance( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._clone_instance_serialize( project_id=project_id, @@ -210,7 +210,7 @@ def clone_instance_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._clone_instance_serialize( project_id=project_id, @@ -286,7 +286,7 @@ def clone_instance_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._clone_instance_serialize( project_id=project_id, @@ -329,7 +329,7 @@ def _clone_instance_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} + _files: Dict[str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -425,7 +425,7 @@ def create_database( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._create_database_serialize( project_id=project_id, @@ -501,7 +501,7 @@ def create_database_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._create_database_serialize( project_id=project_id, @@ -577,7 +577,7 @@ def create_database_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._create_database_serialize( project_id=project_id, @@ -620,7 +620,7 @@ def _create_database_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} + _files: Dict[str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -713,7 +713,7 @@ def create_instance( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._create_instance_serialize( project_id=project_id, @@ -785,7 +785,7 @@ def create_instance_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._create_instance_serialize( project_id=project_id, @@ -857,7 +857,7 @@ def create_instance_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._create_instance_serialize( project_id=project_id, @@ -898,7 +898,7 @@ def _create_instance_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} + _files: Dict[str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -992,7 +992,7 @@ def create_user( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._create_user_serialize( project_id=project_id, @@ -1068,7 +1068,7 @@ def create_user_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._create_user_serialize( project_id=project_id, @@ -1144,7 +1144,7 @@ def create_user_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._create_user_serialize( project_id=project_id, @@ -1187,7 +1187,7 @@ def _create_user_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} + _files: Dict[str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -1283,7 +1283,7 @@ def delete_database( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._delete_database_serialize( project_id=project_id, @@ -1359,7 +1359,7 @@ def delete_database_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._delete_database_serialize( project_id=project_id, @@ -1435,7 +1435,7 @@ def delete_database_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._delete_database_serialize( project_id=project_id, @@ -1478,7 +1478,7 @@ def _delete_database_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} + _files: Dict[str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -1563,7 +1563,7 @@ def delete_instance( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._delete_instance_serialize( project_id=project_id, @@ -1636,7 +1636,7 @@ def delete_instance_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._delete_instance_serialize( project_id=project_id, @@ -1709,7 +1709,7 @@ def delete_instance_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._delete_instance_serialize( project_id=project_id, @@ -1751,7 +1751,7 @@ def _delete_instance_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} + _files: Dict[str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -1837,7 +1837,7 @@ def delete_user( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._delete_user_serialize( project_id=project_id, @@ -1913,7 +1913,7 @@ def delete_user_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._delete_user_serialize( project_id=project_id, @@ -1989,7 +1989,7 @@ def delete_user_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._delete_user_serialize( project_id=project_id, @@ -2032,7 +2032,7 @@ def _delete_user_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} + _files: Dict[str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -2117,7 +2117,7 @@ def force_delete_instance( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._force_delete_instance_serialize( project_id=project_id, @@ -2190,7 +2190,7 @@ def force_delete_instance_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._force_delete_instance_serialize( project_id=project_id, @@ -2263,7 +2263,7 @@ def force_delete_instance_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._force_delete_instance_serialize( project_id=project_id, @@ -2305,7 +2305,7 @@ def _force_delete_instance_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} + _files: Dict[str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -2391,7 +2391,7 @@ def get_backup( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._get_backup_serialize( project_id=project_id, @@ -2468,7 +2468,7 @@ def get_backup_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._get_backup_serialize( project_id=project_id, @@ -2545,7 +2545,7 @@ def get_backup_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._get_backup_serialize( project_id=project_id, @@ -2589,7 +2589,7 @@ def _get_backup_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} + _files: Dict[str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -2674,7 +2674,7 @@ def get_instance( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._get_instance_serialize( project_id=project_id, @@ -2746,7 +2746,7 @@ def get_instance_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._get_instance_serialize( project_id=project_id, @@ -2818,7 +2818,7 @@ def get_instance_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._get_instance_serialize( project_id=project_id, @@ -2859,7 +2859,7 @@ def _get_instance_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} + _files: Dict[str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -2945,7 +2945,7 @@ def get_user( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._get_user_serialize( project_id=project_id, @@ -3021,7 +3021,7 @@ def get_user_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._get_user_serialize( project_id=project_id, @@ -3097,7 +3097,7 @@ def get_user_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._get_user_serialize( project_id=project_id, @@ -3140,7 +3140,7 @@ def _get_user_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} + _files: Dict[str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -3225,7 +3225,7 @@ def list_backups( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._list_backups_serialize( project_id=project_id, @@ -3298,7 +3298,7 @@ def list_backups_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._list_backups_serialize( project_id=project_id, @@ -3371,7 +3371,7 @@ def list_backups_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._list_backups_serialize( project_id=project_id, @@ -3413,7 +3413,7 @@ def _list_backups_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} + _files: Dict[str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -3496,7 +3496,7 @@ def list_database_parameters( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._list_database_parameters_serialize( project_id=project_id, @@ -3568,7 +3568,7 @@ def list_database_parameters_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._list_database_parameters_serialize( project_id=project_id, @@ -3640,7 +3640,7 @@ def list_database_parameters_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._list_database_parameters_serialize( project_id=project_id, @@ -3681,7 +3681,7 @@ def _list_database_parameters_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} + _files: Dict[str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -3764,7 +3764,7 @@ def list_databases( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._list_databases_serialize( project_id=project_id, @@ -3836,7 +3836,7 @@ def list_databases_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._list_databases_serialize( project_id=project_id, @@ -3908,7 +3908,7 @@ def list_databases_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._list_databases_serialize( project_id=project_id, @@ -3949,7 +3949,7 @@ def _list_databases_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} + _files: Dict[str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -4029,7 +4029,7 @@ def list_flavors( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._list_flavors_serialize( project_id=project_id, @@ -4097,7 +4097,7 @@ def list_flavors_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._list_flavors_serialize( project_id=project_id, @@ -4165,7 +4165,7 @@ def list_flavors_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._list_flavors_serialize( project_id=project_id, @@ -4204,7 +4204,7 @@ def _list_flavors_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} + _files: Dict[str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -4282,7 +4282,7 @@ def list_instances( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._list_instances_serialize( project_id=project_id, @@ -4350,7 +4350,7 @@ def list_instances_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._list_instances_serialize( project_id=project_id, @@ -4418,7 +4418,7 @@ def list_instances_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._list_instances_serialize( project_id=project_id, @@ -4457,7 +4457,7 @@ def _list_instances_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} + _files: Dict[str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -4573,7 +4573,7 @@ def list_metrics( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._list_metrics_serialize( project_id=project_id, @@ -4685,7 +4685,7 @@ def list_metrics_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._list_metrics_serialize( project_id=project_id, @@ -4797,7 +4797,7 @@ def list_metrics_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._list_metrics_serialize( project_id=project_id, @@ -4848,7 +4848,7 @@ def _list_metrics_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} + _files: Dict[str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -4949,7 +4949,7 @@ def list_storages( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._list_storages_serialize( project_id=project_id, @@ -5021,7 +5021,7 @@ def list_storages_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._list_storages_serialize( project_id=project_id, @@ -5093,7 +5093,7 @@ def list_storages_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._list_storages_serialize( project_id=project_id, @@ -5134,7 +5134,7 @@ def _list_storages_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} + _files: Dict[str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -5217,7 +5217,7 @@ def list_users( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._list_users_serialize( project_id=project_id, @@ -5289,7 +5289,7 @@ def list_users_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._list_users_serialize( project_id=project_id, @@ -5361,7 +5361,7 @@ def list_users_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._list_users_serialize( project_id=project_id, @@ -5402,7 +5402,7 @@ def _list_users_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} + _files: Dict[str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -5485,7 +5485,7 @@ def list_versions( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._list_versions_serialize( project_id=project_id, @@ -5557,7 +5557,7 @@ def list_versions_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._list_versions_serialize( project_id=project_id, @@ -5629,7 +5629,7 @@ def list_versions_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._list_versions_serialize( project_id=project_id, @@ -5670,7 +5670,7 @@ def _list_versions_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} + _files: Dict[str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -5758,7 +5758,7 @@ def partial_update_instance( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._partial_update_instance_serialize( project_id=project_id, @@ -5834,7 +5834,7 @@ def partial_update_instance_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._partial_update_instance_serialize( project_id=project_id, @@ -5910,7 +5910,7 @@ def partial_update_instance_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._partial_update_instance_serialize( project_id=project_id, @@ -5953,7 +5953,7 @@ def _partial_update_instance_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} + _files: Dict[str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -6057,7 +6057,7 @@ def partial_update_user( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._partial_update_user_serialize( project_id=project_id, @@ -6142,7 +6142,7 @@ def partial_update_user_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._partial_update_user_serialize( project_id=project_id, @@ -6227,7 +6227,7 @@ def partial_update_user_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._partial_update_user_serialize( project_id=project_id, @@ -6272,7 +6272,7 @@ def _partial_update_user_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} + _files: Dict[str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -6370,7 +6370,7 @@ def reset_user( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._reset_user_serialize( project_id=project_id, @@ -6447,7 +6447,7 @@ def reset_user_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._reset_user_serialize( project_id=project_id, @@ -6524,7 +6524,7 @@ def reset_user_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._reset_user_serialize( project_id=project_id, @@ -6568,7 +6568,7 @@ def _reset_user_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} + _files: Dict[str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -6656,7 +6656,7 @@ def update_backup_schedule( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._update_backup_schedule_serialize( project_id=project_id, @@ -6734,7 +6734,7 @@ def update_backup_schedule_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._update_backup_schedule_serialize( project_id=project_id, @@ -6812,7 +6812,7 @@ def update_backup_schedule_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._update_backup_schedule_serialize( project_id=project_id, @@ -6857,7 +6857,7 @@ def _update_backup_schedule_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} + _files: Dict[str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -6953,7 +6953,7 @@ def update_instance( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._update_instance_serialize( project_id=project_id, @@ -7029,7 +7029,7 @@ def update_instance_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._update_instance_serialize( project_id=project_id, @@ -7105,7 +7105,7 @@ def update_instance_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._update_instance_serialize( project_id=project_id, @@ -7148,7 +7148,7 @@ def _update_instance_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} + _files: Dict[str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -7252,7 +7252,7 @@ def update_user( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._update_user_serialize( project_id=project_id, @@ -7337,7 +7337,7 @@ def update_user_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._update_user_serialize( project_id=project_id, @@ -7422,7 +7422,7 @@ def update_user_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 docstring might be too long + """ # noqa: E501 _param = self._update_user_serialize( project_id=project_id, @@ -7467,7 +7467,7 @@ def _update_user_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} + _files: Dict[str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]] = {} _body_params: Optional[bytes] = None # process the path parameters diff --git a/services/postgresflex/src/stackit/postgresflex/api_client.py b/services/postgresflex/src/stackit/postgresflex/api_client.py index c38e0bfd..8365c01b 100644 --- a/services/postgresflex/src/stackit/postgresflex/api_client.py +++ b/services/postgresflex/src/stackit/postgresflex/api_client.py @@ -10,7 +10,7 @@ Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 docstring might be too long +""" # noqa: E501 import datetime import json @@ -332,6 +332,10 @@ def sanitize_for_serialization(self, obj): else: obj_dict = obj.__dict__ + if isinstance(obj_dict, list): + # here we handle instances that can either be a list or something else, and only became a real list by calling to_dict() + return self.sanitize_for_serialization(obj_dict) + return {key: self.sanitize_for_serialization(val) for key, val in obj_dict.items()} def deserialize(self, response_text: str, response_type: str, content_type: Optional[str]): @@ -351,12 +355,12 @@ def deserialize(self, response_text: str, response_type: str, content_type: Opti data = json.loads(response_text) except ValueError: data = response_text - elif content_type.startswith("application/json"): + elif re.match(r"^application/(json|[\w!#$&.+-^_]+\+json)\s*(;|$)", content_type, re.IGNORECASE): if response_text == "": data = "" else: data = json.loads(response_text) - elif content_type.startswith("text/plain"): + elif re.match(r"^text\/[a-z.+-]+\s*(;|$)", content_type, re.IGNORECASE): data = response_text else: raise ApiException(status=0, reason="Unsupported content type: {0}".format(content_type)) @@ -458,7 +462,7 @@ def parameters_to_url_query(self, params, collection_formats): if k in collection_formats: collection_format = collection_formats[k] if collection_format == "multi": - new_params.extend((k, str(value)) for value in v) + new_params.extend((k, quote(str(value))) for value in v) else: if collection_format == "ssv": delimiter = " " @@ -474,7 +478,10 @@ def parameters_to_url_query(self, params, collection_formats): return "&".join(["=".join(map(str, item)) for item in new_params]) - def files_parameters(self, files: Dict[str, Union[str, bytes]]): + def files_parameters( + self, + files: Dict[str, Union[str, bytes, List[str], List[bytes], Tuple[str, bytes]]], + ): """Builds form parameters. :param files: File parameters. @@ -489,6 +496,12 @@ def files_parameters(self, files: Dict[str, Union[str, bytes]]): elif isinstance(v, bytes): filename = k filedata = v + elif isinstance(v, tuple): + filename, filedata = v + elif isinstance(v, list): + for file_param in v: + params.extend(self.files_parameters({k: file_param})) + continue else: raise ValueError("Unsupported file value") mimetype = mimetypes.guess_type(filename)[0] or "application/octet-stream" diff --git a/services/postgresflex/src/stackit/postgresflex/configuration.py b/services/postgresflex/src/stackit/postgresflex/configuration.py index 05166bab..de61061d 100644 --- a/services/postgresflex/src/stackit/postgresflex/configuration.py +++ b/services/postgresflex/src/stackit/postgresflex/configuration.py @@ -1,10 +1,5 @@ # coding: utf-8 -import sys - -import os - - """ STACKIT PostgreSQL Flex API @@ -15,7 +10,29 @@ Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 docstring might be too long +""" # noqa: E501 + +import sys +from typing import Dict, List, Optional, TypedDict + +from typing_extensions import NotRequired + +import os + + +ServerVariablesT = Dict[str, str] + + +class HostSettingVariable(TypedDict): + description: str + default_value: str + enum_values: List[str] + + +class HostSetting(TypedDict): + url: str + description: str + variables: NotRequired[Dict[str, HostSettingVariable]] class HostConfiguration: @@ -54,7 +71,7 @@ def __init__( """Ignore operation servers """ - def get_host_settings(self): + def get_host_settings(self) -> List[HostSetting]: """Gets an array of host settings :return: An array of host settings @@ -72,7 +89,12 @@ def get_host_settings(self): } ] - def get_host_from_settings(self, index, variables=None, servers=None): + def get_host_from_settings( + self, + index: Optional[int], + variables: Optional[ServerVariablesT] = None, + servers: Optional[List[HostSetting]] = None, + ) -> str: """Gets host URL based on the index and variables :param index: array index of the host settings :param variables: hash of variable and the corresponding value @@ -112,7 +134,7 @@ def get_host_from_settings(self, index, variables=None, servers=None): and variables.get(variable_name) is not None ): raise ValueError( - "this API does not support setting a region in the the client configuration, " + "this API does not support setting a region in the client configuration, " "please check if the region can be specified as a function parameter" ) used_value = variables.get(variable_name, variable["default_value"]) @@ -131,12 +153,12 @@ def get_host_from_settings(self, index, variables=None, servers=None): return url @property - def host(self): + def host(self) -> str: """Return generated host.""" return self.get_host_from_settings(self.server_index, variables=self.server_variables) @host.setter - def host(self, value): + def host(self, value: str) -> None: """Fix base path.""" self._base_path = value self.server_index = None diff --git a/services/postgresflex/src/stackit/postgresflex/exceptions.py b/services/postgresflex/src/stackit/postgresflex/exceptions.py index d529833d..96b979ae 100644 --- a/services/postgresflex/src/stackit/postgresflex/exceptions.py +++ b/services/postgresflex/src/stackit/postgresflex/exceptions.py @@ -10,7 +10,7 @@ Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 docstring might be too long +""" # noqa: E501 from typing import Any, Optional @@ -128,7 +128,7 @@ def __init__( if self.body is None: try: self.body = http_resp.data.decode("utf-8") - except Exception: # noqa: S110 + except Exception: pass self.headers = http_resp.getheaders() @@ -152,6 +152,13 @@ def from_response( if http_resp.status == 404: raise NotFoundException(http_resp=http_resp, body=body, data=data) + # Added new conditions for 409 and 422 + if http_resp.status == 409: + raise ConflictException(http_resp=http_resp, body=body, data=data) + + if http_resp.status == 422: + raise UnprocessableEntityException(http_resp=http_resp, body=body, data=data) + if 500 <= http_resp.status <= 599: raise ServiceException(http_resp=http_resp, body=body, data=data) raise ApiException(http_resp=http_resp, body=body, data=data) @@ -188,6 +195,18 @@ class ServiceException(ApiException): pass +class ConflictException(ApiException): + """Exception for HTTP 409 Conflict.""" + + pass + + +class UnprocessableEntityException(ApiException): + """Exception for HTTP 422 Unprocessable Entity.""" + + pass + + def render_path(path_to_item): """Returns a string representation of a path""" result = "" diff --git a/services/postgresflex/src/stackit/postgresflex/models/__init__.py b/services/postgresflex/src/stackit/postgresflex/models/__init__.py index 2f1a9c30..f7a8fbaf 100644 --- a/services/postgresflex/src/stackit/postgresflex/models/__init__.py +++ b/services/postgresflex/src/stackit/postgresflex/models/__init__.py @@ -11,7 +11,7 @@ Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 docstring might be too long +""" # noqa: E501 # import models into model package diff --git a/services/postgresflex/src/stackit/postgresflex/models/acl.py b/services/postgresflex/src/stackit/postgresflex/models/acl.py index e6c010eb..2820eccd 100644 --- a/services/postgresflex/src/stackit/postgresflex/models/acl.py +++ b/services/postgresflex/src/stackit/postgresflex/models/acl.py @@ -10,7 +10,7 @@ Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 docstring might be too long +""" # noqa: E501 from __future__ import annotations @@ -25,7 +25,7 @@ class ACL(BaseModel): """ ACL - """ + """ # noqa: E501 items: Optional[List[StrictStr]] = None __properties: ClassVar[List[str]] = ["items"] diff --git a/services/postgresflex/src/stackit/postgresflex/models/api_configuration.py b/services/postgresflex/src/stackit/postgresflex/models/api_configuration.py index 7c6b9261..ce288d1f 100644 --- a/services/postgresflex/src/stackit/postgresflex/models/api_configuration.py +++ b/services/postgresflex/src/stackit/postgresflex/models/api_configuration.py @@ -10,7 +10,7 @@ Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 docstring might be too long +""" # noqa: E501 from __future__ import annotations @@ -25,7 +25,7 @@ class ApiConfiguration(BaseModel): """ ApiConfiguration - """ + """ # noqa: E501 name: Optional[StrictStr] = None setting: Optional[StrictStr] = None diff --git a/services/postgresflex/src/stackit/postgresflex/models/api_extension_config_load_response.py b/services/postgresflex/src/stackit/postgresflex/models/api_extension_config_load_response.py index 5d34de2b..cc4bfcf8 100644 --- a/services/postgresflex/src/stackit/postgresflex/models/api_extension_config_load_response.py +++ b/services/postgresflex/src/stackit/postgresflex/models/api_extension_config_load_response.py @@ -10,7 +10,7 @@ Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 docstring might be too long +""" # noqa: E501 from __future__ import annotations @@ -27,7 +27,7 @@ class ApiExtensionConfigLoadResponse(BaseModel): """ ApiExtensionConfigLoadResponse - """ + """ # noqa: E501 configuration: Optional[List[ApiConfiguration]] = Field( default=None, description="Returns marshalled JSON of the new configuration of whatever extension is called" diff --git a/services/postgresflex/src/stackit/postgresflex/models/api_extension_configure_response.py b/services/postgresflex/src/stackit/postgresflex/models/api_extension_configure_response.py index e24b1199..7debe822 100644 --- a/services/postgresflex/src/stackit/postgresflex/models/api_extension_configure_response.py +++ b/services/postgresflex/src/stackit/postgresflex/models/api_extension_configure_response.py @@ -10,7 +10,7 @@ Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 docstring might be too long +""" # noqa: E501 from __future__ import annotations @@ -27,7 +27,7 @@ class ApiExtensionConfigureResponse(BaseModel): """ ApiExtensionConfigureResponse - """ + """ # noqa: E501 configuration: Optional[List[ApiConfiguration]] = Field( default=None, description="Returns marshalled JSON of the new configuration of whatever extension is called" diff --git a/services/postgresflex/src/stackit/postgresflex/models/api_extension_delete_response.py b/services/postgresflex/src/stackit/postgresflex/models/api_extension_delete_response.py index 00226ffb..6cb9750e 100644 --- a/services/postgresflex/src/stackit/postgresflex/models/api_extension_delete_response.py +++ b/services/postgresflex/src/stackit/postgresflex/models/api_extension_delete_response.py @@ -10,7 +10,7 @@ Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 docstring might be too long +""" # noqa: E501 from __future__ import annotations @@ -25,7 +25,7 @@ class ApiExtensionDeleteResponse(BaseModel): """ ApiExtensionDeleteResponse - """ + """ # noqa: E501 is_succeded: Optional[StrictBool] = Field(default=None, alias="isSucceded") __properties: ClassVar[List[str]] = ["isSucceded"] diff --git a/services/postgresflex/src/stackit/postgresflex/models/api_extension_list.py b/services/postgresflex/src/stackit/postgresflex/models/api_extension_list.py index a3ec2cba..c4314a20 100644 --- a/services/postgresflex/src/stackit/postgresflex/models/api_extension_list.py +++ b/services/postgresflex/src/stackit/postgresflex/models/api_extension_list.py @@ -10,7 +10,7 @@ Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 docstring might be too long +""" # noqa: E501 from __future__ import annotations @@ -25,7 +25,7 @@ class ApiExtensionList(BaseModel): """ ApiExtensionList - """ + """ # noqa: E501 id: Optional[StrictInt] = Field(default=None, alias="ID") description: Optional[StrictStr] = None diff --git a/services/postgresflex/src/stackit/postgresflex/models/api_extension_load_response.py b/services/postgresflex/src/stackit/postgresflex/models/api_extension_load_response.py index 481a5e22..b62c5fc2 100644 --- a/services/postgresflex/src/stackit/postgresflex/models/api_extension_load_response.py +++ b/services/postgresflex/src/stackit/postgresflex/models/api_extension_load_response.py @@ -10,7 +10,7 @@ Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 docstring might be too long +""" # noqa: E501 from __future__ import annotations @@ -27,7 +27,7 @@ class ApiExtensionLoadResponse(BaseModel): """ ApiExtensionLoadResponse - """ + """ # noqa: E501 extension: Optional[ApiExtensionList] = None __properties: ClassVar[List[str]] = ["extension"] diff --git a/services/postgresflex/src/stackit/postgresflex/models/api_install_response.py b/services/postgresflex/src/stackit/postgresflex/models/api_install_response.py index d1a8d6d6..225e2732 100644 --- a/services/postgresflex/src/stackit/postgresflex/models/api_install_response.py +++ b/services/postgresflex/src/stackit/postgresflex/models/api_install_response.py @@ -10,7 +10,7 @@ Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 docstring might be too long +""" # noqa: E501 from __future__ import annotations @@ -27,7 +27,7 @@ class ApiInstallResponse(BaseModel): """ ApiInstallResponse - """ + """ # noqa: E501 extension: Optional[ApiExtensionList] = None __properties: ClassVar[List[str]] = ["extension"] diff --git a/services/postgresflex/src/stackit/postgresflex/models/api_installed_list_response.py b/services/postgresflex/src/stackit/postgresflex/models/api_installed_list_response.py index c01cd7d0..b5a787ba 100644 --- a/services/postgresflex/src/stackit/postgresflex/models/api_installed_list_response.py +++ b/services/postgresflex/src/stackit/postgresflex/models/api_installed_list_response.py @@ -10,7 +10,7 @@ Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 docstring might be too long +""" # noqa: E501 from __future__ import annotations @@ -27,7 +27,7 @@ class ApiInstalledListResponse(BaseModel): """ ApiInstalledListResponse - """ + """ # noqa: E501 installed: Optional[List[ApiExtensionList]] = None __properties: ClassVar[List[str]] = ["installed"] diff --git a/services/postgresflex/src/stackit/postgresflex/models/backup.py b/services/postgresflex/src/stackit/postgresflex/models/backup.py index 6a7c32da..8cb8cdf0 100644 --- a/services/postgresflex/src/stackit/postgresflex/models/backup.py +++ b/services/postgresflex/src/stackit/postgresflex/models/backup.py @@ -10,7 +10,7 @@ Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 docstring might be too long +""" # noqa: E501 from __future__ import annotations @@ -25,7 +25,7 @@ class Backup(BaseModel): """ Backup - """ + """ # noqa: E501 end_time: Optional[StrictStr] = Field(default=None, alias="endTime") error: Optional[StrictStr] = None diff --git a/services/postgresflex/src/stackit/postgresflex/models/clone_instance_payload.py b/services/postgresflex/src/stackit/postgresflex/models/clone_instance_payload.py index 05bee56d..03511bd3 100644 --- a/services/postgresflex/src/stackit/postgresflex/models/clone_instance_payload.py +++ b/services/postgresflex/src/stackit/postgresflex/models/clone_instance_payload.py @@ -10,7 +10,7 @@ Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 docstring might be too long +""" # noqa: E501 from __future__ import annotations @@ -25,7 +25,7 @@ class CloneInstancePayload(BaseModel): """ CloneInstancePayload - """ + """ # noqa: E501 var_class: Optional[StrictStr] = Field(default=None, alias="class") size: Optional[StrictInt] = None diff --git a/services/postgresflex/src/stackit/postgresflex/models/clone_instance_response.py b/services/postgresflex/src/stackit/postgresflex/models/clone_instance_response.py index 594dca71..5a9d5343 100644 --- a/services/postgresflex/src/stackit/postgresflex/models/clone_instance_response.py +++ b/services/postgresflex/src/stackit/postgresflex/models/clone_instance_response.py @@ -10,7 +10,7 @@ Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 docstring might be too long +""" # noqa: E501 from __future__ import annotations @@ -25,7 +25,7 @@ class CloneInstanceResponse(BaseModel): """ CloneInstanceResponse - """ + """ # noqa: E501 instance_id: Optional[StrictStr] = Field(default=None, alias="instanceId") __properties: ClassVar[List[str]] = ["instanceId"] diff --git a/services/postgresflex/src/stackit/postgresflex/models/create_database_payload.py b/services/postgresflex/src/stackit/postgresflex/models/create_database_payload.py index 591e8b55..08e5e097 100644 --- a/services/postgresflex/src/stackit/postgresflex/models/create_database_payload.py +++ b/services/postgresflex/src/stackit/postgresflex/models/create_database_payload.py @@ -10,7 +10,7 @@ Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 docstring might be too long +""" # noqa: E501 from __future__ import annotations @@ -25,7 +25,7 @@ class CreateDatabasePayload(BaseModel): """ CreateDatabasePayload - """ + """ # noqa: E501 name: Optional[StrictStr] = None options: Optional[Dict[str, StrictStr]] = Field(default=None, description="Database specific options") diff --git a/services/postgresflex/src/stackit/postgresflex/models/create_instance_payload.py b/services/postgresflex/src/stackit/postgresflex/models/create_instance_payload.py index 90efe8dc..7745c9a8 100644 --- a/services/postgresflex/src/stackit/postgresflex/models/create_instance_payload.py +++ b/services/postgresflex/src/stackit/postgresflex/models/create_instance_payload.py @@ -10,7 +10,7 @@ Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 docstring might be too long +""" # noqa: E501 from __future__ import annotations @@ -28,7 +28,7 @@ class CreateInstancePayload(BaseModel): """ CreateInstancePayload - """ + """ # noqa: E501 acl: ACL backup_schedule: StrictStr = Field(alias="backupSchedule") diff --git a/services/postgresflex/src/stackit/postgresflex/models/create_instance_response.py b/services/postgresflex/src/stackit/postgresflex/models/create_instance_response.py index 209b1107..2dcaf537 100644 --- a/services/postgresflex/src/stackit/postgresflex/models/create_instance_response.py +++ b/services/postgresflex/src/stackit/postgresflex/models/create_instance_response.py @@ -10,7 +10,7 @@ Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 docstring might be too long +""" # noqa: E501 from __future__ import annotations @@ -25,7 +25,7 @@ class CreateInstanceResponse(BaseModel): """ CreateInstanceResponse - """ + """ # noqa: E501 id: Optional[StrictStr] = None __properties: ClassVar[List[str]] = ["id"] diff --git a/services/postgresflex/src/stackit/postgresflex/models/create_user_payload.py b/services/postgresflex/src/stackit/postgresflex/models/create_user_payload.py index ddd38793..3318ee39 100644 --- a/services/postgresflex/src/stackit/postgresflex/models/create_user_payload.py +++ b/services/postgresflex/src/stackit/postgresflex/models/create_user_payload.py @@ -10,7 +10,7 @@ Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 docstring might be too long +""" # noqa: E501 from __future__ import annotations @@ -25,7 +25,7 @@ class CreateUserPayload(BaseModel): """ CreateUserPayload - """ + """ # noqa: E501 roles: Optional[List[StrictStr]] = None username: Optional[StrictStr] = None diff --git a/services/postgresflex/src/stackit/postgresflex/models/create_user_response.py b/services/postgresflex/src/stackit/postgresflex/models/create_user_response.py index 01e49384..5bd1a015 100644 --- a/services/postgresflex/src/stackit/postgresflex/models/create_user_response.py +++ b/services/postgresflex/src/stackit/postgresflex/models/create_user_response.py @@ -10,7 +10,7 @@ Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 docstring might be too long +""" # noqa: E501 from __future__ import annotations @@ -27,7 +27,7 @@ class CreateUserResponse(BaseModel): """ CreateUserResponse - """ + """ # noqa: E501 item: Optional[User] = None __properties: ClassVar[List[str]] = ["item"] diff --git a/services/postgresflex/src/stackit/postgresflex/models/error.py b/services/postgresflex/src/stackit/postgresflex/models/error.py index 64ba99b2..f32c1e86 100644 --- a/services/postgresflex/src/stackit/postgresflex/models/error.py +++ b/services/postgresflex/src/stackit/postgresflex/models/error.py @@ -10,7 +10,7 @@ Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 docstring might be too long +""" # noqa: E501 from __future__ import annotations @@ -25,7 +25,7 @@ class Error(BaseModel): """ Error - """ + """ # noqa: E501 code: Optional[StrictInt] = None fields: Optional[Dict[str, List[StrictStr]]] = None diff --git a/services/postgresflex/src/stackit/postgresflex/models/extensions_configuration.py b/services/postgresflex/src/stackit/postgresflex/models/extensions_configuration.py index ed8c7a03..5631666c 100644 --- a/services/postgresflex/src/stackit/postgresflex/models/extensions_configuration.py +++ b/services/postgresflex/src/stackit/postgresflex/models/extensions_configuration.py @@ -10,7 +10,7 @@ Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 docstring might be too long +""" # noqa: E501 from __future__ import annotations @@ -25,7 +25,7 @@ class ExtensionsConfiguration(BaseModel): """ ExtensionsConfiguration - """ + """ # noqa: E501 name: Optional[StrictStr] = None setting: Optional[StrictStr] = None diff --git a/services/postgresflex/src/stackit/postgresflex/models/extensions_extension_list_response.py b/services/postgresflex/src/stackit/postgresflex/models/extensions_extension_list_response.py index b0319112..1898f0b5 100644 --- a/services/postgresflex/src/stackit/postgresflex/models/extensions_extension_list_response.py +++ b/services/postgresflex/src/stackit/postgresflex/models/extensions_extension_list_response.py @@ -10,7 +10,7 @@ Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 docstring might be too long +""" # noqa: E501 from __future__ import annotations @@ -27,7 +27,7 @@ class ExtensionsExtensionListResponse(BaseModel): """ ExtensionsExtensionListResponse - """ + """ # noqa: E501 list: Optional[List[ApiExtensionList]] = None __properties: ClassVar[List[str]] = ["list"] diff --git a/services/postgresflex/src/stackit/postgresflex/models/extensions_new_config.py b/services/postgresflex/src/stackit/postgresflex/models/extensions_new_config.py index 97a29770..579b181f 100644 --- a/services/postgresflex/src/stackit/postgresflex/models/extensions_new_config.py +++ b/services/postgresflex/src/stackit/postgresflex/models/extensions_new_config.py @@ -10,7 +10,7 @@ Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 docstring might be too long +""" # noqa: E501 from __future__ import annotations @@ -27,7 +27,7 @@ class ExtensionsNewConfig(BaseModel): """ ExtensionsNewConfig - """ + """ # noqa: E501 configuration: Optional[List[ExtensionsConfiguration]] = None __properties: ClassVar[List[str]] = ["configuration"] diff --git a/services/postgresflex/src/stackit/postgresflex/models/flavor.py b/services/postgresflex/src/stackit/postgresflex/models/flavor.py index 59fde513..77efd2ac 100644 --- a/services/postgresflex/src/stackit/postgresflex/models/flavor.py +++ b/services/postgresflex/src/stackit/postgresflex/models/flavor.py @@ -10,7 +10,7 @@ Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 docstring might be too long +""" # noqa: E501 from __future__ import annotations @@ -25,7 +25,7 @@ class Flavor(BaseModel): """ Flavor - """ + """ # noqa: E501 cpu: Optional[StrictInt] = None description: Optional[StrictStr] = None diff --git a/services/postgresflex/src/stackit/postgresflex/models/get_backup_response.py b/services/postgresflex/src/stackit/postgresflex/models/get_backup_response.py index ae6d25e7..5e6b619e 100644 --- a/services/postgresflex/src/stackit/postgresflex/models/get_backup_response.py +++ b/services/postgresflex/src/stackit/postgresflex/models/get_backup_response.py @@ -10,7 +10,7 @@ Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 docstring might be too long +""" # noqa: E501 from __future__ import annotations @@ -27,7 +27,7 @@ class GetBackupResponse(BaseModel): """ GetBackupResponse - """ + """ # noqa: E501 item: Optional[Backup] = None __properties: ClassVar[List[str]] = ["item"] diff --git a/services/postgresflex/src/stackit/postgresflex/models/get_user_response.py b/services/postgresflex/src/stackit/postgresflex/models/get_user_response.py index b83050be..85f78249 100644 --- a/services/postgresflex/src/stackit/postgresflex/models/get_user_response.py +++ b/services/postgresflex/src/stackit/postgresflex/models/get_user_response.py @@ -10,7 +10,7 @@ Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 docstring might be too long +""" # noqa: E501 from __future__ import annotations @@ -27,7 +27,7 @@ class GetUserResponse(BaseModel): """ GetUserResponse - """ + """ # noqa: E501 item: Optional[UserResponse] = None __properties: ClassVar[List[str]] = ["item"] diff --git a/services/postgresflex/src/stackit/postgresflex/models/instance.py b/services/postgresflex/src/stackit/postgresflex/models/instance.py index c2766b88..2c565642 100644 --- a/services/postgresflex/src/stackit/postgresflex/models/instance.py +++ b/services/postgresflex/src/stackit/postgresflex/models/instance.py @@ -10,7 +10,7 @@ Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 docstring might be too long +""" # noqa: E501 from __future__ import annotations @@ -29,7 +29,7 @@ class Instance(BaseModel): """ Instance - """ + """ # noqa: E501 acl: Optional[ACL] = None backup_schedule: Optional[StrictStr] = Field(default=None, alias="backupSchedule") diff --git a/services/postgresflex/src/stackit/postgresflex/models/instance_create_database_response.py b/services/postgresflex/src/stackit/postgresflex/models/instance_create_database_response.py index ffc68edc..ce9af702 100644 --- a/services/postgresflex/src/stackit/postgresflex/models/instance_create_database_response.py +++ b/services/postgresflex/src/stackit/postgresflex/models/instance_create_database_response.py @@ -10,7 +10,7 @@ Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 docstring might be too long +""" # noqa: E501 from __future__ import annotations @@ -25,7 +25,7 @@ class InstanceCreateDatabaseResponse(BaseModel): """ InstanceCreateDatabaseResponse - """ + """ # noqa: E501 id: Optional[StrictStr] = None __properties: ClassVar[List[str]] = ["id"] diff --git a/services/postgresflex/src/stackit/postgresflex/models/instance_data_point.py b/services/postgresflex/src/stackit/postgresflex/models/instance_data_point.py index 4925ee15..1ad97805 100644 --- a/services/postgresflex/src/stackit/postgresflex/models/instance_data_point.py +++ b/services/postgresflex/src/stackit/postgresflex/models/instance_data_point.py @@ -10,7 +10,7 @@ Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 docstring might be too long +""" # noqa: E501 from __future__ import annotations @@ -25,7 +25,7 @@ class InstanceDataPoint(BaseModel): """ InstanceDataPoint - """ + """ # noqa: E501 timestamp: Optional[StrictStr] = None value: Optional[Union[StrictFloat, StrictInt]] = None diff --git a/services/postgresflex/src/stackit/postgresflex/models/instance_database.py b/services/postgresflex/src/stackit/postgresflex/models/instance_database.py index 9661a957..bccc7cf4 100644 --- a/services/postgresflex/src/stackit/postgresflex/models/instance_database.py +++ b/services/postgresflex/src/stackit/postgresflex/models/instance_database.py @@ -10,7 +10,7 @@ Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 docstring might be too long +""" # noqa: E501 from __future__ import annotations @@ -25,7 +25,7 @@ class InstanceDatabase(BaseModel): """ InstanceDatabase - """ + """ # noqa: E501 id: Optional[StrictStr] = None name: Optional[StrictStr] = None diff --git a/services/postgresflex/src/stackit/postgresflex/models/instance_host.py b/services/postgresflex/src/stackit/postgresflex/models/instance_host.py index 36be9596..d2f01805 100644 --- a/services/postgresflex/src/stackit/postgresflex/models/instance_host.py +++ b/services/postgresflex/src/stackit/postgresflex/models/instance_host.py @@ -10,7 +10,7 @@ Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 docstring might be too long +""" # noqa: E501 from __future__ import annotations @@ -27,7 +27,7 @@ class InstanceHost(BaseModel): """ InstanceHost - """ + """ # noqa: E501 host_metrics: Optional[List[InstanceHostMetric]] = Field(default=None, alias="hostMetrics") id: Optional[StrictStr] = None diff --git a/services/postgresflex/src/stackit/postgresflex/models/instance_host_metric.py b/services/postgresflex/src/stackit/postgresflex/models/instance_host_metric.py index 8360e117..09cde5f7 100644 --- a/services/postgresflex/src/stackit/postgresflex/models/instance_host_metric.py +++ b/services/postgresflex/src/stackit/postgresflex/models/instance_host_metric.py @@ -10,7 +10,7 @@ Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 docstring might be too long +""" # noqa: E501 from __future__ import annotations @@ -27,7 +27,7 @@ class InstanceHostMetric(BaseModel): """ InstanceHostMetric - """ + """ # noqa: E501 datapoints: Optional[List[InstanceDataPoint]] = None name: Optional[StrictStr] = None diff --git a/services/postgresflex/src/stackit/postgresflex/models/instance_list_databases_response.py b/services/postgresflex/src/stackit/postgresflex/models/instance_list_databases_response.py index 69f36841..9b08c0ea 100644 --- a/services/postgresflex/src/stackit/postgresflex/models/instance_list_databases_response.py +++ b/services/postgresflex/src/stackit/postgresflex/models/instance_list_databases_response.py @@ -10,7 +10,7 @@ Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 docstring might be too long +""" # noqa: E501 from __future__ import annotations @@ -27,7 +27,7 @@ class InstanceListDatabasesResponse(BaseModel): """ InstanceListDatabasesResponse - """ + """ # noqa: E501 databases: Optional[List[InstanceDatabase]] = None __properties: ClassVar[List[str]] = ["databases"] diff --git a/services/postgresflex/src/stackit/postgresflex/models/instance_list_instance.py b/services/postgresflex/src/stackit/postgresflex/models/instance_list_instance.py index 94002b81..304e665f 100644 --- a/services/postgresflex/src/stackit/postgresflex/models/instance_list_instance.py +++ b/services/postgresflex/src/stackit/postgresflex/models/instance_list_instance.py @@ -10,7 +10,7 @@ Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 docstring might be too long +""" # noqa: E501 from __future__ import annotations @@ -25,7 +25,7 @@ class InstanceListInstance(BaseModel): """ InstanceListInstance - """ + """ # noqa: E501 id: Optional[StrictStr] = None name: Optional[StrictStr] = None diff --git a/services/postgresflex/src/stackit/postgresflex/models/instance_metrics_response.py b/services/postgresflex/src/stackit/postgresflex/models/instance_metrics_response.py index fbf5a91d..e0a9463a 100644 --- a/services/postgresflex/src/stackit/postgresflex/models/instance_metrics_response.py +++ b/services/postgresflex/src/stackit/postgresflex/models/instance_metrics_response.py @@ -10,7 +10,7 @@ Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 docstring might be too long +""" # noqa: E501 from __future__ import annotations @@ -27,7 +27,7 @@ class InstanceMetricsResponse(BaseModel): """ InstanceMetricsResponse - """ + """ # noqa: E501 hosts: Optional[List[InstanceHost]] = None __properties: ClassVar[List[str]] = ["hosts"] diff --git a/services/postgresflex/src/stackit/postgresflex/models/instance_response.py b/services/postgresflex/src/stackit/postgresflex/models/instance_response.py index f1808147..4577bd6b 100644 --- a/services/postgresflex/src/stackit/postgresflex/models/instance_response.py +++ b/services/postgresflex/src/stackit/postgresflex/models/instance_response.py @@ -10,7 +10,7 @@ Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 docstring might be too long +""" # noqa: E501 from __future__ import annotations @@ -27,7 +27,7 @@ class InstanceResponse(BaseModel): """ InstanceResponse - """ + """ # noqa: E501 item: Optional[Instance] = None __properties: ClassVar[List[str]] = ["item"] diff --git a/services/postgresflex/src/stackit/postgresflex/models/list_backups_response.py b/services/postgresflex/src/stackit/postgresflex/models/list_backups_response.py index 3631af5b..d92771fa 100644 --- a/services/postgresflex/src/stackit/postgresflex/models/list_backups_response.py +++ b/services/postgresflex/src/stackit/postgresflex/models/list_backups_response.py @@ -10,7 +10,7 @@ Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 docstring might be too long +""" # noqa: E501 from __future__ import annotations @@ -27,7 +27,7 @@ class ListBackupsResponse(BaseModel): """ ListBackupsResponse - """ + """ # noqa: E501 count: Optional[StrictInt] = None items: Optional[List[Backup]] = None diff --git a/services/postgresflex/src/stackit/postgresflex/models/list_flavors_response.py b/services/postgresflex/src/stackit/postgresflex/models/list_flavors_response.py index 66f64766..d72dae97 100644 --- a/services/postgresflex/src/stackit/postgresflex/models/list_flavors_response.py +++ b/services/postgresflex/src/stackit/postgresflex/models/list_flavors_response.py @@ -10,7 +10,7 @@ Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 docstring might be too long +""" # noqa: E501 from __future__ import annotations @@ -27,7 +27,7 @@ class ListFlavorsResponse(BaseModel): """ ListFlavorsResponse - """ + """ # noqa: E501 flavors: Optional[List[Flavor]] = None __properties: ClassVar[List[str]] = ["flavors"] diff --git a/services/postgresflex/src/stackit/postgresflex/models/list_instances_response.py b/services/postgresflex/src/stackit/postgresflex/models/list_instances_response.py index bb0dfe7d..7a49d9b0 100644 --- a/services/postgresflex/src/stackit/postgresflex/models/list_instances_response.py +++ b/services/postgresflex/src/stackit/postgresflex/models/list_instances_response.py @@ -10,7 +10,7 @@ Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 docstring might be too long +""" # noqa: E501 from __future__ import annotations @@ -27,7 +27,7 @@ class ListInstancesResponse(BaseModel): """ ListInstancesResponse - """ + """ # noqa: E501 count: Optional[StrictInt] = None items: Optional[List[InstanceListInstance]] = None diff --git a/services/postgresflex/src/stackit/postgresflex/models/list_storages_response.py b/services/postgresflex/src/stackit/postgresflex/models/list_storages_response.py index 57e1c207..625ceb2c 100644 --- a/services/postgresflex/src/stackit/postgresflex/models/list_storages_response.py +++ b/services/postgresflex/src/stackit/postgresflex/models/list_storages_response.py @@ -10,7 +10,7 @@ Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 docstring might be too long +""" # noqa: E501 from __future__ import annotations @@ -27,7 +27,7 @@ class ListStoragesResponse(BaseModel): """ ListStoragesResponse - """ + """ # noqa: E501 storage_classes: Optional[List[StrictStr]] = Field(default=None, alias="storageClasses") storage_range: Optional[StorageRange] = Field(default=None, alias="storageRange") diff --git a/services/postgresflex/src/stackit/postgresflex/models/list_users_response.py b/services/postgresflex/src/stackit/postgresflex/models/list_users_response.py index d218f223..15f36003 100644 --- a/services/postgresflex/src/stackit/postgresflex/models/list_users_response.py +++ b/services/postgresflex/src/stackit/postgresflex/models/list_users_response.py @@ -10,7 +10,7 @@ Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 docstring might be too long +""" # noqa: E501 from __future__ import annotations @@ -27,7 +27,7 @@ class ListUsersResponse(BaseModel): """ ListUsersResponse - """ + """ # noqa: E501 count: Optional[StrictInt] = None items: Optional[List[ListUsersResponseItem]] = None diff --git a/services/postgresflex/src/stackit/postgresflex/models/list_users_response_item.py b/services/postgresflex/src/stackit/postgresflex/models/list_users_response_item.py index 17a18f06..7640d4b9 100644 --- a/services/postgresflex/src/stackit/postgresflex/models/list_users_response_item.py +++ b/services/postgresflex/src/stackit/postgresflex/models/list_users_response_item.py @@ -10,7 +10,7 @@ Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 docstring might be too long +""" # noqa: E501 from __future__ import annotations @@ -25,7 +25,7 @@ class ListUsersResponseItem(BaseModel): """ ListUsersResponseItem - """ + """ # noqa: E501 id: Optional[StrictStr] = None username: Optional[StrictStr] = None diff --git a/services/postgresflex/src/stackit/postgresflex/models/list_versions_response.py b/services/postgresflex/src/stackit/postgresflex/models/list_versions_response.py index 87ff68c3..68de74b7 100644 --- a/services/postgresflex/src/stackit/postgresflex/models/list_versions_response.py +++ b/services/postgresflex/src/stackit/postgresflex/models/list_versions_response.py @@ -10,7 +10,7 @@ Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 docstring might be too long +""" # noqa: E501 from __future__ import annotations @@ -25,7 +25,7 @@ class ListVersionsResponse(BaseModel): """ ListVersionsResponse - """ + """ # noqa: E501 versions: Optional[List[StrictStr]] = None __properties: ClassVar[List[str]] = ["versions"] diff --git a/services/postgresflex/src/stackit/postgresflex/models/partial_update_instance_payload.py b/services/postgresflex/src/stackit/postgresflex/models/partial_update_instance_payload.py index 8e76d273..e8a6ef7a 100644 --- a/services/postgresflex/src/stackit/postgresflex/models/partial_update_instance_payload.py +++ b/services/postgresflex/src/stackit/postgresflex/models/partial_update_instance_payload.py @@ -10,7 +10,7 @@ Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 docstring might be too long +""" # noqa: E501 from __future__ import annotations @@ -28,7 +28,7 @@ class PartialUpdateInstancePayload(BaseModel): """ PartialUpdateInstancePayload - """ + """ # noqa: E501 acl: Optional[ACL] = None backup_schedule: Optional[StrictStr] = Field(default=None, alias="backupSchedule") diff --git a/services/postgresflex/src/stackit/postgresflex/models/partial_update_instance_response.py b/services/postgresflex/src/stackit/postgresflex/models/partial_update_instance_response.py index 7e312714..64c65816 100644 --- a/services/postgresflex/src/stackit/postgresflex/models/partial_update_instance_response.py +++ b/services/postgresflex/src/stackit/postgresflex/models/partial_update_instance_response.py @@ -10,7 +10,7 @@ Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 docstring might be too long +""" # noqa: E501 from __future__ import annotations @@ -27,7 +27,7 @@ class PartialUpdateInstanceResponse(BaseModel): """ PartialUpdateInstanceResponse - """ + """ # noqa: E501 item: Optional[Instance] = None __properties: ClassVar[List[str]] = ["item"] diff --git a/services/postgresflex/src/stackit/postgresflex/models/partial_update_user_payload.py b/services/postgresflex/src/stackit/postgresflex/models/partial_update_user_payload.py index 762f701b..65dfef9d 100644 --- a/services/postgresflex/src/stackit/postgresflex/models/partial_update_user_payload.py +++ b/services/postgresflex/src/stackit/postgresflex/models/partial_update_user_payload.py @@ -10,7 +10,7 @@ Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 docstring might be too long +""" # noqa: E501 from __future__ import annotations @@ -25,7 +25,7 @@ class PartialUpdateUserPayload(BaseModel): """ PartialUpdateUserPayload - """ + """ # noqa: E501 database: Optional[StrictStr] = None roles: Optional[List[StrictStr]] = None diff --git a/services/postgresflex/src/stackit/postgresflex/models/postgres_database_parameter.py b/services/postgresflex/src/stackit/postgresflex/models/postgres_database_parameter.py index 4dbfe818..b5bd1a1c 100644 --- a/services/postgresflex/src/stackit/postgresflex/models/postgres_database_parameter.py +++ b/services/postgresflex/src/stackit/postgresflex/models/postgres_database_parameter.py @@ -10,7 +10,7 @@ Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 docstring might be too long +""" # noqa: E501 from __future__ import annotations @@ -25,7 +25,7 @@ class PostgresDatabaseParameter(BaseModel): """ PostgresDatabaseParameter - """ + """ # noqa: E501 context: Optional[StrictStr] = Field(default=None, description="Context of the parameter.") data_type: Optional[StrictStr] = Field( diff --git a/services/postgresflex/src/stackit/postgresflex/models/postgres_database_parameter_response.py b/services/postgresflex/src/stackit/postgresflex/models/postgres_database_parameter_response.py index bc06cc56..bd49db7d 100644 --- a/services/postgresflex/src/stackit/postgresflex/models/postgres_database_parameter_response.py +++ b/services/postgresflex/src/stackit/postgresflex/models/postgres_database_parameter_response.py @@ -10,7 +10,7 @@ Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 docstring might be too long +""" # noqa: E501 from __future__ import annotations @@ -29,7 +29,7 @@ class PostgresDatabaseParameterResponse(BaseModel): """ PostgresDatabaseParameterResponse - """ + """ # noqa: E501 parameter: Optional[List[PostgresDatabaseParameter]] = Field(default=None, description="List of the parameter") __properties: ClassVar[List[str]] = ["parameter"] diff --git a/services/postgresflex/src/stackit/postgresflex/models/reset_user_response.py b/services/postgresflex/src/stackit/postgresflex/models/reset_user_response.py index 4773c55e..96cd9f36 100644 --- a/services/postgresflex/src/stackit/postgresflex/models/reset_user_response.py +++ b/services/postgresflex/src/stackit/postgresflex/models/reset_user_response.py @@ -10,7 +10,7 @@ Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 docstring might be too long +""" # noqa: E501 from __future__ import annotations @@ -27,7 +27,7 @@ class ResetUserResponse(BaseModel): """ ResetUserResponse - """ + """ # noqa: E501 item: Optional[User] = None __properties: ClassVar[List[str]] = ["item"] diff --git a/services/postgresflex/src/stackit/postgresflex/models/storage.py b/services/postgresflex/src/stackit/postgresflex/models/storage.py index 80902fa1..e904ce69 100644 --- a/services/postgresflex/src/stackit/postgresflex/models/storage.py +++ b/services/postgresflex/src/stackit/postgresflex/models/storage.py @@ -10,7 +10,7 @@ Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 docstring might be too long +""" # noqa: E501 from __future__ import annotations @@ -25,7 +25,7 @@ class Storage(BaseModel): """ Storage - """ + """ # noqa: E501 var_class: Optional[StrictStr] = Field(default=None, alias="class") size: Optional[StrictInt] = None diff --git a/services/postgresflex/src/stackit/postgresflex/models/storage_range.py b/services/postgresflex/src/stackit/postgresflex/models/storage_range.py index 86834bbf..d044eeb5 100644 --- a/services/postgresflex/src/stackit/postgresflex/models/storage_range.py +++ b/services/postgresflex/src/stackit/postgresflex/models/storage_range.py @@ -10,7 +10,7 @@ Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 docstring might be too long +""" # noqa: E501 from __future__ import annotations @@ -25,7 +25,7 @@ class StorageRange(BaseModel): """ StorageRange - """ + """ # noqa: E501 max: Optional[StrictInt] = None min: Optional[StrictInt] = None diff --git a/services/postgresflex/src/stackit/postgresflex/models/update_backup_schedule_payload.py b/services/postgresflex/src/stackit/postgresflex/models/update_backup_schedule_payload.py index 70df84fe..b1a172e0 100644 --- a/services/postgresflex/src/stackit/postgresflex/models/update_backup_schedule_payload.py +++ b/services/postgresflex/src/stackit/postgresflex/models/update_backup_schedule_payload.py @@ -10,7 +10,7 @@ Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 docstring might be too long +""" # noqa: E501 from __future__ import annotations @@ -25,7 +25,7 @@ class UpdateBackupSchedulePayload(BaseModel): """ UpdateBackupSchedulePayload - """ + """ # noqa: E501 backup_schedule: StrictStr = Field(alias="backupSchedule") __properties: ClassVar[List[str]] = ["backupSchedule"] diff --git a/services/postgresflex/src/stackit/postgresflex/models/update_instance_payload.py b/services/postgresflex/src/stackit/postgresflex/models/update_instance_payload.py index 9ea03cb1..52c40f61 100644 --- a/services/postgresflex/src/stackit/postgresflex/models/update_instance_payload.py +++ b/services/postgresflex/src/stackit/postgresflex/models/update_instance_payload.py @@ -10,7 +10,7 @@ Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 docstring might be too long +""" # noqa: E501 from __future__ import annotations @@ -28,7 +28,7 @@ class UpdateInstancePayload(BaseModel): """ UpdateInstancePayload - """ + """ # noqa: E501 acl: Optional[ACL] = None backup_schedule: Optional[StrictStr] = Field(default=None, alias="backupSchedule") diff --git a/services/postgresflex/src/stackit/postgresflex/models/update_user_payload.py b/services/postgresflex/src/stackit/postgresflex/models/update_user_payload.py index 80326945..57722fba 100644 --- a/services/postgresflex/src/stackit/postgresflex/models/update_user_payload.py +++ b/services/postgresflex/src/stackit/postgresflex/models/update_user_payload.py @@ -10,7 +10,7 @@ Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 docstring might be too long +""" # noqa: E501 from __future__ import annotations @@ -25,7 +25,7 @@ class UpdateUserPayload(BaseModel): """ UpdateUserPayload - """ + """ # noqa: E501 database: Optional[StrictStr] = None roles: Optional[List[StrictStr]] = None diff --git a/services/postgresflex/src/stackit/postgresflex/models/user.py b/services/postgresflex/src/stackit/postgresflex/models/user.py index b31eb818..5aeede49 100644 --- a/services/postgresflex/src/stackit/postgresflex/models/user.py +++ b/services/postgresflex/src/stackit/postgresflex/models/user.py @@ -10,7 +10,7 @@ Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 docstring might be too long +""" # noqa: E501 from __future__ import annotations @@ -25,7 +25,7 @@ class User(BaseModel): """ User - """ + """ # noqa: E501 database: Optional[StrictStr] = None host: Optional[StrictStr] = None diff --git a/services/postgresflex/src/stackit/postgresflex/models/user_response.py b/services/postgresflex/src/stackit/postgresflex/models/user_response.py index e1a6ac34..abd85fdd 100644 --- a/services/postgresflex/src/stackit/postgresflex/models/user_response.py +++ b/services/postgresflex/src/stackit/postgresflex/models/user_response.py @@ -10,7 +10,7 @@ Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 docstring might be too long +""" # noqa: E501 from __future__ import annotations @@ -25,7 +25,7 @@ class UserResponse(BaseModel): """ UserResponse - """ + """ # noqa: E501 host: Optional[StrictStr] = None id: Optional[StrictStr] = None diff --git a/services/postgresflex/src/stackit/postgresflex/rest.py b/services/postgresflex/src/stackit/postgresflex/rest.py index f1a6ec27..141c22ef 100644 --- a/services/postgresflex/src/stackit/postgresflex/rest.py +++ b/services/postgresflex/src/stackit/postgresflex/rest.py @@ -10,7 +10,7 @@ Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. -""" # noqa: E501 docstring might be too long +""" # noqa: E501 import io import json @@ -125,7 +125,7 @@ def request(self, method, url, headers=None, body=None, post_params=None, _reque data=body, headers=headers, ) - elif headers["Content-Type"] == "text/plain" and isinstance(body, bool): + elif headers["Content-Type"].startswith("text/") and isinstance(body, bool): request_body = "true" if body else "false" r = self.session.request(method, url, data=request_body, headers=headers) else: