diff --git a/services/lbapplication/src/stackit/lbapplication/__init__.py b/services/lbapplication/src/stackit/lbapplication/__init__.py index 9a7963cd..521ba882 100644 --- a/services/lbapplication/src/stackit/lbapplication/__init__.py +++ b/services/lbapplication/src/stackit/lbapplication/__init__.py @@ -11,89 +11,167 @@ 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", + "ActiveHealthCheck", + "CertificateConfig", + "CookiePersistence", + "CreateCredentialsPayload", + "CreateCredentialsResponse", + "CreateLoadBalancerPayload", + "CredentialsResponse", + "GetCredentialsResponse", + "GetQuotaResponse", + "GetServiceStatusResponse", + "GoogleProtobufAny", + "HTTPConfig", + "Header", + "HttpHealthChecks", + "ListCredentialsResponse", + "ListLoadBalancersResponse", + "ListPlansResponse", + "Listener", + "LoadBalancer", + "LoadBalancerError", + "LoadBalancerOptions", + "LoadbalancerOptionAccessControl", + "LoadbalancerOptionLogs", + "LoadbalancerOptionMetrics", + "LoadbalancerOptionObservability", + "Matcher", + "Network", + "PlanDetails", + "ProtocolOptionsHTTPS", + "QueryParameters", + "Rule", + "Status", + "Target", + "TargetPool", + "UpdateCredentialsPayload", + "UpdateCredentialsResponse", + "UpdateLoadBalancerPayload", + "UpdateTargetPoolPayload", +] + # import apis into sdk package -from stackit.lbapplication.api.default_api import DefaultApi -from stackit.lbapplication.api_client import ApiClient +from stackit.lbapplication.api.default_api import DefaultApi as DefaultApi +from stackit.lbapplication.api_client import ApiClient as ApiClient # import ApiClient -from stackit.lbapplication.api_response import ApiResponse -from stackit.lbapplication.configuration import HostConfiguration -from stackit.lbapplication.exceptions import ( - ApiAttributeError, - ApiException, - ApiKeyError, - ApiTypeError, - ApiValueError, - OpenApiException, -) +from stackit.lbapplication.api_response import ApiResponse as ApiResponse +from stackit.lbapplication.configuration import HostConfiguration as HostConfiguration +from stackit.lbapplication.exceptions import ApiAttributeError as ApiAttributeError +from stackit.lbapplication.exceptions import ApiException as ApiException +from stackit.lbapplication.exceptions import ApiKeyError as ApiKeyError +from stackit.lbapplication.exceptions import ApiTypeError as ApiTypeError +from stackit.lbapplication.exceptions import ApiValueError as ApiValueError +from stackit.lbapplication.exceptions import OpenApiException as OpenApiException # import models into sdk package -from stackit.lbapplication.models.active_health_check import ActiveHealthCheck -from stackit.lbapplication.models.certificate_config import CertificateConfig -from stackit.lbapplication.models.cookie_persistence import CookiePersistence +from stackit.lbapplication.models.active_health_check import ( + ActiveHealthCheck as ActiveHealthCheck, +) +from stackit.lbapplication.models.certificate_config import ( + CertificateConfig as CertificateConfig, +) +from stackit.lbapplication.models.cookie_persistence import ( + CookiePersistence as CookiePersistence, +) from stackit.lbapplication.models.create_credentials_payload import ( - CreateCredentialsPayload, + CreateCredentialsPayload as CreateCredentialsPayload, ) from stackit.lbapplication.models.create_credentials_response import ( - CreateCredentialsResponse, + CreateCredentialsResponse as CreateCredentialsResponse, ) from stackit.lbapplication.models.create_load_balancer_payload import ( - CreateLoadBalancerPayload, + CreateLoadBalancerPayload as CreateLoadBalancerPayload, +) +from stackit.lbapplication.models.credentials_response import ( + CredentialsResponse as CredentialsResponse, +) +from stackit.lbapplication.models.get_credentials_response import ( + GetCredentialsResponse as GetCredentialsResponse, +) +from stackit.lbapplication.models.get_quota_response import ( + GetQuotaResponse as GetQuotaResponse, ) -from stackit.lbapplication.models.credentials_response import CredentialsResponse -from stackit.lbapplication.models.get_credentials_response import GetCredentialsResponse -from stackit.lbapplication.models.get_quota_response import GetQuotaResponse from stackit.lbapplication.models.get_service_status_response import ( - GetServiceStatusResponse, + GetServiceStatusResponse as GetServiceStatusResponse, +) +from stackit.lbapplication.models.google_protobuf_any import ( + GoogleProtobufAny as GoogleProtobufAny, +) +from stackit.lbapplication.models.header import Header as Header +from stackit.lbapplication.models.http_config import HTTPConfig as HTTPConfig +from stackit.lbapplication.models.http_health_checks import ( + HttpHealthChecks as HttpHealthChecks, ) -from stackit.lbapplication.models.google_protobuf_any import GoogleProtobufAny -from stackit.lbapplication.models.header import Header -from stackit.lbapplication.models.http_config import HTTPConfig -from stackit.lbapplication.models.http_health_checks import HttpHealthChecks from stackit.lbapplication.models.list_credentials_response import ( - ListCredentialsResponse, + ListCredentialsResponse as ListCredentialsResponse, ) from stackit.lbapplication.models.list_load_balancers_response import ( - ListLoadBalancersResponse, + ListLoadBalancersResponse as ListLoadBalancersResponse, +) +from stackit.lbapplication.models.list_plans_response import ( + ListPlansResponse as ListPlansResponse, +) +from stackit.lbapplication.models.listener import Listener as Listener +from stackit.lbapplication.models.load_balancer import LoadBalancer as LoadBalancer +from stackit.lbapplication.models.load_balancer_error import ( + LoadBalancerError as LoadBalancerError, +) +from stackit.lbapplication.models.load_balancer_options import ( + LoadBalancerOptions as LoadBalancerOptions, ) -from stackit.lbapplication.models.list_plans_response import ListPlansResponse -from stackit.lbapplication.models.listener import Listener -from stackit.lbapplication.models.load_balancer import LoadBalancer -from stackit.lbapplication.models.load_balancer_error import LoadBalancerError -from stackit.lbapplication.models.load_balancer_options import LoadBalancerOptions from stackit.lbapplication.models.loadbalancer_option_access_control import ( - LoadbalancerOptionAccessControl, + LoadbalancerOptionAccessControl as LoadbalancerOptionAccessControl, +) +from stackit.lbapplication.models.loadbalancer_option_logs import ( + LoadbalancerOptionLogs as LoadbalancerOptionLogs, ) -from stackit.lbapplication.models.loadbalancer_option_logs import LoadbalancerOptionLogs from stackit.lbapplication.models.loadbalancer_option_metrics import ( - LoadbalancerOptionMetrics, + LoadbalancerOptionMetrics as LoadbalancerOptionMetrics, ) from stackit.lbapplication.models.loadbalancer_option_observability import ( - LoadbalancerOptionObservability, -) -from stackit.lbapplication.models.matcher import Matcher -from stackit.lbapplication.models.network import Network -from stackit.lbapplication.models.plan_details import PlanDetails -from stackit.lbapplication.models.protocol_options_https import ProtocolOptionsHTTPS -from stackit.lbapplication.models.query_parameters import QueryParameters -from stackit.lbapplication.models.rule import Rule -from stackit.lbapplication.models.status import Status -from stackit.lbapplication.models.target import Target -from stackit.lbapplication.models.target_pool import TargetPool + LoadbalancerOptionObservability as LoadbalancerOptionObservability, +) +from stackit.lbapplication.models.matcher import Matcher as Matcher +from stackit.lbapplication.models.network import Network as Network +from stackit.lbapplication.models.plan_details import PlanDetails as PlanDetails +from stackit.lbapplication.models.protocol_options_https import ( + ProtocolOptionsHTTPS as ProtocolOptionsHTTPS, +) +from stackit.lbapplication.models.query_parameters import ( + QueryParameters as QueryParameters, +) +from stackit.lbapplication.models.rule import Rule as Rule +from stackit.lbapplication.models.status import Status as Status +from stackit.lbapplication.models.target import Target as Target +from stackit.lbapplication.models.target_pool import TargetPool as TargetPool from stackit.lbapplication.models.update_credentials_payload import ( - UpdateCredentialsPayload, + UpdateCredentialsPayload as UpdateCredentialsPayload, ) from stackit.lbapplication.models.update_credentials_response import ( - UpdateCredentialsResponse, + UpdateCredentialsResponse as UpdateCredentialsResponse, ) from stackit.lbapplication.models.update_load_balancer_payload import ( - UpdateLoadBalancerPayload, + UpdateLoadBalancerPayload as UpdateLoadBalancerPayload, ) from stackit.lbapplication.models.update_target_pool_payload import ( - UpdateTargetPoolPayload, + UpdateTargetPoolPayload as UpdateTargetPoolPayload, ) diff --git a/services/lbapplication/src/stackit/lbapplication/api/default_api.py b/services/lbapplication/src/stackit/lbapplication/api/default_api.py index 657c4311..2fe9d4ef 100644 --- a/services/lbapplication/src/stackit/lbapplication/api/default_api.py +++ b/services/lbapplication/src/stackit/lbapplication/api/default_api.py @@ -9,7 +9,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 warnings from typing import Any, Dict, List, Optional, Tuple, Union @@ -117,7 +117,7 @@ def create_credentials( 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 warnings.warn("POST /v1beta/projects/{projectId}/credentials is deprecated.", DeprecationWarning) _param = self._create_credentials_serialize( @@ -190,7 +190,7 @@ def create_credentials_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 warnings.warn("POST /v1beta/projects/{projectId}/credentials is deprecated.", DeprecationWarning) _param = self._create_credentials_serialize( @@ -263,7 +263,7 @@ def create_credentials_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 warnings.warn("POST /v1beta/projects/{projectId}/credentials is deprecated.", DeprecationWarning) _param = self._create_credentials_serialize( @@ -305,7 +305,7 @@ def _create_credentials_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 @@ -396,7 +396,7 @@ def create_load_balancer( 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 warnings.warn("POST /v1beta/projects/{projectId}/load-balancers is deprecated.", DeprecationWarning) _param = self._create_load_balancer_serialize( @@ -470,7 +470,7 @@ def create_load_balancer_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 warnings.warn("POST /v1beta/projects/{projectId}/load-balancers is deprecated.", DeprecationWarning) _param = self._create_load_balancer_serialize( @@ -544,7 +544,7 @@ def create_load_balancer_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 warnings.warn("POST /v1beta/projects/{projectId}/load-balancers is deprecated.", DeprecationWarning) _param = self._create_load_balancer_serialize( @@ -587,7 +587,7 @@ def _create_load_balancer_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 @@ -675,7 +675,7 @@ def delete_credentials( 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 warnings.warn( "DELETE /v1beta/projects/{projectId}/credentials/{credentialsRef} is deprecated.", DeprecationWarning ) @@ -746,7 +746,7 @@ def delete_credentials_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 warnings.warn( "DELETE /v1beta/projects/{projectId}/credentials/{credentialsRef} is deprecated.", DeprecationWarning ) @@ -817,7 +817,7 @@ def delete_credentials_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 warnings.warn( "DELETE /v1beta/projects/{projectId}/credentials/{credentialsRef} is deprecated.", DeprecationWarning ) @@ -859,7 +859,7 @@ def _delete_credentials_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 @@ -937,7 +937,7 @@ def delete_load_balancer( 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 warnings.warn("DELETE /v1beta/projects/{projectId}/load-balancers/{name} is deprecated.", DeprecationWarning) _param = self._delete_load_balancer_serialize( @@ -1006,7 +1006,7 @@ def delete_load_balancer_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 warnings.warn("DELETE /v1beta/projects/{projectId}/load-balancers/{name} is deprecated.", DeprecationWarning) _param = self._delete_load_balancer_serialize( @@ -1075,7 +1075,7 @@ def delete_load_balancer_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 warnings.warn("DELETE /v1beta/projects/{projectId}/load-balancers/{name} is deprecated.", DeprecationWarning) _param = self._delete_load_balancer_serialize( @@ -1115,7 +1115,7 @@ def _delete_load_balancer_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 @@ -1190,7 +1190,7 @@ def disable_service( 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 warnings.warn("DELETE /v1beta/projects/{projectId} is deprecated.", DeprecationWarning) _param = self._disable_service_serialize( @@ -1255,7 +1255,7 @@ def disable_service_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 warnings.warn("DELETE /v1beta/projects/{projectId} is deprecated.", DeprecationWarning) _param = self._disable_service_serialize( @@ -1320,7 +1320,7 @@ def disable_service_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 warnings.warn("DELETE /v1beta/projects/{projectId} is deprecated.", DeprecationWarning) _param = self._disable_service_serialize( @@ -1358,7 +1358,7 @@ def _disable_service_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 @@ -1434,7 +1434,7 @@ def enable_service( 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 warnings.warn("POST /v1beta/projects/{projectId} is deprecated.", DeprecationWarning) _param = self._enable_service_serialize( @@ -1503,7 +1503,7 @@ def enable_service_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 warnings.warn("POST /v1beta/projects/{projectId} is deprecated.", DeprecationWarning) _param = self._enable_service_serialize( @@ -1572,7 +1572,7 @@ def enable_service_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 warnings.warn("POST /v1beta/projects/{projectId} is deprecated.", DeprecationWarning) _param = self._enable_service_serialize( @@ -1612,7 +1612,7 @@ def _enable_service_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 @@ -1690,7 +1690,7 @@ def get_credentials( 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 warnings.warn( "GET /v1beta/projects/{projectId}/credentials/{credentialsRef} is deprecated.", DeprecationWarning ) @@ -1762,7 +1762,7 @@ def get_credentials_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 warnings.warn( "GET /v1beta/projects/{projectId}/credentials/{credentialsRef} is deprecated.", DeprecationWarning ) @@ -1834,7 +1834,7 @@ def get_credentials_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 warnings.warn( "GET /v1beta/projects/{projectId}/credentials/{credentialsRef} is deprecated.", DeprecationWarning ) @@ -1877,7 +1877,7 @@ def _get_credentials_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 @@ -1955,7 +1955,7 @@ def get_load_balancer( 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 warnings.warn("GET /v1beta/projects/{projectId}/load-balancers/{name} is deprecated.", DeprecationWarning) _param = self._get_load_balancer_serialize( @@ -2025,7 +2025,7 @@ def get_load_balancer_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 warnings.warn("GET /v1beta/projects/{projectId}/load-balancers/{name} is deprecated.", DeprecationWarning) _param = self._get_load_balancer_serialize( @@ -2095,7 +2095,7 @@ def get_load_balancer_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 warnings.warn("GET /v1beta/projects/{projectId}/load-balancers/{name} is deprecated.", DeprecationWarning) _param = self._get_load_balancer_serialize( @@ -2136,7 +2136,7 @@ def _get_load_balancer_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 @@ -2211,7 +2211,7 @@ def get_quota( 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 warnings.warn("GET /v1beta/projects/{projectId}/quota is deprecated.", DeprecationWarning) _param = self._get_quota_serialize( @@ -2276,7 +2276,7 @@ def get_quota_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 warnings.warn("GET /v1beta/projects/{projectId}/quota is deprecated.", DeprecationWarning) _param = self._get_quota_serialize( @@ -2341,7 +2341,7 @@ def get_quota_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 warnings.warn("GET /v1beta/projects/{projectId}/quota is deprecated.", DeprecationWarning) _param = self._get_quota_serialize( @@ -2379,7 +2379,7 @@ def _get_quota_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 @@ -2452,7 +2452,7 @@ def get_service_status( 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 warnings.warn("GET /v1beta/projects/{projectId} is deprecated.", DeprecationWarning) _param = self._get_service_status_serialize( @@ -2517,7 +2517,7 @@ def get_service_status_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 warnings.warn("GET /v1beta/projects/{projectId} is deprecated.", DeprecationWarning) _param = self._get_service_status_serialize( @@ -2582,7 +2582,7 @@ def get_service_status_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 warnings.warn("GET /v1beta/projects/{projectId} is deprecated.", DeprecationWarning) _param = self._get_service_status_serialize( @@ -2620,7 +2620,7 @@ def _get_service_status_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 @@ -2693,7 +2693,7 @@ def list_credentials( 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 warnings.warn("GET /v1beta/projects/{projectId}/credentials is deprecated.", DeprecationWarning) _param = self._list_credentials_serialize( @@ -2758,7 +2758,7 @@ def list_credentials_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 warnings.warn("GET /v1beta/projects/{projectId}/credentials is deprecated.", DeprecationWarning) _param = self._list_credentials_serialize( @@ -2823,7 +2823,7 @@ def list_credentials_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 warnings.warn("GET /v1beta/projects/{projectId}/credentials is deprecated.", DeprecationWarning) _param = self._list_credentials_serialize( @@ -2861,7 +2861,7 @@ def _list_credentials_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 @@ -2950,7 +2950,7 @@ def list_load_balancers( 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 warnings.warn("GET /v1beta/projects/{projectId}/load-balancers is deprecated.", DeprecationWarning) _param = self._list_load_balancers_serialize( @@ -3033,7 +3033,7 @@ def list_load_balancers_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 warnings.warn("GET /v1beta/projects/{projectId}/load-balancers is deprecated.", DeprecationWarning) _param = self._list_load_balancers_serialize( @@ -3116,7 +3116,7 @@ def list_load_balancers_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 warnings.warn("GET /v1beta/projects/{projectId}/load-balancers is deprecated.", DeprecationWarning) _param = self._list_load_balancers_serialize( @@ -3158,7 +3158,7 @@ def _list_load_balancers_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 @@ -3236,7 +3236,7 @@ def list_plans( 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 warnings.warn("GET /v1beta/plans is deprecated.", DeprecationWarning) _param = self._list_plans_serialize( @@ -3294,7 +3294,7 @@ def list_plans_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 warnings.warn("GET /v1beta/plans is deprecated.", DeprecationWarning) _param = self._list_plans_serialize( @@ -3352,7 +3352,7 @@ def list_plans_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 warnings.warn("GET /v1beta/plans is deprecated.", DeprecationWarning) _param = self._list_plans_serialize( @@ -3385,7 +3385,7 @@ def _list_plans_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 @@ -3462,7 +3462,7 @@ def update_credentials( 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 warnings.warn( "PUT /v1beta/projects/{projectId}/credentials/{credentialsRef} is deprecated.", DeprecationWarning ) @@ -3538,7 +3538,7 @@ def update_credentials_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 warnings.warn( "PUT /v1beta/projects/{projectId}/credentials/{credentialsRef} is deprecated.", DeprecationWarning ) @@ -3614,7 +3614,7 @@ def update_credentials_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 warnings.warn( "PUT /v1beta/projects/{projectId}/credentials/{credentialsRef} is deprecated.", DeprecationWarning ) @@ -3659,7 +3659,7 @@ def _update_credentials_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 @@ -3750,7 +3750,7 @@ def update_load_balancer( 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 warnings.warn("PUT /v1beta/projects/{projectId}/load-balancers/{name} is deprecated.", DeprecationWarning) _param = self._update_load_balancer_serialize( @@ -3824,7 +3824,7 @@ def update_load_balancer_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 warnings.warn("PUT /v1beta/projects/{projectId}/load-balancers/{name} is deprecated.", DeprecationWarning) _param = self._update_load_balancer_serialize( @@ -3898,7 +3898,7 @@ def update_load_balancer_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 warnings.warn("PUT /v1beta/projects/{projectId}/load-balancers/{name} is deprecated.", DeprecationWarning) _param = self._update_load_balancer_serialize( @@ -3941,7 +3941,7 @@ def _update_load_balancer_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 @@ -4035,7 +4035,7 @@ def update_target_pool( 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 warnings.warn( "PUT /v1beta/projects/{projectId}/load-balancers/{name}/target-pools/{targetPoolName} is deprecated.", DeprecationWarning, @@ -4115,7 +4115,7 @@ def update_target_pool_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 warnings.warn( "PUT /v1beta/projects/{projectId}/load-balancers/{name}/target-pools/{targetPoolName} is deprecated.", DeprecationWarning, @@ -4195,7 +4195,7 @@ def update_target_pool_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 warnings.warn( "PUT /v1beta/projects/{projectId}/load-balancers/{name}/target-pools/{targetPoolName} is deprecated.", DeprecationWarning, @@ -4242,7 +4242,7 @@ def _update_target_pool_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/lbapplication/src/stackit/lbapplication/api_client.py b/services/lbapplication/src/stackit/lbapplication/api_client.py index 29cb6b3c..948df680 100644 --- a/services/lbapplication/src/stackit/lbapplication/api_client.py +++ b/services/lbapplication/src/stackit/lbapplication/api_client.py @@ -9,7 +9,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 @@ -331,6 +331,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]): @@ -350,12 +354,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)) @@ -457,7 +461,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 = " " @@ -473,7 +477,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. @@ -488,6 +495,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/lbapplication/src/stackit/lbapplication/configuration.py b/services/lbapplication/src/stackit/lbapplication/configuration.py index f7604511..f6b30fba 100644 --- a/services/lbapplication/src/stackit/lbapplication/configuration.py +++ b/services/lbapplication/src/stackit/lbapplication/configuration.py @@ -1,10 +1,5 @@ # coding: utf-8 -import sys - -import os - - """ Application Load Balancer API @@ -14,7 +9,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: @@ -53,7 +70,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/lbapplication/src/stackit/lbapplication/exceptions.py b/services/lbapplication/src/stackit/lbapplication/exceptions.py index d86df571..06cb9bf3 100644 --- a/services/lbapplication/src/stackit/lbapplication/exceptions.py +++ b/services/lbapplication/src/stackit/lbapplication/exceptions.py @@ -9,7 +9,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 @@ -127,7 +127,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() @@ -151,6 +151,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) @@ -187,6 +194,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/lbapplication/src/stackit/lbapplication/models/__init__.py b/services/lbapplication/src/stackit/lbapplication/models/__init__.py index 57a51ed8..22d7be5c 100644 --- a/services/lbapplication/src/stackit/lbapplication/models/__init__.py +++ b/services/lbapplication/src/stackit/lbapplication/models/__init__.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 models into model package diff --git a/services/lbapplication/src/stackit/lbapplication/models/active_health_check.py b/services/lbapplication/src/stackit/lbapplication/models/active_health_check.py index e503a4bd..f56c6875 100644 --- a/services/lbapplication/src/stackit/lbapplication/models/active_health_check.py +++ b/services/lbapplication/src/stackit/lbapplication/models/active_health_check.py @@ -9,13 +9,13 @@ 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 import json import pprint -import re +import re # noqa: F401 from typing import Any, ClassVar, Dict, List, Optional, Set from pydantic import BaseModel, ConfigDict, Field, StrictInt, field_validator @@ -27,7 +27,7 @@ class ActiveHealthCheck(BaseModel): """ ActiveHealthCheck - """ + """ # noqa: E501 healthy_threshold: Optional[StrictInt] = Field( default=None, description="Healthy threshold of the health checking", alias="healthyThreshold" diff --git a/services/lbapplication/src/stackit/lbapplication/models/certificate_config.py b/services/lbapplication/src/stackit/lbapplication/models/certificate_config.py index 09c9108e..a3445866 100644 --- a/services/lbapplication/src/stackit/lbapplication/models/certificate_config.py +++ b/services/lbapplication/src/stackit/lbapplication/models/certificate_config.py @@ -9,7 +9,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 @@ -24,7 +24,7 @@ class CertificateConfig(BaseModel): """ CertificateConfig - """ + """ # noqa: E501 certificate_ids: Optional[List[StrictStr]] = Field( default=None, description="Certificate IDs for TLS termination", alias="certificateIds" diff --git a/services/lbapplication/src/stackit/lbapplication/models/cookie_persistence.py b/services/lbapplication/src/stackit/lbapplication/models/cookie_persistence.py index 486846d2..134e3bfc 100644 --- a/services/lbapplication/src/stackit/lbapplication/models/cookie_persistence.py +++ b/services/lbapplication/src/stackit/lbapplication/models/cookie_persistence.py @@ -9,13 +9,13 @@ 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 import json import pprint -import re +import re # noqa: F401 from typing import Any, ClassVar, Dict, List, Optional, Set from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator @@ -25,7 +25,7 @@ class CookiePersistence(BaseModel): """ CookiePersistence - """ + """ # noqa: E501 name: Optional[StrictStr] = Field(default=None, description="Cookie is the name of the cookie to use.") ttl: Optional[Annotated[str, Field(strict=True)]] = Field( diff --git a/services/lbapplication/src/stackit/lbapplication/models/create_credentials_payload.py b/services/lbapplication/src/stackit/lbapplication/models/create_credentials_payload.py index 2958f8dc..368762a7 100644 --- a/services/lbapplication/src/stackit/lbapplication/models/create_credentials_payload.py +++ b/services/lbapplication/src/stackit/lbapplication/models/create_credentials_payload.py @@ -9,13 +9,13 @@ 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 import json import pprint -import re +import re # noqa: F401 from typing import Any, ClassVar, Dict, List, Optional, Set from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator @@ -25,7 +25,7 @@ class CreateCredentialsPayload(BaseModel): """ CreateCredentialsPayload - """ + """ # noqa: E501 display_name: Optional[Annotated[str, Field(strict=True)]] = Field( default=None, description="Credential name", alias="displayName" diff --git a/services/lbapplication/src/stackit/lbapplication/models/create_credentials_response.py b/services/lbapplication/src/stackit/lbapplication/models/create_credentials_response.py index 112145c9..8d1bb16f 100644 --- a/services/lbapplication/src/stackit/lbapplication/models/create_credentials_response.py +++ b/services/lbapplication/src/stackit/lbapplication/models/create_credentials_response.py @@ -9,7 +9,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 @@ -26,7 +26,7 @@ class CreateCredentialsResponse(BaseModel): """ CreateCredentialsResponse - """ + """ # noqa: E501 credential: Optional[CredentialsResponse] = None __properties: ClassVar[List[str]] = ["credential"] diff --git a/services/lbapplication/src/stackit/lbapplication/models/create_load_balancer_payload.py b/services/lbapplication/src/stackit/lbapplication/models/create_load_balancer_payload.py index 796fb74d..7513c892 100644 --- a/services/lbapplication/src/stackit/lbapplication/models/create_load_balancer_payload.py +++ b/services/lbapplication/src/stackit/lbapplication/models/create_load_balancer_payload.py @@ -9,13 +9,13 @@ 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 import json import pprint -import re +import re # noqa: F401 from typing import Any, ClassVar, Dict, List, Optional, Set from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator @@ -31,7 +31,7 @@ class CreateLoadBalancerPayload(BaseModel): """ CreateLoadBalancerPayload - """ + """ # noqa: E501 errors: Optional[List[LoadBalancerError]] = Field( default=None, description="Reports all errors a application load balancer has." diff --git a/services/lbapplication/src/stackit/lbapplication/models/credentials_response.py b/services/lbapplication/src/stackit/lbapplication/models/credentials_response.py index f520edcb..38c8e29a 100644 --- a/services/lbapplication/src/stackit/lbapplication/models/credentials_response.py +++ b/services/lbapplication/src/stackit/lbapplication/models/credentials_response.py @@ -9,13 +9,13 @@ 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 import json import pprint -import re +import re # noqa: F401 from typing import Any, ClassVar, Dict, List, Optional, Set from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator @@ -25,7 +25,7 @@ class CredentialsResponse(BaseModel): """ CredentialsResponse - """ + """ # noqa: E501 credentials_ref: Optional[StrictStr] = Field( default=None, diff --git a/services/lbapplication/src/stackit/lbapplication/models/get_credentials_response.py b/services/lbapplication/src/stackit/lbapplication/models/get_credentials_response.py index 4a1e88ee..7a069863 100644 --- a/services/lbapplication/src/stackit/lbapplication/models/get_credentials_response.py +++ b/services/lbapplication/src/stackit/lbapplication/models/get_credentials_response.py @@ -9,7 +9,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 @@ -26,7 +26,7 @@ class GetCredentialsResponse(BaseModel): """ GetCredentialsResponse - """ + """ # noqa: E501 credential: Optional[CredentialsResponse] = None __properties: ClassVar[List[str]] = ["credential"] diff --git a/services/lbapplication/src/stackit/lbapplication/models/get_quota_response.py b/services/lbapplication/src/stackit/lbapplication/models/get_quota_response.py index b753ddac..81d2295b 100644 --- a/services/lbapplication/src/stackit/lbapplication/models/get_quota_response.py +++ b/services/lbapplication/src/stackit/lbapplication/models/get_quota_response.py @@ -9,13 +9,13 @@ 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 import json import pprint -import re +import re # noqa: F401 from typing import Any, ClassVar, Dict, List, Optional, Set from pydantic import BaseModel, ConfigDict, Field, field_validator @@ -25,7 +25,7 @@ class GetQuotaResponse(BaseModel): """ GetQuotaResponse - """ + """ # noqa: E501 max_load_balancers: Optional[Annotated[int, Field(le=999, strict=True, ge=-1)]] = Field( default=None, diff --git a/services/lbapplication/src/stackit/lbapplication/models/get_service_status_response.py b/services/lbapplication/src/stackit/lbapplication/models/get_service_status_response.py index b0f5b8df..72bd1ac7 100644 --- a/services/lbapplication/src/stackit/lbapplication/models/get_service_status_response.py +++ b/services/lbapplication/src/stackit/lbapplication/models/get_service_status_response.py @@ -9,7 +9,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 @@ -24,7 +24,7 @@ class GetServiceStatusResponse(BaseModel): """ Response with customer project status. - """ + """ # noqa: E501 status: Optional[StrictStr] = Field(default=None, description="status of the project") __properties: ClassVar[List[str]] = ["status"] diff --git a/services/lbapplication/src/stackit/lbapplication/models/google_protobuf_any.py b/services/lbapplication/src/stackit/lbapplication/models/google_protobuf_any.py index fa2b1873..46efd22c 100644 --- a/services/lbapplication/src/stackit/lbapplication/models/google_protobuf_any.py +++ b/services/lbapplication/src/stackit/lbapplication/models/google_protobuf_any.py @@ -9,7 +9,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 @@ -24,7 +24,7 @@ class GoogleProtobufAny(BaseModel): """ Contains an arbitrary serialized message along with a @type that describes the type of the serialized message. - """ + """ # noqa: E501 type: Optional[StrictStr] = Field(default=None, description="The type of the serialized message.", alias="@type") additional_properties: Dict[str, Any] = {} diff --git a/services/lbapplication/src/stackit/lbapplication/models/header.py b/services/lbapplication/src/stackit/lbapplication/models/header.py index 614c8dff..998db8ab 100644 --- a/services/lbapplication/src/stackit/lbapplication/models/header.py +++ b/services/lbapplication/src/stackit/lbapplication/models/header.py @@ -9,7 +9,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 @@ -24,7 +24,7 @@ class Header(BaseModel): """ Header - """ + """ # noqa: E501 exact_match: Optional[StrictStr] = Field( default=None, description="Exact match for the header value.", alias="exactMatch" diff --git a/services/lbapplication/src/stackit/lbapplication/models/http_config.py b/services/lbapplication/src/stackit/lbapplication/models/http_config.py index e7603d99..c548147d 100644 --- a/services/lbapplication/src/stackit/lbapplication/models/http_config.py +++ b/services/lbapplication/src/stackit/lbapplication/models/http_config.py @@ -9,7 +9,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 @@ -26,7 +26,7 @@ class HTTPConfig(BaseModel): """ HTTPConfig - """ + """ # noqa: E501 matcher: Optional[List[Matcher]] = None __properties: ClassVar[List[str]] = ["matcher"] diff --git a/services/lbapplication/src/stackit/lbapplication/models/http_health_checks.py b/services/lbapplication/src/stackit/lbapplication/models/http_health_checks.py index 54ca15f4..a581e3e2 100644 --- a/services/lbapplication/src/stackit/lbapplication/models/http_health_checks.py +++ b/services/lbapplication/src/stackit/lbapplication/models/http_health_checks.py @@ -9,7 +9,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 @@ -24,7 +24,7 @@ class HttpHealthChecks(BaseModel): """ HttpHealthChecks - """ + """ # noqa: E501 ok_statuses: Optional[List[StrictStr]] = Field( default=None, description="List of HTTP status codes that indicate a healthy response", alias="okStatuses" diff --git a/services/lbapplication/src/stackit/lbapplication/models/list_credentials_response.py b/services/lbapplication/src/stackit/lbapplication/models/list_credentials_response.py index 4b0a5385..1a5c4a82 100644 --- a/services/lbapplication/src/stackit/lbapplication/models/list_credentials_response.py +++ b/services/lbapplication/src/stackit/lbapplication/models/list_credentials_response.py @@ -9,7 +9,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 @@ -26,7 +26,7 @@ class ListCredentialsResponse(BaseModel): """ ListCredentialsResponse - """ + """ # noqa: E501 credentials: Optional[List[CredentialsResponse]] = None __properties: ClassVar[List[str]] = ["credentials"] diff --git a/services/lbapplication/src/stackit/lbapplication/models/list_load_balancers_response.py b/services/lbapplication/src/stackit/lbapplication/models/list_load_balancers_response.py index 83de31b7..4d0ebe77 100644 --- a/services/lbapplication/src/stackit/lbapplication/models/list_load_balancers_response.py +++ b/services/lbapplication/src/stackit/lbapplication/models/list_load_balancers_response.py @@ -9,13 +9,13 @@ 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 import json import pprint -import re +import re # noqa: F401 from typing import Any, ClassVar, Dict, List, Optional, Set from pydantic import BaseModel, ConfigDict, Field, field_validator @@ -27,7 +27,7 @@ class ListLoadBalancersResponse(BaseModel): """ ListLoadBalancersResponse - """ + """ # noqa: E501 load_balancers: Optional[List[LoadBalancer]] = Field(default=None, alias="loadBalancers") next_page_id: Optional[Annotated[str, Field(strict=True)]] = Field( diff --git a/services/lbapplication/src/stackit/lbapplication/models/list_plans_response.py b/services/lbapplication/src/stackit/lbapplication/models/list_plans_response.py index 87e79119..fc4a88cc 100644 --- a/services/lbapplication/src/stackit/lbapplication/models/list_plans_response.py +++ b/services/lbapplication/src/stackit/lbapplication/models/list_plans_response.py @@ -9,7 +9,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 @@ -26,7 +26,7 @@ class ListPlansResponse(BaseModel): """ ListPlansResponse - """ + """ # noqa: E501 valid_plans: Optional[List[PlanDetails]] = Field(default=None, alias="validPlans") __properties: ClassVar[List[str]] = ["validPlans"] diff --git a/services/lbapplication/src/stackit/lbapplication/models/listener.py b/services/lbapplication/src/stackit/lbapplication/models/listener.py index 328cbf5f..7742713e 100644 --- a/services/lbapplication/src/stackit/lbapplication/models/listener.py +++ b/services/lbapplication/src/stackit/lbapplication/models/listener.py @@ -9,7 +9,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 Listener(BaseModel): """ Listener - """ + """ # noqa: E501 display_name: Optional[StrictStr] = Field(default=None, alias="displayName") http: Optional[Dict[str, Any]] = None diff --git a/services/lbapplication/src/stackit/lbapplication/models/load_balancer.py b/services/lbapplication/src/stackit/lbapplication/models/load_balancer.py index 56e59800..b96c2a4d 100644 --- a/services/lbapplication/src/stackit/lbapplication/models/load_balancer.py +++ b/services/lbapplication/src/stackit/lbapplication/models/load_balancer.py @@ -9,13 +9,13 @@ 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 import json import pprint -import re +import re # noqa: F401 from typing import Any, ClassVar, Dict, List, Optional, Set from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator @@ -31,7 +31,7 @@ class LoadBalancer(BaseModel): """ LoadBalancer - """ + """ # noqa: E501 errors: Optional[List[LoadBalancerError]] = Field( default=None, description="Reports all errors a application load balancer has." diff --git a/services/lbapplication/src/stackit/lbapplication/models/load_balancer_error.py b/services/lbapplication/src/stackit/lbapplication/models/load_balancer_error.py index c9909e0d..b676ff3e 100644 --- a/services/lbapplication/src/stackit/lbapplication/models/load_balancer_error.py +++ b/services/lbapplication/src/stackit/lbapplication/models/load_balancer_error.py @@ -9,7 +9,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 @@ -24,7 +24,7 @@ class LoadBalancerError(BaseModel): """ LoadBalancerError - """ + """ # noqa: E501 description: Optional[StrictStr] = Field( default=None, diff --git a/services/lbapplication/src/stackit/lbapplication/models/load_balancer_options.py b/services/lbapplication/src/stackit/lbapplication/models/load_balancer_options.py index 03a70caf..af7bb708 100644 --- a/services/lbapplication/src/stackit/lbapplication/models/load_balancer_options.py +++ b/services/lbapplication/src/stackit/lbapplication/models/load_balancer_options.py @@ -9,7 +9,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 @@ -31,7 +31,7 @@ class LoadBalancerOptions(BaseModel): """ Defines any optional functionality you want to have enabled on your application load balancer. - """ + """ # noqa: E501 access_control: Optional[LoadbalancerOptionAccessControl] = Field(default=None, alias="accessControl") ephemeral_address: Optional[StrictBool] = Field(default=None, alias="ephemeralAddress") diff --git a/services/lbapplication/src/stackit/lbapplication/models/loadbalancer_option_access_control.py b/services/lbapplication/src/stackit/lbapplication/models/loadbalancer_option_access_control.py index 60249b8f..8d64bff4 100644 --- a/services/lbapplication/src/stackit/lbapplication/models/loadbalancer_option_access_control.py +++ b/services/lbapplication/src/stackit/lbapplication/models/loadbalancer_option_access_control.py @@ -9,7 +9,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 @@ -24,7 +24,7 @@ class LoadbalancerOptionAccessControl(BaseModel): """ Use this option to limit the IP ranges that can use the application load balancer. - """ + """ # noqa: E501 allowed_source_ranges: Optional[List[StrictStr]] = Field( default=None, diff --git a/services/lbapplication/src/stackit/lbapplication/models/loadbalancer_option_logs.py b/services/lbapplication/src/stackit/lbapplication/models/loadbalancer_option_logs.py index 730832bd..cd203763 100644 --- a/services/lbapplication/src/stackit/lbapplication/models/loadbalancer_option_logs.py +++ b/services/lbapplication/src/stackit/lbapplication/models/loadbalancer_option_logs.py @@ -9,7 +9,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 @@ -24,7 +24,7 @@ class LoadbalancerOptionLogs(BaseModel): """ LoadbalancerOptionLogs - """ + """ # noqa: E501 credentials_ref: Optional[StrictStr] = Field( default=None, diff --git a/services/lbapplication/src/stackit/lbapplication/models/loadbalancer_option_metrics.py b/services/lbapplication/src/stackit/lbapplication/models/loadbalancer_option_metrics.py index d83d012a..f138c3b9 100644 --- a/services/lbapplication/src/stackit/lbapplication/models/loadbalancer_option_metrics.py +++ b/services/lbapplication/src/stackit/lbapplication/models/loadbalancer_option_metrics.py @@ -9,7 +9,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 @@ -24,7 +24,7 @@ class LoadbalancerOptionMetrics(BaseModel): """ LoadbalancerOptionMetrics - """ + """ # noqa: E501 credentials_ref: Optional[StrictStr] = Field( default=None, diff --git a/services/lbapplication/src/stackit/lbapplication/models/loadbalancer_option_observability.py b/services/lbapplication/src/stackit/lbapplication/models/loadbalancer_option_observability.py index 48edf897..f40dc1e2 100644 --- a/services/lbapplication/src/stackit/lbapplication/models/loadbalancer_option_observability.py +++ b/services/lbapplication/src/stackit/lbapplication/models/loadbalancer_option_observability.py @@ -9,7 +9,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 LoadbalancerOptionObservability(BaseModel): """ We offer Application Load Balancer metrics observability via ARGUS or external solutions. Not changeable after creation. - """ + """ # noqa: E501 logs: Optional[LoadbalancerOptionLogs] = None metrics: Optional[LoadbalancerOptionMetrics] = None diff --git a/services/lbapplication/src/stackit/lbapplication/models/matcher.py b/services/lbapplication/src/stackit/lbapplication/models/matcher.py index 2da6eea4..572bfae8 100644 --- a/services/lbapplication/src/stackit/lbapplication/models/matcher.py +++ b/services/lbapplication/src/stackit/lbapplication/models/matcher.py @@ -9,7 +9,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 Matcher(BaseModel): """ Matcher - """ + """ # noqa: E501 cookie_persistence: Optional[CookiePersistence] = Field(default=None, alias="cookiePersistence") headers: Optional[List[Header]] = Field(default=None, description="Headers for the matcher") diff --git a/services/lbapplication/src/stackit/lbapplication/models/network.py b/services/lbapplication/src/stackit/lbapplication/models/network.py index aebf464b..c83bc573 100644 --- a/services/lbapplication/src/stackit/lbapplication/models/network.py +++ b/services/lbapplication/src/stackit/lbapplication/models/network.py @@ -9,13 +9,13 @@ 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 import json import pprint -import re +import re # noqa: F401 from typing import Any, ClassVar, Dict, List, Optional, Set from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator @@ -25,7 +25,7 @@ class Network(BaseModel): """ Network - """ + """ # noqa: E501 network_id: Optional[Annotated[str, Field(strict=True)]] = Field( default=None, description="Openstack network ID", alias="networkId" diff --git a/services/lbapplication/src/stackit/lbapplication/models/plan_details.py b/services/lbapplication/src/stackit/lbapplication/models/plan_details.py index c79c3974..71c36d68 100644 --- a/services/lbapplication/src/stackit/lbapplication/models/plan_details.py +++ b/services/lbapplication/src/stackit/lbapplication/models/plan_details.py @@ -9,7 +9,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 @@ -24,7 +24,7 @@ class PlanDetails(BaseModel): """ PlanDetails - """ + """ # noqa: E501 description: Optional[StrictStr] = Field(default=None, description="Description") flavor_name: Optional[StrictStr] = Field(default=None, description="Flavor Name", alias="flavorName") diff --git a/services/lbapplication/src/stackit/lbapplication/models/protocol_options_https.py b/services/lbapplication/src/stackit/lbapplication/models/protocol_options_https.py index baa17210..13b635e9 100644 --- a/services/lbapplication/src/stackit/lbapplication/models/protocol_options_https.py +++ b/services/lbapplication/src/stackit/lbapplication/models/protocol_options_https.py @@ -9,7 +9,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 @@ -26,7 +26,7 @@ class ProtocolOptionsHTTPS(BaseModel): """ ProtocolOptionsHTTPS - """ + """ # noqa: E501 certificate_config: Optional[CertificateConfig] = Field(default=None, alias="certificateConfig") __properties: ClassVar[List[str]] = ["certificateConfig"] diff --git a/services/lbapplication/src/stackit/lbapplication/models/query_parameters.py b/services/lbapplication/src/stackit/lbapplication/models/query_parameters.py index 139bde2b..1fd6b9fa 100644 --- a/services/lbapplication/src/stackit/lbapplication/models/query_parameters.py +++ b/services/lbapplication/src/stackit/lbapplication/models/query_parameters.py @@ -9,7 +9,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 @@ -24,7 +24,7 @@ class QueryParameters(BaseModel): """ QueryParameters - """ + """ # noqa: E501 exact_match: Optional[StrictStr] = Field( default=None, description="Exact match for the parameter value", alias="exactMatch" diff --git a/services/lbapplication/src/stackit/lbapplication/models/rule.py b/services/lbapplication/src/stackit/lbapplication/models/rule.py index 62a0f96e..f26bb40f 100644 --- a/services/lbapplication/src/stackit/lbapplication/models/rule.py +++ b/services/lbapplication/src/stackit/lbapplication/models/rule.py @@ -9,7 +9,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 @@ -26,7 +26,7 @@ class Rule(BaseModel): """ Rule - """ + """ # noqa: E501 host: Optional[StrictStr] = Field(default=None, description="Host for the rule") http: Optional[HTTPConfig] = None diff --git a/services/lbapplication/src/stackit/lbapplication/models/status.py b/services/lbapplication/src/stackit/lbapplication/models/status.py index 6366899f..51fc9d90 100644 --- a/services/lbapplication/src/stackit/lbapplication/models/status.py +++ b/services/lbapplication/src/stackit/lbapplication/models/status.py @@ -9,7 +9,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 @@ -26,7 +26,7 @@ class Status(BaseModel): """ The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). - """ + """ # noqa: E501 code: Optional[StrictInt] = Field( default=None, diff --git a/services/lbapplication/src/stackit/lbapplication/models/target.py b/services/lbapplication/src/stackit/lbapplication/models/target.py index 5f93e331..0a8a12ae 100644 --- a/services/lbapplication/src/stackit/lbapplication/models/target.py +++ b/services/lbapplication/src/stackit/lbapplication/models/target.py @@ -9,13 +9,13 @@ 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 import json import pprint -import re +import re # noqa: F401 from typing import Any, ClassVar, Dict, List, Optional, Set from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator @@ -25,7 +25,7 @@ class Target(BaseModel): """ Target - """ + """ # noqa: E501 display_name: Optional[Annotated[str, Field(strict=True)]] = Field( default=None, description="Target name", alias="displayName" diff --git a/services/lbapplication/src/stackit/lbapplication/models/target_pool.py b/services/lbapplication/src/stackit/lbapplication/models/target_pool.py index 4bd4484b..22560ba1 100644 --- a/services/lbapplication/src/stackit/lbapplication/models/target_pool.py +++ b/services/lbapplication/src/stackit/lbapplication/models/target_pool.py @@ -9,13 +9,13 @@ 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 import json import pprint -import re +import re # noqa: F401 from typing import Any, ClassVar, Dict, List, Optional, Set from pydantic import BaseModel, ConfigDict, Field, field_validator @@ -28,7 +28,7 @@ class TargetPool(BaseModel): """ TargetPool - """ + """ # noqa: E501 active_health_check: Optional[ActiveHealthCheck] = Field(default=None, alias="activeHealthCheck") name: Optional[Annotated[str, Field(strict=True)]] = Field(default=None, description="Target pool name") diff --git a/services/lbapplication/src/stackit/lbapplication/models/update_credentials_payload.py b/services/lbapplication/src/stackit/lbapplication/models/update_credentials_payload.py index 929eca73..dccdda85 100644 --- a/services/lbapplication/src/stackit/lbapplication/models/update_credentials_payload.py +++ b/services/lbapplication/src/stackit/lbapplication/models/update_credentials_payload.py @@ -9,13 +9,13 @@ 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 import json import pprint -import re +import re # noqa: F401 from typing import Any, ClassVar, Dict, List, Optional, Set from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator @@ -25,7 +25,7 @@ class UpdateCredentialsPayload(BaseModel): """ UpdateCredentialsPayload - """ + """ # noqa: E501 display_name: Optional[Annotated[str, Field(strict=True)]] = Field( default=None, description="Credential name", alias="displayName" diff --git a/services/lbapplication/src/stackit/lbapplication/models/update_credentials_response.py b/services/lbapplication/src/stackit/lbapplication/models/update_credentials_response.py index bc8cdf02..13289f8c 100644 --- a/services/lbapplication/src/stackit/lbapplication/models/update_credentials_response.py +++ b/services/lbapplication/src/stackit/lbapplication/models/update_credentials_response.py @@ -9,7 +9,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 @@ -26,7 +26,7 @@ class UpdateCredentialsResponse(BaseModel): """ UpdateCredentialsResponse - """ + """ # noqa: E501 credential: Optional[CredentialsResponse] = None __properties: ClassVar[List[str]] = ["credential"] diff --git a/services/lbapplication/src/stackit/lbapplication/models/update_load_balancer_payload.py b/services/lbapplication/src/stackit/lbapplication/models/update_load_balancer_payload.py index e86805d0..cc4c3c94 100644 --- a/services/lbapplication/src/stackit/lbapplication/models/update_load_balancer_payload.py +++ b/services/lbapplication/src/stackit/lbapplication/models/update_load_balancer_payload.py @@ -9,13 +9,13 @@ 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 import json import pprint -import re +import re # noqa: F401 from typing import Any, ClassVar, Dict, List, Optional, Set from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator @@ -31,7 +31,7 @@ class UpdateLoadBalancerPayload(BaseModel): """ UpdateLoadBalancerPayload - """ + """ # noqa: E501 errors: Optional[List[LoadBalancerError]] = Field( default=None, description="Reports all errors a application load balancer has." diff --git a/services/lbapplication/src/stackit/lbapplication/models/update_target_pool_payload.py b/services/lbapplication/src/stackit/lbapplication/models/update_target_pool_payload.py index 456baf11..74b16835 100644 --- a/services/lbapplication/src/stackit/lbapplication/models/update_target_pool_payload.py +++ b/services/lbapplication/src/stackit/lbapplication/models/update_target_pool_payload.py @@ -9,13 +9,13 @@ 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 import json import pprint -import re +import re # noqa: F401 from typing import Any, ClassVar, Dict, List, Optional, Set from pydantic import BaseModel, ConfigDict, Field, field_validator @@ -28,7 +28,7 @@ class UpdateTargetPoolPayload(BaseModel): """ UpdateTargetPoolPayload - """ + """ # noqa: E501 active_health_check: Optional[ActiveHealthCheck] = Field(default=None, alias="activeHealthCheck") name: Optional[Annotated[str, Field(strict=True)]] = Field(default=None, description="Target pool name") diff --git a/services/lbapplication/src/stackit/lbapplication/rest.py b/services/lbapplication/src/stackit/lbapplication/rest.py index 3bd1a7bb..34815dd4 100644 --- a/services/lbapplication/src/stackit/lbapplication/rest.py +++ b/services/lbapplication/src/stackit/lbapplication/rest.py @@ -9,7 +9,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 @@ -124,7 +124,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: