Skip to content

Commit 4323001

Browse files
committed
CH-109 applications dependencies update
1 parent fe981b3 commit 4323001

5 files changed

Lines changed: 129 additions & 7 deletions

File tree

applications/common/server/common/models/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@
33
# flake8: noqa
44
from __future__ import absolute_import
55
# import models into model package
6-
from common.models.inline_response200 import InlineResponse200
6+
from common.models.get_config200_response import GetConfig200Response

applications/common/server/common/models/base_model_.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,11 @@
1111
class Model(object):
1212
# openapiTypes: The key is attribute name and the
1313
# value is attribute type.
14-
openapi_types = {}
14+
openapi_types: typing.Dict[str, type] = {}
1515

1616
# attributeMap: The key is attribute name and the
1717
# value is json key in definition.
18-
attribute_map = {}
18+
attribute_map: typing.Dict[str, str] = {}
1919

2020
@classmethod
2121
def from_dict(cls: typing.Type[T], dikt) -> T:
Lines changed: 122 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,122 @@
1+
# coding: utf-8
2+
3+
from __future__ import absolute_import
4+
from datetime import date, datetime # noqa: F401
5+
6+
from typing import List, Dict # noqa: F401
7+
8+
from common.models.base_model_ import Model
9+
from common import util
10+
11+
12+
class GetConfig200Response(Model):
13+
"""NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
14+
15+
Do not edit the class manually.
16+
"""
17+
18+
def __init__(self, url=None, realm=None, client_id=None): # noqa: E501
19+
"""GetConfig200Response - a model defined in OpenAPI
20+
21+
:param url: The url of this GetConfig200Response. # noqa: E501
22+
:type url: str
23+
:param realm: The realm of this GetConfig200Response. # noqa: E501
24+
:type realm: str
25+
:param client_id: The client_id of this GetConfig200Response. # noqa: E501
26+
:type client_id: str
27+
"""
28+
self.openapi_types = {
29+
'url': str,
30+
'realm': str,
31+
'client_id': str
32+
}
33+
34+
self.attribute_map = {
35+
'url': 'url',
36+
'realm': 'realm',
37+
'client_id': 'clientId'
38+
}
39+
40+
self._url = url
41+
self._realm = realm
42+
self._client_id = client_id
43+
44+
@classmethod
45+
def from_dict(cls, dikt) -> 'GetConfig200Response':
46+
"""Returns the dict as a model
47+
48+
:param dikt: A dict.
49+
:type: dict
50+
:return: The get_config_200_response of this GetConfig200Response. # noqa: E501
51+
:rtype: GetConfig200Response
52+
"""
53+
return util.deserialize_model(dikt, cls)
54+
55+
@property
56+
def url(self):
57+
"""Gets the url of this GetConfig200Response.
58+
59+
The auth URL. # noqa: E501
60+
61+
:return: The url of this GetConfig200Response.
62+
:rtype: str
63+
"""
64+
return self._url
65+
66+
@url.setter
67+
def url(self, url):
68+
"""Sets the url of this GetConfig200Response.
69+
70+
The auth URL. # noqa: E501
71+
72+
:param url: The url of this GetConfig200Response.
73+
:type url: str
74+
"""
75+
76+
self._url = url
77+
78+
@property
79+
def realm(self):
80+
"""Gets the realm of this GetConfig200Response.
81+
82+
The realm. # noqa: E501
83+
84+
:return: The realm of this GetConfig200Response.
85+
:rtype: str
86+
"""
87+
return self._realm
88+
89+
@realm.setter
90+
def realm(self, realm):
91+
"""Sets the realm of this GetConfig200Response.
92+
93+
The realm. # noqa: E501
94+
95+
:param realm: The realm of this GetConfig200Response.
96+
:type realm: str
97+
"""
98+
99+
self._realm = realm
100+
101+
@property
102+
def client_id(self):
103+
"""Gets the client_id of this GetConfig200Response.
104+
105+
The clientID. # noqa: E501
106+
107+
:return: The client_id of this GetConfig200Response.
108+
:rtype: str
109+
"""
110+
return self._client_id
111+
112+
@client_id.setter
113+
def client_id(self, client_id):
114+
"""Sets the client_id of this GetConfig200Response.
115+
116+
The clientID. # noqa: E501
117+
118+
:param client_id: The client_id of this GetConfig200Response.
119+
:type client_id: str
120+
"""
121+
122+
self._client_id = client_id

applications/common/server/common/openapi/openapi.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ paths:
2121
content:
2222
application/json:
2323
schema:
24-
$ref: '#/components/schemas/inline_response_200'
24+
$ref: '#/components/schemas/get_config_200_response'
2525
description: Config for accounts log in
2626
summary: Gets the config for logging in into accounts
2727
tags:
@@ -70,7 +70,7 @@ paths:
7070
x-openapi-router-controller: common.controllers.sentry_controller
7171
components:
7272
schemas:
73-
inline_response_200:
73+
get_config_200_response:
7474
example:
7575
clientId: clientId
7676
realm: realm
@@ -88,5 +88,5 @@ components:
8888
description: The clientID.
8989
title: clientId
9090
type: string
91-
title: inline_response_200
91+
title: get_config_200_response
9292
type: object

applications/common/server/requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,6 @@ werkzeug == 0.16.1; python_version=="3.5" or python_version=="3.4"
88
swagger-ui-bundle >= 0.0.2
99
python_dateutil >= 2.6.0
1010
setuptools >= 21.0.0
11-
Flask == 1.1.2
11+
Flask == 2.1.1
1212
flask_sqlalchemy==2.4.4
1313
sqlalchemy<2.0.0

0 commit comments

Comments
 (0)