Skip to content

Commit

Permalink
CH-109 applications dependencies update
Browse files Browse the repository at this point in the history
  • Loading branch information
filippomc committed Jan 15, 2024
1 parent fe981b3 commit 4323001
Show file tree
Hide file tree
Showing 5 changed files with 129 additions and 7 deletions.
2 changes: 1 addition & 1 deletion applications/common/server/common/models/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
4 changes: 2 additions & 2 deletions applications/common/server/common/models/base_model_.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
122 changes: 122 additions & 0 deletions applications/common/server/common/models/get_config200_response.py
Original file line number Diff line number Diff line change
@@ -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
6 changes: 3 additions & 3 deletions applications/common/server/common/openapi/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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
Expand All @@ -88,5 +88,5 @@ components:
description: The clientID.
title: clientId
type: string
title: inline_response_200
title: get_config_200_response
type: object
2 changes: 1 addition & 1 deletion applications/common/server/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 4323001

Please sign in to comment.