From 4323001c9a34643eacc38d15de7b3b72f3968194 Mon Sep 17 00:00:00 2001 From: Filippo Ledda Date: Mon, 15 Jan 2024 18:41:16 +0100 Subject: [PATCH] CH-109 applications dependencies update --- .../common/server/common/models/__init__.py | 2 +- .../server/common/models/base_model_.py | 4 +- .../common/models/get_config200_response.py | 122 ++++++++++++++++++ .../common/server/common/openapi/openapi.yaml | 6 +- applications/common/server/requirements.txt | 2 +- 5 files changed, 129 insertions(+), 7 deletions(-) create mode 100644 applications/common/server/common/models/get_config200_response.py diff --git a/applications/common/server/common/models/__init__.py b/applications/common/server/common/models/__init__.py index 5c3b8ec2..1a083de0 100644 --- a/applications/common/server/common/models/__init__.py +++ b/applications/common/server/common/models/__init__.py @@ -3,4 +3,4 @@ # flake8: noqa from __future__ import absolute_import # import models into model package -from common.models.inline_response200 import InlineResponse200 +from common.models.get_config200_response import GetConfig200Response diff --git a/applications/common/server/common/models/base_model_.py b/applications/common/server/common/models/base_model_.py index f0fd4a22..ad7ecc34 100644 --- a/applications/common/server/common/models/base_model_.py +++ b/applications/common/server/common/models/base_model_.py @@ -11,11 +11,11 @@ class Model(object): # openapiTypes: The key is attribute name and the # value is attribute type. - openapi_types = {} + openapi_types: typing.Dict[str, type] = {} # attributeMap: The key is attribute name and the # value is json key in definition. - attribute_map = {} + attribute_map: typing.Dict[str, str] = {} @classmethod def from_dict(cls: typing.Type[T], dikt) -> T: diff --git a/applications/common/server/common/models/get_config200_response.py b/applications/common/server/common/models/get_config200_response.py new file mode 100644 index 00000000..48e3b40e --- /dev/null +++ b/applications/common/server/common/models/get_config200_response.py @@ -0,0 +1,122 @@ +# coding: utf-8 + +from __future__ import absolute_import +from datetime import date, datetime # noqa: F401 + +from typing import List, Dict # noqa: F401 + +from common.models.base_model_ import Model +from common import util + + +class GetConfig200Response(Model): + """NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + + Do not edit the class manually. + """ + + def __init__(self, url=None, realm=None, client_id=None): # noqa: E501 + """GetConfig200Response - a model defined in OpenAPI + + :param url: The url of this GetConfig200Response. # noqa: E501 + :type url: str + :param realm: The realm of this GetConfig200Response. # noqa: E501 + :type realm: str + :param client_id: The client_id of this GetConfig200Response. # noqa: E501 + :type client_id: str + """ + self.openapi_types = { + 'url': str, + 'realm': str, + 'client_id': str + } + + self.attribute_map = { + 'url': 'url', + 'realm': 'realm', + 'client_id': 'clientId' + } + + self._url = url + self._realm = realm + self._client_id = client_id + + @classmethod + def from_dict(cls, dikt) -> 'GetConfig200Response': + """Returns the dict as a model + + :param dikt: A dict. + :type: dict + :return: The get_config_200_response of this GetConfig200Response. # noqa: E501 + :rtype: GetConfig200Response + """ + return util.deserialize_model(dikt, cls) + + @property + def url(self): + """Gets the url of this GetConfig200Response. + + The auth URL. # noqa: E501 + + :return: The url of this GetConfig200Response. + :rtype: str + """ + return self._url + + @url.setter + def url(self, url): + """Sets the url of this GetConfig200Response. + + The auth URL. # noqa: E501 + + :param url: The url of this GetConfig200Response. + :type url: str + """ + + self._url = url + + @property + def realm(self): + """Gets the realm of this GetConfig200Response. + + The realm. # noqa: E501 + + :return: The realm of this GetConfig200Response. + :rtype: str + """ + return self._realm + + @realm.setter + def realm(self, realm): + """Sets the realm of this GetConfig200Response. + + The realm. # noqa: E501 + + :param realm: The realm of this GetConfig200Response. + :type realm: str + """ + + self._realm = realm + + @property + def client_id(self): + """Gets the client_id of this GetConfig200Response. + + The clientID. # noqa: E501 + + :return: The client_id of this GetConfig200Response. + :rtype: str + """ + return self._client_id + + @client_id.setter + def client_id(self, client_id): + """Sets the client_id of this GetConfig200Response. + + The clientID. # noqa: E501 + + :param client_id: The client_id of this GetConfig200Response. + :type client_id: str + """ + + self._client_id = client_id diff --git a/applications/common/server/common/openapi/openapi.yaml b/applications/common/server/common/openapi/openapi.yaml index f5aa7599..97fb8e8b 100644 --- a/applications/common/server/common/openapi/openapi.yaml +++ b/applications/common/server/common/openapi/openapi.yaml @@ -21,7 +21,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/inline_response_200' + $ref: '#/components/schemas/get_config_200_response' description: Config for accounts log in summary: Gets the config for logging in into accounts tags: @@ -70,7 +70,7 @@ paths: x-openapi-router-controller: common.controllers.sentry_controller components: schemas: - inline_response_200: + get_config_200_response: example: clientId: clientId realm: realm @@ -88,5 +88,5 @@ components: description: The clientID. title: clientId type: string - title: inline_response_200 + title: get_config_200_response type: object diff --git a/applications/common/server/requirements.txt b/applications/common/server/requirements.txt index c4293e26..7d43db78 100644 --- a/applications/common/server/requirements.txt +++ b/applications/common/server/requirements.txt @@ -8,6 +8,6 @@ werkzeug == 0.16.1; python_version=="3.5" or python_version=="3.4" swagger-ui-bundle >= 0.0.2 python_dateutil >= 2.6.0 setuptools >= 21.0.0 -Flask == 1.1.2 +Flask == 2.1.1 flask_sqlalchemy==2.4.4 sqlalchemy<2.0.0 \ No newline at end of file