diff --git a/services/dns/src/stackit/dns/__init__.py b/services/dns/src/stackit/dns/__init__.py index effdf62e..121a3e34 100644 --- a/services/dns/src/stackit/dns/__init__.py +++ b/services/dns/src/stackit/dns/__init__.py @@ -12,67 +12,151 @@ 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", + "CloneZonePayload", + "CreateLabelPayload", + "CreateLabelResponse", + "CreateRecordSetPayload", + "CreateZonePayload", + "DeleteLabelResponse", + "DomainExtensions", + "DomainObservabilityExtension", + "ErrorMessage", + "ExportRecordSetsPayload", + "ImportRecordSetsPayload", + "ImportRecordSetsResponse", + "ImportSummary", + "Label", + "ListLabelsResponse", + "ListRecordSetsResponse", + "ListZonesResponse", + "Message", + "MoveCodeResponse", + "MoveZonePayload", + "PartialUpdateRecordPayload", + "PartialUpdateRecordSetPayload", + "PartialUpdateZonePayload", + "Record", + "RecordDataExchange", + "RecordPayload", + "RecordSet", + "RecordSetResponse", + "ValidateMoveCodePayload", + "Zone", + "ZoneDataExchange", + "ZoneExtensions", + "ZoneModelsImportRecordModel", + "ZoneModelsImportZoneJson", + "ZoneObservabilityExtension", + "ZoneResponse", +] + # import apis into sdk package -from stackit.dns.api.default_api import DefaultApi -from stackit.dns.api_client import ApiClient +from stackit.dns.api.default_api import DefaultApi as DefaultApi +from stackit.dns.api_client import ApiClient as ApiClient # import ApiClient -from stackit.dns.api_response import ApiResponse -from stackit.dns.configuration import HostConfiguration -from stackit.dns.exceptions import ( - ApiAttributeError, - ApiException, - ApiKeyError, - ApiTypeError, - ApiValueError, - OpenApiException, -) +from stackit.dns.api_response import ApiResponse as ApiResponse +from stackit.dns.configuration import HostConfiguration as HostConfiguration +from stackit.dns.exceptions import ApiAttributeError as ApiAttributeError +from stackit.dns.exceptions import ApiException as ApiException +from stackit.dns.exceptions import ApiKeyError as ApiKeyError +from stackit.dns.exceptions import ApiTypeError as ApiTypeError +from stackit.dns.exceptions import ApiValueError as ApiValueError +from stackit.dns.exceptions import OpenApiException as OpenApiException # import models into sdk package -from stackit.dns.models.clone_zone_payload import CloneZonePayload -from stackit.dns.models.create_label_payload import CreateLabelPayload -from stackit.dns.models.create_label_response import CreateLabelResponse -from stackit.dns.models.create_record_set_payload import CreateRecordSetPayload -from stackit.dns.models.create_zone_payload import CreateZonePayload -from stackit.dns.models.delete_label_response import DeleteLabelResponse -from stackit.dns.models.domain_extensions import DomainExtensions +from stackit.dns.models.clone_zone_payload import CloneZonePayload as CloneZonePayload +from stackit.dns.models.create_label_payload import ( + CreateLabelPayload as CreateLabelPayload, +) +from stackit.dns.models.create_label_response import ( + CreateLabelResponse as CreateLabelResponse, +) +from stackit.dns.models.create_record_set_payload import ( + CreateRecordSetPayload as CreateRecordSetPayload, +) +from stackit.dns.models.create_zone_payload import ( + CreateZonePayload as CreateZonePayload, +) +from stackit.dns.models.delete_label_response import ( + DeleteLabelResponse as DeleteLabelResponse, +) +from stackit.dns.models.domain_extensions import DomainExtensions as DomainExtensions from stackit.dns.models.domain_observability_extension import ( - DomainObservabilityExtension, -) -from stackit.dns.models.error_message import ErrorMessage -from stackit.dns.models.export_record_sets_payload import ExportRecordSetsPayload -from stackit.dns.models.import_record_sets_payload import ImportRecordSetsPayload -from stackit.dns.models.import_record_sets_response import ImportRecordSetsResponse -from stackit.dns.models.import_summary import ImportSummary -from stackit.dns.models.label import Label -from stackit.dns.models.list_labels_response import ListLabelsResponse -from stackit.dns.models.list_record_sets_response import ListRecordSetsResponse -from stackit.dns.models.list_zones_response import ListZonesResponse -from stackit.dns.models.message import Message -from stackit.dns.models.move_code_response import MoveCodeResponse -from stackit.dns.models.move_zone_payload import MoveZonePayload -from stackit.dns.models.partial_update_record_payload import PartialUpdateRecordPayload + DomainObservabilityExtension as DomainObservabilityExtension, +) +from stackit.dns.models.error_message import ErrorMessage as ErrorMessage +from stackit.dns.models.export_record_sets_payload import ( + ExportRecordSetsPayload as ExportRecordSetsPayload, +) +from stackit.dns.models.import_record_sets_payload import ( + ImportRecordSetsPayload as ImportRecordSetsPayload, +) +from stackit.dns.models.import_record_sets_response import ( + ImportRecordSetsResponse as ImportRecordSetsResponse, +) +from stackit.dns.models.import_summary import ImportSummary as ImportSummary +from stackit.dns.models.label import Label as Label +from stackit.dns.models.list_labels_response import ( + ListLabelsResponse as ListLabelsResponse, +) +from stackit.dns.models.list_record_sets_response import ( + ListRecordSetsResponse as ListRecordSetsResponse, +) +from stackit.dns.models.list_zones_response import ( + ListZonesResponse as ListZonesResponse, +) +from stackit.dns.models.message import Message as Message +from stackit.dns.models.move_code_response import MoveCodeResponse as MoveCodeResponse +from stackit.dns.models.move_zone_payload import MoveZonePayload as MoveZonePayload +from stackit.dns.models.partial_update_record_payload import ( + PartialUpdateRecordPayload as PartialUpdateRecordPayload, +) from stackit.dns.models.partial_update_record_set_payload import ( - PartialUpdateRecordSetPayload, -) -from stackit.dns.models.partial_update_zone_payload import PartialUpdateZonePayload -from stackit.dns.models.record import Record -from stackit.dns.models.record_data_exchange import RecordDataExchange -from stackit.dns.models.record_payload import RecordPayload -from stackit.dns.models.record_set import RecordSet -from stackit.dns.models.record_set_response import RecordSetResponse -from stackit.dns.models.validate_move_code_payload import ValidateMoveCodePayload -from stackit.dns.models.zone import Zone -from stackit.dns.models.zone_data_exchange import ZoneDataExchange -from stackit.dns.models.zone_extensions import ZoneExtensions + PartialUpdateRecordSetPayload as PartialUpdateRecordSetPayload, +) +from stackit.dns.models.partial_update_zone_payload import ( + PartialUpdateZonePayload as PartialUpdateZonePayload, +) +from stackit.dns.models.record import Record as Record +from stackit.dns.models.record_data_exchange import ( + RecordDataExchange as RecordDataExchange, +) +from stackit.dns.models.record_payload import RecordPayload as RecordPayload +from stackit.dns.models.record_set import RecordSet as RecordSet +from stackit.dns.models.record_set_response import ( + RecordSetResponse as RecordSetResponse, +) +from stackit.dns.models.validate_move_code_payload import ( + ValidateMoveCodePayload as ValidateMoveCodePayload, +) +from stackit.dns.models.zone import Zone as Zone +from stackit.dns.models.zone_data_exchange import ZoneDataExchange as ZoneDataExchange +from stackit.dns.models.zone_extensions import ZoneExtensions as ZoneExtensions from stackit.dns.models.zone_models_import_record_model import ( - ZoneModelsImportRecordModel, + ZoneModelsImportRecordModel as ZoneModelsImportRecordModel, +) +from stackit.dns.models.zone_models_import_zone_json import ( + ZoneModelsImportZoneJson as ZoneModelsImportZoneJson, +) +from stackit.dns.models.zone_observability_extension import ( + ZoneObservabilityExtension as ZoneObservabilityExtension, ) -from stackit.dns.models.zone_models_import_zone_json import ZoneModelsImportZoneJson -from stackit.dns.models.zone_observability_extension import ZoneObservabilityExtension -from stackit.dns.models.zone_response import ZoneResponse +from stackit.dns.models.zone_response import ZoneResponse as ZoneResponse diff --git a/services/dns/src/stackit/dns/api/default_api.py b/services/dns/src/stackit/dns/api/default_api.py index 461fa386..247c0c06 100644 --- a/services/dns/src/stackit/dns/api/default_api.py +++ b/services/dns/src/stackit/dns/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 @@ -113,7 +113,7 @@ def clone_zone( 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_zone_serialize( project_id=project_id, @@ -186,7 +186,7 @@ def clone_zone_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_zone_serialize( project_id=project_id, @@ -259,7 +259,7 @@ def clone_zone_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_zone_serialize( project_id=project_id, @@ -301,7 +301,7 @@ def _clone_zone_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 @@ -392,7 +392,7 @@ def create_label( 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_label_serialize( project_id=project_id, @@ -464,7 +464,7 @@ def create_label_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_label_serialize( project_id=project_id, @@ -536,7 +536,7 @@ def create_label_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_label_serialize( project_id=project_id, @@ -577,7 +577,7 @@ def _create_label_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 @@ -665,7 +665,7 @@ def create_move_code( 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_move_code_serialize( project_id=project_id, @@ -733,7 +733,7 @@ def create_move_code_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_move_code_serialize( project_id=project_id, @@ -801,7 +801,7 @@ def create_move_code_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_move_code_serialize( project_id=project_id, @@ -840,7 +840,7 @@ def _create_move_code_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 @@ -921,7 +921,7 @@ def create_record_set( 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_record_set_serialize( project_id=project_id, @@ -994,7 +994,7 @@ def create_record_set_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_record_set_serialize( project_id=project_id, @@ -1067,7 +1067,7 @@ def create_record_set_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_record_set_serialize( project_id=project_id, @@ -1109,7 +1109,7 @@ def _create_record_set_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 @@ -1197,7 +1197,7 @@ def create_zone( 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_zone_serialize( project_id=project_id, @@ -1266,7 +1266,7 @@ def create_zone_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_zone_serialize( project_id=project_id, @@ -1335,7 +1335,7 @@ def create_zone_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_zone_serialize( project_id=project_id, @@ -1375,7 +1375,7 @@ def _create_zone_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 @@ -1464,7 +1464,7 @@ def delete_label( 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_label_serialize( project_id=project_id, @@ -1537,7 +1537,7 @@ def delete_label_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_label_serialize( project_id=project_id, @@ -1610,7 +1610,7 @@ def delete_label_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_label_serialize( project_id=project_id, @@ -1652,7 +1652,7 @@ def _delete_label_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 @@ -1732,7 +1732,7 @@ def delete_move_code( 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_move_code_serialize( project_id=project_id, @@ -1800,7 +1800,7 @@ def delete_move_code_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_move_code_serialize( project_id=project_id, @@ -1868,7 +1868,7 @@ def delete_move_code_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_move_code_serialize( project_id=project_id, @@ -1907,7 +1907,7 @@ def _delete_move_code_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 @@ -1988,7 +1988,7 @@ def delete_record_set( 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_record_set_serialize( project_id=project_id, @@ -2060,7 +2060,7 @@ def delete_record_set_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_record_set_serialize( project_id=project_id, @@ -2132,7 +2132,7 @@ def delete_record_set_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_record_set_serialize( project_id=project_id, @@ -2173,7 +2173,7 @@ def _delete_record_set_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 @@ -2253,7 +2253,7 @@ def delete_zone( 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_zone_serialize( project_id=project_id, @@ -2321,7 +2321,7 @@ def delete_zone_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_zone_serialize( project_id=project_id, @@ -2389,7 +2389,7 @@ def delete_zone_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_zone_serialize( project_id=project_id, @@ -2428,7 +2428,7 @@ def _delete_zone_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 @@ -2509,7 +2509,7 @@ def export_record_sets( 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._export_record_sets_serialize( project_id=project_id, @@ -2580,7 +2580,7 @@ def export_record_sets_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._export_record_sets_serialize( project_id=project_id, @@ -2651,7 +2651,7 @@ def export_record_sets_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._export_record_sets_serialize( project_id=project_id, @@ -2691,7 +2691,7 @@ def _export_record_sets_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 @@ -2784,7 +2784,7 @@ def get_record_set( 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_record_set_serialize( project_id=project_id, @@ -2856,7 +2856,7 @@ def get_record_set_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_record_set_serialize( project_id=project_id, @@ -2928,7 +2928,7 @@ def get_record_set_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_record_set_serialize( project_id=project_id, @@ -2969,7 +2969,7 @@ def _get_record_set_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 @@ -3049,7 +3049,7 @@ def get_zone( 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_zone_serialize( project_id=project_id, @@ -3117,7 +3117,7 @@ def get_zone_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_zone_serialize( project_id=project_id, @@ -3185,7 +3185,7 @@ def get_zone_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_zone_serialize( project_id=project_id, @@ -3224,7 +3224,7 @@ def _get_zone_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 @@ -3313,7 +3313,7 @@ def import_record_sets( 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._import_record_sets_serialize( project_id=project_id, @@ -3395,7 +3395,7 @@ def import_record_sets_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._import_record_sets_serialize( project_id=project_id, @@ -3477,7 +3477,7 @@ def import_record_sets_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._import_record_sets_serialize( project_id=project_id, @@ -3522,7 +3522,7 @@ def _import_record_sets_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 @@ -3620,7 +3620,7 @@ def list_labels( 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_labels_serialize( project_id=project_id, @@ -3689,7 +3689,7 @@ def list_labels_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_labels_serialize( project_id=project_id, @@ -3758,7 +3758,7 @@ def list_labels_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_labels_serialize( project_id=project_id, @@ -3798,7 +3798,7 @@ def _list_labels_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 @@ -4008,7 +4008,7 @@ def list_record_sets( 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_record_sets_serialize( project_id=project_id, @@ -4240,7 +4240,7 @@ def list_record_sets_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_record_sets_serialize( project_id=project_id, @@ -4472,7 +4472,7 @@ def list_record_sets_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_record_sets_serialize( project_id=project_id, @@ -4575,7 +4575,7 @@ def _list_record_sets_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 @@ -4954,7 +4954,7 @@ def list_zones( 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_zones_serialize( project_id=project_id, @@ -5238,7 +5238,7 @@ def list_zones_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_zones_serialize( project_id=project_id, @@ -5522,7 +5522,7 @@ def list_zones_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_zones_serialize( project_id=project_id, @@ -5650,7 +5650,7 @@ def _list_zones_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 @@ -5902,7 +5902,7 @@ def move_zone( 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._move_zone_serialize( project_id=project_id, @@ -5970,7 +5970,7 @@ def move_zone_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._move_zone_serialize( project_id=project_id, @@ -6038,7 +6038,7 @@ def move_zone_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._move_zone_serialize( project_id=project_id, @@ -6077,7 +6077,7 @@ def _move_zone_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 @@ -6169,7 +6169,7 @@ def partial_update_record( 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_record_serialize( project_id=project_id, @@ -6245,7 +6245,7 @@ def partial_update_record_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_record_serialize( project_id=project_id, @@ -6321,7 +6321,7 @@ def partial_update_record_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_record_serialize( project_id=project_id, @@ -6364,7 +6364,7 @@ def _partial_update_record_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 @@ -6462,7 +6462,7 @@ def partial_update_record_set( 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_record_set_serialize( project_id=project_id, @@ -6540,7 +6540,7 @@ def partial_update_record_set_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_record_set_serialize( project_id=project_id, @@ -6618,7 +6618,7 @@ def partial_update_record_set_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_record_set_serialize( project_id=project_id, @@ -6661,7 +6661,7 @@ def _partial_update_record_set_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 @@ -6754,7 +6754,7 @@ def partial_update_zone( 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_zone_serialize( project_id=project_id, @@ -6826,7 +6826,7 @@ def partial_update_zone_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_zone_serialize( project_id=project_id, @@ -6898,7 +6898,7 @@ def partial_update_zone_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_zone_serialize( project_id=project_id, @@ -6939,7 +6939,7 @@ def _partial_update_zone_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 @@ -7030,7 +7030,7 @@ def restore_record_set( 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._restore_record_set_serialize( project_id=project_id, @@ -7102,7 +7102,7 @@ def restore_record_set_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._restore_record_set_serialize( project_id=project_id, @@ -7174,7 +7174,7 @@ def restore_record_set_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._restore_record_set_serialize( project_id=project_id, @@ -7215,7 +7215,7 @@ def _restore_record_set_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 @@ -7295,7 +7295,7 @@ def restore_zone( 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._restore_zone_serialize( project_id=project_id, @@ -7362,7 +7362,7 @@ def restore_zone_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._restore_zone_serialize( project_id=project_id, @@ -7429,7 +7429,7 @@ def restore_zone_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._restore_zone_serialize( project_id=project_id, @@ -7467,7 +7467,7 @@ def _restore_zone_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 @@ -7545,7 +7545,7 @@ def retrieve_zone( 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._retrieve_zone_serialize( project_id=project_id, @@ -7612,7 +7612,7 @@ def retrieve_zone_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._retrieve_zone_serialize( project_id=project_id, @@ -7679,7 +7679,7 @@ def retrieve_zone_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._retrieve_zone_serialize( project_id=project_id, @@ -7717,7 +7717,7 @@ def _retrieve_zone_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 @@ -7798,7 +7798,7 @@ def validate_move_code( 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._validate_move_code_serialize( project_id=project_id, @@ -7869,7 +7869,7 @@ def validate_move_code_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._validate_move_code_serialize( project_id=project_id, @@ -7940,7 +7940,7 @@ def validate_move_code_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._validate_move_code_serialize( project_id=project_id, @@ -7980,7 +7980,7 @@ def _validate_move_code_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/dns/src/stackit/dns/api_client.py b/services/dns/src/stackit/dns/api_client.py index 870261f9..8d1f0602 100644 --- a/services/dns/src/stackit/dns/api_client.py +++ b/services/dns/src/stackit/dns/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() # noqa: E501 + 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/dns/src/stackit/dns/configuration.py b/services/dns/src/stackit/dns/configuration.py index 82d682cf..b98490a7 100644 --- a/services/dns/src/stackit/dns/configuration.py +++ b/services/dns/src/stackit/dns/configuration.py @@ -1,10 +1,5 @@ # coding: utf-8 -import sys - -import os - - """ STACKIT DNS 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/dns/src/stackit/dns/exceptions.py b/services/dns/src/stackit/dns/exceptions.py index 1e4a2aed..c5914dad 100644 --- a/services/dns/src/stackit/dns/exceptions.py +++ b/services/dns/src/stackit/dns/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 @@ -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/dns/src/stackit/dns/models/__init__.py b/services/dns/src/stackit/dns/models/__init__.py index 5f278539..c07e4bcb 100644 --- a/services/dns/src/stackit/dns/models/__init__.py +++ b/services/dns/src/stackit/dns/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/dns/src/stackit/dns/models/clone_zone_payload.py b/services/dns/src/stackit/dns/models/clone_zone_payload.py index dfcd8948..5820d2a0 100644 --- a/services/dns/src/stackit/dns/models/clone_zone_payload.py +++ b/services/dns/src/stackit/dns/models/clone_zone_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 CloneZonePayload(BaseModel): """ metadata to clone a zone. - """ + """ # noqa: E501 adjust_records: Optional[StrictBool] = Field( default=None, diff --git a/services/dns/src/stackit/dns/models/create_label_payload.py b/services/dns/src/stackit/dns/models/create_label_payload.py index 5ef1216e..d8f5e1fb 100644 --- a/services/dns/src/stackit/dns/models/create_label_payload.py +++ b/services/dns/src/stackit/dns/models/create_label_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 CreateLabelPayload(BaseModel): """ CreateLabelPayload - """ + """ # noqa: E501 key: Annotated[str, Field(min_length=1, strict=True, max_length=63)] value: Annotated[str, Field(min_length=1, strict=True, max_length=63)] diff --git a/services/dns/src/stackit/dns/models/create_label_response.py b/services/dns/src/stackit/dns/models/create_label_response.py index 061f69da..fa37b36f 100644 --- a/services/dns/src/stackit/dns/models/create_label_response.py +++ b/services/dns/src/stackit/dns/models/create_label_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 CreateLabelResponse(BaseModel): """ ResponseUpsertLabel. - """ + """ # noqa: E501 label: Optional[Label] = None message: Optional[StrictStr] = None diff --git a/services/dns/src/stackit/dns/models/create_record_set_payload.py b/services/dns/src/stackit/dns/models/create_record_set_payload.py index 089b6325..a12bdbed 100644 --- a/services/dns/src/stackit/dns/models/create_record_set_payload.py +++ b/services/dns/src/stackit/dns/models/create_record_set_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 @@ -27,7 +27,7 @@ class CreateRecordSetPayload(BaseModel): """ RRSetPost for rr set info. - """ + """ # noqa: E501 comment: Optional[Annotated[str, Field(strict=True, max_length=255)]] = Field( default=None, description="user comment" diff --git a/services/dns/src/stackit/dns/models/create_zone_payload.py b/services/dns/src/stackit/dns/models/create_zone_payload.py index 9b5bb90d..d5e61752 100644 --- a/services/dns/src/stackit/dns/models/create_zone_payload.py +++ b/services/dns/src/stackit/dns/models/create_zone_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 @@ -34,7 +34,7 @@ class CreateZonePayload(BaseModel): """ Zone to create. - """ + """ # noqa: E501 acl: Optional[Annotated[str, Field(strict=True, max_length=2000)]] = Field( default="0.0.0.0/0,::/0", description="access control list" diff --git a/services/dns/src/stackit/dns/models/delete_label_response.py b/services/dns/src/stackit/dns/models/delete_label_response.py index f6c9bac2..18f28d2a 100644 --- a/services/dns/src/stackit/dns/models/delete_label_response.py +++ b/services/dns/src/stackit/dns/models/delete_label_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 DeleteLabelResponse(BaseModel): """ ResponseDeleteLabel. - """ + """ # noqa: E501 label: Optional[Label] = None message: Optional[StrictStr] = None diff --git a/services/dns/src/stackit/dns/models/domain_extensions.py b/services/dns/src/stackit/dns/models/domain_extensions.py index 1839e8fe..8e62e483 100644 --- a/services/dns/src/stackit/dns/models/domain_extensions.py +++ b/services/dns/src/stackit/dns/models/domain_extensions.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 DomainExtensions(BaseModel): """ DomainExtensions - """ + """ # noqa: E501 observability_extension: Optional[DomainObservabilityExtension] = Field( default=None, alias="observabilityExtension" diff --git a/services/dns/src/stackit/dns/models/domain_observability_extension.py b/services/dns/src/stackit/dns/models/domain_observability_extension.py index cfae9cbd..c88d5f11 100644 --- a/services/dns/src/stackit/dns/models/domain_observability_extension.py +++ b/services/dns/src/stackit/dns/models/domain_observability_extension.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 DomainObservabilityExtension(BaseModel): """ DomainObservabilityExtension - """ + """ # noqa: E501 observability_instance_id: StrictStr = Field(alias="observabilityInstanceId") state: Optional[StrictStr] = None diff --git a/services/dns/src/stackit/dns/models/error_message.py b/services/dns/src/stackit/dns/models/error_message.py index 8127045c..6a77fb40 100644 --- a/services/dns/src/stackit/dns/models/error_message.py +++ b/services/dns/src/stackit/dns/models/error_message.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 ErrorMessage(BaseModel): """ ErrorMessage - """ + """ # noqa: E501 error: Optional[StrictStr] = None message: Optional[StrictStr] = None diff --git a/services/dns/src/stackit/dns/models/export_record_sets_payload.py b/services/dns/src/stackit/dns/models/export_record_sets_payload.py index 2239983e..a41fd7ce 100644 --- a/services/dns/src/stackit/dns/models/export_record_sets_payload.py +++ b/services/dns/src/stackit/dns/models/export_record_sets_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 @@ -32,7 +32,7 @@ class ExportRecordSetsPayload(BaseModel): """ ExportRecordSetsPayload - """ + """ # noqa: E501 export_as_fqdn: Optional[StrictBool] = Field(default=True, alias="exportAsFQDN") format: Optional[StrictStr] = "csv" diff --git a/services/dns/src/stackit/dns/models/import_record_sets_payload.py b/services/dns/src/stackit/dns/models/import_record_sets_payload.py index c1da0bd5..717e9f7e 100644 --- a/services/dns/src/stackit/dns/models/import_record_sets_payload.py +++ b/services/dns/src/stackit/dns/models/import_record_sets_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 @@ -29,7 +29,7 @@ class ImportRecordSetsPayload(BaseModel): """ ImportRecordSetsPayload - """ + """ # noqa: E501 rr_sets: Optional[List[ZoneModelsImportRecordModel]] = Field(default=None, alias="rrSets") __properties: ClassVar[List[str]] = ["rrSets"] diff --git a/services/dns/src/stackit/dns/models/import_record_sets_response.py b/services/dns/src/stackit/dns/models/import_record_sets_response.py index e919d6c2..7b886c93 100644 --- a/services/dns/src/stackit/dns/models/import_record_sets_response.py +++ b/services/dns/src/stackit/dns/models/import_record_sets_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 ImportRecordSetsResponse(BaseModel): """ ImportSummaryResponse is the response of the import. - """ + """ # noqa: E501 message: Optional[StrictStr] = None summary: ImportSummary diff --git a/services/dns/src/stackit/dns/models/import_summary.py b/services/dns/src/stackit/dns/models/import_summary.py index 2f2865c0..8be19baa 100644 --- a/services/dns/src/stackit/dns/models/import_summary.py +++ b/services/dns/src/stackit/dns/models/import_summary.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 ImportSummary(BaseModel): """ ImportSummary is the summary of the import. - """ + """ # noqa: E501 created_rr_sets: Optional[Annotated[int, Field(le=10000, strict=True, ge=0)]] = Field( default=None, alias="createdRRSets" diff --git a/services/dns/src/stackit/dns/models/label.py b/services/dns/src/stackit/dns/models/label.py index 85e92ca7..76421a4f 100644 --- a/services/dns/src/stackit/dns/models/label.py +++ b/services/dns/src/stackit/dns/models/label.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 Label(BaseModel): """ Label - """ + """ # noqa: E501 key: Annotated[str, Field(min_length=1, strict=True, max_length=63)] value: Annotated[str, Field(min_length=1, strict=True, max_length=63)] diff --git a/services/dns/src/stackit/dns/models/list_labels_response.py b/services/dns/src/stackit/dns/models/list_labels_response.py index 0c3a3afc..6b803fad 100644 --- a/services/dns/src/stackit/dns/models/list_labels_response.py +++ b/services/dns/src/stackit/dns/models/list_labels_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 ListLabelsResponse(BaseModel): """ ResponseAllLabels. - """ + """ # noqa: E501 labels: Optional[List[Label]] = None message: Optional[StrictStr] = None diff --git a/services/dns/src/stackit/dns/models/list_record_sets_response.py b/services/dns/src/stackit/dns/models/list_record_sets_response.py index 4b963d61..536a1aab 100644 --- a/services/dns/src/stackit/dns/models/list_record_sets_response.py +++ b/services/dns/src/stackit/dns/models/list_record_sets_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 ListRecordSetsResponse(BaseModel): """ ResponseRRSetAll. - """ + """ # noqa: E501 items_per_page: StrictInt = Field(alias="itemsPerPage") message: Optional[StrictStr] = None diff --git a/services/dns/src/stackit/dns/models/list_zones_response.py b/services/dns/src/stackit/dns/models/list_zones_response.py index 0b642d2f..705e3e16 100644 --- a/services/dns/src/stackit/dns/models/list_zones_response.py +++ b/services/dns/src/stackit/dns/models/list_zones_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 ListZonesResponse(BaseModel): """ ResponseZoneAll for filtered zones. - """ + """ # noqa: E501 items_per_page: StrictInt = Field(alias="itemsPerPage") message: Optional[StrictStr] = None diff --git a/services/dns/src/stackit/dns/models/message.py b/services/dns/src/stackit/dns/models/message.py index 07d132b3..17aaacf0 100644 --- a/services/dns/src/stackit/dns/models/message.py +++ b/services/dns/src/stackit/dns/models/message.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 Message(BaseModel): """ Message - """ + """ # noqa: E501 message: Optional[StrictStr] = None __properties: ClassVar[List[str]] = ["message"] diff --git a/services/dns/src/stackit/dns/models/move_code_response.py b/services/dns/src/stackit/dns/models/move_code_response.py index be021e17..a6a6fdc2 100644 --- a/services/dns/src/stackit/dns/models/move_code_response.py +++ b/services/dns/src/stackit/dns/models/move_code_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 MoveCodeResponse(BaseModel): """ MoveCodeResponse - """ + """ # noqa: E501 code: StrictStr = Field(description="code to move the zone. It is one time shown so better keep it.") expires_at: StrictStr = Field(description="when the code expires", alias="expiresAt") diff --git a/services/dns/src/stackit/dns/models/move_zone_payload.py b/services/dns/src/stackit/dns/models/move_zone_payload.py index e98f5ab0..1937968b 100644 --- a/services/dns/src/stackit/dns/models/move_zone_payload.py +++ b/services/dns/src/stackit/dns/models/move_zone_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 MoveZonePayload(BaseModel): """ body to move zone from one project to another. - """ + """ # noqa: E501 code: Annotated[str, Field(min_length=1, strict=True, max_length=1024)] = Field( description="Code to move the zone. It must be valid, not expired and belong" diff --git a/services/dns/src/stackit/dns/models/partial_update_record_payload.py b/services/dns/src/stackit/dns/models/partial_update_record_payload.py index 12262d28..69411f97 100644 --- a/services/dns/src/stackit/dns/models/partial_update_record_payload.py +++ b/services/dns/src/stackit/dns/models/partial_update_record_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 @@ -27,7 +27,7 @@ class PartialUpdateRecordPayload(BaseModel): """ RecordPatch for record patch in record set. - """ + """ # noqa: E501 action: StrictStr records: List[RecordPayload] = Field(description="records") diff --git a/services/dns/src/stackit/dns/models/partial_update_record_set_payload.py b/services/dns/src/stackit/dns/models/partial_update_record_set_payload.py index 9f8abae5..31126f6d 100644 --- a/services/dns/src/stackit/dns/models/partial_update_record_set_payload.py +++ b/services/dns/src/stackit/dns/models/partial_update_record_set_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 @@ -27,7 +27,7 @@ class PartialUpdateRecordSetPayload(BaseModel): """ RRSetPatch for rr patch set info. - """ + """ # noqa: E501 comment: Optional[Annotated[str, Field(strict=True, max_length=255)]] = Field( default=None, description="user comment" diff --git a/services/dns/src/stackit/dns/models/partial_update_zone_payload.py b/services/dns/src/stackit/dns/models/partial_update_zone_payload.py index fe91e5a8..413c7bfb 100644 --- a/services/dns/src/stackit/dns/models/partial_update_zone_payload.py +++ b/services/dns/src/stackit/dns/models/partial_update_zone_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 @@ -27,7 +27,7 @@ class PartialUpdateZonePayload(BaseModel): """ PartialUpdateZonePayload - """ + """ # noqa: E501 acl: Optional[Annotated[str, Field(strict=True, max_length=2000)]] = Field( default="0.0.0.0/0,::/0", description="access control list" diff --git a/services/dns/src/stackit/dns/models/record.py b/services/dns/src/stackit/dns/models/record.py index faee5a26..da2192b9 100644 --- a/services/dns/src/stackit/dns/models/record.py +++ b/services/dns/src/stackit/dns/models/record.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 Record(BaseModel): """ Record. - """ + """ # noqa: E501 content: Annotated[str, Field(min_length=1, strict=True, max_length=64000)] = Field( description="content of the record" diff --git a/services/dns/src/stackit/dns/models/record_data_exchange.py b/services/dns/src/stackit/dns/models/record_data_exchange.py index 41c12f96..dd64f94f 100644 --- a/services/dns/src/stackit/dns/models/record_data_exchange.py +++ b/services/dns/src/stackit/dns/models/record_data_exchange.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 RecordDataExchange(BaseModel): """ RecordDataExchange - """ + """ # noqa: E501 comment: Optional[StrictStr] = None content: Optional[List[StrictStr]] = None diff --git a/services/dns/src/stackit/dns/models/record_payload.py b/services/dns/src/stackit/dns/models/record_payload.py index 3618b374..6949652c 100644 --- a/services/dns/src/stackit/dns/models/record_payload.py +++ b/services/dns/src/stackit/dns/models/record_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 RecordPayload(BaseModel): """ RecordPost for rr set info. - """ + """ # noqa: E501 content: Annotated[str, Field(min_length=1, strict=True, max_length=64000)] = Field( description="content of the record" diff --git a/services/dns/src/stackit/dns/models/record_set.py b/services/dns/src/stackit/dns/models/record_set.py index 4533fa12..b1f38125 100644 --- a/services/dns/src/stackit/dns/models/record_set.py +++ b/services/dns/src/stackit/dns/models/record_set.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 @@ -34,7 +34,7 @@ class RecordSet(BaseModel): """ RRSet. - """ + """ # noqa: E501 active: Optional[StrictBool] = Field(default=None, description="if the record set is active or not") comment: Optional[Annotated[str, Field(strict=True, max_length=255)]] = Field(default=None, description="comment") diff --git a/services/dns/src/stackit/dns/models/record_set_response.py b/services/dns/src/stackit/dns/models/record_set_response.py index cb81c88f..81c47483 100644 --- a/services/dns/src/stackit/dns/models/record_set_response.py +++ b/services/dns/src/stackit/dns/models/record_set_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 RecordSetResponse(BaseModel): """ ResponseRRSet for rr set info. - """ + """ # noqa: E501 message: Optional[StrictStr] = None rrset: RecordSet diff --git a/services/dns/src/stackit/dns/models/validate_move_code_payload.py b/services/dns/src/stackit/dns/models/validate_move_code_payload.py index 4b67cdf8..c566deb1 100644 --- a/services/dns/src/stackit/dns/models/validate_move_code_payload.py +++ b/services/dns/src/stackit/dns/models/validate_move_code_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 ValidateMoveCodePayload(BaseModel): """ PostValidateMoveCodeRequest body to validate move code request. - """ + """ # noqa: E501 code: Annotated[str, Field(min_length=1, strict=True, max_length=1024)] = Field( description="code that should be validated. It validates if it is valid, not expired and belongs to the zone." diff --git a/services/dns/src/stackit/dns/models/zone.py b/services/dns/src/stackit/dns/models/zone.py index 7df94b5d..f0e07b7c 100644 --- a/services/dns/src/stackit/dns/models/zone.py +++ b/services/dns/src/stackit/dns/models/zone.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 @@ -36,7 +36,7 @@ class Zone(BaseModel): """ Zone. - """ + """ # noqa: E501 acl: StrictStr = Field(description="access control list") active: Optional[StrictBool] = None diff --git a/services/dns/src/stackit/dns/models/zone_data_exchange.py b/services/dns/src/stackit/dns/models/zone_data_exchange.py index a8ab0f2a..a938d73f 100644 --- a/services/dns/src/stackit/dns/models/zone_data_exchange.py +++ b/services/dns/src/stackit/dns/models/zone_data_exchange.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 ZoneDataExchange(BaseModel): """ ZoneDataExchange - """ + """ # noqa: E501 rr_sets: Optional[List[RecordDataExchange]] = Field(default=None, alias="rrSets") __properties: ClassVar[List[str]] = ["rrSets"] diff --git a/services/dns/src/stackit/dns/models/zone_extensions.py b/services/dns/src/stackit/dns/models/zone_extensions.py index 01514816..b635b75b 100644 --- a/services/dns/src/stackit/dns/models/zone_extensions.py +++ b/services/dns/src/stackit/dns/models/zone_extensions.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 ZoneExtensions(BaseModel): """ ZoneExtensions - """ + """ # noqa: E501 observability_extension: Optional[ZoneObservabilityExtension] = Field(default=None, alias="observabilityExtension") __properties: ClassVar[List[str]] = ["observabilityExtension"] diff --git a/services/dns/src/stackit/dns/models/zone_models_import_record_model.py b/services/dns/src/stackit/dns/models/zone_models_import_record_model.py index a66c6847..441eae2f 100644 --- a/services/dns/src/stackit/dns/models/zone_models_import_record_model.py +++ b/services/dns/src/stackit/dns/models/zone_models_import_record_model.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 ZoneModelsImportRecordModel(BaseModel): """ ZoneModelsImportRecordModel - """ + """ # noqa: E501 comment: Optional[StrictStr] = None content: Optional[List[StrictStr]] = None diff --git a/services/dns/src/stackit/dns/models/zone_models_import_zone_json.py b/services/dns/src/stackit/dns/models/zone_models_import_zone_json.py index 3685f1c4..7484b468 100644 --- a/services/dns/src/stackit/dns/models/zone_models_import_zone_json.py +++ b/services/dns/src/stackit/dns/models/zone_models_import_zone_json.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 ZoneModelsImportZoneJson(BaseModel): """ ZoneModelsImportZoneJson - """ + """ # noqa: E501 rr_sets: Optional[List[ZoneModelsImportRecordModel]] = Field(default=None, alias="rrSets") __properties: ClassVar[List[str]] = ["rrSets"] diff --git a/services/dns/src/stackit/dns/models/zone_observability_extension.py b/services/dns/src/stackit/dns/models/zone_observability_extension.py index 24975ae2..ccd1e69d 100644 --- a/services/dns/src/stackit/dns/models/zone_observability_extension.py +++ b/services/dns/src/stackit/dns/models/zone_observability_extension.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 ZoneObservabilityExtension(BaseModel): """ ZoneObservabilityExtension - """ + """ # noqa: E501 observability_instance_id: StrictStr = Field(alias="observabilityInstanceId") state: Optional[StrictStr] = None diff --git a/services/dns/src/stackit/dns/models/zone_response.py b/services/dns/src/stackit/dns/models/zone_response.py index 0ba22503..c51b789d 100644 --- a/services/dns/src/stackit/dns/models/zone_response.py +++ b/services/dns/src/stackit/dns/models/zone_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 ZoneResponse(BaseModel): """ ResponseZone for user info. - """ + """ # noqa: E501 message: Optional[StrictStr] = None zone: Zone diff --git a/services/dns/src/stackit/dns/rest.py b/services/dns/src/stackit/dns/rest.py index ec813953..dfda9f56 100644 --- a/services/dns/src/stackit/dns/rest.py +++ b/services/dns/src/stackit/dns/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: