Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Python dependencies #714

Merged
merged 8 commits into from
Jan 22, 2024
Merged
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
2 changes: 1 addition & 1 deletion applications/samples/api/config.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{}
{"packageName": "samples"}
2 changes: 1 addition & 1 deletion applications/samples/backend/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ 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
4 changes: 2 additions & 2 deletions applications/samples/backend/samples/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
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ def from_dict(cls, dikt) -> 'SampleResource':
def a(self):
"""Gets the a of this SampleResource.

# noqa: E501

:return: The a of this SampleResource.
:rtype: float
Expand All @@ -66,6 +67,7 @@ def a(self):
def a(self, a):
"""Sets the a of this SampleResource.

# noqa: E501

:param a: The a of this SampleResource.
:type a: float
Expand All @@ -79,6 +81,7 @@ def a(self, a):
def b(self):
"""Gets the b of this SampleResource.

# noqa: E501

:return: The b of this SampleResource.
:rtype: float
Expand All @@ -89,6 +92,7 @@ def b(self):
def b(self, b):
"""Sets the b of this SampleResource.

# noqa: E501

:param b: The b of this SampleResource.
:type b: float
Expand All @@ -100,6 +104,7 @@ def b(self, b):
def id(self):
"""Gets the id of this SampleResource.

# noqa: E501

:return: The id of this SampleResource.
:rtype: float
Expand All @@ -110,6 +115,7 @@ def id(self):
def id(self, id):
"""Sets the id of this SampleResource.

# noqa: E501

:param id: The id of this SampleResource.
:type id: float
Expand Down
29 changes: 17 additions & 12 deletions applications/samples/backend/samples/openapi/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ servers:
tags:
- name: auth
- name: workflows
- name: resource
- description: ""
name: resource
paths:
/error:
get:
Expand Down Expand Up @@ -90,8 +91,8 @@ paths:
schema:
type: string
description: Operation result
summary: Send a synchronous operation and get results using the event queue.
Just a sum, but in the cloud
summary: "Send a synchronous operation and get results using the event queue.\
\ Just a sum, but in the cloud"
tags:
- workflows
x-openapi-router-controller: samples.controllers.workflows_controller
Expand All @@ -112,9 +113,9 @@ paths:
- test
x-openapi-router-controller: samples.controllers.test_controller
/sampleresources:
description: The REST endpoint/path used to list and create zero or more `SampleResource`
entities. This path contains a `GET` and `POST` operation to perform the list
and create tasks, respectively.
description: "The REST endpoint/path used to list and create zero or more `SampleResource`\
\ entities. This path contains a `GET` and `POST` operation to perform the\
\ list and create tasks, respectively."
get:
description: Gets a list of all `SampleResource` entities.
operationId: get_sample_resources
Expand Down Expand Up @@ -176,9 +177,9 @@ paths:
tags:
- resource
x-openapi-router-controller: samples.controllers.resource_controller
description: The REST endpoint/path used to get, update, and delete single instances
of an `SampleResource`. This path contains `GET`, `PUT`, and `DELETE` operations
used to perform the get, update, and delete tasks, respectively.
description: "The REST endpoint/path used to get, update, and delete single instances\
\ of an `SampleResource`. This path contains `GET`, `PUT`, and `DELETE` operations\
\ used to perform the get, update, and delete tasks, respectively."
get:
description: Gets the details of a single instance of a `SampleResource`.
operationId: get_sample_resource
Expand Down Expand Up @@ -229,7 +230,7 @@ paths:
"202":
description: Successful response.
"400":
description: Parameter must be integer, payload must be of type SampleResource
description: "Parameter must be integer, payload must be of type SampleResource"
"404":
description: Resource not found
summary: Update a SampleResource
Expand All @@ -250,7 +251,7 @@ paths:
type: string
description: Check if token is valid
"401":
description: invalid token, unauthorized
description: "invalid token, unauthorized"
security:
- bearerAuth: []
summary: Check if the token is valid. Get a token by logging into the base url
Expand All @@ -270,7 +271,7 @@ paths:
type: string
description: Check if token is valid
"401":
description: invalid token, unauthorized
description: "invalid token, unauthorized"
security:
- cookieAuth: []
summary: Check if the token is valid. Get a token by logging into the base url
Expand Down Expand Up @@ -306,18 +307,22 @@ components:
title: inline_response_202
type: object
SampleResource:
description: ""
example:
a: 0.8008281904610115
b: 6.027456183070403
id: 1.4658129805029452
properties:
a:
description: ""
title: a
type: number
b:
description: ""
title: b
type: number
id:
description: ""
title: id
type: number
required:
Expand Down
6 changes: 3 additions & 3 deletions applications/samples/backend/test-requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
pytest~=4.6.7 # needed for python 2.7+3.4
pytest~=7.1.0
pytest-cov>=2.8.1
pytest-randomly==1.2.3 # needed for python 2.7+3.4
Flask-Testing==0.8.0
pytest-randomly>=1.2.3
Flask-Testing==0.8.1
Loading
Loading