diff --git a/.gitignore b/.gitignore index c174b07e3c51822abe73422a1cb2313828162cf3..e8ea6327c4682db56e6822f8fd5f12fdfb0b7599 100644 --- a/.gitignore +++ b/.gitignore @@ -5,6 +5,17 @@ node_modules/ *.bkp swagger/**/docs/*.md +# API +./swagger/api-analyse/ +./swagger/api-container/ +./swagger/api-database/ +./swagger/api-document/ +./swagger/api-identifier/ +./swagger/api-metadata/ +./swagger/api-query/ +./swagger/api-table/ +./swagger/api-units/ + # Keys id_rsa diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index f0bcb9f5b29f87eee6801219c39d331ca1b4b61e..ebdd2090955ad0fdb72519b9333dfe3ea2fddc04 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -19,9 +19,22 @@ build-mkdocs: script: - make build -deploy-mkdocs: +deploy-docs: stage: deploy needs: - build-mkdocs + only: + refs: + - master script: - make deploy + +deploy-dockerhub-docs: + stage: deploy + needs: + - build-mkdocs + only: + refs: + - master + script: + - make docs diff --git a/dockerhub/.env.example b/dockerhub/.env.example index e3ac30593d17de775910b67c47bd3c0cac4bec28..6756c324de567c0995a9dba425e8ba92692727d5 100644 --- a/dockerhub/.env.example +++ b/dockerhub/.env.example @@ -1,2 +1,2 @@ -USERNAME=... -PASSWORD=... \ No newline at end of file +DOCKER_USERNAME=... +DOCKER_PASSWORD=... \ No newline at end of file diff --git a/dockerhub/client/Dockerhub.py b/dockerhub/client/Dockerhub.py index 86bb2ac625ddd5c3d7c331c8ae381a51b4b1cdb6..0f2d394348281836892523852f587c1cd067c8c7 100644 --- a/dockerhub/client/Dockerhub.py +++ b/dockerhub/client/Dockerhub.py @@ -1,6 +1,5 @@ import requests as rq import os -from py_dotenv import read_dotenv class Dockerhub: """A simple Dockerhub client""" @@ -14,11 +13,10 @@ class Dockerhub: } def __init__(self): - read_dotenv(self.workpath + "/.env") - self.username = os.getenv("USERNAME") + self.username = os.getenv("DOCKER_USERNAME") response = rq.post(self.baseurl + "/v2/users/login", { "username": self.username, - "password": os.getenv("PASSWORD") + "password": os.getenv("DOCKER_PASSWORD") }) if response.status_code == 200: self.headers["Authorization"] = "Bearer " + response.json()["token"] diff --git a/swagger/api-analyse/.gitignore b/swagger/api-analyse/.gitignore deleted file mode 100644 index a655050c2631466828b5b8bfc59ae27f9ac02dc5..0000000000000000000000000000000000000000 --- a/swagger/api-analyse/.gitignore +++ /dev/null @@ -1,64 +0,0 @@ -# Byte-compiled / optimized / DLL files -__pycache__/ -*.py[cod] -*$py.class - -# C extensions -*.so - -# Distribution / packaging -.Python -env/ -build/ -develop-eggs/ -dist/ -downloads/ -eggs/ -.eggs/ -lib/ -lib64/ -parts/ -sdist/ -var/ -*.egg-info/ -.installed.cfg -*.egg - -# PyInstaller -# Usually these files are written by a python script from a template -# before PyInstaller builds the exe, so as to inject date/other infos into it. -*.manifest -*.spec - -# Installer logs -pip-log.txt -pip-delete-this-directory.txt - -# Unit test / coverage reports -htmlcov/ -.tox/ -.coverage -.coverage.* -.cache -nosetests.xml -coverage.xml -*,cover -.hypothesis/ -venv/ -.python-version - -# Translations -*.mo -*.pot - -# Django stuff: -*.log - -# Sphinx documentation -docs/_build/ - -# PyBuilder -target/ - -#Ipython Notebook -.ipynb_checkpoints diff --git a/swagger/api-analyse/.swagger-codegen-ignore b/swagger/api-analyse/.swagger-codegen-ignore deleted file mode 100644 index c5fa491b4c557bf997d5dd21797de782545dc9e5..0000000000000000000000000000000000000000 --- a/swagger/api-analyse/.swagger-codegen-ignore +++ /dev/null @@ -1,23 +0,0 @@ -# Swagger Codegen Ignore -# Generated by swagger-codegen https://github.com/swagger-api/swagger-codegen - -# Use this file to prevent files from being overwritten by the generator. -# The patterns follow closely to .gitignore or .dockerignore. - -# As an example, the C# client generator defines ApiClient.cs. -# You can make changes and tell Swagger Codgen to ignore just this file by uncommenting the following line: -#ApiClient.cs - -# You can match any string of characters against a directory, file or extension with a single asterisk (*): -#foo/*/qux -# The above matches foo/bar/qux and foo/baz/qux, but not foo/bar/baz/qux - -# You can recursively match patterns against a directory, file or extension with a double asterisk (**): -#foo/**/qux -# This matches foo/bar/qux, foo/baz/qux, and foo/bar/baz/qux - -# You can also negate patterns with an exclamation (!). -# For example, you can ignore all files in a docs folder with the file extension .md: -#docs/*.md -# Then explicitly reverse the ignore rule for a single file: -#!docs/README.md diff --git a/swagger/api-analyse/.swagger-codegen/VERSION b/swagger/api-analyse/.swagger-codegen/VERSION deleted file mode 100644 index 10bbf276ee45aaec75c7b2ada3ff71d798f89fd9..0000000000000000000000000000000000000000 --- a/swagger/api-analyse/.swagger-codegen/VERSION +++ /dev/null @@ -1 +0,0 @@ -3.0.34 \ No newline at end of file diff --git a/swagger/api-analyse/.travis.yml b/swagger/api-analyse/.travis.yml deleted file mode 100644 index dd6c4450aa902ae68479c3d76d45145e18d6052e..0000000000000000000000000000000000000000 --- a/swagger/api-analyse/.travis.yml +++ /dev/null @@ -1,13 +0,0 @@ -# ref: https://docs.travis-ci.com/user/languages/python -language: python -python: - - "3.2" - - "3.3" - - "3.4" - - "3.5" - #- "3.5-dev" # 3.5 development branch - #- "nightly" # points to the latest development branch e.g. 3.6-dev -# command to install dependencies -install: "pip install -r requirements.txt" -# command to run tests -script: nosetests diff --git a/swagger/api-analyse/README.md b/swagger/api-analyse/README.md deleted file mode 100644 index da7430d5ad7c74bd42dec87497e6a28b132d9a74..0000000000000000000000000000000000000000 --- a/swagger/api-analyse/README.md +++ /dev/null @@ -1,104 +0,0 @@ -# swagger-client -Service that manages the analysis - -This Python package is automatically generated by the [Swagger Codegen](https://github.com/swagger-api/swagger-codegen) project: - -- API version: 1.1.0-alpha -- Package version: 1.0.0 -- Build package: io.swagger.codegen.v3.generators.python.PythonClientCodegen - -## Requirements. - -Python 2.7 and 3.4+ - -## Installation & Usage -### pip install - -If the python package is hosted on Github, you can install directly from Github - -```sh -pip install git+https://github.com/GIT_USER_ID/GIT_REPO_ID.git -``` -(you may need to run `pip` with root permission: `sudo pip install git+https://github.com/GIT_USER_ID/GIT_REPO_ID.git`) - -Then import the package: -```python -import swagger_client -``` - -### Setuptools - -Install via [Setuptools](http://pypi.python.org/pypi/setuptools). - -```sh -python setup.py install --user -``` -(or `sudo python setup.py install` to install the package for all users) - -Then import the package: -```python -import swagger_client -``` - -## Getting Started - -Please follow the [installation procedure](#installation--usage) and then run the following: - -```python -from __future__ import print_function -import time -import swagger_client -from swagger_client.rest import ApiException -from pprint import pprint - -# create an instance of the API class -api_instance = swagger_client.AnalyseEndpointApi(swagger_client.ApiClient(configuration)) -body = swagger_client.DetermineDataTypeRequestDto() # DetermineDataTypeRequestDto | - -try: - # Determine datatypes - api_response = api_instance.api_analyse_determinedt_post(body) - pprint(api_response) -except ApiException as e: - print("Exception when calling AnalyseEndpointApi->api_analyse_determinedt_post: %s\n" % e) - -# create an instance of the API class -api_instance = swagger_client.AnalyseEndpointApi(swagger_client.ApiClient(configuration)) -body = swagger_client.AnalyseDeterminepkBody() # AnalyseDeterminepkBody | - -try: - # Determine primary keys - api_response = api_instance.api_analyse_determinepk_post(body) - pprint(api_response) -except ApiException as e: - print("Exception when calling AnalyseEndpointApi->api_analyse_determinepk_post: %s\n" % e) -``` - -## Documentation for API Endpoints - -All URIs are relative to *https://virtserver.swaggerhub.com/mweise/dbrepo-debug/1.1.0-alpha* - -Class | Method | HTTP request | Description ------------- | ------------- | ------------- | ------------- -*AnalyseEndpointApi* | [**api_analyse_determinedt_post**](docs/AnalyseEndpointApi.md#api_analyse_determinedt_post) | **POST** /api/analyse/determinedt | Determine datatypes -*AnalyseEndpointApi* | [**api_analyse_determinepk_post**](docs/AnalyseEndpointApi.md#api_analyse_determinepk_post) | **POST** /api/analyse/determinepk | Determine primary keys -*MdbEndpointApi* | [**api_analyse_update_mdb_col_post**](docs/MdbEndpointApi.md#api_analyse_update_mdb_col_post) | **POST** /api/analyse/update_mdb_col | Update entity mdb_columns from metadatabase - -## Documentation For Models - - - [AnalyseDeterminepkBody](docs/AnalyseDeterminepkBody.md) - - [DataTypeDto](docs/DataTypeDto.md) - - [DetermineDataTypeRequestDto](docs/DetermineDataTypeRequestDto.md) - - [DetermineDataTypeResponseDto](docs/DetermineDataTypeResponseDto.md) - - [DeterminePrimaryKeyDto](docs/DeterminePrimaryKeyDto.md) - - [ErrorDto](docs/ErrorDto.md) - - [UpdateColumnDto](docs/UpdateColumnDto.md) - -## Documentation For Authorization - - All endpoints do not require authorization. - - -## Author - -andreas.rauber@tuwien.ac.at diff --git a/swagger/api-analyse/git_push.sh b/swagger/api-analyse/git_push.sh deleted file mode 100644 index ae01b182ae9eb047d0999a496b060e62d7b01e5c..0000000000000000000000000000000000000000 --- a/swagger/api-analyse/git_push.sh +++ /dev/null @@ -1,52 +0,0 @@ -#!/bin/sh -# ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/ -# -# Usage example: /bin/sh ./git_push.sh wing328 swagger-petstore-perl "minor update" - -git_user_id=$1 -git_repo_id=$2 -release_note=$3 - -if [ "$git_user_id" = "" ]; then - git_user_id="GIT_USER_ID" - echo "[INFO] No command line input provided. Set \$git_user_id to $git_user_id" -fi - -if [ "$git_repo_id" = "" ]; then - git_repo_id="GIT_REPO_ID" - echo "[INFO] No command line input provided. Set \$git_repo_id to $git_repo_id" -fi - -if [ "$release_note" = "" ]; then - release_note="Minor update" - echo "[INFO] No command line input provided. Set \$release_note to $release_note" -fi - -# Initialize the local directory as a Git repository -git init - -# Adds the files in the local repository and stages them for commit. -git add . - -# Commits the tracked changes and prepares them to be pushed to a remote repository. -git commit -m "$release_note" - -# Sets the new remote -git_remote=`git remote` -if [ "$git_remote" = "" ]; then # git remote not defined - - if [ "$GIT_TOKEN" = "" ]; then - echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the git credential in your environment." - git remote add origin https://github.com/${git_user_id}/${git_repo_id}.git - else - git remote add origin https://${git_user_id}:${GIT_TOKEN}@github.com/${git_user_id}/${git_repo_id}.git - fi - -fi - -git pull origin master - -# Pushes (Forces) the changes in the local repository up to the remote repository -echo "Git pushing to https://github.com/${git_user_id}/${git_repo_id}.git" -git push origin master 2>&1 | grep -v 'To https' - diff --git a/swagger/api-analyse/requirements.txt b/swagger/api-analyse/requirements.txt deleted file mode 100644 index bafdc07532f5e1287a24c2af278f547091a410b6..0000000000000000000000000000000000000000 --- a/swagger/api-analyse/requirements.txt +++ /dev/null @@ -1,5 +0,0 @@ -certifi >= 14.05.14 -six >= 1.10 -python_dateutil >= 2.5.3 -setuptools >= 21.0.0 -urllib3 >= 1.15.1 diff --git a/swagger/api-analyse/setup.py b/swagger/api-analyse/setup.py deleted file mode 100644 index f696dc45d7d14bb188905213bf0b5a7d1622497c..0000000000000000000000000000000000000000 --- a/swagger/api-analyse/setup.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Database Repository Analyse Service API - - Service that manages the analysis # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -from setuptools import setup, find_packages # noqa: H301 - -NAME = "swagger-client" -VERSION = "1.0.0" -# To install the library, run the following -# -# python setup.py install -# -# prerequisite: setuptools -# http://pypi.python.org/pypi/setuptools - -REQUIRES = ["urllib3 >= 1.15", "six >= 1.10", "certifi", "python-dateutil"] - -setup( - name=NAME, - version=VERSION, - description="Database Repository Analyse Service API", - author_email="andreas.rauber@tuwien.ac.at", - url="", - keywords=["Swagger", "Database Repository Analyse Service API"], - install_requires=REQUIRES, - packages=find_packages(), - include_package_data=True, - long_description="""\ - Service that manages the analysis # noqa: E501 - """ -) diff --git a/swagger/api-analyse/swagger_client/__init__.py b/swagger/api-analyse/swagger_client/__init__.py deleted file mode 100644 index a85cbd0d89288fdebf830815265a3d2425dad390..0000000000000000000000000000000000000000 --- a/swagger/api-analyse/swagger_client/__init__.py +++ /dev/null @@ -1,30 +0,0 @@ -# coding: utf-8 - -# flake8: noqa - -""" - Database Repository Analyse Service API - - Service that manages the analysis # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -from __future__ import absolute_import - -# import apis into sdk package -from swagger_client.api.analyse_endpoint_api import AnalyseEndpointApi -from swagger_client.api.mdb_endpoint_api import MdbEndpointApi -# import ApiClient -from swagger_client.api_client import ApiClient -from swagger_client.configuration import Configuration -# import models into sdk package -from swagger_client.models.analyse_determinepk_body import AnalyseDeterminepkBody -from swagger_client.models.data_type_dto import DataTypeDto -from swagger_client.models.determine_data_type_request_dto import DetermineDataTypeRequestDto -from swagger_client.models.determine_data_type_response_dto import DetermineDataTypeResponseDto -from swagger_client.models.determine_primary_key_dto import DeterminePrimaryKeyDto -from swagger_client.models.error_dto import ErrorDto -from swagger_client.models.update_column_dto import UpdateColumnDto diff --git a/swagger/api-analyse/swagger_client/api/__init__.py b/swagger/api-analyse/swagger_client/api/__init__.py deleted file mode 100644 index f8345005f3108cc934a3ad3832ec4cdba0e2c2b5..0000000000000000000000000000000000000000 --- a/swagger/api-analyse/swagger_client/api/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -from __future__ import absolute_import - -# flake8: noqa - -# import apis into api package -from swagger_client.api.analyse_endpoint_api import AnalyseEndpointApi -from swagger_client.api.mdb_endpoint_api import MdbEndpointApi diff --git a/swagger/api-analyse/swagger_client/api/analyse_endpoint_api.py b/swagger/api-analyse/swagger_client/api/analyse_endpoint_api.py deleted file mode 100644 index 364f026d9a5b06a6eecf7a7a976fa584b05799e0..0000000000000000000000000000000000000000 --- a/swagger/api-analyse/swagger_client/api/analyse_endpoint_api.py +++ /dev/null @@ -1,231 +0,0 @@ -# coding: utf-8 - -""" - Database Repository Analyse Service API - - Service that manages the analysis # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -from __future__ import absolute_import - -import re # noqa: F401 - -# python 2 and python 3 compatibility library -import six - -from swagger_client.api_client import ApiClient - - -class AnalyseEndpointApi(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - Ref: https://github.com/swagger-api/swagger-codegen - """ - - def __init__(self, api_client=None): - if api_client is None: - api_client = ApiClient() - self.api_client = api_client - - def api_analyse_determinedt_post(self, body, **kwargs): # noqa: E501 - """Determine datatypes # noqa: E501 - - This is a simple API which returns the datatypes of a (path) csv file # noqa: E501 - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.api_analyse_determinedt_post(body, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param DetermineDataTypeRequestDto body: (required) - :return: DetermineDataTypeResponseDto - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.api_analyse_determinedt_post_with_http_info(body, **kwargs) # noqa: E501 - else: - (data) = self.api_analyse_determinedt_post_with_http_info(body, **kwargs) # noqa: E501 - return data - - def api_analyse_determinedt_post_with_http_info(self, body, **kwargs): # noqa: E501 - """Determine datatypes # noqa: E501 - - This is a simple API which returns the datatypes of a (path) csv file # noqa: E501 - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.api_analyse_determinedt_post_with_http_info(body, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param DetermineDataTypeRequestDto body: (required) - :return: DetermineDataTypeResponseDto - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['body'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in six.iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method api_analyse_determinedt_post" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'body' is set - if ('body' not in params or - params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `api_analyse_determinedt_post`") # noqa: E501 - - collection_formats = {} - - path_params = {} - - query_params = [] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - if 'body' in params: - body_params = params['body'] - # HTTP header `Accept` - header_params['Accept'] = self.api_client.select_header_accept( - ['*/*']) # noqa: E501 - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 - ['*/*']) # noqa: E501 - - # Authentication setting - auth_settings = [] # noqa: E501 - - return self.api_client.call_api( - '/api/analyse/determinedt', 'POST', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='DetermineDataTypeResponseDto', # noqa: E501 - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def api_analyse_determinepk_post(self, body, **kwargs): # noqa: E501 - """Determine primary keys # noqa: E501 - - This is a simple API which returns the primary keys + ranking of a (path) csv file # noqa: E501 - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.api_analyse_determinepk_post(body, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param AnalyseDeterminepkBody body: (required) - :return: DeterminePrimaryKeyDto - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.api_analyse_determinepk_post_with_http_info(body, **kwargs) # noqa: E501 - else: - (data) = self.api_analyse_determinepk_post_with_http_info(body, **kwargs) # noqa: E501 - return data - - def api_analyse_determinepk_post_with_http_info(self, body, **kwargs): # noqa: E501 - """Determine primary keys # noqa: E501 - - This is a simple API which returns the primary keys + ranking of a (path) csv file # noqa: E501 - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.api_analyse_determinepk_post_with_http_info(body, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param AnalyseDeterminepkBody body: (required) - :return: DeterminePrimaryKeyDto - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['body'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in six.iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method api_analyse_determinepk_post" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'body' is set - if ('body' not in params or - params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `api_analyse_determinepk_post`") # noqa: E501 - - collection_formats = {} - - path_params = {} - - query_params = [] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - if 'body' in params: - body_params = params['body'] - # HTTP header `Accept` - header_params['Accept'] = self.api_client.select_header_accept( - ['*/*']) # noqa: E501 - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 - ['application/json']) # noqa: E501 - - # Authentication setting - auth_settings = [] # noqa: E501 - - return self.api_client.call_api( - '/api/analyse/determinepk', 'POST', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='DeterminePrimaryKeyDto', # noqa: E501 - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) diff --git a/swagger/api-analyse/swagger_client/api/mdb_endpoint_api.py b/swagger/api-analyse/swagger_client/api/mdb_endpoint_api.py deleted file mode 100644 index df6e7efd8a994c635d64f22ad162b3e13b49194d..0000000000000000000000000000000000000000 --- a/swagger/api-analyse/swagger_client/api/mdb_endpoint_api.py +++ /dev/null @@ -1,132 +0,0 @@ -# coding: utf-8 - -""" - Database Repository Analyse Service API - - Service that manages the analysis # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -from __future__ import absolute_import - -import re # noqa: F401 - -# python 2 and python 3 compatibility library -import six - -from swagger_client.api_client import ApiClient - - -class MdbEndpointApi(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - Ref: https://github.com/swagger-api/swagger-codegen - """ - - def __init__(self, api_client=None): - if api_client is None: - api_client = ApiClient() - self.api_client = api_client - - def api_analyse_update_mdb_col_post(self, body, **kwargs): # noqa: E501 - """Update entity mdb_columns from metadatabase # noqa: E501 - - Updates entity mdb_columns and mdb_columns_num, mdb_columns_nom and mdb_columns_cat in metadatabase # noqa: E501 - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.api_analyse_update_mdb_col_post(body, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param UpdateColumnDto body: Updates entity mdb_columns attributes (datatype, ordinal_position, is_nullable) and automatically updates mdb_columns_nom (attribute max_length), mdb_columns_num (min, max, mean, sd, histogram) and mdb_columns_cat (num_cat, cat_array). The attribute 'histogram' describes a equi-width histogram with a fix number of 10 buckets. The last value in this numeric array is the width of one bucket. The attribute cat_array contains an array with the names of the categories. (required) - :return: UpdateColumnDto - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.api_analyse_update_mdb_col_post_with_http_info(body, **kwargs) # noqa: E501 - else: - (data) = self.api_analyse_update_mdb_col_post_with_http_info(body, **kwargs) # noqa: E501 - return data - - def api_analyse_update_mdb_col_post_with_http_info(self, body, **kwargs): # noqa: E501 - """Update entity mdb_columns from metadatabase # noqa: E501 - - Updates entity mdb_columns and mdb_columns_num, mdb_columns_nom and mdb_columns_cat in metadatabase # noqa: E501 - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.api_analyse_update_mdb_col_post_with_http_info(body, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param UpdateColumnDto body: Updates entity mdb_columns attributes (datatype, ordinal_position, is_nullable) and automatically updates mdb_columns_nom (attribute max_length), mdb_columns_num (min, max, mean, sd, histogram) and mdb_columns_cat (num_cat, cat_array). The attribute 'histogram' describes a equi-width histogram with a fix number of 10 buckets. The last value in this numeric array is the width of one bucket. The attribute cat_array contains an array with the names of the categories. (required) - :return: UpdateColumnDto - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['body'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in six.iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method api_analyse_update_mdb_col_post" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'body' is set - if ('body' not in params or - params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `api_analyse_update_mdb_col_post`") # noqa: E501 - - collection_formats = {} - - path_params = {} - - query_params = [] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - if 'body' in params: - body_params = params['body'] - # HTTP header `Accept` - header_params['Accept'] = self.api_client.select_header_accept( - ['*/*']) # noqa: E501 - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 - ['*/*']) # noqa: E501 - - # Authentication setting - auth_settings = [] # noqa: E501 - - return self.api_client.call_api( - '/api/analyse/update_mdb_col', 'POST', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='UpdateColumnDto', # noqa: E501 - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) diff --git a/swagger/api-analyse/swagger_client/api_client.py b/swagger/api-analyse/swagger_client/api_client.py deleted file mode 100644 index e0d9466918dc13475dfaa95901c84378e96557b0..0000000000000000000000000000000000000000 --- a/swagger/api-analyse/swagger_client/api_client.py +++ /dev/null @@ -1,632 +0,0 @@ -# coding: utf-8 -""" - Database Repository Analyse Service API - - Service that manages the analysis # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" -from __future__ import absolute_import - -import datetime -import json -import mimetypes -from multiprocessing.pool import ThreadPool -import os -import re -import tempfile - -# python 2 and python 3 compatibility library -import six -from six.moves.urllib.parse import quote - -from swagger_client.configuration import Configuration -import swagger_client.models -from swagger_client import rest - - -class ApiClient(object): - """Generic API client for Swagger client library builds. - - Swagger generic API client. This client handles the client- - server communication, and is invariant across implementations. Specifics of - the methods and models for each application are generated from the Swagger - templates. - - NOTE: This class is auto generated by the swagger code generator program. - Ref: https://github.com/swagger-api/swagger-codegen - Do not edit the class manually. - - :param configuration: .Configuration object for this client - :param header_name: a header to pass when making calls to the API. - :param header_value: a header value to pass when making calls to - the API. - :param cookie: a cookie to include in the header when making calls - to the API - """ - - PRIMITIVE_TYPES = (float, bool, bytes, six.text_type) + six.integer_types - NATIVE_TYPES_MAPPING = { - 'int': int, - 'long': int if six.PY3 else long, # noqa: F821 - 'float': float, - 'str': str, - 'bool': bool, - 'date': datetime.date, - 'datetime': datetime.datetime, - 'object': object, - } - - def __init__(self, configuration=None, header_name=None, header_value=None, - cookie=None): - if configuration is None: - configuration = Configuration() - self.configuration = configuration - - self.pool = ThreadPool() - self.rest_client = rest.RESTClientObject(configuration) - self.default_headers = {} - if header_name is not None: - self.default_headers[header_name] = header_value - self.cookie = cookie - # Set default User-Agent. - self.user_agent = 'Swagger-Codegen/1.0.0/python' - - def __del__(self): - self.pool.close() - self.pool.join() - - @property - def user_agent(self): - """User agent for this API client""" - return self.default_headers['User-Agent'] - - @user_agent.setter - def user_agent(self, value): - self.default_headers['User-Agent'] = value - - def set_default_header(self, header_name, header_value): - self.default_headers[header_name] = header_value - - def __call_api( - self, resource_path, method, path_params=None, - query_params=None, header_params=None, body=None, post_params=None, - files=None, response_type=None, auth_settings=None, - _return_http_data_only=None, collection_formats=None, - _preload_content=True, _request_timeout=None): - - config = self.configuration - - # header parameters - header_params = header_params or {} - header_params.update(self.default_headers) - if self.cookie: - header_params['Cookie'] = self.cookie - if header_params: - header_params = self.sanitize_for_serialization(header_params) - header_params = dict(self.parameters_to_tuples(header_params, - collection_formats)) - - # path parameters - if path_params: - path_params = self.sanitize_for_serialization(path_params) - path_params = self.parameters_to_tuples(path_params, - collection_formats) - for k, v in path_params: - # specified safe chars, encode everything - resource_path = resource_path.replace( - '{%s}' % k, - quote(str(v), safe=config.safe_chars_for_path_param) - ) - - # query parameters - if query_params: - query_params = self.sanitize_for_serialization(query_params) - query_params = self.parameters_to_tuples(query_params, - collection_formats) - - # post parameters - if post_params or files: - post_params = self.prepare_post_parameters(post_params, files) - post_params = self.sanitize_for_serialization(post_params) - post_params = self.parameters_to_tuples(post_params, - collection_formats) - - # auth setting - self.update_params_for_auth(header_params, query_params, auth_settings) - - # body - if body: - body = self.sanitize_for_serialization(body) - - # request url - url = self.configuration.host + resource_path - - # perform request and return response - response_data = self.request( - method, url, query_params=query_params, headers=header_params, - post_params=post_params, body=body, - _preload_content=_preload_content, - _request_timeout=_request_timeout) - - self.last_response = response_data - - return_data = response_data - if _preload_content: - # deserialize response data - if response_type: - return_data = self.deserialize(response_data, response_type) - else: - return_data = None - - if _return_http_data_only: - return (return_data) - else: - return (return_data, response_data.status, - response_data.getheaders()) - - def sanitize_for_serialization(self, obj): - """Builds a JSON POST object. - - If obj is None, return None. - If obj is str, int, long, float, bool, return directly. - If obj is datetime.datetime, datetime.date - convert to string in iso8601 format. - If obj is list, sanitize each element in the list. - If obj is dict, return the dict. - If obj is swagger model, return the properties dict. - - :param obj: The data to serialize. - :return: The serialized form of data. - """ - if obj is None: - return None - elif isinstance(obj, self.PRIMITIVE_TYPES): - return obj - elif isinstance(obj, list): - return [self.sanitize_for_serialization(sub_obj) - for sub_obj in obj] - elif isinstance(obj, tuple): - return tuple(self.sanitize_for_serialization(sub_obj) - for sub_obj in obj) - elif isinstance(obj, (datetime.datetime, datetime.date)): - return obj.isoformat() - - if isinstance(obj, dict): - obj_dict = obj - else: - # Convert model obj to dict except - # attributes `swagger_types`, `attribute_map` - # and attributes which value is not None. - # Convert attribute name to json key in - # model definition for request. - obj_dict = {obj.attribute_map[attr]: getattr(obj, attr) - for attr, _ in six.iteritems(obj.swagger_types) - if getattr(obj, attr) is not None} - - return {key: self.sanitize_for_serialization(val) - for key, val in six.iteritems(obj_dict)} - - def deserialize(self, response, response_type): - """Deserializes response into an object. - - :param response: RESTResponse object to be deserialized. - :param response_type: class literal for - deserialized object, or string of class name. - - :return: deserialized object. - """ - # handle file downloading - # save response body into a tmp file and return the instance - if response_type == "file": - return self.__deserialize_file(response) - - # fetch data from response object - try: - data = json.loads(response.data) - except ValueError: - data = response.data - - return self.__deserialize(data, response_type) - - def __deserialize(self, data, klass): - """Deserializes dict, list, str into an object. - - :param data: dict, list or str. - :param klass: class literal, or string of class name. - - :return: object. - """ - if data is None: - return None - - if type(klass) == str: - if klass.startswith('list['): - sub_kls = re.match(r'list\[(.*)\]', klass).group(1) - return [self.__deserialize(sub_data, sub_kls) - for sub_data in data] - - if klass.startswith('dict('): - sub_kls = re.match(r'dict\(([^,]*), (.*)\)', klass).group(2) - return {k: self.__deserialize(v, sub_kls) - for k, v in six.iteritems(data)} - - # convert str to class - if klass in self.NATIVE_TYPES_MAPPING: - klass = self.NATIVE_TYPES_MAPPING[klass] - else: - klass = getattr(swagger_client.models, klass) - - if klass in self.PRIMITIVE_TYPES: - return self.__deserialize_primitive(data, klass) - elif klass == object: - return self.__deserialize_object(data) - elif klass == datetime.date: - return self.__deserialize_date(data) - elif klass == datetime.datetime: - return self.__deserialize_datatime(data) - else: - return self.__deserialize_model(data, klass) - - def call_api(self, resource_path, method, - path_params=None, query_params=None, header_params=None, - body=None, post_params=None, files=None, - response_type=None, auth_settings=None, async_req=None, - _return_http_data_only=None, collection_formats=None, - _preload_content=True, _request_timeout=None): - """Makes the HTTP request (synchronous) and returns deserialized data. - - To make an async request, set the async_req parameter. - - :param resource_path: Path to method endpoint. - :param method: Method to call. - :param path_params: Path parameters in the url. - :param query_params: Query parameters in the url. - :param header_params: Header parameters to be - placed in the request header. - :param body: Request body. - :param post_params dict: Request post form parameters, - for `application/x-www-form-urlencoded`, `multipart/form-data`. - :param auth_settings list: Auth Settings names for the request. - :param response: Response data type. - :param files dict: key -> filename, value -> filepath, - for `multipart/form-data`. - :param async_req bool: execute request asynchronously - :param _return_http_data_only: response data without head status code - and headers - :param collection_formats: dict of collection formats for path, query, - header, and post parameters. - :param _preload_content: if False, the urllib3.HTTPResponse object will - be returned without reading/decoding response - data. Default is True. - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :return: - If async_req parameter is True, - the request will be called asynchronously. - The method will return the request thread. - If parameter async_req is False or missing, - then the method will return the response directly. - """ - if not async_req: - return self.__call_api(resource_path, method, - path_params, query_params, header_params, - body, post_params, files, - response_type, auth_settings, - _return_http_data_only, collection_formats, - _preload_content, _request_timeout) - else: - thread = self.pool.apply_async(self.__call_api, (resource_path, - method, path_params, query_params, - header_params, body, - post_params, files, - response_type, auth_settings, - _return_http_data_only, - collection_formats, - _preload_content, _request_timeout)) - return thread - - def request(self, method, url, query_params=None, headers=None, - post_params=None, body=None, _preload_content=True, - _request_timeout=None): - """Makes the HTTP request using RESTClient.""" - if method == "GET": - return self.rest_client.GET(url, - query_params=query_params, - _preload_content=_preload_content, - _request_timeout=_request_timeout, - headers=headers) - elif method == "HEAD": - return self.rest_client.HEAD(url, - query_params=query_params, - _preload_content=_preload_content, - _request_timeout=_request_timeout, - headers=headers) - elif method == "OPTIONS": - return self.rest_client.OPTIONS(url, - query_params=query_params, - headers=headers, - post_params=post_params, - _preload_content=_preload_content, - _request_timeout=_request_timeout, - body=body) - elif method == "POST": - return self.rest_client.POST(url, - query_params=query_params, - headers=headers, - post_params=post_params, - _preload_content=_preload_content, - _request_timeout=_request_timeout, - body=body) - elif method == "PUT": - return self.rest_client.PUT(url, - query_params=query_params, - headers=headers, - post_params=post_params, - _preload_content=_preload_content, - _request_timeout=_request_timeout, - body=body) - elif method == "PATCH": - return self.rest_client.PATCH(url, - query_params=query_params, - headers=headers, - post_params=post_params, - _preload_content=_preload_content, - _request_timeout=_request_timeout, - body=body) - elif method == "DELETE": - return self.rest_client.DELETE(url, - query_params=query_params, - headers=headers, - _preload_content=_preload_content, - _request_timeout=_request_timeout, - body=body) - else: - raise ValueError( - "http method must be `GET`, `HEAD`, `OPTIONS`," - " `POST`, `PATCH`, `PUT` or `DELETE`." - ) - - def parameters_to_tuples(self, params, collection_formats): - """Get parameters as list of tuples, formatting collections. - - :param params: Parameters as dict or list of two-tuples - :param dict collection_formats: Parameter collection formats - :return: Parameters as list of tuples, collections formatted - """ - new_params = [] - if collection_formats is None: - collection_formats = {} - for k, v in six.iteritems(params) if isinstance(params, dict) else params: # noqa: E501 - if k in collection_formats: - collection_format = collection_formats[k] - if collection_format == 'multi': - new_params.extend((k, value) for value in v) - else: - if collection_format == 'ssv': - delimiter = ' ' - elif collection_format == 'tsv': - delimiter = '\t' - elif collection_format == 'pipes': - delimiter = '|' - else: # csv is the default - delimiter = ',' - new_params.append( - (k, delimiter.join(str(value) for value in v))) - else: - new_params.append((k, v)) - return new_params - - def prepare_post_parameters(self, post_params=None, files=None): - """Builds form parameters. - - :param post_params: Normal form parameters. - :param files: File parameters. - :return: Form parameters with files. - """ - params = [] - - if post_params: - params = post_params - - if files: - for k, v in six.iteritems(files): - if not v: - continue - file_names = v if type(v) is list else [v] - for n in file_names: - with open(n, 'rb') as f: - filename = os.path.basename(f.name) - filedata = f.read() - mimetype = (mimetypes.guess_type(filename)[0] or - 'application/octet-stream') - params.append( - tuple([k, tuple([filename, filedata, mimetype])])) - - return params - - def select_header_accept(self, accepts): - """Returns `Accept` based on an array of accepts provided. - - :param accepts: List of headers. - :return: Accept (e.g. application/json). - """ - if not accepts: - return - - accepts = [x.lower() for x in accepts] - - if 'application/json' in accepts: - return 'application/json' - else: - return ', '.join(accepts) - - def select_header_content_type(self, content_types): - """Returns `Content-Type` based on an array of content_types provided. - - :param content_types: List of content-types. - :return: Content-Type (e.g. application/json). - """ - if not content_types: - return 'application/json' - - content_types = [x.lower() for x in content_types] - - if 'application/json' in content_types or '*/*' in content_types: - return 'application/json' - else: - return content_types[0] - - def update_params_for_auth(self, headers, querys, auth_settings): - """Updates header and query params based on authentication setting. - - :param headers: Header parameters dict to be updated. - :param querys: Query parameters tuple list to be updated. - :param auth_settings: Authentication setting identifiers list. - """ - if not auth_settings: - return - - for auth in auth_settings: - auth_setting = self.configuration.auth_settings().get(auth) - if auth_setting: - if not auth_setting['value']: - continue - elif auth_setting['in'] == 'header': - headers[auth_setting['key']] = auth_setting['value'] - elif auth_setting['in'] == 'query': - querys.append((auth_setting['key'], auth_setting['value'])) - else: - raise ValueError( - 'Authentication token must be in `query` or `header`' - ) - - def __deserialize_file(self, response): - """Deserializes body to file - - Saves response body into a file in a temporary folder, - using the filename from the `Content-Disposition` header if provided. - - :param response: RESTResponse. - :return: file path. - """ - fd, path = tempfile.mkstemp(dir=self.configuration.temp_folder_path) - os.close(fd) - os.remove(path) - - content_disposition = response.getheader("Content-Disposition") - if content_disposition: - filename = re.search(r'filename=[\'"]?([^\'"\s]+)[\'"]?', - content_disposition).group(1) - path = os.path.join(os.path.dirname(path), filename) - response_data = response.data - with open(path, "wb") as f: - if isinstance(response_data, str): - # change str to bytes so we can write it - response_data = response_data.encode('utf-8') - f.write(response_data) - else: - f.write(response_data) - return path - - def __deserialize_primitive(self, data, klass): - """Deserializes string to primitive type. - - :param data: str. - :param klass: class literal. - - :return: int, long, float, str, bool. - """ - try: - return klass(data) - except UnicodeEncodeError: - return six.text_type(data) - except TypeError: - return data - - def __deserialize_object(self, value): - """Return a original value. - - :return: object. - """ - return value - - def __deserialize_date(self, string): - """Deserializes string to date. - - :param string: str. - :return: date. - """ - try: - from dateutil.parser import parse - return parse(string).date() - except ImportError: - return string - except ValueError: - raise rest.ApiException( - status=0, - reason="Failed to parse `{0}` as date object".format(string) - ) - - def __deserialize_datatime(self, string): - """Deserializes string to datetime. - - The string should be in iso8601 datetime format. - - :param string: str. - :return: datetime. - """ - try: - from dateutil.parser import parse - return parse(string) - except ImportError: - return string - except ValueError: - raise rest.ApiException( - status=0, - reason=( - "Failed to parse `{0}` as datetime object" - .format(string) - ) - ) - - def __hasattr(self, object, name): - return name in object.__class__.__dict__ - - def __deserialize_model(self, data, klass): - """Deserializes list or dict to model. - - :param data: dict, list. - :param klass: class literal. - :return: model object. - """ - - if not klass.swagger_types and not self.__hasattr(klass, 'get_real_child_model'): - return data - - kwargs = {} - if klass.swagger_types is not None: - for attr, attr_type in six.iteritems(klass.swagger_types): - if (data is not None and - klass.attribute_map[attr] in data and - isinstance(data, (list, dict))): - value = data[klass.attribute_map[attr]] - kwargs[attr] = self.__deserialize(value, attr_type) - - instance = klass(**kwargs) - - if (isinstance(instance, dict) and - klass.swagger_types is not None and - isinstance(data, dict)): - for key, value in data.items(): - if key not in klass.swagger_types: - instance[key] = value - if self.__hasattr(instance, 'get_real_child_model'): - klass_name = instance.get_real_child_model(data) - if klass_name: - instance = self.__deserialize(data, klass_name) - return instance diff --git a/swagger/api-analyse/swagger_client/configuration.py b/swagger/api-analyse/swagger_client/configuration.py deleted file mode 100644 index b295511468d8c26bdc35c831027126cdd6c6672e..0000000000000000000000000000000000000000 --- a/swagger/api-analyse/swagger_client/configuration.py +++ /dev/null @@ -1,244 +0,0 @@ -# coding: utf-8 - -""" - Database Repository Analyse Service API - - Service that manages the analysis # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -from __future__ import absolute_import - -import copy -import logging -import multiprocessing -import sys -import urllib3 - -import six -from six.moves import http_client as httplib - - -class TypeWithDefault(type): - def __init__(cls, name, bases, dct): - super(TypeWithDefault, cls).__init__(name, bases, dct) - cls._default = None - - def __call__(cls): - if cls._default is None: - cls._default = type.__call__(cls) - return copy.copy(cls._default) - - def set_default(cls, default): - cls._default = copy.copy(default) - - -class Configuration(six.with_metaclass(TypeWithDefault, object)): - """NOTE: This class is auto generated by the swagger code generator program. - - Ref: https://github.com/swagger-api/swagger-codegen - Do not edit the class manually. - """ - - def __init__(self): - """Constructor""" - # Default Base url - self.host = "https://virtserver.swaggerhub.com/mweise/dbrepo-debug/1.1.0-alpha" - # Temp file folder for downloading files - self.temp_folder_path = None - - # Authentication Settings - # dict to store API key(s) - self.api_key = {} - # dict to store API prefix (e.g. Bearer) - self.api_key_prefix = {} - # function to refresh API key if expired - self.refresh_api_key_hook = None - # Username for HTTP basic authentication - self.username = "" - # Password for HTTP basic authentication - self.password = "" - # Logging Settings - self.logger = {} - self.logger["package_logger"] = logging.getLogger("swagger_client") - self.logger["urllib3_logger"] = logging.getLogger("urllib3") - # Log format - self.logger_format = '%(asctime)s %(levelname)s %(message)s' - # Log stream handler - self.logger_stream_handler = None - # Log file handler - self.logger_file_handler = None - # Debug file location - self.logger_file = None - # Debug switch - self.debug = False - - # SSL/TLS verification - # Set this to false to skip verifying SSL certificate when calling API - # from https server. - self.verify_ssl = True - # Set this to customize the certificate file to verify the peer. - self.ssl_ca_cert = None - # client certificate file - self.cert_file = None - # client key file - self.key_file = None - # Set this to True/False to enable/disable SSL hostname verification. - self.assert_hostname = None - - # urllib3 connection pool's maximum number of connections saved - # per pool. urllib3 uses 1 connection as default value, but this is - # not the best value when you are making a lot of possibly parallel - # requests to the same host, which is often the case here. - # cpu_count * 5 is used as default value to increase performance. - self.connection_pool_maxsize = multiprocessing.cpu_count() * 5 - - # Proxy URL - self.proxy = None - # Safe chars for path_param - self.safe_chars_for_path_param = '' - - @property - def logger_file(self): - """The logger file. - - If the logger_file is None, then add stream handler and remove file - handler. Otherwise, add file handler and remove stream handler. - - :param value: The logger_file path. - :type: str - """ - return self.__logger_file - - @logger_file.setter - def logger_file(self, value): - """The logger file. - - If the logger_file is None, then add stream handler and remove file - handler. Otherwise, add file handler and remove stream handler. - - :param value: The logger_file path. - :type: str - """ - self.__logger_file = value - if self.__logger_file: - # If set logging file, - # then add file handler and remove stream handler. - self.logger_file_handler = logging.FileHandler(self.__logger_file) - self.logger_file_handler.setFormatter(self.logger_formatter) - for _, logger in six.iteritems(self.logger): - logger.addHandler(self.logger_file_handler) - if self.logger_stream_handler: - logger.removeHandler(self.logger_stream_handler) - else: - # If not set logging file, - # then add stream handler and remove file handler. - self.logger_stream_handler = logging.StreamHandler() - self.logger_stream_handler.setFormatter(self.logger_formatter) - for _, logger in six.iteritems(self.logger): - logger.addHandler(self.logger_stream_handler) - if self.logger_file_handler: - logger.removeHandler(self.logger_file_handler) - - @property - def debug(self): - """Debug status - - :param value: The debug status, True or False. - :type: bool - """ - return self.__debug - - @debug.setter - def debug(self, value): - """Debug status - - :param value: The debug status, True or False. - :type: bool - """ - self.__debug = value - if self.__debug: - # if debug status is True, turn on debug logging - for _, logger in six.iteritems(self.logger): - logger.setLevel(logging.DEBUG) - # turn on httplib debug - httplib.HTTPConnection.debuglevel = 1 - else: - # if debug status is False, turn off debug logging, - # setting log level to default `logging.WARNING` - for _, logger in six.iteritems(self.logger): - logger.setLevel(logging.WARNING) - # turn off httplib debug - httplib.HTTPConnection.debuglevel = 0 - - @property - def logger_format(self): - """The logger format. - - The logger_formatter will be updated when sets logger_format. - - :param value: The format string. - :type: str - """ - return self.__logger_format - - @logger_format.setter - def logger_format(self, value): - """The logger format. - - The logger_formatter will be updated when sets logger_format. - - :param value: The format string. - :type: str - """ - self.__logger_format = value - self.logger_formatter = logging.Formatter(self.__logger_format) - - def get_api_key_with_prefix(self, identifier): - """Gets API key (with prefix if set). - - :param identifier: The identifier of apiKey. - :return: The token for api key authentication. - """ - if self.refresh_api_key_hook: - self.refresh_api_key_hook(self) - - key = self.api_key.get(identifier) - if key: - prefix = self.api_key_prefix.get(identifier) - if prefix: - return "%s %s" % (prefix, key) - else: - return key - - def get_basic_auth_token(self): - """Gets HTTP basic authentication header (string). - - :return: The token for basic HTTP authentication. - """ - return urllib3.util.make_headers( - basic_auth=self.username + ':' + self.password - ).get('authorization') - - def auth_settings(self): - """Gets Auth Settings dict for api client. - - :return: The Auth Settings information dict. - """ - return { - } - - def to_debug_report(self): - """Gets the essential information for debugging. - - :return: The report for debugging. - """ - return "Python SDK Debug Report:\n"\ - "OS: {env}\n"\ - "Python Version: {pyversion}\n"\ - "Version of the API: 1.1.0-alpha\n"\ - "SDK Package Version: 1.0.0".\ - format(env=sys.platform, pyversion=sys.version) diff --git a/swagger/api-analyse/swagger_client/models/__init__.py b/swagger/api-analyse/swagger_client/models/__init__.py deleted file mode 100644 index 592e162fa2fdf0518b9104526c4b96ef54a0efd1..0000000000000000000000000000000000000000 --- a/swagger/api-analyse/swagger_client/models/__init__.py +++ /dev/null @@ -1,23 +0,0 @@ -# coding: utf-8 - -# flake8: noqa -""" - Database Repository Analyse Service API - - Service that manages the analysis # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -from __future__ import absolute_import - -# import models into model package -from swagger_client.models.analyse_determinepk_body import AnalyseDeterminepkBody -from swagger_client.models.data_type_dto import DataTypeDto -from swagger_client.models.determine_data_type_request_dto import DetermineDataTypeRequestDto -from swagger_client.models.determine_data_type_response_dto import DetermineDataTypeResponseDto -from swagger_client.models.determine_primary_key_dto import DeterminePrimaryKeyDto -from swagger_client.models.error_dto import ErrorDto -from swagger_client.models.update_column_dto import UpdateColumnDto diff --git a/swagger/api-analyse/swagger_client/models/analyse_determinedt_body.py b/swagger/api-analyse/swagger_client/models/analyse_determinedt_body.py deleted file mode 100644 index e34fed775293474d42c6f44b59d2ad1c7a2db413..0000000000000000000000000000000000000000 --- a/swagger/api-analyse/swagger_client/models/analyse_determinedt_body.py +++ /dev/null @@ -1,188 +0,0 @@ -# coding: utf-8 - -""" - Database Repository Analyse Service API - - Service that manages the analysis # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -import pprint -import re # noqa: F401 - -import six - -class AnalyseDeterminedtBody(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'filepath': 'str', - 'enum': 'bool', - 'enum_tol': 'object', - 'separator': 'str' - } - - attribute_map = { - 'filepath': 'filepath', - 'enum': 'enum', - 'enum_tol': 'enum_tol', - 'separator': 'separator' - } - - def __init__(self, filepath=None, enum=None, enum_tol=None, separator=None): # noqa: E501 - """AnalyseDeterminedtBody - a model defined in Swagger""" # noqa: E501 - self._filepath = None - self._enum = None - self._enum_tol = None - self._separator = None - self.discriminator = None - if filepath is not None: - self.filepath = filepath - if enum is not None: - self.enum = enum - if enum_tol is not None: - self.enum_tol = enum_tol - if separator is not None: - self.separator = separator - - @property - def filepath(self): - """Gets the filepath of this AnalyseDeterminedtBody. # noqa: E501 - - - :return: The filepath of this AnalyseDeterminedtBody. # noqa: E501 - :rtype: str - """ - return self._filepath - - @filepath.setter - def filepath(self, filepath): - """Sets the filepath of this AnalyseDeterminedtBody. - - - :param filepath: The filepath of this AnalyseDeterminedtBody. # noqa: E501 - :type: str - """ - - self._filepath = filepath - - @property - def enum(self): - """Gets the enum of this AnalyseDeterminedtBody. # noqa: E501 - - - :return: The enum of this AnalyseDeterminedtBody. # noqa: E501 - :rtype: bool - """ - return self._enum - - @enum.setter - def enum(self, enum): - """Sets the enum of this AnalyseDeterminedtBody. - - - :param enum: The enum of this AnalyseDeterminedtBody. # noqa: E501 - :type: bool - """ - - self._enum = enum - - @property - def enum_tol(self): - """Gets the enum_tol of this AnalyseDeterminedtBody. # noqa: E501 - - - :return: The enum_tol of this AnalyseDeterminedtBody. # noqa: E501 - :rtype: object - """ - return self._enum_tol - - @enum_tol.setter - def enum_tol(self, enum_tol): - """Sets the enum_tol of this AnalyseDeterminedtBody. - - - :param enum_tol: The enum_tol of this AnalyseDeterminedtBody. # noqa: E501 - :type: object - """ - - self._enum_tol = enum_tol - - @property - def separator(self): - """Gets the separator of this AnalyseDeterminedtBody. # noqa: E501 - - - :return: The separator of this AnalyseDeterminedtBody. # noqa: E501 - :rtype: str - """ - return self._separator - - @separator.setter - def separator(self, separator): - """Sets the separator of this AnalyseDeterminedtBody. - - - :param separator: The separator of this AnalyseDeterminedtBody. # noqa: E501 - :type: str - """ - - self._separator = separator - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(AnalyseDeterminedtBody, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, AnalyseDeterminedtBody): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/swagger/api-analyse/swagger_client/models/analyse_determinepk_body.py b/swagger/api-analyse/swagger_client/models/analyse_determinepk_body.py deleted file mode 100644 index 658952ec1ba8295233c1152f50247bc284ea50f9..0000000000000000000000000000000000000000 --- a/swagger/api-analyse/swagger_client/models/analyse_determinepk_body.py +++ /dev/null @@ -1,136 +0,0 @@ -# coding: utf-8 - -""" - Database Repository Analyse Service API - - Service that manages the analysis # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -import pprint -import re # noqa: F401 - -import six - -class AnalyseDeterminepkBody(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'filepath': 'str', - 'seperator': 'str' - } - - attribute_map = { - 'filepath': 'filepath', - 'seperator': 'seperator' - } - - def __init__(self, filepath=None, seperator=None): # noqa: E501 - """AnalyseDeterminepkBody - a model defined in Swagger""" # noqa: E501 - self._filepath = None - self._seperator = None - self.discriminator = None - if filepath is not None: - self.filepath = filepath - if seperator is not None: - self.seperator = seperator - - @property - def filepath(self): - """Gets the filepath of this AnalyseDeterminepkBody. # noqa: E501 - - - :return: The filepath of this AnalyseDeterminepkBody. # noqa: E501 - :rtype: str - """ - return self._filepath - - @filepath.setter - def filepath(self, filepath): - """Sets the filepath of this AnalyseDeterminepkBody. - - - :param filepath: The filepath of this AnalyseDeterminepkBody. # noqa: E501 - :type: str - """ - - self._filepath = filepath - - @property - def seperator(self): - """Gets the seperator of this AnalyseDeterminepkBody. # noqa: E501 - - - :return: The seperator of this AnalyseDeterminepkBody. # noqa: E501 - :rtype: str - """ - return self._seperator - - @seperator.setter - def seperator(self, seperator): - """Sets the seperator of this AnalyseDeterminepkBody. - - - :param seperator: The seperator of this AnalyseDeterminepkBody. # noqa: E501 - :type: str - """ - - self._seperator = seperator - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(AnalyseDeterminepkBody, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, AnalyseDeterminepkBody): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/swagger/api-analyse/swagger_client/models/analyse_update_mdb_col_body.py b/swagger/api-analyse/swagger_client/models/analyse_update_mdb_col_body.py deleted file mode 100644 index 1f4d4ad7198c248a796ba347d2bebee9dbd6486c..0000000000000000000000000000000000000000 --- a/swagger/api-analyse/swagger_client/models/analyse_update_mdb_col_body.py +++ /dev/null @@ -1,162 +0,0 @@ -# coding: utf-8 - -""" - Database Repository Analyse Service API - - Service that manages the analysis # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -import pprint -import re # noqa: F401 - -import six - -class AnalyseUpdateMdbColBody(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'dbid': 'int', - 'tid': 'int', - 'cid': 'int' - } - - attribute_map = { - 'dbid': 'dbid', - 'tid': 'tid', - 'cid': 'cid' - } - - def __init__(self, dbid=None, tid=None, cid=None): # noqa: E501 - """AnalyseUpdateMdbColBody - a model defined in Swagger""" # noqa: E501 - self._dbid = None - self._tid = None - self._cid = None - self.discriminator = None - if dbid is not None: - self.dbid = dbid - if tid is not None: - self.tid = tid - if cid is not None: - self.cid = cid - - @property - def dbid(self): - """Gets the dbid of this AnalyseUpdateMdbColBody. # noqa: E501 - - - :return: The dbid of this AnalyseUpdateMdbColBody. # noqa: E501 - :rtype: int - """ - return self._dbid - - @dbid.setter - def dbid(self, dbid): - """Sets the dbid of this AnalyseUpdateMdbColBody. - - - :param dbid: The dbid of this AnalyseUpdateMdbColBody. # noqa: E501 - :type: int - """ - - self._dbid = dbid - - @property - def tid(self): - """Gets the tid of this AnalyseUpdateMdbColBody. # noqa: E501 - - - :return: The tid of this AnalyseUpdateMdbColBody. # noqa: E501 - :rtype: int - """ - return self._tid - - @tid.setter - def tid(self, tid): - """Sets the tid of this AnalyseUpdateMdbColBody. - - - :param tid: The tid of this AnalyseUpdateMdbColBody. # noqa: E501 - :type: int - """ - - self._tid = tid - - @property - def cid(self): - """Gets the cid of this AnalyseUpdateMdbColBody. # noqa: E501 - - - :return: The cid of this AnalyseUpdateMdbColBody. # noqa: E501 - :rtype: int - """ - return self._cid - - @cid.setter - def cid(self, cid): - """Sets the cid of this AnalyseUpdateMdbColBody. - - - :param cid: The cid of this AnalyseUpdateMdbColBody. # noqa: E501 - :type: int - """ - - self._cid = cid - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(AnalyseUpdateMdbColBody, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, AnalyseUpdateMdbColBody): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/swagger/api-analyse/swagger_client/models/data_type_dto.py b/swagger/api-analyse/swagger_client/models/data_type_dto.py deleted file mode 100644 index 610ccfe1653ed7ac326f0b33594b87d654750db2..0000000000000000000000000000000000000000 --- a/swagger/api-analyse/swagger_client/models/data_type_dto.py +++ /dev/null @@ -1,84 +0,0 @@ -# coding: utf-8 - -""" - Database Repository Analyse Service API - - Service that manages the analysis # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -import pprint -import re # noqa: F401 - -import six - -class DataTypeDto(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - } - - attribute_map = { - } - - def __init__(self): # noqa: E501 - """DataTypeDto - a model defined in Swagger""" # noqa: E501 - self.discriminator = None - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(DataTypeDto, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, DataTypeDto): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/swagger/api-analyse/swagger_client/models/determine_data_type_dto.py b/swagger/api-analyse/swagger_client/models/determine_data_type_dto.py deleted file mode 100644 index 32ac968bb71850e3f3f2c4f0ea2661f29ccbe02b..0000000000000000000000000000000000000000 --- a/swagger/api-analyse/swagger_client/models/determine_data_type_dto.py +++ /dev/null @@ -1,189 +0,0 @@ -# coding: utf-8 - -""" - Database Repository Analyse Service API - - Service that manages the analysis # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -import pprint -import re # noqa: F401 - -import six - -class DetermineDataTypeDto(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'filepath': 'str', - 'enum': 'bool', - 'enum_tol': 'object', - 'separator': 'str' - } - - attribute_map = { - 'filepath': 'filepath', - 'enum': 'enum', - 'enum_tol': 'enum_tol', - 'separator': 'separator' - } - - def __init__(self, filepath=None, enum=None, enum_tol=None, separator=None): # noqa: E501 - """DetermineDataTypeDto - a model defined in Swagger""" # noqa: E501 - self._filepath = None - self._enum = None - self._enum_tol = None - self._separator = None - self.discriminator = None - self.filepath = filepath - if enum is not None: - self.enum = enum - if enum_tol is not None: - self.enum_tol = enum_tol - if separator is not None: - self.separator = separator - - @property - def filepath(self): - """Gets the filepath of this DetermineDataTypeDto. # noqa: E501 - - - :return: The filepath of this DetermineDataTypeDto. # noqa: E501 - :rtype: str - """ - return self._filepath - - @filepath.setter - def filepath(self, filepath): - """Sets the filepath of this DetermineDataTypeDto. - - - :param filepath: The filepath of this DetermineDataTypeDto. # noqa: E501 - :type: str - """ - if filepath is None: - raise ValueError("Invalid value for `filepath`, must not be `None`") # noqa: E501 - - self._filepath = filepath - - @property - def enum(self): - """Gets the enum of this DetermineDataTypeDto. # noqa: E501 - - - :return: The enum of this DetermineDataTypeDto. # noqa: E501 - :rtype: bool - """ - return self._enum - - @enum.setter - def enum(self, enum): - """Sets the enum of this DetermineDataTypeDto. - - - :param enum: The enum of this DetermineDataTypeDto. # noqa: E501 - :type: bool - """ - - self._enum = enum - - @property - def enum_tol(self): - """Gets the enum_tol of this DetermineDataTypeDto. # noqa: E501 - - - :return: The enum_tol of this DetermineDataTypeDto. # noqa: E501 - :rtype: object - """ - return self._enum_tol - - @enum_tol.setter - def enum_tol(self, enum_tol): - """Sets the enum_tol of this DetermineDataTypeDto. - - - :param enum_tol: The enum_tol of this DetermineDataTypeDto. # noqa: E501 - :type: object - """ - - self._enum_tol = enum_tol - - @property - def separator(self): - """Gets the separator of this DetermineDataTypeDto. # noqa: E501 - - - :return: The separator of this DetermineDataTypeDto. # noqa: E501 - :rtype: str - """ - return self._separator - - @separator.setter - def separator(self, separator): - """Sets the separator of this DetermineDataTypeDto. - - - :param separator: The separator of this DetermineDataTypeDto. # noqa: E501 - :type: str - """ - - self._separator = separator - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(DetermineDataTypeDto, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, DetermineDataTypeDto): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/swagger/api-analyse/swagger_client/models/determine_data_type_request_dto.py b/swagger/api-analyse/swagger_client/models/determine_data_type_request_dto.py deleted file mode 100644 index 8d642ac5430571011f9a4d87fc7ee18637bac6fc..0000000000000000000000000000000000000000 --- a/swagger/api-analyse/swagger_client/models/determine_data_type_request_dto.py +++ /dev/null @@ -1,189 +0,0 @@ -# coding: utf-8 - -""" - Database Repository Analyse Service API - - Service that manages the analysis # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -import pprint -import re # noqa: F401 - -import six - -class DetermineDataTypeRequestDto(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'filepath': 'str', - 'enum': 'bool', - 'enum_tol': 'object', - 'separator': 'str' - } - - attribute_map = { - 'filepath': 'filepath', - 'enum': 'enum', - 'enum_tol': 'enum_tol', - 'separator': 'separator' - } - - def __init__(self, filepath=None, enum=None, enum_tol=None, separator=None): # noqa: E501 - """DetermineDataTypeRequestDto - a model defined in Swagger""" # noqa: E501 - self._filepath = None - self._enum = None - self._enum_tol = None - self._separator = None - self.discriminator = None - self.filepath = filepath - if enum is not None: - self.enum = enum - if enum_tol is not None: - self.enum_tol = enum_tol - if separator is not None: - self.separator = separator - - @property - def filepath(self): - """Gets the filepath of this DetermineDataTypeRequestDto. # noqa: E501 - - - :return: The filepath of this DetermineDataTypeRequestDto. # noqa: E501 - :rtype: str - """ - return self._filepath - - @filepath.setter - def filepath(self, filepath): - """Sets the filepath of this DetermineDataTypeRequestDto. - - - :param filepath: The filepath of this DetermineDataTypeRequestDto. # noqa: E501 - :type: str - """ - if filepath is None: - raise ValueError("Invalid value for `filepath`, must not be `None`") # noqa: E501 - - self._filepath = filepath - - @property - def enum(self): - """Gets the enum of this DetermineDataTypeRequestDto. # noqa: E501 - - - :return: The enum of this DetermineDataTypeRequestDto. # noqa: E501 - :rtype: bool - """ - return self._enum - - @enum.setter - def enum(self, enum): - """Sets the enum of this DetermineDataTypeRequestDto. - - - :param enum: The enum of this DetermineDataTypeRequestDto. # noqa: E501 - :type: bool - """ - - self._enum = enum - - @property - def enum_tol(self): - """Gets the enum_tol of this DetermineDataTypeRequestDto. # noqa: E501 - - - :return: The enum_tol of this DetermineDataTypeRequestDto. # noqa: E501 - :rtype: object - """ - return self._enum_tol - - @enum_tol.setter - def enum_tol(self, enum_tol): - """Sets the enum_tol of this DetermineDataTypeRequestDto. - - - :param enum_tol: The enum_tol of this DetermineDataTypeRequestDto. # noqa: E501 - :type: object - """ - - self._enum_tol = enum_tol - - @property - def separator(self): - """Gets the separator of this DetermineDataTypeRequestDto. # noqa: E501 - - - :return: The separator of this DetermineDataTypeRequestDto. # noqa: E501 - :rtype: str - """ - return self._separator - - @separator.setter - def separator(self, separator): - """Sets the separator of this DetermineDataTypeRequestDto. - - - :param separator: The separator of this DetermineDataTypeRequestDto. # noqa: E501 - :type: str - """ - - self._separator = separator - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(DetermineDataTypeRequestDto, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, DetermineDataTypeRequestDto): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/swagger/api-analyse/swagger_client/models/determine_data_type_response_dto.py b/swagger/api-analyse/swagger_client/models/determine_data_type_response_dto.py deleted file mode 100644 index 3e22371063fe9a1b5d3f3974fca691c8000fe87c..0000000000000000000000000000000000000000 --- a/swagger/api-analyse/swagger_client/models/determine_data_type_response_dto.py +++ /dev/null @@ -1,138 +0,0 @@ -# coding: utf-8 - -""" - Database Repository Analyse Service API - - Service that manages the analysis # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -import pprint -import re # noqa: F401 - -import six - -class DetermineDataTypeResponseDto(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'columns': 'list[DataTypeDto]', - 'separator': 'str' - } - - attribute_map = { - 'columns': 'columns', - 'separator': 'separator' - } - - def __init__(self, columns=None, separator=None): # noqa: E501 - """DetermineDataTypeResponseDto - a model defined in Swagger""" # noqa: E501 - self._columns = None - self._separator = None - self.discriminator = None - self.columns = columns - self.separator = separator - - @property - def columns(self): - """Gets the columns of this DetermineDataTypeResponseDto. # noqa: E501 - - - :return: The columns of this DetermineDataTypeResponseDto. # noqa: E501 - :rtype: list[DataTypeDto] - """ - return self._columns - - @columns.setter - def columns(self, columns): - """Sets the columns of this DetermineDataTypeResponseDto. - - - :param columns: The columns of this DetermineDataTypeResponseDto. # noqa: E501 - :type: list[DataTypeDto] - """ - if columns is None: - raise ValueError("Invalid value for `columns`, must not be `None`") # noqa: E501 - - self._columns = columns - - @property - def separator(self): - """Gets the separator of this DetermineDataTypeResponseDto. # noqa: E501 - - - :return: The separator of this DetermineDataTypeResponseDto. # noqa: E501 - :rtype: str - """ - return self._separator - - @separator.setter - def separator(self, separator): - """Sets the separator of this DetermineDataTypeResponseDto. - - - :param separator: The separator of this DetermineDataTypeResponseDto. # noqa: E501 - :type: str - """ - if separator is None: - raise ValueError("Invalid value for `separator`, must not be `None`") # noqa: E501 - - self._separator = separator - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(DetermineDataTypeResponseDto, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, DetermineDataTypeResponseDto): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/swagger/api-analyse/swagger_client/models/determine_primary_key_dto.py b/swagger/api-analyse/swagger_client/models/determine_primary_key_dto.py deleted file mode 100644 index c93d535b2bb3456eab2371d10859820b097e6efc..0000000000000000000000000000000000000000 --- a/swagger/api-analyse/swagger_client/models/determine_primary_key_dto.py +++ /dev/null @@ -1,137 +0,0 @@ -# coding: utf-8 - -""" - Database Repository Analyse Service API - - Service that manages the analysis # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -import pprint -import re # noqa: F401 - -import six - -class DeterminePrimaryKeyDto(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'filepath': 'str', - 'seperator': 'str' - } - - attribute_map = { - 'filepath': 'filepath', - 'seperator': 'seperator' - } - - def __init__(self, filepath=None, seperator=None): # noqa: E501 - """DeterminePrimaryKeyDto - a model defined in Swagger""" # noqa: E501 - self._filepath = None - self._seperator = None - self.discriminator = None - self.filepath = filepath - if seperator is not None: - self.seperator = seperator - - @property - def filepath(self): - """Gets the filepath of this DeterminePrimaryKeyDto. # noqa: E501 - - - :return: The filepath of this DeterminePrimaryKeyDto. # noqa: E501 - :rtype: str - """ - return self._filepath - - @filepath.setter - def filepath(self, filepath): - """Sets the filepath of this DeterminePrimaryKeyDto. - - - :param filepath: The filepath of this DeterminePrimaryKeyDto. # noqa: E501 - :type: str - """ - if filepath is None: - raise ValueError("Invalid value for `filepath`, must not be `None`") # noqa: E501 - - self._filepath = filepath - - @property - def seperator(self): - """Gets the seperator of this DeterminePrimaryKeyDto. # noqa: E501 - - - :return: The seperator of this DeterminePrimaryKeyDto. # noqa: E501 - :rtype: str - """ - return self._seperator - - @seperator.setter - def seperator(self, seperator): - """Sets the seperator of this DeterminePrimaryKeyDto. - - - :param seperator: The seperator of this DeterminePrimaryKeyDto. # noqa: E501 - :type: str - """ - - self._seperator = seperator - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(DeterminePrimaryKeyDto, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, DeterminePrimaryKeyDto): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/swagger/api-analyse/swagger_client/models/error_dto.py b/swagger/api-analyse/swagger_client/models/error_dto.py deleted file mode 100644 index 4ac5fa13f22b21574566d9adbfeee1426ea633de..0000000000000000000000000000000000000000 --- a/swagger/api-analyse/swagger_client/models/error_dto.py +++ /dev/null @@ -1,137 +0,0 @@ -# coding: utf-8 - -""" - Database Repository Analyse Service API - - Service that manages the analysis # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -import pprint -import re # noqa: F401 - -import six - -class ErrorDto(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'success': 'bool', - 'message': 'str' - } - - attribute_map = { - 'success': 'success', - 'message': 'message' - } - - def __init__(self, success=None, message=None): # noqa: E501 - """ErrorDto - a model defined in Swagger""" # noqa: E501 - self._success = None - self._message = None - self.discriminator = None - self.success = success - if message is not None: - self.message = message - - @property - def success(self): - """Gets the success of this ErrorDto. # noqa: E501 - - - :return: The success of this ErrorDto. # noqa: E501 - :rtype: bool - """ - return self._success - - @success.setter - def success(self, success): - """Sets the success of this ErrorDto. - - - :param success: The success of this ErrorDto. # noqa: E501 - :type: bool - """ - if success is None: - raise ValueError("Invalid value for `success`, must not be `None`") # noqa: E501 - - self._success = success - - @property - def message(self): - """Gets the message of this ErrorDto. # noqa: E501 - - - :return: The message of this ErrorDto. # noqa: E501 - :rtype: str - """ - return self._message - - @message.setter - def message(self, message): - """Sets the message of this ErrorDto. - - - :param message: The message of this ErrorDto. # noqa: E501 - :type: str - """ - - self._message = message - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(ErrorDto, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, ErrorDto): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/swagger/api-analyse/swagger_client/models/update_column_dto.py b/swagger/api-analyse/swagger_client/models/update_column_dto.py deleted file mode 100644 index 62c971fcf6ad158444b304e3311c9c8217423e8b..0000000000000000000000000000000000000000 --- a/swagger/api-analyse/swagger_client/models/update_column_dto.py +++ /dev/null @@ -1,165 +0,0 @@ -# coding: utf-8 - -""" - Database Repository Analyse Service API - - Service that manages the analysis # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -import pprint -import re # noqa: F401 - -import six - -class UpdateColumnDto(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'dbid': 'int', - 'tid': 'int', - 'cid': 'int' - } - - attribute_map = { - 'dbid': 'dbid', - 'tid': 'tid', - 'cid': 'cid' - } - - def __init__(self, dbid=None, tid=None, cid=None): # noqa: E501 - """UpdateColumnDto - a model defined in Swagger""" # noqa: E501 - self._dbid = None - self._tid = None - self._cid = None - self.discriminator = None - self.dbid = dbid - self.tid = tid - self.cid = cid - - @property - def dbid(self): - """Gets the dbid of this UpdateColumnDto. # noqa: E501 - - - :return: The dbid of this UpdateColumnDto. # noqa: E501 - :rtype: int - """ - return self._dbid - - @dbid.setter - def dbid(self, dbid): - """Sets the dbid of this UpdateColumnDto. - - - :param dbid: The dbid of this UpdateColumnDto. # noqa: E501 - :type: int - """ - if dbid is None: - raise ValueError("Invalid value for `dbid`, must not be `None`") # noqa: E501 - - self._dbid = dbid - - @property - def tid(self): - """Gets the tid of this UpdateColumnDto. # noqa: E501 - - - :return: The tid of this UpdateColumnDto. # noqa: E501 - :rtype: int - """ - return self._tid - - @tid.setter - def tid(self, tid): - """Sets the tid of this UpdateColumnDto. - - - :param tid: The tid of this UpdateColumnDto. # noqa: E501 - :type: int - """ - if tid is None: - raise ValueError("Invalid value for `tid`, must not be `None`") # noqa: E501 - - self._tid = tid - - @property - def cid(self): - """Gets the cid of this UpdateColumnDto. # noqa: E501 - - - :return: The cid of this UpdateColumnDto. # noqa: E501 - :rtype: int - """ - return self._cid - - @cid.setter - def cid(self, cid): - """Sets the cid of this UpdateColumnDto. - - - :param cid: The cid of this UpdateColumnDto. # noqa: E501 - :type: int - """ - if cid is None: - raise ValueError("Invalid value for `cid`, must not be `None`") # noqa: E501 - - self._cid = cid - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(UpdateColumnDto, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, UpdateColumnDto): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/swagger/api-analyse/swagger_client/rest.py b/swagger/api-analyse/swagger_client/rest.py deleted file mode 100644 index 8a9e516e2ddebd4789ced5a59967ad16d4b96450..0000000000000000000000000000000000000000 --- a/swagger/api-analyse/swagger_client/rest.py +++ /dev/null @@ -1,317 +0,0 @@ -# coding: utf-8 - -""" - Database Repository Analyse Service API - - Service that manages the analysis # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -from __future__ import absolute_import - -import io -import json -import logging -import re -import ssl - -import certifi -# python 2 and python 3 compatibility library -import six -from six.moves.urllib.parse import urlencode - -try: - import urllib3 -except ImportError: - raise ImportError('Swagger python client requires urllib3.') - - -logger = logging.getLogger(__name__) - - -class RESTResponse(io.IOBase): - - def __init__(self, resp): - self.urllib3_response = resp - self.status = resp.status - self.reason = resp.reason - self.data = resp.data - - def getheaders(self): - """Returns a dictionary of the response headers.""" - return self.urllib3_response.getheaders() - - def getheader(self, name, default=None): - """Returns a given response header.""" - return self.urllib3_response.getheader(name, default) - - -class RESTClientObject(object): - - def __init__(self, configuration, pools_size=4, maxsize=None): - # urllib3.PoolManager will pass all kw parameters to connectionpool - # https://github.com/shazow/urllib3/blob/f9409436f83aeb79fbaf090181cd81b784f1b8ce/urllib3/poolmanager.py#L75 # noqa: E501 - # https://github.com/shazow/urllib3/blob/f9409436f83aeb79fbaf090181cd81b784f1b8ce/urllib3/connectionpool.py#L680 # noqa: E501 - # maxsize is the number of requests to host that are allowed in parallel # noqa: E501 - # Custom SSL certificates and client certificates: http://urllib3.readthedocs.io/en/latest/advanced-usage.html # noqa: E501 - - # cert_reqs - if configuration.verify_ssl: - cert_reqs = ssl.CERT_REQUIRED - else: - cert_reqs = ssl.CERT_NONE - - # ca_certs - if configuration.ssl_ca_cert: - ca_certs = configuration.ssl_ca_cert - else: - # if not set certificate file, use Mozilla's root certificates. - ca_certs = certifi.where() - - addition_pool_args = {} - if configuration.assert_hostname is not None: - addition_pool_args['assert_hostname'] = configuration.assert_hostname # noqa: E501 - - if maxsize is None: - if configuration.connection_pool_maxsize is not None: - maxsize = configuration.connection_pool_maxsize - else: - maxsize = 4 - - # https pool manager - if configuration.proxy: - self.pool_manager = urllib3.ProxyManager( - num_pools=pools_size, - maxsize=maxsize, - cert_reqs=cert_reqs, - ca_certs=ca_certs, - cert_file=configuration.cert_file, - key_file=configuration.key_file, - proxy_url=configuration.proxy, - **addition_pool_args - ) - else: - self.pool_manager = urllib3.PoolManager( - num_pools=pools_size, - maxsize=maxsize, - cert_reqs=cert_reqs, - ca_certs=ca_certs, - cert_file=configuration.cert_file, - key_file=configuration.key_file, - **addition_pool_args - ) - - def request(self, method, url, query_params=None, headers=None, - body=None, post_params=None, _preload_content=True, - _request_timeout=None): - """Perform requests. - - :param method: http request method - :param url: http request url - :param query_params: query parameters in the url - :param headers: http request headers - :param body: request json body, for `application/json` - :param post_params: request post parameters, - `application/x-www-form-urlencoded` - and `multipart/form-data` - :param _preload_content: if False, the urllib3.HTTPResponse object will - be returned without reading/decoding response - data. Default is True. - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - """ - method = method.upper() - assert method in ['GET', 'HEAD', 'DELETE', 'POST', 'PUT', - 'PATCH', 'OPTIONS'] - - if post_params and body: - raise ValueError( - "body parameter cannot be used with post_params parameter." - ) - - post_params = post_params or {} - headers = headers or {} - - timeout = None - if _request_timeout: - if isinstance(_request_timeout, (int, ) if six.PY3 else (int, long)): # noqa: E501,F821 - timeout = urllib3.Timeout(total=_request_timeout) - elif (isinstance(_request_timeout, tuple) and - len(_request_timeout) == 2): - timeout = urllib3.Timeout( - connect=_request_timeout[0], read=_request_timeout[1]) - - if 'Content-Type' not in headers: - headers['Content-Type'] = 'application/json' - - try: - # For `POST`, `PUT`, `PATCH`, `OPTIONS`, `DELETE` - if method in ['POST', 'PUT', 'PATCH', 'OPTIONS', 'DELETE']: - if query_params: - url += '?' + urlencode(query_params) - if re.search('json', headers['Content-Type'], re.IGNORECASE): - request_body = '{}' - if body is not None: - request_body = json.dumps(body) - r = self.pool_manager.request( - method, url, - body=request_body, - preload_content=_preload_content, - timeout=timeout, - headers=headers) - elif headers['Content-Type'] == 'application/x-www-form-urlencoded': # noqa: E501 - r = self.pool_manager.request( - method, url, - fields=post_params, - encode_multipart=False, - preload_content=_preload_content, - timeout=timeout, - headers=headers) - elif headers['Content-Type'] == 'multipart/form-data': - # must del headers['Content-Type'], or the correct - # Content-Type which generated by urllib3 will be - # overwritten. - del headers['Content-Type'] - r = self.pool_manager.request( - method, url, - fields=post_params, - encode_multipart=True, - preload_content=_preload_content, - timeout=timeout, - headers=headers) - # Pass a `string` parameter directly in the body to support - # other content types than Json when `body` argument is - # provided in serialized form - elif isinstance(body, str): - request_body = body - r = self.pool_manager.request( - method, url, - body=request_body, - preload_content=_preload_content, - timeout=timeout, - headers=headers) - else: - # Cannot generate the request from given parameters - msg = """Cannot prepare a request message for provided - arguments. Please check that your arguments match - declared content type.""" - raise ApiException(status=0, reason=msg) - # For `GET`, `HEAD` - else: - r = self.pool_manager.request(method, url, - fields=query_params, - preload_content=_preload_content, - timeout=timeout, - headers=headers) - except urllib3.exceptions.SSLError as e: - msg = "{0}\n{1}".format(type(e).__name__, str(e)) - raise ApiException(status=0, reason=msg) - - if _preload_content: - r = RESTResponse(r) - - # log response body - logger.debug("response body: %s", r.data) - - if not 200 <= r.status <= 299: - raise ApiException(http_resp=r) - - return r - - def GET(self, url, headers=None, query_params=None, _preload_content=True, - _request_timeout=None): - return self.request("GET", url, - headers=headers, - _preload_content=_preload_content, - _request_timeout=_request_timeout, - query_params=query_params) - - def HEAD(self, url, headers=None, query_params=None, _preload_content=True, - _request_timeout=None): - return self.request("HEAD", url, - headers=headers, - _preload_content=_preload_content, - _request_timeout=_request_timeout, - query_params=query_params) - - def OPTIONS(self, url, headers=None, query_params=None, post_params=None, - body=None, _preload_content=True, _request_timeout=None): - return self.request("OPTIONS", url, - headers=headers, - query_params=query_params, - post_params=post_params, - _preload_content=_preload_content, - _request_timeout=_request_timeout, - body=body) - - def DELETE(self, url, headers=None, query_params=None, body=None, - _preload_content=True, _request_timeout=None): - return self.request("DELETE", url, - headers=headers, - query_params=query_params, - _preload_content=_preload_content, - _request_timeout=_request_timeout, - body=body) - - def POST(self, url, headers=None, query_params=None, post_params=None, - body=None, _preload_content=True, _request_timeout=None): - return self.request("POST", url, - headers=headers, - query_params=query_params, - post_params=post_params, - _preload_content=_preload_content, - _request_timeout=_request_timeout, - body=body) - - def PUT(self, url, headers=None, query_params=None, post_params=None, - body=None, _preload_content=True, _request_timeout=None): - return self.request("PUT", url, - headers=headers, - query_params=query_params, - post_params=post_params, - _preload_content=_preload_content, - _request_timeout=_request_timeout, - body=body) - - def PATCH(self, url, headers=None, query_params=None, post_params=None, - body=None, _preload_content=True, _request_timeout=None): - return self.request("PATCH", url, - headers=headers, - query_params=query_params, - post_params=post_params, - _preload_content=_preload_content, - _request_timeout=_request_timeout, - body=body) - - -class ApiException(Exception): - - def __init__(self, status=None, reason=None, http_resp=None): - if http_resp: - self.status = http_resp.status - self.reason = http_resp.reason - self.body = http_resp.data - self.headers = http_resp.getheaders() - else: - self.status = status - self.reason = reason - self.body = None - self.headers = None - - def __str__(self): - """Custom error messages for exception""" - error_message = "({0})\n"\ - "Reason: {1}\n".format(self.status, self.reason) - if self.headers: - error_message += "HTTP response headers: {0}\n".format( - self.headers) - - if self.body: - error_message += "HTTP response body: {0}\n".format(self.body) - - return error_message diff --git a/swagger/api-analyse/test-requirements.txt b/swagger/api-analyse/test-requirements.txt deleted file mode 100644 index 2702246c0e6f92a1c41c0960879e07da339e4b7d..0000000000000000000000000000000000000000 --- a/swagger/api-analyse/test-requirements.txt +++ /dev/null @@ -1,5 +0,0 @@ -coverage>=4.0.3 -nose>=1.3.7 -pluggy>=0.3.1 -py>=1.4.31 -randomize>=0.13 diff --git a/swagger/api-analyse/test/__init__.py b/swagger/api-analyse/test/__init__.py deleted file mode 100644 index e69de29bb2d1d6434b8b29ae775ad8c2e48c5391..0000000000000000000000000000000000000000 diff --git a/swagger/api-analyse/test/test_analyse_determinedt_body.py b/swagger/api-analyse/test/test_analyse_determinedt_body.py deleted file mode 100644 index b5efabb6db66788b5f196e91d3df5aadaca2be27..0000000000000000000000000000000000000000 --- a/swagger/api-analyse/test/test_analyse_determinedt_body.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Database Repository Analyse Service API - - Service that manages the analysis # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -from __future__ import absolute_import - -import unittest - -import swagger_client -from swagger_client.models.analyse_determinedt_body import AnalyseDeterminedtBody # noqa: E501 -from swagger_client.rest import ApiException - - -class TestAnalyseDeterminedtBody(unittest.TestCase): - """AnalyseDeterminedtBody unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testAnalyseDeterminedtBody(self): - """Test AnalyseDeterminedtBody""" - # FIXME: construct object with mandatory attributes with example values - # model = swagger_client.models.analyse_determinedt_body.AnalyseDeterminedtBody() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/swagger/api-analyse/test/test_analyse_determinepk_body.py b/swagger/api-analyse/test/test_analyse_determinepk_body.py deleted file mode 100644 index 8cd72bb339b04a8d2b1b3db352685ddf40e54a53..0000000000000000000000000000000000000000 --- a/swagger/api-analyse/test/test_analyse_determinepk_body.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Database Repository Analyse Service API - - Service that manages the analysis # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -from __future__ import absolute_import - -import unittest - -import swagger_client -from swagger_client.models.analyse_determinepk_body import AnalyseDeterminepkBody # noqa: E501 -from swagger_client.rest import ApiException - - -class TestAnalyseDeterminepkBody(unittest.TestCase): - """AnalyseDeterminepkBody unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testAnalyseDeterminepkBody(self): - """Test AnalyseDeterminepkBody""" - # FIXME: construct object with mandatory attributes with example values - # model = swagger_client.models.analyse_determinepk_body.AnalyseDeterminepkBody() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/swagger/api-analyse/test/test_analyse_endpoint_api.py b/swagger/api-analyse/test/test_analyse_endpoint_api.py deleted file mode 100644 index b46eda9cae5cfe8b042e2469e570d53395df3f6a..0000000000000000000000000000000000000000 --- a/swagger/api-analyse/test/test_analyse_endpoint_api.py +++ /dev/null @@ -1,47 +0,0 @@ -# coding: utf-8 - -""" - Database Repository Analyse Service API - - Service that manages the analysis # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -from __future__ import absolute_import - -import unittest - -import swagger_client -from swagger_client.api.analyse_endpoint_api import AnalyseEndpointApi # noqa: E501 -from swagger_client.rest import ApiException - - -class TestAnalyseEndpointApi(unittest.TestCase): - """AnalyseEndpointApi unit test stubs""" - - def setUp(self): - self.api = AnalyseEndpointApi() # noqa: E501 - - def tearDown(self): - pass - - def test_api_analyse_determinedt_post(self): - """Test case for api_analyse_determinedt_post - - Determine datatypes # noqa: E501 - """ - pass - - def test_api_analyse_determinepk_post(self): - """Test case for api_analyse_determinepk_post - - Determine primary keys # noqa: E501 - """ - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/swagger/api-analyse/test/test_analyse_update_mdb_col_body.py b/swagger/api-analyse/test/test_analyse_update_mdb_col_body.py deleted file mode 100644 index 2d65f587d96ce917db98e853178c590a5c2fec7d..0000000000000000000000000000000000000000 --- a/swagger/api-analyse/test/test_analyse_update_mdb_col_body.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Database Repository Analyse Service API - - Service that manages the analysis # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -from __future__ import absolute_import - -import unittest - -import swagger_client -from swagger_client.models.analyse_update_mdb_col_body import AnalyseUpdateMdbColBody # noqa: E501 -from swagger_client.rest import ApiException - - -class TestAnalyseUpdateMdbColBody(unittest.TestCase): - """AnalyseUpdateMdbColBody unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testAnalyseUpdateMdbColBody(self): - """Test AnalyseUpdateMdbColBody""" - # FIXME: construct object with mandatory attributes with example values - # model = swagger_client.models.analyse_update_mdb_col_body.AnalyseUpdateMdbColBody() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/swagger/api-analyse/test/test_data_type_dto.py b/swagger/api-analyse/test/test_data_type_dto.py deleted file mode 100644 index f9f39499a31521dbd364d935616a6f0cb471b66e..0000000000000000000000000000000000000000 --- a/swagger/api-analyse/test/test_data_type_dto.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Database Repository Analyse Service API - - Service that manages the analysis # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -from __future__ import absolute_import - -import unittest - -import swagger_client -from swagger_client.models.data_type_dto import DataTypeDto # noqa: E501 -from swagger_client.rest import ApiException - - -class TestDataTypeDto(unittest.TestCase): - """DataTypeDto unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testDataTypeDto(self): - """Test DataTypeDto""" - # FIXME: construct object with mandatory attributes with example values - # model = swagger_client.models.data_type_dto.DataTypeDto() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/swagger/api-analyse/test/test_determine_data_type_dto.py b/swagger/api-analyse/test/test_determine_data_type_dto.py deleted file mode 100644 index 0de959930175bf8b88f359b0a56686954a64a797..0000000000000000000000000000000000000000 --- a/swagger/api-analyse/test/test_determine_data_type_dto.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Database Repository Analyse Service API - - Service that manages the analysis # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -from __future__ import absolute_import - -import unittest - -import swagger_client -from swagger_client.models.determine_data_type_dto import DetermineDataTypeDto # noqa: E501 -from swagger_client.rest import ApiException - - -class TestDetermineDataTypeDto(unittest.TestCase): - """DetermineDataTypeDto unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testDetermineDataTypeDto(self): - """Test DetermineDataTypeDto""" - # FIXME: construct object with mandatory attributes with example values - # model = swagger_client.models.determine_data_type_dto.DetermineDataTypeDto() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/swagger/api-analyse/test/test_determine_data_type_request_dto.py b/swagger/api-analyse/test/test_determine_data_type_request_dto.py deleted file mode 100644 index 8aca2de7dce42f3955e5ab36b9a09c30b45ddad7..0000000000000000000000000000000000000000 --- a/swagger/api-analyse/test/test_determine_data_type_request_dto.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Database Repository Analyse Service API - - Service that manages the analysis # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -from __future__ import absolute_import - -import unittest - -import swagger_client -from swagger_client.models.determine_data_type_request_dto import DetermineDataTypeRequestDto # noqa: E501 -from swagger_client.rest import ApiException - - -class TestDetermineDataTypeRequestDto(unittest.TestCase): - """DetermineDataTypeRequestDto unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testDetermineDataTypeRequestDto(self): - """Test DetermineDataTypeRequestDto""" - # FIXME: construct object with mandatory attributes with example values - # model = swagger_client.models.determine_data_type_request_dto.DetermineDataTypeRequestDto() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/swagger/api-analyse/test/test_determine_data_type_response_dto.py b/swagger/api-analyse/test/test_determine_data_type_response_dto.py deleted file mode 100644 index 72e6ac30221f03e3a8821c255f7cbf9eecc4e998..0000000000000000000000000000000000000000 --- a/swagger/api-analyse/test/test_determine_data_type_response_dto.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Database Repository Analyse Service API - - Service that manages the analysis # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -from __future__ import absolute_import - -import unittest - -import swagger_client -from swagger_client.models.determine_data_type_response_dto import DetermineDataTypeResponseDto # noqa: E501 -from swagger_client.rest import ApiException - - -class TestDetermineDataTypeResponseDto(unittest.TestCase): - """DetermineDataTypeResponseDto unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testDetermineDataTypeResponseDto(self): - """Test DetermineDataTypeResponseDto""" - # FIXME: construct object with mandatory attributes with example values - # model = swagger_client.models.determine_data_type_response_dto.DetermineDataTypeResponseDto() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/swagger/api-analyse/test/test_determine_primary_key_dto.py b/swagger/api-analyse/test/test_determine_primary_key_dto.py deleted file mode 100644 index 3e5e5ec76edf0f14bb968b8dea6342985b316e57..0000000000000000000000000000000000000000 --- a/swagger/api-analyse/test/test_determine_primary_key_dto.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Database Repository Analyse Service API - - Service that manages the analysis # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -from __future__ import absolute_import - -import unittest - -import swagger_client -from swagger_client.models.determine_primary_key_dto import DeterminePrimaryKeyDto # noqa: E501 -from swagger_client.rest import ApiException - - -class TestDeterminePrimaryKeyDto(unittest.TestCase): - """DeterminePrimaryKeyDto unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testDeterminePrimaryKeyDto(self): - """Test DeterminePrimaryKeyDto""" - # FIXME: construct object with mandatory attributes with example values - # model = swagger_client.models.determine_primary_key_dto.DeterminePrimaryKeyDto() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/swagger/api-analyse/test/test_error_dto.py b/swagger/api-analyse/test/test_error_dto.py deleted file mode 100644 index f75ba8366a85b3e39191c8fd1366c0d5947bb76c..0000000000000000000000000000000000000000 --- a/swagger/api-analyse/test/test_error_dto.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Database Repository Analyse Service API - - Service that manages the analysis # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -from __future__ import absolute_import - -import unittest - -import swagger_client -from swagger_client.models.error_dto import ErrorDto # noqa: E501 -from swagger_client.rest import ApiException - - -class TestErrorDto(unittest.TestCase): - """ErrorDto unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testErrorDto(self): - """Test ErrorDto""" - # FIXME: construct object with mandatory attributes with example values - # model = swagger_client.models.error_dto.ErrorDto() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/swagger/api-analyse/test/test_mdb_endpoint_api.py b/swagger/api-analyse/test/test_mdb_endpoint_api.py deleted file mode 100644 index 2c04e1b016d69dd9a9446886d904120423c663da..0000000000000000000000000000000000000000 --- a/swagger/api-analyse/test/test_mdb_endpoint_api.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - Database Repository Analyse Service API - - Service that manages the analysis # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -from __future__ import absolute_import - -import unittest - -import swagger_client -from swagger_client.api.mdb_endpoint_api import MdbEndpointApi # noqa: E501 -from swagger_client.rest import ApiException - - -class TestMdbEndpointApi(unittest.TestCase): - """MdbEndpointApi unit test stubs""" - - def setUp(self): - self.api = MdbEndpointApi() # noqa: E501 - - def tearDown(self): - pass - - def test_api_analyse_update_mdb_col_post(self): - """Test case for api_analyse_update_mdb_col_post - - Update entity mdb_columns from metadatabase # noqa: E501 - """ - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/swagger/api-analyse/test/test_update_column_dto.py b/swagger/api-analyse/test/test_update_column_dto.py deleted file mode 100644 index 9dbb0f4ef6b9b3c2ef802d502d3a0a179e14b03f..0000000000000000000000000000000000000000 --- a/swagger/api-analyse/test/test_update_column_dto.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Database Repository Analyse Service API - - Service that manages the analysis # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -from __future__ import absolute_import - -import unittest - -import swagger_client -from swagger_client.models.update_column_dto import UpdateColumnDto # noqa: E501 -from swagger_client.rest import ApiException - - -class TestUpdateColumnDto(unittest.TestCase): - """UpdateColumnDto unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testUpdateColumnDto(self): - """Test UpdateColumnDto""" - # FIXME: construct object with mandatory attributes with example values - # model = swagger_client.models.update_column_dto.UpdateColumnDto() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/swagger/api-analyse/tox.ini b/swagger/api-analyse/tox.ini deleted file mode 100644 index a310bec97d689718c92c84c9aebc6ab031f12933..0000000000000000000000000000000000000000 --- a/swagger/api-analyse/tox.ini +++ /dev/null @@ -1,10 +0,0 @@ -[tox] -envlist = py3 - -[testenv] -deps=-r{toxinidir}/requirements.txt - -r{toxinidir}/test-requirements.txt - -commands= - nosetests \ - [] diff --git a/swagger/api-authentication.yaml b/swagger/api-authentication.yaml index 408f4f305fa242e370909c3f54ff8536973aedce..60b0a720040061693a616da9803943467c49d852 100644 --- a/swagger/api-authentication.yaml +++ b/swagger/api-authentication.yaml @@ -782,7 +782,6 @@ components: properties: status: type: string - example: NOT_FOUND enum: - 100 CONTINUE - 101 SWITCHING_PROTOCOLS @@ -854,19 +853,15 @@ components: - 511 NETWORK_AUTHENTICATION_REQUIRED message: type: string - example: Could not find container code: type: string - example: error.container.notfound UserForgotDto: type: object properties: username: type: string - example: jcarberry email: type: string - example: jcarberry@brown.edu ContainerDto: required: - created @@ -881,20 +876,17 @@ components: format: int64 hash: type: string - example: f829dd8a884182d0da846f365dee1221fd16610a14c81b8f9f295ff162749e50 name: type: string - example: Air Quality state: type: string - example: running enum: - - created - - restarting - - running - - paused - - exited - - dead + - ContainerStateDto.CREATED + - ContainerStateDto.RESTARTING + - ContainerStateDto.RUNNING + - ContainerStateDto.PAUSED + - ContainerStateDto.EXITED + - ContainerStateDto.DEAD databases: type: array items: @@ -907,15 +899,14 @@ components: created: type: string format: date-time - example: 2021-03-12T15:26:21.678396092Z internal_name: type: string - example: air-quality ip_address: type: string DatabaseDto: required: - creator + - description - exchange - id - internal_name @@ -925,23 +916,21 @@ components: id: type: integer format: int64 + example: 1 name: type: string - example: Air Quality + example: Weather Australia exchange: type: string - example: air_quality creator: $ref: '#/components/schemas/UserBriefDto' subjects: type: array - description: database subjects items: type: string - description: database subjects language: type: string - example: en + example: EN enum: - ab - aa @@ -1131,7 +1120,7 @@ components: $ref: '#/components/schemas/LicenseDto' description: type: string - example: Air Quality in Austria + example: Weather Australia 2009-2021 publisher: type: string example: TU Wien @@ -1153,32 +1142,23 @@ components: format: date-time internal_name: type: string - example: air_quality + example: weather_australia publication_year: type: integer - description: database publication year format: int32 - example: 2022 publication_month: type: integer - description: database publication month format: int32 - example: 12 publication_day: type: integer - description: database publication day format: int32 - example: 15 is_public: type: boolean - description: database publicity - example: true GrantedAuthorityDto: type: object properties: authority: type: string - example: ROLE_RESEARCHER ImageBriefDto: required: - id @@ -1191,10 +1171,8 @@ components: format: int64 repository: type: string - example: mariadb tag: type: string - example: "10.5" ImageDateDto: required: - database_format @@ -1209,16 +1187,12 @@ components: format: int64 example: type: string - example: 30.01.2022 database_format: type: string - example: '%d.%c.%Y' unix_format: type: string - example: dd.MM.YYYY has_time: type: boolean - example: false created_at: type: string format: date-time @@ -1239,46 +1213,36 @@ components: format: int64 repository: type: string - example: mariadb tag: type: string - example: "10.5" dialect: type: string - example: org.hibernate.dialect.MariaDBDialect hash: type: string - example: sha256:c5ec7353d87dfc35067e7bffeb25d6a0d52dad41e8b7357213e3b12d6e7ff78e compiled: type: string format: date-time - example: 2021-03-12T15:26:21.678396092Z size: type: integer - example: 314295447 environment: type: array items: $ref: '#/components/schemas/ImageEnvItemDto' driver_class: type: string - example: org.mariadb.jdbc.Driver date_formats: type: array items: $ref: '#/components/schemas/ImageDateDto' jdbc_method: type: string - example: mariadb default_port: type: integer format: int32 - example: 3306 ImageEnvItemDto: required: - iid - key - - type - value type: object properties: @@ -1287,18 +1251,15 @@ components: format: int64 key: type: string - example: MARIADB_ROOT_PASSWORD value: type: string - example: mariadb type: type: string - example: PRIVILEGED_PASSWORD enum: - - username - - password - - privileged_username - - privileged_password + - USERNAME + - PASSWORD + - PRIVILEGED_USERNAME + - PRIVILEGED_PASSWORD LicenseDto: required: - identifier @@ -1307,10 +1268,9 @@ components: properties: identifier: type: string - example: MIT uri: type: string - example: https://opensource.org/licenses/MIT + example: MIT2 TableBriefDto: required: - creator @@ -1324,12 +1284,10 @@ components: format: int64 name: type: string - example: Air Quality creator: $ref: '#/components/schemas/UserBriefDto' internal_name: type: string - example: air_quality UserBriefDto: required: - email_verified @@ -1343,31 +1301,22 @@ components: format: int64 username: type: string - description: Only contains lowercase characters - example: user firstname: type: string - example: Josiah lastname: type: string - example: Carberry affiliation: type: string - example: Brown University orcid: type: string - example: 0000-0002-1825-0097 titles_before: type: string - example: Prof. titles_after: type: string theme_dark: type: boolean - example: true email_verified: type: boolean - example: true UserDto: required: - email @@ -1386,20 +1335,14 @@ components: $ref: '#/components/schemas/GrantedAuthorityDto' username: type: string - description: Only contains lowercase characters - example: jcarberry firstname: type: string - example: Josiah lastname: type: string - example: Carberry affiliation: type: string - example: Brown University orcid: type: string - example: 0000-0002-1825-0097 containers: type: array items: @@ -1414,36 +1357,30 @@ components: $ref: '#/components/schemas/ContainerDto' email: type: string - example: jcarberry@brown.edu titles_before: type: string - example: Prof. titles_after: type: string theme_dark: type: boolean - example: true email_verified: type: boolean - example: true UserUpdateDto: + required: + - firstname + - lastname type: object properties: firstname: type: string - example: Josiah lastname: type: string - example: Carberry affiliation: type: string - example: Brown University orcid: type: string - example: 0000-0002-1825-0097 titles_before: type: string - example: Prof. titles_after: type: string UserThemeSetDto: @@ -1453,7 +1390,6 @@ components: properties: theme_dark: type: boolean - example: true UserRolesDto: required: - roles @@ -1477,7 +1413,6 @@ components: properties: email: type: string - example: jcarberry@brown.edu UserResetDto: required: - password @@ -1498,10 +1433,8 @@ components: username: pattern: "^[a-z0-9]{3,}$" type: string - example: user email: type: string - example: user@example.com password: type: string LoginRequestDto: @@ -1512,7 +1445,6 @@ components: properties: username: type: string - example: user password: type: string JwtResponseDto: @@ -1529,10 +1461,8 @@ components: format: int64 username: type: string - example: user email: type: string - example: user@example.com roles: type: array items: diff --git a/swagger/api-authentication/.gitignore b/swagger/api-authentication/.gitignore deleted file mode 100644 index a655050c2631466828b5b8bfc59ae27f9ac02dc5..0000000000000000000000000000000000000000 --- a/swagger/api-authentication/.gitignore +++ /dev/null @@ -1,64 +0,0 @@ -# Byte-compiled / optimized / DLL files -__pycache__/ -*.py[cod] -*$py.class - -# C extensions -*.so - -# Distribution / packaging -.Python -env/ -build/ -develop-eggs/ -dist/ -downloads/ -eggs/ -.eggs/ -lib/ -lib64/ -parts/ -sdist/ -var/ -*.egg-info/ -.installed.cfg -*.egg - -# PyInstaller -# Usually these files are written by a python script from a template -# before PyInstaller builds the exe, so as to inject date/other infos into it. -*.manifest -*.spec - -# Installer logs -pip-log.txt -pip-delete-this-directory.txt - -# Unit test / coverage reports -htmlcov/ -.tox/ -.coverage -.coverage.* -.cache -nosetests.xml -coverage.xml -*,cover -.hypothesis/ -venv/ -.python-version - -# Translations -*.mo -*.pot - -# Django stuff: -*.log - -# Sphinx documentation -docs/_build/ - -# PyBuilder -target/ - -#Ipython Notebook -.ipynb_checkpoints diff --git a/swagger/api-authentication/.swagger-codegen-ignore b/swagger/api-authentication/.swagger-codegen-ignore deleted file mode 100644 index c5fa491b4c557bf997d5dd21797de782545dc9e5..0000000000000000000000000000000000000000 --- a/swagger/api-authentication/.swagger-codegen-ignore +++ /dev/null @@ -1,23 +0,0 @@ -# Swagger Codegen Ignore -# Generated by swagger-codegen https://github.com/swagger-api/swagger-codegen - -# Use this file to prevent files from being overwritten by the generator. -# The patterns follow closely to .gitignore or .dockerignore. - -# As an example, the C# client generator defines ApiClient.cs. -# You can make changes and tell Swagger Codgen to ignore just this file by uncommenting the following line: -#ApiClient.cs - -# You can match any string of characters against a directory, file or extension with a single asterisk (*): -#foo/*/qux -# The above matches foo/bar/qux and foo/baz/qux, but not foo/bar/baz/qux - -# You can recursively match patterns against a directory, file or extension with a double asterisk (**): -#foo/**/qux -# This matches foo/bar/qux, foo/baz/qux, and foo/bar/baz/qux - -# You can also negate patterns with an exclamation (!). -# For example, you can ignore all files in a docs folder with the file extension .md: -#docs/*.md -# Then explicitly reverse the ignore rule for a single file: -#!docs/README.md diff --git a/swagger/api-authentication/.swagger-codegen/VERSION b/swagger/api-authentication/.swagger-codegen/VERSION deleted file mode 100644 index 10bbf276ee45aaec75c7b2ada3ff71d798f89fd9..0000000000000000000000000000000000000000 --- a/swagger/api-authentication/.swagger-codegen/VERSION +++ /dev/null @@ -1 +0,0 @@ -3.0.34 \ No newline at end of file diff --git a/swagger/api-authentication/.travis.yml b/swagger/api-authentication/.travis.yml deleted file mode 100644 index dd6c4450aa902ae68479c3d76d45145e18d6052e..0000000000000000000000000000000000000000 --- a/swagger/api-authentication/.travis.yml +++ /dev/null @@ -1,13 +0,0 @@ -# ref: https://docs.travis-ci.com/user/languages/python -language: python -python: - - "3.2" - - "3.3" - - "3.4" - - "3.5" - #- "3.5-dev" # 3.5 development branch - #- "nightly" # points to the latest development branch e.g. 3.6-dev -# command to install dependencies -install: "pip install -r requirements.txt" -# command to run tests -script: nosetests diff --git a/swagger/api-authentication/README.md b/swagger/api-authentication/README.md deleted file mode 100644 index 158a28fb5b4ba87ed277e7e4c03579ae66b37eed..0000000000000000000000000000000000000000 --- a/swagger/api-authentication/README.md +++ /dev/null @@ -1,144 +0,0 @@ -# swagger-client -Service that manages the authentication - -This Python package is automatically generated by the [Swagger Codegen](https://github.com/swagger-api/swagger-codegen) project: - -- API version: 1.1.0-alpha -- Package version: 1.0.0 -- Build package: io.swagger.codegen.v3.generators.python.PythonClientCodegen - -## Requirements. - -Python 2.7 and 3.4+ - -## Installation & Usage -### pip install - -If the python package is hosted on Github, you can install directly from Github - -```sh -pip install git+https://github.com/GIT_USER_ID/GIT_REPO_ID.git -``` -(you may need to run `pip` with root permission: `sudo pip install git+https://github.com/GIT_USER_ID/GIT_REPO_ID.git`) - -Then import the package: -```python -import swagger_client -``` - -### Setuptools - -Install via [Setuptools](http://pypi.python.org/pypi/setuptools). - -```sh -python setup.py install --user -``` -(or `sudo python setup.py install` to install the package for all users) - -Then import the package: -```python -import swagger_client -``` - -## Getting Started - -Please follow the [installation procedure](#installation--usage) and then run the following: - -```python -from __future__ import print_function -import time -import swagger_client -from swagger_client.rest import ApiException -from pprint import pprint - - -# create an instance of the API class -api_instance = swagger_client.AuthenticationEndpointApi(swagger_client.ApiClient(configuration)) - -try: - # Validate token - api_response = api_instance.authenticate_user() - pprint(api_response) -except ApiException as e: - print("Exception when calling AuthenticationEndpointApi->authenticate_user: %s\n" % e) - -# create an instance of the API class -api_instance = swagger_client.AuthenticationEndpointApi(swagger_client.ApiClient(configuration)) -body = swagger_client.LoginRequestDto() # LoginRequestDto | - -try: - # Create token - api_response = api_instance.authenticate_user1(body) - pprint(api_response) -except ApiException as e: - print("Exception when calling AuthenticationEndpointApi->authenticate_user1: %s\n" % e) - - -# create an instance of the API class -api_instance = swagger_client.AuthenticationEndpointApi(swagger_client.ApiClient(configuration)) - -try: - # Renew token - api_response = api_instance.re_authenticate_user() - pprint(api_response) -except ApiException as e: - print("Exception when calling AuthenticationEndpointApi->re_authenticate_user: %s\n" % e) -``` - -## Documentation for API Endpoints - -All URIs are relative to *http://localhost:9097* - -Class | Method | HTTP request | Description ------------- | ------------- | ------------- | ------------- -*AuthenticationEndpointApi* | [**authenticate_user**](docs/AuthenticationEndpointApi.md#authenticate_user) | **PUT** /api/auth | Validate token -*AuthenticationEndpointApi* | [**authenticate_user1**](docs/AuthenticationEndpointApi.md#authenticate_user1) | **POST** /api/auth | Create token -*AuthenticationEndpointApi* | [**re_authenticate_user**](docs/AuthenticationEndpointApi.md#re_authenticate_user) | **POST** /api/auth/renew | Renew token -*TokenEndpointApi* | [**resend**](docs/TokenEndpointApi.md#resend) | **POST** /api/user/token/resend | resend user token -*TokenEndpointApi* | [**verify_email**](docs/TokenEndpointApi.md#verify_email) | **GET** /api/user/token | verify user email -*UserEndpointApi* | [**find**](docs/UserEndpointApi.md#find) | **GET** /api/user/{id} | Find some user -*UserEndpointApi* | [**forgot**](docs/UserEndpointApi.md#forgot) | **PUT** /api/user | Forgot user information -*UserEndpointApi* | [**list**](docs/UserEndpointApi.md#list) | **GET** /api/user | List users -*UserEndpointApi* | [**register**](docs/UserEndpointApi.md#register) | **POST** /api/user | Create user -*UserEndpointApi* | [**reset**](docs/UserEndpointApi.md#reset) | **PUT** /api/user/reset | Reset user information -*UserEndpointApi* | [**update**](docs/UserEndpointApi.md#update) | **PUT** /api/user/{id} | Update user -*UserEndpointApi* | [**update_email**](docs/UserEndpointApi.md#update_email) | **PUT** /api/user/{id}/email | Update user email -*UserEndpointApi* | [**update_password**](docs/UserEndpointApi.md#update_password) | **PUT** /api/user/{id}/password | Update user password -*UserEndpointApi* | [**update_roles**](docs/UserEndpointApi.md#update_roles) | **PUT** /api/user/{id}/roles | Update user roles -*UserEndpointApi* | [**update_theme**](docs/UserEndpointApi.md#update_theme) | **PUT** /api/user/{id}/theme | Update user theme - -## Documentation For Models - - - [ApiErrorDto](docs/ApiErrorDto.md) - - [ContainerDto](docs/ContainerDto.md) - - [DatabaseDto](docs/DatabaseDto.md) - - [GrantedAuthorityDto](docs/GrantedAuthorityDto.md) - - [ImageBriefDto](docs/ImageBriefDto.md) - - [ImageDateDto](docs/ImageDateDto.md) - - [ImageDto](docs/ImageDto.md) - - [ImageEnvItemDto](docs/ImageEnvItemDto.md) - - [JwtResponseDto](docs/JwtResponseDto.md) - - [LicenseDto](docs/LicenseDto.md) - - [LoginRequestDto](docs/LoginRequestDto.md) - - [SignupRequestDto](docs/SignupRequestDto.md) - - [TableBriefDto](docs/TableBriefDto.md) - - [UserBriefDto](docs/UserBriefDto.md) - - [UserDto](docs/UserDto.md) - - [UserEmailDto](docs/UserEmailDto.md) - - [UserForgotDto](docs/UserForgotDto.md) - - [UserPasswordDto](docs/UserPasswordDto.md) - - [UserResetDto](docs/UserResetDto.md) - - [UserRolesDto](docs/UserRolesDto.md) - - [UserThemeSetDto](docs/UserThemeSetDto.md) - - [UserUpdateDto](docs/UserUpdateDto.md) - -## Documentation For Authorization - - -## bearerAuth - - - -## Author - -andreas.rauber@tuwien.ac.at diff --git a/swagger/api-authentication/git_push.sh b/swagger/api-authentication/git_push.sh deleted file mode 100644 index ae01b182ae9eb047d0999a496b060e62d7b01e5c..0000000000000000000000000000000000000000 --- a/swagger/api-authentication/git_push.sh +++ /dev/null @@ -1,52 +0,0 @@ -#!/bin/sh -# ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/ -# -# Usage example: /bin/sh ./git_push.sh wing328 swagger-petstore-perl "minor update" - -git_user_id=$1 -git_repo_id=$2 -release_note=$3 - -if [ "$git_user_id" = "" ]; then - git_user_id="GIT_USER_ID" - echo "[INFO] No command line input provided. Set \$git_user_id to $git_user_id" -fi - -if [ "$git_repo_id" = "" ]; then - git_repo_id="GIT_REPO_ID" - echo "[INFO] No command line input provided. Set \$git_repo_id to $git_repo_id" -fi - -if [ "$release_note" = "" ]; then - release_note="Minor update" - echo "[INFO] No command line input provided. Set \$release_note to $release_note" -fi - -# Initialize the local directory as a Git repository -git init - -# Adds the files in the local repository and stages them for commit. -git add . - -# Commits the tracked changes and prepares them to be pushed to a remote repository. -git commit -m "$release_note" - -# Sets the new remote -git_remote=`git remote` -if [ "$git_remote" = "" ]; then # git remote not defined - - if [ "$GIT_TOKEN" = "" ]; then - echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the git credential in your environment." - git remote add origin https://github.com/${git_user_id}/${git_repo_id}.git - else - git remote add origin https://${git_user_id}:${GIT_TOKEN}@github.com/${git_user_id}/${git_repo_id}.git - fi - -fi - -git pull origin master - -# Pushes (Forces) the changes in the local repository up to the remote repository -echo "Git pushing to https://github.com/${git_user_id}/${git_repo_id}.git" -git push origin master 2>&1 | grep -v 'To https' - diff --git a/swagger/api-authentication/requirements.txt b/swagger/api-authentication/requirements.txt deleted file mode 100644 index bafdc07532f5e1287a24c2af278f547091a410b6..0000000000000000000000000000000000000000 --- a/swagger/api-authentication/requirements.txt +++ /dev/null @@ -1,5 +0,0 @@ -certifi >= 14.05.14 -six >= 1.10 -python_dateutil >= 2.5.3 -setuptools >= 21.0.0 -urllib3 >= 1.15.1 diff --git a/swagger/api-authentication/setup.py b/swagger/api-authentication/setup.py deleted file mode 100644 index 550ee2cdcc321bfe1769fbdb43a8324589e63537..0000000000000000000000000000000000000000 --- a/swagger/api-authentication/setup.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Database Repository Authentication Service API - - Service that manages the authentication # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -from setuptools import setup, find_packages # noqa: H301 - -NAME = "swagger-client" -VERSION = "1.0.0" -# To install the library, run the following -# -# python setup.py install -# -# prerequisite: setuptools -# http://pypi.python.org/pypi/setuptools - -REQUIRES = ["urllib3 >= 1.15", "six >= 1.10", "certifi", "python-dateutil"] - -setup( - name=NAME, - version=VERSION, - description="Database Repository Authentication Service API", - author_email="andreas.rauber@tuwien.ac.at", - url="", - keywords=["Swagger", "Database Repository Authentication Service API"], - install_requires=REQUIRES, - packages=find_packages(), - include_package_data=True, - long_description="""\ - Service that manages the authentication # noqa: E501 - """ -) diff --git a/swagger/api-authentication/swagger_client/__init__.py b/swagger/api-authentication/swagger_client/__init__.py deleted file mode 100644 index 6ac2965e953e94d5cab2fd4bb2f7cc8422bdc657..0000000000000000000000000000000000000000 --- a/swagger/api-authentication/swagger_client/__init__.py +++ /dev/null @@ -1,46 +0,0 @@ -# coding: utf-8 - -# flake8: noqa - -""" - Database Repository Authentication Service API - - Service that manages the authentication # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -from __future__ import absolute_import - -# import apis into sdk package -from swagger_client.api.authentication_endpoint_api import AuthenticationEndpointApi -from swagger_client.api.token_endpoint_api import TokenEndpointApi -from swagger_client.api.user_endpoint_api import UserEndpointApi -# import ApiClient -from swagger_client.api_client import ApiClient -from swagger_client.configuration import Configuration -# import models into sdk package -from swagger_client.models.api_error_dto import ApiErrorDto -from swagger_client.models.container_dto import ContainerDto -from swagger_client.models.database_dto import DatabaseDto -from swagger_client.models.granted_authority_dto import GrantedAuthorityDto -from swagger_client.models.image_brief_dto import ImageBriefDto -from swagger_client.models.image_date_dto import ImageDateDto -from swagger_client.models.image_dto import ImageDto -from swagger_client.models.image_env_item_dto import ImageEnvItemDto -from swagger_client.models.jwt_response_dto import JwtResponseDto -from swagger_client.models.license_dto import LicenseDto -from swagger_client.models.login_request_dto import LoginRequestDto -from swagger_client.models.signup_request_dto import SignupRequestDto -from swagger_client.models.table_brief_dto import TableBriefDto -from swagger_client.models.user_brief_dto import UserBriefDto -from swagger_client.models.user_dto import UserDto -from swagger_client.models.user_email_dto import UserEmailDto -from swagger_client.models.user_forgot_dto import UserForgotDto -from swagger_client.models.user_password_dto import UserPasswordDto -from swagger_client.models.user_reset_dto import UserResetDto -from swagger_client.models.user_roles_dto import UserRolesDto -from swagger_client.models.user_theme_set_dto import UserThemeSetDto -from swagger_client.models.user_update_dto import UserUpdateDto diff --git a/swagger/api-authentication/swagger_client/api/__init__.py b/swagger/api-authentication/swagger_client/api/__init__.py deleted file mode 100644 index 418a019fcd5d187db65000335569b2ee8cb99a14..0000000000000000000000000000000000000000 --- a/swagger/api-authentication/swagger_client/api/__init__.py +++ /dev/null @@ -1,8 +0,0 @@ -from __future__ import absolute_import - -# flake8: noqa - -# import apis into api package -from swagger_client.api.authentication_endpoint_api import AuthenticationEndpointApi -from swagger_client.api.token_endpoint_api import TokenEndpointApi -from swagger_client.api.user_endpoint_api import UserEndpointApi diff --git a/swagger/api-authentication/swagger_client/api/authentication_endpoint_api.py b/swagger/api-authentication/swagger_client/api/authentication_endpoint_api.py deleted file mode 100644 index d04356f4da2cc497d42543d86d7cdd294391c952..0000000000000000000000000000000000000000 --- a/swagger/api-authentication/swagger_client/api/authentication_endpoint_api.py +++ /dev/null @@ -1,300 +0,0 @@ -# coding: utf-8 - -""" - Database Repository Authentication Service API - - Service that manages the authentication # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -from __future__ import absolute_import - -import re # noqa: F401 - -# python 2 and python 3 compatibility library -import six - -from swagger_client.api_client import ApiClient - - -class AuthenticationEndpointApi(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - Ref: https://github.com/swagger-api/swagger-codegen - """ - - def __init__(self, api_client=None): - if api_client is None: - api_client = ApiClient() - self.api_client = api_client - - def authenticate_user(self, **kwargs): # noqa: E501 - """Validate token # noqa: E501 - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.authenticate_user(async_req=True) - >>> result = thread.get() - - :param async_req bool - :return: UserDto - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.authenticate_user_with_http_info(**kwargs) # noqa: E501 - else: - (data) = self.authenticate_user_with_http_info(**kwargs) # noqa: E501 - return data - - def authenticate_user_with_http_info(self, **kwargs): # noqa: E501 - """Validate token # noqa: E501 - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.authenticate_user_with_http_info(async_req=True) - >>> result = thread.get() - - :param async_req bool - :return: UserDto - If the method is called asynchronously, - returns the request thread. - """ - - all_params = [] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in six.iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method authenticate_user" % key - ) - params[key] = val - del params['kwargs'] - - collection_formats = {} - - path_params = {} - - query_params = [] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - # HTTP header `Accept` - header_params['Accept'] = self.api_client.select_header_accept( - ['*/*']) # noqa: E501 - - # Authentication setting - auth_settings = ['bearerAuth'] # noqa: E501 - - return self.api_client.call_api( - '/api/auth', 'PUT', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='UserDto', # noqa: E501 - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def authenticate_user1(self, body, **kwargs): # noqa: E501 - """Create token # noqa: E501 - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.authenticate_user1(body, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param LoginRequestDto body: (required) - :return: JwtResponseDto - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.authenticate_user1_with_http_info(body, **kwargs) # noqa: E501 - else: - (data) = self.authenticate_user1_with_http_info(body, **kwargs) # noqa: E501 - return data - - def authenticate_user1_with_http_info(self, body, **kwargs): # noqa: E501 - """Create token # noqa: E501 - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.authenticate_user1_with_http_info(body, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param LoginRequestDto body: (required) - :return: JwtResponseDto - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['body'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in six.iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method authenticate_user1" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'body' is set - if ('body' not in params or - params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `authenticate_user1`") # noqa: E501 - - collection_formats = {} - - path_params = {} - - query_params = [] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - if 'body' in params: - body_params = params['body'] - # HTTP header `Accept` - header_params['Accept'] = self.api_client.select_header_accept( - ['*/*']) # noqa: E501 - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 - ['application/json']) # noqa: E501 - - # Authentication setting - auth_settings = [] # noqa: E501 - - return self.api_client.call_api( - '/api/auth', 'POST', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='JwtResponseDto', # noqa: E501 - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def re_authenticate_user(self, **kwargs): # noqa: E501 - """Renew token # noqa: E501 - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.re_authenticate_user(async_req=True) - >>> result = thread.get() - - :param async_req bool - :return: JwtResponseDto - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.re_authenticate_user_with_http_info(**kwargs) # noqa: E501 - else: - (data) = self.re_authenticate_user_with_http_info(**kwargs) # noqa: E501 - return data - - def re_authenticate_user_with_http_info(self, **kwargs): # noqa: E501 - """Renew token # noqa: E501 - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.re_authenticate_user_with_http_info(async_req=True) - >>> result = thread.get() - - :param async_req bool - :return: JwtResponseDto - If the method is called asynchronously, - returns the request thread. - """ - - all_params = [] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in six.iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method re_authenticate_user" % key - ) - params[key] = val - del params['kwargs'] - - collection_formats = {} - - path_params = {} - - query_params = [] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - # HTTP header `Accept` - header_params['Accept'] = self.api_client.select_header_accept( - ['*/*']) # noqa: E501 - - # Authentication setting - auth_settings = ['bearerAuth'] # noqa: E501 - - return self.api_client.call_api( - '/api/auth/renew', 'POST', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='JwtResponseDto', # noqa: E501 - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) diff --git a/swagger/api-authentication/swagger_client/api/token_endpoint_api.py b/swagger/api-authentication/swagger_client/api/token_endpoint_api.py deleted file mode 100644 index bdcc81630fa16fc6647e429cb6d56b2407b9c16a..0000000000000000000000000000000000000000 --- a/swagger/api-authentication/swagger_client/api/token_endpoint_api.py +++ /dev/null @@ -1,223 +0,0 @@ -# coding: utf-8 - -""" - Database Repository Authentication Service API - - Service that manages the authentication # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -from __future__ import absolute_import - -import re # noqa: F401 - -# python 2 and python 3 compatibility library -import six - -from swagger_client.api_client import ApiClient - - -class TokenEndpointApi(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - Ref: https://github.com/swagger-api/swagger-codegen - """ - - def __init__(self, api_client=None): - if api_client is None: - api_client = ApiClient() - self.api_client = api_client - - def resend(self, body, **kwargs): # noqa: E501 - """resend user token # noqa: E501 - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.resend(body, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param UserForgotDto body: (required) - :return: object - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.resend_with_http_info(body, **kwargs) # noqa: E501 - else: - (data) = self.resend_with_http_info(body, **kwargs) # noqa: E501 - return data - - def resend_with_http_info(self, body, **kwargs): # noqa: E501 - """resend user token # noqa: E501 - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.resend_with_http_info(body, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param UserForgotDto body: (required) - :return: object - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['body'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in six.iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method resend" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'body' is set - if ('body' not in params or - params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `resend`") # noqa: E501 - - collection_formats = {} - - path_params = {} - - query_params = [] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - if 'body' in params: - body_params = params['body'] - # HTTP header `Accept` - header_params['Accept'] = self.api_client.select_header_accept( - ['*/*']) # noqa: E501 - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 - ['application/json']) # noqa: E501 - - # Authentication setting - auth_settings = [] # noqa: E501 - - return self.api_client.call_api( - '/api/user/token/resend', 'POST', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='object', # noqa: E501 - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def verify_email(self, token, **kwargs): # noqa: E501 - """verify user email # noqa: E501 - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.verify_email(token, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param str token: (required) - :return: None - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.verify_email_with_http_info(token, **kwargs) # noqa: E501 - else: - (data) = self.verify_email_with_http_info(token, **kwargs) # noqa: E501 - return data - - def verify_email_with_http_info(self, token, **kwargs): # noqa: E501 - """verify user email # noqa: E501 - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.verify_email_with_http_info(token, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param str token: (required) - :return: None - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['token'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in six.iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method verify_email" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'token' is set - if ('token' not in params or - params['token'] is None): - raise ValueError("Missing the required parameter `token` when calling `verify_email`") # noqa: E501 - - collection_formats = {} - - path_params = {} - - query_params = [] - if 'token' in params: - query_params.append(('token', params['token'])) # noqa: E501 - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - # HTTP header `Accept` - header_params['Accept'] = self.api_client.select_header_accept( - ['*/*']) # noqa: E501 - - # Authentication setting - auth_settings = [] # noqa: E501 - - return self.api_client.call_api( - '/api/user/token', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type=None, # noqa: E501 - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) diff --git a/swagger/api-authentication/swagger_client/api/user_endpoint_api.py b/swagger/api-authentication/swagger_client/api/user_endpoint_api.py deleted file mode 100644 index 2dbf8f9a85bd1ced7054bae149076257c14a70e4..0000000000000000000000000000000000000000 --- a/swagger/api-authentication/swagger_client/api/user_endpoint_api.py +++ /dev/null @@ -1,1027 +0,0 @@ -# coding: utf-8 - -""" - Database Repository Authentication Service API - - Service that manages the authentication # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -from __future__ import absolute_import - -import re # noqa: F401 - -# python 2 and python 3 compatibility library -import six - -from swagger_client.api_client import ApiClient - - -class UserEndpointApi(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - Ref: https://github.com/swagger-api/swagger-codegen - """ - - def __init__(self, api_client=None): - if api_client is None: - api_client = ApiClient() - self.api_client = api_client - - def find(self, id, **kwargs): # noqa: E501 - """Find some user # noqa: E501 - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.find(id, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param int id: (required) - :return: UserDto - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.find_with_http_info(id, **kwargs) # noqa: E501 - else: - (data) = self.find_with_http_info(id, **kwargs) # noqa: E501 - return data - - def find_with_http_info(self, id, **kwargs): # noqa: E501 - """Find some user # noqa: E501 - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.find_with_http_info(id, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param int id: (required) - :return: UserDto - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['id'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in six.iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method find" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'id' is set - if ('id' not in params or - params['id'] is None): - raise ValueError("Missing the required parameter `id` when calling `find`") # noqa: E501 - - collection_formats = {} - - path_params = {} - if 'id' in params: - path_params['id'] = params['id'] # noqa: E501 - - query_params = [] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - # HTTP header `Accept` - header_params['Accept'] = self.api_client.select_header_accept( - ['*/*']) # noqa: E501 - - # Authentication setting - auth_settings = ['bearerAuth'] # noqa: E501 - - return self.api_client.call_api( - '/api/user/{id}', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='UserDto', # noqa: E501 - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def forgot(self, body, **kwargs): # noqa: E501 - """Forgot user information # noqa: E501 - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.forgot(body, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param UserForgotDto body: (required) - :return: UserDto - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.forgot_with_http_info(body, **kwargs) # noqa: E501 - else: - (data) = self.forgot_with_http_info(body, **kwargs) # noqa: E501 - return data - - def forgot_with_http_info(self, body, **kwargs): # noqa: E501 - """Forgot user information # noqa: E501 - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.forgot_with_http_info(body, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param UserForgotDto body: (required) - :return: UserDto - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['body'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in six.iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method forgot" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'body' is set - if ('body' not in params or - params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `forgot`") # noqa: E501 - - collection_formats = {} - - path_params = {} - - query_params = [] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - if 'body' in params: - body_params = params['body'] - # HTTP header `Accept` - header_params['Accept'] = self.api_client.select_header_accept( - ['*/*']) # noqa: E501 - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 - ['application/json']) # noqa: E501 - - # Authentication setting - auth_settings = [] # noqa: E501 - - return self.api_client.call_api( - '/api/user', 'PUT', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='UserDto', # noqa: E501 - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def list(self, **kwargs): # noqa: E501 - """List users # noqa: E501 - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.list(async_req=True) - >>> result = thread.get() - - :param async_req bool - :return: list[UserBriefDto] - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.list_with_http_info(**kwargs) # noqa: E501 - else: - (data) = self.list_with_http_info(**kwargs) # noqa: E501 - return data - - def list_with_http_info(self, **kwargs): # noqa: E501 - """List users # noqa: E501 - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.list_with_http_info(async_req=True) - >>> result = thread.get() - - :param async_req bool - :return: list[UserBriefDto] - If the method is called asynchronously, - returns the request thread. - """ - - all_params = [] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in six.iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method list" % key - ) - params[key] = val - del params['kwargs'] - - collection_formats = {} - - path_params = {} - - query_params = [] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - # HTTP header `Accept` - header_params['Accept'] = self.api_client.select_header_accept( - ['*/*']) # noqa: E501 - - # Authentication setting - auth_settings = [] # noqa: E501 - - return self.api_client.call_api( - '/api/user', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='list[UserBriefDto]', # noqa: E501 - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def register(self, body, **kwargs): # noqa: E501 - """Create user # noqa: E501 - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.register(body, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param SignupRequestDto body: (required) - :return: UserDto - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.register_with_http_info(body, **kwargs) # noqa: E501 - else: - (data) = self.register_with_http_info(body, **kwargs) # noqa: E501 - return data - - def register_with_http_info(self, body, **kwargs): # noqa: E501 - """Create user # noqa: E501 - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.register_with_http_info(body, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param SignupRequestDto body: (required) - :return: UserDto - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['body'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in six.iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method register" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'body' is set - if ('body' not in params or - params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `register`") # noqa: E501 - - collection_formats = {} - - path_params = {} - - query_params = [] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - if 'body' in params: - body_params = params['body'] - # HTTP header `Accept` - header_params['Accept'] = self.api_client.select_header_accept( - ['*/*']) # noqa: E501 - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 - ['application/json']) # noqa: E501 - - # Authentication setting - auth_settings = [] # noqa: E501 - - return self.api_client.call_api( - '/api/user', 'POST', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='UserDto', # noqa: E501 - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def reset(self, body, **kwargs): # noqa: E501 - """Reset user information # noqa: E501 - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.reset(body, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param UserResetDto body: (required) - :return: None - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.reset_with_http_info(body, **kwargs) # noqa: E501 - else: - (data) = self.reset_with_http_info(body, **kwargs) # noqa: E501 - return data - - def reset_with_http_info(self, body, **kwargs): # noqa: E501 - """Reset user information # noqa: E501 - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.reset_with_http_info(body, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param UserResetDto body: (required) - :return: None - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['body'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in six.iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method reset" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'body' is set - if ('body' not in params or - params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `reset`") # noqa: E501 - - collection_formats = {} - - path_params = {} - - query_params = [] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - if 'body' in params: - body_params = params['body'] - # HTTP header `Accept` - header_params['Accept'] = self.api_client.select_header_accept( - ['*/*']) # noqa: E501 - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 - ['application/json']) # noqa: E501 - - # Authentication setting - auth_settings = [] # noqa: E501 - - return self.api_client.call_api( - '/api/user/reset', 'PUT', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type=None, # noqa: E501 - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def update(self, body, id, **kwargs): # noqa: E501 - """Update user # noqa: E501 - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.update(body, id, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param UserUpdateDto body: (required) - :param int id: (required) - :return: UserDto - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.update_with_http_info(body, id, **kwargs) # noqa: E501 - else: - (data) = self.update_with_http_info(body, id, **kwargs) # noqa: E501 - return data - - def update_with_http_info(self, body, id, **kwargs): # noqa: E501 - """Update user # noqa: E501 - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.update_with_http_info(body, id, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param UserUpdateDto body: (required) - :param int id: (required) - :return: UserDto - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['body', 'id'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in six.iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method update" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'body' is set - if ('body' not in params or - params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `update`") # noqa: E501 - # verify the required parameter 'id' is set - if ('id' not in params or - params['id'] is None): - raise ValueError("Missing the required parameter `id` when calling `update`") # noqa: E501 - - collection_formats = {} - - path_params = {} - if 'id' in params: - path_params['id'] = params['id'] # noqa: E501 - - query_params = [] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - if 'body' in params: - body_params = params['body'] - # HTTP header `Accept` - header_params['Accept'] = self.api_client.select_header_accept( - ['*/*']) # noqa: E501 - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 - ['application/json']) # noqa: E501 - - # Authentication setting - auth_settings = ['bearerAuth'] # noqa: E501 - - return self.api_client.call_api( - '/api/user/{id}', 'PUT', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='UserDto', # noqa: E501 - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def update_email(self, body, id, **kwargs): # noqa: E501 - """Update user email # noqa: E501 - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.update_email(body, id, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param UserEmailDto body: (required) - :param int id: (required) - :return: UserDto - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.update_email_with_http_info(body, id, **kwargs) # noqa: E501 - else: - (data) = self.update_email_with_http_info(body, id, **kwargs) # noqa: E501 - return data - - def update_email_with_http_info(self, body, id, **kwargs): # noqa: E501 - """Update user email # noqa: E501 - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.update_email_with_http_info(body, id, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param UserEmailDto body: (required) - :param int id: (required) - :return: UserDto - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['body', 'id'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in six.iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method update_email" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'body' is set - if ('body' not in params or - params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `update_email`") # noqa: E501 - # verify the required parameter 'id' is set - if ('id' not in params or - params['id'] is None): - raise ValueError("Missing the required parameter `id` when calling `update_email`") # noqa: E501 - - collection_formats = {} - - path_params = {} - if 'id' in params: - path_params['id'] = params['id'] # noqa: E501 - - query_params = [] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - if 'body' in params: - body_params = params['body'] - # HTTP header `Accept` - header_params['Accept'] = self.api_client.select_header_accept( - ['*/*']) # noqa: E501 - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 - ['application/json']) # noqa: E501 - - # Authentication setting - auth_settings = ['bearerAuth'] # noqa: E501 - - return self.api_client.call_api( - '/api/user/{id}/email', 'PUT', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='UserDto', # noqa: E501 - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def update_password(self, body, id, **kwargs): # noqa: E501 - """Update user password # noqa: E501 - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.update_password(body, id, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param UserPasswordDto body: (required) - :param int id: (required) - :return: UserDto - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.update_password_with_http_info(body, id, **kwargs) # noqa: E501 - else: - (data) = self.update_password_with_http_info(body, id, **kwargs) # noqa: E501 - return data - - def update_password_with_http_info(self, body, id, **kwargs): # noqa: E501 - """Update user password # noqa: E501 - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.update_password_with_http_info(body, id, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param UserPasswordDto body: (required) - :param int id: (required) - :return: UserDto - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['body', 'id'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in six.iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method update_password" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'body' is set - if ('body' not in params or - params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `update_password`") # noqa: E501 - # verify the required parameter 'id' is set - if ('id' not in params or - params['id'] is None): - raise ValueError("Missing the required parameter `id` when calling `update_password`") # noqa: E501 - - collection_formats = {} - - path_params = {} - if 'id' in params: - path_params['id'] = params['id'] # noqa: E501 - - query_params = [] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - if 'body' in params: - body_params = params['body'] - # HTTP header `Accept` - header_params['Accept'] = self.api_client.select_header_accept( - ['*/*']) # noqa: E501 - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 - ['application/json']) # noqa: E501 - - # Authentication setting - auth_settings = ['bearerAuth'] # noqa: E501 - - return self.api_client.call_api( - '/api/user/{id}/password', 'PUT', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='UserDto', # noqa: E501 - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def update_roles(self, body, id, **kwargs): # noqa: E501 - """Update user roles # noqa: E501 - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.update_roles(body, id, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param UserRolesDto body: (required) - :param int id: (required) - :return: UserDto - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.update_roles_with_http_info(body, id, **kwargs) # noqa: E501 - else: - (data) = self.update_roles_with_http_info(body, id, **kwargs) # noqa: E501 - return data - - def update_roles_with_http_info(self, body, id, **kwargs): # noqa: E501 - """Update user roles # noqa: E501 - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.update_roles_with_http_info(body, id, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param UserRolesDto body: (required) - :param int id: (required) - :return: UserDto - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['body', 'id'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in six.iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method update_roles" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'body' is set - if ('body' not in params or - params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `update_roles`") # noqa: E501 - # verify the required parameter 'id' is set - if ('id' not in params or - params['id'] is None): - raise ValueError("Missing the required parameter `id` when calling `update_roles`") # noqa: E501 - - collection_formats = {} - - path_params = {} - if 'id' in params: - path_params['id'] = params['id'] # noqa: E501 - - query_params = [] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - if 'body' in params: - body_params = params['body'] - # HTTP header `Accept` - header_params['Accept'] = self.api_client.select_header_accept( - ['*/*']) # noqa: E501 - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 - ['application/json']) # noqa: E501 - - # Authentication setting - auth_settings = ['bearerAuth'] # noqa: E501 - - return self.api_client.call_api( - '/api/user/{id}/roles', 'PUT', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='UserDto', # noqa: E501 - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def update_theme(self, body, id, **kwargs): # noqa: E501 - """Update user theme # noqa: E501 - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.update_theme(body, id, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param UserThemeSetDto body: (required) - :param int id: (required) - :return: None - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.update_theme_with_http_info(body, id, **kwargs) # noqa: E501 - else: - (data) = self.update_theme_with_http_info(body, id, **kwargs) # noqa: E501 - return data - - def update_theme_with_http_info(self, body, id, **kwargs): # noqa: E501 - """Update user theme # noqa: E501 - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.update_theme_with_http_info(body, id, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param UserThemeSetDto body: (required) - :param int id: (required) - :return: None - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['body', 'id'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in six.iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method update_theme" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'body' is set - if ('body' not in params or - params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `update_theme`") # noqa: E501 - # verify the required parameter 'id' is set - if ('id' not in params or - params['id'] is None): - raise ValueError("Missing the required parameter `id` when calling `update_theme`") # noqa: E501 - - collection_formats = {} - - path_params = {} - if 'id' in params: - path_params['id'] = params['id'] # noqa: E501 - - query_params = [] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - if 'body' in params: - body_params = params['body'] - # HTTP header `Accept` - header_params['Accept'] = self.api_client.select_header_accept( - ['*/*']) # noqa: E501 - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 - ['application/json']) # noqa: E501 - - # Authentication setting - auth_settings = ['bearerAuth'] # noqa: E501 - - return self.api_client.call_api( - '/api/user/{id}/theme', 'PUT', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type=None, # noqa: E501 - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) diff --git a/swagger/api-authentication/swagger_client/api_client.py b/swagger/api-authentication/swagger_client/api_client.py deleted file mode 100644 index 1709571e27c646c6ab347e1c5c768b5150a7521e..0000000000000000000000000000000000000000 --- a/swagger/api-authentication/swagger_client/api_client.py +++ /dev/null @@ -1,632 +0,0 @@ -# coding: utf-8 -""" - Database Repository Authentication Service API - - Service that manages the authentication # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" -from __future__ import absolute_import - -import datetime -import json -import mimetypes -from multiprocessing.pool import ThreadPool -import os -import re -import tempfile - -# python 2 and python 3 compatibility library -import six -from six.moves.urllib.parse import quote - -from swagger_client.configuration import Configuration -import swagger_client.models -from swagger_client import rest - - -class ApiClient(object): - """Generic API client for Swagger client library builds. - - Swagger generic API client. This client handles the client- - server communication, and is invariant across implementations. Specifics of - the methods and models for each application are generated from the Swagger - templates. - - NOTE: This class is auto generated by the swagger code generator program. - Ref: https://github.com/swagger-api/swagger-codegen - Do not edit the class manually. - - :param configuration: .Configuration object for this client - :param header_name: a header to pass when making calls to the API. - :param header_value: a header value to pass when making calls to - the API. - :param cookie: a cookie to include in the header when making calls - to the API - """ - - PRIMITIVE_TYPES = (float, bool, bytes, six.text_type) + six.integer_types - NATIVE_TYPES_MAPPING = { - 'int': int, - 'long': int if six.PY3 else long, # noqa: F821 - 'float': float, - 'str': str, - 'bool': bool, - 'date': datetime.date, - 'datetime': datetime.datetime, - 'object': object, - } - - def __init__(self, configuration=None, header_name=None, header_value=None, - cookie=None): - if configuration is None: - configuration = Configuration() - self.configuration = configuration - - self.pool = ThreadPool() - self.rest_client = rest.RESTClientObject(configuration) - self.default_headers = {} - if header_name is not None: - self.default_headers[header_name] = header_value - self.cookie = cookie - # Set default User-Agent. - self.user_agent = 'Swagger-Codegen/1.0.0/python' - - def __del__(self): - self.pool.close() - self.pool.join() - - @property - def user_agent(self): - """User agent for this API client""" - return self.default_headers['User-Agent'] - - @user_agent.setter - def user_agent(self, value): - self.default_headers['User-Agent'] = value - - def set_default_header(self, header_name, header_value): - self.default_headers[header_name] = header_value - - def __call_api( - self, resource_path, method, path_params=None, - query_params=None, header_params=None, body=None, post_params=None, - files=None, response_type=None, auth_settings=None, - _return_http_data_only=None, collection_formats=None, - _preload_content=True, _request_timeout=None): - - config = self.configuration - - # header parameters - header_params = header_params or {} - header_params.update(self.default_headers) - if self.cookie: - header_params['Cookie'] = self.cookie - if header_params: - header_params = self.sanitize_for_serialization(header_params) - header_params = dict(self.parameters_to_tuples(header_params, - collection_formats)) - - # path parameters - if path_params: - path_params = self.sanitize_for_serialization(path_params) - path_params = self.parameters_to_tuples(path_params, - collection_formats) - for k, v in path_params: - # specified safe chars, encode everything - resource_path = resource_path.replace( - '{%s}' % k, - quote(str(v), safe=config.safe_chars_for_path_param) - ) - - # query parameters - if query_params: - query_params = self.sanitize_for_serialization(query_params) - query_params = self.parameters_to_tuples(query_params, - collection_formats) - - # post parameters - if post_params or files: - post_params = self.prepare_post_parameters(post_params, files) - post_params = self.sanitize_for_serialization(post_params) - post_params = self.parameters_to_tuples(post_params, - collection_formats) - - # auth setting - self.update_params_for_auth(header_params, query_params, auth_settings) - - # body - if body: - body = self.sanitize_for_serialization(body) - - # request url - url = self.configuration.host + resource_path - - # perform request and return response - response_data = self.request( - method, url, query_params=query_params, headers=header_params, - post_params=post_params, body=body, - _preload_content=_preload_content, - _request_timeout=_request_timeout) - - self.last_response = response_data - - return_data = response_data - if _preload_content: - # deserialize response data - if response_type: - return_data = self.deserialize(response_data, response_type) - else: - return_data = None - - if _return_http_data_only: - return (return_data) - else: - return (return_data, response_data.status, - response_data.getheaders()) - - def sanitize_for_serialization(self, obj): - """Builds a JSON POST object. - - If obj is None, return None. - If obj is str, int, long, float, bool, return directly. - If obj is datetime.datetime, datetime.date - convert to string in iso8601 format. - If obj is list, sanitize each element in the list. - If obj is dict, return the dict. - If obj is swagger model, return the properties dict. - - :param obj: The data to serialize. - :return: The serialized form of data. - """ - if obj is None: - return None - elif isinstance(obj, self.PRIMITIVE_TYPES): - return obj - elif isinstance(obj, list): - return [self.sanitize_for_serialization(sub_obj) - for sub_obj in obj] - elif isinstance(obj, tuple): - return tuple(self.sanitize_for_serialization(sub_obj) - for sub_obj in obj) - elif isinstance(obj, (datetime.datetime, datetime.date)): - return obj.isoformat() - - if isinstance(obj, dict): - obj_dict = obj - else: - # Convert model obj to dict except - # attributes `swagger_types`, `attribute_map` - # and attributes which value is not None. - # Convert attribute name to json key in - # model definition for request. - obj_dict = {obj.attribute_map[attr]: getattr(obj, attr) - for attr, _ in six.iteritems(obj.swagger_types) - if getattr(obj, attr) is not None} - - return {key: self.sanitize_for_serialization(val) - for key, val in six.iteritems(obj_dict)} - - def deserialize(self, response, response_type): - """Deserializes response into an object. - - :param response: RESTResponse object to be deserialized. - :param response_type: class literal for - deserialized object, or string of class name. - - :return: deserialized object. - """ - # handle file downloading - # save response body into a tmp file and return the instance - if response_type == "file": - return self.__deserialize_file(response) - - # fetch data from response object - try: - data = json.loads(response.data) - except ValueError: - data = response.data - - return self.__deserialize(data, response_type) - - def __deserialize(self, data, klass): - """Deserializes dict, list, str into an object. - - :param data: dict, list or str. - :param klass: class literal, or string of class name. - - :return: object. - """ - if data is None: - return None - - if type(klass) == str: - if klass.startswith('list['): - sub_kls = re.match(r'list\[(.*)\]', klass).group(1) - return [self.__deserialize(sub_data, sub_kls) - for sub_data in data] - - if klass.startswith('dict('): - sub_kls = re.match(r'dict\(([^,]*), (.*)\)', klass).group(2) - return {k: self.__deserialize(v, sub_kls) - for k, v in six.iteritems(data)} - - # convert str to class - if klass in self.NATIVE_TYPES_MAPPING: - klass = self.NATIVE_TYPES_MAPPING[klass] - else: - klass = getattr(swagger_client.models, klass) - - if klass in self.PRIMITIVE_TYPES: - return self.__deserialize_primitive(data, klass) - elif klass == object: - return self.__deserialize_object(data) - elif klass == datetime.date: - return self.__deserialize_date(data) - elif klass == datetime.datetime: - return self.__deserialize_datatime(data) - else: - return self.__deserialize_model(data, klass) - - def call_api(self, resource_path, method, - path_params=None, query_params=None, header_params=None, - body=None, post_params=None, files=None, - response_type=None, auth_settings=None, async_req=None, - _return_http_data_only=None, collection_formats=None, - _preload_content=True, _request_timeout=None): - """Makes the HTTP request (synchronous) and returns deserialized data. - - To make an async request, set the async_req parameter. - - :param resource_path: Path to method endpoint. - :param method: Method to call. - :param path_params: Path parameters in the url. - :param query_params: Query parameters in the url. - :param header_params: Header parameters to be - placed in the request header. - :param body: Request body. - :param post_params dict: Request post form parameters, - for `application/x-www-form-urlencoded`, `multipart/form-data`. - :param auth_settings list: Auth Settings names for the request. - :param response: Response data type. - :param files dict: key -> filename, value -> filepath, - for `multipart/form-data`. - :param async_req bool: execute request asynchronously - :param _return_http_data_only: response data without head status code - and headers - :param collection_formats: dict of collection formats for path, query, - header, and post parameters. - :param _preload_content: if False, the urllib3.HTTPResponse object will - be returned without reading/decoding response - data. Default is True. - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :return: - If async_req parameter is True, - the request will be called asynchronously. - The method will return the request thread. - If parameter async_req is False or missing, - then the method will return the response directly. - """ - if not async_req: - return self.__call_api(resource_path, method, - path_params, query_params, header_params, - body, post_params, files, - response_type, auth_settings, - _return_http_data_only, collection_formats, - _preload_content, _request_timeout) - else: - thread = self.pool.apply_async(self.__call_api, (resource_path, - method, path_params, query_params, - header_params, body, - post_params, files, - response_type, auth_settings, - _return_http_data_only, - collection_formats, - _preload_content, _request_timeout)) - return thread - - def request(self, method, url, query_params=None, headers=None, - post_params=None, body=None, _preload_content=True, - _request_timeout=None): - """Makes the HTTP request using RESTClient.""" - if method == "GET": - return self.rest_client.GET(url, - query_params=query_params, - _preload_content=_preload_content, - _request_timeout=_request_timeout, - headers=headers) - elif method == "HEAD": - return self.rest_client.HEAD(url, - query_params=query_params, - _preload_content=_preload_content, - _request_timeout=_request_timeout, - headers=headers) - elif method == "OPTIONS": - return self.rest_client.OPTIONS(url, - query_params=query_params, - headers=headers, - post_params=post_params, - _preload_content=_preload_content, - _request_timeout=_request_timeout, - body=body) - elif method == "POST": - return self.rest_client.POST(url, - query_params=query_params, - headers=headers, - post_params=post_params, - _preload_content=_preload_content, - _request_timeout=_request_timeout, - body=body) - elif method == "PUT": - return self.rest_client.PUT(url, - query_params=query_params, - headers=headers, - post_params=post_params, - _preload_content=_preload_content, - _request_timeout=_request_timeout, - body=body) - elif method == "PATCH": - return self.rest_client.PATCH(url, - query_params=query_params, - headers=headers, - post_params=post_params, - _preload_content=_preload_content, - _request_timeout=_request_timeout, - body=body) - elif method == "DELETE": - return self.rest_client.DELETE(url, - query_params=query_params, - headers=headers, - _preload_content=_preload_content, - _request_timeout=_request_timeout, - body=body) - else: - raise ValueError( - "http method must be `GET`, `HEAD`, `OPTIONS`," - " `POST`, `PATCH`, `PUT` or `DELETE`." - ) - - def parameters_to_tuples(self, params, collection_formats): - """Get parameters as list of tuples, formatting collections. - - :param params: Parameters as dict or list of two-tuples - :param dict collection_formats: Parameter collection formats - :return: Parameters as list of tuples, collections formatted - """ - new_params = [] - if collection_formats is None: - collection_formats = {} - for k, v in six.iteritems(params) if isinstance(params, dict) else params: # noqa: E501 - if k in collection_formats: - collection_format = collection_formats[k] - if collection_format == 'multi': - new_params.extend((k, value) for value in v) - else: - if collection_format == 'ssv': - delimiter = ' ' - elif collection_format == 'tsv': - delimiter = '\t' - elif collection_format == 'pipes': - delimiter = '|' - else: # csv is the default - delimiter = ',' - new_params.append( - (k, delimiter.join(str(value) for value in v))) - else: - new_params.append((k, v)) - return new_params - - def prepare_post_parameters(self, post_params=None, files=None): - """Builds form parameters. - - :param post_params: Normal form parameters. - :param files: File parameters. - :return: Form parameters with files. - """ - params = [] - - if post_params: - params = post_params - - if files: - for k, v in six.iteritems(files): - if not v: - continue - file_names = v if type(v) is list else [v] - for n in file_names: - with open(n, 'rb') as f: - filename = os.path.basename(f.name) - filedata = f.read() - mimetype = (mimetypes.guess_type(filename)[0] or - 'application/octet-stream') - params.append( - tuple([k, tuple([filename, filedata, mimetype])])) - - return params - - def select_header_accept(self, accepts): - """Returns `Accept` based on an array of accepts provided. - - :param accepts: List of headers. - :return: Accept (e.g. application/json). - """ - if not accepts: - return - - accepts = [x.lower() for x in accepts] - - if 'application/json' in accepts: - return 'application/json' - else: - return ', '.join(accepts) - - def select_header_content_type(self, content_types): - """Returns `Content-Type` based on an array of content_types provided. - - :param content_types: List of content-types. - :return: Content-Type (e.g. application/json). - """ - if not content_types: - return 'application/json' - - content_types = [x.lower() for x in content_types] - - if 'application/json' in content_types or '*/*' in content_types: - return 'application/json' - else: - return content_types[0] - - def update_params_for_auth(self, headers, querys, auth_settings): - """Updates header and query params based on authentication setting. - - :param headers: Header parameters dict to be updated. - :param querys: Query parameters tuple list to be updated. - :param auth_settings: Authentication setting identifiers list. - """ - if not auth_settings: - return - - for auth in auth_settings: - auth_setting = self.configuration.auth_settings().get(auth) - if auth_setting: - if not auth_setting['value']: - continue - elif auth_setting['in'] == 'header': - headers[auth_setting['key']] = auth_setting['value'] - elif auth_setting['in'] == 'query': - querys.append((auth_setting['key'], auth_setting['value'])) - else: - raise ValueError( - 'Authentication token must be in `query` or `header`' - ) - - def __deserialize_file(self, response): - """Deserializes body to file - - Saves response body into a file in a temporary folder, - using the filename from the `Content-Disposition` header if provided. - - :param response: RESTResponse. - :return: file path. - """ - fd, path = tempfile.mkstemp(dir=self.configuration.temp_folder_path) - os.close(fd) - os.remove(path) - - content_disposition = response.getheader("Content-Disposition") - if content_disposition: - filename = re.search(r'filename=[\'"]?([^\'"\s]+)[\'"]?', - content_disposition).group(1) - path = os.path.join(os.path.dirname(path), filename) - response_data = response.data - with open(path, "wb") as f: - if isinstance(response_data, str): - # change str to bytes so we can write it - response_data = response_data.encode('utf-8') - f.write(response_data) - else: - f.write(response_data) - return path - - def __deserialize_primitive(self, data, klass): - """Deserializes string to primitive type. - - :param data: str. - :param klass: class literal. - - :return: int, long, float, str, bool. - """ - try: - return klass(data) - except UnicodeEncodeError: - return six.text_type(data) - except TypeError: - return data - - def __deserialize_object(self, value): - """Return a original value. - - :return: object. - """ - return value - - def __deserialize_date(self, string): - """Deserializes string to date. - - :param string: str. - :return: date. - """ - try: - from dateutil.parser import parse - return parse(string).date() - except ImportError: - return string - except ValueError: - raise rest.ApiException( - status=0, - reason="Failed to parse `{0}` as date object".format(string) - ) - - def __deserialize_datatime(self, string): - """Deserializes string to datetime. - - The string should be in iso8601 datetime format. - - :param string: str. - :return: datetime. - """ - try: - from dateutil.parser import parse - return parse(string) - except ImportError: - return string - except ValueError: - raise rest.ApiException( - status=0, - reason=( - "Failed to parse `{0}` as datetime object" - .format(string) - ) - ) - - def __hasattr(self, object, name): - return name in object.__class__.__dict__ - - def __deserialize_model(self, data, klass): - """Deserializes list or dict to model. - - :param data: dict, list. - :param klass: class literal. - :return: model object. - """ - - if not klass.swagger_types and not self.__hasattr(klass, 'get_real_child_model'): - return data - - kwargs = {} - if klass.swagger_types is not None: - for attr, attr_type in six.iteritems(klass.swagger_types): - if (data is not None and - klass.attribute_map[attr] in data and - isinstance(data, (list, dict))): - value = data[klass.attribute_map[attr]] - kwargs[attr] = self.__deserialize(value, attr_type) - - instance = klass(**kwargs) - - if (isinstance(instance, dict) and - klass.swagger_types is not None and - isinstance(data, dict)): - for key, value in data.items(): - if key not in klass.swagger_types: - instance[key] = value - if self.__hasattr(instance, 'get_real_child_model'): - klass_name = instance.get_real_child_model(data) - if klass_name: - instance = self.__deserialize(data, klass_name) - return instance diff --git a/swagger/api-authentication/swagger_client/configuration.py b/swagger/api-authentication/swagger_client/configuration.py deleted file mode 100644 index 25372783aa60950afa65eebfd589cffe583d85fb..0000000000000000000000000000000000000000 --- a/swagger/api-authentication/swagger_client/configuration.py +++ /dev/null @@ -1,244 +0,0 @@ -# coding: utf-8 - -""" - Database Repository Authentication Service API - - Service that manages the authentication # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -from __future__ import absolute_import - -import copy -import logging -import multiprocessing -import sys -import urllib3 - -import six -from six.moves import http_client as httplib - - -class TypeWithDefault(type): - def __init__(cls, name, bases, dct): - super(TypeWithDefault, cls).__init__(name, bases, dct) - cls._default = None - - def __call__(cls): - if cls._default is None: - cls._default = type.__call__(cls) - return copy.copy(cls._default) - - def set_default(cls, default): - cls._default = copy.copy(default) - - -class Configuration(six.with_metaclass(TypeWithDefault, object)): - """NOTE: This class is auto generated by the swagger code generator program. - - Ref: https://github.com/swagger-api/swagger-codegen - Do not edit the class manually. - """ - - def __init__(self): - """Constructor""" - # Default Base url - self.host = "http://localhost:9097" - # Temp file folder for downloading files - self.temp_folder_path = None - - # Authentication Settings - # dict to store API key(s) - self.api_key = {} - # dict to store API prefix (e.g. Bearer) - self.api_key_prefix = {} - # function to refresh API key if expired - self.refresh_api_key_hook = None - # Username for HTTP basic authentication - self.username = "" - # Password for HTTP basic authentication - self.password = "" - # Logging Settings - self.logger = {} - self.logger["package_logger"] = logging.getLogger("swagger_client") - self.logger["urllib3_logger"] = logging.getLogger("urllib3") - # Log format - self.logger_format = '%(asctime)s %(levelname)s %(message)s' - # Log stream handler - self.logger_stream_handler = None - # Log file handler - self.logger_file_handler = None - # Debug file location - self.logger_file = None - # Debug switch - self.debug = False - - # SSL/TLS verification - # Set this to false to skip verifying SSL certificate when calling API - # from https server. - self.verify_ssl = True - # Set this to customize the certificate file to verify the peer. - self.ssl_ca_cert = None - # client certificate file - self.cert_file = None - # client key file - self.key_file = None - # Set this to True/False to enable/disable SSL hostname verification. - self.assert_hostname = None - - # urllib3 connection pool's maximum number of connections saved - # per pool. urllib3 uses 1 connection as default value, but this is - # not the best value when you are making a lot of possibly parallel - # requests to the same host, which is often the case here. - # cpu_count * 5 is used as default value to increase performance. - self.connection_pool_maxsize = multiprocessing.cpu_count() * 5 - - # Proxy URL - self.proxy = None - # Safe chars for path_param - self.safe_chars_for_path_param = '' - - @property - def logger_file(self): - """The logger file. - - If the logger_file is None, then add stream handler and remove file - handler. Otherwise, add file handler and remove stream handler. - - :param value: The logger_file path. - :type: str - """ - return self.__logger_file - - @logger_file.setter - def logger_file(self, value): - """The logger file. - - If the logger_file is None, then add stream handler and remove file - handler. Otherwise, add file handler and remove stream handler. - - :param value: The logger_file path. - :type: str - """ - self.__logger_file = value - if self.__logger_file: - # If set logging file, - # then add file handler and remove stream handler. - self.logger_file_handler = logging.FileHandler(self.__logger_file) - self.logger_file_handler.setFormatter(self.logger_formatter) - for _, logger in six.iteritems(self.logger): - logger.addHandler(self.logger_file_handler) - if self.logger_stream_handler: - logger.removeHandler(self.logger_stream_handler) - else: - # If not set logging file, - # then add stream handler and remove file handler. - self.logger_stream_handler = logging.StreamHandler() - self.logger_stream_handler.setFormatter(self.logger_formatter) - for _, logger in six.iteritems(self.logger): - logger.addHandler(self.logger_stream_handler) - if self.logger_file_handler: - logger.removeHandler(self.logger_file_handler) - - @property - def debug(self): - """Debug status - - :param value: The debug status, True or False. - :type: bool - """ - return self.__debug - - @debug.setter - def debug(self, value): - """Debug status - - :param value: The debug status, True or False. - :type: bool - """ - self.__debug = value - if self.__debug: - # if debug status is True, turn on debug logging - for _, logger in six.iteritems(self.logger): - logger.setLevel(logging.DEBUG) - # turn on httplib debug - httplib.HTTPConnection.debuglevel = 1 - else: - # if debug status is False, turn off debug logging, - # setting log level to default `logging.WARNING` - for _, logger in six.iteritems(self.logger): - logger.setLevel(logging.WARNING) - # turn off httplib debug - httplib.HTTPConnection.debuglevel = 0 - - @property - def logger_format(self): - """The logger format. - - The logger_formatter will be updated when sets logger_format. - - :param value: The format string. - :type: str - """ - return self.__logger_format - - @logger_format.setter - def logger_format(self, value): - """The logger format. - - The logger_formatter will be updated when sets logger_format. - - :param value: The format string. - :type: str - """ - self.__logger_format = value - self.logger_formatter = logging.Formatter(self.__logger_format) - - def get_api_key_with_prefix(self, identifier): - """Gets API key (with prefix if set). - - :param identifier: The identifier of apiKey. - :return: The token for api key authentication. - """ - if self.refresh_api_key_hook: - self.refresh_api_key_hook(self) - - key = self.api_key.get(identifier) - if key: - prefix = self.api_key_prefix.get(identifier) - if prefix: - return "%s %s" % (prefix, key) - else: - return key - - def get_basic_auth_token(self): - """Gets HTTP basic authentication header (string). - - :return: The token for basic HTTP authentication. - """ - return urllib3.util.make_headers( - basic_auth=self.username + ':' + self.password - ).get('authorization') - - def auth_settings(self): - """Gets Auth Settings dict for api client. - - :return: The Auth Settings information dict. - """ - return { - } - - def to_debug_report(self): - """Gets the essential information for debugging. - - :return: The report for debugging. - """ - return "Python SDK Debug Report:\n"\ - "OS: {env}\n"\ - "Python Version: {pyversion}\n"\ - "Version of the API: 1.1.0-alpha\n"\ - "SDK Package Version: 1.0.0".\ - format(env=sys.platform, pyversion=sys.version) diff --git a/swagger/api-authentication/swagger_client/models/__init__.py b/swagger/api-authentication/swagger_client/models/__init__.py deleted file mode 100644 index 4a2b3256ec31a4da74fa2995dd396942d12e0fcf..0000000000000000000000000000000000000000 --- a/swagger/api-authentication/swagger_client/models/__init__.py +++ /dev/null @@ -1,38 +0,0 @@ -# coding: utf-8 - -# flake8: noqa -""" - Database Repository Authentication Service API - - Service that manages the authentication # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -from __future__ import absolute_import - -# import models into model package -from swagger_client.models.api_error_dto import ApiErrorDto -from swagger_client.models.container_dto import ContainerDto -from swagger_client.models.database_dto import DatabaseDto -from swagger_client.models.granted_authority_dto import GrantedAuthorityDto -from swagger_client.models.image_brief_dto import ImageBriefDto -from swagger_client.models.image_date_dto import ImageDateDto -from swagger_client.models.image_dto import ImageDto -from swagger_client.models.image_env_item_dto import ImageEnvItemDto -from swagger_client.models.jwt_response_dto import JwtResponseDto -from swagger_client.models.license_dto import LicenseDto -from swagger_client.models.login_request_dto import LoginRequestDto -from swagger_client.models.signup_request_dto import SignupRequestDto -from swagger_client.models.table_brief_dto import TableBriefDto -from swagger_client.models.user_brief_dto import UserBriefDto -from swagger_client.models.user_dto import UserDto -from swagger_client.models.user_email_dto import UserEmailDto -from swagger_client.models.user_forgot_dto import UserForgotDto -from swagger_client.models.user_password_dto import UserPasswordDto -from swagger_client.models.user_reset_dto import UserResetDto -from swagger_client.models.user_roles_dto import UserRolesDto -from swagger_client.models.user_theme_set_dto import UserThemeSetDto -from swagger_client.models.user_update_dto import UserUpdateDto diff --git a/swagger/api-authentication/swagger_client/models/api_error_dto.py b/swagger/api-authentication/swagger_client/models/api_error_dto.py deleted file mode 100644 index ec3987847430c4d71f515142d6ed2dcf1678e3c2..0000000000000000000000000000000000000000 --- a/swagger/api-authentication/swagger_client/models/api_error_dto.py +++ /dev/null @@ -1,171 +0,0 @@ -# coding: utf-8 - -""" - Database Repository Authentication Service API - - Service that manages the authentication # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -import pprint -import re # noqa: F401 - -import six - -class ApiErrorDto(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'status': 'str', - 'message': 'str', - 'code': 'str' - } - - attribute_map = { - 'status': 'status', - 'message': 'message', - 'code': 'code' - } - - def __init__(self, status=None, message=None, code=None): # noqa: E501 - """ApiErrorDto - a model defined in Swagger""" # noqa: E501 - self._status = None - self._message = None - self._code = None - self.discriminator = None - self.status = status - self.message = message - self.code = code - - @property - def status(self): - """Gets the status of this ApiErrorDto. # noqa: E501 - - - :return: The status of this ApiErrorDto. # noqa: E501 - :rtype: str - """ - return self._status - - @status.setter - def status(self, status): - """Sets the status of this ApiErrorDto. - - - :param status: The status of this ApiErrorDto. # noqa: E501 - :type: str - """ - if status is None: - raise ValueError("Invalid value for `status`, must not be `None`") # noqa: E501 - allowed_values = ["100 CONTINUE", "101 SWITCHING_PROTOCOLS", "102 PROCESSING", "103 CHECKPOINT", "200 OK", "201 CREATED", "202 ACCEPTED", "203 NON_AUTHORITATIVE_INFORMATION", "204 NO_CONTENT", "205 RESET_CONTENT", "206 PARTIAL_CONTENT", "207 MULTI_STATUS", "208 ALREADY_REPORTED", "226 IM_USED", "300 MULTIPLE_CHOICES", "301 MOVED_PERMANENTLY", "302 FOUND", "302 MOVED_TEMPORARILY", "303 SEE_OTHER", "304 NOT_MODIFIED", "305 USE_PROXY", "307 TEMPORARY_REDIRECT", "308 PERMANENT_REDIRECT", "400 BAD_REQUEST", "401 UNAUTHORIZED", "402 PAYMENT_REQUIRED", "403 FORBIDDEN", "404 NOT_FOUND", "405 METHOD_NOT_ALLOWED", "406 NOT_ACCEPTABLE", "407 PROXY_AUTHENTICATION_REQUIRED", "408 REQUEST_TIMEOUT", "409 CONFLICT", "410 GONE", "411 LENGTH_REQUIRED", "412 PRECONDITION_FAILED", "413 PAYLOAD_TOO_LARGE", "413 REQUEST_ENTITY_TOO_LARGE", "414 URI_TOO_LONG", "414 REQUEST_URI_TOO_LONG", "415 UNSUPPORTED_MEDIA_TYPE", "416 REQUESTED_RANGE_NOT_SATISFIABLE", "417 EXPECTATION_FAILED", "418 I_AM_A_TEAPOT", "419 INSUFFICIENT_SPACE_ON_RESOURCE", "420 METHOD_FAILURE", "421 DESTINATION_LOCKED", "422 UNPROCESSABLE_ENTITY", "423 LOCKED", "424 FAILED_DEPENDENCY", "425 TOO_EARLY", "426 UPGRADE_REQUIRED", "428 PRECONDITION_REQUIRED", "429 TOO_MANY_REQUESTS", "431 REQUEST_HEADER_FIELDS_TOO_LARGE", "451 UNAVAILABLE_FOR_LEGAL_REASONS", "500 INTERNAL_SERVER_ERROR", "501 NOT_IMPLEMENTED", "502 BAD_GATEWAY", "503 SERVICE_UNAVAILABLE", "504 GATEWAY_TIMEOUT", "505 HTTP_VERSION_NOT_SUPPORTED", "506 VARIANT_ALSO_NEGOTIATES", "507 INSUFFICIENT_STORAGE", "508 LOOP_DETECTED", "509 BANDWIDTH_LIMIT_EXCEEDED", "510 NOT_EXTENDED", "511 NETWORK_AUTHENTICATION_REQUIRED"] # noqa: E501 - if status not in allowed_values: - raise ValueError( - "Invalid value for `status` ({0}), must be one of {1}" # noqa: E501 - .format(status, allowed_values) - ) - - self._status = status - - @property - def message(self): - """Gets the message of this ApiErrorDto. # noqa: E501 - - - :return: The message of this ApiErrorDto. # noqa: E501 - :rtype: str - """ - return self._message - - @message.setter - def message(self, message): - """Sets the message of this ApiErrorDto. - - - :param message: The message of this ApiErrorDto. # noqa: E501 - :type: str - """ - if message is None: - raise ValueError("Invalid value for `message`, must not be `None`") # noqa: E501 - - self._message = message - - @property - def code(self): - """Gets the code of this ApiErrorDto. # noqa: E501 - - - :return: The code of this ApiErrorDto. # noqa: E501 - :rtype: str - """ - return self._code - - @code.setter - def code(self, code): - """Sets the code of this ApiErrorDto. - - - :param code: The code of this ApiErrorDto. # noqa: E501 - :type: str - """ - if code is None: - raise ValueError("Invalid value for `code`, must not be `None`") # noqa: E501 - - self._code = code - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(ApiErrorDto, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, ApiErrorDto): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/swagger/api-authentication/swagger_client/models/column_dto.py b/swagger/api-authentication/swagger_client/models/column_dto.py deleted file mode 100644 index 04d7b1abfcfd9e184e3f24cc68e72b0d725e0beb..0000000000000000000000000000000000000000 --- a/swagger/api-authentication/swagger_client/models/column_dto.py +++ /dev/null @@ -1,514 +0,0 @@ -# coding: utf-8 - -""" - Database Repository Authentication Service API - - Service that manages the authentication # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -import pprint -import re # noqa: F401 - -import six - -class ColumnDto(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'id': 'int', - 'name': 'str', - 'unique': 'bool', - 'references': 'str', - 'internal_name': 'str', - 'date_format': 'ImageDateDto', - 'auto_generated': 'bool', - 'is_primary_key': 'bool', - 'column_type': 'str', - 'column_concept': 'ConceptDto', - 'decimal_digits_before': 'int', - 'decimal_digits_after': 'int', - 'is_null_allowed': 'bool', - 'check_expression': 'str', - 'foreign_key': 'str', - 'enum_values': 'list[str]' - } - - attribute_map = { - 'id': 'id', - 'name': 'name', - 'unique': 'unique', - 'references': 'references', - 'internal_name': 'internal_name', - 'date_format': 'date_format', - 'auto_generated': 'auto_generated', - 'is_primary_key': 'is_primary_key', - 'column_type': 'column_type', - 'column_concept': 'column_concept', - 'decimal_digits_before': 'decimal_digits_before', - 'decimal_digits_after': 'decimal_digits_after', - 'is_null_allowed': 'is_null_allowed', - 'check_expression': 'check_expression', - 'foreign_key': 'foreign_key', - 'enum_values': 'enum_values' - } - - def __init__(self, id=None, name=None, unique=None, references=None, internal_name=None, date_format=None, auto_generated=None, is_primary_key=None, column_type=None, column_concept=None, decimal_digits_before=None, decimal_digits_after=None, is_null_allowed=None, check_expression=None, foreign_key=None, enum_values=None): # noqa: E501 - """ColumnDto - a model defined in Swagger""" # noqa: E501 - self._id = None - self._name = None - self._unique = None - self._references = None - self._internal_name = None - self._date_format = None - self._auto_generated = None - self._is_primary_key = None - self._column_type = None - self._column_concept = None - self._decimal_digits_before = None - self._decimal_digits_after = None - self._is_null_allowed = None - self._check_expression = None - self._foreign_key = None - self._enum_values = None - self.discriminator = None - self.id = id - self.name = name - self.unique = unique - if references is not None: - self.references = references - self.internal_name = internal_name - if date_format is not None: - self.date_format = date_format - self.auto_generated = auto_generated - self.is_primary_key = is_primary_key - self.column_type = column_type - if column_concept is not None: - self.column_concept = column_concept - if decimal_digits_before is not None: - self.decimal_digits_before = decimal_digits_before - if decimal_digits_after is not None: - self.decimal_digits_after = decimal_digits_after - self.is_null_allowed = is_null_allowed - if check_expression is not None: - self.check_expression = check_expression - if foreign_key is not None: - self.foreign_key = foreign_key - if enum_values is not None: - self.enum_values = enum_values - - @property - def id(self): - """Gets the id of this ColumnDto. # noqa: E501 - - - :return: The id of this ColumnDto. # noqa: E501 - :rtype: int - """ - return self._id - - @id.setter - def id(self, id): - """Sets the id of this ColumnDto. - - - :param id: The id of this ColumnDto. # noqa: E501 - :type: int - """ - if id is None: - raise ValueError("Invalid value for `id`, must not be `None`") # noqa: E501 - - self._id = id - - @property - def name(self): - """Gets the name of this ColumnDto. # noqa: E501 - - - :return: The name of this ColumnDto. # noqa: E501 - :rtype: str - """ - return self._name - - @name.setter - def name(self, name): - """Sets the name of this ColumnDto. - - - :param name: The name of this ColumnDto. # noqa: E501 - :type: str - """ - if name is None: - raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501 - - self._name = name - - @property - def unique(self): - """Gets the unique of this ColumnDto. # noqa: E501 - - - :return: The unique of this ColumnDto. # noqa: E501 - :rtype: bool - """ - return self._unique - - @unique.setter - def unique(self, unique): - """Sets the unique of this ColumnDto. - - - :param unique: The unique of this ColumnDto. # noqa: E501 - :type: bool - """ - if unique is None: - raise ValueError("Invalid value for `unique`, must not be `None`") # noqa: E501 - - self._unique = unique - - @property - def references(self): - """Gets the references of this ColumnDto. # noqa: E501 - - - :return: The references of this ColumnDto. # noqa: E501 - :rtype: str - """ - return self._references - - @references.setter - def references(self, references): - """Sets the references of this ColumnDto. - - - :param references: The references of this ColumnDto. # noqa: E501 - :type: str - """ - - self._references = references - - @property - def internal_name(self): - """Gets the internal_name of this ColumnDto. # noqa: E501 - - - :return: The internal_name of this ColumnDto. # noqa: E501 - :rtype: str - """ - return self._internal_name - - @internal_name.setter - def internal_name(self, internal_name): - """Sets the internal_name of this ColumnDto. - - - :param internal_name: The internal_name of this ColumnDto. # noqa: E501 - :type: str - """ - if internal_name is None: - raise ValueError("Invalid value for `internal_name`, must not be `None`") # noqa: E501 - - self._internal_name = internal_name - - @property - def date_format(self): - """Gets the date_format of this ColumnDto. # noqa: E501 - - - :return: The date_format of this ColumnDto. # noqa: E501 - :rtype: ImageDateDto - """ - return self._date_format - - @date_format.setter - def date_format(self, date_format): - """Sets the date_format of this ColumnDto. - - - :param date_format: The date_format of this ColumnDto. # noqa: E501 - :type: ImageDateDto - """ - - self._date_format = date_format - - @property - def auto_generated(self): - """Gets the auto_generated of this ColumnDto. # noqa: E501 - - - :return: The auto_generated of this ColumnDto. # noqa: E501 - :rtype: bool - """ - return self._auto_generated - - @auto_generated.setter - def auto_generated(self, auto_generated): - """Sets the auto_generated of this ColumnDto. - - - :param auto_generated: The auto_generated of this ColumnDto. # noqa: E501 - :type: bool - """ - if auto_generated is None: - raise ValueError("Invalid value for `auto_generated`, must not be `None`") # noqa: E501 - - self._auto_generated = auto_generated - - @property - def is_primary_key(self): - """Gets the is_primary_key of this ColumnDto. # noqa: E501 - - - :return: The is_primary_key of this ColumnDto. # noqa: E501 - :rtype: bool - """ - return self._is_primary_key - - @is_primary_key.setter - def is_primary_key(self, is_primary_key): - """Sets the is_primary_key of this ColumnDto. - - - :param is_primary_key: The is_primary_key of this ColumnDto. # noqa: E501 - :type: bool - """ - if is_primary_key is None: - raise ValueError("Invalid value for `is_primary_key`, must not be `None`") # noqa: E501 - - self._is_primary_key = is_primary_key - - @property - def column_type(self): - """Gets the column_type of this ColumnDto. # noqa: E501 - - - :return: The column_type of this ColumnDto. # noqa: E501 - :rtype: str - """ - return self._column_type - - @column_type.setter - def column_type(self, column_type): - """Sets the column_type of this ColumnDto. - - - :param column_type: The column_type of this ColumnDto. # noqa: E501 - :type: str - """ - if column_type is None: - raise ValueError("Invalid value for `column_type`, must not be `None`") # noqa: E501 - allowed_values = ["enum", "number", "decimal", "string", "text", "boolean", "date", "timestamp", "blob"] # noqa: E501 - if column_type not in allowed_values: - raise ValueError( - "Invalid value for `column_type` ({0}), must be one of {1}" # noqa: E501 - .format(column_type, allowed_values) - ) - - self._column_type = column_type - - @property - def column_concept(self): - """Gets the column_concept of this ColumnDto. # noqa: E501 - - - :return: The column_concept of this ColumnDto. # noqa: E501 - :rtype: ConceptDto - """ - return self._column_concept - - @column_concept.setter - def column_concept(self, column_concept): - """Sets the column_concept of this ColumnDto. - - - :param column_concept: The column_concept of this ColumnDto. # noqa: E501 - :type: ConceptDto - """ - - self._column_concept = column_concept - - @property - def decimal_digits_before(self): - """Gets the decimal_digits_before of this ColumnDto. # noqa: E501 - - - :return: The decimal_digits_before of this ColumnDto. # noqa: E501 - :rtype: int - """ - return self._decimal_digits_before - - @decimal_digits_before.setter - def decimal_digits_before(self, decimal_digits_before): - """Sets the decimal_digits_before of this ColumnDto. - - - :param decimal_digits_before: The decimal_digits_before of this ColumnDto. # noqa: E501 - :type: int - """ - - self._decimal_digits_before = decimal_digits_before - - @property - def decimal_digits_after(self): - """Gets the decimal_digits_after of this ColumnDto. # noqa: E501 - - - :return: The decimal_digits_after of this ColumnDto. # noqa: E501 - :rtype: int - """ - return self._decimal_digits_after - - @decimal_digits_after.setter - def decimal_digits_after(self, decimal_digits_after): - """Sets the decimal_digits_after of this ColumnDto. - - - :param decimal_digits_after: The decimal_digits_after of this ColumnDto. # noqa: E501 - :type: int - """ - - self._decimal_digits_after = decimal_digits_after - - @property - def is_null_allowed(self): - """Gets the is_null_allowed of this ColumnDto. # noqa: E501 - - - :return: The is_null_allowed of this ColumnDto. # noqa: E501 - :rtype: bool - """ - return self._is_null_allowed - - @is_null_allowed.setter - def is_null_allowed(self, is_null_allowed): - """Sets the is_null_allowed of this ColumnDto. - - - :param is_null_allowed: The is_null_allowed of this ColumnDto. # noqa: E501 - :type: bool - """ - if is_null_allowed is None: - raise ValueError("Invalid value for `is_null_allowed`, must not be `None`") # noqa: E501 - - self._is_null_allowed = is_null_allowed - - @property - def check_expression(self): - """Gets the check_expression of this ColumnDto. # noqa: E501 - - - :return: The check_expression of this ColumnDto. # noqa: E501 - :rtype: str - """ - return self._check_expression - - @check_expression.setter - def check_expression(self, check_expression): - """Sets the check_expression of this ColumnDto. - - - :param check_expression: The check_expression of this ColumnDto. # noqa: E501 - :type: str - """ - - self._check_expression = check_expression - - @property - def foreign_key(self): - """Gets the foreign_key of this ColumnDto. # noqa: E501 - - - :return: The foreign_key of this ColumnDto. # noqa: E501 - :rtype: str - """ - return self._foreign_key - - @foreign_key.setter - def foreign_key(self, foreign_key): - """Sets the foreign_key of this ColumnDto. - - - :param foreign_key: The foreign_key of this ColumnDto. # noqa: E501 - :type: str - """ - - self._foreign_key = foreign_key - - @property - def enum_values(self): - """Gets the enum_values of this ColumnDto. # noqa: E501 - - - :return: The enum_values of this ColumnDto. # noqa: E501 - :rtype: list[str] - """ - return self._enum_values - - @enum_values.setter - def enum_values(self, enum_values): - """Sets the enum_values of this ColumnDto. - - - :param enum_values: The enum_values of this ColumnDto. # noqa: E501 - :type: list[str] - """ - - self._enum_values = enum_values - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(ColumnDto, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, ColumnDto): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/swagger/api-authentication/swagger_client/models/concept_dto.py b/swagger/api-authentication/swagger_client/models/concept_dto.py deleted file mode 100644 index 3bc88694251fce5435205b067e18ce4e26c9b566..0000000000000000000000000000000000000000 --- a/swagger/api-authentication/swagger_client/models/concept_dto.py +++ /dev/null @@ -1,165 +0,0 @@ -# coding: utf-8 - -""" - Database Repository Authentication Service API - - Service that manages the authentication # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -import pprint -import re # noqa: F401 - -import six - -class ConceptDto(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'uri': 'str', - 'name': 'str', - 'created': 'datetime' - } - - attribute_map = { - 'uri': 'uri', - 'name': 'name', - 'created': 'created' - } - - def __init__(self, uri=None, name=None, created=None): # noqa: E501 - """ConceptDto - a model defined in Swagger""" # noqa: E501 - self._uri = None - self._name = None - self._created = None - self.discriminator = None - self.uri = uri - self.name = name - self.created = created - - @property - def uri(self): - """Gets the uri of this ConceptDto. # noqa: E501 - - - :return: The uri of this ConceptDto. # noqa: E501 - :rtype: str - """ - return self._uri - - @uri.setter - def uri(self, uri): - """Sets the uri of this ConceptDto. - - - :param uri: The uri of this ConceptDto. # noqa: E501 - :type: str - """ - if uri is None: - raise ValueError("Invalid value for `uri`, must not be `None`") # noqa: E501 - - self._uri = uri - - @property - def name(self): - """Gets the name of this ConceptDto. # noqa: E501 - - - :return: The name of this ConceptDto. # noqa: E501 - :rtype: str - """ - return self._name - - @name.setter - def name(self, name): - """Sets the name of this ConceptDto. - - - :param name: The name of this ConceptDto. # noqa: E501 - :type: str - """ - if name is None: - raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501 - - self._name = name - - @property - def created(self): - """Gets the created of this ConceptDto. # noqa: E501 - - - :return: The created of this ConceptDto. # noqa: E501 - :rtype: datetime - """ - return self._created - - @created.setter - def created(self, created): - """Sets the created of this ConceptDto. - - - :param created: The created of this ConceptDto. # noqa: E501 - :type: datetime - """ - if created is None: - raise ValueError("Invalid value for `created`, must not be `None`") # noqa: E501 - - self._created = created - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(ConceptDto, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, ConceptDto): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/swagger/api-authentication/swagger_client/models/container_dto.py b/swagger/api-authentication/swagger_client/models/container_dto.py deleted file mode 100644 index 2ee63baa6c5eb205fd79c108439fdf048c487371..0000000000000000000000000000000000000000 --- a/swagger/api-authentication/swagger_client/models/container_dto.py +++ /dev/null @@ -1,355 +0,0 @@ -# coding: utf-8 - -""" - Database Repository Authentication Service API - - Service that manages the authentication # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -import pprint -import re # noqa: F401 - -import six - -class ContainerDto(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'id': 'int', - 'hash': 'str', - 'name': 'str', - 'state': 'str', - 'databases': 'list[DatabaseDto]', - 'image': 'ImageBriefDto', - 'port': 'int', - 'created': 'datetime', - 'internal_name': 'str', - 'ip_address': 'str' - } - - attribute_map = { - 'id': 'id', - 'hash': 'hash', - 'name': 'name', - 'state': 'state', - 'databases': 'databases', - 'image': 'image', - 'port': 'port', - 'created': 'created', - 'internal_name': 'internal_name', - 'ip_address': 'ip_address' - } - - def __init__(self, id=None, hash=None, name=None, state=None, databases=None, image=None, port=None, created=None, internal_name=None, ip_address=None): # noqa: E501 - """ContainerDto - a model defined in Swagger""" # noqa: E501 - self._id = None - self._hash = None - self._name = None - self._state = None - self._databases = None - self._image = None - self._port = None - self._created = None - self._internal_name = None - self._ip_address = None - self.discriminator = None - self.id = id - self.hash = hash - self.name = name - if state is not None: - self.state = state - if databases is not None: - self.databases = databases - if image is not None: - self.image = image - if port is not None: - self.port = port - self.created = created - self.internal_name = internal_name - if ip_address is not None: - self.ip_address = ip_address - - @property - def id(self): - """Gets the id of this ContainerDto. # noqa: E501 - - - :return: The id of this ContainerDto. # noqa: E501 - :rtype: int - """ - return self._id - - @id.setter - def id(self, id): - """Sets the id of this ContainerDto. - - - :param id: The id of this ContainerDto. # noqa: E501 - :type: int - """ - if id is None: - raise ValueError("Invalid value for `id`, must not be `None`") # noqa: E501 - - self._id = id - - @property - def hash(self): - """Gets the hash of this ContainerDto. # noqa: E501 - - - :return: The hash of this ContainerDto. # noqa: E501 - :rtype: str - """ - return self._hash - - @hash.setter - def hash(self, hash): - """Sets the hash of this ContainerDto. - - - :param hash: The hash of this ContainerDto. # noqa: E501 - :type: str - """ - if hash is None: - raise ValueError("Invalid value for `hash`, must not be `None`") # noqa: E501 - - self._hash = hash - - @property - def name(self): - """Gets the name of this ContainerDto. # noqa: E501 - - - :return: The name of this ContainerDto. # noqa: E501 - :rtype: str - """ - return self._name - - @name.setter - def name(self, name): - """Sets the name of this ContainerDto. - - - :param name: The name of this ContainerDto. # noqa: E501 - :type: str - """ - if name is None: - raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501 - - self._name = name - - @property - def state(self): - """Gets the state of this ContainerDto. # noqa: E501 - - - :return: The state of this ContainerDto. # noqa: E501 - :rtype: str - """ - return self._state - - @state.setter - def state(self, state): - """Sets the state of this ContainerDto. - - - :param state: The state of this ContainerDto. # noqa: E501 - :type: str - """ - allowed_values = ["created", "restarting", "running", "paused", "exited", "dead"] # noqa: E501 - if state not in allowed_values: - raise ValueError( - "Invalid value for `state` ({0}), must be one of {1}" # noqa: E501 - .format(state, allowed_values) - ) - - self._state = state - - @property - def databases(self): - """Gets the databases of this ContainerDto. # noqa: E501 - - - :return: The databases of this ContainerDto. # noqa: E501 - :rtype: list[DatabaseDto] - """ - return self._databases - - @databases.setter - def databases(self, databases): - """Sets the databases of this ContainerDto. - - - :param databases: The databases of this ContainerDto. # noqa: E501 - :type: list[DatabaseDto] - """ - - self._databases = databases - - @property - def image(self): - """Gets the image of this ContainerDto. # noqa: E501 - - - :return: The image of this ContainerDto. # noqa: E501 - :rtype: ImageBriefDto - """ - return self._image - - @image.setter - def image(self, image): - """Sets the image of this ContainerDto. - - - :param image: The image of this ContainerDto. # noqa: E501 - :type: ImageBriefDto - """ - - self._image = image - - @property - def port(self): - """Gets the port of this ContainerDto. # noqa: E501 - - - :return: The port of this ContainerDto. # noqa: E501 - :rtype: int - """ - return self._port - - @port.setter - def port(self, port): - """Sets the port of this ContainerDto. - - - :param port: The port of this ContainerDto. # noqa: E501 - :type: int - """ - - self._port = port - - @property - def created(self): - """Gets the created of this ContainerDto. # noqa: E501 - - - :return: The created of this ContainerDto. # noqa: E501 - :rtype: datetime - """ - return self._created - - @created.setter - def created(self, created): - """Sets the created of this ContainerDto. - - - :param created: The created of this ContainerDto. # noqa: E501 - :type: datetime - """ - if created is None: - raise ValueError("Invalid value for `created`, must not be `None`") # noqa: E501 - - self._created = created - - @property - def internal_name(self): - """Gets the internal_name of this ContainerDto. # noqa: E501 - - - :return: The internal_name of this ContainerDto. # noqa: E501 - :rtype: str - """ - return self._internal_name - - @internal_name.setter - def internal_name(self, internal_name): - """Sets the internal_name of this ContainerDto. - - - :param internal_name: The internal_name of this ContainerDto. # noqa: E501 - :type: str - """ - if internal_name is None: - raise ValueError("Invalid value for `internal_name`, must not be `None`") # noqa: E501 - - self._internal_name = internal_name - - @property - def ip_address(self): - """Gets the ip_address of this ContainerDto. # noqa: E501 - - - :return: The ip_address of this ContainerDto. # noqa: E501 - :rtype: str - """ - return self._ip_address - - @ip_address.setter - def ip_address(self, ip_address): - """Sets the ip_address of this ContainerDto. - - - :param ip_address: The ip_address of this ContainerDto. # noqa: E501 - :type: str - """ - - self._ip_address = ip_address - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(ContainerDto, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, ContainerDto): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/swagger/api-authentication/swagger_client/models/database_dto.py b/swagger/api-authentication/swagger_client/models/database_dto.py deleted file mode 100644 index a9a30f5c7c80da0d264b90f5173837c43ce00e77..0000000000000000000000000000000000000000 --- a/swagger/api-authentication/swagger_client/models/database_dto.py +++ /dev/null @@ -1,625 +0,0 @@ -# coding: utf-8 - -""" - Database Repository Authentication Service API - - Service that manages the authentication # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -import pprint -import re # noqa: F401 - -import six - -class DatabaseDto(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'id': 'int', - 'name': 'str', - 'exchange': 'str', - 'creator': 'UserBriefDto', - 'subjects': 'list[str]', - 'language': 'str', - 'license': 'LicenseDto', - 'description': 'str', - 'publisher': 'str', - 'contact': 'UserDto', - 'tables': 'list[TableBriefDto]', - 'image': 'ImageDto', - 'container': 'ContainerDto', - 'created': 'datetime', - 'deleted': 'datetime', - 'internal_name': 'str', - 'publication_year': 'int', - 'publication_month': 'int', - 'publication_day': 'int', - 'is_public': 'bool' - } - - attribute_map = { - 'id': 'id', - 'name': 'name', - 'exchange': 'exchange', - 'creator': 'creator', - 'subjects': 'subjects', - 'language': 'language', - 'license': 'license', - 'description': 'description', - 'publisher': 'publisher', - 'contact': 'contact', - 'tables': 'tables', - 'image': 'image', - 'container': 'container', - 'created': 'created', - 'deleted': 'deleted', - 'internal_name': 'internal_name', - 'publication_year': 'publication_year', - 'publication_month': 'publication_month', - 'publication_day': 'publication_day', - 'is_public': 'is_public' - } - - def __init__(self, id=None, name=None, exchange=None, creator=None, subjects=None, language=None, license=None, description=None, publisher=None, contact=None, tables=None, image=None, container=None, created=None, deleted=None, internal_name=None, publication_year=None, publication_month=None, publication_day=None, is_public=None): # noqa: E501 - """DatabaseDto - a model defined in Swagger""" # noqa: E501 - self._id = None - self._name = None - self._exchange = None - self._creator = None - self._subjects = None - self._language = None - self._license = None - self._description = None - self._publisher = None - self._contact = None - self._tables = None - self._image = None - self._container = None - self._created = None - self._deleted = None - self._internal_name = None - self._publication_year = None - self._publication_month = None - self._publication_day = None - self._is_public = None - self.discriminator = None - self.id = id - self.name = name - self.exchange = exchange - self.creator = creator - if subjects is not None: - self.subjects = subjects - if language is not None: - self.language = language - if license is not None: - self.license = license - if description is not None: - self.description = description - if publisher is not None: - self.publisher = publisher - if contact is not None: - self.contact = contact - if tables is not None: - self.tables = tables - if image is not None: - self.image = image - if container is not None: - self.container = container - if created is not None: - self.created = created - if deleted is not None: - self.deleted = deleted - self.internal_name = internal_name - if publication_year is not None: - self.publication_year = publication_year - if publication_month is not None: - self.publication_month = publication_month - if publication_day is not None: - self.publication_day = publication_day - if is_public is not None: - self.is_public = is_public - - @property - def id(self): - """Gets the id of this DatabaseDto. # noqa: E501 - - - :return: The id of this DatabaseDto. # noqa: E501 - :rtype: int - """ - return self._id - - @id.setter - def id(self, id): - """Sets the id of this DatabaseDto. - - - :param id: The id of this DatabaseDto. # noqa: E501 - :type: int - """ - if id is None: - raise ValueError("Invalid value for `id`, must not be `None`") # noqa: E501 - - self._id = id - - @property - def name(self): - """Gets the name of this DatabaseDto. # noqa: E501 - - - :return: The name of this DatabaseDto. # noqa: E501 - :rtype: str - """ - return self._name - - @name.setter - def name(self, name): - """Sets the name of this DatabaseDto. - - - :param name: The name of this DatabaseDto. # noqa: E501 - :type: str - """ - if name is None: - raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501 - - self._name = name - - @property - def exchange(self): - """Gets the exchange of this DatabaseDto. # noqa: E501 - - - :return: The exchange of this DatabaseDto. # noqa: E501 - :rtype: str - """ - return self._exchange - - @exchange.setter - def exchange(self, exchange): - """Sets the exchange of this DatabaseDto. - - - :param exchange: The exchange of this DatabaseDto. # noqa: E501 - :type: str - """ - if exchange is None: - raise ValueError("Invalid value for `exchange`, must not be `None`") # noqa: E501 - - self._exchange = exchange - - @property - def creator(self): - """Gets the creator of this DatabaseDto. # noqa: E501 - - - :return: The creator of this DatabaseDto. # noqa: E501 - :rtype: UserBriefDto - """ - return self._creator - - @creator.setter - def creator(self, creator): - """Sets the creator of this DatabaseDto. - - - :param creator: The creator of this DatabaseDto. # noqa: E501 - :type: UserBriefDto - """ - if creator is None: - raise ValueError("Invalid value for `creator`, must not be `None`") # noqa: E501 - - self._creator = creator - - @property - def subjects(self): - """Gets the subjects of this DatabaseDto. # noqa: E501 - - database subjects # noqa: E501 - - :return: The subjects of this DatabaseDto. # noqa: E501 - :rtype: list[str] - """ - return self._subjects - - @subjects.setter - def subjects(self, subjects): - """Sets the subjects of this DatabaseDto. - - database subjects # noqa: E501 - - :param subjects: The subjects of this DatabaseDto. # noqa: E501 - :type: list[str] - """ - - self._subjects = subjects - - @property - def language(self): - """Gets the language of this DatabaseDto. # noqa: E501 - - - :return: The language of this DatabaseDto. # noqa: E501 - :rtype: str - """ - return self._language - - @language.setter - def language(self, language): - """Sets the language of this DatabaseDto. - - - :param language: The language of this DatabaseDto. # noqa: E501 - :type: str - """ - allowed_values = ["ab", "aa", "af", "ak", "sq", "am", "ar", "an", "hy", "as", "av", "ae", "ay", "az", "bm", "ba", "eu", "be", "bn", "bh", "bi", "bs", "br", "bg", "my", "ca", "km", "ch", "ce", "ny", "zh", "cu", "cv", "kw", "co", "cr", "hr", "cs", "da", "dv", "nl", "dz", "en", "eo", "et", "ee", "fo", "fj", "fi", "fr", "ff", "gd", "gl", "lg", "ka", "de", "ki", "el", "kl", "gn", "gu", "ht", "ha", "he", "hz", "hi", "ho", "hu", "is", "io", "ig", "id", "ia", "ie", "iu", "ik", "ga", "it", "ja", "jv", "kn", "kr", "ks", "kk", "rw", "kv", "kg", "ko", "kj", "ku", "ky", "lo", "la", "lv", "lb", "li", "ln", "lt", "lu", "mk", "mg", "ms", "ml", "mt", "gv", "mi", "mr", "mh", "ro", "mn", "na", "nv", "nd", "ng", "ne", "se", "no", "nb", "nn", "ii", "oc", "oj", "or", "om", "os", "pi", "pa", "ps", "fa", "pl", "pt", "qu", "rm", "rn", "ru", "sm", "sg", "sa", "sc", "sr", "sn", "sd", "si", "sk", "sl", "so", "st", "nr", "es", "su", "sw", "ss", "sv", "tl", "ty", "tg", "ta", "tt", "te", "th", "bo", "ti", "to", "ts", "tn", "tr", "tk", "tw", "ug", "uk", "ur", "uz", "ve", "vi", "vo", "wa", "cy", "fy", "wo", "xh", "yi", "yo", "za", "zu"] # noqa: E501 - if language not in allowed_values: - raise ValueError( - "Invalid value for `language` ({0}), must be one of {1}" # noqa: E501 - .format(language, allowed_values) - ) - - self._language = language - - @property - def license(self): - """Gets the license of this DatabaseDto. # noqa: E501 - - - :return: The license of this DatabaseDto. # noqa: E501 - :rtype: LicenseDto - """ - return self._license - - @license.setter - def license(self, license): - """Sets the license of this DatabaseDto. - - - :param license: The license of this DatabaseDto. # noqa: E501 - :type: LicenseDto - """ - - self._license = license - - @property - def description(self): - """Gets the description of this DatabaseDto. # noqa: E501 - - - :return: The description of this DatabaseDto. # noqa: E501 - :rtype: str - """ - return self._description - - @description.setter - def description(self, description): - """Sets the description of this DatabaseDto. - - - :param description: The description of this DatabaseDto. # noqa: E501 - :type: str - """ - - self._description = description - - @property - def publisher(self): - """Gets the publisher of this DatabaseDto. # noqa: E501 - - - :return: The publisher of this DatabaseDto. # noqa: E501 - :rtype: str - """ - return self._publisher - - @publisher.setter - def publisher(self, publisher): - """Sets the publisher of this DatabaseDto. - - - :param publisher: The publisher of this DatabaseDto. # noqa: E501 - :type: str - """ - - self._publisher = publisher - - @property - def contact(self): - """Gets the contact of this DatabaseDto. # noqa: E501 - - - :return: The contact of this DatabaseDto. # noqa: E501 - :rtype: UserDto - """ - return self._contact - - @contact.setter - def contact(self, contact): - """Sets the contact of this DatabaseDto. - - - :param contact: The contact of this DatabaseDto. # noqa: E501 - :type: UserDto - """ - - self._contact = contact - - @property - def tables(self): - """Gets the tables of this DatabaseDto. # noqa: E501 - - - :return: The tables of this DatabaseDto. # noqa: E501 - :rtype: list[TableBriefDto] - """ - return self._tables - - @tables.setter - def tables(self, tables): - """Sets the tables of this DatabaseDto. - - - :param tables: The tables of this DatabaseDto. # noqa: E501 - :type: list[TableBriefDto] - """ - - self._tables = tables - - @property - def image(self): - """Gets the image of this DatabaseDto. # noqa: E501 - - - :return: The image of this DatabaseDto. # noqa: E501 - :rtype: ImageDto - """ - return self._image - - @image.setter - def image(self, image): - """Sets the image of this DatabaseDto. - - - :param image: The image of this DatabaseDto. # noqa: E501 - :type: ImageDto - """ - - self._image = image - - @property - def container(self): - """Gets the container of this DatabaseDto. # noqa: E501 - - - :return: The container of this DatabaseDto. # noqa: E501 - :rtype: ContainerDto - """ - return self._container - - @container.setter - def container(self, container): - """Sets the container of this DatabaseDto. - - - :param container: The container of this DatabaseDto. # noqa: E501 - :type: ContainerDto - """ - - self._container = container - - @property - def created(self): - """Gets the created of this DatabaseDto. # noqa: E501 - - - :return: The created of this DatabaseDto. # noqa: E501 - :rtype: datetime - """ - return self._created - - @created.setter - def created(self, created): - """Sets the created of this DatabaseDto. - - - :param created: The created of this DatabaseDto. # noqa: E501 - :type: datetime - """ - - self._created = created - - @property - def deleted(self): - """Gets the deleted of this DatabaseDto. # noqa: E501 - - - :return: The deleted of this DatabaseDto. # noqa: E501 - :rtype: datetime - """ - return self._deleted - - @deleted.setter - def deleted(self, deleted): - """Sets the deleted of this DatabaseDto. - - - :param deleted: The deleted of this DatabaseDto. # noqa: E501 - :type: datetime - """ - - self._deleted = deleted - - @property - def internal_name(self): - """Gets the internal_name of this DatabaseDto. # noqa: E501 - - - :return: The internal_name of this DatabaseDto. # noqa: E501 - :rtype: str - """ - return self._internal_name - - @internal_name.setter - def internal_name(self, internal_name): - """Sets the internal_name of this DatabaseDto. - - - :param internal_name: The internal_name of this DatabaseDto. # noqa: E501 - :type: str - """ - if internal_name is None: - raise ValueError("Invalid value for `internal_name`, must not be `None`") # noqa: E501 - - self._internal_name = internal_name - - @property - def publication_year(self): - """Gets the publication_year of this DatabaseDto. # noqa: E501 - - database publication year # noqa: E501 - - :return: The publication_year of this DatabaseDto. # noqa: E501 - :rtype: int - """ - return self._publication_year - - @publication_year.setter - def publication_year(self, publication_year): - """Sets the publication_year of this DatabaseDto. - - database publication year # noqa: E501 - - :param publication_year: The publication_year of this DatabaseDto. # noqa: E501 - :type: int - """ - - self._publication_year = publication_year - - @property - def publication_month(self): - """Gets the publication_month of this DatabaseDto. # noqa: E501 - - database publication month # noqa: E501 - - :return: The publication_month of this DatabaseDto. # noqa: E501 - :rtype: int - """ - return self._publication_month - - @publication_month.setter - def publication_month(self, publication_month): - """Sets the publication_month of this DatabaseDto. - - database publication month # noqa: E501 - - :param publication_month: The publication_month of this DatabaseDto. # noqa: E501 - :type: int - """ - - self._publication_month = publication_month - - @property - def publication_day(self): - """Gets the publication_day of this DatabaseDto. # noqa: E501 - - database publication day # noqa: E501 - - :return: The publication_day of this DatabaseDto. # noqa: E501 - :rtype: int - """ - return self._publication_day - - @publication_day.setter - def publication_day(self, publication_day): - """Sets the publication_day of this DatabaseDto. - - database publication day # noqa: E501 - - :param publication_day: The publication_day of this DatabaseDto. # noqa: E501 - :type: int - """ - - self._publication_day = publication_day - - @property - def is_public(self): - """Gets the is_public of this DatabaseDto. # noqa: E501 - - database publicity # noqa: E501 - - :return: The is_public of this DatabaseDto. # noqa: E501 - :rtype: bool - """ - return self._is_public - - @is_public.setter - def is_public(self, is_public): - """Sets the is_public of this DatabaseDto. - - database publicity # noqa: E501 - - :param is_public: The is_public of this DatabaseDto. # noqa: E501 - :type: bool - """ - - self._is_public = is_public - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(DatabaseDto, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, DatabaseDto): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/swagger/api-authentication/swagger_client/models/granted_authority_dto.py b/swagger/api-authentication/swagger_client/models/granted_authority_dto.py deleted file mode 100644 index 27fb59540a7ea4ac0bd308116678bf19638a94f1..0000000000000000000000000000000000000000 --- a/swagger/api-authentication/swagger_client/models/granted_authority_dto.py +++ /dev/null @@ -1,110 +0,0 @@ -# coding: utf-8 - -""" - Database Repository Authentication Service API - - Service that manages the authentication # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -import pprint -import re # noqa: F401 - -import six - -class GrantedAuthorityDto(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'authority': 'str' - } - - attribute_map = { - 'authority': 'authority' - } - - def __init__(self, authority=None): # noqa: E501 - """GrantedAuthorityDto - a model defined in Swagger""" # noqa: E501 - self._authority = None - self.discriminator = None - if authority is not None: - self.authority = authority - - @property - def authority(self): - """Gets the authority of this GrantedAuthorityDto. # noqa: E501 - - - :return: The authority of this GrantedAuthorityDto. # noqa: E501 - :rtype: str - """ - return self._authority - - @authority.setter - def authority(self, authority): - """Sets the authority of this GrantedAuthorityDto. - - - :param authority: The authority of this GrantedAuthorityDto. # noqa: E501 - :type: str - """ - - self._authority = authority - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(GrantedAuthorityDto, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, GrantedAuthorityDto): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/swagger/api-authentication/swagger_client/models/image_brief_dto.py b/swagger/api-authentication/swagger_client/models/image_brief_dto.py deleted file mode 100644 index 3e8c04a8f94e0f9cd7d77ac343616e335116850a..0000000000000000000000000000000000000000 --- a/swagger/api-authentication/swagger_client/models/image_brief_dto.py +++ /dev/null @@ -1,165 +0,0 @@ -# coding: utf-8 - -""" - Database Repository Authentication Service API - - Service that manages the authentication # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -import pprint -import re # noqa: F401 - -import six - -class ImageBriefDto(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'id': 'int', - 'repository': 'str', - 'tag': 'str' - } - - attribute_map = { - 'id': 'id', - 'repository': 'repository', - 'tag': 'tag' - } - - def __init__(self, id=None, repository=None, tag=None): # noqa: E501 - """ImageBriefDto - a model defined in Swagger""" # noqa: E501 - self._id = None - self._repository = None - self._tag = None - self.discriminator = None - self.id = id - self.repository = repository - self.tag = tag - - @property - def id(self): - """Gets the id of this ImageBriefDto. # noqa: E501 - - - :return: The id of this ImageBriefDto. # noqa: E501 - :rtype: int - """ - return self._id - - @id.setter - def id(self, id): - """Sets the id of this ImageBriefDto. - - - :param id: The id of this ImageBriefDto. # noqa: E501 - :type: int - """ - if id is None: - raise ValueError("Invalid value for `id`, must not be `None`") # noqa: E501 - - self._id = id - - @property - def repository(self): - """Gets the repository of this ImageBriefDto. # noqa: E501 - - - :return: The repository of this ImageBriefDto. # noqa: E501 - :rtype: str - """ - return self._repository - - @repository.setter - def repository(self, repository): - """Sets the repository of this ImageBriefDto. - - - :param repository: The repository of this ImageBriefDto. # noqa: E501 - :type: str - """ - if repository is None: - raise ValueError("Invalid value for `repository`, must not be `None`") # noqa: E501 - - self._repository = repository - - @property - def tag(self): - """Gets the tag of this ImageBriefDto. # noqa: E501 - - - :return: The tag of this ImageBriefDto. # noqa: E501 - :rtype: str - """ - return self._tag - - @tag.setter - def tag(self, tag): - """Sets the tag of this ImageBriefDto. - - - :param tag: The tag of this ImageBriefDto. # noqa: E501 - :type: str - """ - if tag is None: - raise ValueError("Invalid value for `tag`, must not be `None`") # noqa: E501 - - self._tag = tag - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(ImageBriefDto, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, ImageBriefDto): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/swagger/api-authentication/swagger_client/models/image_date_dto.py b/swagger/api-authentication/swagger_client/models/image_date_dto.py deleted file mode 100644 index b8f379e2acac1198492fcad960a9961f27566b04..0000000000000000000000000000000000000000 --- a/swagger/api-authentication/swagger_client/models/image_date_dto.py +++ /dev/null @@ -1,245 +0,0 @@ -# coding: utf-8 - -""" - Database Repository Authentication Service API - - Service that manages the authentication # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -import pprint -import re # noqa: F401 - -import six - -class ImageDateDto(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'id': 'int', - 'example': 'str', - 'database_format': 'str', - 'unix_format': 'str', - 'has_time': 'bool', - 'created_at': 'datetime' - } - - attribute_map = { - 'id': 'id', - 'example': 'example', - 'database_format': 'database_format', - 'unix_format': 'unix_format', - 'has_time': 'has_time', - 'created_at': 'created_at' - } - - def __init__(self, id=None, example=None, database_format=None, unix_format=None, has_time=None, created_at=None): # noqa: E501 - """ImageDateDto - a model defined in Swagger""" # noqa: E501 - self._id = None - self._example = None - self._database_format = None - self._unix_format = None - self._has_time = None - self._created_at = None - self.discriminator = None - self.id = id - self.example = example - self.database_format = database_format - self.unix_format = unix_format - self.has_time = has_time - if created_at is not None: - self.created_at = created_at - - @property - def id(self): - """Gets the id of this ImageDateDto. # noqa: E501 - - - :return: The id of this ImageDateDto. # noqa: E501 - :rtype: int - """ - return self._id - - @id.setter - def id(self, id): - """Sets the id of this ImageDateDto. - - - :param id: The id of this ImageDateDto. # noqa: E501 - :type: int - """ - if id is None: - raise ValueError("Invalid value for `id`, must not be `None`") # noqa: E501 - - self._id = id - - @property - def example(self): - """Gets the example of this ImageDateDto. # noqa: E501 - - - :return: The example of this ImageDateDto. # noqa: E501 - :rtype: str - """ - return self._example - - @example.setter - def example(self, example): - """Sets the example of this ImageDateDto. - - - :param example: The example of this ImageDateDto. # noqa: E501 - :type: str - """ - if example is None: - raise ValueError("Invalid value for `example`, must not be `None`") # noqa: E501 - - self._example = example - - @property - def database_format(self): - """Gets the database_format of this ImageDateDto. # noqa: E501 - - - :return: The database_format of this ImageDateDto. # noqa: E501 - :rtype: str - """ - return self._database_format - - @database_format.setter - def database_format(self, database_format): - """Sets the database_format of this ImageDateDto. - - - :param database_format: The database_format of this ImageDateDto. # noqa: E501 - :type: str - """ - if database_format is None: - raise ValueError("Invalid value for `database_format`, must not be `None`") # noqa: E501 - - self._database_format = database_format - - @property - def unix_format(self): - """Gets the unix_format of this ImageDateDto. # noqa: E501 - - - :return: The unix_format of this ImageDateDto. # noqa: E501 - :rtype: str - """ - return self._unix_format - - @unix_format.setter - def unix_format(self, unix_format): - """Sets the unix_format of this ImageDateDto. - - - :param unix_format: The unix_format of this ImageDateDto. # noqa: E501 - :type: str - """ - if unix_format is None: - raise ValueError("Invalid value for `unix_format`, must not be `None`") # noqa: E501 - - self._unix_format = unix_format - - @property - def has_time(self): - """Gets the has_time of this ImageDateDto. # noqa: E501 - - - :return: The has_time of this ImageDateDto. # noqa: E501 - :rtype: bool - """ - return self._has_time - - @has_time.setter - def has_time(self, has_time): - """Sets the has_time of this ImageDateDto. - - - :param has_time: The has_time of this ImageDateDto. # noqa: E501 - :type: bool - """ - if has_time is None: - raise ValueError("Invalid value for `has_time`, must not be `None`") # noqa: E501 - - self._has_time = has_time - - @property - def created_at(self): - """Gets the created_at of this ImageDateDto. # noqa: E501 - - - :return: The created_at of this ImageDateDto. # noqa: E501 - :rtype: datetime - """ - return self._created_at - - @created_at.setter - def created_at(self, created_at): - """Sets the created_at of this ImageDateDto. - - - :param created_at: The created_at of this ImageDateDto. # noqa: E501 - :type: datetime - """ - - self._created_at = created_at - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(ImageDateDto, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, ImageDateDto): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/swagger/api-authentication/swagger_client/models/image_dto.py b/swagger/api-authentication/swagger_client/models/image_dto.py deleted file mode 100644 index 25e5ad1ebce7468da464c057dd93a4de391042bf..0000000000000000000000000000000000000000 --- a/swagger/api-authentication/swagger_client/models/image_dto.py +++ /dev/null @@ -1,404 +0,0 @@ -# coding: utf-8 - -""" - Database Repository Authentication Service API - - Service that manages the authentication # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -import pprint -import re # noqa: F401 - -import six - -class ImageDto(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'id': 'int', - 'repository': 'str', - 'tag': 'str', - 'dialect': 'str', - 'hash': 'str', - 'compiled': 'datetime', - 'size': 'int', - 'environment': 'list[ImageEnvItemDto]', - 'driver_class': 'str', - 'date_formats': 'list[ImageDateDto]', - 'jdbc_method': 'str', - 'default_port': 'int' - } - - attribute_map = { - 'id': 'id', - 'repository': 'repository', - 'tag': 'tag', - 'dialect': 'dialect', - 'hash': 'hash', - 'compiled': 'compiled', - 'size': 'size', - 'environment': 'environment', - 'driver_class': 'driver_class', - 'date_formats': 'date_formats', - 'jdbc_method': 'jdbc_method', - 'default_port': 'default_port' - } - - def __init__(self, id=None, repository=None, tag=None, dialect=None, hash=None, compiled=None, size=None, environment=None, driver_class=None, date_formats=None, jdbc_method=None, default_port=None): # noqa: E501 - """ImageDto - a model defined in Swagger""" # noqa: E501 - self._id = None - self._repository = None - self._tag = None - self._dialect = None - self._hash = None - self._compiled = None - self._size = None - self._environment = None - self._driver_class = None - self._date_formats = None - self._jdbc_method = None - self._default_port = None - self.discriminator = None - self.id = id - self.repository = repository - self.tag = tag - self.dialect = dialect - if hash is not None: - self.hash = hash - if compiled is not None: - self.compiled = compiled - if size is not None: - self.size = size - self.environment = environment - self.driver_class = driver_class - if date_formats is not None: - self.date_formats = date_formats - self.jdbc_method = jdbc_method - self.default_port = default_port - - @property - def id(self): - """Gets the id of this ImageDto. # noqa: E501 - - - :return: The id of this ImageDto. # noqa: E501 - :rtype: int - """ - return self._id - - @id.setter - def id(self, id): - """Sets the id of this ImageDto. - - - :param id: The id of this ImageDto. # noqa: E501 - :type: int - """ - if id is None: - raise ValueError("Invalid value for `id`, must not be `None`") # noqa: E501 - - self._id = id - - @property - def repository(self): - """Gets the repository of this ImageDto. # noqa: E501 - - - :return: The repository of this ImageDto. # noqa: E501 - :rtype: str - """ - return self._repository - - @repository.setter - def repository(self, repository): - """Sets the repository of this ImageDto. - - - :param repository: The repository of this ImageDto. # noqa: E501 - :type: str - """ - if repository is None: - raise ValueError("Invalid value for `repository`, must not be `None`") # noqa: E501 - - self._repository = repository - - @property - def tag(self): - """Gets the tag of this ImageDto. # noqa: E501 - - - :return: The tag of this ImageDto. # noqa: E501 - :rtype: str - """ - return self._tag - - @tag.setter - def tag(self, tag): - """Sets the tag of this ImageDto. - - - :param tag: The tag of this ImageDto. # noqa: E501 - :type: str - """ - if tag is None: - raise ValueError("Invalid value for `tag`, must not be `None`") # noqa: E501 - - self._tag = tag - - @property - def dialect(self): - """Gets the dialect of this ImageDto. # noqa: E501 - - - :return: The dialect of this ImageDto. # noqa: E501 - :rtype: str - """ - return self._dialect - - @dialect.setter - def dialect(self, dialect): - """Sets the dialect of this ImageDto. - - - :param dialect: The dialect of this ImageDto. # noqa: E501 - :type: str - """ - if dialect is None: - raise ValueError("Invalid value for `dialect`, must not be `None`") # noqa: E501 - - self._dialect = dialect - - @property - def hash(self): - """Gets the hash of this ImageDto. # noqa: E501 - - - :return: The hash of this ImageDto. # noqa: E501 - :rtype: str - """ - return self._hash - - @hash.setter - def hash(self, hash): - """Sets the hash of this ImageDto. - - - :param hash: The hash of this ImageDto. # noqa: E501 - :type: str - """ - - self._hash = hash - - @property - def compiled(self): - """Gets the compiled of this ImageDto. # noqa: E501 - - - :return: The compiled of this ImageDto. # noqa: E501 - :rtype: datetime - """ - return self._compiled - - @compiled.setter - def compiled(self, compiled): - """Sets the compiled of this ImageDto. - - - :param compiled: The compiled of this ImageDto. # noqa: E501 - :type: datetime - """ - - self._compiled = compiled - - @property - def size(self): - """Gets the size of this ImageDto. # noqa: E501 - - - :return: The size of this ImageDto. # noqa: E501 - :rtype: int - """ - return self._size - - @size.setter - def size(self, size): - """Sets the size of this ImageDto. - - - :param size: The size of this ImageDto. # noqa: E501 - :type: int - """ - - self._size = size - - @property - def environment(self): - """Gets the environment of this ImageDto. # noqa: E501 - - - :return: The environment of this ImageDto. # noqa: E501 - :rtype: list[ImageEnvItemDto] - """ - return self._environment - - @environment.setter - def environment(self, environment): - """Sets the environment of this ImageDto. - - - :param environment: The environment of this ImageDto. # noqa: E501 - :type: list[ImageEnvItemDto] - """ - if environment is None: - raise ValueError("Invalid value for `environment`, must not be `None`") # noqa: E501 - - self._environment = environment - - @property - def driver_class(self): - """Gets the driver_class of this ImageDto. # noqa: E501 - - - :return: The driver_class of this ImageDto. # noqa: E501 - :rtype: str - """ - return self._driver_class - - @driver_class.setter - def driver_class(self, driver_class): - """Sets the driver_class of this ImageDto. - - - :param driver_class: The driver_class of this ImageDto. # noqa: E501 - :type: str - """ - if driver_class is None: - raise ValueError("Invalid value for `driver_class`, must not be `None`") # noqa: E501 - - self._driver_class = driver_class - - @property - def date_formats(self): - """Gets the date_formats of this ImageDto. # noqa: E501 - - - :return: The date_formats of this ImageDto. # noqa: E501 - :rtype: list[ImageDateDto] - """ - return self._date_formats - - @date_formats.setter - def date_formats(self, date_formats): - """Sets the date_formats of this ImageDto. - - - :param date_formats: The date_formats of this ImageDto. # noqa: E501 - :type: list[ImageDateDto] - """ - - self._date_formats = date_formats - - @property - def jdbc_method(self): - """Gets the jdbc_method of this ImageDto. # noqa: E501 - - - :return: The jdbc_method of this ImageDto. # noqa: E501 - :rtype: str - """ - return self._jdbc_method - - @jdbc_method.setter - def jdbc_method(self, jdbc_method): - """Sets the jdbc_method of this ImageDto. - - - :param jdbc_method: The jdbc_method of this ImageDto. # noqa: E501 - :type: str - """ - if jdbc_method is None: - raise ValueError("Invalid value for `jdbc_method`, must not be `None`") # noqa: E501 - - self._jdbc_method = jdbc_method - - @property - def default_port(self): - """Gets the default_port of this ImageDto. # noqa: E501 - - - :return: The default_port of this ImageDto. # noqa: E501 - :rtype: int - """ - return self._default_port - - @default_port.setter - def default_port(self, default_port): - """Sets the default_port of this ImageDto. - - - :param default_port: The default_port of this ImageDto. # noqa: E501 - :type: int - """ - if default_port is None: - raise ValueError("Invalid value for `default_port`, must not be `None`") # noqa: E501 - - self._default_port = default_port - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(ImageDto, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, ImageDto): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/swagger/api-authentication/swagger_client/models/image_env_item_dto.py b/swagger/api-authentication/swagger_client/models/image_env_item_dto.py deleted file mode 100644 index 0a8089775eddf76cf0fc461d9cc94852246487ff..0000000000000000000000000000000000000000 --- a/swagger/api-authentication/swagger_client/models/image_env_item_dto.py +++ /dev/null @@ -1,198 +0,0 @@ -# coding: utf-8 - -""" - Database Repository Authentication Service API - - Service that manages the authentication # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -import pprint -import re # noqa: F401 - -import six - -class ImageEnvItemDto(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'iid': 'int', - 'key': 'str', - 'value': 'str', - 'type': 'str' - } - - attribute_map = { - 'iid': 'iid', - 'key': 'key', - 'value': 'value', - 'type': 'type' - } - - def __init__(self, iid=None, key=None, value=None, type=None): # noqa: E501 - """ImageEnvItemDto - a model defined in Swagger""" # noqa: E501 - self._iid = None - self._key = None - self._value = None - self._type = None - self.discriminator = None - self.iid = iid - self.key = key - self.value = value - self.type = type - - @property - def iid(self): - """Gets the iid of this ImageEnvItemDto. # noqa: E501 - - - :return: The iid of this ImageEnvItemDto. # noqa: E501 - :rtype: int - """ - return self._iid - - @iid.setter - def iid(self, iid): - """Sets the iid of this ImageEnvItemDto. - - - :param iid: The iid of this ImageEnvItemDto. # noqa: E501 - :type: int - """ - if iid is None: - raise ValueError("Invalid value for `iid`, must not be `None`") # noqa: E501 - - self._iid = iid - - @property - def key(self): - """Gets the key of this ImageEnvItemDto. # noqa: E501 - - - :return: The key of this ImageEnvItemDto. # noqa: E501 - :rtype: str - """ - return self._key - - @key.setter - def key(self, key): - """Sets the key of this ImageEnvItemDto. - - - :param key: The key of this ImageEnvItemDto. # noqa: E501 - :type: str - """ - if key is None: - raise ValueError("Invalid value for `key`, must not be `None`") # noqa: E501 - - self._key = key - - @property - def value(self): - """Gets the value of this ImageEnvItemDto. # noqa: E501 - - - :return: The value of this ImageEnvItemDto. # noqa: E501 - :rtype: str - """ - return self._value - - @value.setter - def value(self, value): - """Sets the value of this ImageEnvItemDto. - - - :param value: The value of this ImageEnvItemDto. # noqa: E501 - :type: str - """ - if value is None: - raise ValueError("Invalid value for `value`, must not be `None`") # noqa: E501 - - self._value = value - - @property - def type(self): - """Gets the type of this ImageEnvItemDto. # noqa: E501 - - - :return: The type of this ImageEnvItemDto. # noqa: E501 - :rtype: str - """ - return self._type - - @type.setter - def type(self, type): - """Sets the type of this ImageEnvItemDto. - - - :param type: The type of this ImageEnvItemDto. # noqa: E501 - :type: str - """ - if type is None: - raise ValueError("Invalid value for `type`, must not be `None`") # noqa: E501 - allowed_values = ["username", "password", "privileged_username", "privileged_password"] # noqa: E501 - if type not in allowed_values: - raise ValueError( - "Invalid value for `type` ({0}), must be one of {1}" # noqa: E501 - .format(type, allowed_values) - ) - - self._type = type - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(ImageEnvItemDto, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, ImageEnvItemDto): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/swagger/api-authentication/swagger_client/models/jwt_response_dto.py b/swagger/api-authentication/swagger_client/models/jwt_response_dto.py deleted file mode 100644 index 1ec439618bdd7247873e016e6e00e310e2d74e24..0000000000000000000000000000000000000000 --- a/swagger/api-authentication/swagger_client/models/jwt_response_dto.py +++ /dev/null @@ -1,241 +0,0 @@ -# coding: utf-8 - -""" - Database Repository Authentication Service API - - Service that manages the authentication # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -import pprint -import re # noqa: F401 - -import six - -class JwtResponseDto(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'token': 'str', - 'type': 'str', - 'id': 'int', - 'username': 'str', - 'email': 'str', - 'roles': 'list[str]' - } - - attribute_map = { - 'token': 'token', - 'type': 'type', - 'id': 'id', - 'username': 'username', - 'email': 'email', - 'roles': 'roles' - } - - def __init__(self, token=None, type=None, id=None, username=None, email=None, roles=None): # noqa: E501 - """JwtResponseDto - a model defined in Swagger""" # noqa: E501 - self._token = None - self._type = None - self._id = None - self._username = None - self._email = None - self._roles = None - self.discriminator = None - self.token = token - if type is not None: - self.type = type - if id is not None: - self.id = id - if username is not None: - self.username = username - if email is not None: - self.email = email - if roles is not None: - self.roles = roles - - @property - def token(self): - """Gets the token of this JwtResponseDto. # noqa: E501 - - - :return: The token of this JwtResponseDto. # noqa: E501 - :rtype: str - """ - return self._token - - @token.setter - def token(self, token): - """Sets the token of this JwtResponseDto. - - - :param token: The token of this JwtResponseDto. # noqa: E501 - :type: str - """ - if token is None: - raise ValueError("Invalid value for `token`, must not be `None`") # noqa: E501 - - self._token = token - - @property - def type(self): - """Gets the type of this JwtResponseDto. # noqa: E501 - - - :return: The type of this JwtResponseDto. # noqa: E501 - :rtype: str - """ - return self._type - - @type.setter - def type(self, type): - """Sets the type of this JwtResponseDto. - - - :param type: The type of this JwtResponseDto. # noqa: E501 - :type: str - """ - - self._type = type - - @property - def id(self): - """Gets the id of this JwtResponseDto. # noqa: E501 - - - :return: The id of this JwtResponseDto. # noqa: E501 - :rtype: int - """ - return self._id - - @id.setter - def id(self, id): - """Sets the id of this JwtResponseDto. - - - :param id: The id of this JwtResponseDto. # noqa: E501 - :type: int - """ - - self._id = id - - @property - def username(self): - """Gets the username of this JwtResponseDto. # noqa: E501 - - - :return: The username of this JwtResponseDto. # noqa: E501 - :rtype: str - """ - return self._username - - @username.setter - def username(self, username): - """Sets the username of this JwtResponseDto. - - - :param username: The username of this JwtResponseDto. # noqa: E501 - :type: str - """ - - self._username = username - - @property - def email(self): - """Gets the email of this JwtResponseDto. # noqa: E501 - - - :return: The email of this JwtResponseDto. # noqa: E501 - :rtype: str - """ - return self._email - - @email.setter - def email(self, email): - """Sets the email of this JwtResponseDto. - - - :param email: The email of this JwtResponseDto. # noqa: E501 - :type: str - """ - - self._email = email - - @property - def roles(self): - """Gets the roles of this JwtResponseDto. # noqa: E501 - - - :return: The roles of this JwtResponseDto. # noqa: E501 - :rtype: list[str] - """ - return self._roles - - @roles.setter - def roles(self, roles): - """Sets the roles of this JwtResponseDto. - - - :param roles: The roles of this JwtResponseDto. # noqa: E501 - :type: list[str] - """ - - self._roles = roles - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(JwtResponseDto, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, JwtResponseDto): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/swagger/api-authentication/swagger_client/models/license_dto.py b/swagger/api-authentication/swagger_client/models/license_dto.py deleted file mode 100644 index 37ac2e3598a3e1b61081b0c83eca129af89b4ce4..0000000000000000000000000000000000000000 --- a/swagger/api-authentication/swagger_client/models/license_dto.py +++ /dev/null @@ -1,138 +0,0 @@ -# coding: utf-8 - -""" - Database Repository Authentication Service API - - Service that manages the authentication # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -import pprint -import re # noqa: F401 - -import six - -class LicenseDto(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'identifier': 'str', - 'uri': 'str' - } - - attribute_map = { - 'identifier': 'identifier', - 'uri': 'uri' - } - - def __init__(self, identifier=None, uri=None): # noqa: E501 - """LicenseDto - a model defined in Swagger""" # noqa: E501 - self._identifier = None - self._uri = None - self.discriminator = None - self.identifier = identifier - self.uri = uri - - @property - def identifier(self): - """Gets the identifier of this LicenseDto. # noqa: E501 - - - :return: The identifier of this LicenseDto. # noqa: E501 - :rtype: str - """ - return self._identifier - - @identifier.setter - def identifier(self, identifier): - """Sets the identifier of this LicenseDto. - - - :param identifier: The identifier of this LicenseDto. # noqa: E501 - :type: str - """ - if identifier is None: - raise ValueError("Invalid value for `identifier`, must not be `None`") # noqa: E501 - - self._identifier = identifier - - @property - def uri(self): - """Gets the uri of this LicenseDto. # noqa: E501 - - - :return: The uri of this LicenseDto. # noqa: E501 - :rtype: str - """ - return self._uri - - @uri.setter - def uri(self, uri): - """Sets the uri of this LicenseDto. - - - :param uri: The uri of this LicenseDto. # noqa: E501 - :type: str - """ - if uri is None: - raise ValueError("Invalid value for `uri`, must not be `None`") # noqa: E501 - - self._uri = uri - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(LicenseDto, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, LicenseDto): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/swagger/api-authentication/swagger_client/models/login_request_dto.py b/swagger/api-authentication/swagger_client/models/login_request_dto.py deleted file mode 100644 index ffebe690dd07f94409efb3ecbf3e1a4a286b5323..0000000000000000000000000000000000000000 --- a/swagger/api-authentication/swagger_client/models/login_request_dto.py +++ /dev/null @@ -1,138 +0,0 @@ -# coding: utf-8 - -""" - Database Repository Authentication Service API - - Service that manages the authentication # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -import pprint -import re # noqa: F401 - -import six - -class LoginRequestDto(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'username': 'str', - 'password': 'str' - } - - attribute_map = { - 'username': 'username', - 'password': 'password' - } - - def __init__(self, username=None, password=None): # noqa: E501 - """LoginRequestDto - a model defined in Swagger""" # noqa: E501 - self._username = None - self._password = None - self.discriminator = None - self.username = username - self.password = password - - @property - def username(self): - """Gets the username of this LoginRequestDto. # noqa: E501 - - - :return: The username of this LoginRequestDto. # noqa: E501 - :rtype: str - """ - return self._username - - @username.setter - def username(self, username): - """Sets the username of this LoginRequestDto. - - - :param username: The username of this LoginRequestDto. # noqa: E501 - :type: str - """ - if username is None: - raise ValueError("Invalid value for `username`, must not be `None`") # noqa: E501 - - self._username = username - - @property - def password(self): - """Gets the password of this LoginRequestDto. # noqa: E501 - - - :return: The password of this LoginRequestDto. # noqa: E501 - :rtype: str - """ - return self._password - - @password.setter - def password(self, password): - """Sets the password of this LoginRequestDto. - - - :param password: The password of this LoginRequestDto. # noqa: E501 - :type: str - """ - if password is None: - raise ValueError("Invalid value for `password`, must not be `None`") # noqa: E501 - - self._password = password - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(LoginRequestDto, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, LoginRequestDto): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/swagger/api-authentication/swagger_client/models/signup_request_dto.py b/swagger/api-authentication/swagger_client/models/signup_request_dto.py deleted file mode 100644 index e4583703ccabdc602ba73297658b3b96dfe27948..0000000000000000000000000000000000000000 --- a/swagger/api-authentication/swagger_client/models/signup_request_dto.py +++ /dev/null @@ -1,165 +0,0 @@ -# coding: utf-8 - -""" - Database Repository Authentication Service API - - Service that manages the authentication # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -import pprint -import re # noqa: F401 - -import six - -class SignupRequestDto(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'username': 'str', - 'email': 'str', - 'password': 'str' - } - - attribute_map = { - 'username': 'username', - 'email': 'email', - 'password': 'password' - } - - def __init__(self, username=None, email=None, password=None): # noqa: E501 - """SignupRequestDto - a model defined in Swagger""" # noqa: E501 - self._username = None - self._email = None - self._password = None - self.discriminator = None - self.username = username - self.email = email - self.password = password - - @property - def username(self): - """Gets the username of this SignupRequestDto. # noqa: E501 - - - :return: The username of this SignupRequestDto. # noqa: E501 - :rtype: str - """ - return self._username - - @username.setter - def username(self, username): - """Sets the username of this SignupRequestDto. - - - :param username: The username of this SignupRequestDto. # noqa: E501 - :type: str - """ - if username is None: - raise ValueError("Invalid value for `username`, must not be `None`") # noqa: E501 - - self._username = username - - @property - def email(self): - """Gets the email of this SignupRequestDto. # noqa: E501 - - - :return: The email of this SignupRequestDto. # noqa: E501 - :rtype: str - """ - return self._email - - @email.setter - def email(self, email): - """Sets the email of this SignupRequestDto. - - - :param email: The email of this SignupRequestDto. # noqa: E501 - :type: str - """ - if email is None: - raise ValueError("Invalid value for `email`, must not be `None`") # noqa: E501 - - self._email = email - - @property - def password(self): - """Gets the password of this SignupRequestDto. # noqa: E501 - - - :return: The password of this SignupRequestDto. # noqa: E501 - :rtype: str - """ - return self._password - - @password.setter - def password(self, password): - """Sets the password of this SignupRequestDto. - - - :param password: The password of this SignupRequestDto. # noqa: E501 - :type: str - """ - if password is None: - raise ValueError("Invalid value for `password`, must not be `None`") # noqa: E501 - - self._password = password - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(SignupRequestDto, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, SignupRequestDto): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/swagger/api-authentication/swagger_client/models/table_brief_dto.py b/swagger/api-authentication/swagger_client/models/table_brief_dto.py deleted file mode 100644 index a20c8802164e2c36f9ad791c1cca72e26d659f8c..0000000000000000000000000000000000000000 --- a/swagger/api-authentication/swagger_client/models/table_brief_dto.py +++ /dev/null @@ -1,192 +0,0 @@ -# coding: utf-8 - -""" - Database Repository Authentication Service API - - Service that manages the authentication # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -import pprint -import re # noqa: F401 - -import six - -class TableBriefDto(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'id': 'int', - 'name': 'str', - 'creator': 'UserBriefDto', - 'internal_name': 'str' - } - - attribute_map = { - 'id': 'id', - 'name': 'name', - 'creator': 'creator', - 'internal_name': 'internal_name' - } - - def __init__(self, id=None, name=None, creator=None, internal_name=None): # noqa: E501 - """TableBriefDto - a model defined in Swagger""" # noqa: E501 - self._id = None - self._name = None - self._creator = None - self._internal_name = None - self.discriminator = None - self.id = id - self.name = name - self.creator = creator - self.internal_name = internal_name - - @property - def id(self): - """Gets the id of this TableBriefDto. # noqa: E501 - - - :return: The id of this TableBriefDto. # noqa: E501 - :rtype: int - """ - return self._id - - @id.setter - def id(self, id): - """Sets the id of this TableBriefDto. - - - :param id: The id of this TableBriefDto. # noqa: E501 - :type: int - """ - if id is None: - raise ValueError("Invalid value for `id`, must not be `None`") # noqa: E501 - - self._id = id - - @property - def name(self): - """Gets the name of this TableBriefDto. # noqa: E501 - - - :return: The name of this TableBriefDto. # noqa: E501 - :rtype: str - """ - return self._name - - @name.setter - def name(self, name): - """Sets the name of this TableBriefDto. - - - :param name: The name of this TableBriefDto. # noqa: E501 - :type: str - """ - if name is None: - raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501 - - self._name = name - - @property - def creator(self): - """Gets the creator of this TableBriefDto. # noqa: E501 - - - :return: The creator of this TableBriefDto. # noqa: E501 - :rtype: UserBriefDto - """ - return self._creator - - @creator.setter - def creator(self, creator): - """Sets the creator of this TableBriefDto. - - - :param creator: The creator of this TableBriefDto. # noqa: E501 - :type: UserBriefDto - """ - if creator is None: - raise ValueError("Invalid value for `creator`, must not be `None`") # noqa: E501 - - self._creator = creator - - @property - def internal_name(self): - """Gets the internal_name of this TableBriefDto. # noqa: E501 - - - :return: The internal_name of this TableBriefDto. # noqa: E501 - :rtype: str - """ - return self._internal_name - - @internal_name.setter - def internal_name(self, internal_name): - """Sets the internal_name of this TableBriefDto. - - - :param internal_name: The internal_name of this TableBriefDto. # noqa: E501 - :type: str - """ - if internal_name is None: - raise ValueError("Invalid value for `internal_name`, must not be `None`") # noqa: E501 - - self._internal_name = internal_name - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(TableBriefDto, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, TableBriefDto): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/swagger/api-authentication/swagger_client/models/table_dto.py b/swagger/api-authentication/swagger_client/models/table_dto.py deleted file mode 100644 index 9eceddcfc49f5bcd0031bde0c00cf5e2434fa072..0000000000000000000000000000000000000000 --- a/swagger/api-authentication/swagger_client/models/table_dto.py +++ /dev/null @@ -1,272 +0,0 @@ -# coding: utf-8 - -""" - Database Repository Authentication Service API - - Service that manages the authentication # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -import pprint -import re # noqa: F401 - -import six - -class TableDto(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'id': 'int', - 'name': 'str', - 'topic': 'str', - 'description': 'str', - 'created': 'datetime', - 'columns': 'list[ColumnDto]', - 'internal_name': 'str' - } - - attribute_map = { - 'id': 'id', - 'name': 'name', - 'topic': 'topic', - 'description': 'description', - 'created': 'created', - 'columns': 'columns', - 'internal_name': 'internal_name' - } - - def __init__(self, id=None, name=None, topic=None, description=None, created=None, columns=None, internal_name=None): # noqa: E501 - """TableDto - a model defined in Swagger""" # noqa: E501 - self._id = None - self._name = None - self._topic = None - self._description = None - self._created = None - self._columns = None - self._internal_name = None - self.discriminator = None - self.id = id - self.name = name - self.topic = topic - self.description = description - if created is not None: - self.created = created - self.columns = columns - self.internal_name = internal_name - - @property - def id(self): - """Gets the id of this TableDto. # noqa: E501 - - - :return: The id of this TableDto. # noqa: E501 - :rtype: int - """ - return self._id - - @id.setter - def id(self, id): - """Sets the id of this TableDto. - - - :param id: The id of this TableDto. # noqa: E501 - :type: int - """ - if id is None: - raise ValueError("Invalid value for `id`, must not be `None`") # noqa: E501 - - self._id = id - - @property - def name(self): - """Gets the name of this TableDto. # noqa: E501 - - - :return: The name of this TableDto. # noqa: E501 - :rtype: str - """ - return self._name - - @name.setter - def name(self, name): - """Sets the name of this TableDto. - - - :param name: The name of this TableDto. # noqa: E501 - :type: str - """ - if name is None: - raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501 - - self._name = name - - @property - def topic(self): - """Gets the topic of this TableDto. # noqa: E501 - - - :return: The topic of this TableDto. # noqa: E501 - :rtype: str - """ - return self._topic - - @topic.setter - def topic(self, topic): - """Sets the topic of this TableDto. - - - :param topic: The topic of this TableDto. # noqa: E501 - :type: str - """ - if topic is None: - raise ValueError("Invalid value for `topic`, must not be `None`") # noqa: E501 - - self._topic = topic - - @property - def description(self): - """Gets the description of this TableDto. # noqa: E501 - - - :return: The description of this TableDto. # noqa: E501 - :rtype: str - """ - return self._description - - @description.setter - def description(self, description): - """Sets the description of this TableDto. - - - :param description: The description of this TableDto. # noqa: E501 - :type: str - """ - if description is None: - raise ValueError("Invalid value for `description`, must not be `None`") # noqa: E501 - - self._description = description - - @property - def created(self): - """Gets the created of this TableDto. # noqa: E501 - - - :return: The created of this TableDto. # noqa: E501 - :rtype: datetime - """ - return self._created - - @created.setter - def created(self, created): - """Sets the created of this TableDto. - - - :param created: The created of this TableDto. # noqa: E501 - :type: datetime - """ - - self._created = created - - @property - def columns(self): - """Gets the columns of this TableDto. # noqa: E501 - - - :return: The columns of this TableDto. # noqa: E501 - :rtype: list[ColumnDto] - """ - return self._columns - - @columns.setter - def columns(self, columns): - """Sets the columns of this TableDto. - - - :param columns: The columns of this TableDto. # noqa: E501 - :type: list[ColumnDto] - """ - if columns is None: - raise ValueError("Invalid value for `columns`, must not be `None`") # noqa: E501 - - self._columns = columns - - @property - def internal_name(self): - """Gets the internal_name of this TableDto. # noqa: E501 - - - :return: The internal_name of this TableDto. # noqa: E501 - :rtype: str - """ - return self._internal_name - - @internal_name.setter - def internal_name(self, internal_name): - """Sets the internal_name of this TableDto. - - - :param internal_name: The internal_name of this TableDto. # noqa: E501 - :type: str - """ - if internal_name is None: - raise ValueError("Invalid value for `internal_name`, must not be `None`") # noqa: E501 - - self._internal_name = internal_name - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(TableDto, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, TableDto): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/swagger/api-authentication/swagger_client/models/user_brief_dto.py b/swagger/api-authentication/swagger_client/models/user_brief_dto.py deleted file mode 100644 index 79fbd2db971a41b74fda65941dde1e04f6e81ebf..0000000000000000000000000000000000000000 --- a/swagger/api-authentication/swagger_client/models/user_brief_dto.py +++ /dev/null @@ -1,350 +0,0 @@ -# coding: utf-8 - -""" - Database Repository Authentication Service API - - Service that manages the authentication # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -import pprint -import re # noqa: F401 - -import six - -class UserBriefDto(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'id': 'int', - 'username': 'str', - 'firstname': 'str', - 'lastname': 'str', - 'affiliation': 'str', - 'orcid': 'str', - 'titles_before': 'str', - 'titles_after': 'str', - 'theme_dark': 'bool', - 'email_verified': 'bool' - } - - attribute_map = { - 'id': 'id', - 'username': 'username', - 'firstname': 'firstname', - 'lastname': 'lastname', - 'affiliation': 'affiliation', - 'orcid': 'orcid', - 'titles_before': 'titles_before', - 'titles_after': 'titles_after', - 'theme_dark': 'theme_dark', - 'email_verified': 'email_verified' - } - - def __init__(self, id=None, username=None, firstname=None, lastname=None, affiliation=None, orcid=None, titles_before=None, titles_after=None, theme_dark=None, email_verified=None): # noqa: E501 - """UserBriefDto - a model defined in Swagger""" # noqa: E501 - self._id = None - self._username = None - self._firstname = None - self._lastname = None - self._affiliation = None - self._orcid = None - self._titles_before = None - self._titles_after = None - self._theme_dark = None - self._email_verified = None - self.discriminator = None - self.id = id - self.username = username - if firstname is not None: - self.firstname = firstname - if lastname is not None: - self.lastname = lastname - if affiliation is not None: - self.affiliation = affiliation - if orcid is not None: - self.orcid = orcid - if titles_before is not None: - self.titles_before = titles_before - if titles_after is not None: - self.titles_after = titles_after - self.theme_dark = theme_dark - self.email_verified = email_verified - - @property - def id(self): - """Gets the id of this UserBriefDto. # noqa: E501 - - - :return: The id of this UserBriefDto. # noqa: E501 - :rtype: int - """ - return self._id - - @id.setter - def id(self, id): - """Sets the id of this UserBriefDto. - - - :param id: The id of this UserBriefDto. # noqa: E501 - :type: int - """ - if id is None: - raise ValueError("Invalid value for `id`, must not be `None`") # noqa: E501 - - self._id = id - - @property - def username(self): - """Gets the username of this UserBriefDto. # noqa: E501 - - Only contains lowercase characters # noqa: E501 - - :return: The username of this UserBriefDto. # noqa: E501 - :rtype: str - """ - return self._username - - @username.setter - def username(self, username): - """Sets the username of this UserBriefDto. - - Only contains lowercase characters # noqa: E501 - - :param username: The username of this UserBriefDto. # noqa: E501 - :type: str - """ - if username is None: - raise ValueError("Invalid value for `username`, must not be `None`") # noqa: E501 - - self._username = username - - @property - def firstname(self): - """Gets the firstname of this UserBriefDto. # noqa: E501 - - - :return: The firstname of this UserBriefDto. # noqa: E501 - :rtype: str - """ - return self._firstname - - @firstname.setter - def firstname(self, firstname): - """Sets the firstname of this UserBriefDto. - - - :param firstname: The firstname of this UserBriefDto. # noqa: E501 - :type: str - """ - - self._firstname = firstname - - @property - def lastname(self): - """Gets the lastname of this UserBriefDto. # noqa: E501 - - - :return: The lastname of this UserBriefDto. # noqa: E501 - :rtype: str - """ - return self._lastname - - @lastname.setter - def lastname(self, lastname): - """Sets the lastname of this UserBriefDto. - - - :param lastname: The lastname of this UserBriefDto. # noqa: E501 - :type: str - """ - - self._lastname = lastname - - @property - def affiliation(self): - """Gets the affiliation of this UserBriefDto. # noqa: E501 - - - :return: The affiliation of this UserBriefDto. # noqa: E501 - :rtype: str - """ - return self._affiliation - - @affiliation.setter - def affiliation(self, affiliation): - """Sets the affiliation of this UserBriefDto. - - - :param affiliation: The affiliation of this UserBriefDto. # noqa: E501 - :type: str - """ - - self._affiliation = affiliation - - @property - def orcid(self): - """Gets the orcid of this UserBriefDto. # noqa: E501 - - - :return: The orcid of this UserBriefDto. # noqa: E501 - :rtype: str - """ - return self._orcid - - @orcid.setter - def orcid(self, orcid): - """Sets the orcid of this UserBriefDto. - - - :param orcid: The orcid of this UserBriefDto. # noqa: E501 - :type: str - """ - - self._orcid = orcid - - @property - def titles_before(self): - """Gets the titles_before of this UserBriefDto. # noqa: E501 - - - :return: The titles_before of this UserBriefDto. # noqa: E501 - :rtype: str - """ - return self._titles_before - - @titles_before.setter - def titles_before(self, titles_before): - """Sets the titles_before of this UserBriefDto. - - - :param titles_before: The titles_before of this UserBriefDto. # noqa: E501 - :type: str - """ - - self._titles_before = titles_before - - @property - def titles_after(self): - """Gets the titles_after of this UserBriefDto. # noqa: E501 - - - :return: The titles_after of this UserBriefDto. # noqa: E501 - :rtype: str - """ - return self._titles_after - - @titles_after.setter - def titles_after(self, titles_after): - """Sets the titles_after of this UserBriefDto. - - - :param titles_after: The titles_after of this UserBriefDto. # noqa: E501 - :type: str - """ - - self._titles_after = titles_after - - @property - def theme_dark(self): - """Gets the theme_dark of this UserBriefDto. # noqa: E501 - - - :return: The theme_dark of this UserBriefDto. # noqa: E501 - :rtype: bool - """ - return self._theme_dark - - @theme_dark.setter - def theme_dark(self, theme_dark): - """Sets the theme_dark of this UserBriefDto. - - - :param theme_dark: The theme_dark of this UserBriefDto. # noqa: E501 - :type: bool - """ - if theme_dark is None: - raise ValueError("Invalid value for `theme_dark`, must not be `None`") # noqa: E501 - - self._theme_dark = theme_dark - - @property - def email_verified(self): - """Gets the email_verified of this UserBriefDto. # noqa: E501 - - - :return: The email_verified of this UserBriefDto. # noqa: E501 - :rtype: bool - """ - return self._email_verified - - @email_verified.setter - def email_verified(self, email_verified): - """Sets the email_verified of this UserBriefDto. - - - :param email_verified: The email_verified of this UserBriefDto. # noqa: E501 - :type: bool - """ - if email_verified is None: - raise ValueError("Invalid value for `email_verified`, must not be `None`") # noqa: E501 - - self._email_verified = email_verified - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(UserBriefDto, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, UserBriefDto): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/swagger/api-authentication/swagger_client/models/user_dto.py b/swagger/api-authentication/swagger_client/models/user_dto.py deleted file mode 100644 index e5a3cf440293c565718006cd46962706ad260f6f..0000000000000000000000000000000000000000 --- a/swagger/api-authentication/swagger_client/models/user_dto.py +++ /dev/null @@ -1,481 +0,0 @@ -# coding: utf-8 - -""" - Database Repository Authentication Service API - - Service that manages the authentication # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -import pprint -import re # noqa: F401 - -import six - -class UserDto(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'id': 'int', - 'authorities': 'list[GrantedAuthorityDto]', - 'username': 'str', - 'firstname': 'str', - 'lastname': 'str', - 'affiliation': 'str', - 'orcid': 'str', - 'containers': 'list[ContainerDto]', - 'databases': 'list[ContainerDto]', - 'identifiers': 'list[ContainerDto]', - 'email': 'str', - 'titles_before': 'str', - 'titles_after': 'str', - 'theme_dark': 'bool', - 'email_verified': 'bool' - } - - attribute_map = { - 'id': 'id', - 'authorities': 'authorities', - 'username': 'username', - 'firstname': 'firstname', - 'lastname': 'lastname', - 'affiliation': 'affiliation', - 'orcid': 'orcid', - 'containers': 'containers', - 'databases': 'databases', - 'identifiers': 'identifiers', - 'email': 'email', - 'titles_before': 'titles_before', - 'titles_after': 'titles_after', - 'theme_dark': 'theme_dark', - 'email_verified': 'email_verified' - } - - def __init__(self, id=None, authorities=None, username=None, firstname=None, lastname=None, affiliation=None, orcid=None, containers=None, databases=None, identifiers=None, email=None, titles_before=None, titles_after=None, theme_dark=None, email_verified=None): # noqa: E501 - """UserDto - a model defined in Swagger""" # noqa: E501 - self._id = None - self._authorities = None - self._username = None - self._firstname = None - self._lastname = None - self._affiliation = None - self._orcid = None - self._containers = None - self._databases = None - self._identifiers = None - self._email = None - self._titles_before = None - self._titles_after = None - self._theme_dark = None - self._email_verified = None - self.discriminator = None - self.id = id - if authorities is not None: - self.authorities = authorities - self.username = username - if firstname is not None: - self.firstname = firstname - if lastname is not None: - self.lastname = lastname - if affiliation is not None: - self.affiliation = affiliation - if orcid is not None: - self.orcid = orcid - if containers is not None: - self.containers = containers - if databases is not None: - self.databases = databases - if identifiers is not None: - self.identifiers = identifiers - self.email = email - if titles_before is not None: - self.titles_before = titles_before - if titles_after is not None: - self.titles_after = titles_after - self.theme_dark = theme_dark - self.email_verified = email_verified - - @property - def id(self): - """Gets the id of this UserDto. # noqa: E501 - - - :return: The id of this UserDto. # noqa: E501 - :rtype: int - """ - return self._id - - @id.setter - def id(self, id): - """Sets the id of this UserDto. - - - :param id: The id of this UserDto. # noqa: E501 - :type: int - """ - if id is None: - raise ValueError("Invalid value for `id`, must not be `None`") # noqa: E501 - - self._id = id - - @property - def authorities(self): - """Gets the authorities of this UserDto. # noqa: E501 - - - :return: The authorities of this UserDto. # noqa: E501 - :rtype: list[GrantedAuthorityDto] - """ - return self._authorities - - @authorities.setter - def authorities(self, authorities): - """Sets the authorities of this UserDto. - - - :param authorities: The authorities of this UserDto. # noqa: E501 - :type: list[GrantedAuthorityDto] - """ - - self._authorities = authorities - - @property - def username(self): - """Gets the username of this UserDto. # noqa: E501 - - Only contains lowercase characters # noqa: E501 - - :return: The username of this UserDto. # noqa: E501 - :rtype: str - """ - return self._username - - @username.setter - def username(self, username): - """Sets the username of this UserDto. - - Only contains lowercase characters # noqa: E501 - - :param username: The username of this UserDto. # noqa: E501 - :type: str - """ - if username is None: - raise ValueError("Invalid value for `username`, must not be `None`") # noqa: E501 - - self._username = username - - @property - def firstname(self): - """Gets the firstname of this UserDto. # noqa: E501 - - - :return: The firstname of this UserDto. # noqa: E501 - :rtype: str - """ - return self._firstname - - @firstname.setter - def firstname(self, firstname): - """Sets the firstname of this UserDto. - - - :param firstname: The firstname of this UserDto. # noqa: E501 - :type: str - """ - - self._firstname = firstname - - @property - def lastname(self): - """Gets the lastname of this UserDto. # noqa: E501 - - - :return: The lastname of this UserDto. # noqa: E501 - :rtype: str - """ - return self._lastname - - @lastname.setter - def lastname(self, lastname): - """Sets the lastname of this UserDto. - - - :param lastname: The lastname of this UserDto. # noqa: E501 - :type: str - """ - - self._lastname = lastname - - @property - def affiliation(self): - """Gets the affiliation of this UserDto. # noqa: E501 - - - :return: The affiliation of this UserDto. # noqa: E501 - :rtype: str - """ - return self._affiliation - - @affiliation.setter - def affiliation(self, affiliation): - """Sets the affiliation of this UserDto. - - - :param affiliation: The affiliation of this UserDto. # noqa: E501 - :type: str - """ - - self._affiliation = affiliation - - @property - def orcid(self): - """Gets the orcid of this UserDto. # noqa: E501 - - - :return: The orcid of this UserDto. # noqa: E501 - :rtype: str - """ - return self._orcid - - @orcid.setter - def orcid(self, orcid): - """Sets the orcid of this UserDto. - - - :param orcid: The orcid of this UserDto. # noqa: E501 - :type: str - """ - - self._orcid = orcid - - @property - def containers(self): - """Gets the containers of this UserDto. # noqa: E501 - - - :return: The containers of this UserDto. # noqa: E501 - :rtype: list[ContainerDto] - """ - return self._containers - - @containers.setter - def containers(self, containers): - """Sets the containers of this UserDto. - - - :param containers: The containers of this UserDto. # noqa: E501 - :type: list[ContainerDto] - """ - - self._containers = containers - - @property - def databases(self): - """Gets the databases of this UserDto. # noqa: E501 - - - :return: The databases of this UserDto. # noqa: E501 - :rtype: list[ContainerDto] - """ - return self._databases - - @databases.setter - def databases(self, databases): - """Sets the databases of this UserDto. - - - :param databases: The databases of this UserDto. # noqa: E501 - :type: list[ContainerDto] - """ - - self._databases = databases - - @property - def identifiers(self): - """Gets the identifiers of this UserDto. # noqa: E501 - - - :return: The identifiers of this UserDto. # noqa: E501 - :rtype: list[ContainerDto] - """ - return self._identifiers - - @identifiers.setter - def identifiers(self, identifiers): - """Sets the identifiers of this UserDto. - - - :param identifiers: The identifiers of this UserDto. # noqa: E501 - :type: list[ContainerDto] - """ - - self._identifiers = identifiers - - @property - def email(self): - """Gets the email of this UserDto. # noqa: E501 - - - :return: The email of this UserDto. # noqa: E501 - :rtype: str - """ - return self._email - - @email.setter - def email(self, email): - """Sets the email of this UserDto. - - - :param email: The email of this UserDto. # noqa: E501 - :type: str - """ - if email is None: - raise ValueError("Invalid value for `email`, must not be `None`") # noqa: E501 - - self._email = email - - @property - def titles_before(self): - """Gets the titles_before of this UserDto. # noqa: E501 - - - :return: The titles_before of this UserDto. # noqa: E501 - :rtype: str - """ - return self._titles_before - - @titles_before.setter - def titles_before(self, titles_before): - """Sets the titles_before of this UserDto. - - - :param titles_before: The titles_before of this UserDto. # noqa: E501 - :type: str - """ - - self._titles_before = titles_before - - @property - def titles_after(self): - """Gets the titles_after of this UserDto. # noqa: E501 - - - :return: The titles_after of this UserDto. # noqa: E501 - :rtype: str - """ - return self._titles_after - - @titles_after.setter - def titles_after(self, titles_after): - """Sets the titles_after of this UserDto. - - - :param titles_after: The titles_after of this UserDto. # noqa: E501 - :type: str - """ - - self._titles_after = titles_after - - @property - def theme_dark(self): - """Gets the theme_dark of this UserDto. # noqa: E501 - - - :return: The theme_dark of this UserDto. # noqa: E501 - :rtype: bool - """ - return self._theme_dark - - @theme_dark.setter - def theme_dark(self, theme_dark): - """Sets the theme_dark of this UserDto. - - - :param theme_dark: The theme_dark of this UserDto. # noqa: E501 - :type: bool - """ - if theme_dark is None: - raise ValueError("Invalid value for `theme_dark`, must not be `None`") # noqa: E501 - - self._theme_dark = theme_dark - - @property - def email_verified(self): - """Gets the email_verified of this UserDto. # noqa: E501 - - - :return: The email_verified of this UserDto. # noqa: E501 - :rtype: bool - """ - return self._email_verified - - @email_verified.setter - def email_verified(self, email_verified): - """Sets the email_verified of this UserDto. - - - :param email_verified: The email_verified of this UserDto. # noqa: E501 - :type: bool - """ - if email_verified is None: - raise ValueError("Invalid value for `email_verified`, must not be `None`") # noqa: E501 - - self._email_verified = email_verified - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(UserDto, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, UserDto): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/swagger/api-authentication/swagger_client/models/user_email_dto.py b/swagger/api-authentication/swagger_client/models/user_email_dto.py deleted file mode 100644 index 9efba48a1014164d8dc3a89bfeaa6ae7b0152ac5..0000000000000000000000000000000000000000 --- a/swagger/api-authentication/swagger_client/models/user_email_dto.py +++ /dev/null @@ -1,111 +0,0 @@ -# coding: utf-8 - -""" - Database Repository Authentication Service API - - Service that manages the authentication # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -import pprint -import re # noqa: F401 - -import six - -class UserEmailDto(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'email': 'str' - } - - attribute_map = { - 'email': 'email' - } - - def __init__(self, email=None): # noqa: E501 - """UserEmailDto - a model defined in Swagger""" # noqa: E501 - self._email = None - self.discriminator = None - self.email = email - - @property - def email(self): - """Gets the email of this UserEmailDto. # noqa: E501 - - - :return: The email of this UserEmailDto. # noqa: E501 - :rtype: str - """ - return self._email - - @email.setter - def email(self, email): - """Sets the email of this UserEmailDto. - - - :param email: The email of this UserEmailDto. # noqa: E501 - :type: str - """ - if email is None: - raise ValueError("Invalid value for `email`, must not be `None`") # noqa: E501 - - self._email = email - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(UserEmailDto, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, UserEmailDto): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/swagger/api-authentication/swagger_client/models/user_forgot_dto.py b/swagger/api-authentication/swagger_client/models/user_forgot_dto.py deleted file mode 100644 index 33eabd537729470bb50b8a580ee45be724ea7af0..0000000000000000000000000000000000000000 --- a/swagger/api-authentication/swagger_client/models/user_forgot_dto.py +++ /dev/null @@ -1,136 +0,0 @@ -# coding: utf-8 - -""" - Database Repository Authentication Service API - - Service that manages the authentication # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -import pprint -import re # noqa: F401 - -import six - -class UserForgotDto(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'username': 'str', - 'email': 'str' - } - - attribute_map = { - 'username': 'username', - 'email': 'email' - } - - def __init__(self, username=None, email=None): # noqa: E501 - """UserForgotDto - a model defined in Swagger""" # noqa: E501 - self._username = None - self._email = None - self.discriminator = None - if username is not None: - self.username = username - if email is not None: - self.email = email - - @property - def username(self): - """Gets the username of this UserForgotDto. # noqa: E501 - - - :return: The username of this UserForgotDto. # noqa: E501 - :rtype: str - """ - return self._username - - @username.setter - def username(self, username): - """Sets the username of this UserForgotDto. - - - :param username: The username of this UserForgotDto. # noqa: E501 - :type: str - """ - - self._username = username - - @property - def email(self): - """Gets the email of this UserForgotDto. # noqa: E501 - - - :return: The email of this UserForgotDto. # noqa: E501 - :rtype: str - """ - return self._email - - @email.setter - def email(self, email): - """Sets the email of this UserForgotDto. - - - :param email: The email of this UserForgotDto. # noqa: E501 - :type: str - """ - - self._email = email - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(UserForgotDto, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, UserForgotDto): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/swagger/api-authentication/swagger_client/models/user_password_dto.py b/swagger/api-authentication/swagger_client/models/user_password_dto.py deleted file mode 100644 index 1c501d6e8f0e45cc43df5ef1985dc7a5298e46eb..0000000000000000000000000000000000000000 --- a/swagger/api-authentication/swagger_client/models/user_password_dto.py +++ /dev/null @@ -1,111 +0,0 @@ -# coding: utf-8 - -""" - Database Repository Authentication Service API - - Service that manages the authentication # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -import pprint -import re # noqa: F401 - -import six - -class UserPasswordDto(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'password': 'str' - } - - attribute_map = { - 'password': 'password' - } - - def __init__(self, password=None): # noqa: E501 - """UserPasswordDto - a model defined in Swagger""" # noqa: E501 - self._password = None - self.discriminator = None - self.password = password - - @property - def password(self): - """Gets the password of this UserPasswordDto. # noqa: E501 - - - :return: The password of this UserPasswordDto. # noqa: E501 - :rtype: str - """ - return self._password - - @password.setter - def password(self, password): - """Sets the password of this UserPasswordDto. - - - :param password: The password of this UserPasswordDto. # noqa: E501 - :type: str - """ - if password is None: - raise ValueError("Invalid value for `password`, must not be `None`") # noqa: E501 - - self._password = password - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(UserPasswordDto, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, UserPasswordDto): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/swagger/api-authentication/swagger_client/models/user_reset_dto.py b/swagger/api-authentication/swagger_client/models/user_reset_dto.py deleted file mode 100644 index 6eae81a67ed15dd60d3a5c8adc2ec51a570bcfbc..0000000000000000000000000000000000000000 --- a/swagger/api-authentication/swagger_client/models/user_reset_dto.py +++ /dev/null @@ -1,138 +0,0 @@ -# coding: utf-8 - -""" - Database Repository Authentication Service API - - Service that manages the authentication # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -import pprint -import re # noqa: F401 - -import six - -class UserResetDto(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'password': 'str', - 'token': 'str' - } - - attribute_map = { - 'password': 'password', - 'token': 'token' - } - - def __init__(self, password=None, token=None): # noqa: E501 - """UserResetDto - a model defined in Swagger""" # noqa: E501 - self._password = None - self._token = None - self.discriminator = None - self.password = password - self.token = token - - @property - def password(self): - """Gets the password of this UserResetDto. # noqa: E501 - - - :return: The password of this UserResetDto. # noqa: E501 - :rtype: str - """ - return self._password - - @password.setter - def password(self, password): - """Sets the password of this UserResetDto. - - - :param password: The password of this UserResetDto. # noqa: E501 - :type: str - """ - if password is None: - raise ValueError("Invalid value for `password`, must not be `None`") # noqa: E501 - - self._password = password - - @property - def token(self): - """Gets the token of this UserResetDto. # noqa: E501 - - - :return: The token of this UserResetDto. # noqa: E501 - :rtype: str - """ - return self._token - - @token.setter - def token(self, token): - """Sets the token of this UserResetDto. - - - :param token: The token of this UserResetDto. # noqa: E501 - :type: str - """ - if token is None: - raise ValueError("Invalid value for `token`, must not be `None`") # noqa: E501 - - self._token = token - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(UserResetDto, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, UserResetDto): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/swagger/api-authentication/swagger_client/models/user_roles_dto.py b/swagger/api-authentication/swagger_client/models/user_roles_dto.py deleted file mode 100644 index e3630ac9e655960726e318b2511a1f11889fd5c1..0000000000000000000000000000000000000000 --- a/swagger/api-authentication/swagger_client/models/user_roles_dto.py +++ /dev/null @@ -1,111 +0,0 @@ -# coding: utf-8 - -""" - Database Repository Authentication Service API - - Service that manages the authentication # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -import pprint -import re # noqa: F401 - -import six - -class UserRolesDto(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'roles': 'list[str]' - } - - attribute_map = { - 'roles': 'roles' - } - - def __init__(self, roles=None): # noqa: E501 - """UserRolesDto - a model defined in Swagger""" # noqa: E501 - self._roles = None - self.discriminator = None - self.roles = roles - - @property - def roles(self): - """Gets the roles of this UserRolesDto. # noqa: E501 - - - :return: The roles of this UserRolesDto. # noqa: E501 - :rtype: list[str] - """ - return self._roles - - @roles.setter - def roles(self, roles): - """Sets the roles of this UserRolesDto. - - - :param roles: The roles of this UserRolesDto. # noqa: E501 - :type: list[str] - """ - if roles is None: - raise ValueError("Invalid value for `roles`, must not be `None`") # noqa: E501 - - self._roles = roles - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(UserRolesDto, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, UserRolesDto): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/swagger/api-authentication/swagger_client/models/user_theme_set_dto.py b/swagger/api-authentication/swagger_client/models/user_theme_set_dto.py deleted file mode 100644 index 3735201576f28934bc7f4ac2c87a3b1b61a778b0..0000000000000000000000000000000000000000 --- a/swagger/api-authentication/swagger_client/models/user_theme_set_dto.py +++ /dev/null @@ -1,111 +0,0 @@ -# coding: utf-8 - -""" - Database Repository Authentication Service API - - Service that manages the authentication # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -import pprint -import re # noqa: F401 - -import six - -class UserThemeSetDto(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'theme_dark': 'bool' - } - - attribute_map = { - 'theme_dark': 'theme_dark' - } - - def __init__(self, theme_dark=None): # noqa: E501 - """UserThemeSetDto - a model defined in Swagger""" # noqa: E501 - self._theme_dark = None - self.discriminator = None - self.theme_dark = theme_dark - - @property - def theme_dark(self): - """Gets the theme_dark of this UserThemeSetDto. # noqa: E501 - - - :return: The theme_dark of this UserThemeSetDto. # noqa: E501 - :rtype: bool - """ - return self._theme_dark - - @theme_dark.setter - def theme_dark(self, theme_dark): - """Sets the theme_dark of this UserThemeSetDto. - - - :param theme_dark: The theme_dark of this UserThemeSetDto. # noqa: E501 - :type: bool - """ - if theme_dark is None: - raise ValueError("Invalid value for `theme_dark`, must not be `None`") # noqa: E501 - - self._theme_dark = theme_dark - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(UserThemeSetDto, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, UserThemeSetDto): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/swagger/api-authentication/swagger_client/models/user_token_modify_dto.py b/swagger/api-authentication/swagger_client/models/user_token_modify_dto.py deleted file mode 100644 index 68148592c9f7bc31726e7b09044c4408cd53b20f..0000000000000000000000000000000000000000 --- a/swagger/api-authentication/swagger_client/models/user_token_modify_dto.py +++ /dev/null @@ -1,111 +0,0 @@ -# coding: utf-8 - -""" - Database Repository Authentication Service API - - Service that manages the authentication # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -import pprint -import re # noqa: F401 - -import six - -class UserTokenModifyDto(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'invenio_token': 'str' - } - - attribute_map = { - 'invenio_token': 'invenio_token' - } - - def __init__(self, invenio_token=None): # noqa: E501 - """UserTokenModifyDto - a model defined in Swagger""" # noqa: E501 - self._invenio_token = None - self.discriminator = None - self.invenio_token = invenio_token - - @property - def invenio_token(self): - """Gets the invenio_token of this UserTokenModifyDto. # noqa: E501 - - - :return: The invenio_token of this UserTokenModifyDto. # noqa: E501 - :rtype: str - """ - return self._invenio_token - - @invenio_token.setter - def invenio_token(self, invenio_token): - """Sets the invenio_token of this UserTokenModifyDto. - - - :param invenio_token: The invenio_token of this UserTokenModifyDto. # noqa: E501 - :type: str - """ - if invenio_token is None: - raise ValueError("Invalid value for `invenio_token`, must not be `None`") # noqa: E501 - - self._invenio_token = invenio_token - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(UserTokenModifyDto, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, UserTokenModifyDto): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/swagger/api-authentication/swagger_client/models/user_update_dto.py b/swagger/api-authentication/swagger_client/models/user_update_dto.py deleted file mode 100644 index 24d66d8517df6bcb925bf669f6e2976a563472c5..0000000000000000000000000000000000000000 --- a/swagger/api-authentication/swagger_client/models/user_update_dto.py +++ /dev/null @@ -1,240 +0,0 @@ -# coding: utf-8 - -""" - Database Repository Authentication Service API - - Service that manages the authentication # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -import pprint -import re # noqa: F401 - -import six - -class UserUpdateDto(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'firstname': 'str', - 'lastname': 'str', - 'affiliation': 'str', - 'orcid': 'str', - 'titles_before': 'str', - 'titles_after': 'str' - } - - attribute_map = { - 'firstname': 'firstname', - 'lastname': 'lastname', - 'affiliation': 'affiliation', - 'orcid': 'orcid', - 'titles_before': 'titles_before', - 'titles_after': 'titles_after' - } - - def __init__(self, firstname=None, lastname=None, affiliation=None, orcid=None, titles_before=None, titles_after=None): # noqa: E501 - """UserUpdateDto - a model defined in Swagger""" # noqa: E501 - self._firstname = None - self._lastname = None - self._affiliation = None - self._orcid = None - self._titles_before = None - self._titles_after = None - self.discriminator = None - if firstname is not None: - self.firstname = firstname - if lastname is not None: - self.lastname = lastname - if affiliation is not None: - self.affiliation = affiliation - if orcid is not None: - self.orcid = orcid - if titles_before is not None: - self.titles_before = titles_before - if titles_after is not None: - self.titles_after = titles_after - - @property - def firstname(self): - """Gets the firstname of this UserUpdateDto. # noqa: E501 - - - :return: The firstname of this UserUpdateDto. # noqa: E501 - :rtype: str - """ - return self._firstname - - @firstname.setter - def firstname(self, firstname): - """Sets the firstname of this UserUpdateDto. - - - :param firstname: The firstname of this UserUpdateDto. # noqa: E501 - :type: str - """ - - self._firstname = firstname - - @property - def lastname(self): - """Gets the lastname of this UserUpdateDto. # noqa: E501 - - - :return: The lastname of this UserUpdateDto. # noqa: E501 - :rtype: str - """ - return self._lastname - - @lastname.setter - def lastname(self, lastname): - """Sets the lastname of this UserUpdateDto. - - - :param lastname: The lastname of this UserUpdateDto. # noqa: E501 - :type: str - """ - - self._lastname = lastname - - @property - def affiliation(self): - """Gets the affiliation of this UserUpdateDto. # noqa: E501 - - - :return: The affiliation of this UserUpdateDto. # noqa: E501 - :rtype: str - """ - return self._affiliation - - @affiliation.setter - def affiliation(self, affiliation): - """Sets the affiliation of this UserUpdateDto. - - - :param affiliation: The affiliation of this UserUpdateDto. # noqa: E501 - :type: str - """ - - self._affiliation = affiliation - - @property - def orcid(self): - """Gets the orcid of this UserUpdateDto. # noqa: E501 - - - :return: The orcid of this UserUpdateDto. # noqa: E501 - :rtype: str - """ - return self._orcid - - @orcid.setter - def orcid(self, orcid): - """Sets the orcid of this UserUpdateDto. - - - :param orcid: The orcid of this UserUpdateDto. # noqa: E501 - :type: str - """ - - self._orcid = orcid - - @property - def titles_before(self): - """Gets the titles_before of this UserUpdateDto. # noqa: E501 - - - :return: The titles_before of this UserUpdateDto. # noqa: E501 - :rtype: str - """ - return self._titles_before - - @titles_before.setter - def titles_before(self, titles_before): - """Sets the titles_before of this UserUpdateDto. - - - :param titles_before: The titles_before of this UserUpdateDto. # noqa: E501 - :type: str - """ - - self._titles_before = titles_before - - @property - def titles_after(self): - """Gets the titles_after of this UserUpdateDto. # noqa: E501 - - - :return: The titles_after of this UserUpdateDto. # noqa: E501 - :rtype: str - """ - return self._titles_after - - @titles_after.setter - def titles_after(self, titles_after): - """Sets the titles_after of this UserUpdateDto. - - - :param titles_after: The titles_after of this UserUpdateDto. # noqa: E501 - :type: str - """ - - self._titles_after = titles_after - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(UserUpdateDto, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, UserUpdateDto): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/swagger/api-authentication/swagger_client/rest.py b/swagger/api-authentication/swagger_client/rest.py deleted file mode 100644 index fc46df7c0293982201996d273d0d234057f987f0..0000000000000000000000000000000000000000 --- a/swagger/api-authentication/swagger_client/rest.py +++ /dev/null @@ -1,317 +0,0 @@ -# coding: utf-8 - -""" - Database Repository Authentication Service API - - Service that manages the authentication # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -from __future__ import absolute_import - -import io -import json -import logging -import re -import ssl - -import certifi -# python 2 and python 3 compatibility library -import six -from six.moves.urllib.parse import urlencode - -try: - import urllib3 -except ImportError: - raise ImportError('Swagger python client requires urllib3.') - - -logger = logging.getLogger(__name__) - - -class RESTResponse(io.IOBase): - - def __init__(self, resp): - self.urllib3_response = resp - self.status = resp.status - self.reason = resp.reason - self.data = resp.data - - def getheaders(self): - """Returns a dictionary of the response headers.""" - return self.urllib3_response.getheaders() - - def getheader(self, name, default=None): - """Returns a given response header.""" - return self.urllib3_response.getheader(name, default) - - -class RESTClientObject(object): - - def __init__(self, configuration, pools_size=4, maxsize=None): - # urllib3.PoolManager will pass all kw parameters to connectionpool - # https://github.com/shazow/urllib3/blob/f9409436f83aeb79fbaf090181cd81b784f1b8ce/urllib3/poolmanager.py#L75 # noqa: E501 - # https://github.com/shazow/urllib3/blob/f9409436f83aeb79fbaf090181cd81b784f1b8ce/urllib3/connectionpool.py#L680 # noqa: E501 - # maxsize is the number of requests to host that are allowed in parallel # noqa: E501 - # Custom SSL certificates and client certificates: http://urllib3.readthedocs.io/en/latest/advanced-usage.html # noqa: E501 - - # cert_reqs - if configuration.verify_ssl: - cert_reqs = ssl.CERT_REQUIRED - else: - cert_reqs = ssl.CERT_NONE - - # ca_certs - if configuration.ssl_ca_cert: - ca_certs = configuration.ssl_ca_cert - else: - # if not set certificate file, use Mozilla's root certificates. - ca_certs = certifi.where() - - addition_pool_args = {} - if configuration.assert_hostname is not None: - addition_pool_args['assert_hostname'] = configuration.assert_hostname # noqa: E501 - - if maxsize is None: - if configuration.connection_pool_maxsize is not None: - maxsize = configuration.connection_pool_maxsize - else: - maxsize = 4 - - # https pool manager - if configuration.proxy: - self.pool_manager = urllib3.ProxyManager( - num_pools=pools_size, - maxsize=maxsize, - cert_reqs=cert_reqs, - ca_certs=ca_certs, - cert_file=configuration.cert_file, - key_file=configuration.key_file, - proxy_url=configuration.proxy, - **addition_pool_args - ) - else: - self.pool_manager = urllib3.PoolManager( - num_pools=pools_size, - maxsize=maxsize, - cert_reqs=cert_reqs, - ca_certs=ca_certs, - cert_file=configuration.cert_file, - key_file=configuration.key_file, - **addition_pool_args - ) - - def request(self, method, url, query_params=None, headers=None, - body=None, post_params=None, _preload_content=True, - _request_timeout=None): - """Perform requests. - - :param method: http request method - :param url: http request url - :param query_params: query parameters in the url - :param headers: http request headers - :param body: request json body, for `application/json` - :param post_params: request post parameters, - `application/x-www-form-urlencoded` - and `multipart/form-data` - :param _preload_content: if False, the urllib3.HTTPResponse object will - be returned without reading/decoding response - data. Default is True. - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - """ - method = method.upper() - assert method in ['GET', 'HEAD', 'DELETE', 'POST', 'PUT', - 'PATCH', 'OPTIONS'] - - if post_params and body: - raise ValueError( - "body parameter cannot be used with post_params parameter." - ) - - post_params = post_params or {} - headers = headers or {} - - timeout = None - if _request_timeout: - if isinstance(_request_timeout, (int, ) if six.PY3 else (int, long)): # noqa: E501,F821 - timeout = urllib3.Timeout(total=_request_timeout) - elif (isinstance(_request_timeout, tuple) and - len(_request_timeout) == 2): - timeout = urllib3.Timeout( - connect=_request_timeout[0], read=_request_timeout[1]) - - if 'Content-Type' not in headers: - headers['Content-Type'] = 'application/json' - - try: - # For `POST`, `PUT`, `PATCH`, `OPTIONS`, `DELETE` - if method in ['POST', 'PUT', 'PATCH', 'OPTIONS', 'DELETE']: - if query_params: - url += '?' + urlencode(query_params) - if re.search('json', headers['Content-Type'], re.IGNORECASE): - request_body = '{}' - if body is not None: - request_body = json.dumps(body) - r = self.pool_manager.request( - method, url, - body=request_body, - preload_content=_preload_content, - timeout=timeout, - headers=headers) - elif headers['Content-Type'] == 'application/x-www-form-urlencoded': # noqa: E501 - r = self.pool_manager.request( - method, url, - fields=post_params, - encode_multipart=False, - preload_content=_preload_content, - timeout=timeout, - headers=headers) - elif headers['Content-Type'] == 'multipart/form-data': - # must del headers['Content-Type'], or the correct - # Content-Type which generated by urllib3 will be - # overwritten. - del headers['Content-Type'] - r = self.pool_manager.request( - method, url, - fields=post_params, - encode_multipart=True, - preload_content=_preload_content, - timeout=timeout, - headers=headers) - # Pass a `string` parameter directly in the body to support - # other content types than Json when `body` argument is - # provided in serialized form - elif isinstance(body, str): - request_body = body - r = self.pool_manager.request( - method, url, - body=request_body, - preload_content=_preload_content, - timeout=timeout, - headers=headers) - else: - # Cannot generate the request from given parameters - msg = """Cannot prepare a request message for provided - arguments. Please check that your arguments match - declared content type.""" - raise ApiException(status=0, reason=msg) - # For `GET`, `HEAD` - else: - r = self.pool_manager.request(method, url, - fields=query_params, - preload_content=_preload_content, - timeout=timeout, - headers=headers) - except urllib3.exceptions.SSLError as e: - msg = "{0}\n{1}".format(type(e).__name__, str(e)) - raise ApiException(status=0, reason=msg) - - if _preload_content: - r = RESTResponse(r) - - # log response body - logger.debug("response body: %s", r.data) - - if not 200 <= r.status <= 299: - raise ApiException(http_resp=r) - - return r - - def GET(self, url, headers=None, query_params=None, _preload_content=True, - _request_timeout=None): - return self.request("GET", url, - headers=headers, - _preload_content=_preload_content, - _request_timeout=_request_timeout, - query_params=query_params) - - def HEAD(self, url, headers=None, query_params=None, _preload_content=True, - _request_timeout=None): - return self.request("HEAD", url, - headers=headers, - _preload_content=_preload_content, - _request_timeout=_request_timeout, - query_params=query_params) - - def OPTIONS(self, url, headers=None, query_params=None, post_params=None, - body=None, _preload_content=True, _request_timeout=None): - return self.request("OPTIONS", url, - headers=headers, - query_params=query_params, - post_params=post_params, - _preload_content=_preload_content, - _request_timeout=_request_timeout, - body=body) - - def DELETE(self, url, headers=None, query_params=None, body=None, - _preload_content=True, _request_timeout=None): - return self.request("DELETE", url, - headers=headers, - query_params=query_params, - _preload_content=_preload_content, - _request_timeout=_request_timeout, - body=body) - - def POST(self, url, headers=None, query_params=None, post_params=None, - body=None, _preload_content=True, _request_timeout=None): - return self.request("POST", url, - headers=headers, - query_params=query_params, - post_params=post_params, - _preload_content=_preload_content, - _request_timeout=_request_timeout, - body=body) - - def PUT(self, url, headers=None, query_params=None, post_params=None, - body=None, _preload_content=True, _request_timeout=None): - return self.request("PUT", url, - headers=headers, - query_params=query_params, - post_params=post_params, - _preload_content=_preload_content, - _request_timeout=_request_timeout, - body=body) - - def PATCH(self, url, headers=None, query_params=None, post_params=None, - body=None, _preload_content=True, _request_timeout=None): - return self.request("PATCH", url, - headers=headers, - query_params=query_params, - post_params=post_params, - _preload_content=_preload_content, - _request_timeout=_request_timeout, - body=body) - - -class ApiException(Exception): - - def __init__(self, status=None, reason=None, http_resp=None): - if http_resp: - self.status = http_resp.status - self.reason = http_resp.reason - self.body = http_resp.data - self.headers = http_resp.getheaders() - else: - self.status = status - self.reason = reason - self.body = None - self.headers = None - - def __str__(self): - """Custom error messages for exception""" - error_message = "({0})\n"\ - "Reason: {1}\n".format(self.status, self.reason) - if self.headers: - error_message += "HTTP response headers: {0}\n".format( - self.headers) - - if self.body: - error_message += "HTTP response body: {0}\n".format(self.body) - - return error_message diff --git a/swagger/api-authentication/test-requirements.txt b/swagger/api-authentication/test-requirements.txt deleted file mode 100644 index 2702246c0e6f92a1c41c0960879e07da339e4b7d..0000000000000000000000000000000000000000 --- a/swagger/api-authentication/test-requirements.txt +++ /dev/null @@ -1,5 +0,0 @@ -coverage>=4.0.3 -nose>=1.3.7 -pluggy>=0.3.1 -py>=1.4.31 -randomize>=0.13 diff --git a/swagger/api-authentication/test/__init__.py b/swagger/api-authentication/test/__init__.py deleted file mode 100644 index e69de29bb2d1d6434b8b29ae775ad8c2e48c5391..0000000000000000000000000000000000000000 diff --git a/swagger/api-authentication/test/test_api_error_dto.py b/swagger/api-authentication/test/test_api_error_dto.py deleted file mode 100644 index ad71f998f74d8aedda7990c430586d70fc2cef2c..0000000000000000000000000000000000000000 --- a/swagger/api-authentication/test/test_api_error_dto.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Database Repository Authentication Service API - - Service that manages the authentication # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -from __future__ import absolute_import - -import unittest - -import api_container -from api_container.models.api_error_dto import ApiErrorDto # noqa: E501 -from api_container.rest import ApiException - - -class TestApiErrorDto(unittest.TestCase): - """ApiErrorDto unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testApiErrorDto(self): - """Test ApiErrorDto""" - # FIXME: construct object with mandatory attributes with example values - # model = api_container.models.api_error_dto.ApiErrorDto() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/swagger/api-authentication/test/test_authentication_endpoint_api.py b/swagger/api-authentication/test/test_authentication_endpoint_api.py deleted file mode 100644 index 8a98375b0fb5ce4422b5a88579f9f2ffe53c430a..0000000000000000000000000000000000000000 --- a/swagger/api-authentication/test/test_authentication_endpoint_api.py +++ /dev/null @@ -1,54 +0,0 @@ -# coding: utf-8 - -""" - Database Repository Authentication Service API - - Service that manages the authentication # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -from __future__ import absolute_import - -import unittest - -import api_container -from api_container.api.authentication_endpoint_api import AuthenticationEndpointApi # noqa: E501 -from api_container.rest import ApiException - - -class TestAuthenticationEndpointApi(unittest.TestCase): - """AuthenticationEndpointApi unit test stubs""" - - def setUp(self): - self.api = AuthenticationEndpointApi() # noqa: E501 - - def tearDown(self): - pass - - def test_authenticate_user(self): - """Test case for authenticate_user - - Validate token # noqa: E501 - """ - pass - - def test_authenticate_user1(self): - """Test case for authenticate_user1 - - Create token # noqa: E501 - """ - pass - - def test_re_authenticate_user(self): - """Test case for re_authenticate_user - - Renew token # noqa: E501 - """ - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/swagger/api-authentication/test/test_column_dto.py b/swagger/api-authentication/test/test_column_dto.py deleted file mode 100644 index bfca4ea0edd3c465080ed791e34f7d90fcf74770..0000000000000000000000000000000000000000 --- a/swagger/api-authentication/test/test_column_dto.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Database Repository Authentication Service API - - Service that manages the authentication # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -from __future__ import absolute_import - -import unittest - -import api_container -from api_container.models.column_dto import ColumnDto # noqa: E501 -from api_container.rest import ApiException - - -class TestColumnDto(unittest.TestCase): - """ColumnDto unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testColumnDto(self): - """Test ColumnDto""" - # FIXME: construct object with mandatory attributes with example values - # model = api_container.models.column_dto.ColumnDto() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/swagger/api-authentication/test/test_concept_dto.py b/swagger/api-authentication/test/test_concept_dto.py deleted file mode 100644 index cb5e55d376f7d8cdea5dc92f47115847a488531e..0000000000000000000000000000000000000000 --- a/swagger/api-authentication/test/test_concept_dto.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Database Repository Authentication Service API - - Service that manages the authentication # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -from __future__ import absolute_import - -import unittest - -import api_container -from api_container.models.concept_dto import ConceptDto # noqa: E501 -from api_container.rest import ApiException - - -class TestConceptDto(unittest.TestCase): - """ConceptDto unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testConceptDto(self): - """Test ConceptDto""" - # FIXME: construct object with mandatory attributes with example values - # model = api_container.models.concept_dto.ConceptDto() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/swagger/api-authentication/test/test_container_dto.py b/swagger/api-authentication/test/test_container_dto.py deleted file mode 100644 index bd9a6c7476df8f8adc16c3862ccd0d1115013160..0000000000000000000000000000000000000000 --- a/swagger/api-authentication/test/test_container_dto.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Database Repository Authentication Service API - - Service that manages the authentication # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -from __future__ import absolute_import - -import unittest - -import api_container -from api_container.models.container_dto import ContainerDto # noqa: E501 -from api_container.rest import ApiException - - -class TestContainerDto(unittest.TestCase): - """ContainerDto unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testContainerDto(self): - """Test ContainerDto""" - # FIXME: construct object with mandatory attributes with example values - # model = api_container.models.container_dto.ContainerDto() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/swagger/api-authentication/test/test_database_dto.py b/swagger/api-authentication/test/test_database_dto.py deleted file mode 100644 index 73bd4c56c9096a139dda38db598fd6715091a0e8..0000000000000000000000000000000000000000 --- a/swagger/api-authentication/test/test_database_dto.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Database Repository Authentication Service API - - Service that manages the authentication # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -from __future__ import absolute_import - -import unittest - -import api_container -from api_container.models.database_dto import DatabaseDto # noqa: E501 -from api_container.rest import ApiException - - -class TestDatabaseDto(unittest.TestCase): - """DatabaseDto unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testDatabaseDto(self): - """Test DatabaseDto""" - # FIXME: construct object with mandatory attributes with example values - # model = api_container.models.database_dto.DatabaseDto() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/swagger/api-authentication/test/test_granted_authority_dto.py b/swagger/api-authentication/test/test_granted_authority_dto.py deleted file mode 100644 index 46792685c1173f4b50dc0406e422c73c1f61646e..0000000000000000000000000000000000000000 --- a/swagger/api-authentication/test/test_granted_authority_dto.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Database Repository Authentication Service API - - Service that manages the authentication # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -from __future__ import absolute_import - -import unittest - -import api_container -from api_container.models.granted_authority_dto import GrantedAuthorityDto # noqa: E501 -from api_container.rest import ApiException - - -class TestGrantedAuthorityDto(unittest.TestCase): - """GrantedAuthorityDto unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testGrantedAuthorityDto(self): - """Test GrantedAuthorityDto""" - # FIXME: construct object with mandatory attributes with example values - # model = api_container.models.granted_authority_dto.GrantedAuthorityDto() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/swagger/api-authentication/test/test_image_brief_dto.py b/swagger/api-authentication/test/test_image_brief_dto.py deleted file mode 100644 index afab42900acf404eec02a05f6905b9ccd2c2e4cc..0000000000000000000000000000000000000000 --- a/swagger/api-authentication/test/test_image_brief_dto.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Database Repository Authentication Service API - - Service that manages the authentication # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -from __future__ import absolute_import - -import unittest - -import swagger_client -from swagger_client.models.image_brief_dto import ImageBriefDto # noqa: E501 -from swagger_client.rest import ApiException - - -class TestImageBriefDto(unittest.TestCase): - """ImageBriefDto unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testImageBriefDto(self): - """Test ImageBriefDto""" - # FIXME: construct object with mandatory attributes with example values - # model = swagger_client.models.image_brief_dto.ImageBriefDto() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/swagger/api-authentication/test/test_image_date_dto.py b/swagger/api-authentication/test/test_image_date_dto.py deleted file mode 100644 index 338b6e0f0c3cd44fc7f5d0c7d359ea17ad50472c..0000000000000000000000000000000000000000 --- a/swagger/api-authentication/test/test_image_date_dto.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Database Repository Authentication Service API - - Service that manages the authentication # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -from __future__ import absolute_import - -import unittest - -import api_container -from api_container.models.image_date_dto import ImageDateDto # noqa: E501 -from api_container.rest import ApiException - - -class TestImageDateDto(unittest.TestCase): - """ImageDateDto unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testImageDateDto(self): - """Test ImageDateDto""" - # FIXME: construct object with mandatory attributes with example values - # model = api_container.models.image_date_dto.ImageDateDto() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/swagger/api-authentication/test/test_image_dto.py b/swagger/api-authentication/test/test_image_dto.py deleted file mode 100644 index c19ef3fb83a8fbfd8fa4a6bd3a4c65725e95456d..0000000000000000000000000000000000000000 --- a/swagger/api-authentication/test/test_image_dto.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Database Repository Authentication Service API - - Service that manages the authentication # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -from __future__ import absolute_import - -import unittest - -import api_container -from api_container.models.image_dto import ImageDto # noqa: E501 -from api_container.rest import ApiException - - -class TestImageDto(unittest.TestCase): - """ImageDto unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testImageDto(self): - """Test ImageDto""" - # FIXME: construct object with mandatory attributes with example values - # model = api_container.models.image_dto.ImageDto() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/swagger/api-authentication/test/test_image_env_item_dto.py b/swagger/api-authentication/test/test_image_env_item_dto.py deleted file mode 100644 index a1c335a6752b8de14cfb2ae1ae873a016de73567..0000000000000000000000000000000000000000 --- a/swagger/api-authentication/test/test_image_env_item_dto.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Database Repository Authentication Service API - - Service that manages the authentication # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -from __future__ import absolute_import - -import unittest - -import api_container -from api_container.models.image_env_item_dto import ImageEnvItemDto # noqa: E501 -from api_container.rest import ApiException - - -class TestImageEnvItemDto(unittest.TestCase): - """ImageEnvItemDto unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testImageEnvItemDto(self): - """Test ImageEnvItemDto""" - # FIXME: construct object with mandatory attributes with example values - # model = api_container.models.image_env_item_dto.ImageEnvItemDto() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/swagger/api-authentication/test/test_jwt_response_dto.py b/swagger/api-authentication/test/test_jwt_response_dto.py deleted file mode 100644 index 0a5812ccb78deb7d4da80ee867b32ffa4a93cbe0..0000000000000000000000000000000000000000 --- a/swagger/api-authentication/test/test_jwt_response_dto.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Database Repository Authentication Service API - - Service that manages the authentication # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -from __future__ import absolute_import - -import unittest - -import api_container -from api_container.models.jwt_response_dto import JwtResponseDto # noqa: E501 -from api_container.rest import ApiException - - -class TestJwtResponseDto(unittest.TestCase): - """JwtResponseDto unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testJwtResponseDto(self): - """Test JwtResponseDto""" - # FIXME: construct object with mandatory attributes with example values - # model = api_container.models.jwt_response_dto.JwtResponseDto() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/swagger/api-authentication/test/test_license_dto.py b/swagger/api-authentication/test/test_license_dto.py deleted file mode 100644 index c70c7a4f616a610e336a3770732c7bf3fc829909..0000000000000000000000000000000000000000 --- a/swagger/api-authentication/test/test_license_dto.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Database Repository Authentication Service API - - Service that manages the authentication # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -from __future__ import absolute_import - -import unittest - -import swagger_client -from swagger_client.models.license_dto import LicenseDto # noqa: E501 -from swagger_client.rest import ApiException - - -class TestLicenseDto(unittest.TestCase): - """LicenseDto unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testLicenseDto(self): - """Test LicenseDto""" - # FIXME: construct object with mandatory attributes with example values - # model = swagger_client.models.license_dto.LicenseDto() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/swagger/api-authentication/test/test_login_request_dto.py b/swagger/api-authentication/test/test_login_request_dto.py deleted file mode 100644 index e1d4b10114d22e28713fffadb43c0209001f83f8..0000000000000000000000000000000000000000 --- a/swagger/api-authentication/test/test_login_request_dto.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Database Repository Authentication Service API - - Service that manages the authentication # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -from __future__ import absolute_import - -import unittest - -import api_container -from api_container.models.login_request_dto import LoginRequestDto # noqa: E501 -from api_container.rest import ApiException - - -class TestLoginRequestDto(unittest.TestCase): - """LoginRequestDto unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testLoginRequestDto(self): - """Test LoginRequestDto""" - # FIXME: construct object with mandatory attributes with example values - # model = api_container.models.login_request_dto.LoginRequestDto() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/swagger/api-authentication/test/test_signup_request_dto.py b/swagger/api-authentication/test/test_signup_request_dto.py deleted file mode 100644 index a93d3122d45cc643fa69e3fc503ee24603a04146..0000000000000000000000000000000000000000 --- a/swagger/api-authentication/test/test_signup_request_dto.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Database Repository Authentication Service API - - Service that manages the authentication # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -from __future__ import absolute_import - -import unittest - -import api_container -from api_container.models.signup_request_dto import SignupRequestDto # noqa: E501 -from api_container.rest import ApiException - - -class TestSignupRequestDto(unittest.TestCase): - """SignupRequestDto unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testSignupRequestDto(self): - """Test SignupRequestDto""" - # FIXME: construct object with mandatory attributes with example values - # model = api_container.models.signup_request_dto.SignupRequestDto() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/swagger/api-authentication/test/test_table_brief_dto.py b/swagger/api-authentication/test/test_table_brief_dto.py deleted file mode 100644 index 91bd227b1696f6e9551d846bda91f2e073778733..0000000000000000000000000000000000000000 --- a/swagger/api-authentication/test/test_table_brief_dto.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Database Repository Authentication Service API - - Service that manages the authentication # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -from __future__ import absolute_import - -import unittest - -import swagger_client -from swagger_client.models.table_brief_dto import TableBriefDto # noqa: E501 -from swagger_client.rest import ApiException - - -class TestTableBriefDto(unittest.TestCase): - """TableBriefDto unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testTableBriefDto(self): - """Test TableBriefDto""" - # FIXME: construct object with mandatory attributes with example values - # model = swagger_client.models.table_brief_dto.TableBriefDto() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/swagger/api-authentication/test/test_table_dto.py b/swagger/api-authentication/test/test_table_dto.py deleted file mode 100644 index 7a13d5be1836120c6549d3be8140f961fb9a3073..0000000000000000000000000000000000000000 --- a/swagger/api-authentication/test/test_table_dto.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Database Repository Authentication Service API - - Service that manages the authentication # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -from __future__ import absolute_import - -import unittest - -import api_container -from api_container.models.table_dto import TableDto # noqa: E501 -from api_container.rest import ApiException - - -class TestTableDto(unittest.TestCase): - """TableDto unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testTableDto(self): - """Test TableDto""" - # FIXME: construct object with mandatory attributes with example values - # model = api_container.models.table_dto.TableDto() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/swagger/api-authentication/test/test_token_endpoint_api.py b/swagger/api-authentication/test/test_token_endpoint_api.py deleted file mode 100644 index cbabf30af442dae12c71e44afcddff000fc9e790..0000000000000000000000000000000000000000 --- a/swagger/api-authentication/test/test_token_endpoint_api.py +++ /dev/null @@ -1,47 +0,0 @@ -# coding: utf-8 - -""" - Database Repository Authentication Service API - - Service that manages the authentication # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -from __future__ import absolute_import - -import unittest - -import swagger_client -from swagger_client.api.token_endpoint_api import TokenEndpointApi # noqa: E501 -from swagger_client.rest import ApiException - - -class TestTokenEndpointApi(unittest.TestCase): - """TokenEndpointApi unit test stubs""" - - def setUp(self): - self.api = TokenEndpointApi() # noqa: E501 - - def tearDown(self): - pass - - def test_resend(self): - """Test case for resend - - resend user token # noqa: E501 - """ - pass - - def test_verify_email(self): - """Test case for verify_email - - verify user email # noqa: E501 - """ - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/swagger/api-authentication/test/test_user_brief_dto.py b/swagger/api-authentication/test/test_user_brief_dto.py deleted file mode 100644 index b69c455cf75c2f4d78f4ff2d4b2931adb204e3b0..0000000000000000000000000000000000000000 --- a/swagger/api-authentication/test/test_user_brief_dto.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Database Repository Authentication Service API - - Service that manages the authentication # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -from __future__ import absolute_import - -import unittest - -import swagger_client -from swagger_client.models.user_brief_dto import UserBriefDto # noqa: E501 -from swagger_client.rest import ApiException - - -class TestUserBriefDto(unittest.TestCase): - """UserBriefDto unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testUserBriefDto(self): - """Test UserBriefDto""" - # FIXME: construct object with mandatory attributes with example values - # model = swagger_client.models.user_brief_dto.UserBriefDto() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/swagger/api-authentication/test/test_user_dto.py b/swagger/api-authentication/test/test_user_dto.py deleted file mode 100644 index 5a4cbe82d2654dacbd25c306599072a45498e7e0..0000000000000000000000000000000000000000 --- a/swagger/api-authentication/test/test_user_dto.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Database Repository Authentication Service API - - Service that manages the authentication # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -from __future__ import absolute_import - -import unittest - -import api_container -from api_container.models.user_dto import UserDto # noqa: E501 -from api_container.rest import ApiException - - -class TestUserDto(unittest.TestCase): - """UserDto unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testUserDto(self): - """Test UserDto""" - # FIXME: construct object with mandatory attributes with example values - # model = api_container.models.user_dto.UserDto() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/swagger/api-authentication/test/test_user_email_dto.py b/swagger/api-authentication/test/test_user_email_dto.py deleted file mode 100644 index a5772ad65d9f5d12a46ca70f490d232569bced73..0000000000000000000000000000000000000000 --- a/swagger/api-authentication/test/test_user_email_dto.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Database Repository Authentication Service API - - Service that manages the authentication # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -from __future__ import absolute_import - -import unittest - -import swagger_client -from swagger_client.models.user_email_dto import UserEmailDto # noqa: E501 -from swagger_client.rest import ApiException - - -class TestUserEmailDto(unittest.TestCase): - """UserEmailDto unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testUserEmailDto(self): - """Test UserEmailDto""" - # FIXME: construct object with mandatory attributes with example values - # model = swagger_client.models.user_email_dto.UserEmailDto() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/swagger/api-authentication/test/test_user_endpoint_api.py b/swagger/api-authentication/test/test_user_endpoint_api.py deleted file mode 100644 index 88ccb47c545babbc955a8990a490cfe3a3f46b60..0000000000000000000000000000000000000000 --- a/swagger/api-authentication/test/test_user_endpoint_api.py +++ /dev/null @@ -1,47 +0,0 @@ -# coding: utf-8 - -""" - Database Repository Authentication Service API - - Service that manages the authentication # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -from __future__ import absolute_import - -import unittest - -import api_container -from api_container.api.user_endpoint_api import UserEndpointApi # noqa: E501 -from api_container.rest import ApiException - - -class TestUserEndpointApi(unittest.TestCase): - """UserEndpointApi unit test stubs""" - - def setUp(self): - self.api = UserEndpointApi() # noqa: E501 - - def tearDown(self): - pass - - def test_list(self): - """Test case for list - - List users # noqa: E501 - """ - pass - - def test_register(self): - """Test case for register - - Create user # noqa: E501 - """ - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/swagger/api-authentication/test/test_user_forgot_dto.py b/swagger/api-authentication/test/test_user_forgot_dto.py deleted file mode 100644 index b9d60bd0486d9d3f8405b83ac7c5f1961187d0c8..0000000000000000000000000000000000000000 --- a/swagger/api-authentication/test/test_user_forgot_dto.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Database Repository Authentication Service API - - Service that manages the authentication # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -from __future__ import absolute_import - -import unittest - -import swagger_client -from swagger_client.models.user_forgot_dto import UserForgotDto # noqa: E501 -from swagger_client.rest import ApiException - - -class TestUserForgotDto(unittest.TestCase): - """UserForgotDto unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testUserForgotDto(self): - """Test UserForgotDto""" - # FIXME: construct object with mandatory attributes with example values - # model = swagger_client.models.user_forgot_dto.UserForgotDto() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/swagger/api-authentication/test/test_user_password_dto.py b/swagger/api-authentication/test/test_user_password_dto.py deleted file mode 100644 index 38a845f0c8cf333fbe6163d7016cb3f026cfc7f9..0000000000000000000000000000000000000000 --- a/swagger/api-authentication/test/test_user_password_dto.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Database Repository Authentication Service API - - Service that manages the authentication # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -from __future__ import absolute_import - -import unittest - -import swagger_client -from swagger_client.models.user_password_dto import UserPasswordDto # noqa: E501 -from swagger_client.rest import ApiException - - -class TestUserPasswordDto(unittest.TestCase): - """UserPasswordDto unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testUserPasswordDto(self): - """Test UserPasswordDto""" - # FIXME: construct object with mandatory attributes with example values - # model = swagger_client.models.user_password_dto.UserPasswordDto() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/swagger/api-authentication/test/test_user_reset_dto.py b/swagger/api-authentication/test/test_user_reset_dto.py deleted file mode 100644 index bf097d05a6b62e256f2d3339f22fd74558e38bec..0000000000000000000000000000000000000000 --- a/swagger/api-authentication/test/test_user_reset_dto.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Database Repository Authentication Service API - - Service that manages the authentication # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -from __future__ import absolute_import - -import unittest - -import swagger_client -from swagger_client.models.user_reset_dto import UserResetDto # noqa: E501 -from swagger_client.rest import ApiException - - -class TestUserResetDto(unittest.TestCase): - """UserResetDto unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testUserResetDto(self): - """Test UserResetDto""" - # FIXME: construct object with mandatory attributes with example values - # model = swagger_client.models.user_reset_dto.UserResetDto() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/swagger/api-authentication/test/test_user_roles_dto.py b/swagger/api-authentication/test/test_user_roles_dto.py deleted file mode 100644 index 2e51168aa3f508dab3b7224908691631dfdd53c9..0000000000000000000000000000000000000000 --- a/swagger/api-authentication/test/test_user_roles_dto.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Database Repository Authentication Service API - - Service that manages the authentication # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -from __future__ import absolute_import - -import unittest - -import swagger_client -from swagger_client.models.user_roles_dto import UserRolesDto # noqa: E501 -from swagger_client.rest import ApiException - - -class TestUserRolesDto(unittest.TestCase): - """UserRolesDto unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testUserRolesDto(self): - """Test UserRolesDto""" - # FIXME: construct object with mandatory attributes with example values - # model = swagger_client.models.user_roles_dto.UserRolesDto() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/swagger/api-authentication/test/test_user_theme_set_dto.py b/swagger/api-authentication/test/test_user_theme_set_dto.py deleted file mode 100644 index fdf632335b038d8e03e24ea31bce37c1f0e661d7..0000000000000000000000000000000000000000 --- a/swagger/api-authentication/test/test_user_theme_set_dto.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Database Repository Authentication Service API - - Service that manages the authentication # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -from __future__ import absolute_import - -import unittest - -import swagger_client -from swagger_client.models.user_theme_set_dto import UserThemeSetDto # noqa: E501 -from swagger_client.rest import ApiException - - -class TestUserThemeSetDto(unittest.TestCase): - """UserThemeSetDto unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testUserThemeSetDto(self): - """Test UserThemeSetDto""" - # FIXME: construct object with mandatory attributes with example values - # model = swagger_client.models.user_theme_set_dto.UserThemeSetDto() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/swagger/api-authentication/test/test_user_token_modify_dto.py b/swagger/api-authentication/test/test_user_token_modify_dto.py deleted file mode 100644 index 519f9e8769341cf9a985536c3e22e6762842dde4..0000000000000000000000000000000000000000 --- a/swagger/api-authentication/test/test_user_token_modify_dto.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Database Repository Authentication Service API - - Service that manages the authentication # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -from __future__ import absolute_import - -import unittest - -import swagger_client -from swagger_client.models.user_token_modify_dto import UserTokenModifyDto # noqa: E501 -from swagger_client.rest import ApiException - - -class TestUserTokenModifyDto(unittest.TestCase): - """UserTokenModifyDto unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testUserTokenModifyDto(self): - """Test UserTokenModifyDto""" - # FIXME: construct object with mandatory attributes with example values - # model = swagger_client.models.user_token_modify_dto.UserTokenModifyDto() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/swagger/api-authentication/test/test_user_update_dto.py b/swagger/api-authentication/test/test_user_update_dto.py deleted file mode 100644 index 47a8056f7b2c9c9400cff4b06fc8485cdd708549..0000000000000000000000000000000000000000 --- a/swagger/api-authentication/test/test_user_update_dto.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Database Repository Authentication Service API - - Service that manages the authentication # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -from __future__ import absolute_import - -import unittest - -import swagger_client -from swagger_client.models.user_update_dto import UserUpdateDto # noqa: E501 -from swagger_client.rest import ApiException - - -class TestUserUpdateDto(unittest.TestCase): - """UserUpdateDto unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testUserUpdateDto(self): - """Test UserUpdateDto""" - # FIXME: construct object with mandatory attributes with example values - # model = swagger_client.models.user_update_dto.UserUpdateDto() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/swagger/api-authentication/tox.ini b/swagger/api-authentication/tox.ini deleted file mode 100644 index a310bec97d689718c92c84c9aebc6ab031f12933..0000000000000000000000000000000000000000 --- a/swagger/api-authentication/tox.ini +++ /dev/null @@ -1,10 +0,0 @@ -[tox] -envlist = py3 - -[testenv] -deps=-r{toxinidir}/requirements.txt - -r{toxinidir}/test-requirements.txt - -commands= - nosetests \ - [] diff --git a/swagger/api-container.yaml b/swagger/api-container.yaml index 47b6cff1ac42b9260880866067ef0f4f8bf8ceed..9c7ce4b61d10456c79bdef60a34c463a002615e1 100644 --- a/swagger/api-container.yaml +++ b/swagger/api-container.yaml @@ -533,7 +533,6 @@ components: properties: status: type: string - example: NOT_FOUND enum: - 100 CONTINUE - 101 SWITCHING_PROTOCOLS @@ -605,15 +604,14 @@ components: - 511 NETWORK_AUTHENTICATION_REQUIRED message: type: string - example: Could not find container code: type: string - example: error.container.notfound ImageChangeDto: required: - dialect - driver_class - jdbc_method + - logo type: object properties: defaultPort: @@ -621,25 +619,22 @@ components: minimum: 1024 type: integer format: int32 - example: 5432 environment: type: array items: $ref: '#/components/schemas/ImageEnvItemDto' + logo: + type: string dialect: type: string - example: Postgres driver_class: type: string - example: org.postgresql.Driver jdbc_method: type: string - example: postgresql ImageEnvItemDto: required: - iid - key - - type - value type: object properties: @@ -648,18 +643,15 @@ components: format: int64 key: type: string - example: MARIADB_ROOT_PASSWORD value: type: string - example: mariadb type: type: string - example: PRIVILEGED_PASSWORD enum: - - username - - password - - privileged_username - - privileged_password + - USERNAME + - PASSWORD + - PRIVILEGED_USERNAME + - PRIVILEGED_PASSWORD ImageDateDto: required: - database_format @@ -674,16 +666,12 @@ components: format: int64 example: type: string - example: 30.01.2022 database_format: type: string - example: '%d.%c.%Y' unix_format: type: string - example: dd.MM.YYYY has_time: type: boolean - example: false created_at: type: string format: date-time @@ -704,41 +692,32 @@ components: format: int64 repository: type: string - example: mariadb tag: type: string - example: "10.5" dialect: type: string - example: org.hibernate.dialect.MariaDBDialect hash: type: string - example: sha256:c5ec7353d87dfc35067e7bffeb25d6a0d52dad41e8b7357213e3b12d6e7ff78e compiled: type: string format: date-time - example: 2021-03-12T15:26:21.678396092Z size: type: integer - example: 314295447 environment: type: array items: $ref: '#/components/schemas/ImageEnvItemDto' driver_class: type: string - example: org.mariadb.jdbc.Driver date_formats: type: array items: $ref: '#/components/schemas/ImageDateDto' jdbc_method: type: string - example: mariadb default_port: type: integer format: int32 - example: 3306 ContainerChangeDto: required: - action @@ -762,10 +741,8 @@ components: format: int64 hash: type: string - example: f829dd8a884182d0da846f365dee1221fd16610a14c81b8f9f295ff162749e50 name: type: string - example: Air Quality creator: $ref: '#/components/schemas/UserBriefDto' created: @@ -773,7 +750,6 @@ components: format: date-time internal_name: type: string - example: air-quality UserBriefDto: required: - email_verified @@ -787,48 +763,44 @@ components: format: int64 username: type: string - description: Only contains lowercase characters - example: user firstname: type: string - example: Josiah lastname: type: string - example: Carberry affiliation: type: string - example: Brown University orcid: type: string - example: 0000-0002-1825-0097 titles_before: type: string - example: Prof. titles_after: type: string theme_dark: type: boolean - example: true email_verified: type: boolean - example: true ImageCreateDto: required: - default_port - dialect - driver_class - jdbc_method + - local + - logo - repository - tag type: object properties: repository: type: string - example: mariadb tag: type: string dialect: type: string + logo: + type: string + local: + type: boolean environment: type: array items: @@ -849,13 +821,10 @@ components: properties: name: type: string - example: Air Quality repository: type: string - example: mariadb tag: type: string - example: "10.5" ImageBriefDto: required: - id @@ -868,10 +837,8 @@ components: format: int64 repository: type: string - example: mariadb tag: type: string - example: "10.5" ContainerDto: required: - created @@ -886,20 +853,17 @@ components: format: int64 hash: type: string - example: f829dd8a884182d0da846f365dee1221fd16610a14c81b8f9f295ff162749e50 name: type: string - example: Air Quality state: type: string - example: running enum: - - created - - restarting - - running - - paused - - exited - - dead + - ContainerStateDto.CREATED + - ContainerStateDto.RESTARTING + - ContainerStateDto.RUNNING + - ContainerStateDto.PAUSED + - ContainerStateDto.EXITED + - ContainerStateDto.DEAD databases: type: array items: @@ -912,15 +876,14 @@ components: created: type: string format: date-time - example: 2021-03-12T15:26:21.678396092Z internal_name: type: string - example: air-quality ip_address: type: string DatabaseDto: required: - creator + - description - exchange - id - internal_name @@ -930,23 +893,21 @@ components: id: type: integer format: int64 + example: 1 name: type: string - example: Air Quality + example: Weather Australia exchange: type: string - example: air_quality creator: $ref: '#/components/schemas/UserBriefDto' subjects: type: array - description: database subjects items: type: string - description: database subjects language: type: string - example: en + example: EN enum: - ab - aa @@ -1136,7 +1097,7 @@ components: $ref: '#/components/schemas/LicenseDto' description: type: string - example: Air Quality in Austria + example: Weather Australia 2009-2021 publisher: type: string example: TU Wien @@ -1158,32 +1119,23 @@ components: format: date-time internal_name: type: string - example: air_quality + example: weather_australia publication_year: type: integer - description: database publication year format: int32 - example: 2022 publication_month: type: integer - description: database publication month format: int32 - example: 12 publication_day: type: integer - description: database publication day format: int32 - example: 15 is_public: type: boolean - description: database publicity - example: true GrantedAuthorityDto: type: object properties: authority: type: string - example: ROLE_RESEARCHER LicenseDto: required: - identifier @@ -1192,10 +1144,9 @@ components: properties: identifier: type: string - example: MIT uri: type: string - example: https://opensource.org/licenses/MIT + example: MIT2 TableBriefDto: required: - creator @@ -1209,12 +1160,10 @@ components: format: int64 name: type: string - example: Air Quality creator: $ref: '#/components/schemas/UserBriefDto' internal_name: type: string - example: air_quality UserDto: required: - email @@ -1233,20 +1182,14 @@ components: $ref: '#/components/schemas/GrantedAuthorityDto' username: type: string - description: Only contains lowercase characters - example: jcarberry firstname: type: string - example: Josiah lastname: type: string - example: Carberry affiliation: type: string - example: Brown University orcid: type: string - example: 0000-0002-1825-0097 containers: type: array items: @@ -1261,18 +1204,14 @@ components: $ref: '#/components/schemas/ContainerDto' email: type: string - example: jcarberry@brown.edu titles_before: type: string - example: Prof. titles_after: type: string theme_dark: type: boolean - example: true email_verified: type: boolean - example: true securitySchemes: bearerAuth: type: http diff --git a/swagger/api-container/.gitignore b/swagger/api-container/.gitignore deleted file mode 100644 index a655050c2631466828b5b8bfc59ae27f9ac02dc5..0000000000000000000000000000000000000000 --- a/swagger/api-container/.gitignore +++ /dev/null @@ -1,64 +0,0 @@ -# Byte-compiled / optimized / DLL files -__pycache__/ -*.py[cod] -*$py.class - -# C extensions -*.so - -# Distribution / packaging -.Python -env/ -build/ -develop-eggs/ -dist/ -downloads/ -eggs/ -.eggs/ -lib/ -lib64/ -parts/ -sdist/ -var/ -*.egg-info/ -.installed.cfg -*.egg - -# PyInstaller -# Usually these files are written by a python script from a template -# before PyInstaller builds the exe, so as to inject date/other infos into it. -*.manifest -*.spec - -# Installer logs -pip-log.txt -pip-delete-this-directory.txt - -# Unit test / coverage reports -htmlcov/ -.tox/ -.coverage -.coverage.* -.cache -nosetests.xml -coverage.xml -*,cover -.hypothesis/ -venv/ -.python-version - -# Translations -*.mo -*.pot - -# Django stuff: -*.log - -# Sphinx documentation -docs/_build/ - -# PyBuilder -target/ - -#Ipython Notebook -.ipynb_checkpoints diff --git a/swagger/api-container/.swagger-codegen-ignore b/swagger/api-container/.swagger-codegen-ignore deleted file mode 100644 index c5fa491b4c557bf997d5dd21797de782545dc9e5..0000000000000000000000000000000000000000 --- a/swagger/api-container/.swagger-codegen-ignore +++ /dev/null @@ -1,23 +0,0 @@ -# Swagger Codegen Ignore -# Generated by swagger-codegen https://github.com/swagger-api/swagger-codegen - -# Use this file to prevent files from being overwritten by the generator. -# The patterns follow closely to .gitignore or .dockerignore. - -# As an example, the C# client generator defines ApiClient.cs. -# You can make changes and tell Swagger Codgen to ignore just this file by uncommenting the following line: -#ApiClient.cs - -# You can match any string of characters against a directory, file or extension with a single asterisk (*): -#foo/*/qux -# The above matches foo/bar/qux and foo/baz/qux, but not foo/bar/baz/qux - -# You can recursively match patterns against a directory, file or extension with a double asterisk (**): -#foo/**/qux -# This matches foo/bar/qux, foo/baz/qux, and foo/bar/baz/qux - -# You can also negate patterns with an exclamation (!). -# For example, you can ignore all files in a docs folder with the file extension .md: -#docs/*.md -# Then explicitly reverse the ignore rule for a single file: -#!docs/README.md diff --git a/swagger/api-container/.swagger-codegen/VERSION b/swagger/api-container/.swagger-codegen/VERSION deleted file mode 100644 index 10bbf276ee45aaec75c7b2ada3ff71d798f89fd9..0000000000000000000000000000000000000000 --- a/swagger/api-container/.swagger-codegen/VERSION +++ /dev/null @@ -1 +0,0 @@ -3.0.34 \ No newline at end of file diff --git a/swagger/api-container/.travis.yml b/swagger/api-container/.travis.yml deleted file mode 100644 index dd6c4450aa902ae68479c3d76d45145e18d6052e..0000000000000000000000000000000000000000 --- a/swagger/api-container/.travis.yml +++ /dev/null @@ -1,13 +0,0 @@ -# ref: https://docs.travis-ci.com/user/languages/python -language: python -python: - - "3.2" - - "3.3" - - "3.4" - - "3.5" - #- "3.5-dev" # 3.5 development branch - #- "nightly" # points to the latest development branch e.g. 3.6-dev -# command to install dependencies -install: "pip install -r requirements.txt" -# command to run tests -script: nosetests diff --git a/swagger/api-container/README.md b/swagger/api-container/README.md deleted file mode 100644 index 56fd306b47263d9adfcdcc14a0f4185063649d42..0000000000000000000000000000000000000000 --- a/swagger/api-container/README.md +++ /dev/null @@ -1,159 +0,0 @@ -# swagger-client -Service that manages the containers - -This Python package is automatically generated by the [Swagger Codegen](https://github.com/swagger-api/swagger-codegen) project: - -- API version: 1.1.0-alpha -- Package version: 1.0.0 -- Build package: io.swagger.codegen.v3.generators.python.PythonClientCodegen - -## Requirements. - -Python 2.7 and 3.4+ - -## Installation & Usage -### pip install - -If the python package is hosted on Github, you can install directly from Github - -```sh -pip install git+https://github.com/GIT_USER_ID/GIT_REPO_ID.git -``` -(you may need to run `pip` with root permission: `sudo pip install git+https://github.com/GIT_USER_ID/GIT_REPO_ID.git`) - -Then import the package: -```python -import swagger_client -``` - -### Setuptools - -Install via [Setuptools](http://pypi.python.org/pypi/setuptools). - -```sh -python setup.py install --user -``` -(or `sudo python setup.py install` to install the package for all users) - -Then import the package: -```python -import swagger_client -``` - -## Getting Started - -Please follow the [installation procedure](#installation--usage) and then run the following: - -```python -from __future__ import print_function -import time -import swagger_client -from swagger_client.rest import ApiException -from pprint import pprint - - -# create an instance of the API class -api_instance = swagger_client.ContainerEndpointApi(swagger_client.ApiClient(configuration)) -body = swagger_client.ContainerCreateRequestDto() # ContainerCreateRequestDto | - -try: - # Create container - api_response = api_instance.create1(body) - pprint(api_response) -except ApiException as e: - print("Exception when calling ContainerEndpointApi->create1: %s\n" % e) - - -# create an instance of the API class -api_instance = swagger_client.ContainerEndpointApi(swagger_client.ApiClient(configuration)) -id = 789 # int | - -try: - # Delete some container - api_response = api_instance.delete1(id) - pprint(api_response) -except ApiException as e: - print("Exception when calling ContainerEndpointApi->delete1: %s\n" % e) - -# create an instance of the API class -api_instance = swagger_client.ContainerEndpointApi(swagger_client.ApiClient(configuration)) - -try: - # Find all containers - api_response = api_instance.find_all1() - pprint(api_response) -except ApiException as e: - print("Exception when calling ContainerEndpointApi->find_all1: %s\n" % e) - -# create an instance of the API class -api_instance = swagger_client.ContainerEndpointApi(swagger_client.ApiClient(configuration)) -id = 789 # int | - -try: - # Find some container - api_response = api_instance.find_by_id1(id) - pprint(api_response) -except ApiException as e: - print("Exception when calling ContainerEndpointApi->find_by_id1: %s\n" % e) - - -# create an instance of the API class -api_instance = swagger_client.ContainerEndpointApi(swagger_client.ApiClient(configuration)) -body = swagger_client.ContainerChangeDto() # ContainerChangeDto | -id = 789 # int | - -try: - # Modify some container - api_response = api_instance.modify(body, id) - pprint(api_response) -except ApiException as e: - print("Exception when calling ContainerEndpointApi->modify: %s\n" % e) -``` - -## Documentation for API Endpoints - -All URIs are relative to *http://localhost:9091* - -Class | Method | HTTP request | Description ------------- | ------------- | ------------- | ------------- -*ContainerEndpointApi* | [**create1**](docs/ContainerEndpointApi.md#create1) | **POST** /api/container | Create container -*ContainerEndpointApi* | [**delete1**](docs/ContainerEndpointApi.md#delete1) | **DELETE** /api/container/{id} | Delete some container -*ContainerEndpointApi* | [**find_all1**](docs/ContainerEndpointApi.md#find_all1) | **GET** /api/container | Find all containers -*ContainerEndpointApi* | [**find_by_id1**](docs/ContainerEndpointApi.md#find_by_id1) | **GET** /api/container/{id} | Find some container -*ContainerEndpointApi* | [**modify**](docs/ContainerEndpointApi.md#modify) | **PUT** /api/container/{id} | Modify some container -*ImageEndpointApi* | [**create**](docs/ImageEndpointApi.md#create) | **POST** /api/image | Create image -*ImageEndpointApi* | [**delete**](docs/ImageEndpointApi.md#delete) | **DELETE** /api/image/{id} | Delete some image -*ImageEndpointApi* | [**find_all**](docs/ImageEndpointApi.md#find_all) | **GET** /api/image | Find all images -*ImageEndpointApi* | [**find_by_id**](docs/ImageEndpointApi.md#find_by_id) | **GET** /api/image/{id} | Find some image -*ImageEndpointApi* | [**update**](docs/ImageEndpointApi.md#update) | **PUT** /api/image/{id} | Update some image - -## Documentation For Models - - - [ApiErrorDto](docs/ApiErrorDto.md) - - [ContainerBriefDto](docs/ContainerBriefDto.md) - - [ContainerChangeDto](docs/ContainerChangeDto.md) - - [ContainerCreateRequestDto](docs/ContainerCreateRequestDto.md) - - [ContainerDto](docs/ContainerDto.md) - - [DatabaseDto](docs/DatabaseDto.md) - - [GrantedAuthorityDto](docs/GrantedAuthorityDto.md) - - [ImageBriefDto](docs/ImageBriefDto.md) - - [ImageChangeDto](docs/ImageChangeDto.md) - - [ImageCreateDto](docs/ImageCreateDto.md) - - [ImageDateDto](docs/ImageDateDto.md) - - [ImageDto](docs/ImageDto.md) - - [ImageEnvItemDto](docs/ImageEnvItemDto.md) - - [LicenseDto](docs/LicenseDto.md) - - [TableBriefDto](docs/TableBriefDto.md) - - [UserBriefDto](docs/UserBriefDto.md) - - [UserDto](docs/UserDto.md) - -## Documentation For Authorization - - -## bearerAuth - - - -## Author - -andreas.rauber@tuwien.ac.at diff --git a/swagger/api-container/git_push.sh b/swagger/api-container/git_push.sh deleted file mode 100644 index ae01b182ae9eb047d0999a496b060e62d7b01e5c..0000000000000000000000000000000000000000 --- a/swagger/api-container/git_push.sh +++ /dev/null @@ -1,52 +0,0 @@ -#!/bin/sh -# ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/ -# -# Usage example: /bin/sh ./git_push.sh wing328 swagger-petstore-perl "minor update" - -git_user_id=$1 -git_repo_id=$2 -release_note=$3 - -if [ "$git_user_id" = "" ]; then - git_user_id="GIT_USER_ID" - echo "[INFO] No command line input provided. Set \$git_user_id to $git_user_id" -fi - -if [ "$git_repo_id" = "" ]; then - git_repo_id="GIT_REPO_ID" - echo "[INFO] No command line input provided. Set \$git_repo_id to $git_repo_id" -fi - -if [ "$release_note" = "" ]; then - release_note="Minor update" - echo "[INFO] No command line input provided. Set \$release_note to $release_note" -fi - -# Initialize the local directory as a Git repository -git init - -# Adds the files in the local repository and stages them for commit. -git add . - -# Commits the tracked changes and prepares them to be pushed to a remote repository. -git commit -m "$release_note" - -# Sets the new remote -git_remote=`git remote` -if [ "$git_remote" = "" ]; then # git remote not defined - - if [ "$GIT_TOKEN" = "" ]; then - echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the git credential in your environment." - git remote add origin https://github.com/${git_user_id}/${git_repo_id}.git - else - git remote add origin https://${git_user_id}:${GIT_TOKEN}@github.com/${git_user_id}/${git_repo_id}.git - fi - -fi - -git pull origin master - -# Pushes (Forces) the changes in the local repository up to the remote repository -echo "Git pushing to https://github.com/${git_user_id}/${git_repo_id}.git" -git push origin master 2>&1 | grep -v 'To https' - diff --git a/swagger/api-container/requirements.txt b/swagger/api-container/requirements.txt deleted file mode 100644 index bafdc07532f5e1287a24c2af278f547091a410b6..0000000000000000000000000000000000000000 --- a/swagger/api-container/requirements.txt +++ /dev/null @@ -1,5 +0,0 @@ -certifi >= 14.05.14 -six >= 1.10 -python_dateutil >= 2.5.3 -setuptools >= 21.0.0 -urllib3 >= 1.15.1 diff --git a/swagger/api-container/setup.py b/swagger/api-container/setup.py deleted file mode 100644 index 7fe8d0f037d18b6d2ef74230355573b916e1d72c..0000000000000000000000000000000000000000 --- a/swagger/api-container/setup.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Database Repository Container Service API - - Service that manages the containers # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -from setuptools import setup, find_packages # noqa: H301 - -NAME = "swagger-client" -VERSION = "1.0.0" -# To install the library, run the following -# -# python setup.py install -# -# prerequisite: setuptools -# http://pypi.python.org/pypi/setuptools - -REQUIRES = ["urllib3 >= 1.15", "six >= 1.10", "certifi", "python-dateutil"] - -setup( - name=NAME, - version=VERSION, - description="Database Repository Container Service API", - author_email="andreas.rauber@tuwien.ac.at", - url="", - keywords=["Swagger", "Database Repository Container Service API"], - install_requires=REQUIRES, - packages=find_packages(), - include_package_data=True, - long_description="""\ - Service that manages the containers # noqa: E501 - """ -) diff --git a/swagger/api-container/swagger_client/__init__.py b/swagger/api-container/swagger_client/__init__.py deleted file mode 100644 index e9909eb497477e6c638b24e074905cf2dcfb9984..0000000000000000000000000000000000000000 --- a/swagger/api-container/swagger_client/__init__.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -# flake8: noqa - -""" - Database Repository Container Service API - - Service that manages the containers # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -from __future__ import absolute_import - -# import apis into sdk package -from swagger_client.api.container_endpoint_api import ContainerEndpointApi -from swagger_client.api.image_endpoint_api import ImageEndpointApi -# import ApiClient -from swagger_client.api_client import ApiClient -from swagger_client.configuration import Configuration -# import models into sdk package -from swagger_client.models.api_error_dto import ApiErrorDto -from swagger_client.models.container_brief_dto import ContainerBriefDto -from swagger_client.models.container_change_dto import ContainerChangeDto -from swagger_client.models.container_create_request_dto import ContainerCreateRequestDto -from swagger_client.models.container_dto import ContainerDto -from swagger_client.models.database_dto import DatabaseDto -from swagger_client.models.granted_authority_dto import GrantedAuthorityDto -from swagger_client.models.image_brief_dto import ImageBriefDto -from swagger_client.models.image_change_dto import ImageChangeDto -from swagger_client.models.image_create_dto import ImageCreateDto -from swagger_client.models.image_date_dto import ImageDateDto -from swagger_client.models.image_dto import ImageDto -from swagger_client.models.image_env_item_dto import ImageEnvItemDto -from swagger_client.models.license_dto import LicenseDto -from swagger_client.models.table_brief_dto import TableBriefDto -from swagger_client.models.user_brief_dto import UserBriefDto -from swagger_client.models.user_dto import UserDto diff --git a/swagger/api-container/swagger_client/api/__init__.py b/swagger/api-container/swagger_client/api/__init__.py deleted file mode 100644 index 7810aa4adb6e794e46610086f52a7fb684e6dea9..0000000000000000000000000000000000000000 --- a/swagger/api-container/swagger_client/api/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -from __future__ import absolute_import - -# flake8: noqa - -# import apis into api package -from swagger_client.api.container_endpoint_api import ContainerEndpointApi -from swagger_client.api.image_endpoint_api import ImageEndpointApi diff --git a/swagger/api-container/swagger_client/api/container_endpoint_api.py b/swagger/api-container/swagger_client/api/container_endpoint_api.py deleted file mode 100644 index bd449c7d2837bb493449431ee84804b324646f67..0000000000000000000000000000000000000000 --- a/swagger/api-container/swagger_client/api/container_endpoint_api.py +++ /dev/null @@ -1,506 +0,0 @@ -# coding: utf-8 - -""" - Database Repository Container Service API - - Service that manages the containers # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -from __future__ import absolute_import - -import re # noqa: F401 - -# python 2 and python 3 compatibility library -import six - -from swagger_client.api_client import ApiClient - - -class ContainerEndpointApi(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - Ref: https://github.com/swagger-api/swagger-codegen - """ - - def __init__(self, api_client=None): - if api_client is None: - api_client = ApiClient() - self.api_client = api_client - - def create1(self, body, **kwargs): # noqa: E501 - """Create container # noqa: E501 - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.create1(body, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param ContainerCreateRequestDto body: (required) - :return: ContainerBriefDto - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.create1_with_http_info(body, **kwargs) # noqa: E501 - else: - (data) = self.create1_with_http_info(body, **kwargs) # noqa: E501 - return data - - def create1_with_http_info(self, body, **kwargs): # noqa: E501 - """Create container # noqa: E501 - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.create1_with_http_info(body, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param ContainerCreateRequestDto body: (required) - :return: ContainerBriefDto - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['body'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in six.iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method create1" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'body' is set - if ('body' not in params or - params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `create1`") # noqa: E501 - - collection_formats = {} - - path_params = {} - - query_params = [] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - if 'body' in params: - body_params = params['body'] - # HTTP header `Accept` - header_params['Accept'] = self.api_client.select_header_accept( - ['*/*']) # noqa: E501 - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 - ['application/json']) # noqa: E501 - - # Authentication setting - auth_settings = ['bearerAuth'] # noqa: E501 - - return self.api_client.call_api( - '/api/container', 'POST', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='ContainerBriefDto', # noqa: E501 - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def delete1(self, id, **kwargs): # noqa: E501 - """Delete some container # noqa: E501 - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.delete1(id, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param int id: (required) - :return: object - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.delete1_with_http_info(id, **kwargs) # noqa: E501 - else: - (data) = self.delete1_with_http_info(id, **kwargs) # noqa: E501 - return data - - def delete1_with_http_info(self, id, **kwargs): # noqa: E501 - """Delete some container # noqa: E501 - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.delete1_with_http_info(id, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param int id: (required) - :return: object - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['id'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in six.iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method delete1" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'id' is set - if ('id' not in params or - params['id'] is None): - raise ValueError("Missing the required parameter `id` when calling `delete1`") # noqa: E501 - - collection_formats = {} - - path_params = {} - if 'id' in params: - path_params['id'] = params['id'] # noqa: E501 - - query_params = [] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - # HTTP header `Accept` - header_params['Accept'] = self.api_client.select_header_accept( - ['*/*']) # noqa: E501 - - # Authentication setting - auth_settings = ['bearerAuth'] # noqa: E501 - - return self.api_client.call_api( - '/api/container/{id}', 'DELETE', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='object', # noqa: E501 - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def find_all1(self, **kwargs): # noqa: E501 - """Find all containers # noqa: E501 - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.find_all1(async_req=True) - >>> result = thread.get() - - :param async_req bool - :return: list[ContainerBriefDto] - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.find_all1_with_http_info(**kwargs) # noqa: E501 - else: - (data) = self.find_all1_with_http_info(**kwargs) # noqa: E501 - return data - - def find_all1_with_http_info(self, **kwargs): # noqa: E501 - """Find all containers # noqa: E501 - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.find_all1_with_http_info(async_req=True) - >>> result = thread.get() - - :param async_req bool - :return: list[ContainerBriefDto] - If the method is called asynchronously, - returns the request thread. - """ - - all_params = [] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in six.iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method find_all1" % key - ) - params[key] = val - del params['kwargs'] - - collection_formats = {} - - path_params = {} - - query_params = [] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - # HTTP header `Accept` - header_params['Accept'] = self.api_client.select_header_accept( - ['*/*']) # noqa: E501 - - # Authentication setting - auth_settings = [] # noqa: E501 - - return self.api_client.call_api( - '/api/container', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='list[ContainerBriefDto]', # noqa: E501 - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def find_by_id1(self, id, **kwargs): # noqa: E501 - """Find some container # noqa: E501 - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.find_by_id1(id, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param int id: (required) - :return: ContainerDto - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.find_by_id1_with_http_info(id, **kwargs) # noqa: E501 - else: - (data) = self.find_by_id1_with_http_info(id, **kwargs) # noqa: E501 - return data - - def find_by_id1_with_http_info(self, id, **kwargs): # noqa: E501 - """Find some container # noqa: E501 - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.find_by_id1_with_http_info(id, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param int id: (required) - :return: ContainerDto - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['id'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in six.iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method find_by_id1" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'id' is set - if ('id' not in params or - params['id'] is None): - raise ValueError("Missing the required parameter `id` when calling `find_by_id1`") # noqa: E501 - - collection_formats = {} - - path_params = {} - if 'id' in params: - path_params['id'] = params['id'] # noqa: E501 - - query_params = [] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - # HTTP header `Accept` - header_params['Accept'] = self.api_client.select_header_accept( - ['*/*']) # noqa: E501 - - # Authentication setting - auth_settings = [] # noqa: E501 - - return self.api_client.call_api( - '/api/container/{id}', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='ContainerDto', # noqa: E501 - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def modify(self, body, id, **kwargs): # noqa: E501 - """Modify some container # noqa: E501 - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.modify(body, id, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param ContainerChangeDto body: (required) - :param int id: (required) - :return: ContainerBriefDto - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.modify_with_http_info(body, id, **kwargs) # noqa: E501 - else: - (data) = self.modify_with_http_info(body, id, **kwargs) # noqa: E501 - return data - - def modify_with_http_info(self, body, id, **kwargs): # noqa: E501 - """Modify some container # noqa: E501 - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.modify_with_http_info(body, id, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param ContainerChangeDto body: (required) - :param int id: (required) - :return: ContainerBriefDto - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['body', 'id'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in six.iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method modify" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'body' is set - if ('body' not in params or - params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `modify`") # noqa: E501 - # verify the required parameter 'id' is set - if ('id' not in params or - params['id'] is None): - raise ValueError("Missing the required parameter `id` when calling `modify`") # noqa: E501 - - collection_formats = {} - - path_params = {} - if 'id' in params: - path_params['id'] = params['id'] # noqa: E501 - - query_params = [] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - if 'body' in params: - body_params = params['body'] - # HTTP header `Accept` - header_params['Accept'] = self.api_client.select_header_accept( - ['*/*']) # noqa: E501 - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 - ['application/json']) # noqa: E501 - - # Authentication setting - auth_settings = ['bearerAuth'] # noqa: E501 - - return self.api_client.call_api( - '/api/container/{id}', 'PUT', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='ContainerBriefDto', # noqa: E501 - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) diff --git a/swagger/api-container/swagger_client/api/image_endpoint_api.py b/swagger/api-container/swagger_client/api/image_endpoint_api.py deleted file mode 100644 index 401f427c21265abafacbf9a29e8b766769cf1683..0000000000000000000000000000000000000000 --- a/swagger/api-container/swagger_client/api/image_endpoint_api.py +++ /dev/null @@ -1,506 +0,0 @@ -# coding: utf-8 - -""" - Database Repository Container Service API - - Service that manages the containers # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -from __future__ import absolute_import - -import re # noqa: F401 - -# python 2 and python 3 compatibility library -import six - -from swagger_client.api_client import ApiClient - - -class ImageEndpointApi(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - Ref: https://github.com/swagger-api/swagger-codegen - """ - - def __init__(self, api_client=None): - if api_client is None: - api_client = ApiClient() - self.api_client = api_client - - def create(self, body, **kwargs): # noqa: E501 - """Create image # noqa: E501 - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.create(body, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param ImageCreateDto body: (required) - :return: ImageDto - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.create_with_http_info(body, **kwargs) # noqa: E501 - else: - (data) = self.create_with_http_info(body, **kwargs) # noqa: E501 - return data - - def create_with_http_info(self, body, **kwargs): # noqa: E501 - """Create image # noqa: E501 - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.create_with_http_info(body, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param ImageCreateDto body: (required) - :return: ImageDto - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['body'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in six.iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method create" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'body' is set - if ('body' not in params or - params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `create`") # noqa: E501 - - collection_formats = {} - - path_params = {} - - query_params = [] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - if 'body' in params: - body_params = params['body'] - # HTTP header `Accept` - header_params['Accept'] = self.api_client.select_header_accept( - ['*/*']) # noqa: E501 - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 - ['application/json']) # noqa: E501 - - # Authentication setting - auth_settings = ['bearerAuth'] # noqa: E501 - - return self.api_client.call_api( - '/api/image', 'POST', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='ImageDto', # noqa: E501 - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def delete(self, id, **kwargs): # noqa: E501 - """Delete some image # noqa: E501 - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.delete(id, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param int id: (required) - :return: object - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.delete_with_http_info(id, **kwargs) # noqa: E501 - else: - (data) = self.delete_with_http_info(id, **kwargs) # noqa: E501 - return data - - def delete_with_http_info(self, id, **kwargs): # noqa: E501 - """Delete some image # noqa: E501 - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.delete_with_http_info(id, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param int id: (required) - :return: object - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['id'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in six.iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method delete" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'id' is set - if ('id' not in params or - params['id'] is None): - raise ValueError("Missing the required parameter `id` when calling `delete`") # noqa: E501 - - collection_formats = {} - - path_params = {} - if 'id' in params: - path_params['id'] = params['id'] # noqa: E501 - - query_params = [] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - # HTTP header `Accept` - header_params['Accept'] = self.api_client.select_header_accept( - ['*/*']) # noqa: E501 - - # Authentication setting - auth_settings = ['bearerAuth'] # noqa: E501 - - return self.api_client.call_api( - '/api/image/{id}', 'DELETE', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='object', # noqa: E501 - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def find_all(self, **kwargs): # noqa: E501 - """Find all images # noqa: E501 - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.find_all(async_req=True) - >>> result = thread.get() - - :param async_req bool - :return: list[ImageBriefDto] - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.find_all_with_http_info(**kwargs) # noqa: E501 - else: - (data) = self.find_all_with_http_info(**kwargs) # noqa: E501 - return data - - def find_all_with_http_info(self, **kwargs): # noqa: E501 - """Find all images # noqa: E501 - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.find_all_with_http_info(async_req=True) - >>> result = thread.get() - - :param async_req bool - :return: list[ImageBriefDto] - If the method is called asynchronously, - returns the request thread. - """ - - all_params = [] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in six.iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method find_all" % key - ) - params[key] = val - del params['kwargs'] - - collection_formats = {} - - path_params = {} - - query_params = [] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - # HTTP header `Accept` - header_params['Accept'] = self.api_client.select_header_accept( - ['*/*']) # noqa: E501 - - # Authentication setting - auth_settings = [] # noqa: E501 - - return self.api_client.call_api( - '/api/image', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='list[ImageBriefDto]', # noqa: E501 - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def find_by_id(self, id, **kwargs): # noqa: E501 - """Find some image # noqa: E501 - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.find_by_id(id, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param int id: (required) - :return: ImageDto - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.find_by_id_with_http_info(id, **kwargs) # noqa: E501 - else: - (data) = self.find_by_id_with_http_info(id, **kwargs) # noqa: E501 - return data - - def find_by_id_with_http_info(self, id, **kwargs): # noqa: E501 - """Find some image # noqa: E501 - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.find_by_id_with_http_info(id, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param int id: (required) - :return: ImageDto - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['id'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in six.iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method find_by_id" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'id' is set - if ('id' not in params or - params['id'] is None): - raise ValueError("Missing the required parameter `id` when calling `find_by_id`") # noqa: E501 - - collection_formats = {} - - path_params = {} - if 'id' in params: - path_params['id'] = params['id'] # noqa: E501 - - query_params = [] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - # HTTP header `Accept` - header_params['Accept'] = self.api_client.select_header_accept( - ['*/*']) # noqa: E501 - - # Authentication setting - auth_settings = [] # noqa: E501 - - return self.api_client.call_api( - '/api/image/{id}', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='ImageDto', # noqa: E501 - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def update(self, body, id, **kwargs): # noqa: E501 - """Update some image # noqa: E501 - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.update(body, id, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param ImageChangeDto body: (required) - :param int id: (required) - :return: ImageDto - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.update_with_http_info(body, id, **kwargs) # noqa: E501 - else: - (data) = self.update_with_http_info(body, id, **kwargs) # noqa: E501 - return data - - def update_with_http_info(self, body, id, **kwargs): # noqa: E501 - """Update some image # noqa: E501 - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.update_with_http_info(body, id, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param ImageChangeDto body: (required) - :param int id: (required) - :return: ImageDto - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['body', 'id'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in six.iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method update" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'body' is set - if ('body' not in params or - params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `update`") # noqa: E501 - # verify the required parameter 'id' is set - if ('id' not in params or - params['id'] is None): - raise ValueError("Missing the required parameter `id` when calling `update`") # noqa: E501 - - collection_formats = {} - - path_params = {} - if 'id' in params: - path_params['id'] = params['id'] # noqa: E501 - - query_params = [] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - if 'body' in params: - body_params = params['body'] - # HTTP header `Accept` - header_params['Accept'] = self.api_client.select_header_accept( - ['*/*']) # noqa: E501 - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 - ['application/json']) # noqa: E501 - - # Authentication setting - auth_settings = ['bearerAuth'] # noqa: E501 - - return self.api_client.call_api( - '/api/image/{id}', 'PUT', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='ImageDto', # noqa: E501 - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) diff --git a/swagger/api-container/swagger_client/api_client.py b/swagger/api-container/swagger_client/api_client.py deleted file mode 100644 index 2b3229ceb2c3d76d97906613927a94373abe12d3..0000000000000000000000000000000000000000 --- a/swagger/api-container/swagger_client/api_client.py +++ /dev/null @@ -1,632 +0,0 @@ -# coding: utf-8 -""" - Database Repository Container Service API - - Service that manages the containers # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" -from __future__ import absolute_import - -import datetime -import json -import mimetypes -from multiprocessing.pool import ThreadPool -import os -import re -import tempfile - -# python 2 and python 3 compatibility library -import six -from six.moves.urllib.parse import quote - -from swagger_client.configuration import Configuration -import swagger_client.models -from swagger_client import rest - - -class ApiClient(object): - """Generic API client for Swagger client library builds. - - Swagger generic API client. This client handles the client- - server communication, and is invariant across implementations. Specifics of - the methods and models for each application are generated from the Swagger - templates. - - NOTE: This class is auto generated by the swagger code generator program. - Ref: https://github.com/swagger-api/swagger-codegen - Do not edit the class manually. - - :param configuration: .Configuration object for this client - :param header_name: a header to pass when making calls to the API. - :param header_value: a header value to pass when making calls to - the API. - :param cookie: a cookie to include in the header when making calls - to the API - """ - - PRIMITIVE_TYPES = (float, bool, bytes, six.text_type) + six.integer_types - NATIVE_TYPES_MAPPING = { - 'int': int, - 'long': int if six.PY3 else long, # noqa: F821 - 'float': float, - 'str': str, - 'bool': bool, - 'date': datetime.date, - 'datetime': datetime.datetime, - 'object': object, - } - - def __init__(self, configuration=None, header_name=None, header_value=None, - cookie=None): - if configuration is None: - configuration = Configuration() - self.configuration = configuration - - self.pool = ThreadPool() - self.rest_client = rest.RESTClientObject(configuration) - self.default_headers = {} - if header_name is not None: - self.default_headers[header_name] = header_value - self.cookie = cookie - # Set default User-Agent. - self.user_agent = 'Swagger-Codegen/1.0.0/python' - - def __del__(self): - self.pool.close() - self.pool.join() - - @property - def user_agent(self): - """User agent for this API client""" - return self.default_headers['User-Agent'] - - @user_agent.setter - def user_agent(self, value): - self.default_headers['User-Agent'] = value - - def set_default_header(self, header_name, header_value): - self.default_headers[header_name] = header_value - - def __call_api( - self, resource_path, method, path_params=None, - query_params=None, header_params=None, body=None, post_params=None, - files=None, response_type=None, auth_settings=None, - _return_http_data_only=None, collection_formats=None, - _preload_content=True, _request_timeout=None): - - config = self.configuration - - # header parameters - header_params = header_params or {} - header_params.update(self.default_headers) - if self.cookie: - header_params['Cookie'] = self.cookie - if header_params: - header_params = self.sanitize_for_serialization(header_params) - header_params = dict(self.parameters_to_tuples(header_params, - collection_formats)) - - # path parameters - if path_params: - path_params = self.sanitize_for_serialization(path_params) - path_params = self.parameters_to_tuples(path_params, - collection_formats) - for k, v in path_params: - # specified safe chars, encode everything - resource_path = resource_path.replace( - '{%s}' % k, - quote(str(v), safe=config.safe_chars_for_path_param) - ) - - # query parameters - if query_params: - query_params = self.sanitize_for_serialization(query_params) - query_params = self.parameters_to_tuples(query_params, - collection_formats) - - # post parameters - if post_params or files: - post_params = self.prepare_post_parameters(post_params, files) - post_params = self.sanitize_for_serialization(post_params) - post_params = self.parameters_to_tuples(post_params, - collection_formats) - - # auth setting - self.update_params_for_auth(header_params, query_params, auth_settings) - - # body - if body: - body = self.sanitize_for_serialization(body) - - # request url - url = self.configuration.host + resource_path - - # perform request and return response - response_data = self.request( - method, url, query_params=query_params, headers=header_params, - post_params=post_params, body=body, - _preload_content=_preload_content, - _request_timeout=_request_timeout) - - self.last_response = response_data - - return_data = response_data - if _preload_content: - # deserialize response data - if response_type: - return_data = self.deserialize(response_data, response_type) - else: - return_data = None - - if _return_http_data_only: - return (return_data) - else: - return (return_data, response_data.status, - response_data.getheaders()) - - def sanitize_for_serialization(self, obj): - """Builds a JSON POST object. - - If obj is None, return None. - If obj is str, int, long, float, bool, return directly. - If obj is datetime.datetime, datetime.date - convert to string in iso8601 format. - If obj is list, sanitize each element in the list. - If obj is dict, return the dict. - If obj is swagger model, return the properties dict. - - :param obj: The data to serialize. - :return: The serialized form of data. - """ - if obj is None: - return None - elif isinstance(obj, self.PRIMITIVE_TYPES): - return obj - elif isinstance(obj, list): - return [self.sanitize_for_serialization(sub_obj) - for sub_obj in obj] - elif isinstance(obj, tuple): - return tuple(self.sanitize_for_serialization(sub_obj) - for sub_obj in obj) - elif isinstance(obj, (datetime.datetime, datetime.date)): - return obj.isoformat() - - if isinstance(obj, dict): - obj_dict = obj - else: - # Convert model obj to dict except - # attributes `swagger_types`, `attribute_map` - # and attributes which value is not None. - # Convert attribute name to json key in - # model definition for request. - obj_dict = {obj.attribute_map[attr]: getattr(obj, attr) - for attr, _ in six.iteritems(obj.swagger_types) - if getattr(obj, attr) is not None} - - return {key: self.sanitize_for_serialization(val) - for key, val in six.iteritems(obj_dict)} - - def deserialize(self, response, response_type): - """Deserializes response into an object. - - :param response: RESTResponse object to be deserialized. - :param response_type: class literal for - deserialized object, or string of class name. - - :return: deserialized object. - """ - # handle file downloading - # save response body into a tmp file and return the instance - if response_type == "file": - return self.__deserialize_file(response) - - # fetch data from response object - try: - data = json.loads(response.data) - except ValueError: - data = response.data - - return self.__deserialize(data, response_type) - - def __deserialize(self, data, klass): - """Deserializes dict, list, str into an object. - - :param data: dict, list or str. - :param klass: class literal, or string of class name. - - :return: object. - """ - if data is None: - return None - - if type(klass) == str: - if klass.startswith('list['): - sub_kls = re.match(r'list\[(.*)\]', klass).group(1) - return [self.__deserialize(sub_data, sub_kls) - for sub_data in data] - - if klass.startswith('dict('): - sub_kls = re.match(r'dict\(([^,]*), (.*)\)', klass).group(2) - return {k: self.__deserialize(v, sub_kls) - for k, v in six.iteritems(data)} - - # convert str to class - if klass in self.NATIVE_TYPES_MAPPING: - klass = self.NATIVE_TYPES_MAPPING[klass] - else: - klass = getattr(swagger_client.models, klass) - - if klass in self.PRIMITIVE_TYPES: - return self.__deserialize_primitive(data, klass) - elif klass == object: - return self.__deserialize_object(data) - elif klass == datetime.date: - return self.__deserialize_date(data) - elif klass == datetime.datetime: - return self.__deserialize_datatime(data) - else: - return self.__deserialize_model(data, klass) - - def call_api(self, resource_path, method, - path_params=None, query_params=None, header_params=None, - body=None, post_params=None, files=None, - response_type=None, auth_settings=None, async_req=None, - _return_http_data_only=None, collection_formats=None, - _preload_content=True, _request_timeout=None): - """Makes the HTTP request (synchronous) and returns deserialized data. - - To make an async request, set the async_req parameter. - - :param resource_path: Path to method endpoint. - :param method: Method to call. - :param path_params: Path parameters in the url. - :param query_params: Query parameters in the url. - :param header_params: Header parameters to be - placed in the request header. - :param body: Request body. - :param post_params dict: Request post form parameters, - for `application/x-www-form-urlencoded`, `multipart/form-data`. - :param auth_settings list: Auth Settings names for the request. - :param response: Response data type. - :param files dict: key -> filename, value -> filepath, - for `multipart/form-data`. - :param async_req bool: execute request asynchronously - :param _return_http_data_only: response data without head status code - and headers - :param collection_formats: dict of collection formats for path, query, - header, and post parameters. - :param _preload_content: if False, the urllib3.HTTPResponse object will - be returned without reading/decoding response - data. Default is True. - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :return: - If async_req parameter is True, - the request will be called asynchronously. - The method will return the request thread. - If parameter async_req is False or missing, - then the method will return the response directly. - """ - if not async_req: - return self.__call_api(resource_path, method, - path_params, query_params, header_params, - body, post_params, files, - response_type, auth_settings, - _return_http_data_only, collection_formats, - _preload_content, _request_timeout) - else: - thread = self.pool.apply_async(self.__call_api, (resource_path, - method, path_params, query_params, - header_params, body, - post_params, files, - response_type, auth_settings, - _return_http_data_only, - collection_formats, - _preload_content, _request_timeout)) - return thread - - def request(self, method, url, query_params=None, headers=None, - post_params=None, body=None, _preload_content=True, - _request_timeout=None): - """Makes the HTTP request using RESTClient.""" - if method == "GET": - return self.rest_client.GET(url, - query_params=query_params, - _preload_content=_preload_content, - _request_timeout=_request_timeout, - headers=headers) - elif method == "HEAD": - return self.rest_client.HEAD(url, - query_params=query_params, - _preload_content=_preload_content, - _request_timeout=_request_timeout, - headers=headers) - elif method == "OPTIONS": - return self.rest_client.OPTIONS(url, - query_params=query_params, - headers=headers, - post_params=post_params, - _preload_content=_preload_content, - _request_timeout=_request_timeout, - body=body) - elif method == "POST": - return self.rest_client.POST(url, - query_params=query_params, - headers=headers, - post_params=post_params, - _preload_content=_preload_content, - _request_timeout=_request_timeout, - body=body) - elif method == "PUT": - return self.rest_client.PUT(url, - query_params=query_params, - headers=headers, - post_params=post_params, - _preload_content=_preload_content, - _request_timeout=_request_timeout, - body=body) - elif method == "PATCH": - return self.rest_client.PATCH(url, - query_params=query_params, - headers=headers, - post_params=post_params, - _preload_content=_preload_content, - _request_timeout=_request_timeout, - body=body) - elif method == "DELETE": - return self.rest_client.DELETE(url, - query_params=query_params, - headers=headers, - _preload_content=_preload_content, - _request_timeout=_request_timeout, - body=body) - else: - raise ValueError( - "http method must be `GET`, `HEAD`, `OPTIONS`," - " `POST`, `PATCH`, `PUT` or `DELETE`." - ) - - def parameters_to_tuples(self, params, collection_formats): - """Get parameters as list of tuples, formatting collections. - - :param params: Parameters as dict or list of two-tuples - :param dict collection_formats: Parameter collection formats - :return: Parameters as list of tuples, collections formatted - """ - new_params = [] - if collection_formats is None: - collection_formats = {} - for k, v in six.iteritems(params) if isinstance(params, dict) else params: # noqa: E501 - if k in collection_formats: - collection_format = collection_formats[k] - if collection_format == 'multi': - new_params.extend((k, value) for value in v) - else: - if collection_format == 'ssv': - delimiter = ' ' - elif collection_format == 'tsv': - delimiter = '\t' - elif collection_format == 'pipes': - delimiter = '|' - else: # csv is the default - delimiter = ',' - new_params.append( - (k, delimiter.join(str(value) for value in v))) - else: - new_params.append((k, v)) - return new_params - - def prepare_post_parameters(self, post_params=None, files=None): - """Builds form parameters. - - :param post_params: Normal form parameters. - :param files: File parameters. - :return: Form parameters with files. - """ - params = [] - - if post_params: - params = post_params - - if files: - for k, v in six.iteritems(files): - if not v: - continue - file_names = v if type(v) is list else [v] - for n in file_names: - with open(n, 'rb') as f: - filename = os.path.basename(f.name) - filedata = f.read() - mimetype = (mimetypes.guess_type(filename)[0] or - 'application/octet-stream') - params.append( - tuple([k, tuple([filename, filedata, mimetype])])) - - return params - - def select_header_accept(self, accepts): - """Returns `Accept` based on an array of accepts provided. - - :param accepts: List of headers. - :return: Accept (e.g. application/json). - """ - if not accepts: - return - - accepts = [x.lower() for x in accepts] - - if 'application/json' in accepts: - return 'application/json' - else: - return ', '.join(accepts) - - def select_header_content_type(self, content_types): - """Returns `Content-Type` based on an array of content_types provided. - - :param content_types: List of content-types. - :return: Content-Type (e.g. application/json). - """ - if not content_types: - return 'application/json' - - content_types = [x.lower() for x in content_types] - - if 'application/json' in content_types or '*/*' in content_types: - return 'application/json' - else: - return content_types[0] - - def update_params_for_auth(self, headers, querys, auth_settings): - """Updates header and query params based on authentication setting. - - :param headers: Header parameters dict to be updated. - :param querys: Query parameters tuple list to be updated. - :param auth_settings: Authentication setting identifiers list. - """ - if not auth_settings: - return - - for auth in auth_settings: - auth_setting = self.configuration.auth_settings().get(auth) - if auth_setting: - if not auth_setting['value']: - continue - elif auth_setting['in'] == 'header': - headers[auth_setting['key']] = auth_setting['value'] - elif auth_setting['in'] == 'query': - querys.append((auth_setting['key'], auth_setting['value'])) - else: - raise ValueError( - 'Authentication token must be in `query` or `header`' - ) - - def __deserialize_file(self, response): - """Deserializes body to file - - Saves response body into a file in a temporary folder, - using the filename from the `Content-Disposition` header if provided. - - :param response: RESTResponse. - :return: file path. - """ - fd, path = tempfile.mkstemp(dir=self.configuration.temp_folder_path) - os.close(fd) - os.remove(path) - - content_disposition = response.getheader("Content-Disposition") - if content_disposition: - filename = re.search(r'filename=[\'"]?([^\'"\s]+)[\'"]?', - content_disposition).group(1) - path = os.path.join(os.path.dirname(path), filename) - response_data = response.data - with open(path, "wb") as f: - if isinstance(response_data, str): - # change str to bytes so we can write it - response_data = response_data.encode('utf-8') - f.write(response_data) - else: - f.write(response_data) - return path - - def __deserialize_primitive(self, data, klass): - """Deserializes string to primitive type. - - :param data: str. - :param klass: class literal. - - :return: int, long, float, str, bool. - """ - try: - return klass(data) - except UnicodeEncodeError: - return six.text_type(data) - except TypeError: - return data - - def __deserialize_object(self, value): - """Return a original value. - - :return: object. - """ - return value - - def __deserialize_date(self, string): - """Deserializes string to date. - - :param string: str. - :return: date. - """ - try: - from dateutil.parser import parse - return parse(string).date() - except ImportError: - return string - except ValueError: - raise rest.ApiException( - status=0, - reason="Failed to parse `{0}` as date object".format(string) - ) - - def __deserialize_datatime(self, string): - """Deserializes string to datetime. - - The string should be in iso8601 datetime format. - - :param string: str. - :return: datetime. - """ - try: - from dateutil.parser import parse - return parse(string) - except ImportError: - return string - except ValueError: - raise rest.ApiException( - status=0, - reason=( - "Failed to parse `{0}` as datetime object" - .format(string) - ) - ) - - def __hasattr(self, object, name): - return name in object.__class__.__dict__ - - def __deserialize_model(self, data, klass): - """Deserializes list or dict to model. - - :param data: dict, list. - :param klass: class literal. - :return: model object. - """ - - if not klass.swagger_types and not self.__hasattr(klass, 'get_real_child_model'): - return data - - kwargs = {} - if klass.swagger_types is not None: - for attr, attr_type in six.iteritems(klass.swagger_types): - if (data is not None and - klass.attribute_map[attr] in data and - isinstance(data, (list, dict))): - value = data[klass.attribute_map[attr]] - kwargs[attr] = self.__deserialize(value, attr_type) - - instance = klass(**kwargs) - - if (isinstance(instance, dict) and - klass.swagger_types is not None and - isinstance(data, dict)): - for key, value in data.items(): - if key not in klass.swagger_types: - instance[key] = value - if self.__hasattr(instance, 'get_real_child_model'): - klass_name = instance.get_real_child_model(data) - if klass_name: - instance = self.__deserialize(data, klass_name) - return instance diff --git a/swagger/api-container/swagger_client/configuration.py b/swagger/api-container/swagger_client/configuration.py deleted file mode 100644 index 9cc6cb74fb84cd9996119921096aa518340c469a..0000000000000000000000000000000000000000 --- a/swagger/api-container/swagger_client/configuration.py +++ /dev/null @@ -1,244 +0,0 @@ -# coding: utf-8 - -""" - Database Repository Container Service API - - Service that manages the containers # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -from __future__ import absolute_import - -import copy -import logging -import multiprocessing -import sys -import urllib3 - -import six -from six.moves import http_client as httplib - - -class TypeWithDefault(type): - def __init__(cls, name, bases, dct): - super(TypeWithDefault, cls).__init__(name, bases, dct) - cls._default = None - - def __call__(cls): - if cls._default is None: - cls._default = type.__call__(cls) - return copy.copy(cls._default) - - def set_default(cls, default): - cls._default = copy.copy(default) - - -class Configuration(six.with_metaclass(TypeWithDefault, object)): - """NOTE: This class is auto generated by the swagger code generator program. - - Ref: https://github.com/swagger-api/swagger-codegen - Do not edit the class manually. - """ - - def __init__(self): - """Constructor""" - # Default Base url - self.host = "http://localhost:9091" - # Temp file folder for downloading files - self.temp_folder_path = None - - # Authentication Settings - # dict to store API key(s) - self.api_key = {} - # dict to store API prefix (e.g. Bearer) - self.api_key_prefix = {} - # function to refresh API key if expired - self.refresh_api_key_hook = None - # Username for HTTP basic authentication - self.username = "" - # Password for HTTP basic authentication - self.password = "" - # Logging Settings - self.logger = {} - self.logger["package_logger"] = logging.getLogger("swagger_client") - self.logger["urllib3_logger"] = logging.getLogger("urllib3") - # Log format - self.logger_format = '%(asctime)s %(levelname)s %(message)s' - # Log stream handler - self.logger_stream_handler = None - # Log file handler - self.logger_file_handler = None - # Debug file location - self.logger_file = None - # Debug switch - self.debug = False - - # SSL/TLS verification - # Set this to false to skip verifying SSL certificate when calling API - # from https server. - self.verify_ssl = True - # Set this to customize the certificate file to verify the peer. - self.ssl_ca_cert = None - # client certificate file - self.cert_file = None - # client key file - self.key_file = None - # Set this to True/False to enable/disable SSL hostname verification. - self.assert_hostname = None - - # urllib3 connection pool's maximum number of connections saved - # per pool. urllib3 uses 1 connection as default value, but this is - # not the best value when you are making a lot of possibly parallel - # requests to the same host, which is often the case here. - # cpu_count * 5 is used as default value to increase performance. - self.connection_pool_maxsize = multiprocessing.cpu_count() * 5 - - # Proxy URL - self.proxy = None - # Safe chars for path_param - self.safe_chars_for_path_param = '' - - @property - def logger_file(self): - """The logger file. - - If the logger_file is None, then add stream handler and remove file - handler. Otherwise, add file handler and remove stream handler. - - :param value: The logger_file path. - :type: str - """ - return self.__logger_file - - @logger_file.setter - def logger_file(self, value): - """The logger file. - - If the logger_file is None, then add stream handler and remove file - handler. Otherwise, add file handler and remove stream handler. - - :param value: The logger_file path. - :type: str - """ - self.__logger_file = value - if self.__logger_file: - # If set logging file, - # then add file handler and remove stream handler. - self.logger_file_handler = logging.FileHandler(self.__logger_file) - self.logger_file_handler.setFormatter(self.logger_formatter) - for _, logger in six.iteritems(self.logger): - logger.addHandler(self.logger_file_handler) - if self.logger_stream_handler: - logger.removeHandler(self.logger_stream_handler) - else: - # If not set logging file, - # then add stream handler and remove file handler. - self.logger_stream_handler = logging.StreamHandler() - self.logger_stream_handler.setFormatter(self.logger_formatter) - for _, logger in six.iteritems(self.logger): - logger.addHandler(self.logger_stream_handler) - if self.logger_file_handler: - logger.removeHandler(self.logger_file_handler) - - @property - def debug(self): - """Debug status - - :param value: The debug status, True or False. - :type: bool - """ - return self.__debug - - @debug.setter - def debug(self, value): - """Debug status - - :param value: The debug status, True or False. - :type: bool - """ - self.__debug = value - if self.__debug: - # if debug status is True, turn on debug logging - for _, logger in six.iteritems(self.logger): - logger.setLevel(logging.DEBUG) - # turn on httplib debug - httplib.HTTPConnection.debuglevel = 1 - else: - # if debug status is False, turn off debug logging, - # setting log level to default `logging.WARNING` - for _, logger in six.iteritems(self.logger): - logger.setLevel(logging.WARNING) - # turn off httplib debug - httplib.HTTPConnection.debuglevel = 0 - - @property - def logger_format(self): - """The logger format. - - The logger_formatter will be updated when sets logger_format. - - :param value: The format string. - :type: str - """ - return self.__logger_format - - @logger_format.setter - def logger_format(self, value): - """The logger format. - - The logger_formatter will be updated when sets logger_format. - - :param value: The format string. - :type: str - """ - self.__logger_format = value - self.logger_formatter = logging.Formatter(self.__logger_format) - - def get_api_key_with_prefix(self, identifier): - """Gets API key (with prefix if set). - - :param identifier: The identifier of apiKey. - :return: The token for api key authentication. - """ - if self.refresh_api_key_hook: - self.refresh_api_key_hook(self) - - key = self.api_key.get(identifier) - if key: - prefix = self.api_key_prefix.get(identifier) - if prefix: - return "%s %s" % (prefix, key) - else: - return key - - def get_basic_auth_token(self): - """Gets HTTP basic authentication header (string). - - :return: The token for basic HTTP authentication. - """ - return urllib3.util.make_headers( - basic_auth=self.username + ':' + self.password - ).get('authorization') - - def auth_settings(self): - """Gets Auth Settings dict for api client. - - :return: The Auth Settings information dict. - """ - return { - } - - def to_debug_report(self): - """Gets the essential information for debugging. - - :return: The report for debugging. - """ - return "Python SDK Debug Report:\n"\ - "OS: {env}\n"\ - "Python Version: {pyversion}\n"\ - "Version of the API: 1.1.0-alpha\n"\ - "SDK Package Version: 1.0.0".\ - format(env=sys.platform, pyversion=sys.version) diff --git a/swagger/api-container/swagger_client/models/__init__.py b/swagger/api-container/swagger_client/models/__init__.py deleted file mode 100644 index d818279d716bba6310ffda6e343c48f2a72a1180..0000000000000000000000000000000000000000 --- a/swagger/api-container/swagger_client/models/__init__.py +++ /dev/null @@ -1,33 +0,0 @@ -# coding: utf-8 - -# flake8: noqa -""" - Database Repository Container Service API - - Service that manages the containers # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -from __future__ import absolute_import - -# import models into model package -from swagger_client.models.api_error_dto import ApiErrorDto -from swagger_client.models.container_brief_dto import ContainerBriefDto -from swagger_client.models.container_change_dto import ContainerChangeDto -from swagger_client.models.container_create_request_dto import ContainerCreateRequestDto -from swagger_client.models.container_dto import ContainerDto -from swagger_client.models.database_dto import DatabaseDto -from swagger_client.models.granted_authority_dto import GrantedAuthorityDto -from swagger_client.models.image_brief_dto import ImageBriefDto -from swagger_client.models.image_change_dto import ImageChangeDto -from swagger_client.models.image_create_dto import ImageCreateDto -from swagger_client.models.image_date_dto import ImageDateDto -from swagger_client.models.image_dto import ImageDto -from swagger_client.models.image_env_item_dto import ImageEnvItemDto -from swagger_client.models.license_dto import LicenseDto -from swagger_client.models.table_brief_dto import TableBriefDto -from swagger_client.models.user_brief_dto import UserBriefDto -from swagger_client.models.user_dto import UserDto diff --git a/swagger/api-container/swagger_client/models/api_error_dto.py b/swagger/api-container/swagger_client/models/api_error_dto.py deleted file mode 100644 index 4f8067fdcbc2e833c0b9a5e769be8a09cf5a9ffa..0000000000000000000000000000000000000000 --- a/swagger/api-container/swagger_client/models/api_error_dto.py +++ /dev/null @@ -1,171 +0,0 @@ -# coding: utf-8 - -""" - Database Repository Container Service API - - Service that manages the containers # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -import pprint -import re # noqa: F401 - -import six - -class ApiErrorDto(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'status': 'str', - 'message': 'str', - 'code': 'str' - } - - attribute_map = { - 'status': 'status', - 'message': 'message', - 'code': 'code' - } - - def __init__(self, status=None, message=None, code=None): # noqa: E501 - """ApiErrorDto - a model defined in Swagger""" # noqa: E501 - self._status = None - self._message = None - self._code = None - self.discriminator = None - self.status = status - self.message = message - self.code = code - - @property - def status(self): - """Gets the status of this ApiErrorDto. # noqa: E501 - - - :return: The status of this ApiErrorDto. # noqa: E501 - :rtype: str - """ - return self._status - - @status.setter - def status(self, status): - """Sets the status of this ApiErrorDto. - - - :param status: The status of this ApiErrorDto. # noqa: E501 - :type: str - """ - if status is None: - raise ValueError("Invalid value for `status`, must not be `None`") # noqa: E501 - allowed_values = ["100 CONTINUE", "101 SWITCHING_PROTOCOLS", "102 PROCESSING", "103 CHECKPOINT", "200 OK", "201 CREATED", "202 ACCEPTED", "203 NON_AUTHORITATIVE_INFORMATION", "204 NO_CONTENT", "205 RESET_CONTENT", "206 PARTIAL_CONTENT", "207 MULTI_STATUS", "208 ALREADY_REPORTED", "226 IM_USED", "300 MULTIPLE_CHOICES", "301 MOVED_PERMANENTLY", "302 FOUND", "302 MOVED_TEMPORARILY", "303 SEE_OTHER", "304 NOT_MODIFIED", "305 USE_PROXY", "307 TEMPORARY_REDIRECT", "308 PERMANENT_REDIRECT", "400 BAD_REQUEST", "401 UNAUTHORIZED", "402 PAYMENT_REQUIRED", "403 FORBIDDEN", "404 NOT_FOUND", "405 METHOD_NOT_ALLOWED", "406 NOT_ACCEPTABLE", "407 PROXY_AUTHENTICATION_REQUIRED", "408 REQUEST_TIMEOUT", "409 CONFLICT", "410 GONE", "411 LENGTH_REQUIRED", "412 PRECONDITION_FAILED", "413 PAYLOAD_TOO_LARGE", "413 REQUEST_ENTITY_TOO_LARGE", "414 URI_TOO_LONG", "414 REQUEST_URI_TOO_LONG", "415 UNSUPPORTED_MEDIA_TYPE", "416 REQUESTED_RANGE_NOT_SATISFIABLE", "417 EXPECTATION_FAILED", "418 I_AM_A_TEAPOT", "419 INSUFFICIENT_SPACE_ON_RESOURCE", "420 METHOD_FAILURE", "421 DESTINATION_LOCKED", "422 UNPROCESSABLE_ENTITY", "423 LOCKED", "424 FAILED_DEPENDENCY", "425 TOO_EARLY", "426 UPGRADE_REQUIRED", "428 PRECONDITION_REQUIRED", "429 TOO_MANY_REQUESTS", "431 REQUEST_HEADER_FIELDS_TOO_LARGE", "451 UNAVAILABLE_FOR_LEGAL_REASONS", "500 INTERNAL_SERVER_ERROR", "501 NOT_IMPLEMENTED", "502 BAD_GATEWAY", "503 SERVICE_UNAVAILABLE", "504 GATEWAY_TIMEOUT", "505 HTTP_VERSION_NOT_SUPPORTED", "506 VARIANT_ALSO_NEGOTIATES", "507 INSUFFICIENT_STORAGE", "508 LOOP_DETECTED", "509 BANDWIDTH_LIMIT_EXCEEDED", "510 NOT_EXTENDED", "511 NETWORK_AUTHENTICATION_REQUIRED"] # noqa: E501 - if status not in allowed_values: - raise ValueError( - "Invalid value for `status` ({0}), must be one of {1}" # noqa: E501 - .format(status, allowed_values) - ) - - self._status = status - - @property - def message(self): - """Gets the message of this ApiErrorDto. # noqa: E501 - - - :return: The message of this ApiErrorDto. # noqa: E501 - :rtype: str - """ - return self._message - - @message.setter - def message(self, message): - """Sets the message of this ApiErrorDto. - - - :param message: The message of this ApiErrorDto. # noqa: E501 - :type: str - """ - if message is None: - raise ValueError("Invalid value for `message`, must not be `None`") # noqa: E501 - - self._message = message - - @property - def code(self): - """Gets the code of this ApiErrorDto. # noqa: E501 - - - :return: The code of this ApiErrorDto. # noqa: E501 - :rtype: str - """ - return self._code - - @code.setter - def code(self, code): - """Sets the code of this ApiErrorDto. - - - :param code: The code of this ApiErrorDto. # noqa: E501 - :type: str - """ - if code is None: - raise ValueError("Invalid value for `code`, must not be `None`") # noqa: E501 - - self._code = code - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(ApiErrorDto, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, ApiErrorDto): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/swagger/api-container/swagger_client/models/column_dto.py b/swagger/api-container/swagger_client/models/column_dto.py deleted file mode 100644 index 96e26927200e62d98f54e2ea8f231a0262f6955c..0000000000000000000000000000000000000000 --- a/swagger/api-container/swagger_client/models/column_dto.py +++ /dev/null @@ -1,514 +0,0 @@ -# coding: utf-8 - -""" - Database Repository Container Service API - - Service that manages the containers # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -import pprint -import re # noqa: F401 - -import six - -class ColumnDto(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'id': 'int', - 'name': 'str', - 'unique': 'bool', - 'references': 'str', - 'internal_name': 'str', - 'date_format': 'ImageDateDto', - 'auto_generated': 'bool', - 'is_primary_key': 'bool', - 'column_type': 'str', - 'column_concept': 'ConceptDto', - 'decimal_digits_before': 'int', - 'decimal_digits_after': 'int', - 'is_null_allowed': 'bool', - 'check_expression': 'str', - 'foreign_key': 'str', - 'enum_values': 'list[str]' - } - - attribute_map = { - 'id': 'id', - 'name': 'name', - 'unique': 'unique', - 'references': 'references', - 'internal_name': 'internal_name', - 'date_format': 'date_format', - 'auto_generated': 'auto_generated', - 'is_primary_key': 'is_primary_key', - 'column_type': 'column_type', - 'column_concept': 'column_concept', - 'decimal_digits_before': 'decimal_digits_before', - 'decimal_digits_after': 'decimal_digits_after', - 'is_null_allowed': 'is_null_allowed', - 'check_expression': 'check_expression', - 'foreign_key': 'foreign_key', - 'enum_values': 'enum_values' - } - - def __init__(self, id=None, name=None, unique=None, references=None, internal_name=None, date_format=None, auto_generated=None, is_primary_key=None, column_type=None, column_concept=None, decimal_digits_before=None, decimal_digits_after=None, is_null_allowed=None, check_expression=None, foreign_key=None, enum_values=None): # noqa: E501 - """ColumnDto - a model defined in Swagger""" # noqa: E501 - self._id = None - self._name = None - self._unique = None - self._references = None - self._internal_name = None - self._date_format = None - self._auto_generated = None - self._is_primary_key = None - self._column_type = None - self._column_concept = None - self._decimal_digits_before = None - self._decimal_digits_after = None - self._is_null_allowed = None - self._check_expression = None - self._foreign_key = None - self._enum_values = None - self.discriminator = None - self.id = id - self.name = name - self.unique = unique - if references is not None: - self.references = references - self.internal_name = internal_name - if date_format is not None: - self.date_format = date_format - self.auto_generated = auto_generated - self.is_primary_key = is_primary_key - self.column_type = column_type - if column_concept is not None: - self.column_concept = column_concept - if decimal_digits_before is not None: - self.decimal_digits_before = decimal_digits_before - if decimal_digits_after is not None: - self.decimal_digits_after = decimal_digits_after - self.is_null_allowed = is_null_allowed - if check_expression is not None: - self.check_expression = check_expression - if foreign_key is not None: - self.foreign_key = foreign_key - if enum_values is not None: - self.enum_values = enum_values - - @property - def id(self): - """Gets the id of this ColumnDto. # noqa: E501 - - - :return: The id of this ColumnDto. # noqa: E501 - :rtype: int - """ - return self._id - - @id.setter - def id(self, id): - """Sets the id of this ColumnDto. - - - :param id: The id of this ColumnDto. # noqa: E501 - :type: int - """ - if id is None: - raise ValueError("Invalid value for `id`, must not be `None`") # noqa: E501 - - self._id = id - - @property - def name(self): - """Gets the name of this ColumnDto. # noqa: E501 - - - :return: The name of this ColumnDto. # noqa: E501 - :rtype: str - """ - return self._name - - @name.setter - def name(self, name): - """Sets the name of this ColumnDto. - - - :param name: The name of this ColumnDto. # noqa: E501 - :type: str - """ - if name is None: - raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501 - - self._name = name - - @property - def unique(self): - """Gets the unique of this ColumnDto. # noqa: E501 - - - :return: The unique of this ColumnDto. # noqa: E501 - :rtype: bool - """ - return self._unique - - @unique.setter - def unique(self, unique): - """Sets the unique of this ColumnDto. - - - :param unique: The unique of this ColumnDto. # noqa: E501 - :type: bool - """ - if unique is None: - raise ValueError("Invalid value for `unique`, must not be `None`") # noqa: E501 - - self._unique = unique - - @property - def references(self): - """Gets the references of this ColumnDto. # noqa: E501 - - - :return: The references of this ColumnDto. # noqa: E501 - :rtype: str - """ - return self._references - - @references.setter - def references(self, references): - """Sets the references of this ColumnDto. - - - :param references: The references of this ColumnDto. # noqa: E501 - :type: str - """ - - self._references = references - - @property - def internal_name(self): - """Gets the internal_name of this ColumnDto. # noqa: E501 - - - :return: The internal_name of this ColumnDto. # noqa: E501 - :rtype: str - """ - return self._internal_name - - @internal_name.setter - def internal_name(self, internal_name): - """Sets the internal_name of this ColumnDto. - - - :param internal_name: The internal_name of this ColumnDto. # noqa: E501 - :type: str - """ - if internal_name is None: - raise ValueError("Invalid value for `internal_name`, must not be `None`") # noqa: E501 - - self._internal_name = internal_name - - @property - def date_format(self): - """Gets the date_format of this ColumnDto. # noqa: E501 - - - :return: The date_format of this ColumnDto. # noqa: E501 - :rtype: ImageDateDto - """ - return self._date_format - - @date_format.setter - def date_format(self, date_format): - """Sets the date_format of this ColumnDto. - - - :param date_format: The date_format of this ColumnDto. # noqa: E501 - :type: ImageDateDto - """ - - self._date_format = date_format - - @property - def auto_generated(self): - """Gets the auto_generated of this ColumnDto. # noqa: E501 - - - :return: The auto_generated of this ColumnDto. # noqa: E501 - :rtype: bool - """ - return self._auto_generated - - @auto_generated.setter - def auto_generated(self, auto_generated): - """Sets the auto_generated of this ColumnDto. - - - :param auto_generated: The auto_generated of this ColumnDto. # noqa: E501 - :type: bool - """ - if auto_generated is None: - raise ValueError("Invalid value for `auto_generated`, must not be `None`") # noqa: E501 - - self._auto_generated = auto_generated - - @property - def is_primary_key(self): - """Gets the is_primary_key of this ColumnDto. # noqa: E501 - - - :return: The is_primary_key of this ColumnDto. # noqa: E501 - :rtype: bool - """ - return self._is_primary_key - - @is_primary_key.setter - def is_primary_key(self, is_primary_key): - """Sets the is_primary_key of this ColumnDto. - - - :param is_primary_key: The is_primary_key of this ColumnDto. # noqa: E501 - :type: bool - """ - if is_primary_key is None: - raise ValueError("Invalid value for `is_primary_key`, must not be `None`") # noqa: E501 - - self._is_primary_key = is_primary_key - - @property - def column_type(self): - """Gets the column_type of this ColumnDto. # noqa: E501 - - - :return: The column_type of this ColumnDto. # noqa: E501 - :rtype: str - """ - return self._column_type - - @column_type.setter - def column_type(self, column_type): - """Sets the column_type of this ColumnDto. - - - :param column_type: The column_type of this ColumnDto. # noqa: E501 - :type: str - """ - if column_type is None: - raise ValueError("Invalid value for `column_type`, must not be `None`") # noqa: E501 - allowed_values = ["enum", "number", "decimal", "string", "text", "boolean", "date", "timestamp", "blob"] # noqa: E501 - if column_type not in allowed_values: - raise ValueError( - "Invalid value for `column_type` ({0}), must be one of {1}" # noqa: E501 - .format(column_type, allowed_values) - ) - - self._column_type = column_type - - @property - def column_concept(self): - """Gets the column_concept of this ColumnDto. # noqa: E501 - - - :return: The column_concept of this ColumnDto. # noqa: E501 - :rtype: ConceptDto - """ - return self._column_concept - - @column_concept.setter - def column_concept(self, column_concept): - """Sets the column_concept of this ColumnDto. - - - :param column_concept: The column_concept of this ColumnDto. # noqa: E501 - :type: ConceptDto - """ - - self._column_concept = column_concept - - @property - def decimal_digits_before(self): - """Gets the decimal_digits_before of this ColumnDto. # noqa: E501 - - - :return: The decimal_digits_before of this ColumnDto. # noqa: E501 - :rtype: int - """ - return self._decimal_digits_before - - @decimal_digits_before.setter - def decimal_digits_before(self, decimal_digits_before): - """Sets the decimal_digits_before of this ColumnDto. - - - :param decimal_digits_before: The decimal_digits_before of this ColumnDto. # noqa: E501 - :type: int - """ - - self._decimal_digits_before = decimal_digits_before - - @property - def decimal_digits_after(self): - """Gets the decimal_digits_after of this ColumnDto. # noqa: E501 - - - :return: The decimal_digits_after of this ColumnDto. # noqa: E501 - :rtype: int - """ - return self._decimal_digits_after - - @decimal_digits_after.setter - def decimal_digits_after(self, decimal_digits_after): - """Sets the decimal_digits_after of this ColumnDto. - - - :param decimal_digits_after: The decimal_digits_after of this ColumnDto. # noqa: E501 - :type: int - """ - - self._decimal_digits_after = decimal_digits_after - - @property - def is_null_allowed(self): - """Gets the is_null_allowed of this ColumnDto. # noqa: E501 - - - :return: The is_null_allowed of this ColumnDto. # noqa: E501 - :rtype: bool - """ - return self._is_null_allowed - - @is_null_allowed.setter - def is_null_allowed(self, is_null_allowed): - """Sets the is_null_allowed of this ColumnDto. - - - :param is_null_allowed: The is_null_allowed of this ColumnDto. # noqa: E501 - :type: bool - """ - if is_null_allowed is None: - raise ValueError("Invalid value for `is_null_allowed`, must not be `None`") # noqa: E501 - - self._is_null_allowed = is_null_allowed - - @property - def check_expression(self): - """Gets the check_expression of this ColumnDto. # noqa: E501 - - - :return: The check_expression of this ColumnDto. # noqa: E501 - :rtype: str - """ - return self._check_expression - - @check_expression.setter - def check_expression(self, check_expression): - """Sets the check_expression of this ColumnDto. - - - :param check_expression: The check_expression of this ColumnDto. # noqa: E501 - :type: str - """ - - self._check_expression = check_expression - - @property - def foreign_key(self): - """Gets the foreign_key of this ColumnDto. # noqa: E501 - - - :return: The foreign_key of this ColumnDto. # noqa: E501 - :rtype: str - """ - return self._foreign_key - - @foreign_key.setter - def foreign_key(self, foreign_key): - """Sets the foreign_key of this ColumnDto. - - - :param foreign_key: The foreign_key of this ColumnDto. # noqa: E501 - :type: str - """ - - self._foreign_key = foreign_key - - @property - def enum_values(self): - """Gets the enum_values of this ColumnDto. # noqa: E501 - - - :return: The enum_values of this ColumnDto. # noqa: E501 - :rtype: list[str] - """ - return self._enum_values - - @enum_values.setter - def enum_values(self, enum_values): - """Sets the enum_values of this ColumnDto. - - - :param enum_values: The enum_values of this ColumnDto. # noqa: E501 - :type: list[str] - """ - - self._enum_values = enum_values - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(ColumnDto, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, ColumnDto): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/swagger/api-container/swagger_client/models/concept_dto.py b/swagger/api-container/swagger_client/models/concept_dto.py deleted file mode 100644 index fb84f8162eefe1e337201edcf46d36fcde988341..0000000000000000000000000000000000000000 --- a/swagger/api-container/swagger_client/models/concept_dto.py +++ /dev/null @@ -1,165 +0,0 @@ -# coding: utf-8 - -""" - Database Repository Container Service API - - Service that manages the containers # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -import pprint -import re # noqa: F401 - -import six - -class ConceptDto(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'uri': 'str', - 'name': 'str', - 'created': 'datetime' - } - - attribute_map = { - 'uri': 'uri', - 'name': 'name', - 'created': 'created' - } - - def __init__(self, uri=None, name=None, created=None): # noqa: E501 - """ConceptDto - a model defined in Swagger""" # noqa: E501 - self._uri = None - self._name = None - self._created = None - self.discriminator = None - self.uri = uri - self.name = name - self.created = created - - @property - def uri(self): - """Gets the uri of this ConceptDto. # noqa: E501 - - - :return: The uri of this ConceptDto. # noqa: E501 - :rtype: str - """ - return self._uri - - @uri.setter - def uri(self, uri): - """Sets the uri of this ConceptDto. - - - :param uri: The uri of this ConceptDto. # noqa: E501 - :type: str - """ - if uri is None: - raise ValueError("Invalid value for `uri`, must not be `None`") # noqa: E501 - - self._uri = uri - - @property - def name(self): - """Gets the name of this ConceptDto. # noqa: E501 - - - :return: The name of this ConceptDto. # noqa: E501 - :rtype: str - """ - return self._name - - @name.setter - def name(self, name): - """Sets the name of this ConceptDto. - - - :param name: The name of this ConceptDto. # noqa: E501 - :type: str - """ - if name is None: - raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501 - - self._name = name - - @property - def created(self): - """Gets the created of this ConceptDto. # noqa: E501 - - - :return: The created of this ConceptDto. # noqa: E501 - :rtype: datetime - """ - return self._created - - @created.setter - def created(self, created): - """Sets the created of this ConceptDto. - - - :param created: The created of this ConceptDto. # noqa: E501 - :type: datetime - """ - if created is None: - raise ValueError("Invalid value for `created`, must not be `None`") # noqa: E501 - - self._created = created - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(ConceptDto, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, ConceptDto): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/swagger/api-container/swagger_client/models/container_brief_dto.py b/swagger/api-container/swagger_client/models/container_brief_dto.py deleted file mode 100644 index 7f3ed360118ec874f2589ed149190f416fdc8216..0000000000000000000000000000000000000000 --- a/swagger/api-container/swagger_client/models/container_brief_dto.py +++ /dev/null @@ -1,244 +0,0 @@ -# coding: utf-8 - -""" - Database Repository Container Service API - - Service that manages the containers # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -import pprint -import re # noqa: F401 - -import six - -class ContainerBriefDto(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'id': 'int', - 'hash': 'str', - 'name': 'str', - 'creator': 'UserBriefDto', - 'created': 'datetime', - 'internal_name': 'str' - } - - attribute_map = { - 'id': 'id', - 'hash': 'hash', - 'name': 'name', - 'creator': 'creator', - 'created': 'created', - 'internal_name': 'internal_name' - } - - def __init__(self, id=None, hash=None, name=None, creator=None, created=None, internal_name=None): # noqa: E501 - """ContainerBriefDto - a model defined in Swagger""" # noqa: E501 - self._id = None - self._hash = None - self._name = None - self._creator = None - self._created = None - self._internal_name = None - self.discriminator = None - self.id = id - self.hash = hash - self.name = name - if creator is not None: - self.creator = creator - if created is not None: - self.created = created - self.internal_name = internal_name - - @property - def id(self): - """Gets the id of this ContainerBriefDto. # noqa: E501 - - - :return: The id of this ContainerBriefDto. # noqa: E501 - :rtype: int - """ - return self._id - - @id.setter - def id(self, id): - """Sets the id of this ContainerBriefDto. - - - :param id: The id of this ContainerBriefDto. # noqa: E501 - :type: int - """ - if id is None: - raise ValueError("Invalid value for `id`, must not be `None`") # noqa: E501 - - self._id = id - - @property - def hash(self): - """Gets the hash of this ContainerBriefDto. # noqa: E501 - - - :return: The hash of this ContainerBriefDto. # noqa: E501 - :rtype: str - """ - return self._hash - - @hash.setter - def hash(self, hash): - """Sets the hash of this ContainerBriefDto. - - - :param hash: The hash of this ContainerBriefDto. # noqa: E501 - :type: str - """ - if hash is None: - raise ValueError("Invalid value for `hash`, must not be `None`") # noqa: E501 - - self._hash = hash - - @property - def name(self): - """Gets the name of this ContainerBriefDto. # noqa: E501 - - - :return: The name of this ContainerBriefDto. # noqa: E501 - :rtype: str - """ - return self._name - - @name.setter - def name(self, name): - """Sets the name of this ContainerBriefDto. - - - :param name: The name of this ContainerBriefDto. # noqa: E501 - :type: str - """ - if name is None: - raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501 - - self._name = name - - @property - def creator(self): - """Gets the creator of this ContainerBriefDto. # noqa: E501 - - - :return: The creator of this ContainerBriefDto. # noqa: E501 - :rtype: UserBriefDto - """ - return self._creator - - @creator.setter - def creator(self, creator): - """Sets the creator of this ContainerBriefDto. - - - :param creator: The creator of this ContainerBriefDto. # noqa: E501 - :type: UserBriefDto - """ - - self._creator = creator - - @property - def created(self): - """Gets the created of this ContainerBriefDto. # noqa: E501 - - - :return: The created of this ContainerBriefDto. # noqa: E501 - :rtype: datetime - """ - return self._created - - @created.setter - def created(self, created): - """Sets the created of this ContainerBriefDto. - - - :param created: The created of this ContainerBriefDto. # noqa: E501 - :type: datetime - """ - - self._created = created - - @property - def internal_name(self): - """Gets the internal_name of this ContainerBriefDto. # noqa: E501 - - - :return: The internal_name of this ContainerBriefDto. # noqa: E501 - :rtype: str - """ - return self._internal_name - - @internal_name.setter - def internal_name(self, internal_name): - """Sets the internal_name of this ContainerBriefDto. - - - :param internal_name: The internal_name of this ContainerBriefDto. # noqa: E501 - :type: str - """ - if internal_name is None: - raise ValueError("Invalid value for `internal_name`, must not be `None`") # noqa: E501 - - self._internal_name = internal_name - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(ContainerBriefDto, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, ContainerBriefDto): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/swagger/api-container/swagger_client/models/container_change_dto.py b/swagger/api-container/swagger_client/models/container_change_dto.py deleted file mode 100644 index 53972bef23d532a251b205821058e9a1dc73cb15..0000000000000000000000000000000000000000 --- a/swagger/api-container/swagger_client/models/container_change_dto.py +++ /dev/null @@ -1,117 +0,0 @@ -# coding: utf-8 - -""" - Database Repository Container Service API - - Service that manages the containers # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -import pprint -import re # noqa: F401 - -import six - -class ContainerChangeDto(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'action': 'str' - } - - attribute_map = { - 'action': 'action' - } - - def __init__(self, action=None): # noqa: E501 - """ContainerChangeDto - a model defined in Swagger""" # noqa: E501 - self._action = None - self.discriminator = None - self.action = action - - @property - def action(self): - """Gets the action of this ContainerChangeDto. # noqa: E501 - - - :return: The action of this ContainerChangeDto. # noqa: E501 - :rtype: str - """ - return self._action - - @action.setter - def action(self, action): - """Sets the action of this ContainerChangeDto. - - - :param action: The action of this ContainerChangeDto. # noqa: E501 - :type: str - """ - if action is None: - raise ValueError("Invalid value for `action`, must not be `None`") # noqa: E501 - allowed_values = ["start", "stop"] # noqa: E501 - if action not in allowed_values: - raise ValueError( - "Invalid value for `action` ({0}), must be one of {1}" # noqa: E501 - .format(action, allowed_values) - ) - - self._action = action - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(ContainerChangeDto, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, ContainerChangeDto): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/swagger/api-container/swagger_client/models/container_create_request_dto.py b/swagger/api-container/swagger_client/models/container_create_request_dto.py deleted file mode 100644 index 6ada3a3be16a350bddeed0e447b0d300ff0d0f3f..0000000000000000000000000000000000000000 --- a/swagger/api-container/swagger_client/models/container_create_request_dto.py +++ /dev/null @@ -1,165 +0,0 @@ -# coding: utf-8 - -""" - Database Repository Container Service API - - Service that manages the containers # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -import pprint -import re # noqa: F401 - -import six - -class ContainerCreateRequestDto(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'name': 'str', - 'repository': 'str', - 'tag': 'str' - } - - attribute_map = { - 'name': 'name', - 'repository': 'repository', - 'tag': 'tag' - } - - def __init__(self, name=None, repository=None, tag=None): # noqa: E501 - """ContainerCreateRequestDto - a model defined in Swagger""" # noqa: E501 - self._name = None - self._repository = None - self._tag = None - self.discriminator = None - self.name = name - self.repository = repository - self.tag = tag - - @property - def name(self): - """Gets the name of this ContainerCreateRequestDto. # noqa: E501 - - - :return: The name of this ContainerCreateRequestDto. # noqa: E501 - :rtype: str - """ - return self._name - - @name.setter - def name(self, name): - """Sets the name of this ContainerCreateRequestDto. - - - :param name: The name of this ContainerCreateRequestDto. # noqa: E501 - :type: str - """ - if name is None: - raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501 - - self._name = name - - @property - def repository(self): - """Gets the repository of this ContainerCreateRequestDto. # noqa: E501 - - - :return: The repository of this ContainerCreateRequestDto. # noqa: E501 - :rtype: str - """ - return self._repository - - @repository.setter - def repository(self, repository): - """Sets the repository of this ContainerCreateRequestDto. - - - :param repository: The repository of this ContainerCreateRequestDto. # noqa: E501 - :type: str - """ - if repository is None: - raise ValueError("Invalid value for `repository`, must not be `None`") # noqa: E501 - - self._repository = repository - - @property - def tag(self): - """Gets the tag of this ContainerCreateRequestDto. # noqa: E501 - - - :return: The tag of this ContainerCreateRequestDto. # noqa: E501 - :rtype: str - """ - return self._tag - - @tag.setter - def tag(self, tag): - """Sets the tag of this ContainerCreateRequestDto. - - - :param tag: The tag of this ContainerCreateRequestDto. # noqa: E501 - :type: str - """ - if tag is None: - raise ValueError("Invalid value for `tag`, must not be `None`") # noqa: E501 - - self._tag = tag - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(ContainerCreateRequestDto, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, ContainerCreateRequestDto): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/swagger/api-container/swagger_client/models/container_dto.py b/swagger/api-container/swagger_client/models/container_dto.py deleted file mode 100644 index 0be42d21d1d2692b65afe99388fb1eccd24a93cf..0000000000000000000000000000000000000000 --- a/swagger/api-container/swagger_client/models/container_dto.py +++ /dev/null @@ -1,355 +0,0 @@ -# coding: utf-8 - -""" - Database Repository Container Service API - - Service that manages the containers # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -import pprint -import re # noqa: F401 - -import six - -class ContainerDto(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'id': 'int', - 'hash': 'str', - 'name': 'str', - 'state': 'str', - 'databases': 'list[DatabaseDto]', - 'image': 'ImageBriefDto', - 'port': 'int', - 'created': 'datetime', - 'internal_name': 'str', - 'ip_address': 'str' - } - - attribute_map = { - 'id': 'id', - 'hash': 'hash', - 'name': 'name', - 'state': 'state', - 'databases': 'databases', - 'image': 'image', - 'port': 'port', - 'created': 'created', - 'internal_name': 'internal_name', - 'ip_address': 'ip_address' - } - - def __init__(self, id=None, hash=None, name=None, state=None, databases=None, image=None, port=None, created=None, internal_name=None, ip_address=None): # noqa: E501 - """ContainerDto - a model defined in Swagger""" # noqa: E501 - self._id = None - self._hash = None - self._name = None - self._state = None - self._databases = None - self._image = None - self._port = None - self._created = None - self._internal_name = None - self._ip_address = None - self.discriminator = None - self.id = id - self.hash = hash - self.name = name - if state is not None: - self.state = state - if databases is not None: - self.databases = databases - if image is not None: - self.image = image - if port is not None: - self.port = port - self.created = created - self.internal_name = internal_name - if ip_address is not None: - self.ip_address = ip_address - - @property - def id(self): - """Gets the id of this ContainerDto. # noqa: E501 - - - :return: The id of this ContainerDto. # noqa: E501 - :rtype: int - """ - return self._id - - @id.setter - def id(self, id): - """Sets the id of this ContainerDto. - - - :param id: The id of this ContainerDto. # noqa: E501 - :type: int - """ - if id is None: - raise ValueError("Invalid value for `id`, must not be `None`") # noqa: E501 - - self._id = id - - @property - def hash(self): - """Gets the hash of this ContainerDto. # noqa: E501 - - - :return: The hash of this ContainerDto. # noqa: E501 - :rtype: str - """ - return self._hash - - @hash.setter - def hash(self, hash): - """Sets the hash of this ContainerDto. - - - :param hash: The hash of this ContainerDto. # noqa: E501 - :type: str - """ - if hash is None: - raise ValueError("Invalid value for `hash`, must not be `None`") # noqa: E501 - - self._hash = hash - - @property - def name(self): - """Gets the name of this ContainerDto. # noqa: E501 - - - :return: The name of this ContainerDto. # noqa: E501 - :rtype: str - """ - return self._name - - @name.setter - def name(self, name): - """Sets the name of this ContainerDto. - - - :param name: The name of this ContainerDto. # noqa: E501 - :type: str - """ - if name is None: - raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501 - - self._name = name - - @property - def state(self): - """Gets the state of this ContainerDto. # noqa: E501 - - - :return: The state of this ContainerDto. # noqa: E501 - :rtype: str - """ - return self._state - - @state.setter - def state(self, state): - """Sets the state of this ContainerDto. - - - :param state: The state of this ContainerDto. # noqa: E501 - :type: str - """ - allowed_values = ["created", "restarting", "running", "paused", "exited", "dead"] # noqa: E501 - if state not in allowed_values: - raise ValueError( - "Invalid value for `state` ({0}), must be one of {1}" # noqa: E501 - .format(state, allowed_values) - ) - - self._state = state - - @property - def databases(self): - """Gets the databases of this ContainerDto. # noqa: E501 - - - :return: The databases of this ContainerDto. # noqa: E501 - :rtype: list[DatabaseDto] - """ - return self._databases - - @databases.setter - def databases(self, databases): - """Sets the databases of this ContainerDto. - - - :param databases: The databases of this ContainerDto. # noqa: E501 - :type: list[DatabaseDto] - """ - - self._databases = databases - - @property - def image(self): - """Gets the image of this ContainerDto. # noqa: E501 - - - :return: The image of this ContainerDto. # noqa: E501 - :rtype: ImageBriefDto - """ - return self._image - - @image.setter - def image(self, image): - """Sets the image of this ContainerDto. - - - :param image: The image of this ContainerDto. # noqa: E501 - :type: ImageBriefDto - """ - - self._image = image - - @property - def port(self): - """Gets the port of this ContainerDto. # noqa: E501 - - - :return: The port of this ContainerDto. # noqa: E501 - :rtype: int - """ - return self._port - - @port.setter - def port(self, port): - """Sets the port of this ContainerDto. - - - :param port: The port of this ContainerDto. # noqa: E501 - :type: int - """ - - self._port = port - - @property - def created(self): - """Gets the created of this ContainerDto. # noqa: E501 - - - :return: The created of this ContainerDto. # noqa: E501 - :rtype: datetime - """ - return self._created - - @created.setter - def created(self, created): - """Sets the created of this ContainerDto. - - - :param created: The created of this ContainerDto. # noqa: E501 - :type: datetime - """ - if created is None: - raise ValueError("Invalid value for `created`, must not be `None`") # noqa: E501 - - self._created = created - - @property - def internal_name(self): - """Gets the internal_name of this ContainerDto. # noqa: E501 - - - :return: The internal_name of this ContainerDto. # noqa: E501 - :rtype: str - """ - return self._internal_name - - @internal_name.setter - def internal_name(self, internal_name): - """Sets the internal_name of this ContainerDto. - - - :param internal_name: The internal_name of this ContainerDto. # noqa: E501 - :type: str - """ - if internal_name is None: - raise ValueError("Invalid value for `internal_name`, must not be `None`") # noqa: E501 - - self._internal_name = internal_name - - @property - def ip_address(self): - """Gets the ip_address of this ContainerDto. # noqa: E501 - - - :return: The ip_address of this ContainerDto. # noqa: E501 - :rtype: str - """ - return self._ip_address - - @ip_address.setter - def ip_address(self, ip_address): - """Sets the ip_address of this ContainerDto. - - - :param ip_address: The ip_address of this ContainerDto. # noqa: E501 - :type: str - """ - - self._ip_address = ip_address - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(ContainerDto, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, ContainerDto): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/swagger/api-container/swagger_client/models/database_dto.py b/swagger/api-container/swagger_client/models/database_dto.py deleted file mode 100644 index 5c0b35a3277cdcb2153446d382383c078807e205..0000000000000000000000000000000000000000 --- a/swagger/api-container/swagger_client/models/database_dto.py +++ /dev/null @@ -1,625 +0,0 @@ -# coding: utf-8 - -""" - Database Repository Container Service API - - Service that manages the containers # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -import pprint -import re # noqa: F401 - -import six - -class DatabaseDto(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'id': 'int', - 'name': 'str', - 'exchange': 'str', - 'creator': 'UserBriefDto', - 'subjects': 'list[str]', - 'language': 'str', - 'license': 'LicenseDto', - 'description': 'str', - 'publisher': 'str', - 'contact': 'UserDto', - 'tables': 'list[TableBriefDto]', - 'image': 'ImageDto', - 'container': 'ContainerDto', - 'created': 'datetime', - 'deleted': 'datetime', - 'internal_name': 'str', - 'publication_year': 'int', - 'publication_month': 'int', - 'publication_day': 'int', - 'is_public': 'bool' - } - - attribute_map = { - 'id': 'id', - 'name': 'name', - 'exchange': 'exchange', - 'creator': 'creator', - 'subjects': 'subjects', - 'language': 'language', - 'license': 'license', - 'description': 'description', - 'publisher': 'publisher', - 'contact': 'contact', - 'tables': 'tables', - 'image': 'image', - 'container': 'container', - 'created': 'created', - 'deleted': 'deleted', - 'internal_name': 'internal_name', - 'publication_year': 'publication_year', - 'publication_month': 'publication_month', - 'publication_day': 'publication_day', - 'is_public': 'is_public' - } - - def __init__(self, id=None, name=None, exchange=None, creator=None, subjects=None, language=None, license=None, description=None, publisher=None, contact=None, tables=None, image=None, container=None, created=None, deleted=None, internal_name=None, publication_year=None, publication_month=None, publication_day=None, is_public=None): # noqa: E501 - """DatabaseDto - a model defined in Swagger""" # noqa: E501 - self._id = None - self._name = None - self._exchange = None - self._creator = None - self._subjects = None - self._language = None - self._license = None - self._description = None - self._publisher = None - self._contact = None - self._tables = None - self._image = None - self._container = None - self._created = None - self._deleted = None - self._internal_name = None - self._publication_year = None - self._publication_month = None - self._publication_day = None - self._is_public = None - self.discriminator = None - self.id = id - self.name = name - self.exchange = exchange - self.creator = creator - if subjects is not None: - self.subjects = subjects - if language is not None: - self.language = language - if license is not None: - self.license = license - if description is not None: - self.description = description - if publisher is not None: - self.publisher = publisher - if contact is not None: - self.contact = contact - if tables is not None: - self.tables = tables - if image is not None: - self.image = image - if container is not None: - self.container = container - if created is not None: - self.created = created - if deleted is not None: - self.deleted = deleted - self.internal_name = internal_name - if publication_year is not None: - self.publication_year = publication_year - if publication_month is not None: - self.publication_month = publication_month - if publication_day is not None: - self.publication_day = publication_day - if is_public is not None: - self.is_public = is_public - - @property - def id(self): - """Gets the id of this DatabaseDto. # noqa: E501 - - - :return: The id of this DatabaseDto. # noqa: E501 - :rtype: int - """ - return self._id - - @id.setter - def id(self, id): - """Sets the id of this DatabaseDto. - - - :param id: The id of this DatabaseDto. # noqa: E501 - :type: int - """ - if id is None: - raise ValueError("Invalid value for `id`, must not be `None`") # noqa: E501 - - self._id = id - - @property - def name(self): - """Gets the name of this DatabaseDto. # noqa: E501 - - - :return: The name of this DatabaseDto. # noqa: E501 - :rtype: str - """ - return self._name - - @name.setter - def name(self, name): - """Sets the name of this DatabaseDto. - - - :param name: The name of this DatabaseDto. # noqa: E501 - :type: str - """ - if name is None: - raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501 - - self._name = name - - @property - def exchange(self): - """Gets the exchange of this DatabaseDto. # noqa: E501 - - - :return: The exchange of this DatabaseDto. # noqa: E501 - :rtype: str - """ - return self._exchange - - @exchange.setter - def exchange(self, exchange): - """Sets the exchange of this DatabaseDto. - - - :param exchange: The exchange of this DatabaseDto. # noqa: E501 - :type: str - """ - if exchange is None: - raise ValueError("Invalid value for `exchange`, must not be `None`") # noqa: E501 - - self._exchange = exchange - - @property - def creator(self): - """Gets the creator of this DatabaseDto. # noqa: E501 - - - :return: The creator of this DatabaseDto. # noqa: E501 - :rtype: UserBriefDto - """ - return self._creator - - @creator.setter - def creator(self, creator): - """Sets the creator of this DatabaseDto. - - - :param creator: The creator of this DatabaseDto. # noqa: E501 - :type: UserBriefDto - """ - if creator is None: - raise ValueError("Invalid value for `creator`, must not be `None`") # noqa: E501 - - self._creator = creator - - @property - def subjects(self): - """Gets the subjects of this DatabaseDto. # noqa: E501 - - database subjects # noqa: E501 - - :return: The subjects of this DatabaseDto. # noqa: E501 - :rtype: list[str] - """ - return self._subjects - - @subjects.setter - def subjects(self, subjects): - """Sets the subjects of this DatabaseDto. - - database subjects # noqa: E501 - - :param subjects: The subjects of this DatabaseDto. # noqa: E501 - :type: list[str] - """ - - self._subjects = subjects - - @property - def language(self): - """Gets the language of this DatabaseDto. # noqa: E501 - - - :return: The language of this DatabaseDto. # noqa: E501 - :rtype: str - """ - return self._language - - @language.setter - def language(self, language): - """Sets the language of this DatabaseDto. - - - :param language: The language of this DatabaseDto. # noqa: E501 - :type: str - """ - allowed_values = ["ab", "aa", "af", "ak", "sq", "am", "ar", "an", "hy", "as", "av", "ae", "ay", "az", "bm", "ba", "eu", "be", "bn", "bh", "bi", "bs", "br", "bg", "my", "ca", "km", "ch", "ce", "ny", "zh", "cu", "cv", "kw", "co", "cr", "hr", "cs", "da", "dv", "nl", "dz", "en", "eo", "et", "ee", "fo", "fj", "fi", "fr", "ff", "gd", "gl", "lg", "ka", "de", "ki", "el", "kl", "gn", "gu", "ht", "ha", "he", "hz", "hi", "ho", "hu", "is", "io", "ig", "id", "ia", "ie", "iu", "ik", "ga", "it", "ja", "jv", "kn", "kr", "ks", "kk", "rw", "kv", "kg", "ko", "kj", "ku", "ky", "lo", "la", "lv", "lb", "li", "ln", "lt", "lu", "mk", "mg", "ms", "ml", "mt", "gv", "mi", "mr", "mh", "ro", "mn", "na", "nv", "nd", "ng", "ne", "se", "no", "nb", "nn", "ii", "oc", "oj", "or", "om", "os", "pi", "pa", "ps", "fa", "pl", "pt", "qu", "rm", "rn", "ru", "sm", "sg", "sa", "sc", "sr", "sn", "sd", "si", "sk", "sl", "so", "st", "nr", "es", "su", "sw", "ss", "sv", "tl", "ty", "tg", "ta", "tt", "te", "th", "bo", "ti", "to", "ts", "tn", "tr", "tk", "tw", "ug", "uk", "ur", "uz", "ve", "vi", "vo", "wa", "cy", "fy", "wo", "xh", "yi", "yo", "za", "zu"] # noqa: E501 - if language not in allowed_values: - raise ValueError( - "Invalid value for `language` ({0}), must be one of {1}" # noqa: E501 - .format(language, allowed_values) - ) - - self._language = language - - @property - def license(self): - """Gets the license of this DatabaseDto. # noqa: E501 - - - :return: The license of this DatabaseDto. # noqa: E501 - :rtype: LicenseDto - """ - return self._license - - @license.setter - def license(self, license): - """Sets the license of this DatabaseDto. - - - :param license: The license of this DatabaseDto. # noqa: E501 - :type: LicenseDto - """ - - self._license = license - - @property - def description(self): - """Gets the description of this DatabaseDto. # noqa: E501 - - - :return: The description of this DatabaseDto. # noqa: E501 - :rtype: str - """ - return self._description - - @description.setter - def description(self, description): - """Sets the description of this DatabaseDto. - - - :param description: The description of this DatabaseDto. # noqa: E501 - :type: str - """ - - self._description = description - - @property - def publisher(self): - """Gets the publisher of this DatabaseDto. # noqa: E501 - - - :return: The publisher of this DatabaseDto. # noqa: E501 - :rtype: str - """ - return self._publisher - - @publisher.setter - def publisher(self, publisher): - """Sets the publisher of this DatabaseDto. - - - :param publisher: The publisher of this DatabaseDto. # noqa: E501 - :type: str - """ - - self._publisher = publisher - - @property - def contact(self): - """Gets the contact of this DatabaseDto. # noqa: E501 - - - :return: The contact of this DatabaseDto. # noqa: E501 - :rtype: UserDto - """ - return self._contact - - @contact.setter - def contact(self, contact): - """Sets the contact of this DatabaseDto. - - - :param contact: The contact of this DatabaseDto. # noqa: E501 - :type: UserDto - """ - - self._contact = contact - - @property - def tables(self): - """Gets the tables of this DatabaseDto. # noqa: E501 - - - :return: The tables of this DatabaseDto. # noqa: E501 - :rtype: list[TableBriefDto] - """ - return self._tables - - @tables.setter - def tables(self, tables): - """Sets the tables of this DatabaseDto. - - - :param tables: The tables of this DatabaseDto. # noqa: E501 - :type: list[TableBriefDto] - """ - - self._tables = tables - - @property - def image(self): - """Gets the image of this DatabaseDto. # noqa: E501 - - - :return: The image of this DatabaseDto. # noqa: E501 - :rtype: ImageDto - """ - return self._image - - @image.setter - def image(self, image): - """Sets the image of this DatabaseDto. - - - :param image: The image of this DatabaseDto. # noqa: E501 - :type: ImageDto - """ - - self._image = image - - @property - def container(self): - """Gets the container of this DatabaseDto. # noqa: E501 - - - :return: The container of this DatabaseDto. # noqa: E501 - :rtype: ContainerDto - """ - return self._container - - @container.setter - def container(self, container): - """Sets the container of this DatabaseDto. - - - :param container: The container of this DatabaseDto. # noqa: E501 - :type: ContainerDto - """ - - self._container = container - - @property - def created(self): - """Gets the created of this DatabaseDto. # noqa: E501 - - - :return: The created of this DatabaseDto. # noqa: E501 - :rtype: datetime - """ - return self._created - - @created.setter - def created(self, created): - """Sets the created of this DatabaseDto. - - - :param created: The created of this DatabaseDto. # noqa: E501 - :type: datetime - """ - - self._created = created - - @property - def deleted(self): - """Gets the deleted of this DatabaseDto. # noqa: E501 - - - :return: The deleted of this DatabaseDto. # noqa: E501 - :rtype: datetime - """ - return self._deleted - - @deleted.setter - def deleted(self, deleted): - """Sets the deleted of this DatabaseDto. - - - :param deleted: The deleted of this DatabaseDto. # noqa: E501 - :type: datetime - """ - - self._deleted = deleted - - @property - def internal_name(self): - """Gets the internal_name of this DatabaseDto. # noqa: E501 - - - :return: The internal_name of this DatabaseDto. # noqa: E501 - :rtype: str - """ - return self._internal_name - - @internal_name.setter - def internal_name(self, internal_name): - """Sets the internal_name of this DatabaseDto. - - - :param internal_name: The internal_name of this DatabaseDto. # noqa: E501 - :type: str - """ - if internal_name is None: - raise ValueError("Invalid value for `internal_name`, must not be `None`") # noqa: E501 - - self._internal_name = internal_name - - @property - def publication_year(self): - """Gets the publication_year of this DatabaseDto. # noqa: E501 - - database publication year # noqa: E501 - - :return: The publication_year of this DatabaseDto. # noqa: E501 - :rtype: int - """ - return self._publication_year - - @publication_year.setter - def publication_year(self, publication_year): - """Sets the publication_year of this DatabaseDto. - - database publication year # noqa: E501 - - :param publication_year: The publication_year of this DatabaseDto. # noqa: E501 - :type: int - """ - - self._publication_year = publication_year - - @property - def publication_month(self): - """Gets the publication_month of this DatabaseDto. # noqa: E501 - - database publication month # noqa: E501 - - :return: The publication_month of this DatabaseDto. # noqa: E501 - :rtype: int - """ - return self._publication_month - - @publication_month.setter - def publication_month(self, publication_month): - """Sets the publication_month of this DatabaseDto. - - database publication month # noqa: E501 - - :param publication_month: The publication_month of this DatabaseDto. # noqa: E501 - :type: int - """ - - self._publication_month = publication_month - - @property - def publication_day(self): - """Gets the publication_day of this DatabaseDto. # noqa: E501 - - database publication day # noqa: E501 - - :return: The publication_day of this DatabaseDto. # noqa: E501 - :rtype: int - """ - return self._publication_day - - @publication_day.setter - def publication_day(self, publication_day): - """Sets the publication_day of this DatabaseDto. - - database publication day # noqa: E501 - - :param publication_day: The publication_day of this DatabaseDto. # noqa: E501 - :type: int - """ - - self._publication_day = publication_day - - @property - def is_public(self): - """Gets the is_public of this DatabaseDto. # noqa: E501 - - database publicity # noqa: E501 - - :return: The is_public of this DatabaseDto. # noqa: E501 - :rtype: bool - """ - return self._is_public - - @is_public.setter - def is_public(self, is_public): - """Sets the is_public of this DatabaseDto. - - database publicity # noqa: E501 - - :param is_public: The is_public of this DatabaseDto. # noqa: E501 - :type: bool - """ - - self._is_public = is_public - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(DatabaseDto, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, DatabaseDto): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/swagger/api-container/swagger_client/models/granted_authority_dto.py b/swagger/api-container/swagger_client/models/granted_authority_dto.py deleted file mode 100644 index 90e4f275324e10027d0498536655ae32339007c0..0000000000000000000000000000000000000000 --- a/swagger/api-container/swagger_client/models/granted_authority_dto.py +++ /dev/null @@ -1,110 +0,0 @@ -# coding: utf-8 - -""" - Database Repository Container Service API - - Service that manages the containers # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -import pprint -import re # noqa: F401 - -import six - -class GrantedAuthorityDto(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'authority': 'str' - } - - attribute_map = { - 'authority': 'authority' - } - - def __init__(self, authority=None): # noqa: E501 - """GrantedAuthorityDto - a model defined in Swagger""" # noqa: E501 - self._authority = None - self.discriminator = None - if authority is not None: - self.authority = authority - - @property - def authority(self): - """Gets the authority of this GrantedAuthorityDto. # noqa: E501 - - - :return: The authority of this GrantedAuthorityDto. # noqa: E501 - :rtype: str - """ - return self._authority - - @authority.setter - def authority(self, authority): - """Sets the authority of this GrantedAuthorityDto. - - - :param authority: The authority of this GrantedAuthorityDto. # noqa: E501 - :type: str - """ - - self._authority = authority - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(GrantedAuthorityDto, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, GrantedAuthorityDto): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/swagger/api-container/swagger_client/models/image_brief_dto.py b/swagger/api-container/swagger_client/models/image_brief_dto.py deleted file mode 100644 index 9b88ef6b4d7bf368e5af67dee1dbca0a49431379..0000000000000000000000000000000000000000 --- a/swagger/api-container/swagger_client/models/image_brief_dto.py +++ /dev/null @@ -1,165 +0,0 @@ -# coding: utf-8 - -""" - Database Repository Container Service API - - Service that manages the containers # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -import pprint -import re # noqa: F401 - -import six - -class ImageBriefDto(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'id': 'int', - 'repository': 'str', - 'tag': 'str' - } - - attribute_map = { - 'id': 'id', - 'repository': 'repository', - 'tag': 'tag' - } - - def __init__(self, id=None, repository=None, tag=None): # noqa: E501 - """ImageBriefDto - a model defined in Swagger""" # noqa: E501 - self._id = None - self._repository = None - self._tag = None - self.discriminator = None - self.id = id - self.repository = repository - self.tag = tag - - @property - def id(self): - """Gets the id of this ImageBriefDto. # noqa: E501 - - - :return: The id of this ImageBriefDto. # noqa: E501 - :rtype: int - """ - return self._id - - @id.setter - def id(self, id): - """Sets the id of this ImageBriefDto. - - - :param id: The id of this ImageBriefDto. # noqa: E501 - :type: int - """ - if id is None: - raise ValueError("Invalid value for `id`, must not be `None`") # noqa: E501 - - self._id = id - - @property - def repository(self): - """Gets the repository of this ImageBriefDto. # noqa: E501 - - - :return: The repository of this ImageBriefDto. # noqa: E501 - :rtype: str - """ - return self._repository - - @repository.setter - def repository(self, repository): - """Sets the repository of this ImageBriefDto. - - - :param repository: The repository of this ImageBriefDto. # noqa: E501 - :type: str - """ - if repository is None: - raise ValueError("Invalid value for `repository`, must not be `None`") # noqa: E501 - - self._repository = repository - - @property - def tag(self): - """Gets the tag of this ImageBriefDto. # noqa: E501 - - - :return: The tag of this ImageBriefDto. # noqa: E501 - :rtype: str - """ - return self._tag - - @tag.setter - def tag(self, tag): - """Sets the tag of this ImageBriefDto. - - - :param tag: The tag of this ImageBriefDto. # noqa: E501 - :type: str - """ - if tag is None: - raise ValueError("Invalid value for `tag`, must not be `None`") # noqa: E501 - - self._tag = tag - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(ImageBriefDto, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, ImageBriefDto): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/swagger/api-container/swagger_client/models/image_change_dto.py b/swagger/api-container/swagger_client/models/image_change_dto.py deleted file mode 100644 index ee455f431a8444c195db6dd5edaa74358624cdd9..0000000000000000000000000000000000000000 --- a/swagger/api-container/swagger_client/models/image_change_dto.py +++ /dev/null @@ -1,217 +0,0 @@ -# coding: utf-8 - -""" - Database Repository Container Service API - - Service that manages the containers # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -import pprint -import re # noqa: F401 - -import six - -class ImageChangeDto(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'default_port': 'int', - 'environment': 'list[ImageEnvItemDto]', - 'dialect': 'str', - 'driver_class': 'str', - 'jdbc_method': 'str' - } - - attribute_map = { - 'default_port': 'defaultPort', - 'environment': 'environment', - 'dialect': 'dialect', - 'driver_class': 'driver_class', - 'jdbc_method': 'jdbc_method' - } - - def __init__(self, default_port=None, environment=None, dialect=None, driver_class=None, jdbc_method=None): # noqa: E501 - """ImageChangeDto - a model defined in Swagger""" # noqa: E501 - self._default_port = None - self._environment = None - self._dialect = None - self._driver_class = None - self._jdbc_method = None - self.discriminator = None - if default_port is not None: - self.default_port = default_port - if environment is not None: - self.environment = environment - self.dialect = dialect - self.driver_class = driver_class - self.jdbc_method = jdbc_method - - @property - def default_port(self): - """Gets the default_port of this ImageChangeDto. # noqa: E501 - - - :return: The default_port of this ImageChangeDto. # noqa: E501 - :rtype: int - """ - return self._default_port - - @default_port.setter - def default_port(self, default_port): - """Sets the default_port of this ImageChangeDto. - - - :param default_port: The default_port of this ImageChangeDto. # noqa: E501 - :type: int - """ - - self._default_port = default_port - - @property - def environment(self): - """Gets the environment of this ImageChangeDto. # noqa: E501 - - - :return: The environment of this ImageChangeDto. # noqa: E501 - :rtype: list[ImageEnvItemDto] - """ - return self._environment - - @environment.setter - def environment(self, environment): - """Sets the environment of this ImageChangeDto. - - - :param environment: The environment of this ImageChangeDto. # noqa: E501 - :type: list[ImageEnvItemDto] - """ - - self._environment = environment - - @property - def dialect(self): - """Gets the dialect of this ImageChangeDto. # noqa: E501 - - - :return: The dialect of this ImageChangeDto. # noqa: E501 - :rtype: str - """ - return self._dialect - - @dialect.setter - def dialect(self, dialect): - """Sets the dialect of this ImageChangeDto. - - - :param dialect: The dialect of this ImageChangeDto. # noqa: E501 - :type: str - """ - if dialect is None: - raise ValueError("Invalid value for `dialect`, must not be `None`") # noqa: E501 - - self._dialect = dialect - - @property - def driver_class(self): - """Gets the driver_class of this ImageChangeDto. # noqa: E501 - - - :return: The driver_class of this ImageChangeDto. # noqa: E501 - :rtype: str - """ - return self._driver_class - - @driver_class.setter - def driver_class(self, driver_class): - """Sets the driver_class of this ImageChangeDto. - - - :param driver_class: The driver_class of this ImageChangeDto. # noqa: E501 - :type: str - """ - if driver_class is None: - raise ValueError("Invalid value for `driver_class`, must not be `None`") # noqa: E501 - - self._driver_class = driver_class - - @property - def jdbc_method(self): - """Gets the jdbc_method of this ImageChangeDto. # noqa: E501 - - - :return: The jdbc_method of this ImageChangeDto. # noqa: E501 - :rtype: str - """ - return self._jdbc_method - - @jdbc_method.setter - def jdbc_method(self, jdbc_method): - """Sets the jdbc_method of this ImageChangeDto. - - - :param jdbc_method: The jdbc_method of this ImageChangeDto. # noqa: E501 - :type: str - """ - if jdbc_method is None: - raise ValueError("Invalid value for `jdbc_method`, must not be `None`") # noqa: E501 - - self._jdbc_method = jdbc_method - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(ImageChangeDto, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, ImageChangeDto): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/swagger/api-container/swagger_client/models/image_create_dto.py b/swagger/api-container/swagger_client/models/image_create_dto.py deleted file mode 100644 index 43bf86e8f014a28de06c5b073689837b52d9be85..0000000000000000000000000000000000000000 --- a/swagger/api-container/swagger_client/models/image_create_dto.py +++ /dev/null @@ -1,272 +0,0 @@ -# coding: utf-8 - -""" - Database Repository Container Service API - - Service that manages the containers # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -import pprint -import re # noqa: F401 - -import six - -class ImageCreateDto(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'repository': 'str', - 'tag': 'str', - 'dialect': 'str', - 'environment': 'list[ImageEnvItemDto]', - 'driver_class': 'str', - 'jdbc_method': 'str', - 'default_port': 'int' - } - - attribute_map = { - 'repository': 'repository', - 'tag': 'tag', - 'dialect': 'dialect', - 'environment': 'environment', - 'driver_class': 'driver_class', - 'jdbc_method': 'jdbc_method', - 'default_port': 'default_port' - } - - def __init__(self, repository=None, tag=None, dialect=None, environment=None, driver_class=None, jdbc_method=None, default_port=None): # noqa: E501 - """ImageCreateDto - a model defined in Swagger""" # noqa: E501 - self._repository = None - self._tag = None - self._dialect = None - self._environment = None - self._driver_class = None - self._jdbc_method = None - self._default_port = None - self.discriminator = None - self.repository = repository - self.tag = tag - self.dialect = dialect - if environment is not None: - self.environment = environment - self.driver_class = driver_class - self.jdbc_method = jdbc_method - self.default_port = default_port - - @property - def repository(self): - """Gets the repository of this ImageCreateDto. # noqa: E501 - - - :return: The repository of this ImageCreateDto. # noqa: E501 - :rtype: str - """ - return self._repository - - @repository.setter - def repository(self, repository): - """Sets the repository of this ImageCreateDto. - - - :param repository: The repository of this ImageCreateDto. # noqa: E501 - :type: str - """ - if repository is None: - raise ValueError("Invalid value for `repository`, must not be `None`") # noqa: E501 - - self._repository = repository - - @property - def tag(self): - """Gets the tag of this ImageCreateDto. # noqa: E501 - - - :return: The tag of this ImageCreateDto. # noqa: E501 - :rtype: str - """ - return self._tag - - @tag.setter - def tag(self, tag): - """Sets the tag of this ImageCreateDto. - - - :param tag: The tag of this ImageCreateDto. # noqa: E501 - :type: str - """ - if tag is None: - raise ValueError("Invalid value for `tag`, must not be `None`") # noqa: E501 - - self._tag = tag - - @property - def dialect(self): - """Gets the dialect of this ImageCreateDto. # noqa: E501 - - - :return: The dialect of this ImageCreateDto. # noqa: E501 - :rtype: str - """ - return self._dialect - - @dialect.setter - def dialect(self, dialect): - """Sets the dialect of this ImageCreateDto. - - - :param dialect: The dialect of this ImageCreateDto. # noqa: E501 - :type: str - """ - if dialect is None: - raise ValueError("Invalid value for `dialect`, must not be `None`") # noqa: E501 - - self._dialect = dialect - - @property - def environment(self): - """Gets the environment of this ImageCreateDto. # noqa: E501 - - - :return: The environment of this ImageCreateDto. # noqa: E501 - :rtype: list[ImageEnvItemDto] - """ - return self._environment - - @environment.setter - def environment(self, environment): - """Sets the environment of this ImageCreateDto. - - - :param environment: The environment of this ImageCreateDto. # noqa: E501 - :type: list[ImageEnvItemDto] - """ - - self._environment = environment - - @property - def driver_class(self): - """Gets the driver_class of this ImageCreateDto. # noqa: E501 - - - :return: The driver_class of this ImageCreateDto. # noqa: E501 - :rtype: str - """ - return self._driver_class - - @driver_class.setter - def driver_class(self, driver_class): - """Sets the driver_class of this ImageCreateDto. - - - :param driver_class: The driver_class of this ImageCreateDto. # noqa: E501 - :type: str - """ - if driver_class is None: - raise ValueError("Invalid value for `driver_class`, must not be `None`") # noqa: E501 - - self._driver_class = driver_class - - @property - def jdbc_method(self): - """Gets the jdbc_method of this ImageCreateDto. # noqa: E501 - - - :return: The jdbc_method of this ImageCreateDto. # noqa: E501 - :rtype: str - """ - return self._jdbc_method - - @jdbc_method.setter - def jdbc_method(self, jdbc_method): - """Sets the jdbc_method of this ImageCreateDto. - - - :param jdbc_method: The jdbc_method of this ImageCreateDto. # noqa: E501 - :type: str - """ - if jdbc_method is None: - raise ValueError("Invalid value for `jdbc_method`, must not be `None`") # noqa: E501 - - self._jdbc_method = jdbc_method - - @property - def default_port(self): - """Gets the default_port of this ImageCreateDto. # noqa: E501 - - - :return: The default_port of this ImageCreateDto. # noqa: E501 - :rtype: int - """ - return self._default_port - - @default_port.setter - def default_port(self, default_port): - """Sets the default_port of this ImageCreateDto. - - - :param default_port: The default_port of this ImageCreateDto. # noqa: E501 - :type: int - """ - if default_port is None: - raise ValueError("Invalid value for `default_port`, must not be `None`") # noqa: E501 - - self._default_port = default_port - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(ImageCreateDto, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, ImageCreateDto): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/swagger/api-container/swagger_client/models/image_date_dto.py b/swagger/api-container/swagger_client/models/image_date_dto.py deleted file mode 100644 index dfee1f2a7d933f03a4bf99fc0f168a95df944329..0000000000000000000000000000000000000000 --- a/swagger/api-container/swagger_client/models/image_date_dto.py +++ /dev/null @@ -1,245 +0,0 @@ -# coding: utf-8 - -""" - Database Repository Container Service API - - Service that manages the containers # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -import pprint -import re # noqa: F401 - -import six - -class ImageDateDto(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'id': 'int', - 'example': 'str', - 'database_format': 'str', - 'unix_format': 'str', - 'has_time': 'bool', - 'created_at': 'datetime' - } - - attribute_map = { - 'id': 'id', - 'example': 'example', - 'database_format': 'database_format', - 'unix_format': 'unix_format', - 'has_time': 'has_time', - 'created_at': 'created_at' - } - - def __init__(self, id=None, example=None, database_format=None, unix_format=None, has_time=None, created_at=None): # noqa: E501 - """ImageDateDto - a model defined in Swagger""" # noqa: E501 - self._id = None - self._example = None - self._database_format = None - self._unix_format = None - self._has_time = None - self._created_at = None - self.discriminator = None - self.id = id - self.example = example - self.database_format = database_format - self.unix_format = unix_format - self.has_time = has_time - if created_at is not None: - self.created_at = created_at - - @property - def id(self): - """Gets the id of this ImageDateDto. # noqa: E501 - - - :return: The id of this ImageDateDto. # noqa: E501 - :rtype: int - """ - return self._id - - @id.setter - def id(self, id): - """Sets the id of this ImageDateDto. - - - :param id: The id of this ImageDateDto. # noqa: E501 - :type: int - """ - if id is None: - raise ValueError("Invalid value for `id`, must not be `None`") # noqa: E501 - - self._id = id - - @property - def example(self): - """Gets the example of this ImageDateDto. # noqa: E501 - - - :return: The example of this ImageDateDto. # noqa: E501 - :rtype: str - """ - return self._example - - @example.setter - def example(self, example): - """Sets the example of this ImageDateDto. - - - :param example: The example of this ImageDateDto. # noqa: E501 - :type: str - """ - if example is None: - raise ValueError("Invalid value for `example`, must not be `None`") # noqa: E501 - - self._example = example - - @property - def database_format(self): - """Gets the database_format of this ImageDateDto. # noqa: E501 - - - :return: The database_format of this ImageDateDto. # noqa: E501 - :rtype: str - """ - return self._database_format - - @database_format.setter - def database_format(self, database_format): - """Sets the database_format of this ImageDateDto. - - - :param database_format: The database_format of this ImageDateDto. # noqa: E501 - :type: str - """ - if database_format is None: - raise ValueError("Invalid value for `database_format`, must not be `None`") # noqa: E501 - - self._database_format = database_format - - @property - def unix_format(self): - """Gets the unix_format of this ImageDateDto. # noqa: E501 - - - :return: The unix_format of this ImageDateDto. # noqa: E501 - :rtype: str - """ - return self._unix_format - - @unix_format.setter - def unix_format(self, unix_format): - """Sets the unix_format of this ImageDateDto. - - - :param unix_format: The unix_format of this ImageDateDto. # noqa: E501 - :type: str - """ - if unix_format is None: - raise ValueError("Invalid value for `unix_format`, must not be `None`") # noqa: E501 - - self._unix_format = unix_format - - @property - def has_time(self): - """Gets the has_time of this ImageDateDto. # noqa: E501 - - - :return: The has_time of this ImageDateDto. # noqa: E501 - :rtype: bool - """ - return self._has_time - - @has_time.setter - def has_time(self, has_time): - """Sets the has_time of this ImageDateDto. - - - :param has_time: The has_time of this ImageDateDto. # noqa: E501 - :type: bool - """ - if has_time is None: - raise ValueError("Invalid value for `has_time`, must not be `None`") # noqa: E501 - - self._has_time = has_time - - @property - def created_at(self): - """Gets the created_at of this ImageDateDto. # noqa: E501 - - - :return: The created_at of this ImageDateDto. # noqa: E501 - :rtype: datetime - """ - return self._created_at - - @created_at.setter - def created_at(self, created_at): - """Sets the created_at of this ImageDateDto. - - - :param created_at: The created_at of this ImageDateDto. # noqa: E501 - :type: datetime - """ - - self._created_at = created_at - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(ImageDateDto, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, ImageDateDto): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/swagger/api-container/swagger_client/models/image_dto.py b/swagger/api-container/swagger_client/models/image_dto.py deleted file mode 100644 index 405fe0625622c2df139734e16d38f080d738becd..0000000000000000000000000000000000000000 --- a/swagger/api-container/swagger_client/models/image_dto.py +++ /dev/null @@ -1,404 +0,0 @@ -# coding: utf-8 - -""" - Database Repository Container Service API - - Service that manages the containers # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -import pprint -import re # noqa: F401 - -import six - -class ImageDto(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'id': 'int', - 'repository': 'str', - 'tag': 'str', - 'dialect': 'str', - 'hash': 'str', - 'compiled': 'datetime', - 'size': 'int', - 'environment': 'list[ImageEnvItemDto]', - 'driver_class': 'str', - 'date_formats': 'list[ImageDateDto]', - 'jdbc_method': 'str', - 'default_port': 'int' - } - - attribute_map = { - 'id': 'id', - 'repository': 'repository', - 'tag': 'tag', - 'dialect': 'dialect', - 'hash': 'hash', - 'compiled': 'compiled', - 'size': 'size', - 'environment': 'environment', - 'driver_class': 'driver_class', - 'date_formats': 'date_formats', - 'jdbc_method': 'jdbc_method', - 'default_port': 'default_port' - } - - def __init__(self, id=None, repository=None, tag=None, dialect=None, hash=None, compiled=None, size=None, environment=None, driver_class=None, date_formats=None, jdbc_method=None, default_port=None): # noqa: E501 - """ImageDto - a model defined in Swagger""" # noqa: E501 - self._id = None - self._repository = None - self._tag = None - self._dialect = None - self._hash = None - self._compiled = None - self._size = None - self._environment = None - self._driver_class = None - self._date_formats = None - self._jdbc_method = None - self._default_port = None - self.discriminator = None - self.id = id - self.repository = repository - self.tag = tag - self.dialect = dialect - if hash is not None: - self.hash = hash - if compiled is not None: - self.compiled = compiled - if size is not None: - self.size = size - self.environment = environment - self.driver_class = driver_class - if date_formats is not None: - self.date_formats = date_formats - self.jdbc_method = jdbc_method - self.default_port = default_port - - @property - def id(self): - """Gets the id of this ImageDto. # noqa: E501 - - - :return: The id of this ImageDto. # noqa: E501 - :rtype: int - """ - return self._id - - @id.setter - def id(self, id): - """Sets the id of this ImageDto. - - - :param id: The id of this ImageDto. # noqa: E501 - :type: int - """ - if id is None: - raise ValueError("Invalid value for `id`, must not be `None`") # noqa: E501 - - self._id = id - - @property - def repository(self): - """Gets the repository of this ImageDto. # noqa: E501 - - - :return: The repository of this ImageDto. # noqa: E501 - :rtype: str - """ - return self._repository - - @repository.setter - def repository(self, repository): - """Sets the repository of this ImageDto. - - - :param repository: The repository of this ImageDto. # noqa: E501 - :type: str - """ - if repository is None: - raise ValueError("Invalid value for `repository`, must not be `None`") # noqa: E501 - - self._repository = repository - - @property - def tag(self): - """Gets the tag of this ImageDto. # noqa: E501 - - - :return: The tag of this ImageDto. # noqa: E501 - :rtype: str - """ - return self._tag - - @tag.setter - def tag(self, tag): - """Sets the tag of this ImageDto. - - - :param tag: The tag of this ImageDto. # noqa: E501 - :type: str - """ - if tag is None: - raise ValueError("Invalid value for `tag`, must not be `None`") # noqa: E501 - - self._tag = tag - - @property - def dialect(self): - """Gets the dialect of this ImageDto. # noqa: E501 - - - :return: The dialect of this ImageDto. # noqa: E501 - :rtype: str - """ - return self._dialect - - @dialect.setter - def dialect(self, dialect): - """Sets the dialect of this ImageDto. - - - :param dialect: The dialect of this ImageDto. # noqa: E501 - :type: str - """ - if dialect is None: - raise ValueError("Invalid value for `dialect`, must not be `None`") # noqa: E501 - - self._dialect = dialect - - @property - def hash(self): - """Gets the hash of this ImageDto. # noqa: E501 - - - :return: The hash of this ImageDto. # noqa: E501 - :rtype: str - """ - return self._hash - - @hash.setter - def hash(self, hash): - """Sets the hash of this ImageDto. - - - :param hash: The hash of this ImageDto. # noqa: E501 - :type: str - """ - - self._hash = hash - - @property - def compiled(self): - """Gets the compiled of this ImageDto. # noqa: E501 - - - :return: The compiled of this ImageDto. # noqa: E501 - :rtype: datetime - """ - return self._compiled - - @compiled.setter - def compiled(self, compiled): - """Sets the compiled of this ImageDto. - - - :param compiled: The compiled of this ImageDto. # noqa: E501 - :type: datetime - """ - - self._compiled = compiled - - @property - def size(self): - """Gets the size of this ImageDto. # noqa: E501 - - - :return: The size of this ImageDto. # noqa: E501 - :rtype: int - """ - return self._size - - @size.setter - def size(self, size): - """Sets the size of this ImageDto. - - - :param size: The size of this ImageDto. # noqa: E501 - :type: int - """ - - self._size = size - - @property - def environment(self): - """Gets the environment of this ImageDto. # noqa: E501 - - - :return: The environment of this ImageDto. # noqa: E501 - :rtype: list[ImageEnvItemDto] - """ - return self._environment - - @environment.setter - def environment(self, environment): - """Sets the environment of this ImageDto. - - - :param environment: The environment of this ImageDto. # noqa: E501 - :type: list[ImageEnvItemDto] - """ - if environment is None: - raise ValueError("Invalid value for `environment`, must not be `None`") # noqa: E501 - - self._environment = environment - - @property - def driver_class(self): - """Gets the driver_class of this ImageDto. # noqa: E501 - - - :return: The driver_class of this ImageDto. # noqa: E501 - :rtype: str - """ - return self._driver_class - - @driver_class.setter - def driver_class(self, driver_class): - """Sets the driver_class of this ImageDto. - - - :param driver_class: The driver_class of this ImageDto. # noqa: E501 - :type: str - """ - if driver_class is None: - raise ValueError("Invalid value for `driver_class`, must not be `None`") # noqa: E501 - - self._driver_class = driver_class - - @property - def date_formats(self): - """Gets the date_formats of this ImageDto. # noqa: E501 - - - :return: The date_formats of this ImageDto. # noqa: E501 - :rtype: list[ImageDateDto] - """ - return self._date_formats - - @date_formats.setter - def date_formats(self, date_formats): - """Sets the date_formats of this ImageDto. - - - :param date_formats: The date_formats of this ImageDto. # noqa: E501 - :type: list[ImageDateDto] - """ - - self._date_formats = date_formats - - @property - def jdbc_method(self): - """Gets the jdbc_method of this ImageDto. # noqa: E501 - - - :return: The jdbc_method of this ImageDto. # noqa: E501 - :rtype: str - """ - return self._jdbc_method - - @jdbc_method.setter - def jdbc_method(self, jdbc_method): - """Sets the jdbc_method of this ImageDto. - - - :param jdbc_method: The jdbc_method of this ImageDto. # noqa: E501 - :type: str - """ - if jdbc_method is None: - raise ValueError("Invalid value for `jdbc_method`, must not be `None`") # noqa: E501 - - self._jdbc_method = jdbc_method - - @property - def default_port(self): - """Gets the default_port of this ImageDto. # noqa: E501 - - - :return: The default_port of this ImageDto. # noqa: E501 - :rtype: int - """ - return self._default_port - - @default_port.setter - def default_port(self, default_port): - """Sets the default_port of this ImageDto. - - - :param default_port: The default_port of this ImageDto. # noqa: E501 - :type: int - """ - if default_port is None: - raise ValueError("Invalid value for `default_port`, must not be `None`") # noqa: E501 - - self._default_port = default_port - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(ImageDto, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, ImageDto): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/swagger/api-container/swagger_client/models/image_env_item_dto.py b/swagger/api-container/swagger_client/models/image_env_item_dto.py deleted file mode 100644 index e414cf91202f219a15c36661940fe394e084a7da..0000000000000000000000000000000000000000 --- a/swagger/api-container/swagger_client/models/image_env_item_dto.py +++ /dev/null @@ -1,198 +0,0 @@ -# coding: utf-8 - -""" - Database Repository Container Service API - - Service that manages the containers # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -import pprint -import re # noqa: F401 - -import six - -class ImageEnvItemDto(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'iid': 'int', - 'key': 'str', - 'value': 'str', - 'type': 'str' - } - - attribute_map = { - 'iid': 'iid', - 'key': 'key', - 'value': 'value', - 'type': 'type' - } - - def __init__(self, iid=None, key=None, value=None, type=None): # noqa: E501 - """ImageEnvItemDto - a model defined in Swagger""" # noqa: E501 - self._iid = None - self._key = None - self._value = None - self._type = None - self.discriminator = None - self.iid = iid - self.key = key - self.value = value - self.type = type - - @property - def iid(self): - """Gets the iid of this ImageEnvItemDto. # noqa: E501 - - - :return: The iid of this ImageEnvItemDto. # noqa: E501 - :rtype: int - """ - return self._iid - - @iid.setter - def iid(self, iid): - """Sets the iid of this ImageEnvItemDto. - - - :param iid: The iid of this ImageEnvItemDto. # noqa: E501 - :type: int - """ - if iid is None: - raise ValueError("Invalid value for `iid`, must not be `None`") # noqa: E501 - - self._iid = iid - - @property - def key(self): - """Gets the key of this ImageEnvItemDto. # noqa: E501 - - - :return: The key of this ImageEnvItemDto. # noqa: E501 - :rtype: str - """ - return self._key - - @key.setter - def key(self, key): - """Sets the key of this ImageEnvItemDto. - - - :param key: The key of this ImageEnvItemDto. # noqa: E501 - :type: str - """ - if key is None: - raise ValueError("Invalid value for `key`, must not be `None`") # noqa: E501 - - self._key = key - - @property - def value(self): - """Gets the value of this ImageEnvItemDto. # noqa: E501 - - - :return: The value of this ImageEnvItemDto. # noqa: E501 - :rtype: str - """ - return self._value - - @value.setter - def value(self, value): - """Sets the value of this ImageEnvItemDto. - - - :param value: The value of this ImageEnvItemDto. # noqa: E501 - :type: str - """ - if value is None: - raise ValueError("Invalid value for `value`, must not be `None`") # noqa: E501 - - self._value = value - - @property - def type(self): - """Gets the type of this ImageEnvItemDto. # noqa: E501 - - - :return: The type of this ImageEnvItemDto. # noqa: E501 - :rtype: str - """ - return self._type - - @type.setter - def type(self, type): - """Sets the type of this ImageEnvItemDto. - - - :param type: The type of this ImageEnvItemDto. # noqa: E501 - :type: str - """ - if type is None: - raise ValueError("Invalid value for `type`, must not be `None`") # noqa: E501 - allowed_values = ["username", "password", "privileged_username", "privileged_password"] # noqa: E501 - if type not in allowed_values: - raise ValueError( - "Invalid value for `type` ({0}), must be one of {1}" # noqa: E501 - .format(type, allowed_values) - ) - - self._type = type - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(ImageEnvItemDto, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, ImageEnvItemDto): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/swagger/api-container/swagger_client/models/license_dto.py b/swagger/api-container/swagger_client/models/license_dto.py deleted file mode 100644 index deb3692f12245f38fb4e761a55c9922e7809d89f..0000000000000000000000000000000000000000 --- a/swagger/api-container/swagger_client/models/license_dto.py +++ /dev/null @@ -1,138 +0,0 @@ -# coding: utf-8 - -""" - Database Repository Container Service API - - Service that manages the containers # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -import pprint -import re # noqa: F401 - -import six - -class LicenseDto(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'identifier': 'str', - 'uri': 'str' - } - - attribute_map = { - 'identifier': 'identifier', - 'uri': 'uri' - } - - def __init__(self, identifier=None, uri=None): # noqa: E501 - """LicenseDto - a model defined in Swagger""" # noqa: E501 - self._identifier = None - self._uri = None - self.discriminator = None - self.identifier = identifier - self.uri = uri - - @property - def identifier(self): - """Gets the identifier of this LicenseDto. # noqa: E501 - - - :return: The identifier of this LicenseDto. # noqa: E501 - :rtype: str - """ - return self._identifier - - @identifier.setter - def identifier(self, identifier): - """Sets the identifier of this LicenseDto. - - - :param identifier: The identifier of this LicenseDto. # noqa: E501 - :type: str - """ - if identifier is None: - raise ValueError("Invalid value for `identifier`, must not be `None`") # noqa: E501 - - self._identifier = identifier - - @property - def uri(self): - """Gets the uri of this LicenseDto. # noqa: E501 - - - :return: The uri of this LicenseDto. # noqa: E501 - :rtype: str - """ - return self._uri - - @uri.setter - def uri(self, uri): - """Sets the uri of this LicenseDto. - - - :param uri: The uri of this LicenseDto. # noqa: E501 - :type: str - """ - if uri is None: - raise ValueError("Invalid value for `uri`, must not be `None`") # noqa: E501 - - self._uri = uri - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(LicenseDto, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, LicenseDto): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/swagger/api-container/swagger_client/models/table_brief_dto.py b/swagger/api-container/swagger_client/models/table_brief_dto.py deleted file mode 100644 index 6aa1c9d655b5b342ed7ca3ec1f4a7ac58a2fcbf0..0000000000000000000000000000000000000000 --- a/swagger/api-container/swagger_client/models/table_brief_dto.py +++ /dev/null @@ -1,192 +0,0 @@ -# coding: utf-8 - -""" - Database Repository Container Service API - - Service that manages the containers # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -import pprint -import re # noqa: F401 - -import six - -class TableBriefDto(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'id': 'int', - 'name': 'str', - 'creator': 'UserBriefDto', - 'internal_name': 'str' - } - - attribute_map = { - 'id': 'id', - 'name': 'name', - 'creator': 'creator', - 'internal_name': 'internal_name' - } - - def __init__(self, id=None, name=None, creator=None, internal_name=None): # noqa: E501 - """TableBriefDto - a model defined in Swagger""" # noqa: E501 - self._id = None - self._name = None - self._creator = None - self._internal_name = None - self.discriminator = None - self.id = id - self.name = name - self.creator = creator - self.internal_name = internal_name - - @property - def id(self): - """Gets the id of this TableBriefDto. # noqa: E501 - - - :return: The id of this TableBriefDto. # noqa: E501 - :rtype: int - """ - return self._id - - @id.setter - def id(self, id): - """Sets the id of this TableBriefDto. - - - :param id: The id of this TableBriefDto. # noqa: E501 - :type: int - """ - if id is None: - raise ValueError("Invalid value for `id`, must not be `None`") # noqa: E501 - - self._id = id - - @property - def name(self): - """Gets the name of this TableBriefDto. # noqa: E501 - - - :return: The name of this TableBriefDto. # noqa: E501 - :rtype: str - """ - return self._name - - @name.setter - def name(self, name): - """Sets the name of this TableBriefDto. - - - :param name: The name of this TableBriefDto. # noqa: E501 - :type: str - """ - if name is None: - raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501 - - self._name = name - - @property - def creator(self): - """Gets the creator of this TableBriefDto. # noqa: E501 - - - :return: The creator of this TableBriefDto. # noqa: E501 - :rtype: UserBriefDto - """ - return self._creator - - @creator.setter - def creator(self, creator): - """Sets the creator of this TableBriefDto. - - - :param creator: The creator of this TableBriefDto. # noqa: E501 - :type: UserBriefDto - """ - if creator is None: - raise ValueError("Invalid value for `creator`, must not be `None`") # noqa: E501 - - self._creator = creator - - @property - def internal_name(self): - """Gets the internal_name of this TableBriefDto. # noqa: E501 - - - :return: The internal_name of this TableBriefDto. # noqa: E501 - :rtype: str - """ - return self._internal_name - - @internal_name.setter - def internal_name(self, internal_name): - """Sets the internal_name of this TableBriefDto. - - - :param internal_name: The internal_name of this TableBriefDto. # noqa: E501 - :type: str - """ - if internal_name is None: - raise ValueError("Invalid value for `internal_name`, must not be `None`") # noqa: E501 - - self._internal_name = internal_name - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(TableBriefDto, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, TableBriefDto): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/swagger/api-container/swagger_client/models/table_dto.py b/swagger/api-container/swagger_client/models/table_dto.py deleted file mode 100644 index 30b4e2932fc5deee389da6e604dc41bffbb656aa..0000000000000000000000000000000000000000 --- a/swagger/api-container/swagger_client/models/table_dto.py +++ /dev/null @@ -1,272 +0,0 @@ -# coding: utf-8 - -""" - Database Repository Container Service API - - Service that manages the containers # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -import pprint -import re # noqa: F401 - -import six - -class TableDto(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'id': 'int', - 'name': 'str', - 'topic': 'str', - 'description': 'str', - 'created': 'datetime', - 'columns': 'list[ColumnDto]', - 'internal_name': 'str' - } - - attribute_map = { - 'id': 'id', - 'name': 'name', - 'topic': 'topic', - 'description': 'description', - 'created': 'created', - 'columns': 'columns', - 'internal_name': 'internal_name' - } - - def __init__(self, id=None, name=None, topic=None, description=None, created=None, columns=None, internal_name=None): # noqa: E501 - """TableDto - a model defined in Swagger""" # noqa: E501 - self._id = None - self._name = None - self._topic = None - self._description = None - self._created = None - self._columns = None - self._internal_name = None - self.discriminator = None - self.id = id - self.name = name - self.topic = topic - self.description = description - if created is not None: - self.created = created - self.columns = columns - self.internal_name = internal_name - - @property - def id(self): - """Gets the id of this TableDto. # noqa: E501 - - - :return: The id of this TableDto. # noqa: E501 - :rtype: int - """ - return self._id - - @id.setter - def id(self, id): - """Sets the id of this TableDto. - - - :param id: The id of this TableDto. # noqa: E501 - :type: int - """ - if id is None: - raise ValueError("Invalid value for `id`, must not be `None`") # noqa: E501 - - self._id = id - - @property - def name(self): - """Gets the name of this TableDto. # noqa: E501 - - - :return: The name of this TableDto. # noqa: E501 - :rtype: str - """ - return self._name - - @name.setter - def name(self, name): - """Sets the name of this TableDto. - - - :param name: The name of this TableDto. # noqa: E501 - :type: str - """ - if name is None: - raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501 - - self._name = name - - @property - def topic(self): - """Gets the topic of this TableDto. # noqa: E501 - - - :return: The topic of this TableDto. # noqa: E501 - :rtype: str - """ - return self._topic - - @topic.setter - def topic(self, topic): - """Sets the topic of this TableDto. - - - :param topic: The topic of this TableDto. # noqa: E501 - :type: str - """ - if topic is None: - raise ValueError("Invalid value for `topic`, must not be `None`") # noqa: E501 - - self._topic = topic - - @property - def description(self): - """Gets the description of this TableDto. # noqa: E501 - - - :return: The description of this TableDto. # noqa: E501 - :rtype: str - """ - return self._description - - @description.setter - def description(self, description): - """Sets the description of this TableDto. - - - :param description: The description of this TableDto. # noqa: E501 - :type: str - """ - if description is None: - raise ValueError("Invalid value for `description`, must not be `None`") # noqa: E501 - - self._description = description - - @property - def created(self): - """Gets the created of this TableDto. # noqa: E501 - - - :return: The created of this TableDto. # noqa: E501 - :rtype: datetime - """ - return self._created - - @created.setter - def created(self, created): - """Sets the created of this TableDto. - - - :param created: The created of this TableDto. # noqa: E501 - :type: datetime - """ - - self._created = created - - @property - def columns(self): - """Gets the columns of this TableDto. # noqa: E501 - - - :return: The columns of this TableDto. # noqa: E501 - :rtype: list[ColumnDto] - """ - return self._columns - - @columns.setter - def columns(self, columns): - """Sets the columns of this TableDto. - - - :param columns: The columns of this TableDto. # noqa: E501 - :type: list[ColumnDto] - """ - if columns is None: - raise ValueError("Invalid value for `columns`, must not be `None`") # noqa: E501 - - self._columns = columns - - @property - def internal_name(self): - """Gets the internal_name of this TableDto. # noqa: E501 - - - :return: The internal_name of this TableDto. # noqa: E501 - :rtype: str - """ - return self._internal_name - - @internal_name.setter - def internal_name(self, internal_name): - """Sets the internal_name of this TableDto. - - - :param internal_name: The internal_name of this TableDto. # noqa: E501 - :type: str - """ - if internal_name is None: - raise ValueError("Invalid value for `internal_name`, must not be `None`") # noqa: E501 - - self._internal_name = internal_name - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(TableDto, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, TableDto): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/swagger/api-container/swagger_client/models/user_brief_dto.py b/swagger/api-container/swagger_client/models/user_brief_dto.py deleted file mode 100644 index 15e5e217a9b1cc3b4ee91e65f422dc782a4c37ac..0000000000000000000000000000000000000000 --- a/swagger/api-container/swagger_client/models/user_brief_dto.py +++ /dev/null @@ -1,350 +0,0 @@ -# coding: utf-8 - -""" - Database Repository Container Service API - - Service that manages the containers # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -import pprint -import re # noqa: F401 - -import six - -class UserBriefDto(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'id': 'int', - 'username': 'str', - 'firstname': 'str', - 'lastname': 'str', - 'affiliation': 'str', - 'orcid': 'str', - 'titles_before': 'str', - 'titles_after': 'str', - 'theme_dark': 'bool', - 'email_verified': 'bool' - } - - attribute_map = { - 'id': 'id', - 'username': 'username', - 'firstname': 'firstname', - 'lastname': 'lastname', - 'affiliation': 'affiliation', - 'orcid': 'orcid', - 'titles_before': 'titles_before', - 'titles_after': 'titles_after', - 'theme_dark': 'theme_dark', - 'email_verified': 'email_verified' - } - - def __init__(self, id=None, username=None, firstname=None, lastname=None, affiliation=None, orcid=None, titles_before=None, titles_after=None, theme_dark=None, email_verified=None): # noqa: E501 - """UserBriefDto - a model defined in Swagger""" # noqa: E501 - self._id = None - self._username = None - self._firstname = None - self._lastname = None - self._affiliation = None - self._orcid = None - self._titles_before = None - self._titles_after = None - self._theme_dark = None - self._email_verified = None - self.discriminator = None - self.id = id - self.username = username - if firstname is not None: - self.firstname = firstname - if lastname is not None: - self.lastname = lastname - if affiliation is not None: - self.affiliation = affiliation - if orcid is not None: - self.orcid = orcid - if titles_before is not None: - self.titles_before = titles_before - if titles_after is not None: - self.titles_after = titles_after - self.theme_dark = theme_dark - self.email_verified = email_verified - - @property - def id(self): - """Gets the id of this UserBriefDto. # noqa: E501 - - - :return: The id of this UserBriefDto. # noqa: E501 - :rtype: int - """ - return self._id - - @id.setter - def id(self, id): - """Sets the id of this UserBriefDto. - - - :param id: The id of this UserBriefDto. # noqa: E501 - :type: int - """ - if id is None: - raise ValueError("Invalid value for `id`, must not be `None`") # noqa: E501 - - self._id = id - - @property - def username(self): - """Gets the username of this UserBriefDto. # noqa: E501 - - Only contains lowercase characters # noqa: E501 - - :return: The username of this UserBriefDto. # noqa: E501 - :rtype: str - """ - return self._username - - @username.setter - def username(self, username): - """Sets the username of this UserBriefDto. - - Only contains lowercase characters # noqa: E501 - - :param username: The username of this UserBriefDto. # noqa: E501 - :type: str - """ - if username is None: - raise ValueError("Invalid value for `username`, must not be `None`") # noqa: E501 - - self._username = username - - @property - def firstname(self): - """Gets the firstname of this UserBriefDto. # noqa: E501 - - - :return: The firstname of this UserBriefDto. # noqa: E501 - :rtype: str - """ - return self._firstname - - @firstname.setter - def firstname(self, firstname): - """Sets the firstname of this UserBriefDto. - - - :param firstname: The firstname of this UserBriefDto. # noqa: E501 - :type: str - """ - - self._firstname = firstname - - @property - def lastname(self): - """Gets the lastname of this UserBriefDto. # noqa: E501 - - - :return: The lastname of this UserBriefDto. # noqa: E501 - :rtype: str - """ - return self._lastname - - @lastname.setter - def lastname(self, lastname): - """Sets the lastname of this UserBriefDto. - - - :param lastname: The lastname of this UserBriefDto. # noqa: E501 - :type: str - """ - - self._lastname = lastname - - @property - def affiliation(self): - """Gets the affiliation of this UserBriefDto. # noqa: E501 - - - :return: The affiliation of this UserBriefDto. # noqa: E501 - :rtype: str - """ - return self._affiliation - - @affiliation.setter - def affiliation(self, affiliation): - """Sets the affiliation of this UserBriefDto. - - - :param affiliation: The affiliation of this UserBriefDto. # noqa: E501 - :type: str - """ - - self._affiliation = affiliation - - @property - def orcid(self): - """Gets the orcid of this UserBriefDto. # noqa: E501 - - - :return: The orcid of this UserBriefDto. # noqa: E501 - :rtype: str - """ - return self._orcid - - @orcid.setter - def orcid(self, orcid): - """Sets the orcid of this UserBriefDto. - - - :param orcid: The orcid of this UserBriefDto. # noqa: E501 - :type: str - """ - - self._orcid = orcid - - @property - def titles_before(self): - """Gets the titles_before of this UserBriefDto. # noqa: E501 - - - :return: The titles_before of this UserBriefDto. # noqa: E501 - :rtype: str - """ - return self._titles_before - - @titles_before.setter - def titles_before(self, titles_before): - """Sets the titles_before of this UserBriefDto. - - - :param titles_before: The titles_before of this UserBriefDto. # noqa: E501 - :type: str - """ - - self._titles_before = titles_before - - @property - def titles_after(self): - """Gets the titles_after of this UserBriefDto. # noqa: E501 - - - :return: The titles_after of this UserBriefDto. # noqa: E501 - :rtype: str - """ - return self._titles_after - - @titles_after.setter - def titles_after(self, titles_after): - """Sets the titles_after of this UserBriefDto. - - - :param titles_after: The titles_after of this UserBriefDto. # noqa: E501 - :type: str - """ - - self._titles_after = titles_after - - @property - def theme_dark(self): - """Gets the theme_dark of this UserBriefDto. # noqa: E501 - - - :return: The theme_dark of this UserBriefDto. # noqa: E501 - :rtype: bool - """ - return self._theme_dark - - @theme_dark.setter - def theme_dark(self, theme_dark): - """Sets the theme_dark of this UserBriefDto. - - - :param theme_dark: The theme_dark of this UserBriefDto. # noqa: E501 - :type: bool - """ - if theme_dark is None: - raise ValueError("Invalid value for `theme_dark`, must not be `None`") # noqa: E501 - - self._theme_dark = theme_dark - - @property - def email_verified(self): - """Gets the email_verified of this UserBriefDto. # noqa: E501 - - - :return: The email_verified of this UserBriefDto. # noqa: E501 - :rtype: bool - """ - return self._email_verified - - @email_verified.setter - def email_verified(self, email_verified): - """Sets the email_verified of this UserBriefDto. - - - :param email_verified: The email_verified of this UserBriefDto. # noqa: E501 - :type: bool - """ - if email_verified is None: - raise ValueError("Invalid value for `email_verified`, must not be `None`") # noqa: E501 - - self._email_verified = email_verified - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(UserBriefDto, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, UserBriefDto): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/swagger/api-container/swagger_client/models/user_dto.py b/swagger/api-container/swagger_client/models/user_dto.py deleted file mode 100644 index 3d1b14417ef4405b97be22e752df7c5144127a49..0000000000000000000000000000000000000000 --- a/swagger/api-container/swagger_client/models/user_dto.py +++ /dev/null @@ -1,481 +0,0 @@ -# coding: utf-8 - -""" - Database Repository Container Service API - - Service that manages the containers # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -import pprint -import re # noqa: F401 - -import six - -class UserDto(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'id': 'int', - 'authorities': 'list[GrantedAuthorityDto]', - 'username': 'str', - 'firstname': 'str', - 'lastname': 'str', - 'affiliation': 'str', - 'orcid': 'str', - 'containers': 'list[ContainerDto]', - 'databases': 'list[ContainerDto]', - 'identifiers': 'list[ContainerDto]', - 'email': 'str', - 'titles_before': 'str', - 'titles_after': 'str', - 'theme_dark': 'bool', - 'email_verified': 'bool' - } - - attribute_map = { - 'id': 'id', - 'authorities': 'authorities', - 'username': 'username', - 'firstname': 'firstname', - 'lastname': 'lastname', - 'affiliation': 'affiliation', - 'orcid': 'orcid', - 'containers': 'containers', - 'databases': 'databases', - 'identifiers': 'identifiers', - 'email': 'email', - 'titles_before': 'titles_before', - 'titles_after': 'titles_after', - 'theme_dark': 'theme_dark', - 'email_verified': 'email_verified' - } - - def __init__(self, id=None, authorities=None, username=None, firstname=None, lastname=None, affiliation=None, orcid=None, containers=None, databases=None, identifiers=None, email=None, titles_before=None, titles_after=None, theme_dark=None, email_verified=None): # noqa: E501 - """UserDto - a model defined in Swagger""" # noqa: E501 - self._id = None - self._authorities = None - self._username = None - self._firstname = None - self._lastname = None - self._affiliation = None - self._orcid = None - self._containers = None - self._databases = None - self._identifiers = None - self._email = None - self._titles_before = None - self._titles_after = None - self._theme_dark = None - self._email_verified = None - self.discriminator = None - self.id = id - if authorities is not None: - self.authorities = authorities - self.username = username - if firstname is not None: - self.firstname = firstname - if lastname is not None: - self.lastname = lastname - if affiliation is not None: - self.affiliation = affiliation - if orcid is not None: - self.orcid = orcid - if containers is not None: - self.containers = containers - if databases is not None: - self.databases = databases - if identifiers is not None: - self.identifiers = identifiers - self.email = email - if titles_before is not None: - self.titles_before = titles_before - if titles_after is not None: - self.titles_after = titles_after - self.theme_dark = theme_dark - self.email_verified = email_verified - - @property - def id(self): - """Gets the id of this UserDto. # noqa: E501 - - - :return: The id of this UserDto. # noqa: E501 - :rtype: int - """ - return self._id - - @id.setter - def id(self, id): - """Sets the id of this UserDto. - - - :param id: The id of this UserDto. # noqa: E501 - :type: int - """ - if id is None: - raise ValueError("Invalid value for `id`, must not be `None`") # noqa: E501 - - self._id = id - - @property - def authorities(self): - """Gets the authorities of this UserDto. # noqa: E501 - - - :return: The authorities of this UserDto. # noqa: E501 - :rtype: list[GrantedAuthorityDto] - """ - return self._authorities - - @authorities.setter - def authorities(self, authorities): - """Sets the authorities of this UserDto. - - - :param authorities: The authorities of this UserDto. # noqa: E501 - :type: list[GrantedAuthorityDto] - """ - - self._authorities = authorities - - @property - def username(self): - """Gets the username of this UserDto. # noqa: E501 - - Only contains lowercase characters # noqa: E501 - - :return: The username of this UserDto. # noqa: E501 - :rtype: str - """ - return self._username - - @username.setter - def username(self, username): - """Sets the username of this UserDto. - - Only contains lowercase characters # noqa: E501 - - :param username: The username of this UserDto. # noqa: E501 - :type: str - """ - if username is None: - raise ValueError("Invalid value for `username`, must not be `None`") # noqa: E501 - - self._username = username - - @property - def firstname(self): - """Gets the firstname of this UserDto. # noqa: E501 - - - :return: The firstname of this UserDto. # noqa: E501 - :rtype: str - """ - return self._firstname - - @firstname.setter - def firstname(self, firstname): - """Sets the firstname of this UserDto. - - - :param firstname: The firstname of this UserDto. # noqa: E501 - :type: str - """ - - self._firstname = firstname - - @property - def lastname(self): - """Gets the lastname of this UserDto. # noqa: E501 - - - :return: The lastname of this UserDto. # noqa: E501 - :rtype: str - """ - return self._lastname - - @lastname.setter - def lastname(self, lastname): - """Sets the lastname of this UserDto. - - - :param lastname: The lastname of this UserDto. # noqa: E501 - :type: str - """ - - self._lastname = lastname - - @property - def affiliation(self): - """Gets the affiliation of this UserDto. # noqa: E501 - - - :return: The affiliation of this UserDto. # noqa: E501 - :rtype: str - """ - return self._affiliation - - @affiliation.setter - def affiliation(self, affiliation): - """Sets the affiliation of this UserDto. - - - :param affiliation: The affiliation of this UserDto. # noqa: E501 - :type: str - """ - - self._affiliation = affiliation - - @property - def orcid(self): - """Gets the orcid of this UserDto. # noqa: E501 - - - :return: The orcid of this UserDto. # noqa: E501 - :rtype: str - """ - return self._orcid - - @orcid.setter - def orcid(self, orcid): - """Sets the orcid of this UserDto. - - - :param orcid: The orcid of this UserDto. # noqa: E501 - :type: str - """ - - self._orcid = orcid - - @property - def containers(self): - """Gets the containers of this UserDto. # noqa: E501 - - - :return: The containers of this UserDto. # noqa: E501 - :rtype: list[ContainerDto] - """ - return self._containers - - @containers.setter - def containers(self, containers): - """Sets the containers of this UserDto. - - - :param containers: The containers of this UserDto. # noqa: E501 - :type: list[ContainerDto] - """ - - self._containers = containers - - @property - def databases(self): - """Gets the databases of this UserDto. # noqa: E501 - - - :return: The databases of this UserDto. # noqa: E501 - :rtype: list[ContainerDto] - """ - return self._databases - - @databases.setter - def databases(self, databases): - """Sets the databases of this UserDto. - - - :param databases: The databases of this UserDto. # noqa: E501 - :type: list[ContainerDto] - """ - - self._databases = databases - - @property - def identifiers(self): - """Gets the identifiers of this UserDto. # noqa: E501 - - - :return: The identifiers of this UserDto. # noqa: E501 - :rtype: list[ContainerDto] - """ - return self._identifiers - - @identifiers.setter - def identifiers(self, identifiers): - """Sets the identifiers of this UserDto. - - - :param identifiers: The identifiers of this UserDto. # noqa: E501 - :type: list[ContainerDto] - """ - - self._identifiers = identifiers - - @property - def email(self): - """Gets the email of this UserDto. # noqa: E501 - - - :return: The email of this UserDto. # noqa: E501 - :rtype: str - """ - return self._email - - @email.setter - def email(self, email): - """Sets the email of this UserDto. - - - :param email: The email of this UserDto. # noqa: E501 - :type: str - """ - if email is None: - raise ValueError("Invalid value for `email`, must not be `None`") # noqa: E501 - - self._email = email - - @property - def titles_before(self): - """Gets the titles_before of this UserDto. # noqa: E501 - - - :return: The titles_before of this UserDto. # noqa: E501 - :rtype: str - """ - return self._titles_before - - @titles_before.setter - def titles_before(self, titles_before): - """Sets the titles_before of this UserDto. - - - :param titles_before: The titles_before of this UserDto. # noqa: E501 - :type: str - """ - - self._titles_before = titles_before - - @property - def titles_after(self): - """Gets the titles_after of this UserDto. # noqa: E501 - - - :return: The titles_after of this UserDto. # noqa: E501 - :rtype: str - """ - return self._titles_after - - @titles_after.setter - def titles_after(self, titles_after): - """Sets the titles_after of this UserDto. - - - :param titles_after: The titles_after of this UserDto. # noqa: E501 - :type: str - """ - - self._titles_after = titles_after - - @property - def theme_dark(self): - """Gets the theme_dark of this UserDto. # noqa: E501 - - - :return: The theme_dark of this UserDto. # noqa: E501 - :rtype: bool - """ - return self._theme_dark - - @theme_dark.setter - def theme_dark(self, theme_dark): - """Sets the theme_dark of this UserDto. - - - :param theme_dark: The theme_dark of this UserDto. # noqa: E501 - :type: bool - """ - if theme_dark is None: - raise ValueError("Invalid value for `theme_dark`, must not be `None`") # noqa: E501 - - self._theme_dark = theme_dark - - @property - def email_verified(self): - """Gets the email_verified of this UserDto. # noqa: E501 - - - :return: The email_verified of this UserDto. # noqa: E501 - :rtype: bool - """ - return self._email_verified - - @email_verified.setter - def email_verified(self, email_verified): - """Sets the email_verified of this UserDto. - - - :param email_verified: The email_verified of this UserDto. # noqa: E501 - :type: bool - """ - if email_verified is None: - raise ValueError("Invalid value for `email_verified`, must not be `None`") # noqa: E501 - - self._email_verified = email_verified - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(UserDto, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, UserDto): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/swagger/api-container/swagger_client/rest.py b/swagger/api-container/swagger_client/rest.py deleted file mode 100644 index 0444029bd5e0e733a9b30a168bd55ccf63281f25..0000000000000000000000000000000000000000 --- a/swagger/api-container/swagger_client/rest.py +++ /dev/null @@ -1,317 +0,0 @@ -# coding: utf-8 - -""" - Database Repository Container Service API - - Service that manages the containers # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -from __future__ import absolute_import - -import io -import json -import logging -import re -import ssl - -import certifi -# python 2 and python 3 compatibility library -import six -from six.moves.urllib.parse import urlencode - -try: - import urllib3 -except ImportError: - raise ImportError('Swagger python client requires urllib3.') - - -logger = logging.getLogger(__name__) - - -class RESTResponse(io.IOBase): - - def __init__(self, resp): - self.urllib3_response = resp - self.status = resp.status - self.reason = resp.reason - self.data = resp.data - - def getheaders(self): - """Returns a dictionary of the response headers.""" - return self.urllib3_response.getheaders() - - def getheader(self, name, default=None): - """Returns a given response header.""" - return self.urllib3_response.getheader(name, default) - - -class RESTClientObject(object): - - def __init__(self, configuration, pools_size=4, maxsize=None): - # urllib3.PoolManager will pass all kw parameters to connectionpool - # https://github.com/shazow/urllib3/blob/f9409436f83aeb79fbaf090181cd81b784f1b8ce/urllib3/poolmanager.py#L75 # noqa: E501 - # https://github.com/shazow/urllib3/blob/f9409436f83aeb79fbaf090181cd81b784f1b8ce/urllib3/connectionpool.py#L680 # noqa: E501 - # maxsize is the number of requests to host that are allowed in parallel # noqa: E501 - # Custom SSL certificates and client certificates: http://urllib3.readthedocs.io/en/latest/advanced-usage.html # noqa: E501 - - # cert_reqs - if configuration.verify_ssl: - cert_reqs = ssl.CERT_REQUIRED - else: - cert_reqs = ssl.CERT_NONE - - # ca_certs - if configuration.ssl_ca_cert: - ca_certs = configuration.ssl_ca_cert - else: - # if not set certificate file, use Mozilla's root certificates. - ca_certs = certifi.where() - - addition_pool_args = {} - if configuration.assert_hostname is not None: - addition_pool_args['assert_hostname'] = configuration.assert_hostname # noqa: E501 - - if maxsize is None: - if configuration.connection_pool_maxsize is not None: - maxsize = configuration.connection_pool_maxsize - else: - maxsize = 4 - - # https pool manager - if configuration.proxy: - self.pool_manager = urllib3.ProxyManager( - num_pools=pools_size, - maxsize=maxsize, - cert_reqs=cert_reqs, - ca_certs=ca_certs, - cert_file=configuration.cert_file, - key_file=configuration.key_file, - proxy_url=configuration.proxy, - **addition_pool_args - ) - else: - self.pool_manager = urllib3.PoolManager( - num_pools=pools_size, - maxsize=maxsize, - cert_reqs=cert_reqs, - ca_certs=ca_certs, - cert_file=configuration.cert_file, - key_file=configuration.key_file, - **addition_pool_args - ) - - def request(self, method, url, query_params=None, headers=None, - body=None, post_params=None, _preload_content=True, - _request_timeout=None): - """Perform requests. - - :param method: http request method - :param url: http request url - :param query_params: query parameters in the url - :param headers: http request headers - :param body: request json body, for `application/json` - :param post_params: request post parameters, - `application/x-www-form-urlencoded` - and `multipart/form-data` - :param _preload_content: if False, the urllib3.HTTPResponse object will - be returned without reading/decoding response - data. Default is True. - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - """ - method = method.upper() - assert method in ['GET', 'HEAD', 'DELETE', 'POST', 'PUT', - 'PATCH', 'OPTIONS'] - - if post_params and body: - raise ValueError( - "body parameter cannot be used with post_params parameter." - ) - - post_params = post_params or {} - headers = headers or {} - - timeout = None - if _request_timeout: - if isinstance(_request_timeout, (int, ) if six.PY3 else (int, long)): # noqa: E501,F821 - timeout = urllib3.Timeout(total=_request_timeout) - elif (isinstance(_request_timeout, tuple) and - len(_request_timeout) == 2): - timeout = urllib3.Timeout( - connect=_request_timeout[0], read=_request_timeout[1]) - - if 'Content-Type' not in headers: - headers['Content-Type'] = 'application/json' - - try: - # For `POST`, `PUT`, `PATCH`, `OPTIONS`, `DELETE` - if method in ['POST', 'PUT', 'PATCH', 'OPTIONS', 'DELETE']: - if query_params: - url += '?' + urlencode(query_params) - if re.search('json', headers['Content-Type'], re.IGNORECASE): - request_body = '{}' - if body is not None: - request_body = json.dumps(body) - r = self.pool_manager.request( - method, url, - body=request_body, - preload_content=_preload_content, - timeout=timeout, - headers=headers) - elif headers['Content-Type'] == 'application/x-www-form-urlencoded': # noqa: E501 - r = self.pool_manager.request( - method, url, - fields=post_params, - encode_multipart=False, - preload_content=_preload_content, - timeout=timeout, - headers=headers) - elif headers['Content-Type'] == 'multipart/form-data': - # must del headers['Content-Type'], or the correct - # Content-Type which generated by urllib3 will be - # overwritten. - del headers['Content-Type'] - r = self.pool_manager.request( - method, url, - fields=post_params, - encode_multipart=True, - preload_content=_preload_content, - timeout=timeout, - headers=headers) - # Pass a `string` parameter directly in the body to support - # other content types than Json when `body` argument is - # provided in serialized form - elif isinstance(body, str): - request_body = body - r = self.pool_manager.request( - method, url, - body=request_body, - preload_content=_preload_content, - timeout=timeout, - headers=headers) - else: - # Cannot generate the request from given parameters - msg = """Cannot prepare a request message for provided - arguments. Please check that your arguments match - declared content type.""" - raise ApiException(status=0, reason=msg) - # For `GET`, `HEAD` - else: - r = self.pool_manager.request(method, url, - fields=query_params, - preload_content=_preload_content, - timeout=timeout, - headers=headers) - except urllib3.exceptions.SSLError as e: - msg = "{0}\n{1}".format(type(e).__name__, str(e)) - raise ApiException(status=0, reason=msg) - - if _preload_content: - r = RESTResponse(r) - - # log response body - logger.debug("response body: %s", r.data) - - if not 200 <= r.status <= 299: - raise ApiException(http_resp=r) - - return r - - def GET(self, url, headers=None, query_params=None, _preload_content=True, - _request_timeout=None): - return self.request("GET", url, - headers=headers, - _preload_content=_preload_content, - _request_timeout=_request_timeout, - query_params=query_params) - - def HEAD(self, url, headers=None, query_params=None, _preload_content=True, - _request_timeout=None): - return self.request("HEAD", url, - headers=headers, - _preload_content=_preload_content, - _request_timeout=_request_timeout, - query_params=query_params) - - def OPTIONS(self, url, headers=None, query_params=None, post_params=None, - body=None, _preload_content=True, _request_timeout=None): - return self.request("OPTIONS", url, - headers=headers, - query_params=query_params, - post_params=post_params, - _preload_content=_preload_content, - _request_timeout=_request_timeout, - body=body) - - def DELETE(self, url, headers=None, query_params=None, body=None, - _preload_content=True, _request_timeout=None): - return self.request("DELETE", url, - headers=headers, - query_params=query_params, - _preload_content=_preload_content, - _request_timeout=_request_timeout, - body=body) - - def POST(self, url, headers=None, query_params=None, post_params=None, - body=None, _preload_content=True, _request_timeout=None): - return self.request("POST", url, - headers=headers, - query_params=query_params, - post_params=post_params, - _preload_content=_preload_content, - _request_timeout=_request_timeout, - body=body) - - def PUT(self, url, headers=None, query_params=None, post_params=None, - body=None, _preload_content=True, _request_timeout=None): - return self.request("PUT", url, - headers=headers, - query_params=query_params, - post_params=post_params, - _preload_content=_preload_content, - _request_timeout=_request_timeout, - body=body) - - def PATCH(self, url, headers=None, query_params=None, post_params=None, - body=None, _preload_content=True, _request_timeout=None): - return self.request("PATCH", url, - headers=headers, - query_params=query_params, - post_params=post_params, - _preload_content=_preload_content, - _request_timeout=_request_timeout, - body=body) - - -class ApiException(Exception): - - def __init__(self, status=None, reason=None, http_resp=None): - if http_resp: - self.status = http_resp.status - self.reason = http_resp.reason - self.body = http_resp.data - self.headers = http_resp.getheaders() - else: - self.status = status - self.reason = reason - self.body = None - self.headers = None - - def __str__(self): - """Custom error messages for exception""" - error_message = "({0})\n"\ - "Reason: {1}\n".format(self.status, self.reason) - if self.headers: - error_message += "HTTP response headers: {0}\n".format( - self.headers) - - if self.body: - error_message += "HTTP response body: {0}\n".format(self.body) - - return error_message diff --git a/swagger/api-container/test-requirements.txt b/swagger/api-container/test-requirements.txt deleted file mode 100644 index 2702246c0e6f92a1c41c0960879e07da339e4b7d..0000000000000000000000000000000000000000 --- a/swagger/api-container/test-requirements.txt +++ /dev/null @@ -1,5 +0,0 @@ -coverage>=4.0.3 -nose>=1.3.7 -pluggy>=0.3.1 -py>=1.4.31 -randomize>=0.13 diff --git a/swagger/api-container/test/__init__.py b/swagger/api-container/test/__init__.py deleted file mode 100644 index e69de29bb2d1d6434b8b29ae775ad8c2e48c5391..0000000000000000000000000000000000000000 diff --git a/swagger/api-container/test/test_api_error_dto.py b/swagger/api-container/test/test_api_error_dto.py deleted file mode 100644 index d449d49021f18b25e4154e8444d96747554cf3b8..0000000000000000000000000000000000000000 --- a/swagger/api-container/test/test_api_error_dto.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Database Repository Container Service API - - Service that manages the containers # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -from __future__ import absolute_import - -import unittest - -import api_container -from api_container.models.api_error_dto import ApiErrorDto # noqa: E501 -from api_container.rest import ApiException - - -class TestApiErrorDto(unittest.TestCase): - """ApiErrorDto unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testApiErrorDto(self): - """Test ApiErrorDto""" - # FIXME: construct object with mandatory attributes with example values - # model = api_container.models.api_error_dto.ApiErrorDto() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/swagger/api-container/test/test_column_dto.py b/swagger/api-container/test/test_column_dto.py deleted file mode 100644 index 648fc00d2ecf68d3859f8efdbdd12a2fe677b6e9..0000000000000000000000000000000000000000 --- a/swagger/api-container/test/test_column_dto.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Database Repository Container Service API - - Service that manages the containers # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -from __future__ import absolute_import - -import unittest - -import api_container -from api_container.models.column_dto import ColumnDto # noqa: E501 -from api_container.rest import ApiException - - -class TestColumnDto(unittest.TestCase): - """ColumnDto unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testColumnDto(self): - """Test ColumnDto""" - # FIXME: construct object with mandatory attributes with example values - # model = api_container.models.column_dto.ColumnDto() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/swagger/api-container/test/test_concept_dto.py b/swagger/api-container/test/test_concept_dto.py deleted file mode 100644 index d5084524ed3f606f03d0ae0901e614f379fed6dd..0000000000000000000000000000000000000000 --- a/swagger/api-container/test/test_concept_dto.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Database Repository Container Service API - - Service that manages the containers # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -from __future__ import absolute_import - -import unittest - -import api_container -from api_container.models.concept_dto import ConceptDto # noqa: E501 -from api_container.rest import ApiException - - -class TestConceptDto(unittest.TestCase): - """ConceptDto unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testConceptDto(self): - """Test ConceptDto""" - # FIXME: construct object with mandatory attributes with example values - # model = api_container.models.concept_dto.ConceptDto() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/swagger/api-container/test/test_container_brief_dto.py b/swagger/api-container/test/test_container_brief_dto.py deleted file mode 100644 index cbaccc458426a8955395e38cc4e31385d2f8abf6..0000000000000000000000000000000000000000 --- a/swagger/api-container/test/test_container_brief_dto.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Database Repository Container Service API - - Service that manages the containers # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -from __future__ import absolute_import - -import unittest - -import api_container -from api_container.models.container_brief_dto import ContainerBriefDto # noqa: E501 -from api_container.rest import ApiException - - -class TestContainerBriefDto(unittest.TestCase): - """ContainerBriefDto unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testContainerBriefDto(self): - """Test ContainerBriefDto""" - # FIXME: construct object with mandatory attributes with example values - # model = api_container.models.container_brief_dto.ContainerBriefDto() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/swagger/api-container/test/test_container_change_dto.py b/swagger/api-container/test/test_container_change_dto.py deleted file mode 100644 index 483a5d3649ed7556c8598f34c51f10a401abb0fa..0000000000000000000000000000000000000000 --- a/swagger/api-container/test/test_container_change_dto.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Database Repository Container Service API - - Service that manages the containers # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -from __future__ import absolute_import - -import unittest - -import api_container -from api_container.models.container_change_dto import ContainerChangeDto # noqa: E501 -from api_container.rest import ApiException - - -class TestContainerChangeDto(unittest.TestCase): - """ContainerChangeDto unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testContainerChangeDto(self): - """Test ContainerChangeDto""" - # FIXME: construct object with mandatory attributes with example values - # model = api_container.models.container_change_dto.ContainerChangeDto() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/swagger/api-container/test/test_container_create_request_dto.py b/swagger/api-container/test/test_container_create_request_dto.py deleted file mode 100644 index 25721ceefd8ba16de96c39dadc073a9ccb05dbb8..0000000000000000000000000000000000000000 --- a/swagger/api-container/test/test_container_create_request_dto.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Database Repository Container Service API - - Service that manages the containers # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -from __future__ import absolute_import - -import unittest - -import api_container -from api_container.models.container_create_request_dto import ContainerCreateRequestDto # noqa: E501 -from api_container.rest import ApiException - - -class TestContainerCreateRequestDto(unittest.TestCase): - """ContainerCreateRequestDto unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testContainerCreateRequestDto(self): - """Test ContainerCreateRequestDto""" - # FIXME: construct object with mandatory attributes with example values - # model = api_container.models.container_create_request_dto.ContainerCreateRequestDto() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/swagger/api-container/test/test_container_dto.py b/swagger/api-container/test/test_container_dto.py deleted file mode 100644 index 85c4b2ad41baa2fa83990f79d23406272252ea1f..0000000000000000000000000000000000000000 --- a/swagger/api-container/test/test_container_dto.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Database Repository Container Service API - - Service that manages the containers # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -from __future__ import absolute_import - -import unittest - -import api_container -from api_container.models.container_dto import ContainerDto # noqa: E501 -from api_container.rest import ApiException - - -class TestContainerDto(unittest.TestCase): - """ContainerDto unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testContainerDto(self): - """Test ContainerDto""" - # FIXME: construct object with mandatory attributes with example values - # model = api_container.models.container_dto.ContainerDto() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/swagger/api-container/test/test_container_endpoint_api.py b/swagger/api-container/test/test_container_endpoint_api.py deleted file mode 100644 index 5aedb2564b972d2dc6c2c0cb356302fc6018c1df..0000000000000000000000000000000000000000 --- a/swagger/api-container/test/test_container_endpoint_api.py +++ /dev/null @@ -1,68 +0,0 @@ -# coding: utf-8 - -""" - Database Repository Container Service API - - Service that manages the containers # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -from __future__ import absolute_import - -import unittest - -import api_container -from api_container.api.container_endpoint_api import ContainerEndpointApi # noqa: E501 -from api_container.rest import ApiException - - -class TestContainerEndpointApi(unittest.TestCase): - """ContainerEndpointApi unit test stubs""" - - def setUp(self): - self.api = ContainerEndpointApi() # noqa: E501 - - def tearDown(self): - pass - - def test_create1(self): - """Test case for create1 - - Create container # noqa: E501 - """ - pass - - def test_delete1(self): - """Test case for delete1 - - Delete some container # noqa: E501 - """ - pass - - def test_find_all1(self): - """Test case for find_all1 - - Find all containers # noqa: E501 - """ - pass - - def test_find_by_id1(self): - """Test case for find_by_id1 - - Find some container # noqa: E501 - """ - pass - - def test_modify(self): - """Test case for modify - - Modify some container # noqa: E501 - """ - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/swagger/api-container/test/test_database_dto.py b/swagger/api-container/test/test_database_dto.py deleted file mode 100644 index 82218c3d75a9baef3b6d0da42816fd38767a007d..0000000000000000000000000000000000000000 --- a/swagger/api-container/test/test_database_dto.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Database Repository Container Service API - - Service that manages the containers # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -from __future__ import absolute_import - -import unittest - -import api_container -from api_container.models.database_dto import DatabaseDto # noqa: E501 -from api_container.rest import ApiException - - -class TestDatabaseDto(unittest.TestCase): - """DatabaseDto unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testDatabaseDto(self): - """Test DatabaseDto""" - # FIXME: construct object with mandatory attributes with example values - # model = api_container.models.database_dto.DatabaseDto() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/swagger/api-container/test/test_granted_authority_dto.py b/swagger/api-container/test/test_granted_authority_dto.py deleted file mode 100644 index 6bc4f59a79cd62231bd795fc5ed323c0b75ba756..0000000000000000000000000000000000000000 --- a/swagger/api-container/test/test_granted_authority_dto.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Database Repository Container Service API - - Service that manages the containers # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -from __future__ import absolute_import - -import unittest - -import api_container -from api_container.models.granted_authority_dto import GrantedAuthorityDto # noqa: E501 -from api_container.rest import ApiException - - -class TestGrantedAuthorityDto(unittest.TestCase): - """GrantedAuthorityDto unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testGrantedAuthorityDto(self): - """Test GrantedAuthorityDto""" - # FIXME: construct object with mandatory attributes with example values - # model = api_container.models.granted_authority_dto.GrantedAuthorityDto() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/swagger/api-container/test/test_image_brief_dto.py b/swagger/api-container/test/test_image_brief_dto.py deleted file mode 100644 index 1f3b06d7ba58ab3e57c91328f534fa116e8304b7..0000000000000000000000000000000000000000 --- a/swagger/api-container/test/test_image_brief_dto.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Database Repository Container Service API - - Service that manages the containers # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -from __future__ import absolute_import - -import unittest - -import api_container -from api_container.models.image_brief_dto import ImageBriefDto # noqa: E501 -from api_container.rest import ApiException - - -class TestImageBriefDto(unittest.TestCase): - """ImageBriefDto unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testImageBriefDto(self): - """Test ImageBriefDto""" - # FIXME: construct object with mandatory attributes with example values - # model = api_container.models.image_brief_dto.ImageBriefDto() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/swagger/api-container/test/test_image_change_dto.py b/swagger/api-container/test/test_image_change_dto.py deleted file mode 100644 index 4cd945e0c20521aa92437ce8fdce97793d9072cb..0000000000000000000000000000000000000000 --- a/swagger/api-container/test/test_image_change_dto.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Database Repository Container Service API - - Service that manages the containers # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -from __future__ import absolute_import - -import unittest - -import api_container -from api_container.models.image_change_dto import ImageChangeDto # noqa: E501 -from api_container.rest import ApiException - - -class TestImageChangeDto(unittest.TestCase): - """ImageChangeDto unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testImageChangeDto(self): - """Test ImageChangeDto""" - # FIXME: construct object with mandatory attributes with example values - # model = api_container.models.image_change_dto.ImageChangeDto() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/swagger/api-container/test/test_image_create_dto.py b/swagger/api-container/test/test_image_create_dto.py deleted file mode 100644 index deb10807a9066579b8d45573a804fc605070b18a..0000000000000000000000000000000000000000 --- a/swagger/api-container/test/test_image_create_dto.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Database Repository Container Service API - - Service that manages the containers # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -from __future__ import absolute_import - -import unittest - -import api_container -from api_container.models.image_create_dto import ImageCreateDto # noqa: E501 -from api_container.rest import ApiException - - -class TestImageCreateDto(unittest.TestCase): - """ImageCreateDto unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testImageCreateDto(self): - """Test ImageCreateDto""" - # FIXME: construct object with mandatory attributes with example values - # model = api_container.models.image_create_dto.ImageCreateDto() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/swagger/api-container/test/test_image_date_dto.py b/swagger/api-container/test/test_image_date_dto.py deleted file mode 100644 index 28a49cb05321d9e973fc218fc3d07393658184d4..0000000000000000000000000000000000000000 --- a/swagger/api-container/test/test_image_date_dto.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Database Repository Container Service API - - Service that manages the containers # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -from __future__ import absolute_import - -import unittest - -import api_container -from api_container.models.image_date_dto import ImageDateDto # noqa: E501 -from api_container.rest import ApiException - - -class TestImageDateDto(unittest.TestCase): - """ImageDateDto unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testImageDateDto(self): - """Test ImageDateDto""" - # FIXME: construct object with mandatory attributes with example values - # model = api_container.models.image_date_dto.ImageDateDto() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/swagger/api-container/test/test_image_dto.py b/swagger/api-container/test/test_image_dto.py deleted file mode 100644 index 62f5a6944494603549695495634dd11d2c207e24..0000000000000000000000000000000000000000 --- a/swagger/api-container/test/test_image_dto.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Database Repository Container Service API - - Service that manages the containers # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -from __future__ import absolute_import - -import unittest - -import api_container -from api_container.models.image_dto import ImageDto # noqa: E501 -from api_container.rest import ApiException - - -class TestImageDto(unittest.TestCase): - """ImageDto unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testImageDto(self): - """Test ImageDto""" - # FIXME: construct object with mandatory attributes with example values - # model = api_container.models.image_dto.ImageDto() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/swagger/api-container/test/test_image_endpoint_api.py b/swagger/api-container/test/test_image_endpoint_api.py deleted file mode 100644 index 4f609657a49f85e5c4763eebde2817e3872aa4f9..0000000000000000000000000000000000000000 --- a/swagger/api-container/test/test_image_endpoint_api.py +++ /dev/null @@ -1,68 +0,0 @@ -# coding: utf-8 - -""" - Database Repository Container Service API - - Service that manages the containers # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -from __future__ import absolute_import - -import unittest - -import api_container -from api_container.api.image_endpoint_api import ImageEndpointApi # noqa: E501 -from api_container.rest import ApiException - - -class TestImageEndpointApi(unittest.TestCase): - """ImageEndpointApi unit test stubs""" - - def setUp(self): - self.api = ImageEndpointApi() # noqa: E501 - - def tearDown(self): - pass - - def test_create(self): - """Test case for create - - Create image # noqa: E501 - """ - pass - - def test_delete(self): - """Test case for delete - - Delete some image # noqa: E501 - """ - pass - - def test_find_all(self): - """Test case for find_all - - Find all images # noqa: E501 - """ - pass - - def test_find_by_id(self): - """Test case for find_by_id - - Find some image # noqa: E501 - """ - pass - - def test_update(self): - """Test case for update - - Update some image # noqa: E501 - """ - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/swagger/api-container/test/test_image_env_item_dto.py b/swagger/api-container/test/test_image_env_item_dto.py deleted file mode 100644 index e28ef1a0ba8b5950f0723c8dde884ca0817087db..0000000000000000000000000000000000000000 --- a/swagger/api-container/test/test_image_env_item_dto.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Database Repository Container Service API - - Service that manages the containers # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -from __future__ import absolute_import - -import unittest - -import api_container -from api_container.models.image_env_item_dto import ImageEnvItemDto # noqa: E501 -from api_container.rest import ApiException - - -class TestImageEnvItemDto(unittest.TestCase): - """ImageEnvItemDto unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testImageEnvItemDto(self): - """Test ImageEnvItemDto""" - # FIXME: construct object with mandatory attributes with example values - # model = api_container.models.image_env_item_dto.ImageEnvItemDto() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/swagger/api-container/test/test_license_dto.py b/swagger/api-container/test/test_license_dto.py deleted file mode 100644 index 06e2eb9b0f7b04cb81188a8eca9ba04d98aac0e4..0000000000000000000000000000000000000000 --- a/swagger/api-container/test/test_license_dto.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Database Repository Container Service API - - Service that manages the containers # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -from __future__ import absolute_import - -import unittest - -import swagger_client -from swagger_client.models.license_dto import LicenseDto # noqa: E501 -from swagger_client.rest import ApiException - - -class TestLicenseDto(unittest.TestCase): - """LicenseDto unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testLicenseDto(self): - """Test LicenseDto""" - # FIXME: construct object with mandatory attributes with example values - # model = swagger_client.models.license_dto.LicenseDto() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/swagger/api-container/test/test_table_brief_dto.py b/swagger/api-container/test/test_table_brief_dto.py deleted file mode 100644 index 79b43faf3278ae4fb282e91ff6411556322ce11e..0000000000000000000000000000000000000000 --- a/swagger/api-container/test/test_table_brief_dto.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Database Repository Container Service API - - Service that manages the containers # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -from __future__ import absolute_import - -import unittest - -import swagger_client -from swagger_client.models.table_brief_dto import TableBriefDto # noqa: E501 -from swagger_client.rest import ApiException - - -class TestTableBriefDto(unittest.TestCase): - """TableBriefDto unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testTableBriefDto(self): - """Test TableBriefDto""" - # FIXME: construct object with mandatory attributes with example values - # model = swagger_client.models.table_brief_dto.TableBriefDto() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/swagger/api-container/test/test_table_dto.py b/swagger/api-container/test/test_table_dto.py deleted file mode 100644 index de3757260ed1eee3d46cc8a6f7f7e975cd4e73ba..0000000000000000000000000000000000000000 --- a/swagger/api-container/test/test_table_dto.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Database Repository Container Service API - - Service that manages the containers # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -from __future__ import absolute_import - -import unittest - -import api_container -from api_container.models.table_dto import TableDto # noqa: E501 -from api_container.rest import ApiException - - -class TestTableDto(unittest.TestCase): - """TableDto unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testTableDto(self): - """Test TableDto""" - # FIXME: construct object with mandatory attributes with example values - # model = api_container.models.table_dto.TableDto() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/swagger/api-container/test/test_user_brief_dto.py b/swagger/api-container/test/test_user_brief_dto.py deleted file mode 100644 index 0b273eb60b3cfe6f292f6f198bfadbaa6e58d251..0000000000000000000000000000000000000000 --- a/swagger/api-container/test/test_user_brief_dto.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Database Repository Container Service API - - Service that manages the containers # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -from __future__ import absolute_import - -import unittest - -import swagger_client -from swagger_client.models.user_brief_dto import UserBriefDto # noqa: E501 -from swagger_client.rest import ApiException - - -class TestUserBriefDto(unittest.TestCase): - """UserBriefDto unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testUserBriefDto(self): - """Test UserBriefDto""" - # FIXME: construct object with mandatory attributes with example values - # model = swagger_client.models.user_brief_dto.UserBriefDto() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/swagger/api-container/test/test_user_dto.py b/swagger/api-container/test/test_user_dto.py deleted file mode 100644 index 4486bb35c497c8c40a4f50a2d7d4016e8c12dbed..0000000000000000000000000000000000000000 --- a/swagger/api-container/test/test_user_dto.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Database Repository Container Service API - - Service that manages the containers # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -from __future__ import absolute_import - -import unittest - -import api_container -from api_container.models.user_dto import UserDto # noqa: E501 -from api_container.rest import ApiException - - -class TestUserDto(unittest.TestCase): - """UserDto unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testUserDto(self): - """Test UserDto""" - # FIXME: construct object with mandatory attributes with example values - # model = api_container.models.user_dto.UserDto() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/swagger/api-container/tox.ini b/swagger/api-container/tox.ini deleted file mode 100644 index a310bec97d689718c92c84c9aebc6ab031f12933..0000000000000000000000000000000000000000 --- a/swagger/api-container/tox.ini +++ /dev/null @@ -1,10 +0,0 @@ -[tox] -envlist = py3 - -[testenv] -deps=-r{toxinidir}/requirements.txt - -r{toxinidir}/test-requirements.txt - -commands= - nosetests \ - [] diff --git a/swagger/api-database.yaml b/swagger/api-database.yaml index 96557e91e82ab043b972624d765fa50184d6faf0..3366467ac97974ea5d8ff825e3f042e6358bf621 100644 --- a/swagger/api-database.yaml +++ b/swagger/api-database.yaml @@ -19,7 +19,7 @@ paths: /api/container/{id}/database/{databaseId}: get: tags: - - database-endpoint + - container-database-endpoint summary: Find some database operationId: findById parameters: @@ -82,7 +82,7 @@ paths: - bearerAuth: [] put: tags: - - database-endpoint + - container-database-endpoint summary: Update database operationId: update parameters: @@ -151,7 +151,7 @@ paths: - bearerAuth: [] delete: tags: - - database-endpoint + - container-database-endpoint summary: Delete some database operationId: delete_1 parameters: @@ -215,7 +215,7 @@ paths: /api/container/{id}/database/{databaseId}/transfer: put: tags: - - database-endpoint + - container-database-endpoint summary: Update database operationId: transfer parameters: @@ -285,7 +285,7 @@ paths: /api/container/{id}/database: get: tags: - - database-endpoint + - container-database-endpoint summary: List databases operationId: findAll parameters: @@ -342,7 +342,7 @@ paths: $ref: '#/components/schemas/DatabaseBriefDto' post: tags: - - database-endpoint + - container-database-endpoint summary: Create database operationId: create parameters: @@ -472,7 +472,6 @@ components: properties: status: type: string - example: NOT_FOUND enum: - 100 CONTINUE - 101 SWITCHING_PROTOCOLS @@ -544,14 +543,12 @@ components: - 511 NETWORK_AUTHENTICATION_REQUIRED message: type: string - example: Could not find container code: type: string - example: error.container.notfound DatabaseModifyDto: required: + - database publication year - description - - publication_year type: object properties: subjects: @@ -560,15 +557,12 @@ components: type: string description: type: string - example: Air Quality in Austria publisher: type: string - example: TU Wien license: $ref: '#/components/schemas/LicenseDto' language: type: string - example: en enum: - ab - aa @@ -754,25 +748,19 @@ components: - yo - za - zu - publication_year: + database publication year: type: integer - description: database publication year format: int32 - example: 2022 publication_month: maximum: 12 minimum: 1 type: integer - description: database publication month format: int32 - example: 12 publication_day: maximum: 31 minimum: 1 type: integer - description: database publication day format: int32 - example: 15 contact_person: type: string LicenseDto: @@ -783,10 +771,8 @@ components: properties: identifier: type: string - example: MIT uri: type: string - example: https://opensource.org/licenses/MIT ContainerDto: required: - created @@ -801,20 +787,17 @@ components: format: int64 hash: type: string - example: f829dd8a884182d0da846f365dee1221fd16610a14c81b8f9f295ff162749e50 name: type: string - example: Air Quality state: type: string - example: running enum: - - created - - restarting - - running - - paused - - exited - - dead + - ContainerStateDto.CREATED + - ContainerStateDto.RESTARTING + - ContainerStateDto.RUNNING + - ContainerStateDto.PAUSED + - ContainerStateDto.EXITED + - ContainerStateDto.DEAD databases: type: array items: @@ -827,15 +810,14 @@ components: created: type: string format: date-time - example: 2021-03-12T15:26:21.678396092Z internal_name: type: string - example: air-quality ip_address: type: string DatabaseDto: required: - creator + - description - exchange - id - internal_name @@ -845,23 +827,21 @@ components: id: type: integer format: int64 + example: 1 name: type: string - example: Air Quality + example: Weather Australia exchange: type: string - example: air_quality creator: $ref: '#/components/schemas/UserBriefDto' subjects: type: array - description: database subjects items: type: string - description: database subjects language: type: string - example: en + example: EN enum: - ab - aa @@ -1051,7 +1031,7 @@ components: $ref: '#/components/schemas/LicenseDto' description: type: string - example: Air Quality in Austria + example: Weather Australia 2009-2021 publisher: type: string example: TU Wien @@ -1073,32 +1053,23 @@ components: format: date-time internal_name: type: string - example: air_quality + example: weather_australia publication_year: type: integer - description: database publication year format: int32 - example: 2022 publication_month: type: integer - description: database publication month format: int32 - example: 12 publication_day: type: integer - description: database publication day format: int32 - example: 15 is_public: type: boolean - description: database publicity - example: true GrantedAuthorityDto: type: object properties: authority: type: string - example: ROLE_RESEARCHER ImageBriefDto: required: - id @@ -1111,10 +1082,8 @@ components: format: int64 repository: type: string - example: mariadb tag: type: string - example: "10.5" ImageDateDto: required: - database_format @@ -1129,16 +1098,12 @@ components: format: int64 example: type: string - example: 30.01.2022 database_format: type: string - example: '%d.%c.%Y' unix_format: type: string - example: dd.MM.YYYY has_time: type: boolean - example: false created_at: type: string format: date-time @@ -1159,46 +1124,36 @@ components: format: int64 repository: type: string - example: mariadb tag: type: string - example: "10.5" dialect: type: string - example: org.hibernate.dialect.MariaDBDialect hash: type: string - example: sha256:c5ec7353d87dfc35067e7bffeb25d6a0d52dad41e8b7357213e3b12d6e7ff78e compiled: type: string format: date-time - example: 2021-03-12T15:26:21.678396092Z size: type: integer - example: 314295447 environment: type: array items: $ref: '#/components/schemas/ImageEnvItemDto' driver_class: type: string - example: org.mariadb.jdbc.Driver date_formats: type: array items: $ref: '#/components/schemas/ImageDateDto' jdbc_method: type: string - example: mariadb default_port: type: integer format: int32 - example: 3306 ImageEnvItemDto: required: - iid - key - - type - value type: object properties: @@ -1207,18 +1162,15 @@ components: format: int64 key: type: string - example: MARIADB_ROOT_PASSWORD value: type: string - example: mariadb type: type: string - example: PRIVILEGED_PASSWORD enum: - - username - - password - - privileged_username - - privileged_password + - USERNAME + - PASSWORD + - PRIVILEGED_USERNAME + - PRIVILEGED_PASSWORD TableBriefDto: required: - creator @@ -1232,12 +1184,10 @@ components: format: int64 name: type: string - example: Air Quality creator: $ref: '#/components/schemas/UserBriefDto' internal_name: type: string - example: air_quality UserBriefDto: required: - email_verified @@ -1251,31 +1201,22 @@ components: format: int64 username: type: string - description: Only contains lowercase characters - example: user firstname: type: string - example: Josiah lastname: type: string - example: Carberry affiliation: type: string - example: Brown University orcid: type: string - example: 0000-0002-1825-0097 titles_before: type: string - example: Prof. titles_after: type: string theme_dark: type: boolean - example: true email_verified: type: boolean - example: true UserDto: required: - email @@ -1294,20 +1235,14 @@ components: $ref: '#/components/schemas/GrantedAuthorityDto' username: type: string - description: Only contains lowercase characters - example: jcarberry firstname: type: string - example: Josiah lastname: type: string - example: Carberry affiliation: type: string - example: Brown University orcid: type: string - example: 0000-0002-1825-0097 containers: type: array items: @@ -1322,18 +1257,14 @@ components: $ref: '#/components/schemas/ContainerDto' email: type: string - example: jcarberry@brown.edu titles_before: type: string - example: Prof. titles_after: type: string theme_dark: type: boolean - example: true email_verified: type: boolean - example: true DatabaseTransferDto: required: - is_public @@ -1341,7 +1272,6 @@ components: properties: is_public: type: boolean - example: true DatabaseCreateDto: required: - is_public @@ -1350,10 +1280,8 @@ components: properties: name: type: string - example: Air Quality is_public: type: boolean - example: true ContainerBriefDto: required: - hash @@ -1367,10 +1295,8 @@ components: format: int64 hash: type: string - example: f829dd8a884182d0da846f365dee1221fd16610a14c81b8f9f295ff162749e50 name: type: string - example: Air Quality creator: $ref: '#/components/schemas/UserBriefDto' created: @@ -1378,7 +1304,6 @@ components: format: date-time internal_name: type: string - example: air-quality DatabaseBriefDto: required: - id @@ -1390,13 +1315,10 @@ components: format: int64 name: type: string - example: Air Quality description: type: string - example: Air Quality in Austria engine: type: string - example: mariadb:10.5 container: $ref: '#/components/schemas/ContainerBriefDto' creator: @@ -1406,7 +1328,6 @@ components: format: date-time is_public: type: boolean - example: true securitySchemes: bearerAuth: type: http diff --git a/swagger/api-database/.gitignore b/swagger/api-database/.gitignore deleted file mode 100644 index a655050c2631466828b5b8bfc59ae27f9ac02dc5..0000000000000000000000000000000000000000 --- a/swagger/api-database/.gitignore +++ /dev/null @@ -1,64 +0,0 @@ -# Byte-compiled / optimized / DLL files -__pycache__/ -*.py[cod] -*$py.class - -# C extensions -*.so - -# Distribution / packaging -.Python -env/ -build/ -develop-eggs/ -dist/ -downloads/ -eggs/ -.eggs/ -lib/ -lib64/ -parts/ -sdist/ -var/ -*.egg-info/ -.installed.cfg -*.egg - -# PyInstaller -# Usually these files are written by a python script from a template -# before PyInstaller builds the exe, so as to inject date/other infos into it. -*.manifest -*.spec - -# Installer logs -pip-log.txt -pip-delete-this-directory.txt - -# Unit test / coverage reports -htmlcov/ -.tox/ -.coverage -.coverage.* -.cache -nosetests.xml -coverage.xml -*,cover -.hypothesis/ -venv/ -.python-version - -# Translations -*.mo -*.pot - -# Django stuff: -*.log - -# Sphinx documentation -docs/_build/ - -# PyBuilder -target/ - -#Ipython Notebook -.ipynb_checkpoints diff --git a/swagger/api-database/.swagger-codegen-ignore b/swagger/api-database/.swagger-codegen-ignore deleted file mode 100644 index c5fa491b4c557bf997d5dd21797de782545dc9e5..0000000000000000000000000000000000000000 --- a/swagger/api-database/.swagger-codegen-ignore +++ /dev/null @@ -1,23 +0,0 @@ -# Swagger Codegen Ignore -# Generated by swagger-codegen https://github.com/swagger-api/swagger-codegen - -# Use this file to prevent files from being overwritten by the generator. -# The patterns follow closely to .gitignore or .dockerignore. - -# As an example, the C# client generator defines ApiClient.cs. -# You can make changes and tell Swagger Codgen to ignore just this file by uncommenting the following line: -#ApiClient.cs - -# You can match any string of characters against a directory, file or extension with a single asterisk (*): -#foo/*/qux -# The above matches foo/bar/qux and foo/baz/qux, but not foo/bar/baz/qux - -# You can recursively match patterns against a directory, file or extension with a double asterisk (**): -#foo/**/qux -# This matches foo/bar/qux, foo/baz/qux, and foo/bar/baz/qux - -# You can also negate patterns with an exclamation (!). -# For example, you can ignore all files in a docs folder with the file extension .md: -#docs/*.md -# Then explicitly reverse the ignore rule for a single file: -#!docs/README.md diff --git a/swagger/api-database/.swagger-codegen/VERSION b/swagger/api-database/.swagger-codegen/VERSION deleted file mode 100644 index 10bbf276ee45aaec75c7b2ada3ff71d798f89fd9..0000000000000000000000000000000000000000 --- a/swagger/api-database/.swagger-codegen/VERSION +++ /dev/null @@ -1 +0,0 @@ -3.0.34 \ No newline at end of file diff --git a/swagger/api-database/.travis.yml b/swagger/api-database/.travis.yml deleted file mode 100644 index dd6c4450aa902ae68479c3d76d45145e18d6052e..0000000000000000000000000000000000000000 --- a/swagger/api-database/.travis.yml +++ /dev/null @@ -1,13 +0,0 @@ -# ref: https://docs.travis-ci.com/user/languages/python -language: python -python: - - "3.2" - - "3.3" - - "3.4" - - "3.5" - #- "3.5-dev" # 3.5 development branch - #- "nightly" # points to the latest development branch e.g. 3.6-dev -# command to install dependencies -install: "pip install -r requirements.txt" -# command to run tests -script: nosetests diff --git a/swagger/api-database/README.md b/swagger/api-database/README.md deleted file mode 100644 index 4ff1f1a4e84db3ce349bc820d9d11f6562531d3f..0000000000000000000000000000000000000000 --- a/swagger/api-database/README.md +++ /dev/null @@ -1,176 +0,0 @@ -# swagger-client -Service that manages the databases - -This Python package is automatically generated by the [Swagger Codegen](https://github.com/swagger-api/swagger-codegen) project: - -- API version: 1.1.0-alpha -- Package version: 1.0.0 -- Build package: io.swagger.codegen.v3.generators.python.PythonClientCodegen - -## Requirements. - -Python 2.7 and 3.4+ - -## Installation & Usage -### pip install - -If the python package is hosted on Github, you can install directly from Github - -```sh -pip install git+https://github.com/GIT_USER_ID/GIT_REPO_ID.git -``` -(you may need to run `pip` with root permission: `sudo pip install git+https://github.com/GIT_USER_ID/GIT_REPO_ID.git`) - -Then import the package: -```python -import swagger_client -``` - -### Setuptools - -Install via [Setuptools](http://pypi.python.org/pypi/setuptools). - -```sh -python setup.py install --user -``` -(or `sudo python setup.py install` to install the package for all users) - -Then import the package: -```python -import swagger_client -``` - -## Getting Started - -Please follow the [installation procedure](#installation--usage) and then run the following: - -```python -from __future__ import print_function -import time -import swagger_client -from swagger_client.rest import ApiException -from pprint import pprint - - -# create an instance of the API class -api_instance = swagger_client.DatabaseEndpointApi(swagger_client.ApiClient(configuration)) -body = swagger_client.DatabaseCreateDto() # DatabaseCreateDto | -id = 789 # int | - -try: - # Create database - api_response = api_instance.create(body, id) - pprint(api_response) -except ApiException as e: - print("Exception when calling DatabaseEndpointApi->create: %s\n" % e) - - -# create an instance of the API class -api_instance = swagger_client.DatabaseEndpointApi(swagger_client.ApiClient(configuration)) -id = 789 # int | -database_id = 789 # int | - -try: - # Delete some database - api_response = api_instance.delete1(id, database_id) - pprint(api_response) -except ApiException as e: - print("Exception when calling DatabaseEndpointApi->delete1: %s\n" % e) - -# create an instance of the API class -api_instance = swagger_client.DatabaseEndpointApi(swagger_client.ApiClient(configuration)) -id = 789 # int | - -try: - # List databases - api_response = api_instance.find_all(id) - pprint(api_response) -except ApiException as e: - print("Exception when calling DatabaseEndpointApi->find_all: %s\n" % e) - - -# create an instance of the API class -api_instance = swagger_client.DatabaseEndpointApi(swagger_client.ApiClient(configuration)) -id = 789 # int | -database_id = 789 # int | - -try: - # Find some database - api_response = api_instance.find_by_id(id, database_id) - pprint(api_response) -except ApiException as e: - print("Exception when calling DatabaseEndpointApi->find_by_id: %s\n" % e) - - -# create an instance of the API class -api_instance = swagger_client.DatabaseEndpointApi(swagger_client.ApiClient(configuration)) -body = swagger_client.DatabaseTransferDto() # DatabaseTransferDto | -id = 789 # int | -database_id = 789 # int | - -try: - # Update database - api_response = api_instance.transfer(body, id, database_id) - pprint(api_response) -except ApiException as e: - print("Exception when calling DatabaseEndpointApi->transfer: %s\n" % e) - - -# create an instance of the API class -api_instance = swagger_client.DatabaseEndpointApi(swagger_client.ApiClient(configuration)) -body = swagger_client.DatabaseModifyDto() # DatabaseModifyDto | -id = 789 # int | -database_id = 789 # int | - -try: - # Update database - api_response = api_instance.update(body, id, database_id) - pprint(api_response) -except ApiException as e: - print("Exception when calling DatabaseEndpointApi->update: %s\n" % e) -``` - -## Documentation for API Endpoints - -All URIs are relative to *http://localhost:9092* - -Class | Method | HTTP request | Description ------------- | ------------- | ------------- | ------------- -*DatabaseEndpointApi* | [**create**](docs/DatabaseEndpointApi.md#create) | **POST** /api/container/{id}/database | Create database -*DatabaseEndpointApi* | [**delete1**](docs/DatabaseEndpointApi.md#delete1) | **DELETE** /api/container/{id}/database/{databaseId} | Delete some database -*DatabaseEndpointApi* | [**find_all**](docs/DatabaseEndpointApi.md#find_all) | **GET** /api/container/{id}/database | List databases -*DatabaseEndpointApi* | [**find_by_id**](docs/DatabaseEndpointApi.md#find_by_id) | **GET** /api/container/{id}/database/{databaseId} | Find some database -*DatabaseEndpointApi* | [**transfer**](docs/DatabaseEndpointApi.md#transfer) | **PUT** /api/container/{id}/database/{databaseId}/transfer | Update database -*DatabaseEndpointApi* | [**update**](docs/DatabaseEndpointApi.md#update) | **PUT** /api/container/{id}/database/{databaseId} | Update database -*LicenseEndpointApi* | [**delete**](docs/LicenseEndpointApi.md#delete) | **GET** /api/container/{id}/database/license | Get all licenses - -## Documentation For Models - - - [ApiErrorDto](docs/ApiErrorDto.md) - - [ContainerBriefDto](docs/ContainerBriefDto.md) - - [ContainerDto](docs/ContainerDto.md) - - [DatabaseBriefDto](docs/DatabaseBriefDto.md) - - [DatabaseCreateDto](docs/DatabaseCreateDto.md) - - [DatabaseDto](docs/DatabaseDto.md) - - [DatabaseModifyDto](docs/DatabaseModifyDto.md) - - [DatabaseTransferDto](docs/DatabaseTransferDto.md) - - [GrantedAuthorityDto](docs/GrantedAuthorityDto.md) - - [ImageBriefDto](docs/ImageBriefDto.md) - - [ImageDateDto](docs/ImageDateDto.md) - - [ImageDto](docs/ImageDto.md) - - [ImageEnvItemDto](docs/ImageEnvItemDto.md) - - [LicenseDto](docs/LicenseDto.md) - - [TableBriefDto](docs/TableBriefDto.md) - - [UserBriefDto](docs/UserBriefDto.md) - - [UserDto](docs/UserDto.md) - -## Documentation For Authorization - - -## bearerAuth - - - -## Author - -andreas.rauber@tuwien.ac.at diff --git a/swagger/api-database/git_push.sh b/swagger/api-database/git_push.sh deleted file mode 100644 index ae01b182ae9eb047d0999a496b060e62d7b01e5c..0000000000000000000000000000000000000000 --- a/swagger/api-database/git_push.sh +++ /dev/null @@ -1,52 +0,0 @@ -#!/bin/sh -# ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/ -# -# Usage example: /bin/sh ./git_push.sh wing328 swagger-petstore-perl "minor update" - -git_user_id=$1 -git_repo_id=$2 -release_note=$3 - -if [ "$git_user_id" = "" ]; then - git_user_id="GIT_USER_ID" - echo "[INFO] No command line input provided. Set \$git_user_id to $git_user_id" -fi - -if [ "$git_repo_id" = "" ]; then - git_repo_id="GIT_REPO_ID" - echo "[INFO] No command line input provided. Set \$git_repo_id to $git_repo_id" -fi - -if [ "$release_note" = "" ]; then - release_note="Minor update" - echo "[INFO] No command line input provided. Set \$release_note to $release_note" -fi - -# Initialize the local directory as a Git repository -git init - -# Adds the files in the local repository and stages them for commit. -git add . - -# Commits the tracked changes and prepares them to be pushed to a remote repository. -git commit -m "$release_note" - -# Sets the new remote -git_remote=`git remote` -if [ "$git_remote" = "" ]; then # git remote not defined - - if [ "$GIT_TOKEN" = "" ]; then - echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the git credential in your environment." - git remote add origin https://github.com/${git_user_id}/${git_repo_id}.git - else - git remote add origin https://${git_user_id}:${GIT_TOKEN}@github.com/${git_user_id}/${git_repo_id}.git - fi - -fi - -git pull origin master - -# Pushes (Forces) the changes in the local repository up to the remote repository -echo "Git pushing to https://github.com/${git_user_id}/${git_repo_id}.git" -git push origin master 2>&1 | grep -v 'To https' - diff --git a/swagger/api-database/requirements.txt b/swagger/api-database/requirements.txt deleted file mode 100644 index bafdc07532f5e1287a24c2af278f547091a410b6..0000000000000000000000000000000000000000 --- a/swagger/api-database/requirements.txt +++ /dev/null @@ -1,5 +0,0 @@ -certifi >= 14.05.14 -six >= 1.10 -python_dateutil >= 2.5.3 -setuptools >= 21.0.0 -urllib3 >= 1.15.1 diff --git a/swagger/api-database/setup.py b/swagger/api-database/setup.py deleted file mode 100644 index 58b0f2b26722ed9928879919afa45640fc7bab96..0000000000000000000000000000000000000000 --- a/swagger/api-database/setup.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Database Repository Database Service API - - Service that manages the databases # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -from setuptools import setup, find_packages # noqa: H301 - -NAME = "swagger-client" -VERSION = "1.0.0" -# To install the library, run the following -# -# python setup.py install -# -# prerequisite: setuptools -# http://pypi.python.org/pypi/setuptools - -REQUIRES = ["urllib3 >= 1.15", "six >= 1.10", "certifi", "python-dateutil"] - -setup( - name=NAME, - version=VERSION, - description="Database Repository Database Service API", - author_email="andreas.rauber@tuwien.ac.at", - url="", - keywords=["Swagger", "Database Repository Database Service API"], - install_requires=REQUIRES, - packages=find_packages(), - include_package_data=True, - long_description="""\ - Service that manages the databases # noqa: E501 - """ -) diff --git a/swagger/api-database/swagger_client/__init__.py b/swagger/api-database/swagger_client/__init__.py deleted file mode 100644 index 6d3b89f86ba6e15d450dc9be187ef07f8232bb67..0000000000000000000000000000000000000000 --- a/swagger/api-database/swagger_client/__init__.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -# flake8: noqa - -""" - Database Repository Database Service API - - Service that manages the databases # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -from __future__ import absolute_import - -# import apis into sdk package -from swagger_client.api.database_endpoint_api import DatabaseEndpointApi -from swagger_client.api.license_endpoint_api import LicenseEndpointApi -# import ApiClient -from swagger_client.api_client import ApiClient -from swagger_client.configuration import Configuration -# import models into sdk package -from swagger_client.models.api_error_dto import ApiErrorDto -from swagger_client.models.container_brief_dto import ContainerBriefDto -from swagger_client.models.container_dto import ContainerDto -from swagger_client.models.database_brief_dto import DatabaseBriefDto -from swagger_client.models.database_create_dto import DatabaseCreateDto -from swagger_client.models.database_dto import DatabaseDto -from swagger_client.models.database_modify_dto import DatabaseModifyDto -from swagger_client.models.database_transfer_dto import DatabaseTransferDto -from swagger_client.models.granted_authority_dto import GrantedAuthorityDto -from swagger_client.models.image_brief_dto import ImageBriefDto -from swagger_client.models.image_date_dto import ImageDateDto -from swagger_client.models.image_dto import ImageDto -from swagger_client.models.image_env_item_dto import ImageEnvItemDto -from swagger_client.models.license_dto import LicenseDto -from swagger_client.models.table_brief_dto import TableBriefDto -from swagger_client.models.user_brief_dto import UserBriefDto -from swagger_client.models.user_dto import UserDto diff --git a/swagger/api-database/swagger_client/api/__init__.py b/swagger/api-database/swagger_client/api/__init__.py deleted file mode 100644 index 3743310fe7a20b355ba4c290bc658889dce860ec..0000000000000000000000000000000000000000 --- a/swagger/api-database/swagger_client/api/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -from __future__ import absolute_import - -# flake8: noqa - -# import apis into api package -from swagger_client.api.database_endpoint_api import DatabaseEndpointApi -from swagger_client.api.license_endpoint_api import LicenseEndpointApi diff --git a/swagger/api-database/swagger_client/api/container_database_endpoint_api.py b/swagger/api-database/swagger_client/api/container_database_endpoint_api.py deleted file mode 100644 index a5b3b73744879c2baeb92eccfb670d4cbe9e7b7c..0000000000000000000000000000000000000000 --- a/swagger/api-database/swagger_client/api/container_database_endpoint_api.py +++ /dev/null @@ -1,659 +0,0 @@ -# coding: utf-8 - -""" - Database Repository Database Service API - - Service that manages the databases # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -from __future__ import absolute_import - -import re # noqa: F401 - -# python 2 and python 3 compatibility library -import six - -from swagger_client.api_client import ApiClient - - -class ContainerDatabaseEndpointApi(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - Ref: https://github.com/swagger-api/swagger-codegen - """ - - def __init__(self, api_client=None): - if api_client is None: - api_client = ApiClient() - self.api_client = api_client - - def create(self, body, id, **kwargs): # noqa: E501 - """Create database # noqa: E501 - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.create(body, id, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param DatabaseCreateDto body: (required) - :param int id: (required) - :return: DatabaseBriefDto - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.create_with_http_info(body, id, **kwargs) # noqa: E501 - else: - (data) = self.create_with_http_info(body, id, **kwargs) # noqa: E501 - return data - - def create_with_http_info(self, body, id, **kwargs): # noqa: E501 - """Create database # noqa: E501 - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.create_with_http_info(body, id, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param DatabaseCreateDto body: (required) - :param int id: (required) - :return: DatabaseBriefDto - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['body', 'id'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in six.iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method create" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'body' is set - if ('body' not in params or - params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `create`") # noqa: E501 - # verify the required parameter 'id' is set - if ('id' not in params or - params['id'] is None): - raise ValueError("Missing the required parameter `id` when calling `create`") # noqa: E501 - - collection_formats = {} - - path_params = {} - if 'id' in params: - path_params['id'] = params['id'] # noqa: E501 - - query_params = [] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - if 'body' in params: - body_params = params['body'] - # HTTP header `Accept` - header_params['Accept'] = self.api_client.select_header_accept( - ['*/*']) # noqa: E501 - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 - ['application/json']) # noqa: E501 - - # Authentication setting - auth_settings = ['bearerAuth'] # noqa: E501 - - return self.api_client.call_api( - '/api/container/{id}/database', 'POST', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='DatabaseBriefDto', # noqa: E501 - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def delete1(self, id, database_id, **kwargs): # noqa: E501 - """Delete some database # noqa: E501 - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.delete1(id, database_id, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param int id: (required) - :param int database_id: (required) - :return: object - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.delete1_with_http_info(id, database_id, **kwargs) # noqa: E501 - else: - (data) = self.delete1_with_http_info(id, database_id, **kwargs) # noqa: E501 - return data - - def delete1_with_http_info(self, id, database_id, **kwargs): # noqa: E501 - """Delete some database # noqa: E501 - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.delete1_with_http_info(id, database_id, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param int id: (required) - :param int database_id: (required) - :return: object - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['id', 'database_id'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in six.iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method delete1" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'id' is set - if ('id' not in params or - params['id'] is None): - raise ValueError("Missing the required parameter `id` when calling `delete1`") # noqa: E501 - # verify the required parameter 'database_id' is set - if ('database_id' not in params or - params['database_id'] is None): - raise ValueError("Missing the required parameter `database_id` when calling `delete1`") # noqa: E501 - - collection_formats = {} - - path_params = {} - if 'id' in params: - path_params['id'] = params['id'] # noqa: E501 - if 'database_id' in params: - path_params['databaseId'] = params['database_id'] # noqa: E501 - - query_params = [] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - # HTTP header `Accept` - header_params['Accept'] = self.api_client.select_header_accept( - ['*/*']) # noqa: E501 - - # Authentication setting - auth_settings = ['bearerAuth'] # noqa: E501 - - return self.api_client.call_api( - '/api/container/{id}/database/{databaseId}', 'DELETE', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='object', # noqa: E501 - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def find_all(self, id, **kwargs): # noqa: E501 - """List databases # noqa: E501 - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.find_all(id, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param int id: (required) - :return: list[DatabaseBriefDto] - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.find_all_with_http_info(id, **kwargs) # noqa: E501 - else: - (data) = self.find_all_with_http_info(id, **kwargs) # noqa: E501 - return data - - def find_all_with_http_info(self, id, **kwargs): # noqa: E501 - """List databases # noqa: E501 - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.find_all_with_http_info(id, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param int id: (required) - :return: list[DatabaseBriefDto] - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['id'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in six.iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method find_all" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'id' is set - if ('id' not in params or - params['id'] is None): - raise ValueError("Missing the required parameter `id` when calling `find_all`") # noqa: E501 - - collection_formats = {} - - path_params = {} - if 'id' in params: - path_params['id'] = params['id'] # noqa: E501 - - query_params = [] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - # HTTP header `Accept` - header_params['Accept'] = self.api_client.select_header_accept( - ['*/*']) # noqa: E501 - - # Authentication setting - auth_settings = [] # noqa: E501 - - return self.api_client.call_api( - '/api/container/{id}/database', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='list[DatabaseBriefDto]', # noqa: E501 - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def find_by_id(self, id, database_id, **kwargs): # noqa: E501 - """Find some database # noqa: E501 - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.find_by_id(id, database_id, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param int id: (required) - :param int database_id: (required) - :return: DatabaseDto - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.find_by_id_with_http_info(id, database_id, **kwargs) # noqa: E501 - else: - (data) = self.find_by_id_with_http_info(id, database_id, **kwargs) # noqa: E501 - return data - - def find_by_id_with_http_info(self, id, database_id, **kwargs): # noqa: E501 - """Find some database # noqa: E501 - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.find_by_id_with_http_info(id, database_id, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param int id: (required) - :param int database_id: (required) - :return: DatabaseDto - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['id', 'database_id'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in six.iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method find_by_id" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'id' is set - if ('id' not in params or - params['id'] is None): - raise ValueError("Missing the required parameter `id` when calling `find_by_id`") # noqa: E501 - # verify the required parameter 'database_id' is set - if ('database_id' not in params or - params['database_id'] is None): - raise ValueError("Missing the required parameter `database_id` when calling `find_by_id`") # noqa: E501 - - collection_formats = {} - - path_params = {} - if 'id' in params: - path_params['id'] = params['id'] # noqa: E501 - if 'database_id' in params: - path_params['databaseId'] = params['database_id'] # noqa: E501 - - query_params = [] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - # HTTP header `Accept` - header_params['Accept'] = self.api_client.select_header_accept( - ['*/*']) # noqa: E501 - - # Authentication setting - auth_settings = ['bearerAuth'] # noqa: E501 - - return self.api_client.call_api( - '/api/container/{id}/database/{databaseId}', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='DatabaseDto', # noqa: E501 - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def transfer(self, body, id, database_id, **kwargs): # noqa: E501 - """Update database # noqa: E501 - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.transfer(body, id, database_id, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param DatabaseTransferDto body: (required) - :param int id: (required) - :param int database_id: (required) - :return: DatabaseDto - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.transfer_with_http_info(body, id, database_id, **kwargs) # noqa: E501 - else: - (data) = self.transfer_with_http_info(body, id, database_id, **kwargs) # noqa: E501 - return data - - def transfer_with_http_info(self, body, id, database_id, **kwargs): # noqa: E501 - """Update database # noqa: E501 - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.transfer_with_http_info(body, id, database_id, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param DatabaseTransferDto body: (required) - :param int id: (required) - :param int database_id: (required) - :return: DatabaseDto - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['body', 'id', 'database_id'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in six.iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method transfer" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'body' is set - if ('body' not in params or - params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `transfer`") # noqa: E501 - # verify the required parameter 'id' is set - if ('id' not in params or - params['id'] is None): - raise ValueError("Missing the required parameter `id` when calling `transfer`") # noqa: E501 - # verify the required parameter 'database_id' is set - if ('database_id' not in params or - params['database_id'] is None): - raise ValueError("Missing the required parameter `database_id` when calling `transfer`") # noqa: E501 - - collection_formats = {} - - path_params = {} - if 'id' in params: - path_params['id'] = params['id'] # noqa: E501 - if 'database_id' in params: - path_params['databaseId'] = params['database_id'] # noqa: E501 - - query_params = [] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - if 'body' in params: - body_params = params['body'] - # HTTP header `Accept` - header_params['Accept'] = self.api_client.select_header_accept( - ['*/*']) # noqa: E501 - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 - ['application/json']) # noqa: E501 - - # Authentication setting - auth_settings = ['bearerAuth'] # noqa: E501 - - return self.api_client.call_api( - '/api/container/{id}/database/{databaseId}/transfer', 'PUT', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='DatabaseDto', # noqa: E501 - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def update(self, body, id, database_id, **kwargs): # noqa: E501 - """Update database # noqa: E501 - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.update(body, id, database_id, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param DatabaseModifyDto body: (required) - :param int id: (required) - :param int database_id: (required) - :return: DatabaseDto - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.update_with_http_info(body, id, database_id, **kwargs) # noqa: E501 - else: - (data) = self.update_with_http_info(body, id, database_id, **kwargs) # noqa: E501 - return data - - def update_with_http_info(self, body, id, database_id, **kwargs): # noqa: E501 - """Update database # noqa: E501 - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.update_with_http_info(body, id, database_id, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param DatabaseModifyDto body: (required) - :param int id: (required) - :param int database_id: (required) - :return: DatabaseDto - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['body', 'id', 'database_id'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in six.iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method update" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'body' is set - if ('body' not in params or - params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `update`") # noqa: E501 - # verify the required parameter 'id' is set - if ('id' not in params or - params['id'] is None): - raise ValueError("Missing the required parameter `id` when calling `update`") # noqa: E501 - # verify the required parameter 'database_id' is set - if ('database_id' not in params or - params['database_id'] is None): - raise ValueError("Missing the required parameter `database_id` when calling `update`") # noqa: E501 - - collection_formats = {} - - path_params = {} - if 'id' in params: - path_params['id'] = params['id'] # noqa: E501 - if 'database_id' in params: - path_params['databaseId'] = params['database_id'] # noqa: E501 - - query_params = [] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - if 'body' in params: - body_params = params['body'] - # HTTP header `Accept` - header_params['Accept'] = self.api_client.select_header_accept( - ['*/*']) # noqa: E501 - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 - ['application/json']) # noqa: E501 - - # Authentication setting - auth_settings = ['bearerAuth'] # noqa: E501 - - return self.api_client.call_api( - '/api/container/{id}/database/{databaseId}', 'PUT', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='DatabaseDto', # noqa: E501 - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) diff --git a/swagger/api-database/swagger_client/api/database_endpoint_api.py b/swagger/api-database/swagger_client/api/database_endpoint_api.py deleted file mode 100644 index c0612158432649c3e412c4ff95d9eff0396b9d52..0000000000000000000000000000000000000000 --- a/swagger/api-database/swagger_client/api/database_endpoint_api.py +++ /dev/null @@ -1,659 +0,0 @@ -# coding: utf-8 - -""" - Database Repository Database Service API - - Service that manages the databases # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -from __future__ import absolute_import - -import re # noqa: F401 - -# python 2 and python 3 compatibility library -import six - -from swagger_client.api_client import ApiClient - - -class DatabaseEndpointApi(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - Ref: https://github.com/swagger-api/swagger-codegen - """ - - def __init__(self, api_client=None): - if api_client is None: - api_client = ApiClient() - self.api_client = api_client - - def create(self, body, id, **kwargs): # noqa: E501 - """Create database # noqa: E501 - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.create(body, id, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param DatabaseCreateDto body: (required) - :param int id: (required) - :return: DatabaseBriefDto - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.create_with_http_info(body, id, **kwargs) # noqa: E501 - else: - (data) = self.create_with_http_info(body, id, **kwargs) # noqa: E501 - return data - - def create_with_http_info(self, body, id, **kwargs): # noqa: E501 - """Create database # noqa: E501 - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.create_with_http_info(body, id, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param DatabaseCreateDto body: (required) - :param int id: (required) - :return: DatabaseBriefDto - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['body', 'id'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in six.iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method create" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'body' is set - if ('body' not in params or - params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `create`") # noqa: E501 - # verify the required parameter 'id' is set - if ('id' not in params or - params['id'] is None): - raise ValueError("Missing the required parameter `id` when calling `create`") # noqa: E501 - - collection_formats = {} - - path_params = {} - if 'id' in params: - path_params['id'] = params['id'] # noqa: E501 - - query_params = [] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - if 'body' in params: - body_params = params['body'] - # HTTP header `Accept` - header_params['Accept'] = self.api_client.select_header_accept( - ['*/*']) # noqa: E501 - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 - ['application/json']) # noqa: E501 - - # Authentication setting - auth_settings = ['bearerAuth'] # noqa: E501 - - return self.api_client.call_api( - '/api/container/{id}/database', 'POST', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='DatabaseBriefDto', # noqa: E501 - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def delete1(self, id, database_id, **kwargs): # noqa: E501 - """Delete some database # noqa: E501 - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.delete1(id, database_id, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param int id: (required) - :param int database_id: (required) - :return: object - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.delete1_with_http_info(id, database_id, **kwargs) # noqa: E501 - else: - (data) = self.delete1_with_http_info(id, database_id, **kwargs) # noqa: E501 - return data - - def delete1_with_http_info(self, id, database_id, **kwargs): # noqa: E501 - """Delete some database # noqa: E501 - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.delete1_with_http_info(id, database_id, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param int id: (required) - :param int database_id: (required) - :return: object - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['id', 'database_id'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in six.iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method delete1" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'id' is set - if ('id' not in params or - params['id'] is None): - raise ValueError("Missing the required parameter `id` when calling `delete1`") # noqa: E501 - # verify the required parameter 'database_id' is set - if ('database_id' not in params or - params['database_id'] is None): - raise ValueError("Missing the required parameter `database_id` when calling `delete1`") # noqa: E501 - - collection_formats = {} - - path_params = {} - if 'id' in params: - path_params['id'] = params['id'] # noqa: E501 - if 'database_id' in params: - path_params['databaseId'] = params['database_id'] # noqa: E501 - - query_params = [] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - # HTTP header `Accept` - header_params['Accept'] = self.api_client.select_header_accept( - ['*/*']) # noqa: E501 - - # Authentication setting - auth_settings = ['bearerAuth'] # noqa: E501 - - return self.api_client.call_api( - '/api/container/{id}/database/{databaseId}', 'DELETE', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='object', # noqa: E501 - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def find_all(self, id, **kwargs): # noqa: E501 - """List databases # noqa: E501 - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.find_all(id, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param int id: (required) - :return: list[DatabaseBriefDto] - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.find_all_with_http_info(id, **kwargs) # noqa: E501 - else: - (data) = self.find_all_with_http_info(id, **kwargs) # noqa: E501 - return data - - def find_all_with_http_info(self, id, **kwargs): # noqa: E501 - """List databases # noqa: E501 - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.find_all_with_http_info(id, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param int id: (required) - :return: list[DatabaseBriefDto] - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['id'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in six.iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method find_all" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'id' is set - if ('id' not in params or - params['id'] is None): - raise ValueError("Missing the required parameter `id` when calling `find_all`") # noqa: E501 - - collection_formats = {} - - path_params = {} - if 'id' in params: - path_params['id'] = params['id'] # noqa: E501 - - query_params = [] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - # HTTP header `Accept` - header_params['Accept'] = self.api_client.select_header_accept( - ['*/*']) # noqa: E501 - - # Authentication setting - auth_settings = [] # noqa: E501 - - return self.api_client.call_api( - '/api/container/{id}/database', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='list[DatabaseBriefDto]', # noqa: E501 - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def find_by_id(self, id, database_id, **kwargs): # noqa: E501 - """Find some database # noqa: E501 - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.find_by_id(id, database_id, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param int id: (required) - :param int database_id: (required) - :return: DatabaseDto - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.find_by_id_with_http_info(id, database_id, **kwargs) # noqa: E501 - else: - (data) = self.find_by_id_with_http_info(id, database_id, **kwargs) # noqa: E501 - return data - - def find_by_id_with_http_info(self, id, database_id, **kwargs): # noqa: E501 - """Find some database # noqa: E501 - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.find_by_id_with_http_info(id, database_id, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param int id: (required) - :param int database_id: (required) - :return: DatabaseDto - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['id', 'database_id'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in six.iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method find_by_id" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'id' is set - if ('id' not in params or - params['id'] is None): - raise ValueError("Missing the required parameter `id` when calling `find_by_id`") # noqa: E501 - # verify the required parameter 'database_id' is set - if ('database_id' not in params or - params['database_id'] is None): - raise ValueError("Missing the required parameter `database_id` when calling `find_by_id`") # noqa: E501 - - collection_formats = {} - - path_params = {} - if 'id' in params: - path_params['id'] = params['id'] # noqa: E501 - if 'database_id' in params: - path_params['databaseId'] = params['database_id'] # noqa: E501 - - query_params = [] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - # HTTP header `Accept` - header_params['Accept'] = self.api_client.select_header_accept( - ['*/*']) # noqa: E501 - - # Authentication setting - auth_settings = ['bearerAuth'] # noqa: E501 - - return self.api_client.call_api( - '/api/container/{id}/database/{databaseId}', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='DatabaseDto', # noqa: E501 - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def transfer(self, body, id, database_id, **kwargs): # noqa: E501 - """Update database # noqa: E501 - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.transfer(body, id, database_id, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param DatabaseTransferDto body: (required) - :param int id: (required) - :param int database_id: (required) - :return: DatabaseDto - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.transfer_with_http_info(body, id, database_id, **kwargs) # noqa: E501 - else: - (data) = self.transfer_with_http_info(body, id, database_id, **kwargs) # noqa: E501 - return data - - def transfer_with_http_info(self, body, id, database_id, **kwargs): # noqa: E501 - """Update database # noqa: E501 - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.transfer_with_http_info(body, id, database_id, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param DatabaseTransferDto body: (required) - :param int id: (required) - :param int database_id: (required) - :return: DatabaseDto - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['body', 'id', 'database_id'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in six.iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method transfer" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'body' is set - if ('body' not in params or - params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `transfer`") # noqa: E501 - # verify the required parameter 'id' is set - if ('id' not in params or - params['id'] is None): - raise ValueError("Missing the required parameter `id` when calling `transfer`") # noqa: E501 - # verify the required parameter 'database_id' is set - if ('database_id' not in params or - params['database_id'] is None): - raise ValueError("Missing the required parameter `database_id` when calling `transfer`") # noqa: E501 - - collection_formats = {} - - path_params = {} - if 'id' in params: - path_params['id'] = params['id'] # noqa: E501 - if 'database_id' in params: - path_params['databaseId'] = params['database_id'] # noqa: E501 - - query_params = [] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - if 'body' in params: - body_params = params['body'] - # HTTP header `Accept` - header_params['Accept'] = self.api_client.select_header_accept( - ['*/*']) # noqa: E501 - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 - ['application/json']) # noqa: E501 - - # Authentication setting - auth_settings = ['bearerAuth'] # noqa: E501 - - return self.api_client.call_api( - '/api/container/{id}/database/{databaseId}/transfer', 'PUT', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='DatabaseDto', # noqa: E501 - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def update(self, body, id, database_id, **kwargs): # noqa: E501 - """Update database # noqa: E501 - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.update(body, id, database_id, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param DatabaseModifyDto body: (required) - :param int id: (required) - :param int database_id: (required) - :return: DatabaseDto - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.update_with_http_info(body, id, database_id, **kwargs) # noqa: E501 - else: - (data) = self.update_with_http_info(body, id, database_id, **kwargs) # noqa: E501 - return data - - def update_with_http_info(self, body, id, database_id, **kwargs): # noqa: E501 - """Update database # noqa: E501 - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.update_with_http_info(body, id, database_id, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param DatabaseModifyDto body: (required) - :param int id: (required) - :param int database_id: (required) - :return: DatabaseDto - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['body', 'id', 'database_id'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in six.iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method update" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'body' is set - if ('body' not in params or - params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `update`") # noqa: E501 - # verify the required parameter 'id' is set - if ('id' not in params or - params['id'] is None): - raise ValueError("Missing the required parameter `id` when calling `update`") # noqa: E501 - # verify the required parameter 'database_id' is set - if ('database_id' not in params or - params['database_id'] is None): - raise ValueError("Missing the required parameter `database_id` when calling `update`") # noqa: E501 - - collection_formats = {} - - path_params = {} - if 'id' in params: - path_params['id'] = params['id'] # noqa: E501 - if 'database_id' in params: - path_params['databaseId'] = params['database_id'] # noqa: E501 - - query_params = [] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - if 'body' in params: - body_params = params['body'] - # HTTP header `Accept` - header_params['Accept'] = self.api_client.select_header_accept( - ['*/*']) # noqa: E501 - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 - ['application/json']) # noqa: E501 - - # Authentication setting - auth_settings = ['bearerAuth'] # noqa: E501 - - return self.api_client.call_api( - '/api/container/{id}/database/{databaseId}', 'PUT', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='DatabaseDto', # noqa: E501 - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) diff --git a/swagger/api-database/swagger_client/api/license_endpoint_api.py b/swagger/api-database/swagger_client/api/license_endpoint_api.py deleted file mode 100644 index 4c1511b6bed3da7dc84d7f13c73e90f5af2f53a1..0000000000000000000000000000000000000000 --- a/swagger/api-database/swagger_client/api/license_endpoint_api.py +++ /dev/null @@ -1,126 +0,0 @@ -# coding: utf-8 - -""" - Database Repository Database Service API - - Service that manages the databases # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -from __future__ import absolute_import - -import re # noqa: F401 - -# python 2 and python 3 compatibility library -import six - -from swagger_client.api_client import ApiClient - - -class LicenseEndpointApi(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - Ref: https://github.com/swagger-api/swagger-codegen - """ - - def __init__(self, api_client=None): - if api_client is None: - api_client = ApiClient() - self.api_client = api_client - - def delete(self, id, **kwargs): # noqa: E501 - """Get all licenses # noqa: E501 - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.delete(id, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param int id: (required) - :return: list[LicenseDto] - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.delete_with_http_info(id, **kwargs) # noqa: E501 - else: - (data) = self.delete_with_http_info(id, **kwargs) # noqa: E501 - return data - - def delete_with_http_info(self, id, **kwargs): # noqa: E501 - """Get all licenses # noqa: E501 - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.delete_with_http_info(id, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param int id: (required) - :return: list[LicenseDto] - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['id'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in six.iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method delete" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'id' is set - if ('id' not in params or - params['id'] is None): - raise ValueError("Missing the required parameter `id` when calling `delete`") # noqa: E501 - - collection_formats = {} - - path_params = {} - if 'id' in params: - path_params['id'] = params['id'] # noqa: E501 - - query_params = [] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - # HTTP header `Accept` - header_params['Accept'] = self.api_client.select_header_accept( - ['*/*']) # noqa: E501 - - # Authentication setting - auth_settings = [] # noqa: E501 - - return self.api_client.call_api( - '/api/container/{id}/database/license', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='list[LicenseDto]', # noqa: E501 - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) diff --git a/swagger/api-database/swagger_client/api_client.py b/swagger/api-database/swagger_client/api_client.py deleted file mode 100644 index da9bcb5679045733acc62283ffb9533a941fd123..0000000000000000000000000000000000000000 --- a/swagger/api-database/swagger_client/api_client.py +++ /dev/null @@ -1,632 +0,0 @@ -# coding: utf-8 -""" - Database Repository Database Service API - - Service that manages the databases # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" -from __future__ import absolute_import - -import datetime -import json -import mimetypes -from multiprocessing.pool import ThreadPool -import os -import re -import tempfile - -# python 2 and python 3 compatibility library -import six -from six.moves.urllib.parse import quote - -from swagger_client.configuration import Configuration -import swagger_client.models -from swagger_client import rest - - -class ApiClient(object): - """Generic API client for Swagger client library builds. - - Swagger generic API client. This client handles the client- - server communication, and is invariant across implementations. Specifics of - the methods and models for each application are generated from the Swagger - templates. - - NOTE: This class is auto generated by the swagger code generator program. - Ref: https://github.com/swagger-api/swagger-codegen - Do not edit the class manually. - - :param configuration: .Configuration object for this client - :param header_name: a header to pass when making calls to the API. - :param header_value: a header value to pass when making calls to - the API. - :param cookie: a cookie to include in the header when making calls - to the API - """ - - PRIMITIVE_TYPES = (float, bool, bytes, six.text_type) + six.integer_types - NATIVE_TYPES_MAPPING = { - 'int': int, - 'long': int if six.PY3 else long, # noqa: F821 - 'float': float, - 'str': str, - 'bool': bool, - 'date': datetime.date, - 'datetime': datetime.datetime, - 'object': object, - } - - def __init__(self, configuration=None, header_name=None, header_value=None, - cookie=None): - if configuration is None: - configuration = Configuration() - self.configuration = configuration - - self.pool = ThreadPool() - self.rest_client = rest.RESTClientObject(configuration) - self.default_headers = {} - if header_name is not None: - self.default_headers[header_name] = header_value - self.cookie = cookie - # Set default User-Agent. - self.user_agent = 'Swagger-Codegen/1.0.0/python' - - def __del__(self): - self.pool.close() - self.pool.join() - - @property - def user_agent(self): - """User agent for this API client""" - return self.default_headers['User-Agent'] - - @user_agent.setter - def user_agent(self, value): - self.default_headers['User-Agent'] = value - - def set_default_header(self, header_name, header_value): - self.default_headers[header_name] = header_value - - def __call_api( - self, resource_path, method, path_params=None, - query_params=None, header_params=None, body=None, post_params=None, - files=None, response_type=None, auth_settings=None, - _return_http_data_only=None, collection_formats=None, - _preload_content=True, _request_timeout=None): - - config = self.configuration - - # header parameters - header_params = header_params or {} - header_params.update(self.default_headers) - if self.cookie: - header_params['Cookie'] = self.cookie - if header_params: - header_params = self.sanitize_for_serialization(header_params) - header_params = dict(self.parameters_to_tuples(header_params, - collection_formats)) - - # path parameters - if path_params: - path_params = self.sanitize_for_serialization(path_params) - path_params = self.parameters_to_tuples(path_params, - collection_formats) - for k, v in path_params: - # specified safe chars, encode everything - resource_path = resource_path.replace( - '{%s}' % k, - quote(str(v), safe=config.safe_chars_for_path_param) - ) - - # query parameters - if query_params: - query_params = self.sanitize_for_serialization(query_params) - query_params = self.parameters_to_tuples(query_params, - collection_formats) - - # post parameters - if post_params or files: - post_params = self.prepare_post_parameters(post_params, files) - post_params = self.sanitize_for_serialization(post_params) - post_params = self.parameters_to_tuples(post_params, - collection_formats) - - # auth setting - self.update_params_for_auth(header_params, query_params, auth_settings) - - # body - if body: - body = self.sanitize_for_serialization(body) - - # request url - url = self.configuration.host + resource_path - - # perform request and return response - response_data = self.request( - method, url, query_params=query_params, headers=header_params, - post_params=post_params, body=body, - _preload_content=_preload_content, - _request_timeout=_request_timeout) - - self.last_response = response_data - - return_data = response_data - if _preload_content: - # deserialize response data - if response_type: - return_data = self.deserialize(response_data, response_type) - else: - return_data = None - - if _return_http_data_only: - return (return_data) - else: - return (return_data, response_data.status, - response_data.getheaders()) - - def sanitize_for_serialization(self, obj): - """Builds a JSON POST object. - - If obj is None, return None. - If obj is str, int, long, float, bool, return directly. - If obj is datetime.datetime, datetime.date - convert to string in iso8601 format. - If obj is list, sanitize each element in the list. - If obj is dict, return the dict. - If obj is swagger model, return the properties dict. - - :param obj: The data to serialize. - :return: The serialized form of data. - """ - if obj is None: - return None - elif isinstance(obj, self.PRIMITIVE_TYPES): - return obj - elif isinstance(obj, list): - return [self.sanitize_for_serialization(sub_obj) - for sub_obj in obj] - elif isinstance(obj, tuple): - return tuple(self.sanitize_for_serialization(sub_obj) - for sub_obj in obj) - elif isinstance(obj, (datetime.datetime, datetime.date)): - return obj.isoformat() - - if isinstance(obj, dict): - obj_dict = obj - else: - # Convert model obj to dict except - # attributes `swagger_types`, `attribute_map` - # and attributes which value is not None. - # Convert attribute name to json key in - # model definition for request. - obj_dict = {obj.attribute_map[attr]: getattr(obj, attr) - for attr, _ in six.iteritems(obj.swagger_types) - if getattr(obj, attr) is not None} - - return {key: self.sanitize_for_serialization(val) - for key, val in six.iteritems(obj_dict)} - - def deserialize(self, response, response_type): - """Deserializes response into an object. - - :param response: RESTResponse object to be deserialized. - :param response_type: class literal for - deserialized object, or string of class name. - - :return: deserialized object. - """ - # handle file downloading - # save response body into a tmp file and return the instance - if response_type == "file": - return self.__deserialize_file(response) - - # fetch data from response object - try: - data = json.loads(response.data) - except ValueError: - data = response.data - - return self.__deserialize(data, response_type) - - def __deserialize(self, data, klass): - """Deserializes dict, list, str into an object. - - :param data: dict, list or str. - :param klass: class literal, or string of class name. - - :return: object. - """ - if data is None: - return None - - if type(klass) == str: - if klass.startswith('list['): - sub_kls = re.match(r'list\[(.*)\]', klass).group(1) - return [self.__deserialize(sub_data, sub_kls) - for sub_data in data] - - if klass.startswith('dict('): - sub_kls = re.match(r'dict\(([^,]*), (.*)\)', klass).group(2) - return {k: self.__deserialize(v, sub_kls) - for k, v in six.iteritems(data)} - - # convert str to class - if klass in self.NATIVE_TYPES_MAPPING: - klass = self.NATIVE_TYPES_MAPPING[klass] - else: - klass = getattr(swagger_client.models, klass) - - if klass in self.PRIMITIVE_TYPES: - return self.__deserialize_primitive(data, klass) - elif klass == object: - return self.__deserialize_object(data) - elif klass == datetime.date: - return self.__deserialize_date(data) - elif klass == datetime.datetime: - return self.__deserialize_datatime(data) - else: - return self.__deserialize_model(data, klass) - - def call_api(self, resource_path, method, - path_params=None, query_params=None, header_params=None, - body=None, post_params=None, files=None, - response_type=None, auth_settings=None, async_req=None, - _return_http_data_only=None, collection_formats=None, - _preload_content=True, _request_timeout=None): - """Makes the HTTP request (synchronous) and returns deserialized data. - - To make an async request, set the async_req parameter. - - :param resource_path: Path to method endpoint. - :param method: Method to call. - :param path_params: Path parameters in the url. - :param query_params: Query parameters in the url. - :param header_params: Header parameters to be - placed in the request header. - :param body: Request body. - :param post_params dict: Request post form parameters, - for `application/x-www-form-urlencoded`, `multipart/form-data`. - :param auth_settings list: Auth Settings names for the request. - :param response: Response data type. - :param files dict: key -> filename, value -> filepath, - for `multipart/form-data`. - :param async_req bool: execute request asynchronously - :param _return_http_data_only: response data without head status code - and headers - :param collection_formats: dict of collection formats for path, query, - header, and post parameters. - :param _preload_content: if False, the urllib3.HTTPResponse object will - be returned without reading/decoding response - data. Default is True. - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :return: - If async_req parameter is True, - the request will be called asynchronously. - The method will return the request thread. - If parameter async_req is False or missing, - then the method will return the response directly. - """ - if not async_req: - return self.__call_api(resource_path, method, - path_params, query_params, header_params, - body, post_params, files, - response_type, auth_settings, - _return_http_data_only, collection_formats, - _preload_content, _request_timeout) - else: - thread = self.pool.apply_async(self.__call_api, (resource_path, - method, path_params, query_params, - header_params, body, - post_params, files, - response_type, auth_settings, - _return_http_data_only, - collection_formats, - _preload_content, _request_timeout)) - return thread - - def request(self, method, url, query_params=None, headers=None, - post_params=None, body=None, _preload_content=True, - _request_timeout=None): - """Makes the HTTP request using RESTClient.""" - if method == "GET": - return self.rest_client.GET(url, - query_params=query_params, - _preload_content=_preload_content, - _request_timeout=_request_timeout, - headers=headers) - elif method == "HEAD": - return self.rest_client.HEAD(url, - query_params=query_params, - _preload_content=_preload_content, - _request_timeout=_request_timeout, - headers=headers) - elif method == "OPTIONS": - return self.rest_client.OPTIONS(url, - query_params=query_params, - headers=headers, - post_params=post_params, - _preload_content=_preload_content, - _request_timeout=_request_timeout, - body=body) - elif method == "POST": - return self.rest_client.POST(url, - query_params=query_params, - headers=headers, - post_params=post_params, - _preload_content=_preload_content, - _request_timeout=_request_timeout, - body=body) - elif method == "PUT": - return self.rest_client.PUT(url, - query_params=query_params, - headers=headers, - post_params=post_params, - _preload_content=_preload_content, - _request_timeout=_request_timeout, - body=body) - elif method == "PATCH": - return self.rest_client.PATCH(url, - query_params=query_params, - headers=headers, - post_params=post_params, - _preload_content=_preload_content, - _request_timeout=_request_timeout, - body=body) - elif method == "DELETE": - return self.rest_client.DELETE(url, - query_params=query_params, - headers=headers, - _preload_content=_preload_content, - _request_timeout=_request_timeout, - body=body) - else: - raise ValueError( - "http method must be `GET`, `HEAD`, `OPTIONS`," - " `POST`, `PATCH`, `PUT` or `DELETE`." - ) - - def parameters_to_tuples(self, params, collection_formats): - """Get parameters as list of tuples, formatting collections. - - :param params: Parameters as dict or list of two-tuples - :param dict collection_formats: Parameter collection formats - :return: Parameters as list of tuples, collections formatted - """ - new_params = [] - if collection_formats is None: - collection_formats = {} - for k, v in six.iteritems(params) if isinstance(params, dict) else params: # noqa: E501 - if k in collection_formats: - collection_format = collection_formats[k] - if collection_format == 'multi': - new_params.extend((k, value) for value in v) - else: - if collection_format == 'ssv': - delimiter = ' ' - elif collection_format == 'tsv': - delimiter = '\t' - elif collection_format == 'pipes': - delimiter = '|' - else: # csv is the default - delimiter = ',' - new_params.append( - (k, delimiter.join(str(value) for value in v))) - else: - new_params.append((k, v)) - return new_params - - def prepare_post_parameters(self, post_params=None, files=None): - """Builds form parameters. - - :param post_params: Normal form parameters. - :param files: File parameters. - :return: Form parameters with files. - """ - params = [] - - if post_params: - params = post_params - - if files: - for k, v in six.iteritems(files): - if not v: - continue - file_names = v if type(v) is list else [v] - for n in file_names: - with open(n, 'rb') as f: - filename = os.path.basename(f.name) - filedata = f.read() - mimetype = (mimetypes.guess_type(filename)[0] or - 'application/octet-stream') - params.append( - tuple([k, tuple([filename, filedata, mimetype])])) - - return params - - def select_header_accept(self, accepts): - """Returns `Accept` based on an array of accepts provided. - - :param accepts: List of headers. - :return: Accept (e.g. application/json). - """ - if not accepts: - return - - accepts = [x.lower() for x in accepts] - - if 'application/json' in accepts: - return 'application/json' - else: - return ', '.join(accepts) - - def select_header_content_type(self, content_types): - """Returns `Content-Type` based on an array of content_types provided. - - :param content_types: List of content-types. - :return: Content-Type (e.g. application/json). - """ - if not content_types: - return 'application/json' - - content_types = [x.lower() for x in content_types] - - if 'application/json' in content_types or '*/*' in content_types: - return 'application/json' - else: - return content_types[0] - - def update_params_for_auth(self, headers, querys, auth_settings): - """Updates header and query params based on authentication setting. - - :param headers: Header parameters dict to be updated. - :param querys: Query parameters tuple list to be updated. - :param auth_settings: Authentication setting identifiers list. - """ - if not auth_settings: - return - - for auth in auth_settings: - auth_setting = self.configuration.auth_settings().get(auth) - if auth_setting: - if not auth_setting['value']: - continue - elif auth_setting['in'] == 'header': - headers[auth_setting['key']] = auth_setting['value'] - elif auth_setting['in'] == 'query': - querys.append((auth_setting['key'], auth_setting['value'])) - else: - raise ValueError( - 'Authentication token must be in `query` or `header`' - ) - - def __deserialize_file(self, response): - """Deserializes body to file - - Saves response body into a file in a temporary folder, - using the filename from the `Content-Disposition` header if provided. - - :param response: RESTResponse. - :return: file path. - """ - fd, path = tempfile.mkstemp(dir=self.configuration.temp_folder_path) - os.close(fd) - os.remove(path) - - content_disposition = response.getheader("Content-Disposition") - if content_disposition: - filename = re.search(r'filename=[\'"]?([^\'"\s]+)[\'"]?', - content_disposition).group(1) - path = os.path.join(os.path.dirname(path), filename) - response_data = response.data - with open(path, "wb") as f: - if isinstance(response_data, str): - # change str to bytes so we can write it - response_data = response_data.encode('utf-8') - f.write(response_data) - else: - f.write(response_data) - return path - - def __deserialize_primitive(self, data, klass): - """Deserializes string to primitive type. - - :param data: str. - :param klass: class literal. - - :return: int, long, float, str, bool. - """ - try: - return klass(data) - except UnicodeEncodeError: - return six.text_type(data) - except TypeError: - return data - - def __deserialize_object(self, value): - """Return a original value. - - :return: object. - """ - return value - - def __deserialize_date(self, string): - """Deserializes string to date. - - :param string: str. - :return: date. - """ - try: - from dateutil.parser import parse - return parse(string).date() - except ImportError: - return string - except ValueError: - raise rest.ApiException( - status=0, - reason="Failed to parse `{0}` as date object".format(string) - ) - - def __deserialize_datatime(self, string): - """Deserializes string to datetime. - - The string should be in iso8601 datetime format. - - :param string: str. - :return: datetime. - """ - try: - from dateutil.parser import parse - return parse(string) - except ImportError: - return string - except ValueError: - raise rest.ApiException( - status=0, - reason=( - "Failed to parse `{0}` as datetime object" - .format(string) - ) - ) - - def __hasattr(self, object, name): - return name in object.__class__.__dict__ - - def __deserialize_model(self, data, klass): - """Deserializes list or dict to model. - - :param data: dict, list. - :param klass: class literal. - :return: model object. - """ - - if not klass.swagger_types and not self.__hasattr(klass, 'get_real_child_model'): - return data - - kwargs = {} - if klass.swagger_types is not None: - for attr, attr_type in six.iteritems(klass.swagger_types): - if (data is not None and - klass.attribute_map[attr] in data and - isinstance(data, (list, dict))): - value = data[klass.attribute_map[attr]] - kwargs[attr] = self.__deserialize(value, attr_type) - - instance = klass(**kwargs) - - if (isinstance(instance, dict) and - klass.swagger_types is not None and - isinstance(data, dict)): - for key, value in data.items(): - if key not in klass.swagger_types: - instance[key] = value - if self.__hasattr(instance, 'get_real_child_model'): - klass_name = instance.get_real_child_model(data) - if klass_name: - instance = self.__deserialize(data, klass_name) - return instance diff --git a/swagger/api-database/swagger_client/configuration.py b/swagger/api-database/swagger_client/configuration.py deleted file mode 100644 index fce8e6a18fa74607fb11efd44efda620d73cd87d..0000000000000000000000000000000000000000 --- a/swagger/api-database/swagger_client/configuration.py +++ /dev/null @@ -1,244 +0,0 @@ -# coding: utf-8 - -""" - Database Repository Database Service API - - Service that manages the databases # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -from __future__ import absolute_import - -import copy -import logging -import multiprocessing -import sys -import urllib3 - -import six -from six.moves import http_client as httplib - - -class TypeWithDefault(type): - def __init__(cls, name, bases, dct): - super(TypeWithDefault, cls).__init__(name, bases, dct) - cls._default = None - - def __call__(cls): - if cls._default is None: - cls._default = type.__call__(cls) - return copy.copy(cls._default) - - def set_default(cls, default): - cls._default = copy.copy(default) - - -class Configuration(six.with_metaclass(TypeWithDefault, object)): - """NOTE: This class is auto generated by the swagger code generator program. - - Ref: https://github.com/swagger-api/swagger-codegen - Do not edit the class manually. - """ - - def __init__(self): - """Constructor""" - # Default Base url - self.host = "http://localhost:9092" - # Temp file folder for downloading files - self.temp_folder_path = None - - # Authentication Settings - # dict to store API key(s) - self.api_key = {} - # dict to store API prefix (e.g. Bearer) - self.api_key_prefix = {} - # function to refresh API key if expired - self.refresh_api_key_hook = None - # Username for HTTP basic authentication - self.username = "" - # Password for HTTP basic authentication - self.password = "" - # Logging Settings - self.logger = {} - self.logger["package_logger"] = logging.getLogger("swagger_client") - self.logger["urllib3_logger"] = logging.getLogger("urllib3") - # Log format - self.logger_format = '%(asctime)s %(levelname)s %(message)s' - # Log stream handler - self.logger_stream_handler = None - # Log file handler - self.logger_file_handler = None - # Debug file location - self.logger_file = None - # Debug switch - self.debug = False - - # SSL/TLS verification - # Set this to false to skip verifying SSL certificate when calling API - # from https server. - self.verify_ssl = True - # Set this to customize the certificate file to verify the peer. - self.ssl_ca_cert = None - # client certificate file - self.cert_file = None - # client key file - self.key_file = None - # Set this to True/False to enable/disable SSL hostname verification. - self.assert_hostname = None - - # urllib3 connection pool's maximum number of connections saved - # per pool. urllib3 uses 1 connection as default value, but this is - # not the best value when you are making a lot of possibly parallel - # requests to the same host, which is often the case here. - # cpu_count * 5 is used as default value to increase performance. - self.connection_pool_maxsize = multiprocessing.cpu_count() * 5 - - # Proxy URL - self.proxy = None - # Safe chars for path_param - self.safe_chars_for_path_param = '' - - @property - def logger_file(self): - """The logger file. - - If the logger_file is None, then add stream handler and remove file - handler. Otherwise, add file handler and remove stream handler. - - :param value: The logger_file path. - :type: str - """ - return self.__logger_file - - @logger_file.setter - def logger_file(self, value): - """The logger file. - - If the logger_file is None, then add stream handler and remove file - handler. Otherwise, add file handler and remove stream handler. - - :param value: The logger_file path. - :type: str - """ - self.__logger_file = value - if self.__logger_file: - # If set logging file, - # then add file handler and remove stream handler. - self.logger_file_handler = logging.FileHandler(self.__logger_file) - self.logger_file_handler.setFormatter(self.logger_formatter) - for _, logger in six.iteritems(self.logger): - logger.addHandler(self.logger_file_handler) - if self.logger_stream_handler: - logger.removeHandler(self.logger_stream_handler) - else: - # If not set logging file, - # then add stream handler and remove file handler. - self.logger_stream_handler = logging.StreamHandler() - self.logger_stream_handler.setFormatter(self.logger_formatter) - for _, logger in six.iteritems(self.logger): - logger.addHandler(self.logger_stream_handler) - if self.logger_file_handler: - logger.removeHandler(self.logger_file_handler) - - @property - def debug(self): - """Debug status - - :param value: The debug status, True or False. - :type: bool - """ - return self.__debug - - @debug.setter - def debug(self, value): - """Debug status - - :param value: The debug status, True or False. - :type: bool - """ - self.__debug = value - if self.__debug: - # if debug status is True, turn on debug logging - for _, logger in six.iteritems(self.logger): - logger.setLevel(logging.DEBUG) - # turn on httplib debug - httplib.HTTPConnection.debuglevel = 1 - else: - # if debug status is False, turn off debug logging, - # setting log level to default `logging.WARNING` - for _, logger in six.iteritems(self.logger): - logger.setLevel(logging.WARNING) - # turn off httplib debug - httplib.HTTPConnection.debuglevel = 0 - - @property - def logger_format(self): - """The logger format. - - The logger_formatter will be updated when sets logger_format. - - :param value: The format string. - :type: str - """ - return self.__logger_format - - @logger_format.setter - def logger_format(self, value): - """The logger format. - - The logger_formatter will be updated when sets logger_format. - - :param value: The format string. - :type: str - """ - self.__logger_format = value - self.logger_formatter = logging.Formatter(self.__logger_format) - - def get_api_key_with_prefix(self, identifier): - """Gets API key (with prefix if set). - - :param identifier: The identifier of apiKey. - :return: The token for api key authentication. - """ - if self.refresh_api_key_hook: - self.refresh_api_key_hook(self) - - key = self.api_key.get(identifier) - if key: - prefix = self.api_key_prefix.get(identifier) - if prefix: - return "%s %s" % (prefix, key) - else: - return key - - def get_basic_auth_token(self): - """Gets HTTP basic authentication header (string). - - :return: The token for basic HTTP authentication. - """ - return urllib3.util.make_headers( - basic_auth=self.username + ':' + self.password - ).get('authorization') - - def auth_settings(self): - """Gets Auth Settings dict for api client. - - :return: The Auth Settings information dict. - """ - return { - } - - def to_debug_report(self): - """Gets the essential information for debugging. - - :return: The report for debugging. - """ - return "Python SDK Debug Report:\n"\ - "OS: {env}\n"\ - "Python Version: {pyversion}\n"\ - "Version of the API: 1.1.0-alpha\n"\ - "SDK Package Version: 1.0.0".\ - format(env=sys.platform, pyversion=sys.version) diff --git a/swagger/api-database/swagger_client/models/__init__.py b/swagger/api-database/swagger_client/models/__init__.py deleted file mode 100644 index aaab8779487572f1c399450febe7add4da94304d..0000000000000000000000000000000000000000 --- a/swagger/api-database/swagger_client/models/__init__.py +++ /dev/null @@ -1,33 +0,0 @@ -# coding: utf-8 - -# flake8: noqa -""" - Database Repository Database Service API - - Service that manages the databases # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -from __future__ import absolute_import - -# import models into model package -from swagger_client.models.api_error_dto import ApiErrorDto -from swagger_client.models.container_brief_dto import ContainerBriefDto -from swagger_client.models.container_dto import ContainerDto -from swagger_client.models.database_brief_dto import DatabaseBriefDto -from swagger_client.models.database_create_dto import DatabaseCreateDto -from swagger_client.models.database_dto import DatabaseDto -from swagger_client.models.database_modify_dto import DatabaseModifyDto -from swagger_client.models.database_transfer_dto import DatabaseTransferDto -from swagger_client.models.granted_authority_dto import GrantedAuthorityDto -from swagger_client.models.image_brief_dto import ImageBriefDto -from swagger_client.models.image_date_dto import ImageDateDto -from swagger_client.models.image_dto import ImageDto -from swagger_client.models.image_env_item_dto import ImageEnvItemDto -from swagger_client.models.license_dto import LicenseDto -from swagger_client.models.table_brief_dto import TableBriefDto -from swagger_client.models.user_brief_dto import UserBriefDto -from swagger_client.models.user_dto import UserDto diff --git a/swagger/api-database/swagger_client/models/api_error_dto.py b/swagger/api-database/swagger_client/models/api_error_dto.py deleted file mode 100644 index 1805f0cb0f156c7b3e3d19abc6f72865a0554f55..0000000000000000000000000000000000000000 --- a/swagger/api-database/swagger_client/models/api_error_dto.py +++ /dev/null @@ -1,171 +0,0 @@ -# coding: utf-8 - -""" - Database Repository Database Service API - - Service that manages the databases # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -import pprint -import re # noqa: F401 - -import six - -class ApiErrorDto(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'status': 'str', - 'message': 'str', - 'code': 'str' - } - - attribute_map = { - 'status': 'status', - 'message': 'message', - 'code': 'code' - } - - def __init__(self, status=None, message=None, code=None): # noqa: E501 - """ApiErrorDto - a model defined in Swagger""" # noqa: E501 - self._status = None - self._message = None - self._code = None - self.discriminator = None - self.status = status - self.message = message - self.code = code - - @property - def status(self): - """Gets the status of this ApiErrorDto. # noqa: E501 - - - :return: The status of this ApiErrorDto. # noqa: E501 - :rtype: str - """ - return self._status - - @status.setter - def status(self, status): - """Sets the status of this ApiErrorDto. - - - :param status: The status of this ApiErrorDto. # noqa: E501 - :type: str - """ - if status is None: - raise ValueError("Invalid value for `status`, must not be `None`") # noqa: E501 - allowed_values = ["100 CONTINUE", "101 SWITCHING_PROTOCOLS", "102 PROCESSING", "103 CHECKPOINT", "200 OK", "201 CREATED", "202 ACCEPTED", "203 NON_AUTHORITATIVE_INFORMATION", "204 NO_CONTENT", "205 RESET_CONTENT", "206 PARTIAL_CONTENT", "207 MULTI_STATUS", "208 ALREADY_REPORTED", "226 IM_USED", "300 MULTIPLE_CHOICES", "301 MOVED_PERMANENTLY", "302 FOUND", "302 MOVED_TEMPORARILY", "303 SEE_OTHER", "304 NOT_MODIFIED", "305 USE_PROXY", "307 TEMPORARY_REDIRECT", "308 PERMANENT_REDIRECT", "400 BAD_REQUEST", "401 UNAUTHORIZED", "402 PAYMENT_REQUIRED", "403 FORBIDDEN", "404 NOT_FOUND", "405 METHOD_NOT_ALLOWED", "406 NOT_ACCEPTABLE", "407 PROXY_AUTHENTICATION_REQUIRED", "408 REQUEST_TIMEOUT", "409 CONFLICT", "410 GONE", "411 LENGTH_REQUIRED", "412 PRECONDITION_FAILED", "413 PAYLOAD_TOO_LARGE", "413 REQUEST_ENTITY_TOO_LARGE", "414 URI_TOO_LONG", "414 REQUEST_URI_TOO_LONG", "415 UNSUPPORTED_MEDIA_TYPE", "416 REQUESTED_RANGE_NOT_SATISFIABLE", "417 EXPECTATION_FAILED", "418 I_AM_A_TEAPOT", "419 INSUFFICIENT_SPACE_ON_RESOURCE", "420 METHOD_FAILURE", "421 DESTINATION_LOCKED", "422 UNPROCESSABLE_ENTITY", "423 LOCKED", "424 FAILED_DEPENDENCY", "425 TOO_EARLY", "426 UPGRADE_REQUIRED", "428 PRECONDITION_REQUIRED", "429 TOO_MANY_REQUESTS", "431 REQUEST_HEADER_FIELDS_TOO_LARGE", "451 UNAVAILABLE_FOR_LEGAL_REASONS", "500 INTERNAL_SERVER_ERROR", "501 NOT_IMPLEMENTED", "502 BAD_GATEWAY", "503 SERVICE_UNAVAILABLE", "504 GATEWAY_TIMEOUT", "505 HTTP_VERSION_NOT_SUPPORTED", "506 VARIANT_ALSO_NEGOTIATES", "507 INSUFFICIENT_STORAGE", "508 LOOP_DETECTED", "509 BANDWIDTH_LIMIT_EXCEEDED", "510 NOT_EXTENDED", "511 NETWORK_AUTHENTICATION_REQUIRED"] # noqa: E501 - if status not in allowed_values: - raise ValueError( - "Invalid value for `status` ({0}), must be one of {1}" # noqa: E501 - .format(status, allowed_values) - ) - - self._status = status - - @property - def message(self): - """Gets the message of this ApiErrorDto. # noqa: E501 - - - :return: The message of this ApiErrorDto. # noqa: E501 - :rtype: str - """ - return self._message - - @message.setter - def message(self, message): - """Sets the message of this ApiErrorDto. - - - :param message: The message of this ApiErrorDto. # noqa: E501 - :type: str - """ - if message is None: - raise ValueError("Invalid value for `message`, must not be `None`") # noqa: E501 - - self._message = message - - @property - def code(self): - """Gets the code of this ApiErrorDto. # noqa: E501 - - - :return: The code of this ApiErrorDto. # noqa: E501 - :rtype: str - """ - return self._code - - @code.setter - def code(self, code): - """Sets the code of this ApiErrorDto. - - - :param code: The code of this ApiErrorDto. # noqa: E501 - :type: str - """ - if code is None: - raise ValueError("Invalid value for `code`, must not be `None`") # noqa: E501 - - self._code = code - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(ApiErrorDto, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, ApiErrorDto): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/swagger/api-database/swagger_client/models/column_dto.py b/swagger/api-database/swagger_client/models/column_dto.py deleted file mode 100644 index e4e7f842ad2e7e5730320c4eabed83aa17a09250..0000000000000000000000000000000000000000 --- a/swagger/api-database/swagger_client/models/column_dto.py +++ /dev/null @@ -1,514 +0,0 @@ -# coding: utf-8 - -""" - Database Repository Database Service API - - Service that manages the databases # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -import pprint -import re # noqa: F401 - -import six - -class ColumnDto(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'id': 'int', - 'name': 'str', - 'unique': 'bool', - 'references': 'str', - 'internal_name': 'str', - 'date_format': 'ImageDateDto', - 'auto_generated': 'bool', - 'is_primary_key': 'bool', - 'column_type': 'str', - 'column_concept': 'ConceptDto', - 'decimal_digits_before': 'int', - 'decimal_digits_after': 'int', - 'is_null_allowed': 'bool', - 'check_expression': 'str', - 'foreign_key': 'str', - 'enum_values': 'list[str]' - } - - attribute_map = { - 'id': 'id', - 'name': 'name', - 'unique': 'unique', - 'references': 'references', - 'internal_name': 'internal_name', - 'date_format': 'date_format', - 'auto_generated': 'auto_generated', - 'is_primary_key': 'is_primary_key', - 'column_type': 'column_type', - 'column_concept': 'column_concept', - 'decimal_digits_before': 'decimal_digits_before', - 'decimal_digits_after': 'decimal_digits_after', - 'is_null_allowed': 'is_null_allowed', - 'check_expression': 'check_expression', - 'foreign_key': 'foreign_key', - 'enum_values': 'enum_values' - } - - def __init__(self, id=None, name=None, unique=None, references=None, internal_name=None, date_format=None, auto_generated=None, is_primary_key=None, column_type=None, column_concept=None, decimal_digits_before=None, decimal_digits_after=None, is_null_allowed=None, check_expression=None, foreign_key=None, enum_values=None): # noqa: E501 - """ColumnDto - a model defined in Swagger""" # noqa: E501 - self._id = None - self._name = None - self._unique = None - self._references = None - self._internal_name = None - self._date_format = None - self._auto_generated = None - self._is_primary_key = None - self._column_type = None - self._column_concept = None - self._decimal_digits_before = None - self._decimal_digits_after = None - self._is_null_allowed = None - self._check_expression = None - self._foreign_key = None - self._enum_values = None - self.discriminator = None - self.id = id - self.name = name - self.unique = unique - if references is not None: - self.references = references - self.internal_name = internal_name - if date_format is not None: - self.date_format = date_format - self.auto_generated = auto_generated - self.is_primary_key = is_primary_key - self.column_type = column_type - if column_concept is not None: - self.column_concept = column_concept - if decimal_digits_before is not None: - self.decimal_digits_before = decimal_digits_before - if decimal_digits_after is not None: - self.decimal_digits_after = decimal_digits_after - self.is_null_allowed = is_null_allowed - if check_expression is not None: - self.check_expression = check_expression - if foreign_key is not None: - self.foreign_key = foreign_key - if enum_values is not None: - self.enum_values = enum_values - - @property - def id(self): - """Gets the id of this ColumnDto. # noqa: E501 - - - :return: The id of this ColumnDto. # noqa: E501 - :rtype: int - """ - return self._id - - @id.setter - def id(self, id): - """Sets the id of this ColumnDto. - - - :param id: The id of this ColumnDto. # noqa: E501 - :type: int - """ - if id is None: - raise ValueError("Invalid value for `id`, must not be `None`") # noqa: E501 - - self._id = id - - @property - def name(self): - """Gets the name of this ColumnDto. # noqa: E501 - - - :return: The name of this ColumnDto. # noqa: E501 - :rtype: str - """ - return self._name - - @name.setter - def name(self, name): - """Sets the name of this ColumnDto. - - - :param name: The name of this ColumnDto. # noqa: E501 - :type: str - """ - if name is None: - raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501 - - self._name = name - - @property - def unique(self): - """Gets the unique of this ColumnDto. # noqa: E501 - - - :return: The unique of this ColumnDto. # noqa: E501 - :rtype: bool - """ - return self._unique - - @unique.setter - def unique(self, unique): - """Sets the unique of this ColumnDto. - - - :param unique: The unique of this ColumnDto. # noqa: E501 - :type: bool - """ - if unique is None: - raise ValueError("Invalid value for `unique`, must not be `None`") # noqa: E501 - - self._unique = unique - - @property - def references(self): - """Gets the references of this ColumnDto. # noqa: E501 - - - :return: The references of this ColumnDto. # noqa: E501 - :rtype: str - """ - return self._references - - @references.setter - def references(self, references): - """Sets the references of this ColumnDto. - - - :param references: The references of this ColumnDto. # noqa: E501 - :type: str - """ - - self._references = references - - @property - def internal_name(self): - """Gets the internal_name of this ColumnDto. # noqa: E501 - - - :return: The internal_name of this ColumnDto. # noqa: E501 - :rtype: str - """ - return self._internal_name - - @internal_name.setter - def internal_name(self, internal_name): - """Sets the internal_name of this ColumnDto. - - - :param internal_name: The internal_name of this ColumnDto. # noqa: E501 - :type: str - """ - if internal_name is None: - raise ValueError("Invalid value for `internal_name`, must not be `None`") # noqa: E501 - - self._internal_name = internal_name - - @property - def date_format(self): - """Gets the date_format of this ColumnDto. # noqa: E501 - - - :return: The date_format of this ColumnDto. # noqa: E501 - :rtype: ImageDateDto - """ - return self._date_format - - @date_format.setter - def date_format(self, date_format): - """Sets the date_format of this ColumnDto. - - - :param date_format: The date_format of this ColumnDto. # noqa: E501 - :type: ImageDateDto - """ - - self._date_format = date_format - - @property - def auto_generated(self): - """Gets the auto_generated of this ColumnDto. # noqa: E501 - - - :return: The auto_generated of this ColumnDto. # noqa: E501 - :rtype: bool - """ - return self._auto_generated - - @auto_generated.setter - def auto_generated(self, auto_generated): - """Sets the auto_generated of this ColumnDto. - - - :param auto_generated: The auto_generated of this ColumnDto. # noqa: E501 - :type: bool - """ - if auto_generated is None: - raise ValueError("Invalid value for `auto_generated`, must not be `None`") # noqa: E501 - - self._auto_generated = auto_generated - - @property - def is_primary_key(self): - """Gets the is_primary_key of this ColumnDto. # noqa: E501 - - - :return: The is_primary_key of this ColumnDto. # noqa: E501 - :rtype: bool - """ - return self._is_primary_key - - @is_primary_key.setter - def is_primary_key(self, is_primary_key): - """Sets the is_primary_key of this ColumnDto. - - - :param is_primary_key: The is_primary_key of this ColumnDto. # noqa: E501 - :type: bool - """ - if is_primary_key is None: - raise ValueError("Invalid value for `is_primary_key`, must not be `None`") # noqa: E501 - - self._is_primary_key = is_primary_key - - @property - def column_type(self): - """Gets the column_type of this ColumnDto. # noqa: E501 - - - :return: The column_type of this ColumnDto. # noqa: E501 - :rtype: str - """ - return self._column_type - - @column_type.setter - def column_type(self, column_type): - """Sets the column_type of this ColumnDto. - - - :param column_type: The column_type of this ColumnDto. # noqa: E501 - :type: str - """ - if column_type is None: - raise ValueError("Invalid value for `column_type`, must not be `None`") # noqa: E501 - allowed_values = ["enum", "number", "decimal", "string", "text", "boolean", "date", "timestamp", "blob"] # noqa: E501 - if column_type not in allowed_values: - raise ValueError( - "Invalid value for `column_type` ({0}), must be one of {1}" # noqa: E501 - .format(column_type, allowed_values) - ) - - self._column_type = column_type - - @property - def column_concept(self): - """Gets the column_concept of this ColumnDto. # noqa: E501 - - - :return: The column_concept of this ColumnDto. # noqa: E501 - :rtype: ConceptDto - """ - return self._column_concept - - @column_concept.setter - def column_concept(self, column_concept): - """Sets the column_concept of this ColumnDto. - - - :param column_concept: The column_concept of this ColumnDto. # noqa: E501 - :type: ConceptDto - """ - - self._column_concept = column_concept - - @property - def decimal_digits_before(self): - """Gets the decimal_digits_before of this ColumnDto. # noqa: E501 - - - :return: The decimal_digits_before of this ColumnDto. # noqa: E501 - :rtype: int - """ - return self._decimal_digits_before - - @decimal_digits_before.setter - def decimal_digits_before(self, decimal_digits_before): - """Sets the decimal_digits_before of this ColumnDto. - - - :param decimal_digits_before: The decimal_digits_before of this ColumnDto. # noqa: E501 - :type: int - """ - - self._decimal_digits_before = decimal_digits_before - - @property - def decimal_digits_after(self): - """Gets the decimal_digits_after of this ColumnDto. # noqa: E501 - - - :return: The decimal_digits_after of this ColumnDto. # noqa: E501 - :rtype: int - """ - return self._decimal_digits_after - - @decimal_digits_after.setter - def decimal_digits_after(self, decimal_digits_after): - """Sets the decimal_digits_after of this ColumnDto. - - - :param decimal_digits_after: The decimal_digits_after of this ColumnDto. # noqa: E501 - :type: int - """ - - self._decimal_digits_after = decimal_digits_after - - @property - def is_null_allowed(self): - """Gets the is_null_allowed of this ColumnDto. # noqa: E501 - - - :return: The is_null_allowed of this ColumnDto. # noqa: E501 - :rtype: bool - """ - return self._is_null_allowed - - @is_null_allowed.setter - def is_null_allowed(self, is_null_allowed): - """Sets the is_null_allowed of this ColumnDto. - - - :param is_null_allowed: The is_null_allowed of this ColumnDto. # noqa: E501 - :type: bool - """ - if is_null_allowed is None: - raise ValueError("Invalid value for `is_null_allowed`, must not be `None`") # noqa: E501 - - self._is_null_allowed = is_null_allowed - - @property - def check_expression(self): - """Gets the check_expression of this ColumnDto. # noqa: E501 - - - :return: The check_expression of this ColumnDto. # noqa: E501 - :rtype: str - """ - return self._check_expression - - @check_expression.setter - def check_expression(self, check_expression): - """Sets the check_expression of this ColumnDto. - - - :param check_expression: The check_expression of this ColumnDto. # noqa: E501 - :type: str - """ - - self._check_expression = check_expression - - @property - def foreign_key(self): - """Gets the foreign_key of this ColumnDto. # noqa: E501 - - - :return: The foreign_key of this ColumnDto. # noqa: E501 - :rtype: str - """ - return self._foreign_key - - @foreign_key.setter - def foreign_key(self, foreign_key): - """Sets the foreign_key of this ColumnDto. - - - :param foreign_key: The foreign_key of this ColumnDto. # noqa: E501 - :type: str - """ - - self._foreign_key = foreign_key - - @property - def enum_values(self): - """Gets the enum_values of this ColumnDto. # noqa: E501 - - - :return: The enum_values of this ColumnDto. # noqa: E501 - :rtype: list[str] - """ - return self._enum_values - - @enum_values.setter - def enum_values(self, enum_values): - """Sets the enum_values of this ColumnDto. - - - :param enum_values: The enum_values of this ColumnDto. # noqa: E501 - :type: list[str] - """ - - self._enum_values = enum_values - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(ColumnDto, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, ColumnDto): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/swagger/api-database/swagger_client/models/concept_dto.py b/swagger/api-database/swagger_client/models/concept_dto.py deleted file mode 100644 index a2d5b742904608ce6b17b290a9e0b38bb4164ae7..0000000000000000000000000000000000000000 --- a/swagger/api-database/swagger_client/models/concept_dto.py +++ /dev/null @@ -1,165 +0,0 @@ -# coding: utf-8 - -""" - Database Repository Database Service API - - Service that manages the databases # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -import pprint -import re # noqa: F401 - -import six - -class ConceptDto(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'uri': 'str', - 'name': 'str', - 'created': 'datetime' - } - - attribute_map = { - 'uri': 'uri', - 'name': 'name', - 'created': 'created' - } - - def __init__(self, uri=None, name=None, created=None): # noqa: E501 - """ConceptDto - a model defined in Swagger""" # noqa: E501 - self._uri = None - self._name = None - self._created = None - self.discriminator = None - self.uri = uri - self.name = name - self.created = created - - @property - def uri(self): - """Gets the uri of this ConceptDto. # noqa: E501 - - - :return: The uri of this ConceptDto. # noqa: E501 - :rtype: str - """ - return self._uri - - @uri.setter - def uri(self, uri): - """Sets the uri of this ConceptDto. - - - :param uri: The uri of this ConceptDto. # noqa: E501 - :type: str - """ - if uri is None: - raise ValueError("Invalid value for `uri`, must not be `None`") # noqa: E501 - - self._uri = uri - - @property - def name(self): - """Gets the name of this ConceptDto. # noqa: E501 - - - :return: The name of this ConceptDto. # noqa: E501 - :rtype: str - """ - return self._name - - @name.setter - def name(self, name): - """Sets the name of this ConceptDto. - - - :param name: The name of this ConceptDto. # noqa: E501 - :type: str - """ - if name is None: - raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501 - - self._name = name - - @property - def created(self): - """Gets the created of this ConceptDto. # noqa: E501 - - - :return: The created of this ConceptDto. # noqa: E501 - :rtype: datetime - """ - return self._created - - @created.setter - def created(self, created): - """Sets the created of this ConceptDto. - - - :param created: The created of this ConceptDto. # noqa: E501 - :type: datetime - """ - if created is None: - raise ValueError("Invalid value for `created`, must not be `None`") # noqa: E501 - - self._created = created - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(ConceptDto, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, ConceptDto): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/swagger/api-database/swagger_client/models/container_brief_dto.py b/swagger/api-database/swagger_client/models/container_brief_dto.py deleted file mode 100644 index 9ef9e28e3cd2d7733448f381947995b5d7a80b69..0000000000000000000000000000000000000000 --- a/swagger/api-database/swagger_client/models/container_brief_dto.py +++ /dev/null @@ -1,244 +0,0 @@ -# coding: utf-8 - -""" - Database Repository Database Service API - - Service that manages the databases # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -import pprint -import re # noqa: F401 - -import six - -class ContainerBriefDto(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'id': 'int', - 'hash': 'str', - 'name': 'str', - 'creator': 'UserBriefDto', - 'created': 'datetime', - 'internal_name': 'str' - } - - attribute_map = { - 'id': 'id', - 'hash': 'hash', - 'name': 'name', - 'creator': 'creator', - 'created': 'created', - 'internal_name': 'internal_name' - } - - def __init__(self, id=None, hash=None, name=None, creator=None, created=None, internal_name=None): # noqa: E501 - """ContainerBriefDto - a model defined in Swagger""" # noqa: E501 - self._id = None - self._hash = None - self._name = None - self._creator = None - self._created = None - self._internal_name = None - self.discriminator = None - self.id = id - self.hash = hash - self.name = name - if creator is not None: - self.creator = creator - if created is not None: - self.created = created - self.internal_name = internal_name - - @property - def id(self): - """Gets the id of this ContainerBriefDto. # noqa: E501 - - - :return: The id of this ContainerBriefDto. # noqa: E501 - :rtype: int - """ - return self._id - - @id.setter - def id(self, id): - """Sets the id of this ContainerBriefDto. - - - :param id: The id of this ContainerBriefDto. # noqa: E501 - :type: int - """ - if id is None: - raise ValueError("Invalid value for `id`, must not be `None`") # noqa: E501 - - self._id = id - - @property - def hash(self): - """Gets the hash of this ContainerBriefDto. # noqa: E501 - - - :return: The hash of this ContainerBriefDto. # noqa: E501 - :rtype: str - """ - return self._hash - - @hash.setter - def hash(self, hash): - """Sets the hash of this ContainerBriefDto. - - - :param hash: The hash of this ContainerBriefDto. # noqa: E501 - :type: str - """ - if hash is None: - raise ValueError("Invalid value for `hash`, must not be `None`") # noqa: E501 - - self._hash = hash - - @property - def name(self): - """Gets the name of this ContainerBriefDto. # noqa: E501 - - - :return: The name of this ContainerBriefDto. # noqa: E501 - :rtype: str - """ - return self._name - - @name.setter - def name(self, name): - """Sets the name of this ContainerBriefDto. - - - :param name: The name of this ContainerBriefDto. # noqa: E501 - :type: str - """ - if name is None: - raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501 - - self._name = name - - @property - def creator(self): - """Gets the creator of this ContainerBriefDto. # noqa: E501 - - - :return: The creator of this ContainerBriefDto. # noqa: E501 - :rtype: UserBriefDto - """ - return self._creator - - @creator.setter - def creator(self, creator): - """Sets the creator of this ContainerBriefDto. - - - :param creator: The creator of this ContainerBriefDto. # noqa: E501 - :type: UserBriefDto - """ - - self._creator = creator - - @property - def created(self): - """Gets the created of this ContainerBriefDto. # noqa: E501 - - - :return: The created of this ContainerBriefDto. # noqa: E501 - :rtype: datetime - """ - return self._created - - @created.setter - def created(self, created): - """Sets the created of this ContainerBriefDto. - - - :param created: The created of this ContainerBriefDto. # noqa: E501 - :type: datetime - """ - - self._created = created - - @property - def internal_name(self): - """Gets the internal_name of this ContainerBriefDto. # noqa: E501 - - - :return: The internal_name of this ContainerBriefDto. # noqa: E501 - :rtype: str - """ - return self._internal_name - - @internal_name.setter - def internal_name(self, internal_name): - """Sets the internal_name of this ContainerBriefDto. - - - :param internal_name: The internal_name of this ContainerBriefDto. # noqa: E501 - :type: str - """ - if internal_name is None: - raise ValueError("Invalid value for `internal_name`, must not be `None`") # noqa: E501 - - self._internal_name = internal_name - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(ContainerBriefDto, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, ContainerBriefDto): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/swagger/api-database/swagger_client/models/container_dto.py b/swagger/api-database/swagger_client/models/container_dto.py deleted file mode 100644 index 1ab9e4195efa179e64077d6c9a8e62938cd10c24..0000000000000000000000000000000000000000 --- a/swagger/api-database/swagger_client/models/container_dto.py +++ /dev/null @@ -1,355 +0,0 @@ -# coding: utf-8 - -""" - Database Repository Database Service API - - Service that manages the databases # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -import pprint -import re # noqa: F401 - -import six - -class ContainerDto(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'id': 'int', - 'hash': 'str', - 'name': 'str', - 'state': 'str', - 'databases': 'list[DatabaseDto]', - 'image': 'ImageBriefDto', - 'port': 'int', - 'created': 'datetime', - 'internal_name': 'str', - 'ip_address': 'str' - } - - attribute_map = { - 'id': 'id', - 'hash': 'hash', - 'name': 'name', - 'state': 'state', - 'databases': 'databases', - 'image': 'image', - 'port': 'port', - 'created': 'created', - 'internal_name': 'internal_name', - 'ip_address': 'ip_address' - } - - def __init__(self, id=None, hash=None, name=None, state=None, databases=None, image=None, port=None, created=None, internal_name=None, ip_address=None): # noqa: E501 - """ContainerDto - a model defined in Swagger""" # noqa: E501 - self._id = None - self._hash = None - self._name = None - self._state = None - self._databases = None - self._image = None - self._port = None - self._created = None - self._internal_name = None - self._ip_address = None - self.discriminator = None - self.id = id - self.hash = hash - self.name = name - if state is not None: - self.state = state - if databases is not None: - self.databases = databases - if image is not None: - self.image = image - if port is not None: - self.port = port - self.created = created - self.internal_name = internal_name - if ip_address is not None: - self.ip_address = ip_address - - @property - def id(self): - """Gets the id of this ContainerDto. # noqa: E501 - - - :return: The id of this ContainerDto. # noqa: E501 - :rtype: int - """ - return self._id - - @id.setter - def id(self, id): - """Sets the id of this ContainerDto. - - - :param id: The id of this ContainerDto. # noqa: E501 - :type: int - """ - if id is None: - raise ValueError("Invalid value for `id`, must not be `None`") # noqa: E501 - - self._id = id - - @property - def hash(self): - """Gets the hash of this ContainerDto. # noqa: E501 - - - :return: The hash of this ContainerDto. # noqa: E501 - :rtype: str - """ - return self._hash - - @hash.setter - def hash(self, hash): - """Sets the hash of this ContainerDto. - - - :param hash: The hash of this ContainerDto. # noqa: E501 - :type: str - """ - if hash is None: - raise ValueError("Invalid value for `hash`, must not be `None`") # noqa: E501 - - self._hash = hash - - @property - def name(self): - """Gets the name of this ContainerDto. # noqa: E501 - - - :return: The name of this ContainerDto. # noqa: E501 - :rtype: str - """ - return self._name - - @name.setter - def name(self, name): - """Sets the name of this ContainerDto. - - - :param name: The name of this ContainerDto. # noqa: E501 - :type: str - """ - if name is None: - raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501 - - self._name = name - - @property - def state(self): - """Gets the state of this ContainerDto. # noqa: E501 - - - :return: The state of this ContainerDto. # noqa: E501 - :rtype: str - """ - return self._state - - @state.setter - def state(self, state): - """Sets the state of this ContainerDto. - - - :param state: The state of this ContainerDto. # noqa: E501 - :type: str - """ - allowed_values = ["created", "restarting", "running", "paused", "exited", "dead"] # noqa: E501 - if state not in allowed_values: - raise ValueError( - "Invalid value for `state` ({0}), must be one of {1}" # noqa: E501 - .format(state, allowed_values) - ) - - self._state = state - - @property - def databases(self): - """Gets the databases of this ContainerDto. # noqa: E501 - - - :return: The databases of this ContainerDto. # noqa: E501 - :rtype: list[DatabaseDto] - """ - return self._databases - - @databases.setter - def databases(self, databases): - """Sets the databases of this ContainerDto. - - - :param databases: The databases of this ContainerDto. # noqa: E501 - :type: list[DatabaseDto] - """ - - self._databases = databases - - @property - def image(self): - """Gets the image of this ContainerDto. # noqa: E501 - - - :return: The image of this ContainerDto. # noqa: E501 - :rtype: ImageBriefDto - """ - return self._image - - @image.setter - def image(self, image): - """Sets the image of this ContainerDto. - - - :param image: The image of this ContainerDto. # noqa: E501 - :type: ImageBriefDto - """ - - self._image = image - - @property - def port(self): - """Gets the port of this ContainerDto. # noqa: E501 - - - :return: The port of this ContainerDto. # noqa: E501 - :rtype: int - """ - return self._port - - @port.setter - def port(self, port): - """Sets the port of this ContainerDto. - - - :param port: The port of this ContainerDto. # noqa: E501 - :type: int - """ - - self._port = port - - @property - def created(self): - """Gets the created of this ContainerDto. # noqa: E501 - - - :return: The created of this ContainerDto. # noqa: E501 - :rtype: datetime - """ - return self._created - - @created.setter - def created(self, created): - """Sets the created of this ContainerDto. - - - :param created: The created of this ContainerDto. # noqa: E501 - :type: datetime - """ - if created is None: - raise ValueError("Invalid value for `created`, must not be `None`") # noqa: E501 - - self._created = created - - @property - def internal_name(self): - """Gets the internal_name of this ContainerDto. # noqa: E501 - - - :return: The internal_name of this ContainerDto. # noqa: E501 - :rtype: str - """ - return self._internal_name - - @internal_name.setter - def internal_name(self, internal_name): - """Sets the internal_name of this ContainerDto. - - - :param internal_name: The internal_name of this ContainerDto. # noqa: E501 - :type: str - """ - if internal_name is None: - raise ValueError("Invalid value for `internal_name`, must not be `None`") # noqa: E501 - - self._internal_name = internal_name - - @property - def ip_address(self): - """Gets the ip_address of this ContainerDto. # noqa: E501 - - - :return: The ip_address of this ContainerDto. # noqa: E501 - :rtype: str - """ - return self._ip_address - - @ip_address.setter - def ip_address(self, ip_address): - """Sets the ip_address of this ContainerDto. - - - :param ip_address: The ip_address of this ContainerDto. # noqa: E501 - :type: str - """ - - self._ip_address = ip_address - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(ContainerDto, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, ContainerDto): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/swagger/api-database/swagger_client/models/database_brief_dto.py b/swagger/api-database/swagger_client/models/database_brief_dto.py deleted file mode 100644 index bf325afda796e5f97d25a0459deba58fefdbad9b..0000000000000000000000000000000000000000 --- a/swagger/api-database/swagger_client/models/database_brief_dto.py +++ /dev/null @@ -1,294 +0,0 @@ -# coding: utf-8 - -""" - Database Repository Database Service API - - Service that manages the databases # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -import pprint -import re # noqa: F401 - -import six - -class DatabaseBriefDto(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'id': 'int', - 'name': 'str', - 'description': 'str', - 'engine': 'str', - 'container': 'ContainerBriefDto', - 'creator': 'UserBriefDto', - 'created': 'datetime', - 'is_public': 'bool' - } - - attribute_map = { - 'id': 'id', - 'name': 'name', - 'description': 'description', - 'engine': 'engine', - 'container': 'container', - 'creator': 'creator', - 'created': 'created', - 'is_public': 'is_public' - } - - def __init__(self, id=None, name=None, description=None, engine=None, container=None, creator=None, created=None, is_public=None): # noqa: E501 - """DatabaseBriefDto - a model defined in Swagger""" # noqa: E501 - self._id = None - self._name = None - self._description = None - self._engine = None - self._container = None - self._creator = None - self._created = None - self._is_public = None - self.discriminator = None - self.id = id - self.name = name - if description is not None: - self.description = description - if engine is not None: - self.engine = engine - if container is not None: - self.container = container - if creator is not None: - self.creator = creator - if created is not None: - self.created = created - if is_public is not None: - self.is_public = is_public - - @property - def id(self): - """Gets the id of this DatabaseBriefDto. # noqa: E501 - - - :return: The id of this DatabaseBriefDto. # noqa: E501 - :rtype: int - """ - return self._id - - @id.setter - def id(self, id): - """Sets the id of this DatabaseBriefDto. - - - :param id: The id of this DatabaseBriefDto. # noqa: E501 - :type: int - """ - if id is None: - raise ValueError("Invalid value for `id`, must not be `None`") # noqa: E501 - - self._id = id - - @property - def name(self): - """Gets the name of this DatabaseBriefDto. # noqa: E501 - - - :return: The name of this DatabaseBriefDto. # noqa: E501 - :rtype: str - """ - return self._name - - @name.setter - def name(self, name): - """Sets the name of this DatabaseBriefDto. - - - :param name: The name of this DatabaseBriefDto. # noqa: E501 - :type: str - """ - if name is None: - raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501 - - self._name = name - - @property - def description(self): - """Gets the description of this DatabaseBriefDto. # noqa: E501 - - - :return: The description of this DatabaseBriefDto. # noqa: E501 - :rtype: str - """ - return self._description - - @description.setter - def description(self, description): - """Sets the description of this DatabaseBriefDto. - - - :param description: The description of this DatabaseBriefDto. # noqa: E501 - :type: str - """ - - self._description = description - - @property - def engine(self): - """Gets the engine of this DatabaseBriefDto. # noqa: E501 - - - :return: The engine of this DatabaseBriefDto. # noqa: E501 - :rtype: str - """ - return self._engine - - @engine.setter - def engine(self, engine): - """Sets the engine of this DatabaseBriefDto. - - - :param engine: The engine of this DatabaseBriefDto. # noqa: E501 - :type: str - """ - - self._engine = engine - - @property - def container(self): - """Gets the container of this DatabaseBriefDto. # noqa: E501 - - - :return: The container of this DatabaseBriefDto. # noqa: E501 - :rtype: ContainerBriefDto - """ - return self._container - - @container.setter - def container(self, container): - """Sets the container of this DatabaseBriefDto. - - - :param container: The container of this DatabaseBriefDto. # noqa: E501 - :type: ContainerBriefDto - """ - - self._container = container - - @property - def creator(self): - """Gets the creator of this DatabaseBriefDto. # noqa: E501 - - - :return: The creator of this DatabaseBriefDto. # noqa: E501 - :rtype: UserBriefDto - """ - return self._creator - - @creator.setter - def creator(self, creator): - """Sets the creator of this DatabaseBriefDto. - - - :param creator: The creator of this DatabaseBriefDto. # noqa: E501 - :type: UserBriefDto - """ - - self._creator = creator - - @property - def created(self): - """Gets the created of this DatabaseBriefDto. # noqa: E501 - - - :return: The created of this DatabaseBriefDto. # noqa: E501 - :rtype: datetime - """ - return self._created - - @created.setter - def created(self, created): - """Sets the created of this DatabaseBriefDto. - - - :param created: The created of this DatabaseBriefDto. # noqa: E501 - :type: datetime - """ - - self._created = created - - @property - def is_public(self): - """Gets the is_public of this DatabaseBriefDto. # noqa: E501 - - - :return: The is_public of this DatabaseBriefDto. # noqa: E501 - :rtype: bool - """ - return self._is_public - - @is_public.setter - def is_public(self, is_public): - """Sets the is_public of this DatabaseBriefDto. - - - :param is_public: The is_public of this DatabaseBriefDto. # noqa: E501 - :type: bool - """ - - self._is_public = is_public - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(DatabaseBriefDto, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, DatabaseBriefDto): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/swagger/api-database/swagger_client/models/database_create_dto.py b/swagger/api-database/swagger_client/models/database_create_dto.py deleted file mode 100644 index abf98982263f239fb5eb2dbe828b874b5e6ef44a..0000000000000000000000000000000000000000 --- a/swagger/api-database/swagger_client/models/database_create_dto.py +++ /dev/null @@ -1,138 +0,0 @@ -# coding: utf-8 - -""" - Database Repository Database Service API - - Service that manages the databases # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -import pprint -import re # noqa: F401 - -import six - -class DatabaseCreateDto(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'name': 'str', - 'is_public': 'bool' - } - - attribute_map = { - 'name': 'name', - 'is_public': 'is_public' - } - - def __init__(self, name=None, is_public=None): # noqa: E501 - """DatabaseCreateDto - a model defined in Swagger""" # noqa: E501 - self._name = None - self._is_public = None - self.discriminator = None - self.name = name - self.is_public = is_public - - @property - def name(self): - """Gets the name of this DatabaseCreateDto. # noqa: E501 - - - :return: The name of this DatabaseCreateDto. # noqa: E501 - :rtype: str - """ - return self._name - - @name.setter - def name(self, name): - """Sets the name of this DatabaseCreateDto. - - - :param name: The name of this DatabaseCreateDto. # noqa: E501 - :type: str - """ - if name is None: - raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501 - - self._name = name - - @property - def is_public(self): - """Gets the is_public of this DatabaseCreateDto. # noqa: E501 - - - :return: The is_public of this DatabaseCreateDto. # noqa: E501 - :rtype: bool - """ - return self._is_public - - @is_public.setter - def is_public(self, is_public): - """Sets the is_public of this DatabaseCreateDto. - - - :param is_public: The is_public of this DatabaseCreateDto. # noqa: E501 - :type: bool - """ - if is_public is None: - raise ValueError("Invalid value for `is_public`, must not be `None`") # noqa: E501 - - self._is_public = is_public - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(DatabaseCreateDto, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, DatabaseCreateDto): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/swagger/api-database/swagger_client/models/database_dto.py b/swagger/api-database/swagger_client/models/database_dto.py deleted file mode 100644 index a9abee5127956007bff7f1388a5384627a74cead..0000000000000000000000000000000000000000 --- a/swagger/api-database/swagger_client/models/database_dto.py +++ /dev/null @@ -1,625 +0,0 @@ -# coding: utf-8 - -""" - Database Repository Database Service API - - Service that manages the databases # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -import pprint -import re # noqa: F401 - -import six - -class DatabaseDto(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'id': 'int', - 'name': 'str', - 'exchange': 'str', - 'creator': 'UserBriefDto', - 'subjects': 'list[str]', - 'language': 'str', - 'license': 'LicenseDto', - 'description': 'str', - 'publisher': 'str', - 'contact': 'UserDto', - 'tables': 'list[TableBriefDto]', - 'image': 'ImageDto', - 'container': 'ContainerDto', - 'created': 'datetime', - 'deleted': 'datetime', - 'internal_name': 'str', - 'publication_year': 'int', - 'publication_month': 'int', - 'publication_day': 'int', - 'is_public': 'bool' - } - - attribute_map = { - 'id': 'id', - 'name': 'name', - 'exchange': 'exchange', - 'creator': 'creator', - 'subjects': 'subjects', - 'language': 'language', - 'license': 'license', - 'description': 'description', - 'publisher': 'publisher', - 'contact': 'contact', - 'tables': 'tables', - 'image': 'image', - 'container': 'container', - 'created': 'created', - 'deleted': 'deleted', - 'internal_name': 'internal_name', - 'publication_year': 'publication_year', - 'publication_month': 'publication_month', - 'publication_day': 'publication_day', - 'is_public': 'is_public' - } - - def __init__(self, id=None, name=None, exchange=None, creator=None, subjects=None, language=None, license=None, description=None, publisher=None, contact=None, tables=None, image=None, container=None, created=None, deleted=None, internal_name=None, publication_year=None, publication_month=None, publication_day=None, is_public=None): # noqa: E501 - """DatabaseDto - a model defined in Swagger""" # noqa: E501 - self._id = None - self._name = None - self._exchange = None - self._creator = None - self._subjects = None - self._language = None - self._license = None - self._description = None - self._publisher = None - self._contact = None - self._tables = None - self._image = None - self._container = None - self._created = None - self._deleted = None - self._internal_name = None - self._publication_year = None - self._publication_month = None - self._publication_day = None - self._is_public = None - self.discriminator = None - self.id = id - self.name = name - self.exchange = exchange - self.creator = creator - if subjects is not None: - self.subjects = subjects - if language is not None: - self.language = language - if license is not None: - self.license = license - if description is not None: - self.description = description - if publisher is not None: - self.publisher = publisher - if contact is not None: - self.contact = contact - if tables is not None: - self.tables = tables - if image is not None: - self.image = image - if container is not None: - self.container = container - if created is not None: - self.created = created - if deleted is not None: - self.deleted = deleted - self.internal_name = internal_name - if publication_year is not None: - self.publication_year = publication_year - if publication_month is not None: - self.publication_month = publication_month - if publication_day is not None: - self.publication_day = publication_day - if is_public is not None: - self.is_public = is_public - - @property - def id(self): - """Gets the id of this DatabaseDto. # noqa: E501 - - - :return: The id of this DatabaseDto. # noqa: E501 - :rtype: int - """ - return self._id - - @id.setter - def id(self, id): - """Sets the id of this DatabaseDto. - - - :param id: The id of this DatabaseDto. # noqa: E501 - :type: int - """ - if id is None: - raise ValueError("Invalid value for `id`, must not be `None`") # noqa: E501 - - self._id = id - - @property - def name(self): - """Gets the name of this DatabaseDto. # noqa: E501 - - - :return: The name of this DatabaseDto. # noqa: E501 - :rtype: str - """ - return self._name - - @name.setter - def name(self, name): - """Sets the name of this DatabaseDto. - - - :param name: The name of this DatabaseDto. # noqa: E501 - :type: str - """ - if name is None: - raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501 - - self._name = name - - @property - def exchange(self): - """Gets the exchange of this DatabaseDto. # noqa: E501 - - - :return: The exchange of this DatabaseDto. # noqa: E501 - :rtype: str - """ - return self._exchange - - @exchange.setter - def exchange(self, exchange): - """Sets the exchange of this DatabaseDto. - - - :param exchange: The exchange of this DatabaseDto. # noqa: E501 - :type: str - """ - if exchange is None: - raise ValueError("Invalid value for `exchange`, must not be `None`") # noqa: E501 - - self._exchange = exchange - - @property - def creator(self): - """Gets the creator of this DatabaseDto. # noqa: E501 - - - :return: The creator of this DatabaseDto. # noqa: E501 - :rtype: UserBriefDto - """ - return self._creator - - @creator.setter - def creator(self, creator): - """Sets the creator of this DatabaseDto. - - - :param creator: The creator of this DatabaseDto. # noqa: E501 - :type: UserBriefDto - """ - if creator is None: - raise ValueError("Invalid value for `creator`, must not be `None`") # noqa: E501 - - self._creator = creator - - @property - def subjects(self): - """Gets the subjects of this DatabaseDto. # noqa: E501 - - database subjects # noqa: E501 - - :return: The subjects of this DatabaseDto. # noqa: E501 - :rtype: list[str] - """ - return self._subjects - - @subjects.setter - def subjects(self, subjects): - """Sets the subjects of this DatabaseDto. - - database subjects # noqa: E501 - - :param subjects: The subjects of this DatabaseDto. # noqa: E501 - :type: list[str] - """ - - self._subjects = subjects - - @property - def language(self): - """Gets the language of this DatabaseDto. # noqa: E501 - - - :return: The language of this DatabaseDto. # noqa: E501 - :rtype: str - """ - return self._language - - @language.setter - def language(self, language): - """Sets the language of this DatabaseDto. - - - :param language: The language of this DatabaseDto. # noqa: E501 - :type: str - """ - allowed_values = ["ab", "aa", "af", "ak", "sq", "am", "ar", "an", "hy", "as", "av", "ae", "ay", "az", "bm", "ba", "eu", "be", "bn", "bh", "bi", "bs", "br", "bg", "my", "ca", "km", "ch", "ce", "ny", "zh", "cu", "cv", "kw", "co", "cr", "hr", "cs", "da", "dv", "nl", "dz", "en", "eo", "et", "ee", "fo", "fj", "fi", "fr", "ff", "gd", "gl", "lg", "ka", "de", "ki", "el", "kl", "gn", "gu", "ht", "ha", "he", "hz", "hi", "ho", "hu", "is", "io", "ig", "id", "ia", "ie", "iu", "ik", "ga", "it", "ja", "jv", "kn", "kr", "ks", "kk", "rw", "kv", "kg", "ko", "kj", "ku", "ky", "lo", "la", "lv", "lb", "li", "ln", "lt", "lu", "mk", "mg", "ms", "ml", "mt", "gv", "mi", "mr", "mh", "ro", "mn", "na", "nv", "nd", "ng", "ne", "se", "no", "nb", "nn", "ii", "oc", "oj", "or", "om", "os", "pi", "pa", "ps", "fa", "pl", "pt", "qu", "rm", "rn", "ru", "sm", "sg", "sa", "sc", "sr", "sn", "sd", "si", "sk", "sl", "so", "st", "nr", "es", "su", "sw", "ss", "sv", "tl", "ty", "tg", "ta", "tt", "te", "th", "bo", "ti", "to", "ts", "tn", "tr", "tk", "tw", "ug", "uk", "ur", "uz", "ve", "vi", "vo", "wa", "cy", "fy", "wo", "xh", "yi", "yo", "za", "zu"] # noqa: E501 - if language not in allowed_values: - raise ValueError( - "Invalid value for `language` ({0}), must be one of {1}" # noqa: E501 - .format(language, allowed_values) - ) - - self._language = language - - @property - def license(self): - """Gets the license of this DatabaseDto. # noqa: E501 - - - :return: The license of this DatabaseDto. # noqa: E501 - :rtype: LicenseDto - """ - return self._license - - @license.setter - def license(self, license): - """Sets the license of this DatabaseDto. - - - :param license: The license of this DatabaseDto. # noqa: E501 - :type: LicenseDto - """ - - self._license = license - - @property - def description(self): - """Gets the description of this DatabaseDto. # noqa: E501 - - - :return: The description of this DatabaseDto. # noqa: E501 - :rtype: str - """ - return self._description - - @description.setter - def description(self, description): - """Sets the description of this DatabaseDto. - - - :param description: The description of this DatabaseDto. # noqa: E501 - :type: str - """ - - self._description = description - - @property - def publisher(self): - """Gets the publisher of this DatabaseDto. # noqa: E501 - - - :return: The publisher of this DatabaseDto. # noqa: E501 - :rtype: str - """ - return self._publisher - - @publisher.setter - def publisher(self, publisher): - """Sets the publisher of this DatabaseDto. - - - :param publisher: The publisher of this DatabaseDto. # noqa: E501 - :type: str - """ - - self._publisher = publisher - - @property - def contact(self): - """Gets the contact of this DatabaseDto. # noqa: E501 - - - :return: The contact of this DatabaseDto. # noqa: E501 - :rtype: UserDto - """ - return self._contact - - @contact.setter - def contact(self, contact): - """Sets the contact of this DatabaseDto. - - - :param contact: The contact of this DatabaseDto. # noqa: E501 - :type: UserDto - """ - - self._contact = contact - - @property - def tables(self): - """Gets the tables of this DatabaseDto. # noqa: E501 - - - :return: The tables of this DatabaseDto. # noqa: E501 - :rtype: list[TableBriefDto] - """ - return self._tables - - @tables.setter - def tables(self, tables): - """Sets the tables of this DatabaseDto. - - - :param tables: The tables of this DatabaseDto. # noqa: E501 - :type: list[TableBriefDto] - """ - - self._tables = tables - - @property - def image(self): - """Gets the image of this DatabaseDto. # noqa: E501 - - - :return: The image of this DatabaseDto. # noqa: E501 - :rtype: ImageDto - """ - return self._image - - @image.setter - def image(self, image): - """Sets the image of this DatabaseDto. - - - :param image: The image of this DatabaseDto. # noqa: E501 - :type: ImageDto - """ - - self._image = image - - @property - def container(self): - """Gets the container of this DatabaseDto. # noqa: E501 - - - :return: The container of this DatabaseDto. # noqa: E501 - :rtype: ContainerDto - """ - return self._container - - @container.setter - def container(self, container): - """Sets the container of this DatabaseDto. - - - :param container: The container of this DatabaseDto. # noqa: E501 - :type: ContainerDto - """ - - self._container = container - - @property - def created(self): - """Gets the created of this DatabaseDto. # noqa: E501 - - - :return: The created of this DatabaseDto. # noqa: E501 - :rtype: datetime - """ - return self._created - - @created.setter - def created(self, created): - """Sets the created of this DatabaseDto. - - - :param created: The created of this DatabaseDto. # noqa: E501 - :type: datetime - """ - - self._created = created - - @property - def deleted(self): - """Gets the deleted of this DatabaseDto. # noqa: E501 - - - :return: The deleted of this DatabaseDto. # noqa: E501 - :rtype: datetime - """ - return self._deleted - - @deleted.setter - def deleted(self, deleted): - """Sets the deleted of this DatabaseDto. - - - :param deleted: The deleted of this DatabaseDto. # noqa: E501 - :type: datetime - """ - - self._deleted = deleted - - @property - def internal_name(self): - """Gets the internal_name of this DatabaseDto. # noqa: E501 - - - :return: The internal_name of this DatabaseDto. # noqa: E501 - :rtype: str - """ - return self._internal_name - - @internal_name.setter - def internal_name(self, internal_name): - """Sets the internal_name of this DatabaseDto. - - - :param internal_name: The internal_name of this DatabaseDto. # noqa: E501 - :type: str - """ - if internal_name is None: - raise ValueError("Invalid value for `internal_name`, must not be `None`") # noqa: E501 - - self._internal_name = internal_name - - @property - def publication_year(self): - """Gets the publication_year of this DatabaseDto. # noqa: E501 - - database publication year # noqa: E501 - - :return: The publication_year of this DatabaseDto. # noqa: E501 - :rtype: int - """ - return self._publication_year - - @publication_year.setter - def publication_year(self, publication_year): - """Sets the publication_year of this DatabaseDto. - - database publication year # noqa: E501 - - :param publication_year: The publication_year of this DatabaseDto. # noqa: E501 - :type: int - """ - - self._publication_year = publication_year - - @property - def publication_month(self): - """Gets the publication_month of this DatabaseDto. # noqa: E501 - - database publication month # noqa: E501 - - :return: The publication_month of this DatabaseDto. # noqa: E501 - :rtype: int - """ - return self._publication_month - - @publication_month.setter - def publication_month(self, publication_month): - """Sets the publication_month of this DatabaseDto. - - database publication month # noqa: E501 - - :param publication_month: The publication_month of this DatabaseDto. # noqa: E501 - :type: int - """ - - self._publication_month = publication_month - - @property - def publication_day(self): - """Gets the publication_day of this DatabaseDto. # noqa: E501 - - database publication day # noqa: E501 - - :return: The publication_day of this DatabaseDto. # noqa: E501 - :rtype: int - """ - return self._publication_day - - @publication_day.setter - def publication_day(self, publication_day): - """Sets the publication_day of this DatabaseDto. - - database publication day # noqa: E501 - - :param publication_day: The publication_day of this DatabaseDto. # noqa: E501 - :type: int - """ - - self._publication_day = publication_day - - @property - def is_public(self): - """Gets the is_public of this DatabaseDto. # noqa: E501 - - database publicity # noqa: E501 - - :return: The is_public of this DatabaseDto. # noqa: E501 - :rtype: bool - """ - return self._is_public - - @is_public.setter - def is_public(self, is_public): - """Sets the is_public of this DatabaseDto. - - database publicity # noqa: E501 - - :param is_public: The is_public of this DatabaseDto. # noqa: E501 - :type: bool - """ - - self._is_public = is_public - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(DatabaseDto, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, DatabaseDto): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/swagger/api-database/swagger_client/models/database_modify_dto.py b/swagger/api-database/swagger_client/models/database_modify_dto.py deleted file mode 100644 index b860ef440549e8c66f0ff47985d3ab6a978d9f40..0000000000000000000000000000000000000000 --- a/swagger/api-database/swagger_client/models/database_modify_dto.py +++ /dev/null @@ -1,332 +0,0 @@ -# coding: utf-8 - -""" - Database Repository Database Service API - - Service that manages the databases # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -import pprint -import re # noqa: F401 - -import six - -class DatabaseModifyDto(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'subjects': 'list[str]', - 'description': 'str', - 'publisher': 'str', - 'license': 'LicenseDto', - 'language': 'str', - 'publication_year': 'int', - 'publication_month': 'int', - 'publication_day': 'int', - 'contact_person': 'str' - } - - attribute_map = { - 'subjects': 'subjects', - 'description': 'description', - 'publisher': 'publisher', - 'license': 'license', - 'language': 'language', - 'publication_year': 'publication_year', - 'publication_month': 'publication_month', - 'publication_day': 'publication_day', - 'contact_person': 'contact_person' - } - - def __init__(self, subjects=None, description=None, publisher=None, license=None, language=None, publication_year=None, publication_month=None, publication_day=None, contact_person=None): # noqa: E501 - """DatabaseModifyDto - a model defined in Swagger""" # noqa: E501 - self._subjects = None - self._description = None - self._publisher = None - self._license = None - self._language = None - self._publication_year = None - self._publication_month = None - self._publication_day = None - self._contact_person = None - self.discriminator = None - if subjects is not None: - self.subjects = subjects - self.description = description - if publisher is not None: - self.publisher = publisher - if license is not None: - self.license = license - if language is not None: - self.language = language - self.publication_year = publication_year - if publication_month is not None: - self.publication_month = publication_month - if publication_day is not None: - self.publication_day = publication_day - if contact_person is not None: - self.contact_person = contact_person - - @property - def subjects(self): - """Gets the subjects of this DatabaseModifyDto. # noqa: E501 - - - :return: The subjects of this DatabaseModifyDto. # noqa: E501 - :rtype: list[str] - """ - return self._subjects - - @subjects.setter - def subjects(self, subjects): - """Sets the subjects of this DatabaseModifyDto. - - - :param subjects: The subjects of this DatabaseModifyDto. # noqa: E501 - :type: list[str] - """ - - self._subjects = subjects - - @property - def description(self): - """Gets the description of this DatabaseModifyDto. # noqa: E501 - - - :return: The description of this DatabaseModifyDto. # noqa: E501 - :rtype: str - """ - return self._description - - @description.setter - def description(self, description): - """Sets the description of this DatabaseModifyDto. - - - :param description: The description of this DatabaseModifyDto. # noqa: E501 - :type: str - """ - if description is None: - raise ValueError("Invalid value for `description`, must not be `None`") # noqa: E501 - - self._description = description - - @property - def publisher(self): - """Gets the publisher of this DatabaseModifyDto. # noqa: E501 - - - :return: The publisher of this DatabaseModifyDto. # noqa: E501 - :rtype: str - """ - return self._publisher - - @publisher.setter - def publisher(self, publisher): - """Sets the publisher of this DatabaseModifyDto. - - - :param publisher: The publisher of this DatabaseModifyDto. # noqa: E501 - :type: str - """ - - self._publisher = publisher - - @property - def license(self): - """Gets the license of this DatabaseModifyDto. # noqa: E501 - - - :return: The license of this DatabaseModifyDto. # noqa: E501 - :rtype: LicenseDto - """ - return self._license - - @license.setter - def license(self, license): - """Sets the license of this DatabaseModifyDto. - - - :param license: The license of this DatabaseModifyDto. # noqa: E501 - :type: LicenseDto - """ - - self._license = license - - @property - def language(self): - """Gets the language of this DatabaseModifyDto. # noqa: E501 - - - :return: The language of this DatabaseModifyDto. # noqa: E501 - :rtype: str - """ - return self._language - - @language.setter - def language(self, language): - """Sets the language of this DatabaseModifyDto. - - - :param language: The language of this DatabaseModifyDto. # noqa: E501 - :type: str - """ - allowed_values = ["ab", "aa", "af", "ak", "sq", "am", "ar", "an", "hy", "as", "av", "ae", "ay", "az", "bm", "ba", "eu", "be", "bn", "bh", "bi", "bs", "br", "bg", "my", "ca", "km", "ch", "ce", "ny", "zh", "cu", "cv", "kw", "co", "cr", "hr", "cs", "da", "dv", "nl", "dz", "en", "eo", "et", "ee", "fo", "fj", "fi", "fr", "ff", "gd", "gl", "lg", "ka", "de", "ki", "el", "kl", "gn", "gu", "ht", "ha", "he", "hz", "hi", "ho", "hu", "is", "io", "ig", "id", "ia", "ie", "iu", "ik", "ga", "it", "ja", "jv", "kn", "kr", "ks", "kk", "rw", "kv", "kg", "ko", "kj", "ku", "ky", "lo", "la", "lv", "lb", "li", "ln", "lt", "lu", "mk", "mg", "ms", "ml", "mt", "gv", "mi", "mr", "mh", "ro", "mn", "na", "nv", "nd", "ng", "ne", "se", "no", "nb", "nn", "ii", "oc", "oj", "or", "om", "os", "pi", "pa", "ps", "fa", "pl", "pt", "qu", "rm", "rn", "ru", "sm", "sg", "sa", "sc", "sr", "sn", "sd", "si", "sk", "sl", "so", "st", "nr", "es", "su", "sw", "ss", "sv", "tl", "ty", "tg", "ta", "tt", "te", "th", "bo", "ti", "to", "ts", "tn", "tr", "tk", "tw", "ug", "uk", "ur", "uz", "ve", "vi", "vo", "wa", "cy", "fy", "wo", "xh", "yi", "yo", "za", "zu"] # noqa: E501 - if language not in allowed_values: - raise ValueError( - "Invalid value for `language` ({0}), must be one of {1}" # noqa: E501 - .format(language, allowed_values) - ) - - self._language = language - - @property - def publication_year(self): - """Gets the publication_year of this DatabaseModifyDto. # noqa: E501 - - database publication year # noqa: E501 - - :return: The publication_year of this DatabaseModifyDto. # noqa: E501 - :rtype: int - """ - return self._publication_year - - @publication_year.setter - def publication_year(self, publication_year): - """Sets the publication_year of this DatabaseModifyDto. - - database publication year # noqa: E501 - - :param publication_year: The publication_year of this DatabaseModifyDto. # noqa: E501 - :type: int - """ - if publication_year is None: - raise ValueError("Invalid value for `publication_year`, must not be `None`") # noqa: E501 - - self._publication_year = publication_year - - @property - def publication_month(self): - """Gets the publication_month of this DatabaseModifyDto. # noqa: E501 - - database publication month # noqa: E501 - - :return: The publication_month of this DatabaseModifyDto. # noqa: E501 - :rtype: int - """ - return self._publication_month - - @publication_month.setter - def publication_month(self, publication_month): - """Sets the publication_month of this DatabaseModifyDto. - - database publication month # noqa: E501 - - :param publication_month: The publication_month of this DatabaseModifyDto. # noqa: E501 - :type: int - """ - - self._publication_month = publication_month - - @property - def publication_day(self): - """Gets the publication_day of this DatabaseModifyDto. # noqa: E501 - - database publication day # noqa: E501 - - :return: The publication_day of this DatabaseModifyDto. # noqa: E501 - :rtype: int - """ - return self._publication_day - - @publication_day.setter - def publication_day(self, publication_day): - """Sets the publication_day of this DatabaseModifyDto. - - database publication day # noqa: E501 - - :param publication_day: The publication_day of this DatabaseModifyDto. # noqa: E501 - :type: int - """ - - self._publication_day = publication_day - - @property - def contact_person(self): - """Gets the contact_person of this DatabaseModifyDto. # noqa: E501 - - - :return: The contact_person of this DatabaseModifyDto. # noqa: E501 - :rtype: str - """ - return self._contact_person - - @contact_person.setter - def contact_person(self, contact_person): - """Sets the contact_person of this DatabaseModifyDto. - - - :param contact_person: The contact_person of this DatabaseModifyDto. # noqa: E501 - :type: str - """ - - self._contact_person = contact_person - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(DatabaseModifyDto, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, DatabaseModifyDto): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/swagger/api-database/swagger_client/models/database_transfer_dto.py b/swagger/api-database/swagger_client/models/database_transfer_dto.py deleted file mode 100644 index e17937171833a088ef6adc96eca121498f1198cf..0000000000000000000000000000000000000000 --- a/swagger/api-database/swagger_client/models/database_transfer_dto.py +++ /dev/null @@ -1,111 +0,0 @@ -# coding: utf-8 - -""" - Database Repository Database Service API - - Service that manages the databases # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -import pprint -import re # noqa: F401 - -import six - -class DatabaseTransferDto(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'is_public': 'bool' - } - - attribute_map = { - 'is_public': 'is_public' - } - - def __init__(self, is_public=None): # noqa: E501 - """DatabaseTransferDto - a model defined in Swagger""" # noqa: E501 - self._is_public = None - self.discriminator = None - self.is_public = is_public - - @property - def is_public(self): - """Gets the is_public of this DatabaseTransferDto. # noqa: E501 - - - :return: The is_public of this DatabaseTransferDto. # noqa: E501 - :rtype: bool - """ - return self._is_public - - @is_public.setter - def is_public(self, is_public): - """Sets the is_public of this DatabaseTransferDto. - - - :param is_public: The is_public of this DatabaseTransferDto. # noqa: E501 - :type: bool - """ - if is_public is None: - raise ValueError("Invalid value for `is_public`, must not be `None`") # noqa: E501 - - self._is_public = is_public - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(DatabaseTransferDto, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, DatabaseTransferDto): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/swagger/api-database/swagger_client/models/granted_authority_dto.py b/swagger/api-database/swagger_client/models/granted_authority_dto.py deleted file mode 100644 index 6cbbd98c6f6fa67dcc14b1774c293734496c4c87..0000000000000000000000000000000000000000 --- a/swagger/api-database/swagger_client/models/granted_authority_dto.py +++ /dev/null @@ -1,110 +0,0 @@ -# coding: utf-8 - -""" - Database Repository Database Service API - - Service that manages the databases # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -import pprint -import re # noqa: F401 - -import six - -class GrantedAuthorityDto(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'authority': 'str' - } - - attribute_map = { - 'authority': 'authority' - } - - def __init__(self, authority=None): # noqa: E501 - """GrantedAuthorityDto - a model defined in Swagger""" # noqa: E501 - self._authority = None - self.discriminator = None - if authority is not None: - self.authority = authority - - @property - def authority(self): - """Gets the authority of this GrantedAuthorityDto. # noqa: E501 - - - :return: The authority of this GrantedAuthorityDto. # noqa: E501 - :rtype: str - """ - return self._authority - - @authority.setter - def authority(self, authority): - """Sets the authority of this GrantedAuthorityDto. - - - :param authority: The authority of this GrantedAuthorityDto. # noqa: E501 - :type: str - """ - - self._authority = authority - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(GrantedAuthorityDto, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, GrantedAuthorityDto): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/swagger/api-database/swagger_client/models/image_brief_dto.py b/swagger/api-database/swagger_client/models/image_brief_dto.py deleted file mode 100644 index 9536488958e8e7a8fedb4aed47a0460b6fe25454..0000000000000000000000000000000000000000 --- a/swagger/api-database/swagger_client/models/image_brief_dto.py +++ /dev/null @@ -1,165 +0,0 @@ -# coding: utf-8 - -""" - Database Repository Database Service API - - Service that manages the databases # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -import pprint -import re # noqa: F401 - -import six - -class ImageBriefDto(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'id': 'int', - 'repository': 'str', - 'tag': 'str' - } - - attribute_map = { - 'id': 'id', - 'repository': 'repository', - 'tag': 'tag' - } - - def __init__(self, id=None, repository=None, tag=None): # noqa: E501 - """ImageBriefDto - a model defined in Swagger""" # noqa: E501 - self._id = None - self._repository = None - self._tag = None - self.discriminator = None - self.id = id - self.repository = repository - self.tag = tag - - @property - def id(self): - """Gets the id of this ImageBriefDto. # noqa: E501 - - - :return: The id of this ImageBriefDto. # noqa: E501 - :rtype: int - """ - return self._id - - @id.setter - def id(self, id): - """Sets the id of this ImageBriefDto. - - - :param id: The id of this ImageBriefDto. # noqa: E501 - :type: int - """ - if id is None: - raise ValueError("Invalid value for `id`, must not be `None`") # noqa: E501 - - self._id = id - - @property - def repository(self): - """Gets the repository of this ImageBriefDto. # noqa: E501 - - - :return: The repository of this ImageBriefDto. # noqa: E501 - :rtype: str - """ - return self._repository - - @repository.setter - def repository(self, repository): - """Sets the repository of this ImageBriefDto. - - - :param repository: The repository of this ImageBriefDto. # noqa: E501 - :type: str - """ - if repository is None: - raise ValueError("Invalid value for `repository`, must not be `None`") # noqa: E501 - - self._repository = repository - - @property - def tag(self): - """Gets the tag of this ImageBriefDto. # noqa: E501 - - - :return: The tag of this ImageBriefDto. # noqa: E501 - :rtype: str - """ - return self._tag - - @tag.setter - def tag(self, tag): - """Sets the tag of this ImageBriefDto. - - - :param tag: The tag of this ImageBriefDto. # noqa: E501 - :type: str - """ - if tag is None: - raise ValueError("Invalid value for `tag`, must not be `None`") # noqa: E501 - - self._tag = tag - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(ImageBriefDto, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, ImageBriefDto): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/swagger/api-database/swagger_client/models/image_date_dto.py b/swagger/api-database/swagger_client/models/image_date_dto.py deleted file mode 100644 index 093b1c638dd0bfdf10aa3ba8947d5679148ca754..0000000000000000000000000000000000000000 --- a/swagger/api-database/swagger_client/models/image_date_dto.py +++ /dev/null @@ -1,245 +0,0 @@ -# coding: utf-8 - -""" - Database Repository Database Service API - - Service that manages the databases # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -import pprint -import re # noqa: F401 - -import six - -class ImageDateDto(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'id': 'int', - 'example': 'str', - 'database_format': 'str', - 'unix_format': 'str', - 'has_time': 'bool', - 'created_at': 'datetime' - } - - attribute_map = { - 'id': 'id', - 'example': 'example', - 'database_format': 'database_format', - 'unix_format': 'unix_format', - 'has_time': 'has_time', - 'created_at': 'created_at' - } - - def __init__(self, id=None, example=None, database_format=None, unix_format=None, has_time=None, created_at=None): # noqa: E501 - """ImageDateDto - a model defined in Swagger""" # noqa: E501 - self._id = None - self._example = None - self._database_format = None - self._unix_format = None - self._has_time = None - self._created_at = None - self.discriminator = None - self.id = id - self.example = example - self.database_format = database_format - self.unix_format = unix_format - self.has_time = has_time - if created_at is not None: - self.created_at = created_at - - @property - def id(self): - """Gets the id of this ImageDateDto. # noqa: E501 - - - :return: The id of this ImageDateDto. # noqa: E501 - :rtype: int - """ - return self._id - - @id.setter - def id(self, id): - """Sets the id of this ImageDateDto. - - - :param id: The id of this ImageDateDto. # noqa: E501 - :type: int - """ - if id is None: - raise ValueError("Invalid value for `id`, must not be `None`") # noqa: E501 - - self._id = id - - @property - def example(self): - """Gets the example of this ImageDateDto. # noqa: E501 - - - :return: The example of this ImageDateDto. # noqa: E501 - :rtype: str - """ - return self._example - - @example.setter - def example(self, example): - """Sets the example of this ImageDateDto. - - - :param example: The example of this ImageDateDto. # noqa: E501 - :type: str - """ - if example is None: - raise ValueError("Invalid value for `example`, must not be `None`") # noqa: E501 - - self._example = example - - @property - def database_format(self): - """Gets the database_format of this ImageDateDto. # noqa: E501 - - - :return: The database_format of this ImageDateDto. # noqa: E501 - :rtype: str - """ - return self._database_format - - @database_format.setter - def database_format(self, database_format): - """Sets the database_format of this ImageDateDto. - - - :param database_format: The database_format of this ImageDateDto. # noqa: E501 - :type: str - """ - if database_format is None: - raise ValueError("Invalid value for `database_format`, must not be `None`") # noqa: E501 - - self._database_format = database_format - - @property - def unix_format(self): - """Gets the unix_format of this ImageDateDto. # noqa: E501 - - - :return: The unix_format of this ImageDateDto. # noqa: E501 - :rtype: str - """ - return self._unix_format - - @unix_format.setter - def unix_format(self, unix_format): - """Sets the unix_format of this ImageDateDto. - - - :param unix_format: The unix_format of this ImageDateDto. # noqa: E501 - :type: str - """ - if unix_format is None: - raise ValueError("Invalid value for `unix_format`, must not be `None`") # noqa: E501 - - self._unix_format = unix_format - - @property - def has_time(self): - """Gets the has_time of this ImageDateDto. # noqa: E501 - - - :return: The has_time of this ImageDateDto. # noqa: E501 - :rtype: bool - """ - return self._has_time - - @has_time.setter - def has_time(self, has_time): - """Sets the has_time of this ImageDateDto. - - - :param has_time: The has_time of this ImageDateDto. # noqa: E501 - :type: bool - """ - if has_time is None: - raise ValueError("Invalid value for `has_time`, must not be `None`") # noqa: E501 - - self._has_time = has_time - - @property - def created_at(self): - """Gets the created_at of this ImageDateDto. # noqa: E501 - - - :return: The created_at of this ImageDateDto. # noqa: E501 - :rtype: datetime - """ - return self._created_at - - @created_at.setter - def created_at(self, created_at): - """Sets the created_at of this ImageDateDto. - - - :param created_at: The created_at of this ImageDateDto. # noqa: E501 - :type: datetime - """ - - self._created_at = created_at - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(ImageDateDto, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, ImageDateDto): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/swagger/api-database/swagger_client/models/image_dto.py b/swagger/api-database/swagger_client/models/image_dto.py deleted file mode 100644 index e067503c0eafaeba2441956475314662a3d946d3..0000000000000000000000000000000000000000 --- a/swagger/api-database/swagger_client/models/image_dto.py +++ /dev/null @@ -1,404 +0,0 @@ -# coding: utf-8 - -""" - Database Repository Database Service API - - Service that manages the databases # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -import pprint -import re # noqa: F401 - -import six - -class ImageDto(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'id': 'int', - 'repository': 'str', - 'tag': 'str', - 'dialect': 'str', - 'hash': 'str', - 'compiled': 'datetime', - 'size': 'int', - 'environment': 'list[ImageEnvItemDto]', - 'driver_class': 'str', - 'date_formats': 'list[ImageDateDto]', - 'jdbc_method': 'str', - 'default_port': 'int' - } - - attribute_map = { - 'id': 'id', - 'repository': 'repository', - 'tag': 'tag', - 'dialect': 'dialect', - 'hash': 'hash', - 'compiled': 'compiled', - 'size': 'size', - 'environment': 'environment', - 'driver_class': 'driver_class', - 'date_formats': 'date_formats', - 'jdbc_method': 'jdbc_method', - 'default_port': 'default_port' - } - - def __init__(self, id=None, repository=None, tag=None, dialect=None, hash=None, compiled=None, size=None, environment=None, driver_class=None, date_formats=None, jdbc_method=None, default_port=None): # noqa: E501 - """ImageDto - a model defined in Swagger""" # noqa: E501 - self._id = None - self._repository = None - self._tag = None - self._dialect = None - self._hash = None - self._compiled = None - self._size = None - self._environment = None - self._driver_class = None - self._date_formats = None - self._jdbc_method = None - self._default_port = None - self.discriminator = None - self.id = id - self.repository = repository - self.tag = tag - self.dialect = dialect - if hash is not None: - self.hash = hash - if compiled is not None: - self.compiled = compiled - if size is not None: - self.size = size - self.environment = environment - self.driver_class = driver_class - if date_formats is not None: - self.date_formats = date_formats - self.jdbc_method = jdbc_method - self.default_port = default_port - - @property - def id(self): - """Gets the id of this ImageDto. # noqa: E501 - - - :return: The id of this ImageDto. # noqa: E501 - :rtype: int - """ - return self._id - - @id.setter - def id(self, id): - """Sets the id of this ImageDto. - - - :param id: The id of this ImageDto. # noqa: E501 - :type: int - """ - if id is None: - raise ValueError("Invalid value for `id`, must not be `None`") # noqa: E501 - - self._id = id - - @property - def repository(self): - """Gets the repository of this ImageDto. # noqa: E501 - - - :return: The repository of this ImageDto. # noqa: E501 - :rtype: str - """ - return self._repository - - @repository.setter - def repository(self, repository): - """Sets the repository of this ImageDto. - - - :param repository: The repository of this ImageDto. # noqa: E501 - :type: str - """ - if repository is None: - raise ValueError("Invalid value for `repository`, must not be `None`") # noqa: E501 - - self._repository = repository - - @property - def tag(self): - """Gets the tag of this ImageDto. # noqa: E501 - - - :return: The tag of this ImageDto. # noqa: E501 - :rtype: str - """ - return self._tag - - @tag.setter - def tag(self, tag): - """Sets the tag of this ImageDto. - - - :param tag: The tag of this ImageDto. # noqa: E501 - :type: str - """ - if tag is None: - raise ValueError("Invalid value for `tag`, must not be `None`") # noqa: E501 - - self._tag = tag - - @property - def dialect(self): - """Gets the dialect of this ImageDto. # noqa: E501 - - - :return: The dialect of this ImageDto. # noqa: E501 - :rtype: str - """ - return self._dialect - - @dialect.setter - def dialect(self, dialect): - """Sets the dialect of this ImageDto. - - - :param dialect: The dialect of this ImageDto. # noqa: E501 - :type: str - """ - if dialect is None: - raise ValueError("Invalid value for `dialect`, must not be `None`") # noqa: E501 - - self._dialect = dialect - - @property - def hash(self): - """Gets the hash of this ImageDto. # noqa: E501 - - - :return: The hash of this ImageDto. # noqa: E501 - :rtype: str - """ - return self._hash - - @hash.setter - def hash(self, hash): - """Sets the hash of this ImageDto. - - - :param hash: The hash of this ImageDto. # noqa: E501 - :type: str - """ - - self._hash = hash - - @property - def compiled(self): - """Gets the compiled of this ImageDto. # noqa: E501 - - - :return: The compiled of this ImageDto. # noqa: E501 - :rtype: datetime - """ - return self._compiled - - @compiled.setter - def compiled(self, compiled): - """Sets the compiled of this ImageDto. - - - :param compiled: The compiled of this ImageDto. # noqa: E501 - :type: datetime - """ - - self._compiled = compiled - - @property - def size(self): - """Gets the size of this ImageDto. # noqa: E501 - - - :return: The size of this ImageDto. # noqa: E501 - :rtype: int - """ - return self._size - - @size.setter - def size(self, size): - """Sets the size of this ImageDto. - - - :param size: The size of this ImageDto. # noqa: E501 - :type: int - """ - - self._size = size - - @property - def environment(self): - """Gets the environment of this ImageDto. # noqa: E501 - - - :return: The environment of this ImageDto. # noqa: E501 - :rtype: list[ImageEnvItemDto] - """ - return self._environment - - @environment.setter - def environment(self, environment): - """Sets the environment of this ImageDto. - - - :param environment: The environment of this ImageDto. # noqa: E501 - :type: list[ImageEnvItemDto] - """ - if environment is None: - raise ValueError("Invalid value for `environment`, must not be `None`") # noqa: E501 - - self._environment = environment - - @property - def driver_class(self): - """Gets the driver_class of this ImageDto. # noqa: E501 - - - :return: The driver_class of this ImageDto. # noqa: E501 - :rtype: str - """ - return self._driver_class - - @driver_class.setter - def driver_class(self, driver_class): - """Sets the driver_class of this ImageDto. - - - :param driver_class: The driver_class of this ImageDto. # noqa: E501 - :type: str - """ - if driver_class is None: - raise ValueError("Invalid value for `driver_class`, must not be `None`") # noqa: E501 - - self._driver_class = driver_class - - @property - def date_formats(self): - """Gets the date_formats of this ImageDto. # noqa: E501 - - - :return: The date_formats of this ImageDto. # noqa: E501 - :rtype: list[ImageDateDto] - """ - return self._date_formats - - @date_formats.setter - def date_formats(self, date_formats): - """Sets the date_formats of this ImageDto. - - - :param date_formats: The date_formats of this ImageDto. # noqa: E501 - :type: list[ImageDateDto] - """ - - self._date_formats = date_formats - - @property - def jdbc_method(self): - """Gets the jdbc_method of this ImageDto. # noqa: E501 - - - :return: The jdbc_method of this ImageDto. # noqa: E501 - :rtype: str - """ - return self._jdbc_method - - @jdbc_method.setter - def jdbc_method(self, jdbc_method): - """Sets the jdbc_method of this ImageDto. - - - :param jdbc_method: The jdbc_method of this ImageDto. # noqa: E501 - :type: str - """ - if jdbc_method is None: - raise ValueError("Invalid value for `jdbc_method`, must not be `None`") # noqa: E501 - - self._jdbc_method = jdbc_method - - @property - def default_port(self): - """Gets the default_port of this ImageDto. # noqa: E501 - - - :return: The default_port of this ImageDto. # noqa: E501 - :rtype: int - """ - return self._default_port - - @default_port.setter - def default_port(self, default_port): - """Sets the default_port of this ImageDto. - - - :param default_port: The default_port of this ImageDto. # noqa: E501 - :type: int - """ - if default_port is None: - raise ValueError("Invalid value for `default_port`, must not be `None`") # noqa: E501 - - self._default_port = default_port - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(ImageDto, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, ImageDto): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/swagger/api-database/swagger_client/models/image_env_item_dto.py b/swagger/api-database/swagger_client/models/image_env_item_dto.py deleted file mode 100644 index 731f28ed827093c1414b766d4d07007f05ea67da..0000000000000000000000000000000000000000 --- a/swagger/api-database/swagger_client/models/image_env_item_dto.py +++ /dev/null @@ -1,198 +0,0 @@ -# coding: utf-8 - -""" - Database Repository Database Service API - - Service that manages the databases # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -import pprint -import re # noqa: F401 - -import six - -class ImageEnvItemDto(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'iid': 'int', - 'key': 'str', - 'value': 'str', - 'type': 'str' - } - - attribute_map = { - 'iid': 'iid', - 'key': 'key', - 'value': 'value', - 'type': 'type' - } - - def __init__(self, iid=None, key=None, value=None, type=None): # noqa: E501 - """ImageEnvItemDto - a model defined in Swagger""" # noqa: E501 - self._iid = None - self._key = None - self._value = None - self._type = None - self.discriminator = None - self.iid = iid - self.key = key - self.value = value - self.type = type - - @property - def iid(self): - """Gets the iid of this ImageEnvItemDto. # noqa: E501 - - - :return: The iid of this ImageEnvItemDto. # noqa: E501 - :rtype: int - """ - return self._iid - - @iid.setter - def iid(self, iid): - """Sets the iid of this ImageEnvItemDto. - - - :param iid: The iid of this ImageEnvItemDto. # noqa: E501 - :type: int - """ - if iid is None: - raise ValueError("Invalid value for `iid`, must not be `None`") # noqa: E501 - - self._iid = iid - - @property - def key(self): - """Gets the key of this ImageEnvItemDto. # noqa: E501 - - - :return: The key of this ImageEnvItemDto. # noqa: E501 - :rtype: str - """ - return self._key - - @key.setter - def key(self, key): - """Sets the key of this ImageEnvItemDto. - - - :param key: The key of this ImageEnvItemDto. # noqa: E501 - :type: str - """ - if key is None: - raise ValueError("Invalid value for `key`, must not be `None`") # noqa: E501 - - self._key = key - - @property - def value(self): - """Gets the value of this ImageEnvItemDto. # noqa: E501 - - - :return: The value of this ImageEnvItemDto. # noqa: E501 - :rtype: str - """ - return self._value - - @value.setter - def value(self, value): - """Sets the value of this ImageEnvItemDto. - - - :param value: The value of this ImageEnvItemDto. # noqa: E501 - :type: str - """ - if value is None: - raise ValueError("Invalid value for `value`, must not be `None`") # noqa: E501 - - self._value = value - - @property - def type(self): - """Gets the type of this ImageEnvItemDto. # noqa: E501 - - - :return: The type of this ImageEnvItemDto. # noqa: E501 - :rtype: str - """ - return self._type - - @type.setter - def type(self, type): - """Sets the type of this ImageEnvItemDto. - - - :param type: The type of this ImageEnvItemDto. # noqa: E501 - :type: str - """ - if type is None: - raise ValueError("Invalid value for `type`, must not be `None`") # noqa: E501 - allowed_values = ["username", "password", "privileged_username", "privileged_password"] # noqa: E501 - if type not in allowed_values: - raise ValueError( - "Invalid value for `type` ({0}), must be one of {1}" # noqa: E501 - .format(type, allowed_values) - ) - - self._type = type - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(ImageEnvItemDto, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, ImageEnvItemDto): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/swagger/api-database/swagger_client/models/license_dto.py b/swagger/api-database/swagger_client/models/license_dto.py deleted file mode 100644 index 82deeda03133bd40eb478cc84f2efe6cb5ffb317..0000000000000000000000000000000000000000 --- a/swagger/api-database/swagger_client/models/license_dto.py +++ /dev/null @@ -1,138 +0,0 @@ -# coding: utf-8 - -""" - Database Repository Database Service API - - Service that manages the databases # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -import pprint -import re # noqa: F401 - -import six - -class LicenseDto(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'identifier': 'str', - 'uri': 'str' - } - - attribute_map = { - 'identifier': 'identifier', - 'uri': 'uri' - } - - def __init__(self, identifier=None, uri=None): # noqa: E501 - """LicenseDto - a model defined in Swagger""" # noqa: E501 - self._identifier = None - self._uri = None - self.discriminator = None - self.identifier = identifier - self.uri = uri - - @property - def identifier(self): - """Gets the identifier of this LicenseDto. # noqa: E501 - - - :return: The identifier of this LicenseDto. # noqa: E501 - :rtype: str - """ - return self._identifier - - @identifier.setter - def identifier(self, identifier): - """Sets the identifier of this LicenseDto. - - - :param identifier: The identifier of this LicenseDto. # noqa: E501 - :type: str - """ - if identifier is None: - raise ValueError("Invalid value for `identifier`, must not be `None`") # noqa: E501 - - self._identifier = identifier - - @property - def uri(self): - """Gets the uri of this LicenseDto. # noqa: E501 - - - :return: The uri of this LicenseDto. # noqa: E501 - :rtype: str - """ - return self._uri - - @uri.setter - def uri(self, uri): - """Sets the uri of this LicenseDto. - - - :param uri: The uri of this LicenseDto. # noqa: E501 - :type: str - """ - if uri is None: - raise ValueError("Invalid value for `uri`, must not be `None`") # noqa: E501 - - self._uri = uri - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(LicenseDto, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, LicenseDto): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/swagger/api-database/swagger_client/models/table_brief_dto.py b/swagger/api-database/swagger_client/models/table_brief_dto.py deleted file mode 100644 index 168f85b02f7b36375e25f3efa685455c010c72c4..0000000000000000000000000000000000000000 --- a/swagger/api-database/swagger_client/models/table_brief_dto.py +++ /dev/null @@ -1,192 +0,0 @@ -# coding: utf-8 - -""" - Database Repository Database Service API - - Service that manages the databases # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -import pprint -import re # noqa: F401 - -import six - -class TableBriefDto(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'id': 'int', - 'name': 'str', - 'creator': 'UserBriefDto', - 'internal_name': 'str' - } - - attribute_map = { - 'id': 'id', - 'name': 'name', - 'creator': 'creator', - 'internal_name': 'internal_name' - } - - def __init__(self, id=None, name=None, creator=None, internal_name=None): # noqa: E501 - """TableBriefDto - a model defined in Swagger""" # noqa: E501 - self._id = None - self._name = None - self._creator = None - self._internal_name = None - self.discriminator = None - self.id = id - self.name = name - self.creator = creator - self.internal_name = internal_name - - @property - def id(self): - """Gets the id of this TableBriefDto. # noqa: E501 - - - :return: The id of this TableBriefDto. # noqa: E501 - :rtype: int - """ - return self._id - - @id.setter - def id(self, id): - """Sets the id of this TableBriefDto. - - - :param id: The id of this TableBriefDto. # noqa: E501 - :type: int - """ - if id is None: - raise ValueError("Invalid value for `id`, must not be `None`") # noqa: E501 - - self._id = id - - @property - def name(self): - """Gets the name of this TableBriefDto. # noqa: E501 - - - :return: The name of this TableBriefDto. # noqa: E501 - :rtype: str - """ - return self._name - - @name.setter - def name(self, name): - """Sets the name of this TableBriefDto. - - - :param name: The name of this TableBriefDto. # noqa: E501 - :type: str - """ - if name is None: - raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501 - - self._name = name - - @property - def creator(self): - """Gets the creator of this TableBriefDto. # noqa: E501 - - - :return: The creator of this TableBriefDto. # noqa: E501 - :rtype: UserBriefDto - """ - return self._creator - - @creator.setter - def creator(self, creator): - """Sets the creator of this TableBriefDto. - - - :param creator: The creator of this TableBriefDto. # noqa: E501 - :type: UserBriefDto - """ - if creator is None: - raise ValueError("Invalid value for `creator`, must not be `None`") # noqa: E501 - - self._creator = creator - - @property - def internal_name(self): - """Gets the internal_name of this TableBriefDto. # noqa: E501 - - - :return: The internal_name of this TableBriefDto. # noqa: E501 - :rtype: str - """ - return self._internal_name - - @internal_name.setter - def internal_name(self, internal_name): - """Sets the internal_name of this TableBriefDto. - - - :param internal_name: The internal_name of this TableBriefDto. # noqa: E501 - :type: str - """ - if internal_name is None: - raise ValueError("Invalid value for `internal_name`, must not be `None`") # noqa: E501 - - self._internal_name = internal_name - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(TableBriefDto, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, TableBriefDto): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/swagger/api-database/swagger_client/models/table_dto.py b/swagger/api-database/swagger_client/models/table_dto.py deleted file mode 100644 index 4206ee0d4928bb33508b7fa1afb26059dda97e07..0000000000000000000000000000000000000000 --- a/swagger/api-database/swagger_client/models/table_dto.py +++ /dev/null @@ -1,272 +0,0 @@ -# coding: utf-8 - -""" - Database Repository Database Service API - - Service that manages the databases # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -import pprint -import re # noqa: F401 - -import six - -class TableDto(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'id': 'int', - 'name': 'str', - 'topic': 'str', - 'description': 'str', - 'created': 'datetime', - 'columns': 'list[ColumnDto]', - 'internal_name': 'str' - } - - attribute_map = { - 'id': 'id', - 'name': 'name', - 'topic': 'topic', - 'description': 'description', - 'created': 'created', - 'columns': 'columns', - 'internal_name': 'internal_name' - } - - def __init__(self, id=None, name=None, topic=None, description=None, created=None, columns=None, internal_name=None): # noqa: E501 - """TableDto - a model defined in Swagger""" # noqa: E501 - self._id = None - self._name = None - self._topic = None - self._description = None - self._created = None - self._columns = None - self._internal_name = None - self.discriminator = None - self.id = id - self.name = name - self.topic = topic - self.description = description - if created is not None: - self.created = created - self.columns = columns - self.internal_name = internal_name - - @property - def id(self): - """Gets the id of this TableDto. # noqa: E501 - - - :return: The id of this TableDto. # noqa: E501 - :rtype: int - """ - return self._id - - @id.setter - def id(self, id): - """Sets the id of this TableDto. - - - :param id: The id of this TableDto. # noqa: E501 - :type: int - """ - if id is None: - raise ValueError("Invalid value for `id`, must not be `None`") # noqa: E501 - - self._id = id - - @property - def name(self): - """Gets the name of this TableDto. # noqa: E501 - - - :return: The name of this TableDto. # noqa: E501 - :rtype: str - """ - return self._name - - @name.setter - def name(self, name): - """Sets the name of this TableDto. - - - :param name: The name of this TableDto. # noqa: E501 - :type: str - """ - if name is None: - raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501 - - self._name = name - - @property - def topic(self): - """Gets the topic of this TableDto. # noqa: E501 - - - :return: The topic of this TableDto. # noqa: E501 - :rtype: str - """ - return self._topic - - @topic.setter - def topic(self, topic): - """Sets the topic of this TableDto. - - - :param topic: The topic of this TableDto. # noqa: E501 - :type: str - """ - if topic is None: - raise ValueError("Invalid value for `topic`, must not be `None`") # noqa: E501 - - self._topic = topic - - @property - def description(self): - """Gets the description of this TableDto. # noqa: E501 - - - :return: The description of this TableDto. # noqa: E501 - :rtype: str - """ - return self._description - - @description.setter - def description(self, description): - """Sets the description of this TableDto. - - - :param description: The description of this TableDto. # noqa: E501 - :type: str - """ - if description is None: - raise ValueError("Invalid value for `description`, must not be `None`") # noqa: E501 - - self._description = description - - @property - def created(self): - """Gets the created of this TableDto. # noqa: E501 - - - :return: The created of this TableDto. # noqa: E501 - :rtype: datetime - """ - return self._created - - @created.setter - def created(self, created): - """Sets the created of this TableDto. - - - :param created: The created of this TableDto. # noqa: E501 - :type: datetime - """ - - self._created = created - - @property - def columns(self): - """Gets the columns of this TableDto. # noqa: E501 - - - :return: The columns of this TableDto. # noqa: E501 - :rtype: list[ColumnDto] - """ - return self._columns - - @columns.setter - def columns(self, columns): - """Sets the columns of this TableDto. - - - :param columns: The columns of this TableDto. # noqa: E501 - :type: list[ColumnDto] - """ - if columns is None: - raise ValueError("Invalid value for `columns`, must not be `None`") # noqa: E501 - - self._columns = columns - - @property - def internal_name(self): - """Gets the internal_name of this TableDto. # noqa: E501 - - - :return: The internal_name of this TableDto. # noqa: E501 - :rtype: str - """ - return self._internal_name - - @internal_name.setter - def internal_name(self, internal_name): - """Sets the internal_name of this TableDto. - - - :param internal_name: The internal_name of this TableDto. # noqa: E501 - :type: str - """ - if internal_name is None: - raise ValueError("Invalid value for `internal_name`, must not be `None`") # noqa: E501 - - self._internal_name = internal_name - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(TableDto, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, TableDto): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/swagger/api-database/swagger_client/models/user_brief_dto.py b/swagger/api-database/swagger_client/models/user_brief_dto.py deleted file mode 100644 index 8803ecc7bd620090e37f9ede772206c9e2d9b35c..0000000000000000000000000000000000000000 --- a/swagger/api-database/swagger_client/models/user_brief_dto.py +++ /dev/null @@ -1,350 +0,0 @@ -# coding: utf-8 - -""" - Database Repository Database Service API - - Service that manages the databases # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -import pprint -import re # noqa: F401 - -import six - -class UserBriefDto(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'id': 'int', - 'username': 'str', - 'firstname': 'str', - 'lastname': 'str', - 'affiliation': 'str', - 'orcid': 'str', - 'titles_before': 'str', - 'titles_after': 'str', - 'theme_dark': 'bool', - 'email_verified': 'bool' - } - - attribute_map = { - 'id': 'id', - 'username': 'username', - 'firstname': 'firstname', - 'lastname': 'lastname', - 'affiliation': 'affiliation', - 'orcid': 'orcid', - 'titles_before': 'titles_before', - 'titles_after': 'titles_after', - 'theme_dark': 'theme_dark', - 'email_verified': 'email_verified' - } - - def __init__(self, id=None, username=None, firstname=None, lastname=None, affiliation=None, orcid=None, titles_before=None, titles_after=None, theme_dark=None, email_verified=None): # noqa: E501 - """UserBriefDto - a model defined in Swagger""" # noqa: E501 - self._id = None - self._username = None - self._firstname = None - self._lastname = None - self._affiliation = None - self._orcid = None - self._titles_before = None - self._titles_after = None - self._theme_dark = None - self._email_verified = None - self.discriminator = None - self.id = id - self.username = username - if firstname is not None: - self.firstname = firstname - if lastname is not None: - self.lastname = lastname - if affiliation is not None: - self.affiliation = affiliation - if orcid is not None: - self.orcid = orcid - if titles_before is not None: - self.titles_before = titles_before - if titles_after is not None: - self.titles_after = titles_after - self.theme_dark = theme_dark - self.email_verified = email_verified - - @property - def id(self): - """Gets the id of this UserBriefDto. # noqa: E501 - - - :return: The id of this UserBriefDto. # noqa: E501 - :rtype: int - """ - return self._id - - @id.setter - def id(self, id): - """Sets the id of this UserBriefDto. - - - :param id: The id of this UserBriefDto. # noqa: E501 - :type: int - """ - if id is None: - raise ValueError("Invalid value for `id`, must not be `None`") # noqa: E501 - - self._id = id - - @property - def username(self): - """Gets the username of this UserBriefDto. # noqa: E501 - - Only contains lowercase characters # noqa: E501 - - :return: The username of this UserBriefDto. # noqa: E501 - :rtype: str - """ - return self._username - - @username.setter - def username(self, username): - """Sets the username of this UserBriefDto. - - Only contains lowercase characters # noqa: E501 - - :param username: The username of this UserBriefDto. # noqa: E501 - :type: str - """ - if username is None: - raise ValueError("Invalid value for `username`, must not be `None`") # noqa: E501 - - self._username = username - - @property - def firstname(self): - """Gets the firstname of this UserBriefDto. # noqa: E501 - - - :return: The firstname of this UserBriefDto. # noqa: E501 - :rtype: str - """ - return self._firstname - - @firstname.setter - def firstname(self, firstname): - """Sets the firstname of this UserBriefDto. - - - :param firstname: The firstname of this UserBriefDto. # noqa: E501 - :type: str - """ - - self._firstname = firstname - - @property - def lastname(self): - """Gets the lastname of this UserBriefDto. # noqa: E501 - - - :return: The lastname of this UserBriefDto. # noqa: E501 - :rtype: str - """ - return self._lastname - - @lastname.setter - def lastname(self, lastname): - """Sets the lastname of this UserBriefDto. - - - :param lastname: The lastname of this UserBriefDto. # noqa: E501 - :type: str - """ - - self._lastname = lastname - - @property - def affiliation(self): - """Gets the affiliation of this UserBriefDto. # noqa: E501 - - - :return: The affiliation of this UserBriefDto. # noqa: E501 - :rtype: str - """ - return self._affiliation - - @affiliation.setter - def affiliation(self, affiliation): - """Sets the affiliation of this UserBriefDto. - - - :param affiliation: The affiliation of this UserBriefDto. # noqa: E501 - :type: str - """ - - self._affiliation = affiliation - - @property - def orcid(self): - """Gets the orcid of this UserBriefDto. # noqa: E501 - - - :return: The orcid of this UserBriefDto. # noqa: E501 - :rtype: str - """ - return self._orcid - - @orcid.setter - def orcid(self, orcid): - """Sets the orcid of this UserBriefDto. - - - :param orcid: The orcid of this UserBriefDto. # noqa: E501 - :type: str - """ - - self._orcid = orcid - - @property - def titles_before(self): - """Gets the titles_before of this UserBriefDto. # noqa: E501 - - - :return: The titles_before of this UserBriefDto. # noqa: E501 - :rtype: str - """ - return self._titles_before - - @titles_before.setter - def titles_before(self, titles_before): - """Sets the titles_before of this UserBriefDto. - - - :param titles_before: The titles_before of this UserBriefDto. # noqa: E501 - :type: str - """ - - self._titles_before = titles_before - - @property - def titles_after(self): - """Gets the titles_after of this UserBriefDto. # noqa: E501 - - - :return: The titles_after of this UserBriefDto. # noqa: E501 - :rtype: str - """ - return self._titles_after - - @titles_after.setter - def titles_after(self, titles_after): - """Sets the titles_after of this UserBriefDto. - - - :param titles_after: The titles_after of this UserBriefDto. # noqa: E501 - :type: str - """ - - self._titles_after = titles_after - - @property - def theme_dark(self): - """Gets the theme_dark of this UserBriefDto. # noqa: E501 - - - :return: The theme_dark of this UserBriefDto. # noqa: E501 - :rtype: bool - """ - return self._theme_dark - - @theme_dark.setter - def theme_dark(self, theme_dark): - """Sets the theme_dark of this UserBriefDto. - - - :param theme_dark: The theme_dark of this UserBriefDto. # noqa: E501 - :type: bool - """ - if theme_dark is None: - raise ValueError("Invalid value for `theme_dark`, must not be `None`") # noqa: E501 - - self._theme_dark = theme_dark - - @property - def email_verified(self): - """Gets the email_verified of this UserBriefDto. # noqa: E501 - - - :return: The email_verified of this UserBriefDto. # noqa: E501 - :rtype: bool - """ - return self._email_verified - - @email_verified.setter - def email_verified(self, email_verified): - """Sets the email_verified of this UserBriefDto. - - - :param email_verified: The email_verified of this UserBriefDto. # noqa: E501 - :type: bool - """ - if email_verified is None: - raise ValueError("Invalid value for `email_verified`, must not be `None`") # noqa: E501 - - self._email_verified = email_verified - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(UserBriefDto, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, UserBriefDto): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/swagger/api-database/swagger_client/models/user_dto.py b/swagger/api-database/swagger_client/models/user_dto.py deleted file mode 100644 index 46206a4a60b0d254b5f407d9a758a1ca87199bb0..0000000000000000000000000000000000000000 --- a/swagger/api-database/swagger_client/models/user_dto.py +++ /dev/null @@ -1,481 +0,0 @@ -# coding: utf-8 - -""" - Database Repository Database Service API - - Service that manages the databases # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -import pprint -import re # noqa: F401 - -import six - -class UserDto(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'id': 'int', - 'authorities': 'list[GrantedAuthorityDto]', - 'username': 'str', - 'firstname': 'str', - 'lastname': 'str', - 'affiliation': 'str', - 'orcid': 'str', - 'containers': 'list[ContainerDto]', - 'databases': 'list[ContainerDto]', - 'identifiers': 'list[ContainerDto]', - 'email': 'str', - 'titles_before': 'str', - 'titles_after': 'str', - 'theme_dark': 'bool', - 'email_verified': 'bool' - } - - attribute_map = { - 'id': 'id', - 'authorities': 'authorities', - 'username': 'username', - 'firstname': 'firstname', - 'lastname': 'lastname', - 'affiliation': 'affiliation', - 'orcid': 'orcid', - 'containers': 'containers', - 'databases': 'databases', - 'identifiers': 'identifiers', - 'email': 'email', - 'titles_before': 'titles_before', - 'titles_after': 'titles_after', - 'theme_dark': 'theme_dark', - 'email_verified': 'email_verified' - } - - def __init__(self, id=None, authorities=None, username=None, firstname=None, lastname=None, affiliation=None, orcid=None, containers=None, databases=None, identifiers=None, email=None, titles_before=None, titles_after=None, theme_dark=None, email_verified=None): # noqa: E501 - """UserDto - a model defined in Swagger""" # noqa: E501 - self._id = None - self._authorities = None - self._username = None - self._firstname = None - self._lastname = None - self._affiliation = None - self._orcid = None - self._containers = None - self._databases = None - self._identifiers = None - self._email = None - self._titles_before = None - self._titles_after = None - self._theme_dark = None - self._email_verified = None - self.discriminator = None - self.id = id - if authorities is not None: - self.authorities = authorities - self.username = username - if firstname is not None: - self.firstname = firstname - if lastname is not None: - self.lastname = lastname - if affiliation is not None: - self.affiliation = affiliation - if orcid is not None: - self.orcid = orcid - if containers is not None: - self.containers = containers - if databases is not None: - self.databases = databases - if identifiers is not None: - self.identifiers = identifiers - self.email = email - if titles_before is not None: - self.titles_before = titles_before - if titles_after is not None: - self.titles_after = titles_after - self.theme_dark = theme_dark - self.email_verified = email_verified - - @property - def id(self): - """Gets the id of this UserDto. # noqa: E501 - - - :return: The id of this UserDto. # noqa: E501 - :rtype: int - """ - return self._id - - @id.setter - def id(self, id): - """Sets the id of this UserDto. - - - :param id: The id of this UserDto. # noqa: E501 - :type: int - """ - if id is None: - raise ValueError("Invalid value for `id`, must not be `None`") # noqa: E501 - - self._id = id - - @property - def authorities(self): - """Gets the authorities of this UserDto. # noqa: E501 - - - :return: The authorities of this UserDto. # noqa: E501 - :rtype: list[GrantedAuthorityDto] - """ - return self._authorities - - @authorities.setter - def authorities(self, authorities): - """Sets the authorities of this UserDto. - - - :param authorities: The authorities of this UserDto. # noqa: E501 - :type: list[GrantedAuthorityDto] - """ - - self._authorities = authorities - - @property - def username(self): - """Gets the username of this UserDto. # noqa: E501 - - Only contains lowercase characters # noqa: E501 - - :return: The username of this UserDto. # noqa: E501 - :rtype: str - """ - return self._username - - @username.setter - def username(self, username): - """Sets the username of this UserDto. - - Only contains lowercase characters # noqa: E501 - - :param username: The username of this UserDto. # noqa: E501 - :type: str - """ - if username is None: - raise ValueError("Invalid value for `username`, must not be `None`") # noqa: E501 - - self._username = username - - @property - def firstname(self): - """Gets the firstname of this UserDto. # noqa: E501 - - - :return: The firstname of this UserDto. # noqa: E501 - :rtype: str - """ - return self._firstname - - @firstname.setter - def firstname(self, firstname): - """Sets the firstname of this UserDto. - - - :param firstname: The firstname of this UserDto. # noqa: E501 - :type: str - """ - - self._firstname = firstname - - @property - def lastname(self): - """Gets the lastname of this UserDto. # noqa: E501 - - - :return: The lastname of this UserDto. # noqa: E501 - :rtype: str - """ - return self._lastname - - @lastname.setter - def lastname(self, lastname): - """Sets the lastname of this UserDto. - - - :param lastname: The lastname of this UserDto. # noqa: E501 - :type: str - """ - - self._lastname = lastname - - @property - def affiliation(self): - """Gets the affiliation of this UserDto. # noqa: E501 - - - :return: The affiliation of this UserDto. # noqa: E501 - :rtype: str - """ - return self._affiliation - - @affiliation.setter - def affiliation(self, affiliation): - """Sets the affiliation of this UserDto. - - - :param affiliation: The affiliation of this UserDto. # noqa: E501 - :type: str - """ - - self._affiliation = affiliation - - @property - def orcid(self): - """Gets the orcid of this UserDto. # noqa: E501 - - - :return: The orcid of this UserDto. # noqa: E501 - :rtype: str - """ - return self._orcid - - @orcid.setter - def orcid(self, orcid): - """Sets the orcid of this UserDto. - - - :param orcid: The orcid of this UserDto. # noqa: E501 - :type: str - """ - - self._orcid = orcid - - @property - def containers(self): - """Gets the containers of this UserDto. # noqa: E501 - - - :return: The containers of this UserDto. # noqa: E501 - :rtype: list[ContainerDto] - """ - return self._containers - - @containers.setter - def containers(self, containers): - """Sets the containers of this UserDto. - - - :param containers: The containers of this UserDto. # noqa: E501 - :type: list[ContainerDto] - """ - - self._containers = containers - - @property - def databases(self): - """Gets the databases of this UserDto. # noqa: E501 - - - :return: The databases of this UserDto. # noqa: E501 - :rtype: list[ContainerDto] - """ - return self._databases - - @databases.setter - def databases(self, databases): - """Sets the databases of this UserDto. - - - :param databases: The databases of this UserDto. # noqa: E501 - :type: list[ContainerDto] - """ - - self._databases = databases - - @property - def identifiers(self): - """Gets the identifiers of this UserDto. # noqa: E501 - - - :return: The identifiers of this UserDto. # noqa: E501 - :rtype: list[ContainerDto] - """ - return self._identifiers - - @identifiers.setter - def identifiers(self, identifiers): - """Sets the identifiers of this UserDto. - - - :param identifiers: The identifiers of this UserDto. # noqa: E501 - :type: list[ContainerDto] - """ - - self._identifiers = identifiers - - @property - def email(self): - """Gets the email of this UserDto. # noqa: E501 - - - :return: The email of this UserDto. # noqa: E501 - :rtype: str - """ - return self._email - - @email.setter - def email(self, email): - """Sets the email of this UserDto. - - - :param email: The email of this UserDto. # noqa: E501 - :type: str - """ - if email is None: - raise ValueError("Invalid value for `email`, must not be `None`") # noqa: E501 - - self._email = email - - @property - def titles_before(self): - """Gets the titles_before of this UserDto. # noqa: E501 - - - :return: The titles_before of this UserDto. # noqa: E501 - :rtype: str - """ - return self._titles_before - - @titles_before.setter - def titles_before(self, titles_before): - """Sets the titles_before of this UserDto. - - - :param titles_before: The titles_before of this UserDto. # noqa: E501 - :type: str - """ - - self._titles_before = titles_before - - @property - def titles_after(self): - """Gets the titles_after of this UserDto. # noqa: E501 - - - :return: The titles_after of this UserDto. # noqa: E501 - :rtype: str - """ - return self._titles_after - - @titles_after.setter - def titles_after(self, titles_after): - """Sets the titles_after of this UserDto. - - - :param titles_after: The titles_after of this UserDto. # noqa: E501 - :type: str - """ - - self._titles_after = titles_after - - @property - def theme_dark(self): - """Gets the theme_dark of this UserDto. # noqa: E501 - - - :return: The theme_dark of this UserDto. # noqa: E501 - :rtype: bool - """ - return self._theme_dark - - @theme_dark.setter - def theme_dark(self, theme_dark): - """Sets the theme_dark of this UserDto. - - - :param theme_dark: The theme_dark of this UserDto. # noqa: E501 - :type: bool - """ - if theme_dark is None: - raise ValueError("Invalid value for `theme_dark`, must not be `None`") # noqa: E501 - - self._theme_dark = theme_dark - - @property - def email_verified(self): - """Gets the email_verified of this UserDto. # noqa: E501 - - - :return: The email_verified of this UserDto. # noqa: E501 - :rtype: bool - """ - return self._email_verified - - @email_verified.setter - def email_verified(self, email_verified): - """Sets the email_verified of this UserDto. - - - :param email_verified: The email_verified of this UserDto. # noqa: E501 - :type: bool - """ - if email_verified is None: - raise ValueError("Invalid value for `email_verified`, must not be `None`") # noqa: E501 - - self._email_verified = email_verified - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(UserDto, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, UserDto): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/swagger/api-database/swagger_client/rest.py b/swagger/api-database/swagger_client/rest.py deleted file mode 100644 index b0660ec0a57a3bb1d61c28f5f2fd0f00aefbe03c..0000000000000000000000000000000000000000 --- a/swagger/api-database/swagger_client/rest.py +++ /dev/null @@ -1,317 +0,0 @@ -# coding: utf-8 - -""" - Database Repository Database Service API - - Service that manages the databases # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -from __future__ import absolute_import - -import io -import json -import logging -import re -import ssl - -import certifi -# python 2 and python 3 compatibility library -import six -from six.moves.urllib.parse import urlencode - -try: - import urllib3 -except ImportError: - raise ImportError('Swagger python client requires urllib3.') - - -logger = logging.getLogger(__name__) - - -class RESTResponse(io.IOBase): - - def __init__(self, resp): - self.urllib3_response = resp - self.status = resp.status - self.reason = resp.reason - self.data = resp.data - - def getheaders(self): - """Returns a dictionary of the response headers.""" - return self.urllib3_response.getheaders() - - def getheader(self, name, default=None): - """Returns a given response header.""" - return self.urllib3_response.getheader(name, default) - - -class RESTClientObject(object): - - def __init__(self, configuration, pools_size=4, maxsize=None): - # urllib3.PoolManager will pass all kw parameters to connectionpool - # https://github.com/shazow/urllib3/blob/f9409436f83aeb79fbaf090181cd81b784f1b8ce/urllib3/poolmanager.py#L75 # noqa: E501 - # https://github.com/shazow/urllib3/blob/f9409436f83aeb79fbaf090181cd81b784f1b8ce/urllib3/connectionpool.py#L680 # noqa: E501 - # maxsize is the number of requests to host that are allowed in parallel # noqa: E501 - # Custom SSL certificates and client certificates: http://urllib3.readthedocs.io/en/latest/advanced-usage.html # noqa: E501 - - # cert_reqs - if configuration.verify_ssl: - cert_reqs = ssl.CERT_REQUIRED - else: - cert_reqs = ssl.CERT_NONE - - # ca_certs - if configuration.ssl_ca_cert: - ca_certs = configuration.ssl_ca_cert - else: - # if not set certificate file, use Mozilla's root certificates. - ca_certs = certifi.where() - - addition_pool_args = {} - if configuration.assert_hostname is not None: - addition_pool_args['assert_hostname'] = configuration.assert_hostname # noqa: E501 - - if maxsize is None: - if configuration.connection_pool_maxsize is not None: - maxsize = configuration.connection_pool_maxsize - else: - maxsize = 4 - - # https pool manager - if configuration.proxy: - self.pool_manager = urllib3.ProxyManager( - num_pools=pools_size, - maxsize=maxsize, - cert_reqs=cert_reqs, - ca_certs=ca_certs, - cert_file=configuration.cert_file, - key_file=configuration.key_file, - proxy_url=configuration.proxy, - **addition_pool_args - ) - else: - self.pool_manager = urllib3.PoolManager( - num_pools=pools_size, - maxsize=maxsize, - cert_reqs=cert_reqs, - ca_certs=ca_certs, - cert_file=configuration.cert_file, - key_file=configuration.key_file, - **addition_pool_args - ) - - def request(self, method, url, query_params=None, headers=None, - body=None, post_params=None, _preload_content=True, - _request_timeout=None): - """Perform requests. - - :param method: http request method - :param url: http request url - :param query_params: query parameters in the url - :param headers: http request headers - :param body: request json body, for `application/json` - :param post_params: request post parameters, - `application/x-www-form-urlencoded` - and `multipart/form-data` - :param _preload_content: if False, the urllib3.HTTPResponse object will - be returned without reading/decoding response - data. Default is True. - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - """ - method = method.upper() - assert method in ['GET', 'HEAD', 'DELETE', 'POST', 'PUT', - 'PATCH', 'OPTIONS'] - - if post_params and body: - raise ValueError( - "body parameter cannot be used with post_params parameter." - ) - - post_params = post_params or {} - headers = headers or {} - - timeout = None - if _request_timeout: - if isinstance(_request_timeout, (int, ) if six.PY3 else (int, long)): # noqa: E501,F821 - timeout = urllib3.Timeout(total=_request_timeout) - elif (isinstance(_request_timeout, tuple) and - len(_request_timeout) == 2): - timeout = urllib3.Timeout( - connect=_request_timeout[0], read=_request_timeout[1]) - - if 'Content-Type' not in headers: - headers['Content-Type'] = 'application/json' - - try: - # For `POST`, `PUT`, `PATCH`, `OPTIONS`, `DELETE` - if method in ['POST', 'PUT', 'PATCH', 'OPTIONS', 'DELETE']: - if query_params: - url += '?' + urlencode(query_params) - if re.search('json', headers['Content-Type'], re.IGNORECASE): - request_body = '{}' - if body is not None: - request_body = json.dumps(body) - r = self.pool_manager.request( - method, url, - body=request_body, - preload_content=_preload_content, - timeout=timeout, - headers=headers) - elif headers['Content-Type'] == 'application/x-www-form-urlencoded': # noqa: E501 - r = self.pool_manager.request( - method, url, - fields=post_params, - encode_multipart=False, - preload_content=_preload_content, - timeout=timeout, - headers=headers) - elif headers['Content-Type'] == 'multipart/form-data': - # must del headers['Content-Type'], or the correct - # Content-Type which generated by urllib3 will be - # overwritten. - del headers['Content-Type'] - r = self.pool_manager.request( - method, url, - fields=post_params, - encode_multipart=True, - preload_content=_preload_content, - timeout=timeout, - headers=headers) - # Pass a `string` parameter directly in the body to support - # other content types than Json when `body` argument is - # provided in serialized form - elif isinstance(body, str): - request_body = body - r = self.pool_manager.request( - method, url, - body=request_body, - preload_content=_preload_content, - timeout=timeout, - headers=headers) - else: - # Cannot generate the request from given parameters - msg = """Cannot prepare a request message for provided - arguments. Please check that your arguments match - declared content type.""" - raise ApiException(status=0, reason=msg) - # For `GET`, `HEAD` - else: - r = self.pool_manager.request(method, url, - fields=query_params, - preload_content=_preload_content, - timeout=timeout, - headers=headers) - except urllib3.exceptions.SSLError as e: - msg = "{0}\n{1}".format(type(e).__name__, str(e)) - raise ApiException(status=0, reason=msg) - - if _preload_content: - r = RESTResponse(r) - - # log response body - logger.debug("response body: %s", r.data) - - if not 200 <= r.status <= 299: - raise ApiException(http_resp=r) - - return r - - def GET(self, url, headers=None, query_params=None, _preload_content=True, - _request_timeout=None): - return self.request("GET", url, - headers=headers, - _preload_content=_preload_content, - _request_timeout=_request_timeout, - query_params=query_params) - - def HEAD(self, url, headers=None, query_params=None, _preload_content=True, - _request_timeout=None): - return self.request("HEAD", url, - headers=headers, - _preload_content=_preload_content, - _request_timeout=_request_timeout, - query_params=query_params) - - def OPTIONS(self, url, headers=None, query_params=None, post_params=None, - body=None, _preload_content=True, _request_timeout=None): - return self.request("OPTIONS", url, - headers=headers, - query_params=query_params, - post_params=post_params, - _preload_content=_preload_content, - _request_timeout=_request_timeout, - body=body) - - def DELETE(self, url, headers=None, query_params=None, body=None, - _preload_content=True, _request_timeout=None): - return self.request("DELETE", url, - headers=headers, - query_params=query_params, - _preload_content=_preload_content, - _request_timeout=_request_timeout, - body=body) - - def POST(self, url, headers=None, query_params=None, post_params=None, - body=None, _preload_content=True, _request_timeout=None): - return self.request("POST", url, - headers=headers, - query_params=query_params, - post_params=post_params, - _preload_content=_preload_content, - _request_timeout=_request_timeout, - body=body) - - def PUT(self, url, headers=None, query_params=None, post_params=None, - body=None, _preload_content=True, _request_timeout=None): - return self.request("PUT", url, - headers=headers, - query_params=query_params, - post_params=post_params, - _preload_content=_preload_content, - _request_timeout=_request_timeout, - body=body) - - def PATCH(self, url, headers=None, query_params=None, post_params=None, - body=None, _preload_content=True, _request_timeout=None): - return self.request("PATCH", url, - headers=headers, - query_params=query_params, - post_params=post_params, - _preload_content=_preload_content, - _request_timeout=_request_timeout, - body=body) - - -class ApiException(Exception): - - def __init__(self, status=None, reason=None, http_resp=None): - if http_resp: - self.status = http_resp.status - self.reason = http_resp.reason - self.body = http_resp.data - self.headers = http_resp.getheaders() - else: - self.status = status - self.reason = reason - self.body = None - self.headers = None - - def __str__(self): - """Custom error messages for exception""" - error_message = "({0})\n"\ - "Reason: {1}\n".format(self.status, self.reason) - if self.headers: - error_message += "HTTP response headers: {0}\n".format( - self.headers) - - if self.body: - error_message += "HTTP response body: {0}\n".format(self.body) - - return error_message diff --git a/swagger/api-database/test-requirements.txt b/swagger/api-database/test-requirements.txt deleted file mode 100644 index 2702246c0e6f92a1c41c0960879e07da339e4b7d..0000000000000000000000000000000000000000 --- a/swagger/api-database/test-requirements.txt +++ /dev/null @@ -1,5 +0,0 @@ -coverage>=4.0.3 -nose>=1.3.7 -pluggy>=0.3.1 -py>=1.4.31 -randomize>=0.13 diff --git a/swagger/api-database/test/__init__.py b/swagger/api-database/test/__init__.py deleted file mode 100644 index e69de29bb2d1d6434b8b29ae775ad8c2e48c5391..0000000000000000000000000000000000000000 diff --git a/swagger/api-database/test/test_api_error_dto.py b/swagger/api-database/test/test_api_error_dto.py deleted file mode 100644 index 78acbe0daa0706b14c2d8532afb69d02fe87fc12..0000000000000000000000000000000000000000 --- a/swagger/api-database/test/test_api_error_dto.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Database Repository Database Service API - - Service that manages the databases # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -from __future__ import absolute_import - -import unittest - -import api_container -from api_container.models.api_error_dto import ApiErrorDto # noqa: E501 -from api_container.rest import ApiException - - -class TestApiErrorDto(unittest.TestCase): - """ApiErrorDto unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testApiErrorDto(self): - """Test ApiErrorDto""" - # FIXME: construct object with mandatory attributes with example values - # model = api_container.models.api_error_dto.ApiErrorDto() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/swagger/api-database/test/test_column_dto.py b/swagger/api-database/test/test_column_dto.py deleted file mode 100644 index f02ebf8923e52aa167a9fa749a28a858df1ed339..0000000000000000000000000000000000000000 --- a/swagger/api-database/test/test_column_dto.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Database Repository Database Service API - - Service that manages the databases # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -from __future__ import absolute_import - -import unittest - -import api_container -from api_container.models.column_dto import ColumnDto # noqa: E501 -from api_container.rest import ApiException - - -class TestColumnDto(unittest.TestCase): - """ColumnDto unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testColumnDto(self): - """Test ColumnDto""" - # FIXME: construct object with mandatory attributes with example values - # model = api_container.models.column_dto.ColumnDto() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/swagger/api-database/test/test_concept_dto.py b/swagger/api-database/test/test_concept_dto.py deleted file mode 100644 index 7ac5bef9fb6d6db6cb09010fe864fb6eb97043c8..0000000000000000000000000000000000000000 --- a/swagger/api-database/test/test_concept_dto.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Database Repository Database Service API - - Service that manages the databases # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -from __future__ import absolute_import - -import unittest - -import api_container -from api_container.models.concept_dto import ConceptDto # noqa: E501 -from api_container.rest import ApiException - - -class TestConceptDto(unittest.TestCase): - """ConceptDto unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testConceptDto(self): - """Test ConceptDto""" - # FIXME: construct object with mandatory attributes with example values - # model = api_container.models.concept_dto.ConceptDto() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/swagger/api-database/test/test_container_brief_dto.py b/swagger/api-database/test/test_container_brief_dto.py deleted file mode 100644 index 6a63a47ff1821536a4cb5a8fcbbd9f3ec6568bd7..0000000000000000000000000000000000000000 --- a/swagger/api-database/test/test_container_brief_dto.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Database Repository Database Service API - - Service that manages the databases # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -from __future__ import absolute_import - -import unittest - -import swagger_client -from swagger_client.models.container_brief_dto import ContainerBriefDto # noqa: E501 -from swagger_client.rest import ApiException - - -class TestContainerBriefDto(unittest.TestCase): - """ContainerBriefDto unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testContainerBriefDto(self): - """Test ContainerBriefDto""" - # FIXME: construct object with mandatory attributes with example values - # model = swagger_client.models.container_brief_dto.ContainerBriefDto() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/swagger/api-database/test/test_container_database_endpoint_api.py b/swagger/api-database/test/test_container_database_endpoint_api.py deleted file mode 100644 index 76fcae0e0a6156b7a44c3dda2907a76e0a7bcda6..0000000000000000000000000000000000000000 --- a/swagger/api-database/test/test_container_database_endpoint_api.py +++ /dev/null @@ -1,68 +0,0 @@ -# coding: utf-8 - -""" - Database Repository Database Service API - - Service that manages the databases # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -from __future__ import absolute_import - -import unittest - -import api_container -from api_container.api.container_database_endpoint_api import ContainerDatabaseEndpointApi # noqa: E501 -from api_container.rest import ApiException - - -class TestContainerDatabaseEndpointApi(unittest.TestCase): - """ContainerDatabaseEndpointApi unit test stubs""" - - def setUp(self): - self.api = ContainerDatabaseEndpointApi() # noqa: E501 - - def tearDown(self): - pass - - def test_create(self): - """Test case for create - - Create database # noqa: E501 - """ - pass - - def test_delete(self): - """Test case for delete - - Delete some database # noqa: E501 - """ - pass - - def test_find_all(self): - """Test case for find_all - - List databases # noqa: E501 - """ - pass - - def test_find_by_id(self): - """Test case for find_by_id - - Find some database # noqa: E501 - """ - pass - - def test_update(self): - """Test case for update - - Update database # noqa: E501 - """ - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/swagger/api-database/test/test_container_dto.py b/swagger/api-database/test/test_container_dto.py deleted file mode 100644 index 342ea3dce90edb617c2733d72e5a4a6802bbb192..0000000000000000000000000000000000000000 --- a/swagger/api-database/test/test_container_dto.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Database Repository Database Service API - - Service that manages the databases # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -from __future__ import absolute_import - -import unittest - -import api_container -from api_container.models.container_dto import ContainerDto # noqa: E501 -from api_container.rest import ApiException - - -class TestContainerDto(unittest.TestCase): - """ContainerDto unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testContainerDto(self): - """Test ContainerDto""" - # FIXME: construct object with mandatory attributes with example values - # model = api_container.models.container_dto.ContainerDto() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/swagger/api-database/test/test_database_brief_dto.py b/swagger/api-database/test/test_database_brief_dto.py deleted file mode 100644 index a4c98bd070bdbf300fad0655d4c5cced56a90ac2..0000000000000000000000000000000000000000 --- a/swagger/api-database/test/test_database_brief_dto.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Database Repository Database Service API - - Service that manages the databases # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -from __future__ import absolute_import - -import unittest - -import api_container -from api_container.models.database_brief_dto import DatabaseBriefDto # noqa: E501 -from api_container.rest import ApiException - - -class TestDatabaseBriefDto(unittest.TestCase): - """DatabaseBriefDto unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testDatabaseBriefDto(self): - """Test DatabaseBriefDto""" - # FIXME: construct object with mandatory attributes with example values - # model = api_container.models.database_brief_dto.DatabaseBriefDto() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/swagger/api-database/test/test_database_create_dto.py b/swagger/api-database/test/test_database_create_dto.py deleted file mode 100644 index 91e69cc2189eafd43e2e54846b4522247859b879..0000000000000000000000000000000000000000 --- a/swagger/api-database/test/test_database_create_dto.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Database Repository Database Service API - - Service that manages the databases # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -from __future__ import absolute_import - -import unittest - -import api_container -from api_container.models.database_create_dto import DatabaseCreateDto # noqa: E501 -from api_container.rest import ApiException - - -class TestDatabaseCreateDto(unittest.TestCase): - """DatabaseCreateDto unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testDatabaseCreateDto(self): - """Test DatabaseCreateDto""" - # FIXME: construct object with mandatory attributes with example values - # model = api_container.models.database_create_dto.DatabaseCreateDto() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/swagger/api-database/test/test_database_dto.py b/swagger/api-database/test/test_database_dto.py deleted file mode 100644 index 9e3303437619d2f13ad6c883cb34ce9184adad3c..0000000000000000000000000000000000000000 --- a/swagger/api-database/test/test_database_dto.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Database Repository Database Service API - - Service that manages the databases # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -from __future__ import absolute_import - -import unittest - -import api_container -from api_container.models.database_dto import DatabaseDto # noqa: E501 -from api_container.rest import ApiException - - -class TestDatabaseDto(unittest.TestCase): - """DatabaseDto unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testDatabaseDto(self): - """Test DatabaseDto""" - # FIXME: construct object with mandatory attributes with example values - # model = api_container.models.database_dto.DatabaseDto() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/swagger/api-database/test/test_database_endpoint_api.py b/swagger/api-database/test/test_database_endpoint_api.py deleted file mode 100644 index e28087e37ec635bfea9b923d52cf4342355874ea..0000000000000000000000000000000000000000 --- a/swagger/api-database/test/test_database_endpoint_api.py +++ /dev/null @@ -1,75 +0,0 @@ -# coding: utf-8 - -""" - Database Repository Database Service API - - Service that manages the databases # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -from __future__ import absolute_import - -import unittest - -import swagger_client -from swagger_client.api.database_endpoint_api import DatabaseEndpointApi # noqa: E501 -from swagger_client.rest import ApiException - - -class TestDatabaseEndpointApi(unittest.TestCase): - """DatabaseEndpointApi unit test stubs""" - - def setUp(self): - self.api = DatabaseEndpointApi() # noqa: E501 - - def tearDown(self): - pass - - def test_create(self): - """Test case for create - - Create database # noqa: E501 - """ - pass - - def test_delete1(self): - """Test case for delete1 - - Delete some database # noqa: E501 - """ - pass - - def test_find_all(self): - """Test case for find_all - - List databases # noqa: E501 - """ - pass - - def test_find_by_id(self): - """Test case for find_by_id - - Find some database # noqa: E501 - """ - pass - - def test_transfer(self): - """Test case for transfer - - Update database # noqa: E501 - """ - pass - - def test_update(self): - """Test case for update - - Update database # noqa: E501 - """ - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/swagger/api-database/test/test_database_modify_dto.py b/swagger/api-database/test/test_database_modify_dto.py deleted file mode 100644 index d0270a3b9e89069d321b9d1026f11682b4a41855..0000000000000000000000000000000000000000 --- a/swagger/api-database/test/test_database_modify_dto.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Database Repository Database Service API - - Service that manages the databases # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -from __future__ import absolute_import - -import unittest - -import api_container -from api_container.models.database_modify_dto import DatabaseModifyDto # noqa: E501 -from api_container.rest import ApiException - - -class TestDatabaseModifyDto(unittest.TestCase): - """DatabaseModifyDto unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testDatabaseModifyDto(self): - """Test DatabaseModifyDto""" - # FIXME: construct object with mandatory attributes with example values - # model = api_container.models.database_modify_dto.DatabaseModifyDto() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/swagger/api-database/test/test_database_transfer_dto.py b/swagger/api-database/test/test_database_transfer_dto.py deleted file mode 100644 index 847bf13ca9a7c74ead49dc9d2f549b13a552c45b..0000000000000000000000000000000000000000 --- a/swagger/api-database/test/test_database_transfer_dto.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Database Repository Database Service API - - Service that manages the databases # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -from __future__ import absolute_import - -import unittest - -import swagger_client -from swagger_client.models.database_transfer_dto import DatabaseTransferDto # noqa: E501 -from swagger_client.rest import ApiException - - -class TestDatabaseTransferDto(unittest.TestCase): - """DatabaseTransferDto unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testDatabaseTransferDto(self): - """Test DatabaseTransferDto""" - # FIXME: construct object with mandatory attributes with example values - # model = swagger_client.models.database_transfer_dto.DatabaseTransferDto() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/swagger/api-database/test/test_granted_authority_dto.py b/swagger/api-database/test/test_granted_authority_dto.py deleted file mode 100644 index f6d45d611760631f2e565d718b70bd5c84940c4e..0000000000000000000000000000000000000000 --- a/swagger/api-database/test/test_granted_authority_dto.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Database Repository Database Service API - - Service that manages the databases # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -from __future__ import absolute_import - -import unittest - -import api_container -from api_container.models.granted_authority_dto import GrantedAuthorityDto # noqa: E501 -from api_container.rest import ApiException - - -class TestGrantedAuthorityDto(unittest.TestCase): - """GrantedAuthorityDto unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testGrantedAuthorityDto(self): - """Test GrantedAuthorityDto""" - # FIXME: construct object with mandatory attributes with example values - # model = api_container.models.granted_authority_dto.GrantedAuthorityDto() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/swagger/api-database/test/test_image_brief_dto.py b/swagger/api-database/test/test_image_brief_dto.py deleted file mode 100644 index 66fd961902175d2a71f5f706041747f037e4ec49..0000000000000000000000000000000000000000 --- a/swagger/api-database/test/test_image_brief_dto.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Database Repository Database Service API - - Service that manages the databases # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -from __future__ import absolute_import - -import unittest - -import swagger_client -from swagger_client.models.image_brief_dto import ImageBriefDto # noqa: E501 -from swagger_client.rest import ApiException - - -class TestImageBriefDto(unittest.TestCase): - """ImageBriefDto unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testImageBriefDto(self): - """Test ImageBriefDto""" - # FIXME: construct object with mandatory attributes with example values - # model = swagger_client.models.image_brief_dto.ImageBriefDto() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/swagger/api-database/test/test_image_date_dto.py b/swagger/api-database/test/test_image_date_dto.py deleted file mode 100644 index ec2682458a622bc782651d2a87f01974570b1440..0000000000000000000000000000000000000000 --- a/swagger/api-database/test/test_image_date_dto.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Database Repository Database Service API - - Service that manages the databases # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -from __future__ import absolute_import - -import unittest - -import api_container -from api_container.models.image_date_dto import ImageDateDto # noqa: E501 -from api_container.rest import ApiException - - -class TestImageDateDto(unittest.TestCase): - """ImageDateDto unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testImageDateDto(self): - """Test ImageDateDto""" - # FIXME: construct object with mandatory attributes with example values - # model = api_container.models.image_date_dto.ImageDateDto() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/swagger/api-database/test/test_image_dto.py b/swagger/api-database/test/test_image_dto.py deleted file mode 100644 index e4714919c36c4e47b1507c963c49db9177c03b76..0000000000000000000000000000000000000000 --- a/swagger/api-database/test/test_image_dto.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Database Repository Database Service API - - Service that manages the databases # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -from __future__ import absolute_import - -import unittest - -import api_container -from api_container.models.image_dto import ImageDto # noqa: E501 -from api_container.rest import ApiException - - -class TestImageDto(unittest.TestCase): - """ImageDto unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testImageDto(self): - """Test ImageDto""" - # FIXME: construct object with mandatory attributes with example values - # model = api_container.models.image_dto.ImageDto() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/swagger/api-database/test/test_image_env_item_dto.py b/swagger/api-database/test/test_image_env_item_dto.py deleted file mode 100644 index b7a7ae6cf9fa3e24018b309e790f866403c9103f..0000000000000000000000000000000000000000 --- a/swagger/api-database/test/test_image_env_item_dto.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Database Repository Database Service API - - Service that manages the databases # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -from __future__ import absolute_import - -import unittest - -import api_container -from api_container.models.image_env_item_dto import ImageEnvItemDto # noqa: E501 -from api_container.rest import ApiException - - -class TestImageEnvItemDto(unittest.TestCase): - """ImageEnvItemDto unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testImageEnvItemDto(self): - """Test ImageEnvItemDto""" - # FIXME: construct object with mandatory attributes with example values - # model = api_container.models.image_env_item_dto.ImageEnvItemDto() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/swagger/api-database/test/test_license_dto.py b/swagger/api-database/test/test_license_dto.py deleted file mode 100644 index c65e209ec071eab5267cf06c2c380515002f159c..0000000000000000000000000000000000000000 --- a/swagger/api-database/test/test_license_dto.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Database Repository Database Service API - - Service that manages the databases # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -from __future__ import absolute_import - -import unittest - -import swagger_client -from swagger_client.models.license_dto import LicenseDto # noqa: E501 -from swagger_client.rest import ApiException - - -class TestLicenseDto(unittest.TestCase): - """LicenseDto unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testLicenseDto(self): - """Test LicenseDto""" - # FIXME: construct object with mandatory attributes with example values - # model = swagger_client.models.license_dto.LicenseDto() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/swagger/api-database/test/test_license_endpoint_api.py b/swagger/api-database/test/test_license_endpoint_api.py deleted file mode 100644 index ceec1b0bee64a8de48bfd477fcfc5be949344cb0..0000000000000000000000000000000000000000 --- a/swagger/api-database/test/test_license_endpoint_api.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - Database Repository Database Service API - - Service that manages the databases # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -from __future__ import absolute_import - -import unittest - -import swagger_client -from swagger_client.api.license_endpoint_api import LicenseEndpointApi # noqa: E501 -from swagger_client.rest import ApiException - - -class TestLicenseEndpointApi(unittest.TestCase): - """LicenseEndpointApi unit test stubs""" - - def setUp(self): - self.api = LicenseEndpointApi() # noqa: E501 - - def tearDown(self): - pass - - def test_delete(self): - """Test case for delete - - Get all licenses # noqa: E501 - """ - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/swagger/api-database/test/test_table_brief_dto.py b/swagger/api-database/test/test_table_brief_dto.py deleted file mode 100644 index 9efd1ca360c178a67d77a53a5e97ace30c87f433..0000000000000000000000000000000000000000 --- a/swagger/api-database/test/test_table_brief_dto.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Database Repository Database Service API - - Service that manages the databases # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -from __future__ import absolute_import - -import unittest - -import swagger_client -from swagger_client.models.table_brief_dto import TableBriefDto # noqa: E501 -from swagger_client.rest import ApiException - - -class TestTableBriefDto(unittest.TestCase): - """TableBriefDto unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testTableBriefDto(self): - """Test TableBriefDto""" - # FIXME: construct object with mandatory attributes with example values - # model = swagger_client.models.table_brief_dto.TableBriefDto() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/swagger/api-database/test/test_table_dto.py b/swagger/api-database/test/test_table_dto.py deleted file mode 100644 index 6577054cf40aaa4c5c1e5bfb705e6c0967218718..0000000000000000000000000000000000000000 --- a/swagger/api-database/test/test_table_dto.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Database Repository Database Service API - - Service that manages the databases # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -from __future__ import absolute_import - -import unittest - -import api_container -from api_container.models.table_dto import TableDto # noqa: E501 -from api_container.rest import ApiException - - -class TestTableDto(unittest.TestCase): - """TableDto unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testTableDto(self): - """Test TableDto""" - # FIXME: construct object with mandatory attributes with example values - # model = api_container.models.table_dto.TableDto() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/swagger/api-database/test/test_user_brief_dto.py b/swagger/api-database/test/test_user_brief_dto.py deleted file mode 100644 index a3ff1e4d1c61b63953c8e0225ed65e6645c2a14f..0000000000000000000000000000000000000000 --- a/swagger/api-database/test/test_user_brief_dto.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Database Repository Database Service API - - Service that manages the databases # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -from __future__ import absolute_import - -import unittest - -import swagger_client -from swagger_client.models.user_brief_dto import UserBriefDto # noqa: E501 -from swagger_client.rest import ApiException - - -class TestUserBriefDto(unittest.TestCase): - """UserBriefDto unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testUserBriefDto(self): - """Test UserBriefDto""" - # FIXME: construct object with mandatory attributes with example values - # model = swagger_client.models.user_brief_dto.UserBriefDto() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/swagger/api-database/test/test_user_dto.py b/swagger/api-database/test/test_user_dto.py deleted file mode 100644 index 4ab22a88f42e731ebbd65ecda8259a7b949fa4b4..0000000000000000000000000000000000000000 --- a/swagger/api-database/test/test_user_dto.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Database Repository Database Service API - - Service that manages the databases # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -from __future__ import absolute_import - -import unittest - -import api_container -from api_container.models.user_dto import UserDto # noqa: E501 -from api_container.rest import ApiException - - -class TestUserDto(unittest.TestCase): - """UserDto unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testUserDto(self): - """Test UserDto""" - # FIXME: construct object with mandatory attributes with example values - # model = api_container.models.user_dto.UserDto() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/swagger/api-database/tox.ini b/swagger/api-database/tox.ini deleted file mode 100644 index a310bec97d689718c92c84c9aebc6ab031f12933..0000000000000000000000000000000000000000 --- a/swagger/api-database/tox.ini +++ /dev/null @@ -1,10 +0,0 @@ -[tox] -envlist = py3 - -[testenv] -deps=-r{toxinidir}/requirements.txt - -r{toxinidir}/test-requirements.txt - -commands= - nosetests \ - [] diff --git a/swagger/api-document/.gitignore b/swagger/api-document/.gitignore deleted file mode 100644 index a655050c2631466828b5b8bfc59ae27f9ac02dc5..0000000000000000000000000000000000000000 --- a/swagger/api-document/.gitignore +++ /dev/null @@ -1,64 +0,0 @@ -# Byte-compiled / optimized / DLL files -__pycache__/ -*.py[cod] -*$py.class - -# C extensions -*.so - -# Distribution / packaging -.Python -env/ -build/ -develop-eggs/ -dist/ -downloads/ -eggs/ -.eggs/ -lib/ -lib64/ -parts/ -sdist/ -var/ -*.egg-info/ -.installed.cfg -*.egg - -# PyInstaller -# Usually these files are written by a python script from a template -# before PyInstaller builds the exe, so as to inject date/other infos into it. -*.manifest -*.spec - -# Installer logs -pip-log.txt -pip-delete-this-directory.txt - -# Unit test / coverage reports -htmlcov/ -.tox/ -.coverage -.coverage.* -.cache -nosetests.xml -coverage.xml -*,cover -.hypothesis/ -venv/ -.python-version - -# Translations -*.mo -*.pot - -# Django stuff: -*.log - -# Sphinx documentation -docs/_build/ - -# PyBuilder -target/ - -#Ipython Notebook -.ipynb_checkpoints diff --git a/swagger/api-document/.swagger-codegen-ignore b/swagger/api-document/.swagger-codegen-ignore deleted file mode 100644 index c5fa491b4c557bf997d5dd21797de782545dc9e5..0000000000000000000000000000000000000000 --- a/swagger/api-document/.swagger-codegen-ignore +++ /dev/null @@ -1,23 +0,0 @@ -# Swagger Codegen Ignore -# Generated by swagger-codegen https://github.com/swagger-api/swagger-codegen - -# Use this file to prevent files from being overwritten by the generator. -# The patterns follow closely to .gitignore or .dockerignore. - -# As an example, the C# client generator defines ApiClient.cs. -# You can make changes and tell Swagger Codgen to ignore just this file by uncommenting the following line: -#ApiClient.cs - -# You can match any string of characters against a directory, file or extension with a single asterisk (*): -#foo/*/qux -# The above matches foo/bar/qux and foo/baz/qux, but not foo/bar/baz/qux - -# You can recursively match patterns against a directory, file or extension with a double asterisk (**): -#foo/**/qux -# This matches foo/bar/qux, foo/baz/qux, and foo/bar/baz/qux - -# You can also negate patterns with an exclamation (!). -# For example, you can ignore all files in a docs folder with the file extension .md: -#docs/*.md -# Then explicitly reverse the ignore rule for a single file: -#!docs/README.md diff --git a/swagger/api-document/.swagger-codegen/VERSION b/swagger/api-document/.swagger-codegen/VERSION deleted file mode 100644 index 10bbf276ee45aaec75c7b2ada3ff71d798f89fd9..0000000000000000000000000000000000000000 --- a/swagger/api-document/.swagger-codegen/VERSION +++ /dev/null @@ -1 +0,0 @@ -3.0.34 \ No newline at end of file diff --git a/swagger/api-document/.travis.yml b/swagger/api-document/.travis.yml deleted file mode 100644 index dd6c4450aa902ae68479c3d76d45145e18d6052e..0000000000000000000000000000000000000000 --- a/swagger/api-document/.travis.yml +++ /dev/null @@ -1,13 +0,0 @@ -# ref: https://docs.travis-ci.com/user/languages/python -language: python -python: - - "3.2" - - "3.3" - - "3.4" - - "3.5" - #- "3.5-dev" # 3.5 development branch - #- "nightly" # points to the latest development branch e.g. 3.6-dev -# command to install dependencies -install: "pip install -r requirements.txt" -# command to run tests -script: nosetests diff --git a/swagger/api-document/README.md b/swagger/api-document/README.md deleted file mode 100644 index 31deec3e1a20a838752ee67508f15f759c494420..0000000000000000000000000000000000000000 --- a/swagger/api-document/README.md +++ /dev/null @@ -1,145 +0,0 @@ -# swagger-client -Service that manages the documents - -This Python package is automatically generated by the [Swagger Codegen](https://github.com/swagger-api/swagger-codegen) project: - -- API version: 1.1.0-alpha -- Package version: 1.0.0 -- Build package: io.swagger.codegen.v3.generators.python.PythonClientCodegen - -## Requirements. - -Python 2.7 and 3.4+ - -## Installation & Usage -### pip install - -If the python package is hosted on Github, you can install directly from Github - -```sh -pip install git+https://github.com/GIT_USER_ID/GIT_REPO_ID.git -``` -(you may need to run `pip` with root permission: `sudo pip install git+https://github.com/GIT_USER_ID/GIT_REPO_ID.git`) - -Then import the package: -```python -import swagger_client -``` - -### Setuptools - -Install via [Setuptools](http://pypi.python.org/pypi/setuptools). - -```sh -python setup.py install --user -``` -(or `sudo python setup.py install` to install the package for all users) - -Then import the package: -```python -import swagger_client -``` - -## Getting Started - -Please follow the [installation procedure](#installation--usage) and then run the following: - -```python -from __future__ import print_function -import time -import swagger_client -from swagger_client.rest import ApiException -from pprint import pprint - - -# create an instance of the API class -api_instance = swagger_client.DocumentEndpointApi(swagger_client.ApiClient(configuration)) -body = swagger_client.CreateDraftDto() # CreateDraftDto | - -try: - # Create a draft - api_response = api_instance.create(body) - pprint(api_response) -except ApiException as e: - print("Exception when calling DocumentEndpointApi->create: %s\n" % e) - - -# create an instance of the API class -api_instance = swagger_client.DocumentEndpointApi(swagger_client.ApiClient(configuration)) -id = 'id_example' # str | - -try: - # Find a draft - api_response = api_instance.find(id) - pprint(api_response) -except ApiException as e: - print("Exception when calling DocumentEndpointApi->find: %s\n" % e) - - -# create an instance of the API class -api_instance = swagger_client.DocumentEndpointApi(swagger_client.ApiClient(configuration)) -id = 'id_example' # str | - -try: - # Publish a draft - api_response = api_instance.publish(id) - pprint(api_response) -except ApiException as e: - print("Exception when calling DocumentEndpointApi->publish: %s\n" % e) - - -# create an instance of the API class -api_instance = swagger_client.DocumentEndpointApi(swagger_client.ApiClient(configuration)) -id = 'id_example' # str | - -try: - # Reserve draft DOI - api_response = api_instance.reserve(id) - pprint(api_response) -except ApiException as e: - print("Exception when calling DocumentEndpointApi->reserve: %s\n" % e) -``` - -## Documentation for API Endpoints - -All URIs are relative to *http://localhost:9099* - -Class | Method | HTTP request | Description ------------- | ------------- | ------------- | ------------- -*DocumentEndpointApi* | [**create**](docs/DocumentEndpointApi.md#create) | **POST** /api/document | Create a draft -*DocumentEndpointApi* | [**find**](docs/DocumentEndpointApi.md#find) | **GET** /api/document/{id} | Find a draft -*DocumentEndpointApi* | [**publish**](docs/DocumentEndpointApi.md#publish) | **PUT** /api/document/{id}/publish | Publish a draft -*DocumentEndpointApi* | [**reserve**](docs/DocumentEndpointApi.md#reserve) | **POST** /api/document/{id} | Reserve draft DOI -*FileEndpointApi* | [**upload_file**](docs/FileEndpointApi.md#upload_file) | **POST** /api/document/{id}/file | Upload file - -## Documentation For Models - - - [AccessOptionsDto](docs/AccessOptionsDto.md) - - [AffiliationDto](docs/AffiliationDto.md) - - [ApiErrorDto](docs/ApiErrorDto.md) - - [CreateDraftDto](docs/CreateDraftDto.md) - - [CreatorDto](docs/CreatorDto.md) - - [DoiDto](docs/DoiDto.md) - - [DraftVersionsDto](docs/DraftVersionsDto.md) - - [EmbargoDto](docs/EmbargoDto.md) - - [FileDto](docs/FileDto.md) - - [FilesOptionsDto](docs/FilesOptionsDto.md) - - [IdentifierDto](docs/IdentifierDto.md) - - [ImportDto](docs/ImportDto.md) - - [LinksDto](docs/LinksDto.md) - - [MetadataDto](docs/MetadataDto.md) - - [PersistentIdentifiersDto](docs/PersistentIdentifiersDto.md) - - [PersonOrOrganizationDto](docs/PersonOrOrganizationDto.md) - - [RecordDto](docs/RecordDto.md) - - [ResourceTypeDto](docs/ResourceTypeDto.md) - -## Documentation For Authorization - - -## bearerAuth - - - -## Author - -andreas.rauber@tuwien.ac.at diff --git a/swagger/api-document/git_push.sh b/swagger/api-document/git_push.sh deleted file mode 100644 index ae01b182ae9eb047d0999a496b060e62d7b01e5c..0000000000000000000000000000000000000000 --- a/swagger/api-document/git_push.sh +++ /dev/null @@ -1,52 +0,0 @@ -#!/bin/sh -# ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/ -# -# Usage example: /bin/sh ./git_push.sh wing328 swagger-petstore-perl "minor update" - -git_user_id=$1 -git_repo_id=$2 -release_note=$3 - -if [ "$git_user_id" = "" ]; then - git_user_id="GIT_USER_ID" - echo "[INFO] No command line input provided. Set \$git_user_id to $git_user_id" -fi - -if [ "$git_repo_id" = "" ]; then - git_repo_id="GIT_REPO_ID" - echo "[INFO] No command line input provided. Set \$git_repo_id to $git_repo_id" -fi - -if [ "$release_note" = "" ]; then - release_note="Minor update" - echo "[INFO] No command line input provided. Set \$release_note to $release_note" -fi - -# Initialize the local directory as a Git repository -git init - -# Adds the files in the local repository and stages them for commit. -git add . - -# Commits the tracked changes and prepares them to be pushed to a remote repository. -git commit -m "$release_note" - -# Sets the new remote -git_remote=`git remote` -if [ "$git_remote" = "" ]; then # git remote not defined - - if [ "$GIT_TOKEN" = "" ]; then - echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the git credential in your environment." - git remote add origin https://github.com/${git_user_id}/${git_repo_id}.git - else - git remote add origin https://${git_user_id}:${GIT_TOKEN}@github.com/${git_user_id}/${git_repo_id}.git - fi - -fi - -git pull origin master - -# Pushes (Forces) the changes in the local repository up to the remote repository -echo "Git pushing to https://github.com/${git_user_id}/${git_repo_id}.git" -git push origin master 2>&1 | grep -v 'To https' - diff --git a/swagger/api-document/requirements.txt b/swagger/api-document/requirements.txt deleted file mode 100644 index bafdc07532f5e1287a24c2af278f547091a410b6..0000000000000000000000000000000000000000 --- a/swagger/api-document/requirements.txt +++ /dev/null @@ -1,5 +0,0 @@ -certifi >= 14.05.14 -six >= 1.10 -python_dateutil >= 2.5.3 -setuptools >= 21.0.0 -urllib3 >= 1.15.1 diff --git a/swagger/api-document/setup.py b/swagger/api-document/setup.py deleted file mode 100644 index cdffc62c5a42f696fb145482195971741f150440..0000000000000000000000000000000000000000 --- a/swagger/api-document/setup.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Database Repository Document Service API - - Service that manages the documents # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -from setuptools import setup, find_packages # noqa: H301 - -NAME = "swagger-client" -VERSION = "1.0.0" -# To install the library, run the following -# -# python setup.py install -# -# prerequisite: setuptools -# http://pypi.python.org/pypi/setuptools - -REQUIRES = ["urllib3 >= 1.15", "six >= 1.10", "certifi", "python-dateutil"] - -setup( - name=NAME, - version=VERSION, - description="Database Repository Document Service API", - author_email="andreas.rauber@tuwien.ac.at", - url="", - keywords=["Swagger", "Database Repository Document Service API"], - install_requires=REQUIRES, - packages=find_packages(), - include_package_data=True, - long_description="""\ - Service that manages the documents # noqa: E501 - """ -) diff --git a/swagger/api-document/swagger_client/__init__.py b/swagger/api-document/swagger_client/__init__.py deleted file mode 100644 index 03655bf44313bd874b8fa982fce890108414e973..0000000000000000000000000000000000000000 --- a/swagger/api-document/swagger_client/__init__.py +++ /dev/null @@ -1,41 +0,0 @@ -# coding: utf-8 - -# flake8: noqa - -""" - Database Repository Document Service API - - Service that manages the documents # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -from __future__ import absolute_import - -# import apis into sdk package -from swagger_client.api.document_endpoint_api import DocumentEndpointApi -from swagger_client.api.file_endpoint_api import FileEndpointApi -# import ApiClient -from swagger_client.api_client import ApiClient -from swagger_client.configuration import Configuration -# import models into sdk package -from swagger_client.models.access_options_dto import AccessOptionsDto -from swagger_client.models.affiliation_dto import AffiliationDto -from swagger_client.models.api_error_dto import ApiErrorDto -from swagger_client.models.create_draft_dto import CreateDraftDto -from swagger_client.models.creator_dto import CreatorDto -from swagger_client.models.doi_dto import DoiDto -from swagger_client.models.draft_versions_dto import DraftVersionsDto -from swagger_client.models.embargo_dto import EmbargoDto -from swagger_client.models.file_dto import FileDto -from swagger_client.models.files_options_dto import FilesOptionsDto -from swagger_client.models.identifier_dto import IdentifierDto -from swagger_client.models.import_dto import ImportDto -from swagger_client.models.links_dto import LinksDto -from swagger_client.models.metadata_dto import MetadataDto -from swagger_client.models.persistent_identifiers_dto import PersistentIdentifiersDto -from swagger_client.models.person_or_organization_dto import PersonOrOrganizationDto -from swagger_client.models.record_dto import RecordDto -from swagger_client.models.resource_type_dto import ResourceTypeDto diff --git a/swagger/api-document/swagger_client/api/__init__.py b/swagger/api-document/swagger_client/api/__init__.py deleted file mode 100644 index 328f78a9dccd46bdcac29653319d941ba787e277..0000000000000000000000000000000000000000 --- a/swagger/api-document/swagger_client/api/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -from __future__ import absolute_import - -# flake8: noqa - -# import apis into api package -from swagger_client.api.document_endpoint_api import DocumentEndpointApi -from swagger_client.api.file_endpoint_api import FileEndpointApi diff --git a/swagger/api-document/swagger_client/api/document_endpoint_api.py b/swagger/api-document/swagger_client/api/document_endpoint_api.py deleted file mode 100644 index 7647435ed2e330b3aafc1abda752125d782f41e3..0000000000000000000000000000000000000000 --- a/swagger/api-document/swagger_client/api/document_endpoint_api.py +++ /dev/null @@ -1,409 +0,0 @@ -# coding: utf-8 - -""" - Database Repository Document Service API - - Service that manages the documents # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -from __future__ import absolute_import - -import re # noqa: F401 - -# python 2 and python 3 compatibility library -import six - -from swagger_client.api_client import ApiClient - - -class DocumentEndpointApi(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - Ref: https://github.com/swagger-api/swagger-codegen - """ - - def __init__(self, api_client=None): - if api_client is None: - api_client = ApiClient() - self.api_client = api_client - - def create(self, body, **kwargs): # noqa: E501 - """Create a draft # noqa: E501 - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.create(body, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param CreateDraftDto body: (required) - :return: RecordDto - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.create_with_http_info(body, **kwargs) # noqa: E501 - else: - (data) = self.create_with_http_info(body, **kwargs) # noqa: E501 - return data - - def create_with_http_info(self, body, **kwargs): # noqa: E501 - """Create a draft # noqa: E501 - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.create_with_http_info(body, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param CreateDraftDto body: (required) - :return: RecordDto - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['body'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in six.iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method create" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'body' is set - if ('body' not in params or - params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `create`") # noqa: E501 - - collection_formats = {} - - path_params = {} - - query_params = [] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - if 'body' in params: - body_params = params['body'] - # HTTP header `Accept` - header_params['Accept'] = self.api_client.select_header_accept( - ['*/*']) # noqa: E501 - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 - ['application/json']) # noqa: E501 - - # Authentication setting - auth_settings = ['bearerAuth'] # noqa: E501 - - return self.api_client.call_api( - '/api/document', 'POST', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='RecordDto', # noqa: E501 - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def find(self, id, **kwargs): # noqa: E501 - """Find a draft # noqa: E501 - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.find(id, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param str id: (required) - :return: RecordDto - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.find_with_http_info(id, **kwargs) # noqa: E501 - else: - (data) = self.find_with_http_info(id, **kwargs) # noqa: E501 - return data - - def find_with_http_info(self, id, **kwargs): # noqa: E501 - """Find a draft # noqa: E501 - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.find_with_http_info(id, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param str id: (required) - :return: RecordDto - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['id'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in six.iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method find" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'id' is set - if ('id' not in params or - params['id'] is None): - raise ValueError("Missing the required parameter `id` when calling `find`") # noqa: E501 - - collection_formats = {} - - path_params = {} - if 'id' in params: - path_params['id'] = params['id'] # noqa: E501 - - query_params = [] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - # HTTP header `Accept` - header_params['Accept'] = self.api_client.select_header_accept( - ['*/*']) # noqa: E501 - - # Authentication setting - auth_settings = ['bearerAuth'] # noqa: E501 - - return self.api_client.call_api( - '/api/document/{id}', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='RecordDto', # noqa: E501 - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def publish(self, id, **kwargs): # noqa: E501 - """Publish a draft # noqa: E501 - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.publish(id, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param str id: (required) - :return: RecordDto - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.publish_with_http_info(id, **kwargs) # noqa: E501 - else: - (data) = self.publish_with_http_info(id, **kwargs) # noqa: E501 - return data - - def publish_with_http_info(self, id, **kwargs): # noqa: E501 - """Publish a draft # noqa: E501 - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.publish_with_http_info(id, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param str id: (required) - :return: RecordDto - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['id'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in six.iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method publish" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'id' is set - if ('id' not in params or - params['id'] is None): - raise ValueError("Missing the required parameter `id` when calling `publish`") # noqa: E501 - - collection_formats = {} - - path_params = {} - if 'id' in params: - path_params['id'] = params['id'] # noqa: E501 - - query_params = [] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - # HTTP header `Accept` - header_params['Accept'] = self.api_client.select_header_accept( - ['*/*']) # noqa: E501 - - # Authentication setting - auth_settings = ['bearerAuth'] # noqa: E501 - - return self.api_client.call_api( - '/api/document/{id}/publish', 'PUT', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='RecordDto', # noqa: E501 - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def reserve(self, id, **kwargs): # noqa: E501 - """Reserve draft DOI # noqa: E501 - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.reserve(id, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param str id: (required) - :return: RecordDto - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.reserve_with_http_info(id, **kwargs) # noqa: E501 - else: - (data) = self.reserve_with_http_info(id, **kwargs) # noqa: E501 - return data - - def reserve_with_http_info(self, id, **kwargs): # noqa: E501 - """Reserve draft DOI # noqa: E501 - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.reserve_with_http_info(id, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param str id: (required) - :return: RecordDto - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['id'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in six.iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method reserve" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'id' is set - if ('id' not in params or - params['id'] is None): - raise ValueError("Missing the required parameter `id` when calling `reserve`") # noqa: E501 - - collection_formats = {} - - path_params = {} - if 'id' in params: - path_params['id'] = params['id'] # noqa: E501 - - query_params = [] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - # HTTP header `Accept` - header_params['Accept'] = self.api_client.select_header_accept( - ['*/*']) # noqa: E501 - - # Authentication setting - auth_settings = ['bearerAuth'] # noqa: E501 - - return self.api_client.call_api( - '/api/document/{id}', 'POST', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='RecordDto', # noqa: E501 - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) diff --git a/swagger/api-document/swagger_client/api/file_endpoint_api.py b/swagger/api-document/swagger_client/api/file_endpoint_api.py deleted file mode 100644 index 77517f1a318f7c29847c98a5e43ff0aa77f66305..0000000000000000000000000000000000000000 --- a/swagger/api-document/swagger_client/api/file_endpoint_api.py +++ /dev/null @@ -1,138 +0,0 @@ -# coding: utf-8 - -""" - Database Repository Document Service API - - Service that manages the documents # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -from __future__ import absolute_import - -import re # noqa: F401 - -# python 2 and python 3 compatibility library -import six - -from swagger_client.api_client import ApiClient - - -class FileEndpointApi(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - Ref: https://github.com/swagger-api/swagger-codegen - """ - - def __init__(self, api_client=None): - if api_client is None: - api_client = ApiClient() - self.api_client = api_client - - def upload_file(self, body, id, **kwargs): # noqa: E501 - """Upload file # noqa: E501 - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.upload_file(body, id, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param ImportDto body: (required) - :param str id: (required) - :return: FileDto - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.upload_file_with_http_info(body, id, **kwargs) # noqa: E501 - else: - (data) = self.upload_file_with_http_info(body, id, **kwargs) # noqa: E501 - return data - - def upload_file_with_http_info(self, body, id, **kwargs): # noqa: E501 - """Upload file # noqa: E501 - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.upload_file_with_http_info(body, id, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param ImportDto body: (required) - :param str id: (required) - :return: FileDto - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['body', 'id'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in six.iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method upload_file" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'body' is set - if ('body' not in params or - params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `upload_file`") # noqa: E501 - # verify the required parameter 'id' is set - if ('id' not in params or - params['id'] is None): - raise ValueError("Missing the required parameter `id` when calling `upload_file`") # noqa: E501 - - collection_formats = {} - - path_params = {} - if 'id' in params: - path_params['id'] = params['id'] # noqa: E501 - - query_params = [] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - if 'body' in params: - body_params = params['body'] - # HTTP header `Accept` - header_params['Accept'] = self.api_client.select_header_accept( - ['*/*']) # noqa: E501 - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 - ['application/json']) # noqa: E501 - - # Authentication setting - auth_settings = ['bearerAuth'] # noqa: E501 - - return self.api_client.call_api( - '/api/document/{id}/file', 'POST', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='FileDto', # noqa: E501 - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) diff --git a/swagger/api-document/swagger_client/api_client.py b/swagger/api-document/swagger_client/api_client.py deleted file mode 100644 index e835b9120ed2e88c8e591011551dd45043e4d337..0000000000000000000000000000000000000000 --- a/swagger/api-document/swagger_client/api_client.py +++ /dev/null @@ -1,632 +0,0 @@ -# coding: utf-8 -""" - Database Repository Document Service API - - Service that manages the documents # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" -from __future__ import absolute_import - -import datetime -import json -import mimetypes -from multiprocessing.pool import ThreadPool -import os -import re -import tempfile - -# python 2 and python 3 compatibility library -import six -from six.moves.urllib.parse import quote - -from swagger_client.configuration import Configuration -import swagger_client.models -from swagger_client import rest - - -class ApiClient(object): - """Generic API client for Swagger client library builds. - - Swagger generic API client. This client handles the client- - server communication, and is invariant across implementations. Specifics of - the methods and models for each application are generated from the Swagger - templates. - - NOTE: This class is auto generated by the swagger code generator program. - Ref: https://github.com/swagger-api/swagger-codegen - Do not edit the class manually. - - :param configuration: .Configuration object for this client - :param header_name: a header to pass when making calls to the API. - :param header_value: a header value to pass when making calls to - the API. - :param cookie: a cookie to include in the header when making calls - to the API - """ - - PRIMITIVE_TYPES = (float, bool, bytes, six.text_type) + six.integer_types - NATIVE_TYPES_MAPPING = { - 'int': int, - 'long': int if six.PY3 else long, # noqa: F821 - 'float': float, - 'str': str, - 'bool': bool, - 'date': datetime.date, - 'datetime': datetime.datetime, - 'object': object, - } - - def __init__(self, configuration=None, header_name=None, header_value=None, - cookie=None): - if configuration is None: - configuration = Configuration() - self.configuration = configuration - - self.pool = ThreadPool() - self.rest_client = rest.RESTClientObject(configuration) - self.default_headers = {} - if header_name is not None: - self.default_headers[header_name] = header_value - self.cookie = cookie - # Set default User-Agent. - self.user_agent = 'Swagger-Codegen/1.0.0/python' - - def __del__(self): - self.pool.close() - self.pool.join() - - @property - def user_agent(self): - """User agent for this API client""" - return self.default_headers['User-Agent'] - - @user_agent.setter - def user_agent(self, value): - self.default_headers['User-Agent'] = value - - def set_default_header(self, header_name, header_value): - self.default_headers[header_name] = header_value - - def __call_api( - self, resource_path, method, path_params=None, - query_params=None, header_params=None, body=None, post_params=None, - files=None, response_type=None, auth_settings=None, - _return_http_data_only=None, collection_formats=None, - _preload_content=True, _request_timeout=None): - - config = self.configuration - - # header parameters - header_params = header_params or {} - header_params.update(self.default_headers) - if self.cookie: - header_params['Cookie'] = self.cookie - if header_params: - header_params = self.sanitize_for_serialization(header_params) - header_params = dict(self.parameters_to_tuples(header_params, - collection_formats)) - - # path parameters - if path_params: - path_params = self.sanitize_for_serialization(path_params) - path_params = self.parameters_to_tuples(path_params, - collection_formats) - for k, v in path_params: - # specified safe chars, encode everything - resource_path = resource_path.replace( - '{%s}' % k, - quote(str(v), safe=config.safe_chars_for_path_param) - ) - - # query parameters - if query_params: - query_params = self.sanitize_for_serialization(query_params) - query_params = self.parameters_to_tuples(query_params, - collection_formats) - - # post parameters - if post_params or files: - post_params = self.prepare_post_parameters(post_params, files) - post_params = self.sanitize_for_serialization(post_params) - post_params = self.parameters_to_tuples(post_params, - collection_formats) - - # auth setting - self.update_params_for_auth(header_params, query_params, auth_settings) - - # body - if body: - body = self.sanitize_for_serialization(body) - - # request url - url = self.configuration.host + resource_path - - # perform request and return response - response_data = self.request( - method, url, query_params=query_params, headers=header_params, - post_params=post_params, body=body, - _preload_content=_preload_content, - _request_timeout=_request_timeout) - - self.last_response = response_data - - return_data = response_data - if _preload_content: - # deserialize response data - if response_type: - return_data = self.deserialize(response_data, response_type) - else: - return_data = None - - if _return_http_data_only: - return (return_data) - else: - return (return_data, response_data.status, - response_data.getheaders()) - - def sanitize_for_serialization(self, obj): - """Builds a JSON POST object. - - If obj is None, return None. - If obj is str, int, long, float, bool, return directly. - If obj is datetime.datetime, datetime.date - convert to string in iso8601 format. - If obj is list, sanitize each element in the list. - If obj is dict, return the dict. - If obj is swagger model, return the properties dict. - - :param obj: The data to serialize. - :return: The serialized form of data. - """ - if obj is None: - return None - elif isinstance(obj, self.PRIMITIVE_TYPES): - return obj - elif isinstance(obj, list): - return [self.sanitize_for_serialization(sub_obj) - for sub_obj in obj] - elif isinstance(obj, tuple): - return tuple(self.sanitize_for_serialization(sub_obj) - for sub_obj in obj) - elif isinstance(obj, (datetime.datetime, datetime.date)): - return obj.isoformat() - - if isinstance(obj, dict): - obj_dict = obj - else: - # Convert model obj to dict except - # attributes `swagger_types`, `attribute_map` - # and attributes which value is not None. - # Convert attribute name to json key in - # model definition for request. - obj_dict = {obj.attribute_map[attr]: getattr(obj, attr) - for attr, _ in six.iteritems(obj.swagger_types) - if getattr(obj, attr) is not None} - - return {key: self.sanitize_for_serialization(val) - for key, val in six.iteritems(obj_dict)} - - def deserialize(self, response, response_type): - """Deserializes response into an object. - - :param response: RESTResponse object to be deserialized. - :param response_type: class literal for - deserialized object, or string of class name. - - :return: deserialized object. - """ - # handle file downloading - # save response body into a tmp file and return the instance - if response_type == "file": - return self.__deserialize_file(response) - - # fetch data from response object - try: - data = json.loads(response.data) - except ValueError: - data = response.data - - return self.__deserialize(data, response_type) - - def __deserialize(self, data, klass): - """Deserializes dict, list, str into an object. - - :param data: dict, list or str. - :param klass: class literal, or string of class name. - - :return: object. - """ - if data is None: - return None - - if type(klass) == str: - if klass.startswith('list['): - sub_kls = re.match(r'list\[(.*)\]', klass).group(1) - return [self.__deserialize(sub_data, sub_kls) - for sub_data in data] - - if klass.startswith('dict('): - sub_kls = re.match(r'dict\(([^,]*), (.*)\)', klass).group(2) - return {k: self.__deserialize(v, sub_kls) - for k, v in six.iteritems(data)} - - # convert str to class - if klass in self.NATIVE_TYPES_MAPPING: - klass = self.NATIVE_TYPES_MAPPING[klass] - else: - klass = getattr(swagger_client.models, klass) - - if klass in self.PRIMITIVE_TYPES: - return self.__deserialize_primitive(data, klass) - elif klass == object: - return self.__deserialize_object(data) - elif klass == datetime.date: - return self.__deserialize_date(data) - elif klass == datetime.datetime: - return self.__deserialize_datatime(data) - else: - return self.__deserialize_model(data, klass) - - def call_api(self, resource_path, method, - path_params=None, query_params=None, header_params=None, - body=None, post_params=None, files=None, - response_type=None, auth_settings=None, async_req=None, - _return_http_data_only=None, collection_formats=None, - _preload_content=True, _request_timeout=None): - """Makes the HTTP request (synchronous) and returns deserialized data. - - To make an async request, set the async_req parameter. - - :param resource_path: Path to method endpoint. - :param method: Method to call. - :param path_params: Path parameters in the url. - :param query_params: Query parameters in the url. - :param header_params: Header parameters to be - placed in the request header. - :param body: Request body. - :param post_params dict: Request post form parameters, - for `application/x-www-form-urlencoded`, `multipart/form-data`. - :param auth_settings list: Auth Settings names for the request. - :param response: Response data type. - :param files dict: key -> filename, value -> filepath, - for `multipart/form-data`. - :param async_req bool: execute request asynchronously - :param _return_http_data_only: response data without head status code - and headers - :param collection_formats: dict of collection formats for path, query, - header, and post parameters. - :param _preload_content: if False, the urllib3.HTTPResponse object will - be returned without reading/decoding response - data. Default is True. - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :return: - If async_req parameter is True, - the request will be called asynchronously. - The method will return the request thread. - If parameter async_req is False or missing, - then the method will return the response directly. - """ - if not async_req: - return self.__call_api(resource_path, method, - path_params, query_params, header_params, - body, post_params, files, - response_type, auth_settings, - _return_http_data_only, collection_formats, - _preload_content, _request_timeout) - else: - thread = self.pool.apply_async(self.__call_api, (resource_path, - method, path_params, query_params, - header_params, body, - post_params, files, - response_type, auth_settings, - _return_http_data_only, - collection_formats, - _preload_content, _request_timeout)) - return thread - - def request(self, method, url, query_params=None, headers=None, - post_params=None, body=None, _preload_content=True, - _request_timeout=None): - """Makes the HTTP request using RESTClient.""" - if method == "GET": - return self.rest_client.GET(url, - query_params=query_params, - _preload_content=_preload_content, - _request_timeout=_request_timeout, - headers=headers) - elif method == "HEAD": - return self.rest_client.HEAD(url, - query_params=query_params, - _preload_content=_preload_content, - _request_timeout=_request_timeout, - headers=headers) - elif method == "OPTIONS": - return self.rest_client.OPTIONS(url, - query_params=query_params, - headers=headers, - post_params=post_params, - _preload_content=_preload_content, - _request_timeout=_request_timeout, - body=body) - elif method == "POST": - return self.rest_client.POST(url, - query_params=query_params, - headers=headers, - post_params=post_params, - _preload_content=_preload_content, - _request_timeout=_request_timeout, - body=body) - elif method == "PUT": - return self.rest_client.PUT(url, - query_params=query_params, - headers=headers, - post_params=post_params, - _preload_content=_preload_content, - _request_timeout=_request_timeout, - body=body) - elif method == "PATCH": - return self.rest_client.PATCH(url, - query_params=query_params, - headers=headers, - post_params=post_params, - _preload_content=_preload_content, - _request_timeout=_request_timeout, - body=body) - elif method == "DELETE": - return self.rest_client.DELETE(url, - query_params=query_params, - headers=headers, - _preload_content=_preload_content, - _request_timeout=_request_timeout, - body=body) - else: - raise ValueError( - "http method must be `GET`, `HEAD`, `OPTIONS`," - " `POST`, `PATCH`, `PUT` or `DELETE`." - ) - - def parameters_to_tuples(self, params, collection_formats): - """Get parameters as list of tuples, formatting collections. - - :param params: Parameters as dict or list of two-tuples - :param dict collection_formats: Parameter collection formats - :return: Parameters as list of tuples, collections formatted - """ - new_params = [] - if collection_formats is None: - collection_formats = {} - for k, v in six.iteritems(params) if isinstance(params, dict) else params: # noqa: E501 - if k in collection_formats: - collection_format = collection_formats[k] - if collection_format == 'multi': - new_params.extend((k, value) for value in v) - else: - if collection_format == 'ssv': - delimiter = ' ' - elif collection_format == 'tsv': - delimiter = '\t' - elif collection_format == 'pipes': - delimiter = '|' - else: # csv is the default - delimiter = ',' - new_params.append( - (k, delimiter.join(str(value) for value in v))) - else: - new_params.append((k, v)) - return new_params - - def prepare_post_parameters(self, post_params=None, files=None): - """Builds form parameters. - - :param post_params: Normal form parameters. - :param files: File parameters. - :return: Form parameters with files. - """ - params = [] - - if post_params: - params = post_params - - if files: - for k, v in six.iteritems(files): - if not v: - continue - file_names = v if type(v) is list else [v] - for n in file_names: - with open(n, 'rb') as f: - filename = os.path.basename(f.name) - filedata = f.read() - mimetype = (mimetypes.guess_type(filename)[0] or - 'application/octet-stream') - params.append( - tuple([k, tuple([filename, filedata, mimetype])])) - - return params - - def select_header_accept(self, accepts): - """Returns `Accept` based on an array of accepts provided. - - :param accepts: List of headers. - :return: Accept (e.g. application/json). - """ - if not accepts: - return - - accepts = [x.lower() for x in accepts] - - if 'application/json' in accepts: - return 'application/json' - else: - return ', '.join(accepts) - - def select_header_content_type(self, content_types): - """Returns `Content-Type` based on an array of content_types provided. - - :param content_types: List of content-types. - :return: Content-Type (e.g. application/json). - """ - if not content_types: - return 'application/json' - - content_types = [x.lower() for x in content_types] - - if 'application/json' in content_types or '*/*' in content_types: - return 'application/json' - else: - return content_types[0] - - def update_params_for_auth(self, headers, querys, auth_settings): - """Updates header and query params based on authentication setting. - - :param headers: Header parameters dict to be updated. - :param querys: Query parameters tuple list to be updated. - :param auth_settings: Authentication setting identifiers list. - """ - if not auth_settings: - return - - for auth in auth_settings: - auth_setting = self.configuration.auth_settings().get(auth) - if auth_setting: - if not auth_setting['value']: - continue - elif auth_setting['in'] == 'header': - headers[auth_setting['key']] = auth_setting['value'] - elif auth_setting['in'] == 'query': - querys.append((auth_setting['key'], auth_setting['value'])) - else: - raise ValueError( - 'Authentication token must be in `query` or `header`' - ) - - def __deserialize_file(self, response): - """Deserializes body to file - - Saves response body into a file in a temporary folder, - using the filename from the `Content-Disposition` header if provided. - - :param response: RESTResponse. - :return: file path. - """ - fd, path = tempfile.mkstemp(dir=self.configuration.temp_folder_path) - os.close(fd) - os.remove(path) - - content_disposition = response.getheader("Content-Disposition") - if content_disposition: - filename = re.search(r'filename=[\'"]?([^\'"\s]+)[\'"]?', - content_disposition).group(1) - path = os.path.join(os.path.dirname(path), filename) - response_data = response.data - with open(path, "wb") as f: - if isinstance(response_data, str): - # change str to bytes so we can write it - response_data = response_data.encode('utf-8') - f.write(response_data) - else: - f.write(response_data) - return path - - def __deserialize_primitive(self, data, klass): - """Deserializes string to primitive type. - - :param data: str. - :param klass: class literal. - - :return: int, long, float, str, bool. - """ - try: - return klass(data) - except UnicodeEncodeError: - return six.text_type(data) - except TypeError: - return data - - def __deserialize_object(self, value): - """Return a original value. - - :return: object. - """ - return value - - def __deserialize_date(self, string): - """Deserializes string to date. - - :param string: str. - :return: date. - """ - try: - from dateutil.parser import parse - return parse(string).date() - except ImportError: - return string - except ValueError: - raise rest.ApiException( - status=0, - reason="Failed to parse `{0}` as date object".format(string) - ) - - def __deserialize_datatime(self, string): - """Deserializes string to datetime. - - The string should be in iso8601 datetime format. - - :param string: str. - :return: datetime. - """ - try: - from dateutil.parser import parse - return parse(string) - except ImportError: - return string - except ValueError: - raise rest.ApiException( - status=0, - reason=( - "Failed to parse `{0}` as datetime object" - .format(string) - ) - ) - - def __hasattr(self, object, name): - return name in object.__class__.__dict__ - - def __deserialize_model(self, data, klass): - """Deserializes list or dict to model. - - :param data: dict, list. - :param klass: class literal. - :return: model object. - """ - - if not klass.swagger_types and not self.__hasattr(klass, 'get_real_child_model'): - return data - - kwargs = {} - if klass.swagger_types is not None: - for attr, attr_type in six.iteritems(klass.swagger_types): - if (data is not None and - klass.attribute_map[attr] in data and - isinstance(data, (list, dict))): - value = data[klass.attribute_map[attr]] - kwargs[attr] = self.__deserialize(value, attr_type) - - instance = klass(**kwargs) - - if (isinstance(instance, dict) and - klass.swagger_types is not None and - isinstance(data, dict)): - for key, value in data.items(): - if key not in klass.swagger_types: - instance[key] = value - if self.__hasattr(instance, 'get_real_child_model'): - klass_name = instance.get_real_child_model(data) - if klass_name: - instance = self.__deserialize(data, klass_name) - return instance diff --git a/swagger/api-document/swagger_client/configuration.py b/swagger/api-document/swagger_client/configuration.py deleted file mode 100644 index 96f59e12de8148e3f8f5c10fafeecb6de38c6500..0000000000000000000000000000000000000000 --- a/swagger/api-document/swagger_client/configuration.py +++ /dev/null @@ -1,244 +0,0 @@ -# coding: utf-8 - -""" - Database Repository Document Service API - - Service that manages the documents # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -from __future__ import absolute_import - -import copy -import logging -import multiprocessing -import sys -import urllib3 - -import six -from six.moves import http_client as httplib - - -class TypeWithDefault(type): - def __init__(cls, name, bases, dct): - super(TypeWithDefault, cls).__init__(name, bases, dct) - cls._default = None - - def __call__(cls): - if cls._default is None: - cls._default = type.__call__(cls) - return copy.copy(cls._default) - - def set_default(cls, default): - cls._default = copy.copy(default) - - -class Configuration(six.with_metaclass(TypeWithDefault, object)): - """NOTE: This class is auto generated by the swagger code generator program. - - Ref: https://github.com/swagger-api/swagger-codegen - Do not edit the class manually. - """ - - def __init__(self): - """Constructor""" - # Default Base url - self.host = "http://localhost:9099" - # Temp file folder for downloading files - self.temp_folder_path = None - - # Authentication Settings - # dict to store API key(s) - self.api_key = {} - # dict to store API prefix (e.g. Bearer) - self.api_key_prefix = {} - # function to refresh API key if expired - self.refresh_api_key_hook = None - # Username for HTTP basic authentication - self.username = "" - # Password for HTTP basic authentication - self.password = "" - # Logging Settings - self.logger = {} - self.logger["package_logger"] = logging.getLogger("swagger_client") - self.logger["urllib3_logger"] = logging.getLogger("urllib3") - # Log format - self.logger_format = '%(asctime)s %(levelname)s %(message)s' - # Log stream handler - self.logger_stream_handler = None - # Log file handler - self.logger_file_handler = None - # Debug file location - self.logger_file = None - # Debug switch - self.debug = False - - # SSL/TLS verification - # Set this to false to skip verifying SSL certificate when calling API - # from https server. - self.verify_ssl = True - # Set this to customize the certificate file to verify the peer. - self.ssl_ca_cert = None - # client certificate file - self.cert_file = None - # client key file - self.key_file = None - # Set this to True/False to enable/disable SSL hostname verification. - self.assert_hostname = None - - # urllib3 connection pool's maximum number of connections saved - # per pool. urllib3 uses 1 connection as default value, but this is - # not the best value when you are making a lot of possibly parallel - # requests to the same host, which is often the case here. - # cpu_count * 5 is used as default value to increase performance. - self.connection_pool_maxsize = multiprocessing.cpu_count() * 5 - - # Proxy URL - self.proxy = None - # Safe chars for path_param - self.safe_chars_for_path_param = '' - - @property - def logger_file(self): - """The logger file. - - If the logger_file is None, then add stream handler and remove file - handler. Otherwise, add file handler and remove stream handler. - - :param value: The logger_file path. - :type: str - """ - return self.__logger_file - - @logger_file.setter - def logger_file(self, value): - """The logger file. - - If the logger_file is None, then add stream handler and remove file - handler. Otherwise, add file handler and remove stream handler. - - :param value: The logger_file path. - :type: str - """ - self.__logger_file = value - if self.__logger_file: - # If set logging file, - # then add file handler and remove stream handler. - self.logger_file_handler = logging.FileHandler(self.__logger_file) - self.logger_file_handler.setFormatter(self.logger_formatter) - for _, logger in six.iteritems(self.logger): - logger.addHandler(self.logger_file_handler) - if self.logger_stream_handler: - logger.removeHandler(self.logger_stream_handler) - else: - # If not set logging file, - # then add stream handler and remove file handler. - self.logger_stream_handler = logging.StreamHandler() - self.logger_stream_handler.setFormatter(self.logger_formatter) - for _, logger in six.iteritems(self.logger): - logger.addHandler(self.logger_stream_handler) - if self.logger_file_handler: - logger.removeHandler(self.logger_file_handler) - - @property - def debug(self): - """Debug status - - :param value: The debug status, True or False. - :type: bool - """ - return self.__debug - - @debug.setter - def debug(self, value): - """Debug status - - :param value: The debug status, True or False. - :type: bool - """ - self.__debug = value - if self.__debug: - # if debug status is True, turn on debug logging - for _, logger in six.iteritems(self.logger): - logger.setLevel(logging.DEBUG) - # turn on httplib debug - httplib.HTTPConnection.debuglevel = 1 - else: - # if debug status is False, turn off debug logging, - # setting log level to default `logging.WARNING` - for _, logger in six.iteritems(self.logger): - logger.setLevel(logging.WARNING) - # turn off httplib debug - httplib.HTTPConnection.debuglevel = 0 - - @property - def logger_format(self): - """The logger format. - - The logger_formatter will be updated when sets logger_format. - - :param value: The format string. - :type: str - """ - return self.__logger_format - - @logger_format.setter - def logger_format(self, value): - """The logger format. - - The logger_formatter will be updated when sets logger_format. - - :param value: The format string. - :type: str - """ - self.__logger_format = value - self.logger_formatter = logging.Formatter(self.__logger_format) - - def get_api_key_with_prefix(self, identifier): - """Gets API key (with prefix if set). - - :param identifier: The identifier of apiKey. - :return: The token for api key authentication. - """ - if self.refresh_api_key_hook: - self.refresh_api_key_hook(self) - - key = self.api_key.get(identifier) - if key: - prefix = self.api_key_prefix.get(identifier) - if prefix: - return "%s %s" % (prefix, key) - else: - return key - - def get_basic_auth_token(self): - """Gets HTTP basic authentication header (string). - - :return: The token for basic HTTP authentication. - """ - return urllib3.util.make_headers( - basic_auth=self.username + ':' + self.password - ).get('authorization') - - def auth_settings(self): - """Gets Auth Settings dict for api client. - - :return: The Auth Settings information dict. - """ - return { - } - - def to_debug_report(self): - """Gets the essential information for debugging. - - :return: The report for debugging. - """ - return "Python SDK Debug Report:\n"\ - "OS: {env}\n"\ - "Python Version: {pyversion}\n"\ - "Version of the API: 1.1.0-alpha\n"\ - "SDK Package Version: 1.0.0".\ - format(env=sys.platform, pyversion=sys.version) diff --git a/swagger/api-document/swagger_client/models/__init__.py b/swagger/api-document/swagger_client/models/__init__.py deleted file mode 100644 index 88a087806980e336a2c4dbd383d793589c7ffeb5..0000000000000000000000000000000000000000 --- a/swagger/api-document/swagger_client/models/__init__.py +++ /dev/null @@ -1,34 +0,0 @@ -# coding: utf-8 - -# flake8: noqa -""" - Database Repository Document Service API - - Service that manages the documents # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -from __future__ import absolute_import - -# import models into model package -from swagger_client.models.access_options_dto import AccessOptionsDto -from swagger_client.models.affiliation_dto import AffiliationDto -from swagger_client.models.api_error_dto import ApiErrorDto -from swagger_client.models.create_draft_dto import CreateDraftDto -from swagger_client.models.creator_dto import CreatorDto -from swagger_client.models.doi_dto import DoiDto -from swagger_client.models.draft_versions_dto import DraftVersionsDto -from swagger_client.models.embargo_dto import EmbargoDto -from swagger_client.models.file_dto import FileDto -from swagger_client.models.files_options_dto import FilesOptionsDto -from swagger_client.models.identifier_dto import IdentifierDto -from swagger_client.models.import_dto import ImportDto -from swagger_client.models.links_dto import LinksDto -from swagger_client.models.metadata_dto import MetadataDto -from swagger_client.models.persistent_identifiers_dto import PersistentIdentifiersDto -from swagger_client.models.person_or_organization_dto import PersonOrOrganizationDto -from swagger_client.models.record_dto import RecordDto -from swagger_client.models.resource_type_dto import ResourceTypeDto diff --git a/swagger/api-document/swagger_client/models/access_options_dto.py b/swagger/api-document/swagger_client/models/access_options_dto.py deleted file mode 100644 index 3ef73c9ab248088e967d2a5a63fe85186659d996..0000000000000000000000000000000000000000 --- a/swagger/api-document/swagger_client/models/access_options_dto.py +++ /dev/null @@ -1,176 +0,0 @@ -# coding: utf-8 - -""" - Database Repository Document Service API - - Service that manages the documents # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -import pprint -import re # noqa: F401 - -import six - -class AccessOptionsDto(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'record': 'str', - 'files': 'str', - 'embargo': 'EmbargoDto' - } - - attribute_map = { - 'record': 'record', - 'files': 'files', - 'embargo': 'embargo' - } - - def __init__(self, record=None, files=None, embargo=None): # noqa: E501 - """AccessOptionsDto - a model defined in Swagger""" # noqa: E501 - self._record = None - self._files = None - self._embargo = None - self.discriminator = None - self.record = record - self.files = files - if embargo is not None: - self.embargo = embargo - - @property - def record(self): - """Gets the record of this AccessOptionsDto. # noqa: E501 - - - :return: The record of this AccessOptionsDto. # noqa: E501 - :rtype: str - """ - return self._record - - @record.setter - def record(self, record): - """Sets the record of this AccessOptionsDto. - - - :param record: The record of this AccessOptionsDto. # noqa: E501 - :type: str - """ - if record is None: - raise ValueError("Invalid value for `record`, must not be `None`") # noqa: E501 - allowed_values = ["public", "restricted"] # noqa: E501 - if record not in allowed_values: - raise ValueError( - "Invalid value for `record` ({0}), must be one of {1}" # noqa: E501 - .format(record, allowed_values) - ) - - self._record = record - - @property - def files(self): - """Gets the files of this AccessOptionsDto. # noqa: E501 - - - :return: The files of this AccessOptionsDto. # noqa: E501 - :rtype: str - """ - return self._files - - @files.setter - def files(self, files): - """Sets the files of this AccessOptionsDto. - - - :param files: The files of this AccessOptionsDto. # noqa: E501 - :type: str - """ - if files is None: - raise ValueError("Invalid value for `files`, must not be `None`") # noqa: E501 - allowed_values = ["public", "restricted"] # noqa: E501 - if files not in allowed_values: - raise ValueError( - "Invalid value for `files` ({0}), must be one of {1}" # noqa: E501 - .format(files, allowed_values) - ) - - self._files = files - - @property - def embargo(self): - """Gets the embargo of this AccessOptionsDto. # noqa: E501 - - - :return: The embargo of this AccessOptionsDto. # noqa: E501 - :rtype: EmbargoDto - """ - return self._embargo - - @embargo.setter - def embargo(self, embargo): - """Sets the embargo of this AccessOptionsDto. - - - :param embargo: The embargo of this AccessOptionsDto. # noqa: E501 - :type: EmbargoDto - """ - - self._embargo = embargo - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(AccessOptionsDto, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, AccessOptionsDto): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/swagger/api-document/swagger_client/models/affiliation_dto.py b/swagger/api-document/swagger_client/models/affiliation_dto.py deleted file mode 100644 index 2839e1e28273cfee59e0bbfa7cbf529bb8f69988..0000000000000000000000000000000000000000 --- a/swagger/api-document/swagger_client/models/affiliation_dto.py +++ /dev/null @@ -1,136 +0,0 @@ -# coding: utf-8 - -""" - Database Repository Document Service API - - Service that manages the documents # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -import pprint -import re # noqa: F401 - -import six - -class AffiliationDto(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'id': 'str', - 'name': 'str' - } - - attribute_map = { - 'id': 'id', - 'name': 'name' - } - - def __init__(self, id=None, name=None): # noqa: E501 - """AffiliationDto - a model defined in Swagger""" # noqa: E501 - self._id = None - self._name = None - self.discriminator = None - if id is not None: - self.id = id - if name is not None: - self.name = name - - @property - def id(self): - """Gets the id of this AffiliationDto. # noqa: E501 - - - :return: The id of this AffiliationDto. # noqa: E501 - :rtype: str - """ - return self._id - - @id.setter - def id(self, id): - """Sets the id of this AffiliationDto. - - - :param id: The id of this AffiliationDto. # noqa: E501 - :type: str - """ - - self._id = id - - @property - def name(self): - """Gets the name of this AffiliationDto. # noqa: E501 - - - :return: The name of this AffiliationDto. # noqa: E501 - :rtype: str - """ - return self._name - - @name.setter - def name(self, name): - """Sets the name of this AffiliationDto. - - - :param name: The name of this AffiliationDto. # noqa: E501 - :type: str - """ - - self._name = name - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(AffiliationDto, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, AffiliationDto): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/swagger/api-document/swagger_client/models/api_error_dto.py b/swagger/api-document/swagger_client/models/api_error_dto.py deleted file mode 100644 index 827d66419b144a5c03f4bd19f7dab9b8de356364..0000000000000000000000000000000000000000 --- a/swagger/api-document/swagger_client/models/api_error_dto.py +++ /dev/null @@ -1,171 +0,0 @@ -# coding: utf-8 - -""" - Database Repository Document Service API - - Service that manages the documents # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -import pprint -import re # noqa: F401 - -import six - -class ApiErrorDto(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'status': 'str', - 'message': 'str', - 'code': 'str' - } - - attribute_map = { - 'status': 'status', - 'message': 'message', - 'code': 'code' - } - - def __init__(self, status=None, message=None, code=None): # noqa: E501 - """ApiErrorDto - a model defined in Swagger""" # noqa: E501 - self._status = None - self._message = None - self._code = None - self.discriminator = None - self.status = status - self.message = message - self.code = code - - @property - def status(self): - """Gets the status of this ApiErrorDto. # noqa: E501 - - - :return: The status of this ApiErrorDto. # noqa: E501 - :rtype: str - """ - return self._status - - @status.setter - def status(self, status): - """Sets the status of this ApiErrorDto. - - - :param status: The status of this ApiErrorDto. # noqa: E501 - :type: str - """ - if status is None: - raise ValueError("Invalid value for `status`, must not be `None`") # noqa: E501 - allowed_values = ["100 CONTINUE", "101 SWITCHING_PROTOCOLS", "102 PROCESSING", "103 CHECKPOINT", "200 OK", "201 CREATED", "202 ACCEPTED", "203 NON_AUTHORITATIVE_INFORMATION", "204 NO_CONTENT", "205 RESET_CONTENT", "206 PARTIAL_CONTENT", "207 MULTI_STATUS", "208 ALREADY_REPORTED", "226 IM_USED", "300 MULTIPLE_CHOICES", "301 MOVED_PERMANENTLY", "302 FOUND", "302 MOVED_TEMPORARILY", "303 SEE_OTHER", "304 NOT_MODIFIED", "305 USE_PROXY", "307 TEMPORARY_REDIRECT", "308 PERMANENT_REDIRECT", "400 BAD_REQUEST", "401 UNAUTHORIZED", "402 PAYMENT_REQUIRED", "403 FORBIDDEN", "404 NOT_FOUND", "405 METHOD_NOT_ALLOWED", "406 NOT_ACCEPTABLE", "407 PROXY_AUTHENTICATION_REQUIRED", "408 REQUEST_TIMEOUT", "409 CONFLICT", "410 GONE", "411 LENGTH_REQUIRED", "412 PRECONDITION_FAILED", "413 PAYLOAD_TOO_LARGE", "413 REQUEST_ENTITY_TOO_LARGE", "414 URI_TOO_LONG", "414 REQUEST_URI_TOO_LONG", "415 UNSUPPORTED_MEDIA_TYPE", "416 REQUESTED_RANGE_NOT_SATISFIABLE", "417 EXPECTATION_FAILED", "418 I_AM_A_TEAPOT", "419 INSUFFICIENT_SPACE_ON_RESOURCE", "420 METHOD_FAILURE", "421 DESTINATION_LOCKED", "422 UNPROCESSABLE_ENTITY", "423 LOCKED", "424 FAILED_DEPENDENCY", "425 TOO_EARLY", "426 UPGRADE_REQUIRED", "428 PRECONDITION_REQUIRED", "429 TOO_MANY_REQUESTS", "431 REQUEST_HEADER_FIELDS_TOO_LARGE", "451 UNAVAILABLE_FOR_LEGAL_REASONS", "500 INTERNAL_SERVER_ERROR", "501 NOT_IMPLEMENTED", "502 BAD_GATEWAY", "503 SERVICE_UNAVAILABLE", "504 GATEWAY_TIMEOUT", "505 HTTP_VERSION_NOT_SUPPORTED", "506 VARIANT_ALSO_NEGOTIATES", "507 INSUFFICIENT_STORAGE", "508 LOOP_DETECTED", "509 BANDWIDTH_LIMIT_EXCEEDED", "510 NOT_EXTENDED", "511 NETWORK_AUTHENTICATION_REQUIRED"] # noqa: E501 - if status not in allowed_values: - raise ValueError( - "Invalid value for `status` ({0}), must be one of {1}" # noqa: E501 - .format(status, allowed_values) - ) - - self._status = status - - @property - def message(self): - """Gets the message of this ApiErrorDto. # noqa: E501 - - - :return: The message of this ApiErrorDto. # noqa: E501 - :rtype: str - """ - return self._message - - @message.setter - def message(self, message): - """Sets the message of this ApiErrorDto. - - - :param message: The message of this ApiErrorDto. # noqa: E501 - :type: str - """ - if message is None: - raise ValueError("Invalid value for `message`, must not be `None`") # noqa: E501 - - self._message = message - - @property - def code(self): - """Gets the code of this ApiErrorDto. # noqa: E501 - - - :return: The code of this ApiErrorDto. # noqa: E501 - :rtype: str - """ - return self._code - - @code.setter - def code(self, code): - """Sets the code of this ApiErrorDto. - - - :param code: The code of this ApiErrorDto. # noqa: E501 - :type: str - """ - if code is None: - raise ValueError("Invalid value for `code`, must not be `None`") # noqa: E501 - - self._code = code - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(ApiErrorDto, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, ApiErrorDto): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/swagger/api-document/swagger_client/models/create_draft_dto.py b/swagger/api-document/swagger_client/models/create_draft_dto.py deleted file mode 100644 index df5a9447850e814775830a48cead5755b17a7f2a..0000000000000000000000000000000000000000 --- a/swagger/api-document/swagger_client/models/create_draft_dto.py +++ /dev/null @@ -1,165 +0,0 @@ -# coding: utf-8 - -""" - Database Repository Document Service API - - Service that manages the documents # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -import pprint -import re # noqa: F401 - -import six - -class CreateDraftDto(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'access': 'AccessOptionsDto', - 'files': 'FilesOptionsDto', - 'metadata': 'MetadataDto' - } - - attribute_map = { - 'access': 'access', - 'files': 'files', - 'metadata': 'metadata' - } - - def __init__(self, access=None, files=None, metadata=None): # noqa: E501 - """CreateDraftDto - a model defined in Swagger""" # noqa: E501 - self._access = None - self._files = None - self._metadata = None - self.discriminator = None - self.access = access - self.files = files - self.metadata = metadata - - @property - def access(self): - """Gets the access of this CreateDraftDto. # noqa: E501 - - - :return: The access of this CreateDraftDto. # noqa: E501 - :rtype: AccessOptionsDto - """ - return self._access - - @access.setter - def access(self, access): - """Sets the access of this CreateDraftDto. - - - :param access: The access of this CreateDraftDto. # noqa: E501 - :type: AccessOptionsDto - """ - if access is None: - raise ValueError("Invalid value for `access`, must not be `None`") # noqa: E501 - - self._access = access - - @property - def files(self): - """Gets the files of this CreateDraftDto. # noqa: E501 - - - :return: The files of this CreateDraftDto. # noqa: E501 - :rtype: FilesOptionsDto - """ - return self._files - - @files.setter - def files(self, files): - """Sets the files of this CreateDraftDto. - - - :param files: The files of this CreateDraftDto. # noqa: E501 - :type: FilesOptionsDto - """ - if files is None: - raise ValueError("Invalid value for `files`, must not be `None`") # noqa: E501 - - self._files = files - - @property - def metadata(self): - """Gets the metadata of this CreateDraftDto. # noqa: E501 - - - :return: The metadata of this CreateDraftDto. # noqa: E501 - :rtype: MetadataDto - """ - return self._metadata - - @metadata.setter - def metadata(self, metadata): - """Sets the metadata of this CreateDraftDto. - - - :param metadata: The metadata of this CreateDraftDto. # noqa: E501 - :type: MetadataDto - """ - if metadata is None: - raise ValueError("Invalid value for `metadata`, must not be `None`") # noqa: E501 - - self._metadata = metadata - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(CreateDraftDto, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, CreateDraftDto): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/swagger/api-document/swagger_client/models/creator_dto.py b/swagger/api-document/swagger_client/models/creator_dto.py deleted file mode 100644 index 315fc62e3a9a34730b57f45e305942b549700631..0000000000000000000000000000000000000000 --- a/swagger/api-document/swagger_client/models/creator_dto.py +++ /dev/null @@ -1,163 +0,0 @@ -# coding: utf-8 - -""" - Database Repository Document Service API - - Service that manages the documents # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -import pprint -import re # noqa: F401 - -import six - -class CreatorDto(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'role': 'str', - 'affiliations': 'list[AffiliationDto]', - 'person_or_org': 'PersonOrOrganizationDto' - } - - attribute_map = { - 'role': 'role', - 'affiliations': 'affiliations', - 'person_or_org': 'person_or_org' - } - - def __init__(self, role=None, affiliations=None, person_or_org=None): # noqa: E501 - """CreatorDto - a model defined in Swagger""" # noqa: E501 - self._role = None - self._affiliations = None - self._person_or_org = None - self.discriminator = None - if role is not None: - self.role = role - if affiliations is not None: - self.affiliations = affiliations - self.person_or_org = person_or_org - - @property - def role(self): - """Gets the role of this CreatorDto. # noqa: E501 - - - :return: The role of this CreatorDto. # noqa: E501 - :rtype: str - """ - return self._role - - @role.setter - def role(self, role): - """Sets the role of this CreatorDto. - - - :param role: The role of this CreatorDto. # noqa: E501 - :type: str - """ - - self._role = role - - @property - def affiliations(self): - """Gets the affiliations of this CreatorDto. # noqa: E501 - - - :return: The affiliations of this CreatorDto. # noqa: E501 - :rtype: list[AffiliationDto] - """ - return self._affiliations - - @affiliations.setter - def affiliations(self, affiliations): - """Sets the affiliations of this CreatorDto. - - - :param affiliations: The affiliations of this CreatorDto. # noqa: E501 - :type: list[AffiliationDto] - """ - - self._affiliations = affiliations - - @property - def person_or_org(self): - """Gets the person_or_org of this CreatorDto. # noqa: E501 - - - :return: The person_or_org of this CreatorDto. # noqa: E501 - :rtype: PersonOrOrganizationDto - """ - return self._person_or_org - - @person_or_org.setter - def person_or_org(self, person_or_org): - """Sets the person_or_org of this CreatorDto. - - - :param person_or_org: The person_or_org of this CreatorDto. # noqa: E501 - :type: PersonOrOrganizationDto - """ - if person_or_org is None: - raise ValueError("Invalid value for `person_or_org`, must not be `None`") # noqa: E501 - - self._person_or_org = person_or_org - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(CreatorDto, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, CreatorDto): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/swagger/api-document/swagger_client/models/doi_dto.py b/swagger/api-document/swagger_client/models/doi_dto.py deleted file mode 100644 index 967ef14d41058c13a8dcd8ae3d16bd6e4336d1b1..0000000000000000000000000000000000000000 --- a/swagger/api-document/swagger_client/models/doi_dto.py +++ /dev/null @@ -1,163 +0,0 @@ -# coding: utf-8 - -""" - Database Repository Document Service API - - Service that manages the documents # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -import pprint -import re # noqa: F401 - -import six - -class DoiDto(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'client': 'str', - 'identifier': 'str', - 'provider': 'str' - } - - attribute_map = { - 'client': 'client', - 'identifier': 'identifier', - 'provider': 'provider' - } - - def __init__(self, client=None, identifier=None, provider=None): # noqa: E501 - """DoiDto - a model defined in Swagger""" # noqa: E501 - self._client = None - self._identifier = None - self._provider = None - self.discriminator = None - if client is not None: - self.client = client - self.identifier = identifier - if provider is not None: - self.provider = provider - - @property - def client(self): - """Gets the client of this DoiDto. # noqa: E501 - - - :return: The client of this DoiDto. # noqa: E501 - :rtype: str - """ - return self._client - - @client.setter - def client(self, client): - """Sets the client of this DoiDto. - - - :param client: The client of this DoiDto. # noqa: E501 - :type: str - """ - - self._client = client - - @property - def identifier(self): - """Gets the identifier of this DoiDto. # noqa: E501 - - - :return: The identifier of this DoiDto. # noqa: E501 - :rtype: str - """ - return self._identifier - - @identifier.setter - def identifier(self, identifier): - """Sets the identifier of this DoiDto. - - - :param identifier: The identifier of this DoiDto. # noqa: E501 - :type: str - """ - if identifier is None: - raise ValueError("Invalid value for `identifier`, must not be `None`") # noqa: E501 - - self._identifier = identifier - - @property - def provider(self): - """Gets the provider of this DoiDto. # noqa: E501 - - - :return: The provider of this DoiDto. # noqa: E501 - :rtype: str - """ - return self._provider - - @provider.setter - def provider(self, provider): - """Sets the provider of this DoiDto. - - - :param provider: The provider of this DoiDto. # noqa: E501 - :type: str - """ - - self._provider = provider - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(DoiDto, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, DoiDto): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/swagger/api-document/swagger_client/models/draft_dto.py b/swagger/api-document/swagger_client/models/draft_dto.py deleted file mode 100644 index ac536777d8ec3696910c1ff17eb50f496a616be4..0000000000000000000000000000000000000000 --- a/swagger/api-document/swagger_client/models/draft_dto.py +++ /dev/null @@ -1,378 +0,0 @@ -# coding: utf-8 - -""" - Database Repository Document Service API - - Service that manages the documents # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -import pprint -import re # noqa: F401 - -import six - -class DraftDto(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'access': 'AccessOptionsDto', - 'created': 'datetime', - 'files': 'FilesOptionsDto', - 'id': 'str', - 'metadata': 'MetadataDto', - 'updated': 'datetime', - 'versions': 'DraftVersionsDto', - 'pids': 'PersistentIdentifiersDto', - 'expires_at': 'datetime', - 'is_published': 'bool', - 'revision_id': 'int' - } - - attribute_map = { - 'access': 'access', - 'created': 'created', - 'files': 'files', - 'id': 'id', - 'metadata': 'metadata', - 'updated': 'updated', - 'versions': 'versions', - 'pids': 'pids', - 'expires_at': 'expires_at', - 'is_published': 'is_published', - 'revision_id': 'revision_id' - } - - def __init__(self, access=None, created=None, files=None, id=None, metadata=None, updated=None, versions=None, pids=None, expires_at=None, is_published=None, revision_id=None): # noqa: E501 - """DraftDto - a model defined in Swagger""" # noqa: E501 - self._access = None - self._created = None - self._files = None - self._id = None - self._metadata = None - self._updated = None - self._versions = None - self._pids = None - self._expires_at = None - self._is_published = None - self._revision_id = None - self.discriminator = None - self.access = access - if created is not None: - self.created = created - self.files = files - self.id = id - self.metadata = metadata - if updated is not None: - self.updated = updated - self.versions = versions - self.pids = pids - if expires_at is not None: - self.expires_at = expires_at - self.is_published = is_published - self.revision_id = revision_id - - @property - def access(self): - """Gets the access of this DraftDto. # noqa: E501 - - - :return: The access of this DraftDto. # noqa: E501 - :rtype: AccessOptionsDto - """ - return self._access - - @access.setter - def access(self, access): - """Sets the access of this DraftDto. - - - :param access: The access of this DraftDto. # noqa: E501 - :type: AccessOptionsDto - """ - if access is None: - raise ValueError("Invalid value for `access`, must not be `None`") # noqa: E501 - - self._access = access - - @property - def created(self): - """Gets the created of this DraftDto. # noqa: E501 - - - :return: The created of this DraftDto. # noqa: E501 - :rtype: datetime - """ - return self._created - - @created.setter - def created(self, created): - """Sets the created of this DraftDto. - - - :param created: The created of this DraftDto. # noqa: E501 - :type: datetime - """ - - self._created = created - - @property - def files(self): - """Gets the files of this DraftDto. # noqa: E501 - - - :return: The files of this DraftDto. # noqa: E501 - :rtype: FilesOptionsDto - """ - return self._files - - @files.setter - def files(self, files): - """Sets the files of this DraftDto. - - - :param files: The files of this DraftDto. # noqa: E501 - :type: FilesOptionsDto - """ - if files is None: - raise ValueError("Invalid value for `files`, must not be `None`") # noqa: E501 - - self._files = files - - @property - def id(self): - """Gets the id of this DraftDto. # noqa: E501 - - - :return: The id of this DraftDto. # noqa: E501 - :rtype: str - """ - return self._id - - @id.setter - def id(self, id): - """Sets the id of this DraftDto. - - - :param id: The id of this DraftDto. # noqa: E501 - :type: str - """ - if id is None: - raise ValueError("Invalid value for `id`, must not be `None`") # noqa: E501 - - self._id = id - - @property - def metadata(self): - """Gets the metadata of this DraftDto. # noqa: E501 - - - :return: The metadata of this DraftDto. # noqa: E501 - :rtype: MetadataDto - """ - return self._metadata - - @metadata.setter - def metadata(self, metadata): - """Sets the metadata of this DraftDto. - - - :param metadata: The metadata of this DraftDto. # noqa: E501 - :type: MetadataDto - """ - if metadata is None: - raise ValueError("Invalid value for `metadata`, must not be `None`") # noqa: E501 - - self._metadata = metadata - - @property - def updated(self): - """Gets the updated of this DraftDto. # noqa: E501 - - - :return: The updated of this DraftDto. # noqa: E501 - :rtype: datetime - """ - return self._updated - - @updated.setter - def updated(self, updated): - """Sets the updated of this DraftDto. - - - :param updated: The updated of this DraftDto. # noqa: E501 - :type: datetime - """ - - self._updated = updated - - @property - def versions(self): - """Gets the versions of this DraftDto. # noqa: E501 - - - :return: The versions of this DraftDto. # noqa: E501 - :rtype: DraftVersionsDto - """ - return self._versions - - @versions.setter - def versions(self, versions): - """Sets the versions of this DraftDto. - - - :param versions: The versions of this DraftDto. # noqa: E501 - :type: DraftVersionsDto - """ - if versions is None: - raise ValueError("Invalid value for `versions`, must not be `None`") # noqa: E501 - - self._versions = versions - - @property - def pids(self): - """Gets the pids of this DraftDto. # noqa: E501 - - - :return: The pids of this DraftDto. # noqa: E501 - :rtype: PersistentIdentifiersDto - """ - return self._pids - - @pids.setter - def pids(self, pids): - """Sets the pids of this DraftDto. - - - :param pids: The pids of this DraftDto. # noqa: E501 - :type: PersistentIdentifiersDto - """ - if pids is None: - raise ValueError("Invalid value for `pids`, must not be `None`") # noqa: E501 - - self._pids = pids - - @property - def expires_at(self): - """Gets the expires_at of this DraftDto. # noqa: E501 - - - :return: The expires_at of this DraftDto. # noqa: E501 - :rtype: datetime - """ - return self._expires_at - - @expires_at.setter - def expires_at(self, expires_at): - """Sets the expires_at of this DraftDto. - - - :param expires_at: The expires_at of this DraftDto. # noqa: E501 - :type: datetime - """ - - self._expires_at = expires_at - - @property - def is_published(self): - """Gets the is_published of this DraftDto. # noqa: E501 - - - :return: The is_published of this DraftDto. # noqa: E501 - :rtype: bool - """ - return self._is_published - - @is_published.setter - def is_published(self, is_published): - """Sets the is_published of this DraftDto. - - - :param is_published: The is_published of this DraftDto. # noqa: E501 - :type: bool - """ - if is_published is None: - raise ValueError("Invalid value for `is_published`, must not be `None`") # noqa: E501 - - self._is_published = is_published - - @property - def revision_id(self): - """Gets the revision_id of this DraftDto. # noqa: E501 - - - :return: The revision_id of this DraftDto. # noqa: E501 - :rtype: int - """ - return self._revision_id - - @revision_id.setter - def revision_id(self, revision_id): - """Sets the revision_id of this DraftDto. - - - :param revision_id: The revision_id of this DraftDto. # noqa: E501 - :type: int - """ - if revision_id is None: - raise ValueError("Invalid value for `revision_id`, must not be `None`") # noqa: E501 - - self._revision_id = revision_id - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(DraftDto, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, DraftDto): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/swagger/api-document/swagger_client/models/draft_versions_dto.py b/swagger/api-document/swagger_client/models/draft_versions_dto.py deleted file mode 100644 index 33487b615b8890ae85c6c4f0a4c1d32cf7b6bd3f..0000000000000000000000000000000000000000 --- a/swagger/api-document/swagger_client/models/draft_versions_dto.py +++ /dev/null @@ -1,162 +0,0 @@ -# coding: utf-8 - -""" - Database Repository Document Service API - - Service that manages the documents # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -import pprint -import re # noqa: F401 - -import six - -class DraftVersionsDto(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'index': 'int', - 'is_latest': 'bool', - 'is_latest_draft': 'bool' - } - - attribute_map = { - 'index': 'index', - 'is_latest': 'is_latest', - 'is_latest_draft': 'is_latest_draft' - } - - def __init__(self, index=None, is_latest=None, is_latest_draft=None): # noqa: E501 - """DraftVersionsDto - a model defined in Swagger""" # noqa: E501 - self._index = None - self._is_latest = None - self._is_latest_draft = None - self.discriminator = None - if index is not None: - self.index = index - if is_latest is not None: - self.is_latest = is_latest - if is_latest_draft is not None: - self.is_latest_draft = is_latest_draft - - @property - def index(self): - """Gets the index of this DraftVersionsDto. # noqa: E501 - - - :return: The index of this DraftVersionsDto. # noqa: E501 - :rtype: int - """ - return self._index - - @index.setter - def index(self, index): - """Sets the index of this DraftVersionsDto. - - - :param index: The index of this DraftVersionsDto. # noqa: E501 - :type: int - """ - - self._index = index - - @property - def is_latest(self): - """Gets the is_latest of this DraftVersionsDto. # noqa: E501 - - - :return: The is_latest of this DraftVersionsDto. # noqa: E501 - :rtype: bool - """ - return self._is_latest - - @is_latest.setter - def is_latest(self, is_latest): - """Sets the is_latest of this DraftVersionsDto. - - - :param is_latest: The is_latest of this DraftVersionsDto. # noqa: E501 - :type: bool - """ - - self._is_latest = is_latest - - @property - def is_latest_draft(self): - """Gets the is_latest_draft of this DraftVersionsDto. # noqa: E501 - - - :return: The is_latest_draft of this DraftVersionsDto. # noqa: E501 - :rtype: bool - """ - return self._is_latest_draft - - @is_latest_draft.setter - def is_latest_draft(self, is_latest_draft): - """Sets the is_latest_draft of this DraftVersionsDto. - - - :param is_latest_draft: The is_latest_draft of this DraftVersionsDto. # noqa: E501 - :type: bool - """ - - self._is_latest_draft = is_latest_draft - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(DraftVersionsDto, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, DraftVersionsDto): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/swagger/api-document/swagger_client/models/embargo_dto.py b/swagger/api-document/swagger_client/models/embargo_dto.py deleted file mode 100644 index 5c7d4b8fde06f2e3de4644663febd93ed8b4e0f3..0000000000000000000000000000000000000000 --- a/swagger/api-document/swagger_client/models/embargo_dto.py +++ /dev/null @@ -1,163 +0,0 @@ -# coding: utf-8 - -""" - Database Repository Document Service API - - Service that manages the documents # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -import pprint -import re # noqa: F401 - -import six - -class EmbargoDto(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'active': 'bool', - 'until': 'datetime', - 'reason': 'str' - } - - attribute_map = { - 'active': 'active', - 'until': 'until', - 'reason': 'reason' - } - - def __init__(self, active=None, until=None, reason=None): # noqa: E501 - """EmbargoDto - a model defined in Swagger""" # noqa: E501 - self._active = None - self._until = None - self._reason = None - self.discriminator = None - self.active = active - if until is not None: - self.until = until - if reason is not None: - self.reason = reason - - @property - def active(self): - """Gets the active of this EmbargoDto. # noqa: E501 - - - :return: The active of this EmbargoDto. # noqa: E501 - :rtype: bool - """ - return self._active - - @active.setter - def active(self, active): - """Sets the active of this EmbargoDto. - - - :param active: The active of this EmbargoDto. # noqa: E501 - :type: bool - """ - if active is None: - raise ValueError("Invalid value for `active`, must not be `None`") # noqa: E501 - - self._active = active - - @property - def until(self): - """Gets the until of this EmbargoDto. # noqa: E501 - - - :return: The until of this EmbargoDto. # noqa: E501 - :rtype: datetime - """ - return self._until - - @until.setter - def until(self, until): - """Sets the until of this EmbargoDto. - - - :param until: The until of this EmbargoDto. # noqa: E501 - :type: datetime - """ - - self._until = until - - @property - def reason(self): - """Gets the reason of this EmbargoDto. # noqa: E501 - - - :return: The reason of this EmbargoDto. # noqa: E501 - :rtype: str - """ - return self._reason - - @reason.setter - def reason(self, reason): - """Sets the reason of this EmbargoDto. - - - :param reason: The reason of this EmbargoDto. # noqa: E501 - :type: str - """ - - self._reason = reason - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(EmbargoDto, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, EmbargoDto): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/swagger/api-document/swagger_client/models/entry_dto.py b/swagger/api-document/swagger_client/models/entry_dto.py deleted file mode 100644 index a9878285e13710d5449a455379ef634f36c3162a..0000000000000000000000000000000000000000 --- a/swagger/api-document/swagger_client/models/entry_dto.py +++ /dev/null @@ -1,240 +0,0 @@ -# coding: utf-8 - -""" - Database Repository Document Service API - - Service that manages the documents # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -import pprint -import re # noqa: F401 - -import six - -class EntryDto(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'key': 'str', - 'updated': 'datetime', - 'created': 'datetime', - 'metadata': 'str', - 'status': 'str', - 'links': 'LinksDto' - } - - attribute_map = { - 'key': 'key', - 'updated': 'updated', - 'created': 'created', - 'metadata': 'metadata', - 'status': 'status', - 'links': 'links' - } - - def __init__(self, key=None, updated=None, created=None, metadata=None, status=None, links=None): # noqa: E501 - """EntryDto - a model defined in Swagger""" # noqa: E501 - self._key = None - self._updated = None - self._created = None - self._metadata = None - self._status = None - self._links = None - self.discriminator = None - if key is not None: - self.key = key - if updated is not None: - self.updated = updated - if created is not None: - self.created = created - if metadata is not None: - self.metadata = metadata - if status is not None: - self.status = status - if links is not None: - self.links = links - - @property - def key(self): - """Gets the key of this EntryDto. # noqa: E501 - - - :return: The key of this EntryDto. # noqa: E501 - :rtype: str - """ - return self._key - - @key.setter - def key(self, key): - """Sets the key of this EntryDto. - - - :param key: The key of this EntryDto. # noqa: E501 - :type: str - """ - - self._key = key - - @property - def updated(self): - """Gets the updated of this EntryDto. # noqa: E501 - - - :return: The updated of this EntryDto. # noqa: E501 - :rtype: datetime - """ - return self._updated - - @updated.setter - def updated(self, updated): - """Sets the updated of this EntryDto. - - - :param updated: The updated of this EntryDto. # noqa: E501 - :type: datetime - """ - - self._updated = updated - - @property - def created(self): - """Gets the created of this EntryDto. # noqa: E501 - - - :return: The created of this EntryDto. # noqa: E501 - :rtype: datetime - """ - return self._created - - @created.setter - def created(self, created): - """Sets the created of this EntryDto. - - - :param created: The created of this EntryDto. # noqa: E501 - :type: datetime - """ - - self._created = created - - @property - def metadata(self): - """Gets the metadata of this EntryDto. # noqa: E501 - - - :return: The metadata of this EntryDto. # noqa: E501 - :rtype: str - """ - return self._metadata - - @metadata.setter - def metadata(self, metadata): - """Sets the metadata of this EntryDto. - - - :param metadata: The metadata of this EntryDto. # noqa: E501 - :type: str - """ - - self._metadata = metadata - - @property - def status(self): - """Gets the status of this EntryDto. # noqa: E501 - - - :return: The status of this EntryDto. # noqa: E501 - :rtype: str - """ - return self._status - - @status.setter - def status(self, status): - """Sets the status of this EntryDto. - - - :param status: The status of this EntryDto. # noqa: E501 - :type: str - """ - - self._status = status - - @property - def links(self): - """Gets the links of this EntryDto. # noqa: E501 - - - :return: The links of this EntryDto. # noqa: E501 - :rtype: LinksDto - """ - return self._links - - @links.setter - def links(self, links): - """Sets the links of this EntryDto. - - - :param links: The links of this EntryDto. # noqa: E501 - :type: LinksDto - """ - - self._links = links - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(EntryDto, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, EntryDto): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/swagger/api-document/swagger_client/models/file_announce_dto.py b/swagger/api-document/swagger_client/models/file_announce_dto.py deleted file mode 100644 index 9b34a26f28ff52681b223605bc4e3e71be1e9d3d..0000000000000000000000000000000000000000 --- a/swagger/api-document/swagger_client/models/file_announce_dto.py +++ /dev/null @@ -1,190 +0,0 @@ -# coding: utf-8 - -""" - Database Repository Document Service API - - Service that manages the documents # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -import pprint -import re # noqa: F401 - -import six - -class FileAnnounceDto(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'enabled': 'bool', - 'entries': 'list[FileEntryDto]', - 'links': 'LinksDto', - 'default_preview': 'str' - } - - attribute_map = { - 'enabled': 'enabled', - 'entries': 'entries', - 'links': 'links', - 'default_preview': 'default_preview' - } - - def __init__(self, enabled=None, entries=None, links=None, default_preview=None): # noqa: E501 - """FileAnnounceDto - a model defined in Swagger""" # noqa: E501 - self._enabled = None - self._entries = None - self._links = None - self._default_preview = None - self.discriminator = None - self.enabled = enabled - self.entries = entries - if links is not None: - self.links = links - if default_preview is not None: - self.default_preview = default_preview - - @property - def enabled(self): - """Gets the enabled of this FileAnnounceDto. # noqa: E501 - - - :return: The enabled of this FileAnnounceDto. # noqa: E501 - :rtype: bool - """ - return self._enabled - - @enabled.setter - def enabled(self, enabled): - """Sets the enabled of this FileAnnounceDto. - - - :param enabled: The enabled of this FileAnnounceDto. # noqa: E501 - :type: bool - """ - if enabled is None: - raise ValueError("Invalid value for `enabled`, must not be `None`") # noqa: E501 - - self._enabled = enabled - - @property - def entries(self): - """Gets the entries of this FileAnnounceDto. # noqa: E501 - - - :return: The entries of this FileAnnounceDto. # noqa: E501 - :rtype: list[FileEntryDto] - """ - return self._entries - - @entries.setter - def entries(self, entries): - """Sets the entries of this FileAnnounceDto. - - - :param entries: The entries of this FileAnnounceDto. # noqa: E501 - :type: list[FileEntryDto] - """ - if entries is None: - raise ValueError("Invalid value for `entries`, must not be `None`") # noqa: E501 - - self._entries = entries - - @property - def links(self): - """Gets the links of this FileAnnounceDto. # noqa: E501 - - - :return: The links of this FileAnnounceDto. # noqa: E501 - :rtype: LinksDto - """ - return self._links - - @links.setter - def links(self, links): - """Sets the links of this FileAnnounceDto. - - - :param links: The links of this FileAnnounceDto. # noqa: E501 - :type: LinksDto - """ - - self._links = links - - @property - def default_preview(self): - """Gets the default_preview of this FileAnnounceDto. # noqa: E501 - - - :return: The default_preview of this FileAnnounceDto. # noqa: E501 - :rtype: str - """ - return self._default_preview - - @default_preview.setter - def default_preview(self, default_preview): - """Sets the default_preview of this FileAnnounceDto. - - - :param default_preview: The default_preview of this FileAnnounceDto. # noqa: E501 - :type: str - """ - - self._default_preview = default_preview - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(FileAnnounceDto, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, FileAnnounceDto): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/swagger/api-document/swagger_client/models/file_dto.py b/swagger/api-document/swagger_client/models/file_dto.py deleted file mode 100644 index 134100bfcb946fec050c05a6452ed76090c57adf..0000000000000000000000000000000000000000 --- a/swagger/api-document/swagger_client/models/file_dto.py +++ /dev/null @@ -1,403 +0,0 @@ -# coding: utf-8 - -""" - Database Repository Document Service API - - Service that manages the documents # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -import pprint -import re # noqa: F401 - -import six - -class FileDto(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'checksum': 'str', - 'created': 'datetime', - 'updated': 'datetime', - 'key': 'str', - 'links': 'LinksDto', - 'mimetype': 'str', - 'size': 'int', - 'status': 'str', - 'bucket_id': 'str', - 'file_id': 'str', - 'storage_class': 'str', - 'version_id': 'str' - } - - attribute_map = { - 'checksum': 'checksum', - 'created': 'created', - 'updated': 'updated', - 'key': 'key', - 'links': 'links', - 'mimetype': 'mimetype', - 'size': 'size', - 'status': 'status', - 'bucket_id': 'bucket_id', - 'file_id': 'file_id', - 'storage_class': 'storage_class', - 'version_id': 'version_id' - } - - def __init__(self, checksum=None, created=None, updated=None, key=None, links=None, mimetype=None, size=None, status=None, bucket_id=None, file_id=None, storage_class=None, version_id=None): # noqa: E501 - """FileDto - a model defined in Swagger""" # noqa: E501 - self._checksum = None - self._created = None - self._updated = None - self._key = None - self._links = None - self._mimetype = None - self._size = None - self._status = None - self._bucket_id = None - self._file_id = None - self._storage_class = None - self._version_id = None - self.discriminator = None - self.checksum = checksum - self.created = created - self.updated = updated - self.key = key - self.links = links - if mimetype is not None: - self.mimetype = mimetype - if size is not None: - self.size = size - if status is not None: - self.status = status - self.bucket_id = bucket_id - self.file_id = file_id - if storage_class is not None: - self.storage_class = storage_class - if version_id is not None: - self.version_id = version_id - - @property - def checksum(self): - """Gets the checksum of this FileDto. # noqa: E501 - - - :return: The checksum of this FileDto. # noqa: E501 - :rtype: str - """ - return self._checksum - - @checksum.setter - def checksum(self, checksum): - """Sets the checksum of this FileDto. - - - :param checksum: The checksum of this FileDto. # noqa: E501 - :type: str - """ - if checksum is None: - raise ValueError("Invalid value for `checksum`, must not be `None`") # noqa: E501 - - self._checksum = checksum - - @property - def created(self): - """Gets the created of this FileDto. # noqa: E501 - - - :return: The created of this FileDto. # noqa: E501 - :rtype: datetime - """ - return self._created - - @created.setter - def created(self, created): - """Sets the created of this FileDto. - - - :param created: The created of this FileDto. # noqa: E501 - :type: datetime - """ - if created is None: - raise ValueError("Invalid value for `created`, must not be `None`") # noqa: E501 - - self._created = created - - @property - def updated(self): - """Gets the updated of this FileDto. # noqa: E501 - - - :return: The updated of this FileDto. # noqa: E501 - :rtype: datetime - """ - return self._updated - - @updated.setter - def updated(self, updated): - """Sets the updated of this FileDto. - - - :param updated: The updated of this FileDto. # noqa: E501 - :type: datetime - """ - if updated is None: - raise ValueError("Invalid value for `updated`, must not be `None`") # noqa: E501 - - self._updated = updated - - @property - def key(self): - """Gets the key of this FileDto. # noqa: E501 - - - :return: The key of this FileDto. # noqa: E501 - :rtype: str - """ - return self._key - - @key.setter - def key(self, key): - """Sets the key of this FileDto. - - - :param key: The key of this FileDto. # noqa: E501 - :type: str - """ - if key is None: - raise ValueError("Invalid value for `key`, must not be `None`") # noqa: E501 - - self._key = key - - @property - def links(self): - """Gets the links of this FileDto. # noqa: E501 - - - :return: The links of this FileDto. # noqa: E501 - :rtype: LinksDto - """ - return self._links - - @links.setter - def links(self, links): - """Sets the links of this FileDto. - - - :param links: The links of this FileDto. # noqa: E501 - :type: LinksDto - """ - if links is None: - raise ValueError("Invalid value for `links`, must not be `None`") # noqa: E501 - - self._links = links - - @property - def mimetype(self): - """Gets the mimetype of this FileDto. # noqa: E501 - - - :return: The mimetype of this FileDto. # noqa: E501 - :rtype: str - """ - return self._mimetype - - @mimetype.setter - def mimetype(self, mimetype): - """Sets the mimetype of this FileDto. - - - :param mimetype: The mimetype of this FileDto. # noqa: E501 - :type: str - """ - - self._mimetype = mimetype - - @property - def size(self): - """Gets the size of this FileDto. # noqa: E501 - - - :return: The size of this FileDto. # noqa: E501 - :rtype: int - """ - return self._size - - @size.setter - def size(self, size): - """Sets the size of this FileDto. - - - :param size: The size of this FileDto. # noqa: E501 - :type: int - """ - - self._size = size - - @property - def status(self): - """Gets the status of this FileDto. # noqa: E501 - - - :return: The status of this FileDto. # noqa: E501 - :rtype: str - """ - return self._status - - @status.setter - def status(self, status): - """Sets the status of this FileDto. - - - :param status: The status of this FileDto. # noqa: E501 - :type: str - """ - - self._status = status - - @property - def bucket_id(self): - """Gets the bucket_id of this FileDto. # noqa: E501 - - - :return: The bucket_id of this FileDto. # noqa: E501 - :rtype: str - """ - return self._bucket_id - - @bucket_id.setter - def bucket_id(self, bucket_id): - """Sets the bucket_id of this FileDto. - - - :param bucket_id: The bucket_id of this FileDto. # noqa: E501 - :type: str - """ - if bucket_id is None: - raise ValueError("Invalid value for `bucket_id`, must not be `None`") # noqa: E501 - - self._bucket_id = bucket_id - - @property - def file_id(self): - """Gets the file_id of this FileDto. # noqa: E501 - - - :return: The file_id of this FileDto. # noqa: E501 - :rtype: str - """ - return self._file_id - - @file_id.setter - def file_id(self, file_id): - """Sets the file_id of this FileDto. - - - :param file_id: The file_id of this FileDto. # noqa: E501 - :type: str - """ - if file_id is None: - raise ValueError("Invalid value for `file_id`, must not be `None`") # noqa: E501 - - self._file_id = file_id - - @property - def storage_class(self): - """Gets the storage_class of this FileDto. # noqa: E501 - - - :return: The storage_class of this FileDto. # noqa: E501 - :rtype: str - """ - return self._storage_class - - @storage_class.setter - def storage_class(self, storage_class): - """Sets the storage_class of this FileDto. - - - :param storage_class: The storage_class of this FileDto. # noqa: E501 - :type: str - """ - - self._storage_class = storage_class - - @property - def version_id(self): - """Gets the version_id of this FileDto. # noqa: E501 - - - :return: The version_id of this FileDto. # noqa: E501 - :rtype: str - """ - return self._version_id - - @version_id.setter - def version_id(self, version_id): - """Sets the version_id of this FileDto. - - - :param version_id: The version_id of this FileDto. # noqa: E501 - :type: str - """ - - self._version_id = version_id - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(FileDto, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, FileDto): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/swagger/api-document/swagger_client/models/file_entry_dto.py b/swagger/api-document/swagger_client/models/file_entry_dto.py deleted file mode 100644 index bc4ff05e0c9b736f8587aecc48e4da55dbecf674..0000000000000000000000000000000000000000 --- a/swagger/api-document/swagger_client/models/file_entry_dto.py +++ /dev/null @@ -1,217 +0,0 @@ -# coding: utf-8 - -""" - Database Repository Document Service API - - Service that manages the documents # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -import pprint -import re # noqa: F401 - -import six - -class FileEntryDto(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'key': 'str', - 'updated': 'datetime', - 'created': 'datetime', - 'status': 'str', - 'links': 'LinksDto' - } - - attribute_map = { - 'key': 'key', - 'updated': 'updated', - 'created': 'created', - 'status': 'status', - 'links': 'links' - } - - def __init__(self, key=None, updated=None, created=None, status=None, links=None): # noqa: E501 - """FileEntryDto - a model defined in Swagger""" # noqa: E501 - self._key = None - self._updated = None - self._created = None - self._status = None - self._links = None - self.discriminator = None - self.key = key - self.updated = updated - self.created = created - if status is not None: - self.status = status - if links is not None: - self.links = links - - @property - def key(self): - """Gets the key of this FileEntryDto. # noqa: E501 - - - :return: The key of this FileEntryDto. # noqa: E501 - :rtype: str - """ - return self._key - - @key.setter - def key(self, key): - """Sets the key of this FileEntryDto. - - - :param key: The key of this FileEntryDto. # noqa: E501 - :type: str - """ - if key is None: - raise ValueError("Invalid value for `key`, must not be `None`") # noqa: E501 - - self._key = key - - @property - def updated(self): - """Gets the updated of this FileEntryDto. # noqa: E501 - - - :return: The updated of this FileEntryDto. # noqa: E501 - :rtype: datetime - """ - return self._updated - - @updated.setter - def updated(self, updated): - """Sets the updated of this FileEntryDto. - - - :param updated: The updated of this FileEntryDto. # noqa: E501 - :type: datetime - """ - if updated is None: - raise ValueError("Invalid value for `updated`, must not be `None`") # noqa: E501 - - self._updated = updated - - @property - def created(self): - """Gets the created of this FileEntryDto. # noqa: E501 - - - :return: The created of this FileEntryDto. # noqa: E501 - :rtype: datetime - """ - return self._created - - @created.setter - def created(self, created): - """Sets the created of this FileEntryDto. - - - :param created: The created of this FileEntryDto. # noqa: E501 - :type: datetime - """ - if created is None: - raise ValueError("Invalid value for `created`, must not be `None`") # noqa: E501 - - self._created = created - - @property - def status(self): - """Gets the status of this FileEntryDto. # noqa: E501 - - - :return: The status of this FileEntryDto. # noqa: E501 - :rtype: str - """ - return self._status - - @status.setter - def status(self, status): - """Sets the status of this FileEntryDto. - - - :param status: The status of this FileEntryDto. # noqa: E501 - :type: str - """ - - self._status = status - - @property - def links(self): - """Gets the links of this FileEntryDto. # noqa: E501 - - - :return: The links of this FileEntryDto. # noqa: E501 - :rtype: LinksDto - """ - return self._links - - @links.setter - def links(self, links): - """Sets the links of this FileEntryDto. - - - :param links: The links of this FileEntryDto. # noqa: E501 - :type: LinksDto - """ - - self._links = links - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(FileEntryDto, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, FileEntryDto): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/swagger/api-document/swagger_client/models/file_key_dto.py b/swagger/api-document/swagger_client/models/file_key_dto.py deleted file mode 100644 index 5d58444631d87ef9050bb777d5145da01365e978..0000000000000000000000000000000000000000 --- a/swagger/api-document/swagger_client/models/file_key_dto.py +++ /dev/null @@ -1,111 +0,0 @@ -# coding: utf-8 - -""" - Database Repository Document Service API - - Service that manages the documents # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -import pprint -import re # noqa: F401 - -import six - -class FileKeyDto(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'key': 'str' - } - - attribute_map = { - 'key': 'key' - } - - def __init__(self, key=None): # noqa: E501 - """FileKeyDto - a model defined in Swagger""" # noqa: E501 - self._key = None - self.discriminator = None - self.key = key - - @property - def key(self): - """Gets the key of this FileKeyDto. # noqa: E501 - - - :return: The key of this FileKeyDto. # noqa: E501 - :rtype: str - """ - return self._key - - @key.setter - def key(self, key): - """Sets the key of this FileKeyDto. - - - :param key: The key of this FileKeyDto. # noqa: E501 - :type: str - """ - if key is None: - raise ValueError("Invalid value for `key`, must not be `None`") # noqa: E501 - - self._key = key - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(FileKeyDto, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, FileKeyDto): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/swagger/api-document/swagger_client/models/file_start_dto.py b/swagger/api-document/swagger_client/models/file_start_dto.py deleted file mode 100644 index 1ab48a767b46c2b9bb2c2b52ec1f4915bfcf5b2a..0000000000000000000000000000000000000000 --- a/swagger/api-document/swagger_client/models/file_start_dto.py +++ /dev/null @@ -1,217 +0,0 @@ -# coding: utf-8 - -""" - Database Repository Document Service API - - Service that manages the documents # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -import pprint -import re # noqa: F401 - -import six - -class FileStartDto(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'enabled': 'bool', - 'entries': 'list[EntryDto]', - 'links': 'LinksDto', - 'order': 'list[str]', - 'default_preview': 'str' - } - - attribute_map = { - 'enabled': 'enabled', - 'entries': 'entries', - 'links': 'links', - 'order': 'order', - 'default_preview': 'default_preview' - } - - def __init__(self, enabled=None, entries=None, links=None, order=None, default_preview=None): # noqa: E501 - """FileStartDto - a model defined in Swagger""" # noqa: E501 - self._enabled = None - self._entries = None - self._links = None - self._order = None - self._default_preview = None - self.discriminator = None - self.enabled = enabled - self.entries = entries - self.links = links - if order is not None: - self.order = order - if default_preview is not None: - self.default_preview = default_preview - - @property - def enabled(self): - """Gets the enabled of this FileStartDto. # noqa: E501 - - - :return: The enabled of this FileStartDto. # noqa: E501 - :rtype: bool - """ - return self._enabled - - @enabled.setter - def enabled(self, enabled): - """Sets the enabled of this FileStartDto. - - - :param enabled: The enabled of this FileStartDto. # noqa: E501 - :type: bool - """ - if enabled is None: - raise ValueError("Invalid value for `enabled`, must not be `None`") # noqa: E501 - - self._enabled = enabled - - @property - def entries(self): - """Gets the entries of this FileStartDto. # noqa: E501 - - - :return: The entries of this FileStartDto. # noqa: E501 - :rtype: list[EntryDto] - """ - return self._entries - - @entries.setter - def entries(self, entries): - """Sets the entries of this FileStartDto. - - - :param entries: The entries of this FileStartDto. # noqa: E501 - :type: list[EntryDto] - """ - if entries is None: - raise ValueError("Invalid value for `entries`, must not be `None`") # noqa: E501 - - self._entries = entries - - @property - def links(self): - """Gets the links of this FileStartDto. # noqa: E501 - - - :return: The links of this FileStartDto. # noqa: E501 - :rtype: LinksDto - """ - return self._links - - @links.setter - def links(self, links): - """Sets the links of this FileStartDto. - - - :param links: The links of this FileStartDto. # noqa: E501 - :type: LinksDto - """ - if links is None: - raise ValueError("Invalid value for `links`, must not be `None`") # noqa: E501 - - self._links = links - - @property - def order(self): - """Gets the order of this FileStartDto. # noqa: E501 - - - :return: The order of this FileStartDto. # noqa: E501 - :rtype: list[str] - """ - return self._order - - @order.setter - def order(self, order): - """Sets the order of this FileStartDto. - - - :param order: The order of this FileStartDto. # noqa: E501 - :type: list[str] - """ - - self._order = order - - @property - def default_preview(self): - """Gets the default_preview of this FileStartDto. # noqa: E501 - - - :return: The default_preview of this FileStartDto. # noqa: E501 - :rtype: str - """ - return self._default_preview - - @default_preview.setter - def default_preview(self, default_preview): - """Sets the default_preview of this FileStartDto. - - - :param default_preview: The default_preview of this FileStartDto. # noqa: E501 - :type: str - """ - - self._default_preview = default_preview - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(FileStartDto, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, FileStartDto): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/swagger/api-document/swagger_client/models/files_options_dto.py b/swagger/api-document/swagger_client/models/files_options_dto.py deleted file mode 100644 index 3e03fccba9e6bb09ea3014d7471cf975aed30f04..0000000000000000000000000000000000000000 --- a/swagger/api-document/swagger_client/models/files_options_dto.py +++ /dev/null @@ -1,137 +0,0 @@ -# coding: utf-8 - -""" - Database Repository Document Service API - - Service that manages the documents # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -import pprint -import re # noqa: F401 - -import six - -class FilesOptionsDto(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'enabled': 'bool', - 'default_preview': 'str' - } - - attribute_map = { - 'enabled': 'enabled', - 'default_preview': 'default_preview' - } - - def __init__(self, enabled=None, default_preview=None): # noqa: E501 - """FilesOptionsDto - a model defined in Swagger""" # noqa: E501 - self._enabled = None - self._default_preview = None - self.discriminator = None - self.enabled = enabled - if default_preview is not None: - self.default_preview = default_preview - - @property - def enabled(self): - """Gets the enabled of this FilesOptionsDto. # noqa: E501 - - - :return: The enabled of this FilesOptionsDto. # noqa: E501 - :rtype: bool - """ - return self._enabled - - @enabled.setter - def enabled(self, enabled): - """Sets the enabled of this FilesOptionsDto. - - - :param enabled: The enabled of this FilesOptionsDto. # noqa: E501 - :type: bool - """ - if enabled is None: - raise ValueError("Invalid value for `enabled`, must not be `None`") # noqa: E501 - - self._enabled = enabled - - @property - def default_preview(self): - """Gets the default_preview of this FilesOptionsDto. # noqa: E501 - - - :return: The default_preview of this FilesOptionsDto. # noqa: E501 - :rtype: str - """ - return self._default_preview - - @default_preview.setter - def default_preview(self, default_preview): - """Sets the default_preview of this FilesOptionsDto. - - - :param default_preview: The default_preview of this FilesOptionsDto. # noqa: E501 - :type: str - """ - - self._default_preview = default_preview - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(FilesOptionsDto, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, FilesOptionsDto): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/swagger/api-document/swagger_client/models/id_file_body.py b/swagger/api-document/swagger_client/models/id_file_body.py deleted file mode 100644 index cf7c4afba7c3621f4aed6c9b62681e33bdef3cab..0000000000000000000000000000000000000000 --- a/swagger/api-document/swagger_client/models/id_file_body.py +++ /dev/null @@ -1,111 +0,0 @@ -# coding: utf-8 - -""" - Database Repository Document Service API - - Service that manages the documents # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -import pprint -import re # noqa: F401 - -import six - -class IdFileBody(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'file': 'str' - } - - attribute_map = { - 'file': 'file' - } - - def __init__(self, file=None): # noqa: E501 - """IdFileBody - a model defined in Swagger""" # noqa: E501 - self._file = None - self.discriminator = None - self.file = file - - @property - def file(self): - """Gets the file of this IdFileBody. # noqa: E501 - - - :return: The file of this IdFileBody. # noqa: E501 - :rtype: str - """ - return self._file - - @file.setter - def file(self, file): - """Sets the file of this IdFileBody. - - - :param file: The file of this IdFileBody. # noqa: E501 - :type: str - """ - if file is None: - raise ValueError("Invalid value for `file`, must not be `None`") # noqa: E501 - - self._file = file - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(IdFileBody, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, IdFileBody): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/swagger/api-document/swagger_client/models/identifier_dto.py b/swagger/api-document/swagger_client/models/identifier_dto.py deleted file mode 100644 index 06a656f8893d47cf51319c8b0be589dfeb26513d..0000000000000000000000000000000000000000 --- a/swagger/api-document/swagger_client/models/identifier_dto.py +++ /dev/null @@ -1,144 +0,0 @@ -# coding: utf-8 - -""" - Database Repository Document Service API - - Service that manages the documents # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -import pprint -import re # noqa: F401 - -import six - -class IdentifierDto(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'scheme': 'str', - 'identifier': 'str' - } - - attribute_map = { - 'scheme': 'scheme', - 'identifier': 'identifier' - } - - def __init__(self, scheme=None, identifier=None): # noqa: E501 - """IdentifierDto - a model defined in Swagger""" # noqa: E501 - self._scheme = None - self._identifier = None - self.discriminator = None - self.scheme = scheme - self.identifier = identifier - - @property - def scheme(self): - """Gets the scheme of this IdentifierDto. # noqa: E501 - - - :return: The scheme of this IdentifierDto. # noqa: E501 - :rtype: str - """ - return self._scheme - - @scheme.setter - def scheme(self, scheme): - """Sets the scheme of this IdentifierDto. - - - :param scheme: The scheme of this IdentifierDto. # noqa: E501 - :type: str - """ - if scheme is None: - raise ValueError("Invalid value for `scheme`, must not be `None`") # noqa: E501 - allowed_values = ["orcid", "gnd", "isni", "ror"] # noqa: E501 - if scheme not in allowed_values: - raise ValueError( - "Invalid value for `scheme` ({0}), must be one of {1}" # noqa: E501 - .format(scheme, allowed_values) - ) - - self._scheme = scheme - - @property - def identifier(self): - """Gets the identifier of this IdentifierDto. # noqa: E501 - - - :return: The identifier of this IdentifierDto. # noqa: E501 - :rtype: str - """ - return self._identifier - - @identifier.setter - def identifier(self, identifier): - """Sets the identifier of this IdentifierDto. - - - :param identifier: The identifier of this IdentifierDto. # noqa: E501 - :type: str - """ - if identifier is None: - raise ValueError("Invalid value for `identifier`, must not be `None`") # noqa: E501 - - self._identifier = identifier - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(IdentifierDto, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, IdentifierDto): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/swagger/api-document/swagger_client/models/import_dto.py b/swagger/api-document/swagger_client/models/import_dto.py deleted file mode 100644 index e02a0bdd58964e4a722980d55b2fab833156839e..0000000000000000000000000000000000000000 --- a/swagger/api-document/swagger_client/models/import_dto.py +++ /dev/null @@ -1,268 +0,0 @@ -# coding: utf-8 - -""" - Database Repository Document Service API - - Service that manages the documents # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -import pprint -import re # noqa: F401 - -import six - -class ImportDto(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'location': 'str', - 'separator': 'str', - 'quote': 'str', - 'skip_lines': 'int', - 'false_element': 'str', - 'true_element': 'str', - 'null_element': 'str' - } - - attribute_map = { - 'location': 'location', - 'separator': 'separator', - 'quote': 'quote', - 'skip_lines': 'skip_lines', - 'false_element': 'false_element', - 'true_element': 'true_element', - 'null_element': 'null_element' - } - - def __init__(self, location=None, separator=None, quote=None, skip_lines=None, false_element=None, true_element=None, null_element=None): # noqa: E501 - """ImportDto - a model defined in Swagger""" # noqa: E501 - self._location = None - self._separator = None - self._quote = None - self._skip_lines = None - self._false_element = None - self._true_element = None - self._null_element = None - self.discriminator = None - self.location = location - self.separator = separator - if quote is not None: - self.quote = quote - if skip_lines is not None: - self.skip_lines = skip_lines - if false_element is not None: - self.false_element = false_element - if true_element is not None: - self.true_element = true_element - if null_element is not None: - self.null_element = null_element - - @property - def location(self): - """Gets the location of this ImportDto. # noqa: E501 - - - :return: The location of this ImportDto. # noqa: E501 - :rtype: str - """ - return self._location - - @location.setter - def location(self, location): - """Sets the location of this ImportDto. - - - :param location: The location of this ImportDto. # noqa: E501 - :type: str - """ - if location is None: - raise ValueError("Invalid value for `location`, must not be `None`") # noqa: E501 - - self._location = location - - @property - def separator(self): - """Gets the separator of this ImportDto. # noqa: E501 - - - :return: The separator of this ImportDto. # noqa: E501 - :rtype: str - """ - return self._separator - - @separator.setter - def separator(self, separator): - """Sets the separator of this ImportDto. - - - :param separator: The separator of this ImportDto. # noqa: E501 - :type: str - """ - if separator is None: - raise ValueError("Invalid value for `separator`, must not be `None`") # noqa: E501 - - self._separator = separator - - @property - def quote(self): - """Gets the quote of this ImportDto. # noqa: E501 - - - :return: The quote of this ImportDto. # noqa: E501 - :rtype: str - """ - return self._quote - - @quote.setter - def quote(self, quote): - """Sets the quote of this ImportDto. - - - :param quote: The quote of this ImportDto. # noqa: E501 - :type: str - """ - - self._quote = quote - - @property - def skip_lines(self): - """Gets the skip_lines of this ImportDto. # noqa: E501 - - - :return: The skip_lines of this ImportDto. # noqa: E501 - :rtype: int - """ - return self._skip_lines - - @skip_lines.setter - def skip_lines(self, skip_lines): - """Sets the skip_lines of this ImportDto. - - - :param skip_lines: The skip_lines of this ImportDto. # noqa: E501 - :type: int - """ - - self._skip_lines = skip_lines - - @property - def false_element(self): - """Gets the false_element of this ImportDto. # noqa: E501 - - - :return: The false_element of this ImportDto. # noqa: E501 - :rtype: str - """ - return self._false_element - - @false_element.setter - def false_element(self, false_element): - """Sets the false_element of this ImportDto. - - - :param false_element: The false_element of this ImportDto. # noqa: E501 - :type: str - """ - - self._false_element = false_element - - @property - def true_element(self): - """Gets the true_element of this ImportDto. # noqa: E501 - - - :return: The true_element of this ImportDto. # noqa: E501 - :rtype: str - """ - return self._true_element - - @true_element.setter - def true_element(self, true_element): - """Sets the true_element of this ImportDto. - - - :param true_element: The true_element of this ImportDto. # noqa: E501 - :type: str - """ - - self._true_element = true_element - - @property - def null_element(self): - """Gets the null_element of this ImportDto. # noqa: E501 - - - :return: The null_element of this ImportDto. # noqa: E501 - :rtype: str - """ - return self._null_element - - @null_element.setter - def null_element(self, null_element): - """Sets the null_element of this ImportDto. - - - :param null_element: The null_element of this ImportDto. # noqa: E501 - :type: str - """ - - self._null_element = null_element - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(ImportDto, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, ImportDto): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/swagger/api-document/swagger_client/models/links_dto.py b/swagger/api-document/swagger_client/models/links_dto.py deleted file mode 100644 index 68fa960c6ba9a2743705db2af09604c63a929cc9..0000000000000000000000000000000000000000 --- a/swagger/api-document/swagger_client/models/links_dto.py +++ /dev/null @@ -1,318 +0,0 @@ -# coding: utf-8 - -""" - Database Repository Document Service API - - Service that manages the documents # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -import pprint -import re # noqa: F401 - -import six - -class LinksDto(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'latest': 'str', - 'versions': 'str', - 'publish': 'str', - '_self': 'str', - 'files': 'str', - 'commit': 'str', - 'self_html': 'str', - 'latest_html': 'str', - 'access_links': 'str' - } - - attribute_map = { - 'latest': 'latest', - 'versions': 'versions', - 'publish': 'publish', - '_self': 'self', - 'files': 'files', - 'commit': 'commit', - 'self_html': 'self_html', - 'latest_html': 'latest_html', - 'access_links': 'access_links' - } - - def __init__(self, latest=None, versions=None, publish=None, _self=None, files=None, commit=None, self_html=None, latest_html=None, access_links=None): # noqa: E501 - """LinksDto - a model defined in Swagger""" # noqa: E501 - self._latest = None - self._versions = None - self._publish = None - self.__self = None - self._files = None - self._commit = None - self._self_html = None - self._latest_html = None - self._access_links = None - self.discriminator = None - if latest is not None: - self.latest = latest - if versions is not None: - self.versions = versions - if publish is not None: - self.publish = publish - if _self is not None: - self._self = _self - if files is not None: - self.files = files - if commit is not None: - self.commit = commit - if self_html is not None: - self.self_html = self_html - if latest_html is not None: - self.latest_html = latest_html - if access_links is not None: - self.access_links = access_links - - @property - def latest(self): - """Gets the latest of this LinksDto. # noqa: E501 - - - :return: The latest of this LinksDto. # noqa: E501 - :rtype: str - """ - return self._latest - - @latest.setter - def latest(self, latest): - """Sets the latest of this LinksDto. - - - :param latest: The latest of this LinksDto. # noqa: E501 - :type: str - """ - - self._latest = latest - - @property - def versions(self): - """Gets the versions of this LinksDto. # noqa: E501 - - - :return: The versions of this LinksDto. # noqa: E501 - :rtype: str - """ - return self._versions - - @versions.setter - def versions(self, versions): - """Sets the versions of this LinksDto. - - - :param versions: The versions of this LinksDto. # noqa: E501 - :type: str - """ - - self._versions = versions - - @property - def publish(self): - """Gets the publish of this LinksDto. # noqa: E501 - - - :return: The publish of this LinksDto. # noqa: E501 - :rtype: str - """ - return self._publish - - @publish.setter - def publish(self, publish): - """Sets the publish of this LinksDto. - - - :param publish: The publish of this LinksDto. # noqa: E501 - :type: str - """ - - self._publish = publish - - @property - def _self(self): - """Gets the _self of this LinksDto. # noqa: E501 - - - :return: The _self of this LinksDto. # noqa: E501 - :rtype: str - """ - return self.__self - - @_self.setter - def _self(self, _self): - """Sets the _self of this LinksDto. - - - :param _self: The _self of this LinksDto. # noqa: E501 - :type: str - """ - - self.__self = _self - - @property - def files(self): - """Gets the files of this LinksDto. # noqa: E501 - - - :return: The files of this LinksDto. # noqa: E501 - :rtype: str - """ - return self._files - - @files.setter - def files(self, files): - """Sets the files of this LinksDto. - - - :param files: The files of this LinksDto. # noqa: E501 - :type: str - """ - - self._files = files - - @property - def commit(self): - """Gets the commit of this LinksDto. # noqa: E501 - - - :return: The commit of this LinksDto. # noqa: E501 - :rtype: str - """ - return self._commit - - @commit.setter - def commit(self, commit): - """Sets the commit of this LinksDto. - - - :param commit: The commit of this LinksDto. # noqa: E501 - :type: str - """ - - self._commit = commit - - @property - def self_html(self): - """Gets the self_html of this LinksDto. # noqa: E501 - - - :return: The self_html of this LinksDto. # noqa: E501 - :rtype: str - """ - return self._self_html - - @self_html.setter - def self_html(self, self_html): - """Sets the self_html of this LinksDto. - - - :param self_html: The self_html of this LinksDto. # noqa: E501 - :type: str - """ - - self._self_html = self_html - - @property - def latest_html(self): - """Gets the latest_html of this LinksDto. # noqa: E501 - - - :return: The latest_html of this LinksDto. # noqa: E501 - :rtype: str - """ - return self._latest_html - - @latest_html.setter - def latest_html(self, latest_html): - """Sets the latest_html of this LinksDto. - - - :param latest_html: The latest_html of this LinksDto. # noqa: E501 - :type: str - """ - - self._latest_html = latest_html - - @property - def access_links(self): - """Gets the access_links of this LinksDto. # noqa: E501 - - - :return: The access_links of this LinksDto. # noqa: E501 - :rtype: str - """ - return self._access_links - - @access_links.setter - def access_links(self, access_links): - """Sets the access_links of this LinksDto. - - - :param access_links: The access_links of this LinksDto. # noqa: E501 - :type: str - """ - - self._access_links = access_links - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(LinksDto, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, LinksDto): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/swagger/api-document/swagger_client/models/metadata_dto.py b/swagger/api-document/swagger_client/models/metadata_dto.py deleted file mode 100644 index f40dbd810edbebcf73856e6ae8f01de3d7e99604..0000000000000000000000000000000000000000 --- a/swagger/api-document/swagger_client/models/metadata_dto.py +++ /dev/null @@ -1,192 +0,0 @@ -# coding: utf-8 - -""" - Database Repository Document Service API - - Service that manages the documents # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -import pprint -import re # noqa: F401 - -import six - -class MetadataDto(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'creators': 'list[CreatorDto]', - 'title': 'str', - 'resource_type': 'ResourceTypeDto', - 'publication_date': 'datetime' - } - - attribute_map = { - 'creators': 'creators', - 'title': 'title', - 'resource_type': 'resource_type', - 'publication_date': 'publication_date' - } - - def __init__(self, creators=None, title=None, resource_type=None, publication_date=None): # noqa: E501 - """MetadataDto - a model defined in Swagger""" # noqa: E501 - self._creators = None - self._title = None - self._resource_type = None - self._publication_date = None - self.discriminator = None - self.creators = creators - self.title = title - self.resource_type = resource_type - self.publication_date = publication_date - - @property - def creators(self): - """Gets the creators of this MetadataDto. # noqa: E501 - - - :return: The creators of this MetadataDto. # noqa: E501 - :rtype: list[CreatorDto] - """ - return self._creators - - @creators.setter - def creators(self, creators): - """Sets the creators of this MetadataDto. - - - :param creators: The creators of this MetadataDto. # noqa: E501 - :type: list[CreatorDto] - """ - if creators is None: - raise ValueError("Invalid value for `creators`, must not be `None`") # noqa: E501 - - self._creators = creators - - @property - def title(self): - """Gets the title of this MetadataDto. # noqa: E501 - - - :return: The title of this MetadataDto. # noqa: E501 - :rtype: str - """ - return self._title - - @title.setter - def title(self, title): - """Sets the title of this MetadataDto. - - - :param title: The title of this MetadataDto. # noqa: E501 - :type: str - """ - if title is None: - raise ValueError("Invalid value for `title`, must not be `None`") # noqa: E501 - - self._title = title - - @property - def resource_type(self): - """Gets the resource_type of this MetadataDto. # noqa: E501 - - - :return: The resource_type of this MetadataDto. # noqa: E501 - :rtype: ResourceTypeDto - """ - return self._resource_type - - @resource_type.setter - def resource_type(self, resource_type): - """Sets the resource_type of this MetadataDto. - - - :param resource_type: The resource_type of this MetadataDto. # noqa: E501 - :type: ResourceTypeDto - """ - if resource_type is None: - raise ValueError("Invalid value for `resource_type`, must not be `None`") # noqa: E501 - - self._resource_type = resource_type - - @property - def publication_date(self): - """Gets the publication_date of this MetadataDto. # noqa: E501 - - - :return: The publication_date of this MetadataDto. # noqa: E501 - :rtype: datetime - """ - return self._publication_date - - @publication_date.setter - def publication_date(self, publication_date): - """Sets the publication_date of this MetadataDto. - - - :param publication_date: The publication_date of this MetadataDto. # noqa: E501 - :type: datetime - """ - if publication_date is None: - raise ValueError("Invalid value for `publication_date`, must not be `None`") # noqa: E501 - - self._publication_date = publication_date - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(MetadataDto, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, MetadataDto): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/swagger/api-document/swagger_client/models/persistent_identifiers_dto.py b/swagger/api-document/swagger_client/models/persistent_identifiers_dto.py deleted file mode 100644 index c356344f5a5b7ff2cbfff5807242ed7ac11209df..0000000000000000000000000000000000000000 --- a/swagger/api-document/swagger_client/models/persistent_identifiers_dto.py +++ /dev/null @@ -1,110 +0,0 @@ -# coding: utf-8 - -""" - Database Repository Document Service API - - Service that manages the documents # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -import pprint -import re # noqa: F401 - -import six - -class PersistentIdentifiersDto(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'doi': 'DoiDto' - } - - attribute_map = { - 'doi': 'doi' - } - - def __init__(self, doi=None): # noqa: E501 - """PersistentIdentifiersDto - a model defined in Swagger""" # noqa: E501 - self._doi = None - self.discriminator = None - if doi is not None: - self.doi = doi - - @property - def doi(self): - """Gets the doi of this PersistentIdentifiersDto. # noqa: E501 - - - :return: The doi of this PersistentIdentifiersDto. # noqa: E501 - :rtype: DoiDto - """ - return self._doi - - @doi.setter - def doi(self, doi): - """Sets the doi of this PersistentIdentifiersDto. - - - :param doi: The doi of this PersistentIdentifiersDto. # noqa: E501 - :type: DoiDto - """ - - self._doi = doi - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(PersistentIdentifiersDto, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, PersistentIdentifiersDto): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/swagger/api-document/swagger_client/models/person_or_organization_dto.py b/swagger/api-document/swagger_client/models/person_or_organization_dto.py deleted file mode 100644 index 804eb30c64149ddfe03d788b07a8c884256df8aa..0000000000000000000000000000000000000000 --- a/swagger/api-document/swagger_client/models/person_or_organization_dto.py +++ /dev/null @@ -1,221 +0,0 @@ -# coding: utf-8 - -""" - Database Repository Document Service API - - Service that manages the documents # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -import pprint -import re # noqa: F401 - -import six - -class PersonOrOrganizationDto(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'type': 'str', - 'name': 'str', - 'identifiers': 'list[IdentifierDto]', - 'given_name': 'str', - 'family_name': 'str' - } - - attribute_map = { - 'type': 'type', - 'name': 'name', - 'identifiers': 'identifiers', - 'given_name': 'given_name', - 'family_name': 'family_name' - } - - def __init__(self, type=None, name=None, identifiers=None, given_name=None, family_name=None): # noqa: E501 - """PersonOrOrganizationDto - a model defined in Swagger""" # noqa: E501 - self._type = None - self._name = None - self._identifiers = None - self._given_name = None - self._family_name = None - self.discriminator = None - self.type = type - if name is not None: - self.name = name - if identifiers is not None: - self.identifiers = identifiers - if given_name is not None: - self.given_name = given_name - if family_name is not None: - self.family_name = family_name - - @property - def type(self): - """Gets the type of this PersonOrOrganizationDto. # noqa: E501 - - - :return: The type of this PersonOrOrganizationDto. # noqa: E501 - :rtype: str - """ - return self._type - - @type.setter - def type(self, type): - """Sets the type of this PersonOrOrganizationDto. - - - :param type: The type of this PersonOrOrganizationDto. # noqa: E501 - :type: str - """ - if type is None: - raise ValueError("Invalid value for `type`, must not be `None`") # noqa: E501 - allowed_values = ["personal", "organizational"] # noqa: E501 - if type not in allowed_values: - raise ValueError( - "Invalid value for `type` ({0}), must be one of {1}" # noqa: E501 - .format(type, allowed_values) - ) - - self._type = type - - @property - def name(self): - """Gets the name of this PersonOrOrganizationDto. # noqa: E501 - - - :return: The name of this PersonOrOrganizationDto. # noqa: E501 - :rtype: str - """ - return self._name - - @name.setter - def name(self, name): - """Sets the name of this PersonOrOrganizationDto. - - - :param name: The name of this PersonOrOrganizationDto. # noqa: E501 - :type: str - """ - - self._name = name - - @property - def identifiers(self): - """Gets the identifiers of this PersonOrOrganizationDto. # noqa: E501 - - - :return: The identifiers of this PersonOrOrganizationDto. # noqa: E501 - :rtype: list[IdentifierDto] - """ - return self._identifiers - - @identifiers.setter - def identifiers(self, identifiers): - """Sets the identifiers of this PersonOrOrganizationDto. - - - :param identifiers: The identifiers of this PersonOrOrganizationDto. # noqa: E501 - :type: list[IdentifierDto] - """ - - self._identifiers = identifiers - - @property - def given_name(self): - """Gets the given_name of this PersonOrOrganizationDto. # noqa: E501 - - - :return: The given_name of this PersonOrOrganizationDto. # noqa: E501 - :rtype: str - """ - return self._given_name - - @given_name.setter - def given_name(self, given_name): - """Sets the given_name of this PersonOrOrganizationDto. - - - :param given_name: The given_name of this PersonOrOrganizationDto. # noqa: E501 - :type: str - """ - - self._given_name = given_name - - @property - def family_name(self): - """Gets the family_name of this PersonOrOrganizationDto. # noqa: E501 - - - :return: The family_name of this PersonOrOrganizationDto. # noqa: E501 - :rtype: str - """ - return self._family_name - - @family_name.setter - def family_name(self, family_name): - """Sets the family_name of this PersonOrOrganizationDto. - - - :param family_name: The family_name of this PersonOrOrganizationDto. # noqa: E501 - :type: str - """ - - self._family_name = family_name - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(PersonOrOrganizationDto, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, PersonOrOrganizationDto): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/swagger/api-document/swagger_client/models/record_dto.py b/swagger/api-document/swagger_client/models/record_dto.py deleted file mode 100644 index 5dbca20506eb60a506c45533623f05e14088d5e3..0000000000000000000000000000000000000000 --- a/swagger/api-document/swagger_client/models/record_dto.py +++ /dev/null @@ -1,378 +0,0 @@ -# coding: utf-8 - -""" - Database Repository Document Service API - - Service that manages the documents # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -import pprint -import re # noqa: F401 - -import six - -class RecordDto(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'access': 'AccessOptionsDto', - 'created': 'datetime', - 'files': 'FilesOptionsDto', - 'id': 'str', - 'metadata': 'MetadataDto', - 'updated': 'datetime', - 'versions': 'DraftVersionsDto', - 'pids': 'PersistentIdentifiersDto', - 'expires_at': 'datetime', - 'is_published': 'bool', - 'revision_id': 'int' - } - - attribute_map = { - 'access': 'access', - 'created': 'created', - 'files': 'files', - 'id': 'id', - 'metadata': 'metadata', - 'updated': 'updated', - 'versions': 'versions', - 'pids': 'pids', - 'expires_at': 'expires_at', - 'is_published': 'is_published', - 'revision_id': 'revision_id' - } - - def __init__(self, access=None, created=None, files=None, id=None, metadata=None, updated=None, versions=None, pids=None, expires_at=None, is_published=None, revision_id=None): # noqa: E501 - """RecordDto - a model defined in Swagger""" # noqa: E501 - self._access = None - self._created = None - self._files = None - self._id = None - self._metadata = None - self._updated = None - self._versions = None - self._pids = None - self._expires_at = None - self._is_published = None - self._revision_id = None - self.discriminator = None - self.access = access - if created is not None: - self.created = created - self.files = files - self.id = id - self.metadata = metadata - if updated is not None: - self.updated = updated - self.versions = versions - self.pids = pids - if expires_at is not None: - self.expires_at = expires_at - self.is_published = is_published - self.revision_id = revision_id - - @property - def access(self): - """Gets the access of this RecordDto. # noqa: E501 - - - :return: The access of this RecordDto. # noqa: E501 - :rtype: AccessOptionsDto - """ - return self._access - - @access.setter - def access(self, access): - """Sets the access of this RecordDto. - - - :param access: The access of this RecordDto. # noqa: E501 - :type: AccessOptionsDto - """ - if access is None: - raise ValueError("Invalid value for `access`, must not be `None`") # noqa: E501 - - self._access = access - - @property - def created(self): - """Gets the created of this RecordDto. # noqa: E501 - - - :return: The created of this RecordDto. # noqa: E501 - :rtype: datetime - """ - return self._created - - @created.setter - def created(self, created): - """Sets the created of this RecordDto. - - - :param created: The created of this RecordDto. # noqa: E501 - :type: datetime - """ - - self._created = created - - @property - def files(self): - """Gets the files of this RecordDto. # noqa: E501 - - - :return: The files of this RecordDto. # noqa: E501 - :rtype: FilesOptionsDto - """ - return self._files - - @files.setter - def files(self, files): - """Sets the files of this RecordDto. - - - :param files: The files of this RecordDto. # noqa: E501 - :type: FilesOptionsDto - """ - if files is None: - raise ValueError("Invalid value for `files`, must not be `None`") # noqa: E501 - - self._files = files - - @property - def id(self): - """Gets the id of this RecordDto. # noqa: E501 - - - :return: The id of this RecordDto. # noqa: E501 - :rtype: str - """ - return self._id - - @id.setter - def id(self, id): - """Sets the id of this RecordDto. - - - :param id: The id of this RecordDto. # noqa: E501 - :type: str - """ - if id is None: - raise ValueError("Invalid value for `id`, must not be `None`") # noqa: E501 - - self._id = id - - @property - def metadata(self): - """Gets the metadata of this RecordDto. # noqa: E501 - - - :return: The metadata of this RecordDto. # noqa: E501 - :rtype: MetadataDto - """ - return self._metadata - - @metadata.setter - def metadata(self, metadata): - """Sets the metadata of this RecordDto. - - - :param metadata: The metadata of this RecordDto. # noqa: E501 - :type: MetadataDto - """ - if metadata is None: - raise ValueError("Invalid value for `metadata`, must not be `None`") # noqa: E501 - - self._metadata = metadata - - @property - def updated(self): - """Gets the updated of this RecordDto. # noqa: E501 - - - :return: The updated of this RecordDto. # noqa: E501 - :rtype: datetime - """ - return self._updated - - @updated.setter - def updated(self, updated): - """Sets the updated of this RecordDto. - - - :param updated: The updated of this RecordDto. # noqa: E501 - :type: datetime - """ - - self._updated = updated - - @property - def versions(self): - """Gets the versions of this RecordDto. # noqa: E501 - - - :return: The versions of this RecordDto. # noqa: E501 - :rtype: DraftVersionsDto - """ - return self._versions - - @versions.setter - def versions(self, versions): - """Sets the versions of this RecordDto. - - - :param versions: The versions of this RecordDto. # noqa: E501 - :type: DraftVersionsDto - """ - if versions is None: - raise ValueError("Invalid value for `versions`, must not be `None`") # noqa: E501 - - self._versions = versions - - @property - def pids(self): - """Gets the pids of this RecordDto. # noqa: E501 - - - :return: The pids of this RecordDto. # noqa: E501 - :rtype: PersistentIdentifiersDto - """ - return self._pids - - @pids.setter - def pids(self, pids): - """Sets the pids of this RecordDto. - - - :param pids: The pids of this RecordDto. # noqa: E501 - :type: PersistentIdentifiersDto - """ - if pids is None: - raise ValueError("Invalid value for `pids`, must not be `None`") # noqa: E501 - - self._pids = pids - - @property - def expires_at(self): - """Gets the expires_at of this RecordDto. # noqa: E501 - - - :return: The expires_at of this RecordDto. # noqa: E501 - :rtype: datetime - """ - return self._expires_at - - @expires_at.setter - def expires_at(self, expires_at): - """Sets the expires_at of this RecordDto. - - - :param expires_at: The expires_at of this RecordDto. # noqa: E501 - :type: datetime - """ - - self._expires_at = expires_at - - @property - def is_published(self): - """Gets the is_published of this RecordDto. # noqa: E501 - - - :return: The is_published of this RecordDto. # noqa: E501 - :rtype: bool - """ - return self._is_published - - @is_published.setter - def is_published(self, is_published): - """Sets the is_published of this RecordDto. - - - :param is_published: The is_published of this RecordDto. # noqa: E501 - :type: bool - """ - if is_published is None: - raise ValueError("Invalid value for `is_published`, must not be `None`") # noqa: E501 - - self._is_published = is_published - - @property - def revision_id(self): - """Gets the revision_id of this RecordDto. # noqa: E501 - - - :return: The revision_id of this RecordDto. # noqa: E501 - :rtype: int - """ - return self._revision_id - - @revision_id.setter - def revision_id(self, revision_id): - """Sets the revision_id of this RecordDto. - - - :param revision_id: The revision_id of this RecordDto. # noqa: E501 - :type: int - """ - if revision_id is None: - raise ValueError("Invalid value for `revision_id`, must not be `None`") # noqa: E501 - - self._revision_id = revision_id - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(RecordDto, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, RecordDto): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/swagger/api-document/swagger_client/models/resource_type_dto.py b/swagger/api-document/swagger_client/models/resource_type_dto.py deleted file mode 100644 index 43189edddff4cb275ca548bdb01c5cb6410314c4..0000000000000000000000000000000000000000 --- a/swagger/api-document/swagger_client/models/resource_type_dto.py +++ /dev/null @@ -1,111 +0,0 @@ -# coding: utf-8 - -""" - Database Repository Document Service API - - Service that manages the documents # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -import pprint -import re # noqa: F401 - -import six - -class ResourceTypeDto(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'id': 'str' - } - - attribute_map = { - 'id': 'id' - } - - def __init__(self, id=None): # noqa: E501 - """ResourceTypeDto - a model defined in Swagger""" # noqa: E501 - self._id = None - self.discriminator = None - self.id = id - - @property - def id(self): - """Gets the id of this ResourceTypeDto. # noqa: E501 - - - :return: The id of this ResourceTypeDto. # noqa: E501 - :rtype: str - """ - return self._id - - @id.setter - def id(self, id): - """Sets the id of this ResourceTypeDto. - - - :param id: The id of this ResourceTypeDto. # noqa: E501 - :type: str - """ - if id is None: - raise ValueError("Invalid value for `id`, must not be `None`") # noqa: E501 - - self._id = id - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(ResourceTypeDto, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, ResourceTypeDto): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/swagger/api-document/swagger_client/rest.py b/swagger/api-document/swagger_client/rest.py deleted file mode 100644 index 95211034db5ed07276d58e9819007c3b34cf59f9..0000000000000000000000000000000000000000 --- a/swagger/api-document/swagger_client/rest.py +++ /dev/null @@ -1,317 +0,0 @@ -# coding: utf-8 - -""" - Database Repository Document Service API - - Service that manages the documents # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -from __future__ import absolute_import - -import io -import json -import logging -import re -import ssl - -import certifi -# python 2 and python 3 compatibility library -import six -from six.moves.urllib.parse import urlencode - -try: - import urllib3 -except ImportError: - raise ImportError('Swagger python client requires urllib3.') - - -logger = logging.getLogger(__name__) - - -class RESTResponse(io.IOBase): - - def __init__(self, resp): - self.urllib3_response = resp - self.status = resp.status - self.reason = resp.reason - self.data = resp.data - - def getheaders(self): - """Returns a dictionary of the response headers.""" - return self.urllib3_response.getheaders() - - def getheader(self, name, default=None): - """Returns a given response header.""" - return self.urllib3_response.getheader(name, default) - - -class RESTClientObject(object): - - def __init__(self, configuration, pools_size=4, maxsize=None): - # urllib3.PoolManager will pass all kw parameters to connectionpool - # https://github.com/shazow/urllib3/blob/f9409436f83aeb79fbaf090181cd81b784f1b8ce/urllib3/poolmanager.py#L75 # noqa: E501 - # https://github.com/shazow/urllib3/blob/f9409436f83aeb79fbaf090181cd81b784f1b8ce/urllib3/connectionpool.py#L680 # noqa: E501 - # maxsize is the number of requests to host that are allowed in parallel # noqa: E501 - # Custom SSL certificates and client certificates: http://urllib3.readthedocs.io/en/latest/advanced-usage.html # noqa: E501 - - # cert_reqs - if configuration.verify_ssl: - cert_reqs = ssl.CERT_REQUIRED - else: - cert_reqs = ssl.CERT_NONE - - # ca_certs - if configuration.ssl_ca_cert: - ca_certs = configuration.ssl_ca_cert - else: - # if not set certificate file, use Mozilla's root certificates. - ca_certs = certifi.where() - - addition_pool_args = {} - if configuration.assert_hostname is not None: - addition_pool_args['assert_hostname'] = configuration.assert_hostname # noqa: E501 - - if maxsize is None: - if configuration.connection_pool_maxsize is not None: - maxsize = configuration.connection_pool_maxsize - else: - maxsize = 4 - - # https pool manager - if configuration.proxy: - self.pool_manager = urllib3.ProxyManager( - num_pools=pools_size, - maxsize=maxsize, - cert_reqs=cert_reqs, - ca_certs=ca_certs, - cert_file=configuration.cert_file, - key_file=configuration.key_file, - proxy_url=configuration.proxy, - **addition_pool_args - ) - else: - self.pool_manager = urllib3.PoolManager( - num_pools=pools_size, - maxsize=maxsize, - cert_reqs=cert_reqs, - ca_certs=ca_certs, - cert_file=configuration.cert_file, - key_file=configuration.key_file, - **addition_pool_args - ) - - def request(self, method, url, query_params=None, headers=None, - body=None, post_params=None, _preload_content=True, - _request_timeout=None): - """Perform requests. - - :param method: http request method - :param url: http request url - :param query_params: query parameters in the url - :param headers: http request headers - :param body: request json body, for `application/json` - :param post_params: request post parameters, - `application/x-www-form-urlencoded` - and `multipart/form-data` - :param _preload_content: if False, the urllib3.HTTPResponse object will - be returned without reading/decoding response - data. Default is True. - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - """ - method = method.upper() - assert method in ['GET', 'HEAD', 'DELETE', 'POST', 'PUT', - 'PATCH', 'OPTIONS'] - - if post_params and body: - raise ValueError( - "body parameter cannot be used with post_params parameter." - ) - - post_params = post_params or {} - headers = headers or {} - - timeout = None - if _request_timeout: - if isinstance(_request_timeout, (int, ) if six.PY3 else (int, long)): # noqa: E501,F821 - timeout = urllib3.Timeout(total=_request_timeout) - elif (isinstance(_request_timeout, tuple) and - len(_request_timeout) == 2): - timeout = urllib3.Timeout( - connect=_request_timeout[0], read=_request_timeout[1]) - - if 'Content-Type' not in headers: - headers['Content-Type'] = 'application/json' - - try: - # For `POST`, `PUT`, `PATCH`, `OPTIONS`, `DELETE` - if method in ['POST', 'PUT', 'PATCH', 'OPTIONS', 'DELETE']: - if query_params: - url += '?' + urlencode(query_params) - if re.search('json', headers['Content-Type'], re.IGNORECASE): - request_body = '{}' - if body is not None: - request_body = json.dumps(body) - r = self.pool_manager.request( - method, url, - body=request_body, - preload_content=_preload_content, - timeout=timeout, - headers=headers) - elif headers['Content-Type'] == 'application/x-www-form-urlencoded': # noqa: E501 - r = self.pool_manager.request( - method, url, - fields=post_params, - encode_multipart=False, - preload_content=_preload_content, - timeout=timeout, - headers=headers) - elif headers['Content-Type'] == 'multipart/form-data': - # must del headers['Content-Type'], or the correct - # Content-Type which generated by urllib3 will be - # overwritten. - del headers['Content-Type'] - r = self.pool_manager.request( - method, url, - fields=post_params, - encode_multipart=True, - preload_content=_preload_content, - timeout=timeout, - headers=headers) - # Pass a `string` parameter directly in the body to support - # other content types than Json when `body` argument is - # provided in serialized form - elif isinstance(body, str): - request_body = body - r = self.pool_manager.request( - method, url, - body=request_body, - preload_content=_preload_content, - timeout=timeout, - headers=headers) - else: - # Cannot generate the request from given parameters - msg = """Cannot prepare a request message for provided - arguments. Please check that your arguments match - declared content type.""" - raise ApiException(status=0, reason=msg) - # For `GET`, `HEAD` - else: - r = self.pool_manager.request(method, url, - fields=query_params, - preload_content=_preload_content, - timeout=timeout, - headers=headers) - except urllib3.exceptions.SSLError as e: - msg = "{0}\n{1}".format(type(e).__name__, str(e)) - raise ApiException(status=0, reason=msg) - - if _preload_content: - r = RESTResponse(r) - - # log response body - logger.debug("response body: %s", r.data) - - if not 200 <= r.status <= 299: - raise ApiException(http_resp=r) - - return r - - def GET(self, url, headers=None, query_params=None, _preload_content=True, - _request_timeout=None): - return self.request("GET", url, - headers=headers, - _preload_content=_preload_content, - _request_timeout=_request_timeout, - query_params=query_params) - - def HEAD(self, url, headers=None, query_params=None, _preload_content=True, - _request_timeout=None): - return self.request("HEAD", url, - headers=headers, - _preload_content=_preload_content, - _request_timeout=_request_timeout, - query_params=query_params) - - def OPTIONS(self, url, headers=None, query_params=None, post_params=None, - body=None, _preload_content=True, _request_timeout=None): - return self.request("OPTIONS", url, - headers=headers, - query_params=query_params, - post_params=post_params, - _preload_content=_preload_content, - _request_timeout=_request_timeout, - body=body) - - def DELETE(self, url, headers=None, query_params=None, body=None, - _preload_content=True, _request_timeout=None): - return self.request("DELETE", url, - headers=headers, - query_params=query_params, - _preload_content=_preload_content, - _request_timeout=_request_timeout, - body=body) - - def POST(self, url, headers=None, query_params=None, post_params=None, - body=None, _preload_content=True, _request_timeout=None): - return self.request("POST", url, - headers=headers, - query_params=query_params, - post_params=post_params, - _preload_content=_preload_content, - _request_timeout=_request_timeout, - body=body) - - def PUT(self, url, headers=None, query_params=None, post_params=None, - body=None, _preload_content=True, _request_timeout=None): - return self.request("PUT", url, - headers=headers, - query_params=query_params, - post_params=post_params, - _preload_content=_preload_content, - _request_timeout=_request_timeout, - body=body) - - def PATCH(self, url, headers=None, query_params=None, post_params=None, - body=None, _preload_content=True, _request_timeout=None): - return self.request("PATCH", url, - headers=headers, - query_params=query_params, - post_params=post_params, - _preload_content=_preload_content, - _request_timeout=_request_timeout, - body=body) - - -class ApiException(Exception): - - def __init__(self, status=None, reason=None, http_resp=None): - if http_resp: - self.status = http_resp.status - self.reason = http_resp.reason - self.body = http_resp.data - self.headers = http_resp.getheaders() - else: - self.status = status - self.reason = reason - self.body = None - self.headers = None - - def __str__(self): - """Custom error messages for exception""" - error_message = "({0})\n"\ - "Reason: {1}\n".format(self.status, self.reason) - if self.headers: - error_message += "HTTP response headers: {0}\n".format( - self.headers) - - if self.body: - error_message += "HTTP response body: {0}\n".format(self.body) - - return error_message diff --git a/swagger/api-document/test-requirements.txt b/swagger/api-document/test-requirements.txt deleted file mode 100644 index 2702246c0e6f92a1c41c0960879e07da339e4b7d..0000000000000000000000000000000000000000 --- a/swagger/api-document/test-requirements.txt +++ /dev/null @@ -1,5 +0,0 @@ -coverage>=4.0.3 -nose>=1.3.7 -pluggy>=0.3.1 -py>=1.4.31 -randomize>=0.13 diff --git a/swagger/api-document/test/__init__.py b/swagger/api-document/test/__init__.py deleted file mode 100644 index e69de29bb2d1d6434b8b29ae775ad8c2e48c5391..0000000000000000000000000000000000000000 diff --git a/swagger/api-document/test/test_access_options_dto.py b/swagger/api-document/test/test_access_options_dto.py deleted file mode 100644 index db1c8a7b4f2faf4a052186192e810c7efdcfc128..0000000000000000000000000000000000000000 --- a/swagger/api-document/test/test_access_options_dto.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Database Repository Document Service API - - Service that manages the documents # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -from __future__ import absolute_import - -import unittest - -import api_container -from api_container.models.access_options_dto import AccessOptionsDto # noqa: E501 -from api_container.rest import ApiException - - -class TestAccessOptionsDto(unittest.TestCase): - """AccessOptionsDto unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testAccessOptionsDto(self): - """Test AccessOptionsDto""" - # FIXME: construct object with mandatory attributes with example values - # model = api_container.models.access_options_dto.AccessOptionsDto() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/swagger/api-document/test/test_affiliation_dto.py b/swagger/api-document/test/test_affiliation_dto.py deleted file mode 100644 index 0b08ab1795c9ce40dcdba99d1520c12df0b9f1b7..0000000000000000000000000000000000000000 --- a/swagger/api-document/test/test_affiliation_dto.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Database Repository Document Service API - - Service that manages the documents # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -from __future__ import absolute_import - -import unittest - -import api_container -from api_container.models.affiliation_dto import AffiliationDto # noqa: E501 -from api_container.rest import ApiException - - -class TestAffiliationDto(unittest.TestCase): - """AffiliationDto unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testAffiliationDto(self): - """Test AffiliationDto""" - # FIXME: construct object with mandatory attributes with example values - # model = api_container.models.affiliation_dto.AffiliationDto() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/swagger/api-document/test/test_api_error_dto.py b/swagger/api-document/test/test_api_error_dto.py deleted file mode 100644 index 2cc40860fda696bb9e103f2e25ff3ae67ac94210..0000000000000000000000000000000000000000 --- a/swagger/api-document/test/test_api_error_dto.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Database Repository Document Service API - - Service that manages the documents # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -from __future__ import absolute_import - -import unittest - -import api_container -from api_container.models.api_error_dto import ApiErrorDto # noqa: E501 -from api_container.rest import ApiException - - -class TestApiErrorDto(unittest.TestCase): - """ApiErrorDto unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testApiErrorDto(self): - """Test ApiErrorDto""" - # FIXME: construct object with mandatory attributes with example values - # model = api_container.models.api_error_dto.ApiErrorDto() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/swagger/api-document/test/test_create_draft_dto.py b/swagger/api-document/test/test_create_draft_dto.py deleted file mode 100644 index 97a7dce82dddc21267fc5f375a84aec6fe1893d5..0000000000000000000000000000000000000000 --- a/swagger/api-document/test/test_create_draft_dto.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Database Repository Document Service API - - Service that manages the documents # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -from __future__ import absolute_import - -import unittest - -import api_container -from api_container.models.create_draft_dto import CreateDraftDto # noqa: E501 -from api_container.rest import ApiException - - -class TestCreateDraftDto(unittest.TestCase): - """CreateDraftDto unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testCreateDraftDto(self): - """Test CreateDraftDto""" - # FIXME: construct object with mandatory attributes with example values - # model = api_container.models.create_draft_dto.CreateDraftDto() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/swagger/api-document/test/test_creator_dto.py b/swagger/api-document/test/test_creator_dto.py deleted file mode 100644 index 5e4b228a87ff52aefb58aca1966519ce405fd8e8..0000000000000000000000000000000000000000 --- a/swagger/api-document/test/test_creator_dto.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Database Repository Document Service API - - Service that manages the documents # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -from __future__ import absolute_import - -import unittest - -import api_container -from api_container.models.creator_dto import CreatorDto # noqa: E501 -from api_container.rest import ApiException - - -class TestCreatorDto(unittest.TestCase): - """CreatorDto unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testCreatorDto(self): - """Test CreatorDto""" - # FIXME: construct object with mandatory attributes with example values - # model = api_container.models.creator_dto.CreatorDto() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/swagger/api-document/test/test_document_endpoint_api.py b/swagger/api-document/test/test_document_endpoint_api.py deleted file mode 100644 index 619e27dfe8651b4690d22a29709c694a3c75a9bb..0000000000000000000000000000000000000000 --- a/swagger/api-document/test/test_document_endpoint_api.py +++ /dev/null @@ -1,54 +0,0 @@ -# coding: utf-8 - -""" - Database Repository Document Service API - - Service that manages the documents # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -from __future__ import absolute_import - -import unittest - -import api_container -from api_container.api.document_endpoint_api import DocumentEndpointApi # noqa: E501 -from api_container.rest import ApiException - - -class TestDocumentEndpointApi(unittest.TestCase): - """DocumentEndpointApi unit test stubs""" - - def setUp(self): - self.api = DocumentEndpointApi() # noqa: E501 - - def tearDown(self): - pass - - def test_create(self): - """Test case for create - - Create a draft # noqa: E501 - """ - pass - - def test_find(self): - """Test case for find - - Find a draft # noqa: E501 - """ - pass - - def test_reserve(self): - """Test case for reserve - - Reserve draft DOI # noqa: E501 - """ - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/swagger/api-document/test/test_doi_dto.py b/swagger/api-document/test/test_doi_dto.py deleted file mode 100644 index e339ac46b54329c45ef75a8d0618b8c5b47d3417..0000000000000000000000000000000000000000 --- a/swagger/api-document/test/test_doi_dto.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Database Repository Document Service API - - Service that manages the documents # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -from __future__ import absolute_import - -import unittest - -import api_container -from api_container.models.doi_dto import DoiDto # noqa: E501 -from api_container.rest import ApiException - - -class TestDoiDto(unittest.TestCase): - """DoiDto unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testDoiDto(self): - """Test DoiDto""" - # FIXME: construct object with mandatory attributes with example values - # model = api_container.models.doi_dto.DoiDto() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/swagger/api-document/test/test_draft_dto.py b/swagger/api-document/test/test_draft_dto.py deleted file mode 100644 index 7744529beda99e0542d3d8d01b83619d97578643..0000000000000000000000000000000000000000 --- a/swagger/api-document/test/test_draft_dto.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Database Repository Document Service API - - Service that manages the documents # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -from __future__ import absolute_import - -import unittest - -import api_container -from api_container.models.draft_dto import DraftDto # noqa: E501 -from api_container.rest import ApiException - - -class TestDraftDto(unittest.TestCase): - """DraftDto unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testDraftDto(self): - """Test DraftDto""" - # FIXME: construct object with mandatory attributes with example values - # model = api_container.models.draft_dto.DraftDto() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/swagger/api-document/test/test_draft_versions_dto.py b/swagger/api-document/test/test_draft_versions_dto.py deleted file mode 100644 index bdbbcf1bdd19788b0d84f072d68cc304b52d5e54..0000000000000000000000000000000000000000 --- a/swagger/api-document/test/test_draft_versions_dto.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Database Repository Document Service API - - Service that manages the documents # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -from __future__ import absolute_import - -import unittest - -import api_container -from api_container.models.draft_versions_dto import DraftVersionsDto # noqa: E501 -from api_container.rest import ApiException - - -class TestDraftVersionsDto(unittest.TestCase): - """DraftVersionsDto unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testDraftVersionsDto(self): - """Test DraftVersionsDto""" - # FIXME: construct object with mandatory attributes with example values - # model = api_container.models.draft_versions_dto.DraftVersionsDto() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/swagger/api-document/test/test_embargo_dto.py b/swagger/api-document/test/test_embargo_dto.py deleted file mode 100644 index 8ed6e8e05134be3a28c1946bbb48aaa56268411a..0000000000000000000000000000000000000000 --- a/swagger/api-document/test/test_embargo_dto.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Database Repository Document Service API - - Service that manages the documents # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -from __future__ import absolute_import - -import unittest - -import api_container -from api_container.models.embargo_dto import EmbargoDto # noqa: E501 -from api_container.rest import ApiException - - -class TestEmbargoDto(unittest.TestCase): - """EmbargoDto unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testEmbargoDto(self): - """Test EmbargoDto""" - # FIXME: construct object with mandatory attributes with example values - # model = api_container.models.embargo_dto.EmbargoDto() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/swagger/api-document/test/test_entry_dto.py b/swagger/api-document/test/test_entry_dto.py deleted file mode 100644 index 5c70ca8e93459ab4fb3cad65980e86fedbbcc829..0000000000000000000000000000000000000000 --- a/swagger/api-document/test/test_entry_dto.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Database Repository Document Service API - - Service that manages the documents # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -from __future__ import absolute_import - -import unittest - -import api_container -from api_container.models.entry_dto import EntryDto # noqa: E501 -from api_container.rest import ApiException - - -class TestEntryDto(unittest.TestCase): - """EntryDto unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testEntryDto(self): - """Test EntryDto""" - # FIXME: construct object with mandatory attributes with example values - # model = api_container.models.entry_dto.EntryDto() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/swagger/api-document/test/test_file_announce_dto.py b/swagger/api-document/test/test_file_announce_dto.py deleted file mode 100644 index 3fa2631f93758da8adc70ec31677a90a7547ee79..0000000000000000000000000000000000000000 --- a/swagger/api-document/test/test_file_announce_dto.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Database Repository Document Service API - - Service that manages the documents # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -from __future__ import absolute_import - -import unittest - -import swagger_client -from swagger_client.models.file_announce_dto import FileAnnounceDto # noqa: E501 -from swagger_client.rest import ApiException - - -class TestFileAnnounceDto(unittest.TestCase): - """FileAnnounceDto unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testFileAnnounceDto(self): - """Test FileAnnounceDto""" - # FIXME: construct object with mandatory attributes with example values - # model = swagger_client.models.file_announce_dto.FileAnnounceDto() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/swagger/api-document/test/test_file_dto.py b/swagger/api-document/test/test_file_dto.py deleted file mode 100644 index ec865256dfe433e6a093e1d4400bccf357288784..0000000000000000000000000000000000000000 --- a/swagger/api-document/test/test_file_dto.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Database Repository Document Service API - - Service that manages the documents # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -from __future__ import absolute_import - -import unittest - -import swagger_client -from swagger_client.models.file_dto import FileDto # noqa: E501 -from swagger_client.rest import ApiException - - -class TestFileDto(unittest.TestCase): - """FileDto unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testFileDto(self): - """Test FileDto""" - # FIXME: construct object with mandatory attributes with example values - # model = swagger_client.models.file_dto.FileDto() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/swagger/api-document/test/test_file_endpoint_api.py b/swagger/api-document/test/test_file_endpoint_api.py deleted file mode 100644 index ea2de3fbadaf67cadab0dfddf85ffd36881d89a9..0000000000000000000000000000000000000000 --- a/swagger/api-document/test/test_file_endpoint_api.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - Database Repository Document Service API - - Service that manages the documents # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -from __future__ import absolute_import - -import unittest - -import api_container -from api_container.api.file_endpoint_api import FileEndpointApi # noqa: E501 -from api_container.rest import ApiException - - -class TestFileEndpointApi(unittest.TestCase): - """FileEndpointApi unit test stubs""" - - def setUp(self): - self.api = FileEndpointApi() # noqa: E501 - - def tearDown(self): - pass - - def test_start(self): - """Test case for start - - Start draft files # noqa: E501 - """ - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/swagger/api-document/test/test_file_entry_dto.py b/swagger/api-document/test/test_file_entry_dto.py deleted file mode 100644 index 4aae34a35b6ca2d4856585a3531eacdc8e362072..0000000000000000000000000000000000000000 --- a/swagger/api-document/test/test_file_entry_dto.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Database Repository Document Service API - - Service that manages the documents # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -from __future__ import absolute_import - -import unittest - -import swagger_client -from swagger_client.models.file_entry_dto import FileEntryDto # noqa: E501 -from swagger_client.rest import ApiException - - -class TestFileEntryDto(unittest.TestCase): - """FileEntryDto unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testFileEntryDto(self): - """Test FileEntryDto""" - # FIXME: construct object with mandatory attributes with example values - # model = swagger_client.models.file_entry_dto.FileEntryDto() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/swagger/api-document/test/test_file_key_dto.py b/swagger/api-document/test/test_file_key_dto.py deleted file mode 100644 index b4695de5843a894c664784f8ace9e1a256369884..0000000000000000000000000000000000000000 --- a/swagger/api-document/test/test_file_key_dto.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Database Repository Document Service API - - Service that manages the documents # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -from __future__ import absolute_import - -import unittest - -import swagger_client -from swagger_client.models.file_key_dto import FileKeyDto # noqa: E501 -from swagger_client.rest import ApiException - - -class TestFileKeyDto(unittest.TestCase): - """FileKeyDto unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testFileKeyDto(self): - """Test FileKeyDto""" - # FIXME: construct object with mandatory attributes with example values - # model = swagger_client.models.file_key_dto.FileKeyDto() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/swagger/api-document/test/test_file_start_dto.py b/swagger/api-document/test/test_file_start_dto.py deleted file mode 100644 index 3e3533e6392cdb8eddbbac5095186c4aaac3318b..0000000000000000000000000000000000000000 --- a/swagger/api-document/test/test_file_start_dto.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Database Repository Document Service API - - Service that manages the documents # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -from __future__ import absolute_import - -import unittest - -import api_container -from api_container.models.file_start_dto import FileStartDto # noqa: E501 -from api_container.rest import ApiException - - -class TestFileStartDto(unittest.TestCase): - """FileStartDto unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testFileStartDto(self): - """Test FileStartDto""" - # FIXME: construct object with mandatory attributes with example values - # model = api_container.models.file_start_dto.FileStartDto() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/swagger/api-document/test/test_files_options_dto.py b/swagger/api-document/test/test_files_options_dto.py deleted file mode 100644 index 669d4d4bcea3a93b7efa69982707da2d587a35bf..0000000000000000000000000000000000000000 --- a/swagger/api-document/test/test_files_options_dto.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Database Repository Document Service API - - Service that manages the documents # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -from __future__ import absolute_import - -import unittest - -import api_container -from api_container.models.files_options_dto import FilesOptionsDto # noqa: E501 -from api_container.rest import ApiException - - -class TestFilesOptionsDto(unittest.TestCase): - """FilesOptionsDto unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testFilesOptionsDto(self): - """Test FilesOptionsDto""" - # FIXME: construct object with mandatory attributes with example values - # model = api_container.models.files_options_dto.FilesOptionsDto() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/swagger/api-document/test/test_id_file_body.py b/swagger/api-document/test/test_id_file_body.py deleted file mode 100644 index dfdcd2bcf19f33d8050de83a5a964148285f855c..0000000000000000000000000000000000000000 --- a/swagger/api-document/test/test_id_file_body.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Database Repository Document Service API - - Service that manages the documents # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -from __future__ import absolute_import - -import unittest - -import swagger_client -from swagger_client.models.id_file_body import IdFileBody # noqa: E501 -from swagger_client.rest import ApiException - - -class TestIdFileBody(unittest.TestCase): - """IdFileBody unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testIdFileBody(self): - """Test IdFileBody""" - # FIXME: construct object with mandatory attributes with example values - # model = swagger_client.models.id_file_body.IdFileBody() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/swagger/api-document/test/test_identifier_dto.py b/swagger/api-document/test/test_identifier_dto.py deleted file mode 100644 index 8bb7c845259af35da1c1f7a11311f3503534b3c0..0000000000000000000000000000000000000000 --- a/swagger/api-document/test/test_identifier_dto.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Database Repository Document Service API - - Service that manages the documents # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -from __future__ import absolute_import - -import unittest - -import api_container -from api_container.models.identifier_dto import IdentifierDto # noqa: E501 -from api_container.rest import ApiException - - -class TestIdentifierDto(unittest.TestCase): - """IdentifierDto unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testIdentifierDto(self): - """Test IdentifierDto""" - # FIXME: construct object with mandatory attributes with example values - # model = api_container.models.identifier_dto.IdentifierDto() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/swagger/api-document/test/test_import_dto.py b/swagger/api-document/test/test_import_dto.py deleted file mode 100644 index c90f04f0d0f517405c155bfec680f33e350bc876..0000000000000000000000000000000000000000 --- a/swagger/api-document/test/test_import_dto.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Database Repository Document Service API - - Service that manages the documents # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -from __future__ import absolute_import - -import unittest - -import swagger_client -from swagger_client.models.import_dto import ImportDto # noqa: E501 -from swagger_client.rest import ApiException - - -class TestImportDto(unittest.TestCase): - """ImportDto unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testImportDto(self): - """Test ImportDto""" - # FIXME: construct object with mandatory attributes with example values - # model = swagger_client.models.import_dto.ImportDto() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/swagger/api-document/test/test_links_dto.py b/swagger/api-document/test/test_links_dto.py deleted file mode 100644 index 37cf41c52f73f98eb9bd37a78dbe347be846a42e..0000000000000000000000000000000000000000 --- a/swagger/api-document/test/test_links_dto.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Database Repository Document Service API - - Service that manages the documents # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -from __future__ import absolute_import - -import unittest - -import api_container -from api_container.models.links_dto import LinksDto # noqa: E501 -from api_container.rest import ApiException - - -class TestLinksDto(unittest.TestCase): - """LinksDto unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testLinksDto(self): - """Test LinksDto""" - # FIXME: construct object with mandatory attributes with example values - # model = api_container.models.links_dto.LinksDto() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/swagger/api-document/test/test_metadata_dto.py b/swagger/api-document/test/test_metadata_dto.py deleted file mode 100644 index 4da384c5f09c3d2d91ead7c3e8ed725d6ab19f68..0000000000000000000000000000000000000000 --- a/swagger/api-document/test/test_metadata_dto.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Database Repository Document Service API - - Service that manages the documents # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -from __future__ import absolute_import - -import unittest - -import api_container -from api_container.models.metadata_dto import MetadataDto # noqa: E501 -from api_container.rest import ApiException - - -class TestMetadataDto(unittest.TestCase): - """MetadataDto unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testMetadataDto(self): - """Test MetadataDto""" - # FIXME: construct object with mandatory attributes with example values - # model = api_container.models.metadata_dto.MetadataDto() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/swagger/api-document/test/test_persistent_identifiers_dto.py b/swagger/api-document/test/test_persistent_identifiers_dto.py deleted file mode 100644 index 9e6d171af22925f4fda5492d63fab63a91d70dec..0000000000000000000000000000000000000000 --- a/swagger/api-document/test/test_persistent_identifiers_dto.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Database Repository Document Service API - - Service that manages the documents # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -from __future__ import absolute_import - -import unittest - -import api_container -from api_container.models.persistent_identifiers_dto import PersistentIdentifiersDto # noqa: E501 -from api_container.rest import ApiException - - -class TestPersistentIdentifiersDto(unittest.TestCase): - """PersistentIdentifiersDto unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testPersistentIdentifiersDto(self): - """Test PersistentIdentifiersDto""" - # FIXME: construct object with mandatory attributes with example values - # model = api_container.models.persistent_identifiers_dto.PersistentIdentifiersDto() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/swagger/api-document/test/test_person_or_organization_dto.py b/swagger/api-document/test/test_person_or_organization_dto.py deleted file mode 100644 index ca461cd4d9ff1f040d58348e9a96645eba7a175a..0000000000000000000000000000000000000000 --- a/swagger/api-document/test/test_person_or_organization_dto.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Database Repository Document Service API - - Service that manages the documents # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -from __future__ import absolute_import - -import unittest - -import api_container -from api_container.models.person_or_organization_dto import PersonOrOrganizationDto # noqa: E501 -from api_container.rest import ApiException - - -class TestPersonOrOrganizationDto(unittest.TestCase): - """PersonOrOrganizationDto unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testPersonOrOrganizationDto(self): - """Test PersonOrOrganizationDto""" - # FIXME: construct object with mandatory attributes with example values - # model = api_container.models.person_or_organization_dto.PersonOrOrganizationDto() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/swagger/api-document/test/test_record_dto.py b/swagger/api-document/test/test_record_dto.py deleted file mode 100644 index 4b3785a54399f5e78a821a0a60b2a0e0bf46ebaf..0000000000000000000000000000000000000000 --- a/swagger/api-document/test/test_record_dto.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Database Repository Document Service API - - Service that manages the documents # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -from __future__ import absolute_import - -import unittest - -import swagger_client -from swagger_client.models.record_dto import RecordDto # noqa: E501 -from swagger_client.rest import ApiException - - -class TestRecordDto(unittest.TestCase): - """RecordDto unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testRecordDto(self): - """Test RecordDto""" - # FIXME: construct object with mandatory attributes with example values - # model = swagger_client.models.record_dto.RecordDto() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/swagger/api-document/test/test_resource_type_dto.py b/swagger/api-document/test/test_resource_type_dto.py deleted file mode 100644 index 219c6f1f9164a4dead728ba02f6565a81c049461..0000000000000000000000000000000000000000 --- a/swagger/api-document/test/test_resource_type_dto.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Database Repository Document Service API - - Service that manages the documents # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -from __future__ import absolute_import - -import unittest - -import api_container -from api_container.models.resource_type_dto import ResourceTypeDto # noqa: E501 -from api_container.rest import ApiException - - -class TestResourceTypeDto(unittest.TestCase): - """ResourceTypeDto unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testResourceTypeDto(self): - """Test ResourceTypeDto""" - # FIXME: construct object with mandatory attributes with example values - # model = api_container.models.resource_type_dto.ResourceTypeDto() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/swagger/api-document/tox.ini b/swagger/api-document/tox.ini deleted file mode 100644 index a310bec97d689718c92c84c9aebc6ab031f12933..0000000000000000000000000000000000000000 --- a/swagger/api-document/tox.ini +++ /dev/null @@ -1,10 +0,0 @@ -[tox] -envlist = py3 - -[testenv] -deps=-r{toxinidir}/requirements.txt - -r{toxinidir}/test-requirements.txt - -commands= - nosetests \ - [] diff --git a/swagger/api-identifier.yaml b/swagger/api-identifier.yaml index 0d1f8249b659fa01114423b8565911521572fd7e..0febe866d6b2f6c7e0fdac000a282dbb163dace8 100644 --- a/swagger/api-identifier.yaml +++ b/swagger/api-identifier.yaml @@ -405,7 +405,6 @@ components: properties: status: type: string - example: NOT_FOUND enum: - 100 CONTINUE - 101 SWITCHING_PROTOCOLS @@ -477,10 +476,8 @@ components: - 511 NETWORK_AUTHENTICATION_REQUIRED message: type: string - example: Could not find container code: type: string - example: error.container.notfound ContainerDto: required: - created @@ -495,20 +492,17 @@ components: format: int64 hash: type: string - example: f829dd8a884182d0da846f365dee1221fd16610a14c81b8f9f295ff162749e50 name: type: string - example: Air Quality state: type: string - example: running enum: - - created - - restarting - - running - - paused - - exited - - dead + - ContainerStateDto.CREATED + - ContainerStateDto.RESTARTING + - ContainerStateDto.RUNNING + - ContainerStateDto.PAUSED + - ContainerStateDto.EXITED + - ContainerStateDto.DEAD databases: type: array items: @@ -521,10 +515,8 @@ components: created: type: string format: date-time - example: 2021-03-12T15:26:21.678396092Z internal_name: type: string - example: air-quality ip_address: type: string CreatorDto: @@ -539,13 +531,10 @@ components: format: int64 name: type: string - example: "Carberry, Josiah" affiliation: type: string - example: Wesleyan University orcid: type: string - example: 0000-0002-1825-0097 created: type: string format: date-time @@ -555,6 +544,7 @@ components: DatabaseDto: required: - creator + - description - exchange - id - internal_name @@ -564,23 +554,21 @@ components: id: type: integer format: int64 + example: 1 name: type: string - example: Air Quality + example: Weather Australia exchange: type: string - example: air_quality creator: $ref: '#/components/schemas/UserBriefDto' subjects: type: array - description: database subjects items: type: string - description: database subjects language: type: string - example: en + example: EN enum: - ab - aa @@ -770,7 +758,7 @@ components: $ref: '#/components/schemas/LicenseDto' description: type: string - example: Air Quality in Austria + example: Weather Australia 2009-2021 publisher: type: string example: TU Wien @@ -792,32 +780,23 @@ components: format: date-time internal_name: type: string - example: air_quality + example: weather_australia publication_year: type: integer - description: database publication year format: int32 - example: 2022 publication_month: type: integer - description: database publication month format: int32 - example: 12 publication_day: type: integer - description: database publication day format: int32 - example: 15 is_public: type: boolean - description: database publicity - example: true GrantedAuthorityDto: type: object properties: authority: type: string - example: ROLE_RESEARCHER IdentifierDto: required: - cid @@ -851,27 +830,21 @@ components: format: int64 title: type: string - example: "Airquality Stephansplatz, Vienna, Austria" description: type: string - example: "Air quality reports at Stephansplatz, Vienna" query: type: string - example: "SELECT `id`, `value`, `location` FROM `air_quality` WHERE `location`\ - \ = \"09:STEF\"" execution: type: string format: date-time visibility: type: string - example: everyone enum: - everyone - trusted - self doi: type: string - example: 10.1038/nphys1170 creator: $ref: '#/components/schemas/UserDto' creators: @@ -883,8 +856,6 @@ components: format: date-time query_normalized: type: string - example: "SELECT `id`, `value`, `location` FROM `air_quality` WHERE `location`\ - \ = \"09:STEF\"" related: type: array items: @@ -896,19 +867,15 @@ components: result_number: type: integer format: int64 - example: 1 publication_day: type: integer format: int32 - example: 15 publication_month: type: integer format: int32 - example: 12 publication_year: type: integer format: int32 - example: 2022 last_modified: type: string format: date-time @@ -924,10 +891,8 @@ components: format: int64 repository: type: string - example: mariadb tag: type: string - example: "10.5" ImageDateDto: required: - database_format @@ -942,16 +907,12 @@ components: format: int64 example: type: string - example: 30.01.2022 database_format: type: string - example: '%d.%c.%Y' unix_format: type: string - example: dd.MM.YYYY has_time: type: boolean - example: false created_at: type: string format: date-time @@ -972,46 +933,36 @@ components: format: int64 repository: type: string - example: mariadb tag: type: string - example: "10.5" dialect: type: string - example: org.hibernate.dialect.MariaDBDialect hash: type: string - example: sha256:c5ec7353d87dfc35067e7bffeb25d6a0d52dad41e8b7357213e3b12d6e7ff78e compiled: type: string format: date-time - example: 2021-03-12T15:26:21.678396092Z size: type: integer - example: 314295447 environment: type: array items: $ref: '#/components/schemas/ImageEnvItemDto' driver_class: type: string - example: org.mariadb.jdbc.Driver date_formats: type: array items: $ref: '#/components/schemas/ImageDateDto' jdbc_method: type: string - example: mariadb default_port: type: integer format: int32 - example: 3306 ImageEnvItemDto: required: - iid - key - - type - value type: object properties: @@ -1020,18 +971,15 @@ components: format: int64 key: type: string - example: MARIADB_ROOT_PASSWORD value: type: string - example: mariadb type: type: string - example: PRIVILEGED_PASSWORD enum: - - username - - password - - privileged_username - - privileged_password + - USERNAME + - PASSWORD + - PRIVILEGED_USERNAME + - PRIVILEGED_PASSWORD LicenseDto: required: - identifier @@ -1040,10 +988,9 @@ components: properties: identifier: type: string - example: MIT uri: type: string - example: https://opensource.org/licenses/MIT + example: MIT2 RelatedIdentifierDto: required: - created @@ -1056,10 +1003,8 @@ components: format: int64 value: type: string - example: 10.70124/dc4zh-9ce78 type: type: string - example: DOI enum: - DOI - URL @@ -1081,7 +1026,6 @@ components: - w3id relation: type: string - example: Cites enum: - IsCitedBy - Cites @@ -1139,12 +1083,10 @@ components: format: int64 name: type: string - example: Air Quality creator: $ref: '#/components/schemas/UserBriefDto' internal_name: type: string - example: air_quality UserBriefDto: required: - email_verified @@ -1158,31 +1100,22 @@ components: format: int64 username: type: string - description: Only contains lowercase characters - example: user firstname: type: string - example: Josiah lastname: type: string - example: Carberry affiliation: type: string - example: Brown University orcid: type: string - example: 0000-0002-1825-0097 titles_before: type: string - example: Prof. titles_after: type: string theme_dark: type: boolean - example: true email_verified: type: boolean - example: true UserDto: required: - email @@ -1201,20 +1134,14 @@ components: $ref: '#/components/schemas/GrantedAuthorityDto' username: type: string - description: Only contains lowercase characters - example: jcarberry firstname: type: string - example: Josiah lastname: type: string - example: Carberry affiliation: type: string - example: Brown University orcid: type: string - example: 0000-0002-1825-0097 containers: type: array items: @@ -1229,18 +1156,14 @@ components: $ref: '#/components/schemas/ContainerDto' email: type: string - example: jcarberry@brown.edu titles_before: type: string - example: Prof. titles_after: type: string theme_dark: type: boolean - example: true email_verified: type: boolean - example: true CreatorCreateDto: required: - name @@ -1248,13 +1171,10 @@ components: properties: name: type: string - example: "Carberry, Josiah" affiliation: type: string - example: Wesleyan University orcid: type: string - example: 0000-0002-1825-0097 IdentifierCreateDto: required: - creators @@ -1270,20 +1190,16 @@ components: format: int64 title: type: string - example: "Airquality Stephansplatz, Vienna, Austria" description: type: string - example: "Air quality reports at Stephansplatz, Vienna" visibility: type: string - example: everyone enum: - everyone - trusted - self doi: type: string - example: 10.1038/nphys1170 creators: type: array items: @@ -1291,15 +1207,12 @@ components: publication_day: type: integer format: int32 - example: 15 publication_month: type: integer format: int32 - example: 12 publication_year: type: integer format: int32 - example: 2022 related_identifiers: type: array items: @@ -1311,10 +1224,8 @@ components: properties: value: type: string - example: 10.70124/dc4zh-9ce78 type: type: string - example: DOI enum: - DOI - URL @@ -1336,7 +1247,6 @@ components: - w3id relation: type: string - example: Cites enum: - IsCitedBy - Cites diff --git a/swagger/api-identifier/.gitignore b/swagger/api-identifier/.gitignore deleted file mode 100644 index a655050c2631466828b5b8bfc59ae27f9ac02dc5..0000000000000000000000000000000000000000 --- a/swagger/api-identifier/.gitignore +++ /dev/null @@ -1,64 +0,0 @@ -# Byte-compiled / optimized / DLL files -__pycache__/ -*.py[cod] -*$py.class - -# C extensions -*.so - -# Distribution / packaging -.Python -env/ -build/ -develop-eggs/ -dist/ -downloads/ -eggs/ -.eggs/ -lib/ -lib64/ -parts/ -sdist/ -var/ -*.egg-info/ -.installed.cfg -*.egg - -# PyInstaller -# Usually these files are written by a python script from a template -# before PyInstaller builds the exe, so as to inject date/other infos into it. -*.manifest -*.spec - -# Installer logs -pip-log.txt -pip-delete-this-directory.txt - -# Unit test / coverage reports -htmlcov/ -.tox/ -.coverage -.coverage.* -.cache -nosetests.xml -coverage.xml -*,cover -.hypothesis/ -venv/ -.python-version - -# Translations -*.mo -*.pot - -# Django stuff: -*.log - -# Sphinx documentation -docs/_build/ - -# PyBuilder -target/ - -#Ipython Notebook -.ipynb_checkpoints diff --git a/swagger/api-identifier/.swagger-codegen-ignore b/swagger/api-identifier/.swagger-codegen-ignore deleted file mode 100644 index c5fa491b4c557bf997d5dd21797de782545dc9e5..0000000000000000000000000000000000000000 --- a/swagger/api-identifier/.swagger-codegen-ignore +++ /dev/null @@ -1,23 +0,0 @@ -# Swagger Codegen Ignore -# Generated by swagger-codegen https://github.com/swagger-api/swagger-codegen - -# Use this file to prevent files from being overwritten by the generator. -# The patterns follow closely to .gitignore or .dockerignore. - -# As an example, the C# client generator defines ApiClient.cs. -# You can make changes and tell Swagger Codgen to ignore just this file by uncommenting the following line: -#ApiClient.cs - -# You can match any string of characters against a directory, file or extension with a single asterisk (*): -#foo/*/qux -# The above matches foo/bar/qux and foo/baz/qux, but not foo/bar/baz/qux - -# You can recursively match patterns against a directory, file or extension with a double asterisk (**): -#foo/**/qux -# This matches foo/bar/qux, foo/baz/qux, and foo/bar/baz/qux - -# You can also negate patterns with an exclamation (!). -# For example, you can ignore all files in a docs folder with the file extension .md: -#docs/*.md -# Then explicitly reverse the ignore rule for a single file: -#!docs/README.md diff --git a/swagger/api-identifier/.swagger-codegen/VERSION b/swagger/api-identifier/.swagger-codegen/VERSION deleted file mode 100644 index 10bbf276ee45aaec75c7b2ada3ff71d798f89fd9..0000000000000000000000000000000000000000 --- a/swagger/api-identifier/.swagger-codegen/VERSION +++ /dev/null @@ -1 +0,0 @@ -3.0.34 \ No newline at end of file diff --git a/swagger/api-identifier/.travis.yml b/swagger/api-identifier/.travis.yml deleted file mode 100644 index dd6c4450aa902ae68479c3d76d45145e18d6052e..0000000000000000000000000000000000000000 --- a/swagger/api-identifier/.travis.yml +++ /dev/null @@ -1,13 +0,0 @@ -# ref: https://docs.travis-ci.com/user/languages/python -language: python -python: - - "3.2" - - "3.3" - - "3.4" - - "3.5" - #- "3.5-dev" # 3.5 development branch - #- "nightly" # points to the latest development branch e.g. 3.6-dev -# command to install dependencies -install: "pip install -r requirements.txt" -# command to run tests -script: nosetests diff --git a/swagger/api-identifier/README.md b/swagger/api-identifier/README.md deleted file mode 100644 index 9f5e022d26515bf164cd39058aed4cfe6fa01be2..0000000000000000000000000000000000000000 --- a/swagger/api-identifier/README.md +++ /dev/null @@ -1,168 +0,0 @@ -# swagger-client -Service that manages the identifiers - -This Python package is automatically generated by the [Swagger Codegen](https://github.com/swagger-api/swagger-codegen) project: - -- API version: 1.1.0-alpha -- Package version: 1.0.0 -- Build package: io.swagger.codegen.v3.generators.python.PythonClientCodegen - -## Requirements. - -Python 2.7 and 3.4+ - -## Installation & Usage -### pip install - -If the python package is hosted on Github, you can install directly from Github - -```sh -pip install git+https://github.com/GIT_USER_ID/GIT_REPO_ID.git -``` -(you may need to run `pip` with root permission: `sudo pip install git+https://github.com/GIT_USER_ID/GIT_REPO_ID.git`) - -Then import the package: -```python -import swagger_client -``` - -### Setuptools - -Install via [Setuptools](http://pypi.python.org/pypi/setuptools). - -```sh -python setup.py install --user -``` -(or `sudo python setup.py install` to install the package for all users) - -Then import the package: -```python -import swagger_client -``` - -## Getting Started - -Please follow the [installation procedure](#installation--usage) and then run the following: - -```python -from __future__ import print_function -import time -import swagger_client -from swagger_client.rest import ApiException -from pprint import pprint - - -# create an instance of the API class -api_instance = swagger_client.IdentifierEndpointApi(swagger_client.ApiClient(configuration)) -body = swagger_client.IdentifierCreateDto() # IdentifierCreateDto | -authorization = 'authorization_example' # str | -id = 789 # int | -database_id = 789 # int | - -try: - # Create identifier - api_response = api_instance.create(body, authorization, id, database_id) - pprint(api_response) -except ApiException as e: - print("Exception when calling IdentifierEndpointApi->create: %s\n" % e) - - -# create an instance of the API class -api_instance = swagger_client.IdentifierEndpointApi(swagger_client.ApiClient(configuration)) -id = 789 # int | -database_id = 789 # int | -identifer_id = 789 # int | - -try: - # Delete some identifer - api_response = api_instance.delete(id, database_id, identifer_id) - pprint(api_response) -except ApiException as e: - print("Exception when calling IdentifierEndpointApi->delete: %s\n" % e) - -# create an instance of the API class -api_instance = swagger_client.IdentifierEndpointApi(swagger_client.ApiClient(configuration)) -id = 789 # int | -database_id = 789 # int | -identifier_id = 789 # int | - -try: - # Export some identifier metadata - api_response = api_instance.export(id, database_id, identifier_id) - pprint(api_response) -except ApiException as e: - print("Exception when calling IdentifierEndpointApi->export: %s\n" % e) - -# create an instance of the API class -api_instance = swagger_client.IdentifierEndpointApi(swagger_client.ApiClient(configuration)) -id = 789 # int | -database_id = 789 # int | -qid = 789 # int | (optional) - -try: - # Find identifiers - api_response = api_instance.find_all(id, database_id, qid=qid) - pprint(api_response) -except ApiException as e: - print("Exception when calling IdentifierEndpointApi->find_all: %s\n" % e) - - -# create an instance of the API class -api_instance = swagger_client.IdentifierEndpointApi(swagger_client.ApiClient(configuration)) -body = swagger_client.IdentifierDto() # IdentifierDto | -identifer_id = 789 # int | -id = 789 # int | -database_id = 789 # int | - -try: - # Update some identifier - api_response = api_instance.update(body, identifer_id, id, database_id) - pprint(api_response) -except ApiException as e: - print("Exception when calling IdentifierEndpointApi->update: %s\n" % e) -``` - -## Documentation for API Endpoints - -All URIs are relative to *http://localhost:9096* - -Class | Method | HTTP request | Description ------------- | ------------- | ------------- | ------------- -*IdentifierEndpointApi* | [**create**](docs/IdentifierEndpointApi.md#create) | **POST** /api/container/{id}/database/{databaseId}/identifier | Create identifier -*IdentifierEndpointApi* | [**delete**](docs/IdentifierEndpointApi.md#delete) | **DELETE** /api/container/{id}/database/{databaseId}/identifier/{identiferId} | Delete some identifer -*IdentifierEndpointApi* | [**export**](docs/IdentifierEndpointApi.md#export) | **GET** /api/container/{id}/database/{databaseId}/identifier/{identifierId} | Export some identifier metadata -*IdentifierEndpointApi* | [**find_all**](docs/IdentifierEndpointApi.md#find_all) | **GET** /api/container/{id}/database/{databaseId}/identifier | Find identifiers -*IdentifierEndpointApi* | [**update**](docs/IdentifierEndpointApi.md#update) | **PUT** /api/container/{id}/database/{databaseId}/identifier/{identiferId} | Update some identifier -*PersistenceEndpointApi* | [**find**](docs/PersistenceEndpointApi.md#find) | **GET** /api/pid/{pid} | Find some identifier - -## Documentation For Models - - - [ApiErrorDto](docs/ApiErrorDto.md) - - [ContainerDto](docs/ContainerDto.md) - - [CreatorCreateDto](docs/CreatorCreateDto.md) - - [CreatorDto](docs/CreatorDto.md) - - [DatabaseDto](docs/DatabaseDto.md) - - [GrantedAuthorityDto](docs/GrantedAuthorityDto.md) - - [IdentifierCreateDto](docs/IdentifierCreateDto.md) - - [IdentifierDto](docs/IdentifierDto.md) - - [ImageBriefDto](docs/ImageBriefDto.md) - - [ImageDateDto](docs/ImageDateDto.md) - - [ImageDto](docs/ImageDto.md) - - [ImageEnvItemDto](docs/ImageEnvItemDto.md) - - [LicenseDto](docs/LicenseDto.md) - - [RelatedIdentifierCreateDto](docs/RelatedIdentifierCreateDto.md) - - [RelatedIdentifierDto](docs/RelatedIdentifierDto.md) - - [TableBriefDto](docs/TableBriefDto.md) - - [UserBriefDto](docs/UserBriefDto.md) - - [UserDto](docs/UserDto.md) - -## Documentation For Authorization - - -## bearerAuth - - - -## Author - -andreas.rauber@tuwien.ac.at diff --git a/swagger/api-identifier/git_push.sh b/swagger/api-identifier/git_push.sh deleted file mode 100644 index ae01b182ae9eb047d0999a496b060e62d7b01e5c..0000000000000000000000000000000000000000 --- a/swagger/api-identifier/git_push.sh +++ /dev/null @@ -1,52 +0,0 @@ -#!/bin/sh -# ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/ -# -# Usage example: /bin/sh ./git_push.sh wing328 swagger-petstore-perl "minor update" - -git_user_id=$1 -git_repo_id=$2 -release_note=$3 - -if [ "$git_user_id" = "" ]; then - git_user_id="GIT_USER_ID" - echo "[INFO] No command line input provided. Set \$git_user_id to $git_user_id" -fi - -if [ "$git_repo_id" = "" ]; then - git_repo_id="GIT_REPO_ID" - echo "[INFO] No command line input provided. Set \$git_repo_id to $git_repo_id" -fi - -if [ "$release_note" = "" ]; then - release_note="Minor update" - echo "[INFO] No command line input provided. Set \$release_note to $release_note" -fi - -# Initialize the local directory as a Git repository -git init - -# Adds the files in the local repository and stages them for commit. -git add . - -# Commits the tracked changes and prepares them to be pushed to a remote repository. -git commit -m "$release_note" - -# Sets the new remote -git_remote=`git remote` -if [ "$git_remote" = "" ]; then # git remote not defined - - if [ "$GIT_TOKEN" = "" ]; then - echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the git credential in your environment." - git remote add origin https://github.com/${git_user_id}/${git_repo_id}.git - else - git remote add origin https://${git_user_id}:${GIT_TOKEN}@github.com/${git_user_id}/${git_repo_id}.git - fi - -fi - -git pull origin master - -# Pushes (Forces) the changes in the local repository up to the remote repository -echo "Git pushing to https://github.com/${git_user_id}/${git_repo_id}.git" -git push origin master 2>&1 | grep -v 'To https' - diff --git a/swagger/api-identifier/requirements.txt b/swagger/api-identifier/requirements.txt deleted file mode 100644 index bafdc07532f5e1287a24c2af278f547091a410b6..0000000000000000000000000000000000000000 --- a/swagger/api-identifier/requirements.txt +++ /dev/null @@ -1,5 +0,0 @@ -certifi >= 14.05.14 -six >= 1.10 -python_dateutil >= 2.5.3 -setuptools >= 21.0.0 -urllib3 >= 1.15.1 diff --git a/swagger/api-identifier/setup.py b/swagger/api-identifier/setup.py deleted file mode 100644 index 0c045de20dd5d673cefd6ee0b7bbe01f986eb071..0000000000000000000000000000000000000000 --- a/swagger/api-identifier/setup.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Database Repository Identifier Service API - - Service that manages the identifiers # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -from setuptools import setup, find_packages # noqa: H301 - -NAME = "swagger-client" -VERSION = "1.0.0" -# To install the library, run the following -# -# python setup.py install -# -# prerequisite: setuptools -# http://pypi.python.org/pypi/setuptools - -REQUIRES = ["urllib3 >= 1.15", "six >= 1.10", "certifi", "python-dateutil"] - -setup( - name=NAME, - version=VERSION, - description="Database Repository Identifier Service API", - author_email="andreas.rauber@tuwien.ac.at", - url="", - keywords=["Swagger", "Database Repository Identifier Service API"], - install_requires=REQUIRES, - packages=find_packages(), - include_package_data=True, - long_description="""\ - Service that manages the identifiers # noqa: E501 - """ -) diff --git a/swagger/api-identifier/swagger_client/__init__.py b/swagger/api-identifier/swagger_client/__init__.py deleted file mode 100644 index fe7d205c9ba7e2e47b44da2072526dcbf73cb551..0000000000000000000000000000000000000000 --- a/swagger/api-identifier/swagger_client/__init__.py +++ /dev/null @@ -1,41 +0,0 @@ -# coding: utf-8 - -# flake8: noqa - -""" - Database Repository Identifier Service API - - Service that manages the identifiers # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -from __future__ import absolute_import - -# import apis into sdk package -from swagger_client.api.identifier_endpoint_api import IdentifierEndpointApi -from swagger_client.api.persistence_endpoint_api import PersistenceEndpointApi -# import ApiClient -from swagger_client.api_client import ApiClient -from swagger_client.configuration import Configuration -# import models into sdk package -from swagger_client.models.api_error_dto import ApiErrorDto -from swagger_client.models.container_dto import ContainerDto -from swagger_client.models.creator_create_dto import CreatorCreateDto -from swagger_client.models.creator_dto import CreatorDto -from swagger_client.models.database_dto import DatabaseDto -from swagger_client.models.granted_authority_dto import GrantedAuthorityDto -from swagger_client.models.identifier_create_dto import IdentifierCreateDto -from swagger_client.models.identifier_dto import IdentifierDto -from swagger_client.models.image_brief_dto import ImageBriefDto -from swagger_client.models.image_date_dto import ImageDateDto -from swagger_client.models.image_dto import ImageDto -from swagger_client.models.image_env_item_dto import ImageEnvItemDto -from swagger_client.models.license_dto import LicenseDto -from swagger_client.models.related_identifier_create_dto import RelatedIdentifierCreateDto -from swagger_client.models.related_identifier_dto import RelatedIdentifierDto -from swagger_client.models.table_brief_dto import TableBriefDto -from swagger_client.models.user_brief_dto import UserBriefDto -from swagger_client.models.user_dto import UserDto diff --git a/swagger/api-identifier/swagger_client/api/__init__.py b/swagger/api-identifier/swagger_client/api/__init__.py deleted file mode 100644 index 9002790923caa07e3e91b00e9de5ff8250018bf7..0000000000000000000000000000000000000000 --- a/swagger/api-identifier/swagger_client/api/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -from __future__ import absolute_import - -# flake8: noqa - -# import apis into api package -from swagger_client.api.identifier_endpoint_api import IdentifierEndpointApi -from swagger_client.api.persistence_endpoint_api import PersistenceEndpointApi diff --git a/swagger/api-identifier/swagger_client/api/identifier_endpoint_api.py b/swagger/api-identifier/swagger_client/api/identifier_endpoint_api.py deleted file mode 100644 index 5866fe836b2784a9c38f85f510d6a3bf04276e96..0000000000000000000000000000000000000000 --- a/swagger/api-identifier/swagger_client/api/identifier_endpoint_api.py +++ /dev/null @@ -1,598 +0,0 @@ -# coding: utf-8 - -""" - Database Repository Identifier Service API - - Service that manages the identifiers # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -from __future__ import absolute_import - -import re # noqa: F401 - -# python 2 and python 3 compatibility library -import six - -from swagger_client.api_client import ApiClient - - -class IdentifierEndpointApi(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - Ref: https://github.com/swagger-api/swagger-codegen - """ - - def __init__(self, api_client=None): - if api_client is None: - api_client = ApiClient() - self.api_client = api_client - - def create(self, body, authorization, id, database_id, **kwargs): # noqa: E501 - """Create identifier # noqa: E501 - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.create(body, authorization, id, database_id, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param IdentifierCreateDto body: (required) - :param str authorization: (required) - :param int id: (required) - :param int database_id: (required) - :return: IdentifierDto - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.create_with_http_info(body, authorization, id, database_id, **kwargs) # noqa: E501 - else: - (data) = self.create_with_http_info(body, authorization, id, database_id, **kwargs) # noqa: E501 - return data - - def create_with_http_info(self, body, authorization, id, database_id, **kwargs): # noqa: E501 - """Create identifier # noqa: E501 - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.create_with_http_info(body, authorization, id, database_id, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param IdentifierCreateDto body: (required) - :param str authorization: (required) - :param int id: (required) - :param int database_id: (required) - :return: IdentifierDto - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['body', 'authorization', 'id', 'database_id'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in six.iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method create" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'body' is set - if ('body' not in params or - params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `create`") # noqa: E501 - # verify the required parameter 'authorization' is set - if ('authorization' not in params or - params['authorization'] is None): - raise ValueError("Missing the required parameter `authorization` when calling `create`") # noqa: E501 - # verify the required parameter 'id' is set - if ('id' not in params or - params['id'] is None): - raise ValueError("Missing the required parameter `id` when calling `create`") # noqa: E501 - # verify the required parameter 'database_id' is set - if ('database_id' not in params or - params['database_id'] is None): - raise ValueError("Missing the required parameter `database_id` when calling `create`") # noqa: E501 - - collection_formats = {} - - path_params = {} - if 'id' in params: - path_params['id'] = params['id'] # noqa: E501 - if 'database_id' in params: - path_params['databaseId'] = params['database_id'] # noqa: E501 - - query_params = [] - - header_params = {} - if 'authorization' in params: - header_params['Authorization'] = params['authorization'] # noqa: E501 - - form_params = [] - local_var_files = {} - - body_params = None - if 'body' in params: - body_params = params['body'] - # HTTP header `Accept` - header_params['Accept'] = self.api_client.select_header_accept( - ['*/*']) # noqa: E501 - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 - ['application/json']) # noqa: E501 - - # Authentication setting - auth_settings = ['bearerAuth'] # noqa: E501 - - return self.api_client.call_api( - '/api/container/{id}/database/{databaseId}/identifier', 'POST', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='IdentifierDto', # noqa: E501 - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def delete(self, id, database_id, identifer_id, **kwargs): # noqa: E501 - """Delete some identifer # noqa: E501 - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.delete(id, database_id, identifer_id, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param int id: (required) - :param int database_id: (required) - :param int identifer_id: (required) - :return: object - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.delete_with_http_info(id, database_id, identifer_id, **kwargs) # noqa: E501 - else: - (data) = self.delete_with_http_info(id, database_id, identifer_id, **kwargs) # noqa: E501 - return data - - def delete_with_http_info(self, id, database_id, identifer_id, **kwargs): # noqa: E501 - """Delete some identifer # noqa: E501 - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.delete_with_http_info(id, database_id, identifer_id, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param int id: (required) - :param int database_id: (required) - :param int identifer_id: (required) - :return: object - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['id', 'database_id', 'identifer_id'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in six.iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method delete" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'id' is set - if ('id' not in params or - params['id'] is None): - raise ValueError("Missing the required parameter `id` when calling `delete`") # noqa: E501 - # verify the required parameter 'database_id' is set - if ('database_id' not in params or - params['database_id'] is None): - raise ValueError("Missing the required parameter `database_id` when calling `delete`") # noqa: E501 - # verify the required parameter 'identifer_id' is set - if ('identifer_id' not in params or - params['identifer_id'] is None): - raise ValueError("Missing the required parameter `identifer_id` when calling `delete`") # noqa: E501 - - collection_formats = {} - - path_params = {} - if 'id' in params: - path_params['id'] = params['id'] # noqa: E501 - if 'database_id' in params: - path_params['databaseId'] = params['database_id'] # noqa: E501 - - query_params = [] - if 'identifer_id' in params: - query_params.append(('identiferId', params['identifer_id'])) # noqa: E501 - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - # HTTP header `Accept` - header_params['Accept'] = self.api_client.select_header_accept( - ['*/*']) # noqa: E501 - - # Authentication setting - auth_settings = ['bearerAuth'] # noqa: E501 - - return self.api_client.call_api( - '/api/container/{id}/database/{databaseId}/identifier/{identiferId}', 'DELETE', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='object', # noqa: E501 - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def export(self, id, database_id, identifier_id, **kwargs): # noqa: E501 - """Export some identifier metadata # noqa: E501 - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.export(id, database_id, identifier_id, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param int id: (required) - :param int database_id: (required) - :param int identifier_id: (required) - :return: str - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.export_with_http_info(id, database_id, identifier_id, **kwargs) # noqa: E501 - else: - (data) = self.export_with_http_info(id, database_id, identifier_id, **kwargs) # noqa: E501 - return data - - def export_with_http_info(self, id, database_id, identifier_id, **kwargs): # noqa: E501 - """Export some identifier metadata # noqa: E501 - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.export_with_http_info(id, database_id, identifier_id, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param int id: (required) - :param int database_id: (required) - :param int identifier_id: (required) - :return: str - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['id', 'database_id', 'identifier_id'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in six.iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method export" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'id' is set - if ('id' not in params or - params['id'] is None): - raise ValueError("Missing the required parameter `id` when calling `export`") # noqa: E501 - # verify the required parameter 'database_id' is set - if ('database_id' not in params or - params['database_id'] is None): - raise ValueError("Missing the required parameter `database_id` when calling `export`") # noqa: E501 - # verify the required parameter 'identifier_id' is set - if ('identifier_id' not in params or - params['identifier_id'] is None): - raise ValueError("Missing the required parameter `identifier_id` when calling `export`") # noqa: E501 - - collection_formats = {} - - path_params = {} - if 'id' in params: - path_params['id'] = params['id'] # noqa: E501 - if 'database_id' in params: - path_params['databaseId'] = params['database_id'] # noqa: E501 - if 'identifier_id' in params: - path_params['identifierId'] = params['identifier_id'] # noqa: E501 - - query_params = [] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - # HTTP header `Accept` - header_params['Accept'] = self.api_client.select_header_accept( - ['*/*']) # noqa: E501 - - # Authentication setting - auth_settings = [] # noqa: E501 - - return self.api_client.call_api( - '/api/container/{id}/database/{databaseId}/identifier/{identifierId}', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='str', # noqa: E501 - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def find_all(self, id, database_id, **kwargs): # noqa: E501 - """Find identifiers # noqa: E501 - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.find_all(id, database_id, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param int id: (required) - :param int database_id: (required) - :param int qid: - :return: list[IdentifierDto] - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.find_all_with_http_info(id, database_id, **kwargs) # noqa: E501 - else: - (data) = self.find_all_with_http_info(id, database_id, **kwargs) # noqa: E501 - return data - - def find_all_with_http_info(self, id, database_id, **kwargs): # noqa: E501 - """Find identifiers # noqa: E501 - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.find_all_with_http_info(id, database_id, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param int id: (required) - :param int database_id: (required) - :param int qid: - :return: list[IdentifierDto] - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['id', 'database_id', 'qid'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in six.iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method find_all" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'id' is set - if ('id' not in params or - params['id'] is None): - raise ValueError("Missing the required parameter `id` when calling `find_all`") # noqa: E501 - # verify the required parameter 'database_id' is set - if ('database_id' not in params or - params['database_id'] is None): - raise ValueError("Missing the required parameter `database_id` when calling `find_all`") # noqa: E501 - - collection_formats = {} - - path_params = {} - if 'id' in params: - path_params['id'] = params['id'] # noqa: E501 - if 'database_id' in params: - path_params['databaseId'] = params['database_id'] # noqa: E501 - - query_params = [] - if 'qid' in params: - query_params.append(('qid', params['qid'])) # noqa: E501 - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - # HTTP header `Accept` - header_params['Accept'] = self.api_client.select_header_accept( - ['*/*']) # noqa: E501 - - # Authentication setting - auth_settings = [] # noqa: E501 - - return self.api_client.call_api( - '/api/container/{id}/database/{databaseId}/identifier', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='list[IdentifierDto]', # noqa: E501 - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def update(self, body, identifer_id, id, database_id, **kwargs): # noqa: E501 - """Update some identifier # noqa: E501 - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.update(body, identifer_id, id, database_id, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param IdentifierDto body: (required) - :param int identifer_id: (required) - :param int id: (required) - :param int database_id: (required) - :return: IdentifierDto - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.update_with_http_info(body, identifer_id, id, database_id, **kwargs) # noqa: E501 - else: - (data) = self.update_with_http_info(body, identifer_id, id, database_id, **kwargs) # noqa: E501 - return data - - def update_with_http_info(self, body, identifer_id, id, database_id, **kwargs): # noqa: E501 - """Update some identifier # noqa: E501 - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.update_with_http_info(body, identifer_id, id, database_id, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param IdentifierDto body: (required) - :param int identifer_id: (required) - :param int id: (required) - :param int database_id: (required) - :return: IdentifierDto - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['body', 'identifer_id', 'id', 'database_id'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in six.iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method update" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'body' is set - if ('body' not in params or - params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `update`") # noqa: E501 - # verify the required parameter 'identifer_id' is set - if ('identifer_id' not in params or - params['identifer_id'] is None): - raise ValueError("Missing the required parameter `identifer_id` when calling `update`") # noqa: E501 - # verify the required parameter 'id' is set - if ('id' not in params or - params['id'] is None): - raise ValueError("Missing the required parameter `id` when calling `update`") # noqa: E501 - # verify the required parameter 'database_id' is set - if ('database_id' not in params or - params['database_id'] is None): - raise ValueError("Missing the required parameter `database_id` when calling `update`") # noqa: E501 - - collection_formats = {} - - path_params = {} - if 'id' in params: - path_params['id'] = params['id'] # noqa: E501 - if 'database_id' in params: - path_params['databaseId'] = params['database_id'] # noqa: E501 - - query_params = [] - if 'identifer_id' in params: - query_params.append(('identiferId', params['identifer_id'])) # noqa: E501 - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - if 'body' in params: - body_params = params['body'] - # HTTP header `Accept` - header_params['Accept'] = self.api_client.select_header_accept( - ['*/*']) # noqa: E501 - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 - ['application/json']) # noqa: E501 - - # Authentication setting - auth_settings = ['bearerAuth'] # noqa: E501 - - return self.api_client.call_api( - '/api/container/{id}/database/{databaseId}/identifier/{identiferId}', 'PUT', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='IdentifierDto', # noqa: E501 - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) diff --git a/swagger/api-identifier/swagger_client/api/persistence_endpoint_api.py b/swagger/api-identifier/swagger_client/api/persistence_endpoint_api.py deleted file mode 100644 index b82af4b330934b36ca10defe8bccc68cbd8d61f6..0000000000000000000000000000000000000000 --- a/swagger/api-identifier/swagger_client/api/persistence_endpoint_api.py +++ /dev/null @@ -1,126 +0,0 @@ -# coding: utf-8 - -""" - Database Repository Identifier Service API - - Service that manages the identifiers # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -from __future__ import absolute_import - -import re # noqa: F401 - -# python 2 and python 3 compatibility library -import six - -from swagger_client.api_client import ApiClient - - -class PersistenceEndpointApi(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - Ref: https://github.com/swagger-api/swagger-codegen - """ - - def __init__(self, api_client=None): - if api_client is None: - api_client = ApiClient() - self.api_client = api_client - - def find(self, pid, **kwargs): # noqa: E501 - """Find some identifier # noqa: E501 - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.find(pid, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param int pid: (required) - :return: IdentifierDto - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.find_with_http_info(pid, **kwargs) # noqa: E501 - else: - (data) = self.find_with_http_info(pid, **kwargs) # noqa: E501 - return data - - def find_with_http_info(self, pid, **kwargs): # noqa: E501 - """Find some identifier # noqa: E501 - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.find_with_http_info(pid, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param int pid: (required) - :return: IdentifierDto - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['pid'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in six.iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method find" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'pid' is set - if ('pid' not in params or - params['pid'] is None): - raise ValueError("Missing the required parameter `pid` when calling `find`") # noqa: E501 - - collection_formats = {} - - path_params = {} - if 'pid' in params: - path_params['pid'] = params['pid'] # noqa: E501 - - query_params = [] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - # HTTP header `Accept` - header_params['Accept'] = self.api_client.select_header_accept( - ['*/*']) # noqa: E501 - - # Authentication setting - auth_settings = [] # noqa: E501 - - return self.api_client.call_api( - '/api/pid/{pid}', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='IdentifierDto', # noqa: E501 - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) diff --git a/swagger/api-identifier/swagger_client/api_client.py b/swagger/api-identifier/swagger_client/api_client.py deleted file mode 100644 index 595d802b04c8478caeb10c908c98e125c9849f28..0000000000000000000000000000000000000000 --- a/swagger/api-identifier/swagger_client/api_client.py +++ /dev/null @@ -1,632 +0,0 @@ -# coding: utf-8 -""" - Database Repository Identifier Service API - - Service that manages the identifiers # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" -from __future__ import absolute_import - -import datetime -import json -import mimetypes -from multiprocessing.pool import ThreadPool -import os -import re -import tempfile - -# python 2 and python 3 compatibility library -import six -from six.moves.urllib.parse import quote - -from swagger_client.configuration import Configuration -import swagger_client.models -from swagger_client import rest - - -class ApiClient(object): - """Generic API client for Swagger client library builds. - - Swagger generic API client. This client handles the client- - server communication, and is invariant across implementations. Specifics of - the methods and models for each application are generated from the Swagger - templates. - - NOTE: This class is auto generated by the swagger code generator program. - Ref: https://github.com/swagger-api/swagger-codegen - Do not edit the class manually. - - :param configuration: .Configuration object for this client - :param header_name: a header to pass when making calls to the API. - :param header_value: a header value to pass when making calls to - the API. - :param cookie: a cookie to include in the header when making calls - to the API - """ - - PRIMITIVE_TYPES = (float, bool, bytes, six.text_type) + six.integer_types - NATIVE_TYPES_MAPPING = { - 'int': int, - 'long': int if six.PY3 else long, # noqa: F821 - 'float': float, - 'str': str, - 'bool': bool, - 'date': datetime.date, - 'datetime': datetime.datetime, - 'object': object, - } - - def __init__(self, configuration=None, header_name=None, header_value=None, - cookie=None): - if configuration is None: - configuration = Configuration() - self.configuration = configuration - - self.pool = ThreadPool() - self.rest_client = rest.RESTClientObject(configuration) - self.default_headers = {} - if header_name is not None: - self.default_headers[header_name] = header_value - self.cookie = cookie - # Set default User-Agent. - self.user_agent = 'Swagger-Codegen/1.0.0/python' - - def __del__(self): - self.pool.close() - self.pool.join() - - @property - def user_agent(self): - """User agent for this API client""" - return self.default_headers['User-Agent'] - - @user_agent.setter - def user_agent(self, value): - self.default_headers['User-Agent'] = value - - def set_default_header(self, header_name, header_value): - self.default_headers[header_name] = header_value - - def __call_api( - self, resource_path, method, path_params=None, - query_params=None, header_params=None, body=None, post_params=None, - files=None, response_type=None, auth_settings=None, - _return_http_data_only=None, collection_formats=None, - _preload_content=True, _request_timeout=None): - - config = self.configuration - - # header parameters - header_params = header_params or {} - header_params.update(self.default_headers) - if self.cookie: - header_params['Cookie'] = self.cookie - if header_params: - header_params = self.sanitize_for_serialization(header_params) - header_params = dict(self.parameters_to_tuples(header_params, - collection_formats)) - - # path parameters - if path_params: - path_params = self.sanitize_for_serialization(path_params) - path_params = self.parameters_to_tuples(path_params, - collection_formats) - for k, v in path_params: - # specified safe chars, encode everything - resource_path = resource_path.replace( - '{%s}' % k, - quote(str(v), safe=config.safe_chars_for_path_param) - ) - - # query parameters - if query_params: - query_params = self.sanitize_for_serialization(query_params) - query_params = self.parameters_to_tuples(query_params, - collection_formats) - - # post parameters - if post_params or files: - post_params = self.prepare_post_parameters(post_params, files) - post_params = self.sanitize_for_serialization(post_params) - post_params = self.parameters_to_tuples(post_params, - collection_formats) - - # auth setting - self.update_params_for_auth(header_params, query_params, auth_settings) - - # body - if body: - body = self.sanitize_for_serialization(body) - - # request url - url = self.configuration.host + resource_path - - # perform request and return response - response_data = self.request( - method, url, query_params=query_params, headers=header_params, - post_params=post_params, body=body, - _preload_content=_preload_content, - _request_timeout=_request_timeout) - - self.last_response = response_data - - return_data = response_data - if _preload_content: - # deserialize response data - if response_type: - return_data = self.deserialize(response_data, response_type) - else: - return_data = None - - if _return_http_data_only: - return (return_data) - else: - return (return_data, response_data.status, - response_data.getheaders()) - - def sanitize_for_serialization(self, obj): - """Builds a JSON POST object. - - If obj is None, return None. - If obj is str, int, long, float, bool, return directly. - If obj is datetime.datetime, datetime.date - convert to string in iso8601 format. - If obj is list, sanitize each element in the list. - If obj is dict, return the dict. - If obj is swagger model, return the properties dict. - - :param obj: The data to serialize. - :return: The serialized form of data. - """ - if obj is None: - return None - elif isinstance(obj, self.PRIMITIVE_TYPES): - return obj - elif isinstance(obj, list): - return [self.sanitize_for_serialization(sub_obj) - for sub_obj in obj] - elif isinstance(obj, tuple): - return tuple(self.sanitize_for_serialization(sub_obj) - for sub_obj in obj) - elif isinstance(obj, (datetime.datetime, datetime.date)): - return obj.isoformat() - - if isinstance(obj, dict): - obj_dict = obj - else: - # Convert model obj to dict except - # attributes `swagger_types`, `attribute_map` - # and attributes which value is not None. - # Convert attribute name to json key in - # model definition for request. - obj_dict = {obj.attribute_map[attr]: getattr(obj, attr) - for attr, _ in six.iteritems(obj.swagger_types) - if getattr(obj, attr) is not None} - - return {key: self.sanitize_for_serialization(val) - for key, val in six.iteritems(obj_dict)} - - def deserialize(self, response, response_type): - """Deserializes response into an object. - - :param response: RESTResponse object to be deserialized. - :param response_type: class literal for - deserialized object, or string of class name. - - :return: deserialized object. - """ - # handle file downloading - # save response body into a tmp file and return the instance - if response_type == "file": - return self.__deserialize_file(response) - - # fetch data from response object - try: - data = json.loads(response.data) - except ValueError: - data = response.data - - return self.__deserialize(data, response_type) - - def __deserialize(self, data, klass): - """Deserializes dict, list, str into an object. - - :param data: dict, list or str. - :param klass: class literal, or string of class name. - - :return: object. - """ - if data is None: - return None - - if type(klass) == str: - if klass.startswith('list['): - sub_kls = re.match(r'list\[(.*)\]', klass).group(1) - return [self.__deserialize(sub_data, sub_kls) - for sub_data in data] - - if klass.startswith('dict('): - sub_kls = re.match(r'dict\(([^,]*), (.*)\)', klass).group(2) - return {k: self.__deserialize(v, sub_kls) - for k, v in six.iteritems(data)} - - # convert str to class - if klass in self.NATIVE_TYPES_MAPPING: - klass = self.NATIVE_TYPES_MAPPING[klass] - else: - klass = getattr(swagger_client.models, klass) - - if klass in self.PRIMITIVE_TYPES: - return self.__deserialize_primitive(data, klass) - elif klass == object: - return self.__deserialize_object(data) - elif klass == datetime.date: - return self.__deserialize_date(data) - elif klass == datetime.datetime: - return self.__deserialize_datatime(data) - else: - return self.__deserialize_model(data, klass) - - def call_api(self, resource_path, method, - path_params=None, query_params=None, header_params=None, - body=None, post_params=None, files=None, - response_type=None, auth_settings=None, async_req=None, - _return_http_data_only=None, collection_formats=None, - _preload_content=True, _request_timeout=None): - """Makes the HTTP request (synchronous) and returns deserialized data. - - To make an async request, set the async_req parameter. - - :param resource_path: Path to method endpoint. - :param method: Method to call. - :param path_params: Path parameters in the url. - :param query_params: Query parameters in the url. - :param header_params: Header parameters to be - placed in the request header. - :param body: Request body. - :param post_params dict: Request post form parameters, - for `application/x-www-form-urlencoded`, `multipart/form-data`. - :param auth_settings list: Auth Settings names for the request. - :param response: Response data type. - :param files dict: key -> filename, value -> filepath, - for `multipart/form-data`. - :param async_req bool: execute request asynchronously - :param _return_http_data_only: response data without head status code - and headers - :param collection_formats: dict of collection formats for path, query, - header, and post parameters. - :param _preload_content: if False, the urllib3.HTTPResponse object will - be returned without reading/decoding response - data. Default is True. - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :return: - If async_req parameter is True, - the request will be called asynchronously. - The method will return the request thread. - If parameter async_req is False or missing, - then the method will return the response directly. - """ - if not async_req: - return self.__call_api(resource_path, method, - path_params, query_params, header_params, - body, post_params, files, - response_type, auth_settings, - _return_http_data_only, collection_formats, - _preload_content, _request_timeout) - else: - thread = self.pool.apply_async(self.__call_api, (resource_path, - method, path_params, query_params, - header_params, body, - post_params, files, - response_type, auth_settings, - _return_http_data_only, - collection_formats, - _preload_content, _request_timeout)) - return thread - - def request(self, method, url, query_params=None, headers=None, - post_params=None, body=None, _preload_content=True, - _request_timeout=None): - """Makes the HTTP request using RESTClient.""" - if method == "GET": - return self.rest_client.GET(url, - query_params=query_params, - _preload_content=_preload_content, - _request_timeout=_request_timeout, - headers=headers) - elif method == "HEAD": - return self.rest_client.HEAD(url, - query_params=query_params, - _preload_content=_preload_content, - _request_timeout=_request_timeout, - headers=headers) - elif method == "OPTIONS": - return self.rest_client.OPTIONS(url, - query_params=query_params, - headers=headers, - post_params=post_params, - _preload_content=_preload_content, - _request_timeout=_request_timeout, - body=body) - elif method == "POST": - return self.rest_client.POST(url, - query_params=query_params, - headers=headers, - post_params=post_params, - _preload_content=_preload_content, - _request_timeout=_request_timeout, - body=body) - elif method == "PUT": - return self.rest_client.PUT(url, - query_params=query_params, - headers=headers, - post_params=post_params, - _preload_content=_preload_content, - _request_timeout=_request_timeout, - body=body) - elif method == "PATCH": - return self.rest_client.PATCH(url, - query_params=query_params, - headers=headers, - post_params=post_params, - _preload_content=_preload_content, - _request_timeout=_request_timeout, - body=body) - elif method == "DELETE": - return self.rest_client.DELETE(url, - query_params=query_params, - headers=headers, - _preload_content=_preload_content, - _request_timeout=_request_timeout, - body=body) - else: - raise ValueError( - "http method must be `GET`, `HEAD`, `OPTIONS`," - " `POST`, `PATCH`, `PUT` or `DELETE`." - ) - - def parameters_to_tuples(self, params, collection_formats): - """Get parameters as list of tuples, formatting collections. - - :param params: Parameters as dict or list of two-tuples - :param dict collection_formats: Parameter collection formats - :return: Parameters as list of tuples, collections formatted - """ - new_params = [] - if collection_formats is None: - collection_formats = {} - for k, v in six.iteritems(params) if isinstance(params, dict) else params: # noqa: E501 - if k in collection_formats: - collection_format = collection_formats[k] - if collection_format == 'multi': - new_params.extend((k, value) for value in v) - else: - if collection_format == 'ssv': - delimiter = ' ' - elif collection_format == 'tsv': - delimiter = '\t' - elif collection_format == 'pipes': - delimiter = '|' - else: # csv is the default - delimiter = ',' - new_params.append( - (k, delimiter.join(str(value) for value in v))) - else: - new_params.append((k, v)) - return new_params - - def prepare_post_parameters(self, post_params=None, files=None): - """Builds form parameters. - - :param post_params: Normal form parameters. - :param files: File parameters. - :return: Form parameters with files. - """ - params = [] - - if post_params: - params = post_params - - if files: - for k, v in six.iteritems(files): - if not v: - continue - file_names = v if type(v) is list else [v] - for n in file_names: - with open(n, 'rb') as f: - filename = os.path.basename(f.name) - filedata = f.read() - mimetype = (mimetypes.guess_type(filename)[0] or - 'application/octet-stream') - params.append( - tuple([k, tuple([filename, filedata, mimetype])])) - - return params - - def select_header_accept(self, accepts): - """Returns `Accept` based on an array of accepts provided. - - :param accepts: List of headers. - :return: Accept (e.g. application/json). - """ - if not accepts: - return - - accepts = [x.lower() for x in accepts] - - if 'application/json' in accepts: - return 'application/json' - else: - return ', '.join(accepts) - - def select_header_content_type(self, content_types): - """Returns `Content-Type` based on an array of content_types provided. - - :param content_types: List of content-types. - :return: Content-Type (e.g. application/json). - """ - if not content_types: - return 'application/json' - - content_types = [x.lower() for x in content_types] - - if 'application/json' in content_types or '*/*' in content_types: - return 'application/json' - else: - return content_types[0] - - def update_params_for_auth(self, headers, querys, auth_settings): - """Updates header and query params based on authentication setting. - - :param headers: Header parameters dict to be updated. - :param querys: Query parameters tuple list to be updated. - :param auth_settings: Authentication setting identifiers list. - """ - if not auth_settings: - return - - for auth in auth_settings: - auth_setting = self.configuration.auth_settings().get(auth) - if auth_setting: - if not auth_setting['value']: - continue - elif auth_setting['in'] == 'header': - headers[auth_setting['key']] = auth_setting['value'] - elif auth_setting['in'] == 'query': - querys.append((auth_setting['key'], auth_setting['value'])) - else: - raise ValueError( - 'Authentication token must be in `query` or `header`' - ) - - def __deserialize_file(self, response): - """Deserializes body to file - - Saves response body into a file in a temporary folder, - using the filename from the `Content-Disposition` header if provided. - - :param response: RESTResponse. - :return: file path. - """ - fd, path = tempfile.mkstemp(dir=self.configuration.temp_folder_path) - os.close(fd) - os.remove(path) - - content_disposition = response.getheader("Content-Disposition") - if content_disposition: - filename = re.search(r'filename=[\'"]?([^\'"\s]+)[\'"]?', - content_disposition).group(1) - path = os.path.join(os.path.dirname(path), filename) - response_data = response.data - with open(path, "wb") as f: - if isinstance(response_data, str): - # change str to bytes so we can write it - response_data = response_data.encode('utf-8') - f.write(response_data) - else: - f.write(response_data) - return path - - def __deserialize_primitive(self, data, klass): - """Deserializes string to primitive type. - - :param data: str. - :param klass: class literal. - - :return: int, long, float, str, bool. - """ - try: - return klass(data) - except UnicodeEncodeError: - return six.text_type(data) - except TypeError: - return data - - def __deserialize_object(self, value): - """Return a original value. - - :return: object. - """ - return value - - def __deserialize_date(self, string): - """Deserializes string to date. - - :param string: str. - :return: date. - """ - try: - from dateutil.parser import parse - return parse(string).date() - except ImportError: - return string - except ValueError: - raise rest.ApiException( - status=0, - reason="Failed to parse `{0}` as date object".format(string) - ) - - def __deserialize_datatime(self, string): - """Deserializes string to datetime. - - The string should be in iso8601 datetime format. - - :param string: str. - :return: datetime. - """ - try: - from dateutil.parser import parse - return parse(string) - except ImportError: - return string - except ValueError: - raise rest.ApiException( - status=0, - reason=( - "Failed to parse `{0}` as datetime object" - .format(string) - ) - ) - - def __hasattr(self, object, name): - return name in object.__class__.__dict__ - - def __deserialize_model(self, data, klass): - """Deserializes list or dict to model. - - :param data: dict, list. - :param klass: class literal. - :return: model object. - """ - - if not klass.swagger_types and not self.__hasattr(klass, 'get_real_child_model'): - return data - - kwargs = {} - if klass.swagger_types is not None: - for attr, attr_type in six.iteritems(klass.swagger_types): - if (data is not None and - klass.attribute_map[attr] in data and - isinstance(data, (list, dict))): - value = data[klass.attribute_map[attr]] - kwargs[attr] = self.__deserialize(value, attr_type) - - instance = klass(**kwargs) - - if (isinstance(instance, dict) and - klass.swagger_types is not None and - isinstance(data, dict)): - for key, value in data.items(): - if key not in klass.swagger_types: - instance[key] = value - if self.__hasattr(instance, 'get_real_child_model'): - klass_name = instance.get_real_child_model(data) - if klass_name: - instance = self.__deserialize(data, klass_name) - return instance diff --git a/swagger/api-identifier/swagger_client/configuration.py b/swagger/api-identifier/swagger_client/configuration.py deleted file mode 100644 index db13aab9e403d01f5ecabce3a697c97c8f1d1018..0000000000000000000000000000000000000000 --- a/swagger/api-identifier/swagger_client/configuration.py +++ /dev/null @@ -1,244 +0,0 @@ -# coding: utf-8 - -""" - Database Repository Identifier Service API - - Service that manages the identifiers # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -from __future__ import absolute_import - -import copy -import logging -import multiprocessing -import sys -import urllib3 - -import six -from six.moves import http_client as httplib - - -class TypeWithDefault(type): - def __init__(cls, name, bases, dct): - super(TypeWithDefault, cls).__init__(name, bases, dct) - cls._default = None - - def __call__(cls): - if cls._default is None: - cls._default = type.__call__(cls) - return copy.copy(cls._default) - - def set_default(cls, default): - cls._default = copy.copy(default) - - -class Configuration(six.with_metaclass(TypeWithDefault, object)): - """NOTE: This class is auto generated by the swagger code generator program. - - Ref: https://github.com/swagger-api/swagger-codegen - Do not edit the class manually. - """ - - def __init__(self): - """Constructor""" - # Default Base url - self.host = "http://localhost:9096" - # Temp file folder for downloading files - self.temp_folder_path = None - - # Authentication Settings - # dict to store API key(s) - self.api_key = {} - # dict to store API prefix (e.g. Bearer) - self.api_key_prefix = {} - # function to refresh API key if expired - self.refresh_api_key_hook = None - # Username for HTTP basic authentication - self.username = "" - # Password for HTTP basic authentication - self.password = "" - # Logging Settings - self.logger = {} - self.logger["package_logger"] = logging.getLogger("swagger_client") - self.logger["urllib3_logger"] = logging.getLogger("urllib3") - # Log format - self.logger_format = '%(asctime)s %(levelname)s %(message)s' - # Log stream handler - self.logger_stream_handler = None - # Log file handler - self.logger_file_handler = None - # Debug file location - self.logger_file = None - # Debug switch - self.debug = False - - # SSL/TLS verification - # Set this to false to skip verifying SSL certificate when calling API - # from https server. - self.verify_ssl = True - # Set this to customize the certificate file to verify the peer. - self.ssl_ca_cert = None - # client certificate file - self.cert_file = None - # client key file - self.key_file = None - # Set this to True/False to enable/disable SSL hostname verification. - self.assert_hostname = None - - # urllib3 connection pool's maximum number of connections saved - # per pool. urllib3 uses 1 connection as default value, but this is - # not the best value when you are making a lot of possibly parallel - # requests to the same host, which is often the case here. - # cpu_count * 5 is used as default value to increase performance. - self.connection_pool_maxsize = multiprocessing.cpu_count() * 5 - - # Proxy URL - self.proxy = None - # Safe chars for path_param - self.safe_chars_for_path_param = '' - - @property - def logger_file(self): - """The logger file. - - If the logger_file is None, then add stream handler and remove file - handler. Otherwise, add file handler and remove stream handler. - - :param value: The logger_file path. - :type: str - """ - return self.__logger_file - - @logger_file.setter - def logger_file(self, value): - """The logger file. - - If the logger_file is None, then add stream handler and remove file - handler. Otherwise, add file handler and remove stream handler. - - :param value: The logger_file path. - :type: str - """ - self.__logger_file = value - if self.__logger_file: - # If set logging file, - # then add file handler and remove stream handler. - self.logger_file_handler = logging.FileHandler(self.__logger_file) - self.logger_file_handler.setFormatter(self.logger_formatter) - for _, logger in six.iteritems(self.logger): - logger.addHandler(self.logger_file_handler) - if self.logger_stream_handler: - logger.removeHandler(self.logger_stream_handler) - else: - # If not set logging file, - # then add stream handler and remove file handler. - self.logger_stream_handler = logging.StreamHandler() - self.logger_stream_handler.setFormatter(self.logger_formatter) - for _, logger in six.iteritems(self.logger): - logger.addHandler(self.logger_stream_handler) - if self.logger_file_handler: - logger.removeHandler(self.logger_file_handler) - - @property - def debug(self): - """Debug status - - :param value: The debug status, True or False. - :type: bool - """ - return self.__debug - - @debug.setter - def debug(self, value): - """Debug status - - :param value: The debug status, True or False. - :type: bool - """ - self.__debug = value - if self.__debug: - # if debug status is True, turn on debug logging - for _, logger in six.iteritems(self.logger): - logger.setLevel(logging.DEBUG) - # turn on httplib debug - httplib.HTTPConnection.debuglevel = 1 - else: - # if debug status is False, turn off debug logging, - # setting log level to default `logging.WARNING` - for _, logger in six.iteritems(self.logger): - logger.setLevel(logging.WARNING) - # turn off httplib debug - httplib.HTTPConnection.debuglevel = 0 - - @property - def logger_format(self): - """The logger format. - - The logger_formatter will be updated when sets logger_format. - - :param value: The format string. - :type: str - """ - return self.__logger_format - - @logger_format.setter - def logger_format(self, value): - """The logger format. - - The logger_formatter will be updated when sets logger_format. - - :param value: The format string. - :type: str - """ - self.__logger_format = value - self.logger_formatter = logging.Formatter(self.__logger_format) - - def get_api_key_with_prefix(self, identifier): - """Gets API key (with prefix if set). - - :param identifier: The identifier of apiKey. - :return: The token for api key authentication. - """ - if self.refresh_api_key_hook: - self.refresh_api_key_hook(self) - - key = self.api_key.get(identifier) - if key: - prefix = self.api_key_prefix.get(identifier) - if prefix: - return "%s %s" % (prefix, key) - else: - return key - - def get_basic_auth_token(self): - """Gets HTTP basic authentication header (string). - - :return: The token for basic HTTP authentication. - """ - return urllib3.util.make_headers( - basic_auth=self.username + ':' + self.password - ).get('authorization') - - def auth_settings(self): - """Gets Auth Settings dict for api client. - - :return: The Auth Settings information dict. - """ - return { - } - - def to_debug_report(self): - """Gets the essential information for debugging. - - :return: The report for debugging. - """ - return "Python SDK Debug Report:\n"\ - "OS: {env}\n"\ - "Python Version: {pyversion}\n"\ - "Version of the API: 1.1.0-alpha\n"\ - "SDK Package Version: 1.0.0".\ - format(env=sys.platform, pyversion=sys.version) diff --git a/swagger/api-identifier/swagger_client/models/__init__.py b/swagger/api-identifier/swagger_client/models/__init__.py deleted file mode 100644 index 630093e23298a382afd79d2d15a8ddd4a7f1601e..0000000000000000000000000000000000000000 --- a/swagger/api-identifier/swagger_client/models/__init__.py +++ /dev/null @@ -1,34 +0,0 @@ -# coding: utf-8 - -# flake8: noqa -""" - Database Repository Identifier Service API - - Service that manages the identifiers # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -from __future__ import absolute_import - -# import models into model package -from swagger_client.models.api_error_dto import ApiErrorDto -from swagger_client.models.container_dto import ContainerDto -from swagger_client.models.creator_create_dto import CreatorCreateDto -from swagger_client.models.creator_dto import CreatorDto -from swagger_client.models.database_dto import DatabaseDto -from swagger_client.models.granted_authority_dto import GrantedAuthorityDto -from swagger_client.models.identifier_create_dto import IdentifierCreateDto -from swagger_client.models.identifier_dto import IdentifierDto -from swagger_client.models.image_brief_dto import ImageBriefDto -from swagger_client.models.image_date_dto import ImageDateDto -from swagger_client.models.image_dto import ImageDto -from swagger_client.models.image_env_item_dto import ImageEnvItemDto -from swagger_client.models.license_dto import LicenseDto -from swagger_client.models.related_identifier_create_dto import RelatedIdentifierCreateDto -from swagger_client.models.related_identifier_dto import RelatedIdentifierDto -from swagger_client.models.table_brief_dto import TableBriefDto -from swagger_client.models.user_brief_dto import UserBriefDto -from swagger_client.models.user_dto import UserDto diff --git a/swagger/api-identifier/swagger_client/models/api_error_dto.py b/swagger/api-identifier/swagger_client/models/api_error_dto.py deleted file mode 100644 index cf63fab43ba16f5318d3bd685a1d3ca140e7e673..0000000000000000000000000000000000000000 --- a/swagger/api-identifier/swagger_client/models/api_error_dto.py +++ /dev/null @@ -1,171 +0,0 @@ -# coding: utf-8 - -""" - Database Repository Identifier Service API - - Service that manages the identifiers # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -import pprint -import re # noqa: F401 - -import six - -class ApiErrorDto(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'status': 'str', - 'message': 'str', - 'code': 'str' - } - - attribute_map = { - 'status': 'status', - 'message': 'message', - 'code': 'code' - } - - def __init__(self, status=None, message=None, code=None): # noqa: E501 - """ApiErrorDto - a model defined in Swagger""" # noqa: E501 - self._status = None - self._message = None - self._code = None - self.discriminator = None - self.status = status - self.message = message - self.code = code - - @property - def status(self): - """Gets the status of this ApiErrorDto. # noqa: E501 - - - :return: The status of this ApiErrorDto. # noqa: E501 - :rtype: str - """ - return self._status - - @status.setter - def status(self, status): - """Sets the status of this ApiErrorDto. - - - :param status: The status of this ApiErrorDto. # noqa: E501 - :type: str - """ - if status is None: - raise ValueError("Invalid value for `status`, must not be `None`") # noqa: E501 - allowed_values = ["100 CONTINUE", "101 SWITCHING_PROTOCOLS", "102 PROCESSING", "103 CHECKPOINT", "200 OK", "201 CREATED", "202 ACCEPTED", "203 NON_AUTHORITATIVE_INFORMATION", "204 NO_CONTENT", "205 RESET_CONTENT", "206 PARTIAL_CONTENT", "207 MULTI_STATUS", "208 ALREADY_REPORTED", "226 IM_USED", "300 MULTIPLE_CHOICES", "301 MOVED_PERMANENTLY", "302 FOUND", "302 MOVED_TEMPORARILY", "303 SEE_OTHER", "304 NOT_MODIFIED", "305 USE_PROXY", "307 TEMPORARY_REDIRECT", "308 PERMANENT_REDIRECT", "400 BAD_REQUEST", "401 UNAUTHORIZED", "402 PAYMENT_REQUIRED", "403 FORBIDDEN", "404 NOT_FOUND", "405 METHOD_NOT_ALLOWED", "406 NOT_ACCEPTABLE", "407 PROXY_AUTHENTICATION_REQUIRED", "408 REQUEST_TIMEOUT", "409 CONFLICT", "410 GONE", "411 LENGTH_REQUIRED", "412 PRECONDITION_FAILED", "413 PAYLOAD_TOO_LARGE", "413 REQUEST_ENTITY_TOO_LARGE", "414 URI_TOO_LONG", "414 REQUEST_URI_TOO_LONG", "415 UNSUPPORTED_MEDIA_TYPE", "416 REQUESTED_RANGE_NOT_SATISFIABLE", "417 EXPECTATION_FAILED", "418 I_AM_A_TEAPOT", "419 INSUFFICIENT_SPACE_ON_RESOURCE", "420 METHOD_FAILURE", "421 DESTINATION_LOCKED", "422 UNPROCESSABLE_ENTITY", "423 LOCKED", "424 FAILED_DEPENDENCY", "425 TOO_EARLY", "426 UPGRADE_REQUIRED", "428 PRECONDITION_REQUIRED", "429 TOO_MANY_REQUESTS", "431 REQUEST_HEADER_FIELDS_TOO_LARGE", "451 UNAVAILABLE_FOR_LEGAL_REASONS", "500 INTERNAL_SERVER_ERROR", "501 NOT_IMPLEMENTED", "502 BAD_GATEWAY", "503 SERVICE_UNAVAILABLE", "504 GATEWAY_TIMEOUT", "505 HTTP_VERSION_NOT_SUPPORTED", "506 VARIANT_ALSO_NEGOTIATES", "507 INSUFFICIENT_STORAGE", "508 LOOP_DETECTED", "509 BANDWIDTH_LIMIT_EXCEEDED", "510 NOT_EXTENDED", "511 NETWORK_AUTHENTICATION_REQUIRED"] # noqa: E501 - if status not in allowed_values: - raise ValueError( - "Invalid value for `status` ({0}), must be one of {1}" # noqa: E501 - .format(status, allowed_values) - ) - - self._status = status - - @property - def message(self): - """Gets the message of this ApiErrorDto. # noqa: E501 - - - :return: The message of this ApiErrorDto. # noqa: E501 - :rtype: str - """ - return self._message - - @message.setter - def message(self, message): - """Sets the message of this ApiErrorDto. - - - :param message: The message of this ApiErrorDto. # noqa: E501 - :type: str - """ - if message is None: - raise ValueError("Invalid value for `message`, must not be `None`") # noqa: E501 - - self._message = message - - @property - def code(self): - """Gets the code of this ApiErrorDto. # noqa: E501 - - - :return: The code of this ApiErrorDto. # noqa: E501 - :rtype: str - """ - return self._code - - @code.setter - def code(self, code): - """Sets the code of this ApiErrorDto. - - - :param code: The code of this ApiErrorDto. # noqa: E501 - :type: str - """ - if code is None: - raise ValueError("Invalid value for `code`, must not be `None`") # noqa: E501 - - self._code = code - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(ApiErrorDto, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, ApiErrorDto): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/swagger/api-identifier/swagger_client/models/column_dto.py b/swagger/api-identifier/swagger_client/models/column_dto.py deleted file mode 100644 index 2f58a328d3bf6346a18693a39ef67c4a4c3330dd..0000000000000000000000000000000000000000 --- a/swagger/api-identifier/swagger_client/models/column_dto.py +++ /dev/null @@ -1,514 +0,0 @@ -# coding: utf-8 - -""" - Database Repository Identifier Service API - - Service that manages the identifiers # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -import pprint -import re # noqa: F401 - -import six - -class ColumnDto(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'id': 'int', - 'name': 'str', - 'unique': 'bool', - 'references': 'str', - 'internal_name': 'str', - 'date_format': 'ImageDateDto', - 'auto_generated': 'bool', - 'is_primary_key': 'bool', - 'column_type': 'str', - 'column_concept': 'ConceptDto', - 'decimal_digits_before': 'int', - 'decimal_digits_after': 'int', - 'is_null_allowed': 'bool', - 'check_expression': 'str', - 'foreign_key': 'str', - 'enum_values': 'list[str]' - } - - attribute_map = { - 'id': 'id', - 'name': 'name', - 'unique': 'unique', - 'references': 'references', - 'internal_name': 'internal_name', - 'date_format': 'date_format', - 'auto_generated': 'auto_generated', - 'is_primary_key': 'is_primary_key', - 'column_type': 'column_type', - 'column_concept': 'column_concept', - 'decimal_digits_before': 'decimal_digits_before', - 'decimal_digits_after': 'decimal_digits_after', - 'is_null_allowed': 'is_null_allowed', - 'check_expression': 'check_expression', - 'foreign_key': 'foreign_key', - 'enum_values': 'enum_values' - } - - def __init__(self, id=None, name=None, unique=None, references=None, internal_name=None, date_format=None, auto_generated=None, is_primary_key=None, column_type=None, column_concept=None, decimal_digits_before=None, decimal_digits_after=None, is_null_allowed=None, check_expression=None, foreign_key=None, enum_values=None): # noqa: E501 - """ColumnDto - a model defined in Swagger""" # noqa: E501 - self._id = None - self._name = None - self._unique = None - self._references = None - self._internal_name = None - self._date_format = None - self._auto_generated = None - self._is_primary_key = None - self._column_type = None - self._column_concept = None - self._decimal_digits_before = None - self._decimal_digits_after = None - self._is_null_allowed = None - self._check_expression = None - self._foreign_key = None - self._enum_values = None - self.discriminator = None - self.id = id - self.name = name - self.unique = unique - if references is not None: - self.references = references - self.internal_name = internal_name - if date_format is not None: - self.date_format = date_format - self.auto_generated = auto_generated - self.is_primary_key = is_primary_key - self.column_type = column_type - if column_concept is not None: - self.column_concept = column_concept - if decimal_digits_before is not None: - self.decimal_digits_before = decimal_digits_before - if decimal_digits_after is not None: - self.decimal_digits_after = decimal_digits_after - self.is_null_allowed = is_null_allowed - if check_expression is not None: - self.check_expression = check_expression - if foreign_key is not None: - self.foreign_key = foreign_key - if enum_values is not None: - self.enum_values = enum_values - - @property - def id(self): - """Gets the id of this ColumnDto. # noqa: E501 - - - :return: The id of this ColumnDto. # noqa: E501 - :rtype: int - """ - return self._id - - @id.setter - def id(self, id): - """Sets the id of this ColumnDto. - - - :param id: The id of this ColumnDto. # noqa: E501 - :type: int - """ - if id is None: - raise ValueError("Invalid value for `id`, must not be `None`") # noqa: E501 - - self._id = id - - @property - def name(self): - """Gets the name of this ColumnDto. # noqa: E501 - - - :return: The name of this ColumnDto. # noqa: E501 - :rtype: str - """ - return self._name - - @name.setter - def name(self, name): - """Sets the name of this ColumnDto. - - - :param name: The name of this ColumnDto. # noqa: E501 - :type: str - """ - if name is None: - raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501 - - self._name = name - - @property - def unique(self): - """Gets the unique of this ColumnDto. # noqa: E501 - - - :return: The unique of this ColumnDto. # noqa: E501 - :rtype: bool - """ - return self._unique - - @unique.setter - def unique(self, unique): - """Sets the unique of this ColumnDto. - - - :param unique: The unique of this ColumnDto. # noqa: E501 - :type: bool - """ - if unique is None: - raise ValueError("Invalid value for `unique`, must not be `None`") # noqa: E501 - - self._unique = unique - - @property - def references(self): - """Gets the references of this ColumnDto. # noqa: E501 - - - :return: The references of this ColumnDto. # noqa: E501 - :rtype: str - """ - return self._references - - @references.setter - def references(self, references): - """Sets the references of this ColumnDto. - - - :param references: The references of this ColumnDto. # noqa: E501 - :type: str - """ - - self._references = references - - @property - def internal_name(self): - """Gets the internal_name of this ColumnDto. # noqa: E501 - - - :return: The internal_name of this ColumnDto. # noqa: E501 - :rtype: str - """ - return self._internal_name - - @internal_name.setter - def internal_name(self, internal_name): - """Sets the internal_name of this ColumnDto. - - - :param internal_name: The internal_name of this ColumnDto. # noqa: E501 - :type: str - """ - if internal_name is None: - raise ValueError("Invalid value for `internal_name`, must not be `None`") # noqa: E501 - - self._internal_name = internal_name - - @property - def date_format(self): - """Gets the date_format of this ColumnDto. # noqa: E501 - - - :return: The date_format of this ColumnDto. # noqa: E501 - :rtype: ImageDateDto - """ - return self._date_format - - @date_format.setter - def date_format(self, date_format): - """Sets the date_format of this ColumnDto. - - - :param date_format: The date_format of this ColumnDto. # noqa: E501 - :type: ImageDateDto - """ - - self._date_format = date_format - - @property - def auto_generated(self): - """Gets the auto_generated of this ColumnDto. # noqa: E501 - - - :return: The auto_generated of this ColumnDto. # noqa: E501 - :rtype: bool - """ - return self._auto_generated - - @auto_generated.setter - def auto_generated(self, auto_generated): - """Sets the auto_generated of this ColumnDto. - - - :param auto_generated: The auto_generated of this ColumnDto. # noqa: E501 - :type: bool - """ - if auto_generated is None: - raise ValueError("Invalid value for `auto_generated`, must not be `None`") # noqa: E501 - - self._auto_generated = auto_generated - - @property - def is_primary_key(self): - """Gets the is_primary_key of this ColumnDto. # noqa: E501 - - - :return: The is_primary_key of this ColumnDto. # noqa: E501 - :rtype: bool - """ - return self._is_primary_key - - @is_primary_key.setter - def is_primary_key(self, is_primary_key): - """Sets the is_primary_key of this ColumnDto. - - - :param is_primary_key: The is_primary_key of this ColumnDto. # noqa: E501 - :type: bool - """ - if is_primary_key is None: - raise ValueError("Invalid value for `is_primary_key`, must not be `None`") # noqa: E501 - - self._is_primary_key = is_primary_key - - @property - def column_type(self): - """Gets the column_type of this ColumnDto. # noqa: E501 - - - :return: The column_type of this ColumnDto. # noqa: E501 - :rtype: str - """ - return self._column_type - - @column_type.setter - def column_type(self, column_type): - """Sets the column_type of this ColumnDto. - - - :param column_type: The column_type of this ColumnDto. # noqa: E501 - :type: str - """ - if column_type is None: - raise ValueError("Invalid value for `column_type`, must not be `None`") # noqa: E501 - allowed_values = ["enum", "number", "decimal", "string", "text", "boolean", "date", "timestamp", "blob"] # noqa: E501 - if column_type not in allowed_values: - raise ValueError( - "Invalid value for `column_type` ({0}), must be one of {1}" # noqa: E501 - .format(column_type, allowed_values) - ) - - self._column_type = column_type - - @property - def column_concept(self): - """Gets the column_concept of this ColumnDto. # noqa: E501 - - - :return: The column_concept of this ColumnDto. # noqa: E501 - :rtype: ConceptDto - """ - return self._column_concept - - @column_concept.setter - def column_concept(self, column_concept): - """Sets the column_concept of this ColumnDto. - - - :param column_concept: The column_concept of this ColumnDto. # noqa: E501 - :type: ConceptDto - """ - - self._column_concept = column_concept - - @property - def decimal_digits_before(self): - """Gets the decimal_digits_before of this ColumnDto. # noqa: E501 - - - :return: The decimal_digits_before of this ColumnDto. # noqa: E501 - :rtype: int - """ - return self._decimal_digits_before - - @decimal_digits_before.setter - def decimal_digits_before(self, decimal_digits_before): - """Sets the decimal_digits_before of this ColumnDto. - - - :param decimal_digits_before: The decimal_digits_before of this ColumnDto. # noqa: E501 - :type: int - """ - - self._decimal_digits_before = decimal_digits_before - - @property - def decimal_digits_after(self): - """Gets the decimal_digits_after of this ColumnDto. # noqa: E501 - - - :return: The decimal_digits_after of this ColumnDto. # noqa: E501 - :rtype: int - """ - return self._decimal_digits_after - - @decimal_digits_after.setter - def decimal_digits_after(self, decimal_digits_after): - """Sets the decimal_digits_after of this ColumnDto. - - - :param decimal_digits_after: The decimal_digits_after of this ColumnDto. # noqa: E501 - :type: int - """ - - self._decimal_digits_after = decimal_digits_after - - @property - def is_null_allowed(self): - """Gets the is_null_allowed of this ColumnDto. # noqa: E501 - - - :return: The is_null_allowed of this ColumnDto. # noqa: E501 - :rtype: bool - """ - return self._is_null_allowed - - @is_null_allowed.setter - def is_null_allowed(self, is_null_allowed): - """Sets the is_null_allowed of this ColumnDto. - - - :param is_null_allowed: The is_null_allowed of this ColumnDto. # noqa: E501 - :type: bool - """ - if is_null_allowed is None: - raise ValueError("Invalid value for `is_null_allowed`, must not be `None`") # noqa: E501 - - self._is_null_allowed = is_null_allowed - - @property - def check_expression(self): - """Gets the check_expression of this ColumnDto. # noqa: E501 - - - :return: The check_expression of this ColumnDto. # noqa: E501 - :rtype: str - """ - return self._check_expression - - @check_expression.setter - def check_expression(self, check_expression): - """Sets the check_expression of this ColumnDto. - - - :param check_expression: The check_expression of this ColumnDto. # noqa: E501 - :type: str - """ - - self._check_expression = check_expression - - @property - def foreign_key(self): - """Gets the foreign_key of this ColumnDto. # noqa: E501 - - - :return: The foreign_key of this ColumnDto. # noqa: E501 - :rtype: str - """ - return self._foreign_key - - @foreign_key.setter - def foreign_key(self, foreign_key): - """Sets the foreign_key of this ColumnDto. - - - :param foreign_key: The foreign_key of this ColumnDto. # noqa: E501 - :type: str - """ - - self._foreign_key = foreign_key - - @property - def enum_values(self): - """Gets the enum_values of this ColumnDto. # noqa: E501 - - - :return: The enum_values of this ColumnDto. # noqa: E501 - :rtype: list[str] - """ - return self._enum_values - - @enum_values.setter - def enum_values(self, enum_values): - """Sets the enum_values of this ColumnDto. - - - :param enum_values: The enum_values of this ColumnDto. # noqa: E501 - :type: list[str] - """ - - self._enum_values = enum_values - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(ColumnDto, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, ColumnDto): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/swagger/api-identifier/swagger_client/models/concept_dto.py b/swagger/api-identifier/swagger_client/models/concept_dto.py deleted file mode 100644 index 25821a421629da2a0eb8a9acdc9fede61fce32c8..0000000000000000000000000000000000000000 --- a/swagger/api-identifier/swagger_client/models/concept_dto.py +++ /dev/null @@ -1,165 +0,0 @@ -# coding: utf-8 - -""" - Database Repository Identifier Service API - - Service that manages the identifiers # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -import pprint -import re # noqa: F401 - -import six - -class ConceptDto(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'uri': 'str', - 'name': 'str', - 'created': 'datetime' - } - - attribute_map = { - 'uri': 'uri', - 'name': 'name', - 'created': 'created' - } - - def __init__(self, uri=None, name=None, created=None): # noqa: E501 - """ConceptDto - a model defined in Swagger""" # noqa: E501 - self._uri = None - self._name = None - self._created = None - self.discriminator = None - self.uri = uri - self.name = name - self.created = created - - @property - def uri(self): - """Gets the uri of this ConceptDto. # noqa: E501 - - - :return: The uri of this ConceptDto. # noqa: E501 - :rtype: str - """ - return self._uri - - @uri.setter - def uri(self, uri): - """Sets the uri of this ConceptDto. - - - :param uri: The uri of this ConceptDto. # noqa: E501 - :type: str - """ - if uri is None: - raise ValueError("Invalid value for `uri`, must not be `None`") # noqa: E501 - - self._uri = uri - - @property - def name(self): - """Gets the name of this ConceptDto. # noqa: E501 - - - :return: The name of this ConceptDto. # noqa: E501 - :rtype: str - """ - return self._name - - @name.setter - def name(self, name): - """Sets the name of this ConceptDto. - - - :param name: The name of this ConceptDto. # noqa: E501 - :type: str - """ - if name is None: - raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501 - - self._name = name - - @property - def created(self): - """Gets the created of this ConceptDto. # noqa: E501 - - - :return: The created of this ConceptDto. # noqa: E501 - :rtype: datetime - """ - return self._created - - @created.setter - def created(self, created): - """Sets the created of this ConceptDto. - - - :param created: The created of this ConceptDto. # noqa: E501 - :type: datetime - """ - if created is None: - raise ValueError("Invalid value for `created`, must not be `None`") # noqa: E501 - - self._created = created - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(ConceptDto, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, ConceptDto): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/swagger/api-identifier/swagger_client/models/container_dto.py b/swagger/api-identifier/swagger_client/models/container_dto.py deleted file mode 100644 index 693e708bb79270f8205e19a3d28bdff9960c24eb..0000000000000000000000000000000000000000 --- a/swagger/api-identifier/swagger_client/models/container_dto.py +++ /dev/null @@ -1,355 +0,0 @@ -# coding: utf-8 - -""" - Database Repository Identifier Service API - - Service that manages the identifiers # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -import pprint -import re # noqa: F401 - -import six - -class ContainerDto(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'id': 'int', - 'hash': 'str', - 'name': 'str', - 'state': 'str', - 'databases': 'list[DatabaseDto]', - 'image': 'ImageBriefDto', - 'port': 'int', - 'created': 'datetime', - 'internal_name': 'str', - 'ip_address': 'str' - } - - attribute_map = { - 'id': 'id', - 'hash': 'hash', - 'name': 'name', - 'state': 'state', - 'databases': 'databases', - 'image': 'image', - 'port': 'port', - 'created': 'created', - 'internal_name': 'internal_name', - 'ip_address': 'ip_address' - } - - def __init__(self, id=None, hash=None, name=None, state=None, databases=None, image=None, port=None, created=None, internal_name=None, ip_address=None): # noqa: E501 - """ContainerDto - a model defined in Swagger""" # noqa: E501 - self._id = None - self._hash = None - self._name = None - self._state = None - self._databases = None - self._image = None - self._port = None - self._created = None - self._internal_name = None - self._ip_address = None - self.discriminator = None - self.id = id - self.hash = hash - self.name = name - if state is not None: - self.state = state - if databases is not None: - self.databases = databases - if image is not None: - self.image = image - if port is not None: - self.port = port - self.created = created - self.internal_name = internal_name - if ip_address is not None: - self.ip_address = ip_address - - @property - def id(self): - """Gets the id of this ContainerDto. # noqa: E501 - - - :return: The id of this ContainerDto. # noqa: E501 - :rtype: int - """ - return self._id - - @id.setter - def id(self, id): - """Sets the id of this ContainerDto. - - - :param id: The id of this ContainerDto. # noqa: E501 - :type: int - """ - if id is None: - raise ValueError("Invalid value for `id`, must not be `None`") # noqa: E501 - - self._id = id - - @property - def hash(self): - """Gets the hash of this ContainerDto. # noqa: E501 - - - :return: The hash of this ContainerDto. # noqa: E501 - :rtype: str - """ - return self._hash - - @hash.setter - def hash(self, hash): - """Sets the hash of this ContainerDto. - - - :param hash: The hash of this ContainerDto. # noqa: E501 - :type: str - """ - if hash is None: - raise ValueError("Invalid value for `hash`, must not be `None`") # noqa: E501 - - self._hash = hash - - @property - def name(self): - """Gets the name of this ContainerDto. # noqa: E501 - - - :return: The name of this ContainerDto. # noqa: E501 - :rtype: str - """ - return self._name - - @name.setter - def name(self, name): - """Sets the name of this ContainerDto. - - - :param name: The name of this ContainerDto. # noqa: E501 - :type: str - """ - if name is None: - raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501 - - self._name = name - - @property - def state(self): - """Gets the state of this ContainerDto. # noqa: E501 - - - :return: The state of this ContainerDto. # noqa: E501 - :rtype: str - """ - return self._state - - @state.setter - def state(self, state): - """Sets the state of this ContainerDto. - - - :param state: The state of this ContainerDto. # noqa: E501 - :type: str - """ - allowed_values = ["created", "restarting", "running", "paused", "exited", "dead"] # noqa: E501 - if state not in allowed_values: - raise ValueError( - "Invalid value for `state` ({0}), must be one of {1}" # noqa: E501 - .format(state, allowed_values) - ) - - self._state = state - - @property - def databases(self): - """Gets the databases of this ContainerDto. # noqa: E501 - - - :return: The databases of this ContainerDto. # noqa: E501 - :rtype: list[DatabaseDto] - """ - return self._databases - - @databases.setter - def databases(self, databases): - """Sets the databases of this ContainerDto. - - - :param databases: The databases of this ContainerDto. # noqa: E501 - :type: list[DatabaseDto] - """ - - self._databases = databases - - @property - def image(self): - """Gets the image of this ContainerDto. # noqa: E501 - - - :return: The image of this ContainerDto. # noqa: E501 - :rtype: ImageBriefDto - """ - return self._image - - @image.setter - def image(self, image): - """Sets the image of this ContainerDto. - - - :param image: The image of this ContainerDto. # noqa: E501 - :type: ImageBriefDto - """ - - self._image = image - - @property - def port(self): - """Gets the port of this ContainerDto. # noqa: E501 - - - :return: The port of this ContainerDto. # noqa: E501 - :rtype: int - """ - return self._port - - @port.setter - def port(self, port): - """Sets the port of this ContainerDto. - - - :param port: The port of this ContainerDto. # noqa: E501 - :type: int - """ - - self._port = port - - @property - def created(self): - """Gets the created of this ContainerDto. # noqa: E501 - - - :return: The created of this ContainerDto. # noqa: E501 - :rtype: datetime - """ - return self._created - - @created.setter - def created(self, created): - """Sets the created of this ContainerDto. - - - :param created: The created of this ContainerDto. # noqa: E501 - :type: datetime - """ - if created is None: - raise ValueError("Invalid value for `created`, must not be `None`") # noqa: E501 - - self._created = created - - @property - def internal_name(self): - """Gets the internal_name of this ContainerDto. # noqa: E501 - - - :return: The internal_name of this ContainerDto. # noqa: E501 - :rtype: str - """ - return self._internal_name - - @internal_name.setter - def internal_name(self, internal_name): - """Sets the internal_name of this ContainerDto. - - - :param internal_name: The internal_name of this ContainerDto. # noqa: E501 - :type: str - """ - if internal_name is None: - raise ValueError("Invalid value for `internal_name`, must not be `None`") # noqa: E501 - - self._internal_name = internal_name - - @property - def ip_address(self): - """Gets the ip_address of this ContainerDto. # noqa: E501 - - - :return: The ip_address of this ContainerDto. # noqa: E501 - :rtype: str - """ - return self._ip_address - - @ip_address.setter - def ip_address(self, ip_address): - """Sets the ip_address of this ContainerDto. - - - :param ip_address: The ip_address of this ContainerDto. # noqa: E501 - :type: str - """ - - self._ip_address = ip_address - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(ContainerDto, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, ContainerDto): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/swagger/api-identifier/swagger_client/models/creator_create_dto.py b/swagger/api-identifier/swagger_client/models/creator_create_dto.py deleted file mode 100644 index ff3331393ff708e809b5a21c25ccc0fa6edfa9e8..0000000000000000000000000000000000000000 --- a/swagger/api-identifier/swagger_client/models/creator_create_dto.py +++ /dev/null @@ -1,163 +0,0 @@ -# coding: utf-8 - -""" - Database Repository Identifier Service API - - Service that manages the identifiers # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -import pprint -import re # noqa: F401 - -import six - -class CreatorCreateDto(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'name': 'str', - 'affiliation': 'str', - 'orcid': 'str' - } - - attribute_map = { - 'name': 'name', - 'affiliation': 'affiliation', - 'orcid': 'orcid' - } - - def __init__(self, name=None, affiliation=None, orcid=None): # noqa: E501 - """CreatorCreateDto - a model defined in Swagger""" # noqa: E501 - self._name = None - self._affiliation = None - self._orcid = None - self.discriminator = None - self.name = name - if affiliation is not None: - self.affiliation = affiliation - if orcid is not None: - self.orcid = orcid - - @property - def name(self): - """Gets the name of this CreatorCreateDto. # noqa: E501 - - - :return: The name of this CreatorCreateDto. # noqa: E501 - :rtype: str - """ - return self._name - - @name.setter - def name(self, name): - """Sets the name of this CreatorCreateDto. - - - :param name: The name of this CreatorCreateDto. # noqa: E501 - :type: str - """ - if name is None: - raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501 - - self._name = name - - @property - def affiliation(self): - """Gets the affiliation of this CreatorCreateDto. # noqa: E501 - - - :return: The affiliation of this CreatorCreateDto. # noqa: E501 - :rtype: str - """ - return self._affiliation - - @affiliation.setter - def affiliation(self, affiliation): - """Sets the affiliation of this CreatorCreateDto. - - - :param affiliation: The affiliation of this CreatorCreateDto. # noqa: E501 - :type: str - """ - - self._affiliation = affiliation - - @property - def orcid(self): - """Gets the orcid of this CreatorCreateDto. # noqa: E501 - - - :return: The orcid of this CreatorCreateDto. # noqa: E501 - :rtype: str - """ - return self._orcid - - @orcid.setter - def orcid(self, orcid): - """Sets the orcid of this CreatorCreateDto. - - - :param orcid: The orcid of this CreatorCreateDto. # noqa: E501 - :type: str - """ - - self._orcid = orcid - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(CreatorCreateDto, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, CreatorCreateDto): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/swagger/api-identifier/swagger_client/models/creator_dto.py b/swagger/api-identifier/swagger_client/models/creator_dto.py deleted file mode 100644 index ebe85cc6c7b14cdb49c10b1b711a06d148ab9095..0000000000000000000000000000000000000000 --- a/swagger/api-identifier/swagger_client/models/creator_dto.py +++ /dev/null @@ -1,243 +0,0 @@ -# coding: utf-8 - -""" - Database Repository Identifier Service API - - Service that manages the identifiers # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -import pprint -import re # noqa: F401 - -import six - -class CreatorDto(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'id': 'int', - 'name': 'str', - 'affiliation': 'str', - 'orcid': 'str', - 'created': 'datetime', - 'last_modified': 'datetime' - } - - attribute_map = { - 'id': 'id', - 'name': 'name', - 'affiliation': 'affiliation', - 'orcid': 'orcid', - 'created': 'created', - 'last_modified': 'last_modified' - } - - def __init__(self, id=None, name=None, affiliation=None, orcid=None, created=None, last_modified=None): # noqa: E501 - """CreatorDto - a model defined in Swagger""" # noqa: E501 - self._id = None - self._name = None - self._affiliation = None - self._orcid = None - self._created = None - self._last_modified = None - self.discriminator = None - self.id = id - self.name = name - if affiliation is not None: - self.affiliation = affiliation - if orcid is not None: - self.orcid = orcid - self.created = created - if last_modified is not None: - self.last_modified = last_modified - - @property - def id(self): - """Gets the id of this CreatorDto. # noqa: E501 - - - :return: The id of this CreatorDto. # noqa: E501 - :rtype: int - """ - return self._id - - @id.setter - def id(self, id): - """Sets the id of this CreatorDto. - - - :param id: The id of this CreatorDto. # noqa: E501 - :type: int - """ - if id is None: - raise ValueError("Invalid value for `id`, must not be `None`") # noqa: E501 - - self._id = id - - @property - def name(self): - """Gets the name of this CreatorDto. # noqa: E501 - - - :return: The name of this CreatorDto. # noqa: E501 - :rtype: str - """ - return self._name - - @name.setter - def name(self, name): - """Sets the name of this CreatorDto. - - - :param name: The name of this CreatorDto. # noqa: E501 - :type: str - """ - if name is None: - raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501 - - self._name = name - - @property - def affiliation(self): - """Gets the affiliation of this CreatorDto. # noqa: E501 - - - :return: The affiliation of this CreatorDto. # noqa: E501 - :rtype: str - """ - return self._affiliation - - @affiliation.setter - def affiliation(self, affiliation): - """Sets the affiliation of this CreatorDto. - - - :param affiliation: The affiliation of this CreatorDto. # noqa: E501 - :type: str - """ - - self._affiliation = affiliation - - @property - def orcid(self): - """Gets the orcid of this CreatorDto. # noqa: E501 - - - :return: The orcid of this CreatorDto. # noqa: E501 - :rtype: str - """ - return self._orcid - - @orcid.setter - def orcid(self, orcid): - """Sets the orcid of this CreatorDto. - - - :param orcid: The orcid of this CreatorDto. # noqa: E501 - :type: str - """ - - self._orcid = orcid - - @property - def created(self): - """Gets the created of this CreatorDto. # noqa: E501 - - - :return: The created of this CreatorDto. # noqa: E501 - :rtype: datetime - """ - return self._created - - @created.setter - def created(self, created): - """Sets the created of this CreatorDto. - - - :param created: The created of this CreatorDto. # noqa: E501 - :type: datetime - """ - if created is None: - raise ValueError("Invalid value for `created`, must not be `None`") # noqa: E501 - - self._created = created - - @property - def last_modified(self): - """Gets the last_modified of this CreatorDto. # noqa: E501 - - - :return: The last_modified of this CreatorDto. # noqa: E501 - :rtype: datetime - """ - return self._last_modified - - @last_modified.setter - def last_modified(self, last_modified): - """Sets the last_modified of this CreatorDto. - - - :param last_modified: The last_modified of this CreatorDto. # noqa: E501 - :type: datetime - """ - - self._last_modified = last_modified - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(CreatorDto, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, CreatorDto): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/swagger/api-identifier/swagger_client/models/database_dto.py b/swagger/api-identifier/swagger_client/models/database_dto.py deleted file mode 100644 index ec76a65948ec69e74be06f0f8461d18b699eeb0c..0000000000000000000000000000000000000000 --- a/swagger/api-identifier/swagger_client/models/database_dto.py +++ /dev/null @@ -1,625 +0,0 @@ -# coding: utf-8 - -""" - Database Repository Identifier Service API - - Service that manages the identifiers # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -import pprint -import re # noqa: F401 - -import six - -class DatabaseDto(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'id': 'int', - 'name': 'str', - 'exchange': 'str', - 'creator': 'UserBriefDto', - 'subjects': 'list[str]', - 'language': 'str', - 'license': 'LicenseDto', - 'description': 'str', - 'publisher': 'str', - 'contact': 'UserDto', - 'tables': 'list[TableBriefDto]', - 'image': 'ImageDto', - 'container': 'ContainerDto', - 'created': 'datetime', - 'deleted': 'datetime', - 'internal_name': 'str', - 'publication_year': 'int', - 'publication_month': 'int', - 'publication_day': 'int', - 'is_public': 'bool' - } - - attribute_map = { - 'id': 'id', - 'name': 'name', - 'exchange': 'exchange', - 'creator': 'creator', - 'subjects': 'subjects', - 'language': 'language', - 'license': 'license', - 'description': 'description', - 'publisher': 'publisher', - 'contact': 'contact', - 'tables': 'tables', - 'image': 'image', - 'container': 'container', - 'created': 'created', - 'deleted': 'deleted', - 'internal_name': 'internal_name', - 'publication_year': 'publication_year', - 'publication_month': 'publication_month', - 'publication_day': 'publication_day', - 'is_public': 'is_public' - } - - def __init__(self, id=None, name=None, exchange=None, creator=None, subjects=None, language=None, license=None, description=None, publisher=None, contact=None, tables=None, image=None, container=None, created=None, deleted=None, internal_name=None, publication_year=None, publication_month=None, publication_day=None, is_public=None): # noqa: E501 - """DatabaseDto - a model defined in Swagger""" # noqa: E501 - self._id = None - self._name = None - self._exchange = None - self._creator = None - self._subjects = None - self._language = None - self._license = None - self._description = None - self._publisher = None - self._contact = None - self._tables = None - self._image = None - self._container = None - self._created = None - self._deleted = None - self._internal_name = None - self._publication_year = None - self._publication_month = None - self._publication_day = None - self._is_public = None - self.discriminator = None - self.id = id - self.name = name - self.exchange = exchange - self.creator = creator - if subjects is not None: - self.subjects = subjects - if language is not None: - self.language = language - if license is not None: - self.license = license - if description is not None: - self.description = description - if publisher is not None: - self.publisher = publisher - if contact is not None: - self.contact = contact - if tables is not None: - self.tables = tables - if image is not None: - self.image = image - if container is not None: - self.container = container - if created is not None: - self.created = created - if deleted is not None: - self.deleted = deleted - self.internal_name = internal_name - if publication_year is not None: - self.publication_year = publication_year - if publication_month is not None: - self.publication_month = publication_month - if publication_day is not None: - self.publication_day = publication_day - if is_public is not None: - self.is_public = is_public - - @property - def id(self): - """Gets the id of this DatabaseDto. # noqa: E501 - - - :return: The id of this DatabaseDto. # noqa: E501 - :rtype: int - """ - return self._id - - @id.setter - def id(self, id): - """Sets the id of this DatabaseDto. - - - :param id: The id of this DatabaseDto. # noqa: E501 - :type: int - """ - if id is None: - raise ValueError("Invalid value for `id`, must not be `None`") # noqa: E501 - - self._id = id - - @property - def name(self): - """Gets the name of this DatabaseDto. # noqa: E501 - - - :return: The name of this DatabaseDto. # noqa: E501 - :rtype: str - """ - return self._name - - @name.setter - def name(self, name): - """Sets the name of this DatabaseDto. - - - :param name: The name of this DatabaseDto. # noqa: E501 - :type: str - """ - if name is None: - raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501 - - self._name = name - - @property - def exchange(self): - """Gets the exchange of this DatabaseDto. # noqa: E501 - - - :return: The exchange of this DatabaseDto. # noqa: E501 - :rtype: str - """ - return self._exchange - - @exchange.setter - def exchange(self, exchange): - """Sets the exchange of this DatabaseDto. - - - :param exchange: The exchange of this DatabaseDto. # noqa: E501 - :type: str - """ - if exchange is None: - raise ValueError("Invalid value for `exchange`, must not be `None`") # noqa: E501 - - self._exchange = exchange - - @property - def creator(self): - """Gets the creator of this DatabaseDto. # noqa: E501 - - - :return: The creator of this DatabaseDto. # noqa: E501 - :rtype: UserBriefDto - """ - return self._creator - - @creator.setter - def creator(self, creator): - """Sets the creator of this DatabaseDto. - - - :param creator: The creator of this DatabaseDto. # noqa: E501 - :type: UserBriefDto - """ - if creator is None: - raise ValueError("Invalid value for `creator`, must not be `None`") # noqa: E501 - - self._creator = creator - - @property - def subjects(self): - """Gets the subjects of this DatabaseDto. # noqa: E501 - - database subjects # noqa: E501 - - :return: The subjects of this DatabaseDto. # noqa: E501 - :rtype: list[str] - """ - return self._subjects - - @subjects.setter - def subjects(self, subjects): - """Sets the subjects of this DatabaseDto. - - database subjects # noqa: E501 - - :param subjects: The subjects of this DatabaseDto. # noqa: E501 - :type: list[str] - """ - - self._subjects = subjects - - @property - def language(self): - """Gets the language of this DatabaseDto. # noqa: E501 - - - :return: The language of this DatabaseDto. # noqa: E501 - :rtype: str - """ - return self._language - - @language.setter - def language(self, language): - """Sets the language of this DatabaseDto. - - - :param language: The language of this DatabaseDto. # noqa: E501 - :type: str - """ - allowed_values = ["ab", "aa", "af", "ak", "sq", "am", "ar", "an", "hy", "as", "av", "ae", "ay", "az", "bm", "ba", "eu", "be", "bn", "bh", "bi", "bs", "br", "bg", "my", "ca", "km", "ch", "ce", "ny", "zh", "cu", "cv", "kw", "co", "cr", "hr", "cs", "da", "dv", "nl", "dz", "en", "eo", "et", "ee", "fo", "fj", "fi", "fr", "ff", "gd", "gl", "lg", "ka", "de", "ki", "el", "kl", "gn", "gu", "ht", "ha", "he", "hz", "hi", "ho", "hu", "is", "io", "ig", "id", "ia", "ie", "iu", "ik", "ga", "it", "ja", "jv", "kn", "kr", "ks", "kk", "rw", "kv", "kg", "ko", "kj", "ku", "ky", "lo", "la", "lv", "lb", "li", "ln", "lt", "lu", "mk", "mg", "ms", "ml", "mt", "gv", "mi", "mr", "mh", "ro", "mn", "na", "nv", "nd", "ng", "ne", "se", "no", "nb", "nn", "ii", "oc", "oj", "or", "om", "os", "pi", "pa", "ps", "fa", "pl", "pt", "qu", "rm", "rn", "ru", "sm", "sg", "sa", "sc", "sr", "sn", "sd", "si", "sk", "sl", "so", "st", "nr", "es", "su", "sw", "ss", "sv", "tl", "ty", "tg", "ta", "tt", "te", "th", "bo", "ti", "to", "ts", "tn", "tr", "tk", "tw", "ug", "uk", "ur", "uz", "ve", "vi", "vo", "wa", "cy", "fy", "wo", "xh", "yi", "yo", "za", "zu"] # noqa: E501 - if language not in allowed_values: - raise ValueError( - "Invalid value for `language` ({0}), must be one of {1}" # noqa: E501 - .format(language, allowed_values) - ) - - self._language = language - - @property - def license(self): - """Gets the license of this DatabaseDto. # noqa: E501 - - - :return: The license of this DatabaseDto. # noqa: E501 - :rtype: LicenseDto - """ - return self._license - - @license.setter - def license(self, license): - """Sets the license of this DatabaseDto. - - - :param license: The license of this DatabaseDto. # noqa: E501 - :type: LicenseDto - """ - - self._license = license - - @property - def description(self): - """Gets the description of this DatabaseDto. # noqa: E501 - - - :return: The description of this DatabaseDto. # noqa: E501 - :rtype: str - """ - return self._description - - @description.setter - def description(self, description): - """Sets the description of this DatabaseDto. - - - :param description: The description of this DatabaseDto. # noqa: E501 - :type: str - """ - - self._description = description - - @property - def publisher(self): - """Gets the publisher of this DatabaseDto. # noqa: E501 - - - :return: The publisher of this DatabaseDto. # noqa: E501 - :rtype: str - """ - return self._publisher - - @publisher.setter - def publisher(self, publisher): - """Sets the publisher of this DatabaseDto. - - - :param publisher: The publisher of this DatabaseDto. # noqa: E501 - :type: str - """ - - self._publisher = publisher - - @property - def contact(self): - """Gets the contact of this DatabaseDto. # noqa: E501 - - - :return: The contact of this DatabaseDto. # noqa: E501 - :rtype: UserDto - """ - return self._contact - - @contact.setter - def contact(self, contact): - """Sets the contact of this DatabaseDto. - - - :param contact: The contact of this DatabaseDto. # noqa: E501 - :type: UserDto - """ - - self._contact = contact - - @property - def tables(self): - """Gets the tables of this DatabaseDto. # noqa: E501 - - - :return: The tables of this DatabaseDto. # noqa: E501 - :rtype: list[TableBriefDto] - """ - return self._tables - - @tables.setter - def tables(self, tables): - """Sets the tables of this DatabaseDto. - - - :param tables: The tables of this DatabaseDto. # noqa: E501 - :type: list[TableBriefDto] - """ - - self._tables = tables - - @property - def image(self): - """Gets the image of this DatabaseDto. # noqa: E501 - - - :return: The image of this DatabaseDto. # noqa: E501 - :rtype: ImageDto - """ - return self._image - - @image.setter - def image(self, image): - """Sets the image of this DatabaseDto. - - - :param image: The image of this DatabaseDto. # noqa: E501 - :type: ImageDto - """ - - self._image = image - - @property - def container(self): - """Gets the container of this DatabaseDto. # noqa: E501 - - - :return: The container of this DatabaseDto. # noqa: E501 - :rtype: ContainerDto - """ - return self._container - - @container.setter - def container(self, container): - """Sets the container of this DatabaseDto. - - - :param container: The container of this DatabaseDto. # noqa: E501 - :type: ContainerDto - """ - - self._container = container - - @property - def created(self): - """Gets the created of this DatabaseDto. # noqa: E501 - - - :return: The created of this DatabaseDto. # noqa: E501 - :rtype: datetime - """ - return self._created - - @created.setter - def created(self, created): - """Sets the created of this DatabaseDto. - - - :param created: The created of this DatabaseDto. # noqa: E501 - :type: datetime - """ - - self._created = created - - @property - def deleted(self): - """Gets the deleted of this DatabaseDto. # noqa: E501 - - - :return: The deleted of this DatabaseDto. # noqa: E501 - :rtype: datetime - """ - return self._deleted - - @deleted.setter - def deleted(self, deleted): - """Sets the deleted of this DatabaseDto. - - - :param deleted: The deleted of this DatabaseDto. # noqa: E501 - :type: datetime - """ - - self._deleted = deleted - - @property - def internal_name(self): - """Gets the internal_name of this DatabaseDto. # noqa: E501 - - - :return: The internal_name of this DatabaseDto. # noqa: E501 - :rtype: str - """ - return self._internal_name - - @internal_name.setter - def internal_name(self, internal_name): - """Sets the internal_name of this DatabaseDto. - - - :param internal_name: The internal_name of this DatabaseDto. # noqa: E501 - :type: str - """ - if internal_name is None: - raise ValueError("Invalid value for `internal_name`, must not be `None`") # noqa: E501 - - self._internal_name = internal_name - - @property - def publication_year(self): - """Gets the publication_year of this DatabaseDto. # noqa: E501 - - database publication year # noqa: E501 - - :return: The publication_year of this DatabaseDto. # noqa: E501 - :rtype: int - """ - return self._publication_year - - @publication_year.setter - def publication_year(self, publication_year): - """Sets the publication_year of this DatabaseDto. - - database publication year # noqa: E501 - - :param publication_year: The publication_year of this DatabaseDto. # noqa: E501 - :type: int - """ - - self._publication_year = publication_year - - @property - def publication_month(self): - """Gets the publication_month of this DatabaseDto. # noqa: E501 - - database publication month # noqa: E501 - - :return: The publication_month of this DatabaseDto. # noqa: E501 - :rtype: int - """ - return self._publication_month - - @publication_month.setter - def publication_month(self, publication_month): - """Sets the publication_month of this DatabaseDto. - - database publication month # noqa: E501 - - :param publication_month: The publication_month of this DatabaseDto. # noqa: E501 - :type: int - """ - - self._publication_month = publication_month - - @property - def publication_day(self): - """Gets the publication_day of this DatabaseDto. # noqa: E501 - - database publication day # noqa: E501 - - :return: The publication_day of this DatabaseDto. # noqa: E501 - :rtype: int - """ - return self._publication_day - - @publication_day.setter - def publication_day(self, publication_day): - """Sets the publication_day of this DatabaseDto. - - database publication day # noqa: E501 - - :param publication_day: The publication_day of this DatabaseDto. # noqa: E501 - :type: int - """ - - self._publication_day = publication_day - - @property - def is_public(self): - """Gets the is_public of this DatabaseDto. # noqa: E501 - - database publicity # noqa: E501 - - :return: The is_public of this DatabaseDto. # noqa: E501 - :rtype: bool - """ - return self._is_public - - @is_public.setter - def is_public(self, is_public): - """Sets the is_public of this DatabaseDto. - - database publicity # noqa: E501 - - :param is_public: The is_public of this DatabaseDto. # noqa: E501 - :type: bool - """ - - self._is_public = is_public - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(DatabaseDto, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, DatabaseDto): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/swagger/api-identifier/swagger_client/models/granted_authority_dto.py b/swagger/api-identifier/swagger_client/models/granted_authority_dto.py deleted file mode 100644 index 40fd021878c0ce17aea607b5b87ee65c950440bf..0000000000000000000000000000000000000000 --- a/swagger/api-identifier/swagger_client/models/granted_authority_dto.py +++ /dev/null @@ -1,110 +0,0 @@ -# coding: utf-8 - -""" - Database Repository Identifier Service API - - Service that manages the identifiers # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -import pprint -import re # noqa: F401 - -import six - -class GrantedAuthorityDto(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'authority': 'str' - } - - attribute_map = { - 'authority': 'authority' - } - - def __init__(self, authority=None): # noqa: E501 - """GrantedAuthorityDto - a model defined in Swagger""" # noqa: E501 - self._authority = None - self.discriminator = None - if authority is not None: - self.authority = authority - - @property - def authority(self): - """Gets the authority of this GrantedAuthorityDto. # noqa: E501 - - - :return: The authority of this GrantedAuthorityDto. # noqa: E501 - :rtype: str - """ - return self._authority - - @authority.setter - def authority(self, authority): - """Sets the authority of this GrantedAuthorityDto. - - - :param authority: The authority of this GrantedAuthorityDto. # noqa: E501 - :type: str - """ - - self._authority = authority - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(GrantedAuthorityDto, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, GrantedAuthorityDto): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/swagger/api-identifier/swagger_client/models/identifier_create_dto.py b/swagger/api-identifier/swagger_client/models/identifier_create_dto.py deleted file mode 100644 index d0ac2f8bd4eafe0c4a7da50afce5cfa37ff43a73..0000000000000000000000000000000000000000 --- a/swagger/api-identifier/swagger_client/models/identifier_create_dto.py +++ /dev/null @@ -1,356 +0,0 @@ -# coding: utf-8 - -""" - Database Repository Identifier Service API - - Service that manages the identifiers # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -import pprint -import re # noqa: F401 - -import six - -class IdentifierCreateDto(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'qid': 'int', - 'title': 'str', - 'description': 'str', - 'visibility': 'str', - 'doi': 'str', - 'creators': 'list[CreatorCreateDto]', - 'publication_day': 'int', - 'publication_month': 'int', - 'publication_year': 'int', - 'related_identifiers': 'list[RelatedIdentifierCreateDto]' - } - - attribute_map = { - 'qid': 'qid', - 'title': 'title', - 'description': 'description', - 'visibility': 'visibility', - 'doi': 'doi', - 'creators': 'creators', - 'publication_day': 'publication_day', - 'publication_month': 'publication_month', - 'publication_year': 'publication_year', - 'related_identifiers': 'related_identifiers' - } - - def __init__(self, qid=None, title=None, description=None, visibility=None, doi=None, creators=None, publication_day=None, publication_month=None, publication_year=None, related_identifiers=None): # noqa: E501 - """IdentifierCreateDto - a model defined in Swagger""" # noqa: E501 - self._qid = None - self._title = None - self._description = None - self._visibility = None - self._doi = None - self._creators = None - self._publication_day = None - self._publication_month = None - self._publication_year = None - self._related_identifiers = None - self.discriminator = None - self.qid = qid - self.title = title - self.description = description - self.visibility = visibility - if doi is not None: - self.doi = doi - self.creators = creators - if publication_day is not None: - self.publication_day = publication_day - if publication_month is not None: - self.publication_month = publication_month - self.publication_year = publication_year - if related_identifiers is not None: - self.related_identifiers = related_identifiers - - @property - def qid(self): - """Gets the qid of this IdentifierCreateDto. # noqa: E501 - - - :return: The qid of this IdentifierCreateDto. # noqa: E501 - :rtype: int - """ - return self._qid - - @qid.setter - def qid(self, qid): - """Sets the qid of this IdentifierCreateDto. - - - :param qid: The qid of this IdentifierCreateDto. # noqa: E501 - :type: int - """ - if qid is None: - raise ValueError("Invalid value for `qid`, must not be `None`") # noqa: E501 - - self._qid = qid - - @property - def title(self): - """Gets the title of this IdentifierCreateDto. # noqa: E501 - - - :return: The title of this IdentifierCreateDto. # noqa: E501 - :rtype: str - """ - return self._title - - @title.setter - def title(self, title): - """Sets the title of this IdentifierCreateDto. - - - :param title: The title of this IdentifierCreateDto. # noqa: E501 - :type: str - """ - if title is None: - raise ValueError("Invalid value for `title`, must not be `None`") # noqa: E501 - - self._title = title - - @property - def description(self): - """Gets the description of this IdentifierCreateDto. # noqa: E501 - - - :return: The description of this IdentifierCreateDto. # noqa: E501 - :rtype: str - """ - return self._description - - @description.setter - def description(self, description): - """Sets the description of this IdentifierCreateDto. - - - :param description: The description of this IdentifierCreateDto. # noqa: E501 - :type: str - """ - if description is None: - raise ValueError("Invalid value for `description`, must not be `None`") # noqa: E501 - - self._description = description - - @property - def visibility(self): - """Gets the visibility of this IdentifierCreateDto. # noqa: E501 - - - :return: The visibility of this IdentifierCreateDto. # noqa: E501 - :rtype: str - """ - return self._visibility - - @visibility.setter - def visibility(self, visibility): - """Sets the visibility of this IdentifierCreateDto. - - - :param visibility: The visibility of this IdentifierCreateDto. # noqa: E501 - :type: str - """ - if visibility is None: - raise ValueError("Invalid value for `visibility`, must not be `None`") # noqa: E501 - allowed_values = ["everyone", "trusted", "self"] # noqa: E501 - if visibility not in allowed_values: - raise ValueError( - "Invalid value for `visibility` ({0}), must be one of {1}" # noqa: E501 - .format(visibility, allowed_values) - ) - - self._visibility = visibility - - @property - def doi(self): - """Gets the doi of this IdentifierCreateDto. # noqa: E501 - - - :return: The doi of this IdentifierCreateDto. # noqa: E501 - :rtype: str - """ - return self._doi - - @doi.setter - def doi(self, doi): - """Sets the doi of this IdentifierCreateDto. - - - :param doi: The doi of this IdentifierCreateDto. # noqa: E501 - :type: str - """ - - self._doi = doi - - @property - def creators(self): - """Gets the creators of this IdentifierCreateDto. # noqa: E501 - - - :return: The creators of this IdentifierCreateDto. # noqa: E501 - :rtype: list[CreatorCreateDto] - """ - return self._creators - - @creators.setter - def creators(self, creators): - """Sets the creators of this IdentifierCreateDto. - - - :param creators: The creators of this IdentifierCreateDto. # noqa: E501 - :type: list[CreatorCreateDto] - """ - if creators is None: - raise ValueError("Invalid value for `creators`, must not be `None`") # noqa: E501 - - self._creators = creators - - @property - def publication_day(self): - """Gets the publication_day of this IdentifierCreateDto. # noqa: E501 - - - :return: The publication_day of this IdentifierCreateDto. # noqa: E501 - :rtype: int - """ - return self._publication_day - - @publication_day.setter - def publication_day(self, publication_day): - """Sets the publication_day of this IdentifierCreateDto. - - - :param publication_day: The publication_day of this IdentifierCreateDto. # noqa: E501 - :type: int - """ - - self._publication_day = publication_day - - @property - def publication_month(self): - """Gets the publication_month of this IdentifierCreateDto. # noqa: E501 - - - :return: The publication_month of this IdentifierCreateDto. # noqa: E501 - :rtype: int - """ - return self._publication_month - - @publication_month.setter - def publication_month(self, publication_month): - """Sets the publication_month of this IdentifierCreateDto. - - - :param publication_month: The publication_month of this IdentifierCreateDto. # noqa: E501 - :type: int - """ - - self._publication_month = publication_month - - @property - def publication_year(self): - """Gets the publication_year of this IdentifierCreateDto. # noqa: E501 - - - :return: The publication_year of this IdentifierCreateDto. # noqa: E501 - :rtype: int - """ - return self._publication_year - - @publication_year.setter - def publication_year(self, publication_year): - """Sets the publication_year of this IdentifierCreateDto. - - - :param publication_year: The publication_year of this IdentifierCreateDto. # noqa: E501 - :type: int - """ - if publication_year is None: - raise ValueError("Invalid value for `publication_year`, must not be `None`") # noqa: E501 - - self._publication_year = publication_year - - @property - def related_identifiers(self): - """Gets the related_identifiers of this IdentifierCreateDto. # noqa: E501 - - - :return: The related_identifiers of this IdentifierCreateDto. # noqa: E501 - :rtype: list[RelatedIdentifierCreateDto] - """ - return self._related_identifiers - - @related_identifiers.setter - def related_identifiers(self, related_identifiers): - """Sets the related_identifiers of this IdentifierCreateDto. - - - :param related_identifiers: The related_identifiers of this IdentifierCreateDto. # noqa: E501 - :type: list[RelatedIdentifierCreateDto] - """ - - self._related_identifiers = related_identifiers - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(IdentifierCreateDto, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, IdentifierCreateDto): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/swagger/api-identifier/swagger_client/models/identifier_dto.py b/swagger/api-identifier/swagger_client/models/identifier_dto.py deleted file mode 100644 index 5ee9095a726672927b5099a687474f420c06c11d..0000000000000000000000000000000000000000 --- a/swagger/api-identifier/swagger_client/models/identifier_dto.py +++ /dev/null @@ -1,677 +0,0 @@ -# coding: utf-8 - -""" - Database Repository Identifier Service API - - Service that manages the identifiers # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -import pprint -import re # noqa: F401 - -import six - -class IdentifierDto(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'id': 'int', - 'cid': 'int', - 'dbid': 'int', - 'qid': 'int', - 'title': 'str', - 'description': 'str', - 'query': 'str', - 'execution': 'datetime', - 'visibility': 'str', - 'doi': 'str', - 'creator': 'UserDto', - 'creators': 'list[CreatorDto]', - 'created': 'datetime', - 'query_normalized': 'str', - 'related': 'list[RelatedIdentifierDto]', - 'query_hash': 'str', - 'result_hash': 'str', - 'result_number': 'int', - 'publication_day': 'int', - 'publication_month': 'int', - 'publication_year': 'int', - 'last_modified': 'datetime' - } - - attribute_map = { - 'id': 'id', - 'cid': 'cid', - 'dbid': 'dbid', - 'qid': 'qid', - 'title': 'title', - 'description': 'description', - 'query': 'query', - 'execution': 'execution', - 'visibility': 'visibility', - 'doi': 'doi', - 'creator': 'creator', - 'creators': 'creators', - 'created': 'created', - 'query_normalized': 'query_normalized', - 'related': 'related', - 'query_hash': 'query_hash', - 'result_hash': 'result_hash', - 'result_number': 'result_number', - 'publication_day': 'publication_day', - 'publication_month': 'publication_month', - 'publication_year': 'publication_year', - 'last_modified': 'last_modified' - } - - def __init__(self, id=None, cid=None, dbid=None, qid=None, title=None, description=None, query=None, execution=None, visibility=None, doi=None, creator=None, creators=None, created=None, query_normalized=None, related=None, query_hash=None, result_hash=None, result_number=None, publication_day=None, publication_month=None, publication_year=None, last_modified=None): # noqa: E501 - """IdentifierDto - a model defined in Swagger""" # noqa: E501 - self._id = None - self._cid = None - self._dbid = None - self._qid = None - self._title = None - self._description = None - self._query = None - self._execution = None - self._visibility = None - self._doi = None - self._creator = None - self._creators = None - self._created = None - self._query_normalized = None - self._related = None - self._query_hash = None - self._result_hash = None - self._result_number = None - self._publication_day = None - self._publication_month = None - self._publication_year = None - self._last_modified = None - self.discriminator = None - if id is not None: - self.id = id - self.cid = cid - self.dbid = dbid - self.qid = qid - self.title = title - self.description = description - self.query = query - self.execution = execution - self.visibility = visibility - if doi is not None: - self.doi = doi - self.creator = creator - self.creators = creators - if created is not None: - self.created = created - self.query_normalized = query_normalized - if related is not None: - self.related = related - self.query_hash = query_hash - self.result_hash = result_hash - self.result_number = result_number - if publication_day is not None: - self.publication_day = publication_day - if publication_month is not None: - self.publication_month = publication_month - self.publication_year = publication_year - if last_modified is not None: - self.last_modified = last_modified - - @property - def id(self): - """Gets the id of this IdentifierDto. # noqa: E501 - - - :return: The id of this IdentifierDto. # noqa: E501 - :rtype: int - """ - return self._id - - @id.setter - def id(self, id): - """Sets the id of this IdentifierDto. - - - :param id: The id of this IdentifierDto. # noqa: E501 - :type: int - """ - - self._id = id - - @property - def cid(self): - """Gets the cid of this IdentifierDto. # noqa: E501 - - - :return: The cid of this IdentifierDto. # noqa: E501 - :rtype: int - """ - return self._cid - - @cid.setter - def cid(self, cid): - """Sets the cid of this IdentifierDto. - - - :param cid: The cid of this IdentifierDto. # noqa: E501 - :type: int - """ - if cid is None: - raise ValueError("Invalid value for `cid`, must not be `None`") # noqa: E501 - - self._cid = cid - - @property - def dbid(self): - """Gets the dbid of this IdentifierDto. # noqa: E501 - - - :return: The dbid of this IdentifierDto. # noqa: E501 - :rtype: int - """ - return self._dbid - - @dbid.setter - def dbid(self, dbid): - """Sets the dbid of this IdentifierDto. - - - :param dbid: The dbid of this IdentifierDto. # noqa: E501 - :type: int - """ - if dbid is None: - raise ValueError("Invalid value for `dbid`, must not be `None`") # noqa: E501 - - self._dbid = dbid - - @property - def qid(self): - """Gets the qid of this IdentifierDto. # noqa: E501 - - - :return: The qid of this IdentifierDto. # noqa: E501 - :rtype: int - """ - return self._qid - - @qid.setter - def qid(self, qid): - """Sets the qid of this IdentifierDto. - - - :param qid: The qid of this IdentifierDto. # noqa: E501 - :type: int - """ - if qid is None: - raise ValueError("Invalid value for `qid`, must not be `None`") # noqa: E501 - - self._qid = qid - - @property - def title(self): - """Gets the title of this IdentifierDto. # noqa: E501 - - - :return: The title of this IdentifierDto. # noqa: E501 - :rtype: str - """ - return self._title - - @title.setter - def title(self, title): - """Sets the title of this IdentifierDto. - - - :param title: The title of this IdentifierDto. # noqa: E501 - :type: str - """ - if title is None: - raise ValueError("Invalid value for `title`, must not be `None`") # noqa: E501 - - self._title = title - - @property - def description(self): - """Gets the description of this IdentifierDto. # noqa: E501 - - - :return: The description of this IdentifierDto. # noqa: E501 - :rtype: str - """ - return self._description - - @description.setter - def description(self, description): - """Sets the description of this IdentifierDto. - - - :param description: The description of this IdentifierDto. # noqa: E501 - :type: str - """ - if description is None: - raise ValueError("Invalid value for `description`, must not be `None`") # noqa: E501 - - self._description = description - - @property - def query(self): - """Gets the query of this IdentifierDto. # noqa: E501 - - - :return: The query of this IdentifierDto. # noqa: E501 - :rtype: str - """ - return self._query - - @query.setter - def query(self, query): - """Sets the query of this IdentifierDto. - - - :param query: The query of this IdentifierDto. # noqa: E501 - :type: str - """ - if query is None: - raise ValueError("Invalid value for `query`, must not be `None`") # noqa: E501 - - self._query = query - - @property - def execution(self): - """Gets the execution of this IdentifierDto. # noqa: E501 - - - :return: The execution of this IdentifierDto. # noqa: E501 - :rtype: datetime - """ - return self._execution - - @execution.setter - def execution(self, execution): - """Sets the execution of this IdentifierDto. - - - :param execution: The execution of this IdentifierDto. # noqa: E501 - :type: datetime - """ - if execution is None: - raise ValueError("Invalid value for `execution`, must not be `None`") # noqa: E501 - - self._execution = execution - - @property - def visibility(self): - """Gets the visibility of this IdentifierDto. # noqa: E501 - - - :return: The visibility of this IdentifierDto. # noqa: E501 - :rtype: str - """ - return self._visibility - - @visibility.setter - def visibility(self, visibility): - """Sets the visibility of this IdentifierDto. - - - :param visibility: The visibility of this IdentifierDto. # noqa: E501 - :type: str - """ - if visibility is None: - raise ValueError("Invalid value for `visibility`, must not be `None`") # noqa: E501 - allowed_values = ["everyone", "trusted", "self"] # noqa: E501 - if visibility not in allowed_values: - raise ValueError( - "Invalid value for `visibility` ({0}), must be one of {1}" # noqa: E501 - .format(visibility, allowed_values) - ) - - self._visibility = visibility - - @property - def doi(self): - """Gets the doi of this IdentifierDto. # noqa: E501 - - - :return: The doi of this IdentifierDto. # noqa: E501 - :rtype: str - """ - return self._doi - - @doi.setter - def doi(self, doi): - """Sets the doi of this IdentifierDto. - - - :param doi: The doi of this IdentifierDto. # noqa: E501 - :type: str - """ - - self._doi = doi - - @property - def creator(self): - """Gets the creator of this IdentifierDto. # noqa: E501 - - - :return: The creator of this IdentifierDto. # noqa: E501 - :rtype: UserDto - """ - return self._creator - - @creator.setter - def creator(self, creator): - """Sets the creator of this IdentifierDto. - - - :param creator: The creator of this IdentifierDto. # noqa: E501 - :type: UserDto - """ - if creator is None: - raise ValueError("Invalid value for `creator`, must not be `None`") # noqa: E501 - - self._creator = creator - - @property - def creators(self): - """Gets the creators of this IdentifierDto. # noqa: E501 - - - :return: The creators of this IdentifierDto. # noqa: E501 - :rtype: list[CreatorDto] - """ - return self._creators - - @creators.setter - def creators(self, creators): - """Sets the creators of this IdentifierDto. - - - :param creators: The creators of this IdentifierDto. # noqa: E501 - :type: list[CreatorDto] - """ - if creators is None: - raise ValueError("Invalid value for `creators`, must not be `None`") # noqa: E501 - - self._creators = creators - - @property - def created(self): - """Gets the created of this IdentifierDto. # noqa: E501 - - - :return: The created of this IdentifierDto. # noqa: E501 - :rtype: datetime - """ - return self._created - - @created.setter - def created(self, created): - """Sets the created of this IdentifierDto. - - - :param created: The created of this IdentifierDto. # noqa: E501 - :type: datetime - """ - - self._created = created - - @property - def query_normalized(self): - """Gets the query_normalized of this IdentifierDto. # noqa: E501 - - - :return: The query_normalized of this IdentifierDto. # noqa: E501 - :rtype: str - """ - return self._query_normalized - - @query_normalized.setter - def query_normalized(self, query_normalized): - """Sets the query_normalized of this IdentifierDto. - - - :param query_normalized: The query_normalized of this IdentifierDto. # noqa: E501 - :type: str - """ - if query_normalized is None: - raise ValueError("Invalid value for `query_normalized`, must not be `None`") # noqa: E501 - - self._query_normalized = query_normalized - - @property - def related(self): - """Gets the related of this IdentifierDto. # noqa: E501 - - - :return: The related of this IdentifierDto. # noqa: E501 - :rtype: list[RelatedIdentifierDto] - """ - return self._related - - @related.setter - def related(self, related): - """Sets the related of this IdentifierDto. - - - :param related: The related of this IdentifierDto. # noqa: E501 - :type: list[RelatedIdentifierDto] - """ - - self._related = related - - @property - def query_hash(self): - """Gets the query_hash of this IdentifierDto. # noqa: E501 - - - :return: The query_hash of this IdentifierDto. # noqa: E501 - :rtype: str - """ - return self._query_hash - - @query_hash.setter - def query_hash(self, query_hash): - """Sets the query_hash of this IdentifierDto. - - - :param query_hash: The query_hash of this IdentifierDto. # noqa: E501 - :type: str - """ - if query_hash is None: - raise ValueError("Invalid value for `query_hash`, must not be `None`") # noqa: E501 - - self._query_hash = query_hash - - @property - def result_hash(self): - """Gets the result_hash of this IdentifierDto. # noqa: E501 - - - :return: The result_hash of this IdentifierDto. # noqa: E501 - :rtype: str - """ - return self._result_hash - - @result_hash.setter - def result_hash(self, result_hash): - """Sets the result_hash of this IdentifierDto. - - - :param result_hash: The result_hash of this IdentifierDto. # noqa: E501 - :type: str - """ - if result_hash is None: - raise ValueError("Invalid value for `result_hash`, must not be `None`") # noqa: E501 - - self._result_hash = result_hash - - @property - def result_number(self): - """Gets the result_number of this IdentifierDto. # noqa: E501 - - - :return: The result_number of this IdentifierDto. # noqa: E501 - :rtype: int - """ - return self._result_number - - @result_number.setter - def result_number(self, result_number): - """Sets the result_number of this IdentifierDto. - - - :param result_number: The result_number of this IdentifierDto. # noqa: E501 - :type: int - """ - if result_number is None: - raise ValueError("Invalid value for `result_number`, must not be `None`") # noqa: E501 - - self._result_number = result_number - - @property - def publication_day(self): - """Gets the publication_day of this IdentifierDto. # noqa: E501 - - - :return: The publication_day of this IdentifierDto. # noqa: E501 - :rtype: int - """ - return self._publication_day - - @publication_day.setter - def publication_day(self, publication_day): - """Sets the publication_day of this IdentifierDto. - - - :param publication_day: The publication_day of this IdentifierDto. # noqa: E501 - :type: int - """ - - self._publication_day = publication_day - - @property - def publication_month(self): - """Gets the publication_month of this IdentifierDto. # noqa: E501 - - - :return: The publication_month of this IdentifierDto. # noqa: E501 - :rtype: int - """ - return self._publication_month - - @publication_month.setter - def publication_month(self, publication_month): - """Sets the publication_month of this IdentifierDto. - - - :param publication_month: The publication_month of this IdentifierDto. # noqa: E501 - :type: int - """ - - self._publication_month = publication_month - - @property - def publication_year(self): - """Gets the publication_year of this IdentifierDto. # noqa: E501 - - - :return: The publication_year of this IdentifierDto. # noqa: E501 - :rtype: int - """ - return self._publication_year - - @publication_year.setter - def publication_year(self, publication_year): - """Sets the publication_year of this IdentifierDto. - - - :param publication_year: The publication_year of this IdentifierDto. # noqa: E501 - :type: int - """ - if publication_year is None: - raise ValueError("Invalid value for `publication_year`, must not be `None`") # noqa: E501 - - self._publication_year = publication_year - - @property - def last_modified(self): - """Gets the last_modified of this IdentifierDto. # noqa: E501 - - - :return: The last_modified of this IdentifierDto. # noqa: E501 - :rtype: datetime - """ - return self._last_modified - - @last_modified.setter - def last_modified(self, last_modified): - """Sets the last_modified of this IdentifierDto. - - - :param last_modified: The last_modified of this IdentifierDto. # noqa: E501 - :type: datetime - """ - - self._last_modified = last_modified - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(IdentifierDto, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, IdentifierDto): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/swagger/api-identifier/swagger_client/models/image_brief_dto.py b/swagger/api-identifier/swagger_client/models/image_brief_dto.py deleted file mode 100644 index 01ecbd3489c98eb935b0b601c8bb24ce57620d40..0000000000000000000000000000000000000000 --- a/swagger/api-identifier/swagger_client/models/image_brief_dto.py +++ /dev/null @@ -1,165 +0,0 @@ -# coding: utf-8 - -""" - Database Repository Identifier Service API - - Service that manages the identifiers # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -import pprint -import re # noqa: F401 - -import six - -class ImageBriefDto(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'id': 'int', - 'repository': 'str', - 'tag': 'str' - } - - attribute_map = { - 'id': 'id', - 'repository': 'repository', - 'tag': 'tag' - } - - def __init__(self, id=None, repository=None, tag=None): # noqa: E501 - """ImageBriefDto - a model defined in Swagger""" # noqa: E501 - self._id = None - self._repository = None - self._tag = None - self.discriminator = None - self.id = id - self.repository = repository - self.tag = tag - - @property - def id(self): - """Gets the id of this ImageBriefDto. # noqa: E501 - - - :return: The id of this ImageBriefDto. # noqa: E501 - :rtype: int - """ - return self._id - - @id.setter - def id(self, id): - """Sets the id of this ImageBriefDto. - - - :param id: The id of this ImageBriefDto. # noqa: E501 - :type: int - """ - if id is None: - raise ValueError("Invalid value for `id`, must not be `None`") # noqa: E501 - - self._id = id - - @property - def repository(self): - """Gets the repository of this ImageBriefDto. # noqa: E501 - - - :return: The repository of this ImageBriefDto. # noqa: E501 - :rtype: str - """ - return self._repository - - @repository.setter - def repository(self, repository): - """Sets the repository of this ImageBriefDto. - - - :param repository: The repository of this ImageBriefDto. # noqa: E501 - :type: str - """ - if repository is None: - raise ValueError("Invalid value for `repository`, must not be `None`") # noqa: E501 - - self._repository = repository - - @property - def tag(self): - """Gets the tag of this ImageBriefDto. # noqa: E501 - - - :return: The tag of this ImageBriefDto. # noqa: E501 - :rtype: str - """ - return self._tag - - @tag.setter - def tag(self, tag): - """Sets the tag of this ImageBriefDto. - - - :param tag: The tag of this ImageBriefDto. # noqa: E501 - :type: str - """ - if tag is None: - raise ValueError("Invalid value for `tag`, must not be `None`") # noqa: E501 - - self._tag = tag - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(ImageBriefDto, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, ImageBriefDto): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/swagger/api-identifier/swagger_client/models/image_date_dto.py b/swagger/api-identifier/swagger_client/models/image_date_dto.py deleted file mode 100644 index 7cc2600d3358f8d03faf74cba45541d353db091d..0000000000000000000000000000000000000000 --- a/swagger/api-identifier/swagger_client/models/image_date_dto.py +++ /dev/null @@ -1,245 +0,0 @@ -# coding: utf-8 - -""" - Database Repository Identifier Service API - - Service that manages the identifiers # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -import pprint -import re # noqa: F401 - -import six - -class ImageDateDto(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'id': 'int', - 'example': 'str', - 'database_format': 'str', - 'unix_format': 'str', - 'has_time': 'bool', - 'created_at': 'datetime' - } - - attribute_map = { - 'id': 'id', - 'example': 'example', - 'database_format': 'database_format', - 'unix_format': 'unix_format', - 'has_time': 'has_time', - 'created_at': 'created_at' - } - - def __init__(self, id=None, example=None, database_format=None, unix_format=None, has_time=None, created_at=None): # noqa: E501 - """ImageDateDto - a model defined in Swagger""" # noqa: E501 - self._id = None - self._example = None - self._database_format = None - self._unix_format = None - self._has_time = None - self._created_at = None - self.discriminator = None - self.id = id - self.example = example - self.database_format = database_format - self.unix_format = unix_format - self.has_time = has_time - if created_at is not None: - self.created_at = created_at - - @property - def id(self): - """Gets the id of this ImageDateDto. # noqa: E501 - - - :return: The id of this ImageDateDto. # noqa: E501 - :rtype: int - """ - return self._id - - @id.setter - def id(self, id): - """Sets the id of this ImageDateDto. - - - :param id: The id of this ImageDateDto. # noqa: E501 - :type: int - """ - if id is None: - raise ValueError("Invalid value for `id`, must not be `None`") # noqa: E501 - - self._id = id - - @property - def example(self): - """Gets the example of this ImageDateDto. # noqa: E501 - - - :return: The example of this ImageDateDto. # noqa: E501 - :rtype: str - """ - return self._example - - @example.setter - def example(self, example): - """Sets the example of this ImageDateDto. - - - :param example: The example of this ImageDateDto. # noqa: E501 - :type: str - """ - if example is None: - raise ValueError("Invalid value for `example`, must not be `None`") # noqa: E501 - - self._example = example - - @property - def database_format(self): - """Gets the database_format of this ImageDateDto. # noqa: E501 - - - :return: The database_format of this ImageDateDto. # noqa: E501 - :rtype: str - """ - return self._database_format - - @database_format.setter - def database_format(self, database_format): - """Sets the database_format of this ImageDateDto. - - - :param database_format: The database_format of this ImageDateDto. # noqa: E501 - :type: str - """ - if database_format is None: - raise ValueError("Invalid value for `database_format`, must not be `None`") # noqa: E501 - - self._database_format = database_format - - @property - def unix_format(self): - """Gets the unix_format of this ImageDateDto. # noqa: E501 - - - :return: The unix_format of this ImageDateDto. # noqa: E501 - :rtype: str - """ - return self._unix_format - - @unix_format.setter - def unix_format(self, unix_format): - """Sets the unix_format of this ImageDateDto. - - - :param unix_format: The unix_format of this ImageDateDto. # noqa: E501 - :type: str - """ - if unix_format is None: - raise ValueError("Invalid value for `unix_format`, must not be `None`") # noqa: E501 - - self._unix_format = unix_format - - @property - def has_time(self): - """Gets the has_time of this ImageDateDto. # noqa: E501 - - - :return: The has_time of this ImageDateDto. # noqa: E501 - :rtype: bool - """ - return self._has_time - - @has_time.setter - def has_time(self, has_time): - """Sets the has_time of this ImageDateDto. - - - :param has_time: The has_time of this ImageDateDto. # noqa: E501 - :type: bool - """ - if has_time is None: - raise ValueError("Invalid value for `has_time`, must not be `None`") # noqa: E501 - - self._has_time = has_time - - @property - def created_at(self): - """Gets the created_at of this ImageDateDto. # noqa: E501 - - - :return: The created_at of this ImageDateDto. # noqa: E501 - :rtype: datetime - """ - return self._created_at - - @created_at.setter - def created_at(self, created_at): - """Sets the created_at of this ImageDateDto. - - - :param created_at: The created_at of this ImageDateDto. # noqa: E501 - :type: datetime - """ - - self._created_at = created_at - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(ImageDateDto, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, ImageDateDto): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/swagger/api-identifier/swagger_client/models/image_dto.py b/swagger/api-identifier/swagger_client/models/image_dto.py deleted file mode 100644 index 5df90965d940982eb2d6a8977575293529d68e6e..0000000000000000000000000000000000000000 --- a/swagger/api-identifier/swagger_client/models/image_dto.py +++ /dev/null @@ -1,404 +0,0 @@ -# coding: utf-8 - -""" - Database Repository Identifier Service API - - Service that manages the identifiers # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -import pprint -import re # noqa: F401 - -import six - -class ImageDto(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'id': 'int', - 'repository': 'str', - 'tag': 'str', - 'dialect': 'str', - 'hash': 'str', - 'compiled': 'datetime', - 'size': 'int', - 'environment': 'list[ImageEnvItemDto]', - 'driver_class': 'str', - 'date_formats': 'list[ImageDateDto]', - 'jdbc_method': 'str', - 'default_port': 'int' - } - - attribute_map = { - 'id': 'id', - 'repository': 'repository', - 'tag': 'tag', - 'dialect': 'dialect', - 'hash': 'hash', - 'compiled': 'compiled', - 'size': 'size', - 'environment': 'environment', - 'driver_class': 'driver_class', - 'date_formats': 'date_formats', - 'jdbc_method': 'jdbc_method', - 'default_port': 'default_port' - } - - def __init__(self, id=None, repository=None, tag=None, dialect=None, hash=None, compiled=None, size=None, environment=None, driver_class=None, date_formats=None, jdbc_method=None, default_port=None): # noqa: E501 - """ImageDto - a model defined in Swagger""" # noqa: E501 - self._id = None - self._repository = None - self._tag = None - self._dialect = None - self._hash = None - self._compiled = None - self._size = None - self._environment = None - self._driver_class = None - self._date_formats = None - self._jdbc_method = None - self._default_port = None - self.discriminator = None - self.id = id - self.repository = repository - self.tag = tag - self.dialect = dialect - if hash is not None: - self.hash = hash - if compiled is not None: - self.compiled = compiled - if size is not None: - self.size = size - self.environment = environment - self.driver_class = driver_class - if date_formats is not None: - self.date_formats = date_formats - self.jdbc_method = jdbc_method - self.default_port = default_port - - @property - def id(self): - """Gets the id of this ImageDto. # noqa: E501 - - - :return: The id of this ImageDto. # noqa: E501 - :rtype: int - """ - return self._id - - @id.setter - def id(self, id): - """Sets the id of this ImageDto. - - - :param id: The id of this ImageDto. # noqa: E501 - :type: int - """ - if id is None: - raise ValueError("Invalid value for `id`, must not be `None`") # noqa: E501 - - self._id = id - - @property - def repository(self): - """Gets the repository of this ImageDto. # noqa: E501 - - - :return: The repository of this ImageDto. # noqa: E501 - :rtype: str - """ - return self._repository - - @repository.setter - def repository(self, repository): - """Sets the repository of this ImageDto. - - - :param repository: The repository of this ImageDto. # noqa: E501 - :type: str - """ - if repository is None: - raise ValueError("Invalid value for `repository`, must not be `None`") # noqa: E501 - - self._repository = repository - - @property - def tag(self): - """Gets the tag of this ImageDto. # noqa: E501 - - - :return: The tag of this ImageDto. # noqa: E501 - :rtype: str - """ - return self._tag - - @tag.setter - def tag(self, tag): - """Sets the tag of this ImageDto. - - - :param tag: The tag of this ImageDto. # noqa: E501 - :type: str - """ - if tag is None: - raise ValueError("Invalid value for `tag`, must not be `None`") # noqa: E501 - - self._tag = tag - - @property - def dialect(self): - """Gets the dialect of this ImageDto. # noqa: E501 - - - :return: The dialect of this ImageDto. # noqa: E501 - :rtype: str - """ - return self._dialect - - @dialect.setter - def dialect(self, dialect): - """Sets the dialect of this ImageDto. - - - :param dialect: The dialect of this ImageDto. # noqa: E501 - :type: str - """ - if dialect is None: - raise ValueError("Invalid value for `dialect`, must not be `None`") # noqa: E501 - - self._dialect = dialect - - @property - def hash(self): - """Gets the hash of this ImageDto. # noqa: E501 - - - :return: The hash of this ImageDto. # noqa: E501 - :rtype: str - """ - return self._hash - - @hash.setter - def hash(self, hash): - """Sets the hash of this ImageDto. - - - :param hash: The hash of this ImageDto. # noqa: E501 - :type: str - """ - - self._hash = hash - - @property - def compiled(self): - """Gets the compiled of this ImageDto. # noqa: E501 - - - :return: The compiled of this ImageDto. # noqa: E501 - :rtype: datetime - """ - return self._compiled - - @compiled.setter - def compiled(self, compiled): - """Sets the compiled of this ImageDto. - - - :param compiled: The compiled of this ImageDto. # noqa: E501 - :type: datetime - """ - - self._compiled = compiled - - @property - def size(self): - """Gets the size of this ImageDto. # noqa: E501 - - - :return: The size of this ImageDto. # noqa: E501 - :rtype: int - """ - return self._size - - @size.setter - def size(self, size): - """Sets the size of this ImageDto. - - - :param size: The size of this ImageDto. # noqa: E501 - :type: int - """ - - self._size = size - - @property - def environment(self): - """Gets the environment of this ImageDto. # noqa: E501 - - - :return: The environment of this ImageDto. # noqa: E501 - :rtype: list[ImageEnvItemDto] - """ - return self._environment - - @environment.setter - def environment(self, environment): - """Sets the environment of this ImageDto. - - - :param environment: The environment of this ImageDto. # noqa: E501 - :type: list[ImageEnvItemDto] - """ - if environment is None: - raise ValueError("Invalid value for `environment`, must not be `None`") # noqa: E501 - - self._environment = environment - - @property - def driver_class(self): - """Gets the driver_class of this ImageDto. # noqa: E501 - - - :return: The driver_class of this ImageDto. # noqa: E501 - :rtype: str - """ - return self._driver_class - - @driver_class.setter - def driver_class(self, driver_class): - """Sets the driver_class of this ImageDto. - - - :param driver_class: The driver_class of this ImageDto. # noqa: E501 - :type: str - """ - if driver_class is None: - raise ValueError("Invalid value for `driver_class`, must not be `None`") # noqa: E501 - - self._driver_class = driver_class - - @property - def date_formats(self): - """Gets the date_formats of this ImageDto. # noqa: E501 - - - :return: The date_formats of this ImageDto. # noqa: E501 - :rtype: list[ImageDateDto] - """ - return self._date_formats - - @date_formats.setter - def date_formats(self, date_formats): - """Sets the date_formats of this ImageDto. - - - :param date_formats: The date_formats of this ImageDto. # noqa: E501 - :type: list[ImageDateDto] - """ - - self._date_formats = date_formats - - @property - def jdbc_method(self): - """Gets the jdbc_method of this ImageDto. # noqa: E501 - - - :return: The jdbc_method of this ImageDto. # noqa: E501 - :rtype: str - """ - return self._jdbc_method - - @jdbc_method.setter - def jdbc_method(self, jdbc_method): - """Sets the jdbc_method of this ImageDto. - - - :param jdbc_method: The jdbc_method of this ImageDto. # noqa: E501 - :type: str - """ - if jdbc_method is None: - raise ValueError("Invalid value for `jdbc_method`, must not be `None`") # noqa: E501 - - self._jdbc_method = jdbc_method - - @property - def default_port(self): - """Gets the default_port of this ImageDto. # noqa: E501 - - - :return: The default_port of this ImageDto. # noqa: E501 - :rtype: int - """ - return self._default_port - - @default_port.setter - def default_port(self, default_port): - """Sets the default_port of this ImageDto. - - - :param default_port: The default_port of this ImageDto. # noqa: E501 - :type: int - """ - if default_port is None: - raise ValueError("Invalid value for `default_port`, must not be `None`") # noqa: E501 - - self._default_port = default_port - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(ImageDto, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, ImageDto): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/swagger/api-identifier/swagger_client/models/image_env_item_dto.py b/swagger/api-identifier/swagger_client/models/image_env_item_dto.py deleted file mode 100644 index d57bcd016227638defc32e968b0ccb68f157dfef..0000000000000000000000000000000000000000 --- a/swagger/api-identifier/swagger_client/models/image_env_item_dto.py +++ /dev/null @@ -1,198 +0,0 @@ -# coding: utf-8 - -""" - Database Repository Identifier Service API - - Service that manages the identifiers # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -import pprint -import re # noqa: F401 - -import six - -class ImageEnvItemDto(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'iid': 'int', - 'key': 'str', - 'value': 'str', - 'type': 'str' - } - - attribute_map = { - 'iid': 'iid', - 'key': 'key', - 'value': 'value', - 'type': 'type' - } - - def __init__(self, iid=None, key=None, value=None, type=None): # noqa: E501 - """ImageEnvItemDto - a model defined in Swagger""" # noqa: E501 - self._iid = None - self._key = None - self._value = None - self._type = None - self.discriminator = None - self.iid = iid - self.key = key - self.value = value - self.type = type - - @property - def iid(self): - """Gets the iid of this ImageEnvItemDto. # noqa: E501 - - - :return: The iid of this ImageEnvItemDto. # noqa: E501 - :rtype: int - """ - return self._iid - - @iid.setter - def iid(self, iid): - """Sets the iid of this ImageEnvItemDto. - - - :param iid: The iid of this ImageEnvItemDto. # noqa: E501 - :type: int - """ - if iid is None: - raise ValueError("Invalid value for `iid`, must not be `None`") # noqa: E501 - - self._iid = iid - - @property - def key(self): - """Gets the key of this ImageEnvItemDto. # noqa: E501 - - - :return: The key of this ImageEnvItemDto. # noqa: E501 - :rtype: str - """ - return self._key - - @key.setter - def key(self, key): - """Sets the key of this ImageEnvItemDto. - - - :param key: The key of this ImageEnvItemDto. # noqa: E501 - :type: str - """ - if key is None: - raise ValueError("Invalid value for `key`, must not be `None`") # noqa: E501 - - self._key = key - - @property - def value(self): - """Gets the value of this ImageEnvItemDto. # noqa: E501 - - - :return: The value of this ImageEnvItemDto. # noqa: E501 - :rtype: str - """ - return self._value - - @value.setter - def value(self, value): - """Sets the value of this ImageEnvItemDto. - - - :param value: The value of this ImageEnvItemDto. # noqa: E501 - :type: str - """ - if value is None: - raise ValueError("Invalid value for `value`, must not be `None`") # noqa: E501 - - self._value = value - - @property - def type(self): - """Gets the type of this ImageEnvItemDto. # noqa: E501 - - - :return: The type of this ImageEnvItemDto. # noqa: E501 - :rtype: str - """ - return self._type - - @type.setter - def type(self, type): - """Sets the type of this ImageEnvItemDto. - - - :param type: The type of this ImageEnvItemDto. # noqa: E501 - :type: str - """ - if type is None: - raise ValueError("Invalid value for `type`, must not be `None`") # noqa: E501 - allowed_values = ["username", "password", "privileged_username", "privileged_password"] # noqa: E501 - if type not in allowed_values: - raise ValueError( - "Invalid value for `type` ({0}), must be one of {1}" # noqa: E501 - .format(type, allowed_values) - ) - - self._type = type - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(ImageEnvItemDto, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, ImageEnvItemDto): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/swagger/api-identifier/swagger_client/models/license_dto.py b/swagger/api-identifier/swagger_client/models/license_dto.py deleted file mode 100644 index ba76e7943f88a671b03942b7966ead846ef7f599..0000000000000000000000000000000000000000 --- a/swagger/api-identifier/swagger_client/models/license_dto.py +++ /dev/null @@ -1,138 +0,0 @@ -# coding: utf-8 - -""" - Database Repository Identifier Service API - - Service that manages the identifiers # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -import pprint -import re # noqa: F401 - -import six - -class LicenseDto(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'identifier': 'str', - 'uri': 'str' - } - - attribute_map = { - 'identifier': 'identifier', - 'uri': 'uri' - } - - def __init__(self, identifier=None, uri=None): # noqa: E501 - """LicenseDto - a model defined in Swagger""" # noqa: E501 - self._identifier = None - self._uri = None - self.discriminator = None - self.identifier = identifier - self.uri = uri - - @property - def identifier(self): - """Gets the identifier of this LicenseDto. # noqa: E501 - - - :return: The identifier of this LicenseDto. # noqa: E501 - :rtype: str - """ - return self._identifier - - @identifier.setter - def identifier(self, identifier): - """Sets the identifier of this LicenseDto. - - - :param identifier: The identifier of this LicenseDto. # noqa: E501 - :type: str - """ - if identifier is None: - raise ValueError("Invalid value for `identifier`, must not be `None`") # noqa: E501 - - self._identifier = identifier - - @property - def uri(self): - """Gets the uri of this LicenseDto. # noqa: E501 - - - :return: The uri of this LicenseDto. # noqa: E501 - :rtype: str - """ - return self._uri - - @uri.setter - def uri(self, uri): - """Sets the uri of this LicenseDto. - - - :param uri: The uri of this LicenseDto. # noqa: E501 - :type: str - """ - if uri is None: - raise ValueError("Invalid value for `uri`, must not be `None`") # noqa: E501 - - self._uri = uri - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(LicenseDto, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, LicenseDto): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/swagger/api-identifier/swagger_client/models/related_identifier_create_dto.py b/swagger/api-identifier/swagger_client/models/related_identifier_create_dto.py deleted file mode 100644 index 595f92c87056bb46a762d3b6c403c926071a093d..0000000000000000000000000000000000000000 --- a/swagger/api-identifier/swagger_client/models/related_identifier_create_dto.py +++ /dev/null @@ -1,175 +0,0 @@ -# coding: utf-8 - -""" - Database Repository Identifier Service API - - Service that manages the identifiers # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -import pprint -import re # noqa: F401 - -import six - -class RelatedIdentifierCreateDto(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'value': 'str', - 'type': 'str', - 'relation': 'str' - } - - attribute_map = { - 'value': 'value', - 'type': 'type', - 'relation': 'relation' - } - - def __init__(self, value=None, type=None, relation=None): # noqa: E501 - """RelatedIdentifierCreateDto - a model defined in Swagger""" # noqa: E501 - self._value = None - self._type = None - self._relation = None - self.discriminator = None - self.value = value - if type is not None: - self.type = type - if relation is not None: - self.relation = relation - - @property - def value(self): - """Gets the value of this RelatedIdentifierCreateDto. # noqa: E501 - - - :return: The value of this RelatedIdentifierCreateDto. # noqa: E501 - :rtype: str - """ - return self._value - - @value.setter - def value(self, value): - """Sets the value of this RelatedIdentifierCreateDto. - - - :param value: The value of this RelatedIdentifierCreateDto. # noqa: E501 - :type: str - """ - if value is None: - raise ValueError("Invalid value for `value`, must not be `None`") # noqa: E501 - - self._value = value - - @property - def type(self): - """Gets the type of this RelatedIdentifierCreateDto. # noqa: E501 - - - :return: The type of this RelatedIdentifierCreateDto. # noqa: E501 - :rtype: str - """ - return self._type - - @type.setter - def type(self, type): - """Sets the type of this RelatedIdentifierCreateDto. - - - :param type: The type of this RelatedIdentifierCreateDto. # noqa: E501 - :type: str - """ - allowed_values = ["DOI", "URL", "URN", "ARK", "arXiv", "bibcode", "EAN13", "EISSN", "Handle", "IGSN", "ISBN", "ISTC", "LISSN", "LSID", "PMID", "PURL", "UPC", "w3id"] # noqa: E501 - if type not in allowed_values: - raise ValueError( - "Invalid value for `type` ({0}), must be one of {1}" # noqa: E501 - .format(type, allowed_values) - ) - - self._type = type - - @property - def relation(self): - """Gets the relation of this RelatedIdentifierCreateDto. # noqa: E501 - - - :return: The relation of this RelatedIdentifierCreateDto. # noqa: E501 - :rtype: str - """ - return self._relation - - @relation.setter - def relation(self, relation): - """Sets the relation of this RelatedIdentifierCreateDto. - - - :param relation: The relation of this RelatedIdentifierCreateDto. # noqa: E501 - :type: str - """ - allowed_values = ["IsCitedBy", "Cites", "IsSupplementTo", "IsSupplementedBy", "IsContinuedBy", "Continues", "IsDescribedBy", "Describes", "HasMetadata", "IsMetadataFor", "HasVersion", "IsVersionOf", "IsNewVersionOf", "IsPreviousVersionOf", "IsPartOf", "HasPart", "IsPublishedIn", "IsReferencedBy", "References", "IsDocumentedBy", "Documents", "IsCompiledBy", "Compiles", "IsVariantFormOf", "IsOriginalFormOf", "IsIdenticalTo", "IsReviewedBy", "Reviews", "IsDerivedFrom", "IsSourceOf", "IsRequiredBy", "Requires", "IsObsoletedBy", "Obsoletes"] # noqa: E501 - if relation not in allowed_values: - raise ValueError( - "Invalid value for `relation` ({0}), must be one of {1}" # noqa: E501 - .format(relation, allowed_values) - ) - - self._relation = relation - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(RelatedIdentifierCreateDto, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, RelatedIdentifierCreateDto): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/swagger/api-identifier/swagger_client/models/related_identifier_dto.py b/swagger/api-identifier/swagger_client/models/related_identifier_dto.py deleted file mode 100644 index 2d266227abb8fee7a15dfb0e9b7a86711b25b056..0000000000000000000000000000000000000000 --- a/swagger/api-identifier/swagger_client/models/related_identifier_dto.py +++ /dev/null @@ -1,281 +0,0 @@ -# coding: utf-8 - -""" - Database Repository Identifier Service API - - Service that manages the identifiers # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -import pprint -import re # noqa: F401 - -import six - -class RelatedIdentifierDto(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'id': 'int', - 'value': 'str', - 'type': 'str', - 'relation': 'str', - 'created': 'datetime', - 'deleted': 'datetime', - 'last_modified': 'datetime' - } - - attribute_map = { - 'id': 'id', - 'value': 'value', - 'type': 'type', - 'relation': 'relation', - 'created': 'created', - 'deleted': 'deleted', - 'last_modified': 'last_modified' - } - - def __init__(self, id=None, value=None, type=None, relation=None, created=None, deleted=None, last_modified=None): # noqa: E501 - """RelatedIdentifierDto - a model defined in Swagger""" # noqa: E501 - self._id = None - self._value = None - self._type = None - self._relation = None - self._created = None - self._deleted = None - self._last_modified = None - self.discriminator = None - self.id = id - self.value = value - if type is not None: - self.type = type - if relation is not None: - self.relation = relation - self.created = created - if deleted is not None: - self.deleted = deleted - if last_modified is not None: - self.last_modified = last_modified - - @property - def id(self): - """Gets the id of this RelatedIdentifierDto. # noqa: E501 - - - :return: The id of this RelatedIdentifierDto. # noqa: E501 - :rtype: int - """ - return self._id - - @id.setter - def id(self, id): - """Sets the id of this RelatedIdentifierDto. - - - :param id: The id of this RelatedIdentifierDto. # noqa: E501 - :type: int - """ - if id is None: - raise ValueError("Invalid value for `id`, must not be `None`") # noqa: E501 - - self._id = id - - @property - def value(self): - """Gets the value of this RelatedIdentifierDto. # noqa: E501 - - - :return: The value of this RelatedIdentifierDto. # noqa: E501 - :rtype: str - """ - return self._value - - @value.setter - def value(self, value): - """Sets the value of this RelatedIdentifierDto. - - - :param value: The value of this RelatedIdentifierDto. # noqa: E501 - :type: str - """ - if value is None: - raise ValueError("Invalid value for `value`, must not be `None`") # noqa: E501 - - self._value = value - - @property - def type(self): - """Gets the type of this RelatedIdentifierDto. # noqa: E501 - - - :return: The type of this RelatedIdentifierDto. # noqa: E501 - :rtype: str - """ - return self._type - - @type.setter - def type(self, type): - """Sets the type of this RelatedIdentifierDto. - - - :param type: The type of this RelatedIdentifierDto. # noqa: E501 - :type: str - """ - allowed_values = ["DOI", "URL", "URN", "ARK", "arXiv", "bibcode", "EAN13", "EISSN", "Handle", "IGSN", "ISBN", "ISTC", "LISSN", "LSID", "PMID", "PURL", "UPC", "w3id"] # noqa: E501 - if type not in allowed_values: - raise ValueError( - "Invalid value for `type` ({0}), must be one of {1}" # noqa: E501 - .format(type, allowed_values) - ) - - self._type = type - - @property - def relation(self): - """Gets the relation of this RelatedIdentifierDto. # noqa: E501 - - - :return: The relation of this RelatedIdentifierDto. # noqa: E501 - :rtype: str - """ - return self._relation - - @relation.setter - def relation(self, relation): - """Sets the relation of this RelatedIdentifierDto. - - - :param relation: The relation of this RelatedIdentifierDto. # noqa: E501 - :type: str - """ - allowed_values = ["IsCitedBy", "Cites", "IsSupplementTo", "IsSupplementedBy", "IsContinuedBy", "Continues", "IsDescribedBy", "Describes", "HasMetadata", "IsMetadataFor", "HasVersion", "IsVersionOf", "IsNewVersionOf", "IsPreviousVersionOf", "IsPartOf", "HasPart", "IsPublishedIn", "IsReferencedBy", "References", "IsDocumentedBy", "Documents", "IsCompiledBy", "Compiles", "IsVariantFormOf", "IsOriginalFormOf", "IsIdenticalTo", "IsReviewedBy", "Reviews", "IsDerivedFrom", "IsSourceOf", "IsRequiredBy", "Requires", "IsObsoletedBy", "Obsoletes"] # noqa: E501 - if relation not in allowed_values: - raise ValueError( - "Invalid value for `relation` ({0}), must be one of {1}" # noqa: E501 - .format(relation, allowed_values) - ) - - self._relation = relation - - @property - def created(self): - """Gets the created of this RelatedIdentifierDto. # noqa: E501 - - - :return: The created of this RelatedIdentifierDto. # noqa: E501 - :rtype: datetime - """ - return self._created - - @created.setter - def created(self, created): - """Sets the created of this RelatedIdentifierDto. - - - :param created: The created of this RelatedIdentifierDto. # noqa: E501 - :type: datetime - """ - if created is None: - raise ValueError("Invalid value for `created`, must not be `None`") # noqa: E501 - - self._created = created - - @property - def deleted(self): - """Gets the deleted of this RelatedIdentifierDto. # noqa: E501 - - - :return: The deleted of this RelatedIdentifierDto. # noqa: E501 - :rtype: datetime - """ - return self._deleted - - @deleted.setter - def deleted(self, deleted): - """Sets the deleted of this RelatedIdentifierDto. - - - :param deleted: The deleted of this RelatedIdentifierDto. # noqa: E501 - :type: datetime - """ - - self._deleted = deleted - - @property - def last_modified(self): - """Gets the last_modified of this RelatedIdentifierDto. # noqa: E501 - - - :return: The last_modified of this RelatedIdentifierDto. # noqa: E501 - :rtype: datetime - """ - return self._last_modified - - @last_modified.setter - def last_modified(self, last_modified): - """Sets the last_modified of this RelatedIdentifierDto. - - - :param last_modified: The last_modified of this RelatedIdentifierDto. # noqa: E501 - :type: datetime - """ - - self._last_modified = last_modified - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(RelatedIdentifierDto, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, RelatedIdentifierDto): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/swagger/api-identifier/swagger_client/models/table_brief_dto.py b/swagger/api-identifier/swagger_client/models/table_brief_dto.py deleted file mode 100644 index c3dec21e2b91d4e51ce8fc59ba64b427142bdae8..0000000000000000000000000000000000000000 --- a/swagger/api-identifier/swagger_client/models/table_brief_dto.py +++ /dev/null @@ -1,192 +0,0 @@ -# coding: utf-8 - -""" - Database Repository Identifier Service API - - Service that manages the identifiers # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -import pprint -import re # noqa: F401 - -import six - -class TableBriefDto(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'id': 'int', - 'name': 'str', - 'creator': 'UserBriefDto', - 'internal_name': 'str' - } - - attribute_map = { - 'id': 'id', - 'name': 'name', - 'creator': 'creator', - 'internal_name': 'internal_name' - } - - def __init__(self, id=None, name=None, creator=None, internal_name=None): # noqa: E501 - """TableBriefDto - a model defined in Swagger""" # noqa: E501 - self._id = None - self._name = None - self._creator = None - self._internal_name = None - self.discriminator = None - self.id = id - self.name = name - self.creator = creator - self.internal_name = internal_name - - @property - def id(self): - """Gets the id of this TableBriefDto. # noqa: E501 - - - :return: The id of this TableBriefDto. # noqa: E501 - :rtype: int - """ - return self._id - - @id.setter - def id(self, id): - """Sets the id of this TableBriefDto. - - - :param id: The id of this TableBriefDto. # noqa: E501 - :type: int - """ - if id is None: - raise ValueError("Invalid value for `id`, must not be `None`") # noqa: E501 - - self._id = id - - @property - def name(self): - """Gets the name of this TableBriefDto. # noqa: E501 - - - :return: The name of this TableBriefDto. # noqa: E501 - :rtype: str - """ - return self._name - - @name.setter - def name(self, name): - """Sets the name of this TableBriefDto. - - - :param name: The name of this TableBriefDto. # noqa: E501 - :type: str - """ - if name is None: - raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501 - - self._name = name - - @property - def creator(self): - """Gets the creator of this TableBriefDto. # noqa: E501 - - - :return: The creator of this TableBriefDto. # noqa: E501 - :rtype: UserBriefDto - """ - return self._creator - - @creator.setter - def creator(self, creator): - """Sets the creator of this TableBriefDto. - - - :param creator: The creator of this TableBriefDto. # noqa: E501 - :type: UserBriefDto - """ - if creator is None: - raise ValueError("Invalid value for `creator`, must not be `None`") # noqa: E501 - - self._creator = creator - - @property - def internal_name(self): - """Gets the internal_name of this TableBriefDto. # noqa: E501 - - - :return: The internal_name of this TableBriefDto. # noqa: E501 - :rtype: str - """ - return self._internal_name - - @internal_name.setter - def internal_name(self, internal_name): - """Sets the internal_name of this TableBriefDto. - - - :param internal_name: The internal_name of this TableBriefDto. # noqa: E501 - :type: str - """ - if internal_name is None: - raise ValueError("Invalid value for `internal_name`, must not be `None`") # noqa: E501 - - self._internal_name = internal_name - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(TableBriefDto, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, TableBriefDto): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/swagger/api-identifier/swagger_client/models/table_dto.py b/swagger/api-identifier/swagger_client/models/table_dto.py deleted file mode 100644 index 4d34f87b99777e9771d7452fc636d5c67707ca66..0000000000000000000000000000000000000000 --- a/swagger/api-identifier/swagger_client/models/table_dto.py +++ /dev/null @@ -1,272 +0,0 @@ -# coding: utf-8 - -""" - Database Repository Identifier Service API - - Service that manages the identifiers # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -import pprint -import re # noqa: F401 - -import six - -class TableDto(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'id': 'int', - 'name': 'str', - 'topic': 'str', - 'description': 'str', - 'created': 'datetime', - 'columns': 'list[ColumnDto]', - 'internal_name': 'str' - } - - attribute_map = { - 'id': 'id', - 'name': 'name', - 'topic': 'topic', - 'description': 'description', - 'created': 'created', - 'columns': 'columns', - 'internal_name': 'internal_name' - } - - def __init__(self, id=None, name=None, topic=None, description=None, created=None, columns=None, internal_name=None): # noqa: E501 - """TableDto - a model defined in Swagger""" # noqa: E501 - self._id = None - self._name = None - self._topic = None - self._description = None - self._created = None - self._columns = None - self._internal_name = None - self.discriminator = None - self.id = id - self.name = name - self.topic = topic - self.description = description - if created is not None: - self.created = created - self.columns = columns - self.internal_name = internal_name - - @property - def id(self): - """Gets the id of this TableDto. # noqa: E501 - - - :return: The id of this TableDto. # noqa: E501 - :rtype: int - """ - return self._id - - @id.setter - def id(self, id): - """Sets the id of this TableDto. - - - :param id: The id of this TableDto. # noqa: E501 - :type: int - """ - if id is None: - raise ValueError("Invalid value for `id`, must not be `None`") # noqa: E501 - - self._id = id - - @property - def name(self): - """Gets the name of this TableDto. # noqa: E501 - - - :return: The name of this TableDto. # noqa: E501 - :rtype: str - """ - return self._name - - @name.setter - def name(self, name): - """Sets the name of this TableDto. - - - :param name: The name of this TableDto. # noqa: E501 - :type: str - """ - if name is None: - raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501 - - self._name = name - - @property - def topic(self): - """Gets the topic of this TableDto. # noqa: E501 - - - :return: The topic of this TableDto. # noqa: E501 - :rtype: str - """ - return self._topic - - @topic.setter - def topic(self, topic): - """Sets the topic of this TableDto. - - - :param topic: The topic of this TableDto. # noqa: E501 - :type: str - """ - if topic is None: - raise ValueError("Invalid value for `topic`, must not be `None`") # noqa: E501 - - self._topic = topic - - @property - def description(self): - """Gets the description of this TableDto. # noqa: E501 - - - :return: The description of this TableDto. # noqa: E501 - :rtype: str - """ - return self._description - - @description.setter - def description(self, description): - """Sets the description of this TableDto. - - - :param description: The description of this TableDto. # noqa: E501 - :type: str - """ - if description is None: - raise ValueError("Invalid value for `description`, must not be `None`") # noqa: E501 - - self._description = description - - @property - def created(self): - """Gets the created of this TableDto. # noqa: E501 - - - :return: The created of this TableDto. # noqa: E501 - :rtype: datetime - """ - return self._created - - @created.setter - def created(self, created): - """Sets the created of this TableDto. - - - :param created: The created of this TableDto. # noqa: E501 - :type: datetime - """ - - self._created = created - - @property - def columns(self): - """Gets the columns of this TableDto. # noqa: E501 - - - :return: The columns of this TableDto. # noqa: E501 - :rtype: list[ColumnDto] - """ - return self._columns - - @columns.setter - def columns(self, columns): - """Sets the columns of this TableDto. - - - :param columns: The columns of this TableDto. # noqa: E501 - :type: list[ColumnDto] - """ - if columns is None: - raise ValueError("Invalid value for `columns`, must not be `None`") # noqa: E501 - - self._columns = columns - - @property - def internal_name(self): - """Gets the internal_name of this TableDto. # noqa: E501 - - - :return: The internal_name of this TableDto. # noqa: E501 - :rtype: str - """ - return self._internal_name - - @internal_name.setter - def internal_name(self, internal_name): - """Sets the internal_name of this TableDto. - - - :param internal_name: The internal_name of this TableDto. # noqa: E501 - :type: str - """ - if internal_name is None: - raise ValueError("Invalid value for `internal_name`, must not be `None`") # noqa: E501 - - self._internal_name = internal_name - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(TableDto, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, TableDto): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/swagger/api-identifier/swagger_client/models/user_brief_dto.py b/swagger/api-identifier/swagger_client/models/user_brief_dto.py deleted file mode 100644 index 2c331dde9093c6a77468dc93b938d670e58d267d..0000000000000000000000000000000000000000 --- a/swagger/api-identifier/swagger_client/models/user_brief_dto.py +++ /dev/null @@ -1,350 +0,0 @@ -# coding: utf-8 - -""" - Database Repository Identifier Service API - - Service that manages the identifiers # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -import pprint -import re # noqa: F401 - -import six - -class UserBriefDto(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'id': 'int', - 'username': 'str', - 'firstname': 'str', - 'lastname': 'str', - 'affiliation': 'str', - 'orcid': 'str', - 'titles_before': 'str', - 'titles_after': 'str', - 'theme_dark': 'bool', - 'email_verified': 'bool' - } - - attribute_map = { - 'id': 'id', - 'username': 'username', - 'firstname': 'firstname', - 'lastname': 'lastname', - 'affiliation': 'affiliation', - 'orcid': 'orcid', - 'titles_before': 'titles_before', - 'titles_after': 'titles_after', - 'theme_dark': 'theme_dark', - 'email_verified': 'email_verified' - } - - def __init__(self, id=None, username=None, firstname=None, lastname=None, affiliation=None, orcid=None, titles_before=None, titles_after=None, theme_dark=None, email_verified=None): # noqa: E501 - """UserBriefDto - a model defined in Swagger""" # noqa: E501 - self._id = None - self._username = None - self._firstname = None - self._lastname = None - self._affiliation = None - self._orcid = None - self._titles_before = None - self._titles_after = None - self._theme_dark = None - self._email_verified = None - self.discriminator = None - self.id = id - self.username = username - if firstname is not None: - self.firstname = firstname - if lastname is not None: - self.lastname = lastname - if affiliation is not None: - self.affiliation = affiliation - if orcid is not None: - self.orcid = orcid - if titles_before is not None: - self.titles_before = titles_before - if titles_after is not None: - self.titles_after = titles_after - self.theme_dark = theme_dark - self.email_verified = email_verified - - @property - def id(self): - """Gets the id of this UserBriefDto. # noqa: E501 - - - :return: The id of this UserBriefDto. # noqa: E501 - :rtype: int - """ - return self._id - - @id.setter - def id(self, id): - """Sets the id of this UserBriefDto. - - - :param id: The id of this UserBriefDto. # noqa: E501 - :type: int - """ - if id is None: - raise ValueError("Invalid value for `id`, must not be `None`") # noqa: E501 - - self._id = id - - @property - def username(self): - """Gets the username of this UserBriefDto. # noqa: E501 - - Only contains lowercase characters # noqa: E501 - - :return: The username of this UserBriefDto. # noqa: E501 - :rtype: str - """ - return self._username - - @username.setter - def username(self, username): - """Sets the username of this UserBriefDto. - - Only contains lowercase characters # noqa: E501 - - :param username: The username of this UserBriefDto. # noqa: E501 - :type: str - """ - if username is None: - raise ValueError("Invalid value for `username`, must not be `None`") # noqa: E501 - - self._username = username - - @property - def firstname(self): - """Gets the firstname of this UserBriefDto. # noqa: E501 - - - :return: The firstname of this UserBriefDto. # noqa: E501 - :rtype: str - """ - return self._firstname - - @firstname.setter - def firstname(self, firstname): - """Sets the firstname of this UserBriefDto. - - - :param firstname: The firstname of this UserBriefDto. # noqa: E501 - :type: str - """ - - self._firstname = firstname - - @property - def lastname(self): - """Gets the lastname of this UserBriefDto. # noqa: E501 - - - :return: The lastname of this UserBriefDto. # noqa: E501 - :rtype: str - """ - return self._lastname - - @lastname.setter - def lastname(self, lastname): - """Sets the lastname of this UserBriefDto. - - - :param lastname: The lastname of this UserBriefDto. # noqa: E501 - :type: str - """ - - self._lastname = lastname - - @property - def affiliation(self): - """Gets the affiliation of this UserBriefDto. # noqa: E501 - - - :return: The affiliation of this UserBriefDto. # noqa: E501 - :rtype: str - """ - return self._affiliation - - @affiliation.setter - def affiliation(self, affiliation): - """Sets the affiliation of this UserBriefDto. - - - :param affiliation: The affiliation of this UserBriefDto. # noqa: E501 - :type: str - """ - - self._affiliation = affiliation - - @property - def orcid(self): - """Gets the orcid of this UserBriefDto. # noqa: E501 - - - :return: The orcid of this UserBriefDto. # noqa: E501 - :rtype: str - """ - return self._orcid - - @orcid.setter - def orcid(self, orcid): - """Sets the orcid of this UserBriefDto. - - - :param orcid: The orcid of this UserBriefDto. # noqa: E501 - :type: str - """ - - self._orcid = orcid - - @property - def titles_before(self): - """Gets the titles_before of this UserBriefDto. # noqa: E501 - - - :return: The titles_before of this UserBriefDto. # noqa: E501 - :rtype: str - """ - return self._titles_before - - @titles_before.setter - def titles_before(self, titles_before): - """Sets the titles_before of this UserBriefDto. - - - :param titles_before: The titles_before of this UserBriefDto. # noqa: E501 - :type: str - """ - - self._titles_before = titles_before - - @property - def titles_after(self): - """Gets the titles_after of this UserBriefDto. # noqa: E501 - - - :return: The titles_after of this UserBriefDto. # noqa: E501 - :rtype: str - """ - return self._titles_after - - @titles_after.setter - def titles_after(self, titles_after): - """Sets the titles_after of this UserBriefDto. - - - :param titles_after: The titles_after of this UserBriefDto. # noqa: E501 - :type: str - """ - - self._titles_after = titles_after - - @property - def theme_dark(self): - """Gets the theme_dark of this UserBriefDto. # noqa: E501 - - - :return: The theme_dark of this UserBriefDto. # noqa: E501 - :rtype: bool - """ - return self._theme_dark - - @theme_dark.setter - def theme_dark(self, theme_dark): - """Sets the theme_dark of this UserBriefDto. - - - :param theme_dark: The theme_dark of this UserBriefDto. # noqa: E501 - :type: bool - """ - if theme_dark is None: - raise ValueError("Invalid value for `theme_dark`, must not be `None`") # noqa: E501 - - self._theme_dark = theme_dark - - @property - def email_verified(self): - """Gets the email_verified of this UserBriefDto. # noqa: E501 - - - :return: The email_verified of this UserBriefDto. # noqa: E501 - :rtype: bool - """ - return self._email_verified - - @email_verified.setter - def email_verified(self, email_verified): - """Sets the email_verified of this UserBriefDto. - - - :param email_verified: The email_verified of this UserBriefDto. # noqa: E501 - :type: bool - """ - if email_verified is None: - raise ValueError("Invalid value for `email_verified`, must not be `None`") # noqa: E501 - - self._email_verified = email_verified - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(UserBriefDto, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, UserBriefDto): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/swagger/api-identifier/swagger_client/models/user_dto.py b/swagger/api-identifier/swagger_client/models/user_dto.py deleted file mode 100644 index 882cb85a7d297c121498fb7d8d6c38e5d0dfdca9..0000000000000000000000000000000000000000 --- a/swagger/api-identifier/swagger_client/models/user_dto.py +++ /dev/null @@ -1,481 +0,0 @@ -# coding: utf-8 - -""" - Database Repository Identifier Service API - - Service that manages the identifiers # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -import pprint -import re # noqa: F401 - -import six - -class UserDto(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'id': 'int', - 'authorities': 'list[GrantedAuthorityDto]', - 'username': 'str', - 'firstname': 'str', - 'lastname': 'str', - 'affiliation': 'str', - 'orcid': 'str', - 'containers': 'list[ContainerDto]', - 'databases': 'list[ContainerDto]', - 'identifiers': 'list[ContainerDto]', - 'email': 'str', - 'titles_before': 'str', - 'titles_after': 'str', - 'theme_dark': 'bool', - 'email_verified': 'bool' - } - - attribute_map = { - 'id': 'id', - 'authorities': 'authorities', - 'username': 'username', - 'firstname': 'firstname', - 'lastname': 'lastname', - 'affiliation': 'affiliation', - 'orcid': 'orcid', - 'containers': 'containers', - 'databases': 'databases', - 'identifiers': 'identifiers', - 'email': 'email', - 'titles_before': 'titles_before', - 'titles_after': 'titles_after', - 'theme_dark': 'theme_dark', - 'email_verified': 'email_verified' - } - - def __init__(self, id=None, authorities=None, username=None, firstname=None, lastname=None, affiliation=None, orcid=None, containers=None, databases=None, identifiers=None, email=None, titles_before=None, titles_after=None, theme_dark=None, email_verified=None): # noqa: E501 - """UserDto - a model defined in Swagger""" # noqa: E501 - self._id = None - self._authorities = None - self._username = None - self._firstname = None - self._lastname = None - self._affiliation = None - self._orcid = None - self._containers = None - self._databases = None - self._identifiers = None - self._email = None - self._titles_before = None - self._titles_after = None - self._theme_dark = None - self._email_verified = None - self.discriminator = None - self.id = id - if authorities is not None: - self.authorities = authorities - self.username = username - if firstname is not None: - self.firstname = firstname - if lastname is not None: - self.lastname = lastname - if affiliation is not None: - self.affiliation = affiliation - if orcid is not None: - self.orcid = orcid - if containers is not None: - self.containers = containers - if databases is not None: - self.databases = databases - if identifiers is not None: - self.identifiers = identifiers - self.email = email - if titles_before is not None: - self.titles_before = titles_before - if titles_after is not None: - self.titles_after = titles_after - self.theme_dark = theme_dark - self.email_verified = email_verified - - @property - def id(self): - """Gets the id of this UserDto. # noqa: E501 - - - :return: The id of this UserDto. # noqa: E501 - :rtype: int - """ - return self._id - - @id.setter - def id(self, id): - """Sets the id of this UserDto. - - - :param id: The id of this UserDto. # noqa: E501 - :type: int - """ - if id is None: - raise ValueError("Invalid value for `id`, must not be `None`") # noqa: E501 - - self._id = id - - @property - def authorities(self): - """Gets the authorities of this UserDto. # noqa: E501 - - - :return: The authorities of this UserDto. # noqa: E501 - :rtype: list[GrantedAuthorityDto] - """ - return self._authorities - - @authorities.setter - def authorities(self, authorities): - """Sets the authorities of this UserDto. - - - :param authorities: The authorities of this UserDto. # noqa: E501 - :type: list[GrantedAuthorityDto] - """ - - self._authorities = authorities - - @property - def username(self): - """Gets the username of this UserDto. # noqa: E501 - - Only contains lowercase characters # noqa: E501 - - :return: The username of this UserDto. # noqa: E501 - :rtype: str - """ - return self._username - - @username.setter - def username(self, username): - """Sets the username of this UserDto. - - Only contains lowercase characters # noqa: E501 - - :param username: The username of this UserDto. # noqa: E501 - :type: str - """ - if username is None: - raise ValueError("Invalid value for `username`, must not be `None`") # noqa: E501 - - self._username = username - - @property - def firstname(self): - """Gets the firstname of this UserDto. # noqa: E501 - - - :return: The firstname of this UserDto. # noqa: E501 - :rtype: str - """ - return self._firstname - - @firstname.setter - def firstname(self, firstname): - """Sets the firstname of this UserDto. - - - :param firstname: The firstname of this UserDto. # noqa: E501 - :type: str - """ - - self._firstname = firstname - - @property - def lastname(self): - """Gets the lastname of this UserDto. # noqa: E501 - - - :return: The lastname of this UserDto. # noqa: E501 - :rtype: str - """ - return self._lastname - - @lastname.setter - def lastname(self, lastname): - """Sets the lastname of this UserDto. - - - :param lastname: The lastname of this UserDto. # noqa: E501 - :type: str - """ - - self._lastname = lastname - - @property - def affiliation(self): - """Gets the affiliation of this UserDto. # noqa: E501 - - - :return: The affiliation of this UserDto. # noqa: E501 - :rtype: str - """ - return self._affiliation - - @affiliation.setter - def affiliation(self, affiliation): - """Sets the affiliation of this UserDto. - - - :param affiliation: The affiliation of this UserDto. # noqa: E501 - :type: str - """ - - self._affiliation = affiliation - - @property - def orcid(self): - """Gets the orcid of this UserDto. # noqa: E501 - - - :return: The orcid of this UserDto. # noqa: E501 - :rtype: str - """ - return self._orcid - - @orcid.setter - def orcid(self, orcid): - """Sets the orcid of this UserDto. - - - :param orcid: The orcid of this UserDto. # noqa: E501 - :type: str - """ - - self._orcid = orcid - - @property - def containers(self): - """Gets the containers of this UserDto. # noqa: E501 - - - :return: The containers of this UserDto. # noqa: E501 - :rtype: list[ContainerDto] - """ - return self._containers - - @containers.setter - def containers(self, containers): - """Sets the containers of this UserDto. - - - :param containers: The containers of this UserDto. # noqa: E501 - :type: list[ContainerDto] - """ - - self._containers = containers - - @property - def databases(self): - """Gets the databases of this UserDto. # noqa: E501 - - - :return: The databases of this UserDto. # noqa: E501 - :rtype: list[ContainerDto] - """ - return self._databases - - @databases.setter - def databases(self, databases): - """Sets the databases of this UserDto. - - - :param databases: The databases of this UserDto. # noqa: E501 - :type: list[ContainerDto] - """ - - self._databases = databases - - @property - def identifiers(self): - """Gets the identifiers of this UserDto. # noqa: E501 - - - :return: The identifiers of this UserDto. # noqa: E501 - :rtype: list[ContainerDto] - """ - return self._identifiers - - @identifiers.setter - def identifiers(self, identifiers): - """Sets the identifiers of this UserDto. - - - :param identifiers: The identifiers of this UserDto. # noqa: E501 - :type: list[ContainerDto] - """ - - self._identifiers = identifiers - - @property - def email(self): - """Gets the email of this UserDto. # noqa: E501 - - - :return: The email of this UserDto. # noqa: E501 - :rtype: str - """ - return self._email - - @email.setter - def email(self, email): - """Sets the email of this UserDto. - - - :param email: The email of this UserDto. # noqa: E501 - :type: str - """ - if email is None: - raise ValueError("Invalid value for `email`, must not be `None`") # noqa: E501 - - self._email = email - - @property - def titles_before(self): - """Gets the titles_before of this UserDto. # noqa: E501 - - - :return: The titles_before of this UserDto. # noqa: E501 - :rtype: str - """ - return self._titles_before - - @titles_before.setter - def titles_before(self, titles_before): - """Sets the titles_before of this UserDto. - - - :param titles_before: The titles_before of this UserDto. # noqa: E501 - :type: str - """ - - self._titles_before = titles_before - - @property - def titles_after(self): - """Gets the titles_after of this UserDto. # noqa: E501 - - - :return: The titles_after of this UserDto. # noqa: E501 - :rtype: str - """ - return self._titles_after - - @titles_after.setter - def titles_after(self, titles_after): - """Sets the titles_after of this UserDto. - - - :param titles_after: The titles_after of this UserDto. # noqa: E501 - :type: str - """ - - self._titles_after = titles_after - - @property - def theme_dark(self): - """Gets the theme_dark of this UserDto. # noqa: E501 - - - :return: The theme_dark of this UserDto. # noqa: E501 - :rtype: bool - """ - return self._theme_dark - - @theme_dark.setter - def theme_dark(self, theme_dark): - """Sets the theme_dark of this UserDto. - - - :param theme_dark: The theme_dark of this UserDto. # noqa: E501 - :type: bool - """ - if theme_dark is None: - raise ValueError("Invalid value for `theme_dark`, must not be `None`") # noqa: E501 - - self._theme_dark = theme_dark - - @property - def email_verified(self): - """Gets the email_verified of this UserDto. # noqa: E501 - - - :return: The email_verified of this UserDto. # noqa: E501 - :rtype: bool - """ - return self._email_verified - - @email_verified.setter - def email_verified(self, email_verified): - """Sets the email_verified of this UserDto. - - - :param email_verified: The email_verified of this UserDto. # noqa: E501 - :type: bool - """ - if email_verified is None: - raise ValueError("Invalid value for `email_verified`, must not be `None`") # noqa: E501 - - self._email_verified = email_verified - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(UserDto, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, UserDto): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/swagger/api-identifier/swagger_client/rest.py b/swagger/api-identifier/swagger_client/rest.py deleted file mode 100644 index 8033a0a8072fadbcf7c49c3dc9fdac1e2f00fd8c..0000000000000000000000000000000000000000 --- a/swagger/api-identifier/swagger_client/rest.py +++ /dev/null @@ -1,317 +0,0 @@ -# coding: utf-8 - -""" - Database Repository Identifier Service API - - Service that manages the identifiers # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -from __future__ import absolute_import - -import io -import json -import logging -import re -import ssl - -import certifi -# python 2 and python 3 compatibility library -import six -from six.moves.urllib.parse import urlencode - -try: - import urllib3 -except ImportError: - raise ImportError('Swagger python client requires urllib3.') - - -logger = logging.getLogger(__name__) - - -class RESTResponse(io.IOBase): - - def __init__(self, resp): - self.urllib3_response = resp - self.status = resp.status - self.reason = resp.reason - self.data = resp.data - - def getheaders(self): - """Returns a dictionary of the response headers.""" - return self.urllib3_response.getheaders() - - def getheader(self, name, default=None): - """Returns a given response header.""" - return self.urllib3_response.getheader(name, default) - - -class RESTClientObject(object): - - def __init__(self, configuration, pools_size=4, maxsize=None): - # urllib3.PoolManager will pass all kw parameters to connectionpool - # https://github.com/shazow/urllib3/blob/f9409436f83aeb79fbaf090181cd81b784f1b8ce/urllib3/poolmanager.py#L75 # noqa: E501 - # https://github.com/shazow/urllib3/blob/f9409436f83aeb79fbaf090181cd81b784f1b8ce/urllib3/connectionpool.py#L680 # noqa: E501 - # maxsize is the number of requests to host that are allowed in parallel # noqa: E501 - # Custom SSL certificates and client certificates: http://urllib3.readthedocs.io/en/latest/advanced-usage.html # noqa: E501 - - # cert_reqs - if configuration.verify_ssl: - cert_reqs = ssl.CERT_REQUIRED - else: - cert_reqs = ssl.CERT_NONE - - # ca_certs - if configuration.ssl_ca_cert: - ca_certs = configuration.ssl_ca_cert - else: - # if not set certificate file, use Mozilla's root certificates. - ca_certs = certifi.where() - - addition_pool_args = {} - if configuration.assert_hostname is not None: - addition_pool_args['assert_hostname'] = configuration.assert_hostname # noqa: E501 - - if maxsize is None: - if configuration.connection_pool_maxsize is not None: - maxsize = configuration.connection_pool_maxsize - else: - maxsize = 4 - - # https pool manager - if configuration.proxy: - self.pool_manager = urllib3.ProxyManager( - num_pools=pools_size, - maxsize=maxsize, - cert_reqs=cert_reqs, - ca_certs=ca_certs, - cert_file=configuration.cert_file, - key_file=configuration.key_file, - proxy_url=configuration.proxy, - **addition_pool_args - ) - else: - self.pool_manager = urllib3.PoolManager( - num_pools=pools_size, - maxsize=maxsize, - cert_reqs=cert_reqs, - ca_certs=ca_certs, - cert_file=configuration.cert_file, - key_file=configuration.key_file, - **addition_pool_args - ) - - def request(self, method, url, query_params=None, headers=None, - body=None, post_params=None, _preload_content=True, - _request_timeout=None): - """Perform requests. - - :param method: http request method - :param url: http request url - :param query_params: query parameters in the url - :param headers: http request headers - :param body: request json body, for `application/json` - :param post_params: request post parameters, - `application/x-www-form-urlencoded` - and `multipart/form-data` - :param _preload_content: if False, the urllib3.HTTPResponse object will - be returned without reading/decoding response - data. Default is True. - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - """ - method = method.upper() - assert method in ['GET', 'HEAD', 'DELETE', 'POST', 'PUT', - 'PATCH', 'OPTIONS'] - - if post_params and body: - raise ValueError( - "body parameter cannot be used with post_params parameter." - ) - - post_params = post_params or {} - headers = headers or {} - - timeout = None - if _request_timeout: - if isinstance(_request_timeout, (int, ) if six.PY3 else (int, long)): # noqa: E501,F821 - timeout = urllib3.Timeout(total=_request_timeout) - elif (isinstance(_request_timeout, tuple) and - len(_request_timeout) == 2): - timeout = urllib3.Timeout( - connect=_request_timeout[0], read=_request_timeout[1]) - - if 'Content-Type' not in headers: - headers['Content-Type'] = 'application/json' - - try: - # For `POST`, `PUT`, `PATCH`, `OPTIONS`, `DELETE` - if method in ['POST', 'PUT', 'PATCH', 'OPTIONS', 'DELETE']: - if query_params: - url += '?' + urlencode(query_params) - if re.search('json', headers['Content-Type'], re.IGNORECASE): - request_body = '{}' - if body is not None: - request_body = json.dumps(body) - r = self.pool_manager.request( - method, url, - body=request_body, - preload_content=_preload_content, - timeout=timeout, - headers=headers) - elif headers['Content-Type'] == 'application/x-www-form-urlencoded': # noqa: E501 - r = self.pool_manager.request( - method, url, - fields=post_params, - encode_multipart=False, - preload_content=_preload_content, - timeout=timeout, - headers=headers) - elif headers['Content-Type'] == 'multipart/form-data': - # must del headers['Content-Type'], or the correct - # Content-Type which generated by urllib3 will be - # overwritten. - del headers['Content-Type'] - r = self.pool_manager.request( - method, url, - fields=post_params, - encode_multipart=True, - preload_content=_preload_content, - timeout=timeout, - headers=headers) - # Pass a `string` parameter directly in the body to support - # other content types than Json when `body` argument is - # provided in serialized form - elif isinstance(body, str): - request_body = body - r = self.pool_manager.request( - method, url, - body=request_body, - preload_content=_preload_content, - timeout=timeout, - headers=headers) - else: - # Cannot generate the request from given parameters - msg = """Cannot prepare a request message for provided - arguments. Please check that your arguments match - declared content type.""" - raise ApiException(status=0, reason=msg) - # For `GET`, `HEAD` - else: - r = self.pool_manager.request(method, url, - fields=query_params, - preload_content=_preload_content, - timeout=timeout, - headers=headers) - except urllib3.exceptions.SSLError as e: - msg = "{0}\n{1}".format(type(e).__name__, str(e)) - raise ApiException(status=0, reason=msg) - - if _preload_content: - r = RESTResponse(r) - - # log response body - logger.debug("response body: %s", r.data) - - if not 200 <= r.status <= 299: - raise ApiException(http_resp=r) - - return r - - def GET(self, url, headers=None, query_params=None, _preload_content=True, - _request_timeout=None): - return self.request("GET", url, - headers=headers, - _preload_content=_preload_content, - _request_timeout=_request_timeout, - query_params=query_params) - - def HEAD(self, url, headers=None, query_params=None, _preload_content=True, - _request_timeout=None): - return self.request("HEAD", url, - headers=headers, - _preload_content=_preload_content, - _request_timeout=_request_timeout, - query_params=query_params) - - def OPTIONS(self, url, headers=None, query_params=None, post_params=None, - body=None, _preload_content=True, _request_timeout=None): - return self.request("OPTIONS", url, - headers=headers, - query_params=query_params, - post_params=post_params, - _preload_content=_preload_content, - _request_timeout=_request_timeout, - body=body) - - def DELETE(self, url, headers=None, query_params=None, body=None, - _preload_content=True, _request_timeout=None): - return self.request("DELETE", url, - headers=headers, - query_params=query_params, - _preload_content=_preload_content, - _request_timeout=_request_timeout, - body=body) - - def POST(self, url, headers=None, query_params=None, post_params=None, - body=None, _preload_content=True, _request_timeout=None): - return self.request("POST", url, - headers=headers, - query_params=query_params, - post_params=post_params, - _preload_content=_preload_content, - _request_timeout=_request_timeout, - body=body) - - def PUT(self, url, headers=None, query_params=None, post_params=None, - body=None, _preload_content=True, _request_timeout=None): - return self.request("PUT", url, - headers=headers, - query_params=query_params, - post_params=post_params, - _preload_content=_preload_content, - _request_timeout=_request_timeout, - body=body) - - def PATCH(self, url, headers=None, query_params=None, post_params=None, - body=None, _preload_content=True, _request_timeout=None): - return self.request("PATCH", url, - headers=headers, - query_params=query_params, - post_params=post_params, - _preload_content=_preload_content, - _request_timeout=_request_timeout, - body=body) - - -class ApiException(Exception): - - def __init__(self, status=None, reason=None, http_resp=None): - if http_resp: - self.status = http_resp.status - self.reason = http_resp.reason - self.body = http_resp.data - self.headers = http_resp.getheaders() - else: - self.status = status - self.reason = reason - self.body = None - self.headers = None - - def __str__(self): - """Custom error messages for exception""" - error_message = "({0})\n"\ - "Reason: {1}\n".format(self.status, self.reason) - if self.headers: - error_message += "HTTP response headers: {0}\n".format( - self.headers) - - if self.body: - error_message += "HTTP response body: {0}\n".format(self.body) - - return error_message diff --git a/swagger/api-identifier/test-requirements.txt b/swagger/api-identifier/test-requirements.txt deleted file mode 100644 index 2702246c0e6f92a1c41c0960879e07da339e4b7d..0000000000000000000000000000000000000000 --- a/swagger/api-identifier/test-requirements.txt +++ /dev/null @@ -1,5 +0,0 @@ -coverage>=4.0.3 -nose>=1.3.7 -pluggy>=0.3.1 -py>=1.4.31 -randomize>=0.13 diff --git a/swagger/api-identifier/test/__init__.py b/swagger/api-identifier/test/__init__.py deleted file mode 100644 index e69de29bb2d1d6434b8b29ae775ad8c2e48c5391..0000000000000000000000000000000000000000 diff --git a/swagger/api-identifier/test/test_api_error_dto.py b/swagger/api-identifier/test/test_api_error_dto.py deleted file mode 100644 index f4ec257740ccb528c0d3c412a3a7f974db32e0d7..0000000000000000000000000000000000000000 --- a/swagger/api-identifier/test/test_api_error_dto.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Database Repository Identifier Service API - - Service that manages the identifiers # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -from __future__ import absolute_import - -import unittest - -import api_container -from api_container.models.api_error_dto import ApiErrorDto # noqa: E501 -from api_container.rest import ApiException - - -class TestApiErrorDto(unittest.TestCase): - """ApiErrorDto unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testApiErrorDto(self): - """Test ApiErrorDto""" - # FIXME: construct object with mandatory attributes with example values - # model = api_container.models.api_error_dto.ApiErrorDto() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/swagger/api-identifier/test/test_column_dto.py b/swagger/api-identifier/test/test_column_dto.py deleted file mode 100644 index 764498dcc050441ed03be12814639e82e9445403..0000000000000000000000000000000000000000 --- a/swagger/api-identifier/test/test_column_dto.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Database Repository Identifier Service API - - Service that manages the identifiers # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -from __future__ import absolute_import - -import unittest - -import swagger_client -from swagger_client.models.column_dto import ColumnDto # noqa: E501 -from swagger_client.rest import ApiException - - -class TestColumnDto(unittest.TestCase): - """ColumnDto unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testColumnDto(self): - """Test ColumnDto""" - # FIXME: construct object with mandatory attributes with example values - # model = swagger_client.models.column_dto.ColumnDto() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/swagger/api-identifier/test/test_concept_dto.py b/swagger/api-identifier/test/test_concept_dto.py deleted file mode 100644 index dd77f3f8b01bd8a9f887c6362abbe0bb31bc0da4..0000000000000000000000000000000000000000 --- a/swagger/api-identifier/test/test_concept_dto.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Database Repository Identifier Service API - - Service that manages the identifiers # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -from __future__ import absolute_import - -import unittest - -import swagger_client -from swagger_client.models.concept_dto import ConceptDto # noqa: E501 -from swagger_client.rest import ApiException - - -class TestConceptDto(unittest.TestCase): - """ConceptDto unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testConceptDto(self): - """Test ConceptDto""" - # FIXME: construct object with mandatory attributes with example values - # model = swagger_client.models.concept_dto.ConceptDto() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/swagger/api-identifier/test/test_container_dto.py b/swagger/api-identifier/test/test_container_dto.py deleted file mode 100644 index 5c0acb08304f52032a6e709ea3185424e83d7505..0000000000000000000000000000000000000000 --- a/swagger/api-identifier/test/test_container_dto.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Database Repository Identifier Service API - - Service that manages the identifiers # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -from __future__ import absolute_import - -import unittest - -import swagger_client -from swagger_client.models.container_dto import ContainerDto # noqa: E501 -from swagger_client.rest import ApiException - - -class TestContainerDto(unittest.TestCase): - """ContainerDto unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testContainerDto(self): - """Test ContainerDto""" - # FIXME: construct object with mandatory attributes with example values - # model = swagger_client.models.container_dto.ContainerDto() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/swagger/api-identifier/test/test_creator_create_dto.py b/swagger/api-identifier/test/test_creator_create_dto.py deleted file mode 100644 index 811c31290b76c157f5e49e741412513a828191f1..0000000000000000000000000000000000000000 --- a/swagger/api-identifier/test/test_creator_create_dto.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Database Repository Identifier Service API - - Service that manages the identifiers # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -from __future__ import absolute_import - -import unittest - -import swagger_client -from swagger_client.models.creator_create_dto import CreatorCreateDto # noqa: E501 -from swagger_client.rest import ApiException - - -class TestCreatorCreateDto(unittest.TestCase): - """CreatorCreateDto unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testCreatorCreateDto(self): - """Test CreatorCreateDto""" - # FIXME: construct object with mandatory attributes with example values - # model = swagger_client.models.creator_create_dto.CreatorCreateDto() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/swagger/api-identifier/test/test_creator_dto.py b/swagger/api-identifier/test/test_creator_dto.py deleted file mode 100644 index 43d763d9acd814f285791f90a5993a5a899de4d7..0000000000000000000000000000000000000000 --- a/swagger/api-identifier/test/test_creator_dto.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Database Repository Identifier Service API - - Service that manages the identifiers # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -from __future__ import absolute_import - -import unittest - -import api_container -from api_container.models.creator_dto import CreatorDto # noqa: E501 -from api_container.rest import ApiException - - -class TestCreatorDto(unittest.TestCase): - """CreatorDto unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testCreatorDto(self): - """Test CreatorDto""" - # FIXME: construct object with mandatory attributes with example values - # model = api_container.models.creator_dto.CreatorDto() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/swagger/api-identifier/test/test_database_dto.py b/swagger/api-identifier/test/test_database_dto.py deleted file mode 100644 index 2b4c407b53a06bac79628aa9f931c4301be6fb04..0000000000000000000000000000000000000000 --- a/swagger/api-identifier/test/test_database_dto.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Database Repository Identifier Service API - - Service that manages the identifiers # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -from __future__ import absolute_import - -import unittest - -import swagger_client -from swagger_client.models.database_dto import DatabaseDto # noqa: E501 -from swagger_client.rest import ApiException - - -class TestDatabaseDto(unittest.TestCase): - """DatabaseDto unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testDatabaseDto(self): - """Test DatabaseDto""" - # FIXME: construct object with mandatory attributes with example values - # model = swagger_client.models.database_dto.DatabaseDto() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/swagger/api-identifier/test/test_granted_authority_dto.py b/swagger/api-identifier/test/test_granted_authority_dto.py deleted file mode 100644 index 33136c8418e59f44c17922bc5069911def8da6e4..0000000000000000000000000000000000000000 --- a/swagger/api-identifier/test/test_granted_authority_dto.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Database Repository Identifier Service API - - Service that manages the identifiers # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -from __future__ import absolute_import - -import unittest - -import swagger_client -from swagger_client.models.granted_authority_dto import GrantedAuthorityDto # noqa: E501 -from swagger_client.rest import ApiException - - -class TestGrantedAuthorityDto(unittest.TestCase): - """GrantedAuthorityDto unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testGrantedAuthorityDto(self): - """Test GrantedAuthorityDto""" - # FIXME: construct object with mandatory attributes with example values - # model = swagger_client.models.granted_authority_dto.GrantedAuthorityDto() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/swagger/api-identifier/test/test_identifier_create_dto.py b/swagger/api-identifier/test/test_identifier_create_dto.py deleted file mode 100644 index c724a7fb92fbb17b32f8a08460d15b6b89ec0547..0000000000000000000000000000000000000000 --- a/swagger/api-identifier/test/test_identifier_create_dto.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Database Repository Identifier Service API - - Service that manages the identifiers # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -from __future__ import absolute_import - -import unittest - -import swagger_client -from swagger_client.models.identifier_create_dto import IdentifierCreateDto # noqa: E501 -from swagger_client.rest import ApiException - - -class TestIdentifierCreateDto(unittest.TestCase): - """IdentifierCreateDto unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testIdentifierCreateDto(self): - """Test IdentifierCreateDto""" - # FIXME: construct object with mandatory attributes with example values - # model = swagger_client.models.identifier_create_dto.IdentifierCreateDto() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/swagger/api-identifier/test/test_identifier_dto.py b/swagger/api-identifier/test/test_identifier_dto.py deleted file mode 100644 index ba41bf0f7aa2c9cb1f2eb7dff3e6e3959491acd4..0000000000000000000000000000000000000000 --- a/swagger/api-identifier/test/test_identifier_dto.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Database Repository Identifier Service API - - Service that manages the identifiers # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -from __future__ import absolute_import - -import unittest - -import api_container -from api_container.models.identifier_dto import IdentifierDto # noqa: E501 -from api_container.rest import ApiException - - -class TestIdentifierDto(unittest.TestCase): - """IdentifierDto unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testIdentifierDto(self): - """Test IdentifierDto""" - # FIXME: construct object with mandatory attributes with example values - # model = api_container.models.identifier_dto.IdentifierDto() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/swagger/api-identifier/test/test_identifier_endpoint_api.py b/swagger/api-identifier/test/test_identifier_endpoint_api.py deleted file mode 100644 index 35914da98b6e8bc5b1209a5a459253f5cc63b5a8..0000000000000000000000000000000000000000 --- a/swagger/api-identifier/test/test_identifier_endpoint_api.py +++ /dev/null @@ -1,68 +0,0 @@ -# coding: utf-8 - -""" - Database Repository Identifier Service API - - Service that manages the identifiers # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -from __future__ import absolute_import - -import unittest - -import api_container -from api_container.api.identifier_endpoint_api import IdentifierEndpointApi # noqa: E501 -from api_container.rest import ApiException - - -class TestIdentifierEndpointApi(unittest.TestCase): - """IdentifierEndpointApi unit test stubs""" - - def setUp(self): - self.api = IdentifierEndpointApi() # noqa: E501 - - def tearDown(self): - pass - - def test_create(self): - """Test case for create - - Create identifier # noqa: E501 - """ - pass - - def test_delete(self): - """Test case for delete - - Delete some identifer # noqa: E501 - """ - pass - - def test_find_all(self): - """Test case for find_all - - Find identifiers # noqa: E501 - """ - pass - - def test_publish(self): - """Test case for publish - - Publish some identifier # noqa: E501 - """ - pass - - def test_update(self): - """Test case for update - - Update some identifier # noqa: E501 - """ - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/swagger/api-identifier/test/test_image_brief_dto.py b/swagger/api-identifier/test/test_image_brief_dto.py deleted file mode 100644 index 1880479a904a6030334078247347ceb24a0ba4af..0000000000000000000000000000000000000000 --- a/swagger/api-identifier/test/test_image_brief_dto.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Database Repository Identifier Service API - - Service that manages the identifiers # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -from __future__ import absolute_import - -import unittest - -import swagger_client -from swagger_client.models.image_brief_dto import ImageBriefDto # noqa: E501 -from swagger_client.rest import ApiException - - -class TestImageBriefDto(unittest.TestCase): - """ImageBriefDto unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testImageBriefDto(self): - """Test ImageBriefDto""" - # FIXME: construct object with mandatory attributes with example values - # model = swagger_client.models.image_brief_dto.ImageBriefDto() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/swagger/api-identifier/test/test_image_date_dto.py b/swagger/api-identifier/test/test_image_date_dto.py deleted file mode 100644 index e994c292c6f627f25811afa74fd6e343563cd669..0000000000000000000000000000000000000000 --- a/swagger/api-identifier/test/test_image_date_dto.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Database Repository Identifier Service API - - Service that manages the identifiers # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -from __future__ import absolute_import - -import unittest - -import swagger_client -from swagger_client.models.image_date_dto import ImageDateDto # noqa: E501 -from swagger_client.rest import ApiException - - -class TestImageDateDto(unittest.TestCase): - """ImageDateDto unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testImageDateDto(self): - """Test ImageDateDto""" - # FIXME: construct object with mandatory attributes with example values - # model = swagger_client.models.image_date_dto.ImageDateDto() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/swagger/api-identifier/test/test_image_dto.py b/swagger/api-identifier/test/test_image_dto.py deleted file mode 100644 index ec2ad3609ac03c28731a59eab01e1e77b7916312..0000000000000000000000000000000000000000 --- a/swagger/api-identifier/test/test_image_dto.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Database Repository Identifier Service API - - Service that manages the identifiers # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -from __future__ import absolute_import - -import unittest - -import swagger_client -from swagger_client.models.image_dto import ImageDto # noqa: E501 -from swagger_client.rest import ApiException - - -class TestImageDto(unittest.TestCase): - """ImageDto unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testImageDto(self): - """Test ImageDto""" - # FIXME: construct object with mandatory attributes with example values - # model = swagger_client.models.image_dto.ImageDto() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/swagger/api-identifier/test/test_image_env_item_dto.py b/swagger/api-identifier/test/test_image_env_item_dto.py deleted file mode 100644 index 7d3b76ba4f2e911a075d992caea61e88560e4039..0000000000000000000000000000000000000000 --- a/swagger/api-identifier/test/test_image_env_item_dto.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Database Repository Identifier Service API - - Service that manages the identifiers # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -from __future__ import absolute_import - -import unittest - -import swagger_client -from swagger_client.models.image_env_item_dto import ImageEnvItemDto # noqa: E501 -from swagger_client.rest import ApiException - - -class TestImageEnvItemDto(unittest.TestCase): - """ImageEnvItemDto unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testImageEnvItemDto(self): - """Test ImageEnvItemDto""" - # FIXME: construct object with mandatory attributes with example values - # model = swagger_client.models.image_env_item_dto.ImageEnvItemDto() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/swagger/api-identifier/test/test_license_dto.py b/swagger/api-identifier/test/test_license_dto.py deleted file mode 100644 index 5bbbc3d6c4859ba4f7c5fec5dfb48d8fbd11b2dc..0000000000000000000000000000000000000000 --- a/swagger/api-identifier/test/test_license_dto.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Database Repository Identifier Service API - - Service that manages the identifiers # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -from __future__ import absolute_import - -import unittest - -import swagger_client -from swagger_client.models.license_dto import LicenseDto # noqa: E501 -from swagger_client.rest import ApiException - - -class TestLicenseDto(unittest.TestCase): - """LicenseDto unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testLicenseDto(self): - """Test LicenseDto""" - # FIXME: construct object with mandatory attributes with example values - # model = swagger_client.models.license_dto.LicenseDto() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/swagger/api-identifier/test/test_persistence_endpoint_api.py b/swagger/api-identifier/test/test_persistence_endpoint_api.py deleted file mode 100644 index e4eb5dba7080f05899ecb549ad9bae6f58915fe2..0000000000000000000000000000000000000000 --- a/swagger/api-identifier/test/test_persistence_endpoint_api.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - Database Repository Identifier Service API - - Service that manages the identifiers # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -from __future__ import absolute_import - -import unittest - -import api_container -from api_container.api.persistence_endpoint_api import PersistenceEndpointApi # noqa: E501 -from api_container.rest import ApiException - - -class TestPersistenceEndpointApi(unittest.TestCase): - """PersistenceEndpointApi unit test stubs""" - - def setUp(self): - self.api = PersistenceEndpointApi() # noqa: E501 - - def tearDown(self): - pass - - def test_find(self): - """Test case for find - - Find some identifier # noqa: E501 - """ - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/swagger/api-identifier/test/test_related_identifier_create_dto.py b/swagger/api-identifier/test/test_related_identifier_create_dto.py deleted file mode 100644 index 18b8b93eb7d995a81ce6df06aa3be49414dbf1d4..0000000000000000000000000000000000000000 --- a/swagger/api-identifier/test/test_related_identifier_create_dto.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Database Repository Identifier Service API - - Service that manages the identifiers # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -from __future__ import absolute_import - -import unittest - -import swagger_client -from swagger_client.models.related_identifier_create_dto import RelatedIdentifierCreateDto # noqa: E501 -from swagger_client.rest import ApiException - - -class TestRelatedIdentifierCreateDto(unittest.TestCase): - """RelatedIdentifierCreateDto unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testRelatedIdentifierCreateDto(self): - """Test RelatedIdentifierCreateDto""" - # FIXME: construct object with mandatory attributes with example values - # model = swagger_client.models.related_identifier_create_dto.RelatedIdentifierCreateDto() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/swagger/api-identifier/test/test_related_identifier_dto.py b/swagger/api-identifier/test/test_related_identifier_dto.py deleted file mode 100644 index 667c6648826c5c0d713f9c242b07fc91a2fadf0d..0000000000000000000000000000000000000000 --- a/swagger/api-identifier/test/test_related_identifier_dto.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Database Repository Identifier Service API - - Service that manages the identifiers # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -from __future__ import absolute_import - -import unittest - -import swagger_client -from swagger_client.models.related_identifier_dto import RelatedIdentifierDto # noqa: E501 -from swagger_client.rest import ApiException - - -class TestRelatedIdentifierDto(unittest.TestCase): - """RelatedIdentifierDto unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testRelatedIdentifierDto(self): - """Test RelatedIdentifierDto""" - # FIXME: construct object with mandatory attributes with example values - # model = swagger_client.models.related_identifier_dto.RelatedIdentifierDto() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/swagger/api-identifier/test/test_table_brief_dto.py b/swagger/api-identifier/test/test_table_brief_dto.py deleted file mode 100644 index 890b5d41494f06529b0c01c36c305d4818f500cc..0000000000000000000000000000000000000000 --- a/swagger/api-identifier/test/test_table_brief_dto.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Database Repository Identifier Service API - - Service that manages the identifiers # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -from __future__ import absolute_import - -import unittest - -import swagger_client -from swagger_client.models.table_brief_dto import TableBriefDto # noqa: E501 -from swagger_client.rest import ApiException - - -class TestTableBriefDto(unittest.TestCase): - """TableBriefDto unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testTableBriefDto(self): - """Test TableBriefDto""" - # FIXME: construct object with mandatory attributes with example values - # model = swagger_client.models.table_brief_dto.TableBriefDto() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/swagger/api-identifier/test/test_table_dto.py b/swagger/api-identifier/test/test_table_dto.py deleted file mode 100644 index cd0e9df817bca7d7f6c414e9e896796cebea5fcc..0000000000000000000000000000000000000000 --- a/swagger/api-identifier/test/test_table_dto.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Database Repository Identifier Service API - - Service that manages the identifiers # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -from __future__ import absolute_import - -import unittest - -import swagger_client -from swagger_client.models.table_dto import TableDto # noqa: E501 -from swagger_client.rest import ApiException - - -class TestTableDto(unittest.TestCase): - """TableDto unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testTableDto(self): - """Test TableDto""" - # FIXME: construct object with mandatory attributes with example values - # model = swagger_client.models.table_dto.TableDto() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/swagger/api-identifier/test/test_user_brief_dto.py b/swagger/api-identifier/test/test_user_brief_dto.py deleted file mode 100644 index 6d4e281572b45df4fba45ec9b77924d9de4075c3..0000000000000000000000000000000000000000 --- a/swagger/api-identifier/test/test_user_brief_dto.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Database Repository Identifier Service API - - Service that manages the identifiers # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -from __future__ import absolute_import - -import unittest - -import swagger_client -from swagger_client.models.user_brief_dto import UserBriefDto # noqa: E501 -from swagger_client.rest import ApiException - - -class TestUserBriefDto(unittest.TestCase): - """UserBriefDto unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testUserBriefDto(self): - """Test UserBriefDto""" - # FIXME: construct object with mandatory attributes with example values - # model = swagger_client.models.user_brief_dto.UserBriefDto() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/swagger/api-identifier/test/test_user_dto.py b/swagger/api-identifier/test/test_user_dto.py deleted file mode 100644 index 74450878ad992ad2e38161250f2f364fdb60ca30..0000000000000000000000000000000000000000 --- a/swagger/api-identifier/test/test_user_dto.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Database Repository Identifier Service API - - Service that manages the identifiers # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -from __future__ import absolute_import - -import unittest - -import swagger_client -from swagger_client.models.user_dto import UserDto # noqa: E501 -from swagger_client.rest import ApiException - - -class TestUserDto(unittest.TestCase): - """UserDto unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testUserDto(self): - """Test UserDto""" - # FIXME: construct object with mandatory attributes with example values - # model = swagger_client.models.user_dto.UserDto() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/swagger/api-identifier/tox.ini b/swagger/api-identifier/tox.ini deleted file mode 100644 index a310bec97d689718c92c84c9aebc6ab031f12933..0000000000000000000000000000000000000000 --- a/swagger/api-identifier/tox.ini +++ /dev/null @@ -1,10 +0,0 @@ -[tox] -envlist = py3 - -[testenv] -deps=-r{toxinidir}/requirements.txt - -r{toxinidir}/test-requirements.txt - -commands= - nosetests \ - [] diff --git a/swagger/api-metadata/.gitignore b/swagger/api-metadata/.gitignore deleted file mode 100644 index a655050c2631466828b5b8bfc59ae27f9ac02dc5..0000000000000000000000000000000000000000 --- a/swagger/api-metadata/.gitignore +++ /dev/null @@ -1,64 +0,0 @@ -# Byte-compiled / optimized / DLL files -__pycache__/ -*.py[cod] -*$py.class - -# C extensions -*.so - -# Distribution / packaging -.Python -env/ -build/ -develop-eggs/ -dist/ -downloads/ -eggs/ -.eggs/ -lib/ -lib64/ -parts/ -sdist/ -var/ -*.egg-info/ -.installed.cfg -*.egg - -# PyInstaller -# Usually these files are written by a python script from a template -# before PyInstaller builds the exe, so as to inject date/other infos into it. -*.manifest -*.spec - -# Installer logs -pip-log.txt -pip-delete-this-directory.txt - -# Unit test / coverage reports -htmlcov/ -.tox/ -.coverage -.coverage.* -.cache -nosetests.xml -coverage.xml -*,cover -.hypothesis/ -venv/ -.python-version - -# Translations -*.mo -*.pot - -# Django stuff: -*.log - -# Sphinx documentation -docs/_build/ - -# PyBuilder -target/ - -#Ipython Notebook -.ipynb_checkpoints diff --git a/swagger/api-metadata/.swagger-codegen-ignore b/swagger/api-metadata/.swagger-codegen-ignore deleted file mode 100644 index c5fa491b4c557bf997d5dd21797de782545dc9e5..0000000000000000000000000000000000000000 --- a/swagger/api-metadata/.swagger-codegen-ignore +++ /dev/null @@ -1,23 +0,0 @@ -# Swagger Codegen Ignore -# Generated by swagger-codegen https://github.com/swagger-api/swagger-codegen - -# Use this file to prevent files from being overwritten by the generator. -# The patterns follow closely to .gitignore or .dockerignore. - -# As an example, the C# client generator defines ApiClient.cs. -# You can make changes and tell Swagger Codgen to ignore just this file by uncommenting the following line: -#ApiClient.cs - -# You can match any string of characters against a directory, file or extension with a single asterisk (*): -#foo/*/qux -# The above matches foo/bar/qux and foo/baz/qux, but not foo/bar/baz/qux - -# You can recursively match patterns against a directory, file or extension with a double asterisk (**): -#foo/**/qux -# This matches foo/bar/qux, foo/baz/qux, and foo/bar/baz/qux - -# You can also negate patterns with an exclamation (!). -# For example, you can ignore all files in a docs folder with the file extension .md: -#docs/*.md -# Then explicitly reverse the ignore rule for a single file: -#!docs/README.md diff --git a/swagger/api-metadata/.swagger-codegen/VERSION b/swagger/api-metadata/.swagger-codegen/VERSION deleted file mode 100644 index 10bbf276ee45aaec75c7b2ada3ff71d798f89fd9..0000000000000000000000000000000000000000 --- a/swagger/api-metadata/.swagger-codegen/VERSION +++ /dev/null @@ -1 +0,0 @@ -3.0.34 \ No newline at end of file diff --git a/swagger/api-metadata/.travis.yml b/swagger/api-metadata/.travis.yml deleted file mode 100644 index dd6c4450aa902ae68479c3d76d45145e18d6052e..0000000000000000000000000000000000000000 --- a/swagger/api-metadata/.travis.yml +++ /dev/null @@ -1,13 +0,0 @@ -# ref: https://docs.travis-ci.com/user/languages/python -language: python -python: - - "3.2" - - "3.3" - - "3.4" - - "3.5" - #- "3.5-dev" # 3.5 development branch - #- "nightly" # points to the latest development branch e.g. 3.6-dev -# command to install dependencies -install: "pip install -r requirements.txt" -# command to run tests -script: nosetests diff --git a/swagger/api-metadata/README.md b/swagger/api-metadata/README.md deleted file mode 100644 index fa1e819ace2b1594a630faebb14a054f0494c614..0000000000000000000000000000000000000000 --- a/swagger/api-metadata/README.md +++ /dev/null @@ -1,86 +0,0 @@ -# swagger-client -Service that manages the metadata - -This Python package is automatically generated by the [Swagger Codegen](https://github.com/swagger-api/swagger-codegen) project: - -- API version: 1.1.0-alpha -- Package version: 1.0.0 -- Build package: io.swagger.codegen.v3.generators.python.PythonClientCodegen - -## Requirements. - -Python 2.7 and 3.4+ - -## Installation & Usage -### pip install - -If the python package is hosted on Github, you can install directly from Github - -```sh -pip install git+https://github.com/GIT_USER_ID/GIT_REPO_ID.git -``` -(you may need to run `pip` with root permission: `sudo pip install git+https://github.com/GIT_USER_ID/GIT_REPO_ID.git`) - -Then import the package: -```python -import swagger_client -``` - -### Setuptools - -Install via [Setuptools](http://pypi.python.org/pypi/setuptools). - -```sh -python setup.py install --user -``` -(or `sudo python setup.py install` to install the package for all users) - -Then import the package: -```python -import swagger_client -``` - -## Getting Started - -Please follow the [installation procedure](#installation--usage) and then run the following: - -```python -from __future__ import print_function -import time -import swagger_client -from swagger_client.rest import ApiException -from pprint import pprint - -# create an instance of the API class -api_instance = swagger_client.MetadataEndpointApi(swagger_client.ApiClient(configuration)) -verb = 'verb_example' # str | -parameters = swagger_client.OaiListIdentifiersParameters() # OaiListIdentifiersParameters | - -try: - # Get the record - api_response = api_instance.identify1111(verb, parameters) - pprint(api_response) -except ApiException as e: - print("Exception when calling MetadataEndpointApi->identify1111: %s\n" % e) -``` - -## Documentation for API Endpoints - -All URIs are relative to *http://localhost:9098* - -Class | Method | HTTP request | Description ------------- | ------------- | ------------- | ------------- -*MetadataEndpointApi* | [**identify1111**](docs/MetadataEndpointApi.md#identify1111) | **GET** /api/oai | Get the record - -## Documentation For Models - - - [OaiListIdentifiersParameters](docs/OaiListIdentifiersParameters.md) - -## Documentation For Authorization - - All endpoints do not require authorization. - - -## Author - -andreas.rauber@tuwien.ac.at diff --git a/swagger/api-metadata/git_push.sh b/swagger/api-metadata/git_push.sh deleted file mode 100644 index ae01b182ae9eb047d0999a496b060e62d7b01e5c..0000000000000000000000000000000000000000 --- a/swagger/api-metadata/git_push.sh +++ /dev/null @@ -1,52 +0,0 @@ -#!/bin/sh -# ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/ -# -# Usage example: /bin/sh ./git_push.sh wing328 swagger-petstore-perl "minor update" - -git_user_id=$1 -git_repo_id=$2 -release_note=$3 - -if [ "$git_user_id" = "" ]; then - git_user_id="GIT_USER_ID" - echo "[INFO] No command line input provided. Set \$git_user_id to $git_user_id" -fi - -if [ "$git_repo_id" = "" ]; then - git_repo_id="GIT_REPO_ID" - echo "[INFO] No command line input provided. Set \$git_repo_id to $git_repo_id" -fi - -if [ "$release_note" = "" ]; then - release_note="Minor update" - echo "[INFO] No command line input provided. Set \$release_note to $release_note" -fi - -# Initialize the local directory as a Git repository -git init - -# Adds the files in the local repository and stages them for commit. -git add . - -# Commits the tracked changes and prepares them to be pushed to a remote repository. -git commit -m "$release_note" - -# Sets the new remote -git_remote=`git remote` -if [ "$git_remote" = "" ]; then # git remote not defined - - if [ "$GIT_TOKEN" = "" ]; then - echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the git credential in your environment." - git remote add origin https://github.com/${git_user_id}/${git_repo_id}.git - else - git remote add origin https://${git_user_id}:${GIT_TOKEN}@github.com/${git_user_id}/${git_repo_id}.git - fi - -fi - -git pull origin master - -# Pushes (Forces) the changes in the local repository up to the remote repository -echo "Git pushing to https://github.com/${git_user_id}/${git_repo_id}.git" -git push origin master 2>&1 | grep -v 'To https' - diff --git a/swagger/api-metadata/requirements.txt b/swagger/api-metadata/requirements.txt deleted file mode 100644 index bafdc07532f5e1287a24c2af278f547091a410b6..0000000000000000000000000000000000000000 --- a/swagger/api-metadata/requirements.txt +++ /dev/null @@ -1,5 +0,0 @@ -certifi >= 14.05.14 -six >= 1.10 -python_dateutil >= 2.5.3 -setuptools >= 21.0.0 -urllib3 >= 1.15.1 diff --git a/swagger/api-metadata/setup.py b/swagger/api-metadata/setup.py deleted file mode 100644 index a0c11feb6329589308edff3017e93e9f867deb23..0000000000000000000000000000000000000000 --- a/swagger/api-metadata/setup.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Database Repository Metadata Service API - - Service that manages the metadata # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -from setuptools import setup, find_packages # noqa: H301 - -NAME = "swagger-client" -VERSION = "1.0.0" -# To install the library, run the following -# -# python setup.py install -# -# prerequisite: setuptools -# http://pypi.python.org/pypi/setuptools - -REQUIRES = ["urllib3 >= 1.15", "six >= 1.10", "certifi", "python-dateutil"] - -setup( - name=NAME, - version=VERSION, - description="Database Repository Metadata Service API", - author_email="andreas.rauber@tuwien.ac.at", - url="", - keywords=["Swagger", "Database Repository Metadata Service API"], - install_requires=REQUIRES, - packages=find_packages(), - include_package_data=True, - long_description="""\ - Service that manages the metadata # noqa: E501 - """ -) diff --git a/swagger/api-metadata/swagger_client/__init__.py b/swagger/api-metadata/swagger_client/__init__.py deleted file mode 100644 index 36774dfc01a6fe4a551c6107c529f7c5f16cf447..0000000000000000000000000000000000000000 --- a/swagger/api-metadata/swagger_client/__init__.py +++ /dev/null @@ -1,23 +0,0 @@ -# coding: utf-8 - -# flake8: noqa - -""" - Database Repository Metadata Service API - - Service that manages the metadata # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -from __future__ import absolute_import - -# import apis into sdk package -from swagger_client.api.metadata_endpoint_api import MetadataEndpointApi -# import ApiClient -from swagger_client.api_client import ApiClient -from swagger_client.configuration import Configuration -# import models into sdk package -from swagger_client.models.oai_list_identifiers_parameters import OaiListIdentifiersParameters diff --git a/swagger/api-metadata/swagger_client/api/__init__.py b/swagger/api-metadata/swagger_client/api/__init__.py deleted file mode 100644 index 86d3936620c4fdcec61dbaae0a63c5c027950c05..0000000000000000000000000000000000000000 --- a/swagger/api-metadata/swagger_client/api/__init__.py +++ /dev/null @@ -1,6 +0,0 @@ -from __future__ import absolute_import - -# flake8: noqa - -# import apis into api package -from swagger_client.api.metadata_endpoint_api import MetadataEndpointApi diff --git a/swagger/api-metadata/swagger_client/api/identify_endpoint_api.py b/swagger/api-metadata/swagger_client/api/identify_endpoint_api.py deleted file mode 100644 index 971c01bd34a65797ab9f544a874c2bcb1af40e9e..0000000000000000000000000000000000000000 --- a/swagger/api-metadata/swagger_client/api/identify_endpoint_api.py +++ /dev/null @@ -1,134 +0,0 @@ -# coding: utf-8 - -""" - Database Repository Metadata Service API - - Service that manages the metadata # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -from __future__ import absolute_import - -import re # noqa: F401 - -# python 2 and python 3 compatibility library -import six - -from swagger_client.api_client import ApiClient - - -class IdentifyEndpointApi(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - Ref: https://github.com/swagger-api/swagger-codegen - """ - - def __init__(self, api_client=None): - if api_client is None: - api_client = ApiClient() - self.api_client = api_client - - def identify1111(self, verb, parameters, **kwargs): # noqa: E501 - """Get the record # noqa: E501 - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.identify1111(verb, parameters, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param str verb: (required) - :param OaiListIdentifiersParameters parameters: (required) - :return: object - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.identify1111_with_http_info(verb, parameters, **kwargs) # noqa: E501 - else: - (data) = self.identify1111_with_http_info(verb, parameters, **kwargs) # noqa: E501 - return data - - def identify1111_with_http_info(self, verb, parameters, **kwargs): # noqa: E501 - """Get the record # noqa: E501 - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.identify1111_with_http_info(verb, parameters, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param str verb: (required) - :param OaiListIdentifiersParameters parameters: (required) - :return: object - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['verb', 'parameters'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in six.iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method identify1111" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'verb' is set - if ('verb' not in params or - params['verb'] is None): - raise ValueError("Missing the required parameter `verb` when calling `identify1111`") # noqa: E501 - # verify the required parameter 'parameters' is set - if ('parameters' not in params or - params['parameters'] is None): - raise ValueError("Missing the required parameter `parameters` when calling `identify1111`") # noqa: E501 - - collection_formats = {} - - path_params = {} - - query_params = [] - if 'verb' in params: - query_params.append(('verb', params['verb'])) # noqa: E501 - if 'parameters' in params: - query_params.append(('parameters', params['parameters'])) # noqa: E501 - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - # HTTP header `Accept` - header_params['Accept'] = self.api_client.select_header_accept( - ['text/xml;charset=UTF-8']) # noqa: E501 - - # Authentication setting - auth_settings = [] # noqa: E501 - - return self.api_client.call_api( - '/api/oai', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='object', # noqa: E501 - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) diff --git a/swagger/api-metadata/swagger_client/api/metadata_endpoint_api.py b/swagger/api-metadata/swagger_client/api/metadata_endpoint_api.py deleted file mode 100644 index 462e80701dcd394caeb0e10f0b1f8370634373cb..0000000000000000000000000000000000000000 --- a/swagger/api-metadata/swagger_client/api/metadata_endpoint_api.py +++ /dev/null @@ -1,134 +0,0 @@ -# coding: utf-8 - -""" - Database Repository Metadata Service API - - Service that manages the metadata # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -from __future__ import absolute_import - -import re # noqa: F401 - -# python 2 and python 3 compatibility library -import six - -from swagger_client.api_client import ApiClient - - -class MetadataEndpointApi(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - Ref: https://github.com/swagger-api/swagger-codegen - """ - - def __init__(self, api_client=None): - if api_client is None: - api_client = ApiClient() - self.api_client = api_client - - def identify1111(self, verb, parameters, **kwargs): # noqa: E501 - """Get the record # noqa: E501 - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.identify1111(verb, parameters, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param str verb: (required) - :param OaiListIdentifiersParameters parameters: (required) - :return: object - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.identify1111_with_http_info(verb, parameters, **kwargs) # noqa: E501 - else: - (data) = self.identify1111_with_http_info(verb, parameters, **kwargs) # noqa: E501 - return data - - def identify1111_with_http_info(self, verb, parameters, **kwargs): # noqa: E501 - """Get the record # noqa: E501 - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.identify1111_with_http_info(verb, parameters, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param str verb: (required) - :param OaiListIdentifiersParameters parameters: (required) - :return: object - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['verb', 'parameters'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in six.iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method identify1111" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'verb' is set - if ('verb' not in params or - params['verb'] is None): - raise ValueError("Missing the required parameter `verb` when calling `identify1111`") # noqa: E501 - # verify the required parameter 'parameters' is set - if ('parameters' not in params or - params['parameters'] is None): - raise ValueError("Missing the required parameter `parameters` when calling `identify1111`") # noqa: E501 - - collection_formats = {} - - path_params = {} - - query_params = [] - if 'verb' in params: - query_params.append(('verb', params['verb'])) # noqa: E501 - if 'parameters' in params: - query_params.append(('parameters', params['parameters'])) # noqa: E501 - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - # HTTP header `Accept` - header_params['Accept'] = self.api_client.select_header_accept( - ['text/xml;charset=UTF-8']) # noqa: E501 - - # Authentication setting - auth_settings = [] # noqa: E501 - - return self.api_client.call_api( - '/api/oai', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='object', # noqa: E501 - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) diff --git a/swagger/api-metadata/swagger_client/api_client.py b/swagger/api-metadata/swagger_client/api_client.py deleted file mode 100644 index 20d104fc6257149535ebdc63e7492354c69e4ffc..0000000000000000000000000000000000000000 --- a/swagger/api-metadata/swagger_client/api_client.py +++ /dev/null @@ -1,632 +0,0 @@ -# coding: utf-8 -""" - Database Repository Metadata Service API - - Service that manages the metadata # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" -from __future__ import absolute_import - -import datetime -import json -import mimetypes -from multiprocessing.pool import ThreadPool -import os -import re -import tempfile - -# python 2 and python 3 compatibility library -import six -from six.moves.urllib.parse import quote - -from swagger_client.configuration import Configuration -import swagger_client.models -from swagger_client import rest - - -class ApiClient(object): - """Generic API client for Swagger client library builds. - - Swagger generic API client. This client handles the client- - server communication, and is invariant across implementations. Specifics of - the methods and models for each application are generated from the Swagger - templates. - - NOTE: This class is auto generated by the swagger code generator program. - Ref: https://github.com/swagger-api/swagger-codegen - Do not edit the class manually. - - :param configuration: .Configuration object for this client - :param header_name: a header to pass when making calls to the API. - :param header_value: a header value to pass when making calls to - the API. - :param cookie: a cookie to include in the header when making calls - to the API - """ - - PRIMITIVE_TYPES = (float, bool, bytes, six.text_type) + six.integer_types - NATIVE_TYPES_MAPPING = { - 'int': int, - 'long': int if six.PY3 else long, # noqa: F821 - 'float': float, - 'str': str, - 'bool': bool, - 'date': datetime.date, - 'datetime': datetime.datetime, - 'object': object, - } - - def __init__(self, configuration=None, header_name=None, header_value=None, - cookie=None): - if configuration is None: - configuration = Configuration() - self.configuration = configuration - - self.pool = ThreadPool() - self.rest_client = rest.RESTClientObject(configuration) - self.default_headers = {} - if header_name is not None: - self.default_headers[header_name] = header_value - self.cookie = cookie - # Set default User-Agent. - self.user_agent = 'Swagger-Codegen/1.0.0/python' - - def __del__(self): - self.pool.close() - self.pool.join() - - @property - def user_agent(self): - """User agent for this API client""" - return self.default_headers['User-Agent'] - - @user_agent.setter - def user_agent(self, value): - self.default_headers['User-Agent'] = value - - def set_default_header(self, header_name, header_value): - self.default_headers[header_name] = header_value - - def __call_api( - self, resource_path, method, path_params=None, - query_params=None, header_params=None, body=None, post_params=None, - files=None, response_type=None, auth_settings=None, - _return_http_data_only=None, collection_formats=None, - _preload_content=True, _request_timeout=None): - - config = self.configuration - - # header parameters - header_params = header_params or {} - header_params.update(self.default_headers) - if self.cookie: - header_params['Cookie'] = self.cookie - if header_params: - header_params = self.sanitize_for_serialization(header_params) - header_params = dict(self.parameters_to_tuples(header_params, - collection_formats)) - - # path parameters - if path_params: - path_params = self.sanitize_for_serialization(path_params) - path_params = self.parameters_to_tuples(path_params, - collection_formats) - for k, v in path_params: - # specified safe chars, encode everything - resource_path = resource_path.replace( - '{%s}' % k, - quote(str(v), safe=config.safe_chars_for_path_param) - ) - - # query parameters - if query_params: - query_params = self.sanitize_for_serialization(query_params) - query_params = self.parameters_to_tuples(query_params, - collection_formats) - - # post parameters - if post_params or files: - post_params = self.prepare_post_parameters(post_params, files) - post_params = self.sanitize_for_serialization(post_params) - post_params = self.parameters_to_tuples(post_params, - collection_formats) - - # auth setting - self.update_params_for_auth(header_params, query_params, auth_settings) - - # body - if body: - body = self.sanitize_for_serialization(body) - - # request url - url = self.configuration.host + resource_path - - # perform request and return response - response_data = self.request( - method, url, query_params=query_params, headers=header_params, - post_params=post_params, body=body, - _preload_content=_preload_content, - _request_timeout=_request_timeout) - - self.last_response = response_data - - return_data = response_data - if _preload_content: - # deserialize response data - if response_type: - return_data = self.deserialize(response_data, response_type) - else: - return_data = None - - if _return_http_data_only: - return (return_data) - else: - return (return_data, response_data.status, - response_data.getheaders()) - - def sanitize_for_serialization(self, obj): - """Builds a JSON POST object. - - If obj is None, return None. - If obj is str, int, long, float, bool, return directly. - If obj is datetime.datetime, datetime.date - convert to string in iso8601 format. - If obj is list, sanitize each element in the list. - If obj is dict, return the dict. - If obj is swagger model, return the properties dict. - - :param obj: The data to serialize. - :return: The serialized form of data. - """ - if obj is None: - return None - elif isinstance(obj, self.PRIMITIVE_TYPES): - return obj - elif isinstance(obj, list): - return [self.sanitize_for_serialization(sub_obj) - for sub_obj in obj] - elif isinstance(obj, tuple): - return tuple(self.sanitize_for_serialization(sub_obj) - for sub_obj in obj) - elif isinstance(obj, (datetime.datetime, datetime.date)): - return obj.isoformat() - - if isinstance(obj, dict): - obj_dict = obj - else: - # Convert model obj to dict except - # attributes `swagger_types`, `attribute_map` - # and attributes which value is not None. - # Convert attribute name to json key in - # model definition for request. - obj_dict = {obj.attribute_map[attr]: getattr(obj, attr) - for attr, _ in six.iteritems(obj.swagger_types) - if getattr(obj, attr) is not None} - - return {key: self.sanitize_for_serialization(val) - for key, val in six.iteritems(obj_dict)} - - def deserialize(self, response, response_type): - """Deserializes response into an object. - - :param response: RESTResponse object to be deserialized. - :param response_type: class literal for - deserialized object, or string of class name. - - :return: deserialized object. - """ - # handle file downloading - # save response body into a tmp file and return the instance - if response_type == "file": - return self.__deserialize_file(response) - - # fetch data from response object - try: - data = json.loads(response.data) - except ValueError: - data = response.data - - return self.__deserialize(data, response_type) - - def __deserialize(self, data, klass): - """Deserializes dict, list, str into an object. - - :param data: dict, list or str. - :param klass: class literal, or string of class name. - - :return: object. - """ - if data is None: - return None - - if type(klass) == str: - if klass.startswith('list['): - sub_kls = re.match(r'list\[(.*)\]', klass).group(1) - return [self.__deserialize(sub_data, sub_kls) - for sub_data in data] - - if klass.startswith('dict('): - sub_kls = re.match(r'dict\(([^,]*), (.*)\)', klass).group(2) - return {k: self.__deserialize(v, sub_kls) - for k, v in six.iteritems(data)} - - # convert str to class - if klass in self.NATIVE_TYPES_MAPPING: - klass = self.NATIVE_TYPES_MAPPING[klass] - else: - klass = getattr(swagger_client.models, klass) - - if klass in self.PRIMITIVE_TYPES: - return self.__deserialize_primitive(data, klass) - elif klass == object: - return self.__deserialize_object(data) - elif klass == datetime.date: - return self.__deserialize_date(data) - elif klass == datetime.datetime: - return self.__deserialize_datatime(data) - else: - return self.__deserialize_model(data, klass) - - def call_api(self, resource_path, method, - path_params=None, query_params=None, header_params=None, - body=None, post_params=None, files=None, - response_type=None, auth_settings=None, async_req=None, - _return_http_data_only=None, collection_formats=None, - _preload_content=True, _request_timeout=None): - """Makes the HTTP request (synchronous) and returns deserialized data. - - To make an async request, set the async_req parameter. - - :param resource_path: Path to method endpoint. - :param method: Method to call. - :param path_params: Path parameters in the url. - :param query_params: Query parameters in the url. - :param header_params: Header parameters to be - placed in the request header. - :param body: Request body. - :param post_params dict: Request post form parameters, - for `application/x-www-form-urlencoded`, `multipart/form-data`. - :param auth_settings list: Auth Settings names for the request. - :param response: Response data type. - :param files dict: key -> filename, value -> filepath, - for `multipart/form-data`. - :param async_req bool: execute request asynchronously - :param _return_http_data_only: response data without head status code - and headers - :param collection_formats: dict of collection formats for path, query, - header, and post parameters. - :param _preload_content: if False, the urllib3.HTTPResponse object will - be returned without reading/decoding response - data. Default is True. - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :return: - If async_req parameter is True, - the request will be called asynchronously. - The method will return the request thread. - If parameter async_req is False or missing, - then the method will return the response directly. - """ - if not async_req: - return self.__call_api(resource_path, method, - path_params, query_params, header_params, - body, post_params, files, - response_type, auth_settings, - _return_http_data_only, collection_formats, - _preload_content, _request_timeout) - else: - thread = self.pool.apply_async(self.__call_api, (resource_path, - method, path_params, query_params, - header_params, body, - post_params, files, - response_type, auth_settings, - _return_http_data_only, - collection_formats, - _preload_content, _request_timeout)) - return thread - - def request(self, method, url, query_params=None, headers=None, - post_params=None, body=None, _preload_content=True, - _request_timeout=None): - """Makes the HTTP request using RESTClient.""" - if method == "GET": - return self.rest_client.GET(url, - query_params=query_params, - _preload_content=_preload_content, - _request_timeout=_request_timeout, - headers=headers) - elif method == "HEAD": - return self.rest_client.HEAD(url, - query_params=query_params, - _preload_content=_preload_content, - _request_timeout=_request_timeout, - headers=headers) - elif method == "OPTIONS": - return self.rest_client.OPTIONS(url, - query_params=query_params, - headers=headers, - post_params=post_params, - _preload_content=_preload_content, - _request_timeout=_request_timeout, - body=body) - elif method == "POST": - return self.rest_client.POST(url, - query_params=query_params, - headers=headers, - post_params=post_params, - _preload_content=_preload_content, - _request_timeout=_request_timeout, - body=body) - elif method == "PUT": - return self.rest_client.PUT(url, - query_params=query_params, - headers=headers, - post_params=post_params, - _preload_content=_preload_content, - _request_timeout=_request_timeout, - body=body) - elif method == "PATCH": - return self.rest_client.PATCH(url, - query_params=query_params, - headers=headers, - post_params=post_params, - _preload_content=_preload_content, - _request_timeout=_request_timeout, - body=body) - elif method == "DELETE": - return self.rest_client.DELETE(url, - query_params=query_params, - headers=headers, - _preload_content=_preload_content, - _request_timeout=_request_timeout, - body=body) - else: - raise ValueError( - "http method must be `GET`, `HEAD`, `OPTIONS`," - " `POST`, `PATCH`, `PUT` or `DELETE`." - ) - - def parameters_to_tuples(self, params, collection_formats): - """Get parameters as list of tuples, formatting collections. - - :param params: Parameters as dict or list of two-tuples - :param dict collection_formats: Parameter collection formats - :return: Parameters as list of tuples, collections formatted - """ - new_params = [] - if collection_formats is None: - collection_formats = {} - for k, v in six.iteritems(params) if isinstance(params, dict) else params: # noqa: E501 - if k in collection_formats: - collection_format = collection_formats[k] - if collection_format == 'multi': - new_params.extend((k, value) for value in v) - else: - if collection_format == 'ssv': - delimiter = ' ' - elif collection_format == 'tsv': - delimiter = '\t' - elif collection_format == 'pipes': - delimiter = '|' - else: # csv is the default - delimiter = ',' - new_params.append( - (k, delimiter.join(str(value) for value in v))) - else: - new_params.append((k, v)) - return new_params - - def prepare_post_parameters(self, post_params=None, files=None): - """Builds form parameters. - - :param post_params: Normal form parameters. - :param files: File parameters. - :return: Form parameters with files. - """ - params = [] - - if post_params: - params = post_params - - if files: - for k, v in six.iteritems(files): - if not v: - continue - file_names = v if type(v) is list else [v] - for n in file_names: - with open(n, 'rb') as f: - filename = os.path.basename(f.name) - filedata = f.read() - mimetype = (mimetypes.guess_type(filename)[0] or - 'application/octet-stream') - params.append( - tuple([k, tuple([filename, filedata, mimetype])])) - - return params - - def select_header_accept(self, accepts): - """Returns `Accept` based on an array of accepts provided. - - :param accepts: List of headers. - :return: Accept (e.g. application/json). - """ - if not accepts: - return - - accepts = [x.lower() for x in accepts] - - if 'application/json' in accepts: - return 'application/json' - else: - return ', '.join(accepts) - - def select_header_content_type(self, content_types): - """Returns `Content-Type` based on an array of content_types provided. - - :param content_types: List of content-types. - :return: Content-Type (e.g. application/json). - """ - if not content_types: - return 'application/json' - - content_types = [x.lower() for x in content_types] - - if 'application/json' in content_types or '*/*' in content_types: - return 'application/json' - else: - return content_types[0] - - def update_params_for_auth(self, headers, querys, auth_settings): - """Updates header and query params based on authentication setting. - - :param headers: Header parameters dict to be updated. - :param querys: Query parameters tuple list to be updated. - :param auth_settings: Authentication setting identifiers list. - """ - if not auth_settings: - return - - for auth in auth_settings: - auth_setting = self.configuration.auth_settings().get(auth) - if auth_setting: - if not auth_setting['value']: - continue - elif auth_setting['in'] == 'header': - headers[auth_setting['key']] = auth_setting['value'] - elif auth_setting['in'] == 'query': - querys.append((auth_setting['key'], auth_setting['value'])) - else: - raise ValueError( - 'Authentication token must be in `query` or `header`' - ) - - def __deserialize_file(self, response): - """Deserializes body to file - - Saves response body into a file in a temporary folder, - using the filename from the `Content-Disposition` header if provided. - - :param response: RESTResponse. - :return: file path. - """ - fd, path = tempfile.mkstemp(dir=self.configuration.temp_folder_path) - os.close(fd) - os.remove(path) - - content_disposition = response.getheader("Content-Disposition") - if content_disposition: - filename = re.search(r'filename=[\'"]?([^\'"\s]+)[\'"]?', - content_disposition).group(1) - path = os.path.join(os.path.dirname(path), filename) - response_data = response.data - with open(path, "wb") as f: - if isinstance(response_data, str): - # change str to bytes so we can write it - response_data = response_data.encode('utf-8') - f.write(response_data) - else: - f.write(response_data) - return path - - def __deserialize_primitive(self, data, klass): - """Deserializes string to primitive type. - - :param data: str. - :param klass: class literal. - - :return: int, long, float, str, bool. - """ - try: - return klass(data) - except UnicodeEncodeError: - return six.text_type(data) - except TypeError: - return data - - def __deserialize_object(self, value): - """Return a original value. - - :return: object. - """ - return value - - def __deserialize_date(self, string): - """Deserializes string to date. - - :param string: str. - :return: date. - """ - try: - from dateutil.parser import parse - return parse(string).date() - except ImportError: - return string - except ValueError: - raise rest.ApiException( - status=0, - reason="Failed to parse `{0}` as date object".format(string) - ) - - def __deserialize_datatime(self, string): - """Deserializes string to datetime. - - The string should be in iso8601 datetime format. - - :param string: str. - :return: datetime. - """ - try: - from dateutil.parser import parse - return parse(string) - except ImportError: - return string - except ValueError: - raise rest.ApiException( - status=0, - reason=( - "Failed to parse `{0}` as datetime object" - .format(string) - ) - ) - - def __hasattr(self, object, name): - return name in object.__class__.__dict__ - - def __deserialize_model(self, data, klass): - """Deserializes list or dict to model. - - :param data: dict, list. - :param klass: class literal. - :return: model object. - """ - - if not klass.swagger_types and not self.__hasattr(klass, 'get_real_child_model'): - return data - - kwargs = {} - if klass.swagger_types is not None: - for attr, attr_type in six.iteritems(klass.swagger_types): - if (data is not None and - klass.attribute_map[attr] in data and - isinstance(data, (list, dict))): - value = data[klass.attribute_map[attr]] - kwargs[attr] = self.__deserialize(value, attr_type) - - instance = klass(**kwargs) - - if (isinstance(instance, dict) and - klass.swagger_types is not None and - isinstance(data, dict)): - for key, value in data.items(): - if key not in klass.swagger_types: - instance[key] = value - if self.__hasattr(instance, 'get_real_child_model'): - klass_name = instance.get_real_child_model(data) - if klass_name: - instance = self.__deserialize(data, klass_name) - return instance diff --git a/swagger/api-metadata/swagger_client/configuration.py b/swagger/api-metadata/swagger_client/configuration.py deleted file mode 100644 index 5a769b5a8ace1b8a546c4bcc154a732248cd551a..0000000000000000000000000000000000000000 --- a/swagger/api-metadata/swagger_client/configuration.py +++ /dev/null @@ -1,244 +0,0 @@ -# coding: utf-8 - -""" - Database Repository Metadata Service API - - Service that manages the metadata # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -from __future__ import absolute_import - -import copy -import logging -import multiprocessing -import sys -import urllib3 - -import six -from six.moves import http_client as httplib - - -class TypeWithDefault(type): - def __init__(cls, name, bases, dct): - super(TypeWithDefault, cls).__init__(name, bases, dct) - cls._default = None - - def __call__(cls): - if cls._default is None: - cls._default = type.__call__(cls) - return copy.copy(cls._default) - - def set_default(cls, default): - cls._default = copy.copy(default) - - -class Configuration(six.with_metaclass(TypeWithDefault, object)): - """NOTE: This class is auto generated by the swagger code generator program. - - Ref: https://github.com/swagger-api/swagger-codegen - Do not edit the class manually. - """ - - def __init__(self): - """Constructor""" - # Default Base url - self.host = "http://localhost:9098" - # Temp file folder for downloading files - self.temp_folder_path = None - - # Authentication Settings - # dict to store API key(s) - self.api_key = {} - # dict to store API prefix (e.g. Bearer) - self.api_key_prefix = {} - # function to refresh API key if expired - self.refresh_api_key_hook = None - # Username for HTTP basic authentication - self.username = "" - # Password for HTTP basic authentication - self.password = "" - # Logging Settings - self.logger = {} - self.logger["package_logger"] = logging.getLogger("swagger_client") - self.logger["urllib3_logger"] = logging.getLogger("urllib3") - # Log format - self.logger_format = '%(asctime)s %(levelname)s %(message)s' - # Log stream handler - self.logger_stream_handler = None - # Log file handler - self.logger_file_handler = None - # Debug file location - self.logger_file = None - # Debug switch - self.debug = False - - # SSL/TLS verification - # Set this to false to skip verifying SSL certificate when calling API - # from https server. - self.verify_ssl = True - # Set this to customize the certificate file to verify the peer. - self.ssl_ca_cert = None - # client certificate file - self.cert_file = None - # client key file - self.key_file = None - # Set this to True/False to enable/disable SSL hostname verification. - self.assert_hostname = None - - # urllib3 connection pool's maximum number of connections saved - # per pool. urllib3 uses 1 connection as default value, but this is - # not the best value when you are making a lot of possibly parallel - # requests to the same host, which is often the case here. - # cpu_count * 5 is used as default value to increase performance. - self.connection_pool_maxsize = multiprocessing.cpu_count() * 5 - - # Proxy URL - self.proxy = None - # Safe chars for path_param - self.safe_chars_for_path_param = '' - - @property - def logger_file(self): - """The logger file. - - If the logger_file is None, then add stream handler and remove file - handler. Otherwise, add file handler and remove stream handler. - - :param value: The logger_file path. - :type: str - """ - return self.__logger_file - - @logger_file.setter - def logger_file(self, value): - """The logger file. - - If the logger_file is None, then add stream handler and remove file - handler. Otherwise, add file handler and remove stream handler. - - :param value: The logger_file path. - :type: str - """ - self.__logger_file = value - if self.__logger_file: - # If set logging file, - # then add file handler and remove stream handler. - self.logger_file_handler = logging.FileHandler(self.__logger_file) - self.logger_file_handler.setFormatter(self.logger_formatter) - for _, logger in six.iteritems(self.logger): - logger.addHandler(self.logger_file_handler) - if self.logger_stream_handler: - logger.removeHandler(self.logger_stream_handler) - else: - # If not set logging file, - # then add stream handler and remove file handler. - self.logger_stream_handler = logging.StreamHandler() - self.logger_stream_handler.setFormatter(self.logger_formatter) - for _, logger in six.iteritems(self.logger): - logger.addHandler(self.logger_stream_handler) - if self.logger_file_handler: - logger.removeHandler(self.logger_file_handler) - - @property - def debug(self): - """Debug status - - :param value: The debug status, True or False. - :type: bool - """ - return self.__debug - - @debug.setter - def debug(self, value): - """Debug status - - :param value: The debug status, True or False. - :type: bool - """ - self.__debug = value - if self.__debug: - # if debug status is True, turn on debug logging - for _, logger in six.iteritems(self.logger): - logger.setLevel(logging.DEBUG) - # turn on httplib debug - httplib.HTTPConnection.debuglevel = 1 - else: - # if debug status is False, turn off debug logging, - # setting log level to default `logging.WARNING` - for _, logger in six.iteritems(self.logger): - logger.setLevel(logging.WARNING) - # turn off httplib debug - httplib.HTTPConnection.debuglevel = 0 - - @property - def logger_format(self): - """The logger format. - - The logger_formatter will be updated when sets logger_format. - - :param value: The format string. - :type: str - """ - return self.__logger_format - - @logger_format.setter - def logger_format(self, value): - """The logger format. - - The logger_formatter will be updated when sets logger_format. - - :param value: The format string. - :type: str - """ - self.__logger_format = value - self.logger_formatter = logging.Formatter(self.__logger_format) - - def get_api_key_with_prefix(self, identifier): - """Gets API key (with prefix if set). - - :param identifier: The identifier of apiKey. - :return: The token for api key authentication. - """ - if self.refresh_api_key_hook: - self.refresh_api_key_hook(self) - - key = self.api_key.get(identifier) - if key: - prefix = self.api_key_prefix.get(identifier) - if prefix: - return "%s %s" % (prefix, key) - else: - return key - - def get_basic_auth_token(self): - """Gets HTTP basic authentication header (string). - - :return: The token for basic HTTP authentication. - """ - return urllib3.util.make_headers( - basic_auth=self.username + ':' + self.password - ).get('authorization') - - def auth_settings(self): - """Gets Auth Settings dict for api client. - - :return: The Auth Settings information dict. - """ - return { - } - - def to_debug_report(self): - """Gets the essential information for debugging. - - :return: The report for debugging. - """ - return "Python SDK Debug Report:\n"\ - "OS: {env}\n"\ - "Python Version: {pyversion}\n"\ - "Version of the API: 1.1.0-alpha\n"\ - "SDK Package Version: 1.0.0".\ - format(env=sys.platform, pyversion=sys.version) diff --git a/swagger/api-metadata/swagger_client/models/__init__.py b/swagger/api-metadata/swagger_client/models/__init__.py deleted file mode 100644 index 522c26021f02799ec69fea85df93de8d82bbb2aa..0000000000000000000000000000000000000000 --- a/swagger/api-metadata/swagger_client/models/__init__.py +++ /dev/null @@ -1,17 +0,0 @@ -# coding: utf-8 - -# flake8: noqa -""" - Database Repository Metadata Service API - - Service that manages the metadata # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -from __future__ import absolute_import - -# import models into model package -from swagger_client.models.oai_list_identifiers_parameters import OaiListIdentifiersParameters diff --git a/swagger/api-metadata/swagger_client/models/oai_list_identifiers_parameters.py b/swagger/api-metadata/swagger_client/models/oai_list_identifiers_parameters.py deleted file mode 100644 index 9d3169865c8f2d53e3b6afe09f14843cb36ea3ac..0000000000000000000000000000000000000000 --- a/swagger/api-metadata/swagger_client/models/oai_list_identifiers_parameters.py +++ /dev/null @@ -1,292 +0,0 @@ -# coding: utf-8 - -""" - Database Repository Metadata Service API - - Service that manages the metadata # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -import pprint -import re # noqa: F401 - -import six - -class OaiListIdentifiersParameters(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'metadata_prefix': 'str', - '_from': 'str', - 'until': 'str', - 'set': 'str', - 'resumption_token': 'str', - 'parameters_string': 'str', - 'from_date': 'datetime', - 'until_date': 'datetime' - } - - attribute_map = { - 'metadata_prefix': 'metadataPrefix', - '_from': 'from', - 'until': 'until', - 'set': 'set', - 'resumption_token': 'resumptionToken', - 'parameters_string': 'parametersString', - 'from_date': 'fromDate', - 'until_date': 'untilDate' - } - - def __init__(self, metadata_prefix=None, _from=None, until=None, set=None, resumption_token=None, parameters_string=None, from_date=None, until_date=None): # noqa: E501 - """OaiListIdentifiersParameters - a model defined in Swagger""" # noqa: E501 - self._metadata_prefix = None - self.__from = None - self._until = None - self._set = None - self._resumption_token = None - self._parameters_string = None - self._from_date = None - self._until_date = None - self.discriminator = None - if metadata_prefix is not None: - self.metadata_prefix = metadata_prefix - if _from is not None: - self._from = _from - if until is not None: - self.until = until - if set is not None: - self.set = set - if resumption_token is not None: - self.resumption_token = resumption_token - if parameters_string is not None: - self.parameters_string = parameters_string - if from_date is not None: - self.from_date = from_date - if until_date is not None: - self.until_date = until_date - - @property - def metadata_prefix(self): - """Gets the metadata_prefix of this OaiListIdentifiersParameters. # noqa: E501 - - - :return: The metadata_prefix of this OaiListIdentifiersParameters. # noqa: E501 - :rtype: str - """ - return self._metadata_prefix - - @metadata_prefix.setter - def metadata_prefix(self, metadata_prefix): - """Sets the metadata_prefix of this OaiListIdentifiersParameters. - - - :param metadata_prefix: The metadata_prefix of this OaiListIdentifiersParameters. # noqa: E501 - :type: str - """ - - self._metadata_prefix = metadata_prefix - - @property - def _from(self): - """Gets the _from of this OaiListIdentifiersParameters. # noqa: E501 - - - :return: The _from of this OaiListIdentifiersParameters. # noqa: E501 - :rtype: str - """ - return self.__from - - @_from.setter - def _from(self, _from): - """Sets the _from of this OaiListIdentifiersParameters. - - - :param _from: The _from of this OaiListIdentifiersParameters. # noqa: E501 - :type: str - """ - - self.__from = _from - - @property - def until(self): - """Gets the until of this OaiListIdentifiersParameters. # noqa: E501 - - - :return: The until of this OaiListIdentifiersParameters. # noqa: E501 - :rtype: str - """ - return self._until - - @until.setter - def until(self, until): - """Sets the until of this OaiListIdentifiersParameters. - - - :param until: The until of this OaiListIdentifiersParameters. # noqa: E501 - :type: str - """ - - self._until = until - - @property - def set(self): - """Gets the set of this OaiListIdentifiersParameters. # noqa: E501 - - - :return: The set of this OaiListIdentifiersParameters. # noqa: E501 - :rtype: str - """ - return self._set - - @set.setter - def set(self, set): - """Sets the set of this OaiListIdentifiersParameters. - - - :param set: The set of this OaiListIdentifiersParameters. # noqa: E501 - :type: str - """ - - self._set = set - - @property - def resumption_token(self): - """Gets the resumption_token of this OaiListIdentifiersParameters. # noqa: E501 - - - :return: The resumption_token of this OaiListIdentifiersParameters. # noqa: E501 - :rtype: str - """ - return self._resumption_token - - @resumption_token.setter - def resumption_token(self, resumption_token): - """Sets the resumption_token of this OaiListIdentifiersParameters. - - - :param resumption_token: The resumption_token of this OaiListIdentifiersParameters. # noqa: E501 - :type: str - """ - - self._resumption_token = resumption_token - - @property - def parameters_string(self): - """Gets the parameters_string of this OaiListIdentifiersParameters. # noqa: E501 - - - :return: The parameters_string of this OaiListIdentifiersParameters. # noqa: E501 - :rtype: str - """ - return self._parameters_string - - @parameters_string.setter - def parameters_string(self, parameters_string): - """Sets the parameters_string of this OaiListIdentifiersParameters. - - - :param parameters_string: The parameters_string of this OaiListIdentifiersParameters. # noqa: E501 - :type: str - """ - - self._parameters_string = parameters_string - - @property - def from_date(self): - """Gets the from_date of this OaiListIdentifiersParameters. # noqa: E501 - - - :return: The from_date of this OaiListIdentifiersParameters. # noqa: E501 - :rtype: datetime - """ - return self._from_date - - @from_date.setter - def from_date(self, from_date): - """Sets the from_date of this OaiListIdentifiersParameters. - - - :param from_date: The from_date of this OaiListIdentifiersParameters. # noqa: E501 - :type: datetime - """ - - self._from_date = from_date - - @property - def until_date(self): - """Gets the until_date of this OaiListIdentifiersParameters. # noqa: E501 - - - :return: The until_date of this OaiListIdentifiersParameters. # noqa: E501 - :rtype: datetime - """ - return self._until_date - - @until_date.setter - def until_date(self, until_date): - """Sets the until_date of this OaiListIdentifiersParameters. - - - :param until_date: The until_date of this OaiListIdentifiersParameters. # noqa: E501 - :type: datetime - """ - - self._until_date = until_date - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(OaiListIdentifiersParameters, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, OaiListIdentifiersParameters): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/swagger/api-metadata/swagger_client/rest.py b/swagger/api-metadata/swagger_client/rest.py deleted file mode 100644 index 886644736010d4e652a34f9006bb2aa7249ca900..0000000000000000000000000000000000000000 --- a/swagger/api-metadata/swagger_client/rest.py +++ /dev/null @@ -1,317 +0,0 @@ -# coding: utf-8 - -""" - Database Repository Metadata Service API - - Service that manages the metadata # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -from __future__ import absolute_import - -import io -import json -import logging -import re -import ssl - -import certifi -# python 2 and python 3 compatibility library -import six -from six.moves.urllib.parse import urlencode - -try: - import urllib3 -except ImportError: - raise ImportError('Swagger python client requires urllib3.') - - -logger = logging.getLogger(__name__) - - -class RESTResponse(io.IOBase): - - def __init__(self, resp): - self.urllib3_response = resp - self.status = resp.status - self.reason = resp.reason - self.data = resp.data - - def getheaders(self): - """Returns a dictionary of the response headers.""" - return self.urllib3_response.getheaders() - - def getheader(self, name, default=None): - """Returns a given response header.""" - return self.urllib3_response.getheader(name, default) - - -class RESTClientObject(object): - - def __init__(self, configuration, pools_size=4, maxsize=None): - # urllib3.PoolManager will pass all kw parameters to connectionpool - # https://github.com/shazow/urllib3/blob/f9409436f83aeb79fbaf090181cd81b784f1b8ce/urllib3/poolmanager.py#L75 # noqa: E501 - # https://github.com/shazow/urllib3/blob/f9409436f83aeb79fbaf090181cd81b784f1b8ce/urllib3/connectionpool.py#L680 # noqa: E501 - # maxsize is the number of requests to host that are allowed in parallel # noqa: E501 - # Custom SSL certificates and client certificates: http://urllib3.readthedocs.io/en/latest/advanced-usage.html # noqa: E501 - - # cert_reqs - if configuration.verify_ssl: - cert_reqs = ssl.CERT_REQUIRED - else: - cert_reqs = ssl.CERT_NONE - - # ca_certs - if configuration.ssl_ca_cert: - ca_certs = configuration.ssl_ca_cert - else: - # if not set certificate file, use Mozilla's root certificates. - ca_certs = certifi.where() - - addition_pool_args = {} - if configuration.assert_hostname is not None: - addition_pool_args['assert_hostname'] = configuration.assert_hostname # noqa: E501 - - if maxsize is None: - if configuration.connection_pool_maxsize is not None: - maxsize = configuration.connection_pool_maxsize - else: - maxsize = 4 - - # https pool manager - if configuration.proxy: - self.pool_manager = urllib3.ProxyManager( - num_pools=pools_size, - maxsize=maxsize, - cert_reqs=cert_reqs, - ca_certs=ca_certs, - cert_file=configuration.cert_file, - key_file=configuration.key_file, - proxy_url=configuration.proxy, - **addition_pool_args - ) - else: - self.pool_manager = urllib3.PoolManager( - num_pools=pools_size, - maxsize=maxsize, - cert_reqs=cert_reqs, - ca_certs=ca_certs, - cert_file=configuration.cert_file, - key_file=configuration.key_file, - **addition_pool_args - ) - - def request(self, method, url, query_params=None, headers=None, - body=None, post_params=None, _preload_content=True, - _request_timeout=None): - """Perform requests. - - :param method: http request method - :param url: http request url - :param query_params: query parameters in the url - :param headers: http request headers - :param body: request json body, for `application/json` - :param post_params: request post parameters, - `application/x-www-form-urlencoded` - and `multipart/form-data` - :param _preload_content: if False, the urllib3.HTTPResponse object will - be returned without reading/decoding response - data. Default is True. - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - """ - method = method.upper() - assert method in ['GET', 'HEAD', 'DELETE', 'POST', 'PUT', - 'PATCH', 'OPTIONS'] - - if post_params and body: - raise ValueError( - "body parameter cannot be used with post_params parameter." - ) - - post_params = post_params or {} - headers = headers or {} - - timeout = None - if _request_timeout: - if isinstance(_request_timeout, (int, ) if six.PY3 else (int, long)): # noqa: E501,F821 - timeout = urllib3.Timeout(total=_request_timeout) - elif (isinstance(_request_timeout, tuple) and - len(_request_timeout) == 2): - timeout = urllib3.Timeout( - connect=_request_timeout[0], read=_request_timeout[1]) - - if 'Content-Type' not in headers: - headers['Content-Type'] = 'application/json' - - try: - # For `POST`, `PUT`, `PATCH`, `OPTIONS`, `DELETE` - if method in ['POST', 'PUT', 'PATCH', 'OPTIONS', 'DELETE']: - if query_params: - url += '?' + urlencode(query_params) - if re.search('json', headers['Content-Type'], re.IGNORECASE): - request_body = '{}' - if body is not None: - request_body = json.dumps(body) - r = self.pool_manager.request( - method, url, - body=request_body, - preload_content=_preload_content, - timeout=timeout, - headers=headers) - elif headers['Content-Type'] == 'application/x-www-form-urlencoded': # noqa: E501 - r = self.pool_manager.request( - method, url, - fields=post_params, - encode_multipart=False, - preload_content=_preload_content, - timeout=timeout, - headers=headers) - elif headers['Content-Type'] == 'multipart/form-data': - # must del headers['Content-Type'], or the correct - # Content-Type which generated by urllib3 will be - # overwritten. - del headers['Content-Type'] - r = self.pool_manager.request( - method, url, - fields=post_params, - encode_multipart=True, - preload_content=_preload_content, - timeout=timeout, - headers=headers) - # Pass a `string` parameter directly in the body to support - # other content types than Json when `body` argument is - # provided in serialized form - elif isinstance(body, str): - request_body = body - r = self.pool_manager.request( - method, url, - body=request_body, - preload_content=_preload_content, - timeout=timeout, - headers=headers) - else: - # Cannot generate the request from given parameters - msg = """Cannot prepare a request message for provided - arguments. Please check that your arguments match - declared content type.""" - raise ApiException(status=0, reason=msg) - # For `GET`, `HEAD` - else: - r = self.pool_manager.request(method, url, - fields=query_params, - preload_content=_preload_content, - timeout=timeout, - headers=headers) - except urllib3.exceptions.SSLError as e: - msg = "{0}\n{1}".format(type(e).__name__, str(e)) - raise ApiException(status=0, reason=msg) - - if _preload_content: - r = RESTResponse(r) - - # log response body - logger.debug("response body: %s", r.data) - - if not 200 <= r.status <= 299: - raise ApiException(http_resp=r) - - return r - - def GET(self, url, headers=None, query_params=None, _preload_content=True, - _request_timeout=None): - return self.request("GET", url, - headers=headers, - _preload_content=_preload_content, - _request_timeout=_request_timeout, - query_params=query_params) - - def HEAD(self, url, headers=None, query_params=None, _preload_content=True, - _request_timeout=None): - return self.request("HEAD", url, - headers=headers, - _preload_content=_preload_content, - _request_timeout=_request_timeout, - query_params=query_params) - - def OPTIONS(self, url, headers=None, query_params=None, post_params=None, - body=None, _preload_content=True, _request_timeout=None): - return self.request("OPTIONS", url, - headers=headers, - query_params=query_params, - post_params=post_params, - _preload_content=_preload_content, - _request_timeout=_request_timeout, - body=body) - - def DELETE(self, url, headers=None, query_params=None, body=None, - _preload_content=True, _request_timeout=None): - return self.request("DELETE", url, - headers=headers, - query_params=query_params, - _preload_content=_preload_content, - _request_timeout=_request_timeout, - body=body) - - def POST(self, url, headers=None, query_params=None, post_params=None, - body=None, _preload_content=True, _request_timeout=None): - return self.request("POST", url, - headers=headers, - query_params=query_params, - post_params=post_params, - _preload_content=_preload_content, - _request_timeout=_request_timeout, - body=body) - - def PUT(self, url, headers=None, query_params=None, post_params=None, - body=None, _preload_content=True, _request_timeout=None): - return self.request("PUT", url, - headers=headers, - query_params=query_params, - post_params=post_params, - _preload_content=_preload_content, - _request_timeout=_request_timeout, - body=body) - - def PATCH(self, url, headers=None, query_params=None, post_params=None, - body=None, _preload_content=True, _request_timeout=None): - return self.request("PATCH", url, - headers=headers, - query_params=query_params, - post_params=post_params, - _preload_content=_preload_content, - _request_timeout=_request_timeout, - body=body) - - -class ApiException(Exception): - - def __init__(self, status=None, reason=None, http_resp=None): - if http_resp: - self.status = http_resp.status - self.reason = http_resp.reason - self.body = http_resp.data - self.headers = http_resp.getheaders() - else: - self.status = status - self.reason = reason - self.body = None - self.headers = None - - def __str__(self): - """Custom error messages for exception""" - error_message = "({0})\n"\ - "Reason: {1}\n".format(self.status, self.reason) - if self.headers: - error_message += "HTTP response headers: {0}\n".format( - self.headers) - - if self.body: - error_message += "HTTP response body: {0}\n".format(self.body) - - return error_message diff --git a/swagger/api-metadata/test-requirements.txt b/swagger/api-metadata/test-requirements.txt deleted file mode 100644 index 2702246c0e6f92a1c41c0960879e07da339e4b7d..0000000000000000000000000000000000000000 --- a/swagger/api-metadata/test-requirements.txt +++ /dev/null @@ -1,5 +0,0 @@ -coverage>=4.0.3 -nose>=1.3.7 -pluggy>=0.3.1 -py>=1.4.31 -randomize>=0.13 diff --git a/swagger/api-metadata/test/__init__.py b/swagger/api-metadata/test/__init__.py deleted file mode 100644 index e69de29bb2d1d6434b8b29ae775ad8c2e48c5391..0000000000000000000000000000000000000000 diff --git a/swagger/api-metadata/test/test_identify_endpoint_api.py b/swagger/api-metadata/test/test_identify_endpoint_api.py deleted file mode 100644 index eab93e97e4d34c6d4dbfb59c1f7dd99845ebe63a..0000000000000000000000000000000000000000 --- a/swagger/api-metadata/test/test_identify_endpoint_api.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - Database Repository Metadata Service API - - Service that manages the metadata # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -from __future__ import absolute_import - -import unittest - -import swagger_client -from swagger_client.api.identify_endpoint_api import IdentifyEndpointApi # noqa: E501 -from swagger_client.rest import ApiException - - -class TestIdentifyEndpointApi(unittest.TestCase): - """IdentifyEndpointApi unit test stubs""" - - def setUp(self): - self.api = IdentifyEndpointApi() # noqa: E501 - - def tearDown(self): - pass - - def test_identify1111(self): - """Test case for identify1111 - - Get the record # noqa: E501 - """ - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/swagger/api-metadata/test/test_metadata_endpoint_api.py b/swagger/api-metadata/test/test_metadata_endpoint_api.py deleted file mode 100644 index 119e636b9469e7da56b1e067c465b93a1c88fb2c..0000000000000000000000000000000000000000 --- a/swagger/api-metadata/test/test_metadata_endpoint_api.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - Database Repository Metadata Service API - - Service that manages the metadata # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -from __future__ import absolute_import - -import unittest - -import swagger_client -from swagger_client.api.metadata_endpoint_api import MetadataEndpointApi # noqa: E501 -from swagger_client.rest import ApiException - - -class TestMetadataEndpointApi(unittest.TestCase): - """MetadataEndpointApi unit test stubs""" - - def setUp(self): - self.api = MetadataEndpointApi() # noqa: E501 - - def tearDown(self): - pass - - def test_identify1111(self): - """Test case for identify1111 - - Get the record # noqa: E501 - """ - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/swagger/api-metadata/test/test_oai_list_identifiers_parameters.py b/swagger/api-metadata/test/test_oai_list_identifiers_parameters.py deleted file mode 100644 index 8778bd0af79d5fe4438b736e55cdf992d5131e96..0000000000000000000000000000000000000000 --- a/swagger/api-metadata/test/test_oai_list_identifiers_parameters.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Database Repository Metadata Service API - - Service that manages the metadata # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -from __future__ import absolute_import - -import unittest - -import swagger_client -from swagger_client.models.oai_list_identifiers_parameters import OaiListIdentifiersParameters # noqa: E501 -from swagger_client.rest import ApiException - - -class TestOaiListIdentifiersParameters(unittest.TestCase): - """OaiListIdentifiersParameters unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testOaiListIdentifiersParameters(self): - """Test OaiListIdentifiersParameters""" - # FIXME: construct object with mandatory attributes with example values - # model = swagger_client.models.oai_list_identifiers_parameters.OaiListIdentifiersParameters() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/swagger/api-metadata/tox.ini b/swagger/api-metadata/tox.ini deleted file mode 100644 index a310bec97d689718c92c84c9aebc6ab031f12933..0000000000000000000000000000000000000000 --- a/swagger/api-metadata/tox.ini +++ /dev/null @@ -1,10 +0,0 @@ -[tox] -envlist = py3 - -[testenv] -deps=-r{toxinidir}/requirements.txt - -r{toxinidir}/test-requirements.txt - -commands= - nosetests \ - [] diff --git a/swagger/api-query.yaml b/swagger/api-query.yaml index 5929fc5a6d42e745360b0d6a18d05acaa2047387..8a6b56fb67891116a85095d9d33f6cb8602fbfbd 100644 --- a/swagger/api-query.yaml +++ b/swagger/api-query.yaml @@ -992,7 +992,6 @@ components: properties: status: type: string - example: NOT_FOUND enum: - 100 CONTINUE - 101 SWITCHING_PROTOCOLS @@ -1064,10 +1063,8 @@ components: - 511 NETWORK_AUTHENTICATION_REQUIRED message: type: string - example: Could not find container code: type: string - example: error.container.notfound TableHistoryDto: required: - event @@ -1083,7 +1080,6 @@ components: total: type: integer format: int64 - example: 1 QueryResultDto: required: - id @@ -1102,7 +1098,6 @@ components: resultNumber: type: integer format: int64 - example: 1 TableCsvUpdateDto: required: - data @@ -1124,7 +1119,6 @@ components: properties: statement: type: string - example: SELECT `id` FROM `air_quality` TableCsvDto: required: - data @@ -1142,13 +1136,10 @@ components: properties: location: type: string - example: /tmp/file.csv separator: type: string - example: "," quote: type: string - example: '"' skip_lines: minimum: 0 type: integer @@ -1159,7 +1150,6 @@ components: type: string null_element: type: string - example: NA ContainerDto: required: - created @@ -1174,20 +1164,17 @@ components: format: int64 hash: type: string - example: f829dd8a884182d0da846f365dee1221fd16610a14c81b8f9f295ff162749e50 name: type: string - example: Air Quality state: type: string - example: running enum: - - created - - restarting - - running - - paused - - exited - - dead + - ContainerStateDto.CREATED + - ContainerStateDto.RESTARTING + - ContainerStateDto.RUNNING + - ContainerStateDto.PAUSED + - ContainerStateDto.EXITED + - ContainerStateDto.DEAD databases: type: array items: @@ -1200,15 +1187,14 @@ components: created: type: string format: date-time - example: 2021-03-12T15:26:21.678396092Z internal_name: type: string - example: air-quality ip_address: type: string DatabaseDto: required: - creator + - description - exchange - id - internal_name @@ -1218,23 +1204,21 @@ components: id: type: integer format: int64 + example: 1 name: type: string - example: Air Quality + example: Weather Australia exchange: type: string - example: air_quality creator: $ref: '#/components/schemas/UserBriefDto' subjects: type: array - description: database subjects items: type: string - description: database subjects language: type: string - example: en + example: EN enum: - ab - aa @@ -1424,7 +1408,7 @@ components: $ref: '#/components/schemas/LicenseDto' description: type: string - example: Air Quality in Austria + example: Weather Australia 2009-2021 publisher: type: string example: TU Wien @@ -1446,32 +1430,23 @@ components: format: date-time internal_name: type: string - example: air_quality + example: weather_australia publication_year: type: integer - description: database publication year format: int32 - example: 2022 publication_month: type: integer - description: database publication month format: int32 - example: 12 publication_day: type: integer - description: database publication day format: int32 - example: 15 is_public: type: boolean - description: database publicity - example: true GrantedAuthorityDto: type: object properties: authority: type: string - example: ROLE_RESEARCHER ImageBriefDto: required: - id @@ -1484,10 +1459,8 @@ components: format: int64 repository: type: string - example: mariadb tag: type: string - example: "10.5" ImageDateDto: required: - database_format @@ -1502,16 +1475,12 @@ components: format: int64 example: type: string - example: 30.01.2022 database_format: type: string - example: '%d.%c.%Y' unix_format: type: string - example: dd.MM.YYYY has_time: type: boolean - example: false created_at: type: string format: date-time @@ -1532,46 +1501,36 @@ components: format: int64 repository: type: string - example: mariadb tag: type: string - example: "10.5" dialect: type: string - example: org.hibernate.dialect.MariaDBDialect hash: type: string - example: sha256:c5ec7353d87dfc35067e7bffeb25d6a0d52dad41e8b7357213e3b12d6e7ff78e compiled: type: string format: date-time - example: 2021-03-12T15:26:21.678396092Z size: type: integer - example: 314295447 environment: type: array items: $ref: '#/components/schemas/ImageEnvItemDto' driver_class: type: string - example: org.mariadb.jdbc.Driver date_formats: type: array items: $ref: '#/components/schemas/ImageDateDto' jdbc_method: type: string - example: mariadb default_port: type: integer format: int32 - example: 3306 ImageEnvItemDto: required: - iid - key - - type - value type: object properties: @@ -1580,18 +1539,15 @@ components: format: int64 key: type: string - example: MARIADB_ROOT_PASSWORD value: type: string - example: mariadb type: type: string - example: PRIVILEGED_PASSWORD enum: - - username - - password - - privileged_username - - privileged_password + - USERNAME + - PASSWORD + - PRIVILEGED_USERNAME + - PRIVILEGED_PASSWORD LicenseDto: required: - identifier @@ -1600,10 +1556,9 @@ components: properties: identifier: type: string - example: MIT uri: type: string - example: https://opensource.org/licenses/MIT + example: MIT2 QueryBriefDto: required: - cid @@ -1631,23 +1586,18 @@ components: format: date-time query: type: string - example: SELECT `id` FROM `air_quality` created: type: string format: date-time query_normalized: type: string - example: SELECT `id` FROM `air_quality` query_hash: type: string - example: 17e682f060b5f8e47ea04c5c4855908b0a5ad612022260fe50e11ecb0cc0ab76 result_hash: type: string - example: 17e682f060b5f8e47ea04c5c4855908b0a5ad612022260fe50e11ecb0cc0ab76 result_number: type: integer format: int64 - example: 1 last_modified: type: string format: date-time @@ -1664,12 +1614,10 @@ components: format: int64 name: type: string - example: Air Quality creator: $ref: '#/components/schemas/UserBriefDto' internal_name: type: string - example: air_quality UserBriefDto: required: - email_verified @@ -1683,31 +1631,22 @@ components: format: int64 username: type: string - description: Only contains lowercase characters - example: user firstname: type: string - example: Josiah lastname: type: string - example: Carberry affiliation: type: string - example: Brown University orcid: type: string - example: 0000-0002-1825-0097 titles_before: type: string - example: Prof. titles_after: type: string theme_dark: type: boolean - example: true email_verified: type: boolean - example: true UserDto: required: - email @@ -1726,20 +1665,14 @@ components: $ref: '#/components/schemas/GrantedAuthorityDto' username: type: string - description: Only contains lowercase characters - example: jcarberry firstname: type: string - example: Josiah lastname: type: string - example: Carberry affiliation: type: string - example: Brown University orcid: type: string - example: 0000-0002-1825-0097 containers: type: array items: @@ -1754,18 +1687,14 @@ components: $ref: '#/components/schemas/ContainerDto' email: type: string - example: jcarberry@brown.edu titles_before: type: string - example: Prof. titles_after: type: string theme_dark: type: boolean - example: true email_verified: type: boolean - example: true QueryDto: required: - cid @@ -1793,13 +1722,11 @@ components: format: date-time query: type: string - example: SELECT `id` FROM `air_quality` created: type: string format: date-time query_normalized: type: string - example: SELECT `id` FROM `air_quality` query_hash: type: string result_hash: @@ -1807,7 +1734,6 @@ components: result_number: type: integer format: int64 - example: 1 last_modified: type: string format: date-time diff --git a/swagger/api-query/.gitignore b/swagger/api-query/.gitignore deleted file mode 100644 index a655050c2631466828b5b8bfc59ae27f9ac02dc5..0000000000000000000000000000000000000000 --- a/swagger/api-query/.gitignore +++ /dev/null @@ -1,64 +0,0 @@ -# Byte-compiled / optimized / DLL files -__pycache__/ -*.py[cod] -*$py.class - -# C extensions -*.so - -# Distribution / packaging -.Python -env/ -build/ -develop-eggs/ -dist/ -downloads/ -eggs/ -.eggs/ -lib/ -lib64/ -parts/ -sdist/ -var/ -*.egg-info/ -.installed.cfg -*.egg - -# PyInstaller -# Usually these files are written by a python script from a template -# before PyInstaller builds the exe, so as to inject date/other infos into it. -*.manifest -*.spec - -# Installer logs -pip-log.txt -pip-delete-this-directory.txt - -# Unit test / coverage reports -htmlcov/ -.tox/ -.coverage -.coverage.* -.cache -nosetests.xml -coverage.xml -*,cover -.hypothesis/ -venv/ -.python-version - -# Translations -*.mo -*.pot - -# Django stuff: -*.log - -# Sphinx documentation -docs/_build/ - -# PyBuilder -target/ - -#Ipython Notebook -.ipynb_checkpoints diff --git a/swagger/api-query/.swagger-codegen-ignore b/swagger/api-query/.swagger-codegen-ignore deleted file mode 100644 index c5fa491b4c557bf997d5dd21797de782545dc9e5..0000000000000000000000000000000000000000 --- a/swagger/api-query/.swagger-codegen-ignore +++ /dev/null @@ -1,23 +0,0 @@ -# Swagger Codegen Ignore -# Generated by swagger-codegen https://github.com/swagger-api/swagger-codegen - -# Use this file to prevent files from being overwritten by the generator. -# The patterns follow closely to .gitignore or .dockerignore. - -# As an example, the C# client generator defines ApiClient.cs. -# You can make changes and tell Swagger Codgen to ignore just this file by uncommenting the following line: -#ApiClient.cs - -# You can match any string of characters against a directory, file or extension with a single asterisk (*): -#foo/*/qux -# The above matches foo/bar/qux and foo/baz/qux, but not foo/bar/baz/qux - -# You can recursively match patterns against a directory, file or extension with a double asterisk (**): -#foo/**/qux -# This matches foo/bar/qux, foo/baz/qux, and foo/bar/baz/qux - -# You can also negate patterns with an exclamation (!). -# For example, you can ignore all files in a docs folder with the file extension .md: -#docs/*.md -# Then explicitly reverse the ignore rule for a single file: -#!docs/README.md diff --git a/swagger/api-query/.swagger-codegen/VERSION b/swagger/api-query/.swagger-codegen/VERSION deleted file mode 100644 index 10bbf276ee45aaec75c7b2ada3ff71d798f89fd9..0000000000000000000000000000000000000000 --- a/swagger/api-query/.swagger-codegen/VERSION +++ /dev/null @@ -1 +0,0 @@ -3.0.34 \ No newline at end of file diff --git a/swagger/api-query/.travis.yml b/swagger/api-query/.travis.yml deleted file mode 100644 index dd6c4450aa902ae68479c3d76d45145e18d6052e..0000000000000000000000000000000000000000 --- a/swagger/api-query/.travis.yml +++ /dev/null @@ -1,13 +0,0 @@ -# ref: https://docs.travis-ci.com/user/languages/python -language: python -python: - - "3.2" - - "3.3" - - "3.4" - - "3.5" - #- "3.5-dev" # 3.5 development branch - #- "nightly" # points to the latest development branch e.g. 3.6-dev -# command to install dependencies -install: "pip install -r requirements.txt" -# command to run tests -script: nosetests diff --git a/swagger/api-query/README.md b/swagger/api-query/README.md deleted file mode 100644 index 740dae7dbd389b13d9a43b96b0683e5978ae316a..0000000000000000000000000000000000000000 --- a/swagger/api-query/README.md +++ /dev/null @@ -1,124 +0,0 @@ -# swagger-client -Service that manages the queries - -This Python package is automatically generated by the [Swagger Codegen](https://github.com/swagger-api/swagger-codegen) project: - -- API version: 1.1.0-alpha -- Package version: 1.0.0 -- Build package: io.swagger.codegen.v3.generators.python.PythonClientCodegen - -## Requirements. - -Python 2.7 and 3.4+ - -## Installation & Usage -### pip install - -If the python package is hosted on Github, you can install directly from Github - -```sh -pip install git+https://github.com/GIT_USER_ID/GIT_REPO_ID.git -``` -(you may need to run `pip` with root permission: `sudo pip install git+https://github.com/GIT_USER_ID/GIT_REPO_ID.git`) - -Then import the package: -```python -import swagger_client -``` - -### Setuptools - -Install via [Setuptools](http://pypi.python.org/pypi/setuptools). - -```sh -python setup.py install --user -``` -(or `sudo python setup.py install` to install the package for all users) - -Then import the package: -```python -import swagger_client -``` - -## Getting Started - -Please follow the [installation procedure](#installation--usage) and then run the following: - -```python -from __future__ import print_function -import time -import swagger_client -from swagger_client.rest import ApiException -from pprint import pprint - - -# create an instance of the API class -api_instance = swagger_client.ExportEndpointApi(swagger_client.ApiClient(configuration)) -id = 789 # int | -database_id = 789 # int | -table_id = 789 # int | -timestamp = '2013-10-20T19:20:30+01:00' # datetime | (optional) - -try: - # Export table - api_response = api_instance.export(id, database_id, table_id, timestamp=timestamp) - pprint(api_response) -except ApiException as e: - print("Exception when calling ExportEndpointApi->export: %s\n" % e) -``` - -## Documentation for API Endpoints - -All URIs are relative to *http://localhost:9093* - -Class | Method | HTTP request | Description ------------- | ------------- | ------------- | ------------- -*ExportEndpointApi* | [**export**](docs/ExportEndpointApi.md#export) | **GET** /api/container/{id}/database/{databaseId}/table/{tableId}/export | Export table -*QueryEndpointApi* | [**execute**](docs/QueryEndpointApi.md#execute) | **PUT** /api/container/{id}/database/{databaseId}/query | Execute query -*QueryEndpointApi* | [**export1**](docs/QueryEndpointApi.md#export1) | **GET** /api/container/{id}/database/{databaseId}/query/{queryId}/export | Exports some query -*QueryEndpointApi* | [**re_execute**](docs/QueryEndpointApi.md#re_execute) | **PUT** /api/container/{id}/database/{databaseId}/query/{queryId} | Re-execute some query -*StoreEndpointApi* | [**find**](docs/StoreEndpointApi.md#find) | **GET** /api/container/{id}/database/{databaseId}/query/{queryId} | Find some query -*StoreEndpointApi* | [**find_all**](docs/StoreEndpointApi.md#find_all) | **GET** /api/container/{id}/database/{databaseId}/query | Find queries -*TableDataEndpointApi* | [**delete**](docs/TableDataEndpointApi.md#delete) | **DELETE** /api/container/{id}/database/{databaseId}/table/{tableId}/data | Delete data -*TableDataEndpointApi* | [**get_all2**](docs/TableDataEndpointApi.md#get_all2) | **HEAD** /api/container/{id}/database/{databaseId}/table/{tableId}/data | Find data -*TableDataEndpointApi* | [**get_all3**](docs/TableDataEndpointApi.md#get_all3) | **GET** /api/container/{id}/database/{databaseId}/table/{tableId}/data | Find data -*TableDataEndpointApi* | [**import_csv**](docs/TableDataEndpointApi.md#import_csv) | **POST** /api/container/{id}/database/{databaseId}/table/{tableId}/data/import | Insert data from csv -*TableDataEndpointApi* | [**insert**](docs/TableDataEndpointApi.md#insert) | **POST** /api/container/{id}/database/{databaseId}/table/{tableId}/data | Insert data -*TableDataEndpointApi* | [**update**](docs/TableDataEndpointApi.md#update) | **PUT** /api/container/{id}/database/{databaseId}/table/{tableId}/data | Update data -*TableHistoryEndpointApi* | [**get_all**](docs/TableHistoryEndpointApi.md#get_all) | **HEAD** /api/container/{id}/database/{databaseId}/table/{tableId}/history | Find all history -*TableHistoryEndpointApi* | [**get_all1**](docs/TableHistoryEndpointApi.md#get_all1) | **GET** /api/container/{id}/database/{databaseId}/table/{tableId}/history | Find all history - -## Documentation For Models - - - [ApiErrorDto](docs/ApiErrorDto.md) - - [ContainerDto](docs/ContainerDto.md) - - [DatabaseDto](docs/DatabaseDto.md) - - [ExecuteStatementDto](docs/ExecuteStatementDto.md) - - [GrantedAuthorityDto](docs/GrantedAuthorityDto.md) - - [ImageBriefDto](docs/ImageBriefDto.md) - - [ImageDateDto](docs/ImageDateDto.md) - - [ImageDto](docs/ImageDto.md) - - [ImageEnvItemDto](docs/ImageEnvItemDto.md) - - [ImportDto](docs/ImportDto.md) - - [LicenseDto](docs/LicenseDto.md) - - [QueryBriefDto](docs/QueryBriefDto.md) - - [QueryDto](docs/QueryDto.md) - - [QueryResultDto](docs/QueryResultDto.md) - - [TableBriefDto](docs/TableBriefDto.md) - - [TableCsvDeleteDto](docs/TableCsvDeleteDto.md) - - [TableCsvDto](docs/TableCsvDto.md) - - [TableCsvUpdateDto](docs/TableCsvUpdateDto.md) - - [TableHistoryDto](docs/TableHistoryDto.md) - - [UserBriefDto](docs/UserBriefDto.md) - - [UserDto](docs/UserDto.md) - -## Documentation For Authorization - - -## bearerAuth - - - -## Author - -andreas.rauber@tuwien.ac.at diff --git a/swagger/api-query/git_push.sh b/swagger/api-query/git_push.sh deleted file mode 100644 index ae01b182ae9eb047d0999a496b060e62d7b01e5c..0000000000000000000000000000000000000000 --- a/swagger/api-query/git_push.sh +++ /dev/null @@ -1,52 +0,0 @@ -#!/bin/sh -# ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/ -# -# Usage example: /bin/sh ./git_push.sh wing328 swagger-petstore-perl "minor update" - -git_user_id=$1 -git_repo_id=$2 -release_note=$3 - -if [ "$git_user_id" = "" ]; then - git_user_id="GIT_USER_ID" - echo "[INFO] No command line input provided. Set \$git_user_id to $git_user_id" -fi - -if [ "$git_repo_id" = "" ]; then - git_repo_id="GIT_REPO_ID" - echo "[INFO] No command line input provided. Set \$git_repo_id to $git_repo_id" -fi - -if [ "$release_note" = "" ]; then - release_note="Minor update" - echo "[INFO] No command line input provided. Set \$release_note to $release_note" -fi - -# Initialize the local directory as a Git repository -git init - -# Adds the files in the local repository and stages them for commit. -git add . - -# Commits the tracked changes and prepares them to be pushed to a remote repository. -git commit -m "$release_note" - -# Sets the new remote -git_remote=`git remote` -if [ "$git_remote" = "" ]; then # git remote not defined - - if [ "$GIT_TOKEN" = "" ]; then - echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the git credential in your environment." - git remote add origin https://github.com/${git_user_id}/${git_repo_id}.git - else - git remote add origin https://${git_user_id}:${GIT_TOKEN}@github.com/${git_user_id}/${git_repo_id}.git - fi - -fi - -git pull origin master - -# Pushes (Forces) the changes in the local repository up to the remote repository -echo "Git pushing to https://github.com/${git_user_id}/${git_repo_id}.git" -git push origin master 2>&1 | grep -v 'To https' - diff --git a/swagger/api-query/requirements.txt b/swagger/api-query/requirements.txt deleted file mode 100644 index bafdc07532f5e1287a24c2af278f547091a410b6..0000000000000000000000000000000000000000 --- a/swagger/api-query/requirements.txt +++ /dev/null @@ -1,5 +0,0 @@ -certifi >= 14.05.14 -six >= 1.10 -python_dateutil >= 2.5.3 -setuptools >= 21.0.0 -urllib3 >= 1.15.1 diff --git a/swagger/api-query/setup.py b/swagger/api-query/setup.py deleted file mode 100644 index 9ac9c380eca9adfc3f2ef6c8fa53fc77c878711a..0000000000000000000000000000000000000000 --- a/swagger/api-query/setup.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Database Repository Query Service API - - Service that manages the queries # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -from setuptools import setup, find_packages # noqa: H301 - -NAME = "swagger-client" -VERSION = "1.0.0" -# To install the library, run the following -# -# python setup.py install -# -# prerequisite: setuptools -# http://pypi.python.org/pypi/setuptools - -REQUIRES = ["urllib3 >= 1.15", "six >= 1.10", "certifi", "python-dateutil"] - -setup( - name=NAME, - version=VERSION, - description="Database Repository Query Service API", - author_email="andreas.rauber@tuwien.ac.at", - url="", - keywords=["Swagger", "Database Repository Query Service API"], - install_requires=REQUIRES, - packages=find_packages(), - include_package_data=True, - long_description="""\ - Service that manages the queries # noqa: E501 - """ -) diff --git a/swagger/api-query/swagger_client/__init__.py b/swagger/api-query/swagger_client/__init__.py deleted file mode 100644 index 3939c5d6694e24ee9c51e646183ce681178a9805..0000000000000000000000000000000000000000 --- a/swagger/api-query/swagger_client/__init__.py +++ /dev/null @@ -1,47 +0,0 @@ -# coding: utf-8 - -# flake8: noqa - -""" - Database Repository Query Service API - - Service that manages the queries # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -from __future__ import absolute_import - -# import apis into sdk package -from swagger_client.api.export_endpoint_api import ExportEndpointApi -from swagger_client.api.query_endpoint_api import QueryEndpointApi -from swagger_client.api.store_endpoint_api import StoreEndpointApi -from swagger_client.api.table_data_endpoint_api import TableDataEndpointApi -from swagger_client.api.table_history_endpoint_api import TableHistoryEndpointApi -# import ApiClient -from swagger_client.api_client import ApiClient -from swagger_client.configuration import Configuration -# import models into sdk package -from swagger_client.models.api_error_dto import ApiErrorDto -from swagger_client.models.container_dto import ContainerDto -from swagger_client.models.database_dto import DatabaseDto -from swagger_client.models.execute_statement_dto import ExecuteStatementDto -from swagger_client.models.granted_authority_dto import GrantedAuthorityDto -from swagger_client.models.image_brief_dto import ImageBriefDto -from swagger_client.models.image_date_dto import ImageDateDto -from swagger_client.models.image_dto import ImageDto -from swagger_client.models.image_env_item_dto import ImageEnvItemDto -from swagger_client.models.import_dto import ImportDto -from swagger_client.models.license_dto import LicenseDto -from swagger_client.models.query_brief_dto import QueryBriefDto -from swagger_client.models.query_dto import QueryDto -from swagger_client.models.query_result_dto import QueryResultDto -from swagger_client.models.table_brief_dto import TableBriefDto -from swagger_client.models.table_csv_delete_dto import TableCsvDeleteDto -from swagger_client.models.table_csv_dto import TableCsvDto -from swagger_client.models.table_csv_update_dto import TableCsvUpdateDto -from swagger_client.models.table_history_dto import TableHistoryDto -from swagger_client.models.user_brief_dto import UserBriefDto -from swagger_client.models.user_dto import UserDto diff --git a/swagger/api-query/swagger_client/api/__init__.py b/swagger/api-query/swagger_client/api/__init__.py deleted file mode 100644 index 8cd0d5ba13be8b42d4776ce46721dcf5795ec76c..0000000000000000000000000000000000000000 --- a/swagger/api-query/swagger_client/api/__init__.py +++ /dev/null @@ -1,10 +0,0 @@ -from __future__ import absolute_import - -# flake8: noqa - -# import apis into api package -from swagger_client.api.export_endpoint_api import ExportEndpointApi -from swagger_client.api.query_endpoint_api import QueryEndpointApi -from swagger_client.api.store_endpoint_api import StoreEndpointApi -from swagger_client.api.table_data_endpoint_api import TableDataEndpointApi -from swagger_client.api.table_history_endpoint_api import TableHistoryEndpointApi diff --git a/swagger/api-query/swagger_client/api/consumer_endpoint_api.py b/swagger/api-query/swagger_client/api/consumer_endpoint_api.py deleted file mode 100644 index 210576b14a5988d55a1237e6549755d93d850c45..0000000000000000000000000000000000000000 --- a/swagger/api-query/swagger_client/api/consumer_endpoint_api.py +++ /dev/null @@ -1,142 +0,0 @@ -# coding: utf-8 - -""" - Database Repository Query Service API - - Service that manages the queries # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -from __future__ import absolute_import - -import re # noqa: F401 - -# python 2 and python 3 compatibility library -import six - -from swagger_client.api_client import ApiClient - - -class ConsumerEndpointApi(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - Ref: https://github.com/swagger-api/swagger-codegen - """ - - def __init__(self, api_client=None): - if api_client is None: - api_client = ApiClient() - self.api_client = api_client - - def declare(self, id, database_id, table_id, **kwargs): # noqa: E501 - """Declare consumer # noqa: E501 - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.declare(id, database_id, table_id, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param int id: (required) - :param int database_id: (required) - :param int table_id: (required) - :return: None - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.declare_with_http_info(id, database_id, table_id, **kwargs) # noqa: E501 - else: - (data) = self.declare_with_http_info(id, database_id, table_id, **kwargs) # noqa: E501 - return data - - def declare_with_http_info(self, id, database_id, table_id, **kwargs): # noqa: E501 - """Declare consumer # noqa: E501 - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.declare_with_http_info(id, database_id, table_id, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param int id: (required) - :param int database_id: (required) - :param int table_id: (required) - :return: None - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['id', 'database_id', 'table_id'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in six.iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method declare" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'id' is set - if ('id' not in params or - params['id'] is None): - raise ValueError("Missing the required parameter `id` when calling `declare`") # noqa: E501 - # verify the required parameter 'database_id' is set - if ('database_id' not in params or - params['database_id'] is None): - raise ValueError("Missing the required parameter `database_id` when calling `declare`") # noqa: E501 - # verify the required parameter 'table_id' is set - if ('table_id' not in params or - params['table_id'] is None): - raise ValueError("Missing the required parameter `table_id` when calling `declare`") # noqa: E501 - - collection_formats = {} - - path_params = {} - if 'id' in params: - path_params['id'] = params['id'] # noqa: E501 - if 'database_id' in params: - path_params['databaseId'] = params['database_id'] # noqa: E501 - if 'table_id' in params: - path_params['tableId'] = params['table_id'] # noqa: E501 - - query_params = [] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - # HTTP header `Accept` - header_params['Accept'] = self.api_client.select_header_accept( - ['*/*']) # noqa: E501 - - # Authentication setting - auth_settings = ['bearerAuth'] # noqa: E501 - - return self.api_client.call_api( - '/api/container/{id}/database/{databaseId}/table/{tableId}/consumer', 'POST', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type=None, # noqa: E501 - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) diff --git a/swagger/api-query/swagger_client/api/export_endpoint_api.py b/swagger/api-query/swagger_client/api/export_endpoint_api.py deleted file mode 100644 index 42c69c8ecfe3c4870d328b4591aadcb071d9c3ce..0000000000000000000000000000000000000000 --- a/swagger/api-query/swagger_client/api/export_endpoint_api.py +++ /dev/null @@ -1,146 +0,0 @@ -# coding: utf-8 - -""" - Database Repository Query Service API - - Service that manages the queries # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -from __future__ import absolute_import - -import re # noqa: F401 - -# python 2 and python 3 compatibility library -import six - -from swagger_client.api_client import ApiClient - - -class ExportEndpointApi(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - Ref: https://github.com/swagger-api/swagger-codegen - """ - - def __init__(self, api_client=None): - if api_client is None: - api_client = ApiClient() - self.api_client = api_client - - def export(self, id, database_id, table_id, **kwargs): # noqa: E501 - """Export table # noqa: E501 - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.export(id, database_id, table_id, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param int id: (required) - :param int database_id: (required) - :param int table_id: (required) - :param datetime timestamp: - :return: str - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.export_with_http_info(id, database_id, table_id, **kwargs) # noqa: E501 - else: - (data) = self.export_with_http_info(id, database_id, table_id, **kwargs) # noqa: E501 - return data - - def export_with_http_info(self, id, database_id, table_id, **kwargs): # noqa: E501 - """Export table # noqa: E501 - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.export_with_http_info(id, database_id, table_id, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param int id: (required) - :param int database_id: (required) - :param int table_id: (required) - :param datetime timestamp: - :return: str - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['id', 'database_id', 'table_id', 'timestamp'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in six.iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method export" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'id' is set - if ('id' not in params or - params['id'] is None): - raise ValueError("Missing the required parameter `id` when calling `export`") # noqa: E501 - # verify the required parameter 'database_id' is set - if ('database_id' not in params or - params['database_id'] is None): - raise ValueError("Missing the required parameter `database_id` when calling `export`") # noqa: E501 - # verify the required parameter 'table_id' is set - if ('table_id' not in params or - params['table_id'] is None): - raise ValueError("Missing the required parameter `table_id` when calling `export`") # noqa: E501 - - collection_formats = {} - - path_params = {} - if 'id' in params: - path_params['id'] = params['id'] # noqa: E501 - if 'database_id' in params: - path_params['databaseId'] = params['database_id'] # noqa: E501 - if 'table_id' in params: - path_params['tableId'] = params['table_id'] # noqa: E501 - - query_params = [] - if 'timestamp' in params: - query_params.append(('timestamp', params['timestamp'])) # noqa: E501 - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - # HTTP header `Accept` - header_params['Accept'] = self.api_client.select_header_accept( - ['*/*']) # noqa: E501 - - # Authentication setting - auth_settings = ['bearerAuth'] # noqa: E501 - - return self.api_client.call_api( - '/api/container/{id}/database/{databaseId}/table/{tableId}/export', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='str', # noqa: E501 - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) diff --git a/swagger/api-query/swagger_client/api/query_endpoint_api.py b/swagger/api-query/swagger_client/api/query_endpoint_api.py deleted file mode 100644 index bc3d48653ce302f6a07005bd376848a350b2004b..0000000000000000000000000000000000000000 --- a/swagger/api-query/swagger_client/api/query_endpoint_api.py +++ /dev/null @@ -1,380 +0,0 @@ -# coding: utf-8 - -""" - Database Repository Query Service API - - Service that manages the queries # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -from __future__ import absolute_import - -import re # noqa: F401 - -# python 2 and python 3 compatibility library -import six - -from swagger_client.api_client import ApiClient - - -class QueryEndpointApi(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - Ref: https://github.com/swagger-api/swagger-codegen - """ - - def __init__(self, api_client=None): - if api_client is None: - api_client = ApiClient() - self.api_client = api_client - - def execute(self, body, id, database_id, **kwargs): # noqa: E501 - """Execute query # noqa: E501 - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.execute(body, id, database_id, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param ExecuteStatementDto body: (required) - :param int id: (required) - :param int database_id: (required) - :param int page: - :param int size: - :return: QueryResultDto - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.execute_with_http_info(body, id, database_id, **kwargs) # noqa: E501 - else: - (data) = self.execute_with_http_info(body, id, database_id, **kwargs) # noqa: E501 - return data - - def execute_with_http_info(self, body, id, database_id, **kwargs): # noqa: E501 - """Execute query # noqa: E501 - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.execute_with_http_info(body, id, database_id, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param ExecuteStatementDto body: (required) - :param int id: (required) - :param int database_id: (required) - :param int page: - :param int size: - :return: QueryResultDto - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['body', 'id', 'database_id', 'page', 'size'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in six.iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method execute" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'body' is set - if ('body' not in params or - params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `execute`") # noqa: E501 - # verify the required parameter 'id' is set - if ('id' not in params or - params['id'] is None): - raise ValueError("Missing the required parameter `id` when calling `execute`") # noqa: E501 - # verify the required parameter 'database_id' is set - if ('database_id' not in params or - params['database_id'] is None): - raise ValueError("Missing the required parameter `database_id` when calling `execute`") # noqa: E501 - - collection_formats = {} - - path_params = {} - if 'id' in params: - path_params['id'] = params['id'] # noqa: E501 - if 'database_id' in params: - path_params['databaseId'] = params['database_id'] # noqa: E501 - - query_params = [] - if 'page' in params: - query_params.append(('page', params['page'])) # noqa: E501 - if 'size' in params: - query_params.append(('size', params['size'])) # noqa: E501 - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - if 'body' in params: - body_params = params['body'] - # HTTP header `Accept` - header_params['Accept'] = self.api_client.select_header_accept( - ['*/*']) # noqa: E501 - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 - ['application/json']) # noqa: E501 - - # Authentication setting - auth_settings = ['bearerAuth'] # noqa: E501 - - return self.api_client.call_api( - '/api/container/{id}/database/{databaseId}/query', 'PUT', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='QueryResultDto', # noqa: E501 - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def export1(self, id, database_id, query_id, **kwargs): # noqa: E501 - """Exports some query # noqa: E501 - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.export1(id, database_id, query_id, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param int id: (required) - :param int database_id: (required) - :param int query_id: (required) - :return: str - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.export1_with_http_info(id, database_id, query_id, **kwargs) # noqa: E501 - else: - (data) = self.export1_with_http_info(id, database_id, query_id, **kwargs) # noqa: E501 - return data - - def export1_with_http_info(self, id, database_id, query_id, **kwargs): # noqa: E501 - """Exports some query # noqa: E501 - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.export1_with_http_info(id, database_id, query_id, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param int id: (required) - :param int database_id: (required) - :param int query_id: (required) - :return: str - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['id', 'database_id', 'query_id'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in six.iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method export1" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'id' is set - if ('id' not in params or - params['id'] is None): - raise ValueError("Missing the required parameter `id` when calling `export1`") # noqa: E501 - # verify the required parameter 'database_id' is set - if ('database_id' not in params or - params['database_id'] is None): - raise ValueError("Missing the required parameter `database_id` when calling `export1`") # noqa: E501 - # verify the required parameter 'query_id' is set - if ('query_id' not in params or - params['query_id'] is None): - raise ValueError("Missing the required parameter `query_id` when calling `export1`") # noqa: E501 - - collection_formats = {} - - path_params = {} - if 'id' in params: - path_params['id'] = params['id'] # noqa: E501 - if 'database_id' in params: - path_params['databaseId'] = params['database_id'] # noqa: E501 - if 'query_id' in params: - path_params['queryId'] = params['query_id'] # noqa: E501 - - query_params = [] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - # HTTP header `Accept` - header_params['Accept'] = self.api_client.select_header_accept( - ['*/*']) # noqa: E501 - - # Authentication setting - auth_settings = ['bearerAuth'] # noqa: E501 - - return self.api_client.call_api( - '/api/container/{id}/database/{databaseId}/query/{queryId}/export', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='str', # noqa: E501 - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def re_execute(self, id, database_id, query_id, **kwargs): # noqa: E501 - """Re-execute some query # noqa: E501 - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.re_execute(id, database_id, query_id, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param int id: (required) - :param int database_id: (required) - :param int query_id: (required) - :param int page: - :param int size: - :return: QueryResultDto - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.re_execute_with_http_info(id, database_id, query_id, **kwargs) # noqa: E501 - else: - (data) = self.re_execute_with_http_info(id, database_id, query_id, **kwargs) # noqa: E501 - return data - - def re_execute_with_http_info(self, id, database_id, query_id, **kwargs): # noqa: E501 - """Re-execute some query # noqa: E501 - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.re_execute_with_http_info(id, database_id, query_id, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param int id: (required) - :param int database_id: (required) - :param int query_id: (required) - :param int page: - :param int size: - :return: QueryResultDto - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['id', 'database_id', 'query_id', 'page', 'size'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in six.iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method re_execute" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'id' is set - if ('id' not in params or - params['id'] is None): - raise ValueError("Missing the required parameter `id` when calling `re_execute`") # noqa: E501 - # verify the required parameter 'database_id' is set - if ('database_id' not in params or - params['database_id'] is None): - raise ValueError("Missing the required parameter `database_id` when calling `re_execute`") # noqa: E501 - # verify the required parameter 'query_id' is set - if ('query_id' not in params or - params['query_id'] is None): - raise ValueError("Missing the required parameter `query_id` when calling `re_execute`") # noqa: E501 - - collection_formats = {} - - path_params = {} - if 'id' in params: - path_params['id'] = params['id'] # noqa: E501 - if 'database_id' in params: - path_params['databaseId'] = params['database_id'] # noqa: E501 - if 'query_id' in params: - path_params['queryId'] = params['query_id'] # noqa: E501 - - query_params = [] - if 'page' in params: - query_params.append(('page', params['page'])) # noqa: E501 - if 'size' in params: - query_params.append(('size', params['size'])) # noqa: E501 - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - # HTTP header `Accept` - header_params['Accept'] = self.api_client.select_header_accept( - ['*/*']) # noqa: E501 - - # Authentication setting - auth_settings = ['bearerAuth'] # noqa: E501 - - return self.api_client.call_api( - '/api/container/{id}/database/{databaseId}/query/{queryId}', 'PUT', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='QueryResultDto', # noqa: E501 - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) diff --git a/swagger/api-query/swagger_client/api/store_endpoint_api.py b/swagger/api-query/swagger_client/api/store_endpoint_api.py deleted file mode 100644 index 8fb0a1a3f1017a86346921765659d82d07ba919e..0000000000000000000000000000000000000000 --- a/swagger/api-query/swagger_client/api/store_endpoint_api.py +++ /dev/null @@ -1,243 +0,0 @@ -# coding: utf-8 - -""" - Database Repository Query Service API - - Service that manages the queries # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -from __future__ import absolute_import - -import re # noqa: F401 - -# python 2 and python 3 compatibility library -import six - -from swagger_client.api_client import ApiClient - - -class StoreEndpointApi(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - Ref: https://github.com/swagger-api/swagger-codegen - """ - - def __init__(self, api_client=None): - if api_client is None: - api_client = ApiClient() - self.api_client = api_client - - def find(self, id, database_id, query_id, **kwargs): # noqa: E501 - """Find some query # noqa: E501 - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.find(id, database_id, query_id, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param int id: (required) - :param int database_id: (required) - :param int query_id: (required) - :return: QueryDto - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.find_with_http_info(id, database_id, query_id, **kwargs) # noqa: E501 - else: - (data) = self.find_with_http_info(id, database_id, query_id, **kwargs) # noqa: E501 - return data - - def find_with_http_info(self, id, database_id, query_id, **kwargs): # noqa: E501 - """Find some query # noqa: E501 - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.find_with_http_info(id, database_id, query_id, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param int id: (required) - :param int database_id: (required) - :param int query_id: (required) - :return: QueryDto - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['id', 'database_id', 'query_id'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in six.iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method find" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'id' is set - if ('id' not in params or - params['id'] is None): - raise ValueError("Missing the required parameter `id` when calling `find`") # noqa: E501 - # verify the required parameter 'database_id' is set - if ('database_id' not in params or - params['database_id'] is None): - raise ValueError("Missing the required parameter `database_id` when calling `find`") # noqa: E501 - # verify the required parameter 'query_id' is set - if ('query_id' not in params or - params['query_id'] is None): - raise ValueError("Missing the required parameter `query_id` when calling `find`") # noqa: E501 - - collection_formats = {} - - path_params = {} - if 'id' in params: - path_params['id'] = params['id'] # noqa: E501 - if 'database_id' in params: - path_params['databaseId'] = params['database_id'] # noqa: E501 - if 'query_id' in params: - path_params['queryId'] = params['query_id'] # noqa: E501 - - query_params = [] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - # HTTP header `Accept` - header_params['Accept'] = self.api_client.select_header_accept( - ['*/*']) # noqa: E501 - - # Authentication setting - auth_settings = ['bearerAuth'] # noqa: E501 - - return self.api_client.call_api( - '/api/container/{id}/database/{databaseId}/query/{queryId}', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='QueryDto', # noqa: E501 - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def find_all(self, id, database_id, **kwargs): # noqa: E501 - """Find queries # noqa: E501 - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.find_all(id, database_id, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param int id: (required) - :param int database_id: (required) - :return: list[QueryBriefDto] - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.find_all_with_http_info(id, database_id, **kwargs) # noqa: E501 - else: - (data) = self.find_all_with_http_info(id, database_id, **kwargs) # noqa: E501 - return data - - def find_all_with_http_info(self, id, database_id, **kwargs): # noqa: E501 - """Find queries # noqa: E501 - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.find_all_with_http_info(id, database_id, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param int id: (required) - :param int database_id: (required) - :return: list[QueryBriefDto] - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['id', 'database_id'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in six.iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method find_all" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'id' is set - if ('id' not in params or - params['id'] is None): - raise ValueError("Missing the required parameter `id` when calling `find_all`") # noqa: E501 - # verify the required parameter 'database_id' is set - if ('database_id' not in params or - params['database_id'] is None): - raise ValueError("Missing the required parameter `database_id` when calling `find_all`") # noqa: E501 - - collection_formats = {} - - path_params = {} - if 'id' in params: - path_params['id'] = params['id'] # noqa: E501 - if 'database_id' in params: - path_params['databaseId'] = params['database_id'] # noqa: E501 - - query_params = [] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - # HTTP header `Accept` - header_params['Accept'] = self.api_client.select_header_accept( - ['*/*']) # noqa: E501 - - # Authentication setting - auth_settings = ['bearerAuth'] # noqa: E501 - - return self.api_client.call_api( - '/api/container/{id}/database/{databaseId}/query', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='list[QueryBriefDto]', # noqa: E501 - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) diff --git a/swagger/api-query/swagger_client/api/table_data_endpoint_api.py b/swagger/api-query/swagger_client/api/table_data_endpoint_api.py deleted file mode 100644 index 8e0545b63dbabbc0db9c8a2c72d399590cf892a8..0000000000000000000000000000000000000000 --- a/swagger/api-query/swagger_client/api/table_data_endpoint_api.py +++ /dev/null @@ -1,759 +0,0 @@ -# coding: utf-8 - -""" - Database Repository Query Service API - - Service that manages the queries # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -from __future__ import absolute_import - -import re # noqa: F401 - -# python 2 and python 3 compatibility library -import six - -from swagger_client.api_client import ApiClient - - -class TableDataEndpointApi(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - Ref: https://github.com/swagger-api/swagger-codegen - """ - - def __init__(self, api_client=None): - if api_client is None: - api_client = ApiClient() - self.api_client = api_client - - def delete(self, body, id, database_id, table_id, **kwargs): # noqa: E501 - """Delete data # noqa: E501 - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.delete(body, id, database_id, table_id, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param TableCsvDeleteDto body: (required) - :param int id: (required) - :param int database_id: (required) - :param int table_id: (required) - :return: None - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.delete_with_http_info(body, id, database_id, table_id, **kwargs) # noqa: E501 - else: - (data) = self.delete_with_http_info(body, id, database_id, table_id, **kwargs) # noqa: E501 - return data - - def delete_with_http_info(self, body, id, database_id, table_id, **kwargs): # noqa: E501 - """Delete data # noqa: E501 - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.delete_with_http_info(body, id, database_id, table_id, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param TableCsvDeleteDto body: (required) - :param int id: (required) - :param int database_id: (required) - :param int table_id: (required) - :return: None - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['body', 'id', 'database_id', 'table_id'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in six.iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method delete" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'body' is set - if ('body' not in params or - params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `delete`") # noqa: E501 - # verify the required parameter 'id' is set - if ('id' not in params or - params['id'] is None): - raise ValueError("Missing the required parameter `id` when calling `delete`") # noqa: E501 - # verify the required parameter 'database_id' is set - if ('database_id' not in params or - params['database_id'] is None): - raise ValueError("Missing the required parameter `database_id` when calling `delete`") # noqa: E501 - # verify the required parameter 'table_id' is set - if ('table_id' not in params or - params['table_id'] is None): - raise ValueError("Missing the required parameter `table_id` when calling `delete`") # noqa: E501 - - collection_formats = {} - - path_params = {} - if 'id' in params: - path_params['id'] = params['id'] # noqa: E501 - if 'database_id' in params: - path_params['databaseId'] = params['database_id'] # noqa: E501 - if 'table_id' in params: - path_params['tableId'] = params['table_id'] # noqa: E501 - - query_params = [] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - if 'body' in params: - body_params = params['body'] - # HTTP header `Accept` - header_params['Accept'] = self.api_client.select_header_accept( - ['*/*']) # noqa: E501 - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 - ['application/json']) # noqa: E501 - - # Authentication setting - auth_settings = ['bearerAuth'] # noqa: E501 - - return self.api_client.call_api( - '/api/container/{id}/database/{databaseId}/table/{tableId}/data', 'DELETE', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type=None, # noqa: E501 - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def get_all2(self, id, database_id, table_id, **kwargs): # noqa: E501 - """Find data # noqa: E501 - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.get_all2(id, database_id, table_id, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param int id: (required) - :param int database_id: (required) - :param int table_id: (required) - :param datetime timestamp: - :param int page: - :param int size: - :return: QueryResultDto - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.get_all2_with_http_info(id, database_id, table_id, **kwargs) # noqa: E501 - else: - (data) = self.get_all2_with_http_info(id, database_id, table_id, **kwargs) # noqa: E501 - return data - - def get_all2_with_http_info(self, id, database_id, table_id, **kwargs): # noqa: E501 - """Find data # noqa: E501 - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.get_all2_with_http_info(id, database_id, table_id, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param int id: (required) - :param int database_id: (required) - :param int table_id: (required) - :param datetime timestamp: - :param int page: - :param int size: - :return: QueryResultDto - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['id', 'database_id', 'table_id', 'timestamp', 'page', 'size'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in six.iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method get_all2" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'id' is set - if ('id' not in params or - params['id'] is None): - raise ValueError("Missing the required parameter `id` when calling `get_all2`") # noqa: E501 - # verify the required parameter 'database_id' is set - if ('database_id' not in params or - params['database_id'] is None): - raise ValueError("Missing the required parameter `database_id` when calling `get_all2`") # noqa: E501 - # verify the required parameter 'table_id' is set - if ('table_id' not in params or - params['table_id'] is None): - raise ValueError("Missing the required parameter `table_id` when calling `get_all2`") # noqa: E501 - - collection_formats = {} - - path_params = {} - if 'id' in params: - path_params['id'] = params['id'] # noqa: E501 - if 'database_id' in params: - path_params['databaseId'] = params['database_id'] # noqa: E501 - if 'table_id' in params: - path_params['tableId'] = params['table_id'] # noqa: E501 - - query_params = [] - if 'timestamp' in params: - query_params.append(('timestamp', params['timestamp'])) # noqa: E501 - if 'page' in params: - query_params.append(('page', params['page'])) # noqa: E501 - if 'size' in params: - query_params.append(('size', params['size'])) # noqa: E501 - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - # HTTP header `Accept` - header_params['Accept'] = self.api_client.select_header_accept( - ['*/*']) # noqa: E501 - - # Authentication setting - auth_settings = ['bearerAuth'] # noqa: E501 - - return self.api_client.call_api( - '/api/container/{id}/database/{databaseId}/table/{tableId}/data', 'HEAD', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='QueryResultDto', # noqa: E501 - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def get_all3(self, id, database_id, table_id, **kwargs): # noqa: E501 - """Find data # noqa: E501 - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.get_all3(id, database_id, table_id, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param int id: (required) - :param int database_id: (required) - :param int table_id: (required) - :param datetime timestamp: - :param int page: - :param int size: - :return: QueryResultDto - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.get_all3_with_http_info(id, database_id, table_id, **kwargs) # noqa: E501 - else: - (data) = self.get_all3_with_http_info(id, database_id, table_id, **kwargs) # noqa: E501 - return data - - def get_all3_with_http_info(self, id, database_id, table_id, **kwargs): # noqa: E501 - """Find data # noqa: E501 - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.get_all3_with_http_info(id, database_id, table_id, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param int id: (required) - :param int database_id: (required) - :param int table_id: (required) - :param datetime timestamp: - :param int page: - :param int size: - :return: QueryResultDto - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['id', 'database_id', 'table_id', 'timestamp', 'page', 'size'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in six.iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method get_all3" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'id' is set - if ('id' not in params or - params['id'] is None): - raise ValueError("Missing the required parameter `id` when calling `get_all3`") # noqa: E501 - # verify the required parameter 'database_id' is set - if ('database_id' not in params or - params['database_id'] is None): - raise ValueError("Missing the required parameter `database_id` when calling `get_all3`") # noqa: E501 - # verify the required parameter 'table_id' is set - if ('table_id' not in params or - params['table_id'] is None): - raise ValueError("Missing the required parameter `table_id` when calling `get_all3`") # noqa: E501 - - collection_formats = {} - - path_params = {} - if 'id' in params: - path_params['id'] = params['id'] # noqa: E501 - if 'database_id' in params: - path_params['databaseId'] = params['database_id'] # noqa: E501 - if 'table_id' in params: - path_params['tableId'] = params['table_id'] # noqa: E501 - - query_params = [] - if 'timestamp' in params: - query_params.append(('timestamp', params['timestamp'])) # noqa: E501 - if 'page' in params: - query_params.append(('page', params['page'])) # noqa: E501 - if 'size' in params: - query_params.append(('size', params['size'])) # noqa: E501 - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - # HTTP header `Accept` - header_params['Accept'] = self.api_client.select_header_accept( - ['*/*']) # noqa: E501 - - # Authentication setting - auth_settings = ['bearerAuth'] # noqa: E501 - - return self.api_client.call_api( - '/api/container/{id}/database/{databaseId}/table/{tableId}/data', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='QueryResultDto', # noqa: E501 - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def import_csv(self, body, id, database_id, table_id, **kwargs): # noqa: E501 - """Insert data from csv # noqa: E501 - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.import_csv(body, id, database_id, table_id, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param ImportDto body: (required) - :param int id: (required) - :param int database_id: (required) - :param int table_id: (required) - :return: None - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.import_csv_with_http_info(body, id, database_id, table_id, **kwargs) # noqa: E501 - else: - (data) = self.import_csv_with_http_info(body, id, database_id, table_id, **kwargs) # noqa: E501 - return data - - def import_csv_with_http_info(self, body, id, database_id, table_id, **kwargs): # noqa: E501 - """Insert data from csv # noqa: E501 - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.import_csv_with_http_info(body, id, database_id, table_id, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param ImportDto body: (required) - :param int id: (required) - :param int database_id: (required) - :param int table_id: (required) - :return: None - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['body', 'id', 'database_id', 'table_id'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in six.iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method import_csv" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'body' is set - if ('body' not in params or - params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `import_csv`") # noqa: E501 - # verify the required parameter 'id' is set - if ('id' not in params or - params['id'] is None): - raise ValueError("Missing the required parameter `id` when calling `import_csv`") # noqa: E501 - # verify the required parameter 'database_id' is set - if ('database_id' not in params or - params['database_id'] is None): - raise ValueError("Missing the required parameter `database_id` when calling `import_csv`") # noqa: E501 - # verify the required parameter 'table_id' is set - if ('table_id' not in params or - params['table_id'] is None): - raise ValueError("Missing the required parameter `table_id` when calling `import_csv`") # noqa: E501 - - collection_formats = {} - - path_params = {} - if 'id' in params: - path_params['id'] = params['id'] # noqa: E501 - if 'database_id' in params: - path_params['databaseId'] = params['database_id'] # noqa: E501 - if 'table_id' in params: - path_params['tableId'] = params['table_id'] # noqa: E501 - - query_params = [] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - if 'body' in params: - body_params = params['body'] - # HTTP header `Accept` - header_params['Accept'] = self.api_client.select_header_accept( - ['*/*']) # noqa: E501 - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 - ['application/json']) # noqa: E501 - - # Authentication setting - auth_settings = ['bearerAuth'] # noqa: E501 - - return self.api_client.call_api( - '/api/container/{id}/database/{databaseId}/table/{tableId}/data/import', 'POST', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type=None, # noqa: E501 - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def insert(self, body, id, database_id, table_id, **kwargs): # noqa: E501 - """Insert data # noqa: E501 - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.insert(body, id, database_id, table_id, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param TableCsvDto body: (required) - :param int id: (required) - :param int database_id: (required) - :param int table_id: (required) - :return: None - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.insert_with_http_info(body, id, database_id, table_id, **kwargs) # noqa: E501 - else: - (data) = self.insert_with_http_info(body, id, database_id, table_id, **kwargs) # noqa: E501 - return data - - def insert_with_http_info(self, body, id, database_id, table_id, **kwargs): # noqa: E501 - """Insert data # noqa: E501 - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.insert_with_http_info(body, id, database_id, table_id, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param TableCsvDto body: (required) - :param int id: (required) - :param int database_id: (required) - :param int table_id: (required) - :return: None - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['body', 'id', 'database_id', 'table_id'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in six.iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method insert" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'body' is set - if ('body' not in params or - params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `insert`") # noqa: E501 - # verify the required parameter 'id' is set - if ('id' not in params or - params['id'] is None): - raise ValueError("Missing the required parameter `id` when calling `insert`") # noqa: E501 - # verify the required parameter 'database_id' is set - if ('database_id' not in params or - params['database_id'] is None): - raise ValueError("Missing the required parameter `database_id` when calling `insert`") # noqa: E501 - # verify the required parameter 'table_id' is set - if ('table_id' not in params or - params['table_id'] is None): - raise ValueError("Missing the required parameter `table_id` when calling `insert`") # noqa: E501 - - collection_formats = {} - - path_params = {} - if 'id' in params: - path_params['id'] = params['id'] # noqa: E501 - if 'database_id' in params: - path_params['databaseId'] = params['database_id'] # noqa: E501 - if 'table_id' in params: - path_params['tableId'] = params['table_id'] # noqa: E501 - - query_params = [] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - if 'body' in params: - body_params = params['body'] - # HTTP header `Accept` - header_params['Accept'] = self.api_client.select_header_accept( - ['*/*']) # noqa: E501 - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 - ['application/json']) # noqa: E501 - - # Authentication setting - auth_settings = ['bearerAuth'] # noqa: E501 - - return self.api_client.call_api( - '/api/container/{id}/database/{databaseId}/table/{tableId}/data', 'POST', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type=None, # noqa: E501 - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def update(self, body, id, database_id, table_id, **kwargs): # noqa: E501 - """Update data # noqa: E501 - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.update(body, id, database_id, table_id, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param TableCsvUpdateDto body: (required) - :param int id: (required) - :param int database_id: (required) - :param int table_id: (required) - :return: None - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.update_with_http_info(body, id, database_id, table_id, **kwargs) # noqa: E501 - else: - (data) = self.update_with_http_info(body, id, database_id, table_id, **kwargs) # noqa: E501 - return data - - def update_with_http_info(self, body, id, database_id, table_id, **kwargs): # noqa: E501 - """Update data # noqa: E501 - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.update_with_http_info(body, id, database_id, table_id, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param TableCsvUpdateDto body: (required) - :param int id: (required) - :param int database_id: (required) - :param int table_id: (required) - :return: None - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['body', 'id', 'database_id', 'table_id'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in six.iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method update" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'body' is set - if ('body' not in params or - params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `update`") # noqa: E501 - # verify the required parameter 'id' is set - if ('id' not in params or - params['id'] is None): - raise ValueError("Missing the required parameter `id` when calling `update`") # noqa: E501 - # verify the required parameter 'database_id' is set - if ('database_id' not in params or - params['database_id'] is None): - raise ValueError("Missing the required parameter `database_id` when calling `update`") # noqa: E501 - # verify the required parameter 'table_id' is set - if ('table_id' not in params or - params['table_id'] is None): - raise ValueError("Missing the required parameter `table_id` when calling `update`") # noqa: E501 - - collection_formats = {} - - path_params = {} - if 'id' in params: - path_params['id'] = params['id'] # noqa: E501 - if 'database_id' in params: - path_params['databaseId'] = params['database_id'] # noqa: E501 - if 'table_id' in params: - path_params['tableId'] = params['table_id'] # noqa: E501 - - query_params = [] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - if 'body' in params: - body_params = params['body'] - # HTTP header `Accept` - header_params['Accept'] = self.api_client.select_header_accept( - ['*/*']) # noqa: E501 - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 - ['application/json']) # noqa: E501 - - # Authentication setting - auth_settings = ['bearerAuth'] # noqa: E501 - - return self.api_client.call_api( - '/api/container/{id}/database/{databaseId}/table/{tableId}/data', 'PUT', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type=None, # noqa: E501 - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) diff --git a/swagger/api-query/swagger_client/api/table_history_endpoint_api.py b/swagger/api-query/swagger_client/api/table_history_endpoint_api.py deleted file mode 100644 index b8d2b5454cc287afb8a043aeac6e4e777508033e..0000000000000000000000000000000000000000 --- a/swagger/api-query/swagger_client/api/table_history_endpoint_api.py +++ /dev/null @@ -1,251 +0,0 @@ -# coding: utf-8 - -""" - Database Repository Query Service API - - Service that manages the queries # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -from __future__ import absolute_import - -import re # noqa: F401 - -# python 2 and python 3 compatibility library -import six - -from swagger_client.api_client import ApiClient - - -class TableHistoryEndpointApi(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - Ref: https://github.com/swagger-api/swagger-codegen - """ - - def __init__(self, api_client=None): - if api_client is None: - api_client = ApiClient() - self.api_client = api_client - - def get_all(self, id, database_id, table_id, **kwargs): # noqa: E501 - """Find all history # noqa: E501 - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.get_all(id, database_id, table_id, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param int id: (required) - :param int database_id: (required) - :param int table_id: (required) - :return: list[TableHistoryDto] - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.get_all_with_http_info(id, database_id, table_id, **kwargs) # noqa: E501 - else: - (data) = self.get_all_with_http_info(id, database_id, table_id, **kwargs) # noqa: E501 - return data - - def get_all_with_http_info(self, id, database_id, table_id, **kwargs): # noqa: E501 - """Find all history # noqa: E501 - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.get_all_with_http_info(id, database_id, table_id, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param int id: (required) - :param int database_id: (required) - :param int table_id: (required) - :return: list[TableHistoryDto] - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['id', 'database_id', 'table_id'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in six.iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method get_all" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'id' is set - if ('id' not in params or - params['id'] is None): - raise ValueError("Missing the required parameter `id` when calling `get_all`") # noqa: E501 - # verify the required parameter 'database_id' is set - if ('database_id' not in params or - params['database_id'] is None): - raise ValueError("Missing the required parameter `database_id` when calling `get_all`") # noqa: E501 - # verify the required parameter 'table_id' is set - if ('table_id' not in params or - params['table_id'] is None): - raise ValueError("Missing the required parameter `table_id` when calling `get_all`") # noqa: E501 - - collection_formats = {} - - path_params = {} - if 'id' in params: - path_params['id'] = params['id'] # noqa: E501 - if 'database_id' in params: - path_params['databaseId'] = params['database_id'] # noqa: E501 - if 'table_id' in params: - path_params['tableId'] = params['table_id'] # noqa: E501 - - query_params = [] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - # HTTP header `Accept` - header_params['Accept'] = self.api_client.select_header_accept( - ['*/*']) # noqa: E501 - - # Authentication setting - auth_settings = ['bearerAuth'] # noqa: E501 - - return self.api_client.call_api( - '/api/container/{id}/database/{databaseId}/table/{tableId}/history', 'HEAD', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='list[TableHistoryDto]', # noqa: E501 - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def get_all1(self, id, database_id, table_id, **kwargs): # noqa: E501 - """Find all history # noqa: E501 - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.get_all1(id, database_id, table_id, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param int id: (required) - :param int database_id: (required) - :param int table_id: (required) - :return: list[TableHistoryDto] - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.get_all1_with_http_info(id, database_id, table_id, **kwargs) # noqa: E501 - else: - (data) = self.get_all1_with_http_info(id, database_id, table_id, **kwargs) # noqa: E501 - return data - - def get_all1_with_http_info(self, id, database_id, table_id, **kwargs): # noqa: E501 - """Find all history # noqa: E501 - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.get_all1_with_http_info(id, database_id, table_id, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param int id: (required) - :param int database_id: (required) - :param int table_id: (required) - :return: list[TableHistoryDto] - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['id', 'database_id', 'table_id'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in six.iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method get_all1" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'id' is set - if ('id' not in params or - params['id'] is None): - raise ValueError("Missing the required parameter `id` when calling `get_all1`") # noqa: E501 - # verify the required parameter 'database_id' is set - if ('database_id' not in params or - params['database_id'] is None): - raise ValueError("Missing the required parameter `database_id` when calling `get_all1`") # noqa: E501 - # verify the required parameter 'table_id' is set - if ('table_id' not in params or - params['table_id'] is None): - raise ValueError("Missing the required parameter `table_id` when calling `get_all1`") # noqa: E501 - - collection_formats = {} - - path_params = {} - if 'id' in params: - path_params['id'] = params['id'] # noqa: E501 - if 'database_id' in params: - path_params['databaseId'] = params['database_id'] # noqa: E501 - if 'table_id' in params: - path_params['tableId'] = params['table_id'] # noqa: E501 - - query_params = [] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - # HTTP header `Accept` - header_params['Accept'] = self.api_client.select_header_accept( - ['*/*']) # noqa: E501 - - # Authentication setting - auth_settings = ['bearerAuth'] # noqa: E501 - - return self.api_client.call_api( - '/api/container/{id}/database/{databaseId}/table/{tableId}/history', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='list[TableHistoryDto]', # noqa: E501 - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) diff --git a/swagger/api-query/swagger_client/api_client.py b/swagger/api-query/swagger_client/api_client.py deleted file mode 100644 index d0a9eab0e6dc471cd2d5da9396108bccdad82c01..0000000000000000000000000000000000000000 --- a/swagger/api-query/swagger_client/api_client.py +++ /dev/null @@ -1,632 +0,0 @@ -# coding: utf-8 -""" - Database Repository Query Service API - - Service that manages the queries # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" -from __future__ import absolute_import - -import datetime -import json -import mimetypes -from multiprocessing.pool import ThreadPool -import os -import re -import tempfile - -# python 2 and python 3 compatibility library -import six -from six.moves.urllib.parse import quote - -from swagger_client.configuration import Configuration -import swagger_client.models -from swagger_client import rest - - -class ApiClient(object): - """Generic API client for Swagger client library builds. - - Swagger generic API client. This client handles the client- - server communication, and is invariant across implementations. Specifics of - the methods and models for each application are generated from the Swagger - templates. - - NOTE: This class is auto generated by the swagger code generator program. - Ref: https://github.com/swagger-api/swagger-codegen - Do not edit the class manually. - - :param configuration: .Configuration object for this client - :param header_name: a header to pass when making calls to the API. - :param header_value: a header value to pass when making calls to - the API. - :param cookie: a cookie to include in the header when making calls - to the API - """ - - PRIMITIVE_TYPES = (float, bool, bytes, six.text_type) + six.integer_types - NATIVE_TYPES_MAPPING = { - 'int': int, - 'long': int if six.PY3 else long, # noqa: F821 - 'float': float, - 'str': str, - 'bool': bool, - 'date': datetime.date, - 'datetime': datetime.datetime, - 'object': object, - } - - def __init__(self, configuration=None, header_name=None, header_value=None, - cookie=None): - if configuration is None: - configuration = Configuration() - self.configuration = configuration - - self.pool = ThreadPool() - self.rest_client = rest.RESTClientObject(configuration) - self.default_headers = {} - if header_name is not None: - self.default_headers[header_name] = header_value - self.cookie = cookie - # Set default User-Agent. - self.user_agent = 'Swagger-Codegen/1.0.0/python' - - def __del__(self): - self.pool.close() - self.pool.join() - - @property - def user_agent(self): - """User agent for this API client""" - return self.default_headers['User-Agent'] - - @user_agent.setter - def user_agent(self, value): - self.default_headers['User-Agent'] = value - - def set_default_header(self, header_name, header_value): - self.default_headers[header_name] = header_value - - def __call_api( - self, resource_path, method, path_params=None, - query_params=None, header_params=None, body=None, post_params=None, - files=None, response_type=None, auth_settings=None, - _return_http_data_only=None, collection_formats=None, - _preload_content=True, _request_timeout=None): - - config = self.configuration - - # header parameters - header_params = header_params or {} - header_params.update(self.default_headers) - if self.cookie: - header_params['Cookie'] = self.cookie - if header_params: - header_params = self.sanitize_for_serialization(header_params) - header_params = dict(self.parameters_to_tuples(header_params, - collection_formats)) - - # path parameters - if path_params: - path_params = self.sanitize_for_serialization(path_params) - path_params = self.parameters_to_tuples(path_params, - collection_formats) - for k, v in path_params: - # specified safe chars, encode everything - resource_path = resource_path.replace( - '{%s}' % k, - quote(str(v), safe=config.safe_chars_for_path_param) - ) - - # query parameters - if query_params: - query_params = self.sanitize_for_serialization(query_params) - query_params = self.parameters_to_tuples(query_params, - collection_formats) - - # post parameters - if post_params or files: - post_params = self.prepare_post_parameters(post_params, files) - post_params = self.sanitize_for_serialization(post_params) - post_params = self.parameters_to_tuples(post_params, - collection_formats) - - # auth setting - self.update_params_for_auth(header_params, query_params, auth_settings) - - # body - if body: - body = self.sanitize_for_serialization(body) - - # request url - url = self.configuration.host + resource_path - - # perform request and return response - response_data = self.request( - method, url, query_params=query_params, headers=header_params, - post_params=post_params, body=body, - _preload_content=_preload_content, - _request_timeout=_request_timeout) - - self.last_response = response_data - - return_data = response_data - if _preload_content: - # deserialize response data - if response_type: - return_data = self.deserialize(response_data, response_type) - else: - return_data = None - - if _return_http_data_only: - return (return_data) - else: - return (return_data, response_data.status, - response_data.getheaders()) - - def sanitize_for_serialization(self, obj): - """Builds a JSON POST object. - - If obj is None, return None. - If obj is str, int, long, float, bool, return directly. - If obj is datetime.datetime, datetime.date - convert to string in iso8601 format. - If obj is list, sanitize each element in the list. - If obj is dict, return the dict. - If obj is swagger model, return the properties dict. - - :param obj: The data to serialize. - :return: The serialized form of data. - """ - if obj is None: - return None - elif isinstance(obj, self.PRIMITIVE_TYPES): - return obj - elif isinstance(obj, list): - return [self.sanitize_for_serialization(sub_obj) - for sub_obj in obj] - elif isinstance(obj, tuple): - return tuple(self.sanitize_for_serialization(sub_obj) - for sub_obj in obj) - elif isinstance(obj, (datetime.datetime, datetime.date)): - return obj.isoformat() - - if isinstance(obj, dict): - obj_dict = obj - else: - # Convert model obj to dict except - # attributes `swagger_types`, `attribute_map` - # and attributes which value is not None. - # Convert attribute name to json key in - # model definition for request. - obj_dict = {obj.attribute_map[attr]: getattr(obj, attr) - for attr, _ in six.iteritems(obj.swagger_types) - if getattr(obj, attr) is not None} - - return {key: self.sanitize_for_serialization(val) - for key, val in six.iteritems(obj_dict)} - - def deserialize(self, response, response_type): - """Deserializes response into an object. - - :param response: RESTResponse object to be deserialized. - :param response_type: class literal for - deserialized object, or string of class name. - - :return: deserialized object. - """ - # handle file downloading - # save response body into a tmp file and return the instance - if response_type == "file": - return self.__deserialize_file(response) - - # fetch data from response object - try: - data = json.loads(response.data) - except ValueError: - data = response.data - - return self.__deserialize(data, response_type) - - def __deserialize(self, data, klass): - """Deserializes dict, list, str into an object. - - :param data: dict, list or str. - :param klass: class literal, or string of class name. - - :return: object. - """ - if data is None: - return None - - if type(klass) == str: - if klass.startswith('list['): - sub_kls = re.match(r'list\[(.*)\]', klass).group(1) - return [self.__deserialize(sub_data, sub_kls) - for sub_data in data] - - if klass.startswith('dict('): - sub_kls = re.match(r'dict\(([^,]*), (.*)\)', klass).group(2) - return {k: self.__deserialize(v, sub_kls) - for k, v in six.iteritems(data)} - - # convert str to class - if klass in self.NATIVE_TYPES_MAPPING: - klass = self.NATIVE_TYPES_MAPPING[klass] - else: - klass = getattr(swagger_client.models, klass) - - if klass in self.PRIMITIVE_TYPES: - return self.__deserialize_primitive(data, klass) - elif klass == object: - return self.__deserialize_object(data) - elif klass == datetime.date: - return self.__deserialize_date(data) - elif klass == datetime.datetime: - return self.__deserialize_datatime(data) - else: - return self.__deserialize_model(data, klass) - - def call_api(self, resource_path, method, - path_params=None, query_params=None, header_params=None, - body=None, post_params=None, files=None, - response_type=None, auth_settings=None, async_req=None, - _return_http_data_only=None, collection_formats=None, - _preload_content=True, _request_timeout=None): - """Makes the HTTP request (synchronous) and returns deserialized data. - - To make an async request, set the async_req parameter. - - :param resource_path: Path to method endpoint. - :param method: Method to call. - :param path_params: Path parameters in the url. - :param query_params: Query parameters in the url. - :param header_params: Header parameters to be - placed in the request header. - :param body: Request body. - :param post_params dict: Request post form parameters, - for `application/x-www-form-urlencoded`, `multipart/form-data`. - :param auth_settings list: Auth Settings names for the request. - :param response: Response data type. - :param files dict: key -> filename, value -> filepath, - for `multipart/form-data`. - :param async_req bool: execute request asynchronously - :param _return_http_data_only: response data without head status code - and headers - :param collection_formats: dict of collection formats for path, query, - header, and post parameters. - :param _preload_content: if False, the urllib3.HTTPResponse object will - be returned without reading/decoding response - data. Default is True. - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :return: - If async_req parameter is True, - the request will be called asynchronously. - The method will return the request thread. - If parameter async_req is False or missing, - then the method will return the response directly. - """ - if not async_req: - return self.__call_api(resource_path, method, - path_params, query_params, header_params, - body, post_params, files, - response_type, auth_settings, - _return_http_data_only, collection_formats, - _preload_content, _request_timeout) - else: - thread = self.pool.apply_async(self.__call_api, (resource_path, - method, path_params, query_params, - header_params, body, - post_params, files, - response_type, auth_settings, - _return_http_data_only, - collection_formats, - _preload_content, _request_timeout)) - return thread - - def request(self, method, url, query_params=None, headers=None, - post_params=None, body=None, _preload_content=True, - _request_timeout=None): - """Makes the HTTP request using RESTClient.""" - if method == "GET": - return self.rest_client.GET(url, - query_params=query_params, - _preload_content=_preload_content, - _request_timeout=_request_timeout, - headers=headers) - elif method == "HEAD": - return self.rest_client.HEAD(url, - query_params=query_params, - _preload_content=_preload_content, - _request_timeout=_request_timeout, - headers=headers) - elif method == "OPTIONS": - return self.rest_client.OPTIONS(url, - query_params=query_params, - headers=headers, - post_params=post_params, - _preload_content=_preload_content, - _request_timeout=_request_timeout, - body=body) - elif method == "POST": - return self.rest_client.POST(url, - query_params=query_params, - headers=headers, - post_params=post_params, - _preload_content=_preload_content, - _request_timeout=_request_timeout, - body=body) - elif method == "PUT": - return self.rest_client.PUT(url, - query_params=query_params, - headers=headers, - post_params=post_params, - _preload_content=_preload_content, - _request_timeout=_request_timeout, - body=body) - elif method == "PATCH": - return self.rest_client.PATCH(url, - query_params=query_params, - headers=headers, - post_params=post_params, - _preload_content=_preload_content, - _request_timeout=_request_timeout, - body=body) - elif method == "DELETE": - return self.rest_client.DELETE(url, - query_params=query_params, - headers=headers, - _preload_content=_preload_content, - _request_timeout=_request_timeout, - body=body) - else: - raise ValueError( - "http method must be `GET`, `HEAD`, `OPTIONS`," - " `POST`, `PATCH`, `PUT` or `DELETE`." - ) - - def parameters_to_tuples(self, params, collection_formats): - """Get parameters as list of tuples, formatting collections. - - :param params: Parameters as dict or list of two-tuples - :param dict collection_formats: Parameter collection formats - :return: Parameters as list of tuples, collections formatted - """ - new_params = [] - if collection_formats is None: - collection_formats = {} - for k, v in six.iteritems(params) if isinstance(params, dict) else params: # noqa: E501 - if k in collection_formats: - collection_format = collection_formats[k] - if collection_format == 'multi': - new_params.extend((k, value) for value in v) - else: - if collection_format == 'ssv': - delimiter = ' ' - elif collection_format == 'tsv': - delimiter = '\t' - elif collection_format == 'pipes': - delimiter = '|' - else: # csv is the default - delimiter = ',' - new_params.append( - (k, delimiter.join(str(value) for value in v))) - else: - new_params.append((k, v)) - return new_params - - def prepare_post_parameters(self, post_params=None, files=None): - """Builds form parameters. - - :param post_params: Normal form parameters. - :param files: File parameters. - :return: Form parameters with files. - """ - params = [] - - if post_params: - params = post_params - - if files: - for k, v in six.iteritems(files): - if not v: - continue - file_names = v if type(v) is list else [v] - for n in file_names: - with open(n, 'rb') as f: - filename = os.path.basename(f.name) - filedata = f.read() - mimetype = (mimetypes.guess_type(filename)[0] or - 'application/octet-stream') - params.append( - tuple([k, tuple([filename, filedata, mimetype])])) - - return params - - def select_header_accept(self, accepts): - """Returns `Accept` based on an array of accepts provided. - - :param accepts: List of headers. - :return: Accept (e.g. application/json). - """ - if not accepts: - return - - accepts = [x.lower() for x in accepts] - - if 'application/json' in accepts: - return 'application/json' - else: - return ', '.join(accepts) - - def select_header_content_type(self, content_types): - """Returns `Content-Type` based on an array of content_types provided. - - :param content_types: List of content-types. - :return: Content-Type (e.g. application/json). - """ - if not content_types: - return 'application/json' - - content_types = [x.lower() for x in content_types] - - if 'application/json' in content_types or '*/*' in content_types: - return 'application/json' - else: - return content_types[0] - - def update_params_for_auth(self, headers, querys, auth_settings): - """Updates header and query params based on authentication setting. - - :param headers: Header parameters dict to be updated. - :param querys: Query parameters tuple list to be updated. - :param auth_settings: Authentication setting identifiers list. - """ - if not auth_settings: - return - - for auth in auth_settings: - auth_setting = self.configuration.auth_settings().get(auth) - if auth_setting: - if not auth_setting['value']: - continue - elif auth_setting['in'] == 'header': - headers[auth_setting['key']] = auth_setting['value'] - elif auth_setting['in'] == 'query': - querys.append((auth_setting['key'], auth_setting['value'])) - else: - raise ValueError( - 'Authentication token must be in `query` or `header`' - ) - - def __deserialize_file(self, response): - """Deserializes body to file - - Saves response body into a file in a temporary folder, - using the filename from the `Content-Disposition` header if provided. - - :param response: RESTResponse. - :return: file path. - """ - fd, path = tempfile.mkstemp(dir=self.configuration.temp_folder_path) - os.close(fd) - os.remove(path) - - content_disposition = response.getheader("Content-Disposition") - if content_disposition: - filename = re.search(r'filename=[\'"]?([^\'"\s]+)[\'"]?', - content_disposition).group(1) - path = os.path.join(os.path.dirname(path), filename) - response_data = response.data - with open(path, "wb") as f: - if isinstance(response_data, str): - # change str to bytes so we can write it - response_data = response_data.encode('utf-8') - f.write(response_data) - else: - f.write(response_data) - return path - - def __deserialize_primitive(self, data, klass): - """Deserializes string to primitive type. - - :param data: str. - :param klass: class literal. - - :return: int, long, float, str, bool. - """ - try: - return klass(data) - except UnicodeEncodeError: - return six.text_type(data) - except TypeError: - return data - - def __deserialize_object(self, value): - """Return a original value. - - :return: object. - """ - return value - - def __deserialize_date(self, string): - """Deserializes string to date. - - :param string: str. - :return: date. - """ - try: - from dateutil.parser import parse - return parse(string).date() - except ImportError: - return string - except ValueError: - raise rest.ApiException( - status=0, - reason="Failed to parse `{0}` as date object".format(string) - ) - - def __deserialize_datatime(self, string): - """Deserializes string to datetime. - - The string should be in iso8601 datetime format. - - :param string: str. - :return: datetime. - """ - try: - from dateutil.parser import parse - return parse(string) - except ImportError: - return string - except ValueError: - raise rest.ApiException( - status=0, - reason=( - "Failed to parse `{0}` as datetime object" - .format(string) - ) - ) - - def __hasattr(self, object, name): - return name in object.__class__.__dict__ - - def __deserialize_model(self, data, klass): - """Deserializes list or dict to model. - - :param data: dict, list. - :param klass: class literal. - :return: model object. - """ - - if not klass.swagger_types and not self.__hasattr(klass, 'get_real_child_model'): - return data - - kwargs = {} - if klass.swagger_types is not None: - for attr, attr_type in six.iteritems(klass.swagger_types): - if (data is not None and - klass.attribute_map[attr] in data and - isinstance(data, (list, dict))): - value = data[klass.attribute_map[attr]] - kwargs[attr] = self.__deserialize(value, attr_type) - - instance = klass(**kwargs) - - if (isinstance(instance, dict) and - klass.swagger_types is not None and - isinstance(data, dict)): - for key, value in data.items(): - if key not in klass.swagger_types: - instance[key] = value - if self.__hasattr(instance, 'get_real_child_model'): - klass_name = instance.get_real_child_model(data) - if klass_name: - instance = self.__deserialize(data, klass_name) - return instance diff --git a/swagger/api-query/swagger_client/configuration.py b/swagger/api-query/swagger_client/configuration.py deleted file mode 100644 index da5eb7a34773b67ffd88b0ec8cb888a3c9ea2cfe..0000000000000000000000000000000000000000 --- a/swagger/api-query/swagger_client/configuration.py +++ /dev/null @@ -1,244 +0,0 @@ -# coding: utf-8 - -""" - Database Repository Query Service API - - Service that manages the queries # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -from __future__ import absolute_import - -import copy -import logging -import multiprocessing -import sys -import urllib3 - -import six -from six.moves import http_client as httplib - - -class TypeWithDefault(type): - def __init__(cls, name, bases, dct): - super(TypeWithDefault, cls).__init__(name, bases, dct) - cls._default = None - - def __call__(cls): - if cls._default is None: - cls._default = type.__call__(cls) - return copy.copy(cls._default) - - def set_default(cls, default): - cls._default = copy.copy(default) - - -class Configuration(six.with_metaclass(TypeWithDefault, object)): - """NOTE: This class is auto generated by the swagger code generator program. - - Ref: https://github.com/swagger-api/swagger-codegen - Do not edit the class manually. - """ - - def __init__(self): - """Constructor""" - # Default Base url - self.host = "http://localhost:9093" - # Temp file folder for downloading files - self.temp_folder_path = None - - # Authentication Settings - # dict to store API key(s) - self.api_key = {} - # dict to store API prefix (e.g. Bearer) - self.api_key_prefix = {} - # function to refresh API key if expired - self.refresh_api_key_hook = None - # Username for HTTP basic authentication - self.username = "" - # Password for HTTP basic authentication - self.password = "" - # Logging Settings - self.logger = {} - self.logger["package_logger"] = logging.getLogger("swagger_client") - self.logger["urllib3_logger"] = logging.getLogger("urllib3") - # Log format - self.logger_format = '%(asctime)s %(levelname)s %(message)s' - # Log stream handler - self.logger_stream_handler = None - # Log file handler - self.logger_file_handler = None - # Debug file location - self.logger_file = None - # Debug switch - self.debug = False - - # SSL/TLS verification - # Set this to false to skip verifying SSL certificate when calling API - # from https server. - self.verify_ssl = True - # Set this to customize the certificate file to verify the peer. - self.ssl_ca_cert = None - # client certificate file - self.cert_file = None - # client key file - self.key_file = None - # Set this to True/False to enable/disable SSL hostname verification. - self.assert_hostname = None - - # urllib3 connection pool's maximum number of connections saved - # per pool. urllib3 uses 1 connection as default value, but this is - # not the best value when you are making a lot of possibly parallel - # requests to the same host, which is often the case here. - # cpu_count * 5 is used as default value to increase performance. - self.connection_pool_maxsize = multiprocessing.cpu_count() * 5 - - # Proxy URL - self.proxy = None - # Safe chars for path_param - self.safe_chars_for_path_param = '' - - @property - def logger_file(self): - """The logger file. - - If the logger_file is None, then add stream handler and remove file - handler. Otherwise, add file handler and remove stream handler. - - :param value: The logger_file path. - :type: str - """ - return self.__logger_file - - @logger_file.setter - def logger_file(self, value): - """The logger file. - - If the logger_file is None, then add stream handler and remove file - handler. Otherwise, add file handler and remove stream handler. - - :param value: The logger_file path. - :type: str - """ - self.__logger_file = value - if self.__logger_file: - # If set logging file, - # then add file handler and remove stream handler. - self.logger_file_handler = logging.FileHandler(self.__logger_file) - self.logger_file_handler.setFormatter(self.logger_formatter) - for _, logger in six.iteritems(self.logger): - logger.addHandler(self.logger_file_handler) - if self.logger_stream_handler: - logger.removeHandler(self.logger_stream_handler) - else: - # If not set logging file, - # then add stream handler and remove file handler. - self.logger_stream_handler = logging.StreamHandler() - self.logger_stream_handler.setFormatter(self.logger_formatter) - for _, logger in six.iteritems(self.logger): - logger.addHandler(self.logger_stream_handler) - if self.logger_file_handler: - logger.removeHandler(self.logger_file_handler) - - @property - def debug(self): - """Debug status - - :param value: The debug status, True or False. - :type: bool - """ - return self.__debug - - @debug.setter - def debug(self, value): - """Debug status - - :param value: The debug status, True or False. - :type: bool - """ - self.__debug = value - if self.__debug: - # if debug status is True, turn on debug logging - for _, logger in six.iteritems(self.logger): - logger.setLevel(logging.DEBUG) - # turn on httplib debug - httplib.HTTPConnection.debuglevel = 1 - else: - # if debug status is False, turn off debug logging, - # setting log level to default `logging.WARNING` - for _, logger in six.iteritems(self.logger): - logger.setLevel(logging.WARNING) - # turn off httplib debug - httplib.HTTPConnection.debuglevel = 0 - - @property - def logger_format(self): - """The logger format. - - The logger_formatter will be updated when sets logger_format. - - :param value: The format string. - :type: str - """ - return self.__logger_format - - @logger_format.setter - def logger_format(self, value): - """The logger format. - - The logger_formatter will be updated when sets logger_format. - - :param value: The format string. - :type: str - """ - self.__logger_format = value - self.logger_formatter = logging.Formatter(self.__logger_format) - - def get_api_key_with_prefix(self, identifier): - """Gets API key (with prefix if set). - - :param identifier: The identifier of apiKey. - :return: The token for api key authentication. - """ - if self.refresh_api_key_hook: - self.refresh_api_key_hook(self) - - key = self.api_key.get(identifier) - if key: - prefix = self.api_key_prefix.get(identifier) - if prefix: - return "%s %s" % (prefix, key) - else: - return key - - def get_basic_auth_token(self): - """Gets HTTP basic authentication header (string). - - :return: The token for basic HTTP authentication. - """ - return urllib3.util.make_headers( - basic_auth=self.username + ':' + self.password - ).get('authorization') - - def auth_settings(self): - """Gets Auth Settings dict for api client. - - :return: The Auth Settings information dict. - """ - return { - } - - def to_debug_report(self): - """Gets the essential information for debugging. - - :return: The report for debugging. - """ - return "Python SDK Debug Report:\n"\ - "OS: {env}\n"\ - "Python Version: {pyversion}\n"\ - "Version of the API: 1.1.0-alpha\n"\ - "SDK Package Version: 1.0.0".\ - format(env=sys.platform, pyversion=sys.version) diff --git a/swagger/api-query/swagger_client/models/__init__.py b/swagger/api-query/swagger_client/models/__init__.py deleted file mode 100644 index 0b71dca38c5432df28a8d36d5c8710858e89fcfe..0000000000000000000000000000000000000000 --- a/swagger/api-query/swagger_client/models/__init__.py +++ /dev/null @@ -1,37 +0,0 @@ -# coding: utf-8 - -# flake8: noqa -""" - Database Repository Query Service API - - Service that manages the queries # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -from __future__ import absolute_import - -# import models into model package -from swagger_client.models.api_error_dto import ApiErrorDto -from swagger_client.models.container_dto import ContainerDto -from swagger_client.models.database_dto import DatabaseDto -from swagger_client.models.execute_statement_dto import ExecuteStatementDto -from swagger_client.models.granted_authority_dto import GrantedAuthorityDto -from swagger_client.models.image_brief_dto import ImageBriefDto -from swagger_client.models.image_date_dto import ImageDateDto -from swagger_client.models.image_dto import ImageDto -from swagger_client.models.image_env_item_dto import ImageEnvItemDto -from swagger_client.models.import_dto import ImportDto -from swagger_client.models.license_dto import LicenseDto -from swagger_client.models.query_brief_dto import QueryBriefDto -from swagger_client.models.query_dto import QueryDto -from swagger_client.models.query_result_dto import QueryResultDto -from swagger_client.models.table_brief_dto import TableBriefDto -from swagger_client.models.table_csv_delete_dto import TableCsvDeleteDto -from swagger_client.models.table_csv_dto import TableCsvDto -from swagger_client.models.table_csv_update_dto import TableCsvUpdateDto -from swagger_client.models.table_history_dto import TableHistoryDto -from swagger_client.models.user_brief_dto import UserBriefDto -from swagger_client.models.user_dto import UserDto diff --git a/swagger/api-query/swagger_client/models/api_error_dto.py b/swagger/api-query/swagger_client/models/api_error_dto.py deleted file mode 100644 index d873b7d260a3216d012bde69351ddd5d9756d22d..0000000000000000000000000000000000000000 --- a/swagger/api-query/swagger_client/models/api_error_dto.py +++ /dev/null @@ -1,171 +0,0 @@ -# coding: utf-8 - -""" - Database Repository Query Service API - - Service that manages the queries # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -import pprint -import re # noqa: F401 - -import six - -class ApiErrorDto(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'status': 'str', - 'message': 'str', - 'code': 'str' - } - - attribute_map = { - 'status': 'status', - 'message': 'message', - 'code': 'code' - } - - def __init__(self, status=None, message=None, code=None): # noqa: E501 - """ApiErrorDto - a model defined in Swagger""" # noqa: E501 - self._status = None - self._message = None - self._code = None - self.discriminator = None - self.status = status - self.message = message - self.code = code - - @property - def status(self): - """Gets the status of this ApiErrorDto. # noqa: E501 - - - :return: The status of this ApiErrorDto. # noqa: E501 - :rtype: str - """ - return self._status - - @status.setter - def status(self, status): - """Sets the status of this ApiErrorDto. - - - :param status: The status of this ApiErrorDto. # noqa: E501 - :type: str - """ - if status is None: - raise ValueError("Invalid value for `status`, must not be `None`") # noqa: E501 - allowed_values = ["100 CONTINUE", "101 SWITCHING_PROTOCOLS", "102 PROCESSING", "103 CHECKPOINT", "200 OK", "201 CREATED", "202 ACCEPTED", "203 NON_AUTHORITATIVE_INFORMATION", "204 NO_CONTENT", "205 RESET_CONTENT", "206 PARTIAL_CONTENT", "207 MULTI_STATUS", "208 ALREADY_REPORTED", "226 IM_USED", "300 MULTIPLE_CHOICES", "301 MOVED_PERMANENTLY", "302 FOUND", "302 MOVED_TEMPORARILY", "303 SEE_OTHER", "304 NOT_MODIFIED", "305 USE_PROXY", "307 TEMPORARY_REDIRECT", "308 PERMANENT_REDIRECT", "400 BAD_REQUEST", "401 UNAUTHORIZED", "402 PAYMENT_REQUIRED", "403 FORBIDDEN", "404 NOT_FOUND", "405 METHOD_NOT_ALLOWED", "406 NOT_ACCEPTABLE", "407 PROXY_AUTHENTICATION_REQUIRED", "408 REQUEST_TIMEOUT", "409 CONFLICT", "410 GONE", "411 LENGTH_REQUIRED", "412 PRECONDITION_FAILED", "413 PAYLOAD_TOO_LARGE", "413 REQUEST_ENTITY_TOO_LARGE", "414 URI_TOO_LONG", "414 REQUEST_URI_TOO_LONG", "415 UNSUPPORTED_MEDIA_TYPE", "416 REQUESTED_RANGE_NOT_SATISFIABLE", "417 EXPECTATION_FAILED", "418 I_AM_A_TEAPOT", "419 INSUFFICIENT_SPACE_ON_RESOURCE", "420 METHOD_FAILURE", "421 DESTINATION_LOCKED", "422 UNPROCESSABLE_ENTITY", "423 LOCKED", "424 FAILED_DEPENDENCY", "425 TOO_EARLY", "426 UPGRADE_REQUIRED", "428 PRECONDITION_REQUIRED", "429 TOO_MANY_REQUESTS", "431 REQUEST_HEADER_FIELDS_TOO_LARGE", "451 UNAVAILABLE_FOR_LEGAL_REASONS", "500 INTERNAL_SERVER_ERROR", "501 NOT_IMPLEMENTED", "502 BAD_GATEWAY", "503 SERVICE_UNAVAILABLE", "504 GATEWAY_TIMEOUT", "505 HTTP_VERSION_NOT_SUPPORTED", "506 VARIANT_ALSO_NEGOTIATES", "507 INSUFFICIENT_STORAGE", "508 LOOP_DETECTED", "509 BANDWIDTH_LIMIT_EXCEEDED", "510 NOT_EXTENDED", "511 NETWORK_AUTHENTICATION_REQUIRED"] # noqa: E501 - if status not in allowed_values: - raise ValueError( - "Invalid value for `status` ({0}), must be one of {1}" # noqa: E501 - .format(status, allowed_values) - ) - - self._status = status - - @property - def message(self): - """Gets the message of this ApiErrorDto. # noqa: E501 - - - :return: The message of this ApiErrorDto. # noqa: E501 - :rtype: str - """ - return self._message - - @message.setter - def message(self, message): - """Sets the message of this ApiErrorDto. - - - :param message: The message of this ApiErrorDto. # noqa: E501 - :type: str - """ - if message is None: - raise ValueError("Invalid value for `message`, must not be `None`") # noqa: E501 - - self._message = message - - @property - def code(self): - """Gets the code of this ApiErrorDto. # noqa: E501 - - - :return: The code of this ApiErrorDto. # noqa: E501 - :rtype: str - """ - return self._code - - @code.setter - def code(self, code): - """Sets the code of this ApiErrorDto. - - - :param code: The code of this ApiErrorDto. # noqa: E501 - :type: str - """ - if code is None: - raise ValueError("Invalid value for `code`, must not be `None`") # noqa: E501 - - self._code = code - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(ApiErrorDto, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, ApiErrorDto): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/swagger/api-query/swagger_client/models/column_dto.py b/swagger/api-query/swagger_client/models/column_dto.py deleted file mode 100644 index f6997fd2c20d93994ec83b4d03ec0f925ea30d8d..0000000000000000000000000000000000000000 --- a/swagger/api-query/swagger_client/models/column_dto.py +++ /dev/null @@ -1,514 +0,0 @@ -# coding: utf-8 - -""" - Database Repository Query Service API - - Service that manages the queries # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -import pprint -import re # noqa: F401 - -import six - -class ColumnDto(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'id': 'int', - 'name': 'str', - 'unique': 'bool', - 'references': 'str', - 'internal_name': 'str', - 'date_format': 'ImageDateDto', - 'auto_generated': 'bool', - 'is_primary_key': 'bool', - 'column_type': 'str', - 'column_concept': 'ConceptDto', - 'decimal_digits_before': 'int', - 'decimal_digits_after': 'int', - 'is_null_allowed': 'bool', - 'check_expression': 'str', - 'foreign_key': 'str', - 'enum_values': 'list[str]' - } - - attribute_map = { - 'id': 'id', - 'name': 'name', - 'unique': 'unique', - 'references': 'references', - 'internal_name': 'internal_name', - 'date_format': 'date_format', - 'auto_generated': 'auto_generated', - 'is_primary_key': 'is_primary_key', - 'column_type': 'column_type', - 'column_concept': 'column_concept', - 'decimal_digits_before': 'decimal_digits_before', - 'decimal_digits_after': 'decimal_digits_after', - 'is_null_allowed': 'is_null_allowed', - 'check_expression': 'check_expression', - 'foreign_key': 'foreign_key', - 'enum_values': 'enum_values' - } - - def __init__(self, id=None, name=None, unique=None, references=None, internal_name=None, date_format=None, auto_generated=None, is_primary_key=None, column_type=None, column_concept=None, decimal_digits_before=None, decimal_digits_after=None, is_null_allowed=None, check_expression=None, foreign_key=None, enum_values=None): # noqa: E501 - """ColumnDto - a model defined in Swagger""" # noqa: E501 - self._id = None - self._name = None - self._unique = None - self._references = None - self._internal_name = None - self._date_format = None - self._auto_generated = None - self._is_primary_key = None - self._column_type = None - self._column_concept = None - self._decimal_digits_before = None - self._decimal_digits_after = None - self._is_null_allowed = None - self._check_expression = None - self._foreign_key = None - self._enum_values = None - self.discriminator = None - self.id = id - self.name = name - self.unique = unique - if references is not None: - self.references = references - self.internal_name = internal_name - if date_format is not None: - self.date_format = date_format - self.auto_generated = auto_generated - self.is_primary_key = is_primary_key - self.column_type = column_type - if column_concept is not None: - self.column_concept = column_concept - if decimal_digits_before is not None: - self.decimal_digits_before = decimal_digits_before - if decimal_digits_after is not None: - self.decimal_digits_after = decimal_digits_after - self.is_null_allowed = is_null_allowed - if check_expression is not None: - self.check_expression = check_expression - if foreign_key is not None: - self.foreign_key = foreign_key - if enum_values is not None: - self.enum_values = enum_values - - @property - def id(self): - """Gets the id of this ColumnDto. # noqa: E501 - - - :return: The id of this ColumnDto. # noqa: E501 - :rtype: int - """ - return self._id - - @id.setter - def id(self, id): - """Sets the id of this ColumnDto. - - - :param id: The id of this ColumnDto. # noqa: E501 - :type: int - """ - if id is None: - raise ValueError("Invalid value for `id`, must not be `None`") # noqa: E501 - - self._id = id - - @property - def name(self): - """Gets the name of this ColumnDto. # noqa: E501 - - - :return: The name of this ColumnDto. # noqa: E501 - :rtype: str - """ - return self._name - - @name.setter - def name(self, name): - """Sets the name of this ColumnDto. - - - :param name: The name of this ColumnDto. # noqa: E501 - :type: str - """ - if name is None: - raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501 - - self._name = name - - @property - def unique(self): - """Gets the unique of this ColumnDto. # noqa: E501 - - - :return: The unique of this ColumnDto. # noqa: E501 - :rtype: bool - """ - return self._unique - - @unique.setter - def unique(self, unique): - """Sets the unique of this ColumnDto. - - - :param unique: The unique of this ColumnDto. # noqa: E501 - :type: bool - """ - if unique is None: - raise ValueError("Invalid value for `unique`, must not be `None`") # noqa: E501 - - self._unique = unique - - @property - def references(self): - """Gets the references of this ColumnDto. # noqa: E501 - - - :return: The references of this ColumnDto. # noqa: E501 - :rtype: str - """ - return self._references - - @references.setter - def references(self, references): - """Sets the references of this ColumnDto. - - - :param references: The references of this ColumnDto. # noqa: E501 - :type: str - """ - - self._references = references - - @property - def internal_name(self): - """Gets the internal_name of this ColumnDto. # noqa: E501 - - - :return: The internal_name of this ColumnDto. # noqa: E501 - :rtype: str - """ - return self._internal_name - - @internal_name.setter - def internal_name(self, internal_name): - """Sets the internal_name of this ColumnDto. - - - :param internal_name: The internal_name of this ColumnDto. # noqa: E501 - :type: str - """ - if internal_name is None: - raise ValueError("Invalid value for `internal_name`, must not be `None`") # noqa: E501 - - self._internal_name = internal_name - - @property - def date_format(self): - """Gets the date_format of this ColumnDto. # noqa: E501 - - - :return: The date_format of this ColumnDto. # noqa: E501 - :rtype: ImageDateDto - """ - return self._date_format - - @date_format.setter - def date_format(self, date_format): - """Sets the date_format of this ColumnDto. - - - :param date_format: The date_format of this ColumnDto. # noqa: E501 - :type: ImageDateDto - """ - - self._date_format = date_format - - @property - def auto_generated(self): - """Gets the auto_generated of this ColumnDto. # noqa: E501 - - - :return: The auto_generated of this ColumnDto. # noqa: E501 - :rtype: bool - """ - return self._auto_generated - - @auto_generated.setter - def auto_generated(self, auto_generated): - """Sets the auto_generated of this ColumnDto. - - - :param auto_generated: The auto_generated of this ColumnDto. # noqa: E501 - :type: bool - """ - if auto_generated is None: - raise ValueError("Invalid value for `auto_generated`, must not be `None`") # noqa: E501 - - self._auto_generated = auto_generated - - @property - def is_primary_key(self): - """Gets the is_primary_key of this ColumnDto. # noqa: E501 - - - :return: The is_primary_key of this ColumnDto. # noqa: E501 - :rtype: bool - """ - return self._is_primary_key - - @is_primary_key.setter - def is_primary_key(self, is_primary_key): - """Sets the is_primary_key of this ColumnDto. - - - :param is_primary_key: The is_primary_key of this ColumnDto. # noqa: E501 - :type: bool - """ - if is_primary_key is None: - raise ValueError("Invalid value for `is_primary_key`, must not be `None`") # noqa: E501 - - self._is_primary_key = is_primary_key - - @property - def column_type(self): - """Gets the column_type of this ColumnDto. # noqa: E501 - - - :return: The column_type of this ColumnDto. # noqa: E501 - :rtype: str - """ - return self._column_type - - @column_type.setter - def column_type(self, column_type): - """Sets the column_type of this ColumnDto. - - - :param column_type: The column_type of this ColumnDto. # noqa: E501 - :type: str - """ - if column_type is None: - raise ValueError("Invalid value for `column_type`, must not be `None`") # noqa: E501 - allowed_values = ["enum", "number", "decimal", "string", "text", "boolean", "date", "timestamp", "blob"] # noqa: E501 - if column_type not in allowed_values: - raise ValueError( - "Invalid value for `column_type` ({0}), must be one of {1}" # noqa: E501 - .format(column_type, allowed_values) - ) - - self._column_type = column_type - - @property - def column_concept(self): - """Gets the column_concept of this ColumnDto. # noqa: E501 - - - :return: The column_concept of this ColumnDto. # noqa: E501 - :rtype: ConceptDto - """ - return self._column_concept - - @column_concept.setter - def column_concept(self, column_concept): - """Sets the column_concept of this ColumnDto. - - - :param column_concept: The column_concept of this ColumnDto. # noqa: E501 - :type: ConceptDto - """ - - self._column_concept = column_concept - - @property - def decimal_digits_before(self): - """Gets the decimal_digits_before of this ColumnDto. # noqa: E501 - - - :return: The decimal_digits_before of this ColumnDto. # noqa: E501 - :rtype: int - """ - return self._decimal_digits_before - - @decimal_digits_before.setter - def decimal_digits_before(self, decimal_digits_before): - """Sets the decimal_digits_before of this ColumnDto. - - - :param decimal_digits_before: The decimal_digits_before of this ColumnDto. # noqa: E501 - :type: int - """ - - self._decimal_digits_before = decimal_digits_before - - @property - def decimal_digits_after(self): - """Gets the decimal_digits_after of this ColumnDto. # noqa: E501 - - - :return: The decimal_digits_after of this ColumnDto. # noqa: E501 - :rtype: int - """ - return self._decimal_digits_after - - @decimal_digits_after.setter - def decimal_digits_after(self, decimal_digits_after): - """Sets the decimal_digits_after of this ColumnDto. - - - :param decimal_digits_after: The decimal_digits_after of this ColumnDto. # noqa: E501 - :type: int - """ - - self._decimal_digits_after = decimal_digits_after - - @property - def is_null_allowed(self): - """Gets the is_null_allowed of this ColumnDto. # noqa: E501 - - - :return: The is_null_allowed of this ColumnDto. # noqa: E501 - :rtype: bool - """ - return self._is_null_allowed - - @is_null_allowed.setter - def is_null_allowed(self, is_null_allowed): - """Sets the is_null_allowed of this ColumnDto. - - - :param is_null_allowed: The is_null_allowed of this ColumnDto. # noqa: E501 - :type: bool - """ - if is_null_allowed is None: - raise ValueError("Invalid value for `is_null_allowed`, must not be `None`") # noqa: E501 - - self._is_null_allowed = is_null_allowed - - @property - def check_expression(self): - """Gets the check_expression of this ColumnDto. # noqa: E501 - - - :return: The check_expression of this ColumnDto. # noqa: E501 - :rtype: str - """ - return self._check_expression - - @check_expression.setter - def check_expression(self, check_expression): - """Sets the check_expression of this ColumnDto. - - - :param check_expression: The check_expression of this ColumnDto. # noqa: E501 - :type: str - """ - - self._check_expression = check_expression - - @property - def foreign_key(self): - """Gets the foreign_key of this ColumnDto. # noqa: E501 - - - :return: The foreign_key of this ColumnDto. # noqa: E501 - :rtype: str - """ - return self._foreign_key - - @foreign_key.setter - def foreign_key(self, foreign_key): - """Sets the foreign_key of this ColumnDto. - - - :param foreign_key: The foreign_key of this ColumnDto. # noqa: E501 - :type: str - """ - - self._foreign_key = foreign_key - - @property - def enum_values(self): - """Gets the enum_values of this ColumnDto. # noqa: E501 - - - :return: The enum_values of this ColumnDto. # noqa: E501 - :rtype: list[str] - """ - return self._enum_values - - @enum_values.setter - def enum_values(self, enum_values): - """Sets the enum_values of this ColumnDto. - - - :param enum_values: The enum_values of this ColumnDto. # noqa: E501 - :type: list[str] - """ - - self._enum_values = enum_values - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(ColumnDto, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, ColumnDto): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/swagger/api-query/swagger_client/models/concept_dto.py b/swagger/api-query/swagger_client/models/concept_dto.py deleted file mode 100644 index 02ea52890e81572d29547d4bbfb8f69dd41e95a8..0000000000000000000000000000000000000000 --- a/swagger/api-query/swagger_client/models/concept_dto.py +++ /dev/null @@ -1,165 +0,0 @@ -# coding: utf-8 - -""" - Database Repository Query Service API - - Service that manages the queries # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -import pprint -import re # noqa: F401 - -import six - -class ConceptDto(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'uri': 'str', - 'name': 'str', - 'created': 'datetime' - } - - attribute_map = { - 'uri': 'uri', - 'name': 'name', - 'created': 'created' - } - - def __init__(self, uri=None, name=None, created=None): # noqa: E501 - """ConceptDto - a model defined in Swagger""" # noqa: E501 - self._uri = None - self._name = None - self._created = None - self.discriminator = None - self.uri = uri - self.name = name - self.created = created - - @property - def uri(self): - """Gets the uri of this ConceptDto. # noqa: E501 - - - :return: The uri of this ConceptDto. # noqa: E501 - :rtype: str - """ - return self._uri - - @uri.setter - def uri(self, uri): - """Sets the uri of this ConceptDto. - - - :param uri: The uri of this ConceptDto. # noqa: E501 - :type: str - """ - if uri is None: - raise ValueError("Invalid value for `uri`, must not be `None`") # noqa: E501 - - self._uri = uri - - @property - def name(self): - """Gets the name of this ConceptDto. # noqa: E501 - - - :return: The name of this ConceptDto. # noqa: E501 - :rtype: str - """ - return self._name - - @name.setter - def name(self, name): - """Sets the name of this ConceptDto. - - - :param name: The name of this ConceptDto. # noqa: E501 - :type: str - """ - if name is None: - raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501 - - self._name = name - - @property - def created(self): - """Gets the created of this ConceptDto. # noqa: E501 - - - :return: The created of this ConceptDto. # noqa: E501 - :rtype: datetime - """ - return self._created - - @created.setter - def created(self, created): - """Sets the created of this ConceptDto. - - - :param created: The created of this ConceptDto. # noqa: E501 - :type: datetime - """ - if created is None: - raise ValueError("Invalid value for `created`, must not be `None`") # noqa: E501 - - self._created = created - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(ConceptDto, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, ConceptDto): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/swagger/api-query/swagger_client/models/container_dto.py b/swagger/api-query/swagger_client/models/container_dto.py deleted file mode 100644 index 2869b35048a30bc5d5a0afe173526c738885301e..0000000000000000000000000000000000000000 --- a/swagger/api-query/swagger_client/models/container_dto.py +++ /dev/null @@ -1,355 +0,0 @@ -# coding: utf-8 - -""" - Database Repository Query Service API - - Service that manages the queries # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -import pprint -import re # noqa: F401 - -import six - -class ContainerDto(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'id': 'int', - 'hash': 'str', - 'name': 'str', - 'state': 'str', - 'databases': 'list[DatabaseDto]', - 'image': 'ImageBriefDto', - 'port': 'int', - 'created': 'datetime', - 'internal_name': 'str', - 'ip_address': 'str' - } - - attribute_map = { - 'id': 'id', - 'hash': 'hash', - 'name': 'name', - 'state': 'state', - 'databases': 'databases', - 'image': 'image', - 'port': 'port', - 'created': 'created', - 'internal_name': 'internal_name', - 'ip_address': 'ip_address' - } - - def __init__(self, id=None, hash=None, name=None, state=None, databases=None, image=None, port=None, created=None, internal_name=None, ip_address=None): # noqa: E501 - """ContainerDto - a model defined in Swagger""" # noqa: E501 - self._id = None - self._hash = None - self._name = None - self._state = None - self._databases = None - self._image = None - self._port = None - self._created = None - self._internal_name = None - self._ip_address = None - self.discriminator = None - self.id = id - self.hash = hash - self.name = name - if state is not None: - self.state = state - if databases is not None: - self.databases = databases - if image is not None: - self.image = image - if port is not None: - self.port = port - self.created = created - self.internal_name = internal_name - if ip_address is not None: - self.ip_address = ip_address - - @property - def id(self): - """Gets the id of this ContainerDto. # noqa: E501 - - - :return: The id of this ContainerDto. # noqa: E501 - :rtype: int - """ - return self._id - - @id.setter - def id(self, id): - """Sets the id of this ContainerDto. - - - :param id: The id of this ContainerDto. # noqa: E501 - :type: int - """ - if id is None: - raise ValueError("Invalid value for `id`, must not be `None`") # noqa: E501 - - self._id = id - - @property - def hash(self): - """Gets the hash of this ContainerDto. # noqa: E501 - - - :return: The hash of this ContainerDto. # noqa: E501 - :rtype: str - """ - return self._hash - - @hash.setter - def hash(self, hash): - """Sets the hash of this ContainerDto. - - - :param hash: The hash of this ContainerDto. # noqa: E501 - :type: str - """ - if hash is None: - raise ValueError("Invalid value for `hash`, must not be `None`") # noqa: E501 - - self._hash = hash - - @property - def name(self): - """Gets the name of this ContainerDto. # noqa: E501 - - - :return: The name of this ContainerDto. # noqa: E501 - :rtype: str - """ - return self._name - - @name.setter - def name(self, name): - """Sets the name of this ContainerDto. - - - :param name: The name of this ContainerDto. # noqa: E501 - :type: str - """ - if name is None: - raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501 - - self._name = name - - @property - def state(self): - """Gets the state of this ContainerDto. # noqa: E501 - - - :return: The state of this ContainerDto. # noqa: E501 - :rtype: str - """ - return self._state - - @state.setter - def state(self, state): - """Sets the state of this ContainerDto. - - - :param state: The state of this ContainerDto. # noqa: E501 - :type: str - """ - allowed_values = ["created", "restarting", "running", "paused", "exited", "dead"] # noqa: E501 - if state not in allowed_values: - raise ValueError( - "Invalid value for `state` ({0}), must be one of {1}" # noqa: E501 - .format(state, allowed_values) - ) - - self._state = state - - @property - def databases(self): - """Gets the databases of this ContainerDto. # noqa: E501 - - - :return: The databases of this ContainerDto. # noqa: E501 - :rtype: list[DatabaseDto] - """ - return self._databases - - @databases.setter - def databases(self, databases): - """Sets the databases of this ContainerDto. - - - :param databases: The databases of this ContainerDto. # noqa: E501 - :type: list[DatabaseDto] - """ - - self._databases = databases - - @property - def image(self): - """Gets the image of this ContainerDto. # noqa: E501 - - - :return: The image of this ContainerDto. # noqa: E501 - :rtype: ImageBriefDto - """ - return self._image - - @image.setter - def image(self, image): - """Sets the image of this ContainerDto. - - - :param image: The image of this ContainerDto. # noqa: E501 - :type: ImageBriefDto - """ - - self._image = image - - @property - def port(self): - """Gets the port of this ContainerDto. # noqa: E501 - - - :return: The port of this ContainerDto. # noqa: E501 - :rtype: int - """ - return self._port - - @port.setter - def port(self, port): - """Sets the port of this ContainerDto. - - - :param port: The port of this ContainerDto. # noqa: E501 - :type: int - """ - - self._port = port - - @property - def created(self): - """Gets the created of this ContainerDto. # noqa: E501 - - - :return: The created of this ContainerDto. # noqa: E501 - :rtype: datetime - """ - return self._created - - @created.setter - def created(self, created): - """Sets the created of this ContainerDto. - - - :param created: The created of this ContainerDto. # noqa: E501 - :type: datetime - """ - if created is None: - raise ValueError("Invalid value for `created`, must not be `None`") # noqa: E501 - - self._created = created - - @property - def internal_name(self): - """Gets the internal_name of this ContainerDto. # noqa: E501 - - - :return: The internal_name of this ContainerDto. # noqa: E501 - :rtype: str - """ - return self._internal_name - - @internal_name.setter - def internal_name(self, internal_name): - """Sets the internal_name of this ContainerDto. - - - :param internal_name: The internal_name of this ContainerDto. # noqa: E501 - :type: str - """ - if internal_name is None: - raise ValueError("Invalid value for `internal_name`, must not be `None`") # noqa: E501 - - self._internal_name = internal_name - - @property - def ip_address(self): - """Gets the ip_address of this ContainerDto. # noqa: E501 - - - :return: The ip_address of this ContainerDto. # noqa: E501 - :rtype: str - """ - return self._ip_address - - @ip_address.setter - def ip_address(self, ip_address): - """Sets the ip_address of this ContainerDto. - - - :param ip_address: The ip_address of this ContainerDto. # noqa: E501 - :type: str - """ - - self._ip_address = ip_address - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(ContainerDto, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, ContainerDto): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/swagger/api-query/swagger_client/models/database_dto.py b/swagger/api-query/swagger_client/models/database_dto.py deleted file mode 100644 index 4b2785c269d94113cfb0bb7230b25cb2f31660be..0000000000000000000000000000000000000000 --- a/swagger/api-query/swagger_client/models/database_dto.py +++ /dev/null @@ -1,625 +0,0 @@ -# coding: utf-8 - -""" - Database Repository Query Service API - - Service that manages the queries # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -import pprint -import re # noqa: F401 - -import six - -class DatabaseDto(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'id': 'int', - 'name': 'str', - 'exchange': 'str', - 'creator': 'UserBriefDto', - 'subjects': 'list[str]', - 'language': 'str', - 'license': 'LicenseDto', - 'description': 'str', - 'publisher': 'str', - 'contact': 'UserDto', - 'tables': 'list[TableBriefDto]', - 'image': 'ImageDto', - 'container': 'ContainerDto', - 'created': 'datetime', - 'deleted': 'datetime', - 'internal_name': 'str', - 'publication_year': 'int', - 'publication_month': 'int', - 'publication_day': 'int', - 'is_public': 'bool' - } - - attribute_map = { - 'id': 'id', - 'name': 'name', - 'exchange': 'exchange', - 'creator': 'creator', - 'subjects': 'subjects', - 'language': 'language', - 'license': 'license', - 'description': 'description', - 'publisher': 'publisher', - 'contact': 'contact', - 'tables': 'tables', - 'image': 'image', - 'container': 'container', - 'created': 'created', - 'deleted': 'deleted', - 'internal_name': 'internal_name', - 'publication_year': 'publication_year', - 'publication_month': 'publication_month', - 'publication_day': 'publication_day', - 'is_public': 'is_public' - } - - def __init__(self, id=None, name=None, exchange=None, creator=None, subjects=None, language=None, license=None, description=None, publisher=None, contact=None, tables=None, image=None, container=None, created=None, deleted=None, internal_name=None, publication_year=None, publication_month=None, publication_day=None, is_public=None): # noqa: E501 - """DatabaseDto - a model defined in Swagger""" # noqa: E501 - self._id = None - self._name = None - self._exchange = None - self._creator = None - self._subjects = None - self._language = None - self._license = None - self._description = None - self._publisher = None - self._contact = None - self._tables = None - self._image = None - self._container = None - self._created = None - self._deleted = None - self._internal_name = None - self._publication_year = None - self._publication_month = None - self._publication_day = None - self._is_public = None - self.discriminator = None - self.id = id - self.name = name - self.exchange = exchange - self.creator = creator - if subjects is not None: - self.subjects = subjects - if language is not None: - self.language = language - if license is not None: - self.license = license - if description is not None: - self.description = description - if publisher is not None: - self.publisher = publisher - if contact is not None: - self.contact = contact - if tables is not None: - self.tables = tables - if image is not None: - self.image = image - if container is not None: - self.container = container - if created is not None: - self.created = created - if deleted is not None: - self.deleted = deleted - self.internal_name = internal_name - if publication_year is not None: - self.publication_year = publication_year - if publication_month is not None: - self.publication_month = publication_month - if publication_day is not None: - self.publication_day = publication_day - if is_public is not None: - self.is_public = is_public - - @property - def id(self): - """Gets the id of this DatabaseDto. # noqa: E501 - - - :return: The id of this DatabaseDto. # noqa: E501 - :rtype: int - """ - return self._id - - @id.setter - def id(self, id): - """Sets the id of this DatabaseDto. - - - :param id: The id of this DatabaseDto. # noqa: E501 - :type: int - """ - if id is None: - raise ValueError("Invalid value for `id`, must not be `None`") # noqa: E501 - - self._id = id - - @property - def name(self): - """Gets the name of this DatabaseDto. # noqa: E501 - - - :return: The name of this DatabaseDto. # noqa: E501 - :rtype: str - """ - return self._name - - @name.setter - def name(self, name): - """Sets the name of this DatabaseDto. - - - :param name: The name of this DatabaseDto. # noqa: E501 - :type: str - """ - if name is None: - raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501 - - self._name = name - - @property - def exchange(self): - """Gets the exchange of this DatabaseDto. # noqa: E501 - - - :return: The exchange of this DatabaseDto. # noqa: E501 - :rtype: str - """ - return self._exchange - - @exchange.setter - def exchange(self, exchange): - """Sets the exchange of this DatabaseDto. - - - :param exchange: The exchange of this DatabaseDto. # noqa: E501 - :type: str - """ - if exchange is None: - raise ValueError("Invalid value for `exchange`, must not be `None`") # noqa: E501 - - self._exchange = exchange - - @property - def creator(self): - """Gets the creator of this DatabaseDto. # noqa: E501 - - - :return: The creator of this DatabaseDto. # noqa: E501 - :rtype: UserBriefDto - """ - return self._creator - - @creator.setter - def creator(self, creator): - """Sets the creator of this DatabaseDto. - - - :param creator: The creator of this DatabaseDto. # noqa: E501 - :type: UserBriefDto - """ - if creator is None: - raise ValueError("Invalid value for `creator`, must not be `None`") # noqa: E501 - - self._creator = creator - - @property - def subjects(self): - """Gets the subjects of this DatabaseDto. # noqa: E501 - - database subjects # noqa: E501 - - :return: The subjects of this DatabaseDto. # noqa: E501 - :rtype: list[str] - """ - return self._subjects - - @subjects.setter - def subjects(self, subjects): - """Sets the subjects of this DatabaseDto. - - database subjects # noqa: E501 - - :param subjects: The subjects of this DatabaseDto. # noqa: E501 - :type: list[str] - """ - - self._subjects = subjects - - @property - def language(self): - """Gets the language of this DatabaseDto. # noqa: E501 - - - :return: The language of this DatabaseDto. # noqa: E501 - :rtype: str - """ - return self._language - - @language.setter - def language(self, language): - """Sets the language of this DatabaseDto. - - - :param language: The language of this DatabaseDto. # noqa: E501 - :type: str - """ - allowed_values = ["ab", "aa", "af", "ak", "sq", "am", "ar", "an", "hy", "as", "av", "ae", "ay", "az", "bm", "ba", "eu", "be", "bn", "bh", "bi", "bs", "br", "bg", "my", "ca", "km", "ch", "ce", "ny", "zh", "cu", "cv", "kw", "co", "cr", "hr", "cs", "da", "dv", "nl", "dz", "en", "eo", "et", "ee", "fo", "fj", "fi", "fr", "ff", "gd", "gl", "lg", "ka", "de", "ki", "el", "kl", "gn", "gu", "ht", "ha", "he", "hz", "hi", "ho", "hu", "is", "io", "ig", "id", "ia", "ie", "iu", "ik", "ga", "it", "ja", "jv", "kn", "kr", "ks", "kk", "rw", "kv", "kg", "ko", "kj", "ku", "ky", "lo", "la", "lv", "lb", "li", "ln", "lt", "lu", "mk", "mg", "ms", "ml", "mt", "gv", "mi", "mr", "mh", "ro", "mn", "na", "nv", "nd", "ng", "ne", "se", "no", "nb", "nn", "ii", "oc", "oj", "or", "om", "os", "pi", "pa", "ps", "fa", "pl", "pt", "qu", "rm", "rn", "ru", "sm", "sg", "sa", "sc", "sr", "sn", "sd", "si", "sk", "sl", "so", "st", "nr", "es", "su", "sw", "ss", "sv", "tl", "ty", "tg", "ta", "tt", "te", "th", "bo", "ti", "to", "ts", "tn", "tr", "tk", "tw", "ug", "uk", "ur", "uz", "ve", "vi", "vo", "wa", "cy", "fy", "wo", "xh", "yi", "yo", "za", "zu"] # noqa: E501 - if language not in allowed_values: - raise ValueError( - "Invalid value for `language` ({0}), must be one of {1}" # noqa: E501 - .format(language, allowed_values) - ) - - self._language = language - - @property - def license(self): - """Gets the license of this DatabaseDto. # noqa: E501 - - - :return: The license of this DatabaseDto. # noqa: E501 - :rtype: LicenseDto - """ - return self._license - - @license.setter - def license(self, license): - """Sets the license of this DatabaseDto. - - - :param license: The license of this DatabaseDto. # noqa: E501 - :type: LicenseDto - """ - - self._license = license - - @property - def description(self): - """Gets the description of this DatabaseDto. # noqa: E501 - - - :return: The description of this DatabaseDto. # noqa: E501 - :rtype: str - """ - return self._description - - @description.setter - def description(self, description): - """Sets the description of this DatabaseDto. - - - :param description: The description of this DatabaseDto. # noqa: E501 - :type: str - """ - - self._description = description - - @property - def publisher(self): - """Gets the publisher of this DatabaseDto. # noqa: E501 - - - :return: The publisher of this DatabaseDto. # noqa: E501 - :rtype: str - """ - return self._publisher - - @publisher.setter - def publisher(self, publisher): - """Sets the publisher of this DatabaseDto. - - - :param publisher: The publisher of this DatabaseDto. # noqa: E501 - :type: str - """ - - self._publisher = publisher - - @property - def contact(self): - """Gets the contact of this DatabaseDto. # noqa: E501 - - - :return: The contact of this DatabaseDto. # noqa: E501 - :rtype: UserDto - """ - return self._contact - - @contact.setter - def contact(self, contact): - """Sets the contact of this DatabaseDto. - - - :param contact: The contact of this DatabaseDto. # noqa: E501 - :type: UserDto - """ - - self._contact = contact - - @property - def tables(self): - """Gets the tables of this DatabaseDto. # noqa: E501 - - - :return: The tables of this DatabaseDto. # noqa: E501 - :rtype: list[TableBriefDto] - """ - return self._tables - - @tables.setter - def tables(self, tables): - """Sets the tables of this DatabaseDto. - - - :param tables: The tables of this DatabaseDto. # noqa: E501 - :type: list[TableBriefDto] - """ - - self._tables = tables - - @property - def image(self): - """Gets the image of this DatabaseDto. # noqa: E501 - - - :return: The image of this DatabaseDto. # noqa: E501 - :rtype: ImageDto - """ - return self._image - - @image.setter - def image(self, image): - """Sets the image of this DatabaseDto. - - - :param image: The image of this DatabaseDto. # noqa: E501 - :type: ImageDto - """ - - self._image = image - - @property - def container(self): - """Gets the container of this DatabaseDto. # noqa: E501 - - - :return: The container of this DatabaseDto. # noqa: E501 - :rtype: ContainerDto - """ - return self._container - - @container.setter - def container(self, container): - """Sets the container of this DatabaseDto. - - - :param container: The container of this DatabaseDto. # noqa: E501 - :type: ContainerDto - """ - - self._container = container - - @property - def created(self): - """Gets the created of this DatabaseDto. # noqa: E501 - - - :return: The created of this DatabaseDto. # noqa: E501 - :rtype: datetime - """ - return self._created - - @created.setter - def created(self, created): - """Sets the created of this DatabaseDto. - - - :param created: The created of this DatabaseDto. # noqa: E501 - :type: datetime - """ - - self._created = created - - @property - def deleted(self): - """Gets the deleted of this DatabaseDto. # noqa: E501 - - - :return: The deleted of this DatabaseDto. # noqa: E501 - :rtype: datetime - """ - return self._deleted - - @deleted.setter - def deleted(self, deleted): - """Sets the deleted of this DatabaseDto. - - - :param deleted: The deleted of this DatabaseDto. # noqa: E501 - :type: datetime - """ - - self._deleted = deleted - - @property - def internal_name(self): - """Gets the internal_name of this DatabaseDto. # noqa: E501 - - - :return: The internal_name of this DatabaseDto. # noqa: E501 - :rtype: str - """ - return self._internal_name - - @internal_name.setter - def internal_name(self, internal_name): - """Sets the internal_name of this DatabaseDto. - - - :param internal_name: The internal_name of this DatabaseDto. # noqa: E501 - :type: str - """ - if internal_name is None: - raise ValueError("Invalid value for `internal_name`, must not be `None`") # noqa: E501 - - self._internal_name = internal_name - - @property - def publication_year(self): - """Gets the publication_year of this DatabaseDto. # noqa: E501 - - database publication year # noqa: E501 - - :return: The publication_year of this DatabaseDto. # noqa: E501 - :rtype: int - """ - return self._publication_year - - @publication_year.setter - def publication_year(self, publication_year): - """Sets the publication_year of this DatabaseDto. - - database publication year # noqa: E501 - - :param publication_year: The publication_year of this DatabaseDto. # noqa: E501 - :type: int - """ - - self._publication_year = publication_year - - @property - def publication_month(self): - """Gets the publication_month of this DatabaseDto. # noqa: E501 - - database publication month # noqa: E501 - - :return: The publication_month of this DatabaseDto. # noqa: E501 - :rtype: int - """ - return self._publication_month - - @publication_month.setter - def publication_month(self, publication_month): - """Sets the publication_month of this DatabaseDto. - - database publication month # noqa: E501 - - :param publication_month: The publication_month of this DatabaseDto. # noqa: E501 - :type: int - """ - - self._publication_month = publication_month - - @property - def publication_day(self): - """Gets the publication_day of this DatabaseDto. # noqa: E501 - - database publication day # noqa: E501 - - :return: The publication_day of this DatabaseDto. # noqa: E501 - :rtype: int - """ - return self._publication_day - - @publication_day.setter - def publication_day(self, publication_day): - """Sets the publication_day of this DatabaseDto. - - database publication day # noqa: E501 - - :param publication_day: The publication_day of this DatabaseDto. # noqa: E501 - :type: int - """ - - self._publication_day = publication_day - - @property - def is_public(self): - """Gets the is_public of this DatabaseDto. # noqa: E501 - - database publicity # noqa: E501 - - :return: The is_public of this DatabaseDto. # noqa: E501 - :rtype: bool - """ - return self._is_public - - @is_public.setter - def is_public(self, is_public): - """Sets the is_public of this DatabaseDto. - - database publicity # noqa: E501 - - :param is_public: The is_public of this DatabaseDto. # noqa: E501 - :type: bool - """ - - self._is_public = is_public - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(DatabaseDto, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, DatabaseDto): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/swagger/api-query/swagger_client/models/execute_statement_dto.py b/swagger/api-query/swagger_client/models/execute_statement_dto.py deleted file mode 100644 index 066ab10780de553f8414b831289c8d0caec52c1d..0000000000000000000000000000000000000000 --- a/swagger/api-query/swagger_client/models/execute_statement_dto.py +++ /dev/null @@ -1,111 +0,0 @@ -# coding: utf-8 - -""" - Database Repository Query Service API - - Service that manages the queries # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -import pprint -import re # noqa: F401 - -import six - -class ExecuteStatementDto(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'statement': 'str' - } - - attribute_map = { - 'statement': 'statement' - } - - def __init__(self, statement=None): # noqa: E501 - """ExecuteStatementDto - a model defined in Swagger""" # noqa: E501 - self._statement = None - self.discriminator = None - self.statement = statement - - @property - def statement(self): - """Gets the statement of this ExecuteStatementDto. # noqa: E501 - - - :return: The statement of this ExecuteStatementDto. # noqa: E501 - :rtype: str - """ - return self._statement - - @statement.setter - def statement(self, statement): - """Sets the statement of this ExecuteStatementDto. - - - :param statement: The statement of this ExecuteStatementDto. # noqa: E501 - :type: str - """ - if statement is None: - raise ValueError("Invalid value for `statement`, must not be `None`") # noqa: E501 - - self._statement = statement - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(ExecuteStatementDto, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, ExecuteStatementDto): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/swagger/api-query/swagger_client/models/granted_authority_dto.py b/swagger/api-query/swagger_client/models/granted_authority_dto.py deleted file mode 100644 index 14256a5fe3229571bb8f6d72e4da652593f608da..0000000000000000000000000000000000000000 --- a/swagger/api-query/swagger_client/models/granted_authority_dto.py +++ /dev/null @@ -1,110 +0,0 @@ -# coding: utf-8 - -""" - Database Repository Query Service API - - Service that manages the queries # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -import pprint -import re # noqa: F401 - -import six - -class GrantedAuthorityDto(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'authority': 'str' - } - - attribute_map = { - 'authority': 'authority' - } - - def __init__(self, authority=None): # noqa: E501 - """GrantedAuthorityDto - a model defined in Swagger""" # noqa: E501 - self._authority = None - self.discriminator = None - if authority is not None: - self.authority = authority - - @property - def authority(self): - """Gets the authority of this GrantedAuthorityDto. # noqa: E501 - - - :return: The authority of this GrantedAuthorityDto. # noqa: E501 - :rtype: str - """ - return self._authority - - @authority.setter - def authority(self, authority): - """Sets the authority of this GrantedAuthorityDto. - - - :param authority: The authority of this GrantedAuthorityDto. # noqa: E501 - :type: str - """ - - self._authority = authority - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(GrantedAuthorityDto, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, GrantedAuthorityDto): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/swagger/api-query/swagger_client/models/image_brief_dto.py b/swagger/api-query/swagger_client/models/image_brief_dto.py deleted file mode 100644 index e2485ffd1d3174b6a2cd1d265ed771bd299e6f56..0000000000000000000000000000000000000000 --- a/swagger/api-query/swagger_client/models/image_brief_dto.py +++ /dev/null @@ -1,165 +0,0 @@ -# coding: utf-8 - -""" - Database Repository Query Service API - - Service that manages the queries # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -import pprint -import re # noqa: F401 - -import six - -class ImageBriefDto(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'id': 'int', - 'repository': 'str', - 'tag': 'str' - } - - attribute_map = { - 'id': 'id', - 'repository': 'repository', - 'tag': 'tag' - } - - def __init__(self, id=None, repository=None, tag=None): # noqa: E501 - """ImageBriefDto - a model defined in Swagger""" # noqa: E501 - self._id = None - self._repository = None - self._tag = None - self.discriminator = None - self.id = id - self.repository = repository - self.tag = tag - - @property - def id(self): - """Gets the id of this ImageBriefDto. # noqa: E501 - - - :return: The id of this ImageBriefDto. # noqa: E501 - :rtype: int - """ - return self._id - - @id.setter - def id(self, id): - """Sets the id of this ImageBriefDto. - - - :param id: The id of this ImageBriefDto. # noqa: E501 - :type: int - """ - if id is None: - raise ValueError("Invalid value for `id`, must not be `None`") # noqa: E501 - - self._id = id - - @property - def repository(self): - """Gets the repository of this ImageBriefDto. # noqa: E501 - - - :return: The repository of this ImageBriefDto. # noqa: E501 - :rtype: str - """ - return self._repository - - @repository.setter - def repository(self, repository): - """Sets the repository of this ImageBriefDto. - - - :param repository: The repository of this ImageBriefDto. # noqa: E501 - :type: str - """ - if repository is None: - raise ValueError("Invalid value for `repository`, must not be `None`") # noqa: E501 - - self._repository = repository - - @property - def tag(self): - """Gets the tag of this ImageBriefDto. # noqa: E501 - - - :return: The tag of this ImageBriefDto. # noqa: E501 - :rtype: str - """ - return self._tag - - @tag.setter - def tag(self, tag): - """Sets the tag of this ImageBriefDto. - - - :param tag: The tag of this ImageBriefDto. # noqa: E501 - :type: str - """ - if tag is None: - raise ValueError("Invalid value for `tag`, must not be `None`") # noqa: E501 - - self._tag = tag - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(ImageBriefDto, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, ImageBriefDto): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/swagger/api-query/swagger_client/models/image_date_dto.py b/swagger/api-query/swagger_client/models/image_date_dto.py deleted file mode 100644 index cffa3c6e333e5ec1c0fb2b3754d8b3ae9886f319..0000000000000000000000000000000000000000 --- a/swagger/api-query/swagger_client/models/image_date_dto.py +++ /dev/null @@ -1,245 +0,0 @@ -# coding: utf-8 - -""" - Database Repository Query Service API - - Service that manages the queries # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -import pprint -import re # noqa: F401 - -import six - -class ImageDateDto(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'id': 'int', - 'example': 'str', - 'database_format': 'str', - 'unix_format': 'str', - 'has_time': 'bool', - 'created_at': 'datetime' - } - - attribute_map = { - 'id': 'id', - 'example': 'example', - 'database_format': 'database_format', - 'unix_format': 'unix_format', - 'has_time': 'has_time', - 'created_at': 'created_at' - } - - def __init__(self, id=None, example=None, database_format=None, unix_format=None, has_time=None, created_at=None): # noqa: E501 - """ImageDateDto - a model defined in Swagger""" # noqa: E501 - self._id = None - self._example = None - self._database_format = None - self._unix_format = None - self._has_time = None - self._created_at = None - self.discriminator = None - self.id = id - self.example = example - self.database_format = database_format - self.unix_format = unix_format - self.has_time = has_time - if created_at is not None: - self.created_at = created_at - - @property - def id(self): - """Gets the id of this ImageDateDto. # noqa: E501 - - - :return: The id of this ImageDateDto. # noqa: E501 - :rtype: int - """ - return self._id - - @id.setter - def id(self, id): - """Sets the id of this ImageDateDto. - - - :param id: The id of this ImageDateDto. # noqa: E501 - :type: int - """ - if id is None: - raise ValueError("Invalid value for `id`, must not be `None`") # noqa: E501 - - self._id = id - - @property - def example(self): - """Gets the example of this ImageDateDto. # noqa: E501 - - - :return: The example of this ImageDateDto. # noqa: E501 - :rtype: str - """ - return self._example - - @example.setter - def example(self, example): - """Sets the example of this ImageDateDto. - - - :param example: The example of this ImageDateDto. # noqa: E501 - :type: str - """ - if example is None: - raise ValueError("Invalid value for `example`, must not be `None`") # noqa: E501 - - self._example = example - - @property - def database_format(self): - """Gets the database_format of this ImageDateDto. # noqa: E501 - - - :return: The database_format of this ImageDateDto. # noqa: E501 - :rtype: str - """ - return self._database_format - - @database_format.setter - def database_format(self, database_format): - """Sets the database_format of this ImageDateDto. - - - :param database_format: The database_format of this ImageDateDto. # noqa: E501 - :type: str - """ - if database_format is None: - raise ValueError("Invalid value for `database_format`, must not be `None`") # noqa: E501 - - self._database_format = database_format - - @property - def unix_format(self): - """Gets the unix_format of this ImageDateDto. # noqa: E501 - - - :return: The unix_format of this ImageDateDto. # noqa: E501 - :rtype: str - """ - return self._unix_format - - @unix_format.setter - def unix_format(self, unix_format): - """Sets the unix_format of this ImageDateDto. - - - :param unix_format: The unix_format of this ImageDateDto. # noqa: E501 - :type: str - """ - if unix_format is None: - raise ValueError("Invalid value for `unix_format`, must not be `None`") # noqa: E501 - - self._unix_format = unix_format - - @property - def has_time(self): - """Gets the has_time of this ImageDateDto. # noqa: E501 - - - :return: The has_time of this ImageDateDto. # noqa: E501 - :rtype: bool - """ - return self._has_time - - @has_time.setter - def has_time(self, has_time): - """Sets the has_time of this ImageDateDto. - - - :param has_time: The has_time of this ImageDateDto. # noqa: E501 - :type: bool - """ - if has_time is None: - raise ValueError("Invalid value for `has_time`, must not be `None`") # noqa: E501 - - self._has_time = has_time - - @property - def created_at(self): - """Gets the created_at of this ImageDateDto. # noqa: E501 - - - :return: The created_at of this ImageDateDto. # noqa: E501 - :rtype: datetime - """ - return self._created_at - - @created_at.setter - def created_at(self, created_at): - """Sets the created_at of this ImageDateDto. - - - :param created_at: The created_at of this ImageDateDto. # noqa: E501 - :type: datetime - """ - - self._created_at = created_at - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(ImageDateDto, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, ImageDateDto): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/swagger/api-query/swagger_client/models/image_dto.py b/swagger/api-query/swagger_client/models/image_dto.py deleted file mode 100644 index f527a511f888b0c7ad69997b87397eeddde38a9b..0000000000000000000000000000000000000000 --- a/swagger/api-query/swagger_client/models/image_dto.py +++ /dev/null @@ -1,404 +0,0 @@ -# coding: utf-8 - -""" - Database Repository Query Service API - - Service that manages the queries # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -import pprint -import re # noqa: F401 - -import six - -class ImageDto(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'id': 'int', - 'repository': 'str', - 'tag': 'str', - 'dialect': 'str', - 'hash': 'str', - 'compiled': 'datetime', - 'size': 'int', - 'environment': 'list[ImageEnvItemDto]', - 'driver_class': 'str', - 'date_formats': 'list[ImageDateDto]', - 'jdbc_method': 'str', - 'default_port': 'int' - } - - attribute_map = { - 'id': 'id', - 'repository': 'repository', - 'tag': 'tag', - 'dialect': 'dialect', - 'hash': 'hash', - 'compiled': 'compiled', - 'size': 'size', - 'environment': 'environment', - 'driver_class': 'driver_class', - 'date_formats': 'date_formats', - 'jdbc_method': 'jdbc_method', - 'default_port': 'default_port' - } - - def __init__(self, id=None, repository=None, tag=None, dialect=None, hash=None, compiled=None, size=None, environment=None, driver_class=None, date_formats=None, jdbc_method=None, default_port=None): # noqa: E501 - """ImageDto - a model defined in Swagger""" # noqa: E501 - self._id = None - self._repository = None - self._tag = None - self._dialect = None - self._hash = None - self._compiled = None - self._size = None - self._environment = None - self._driver_class = None - self._date_formats = None - self._jdbc_method = None - self._default_port = None - self.discriminator = None - self.id = id - self.repository = repository - self.tag = tag - self.dialect = dialect - if hash is not None: - self.hash = hash - if compiled is not None: - self.compiled = compiled - if size is not None: - self.size = size - self.environment = environment - self.driver_class = driver_class - if date_formats is not None: - self.date_formats = date_formats - self.jdbc_method = jdbc_method - self.default_port = default_port - - @property - def id(self): - """Gets the id of this ImageDto. # noqa: E501 - - - :return: The id of this ImageDto. # noqa: E501 - :rtype: int - """ - return self._id - - @id.setter - def id(self, id): - """Sets the id of this ImageDto. - - - :param id: The id of this ImageDto. # noqa: E501 - :type: int - """ - if id is None: - raise ValueError("Invalid value for `id`, must not be `None`") # noqa: E501 - - self._id = id - - @property - def repository(self): - """Gets the repository of this ImageDto. # noqa: E501 - - - :return: The repository of this ImageDto. # noqa: E501 - :rtype: str - """ - return self._repository - - @repository.setter - def repository(self, repository): - """Sets the repository of this ImageDto. - - - :param repository: The repository of this ImageDto. # noqa: E501 - :type: str - """ - if repository is None: - raise ValueError("Invalid value for `repository`, must not be `None`") # noqa: E501 - - self._repository = repository - - @property - def tag(self): - """Gets the tag of this ImageDto. # noqa: E501 - - - :return: The tag of this ImageDto. # noqa: E501 - :rtype: str - """ - return self._tag - - @tag.setter - def tag(self, tag): - """Sets the tag of this ImageDto. - - - :param tag: The tag of this ImageDto. # noqa: E501 - :type: str - """ - if tag is None: - raise ValueError("Invalid value for `tag`, must not be `None`") # noqa: E501 - - self._tag = tag - - @property - def dialect(self): - """Gets the dialect of this ImageDto. # noqa: E501 - - - :return: The dialect of this ImageDto. # noqa: E501 - :rtype: str - """ - return self._dialect - - @dialect.setter - def dialect(self, dialect): - """Sets the dialect of this ImageDto. - - - :param dialect: The dialect of this ImageDto. # noqa: E501 - :type: str - """ - if dialect is None: - raise ValueError("Invalid value for `dialect`, must not be `None`") # noqa: E501 - - self._dialect = dialect - - @property - def hash(self): - """Gets the hash of this ImageDto. # noqa: E501 - - - :return: The hash of this ImageDto. # noqa: E501 - :rtype: str - """ - return self._hash - - @hash.setter - def hash(self, hash): - """Sets the hash of this ImageDto. - - - :param hash: The hash of this ImageDto. # noqa: E501 - :type: str - """ - - self._hash = hash - - @property - def compiled(self): - """Gets the compiled of this ImageDto. # noqa: E501 - - - :return: The compiled of this ImageDto. # noqa: E501 - :rtype: datetime - """ - return self._compiled - - @compiled.setter - def compiled(self, compiled): - """Sets the compiled of this ImageDto. - - - :param compiled: The compiled of this ImageDto. # noqa: E501 - :type: datetime - """ - - self._compiled = compiled - - @property - def size(self): - """Gets the size of this ImageDto. # noqa: E501 - - - :return: The size of this ImageDto. # noqa: E501 - :rtype: int - """ - return self._size - - @size.setter - def size(self, size): - """Sets the size of this ImageDto. - - - :param size: The size of this ImageDto. # noqa: E501 - :type: int - """ - - self._size = size - - @property - def environment(self): - """Gets the environment of this ImageDto. # noqa: E501 - - - :return: The environment of this ImageDto. # noqa: E501 - :rtype: list[ImageEnvItemDto] - """ - return self._environment - - @environment.setter - def environment(self, environment): - """Sets the environment of this ImageDto. - - - :param environment: The environment of this ImageDto. # noqa: E501 - :type: list[ImageEnvItemDto] - """ - if environment is None: - raise ValueError("Invalid value for `environment`, must not be `None`") # noqa: E501 - - self._environment = environment - - @property - def driver_class(self): - """Gets the driver_class of this ImageDto. # noqa: E501 - - - :return: The driver_class of this ImageDto. # noqa: E501 - :rtype: str - """ - return self._driver_class - - @driver_class.setter - def driver_class(self, driver_class): - """Sets the driver_class of this ImageDto. - - - :param driver_class: The driver_class of this ImageDto. # noqa: E501 - :type: str - """ - if driver_class is None: - raise ValueError("Invalid value for `driver_class`, must not be `None`") # noqa: E501 - - self._driver_class = driver_class - - @property - def date_formats(self): - """Gets the date_formats of this ImageDto. # noqa: E501 - - - :return: The date_formats of this ImageDto. # noqa: E501 - :rtype: list[ImageDateDto] - """ - return self._date_formats - - @date_formats.setter - def date_formats(self, date_formats): - """Sets the date_formats of this ImageDto. - - - :param date_formats: The date_formats of this ImageDto. # noqa: E501 - :type: list[ImageDateDto] - """ - - self._date_formats = date_formats - - @property - def jdbc_method(self): - """Gets the jdbc_method of this ImageDto. # noqa: E501 - - - :return: The jdbc_method of this ImageDto. # noqa: E501 - :rtype: str - """ - return self._jdbc_method - - @jdbc_method.setter - def jdbc_method(self, jdbc_method): - """Sets the jdbc_method of this ImageDto. - - - :param jdbc_method: The jdbc_method of this ImageDto. # noqa: E501 - :type: str - """ - if jdbc_method is None: - raise ValueError("Invalid value for `jdbc_method`, must not be `None`") # noqa: E501 - - self._jdbc_method = jdbc_method - - @property - def default_port(self): - """Gets the default_port of this ImageDto. # noqa: E501 - - - :return: The default_port of this ImageDto. # noqa: E501 - :rtype: int - """ - return self._default_port - - @default_port.setter - def default_port(self, default_port): - """Sets the default_port of this ImageDto. - - - :param default_port: The default_port of this ImageDto. # noqa: E501 - :type: int - """ - if default_port is None: - raise ValueError("Invalid value for `default_port`, must not be `None`") # noqa: E501 - - self._default_port = default_port - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(ImageDto, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, ImageDto): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/swagger/api-query/swagger_client/models/image_env_item_dto.py b/swagger/api-query/swagger_client/models/image_env_item_dto.py deleted file mode 100644 index 521b735ee2ca69d6b694e6ade5cdc4de63c36478..0000000000000000000000000000000000000000 --- a/swagger/api-query/swagger_client/models/image_env_item_dto.py +++ /dev/null @@ -1,198 +0,0 @@ -# coding: utf-8 - -""" - Database Repository Query Service API - - Service that manages the queries # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -import pprint -import re # noqa: F401 - -import six - -class ImageEnvItemDto(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'iid': 'int', - 'key': 'str', - 'value': 'str', - 'type': 'str' - } - - attribute_map = { - 'iid': 'iid', - 'key': 'key', - 'value': 'value', - 'type': 'type' - } - - def __init__(self, iid=None, key=None, value=None, type=None): # noqa: E501 - """ImageEnvItemDto - a model defined in Swagger""" # noqa: E501 - self._iid = None - self._key = None - self._value = None - self._type = None - self.discriminator = None - self.iid = iid - self.key = key - self.value = value - self.type = type - - @property - def iid(self): - """Gets the iid of this ImageEnvItemDto. # noqa: E501 - - - :return: The iid of this ImageEnvItemDto. # noqa: E501 - :rtype: int - """ - return self._iid - - @iid.setter - def iid(self, iid): - """Sets the iid of this ImageEnvItemDto. - - - :param iid: The iid of this ImageEnvItemDto. # noqa: E501 - :type: int - """ - if iid is None: - raise ValueError("Invalid value for `iid`, must not be `None`") # noqa: E501 - - self._iid = iid - - @property - def key(self): - """Gets the key of this ImageEnvItemDto. # noqa: E501 - - - :return: The key of this ImageEnvItemDto. # noqa: E501 - :rtype: str - """ - return self._key - - @key.setter - def key(self, key): - """Sets the key of this ImageEnvItemDto. - - - :param key: The key of this ImageEnvItemDto. # noqa: E501 - :type: str - """ - if key is None: - raise ValueError("Invalid value for `key`, must not be `None`") # noqa: E501 - - self._key = key - - @property - def value(self): - """Gets the value of this ImageEnvItemDto. # noqa: E501 - - - :return: The value of this ImageEnvItemDto. # noqa: E501 - :rtype: str - """ - return self._value - - @value.setter - def value(self, value): - """Sets the value of this ImageEnvItemDto. - - - :param value: The value of this ImageEnvItemDto. # noqa: E501 - :type: str - """ - if value is None: - raise ValueError("Invalid value for `value`, must not be `None`") # noqa: E501 - - self._value = value - - @property - def type(self): - """Gets the type of this ImageEnvItemDto. # noqa: E501 - - - :return: The type of this ImageEnvItemDto. # noqa: E501 - :rtype: str - """ - return self._type - - @type.setter - def type(self, type): - """Sets the type of this ImageEnvItemDto. - - - :param type: The type of this ImageEnvItemDto. # noqa: E501 - :type: str - """ - if type is None: - raise ValueError("Invalid value for `type`, must not be `None`") # noqa: E501 - allowed_values = ["username", "password", "privileged_username", "privileged_password"] # noqa: E501 - if type not in allowed_values: - raise ValueError( - "Invalid value for `type` ({0}), must be one of {1}" # noqa: E501 - .format(type, allowed_values) - ) - - self._type = type - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(ImageEnvItemDto, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, ImageEnvItemDto): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/swagger/api-query/swagger_client/models/import_dto.py b/swagger/api-query/swagger_client/models/import_dto.py deleted file mode 100644 index b6a90a4e1cdd6c20fe0c68f9340b0a025355eb03..0000000000000000000000000000000000000000 --- a/swagger/api-query/swagger_client/models/import_dto.py +++ /dev/null @@ -1,268 +0,0 @@ -# coding: utf-8 - -""" - Database Repository Query Service API - - Service that manages the queries # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -import pprint -import re # noqa: F401 - -import six - -class ImportDto(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'location': 'str', - 'separator': 'str', - 'quote': 'str', - 'skip_lines': 'int', - 'false_element': 'str', - 'true_element': 'str', - 'null_element': 'str' - } - - attribute_map = { - 'location': 'location', - 'separator': 'separator', - 'quote': 'quote', - 'skip_lines': 'skip_lines', - 'false_element': 'false_element', - 'true_element': 'true_element', - 'null_element': 'null_element' - } - - def __init__(self, location=None, separator=None, quote=None, skip_lines=None, false_element=None, true_element=None, null_element=None): # noqa: E501 - """ImportDto - a model defined in Swagger""" # noqa: E501 - self._location = None - self._separator = None - self._quote = None - self._skip_lines = None - self._false_element = None - self._true_element = None - self._null_element = None - self.discriminator = None - self.location = location - self.separator = separator - if quote is not None: - self.quote = quote - if skip_lines is not None: - self.skip_lines = skip_lines - if false_element is not None: - self.false_element = false_element - if true_element is not None: - self.true_element = true_element - if null_element is not None: - self.null_element = null_element - - @property - def location(self): - """Gets the location of this ImportDto. # noqa: E501 - - - :return: The location of this ImportDto. # noqa: E501 - :rtype: str - """ - return self._location - - @location.setter - def location(self, location): - """Sets the location of this ImportDto. - - - :param location: The location of this ImportDto. # noqa: E501 - :type: str - """ - if location is None: - raise ValueError("Invalid value for `location`, must not be `None`") # noqa: E501 - - self._location = location - - @property - def separator(self): - """Gets the separator of this ImportDto. # noqa: E501 - - - :return: The separator of this ImportDto. # noqa: E501 - :rtype: str - """ - return self._separator - - @separator.setter - def separator(self, separator): - """Sets the separator of this ImportDto. - - - :param separator: The separator of this ImportDto. # noqa: E501 - :type: str - """ - if separator is None: - raise ValueError("Invalid value for `separator`, must not be `None`") # noqa: E501 - - self._separator = separator - - @property - def quote(self): - """Gets the quote of this ImportDto. # noqa: E501 - - - :return: The quote of this ImportDto. # noqa: E501 - :rtype: str - """ - return self._quote - - @quote.setter - def quote(self, quote): - """Sets the quote of this ImportDto. - - - :param quote: The quote of this ImportDto. # noqa: E501 - :type: str - """ - - self._quote = quote - - @property - def skip_lines(self): - """Gets the skip_lines of this ImportDto. # noqa: E501 - - - :return: The skip_lines of this ImportDto. # noqa: E501 - :rtype: int - """ - return self._skip_lines - - @skip_lines.setter - def skip_lines(self, skip_lines): - """Sets the skip_lines of this ImportDto. - - - :param skip_lines: The skip_lines of this ImportDto. # noqa: E501 - :type: int - """ - - self._skip_lines = skip_lines - - @property - def false_element(self): - """Gets the false_element of this ImportDto. # noqa: E501 - - - :return: The false_element of this ImportDto. # noqa: E501 - :rtype: str - """ - return self._false_element - - @false_element.setter - def false_element(self, false_element): - """Sets the false_element of this ImportDto. - - - :param false_element: The false_element of this ImportDto. # noqa: E501 - :type: str - """ - - self._false_element = false_element - - @property - def true_element(self): - """Gets the true_element of this ImportDto. # noqa: E501 - - - :return: The true_element of this ImportDto. # noqa: E501 - :rtype: str - """ - return self._true_element - - @true_element.setter - def true_element(self, true_element): - """Sets the true_element of this ImportDto. - - - :param true_element: The true_element of this ImportDto. # noqa: E501 - :type: str - """ - - self._true_element = true_element - - @property - def null_element(self): - """Gets the null_element of this ImportDto. # noqa: E501 - - - :return: The null_element of this ImportDto. # noqa: E501 - :rtype: str - """ - return self._null_element - - @null_element.setter - def null_element(self, null_element): - """Sets the null_element of this ImportDto. - - - :param null_element: The null_element of this ImportDto. # noqa: E501 - :type: str - """ - - self._null_element = null_element - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(ImportDto, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, ImportDto): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/swagger/api-query/swagger_client/models/license_dto.py b/swagger/api-query/swagger_client/models/license_dto.py deleted file mode 100644 index ccba4e8f50e07141b90128f4b1e2dd5608b0380a..0000000000000000000000000000000000000000 --- a/swagger/api-query/swagger_client/models/license_dto.py +++ /dev/null @@ -1,138 +0,0 @@ -# coding: utf-8 - -""" - Database Repository Query Service API - - Service that manages the queries # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -import pprint -import re # noqa: F401 - -import six - -class LicenseDto(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'identifier': 'str', - 'uri': 'str' - } - - attribute_map = { - 'identifier': 'identifier', - 'uri': 'uri' - } - - def __init__(self, identifier=None, uri=None): # noqa: E501 - """LicenseDto - a model defined in Swagger""" # noqa: E501 - self._identifier = None - self._uri = None - self.discriminator = None - self.identifier = identifier - self.uri = uri - - @property - def identifier(self): - """Gets the identifier of this LicenseDto. # noqa: E501 - - - :return: The identifier of this LicenseDto. # noqa: E501 - :rtype: str - """ - return self._identifier - - @identifier.setter - def identifier(self, identifier): - """Sets the identifier of this LicenseDto. - - - :param identifier: The identifier of this LicenseDto. # noqa: E501 - :type: str - """ - if identifier is None: - raise ValueError("Invalid value for `identifier`, must not be `None`") # noqa: E501 - - self._identifier = identifier - - @property - def uri(self): - """Gets the uri of this LicenseDto. # noqa: E501 - - - :return: The uri of this LicenseDto. # noqa: E501 - :rtype: str - """ - return self._uri - - @uri.setter - def uri(self, uri): - """Sets the uri of this LicenseDto. - - - :param uri: The uri of this LicenseDto. # noqa: E501 - :type: str - """ - if uri is None: - raise ValueError("Invalid value for `uri`, must not be `None`") # noqa: E501 - - self._uri = uri - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(LicenseDto, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, LicenseDto): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/swagger/api-query/swagger_client/models/query_brief_dto.py b/swagger/api-query/swagger_client/models/query_brief_dto.py deleted file mode 100644 index 4eb119fd8b0efcf31ba4edf6feed9207d0cf4a13..0000000000000000000000000000000000000000 --- a/swagger/api-query/swagger_client/models/query_brief_dto.py +++ /dev/null @@ -1,403 +0,0 @@ -# coding: utf-8 - -""" - Database Repository Query Service API - - Service that manages the queries # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -import pprint -import re # noqa: F401 - -import six - -class QueryBriefDto(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'id': 'int', - 'cid': 'int', - 'dbid': 'int', - 'creator': 'UserDto', - 'execution': 'datetime', - 'query': 'str', - 'created': 'datetime', - 'query_normalized': 'str', - 'query_hash': 'str', - 'result_hash': 'str', - 'result_number': 'int', - 'last_modified': 'datetime' - } - - attribute_map = { - 'id': 'id', - 'cid': 'cid', - 'dbid': 'dbid', - 'creator': 'creator', - 'execution': 'execution', - 'query': 'query', - 'created': 'created', - 'query_normalized': 'query_normalized', - 'query_hash': 'query_hash', - 'result_hash': 'result_hash', - 'result_number': 'result_number', - 'last_modified': 'last_modified' - } - - def __init__(self, id=None, cid=None, dbid=None, creator=None, execution=None, query=None, created=None, query_normalized=None, query_hash=None, result_hash=None, result_number=None, last_modified=None): # noqa: E501 - """QueryBriefDto - a model defined in Swagger""" # noqa: E501 - self._id = None - self._cid = None - self._dbid = None - self._creator = None - self._execution = None - self._query = None - self._created = None - self._query_normalized = None - self._query_hash = None - self._result_hash = None - self._result_number = None - self._last_modified = None - self.discriminator = None - self.id = id - self.cid = cid - self.dbid = dbid - self.creator = creator - if execution is not None: - self.execution = execution - self.query = query - self.created = created - if query_normalized is not None: - self.query_normalized = query_normalized - self.query_hash = query_hash - if result_hash is not None: - self.result_hash = result_hash - if result_number is not None: - self.result_number = result_number - if last_modified is not None: - self.last_modified = last_modified - - @property - def id(self): - """Gets the id of this QueryBriefDto. # noqa: E501 - - - :return: The id of this QueryBriefDto. # noqa: E501 - :rtype: int - """ - return self._id - - @id.setter - def id(self, id): - """Sets the id of this QueryBriefDto. - - - :param id: The id of this QueryBriefDto. # noqa: E501 - :type: int - """ - if id is None: - raise ValueError("Invalid value for `id`, must not be `None`") # noqa: E501 - - self._id = id - - @property - def cid(self): - """Gets the cid of this QueryBriefDto. # noqa: E501 - - - :return: The cid of this QueryBriefDto. # noqa: E501 - :rtype: int - """ - return self._cid - - @cid.setter - def cid(self, cid): - """Sets the cid of this QueryBriefDto. - - - :param cid: The cid of this QueryBriefDto. # noqa: E501 - :type: int - """ - if cid is None: - raise ValueError("Invalid value for `cid`, must not be `None`") # noqa: E501 - - self._cid = cid - - @property - def dbid(self): - """Gets the dbid of this QueryBriefDto. # noqa: E501 - - - :return: The dbid of this QueryBriefDto. # noqa: E501 - :rtype: int - """ - return self._dbid - - @dbid.setter - def dbid(self, dbid): - """Sets the dbid of this QueryBriefDto. - - - :param dbid: The dbid of this QueryBriefDto. # noqa: E501 - :type: int - """ - if dbid is None: - raise ValueError("Invalid value for `dbid`, must not be `None`") # noqa: E501 - - self._dbid = dbid - - @property - def creator(self): - """Gets the creator of this QueryBriefDto. # noqa: E501 - - - :return: The creator of this QueryBriefDto. # noqa: E501 - :rtype: UserDto - """ - return self._creator - - @creator.setter - def creator(self, creator): - """Sets the creator of this QueryBriefDto. - - - :param creator: The creator of this QueryBriefDto. # noqa: E501 - :type: UserDto - """ - if creator is None: - raise ValueError("Invalid value for `creator`, must not be `None`") # noqa: E501 - - self._creator = creator - - @property - def execution(self): - """Gets the execution of this QueryBriefDto. # noqa: E501 - - - :return: The execution of this QueryBriefDto. # noqa: E501 - :rtype: datetime - """ - return self._execution - - @execution.setter - def execution(self, execution): - """Sets the execution of this QueryBriefDto. - - - :param execution: The execution of this QueryBriefDto. # noqa: E501 - :type: datetime - """ - - self._execution = execution - - @property - def query(self): - """Gets the query of this QueryBriefDto. # noqa: E501 - - - :return: The query of this QueryBriefDto. # noqa: E501 - :rtype: str - """ - return self._query - - @query.setter - def query(self, query): - """Sets the query of this QueryBriefDto. - - - :param query: The query of this QueryBriefDto. # noqa: E501 - :type: str - """ - if query is None: - raise ValueError("Invalid value for `query`, must not be `None`") # noqa: E501 - - self._query = query - - @property - def created(self): - """Gets the created of this QueryBriefDto. # noqa: E501 - - - :return: The created of this QueryBriefDto. # noqa: E501 - :rtype: datetime - """ - return self._created - - @created.setter - def created(self, created): - """Sets the created of this QueryBriefDto. - - - :param created: The created of this QueryBriefDto. # noqa: E501 - :type: datetime - """ - if created is None: - raise ValueError("Invalid value for `created`, must not be `None`") # noqa: E501 - - self._created = created - - @property - def query_normalized(self): - """Gets the query_normalized of this QueryBriefDto. # noqa: E501 - - - :return: The query_normalized of this QueryBriefDto. # noqa: E501 - :rtype: str - """ - return self._query_normalized - - @query_normalized.setter - def query_normalized(self, query_normalized): - """Sets the query_normalized of this QueryBriefDto. - - - :param query_normalized: The query_normalized of this QueryBriefDto. # noqa: E501 - :type: str - """ - - self._query_normalized = query_normalized - - @property - def query_hash(self): - """Gets the query_hash of this QueryBriefDto. # noqa: E501 - - - :return: The query_hash of this QueryBriefDto. # noqa: E501 - :rtype: str - """ - return self._query_hash - - @query_hash.setter - def query_hash(self, query_hash): - """Sets the query_hash of this QueryBriefDto. - - - :param query_hash: The query_hash of this QueryBriefDto. # noqa: E501 - :type: str - """ - if query_hash is None: - raise ValueError("Invalid value for `query_hash`, must not be `None`") # noqa: E501 - - self._query_hash = query_hash - - @property - def result_hash(self): - """Gets the result_hash of this QueryBriefDto. # noqa: E501 - - - :return: The result_hash of this QueryBriefDto. # noqa: E501 - :rtype: str - """ - return self._result_hash - - @result_hash.setter - def result_hash(self, result_hash): - """Sets the result_hash of this QueryBriefDto. - - - :param result_hash: The result_hash of this QueryBriefDto. # noqa: E501 - :type: str - """ - - self._result_hash = result_hash - - @property - def result_number(self): - """Gets the result_number of this QueryBriefDto. # noqa: E501 - - - :return: The result_number of this QueryBriefDto. # noqa: E501 - :rtype: int - """ - return self._result_number - - @result_number.setter - def result_number(self, result_number): - """Sets the result_number of this QueryBriefDto. - - - :param result_number: The result_number of this QueryBriefDto. # noqa: E501 - :type: int - """ - - self._result_number = result_number - - @property - def last_modified(self): - """Gets the last_modified of this QueryBriefDto. # noqa: E501 - - - :return: The last_modified of this QueryBriefDto. # noqa: E501 - :rtype: datetime - """ - return self._last_modified - - @last_modified.setter - def last_modified(self, last_modified): - """Sets the last_modified of this QueryBriefDto. - - - :param last_modified: The last_modified of this QueryBriefDto. # noqa: E501 - :type: datetime - """ - - self._last_modified = last_modified - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(QueryBriefDto, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, QueryBriefDto): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/swagger/api-query/swagger_client/models/query_dto.py b/swagger/api-query/swagger_client/models/query_dto.py deleted file mode 100644 index 60469ec4cf21b7ed58ed9c06ff17c95420e9cbd5..0000000000000000000000000000000000000000 --- a/swagger/api-query/swagger_client/models/query_dto.py +++ /dev/null @@ -1,403 +0,0 @@ -# coding: utf-8 - -""" - Database Repository Query Service API - - Service that manages the queries # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -import pprint -import re # noqa: F401 - -import six - -class QueryDto(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'id': 'int', - 'cid': 'int', - 'dbid': 'int', - 'creator': 'UserDto', - 'execution': 'datetime', - 'query': 'str', - 'created': 'datetime', - 'query_normalized': 'str', - 'query_hash': 'str', - 'result_hash': 'str', - 'result_number': 'int', - 'last_modified': 'datetime' - } - - attribute_map = { - 'id': 'id', - 'cid': 'cid', - 'dbid': 'dbid', - 'creator': 'creator', - 'execution': 'execution', - 'query': 'query', - 'created': 'created', - 'query_normalized': 'query_normalized', - 'query_hash': 'query_hash', - 'result_hash': 'result_hash', - 'result_number': 'result_number', - 'last_modified': 'last_modified' - } - - def __init__(self, id=None, cid=None, dbid=None, creator=None, execution=None, query=None, created=None, query_normalized=None, query_hash=None, result_hash=None, result_number=None, last_modified=None): # noqa: E501 - """QueryDto - a model defined in Swagger""" # noqa: E501 - self._id = None - self._cid = None - self._dbid = None - self._creator = None - self._execution = None - self._query = None - self._created = None - self._query_normalized = None - self._query_hash = None - self._result_hash = None - self._result_number = None - self._last_modified = None - self.discriminator = None - self.id = id - self.cid = cid - self.dbid = dbid - self.creator = creator - if execution is not None: - self.execution = execution - self.query = query - self.created = created - if query_normalized is not None: - self.query_normalized = query_normalized - self.query_hash = query_hash - if result_hash is not None: - self.result_hash = result_hash - if result_number is not None: - self.result_number = result_number - if last_modified is not None: - self.last_modified = last_modified - - @property - def id(self): - """Gets the id of this QueryDto. # noqa: E501 - - - :return: The id of this QueryDto. # noqa: E501 - :rtype: int - """ - return self._id - - @id.setter - def id(self, id): - """Sets the id of this QueryDto. - - - :param id: The id of this QueryDto. # noqa: E501 - :type: int - """ - if id is None: - raise ValueError("Invalid value for `id`, must not be `None`") # noqa: E501 - - self._id = id - - @property - def cid(self): - """Gets the cid of this QueryDto. # noqa: E501 - - - :return: The cid of this QueryDto. # noqa: E501 - :rtype: int - """ - return self._cid - - @cid.setter - def cid(self, cid): - """Sets the cid of this QueryDto. - - - :param cid: The cid of this QueryDto. # noqa: E501 - :type: int - """ - if cid is None: - raise ValueError("Invalid value for `cid`, must not be `None`") # noqa: E501 - - self._cid = cid - - @property - def dbid(self): - """Gets the dbid of this QueryDto. # noqa: E501 - - - :return: The dbid of this QueryDto. # noqa: E501 - :rtype: int - """ - return self._dbid - - @dbid.setter - def dbid(self, dbid): - """Sets the dbid of this QueryDto. - - - :param dbid: The dbid of this QueryDto. # noqa: E501 - :type: int - """ - if dbid is None: - raise ValueError("Invalid value for `dbid`, must not be `None`") # noqa: E501 - - self._dbid = dbid - - @property - def creator(self): - """Gets the creator of this QueryDto. # noqa: E501 - - - :return: The creator of this QueryDto. # noqa: E501 - :rtype: UserDto - """ - return self._creator - - @creator.setter - def creator(self, creator): - """Sets the creator of this QueryDto. - - - :param creator: The creator of this QueryDto. # noqa: E501 - :type: UserDto - """ - if creator is None: - raise ValueError("Invalid value for `creator`, must not be `None`") # noqa: E501 - - self._creator = creator - - @property - def execution(self): - """Gets the execution of this QueryDto. # noqa: E501 - - - :return: The execution of this QueryDto. # noqa: E501 - :rtype: datetime - """ - return self._execution - - @execution.setter - def execution(self, execution): - """Sets the execution of this QueryDto. - - - :param execution: The execution of this QueryDto. # noqa: E501 - :type: datetime - """ - - self._execution = execution - - @property - def query(self): - """Gets the query of this QueryDto. # noqa: E501 - - - :return: The query of this QueryDto. # noqa: E501 - :rtype: str - """ - return self._query - - @query.setter - def query(self, query): - """Sets the query of this QueryDto. - - - :param query: The query of this QueryDto. # noqa: E501 - :type: str - """ - if query is None: - raise ValueError("Invalid value for `query`, must not be `None`") # noqa: E501 - - self._query = query - - @property - def created(self): - """Gets the created of this QueryDto. # noqa: E501 - - - :return: The created of this QueryDto. # noqa: E501 - :rtype: datetime - """ - return self._created - - @created.setter - def created(self, created): - """Sets the created of this QueryDto. - - - :param created: The created of this QueryDto. # noqa: E501 - :type: datetime - """ - if created is None: - raise ValueError("Invalid value for `created`, must not be `None`") # noqa: E501 - - self._created = created - - @property - def query_normalized(self): - """Gets the query_normalized of this QueryDto. # noqa: E501 - - - :return: The query_normalized of this QueryDto. # noqa: E501 - :rtype: str - """ - return self._query_normalized - - @query_normalized.setter - def query_normalized(self, query_normalized): - """Sets the query_normalized of this QueryDto. - - - :param query_normalized: The query_normalized of this QueryDto. # noqa: E501 - :type: str - """ - - self._query_normalized = query_normalized - - @property - def query_hash(self): - """Gets the query_hash of this QueryDto. # noqa: E501 - - - :return: The query_hash of this QueryDto. # noqa: E501 - :rtype: str - """ - return self._query_hash - - @query_hash.setter - def query_hash(self, query_hash): - """Sets the query_hash of this QueryDto. - - - :param query_hash: The query_hash of this QueryDto. # noqa: E501 - :type: str - """ - if query_hash is None: - raise ValueError("Invalid value for `query_hash`, must not be `None`") # noqa: E501 - - self._query_hash = query_hash - - @property - def result_hash(self): - """Gets the result_hash of this QueryDto. # noqa: E501 - - - :return: The result_hash of this QueryDto. # noqa: E501 - :rtype: str - """ - return self._result_hash - - @result_hash.setter - def result_hash(self, result_hash): - """Sets the result_hash of this QueryDto. - - - :param result_hash: The result_hash of this QueryDto. # noqa: E501 - :type: str - """ - - self._result_hash = result_hash - - @property - def result_number(self): - """Gets the result_number of this QueryDto. # noqa: E501 - - - :return: The result_number of this QueryDto. # noqa: E501 - :rtype: int - """ - return self._result_number - - @result_number.setter - def result_number(self, result_number): - """Sets the result_number of this QueryDto. - - - :param result_number: The result_number of this QueryDto. # noqa: E501 - :type: int - """ - - self._result_number = result_number - - @property - def last_modified(self): - """Gets the last_modified of this QueryDto. # noqa: E501 - - - :return: The last_modified of this QueryDto. # noqa: E501 - :rtype: datetime - """ - return self._last_modified - - @last_modified.setter - def last_modified(self, last_modified): - """Sets the last_modified of this QueryDto. - - - :param last_modified: The last_modified of this QueryDto. # noqa: E501 - :type: datetime - """ - - self._last_modified = last_modified - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(QueryDto, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, QueryDto): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/swagger/api-query/swagger_client/models/query_result_dto.py b/swagger/api-query/swagger_client/models/query_result_dto.py deleted file mode 100644 index c60a6fe76eb2cd94ba74cb23c6f0b824e69142d9..0000000000000000000000000000000000000000 --- a/swagger/api-query/swagger_client/models/query_result_dto.py +++ /dev/null @@ -1,164 +0,0 @@ -# coding: utf-8 - -""" - Database Repository Query Service API - - Service that manages the queries # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -import pprint -import re # noqa: F401 - -import six - -class QueryResultDto(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'result': 'list[dict(str, object)]', - 'id': 'int', - 'result_number': 'int' - } - - attribute_map = { - 'result': 'result', - 'id': 'id', - 'result_number': 'resultNumber' - } - - def __init__(self, result=None, id=None, result_number=None): # noqa: E501 - """QueryResultDto - a model defined in Swagger""" # noqa: E501 - self._result = None - self._id = None - self._result_number = None - self.discriminator = None - self.result = result - self.id = id - if result_number is not None: - self.result_number = result_number - - @property - def result(self): - """Gets the result of this QueryResultDto. # noqa: E501 - - - :return: The result of this QueryResultDto. # noqa: E501 - :rtype: list[dict(str, object)] - """ - return self._result - - @result.setter - def result(self, result): - """Sets the result of this QueryResultDto. - - - :param result: The result of this QueryResultDto. # noqa: E501 - :type: list[dict(str, object)] - """ - if result is None: - raise ValueError("Invalid value for `result`, must not be `None`") # noqa: E501 - - self._result = result - - @property - def id(self): - """Gets the id of this QueryResultDto. # noqa: E501 - - - :return: The id of this QueryResultDto. # noqa: E501 - :rtype: int - """ - return self._id - - @id.setter - def id(self, id): - """Sets the id of this QueryResultDto. - - - :param id: The id of this QueryResultDto. # noqa: E501 - :type: int - """ - if id is None: - raise ValueError("Invalid value for `id`, must not be `None`") # noqa: E501 - - self._id = id - - @property - def result_number(self): - """Gets the result_number of this QueryResultDto. # noqa: E501 - - - :return: The result_number of this QueryResultDto. # noqa: E501 - :rtype: int - """ - return self._result_number - - @result_number.setter - def result_number(self, result_number): - """Sets the result_number of this QueryResultDto. - - - :param result_number: The result_number of this QueryResultDto. # noqa: E501 - :type: int - """ - - self._result_number = result_number - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(QueryResultDto, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, QueryResultDto): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/swagger/api-query/swagger_client/models/table_brief_dto.py b/swagger/api-query/swagger_client/models/table_brief_dto.py deleted file mode 100644 index 3d373bbe508fcce09b5401b4654c36b34930c39f..0000000000000000000000000000000000000000 --- a/swagger/api-query/swagger_client/models/table_brief_dto.py +++ /dev/null @@ -1,192 +0,0 @@ -# coding: utf-8 - -""" - Database Repository Query Service API - - Service that manages the queries # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -import pprint -import re # noqa: F401 - -import six - -class TableBriefDto(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'id': 'int', - 'name': 'str', - 'creator': 'UserBriefDto', - 'internal_name': 'str' - } - - attribute_map = { - 'id': 'id', - 'name': 'name', - 'creator': 'creator', - 'internal_name': 'internal_name' - } - - def __init__(self, id=None, name=None, creator=None, internal_name=None): # noqa: E501 - """TableBriefDto - a model defined in Swagger""" # noqa: E501 - self._id = None - self._name = None - self._creator = None - self._internal_name = None - self.discriminator = None - self.id = id - self.name = name - self.creator = creator - self.internal_name = internal_name - - @property - def id(self): - """Gets the id of this TableBriefDto. # noqa: E501 - - - :return: The id of this TableBriefDto. # noqa: E501 - :rtype: int - """ - return self._id - - @id.setter - def id(self, id): - """Sets the id of this TableBriefDto. - - - :param id: The id of this TableBriefDto. # noqa: E501 - :type: int - """ - if id is None: - raise ValueError("Invalid value for `id`, must not be `None`") # noqa: E501 - - self._id = id - - @property - def name(self): - """Gets the name of this TableBriefDto. # noqa: E501 - - - :return: The name of this TableBriefDto. # noqa: E501 - :rtype: str - """ - return self._name - - @name.setter - def name(self, name): - """Sets the name of this TableBriefDto. - - - :param name: The name of this TableBriefDto. # noqa: E501 - :type: str - """ - if name is None: - raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501 - - self._name = name - - @property - def creator(self): - """Gets the creator of this TableBriefDto. # noqa: E501 - - - :return: The creator of this TableBriefDto. # noqa: E501 - :rtype: UserBriefDto - """ - return self._creator - - @creator.setter - def creator(self, creator): - """Sets the creator of this TableBriefDto. - - - :param creator: The creator of this TableBriefDto. # noqa: E501 - :type: UserBriefDto - """ - if creator is None: - raise ValueError("Invalid value for `creator`, must not be `None`") # noqa: E501 - - self._creator = creator - - @property - def internal_name(self): - """Gets the internal_name of this TableBriefDto. # noqa: E501 - - - :return: The internal_name of this TableBriefDto. # noqa: E501 - :rtype: str - """ - return self._internal_name - - @internal_name.setter - def internal_name(self, internal_name): - """Sets the internal_name of this TableBriefDto. - - - :param internal_name: The internal_name of this TableBriefDto. # noqa: E501 - :type: str - """ - if internal_name is None: - raise ValueError("Invalid value for `internal_name`, must not be `None`") # noqa: E501 - - self._internal_name = internal_name - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(TableBriefDto, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, TableBriefDto): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/swagger/api-query/swagger_client/models/table_csv_delete_dto.py b/swagger/api-query/swagger_client/models/table_csv_delete_dto.py deleted file mode 100644 index ede0ff3d60eb6424d99f3c2572b11a44f802221a..0000000000000000000000000000000000000000 --- a/swagger/api-query/swagger_client/models/table_csv_delete_dto.py +++ /dev/null @@ -1,111 +0,0 @@ -# coding: utf-8 - -""" - Database Repository Query Service API - - Service that manages the queries # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -import pprint -import re # noqa: F401 - -import six - -class TableCsvDeleteDto(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'keys': 'dict(str, object)' - } - - attribute_map = { - 'keys': 'keys' - } - - def __init__(self, keys=None): # noqa: E501 - """TableCsvDeleteDto - a model defined in Swagger""" # noqa: E501 - self._keys = None - self.discriminator = None - self.keys = keys - - @property - def keys(self): - """Gets the keys of this TableCsvDeleteDto. # noqa: E501 - - - :return: The keys of this TableCsvDeleteDto. # noqa: E501 - :rtype: dict(str, object) - """ - return self._keys - - @keys.setter - def keys(self, keys): - """Sets the keys of this TableCsvDeleteDto. - - - :param keys: The keys of this TableCsvDeleteDto. # noqa: E501 - :type: dict(str, object) - """ - if keys is None: - raise ValueError("Invalid value for `keys`, must not be `None`") # noqa: E501 - - self._keys = keys - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(TableCsvDeleteDto, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, TableCsvDeleteDto): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/swagger/api-query/swagger_client/models/table_csv_dto.py b/swagger/api-query/swagger_client/models/table_csv_dto.py deleted file mode 100644 index b473e2acc95e2009adab375000c5995b1ac70260..0000000000000000000000000000000000000000 --- a/swagger/api-query/swagger_client/models/table_csv_dto.py +++ /dev/null @@ -1,111 +0,0 @@ -# coding: utf-8 - -""" - Database Repository Query Service API - - Service that manages the queries # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -import pprint -import re # noqa: F401 - -import six - -class TableCsvDto(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'data': 'dict(str, object)' - } - - attribute_map = { - 'data': 'data' - } - - def __init__(self, data=None): # noqa: E501 - """TableCsvDto - a model defined in Swagger""" # noqa: E501 - self._data = None - self.discriminator = None - self.data = data - - @property - def data(self): - """Gets the data of this TableCsvDto. # noqa: E501 - - - :return: The data of this TableCsvDto. # noqa: E501 - :rtype: dict(str, object) - """ - return self._data - - @data.setter - def data(self, data): - """Sets the data of this TableCsvDto. - - - :param data: The data of this TableCsvDto. # noqa: E501 - :type: dict(str, object) - """ - if data is None: - raise ValueError("Invalid value for `data`, must not be `None`") # noqa: E501 - - self._data = data - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(TableCsvDto, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, TableCsvDto): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/swagger/api-query/swagger_client/models/table_csv_update_dto.py b/swagger/api-query/swagger_client/models/table_csv_update_dto.py deleted file mode 100644 index f2c2316f7d16ee540952af65452028b9d1debfb2..0000000000000000000000000000000000000000 --- a/swagger/api-query/swagger_client/models/table_csv_update_dto.py +++ /dev/null @@ -1,138 +0,0 @@ -# coding: utf-8 - -""" - Database Repository Query Service API - - Service that manages the queries # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -import pprint -import re # noqa: F401 - -import six - -class TableCsvUpdateDto(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'data': 'dict(str, object)', - 'keys': 'dict(str, object)' - } - - attribute_map = { - 'data': 'data', - 'keys': 'keys' - } - - def __init__(self, data=None, keys=None): # noqa: E501 - """TableCsvUpdateDto - a model defined in Swagger""" # noqa: E501 - self._data = None - self._keys = None - self.discriminator = None - self.data = data - self.keys = keys - - @property - def data(self): - """Gets the data of this TableCsvUpdateDto. # noqa: E501 - - - :return: The data of this TableCsvUpdateDto. # noqa: E501 - :rtype: dict(str, object) - """ - return self._data - - @data.setter - def data(self, data): - """Sets the data of this TableCsvUpdateDto. - - - :param data: The data of this TableCsvUpdateDto. # noqa: E501 - :type: dict(str, object) - """ - if data is None: - raise ValueError("Invalid value for `data`, must not be `None`") # noqa: E501 - - self._data = data - - @property - def keys(self): - """Gets the keys of this TableCsvUpdateDto. # noqa: E501 - - - :return: The keys of this TableCsvUpdateDto. # noqa: E501 - :rtype: dict(str, object) - """ - return self._keys - - @keys.setter - def keys(self, keys): - """Sets the keys of this TableCsvUpdateDto. - - - :param keys: The keys of this TableCsvUpdateDto. # noqa: E501 - :type: dict(str, object) - """ - if keys is None: - raise ValueError("Invalid value for `keys`, must not be `None`") # noqa: E501 - - self._keys = keys - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(TableCsvUpdateDto, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, TableCsvUpdateDto): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/swagger/api-query/swagger_client/models/table_dto.py b/swagger/api-query/swagger_client/models/table_dto.py deleted file mode 100644 index b5828f5a522e2cbf96882b4a65ceb6f767b5a837..0000000000000000000000000000000000000000 --- a/swagger/api-query/swagger_client/models/table_dto.py +++ /dev/null @@ -1,272 +0,0 @@ -# coding: utf-8 - -""" - Database Repository Query Service API - - Service that manages the queries # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -import pprint -import re # noqa: F401 - -import six - -class TableDto(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'id': 'int', - 'name': 'str', - 'topic': 'str', - 'description': 'str', - 'created': 'datetime', - 'columns': 'list[ColumnDto]', - 'internal_name': 'str' - } - - attribute_map = { - 'id': 'id', - 'name': 'name', - 'topic': 'topic', - 'description': 'description', - 'created': 'created', - 'columns': 'columns', - 'internal_name': 'internal_name' - } - - def __init__(self, id=None, name=None, topic=None, description=None, created=None, columns=None, internal_name=None): # noqa: E501 - """TableDto - a model defined in Swagger""" # noqa: E501 - self._id = None - self._name = None - self._topic = None - self._description = None - self._created = None - self._columns = None - self._internal_name = None - self.discriminator = None - self.id = id - self.name = name - self.topic = topic - self.description = description - if created is not None: - self.created = created - self.columns = columns - self.internal_name = internal_name - - @property - def id(self): - """Gets the id of this TableDto. # noqa: E501 - - - :return: The id of this TableDto. # noqa: E501 - :rtype: int - """ - return self._id - - @id.setter - def id(self, id): - """Sets the id of this TableDto. - - - :param id: The id of this TableDto. # noqa: E501 - :type: int - """ - if id is None: - raise ValueError("Invalid value for `id`, must not be `None`") # noqa: E501 - - self._id = id - - @property - def name(self): - """Gets the name of this TableDto. # noqa: E501 - - - :return: The name of this TableDto. # noqa: E501 - :rtype: str - """ - return self._name - - @name.setter - def name(self, name): - """Sets the name of this TableDto. - - - :param name: The name of this TableDto. # noqa: E501 - :type: str - """ - if name is None: - raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501 - - self._name = name - - @property - def topic(self): - """Gets the topic of this TableDto. # noqa: E501 - - - :return: The topic of this TableDto. # noqa: E501 - :rtype: str - """ - return self._topic - - @topic.setter - def topic(self, topic): - """Sets the topic of this TableDto. - - - :param topic: The topic of this TableDto. # noqa: E501 - :type: str - """ - if topic is None: - raise ValueError("Invalid value for `topic`, must not be `None`") # noqa: E501 - - self._topic = topic - - @property - def description(self): - """Gets the description of this TableDto. # noqa: E501 - - - :return: The description of this TableDto. # noqa: E501 - :rtype: str - """ - return self._description - - @description.setter - def description(self, description): - """Sets the description of this TableDto. - - - :param description: The description of this TableDto. # noqa: E501 - :type: str - """ - if description is None: - raise ValueError("Invalid value for `description`, must not be `None`") # noqa: E501 - - self._description = description - - @property - def created(self): - """Gets the created of this TableDto. # noqa: E501 - - - :return: The created of this TableDto. # noqa: E501 - :rtype: datetime - """ - return self._created - - @created.setter - def created(self, created): - """Sets the created of this TableDto. - - - :param created: The created of this TableDto. # noqa: E501 - :type: datetime - """ - - self._created = created - - @property - def columns(self): - """Gets the columns of this TableDto. # noqa: E501 - - - :return: The columns of this TableDto. # noqa: E501 - :rtype: list[ColumnDto] - """ - return self._columns - - @columns.setter - def columns(self, columns): - """Sets the columns of this TableDto. - - - :param columns: The columns of this TableDto. # noqa: E501 - :type: list[ColumnDto] - """ - if columns is None: - raise ValueError("Invalid value for `columns`, must not be `None`") # noqa: E501 - - self._columns = columns - - @property - def internal_name(self): - """Gets the internal_name of this TableDto. # noqa: E501 - - - :return: The internal_name of this TableDto. # noqa: E501 - :rtype: str - """ - return self._internal_name - - @internal_name.setter - def internal_name(self, internal_name): - """Sets the internal_name of this TableDto. - - - :param internal_name: The internal_name of this TableDto. # noqa: E501 - :type: str - """ - if internal_name is None: - raise ValueError("Invalid value for `internal_name`, must not be `None`") # noqa: E501 - - self._internal_name = internal_name - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(TableDto, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, TableDto): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/swagger/api-query/swagger_client/models/table_history_dto.py b/swagger/api-query/swagger_client/models/table_history_dto.py deleted file mode 100644 index b79219069f8c2c1bfa1ab248fb85fdd5642d816c..0000000000000000000000000000000000000000 --- a/swagger/api-query/swagger_client/models/table_history_dto.py +++ /dev/null @@ -1,165 +0,0 @@ -# coding: utf-8 - -""" - Database Repository Query Service API - - Service that manages the queries # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -import pprint -import re # noqa: F401 - -import six - -class TableHistoryDto(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'timestamp': 'datetime', - 'event': 'str', - 'total': 'int' - } - - attribute_map = { - 'timestamp': 'timestamp', - 'event': 'event', - 'total': 'total' - } - - def __init__(self, timestamp=None, event=None, total=None): # noqa: E501 - """TableHistoryDto - a model defined in Swagger""" # noqa: E501 - self._timestamp = None - self._event = None - self._total = None - self.discriminator = None - self.timestamp = timestamp - self.event = event - self.total = total - - @property - def timestamp(self): - """Gets the timestamp of this TableHistoryDto. # noqa: E501 - - - :return: The timestamp of this TableHistoryDto. # noqa: E501 - :rtype: datetime - """ - return self._timestamp - - @timestamp.setter - def timestamp(self, timestamp): - """Sets the timestamp of this TableHistoryDto. - - - :param timestamp: The timestamp of this TableHistoryDto. # noqa: E501 - :type: datetime - """ - if timestamp is None: - raise ValueError("Invalid value for `timestamp`, must not be `None`") # noqa: E501 - - self._timestamp = timestamp - - @property - def event(self): - """Gets the event of this TableHistoryDto. # noqa: E501 - - - :return: The event of this TableHistoryDto. # noqa: E501 - :rtype: str - """ - return self._event - - @event.setter - def event(self, event): - """Sets the event of this TableHistoryDto. - - - :param event: The event of this TableHistoryDto. # noqa: E501 - :type: str - """ - if event is None: - raise ValueError("Invalid value for `event`, must not be `None`") # noqa: E501 - - self._event = event - - @property - def total(self): - """Gets the total of this TableHistoryDto. # noqa: E501 - - - :return: The total of this TableHistoryDto. # noqa: E501 - :rtype: int - """ - return self._total - - @total.setter - def total(self, total): - """Sets the total of this TableHistoryDto. - - - :param total: The total of this TableHistoryDto. # noqa: E501 - :type: int - """ - if total is None: - raise ValueError("Invalid value for `total`, must not be `None`") # noqa: E501 - - self._total = total - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(TableHistoryDto, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, TableHistoryDto): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/swagger/api-query/swagger_client/models/user_brief_dto.py b/swagger/api-query/swagger_client/models/user_brief_dto.py deleted file mode 100644 index c29510792162b1cdc193a1068c52cbdd470949dc..0000000000000000000000000000000000000000 --- a/swagger/api-query/swagger_client/models/user_brief_dto.py +++ /dev/null @@ -1,350 +0,0 @@ -# coding: utf-8 - -""" - Database Repository Query Service API - - Service that manages the queries # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -import pprint -import re # noqa: F401 - -import six - -class UserBriefDto(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'id': 'int', - 'username': 'str', - 'firstname': 'str', - 'lastname': 'str', - 'affiliation': 'str', - 'orcid': 'str', - 'titles_before': 'str', - 'titles_after': 'str', - 'theme_dark': 'bool', - 'email_verified': 'bool' - } - - attribute_map = { - 'id': 'id', - 'username': 'username', - 'firstname': 'firstname', - 'lastname': 'lastname', - 'affiliation': 'affiliation', - 'orcid': 'orcid', - 'titles_before': 'titles_before', - 'titles_after': 'titles_after', - 'theme_dark': 'theme_dark', - 'email_verified': 'email_verified' - } - - def __init__(self, id=None, username=None, firstname=None, lastname=None, affiliation=None, orcid=None, titles_before=None, titles_after=None, theme_dark=None, email_verified=None): # noqa: E501 - """UserBriefDto - a model defined in Swagger""" # noqa: E501 - self._id = None - self._username = None - self._firstname = None - self._lastname = None - self._affiliation = None - self._orcid = None - self._titles_before = None - self._titles_after = None - self._theme_dark = None - self._email_verified = None - self.discriminator = None - self.id = id - self.username = username - if firstname is not None: - self.firstname = firstname - if lastname is not None: - self.lastname = lastname - if affiliation is not None: - self.affiliation = affiliation - if orcid is not None: - self.orcid = orcid - if titles_before is not None: - self.titles_before = titles_before - if titles_after is not None: - self.titles_after = titles_after - self.theme_dark = theme_dark - self.email_verified = email_verified - - @property - def id(self): - """Gets the id of this UserBriefDto. # noqa: E501 - - - :return: The id of this UserBriefDto. # noqa: E501 - :rtype: int - """ - return self._id - - @id.setter - def id(self, id): - """Sets the id of this UserBriefDto. - - - :param id: The id of this UserBriefDto. # noqa: E501 - :type: int - """ - if id is None: - raise ValueError("Invalid value for `id`, must not be `None`") # noqa: E501 - - self._id = id - - @property - def username(self): - """Gets the username of this UserBriefDto. # noqa: E501 - - Only contains lowercase characters # noqa: E501 - - :return: The username of this UserBriefDto. # noqa: E501 - :rtype: str - """ - return self._username - - @username.setter - def username(self, username): - """Sets the username of this UserBriefDto. - - Only contains lowercase characters # noqa: E501 - - :param username: The username of this UserBriefDto. # noqa: E501 - :type: str - """ - if username is None: - raise ValueError("Invalid value for `username`, must not be `None`") # noqa: E501 - - self._username = username - - @property - def firstname(self): - """Gets the firstname of this UserBriefDto. # noqa: E501 - - - :return: The firstname of this UserBriefDto. # noqa: E501 - :rtype: str - """ - return self._firstname - - @firstname.setter - def firstname(self, firstname): - """Sets the firstname of this UserBriefDto. - - - :param firstname: The firstname of this UserBriefDto. # noqa: E501 - :type: str - """ - - self._firstname = firstname - - @property - def lastname(self): - """Gets the lastname of this UserBriefDto. # noqa: E501 - - - :return: The lastname of this UserBriefDto. # noqa: E501 - :rtype: str - """ - return self._lastname - - @lastname.setter - def lastname(self, lastname): - """Sets the lastname of this UserBriefDto. - - - :param lastname: The lastname of this UserBriefDto. # noqa: E501 - :type: str - """ - - self._lastname = lastname - - @property - def affiliation(self): - """Gets the affiliation of this UserBriefDto. # noqa: E501 - - - :return: The affiliation of this UserBriefDto. # noqa: E501 - :rtype: str - """ - return self._affiliation - - @affiliation.setter - def affiliation(self, affiliation): - """Sets the affiliation of this UserBriefDto. - - - :param affiliation: The affiliation of this UserBriefDto. # noqa: E501 - :type: str - """ - - self._affiliation = affiliation - - @property - def orcid(self): - """Gets the orcid of this UserBriefDto. # noqa: E501 - - - :return: The orcid of this UserBriefDto. # noqa: E501 - :rtype: str - """ - return self._orcid - - @orcid.setter - def orcid(self, orcid): - """Sets the orcid of this UserBriefDto. - - - :param orcid: The orcid of this UserBriefDto. # noqa: E501 - :type: str - """ - - self._orcid = orcid - - @property - def titles_before(self): - """Gets the titles_before of this UserBriefDto. # noqa: E501 - - - :return: The titles_before of this UserBriefDto. # noqa: E501 - :rtype: str - """ - return self._titles_before - - @titles_before.setter - def titles_before(self, titles_before): - """Sets the titles_before of this UserBriefDto. - - - :param titles_before: The titles_before of this UserBriefDto. # noqa: E501 - :type: str - """ - - self._titles_before = titles_before - - @property - def titles_after(self): - """Gets the titles_after of this UserBriefDto. # noqa: E501 - - - :return: The titles_after of this UserBriefDto. # noqa: E501 - :rtype: str - """ - return self._titles_after - - @titles_after.setter - def titles_after(self, titles_after): - """Sets the titles_after of this UserBriefDto. - - - :param titles_after: The titles_after of this UserBriefDto. # noqa: E501 - :type: str - """ - - self._titles_after = titles_after - - @property - def theme_dark(self): - """Gets the theme_dark of this UserBriefDto. # noqa: E501 - - - :return: The theme_dark of this UserBriefDto. # noqa: E501 - :rtype: bool - """ - return self._theme_dark - - @theme_dark.setter - def theme_dark(self, theme_dark): - """Sets the theme_dark of this UserBriefDto. - - - :param theme_dark: The theme_dark of this UserBriefDto. # noqa: E501 - :type: bool - """ - if theme_dark is None: - raise ValueError("Invalid value for `theme_dark`, must not be `None`") # noqa: E501 - - self._theme_dark = theme_dark - - @property - def email_verified(self): - """Gets the email_verified of this UserBriefDto. # noqa: E501 - - - :return: The email_verified of this UserBriefDto. # noqa: E501 - :rtype: bool - """ - return self._email_verified - - @email_verified.setter - def email_verified(self, email_verified): - """Sets the email_verified of this UserBriefDto. - - - :param email_verified: The email_verified of this UserBriefDto. # noqa: E501 - :type: bool - """ - if email_verified is None: - raise ValueError("Invalid value for `email_verified`, must not be `None`") # noqa: E501 - - self._email_verified = email_verified - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(UserBriefDto, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, UserBriefDto): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/swagger/api-query/swagger_client/models/user_dto.py b/swagger/api-query/swagger_client/models/user_dto.py deleted file mode 100644 index 6c3503411c21a5595d2818e6a107656da6b9e2ce..0000000000000000000000000000000000000000 --- a/swagger/api-query/swagger_client/models/user_dto.py +++ /dev/null @@ -1,481 +0,0 @@ -# coding: utf-8 - -""" - Database Repository Query Service API - - Service that manages the queries # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -import pprint -import re # noqa: F401 - -import six - -class UserDto(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'id': 'int', - 'authorities': 'list[GrantedAuthorityDto]', - 'username': 'str', - 'firstname': 'str', - 'lastname': 'str', - 'affiliation': 'str', - 'orcid': 'str', - 'containers': 'list[ContainerDto]', - 'databases': 'list[ContainerDto]', - 'identifiers': 'list[ContainerDto]', - 'email': 'str', - 'titles_before': 'str', - 'titles_after': 'str', - 'theme_dark': 'bool', - 'email_verified': 'bool' - } - - attribute_map = { - 'id': 'id', - 'authorities': 'authorities', - 'username': 'username', - 'firstname': 'firstname', - 'lastname': 'lastname', - 'affiliation': 'affiliation', - 'orcid': 'orcid', - 'containers': 'containers', - 'databases': 'databases', - 'identifiers': 'identifiers', - 'email': 'email', - 'titles_before': 'titles_before', - 'titles_after': 'titles_after', - 'theme_dark': 'theme_dark', - 'email_verified': 'email_verified' - } - - def __init__(self, id=None, authorities=None, username=None, firstname=None, lastname=None, affiliation=None, orcid=None, containers=None, databases=None, identifiers=None, email=None, titles_before=None, titles_after=None, theme_dark=None, email_verified=None): # noqa: E501 - """UserDto - a model defined in Swagger""" # noqa: E501 - self._id = None - self._authorities = None - self._username = None - self._firstname = None - self._lastname = None - self._affiliation = None - self._orcid = None - self._containers = None - self._databases = None - self._identifiers = None - self._email = None - self._titles_before = None - self._titles_after = None - self._theme_dark = None - self._email_verified = None - self.discriminator = None - self.id = id - if authorities is not None: - self.authorities = authorities - self.username = username - if firstname is not None: - self.firstname = firstname - if lastname is not None: - self.lastname = lastname - if affiliation is not None: - self.affiliation = affiliation - if orcid is not None: - self.orcid = orcid - if containers is not None: - self.containers = containers - if databases is not None: - self.databases = databases - if identifiers is not None: - self.identifiers = identifiers - self.email = email - if titles_before is not None: - self.titles_before = titles_before - if titles_after is not None: - self.titles_after = titles_after - self.theme_dark = theme_dark - self.email_verified = email_verified - - @property - def id(self): - """Gets the id of this UserDto. # noqa: E501 - - - :return: The id of this UserDto. # noqa: E501 - :rtype: int - """ - return self._id - - @id.setter - def id(self, id): - """Sets the id of this UserDto. - - - :param id: The id of this UserDto. # noqa: E501 - :type: int - """ - if id is None: - raise ValueError("Invalid value for `id`, must not be `None`") # noqa: E501 - - self._id = id - - @property - def authorities(self): - """Gets the authorities of this UserDto. # noqa: E501 - - - :return: The authorities of this UserDto. # noqa: E501 - :rtype: list[GrantedAuthorityDto] - """ - return self._authorities - - @authorities.setter - def authorities(self, authorities): - """Sets the authorities of this UserDto. - - - :param authorities: The authorities of this UserDto. # noqa: E501 - :type: list[GrantedAuthorityDto] - """ - - self._authorities = authorities - - @property - def username(self): - """Gets the username of this UserDto. # noqa: E501 - - Only contains lowercase characters # noqa: E501 - - :return: The username of this UserDto. # noqa: E501 - :rtype: str - """ - return self._username - - @username.setter - def username(self, username): - """Sets the username of this UserDto. - - Only contains lowercase characters # noqa: E501 - - :param username: The username of this UserDto. # noqa: E501 - :type: str - """ - if username is None: - raise ValueError("Invalid value for `username`, must not be `None`") # noqa: E501 - - self._username = username - - @property - def firstname(self): - """Gets the firstname of this UserDto. # noqa: E501 - - - :return: The firstname of this UserDto. # noqa: E501 - :rtype: str - """ - return self._firstname - - @firstname.setter - def firstname(self, firstname): - """Sets the firstname of this UserDto. - - - :param firstname: The firstname of this UserDto. # noqa: E501 - :type: str - """ - - self._firstname = firstname - - @property - def lastname(self): - """Gets the lastname of this UserDto. # noqa: E501 - - - :return: The lastname of this UserDto. # noqa: E501 - :rtype: str - """ - return self._lastname - - @lastname.setter - def lastname(self, lastname): - """Sets the lastname of this UserDto. - - - :param lastname: The lastname of this UserDto. # noqa: E501 - :type: str - """ - - self._lastname = lastname - - @property - def affiliation(self): - """Gets the affiliation of this UserDto. # noqa: E501 - - - :return: The affiliation of this UserDto. # noqa: E501 - :rtype: str - """ - return self._affiliation - - @affiliation.setter - def affiliation(self, affiliation): - """Sets the affiliation of this UserDto. - - - :param affiliation: The affiliation of this UserDto. # noqa: E501 - :type: str - """ - - self._affiliation = affiliation - - @property - def orcid(self): - """Gets the orcid of this UserDto. # noqa: E501 - - - :return: The orcid of this UserDto. # noqa: E501 - :rtype: str - """ - return self._orcid - - @orcid.setter - def orcid(self, orcid): - """Sets the orcid of this UserDto. - - - :param orcid: The orcid of this UserDto. # noqa: E501 - :type: str - """ - - self._orcid = orcid - - @property - def containers(self): - """Gets the containers of this UserDto. # noqa: E501 - - - :return: The containers of this UserDto. # noqa: E501 - :rtype: list[ContainerDto] - """ - return self._containers - - @containers.setter - def containers(self, containers): - """Sets the containers of this UserDto. - - - :param containers: The containers of this UserDto. # noqa: E501 - :type: list[ContainerDto] - """ - - self._containers = containers - - @property - def databases(self): - """Gets the databases of this UserDto. # noqa: E501 - - - :return: The databases of this UserDto. # noqa: E501 - :rtype: list[ContainerDto] - """ - return self._databases - - @databases.setter - def databases(self, databases): - """Sets the databases of this UserDto. - - - :param databases: The databases of this UserDto. # noqa: E501 - :type: list[ContainerDto] - """ - - self._databases = databases - - @property - def identifiers(self): - """Gets the identifiers of this UserDto. # noqa: E501 - - - :return: The identifiers of this UserDto. # noqa: E501 - :rtype: list[ContainerDto] - """ - return self._identifiers - - @identifiers.setter - def identifiers(self, identifiers): - """Sets the identifiers of this UserDto. - - - :param identifiers: The identifiers of this UserDto. # noqa: E501 - :type: list[ContainerDto] - """ - - self._identifiers = identifiers - - @property - def email(self): - """Gets the email of this UserDto. # noqa: E501 - - - :return: The email of this UserDto. # noqa: E501 - :rtype: str - """ - return self._email - - @email.setter - def email(self, email): - """Sets the email of this UserDto. - - - :param email: The email of this UserDto. # noqa: E501 - :type: str - """ - if email is None: - raise ValueError("Invalid value for `email`, must not be `None`") # noqa: E501 - - self._email = email - - @property - def titles_before(self): - """Gets the titles_before of this UserDto. # noqa: E501 - - - :return: The titles_before of this UserDto. # noqa: E501 - :rtype: str - """ - return self._titles_before - - @titles_before.setter - def titles_before(self, titles_before): - """Sets the titles_before of this UserDto. - - - :param titles_before: The titles_before of this UserDto. # noqa: E501 - :type: str - """ - - self._titles_before = titles_before - - @property - def titles_after(self): - """Gets the titles_after of this UserDto. # noqa: E501 - - - :return: The titles_after of this UserDto. # noqa: E501 - :rtype: str - """ - return self._titles_after - - @titles_after.setter - def titles_after(self, titles_after): - """Sets the titles_after of this UserDto. - - - :param titles_after: The titles_after of this UserDto. # noqa: E501 - :type: str - """ - - self._titles_after = titles_after - - @property - def theme_dark(self): - """Gets the theme_dark of this UserDto. # noqa: E501 - - - :return: The theme_dark of this UserDto. # noqa: E501 - :rtype: bool - """ - return self._theme_dark - - @theme_dark.setter - def theme_dark(self, theme_dark): - """Sets the theme_dark of this UserDto. - - - :param theme_dark: The theme_dark of this UserDto. # noqa: E501 - :type: bool - """ - if theme_dark is None: - raise ValueError("Invalid value for `theme_dark`, must not be `None`") # noqa: E501 - - self._theme_dark = theme_dark - - @property - def email_verified(self): - """Gets the email_verified of this UserDto. # noqa: E501 - - - :return: The email_verified of this UserDto. # noqa: E501 - :rtype: bool - """ - return self._email_verified - - @email_verified.setter - def email_verified(self, email_verified): - """Sets the email_verified of this UserDto. - - - :param email_verified: The email_verified of this UserDto. # noqa: E501 - :type: bool - """ - if email_verified is None: - raise ValueError("Invalid value for `email_verified`, must not be `None`") # noqa: E501 - - self._email_verified = email_verified - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(UserDto, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, UserDto): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/swagger/api-query/swagger_client/rest.py b/swagger/api-query/swagger_client/rest.py deleted file mode 100644 index ca858e0e27c750a6ab56fbc0451a091cd3b51818..0000000000000000000000000000000000000000 --- a/swagger/api-query/swagger_client/rest.py +++ /dev/null @@ -1,317 +0,0 @@ -# coding: utf-8 - -""" - Database Repository Query Service API - - Service that manages the queries # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -from __future__ import absolute_import - -import io -import json -import logging -import re -import ssl - -import certifi -# python 2 and python 3 compatibility library -import six -from six.moves.urllib.parse import urlencode - -try: - import urllib3 -except ImportError: - raise ImportError('Swagger python client requires urllib3.') - - -logger = logging.getLogger(__name__) - - -class RESTResponse(io.IOBase): - - def __init__(self, resp): - self.urllib3_response = resp - self.status = resp.status - self.reason = resp.reason - self.data = resp.data - - def getheaders(self): - """Returns a dictionary of the response headers.""" - return self.urllib3_response.getheaders() - - def getheader(self, name, default=None): - """Returns a given response header.""" - return self.urllib3_response.getheader(name, default) - - -class RESTClientObject(object): - - def __init__(self, configuration, pools_size=4, maxsize=None): - # urllib3.PoolManager will pass all kw parameters to connectionpool - # https://github.com/shazow/urllib3/blob/f9409436f83aeb79fbaf090181cd81b784f1b8ce/urllib3/poolmanager.py#L75 # noqa: E501 - # https://github.com/shazow/urllib3/blob/f9409436f83aeb79fbaf090181cd81b784f1b8ce/urllib3/connectionpool.py#L680 # noqa: E501 - # maxsize is the number of requests to host that are allowed in parallel # noqa: E501 - # Custom SSL certificates and client certificates: http://urllib3.readthedocs.io/en/latest/advanced-usage.html # noqa: E501 - - # cert_reqs - if configuration.verify_ssl: - cert_reqs = ssl.CERT_REQUIRED - else: - cert_reqs = ssl.CERT_NONE - - # ca_certs - if configuration.ssl_ca_cert: - ca_certs = configuration.ssl_ca_cert - else: - # if not set certificate file, use Mozilla's root certificates. - ca_certs = certifi.where() - - addition_pool_args = {} - if configuration.assert_hostname is not None: - addition_pool_args['assert_hostname'] = configuration.assert_hostname # noqa: E501 - - if maxsize is None: - if configuration.connection_pool_maxsize is not None: - maxsize = configuration.connection_pool_maxsize - else: - maxsize = 4 - - # https pool manager - if configuration.proxy: - self.pool_manager = urllib3.ProxyManager( - num_pools=pools_size, - maxsize=maxsize, - cert_reqs=cert_reqs, - ca_certs=ca_certs, - cert_file=configuration.cert_file, - key_file=configuration.key_file, - proxy_url=configuration.proxy, - **addition_pool_args - ) - else: - self.pool_manager = urllib3.PoolManager( - num_pools=pools_size, - maxsize=maxsize, - cert_reqs=cert_reqs, - ca_certs=ca_certs, - cert_file=configuration.cert_file, - key_file=configuration.key_file, - **addition_pool_args - ) - - def request(self, method, url, query_params=None, headers=None, - body=None, post_params=None, _preload_content=True, - _request_timeout=None): - """Perform requests. - - :param method: http request method - :param url: http request url - :param query_params: query parameters in the url - :param headers: http request headers - :param body: request json body, for `application/json` - :param post_params: request post parameters, - `application/x-www-form-urlencoded` - and `multipart/form-data` - :param _preload_content: if False, the urllib3.HTTPResponse object will - be returned without reading/decoding response - data. Default is True. - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - """ - method = method.upper() - assert method in ['GET', 'HEAD', 'DELETE', 'POST', 'PUT', - 'PATCH', 'OPTIONS'] - - if post_params and body: - raise ValueError( - "body parameter cannot be used with post_params parameter." - ) - - post_params = post_params or {} - headers = headers or {} - - timeout = None - if _request_timeout: - if isinstance(_request_timeout, (int, ) if six.PY3 else (int, long)): # noqa: E501,F821 - timeout = urllib3.Timeout(total=_request_timeout) - elif (isinstance(_request_timeout, tuple) and - len(_request_timeout) == 2): - timeout = urllib3.Timeout( - connect=_request_timeout[0], read=_request_timeout[1]) - - if 'Content-Type' not in headers: - headers['Content-Type'] = 'application/json' - - try: - # For `POST`, `PUT`, `PATCH`, `OPTIONS`, `DELETE` - if method in ['POST', 'PUT', 'PATCH', 'OPTIONS', 'DELETE']: - if query_params: - url += '?' + urlencode(query_params) - if re.search('json', headers['Content-Type'], re.IGNORECASE): - request_body = '{}' - if body is not None: - request_body = json.dumps(body) - r = self.pool_manager.request( - method, url, - body=request_body, - preload_content=_preload_content, - timeout=timeout, - headers=headers) - elif headers['Content-Type'] == 'application/x-www-form-urlencoded': # noqa: E501 - r = self.pool_manager.request( - method, url, - fields=post_params, - encode_multipart=False, - preload_content=_preload_content, - timeout=timeout, - headers=headers) - elif headers['Content-Type'] == 'multipart/form-data': - # must del headers['Content-Type'], or the correct - # Content-Type which generated by urllib3 will be - # overwritten. - del headers['Content-Type'] - r = self.pool_manager.request( - method, url, - fields=post_params, - encode_multipart=True, - preload_content=_preload_content, - timeout=timeout, - headers=headers) - # Pass a `string` parameter directly in the body to support - # other content types than Json when `body` argument is - # provided in serialized form - elif isinstance(body, str): - request_body = body - r = self.pool_manager.request( - method, url, - body=request_body, - preload_content=_preload_content, - timeout=timeout, - headers=headers) - else: - # Cannot generate the request from given parameters - msg = """Cannot prepare a request message for provided - arguments. Please check that your arguments match - declared content type.""" - raise ApiException(status=0, reason=msg) - # For `GET`, `HEAD` - else: - r = self.pool_manager.request(method, url, - fields=query_params, - preload_content=_preload_content, - timeout=timeout, - headers=headers) - except urllib3.exceptions.SSLError as e: - msg = "{0}\n{1}".format(type(e).__name__, str(e)) - raise ApiException(status=0, reason=msg) - - if _preload_content: - r = RESTResponse(r) - - # log response body - logger.debug("response body: %s", r.data) - - if not 200 <= r.status <= 299: - raise ApiException(http_resp=r) - - return r - - def GET(self, url, headers=None, query_params=None, _preload_content=True, - _request_timeout=None): - return self.request("GET", url, - headers=headers, - _preload_content=_preload_content, - _request_timeout=_request_timeout, - query_params=query_params) - - def HEAD(self, url, headers=None, query_params=None, _preload_content=True, - _request_timeout=None): - return self.request("HEAD", url, - headers=headers, - _preload_content=_preload_content, - _request_timeout=_request_timeout, - query_params=query_params) - - def OPTIONS(self, url, headers=None, query_params=None, post_params=None, - body=None, _preload_content=True, _request_timeout=None): - return self.request("OPTIONS", url, - headers=headers, - query_params=query_params, - post_params=post_params, - _preload_content=_preload_content, - _request_timeout=_request_timeout, - body=body) - - def DELETE(self, url, headers=None, query_params=None, body=None, - _preload_content=True, _request_timeout=None): - return self.request("DELETE", url, - headers=headers, - query_params=query_params, - _preload_content=_preload_content, - _request_timeout=_request_timeout, - body=body) - - def POST(self, url, headers=None, query_params=None, post_params=None, - body=None, _preload_content=True, _request_timeout=None): - return self.request("POST", url, - headers=headers, - query_params=query_params, - post_params=post_params, - _preload_content=_preload_content, - _request_timeout=_request_timeout, - body=body) - - def PUT(self, url, headers=None, query_params=None, post_params=None, - body=None, _preload_content=True, _request_timeout=None): - return self.request("PUT", url, - headers=headers, - query_params=query_params, - post_params=post_params, - _preload_content=_preload_content, - _request_timeout=_request_timeout, - body=body) - - def PATCH(self, url, headers=None, query_params=None, post_params=None, - body=None, _preload_content=True, _request_timeout=None): - return self.request("PATCH", url, - headers=headers, - query_params=query_params, - post_params=post_params, - _preload_content=_preload_content, - _request_timeout=_request_timeout, - body=body) - - -class ApiException(Exception): - - def __init__(self, status=None, reason=None, http_resp=None): - if http_resp: - self.status = http_resp.status - self.reason = http_resp.reason - self.body = http_resp.data - self.headers = http_resp.getheaders() - else: - self.status = status - self.reason = reason - self.body = None - self.headers = None - - def __str__(self): - """Custom error messages for exception""" - error_message = "({0})\n"\ - "Reason: {1}\n".format(self.status, self.reason) - if self.headers: - error_message += "HTTP response headers: {0}\n".format( - self.headers) - - if self.body: - error_message += "HTTP response body: {0}\n".format(self.body) - - return error_message diff --git a/swagger/api-query/test-requirements.txt b/swagger/api-query/test-requirements.txt deleted file mode 100644 index 2702246c0e6f92a1c41c0960879e07da339e4b7d..0000000000000000000000000000000000000000 --- a/swagger/api-query/test-requirements.txt +++ /dev/null @@ -1,5 +0,0 @@ -coverage>=4.0.3 -nose>=1.3.7 -pluggy>=0.3.1 -py>=1.4.31 -randomize>=0.13 diff --git a/swagger/api-query/test/__init__.py b/swagger/api-query/test/__init__.py deleted file mode 100644 index e69de29bb2d1d6434b8b29ae775ad8c2e48c5391..0000000000000000000000000000000000000000 diff --git a/swagger/api-query/test/test_api_error_dto.py b/swagger/api-query/test/test_api_error_dto.py deleted file mode 100644 index 8979a05be8efd5f2bd269382ad3416af27bb5d9e..0000000000000000000000000000000000000000 --- a/swagger/api-query/test/test_api_error_dto.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Database Repository Query Service API - - Service that manages the queries # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -from __future__ import absolute_import - -import unittest - -import api_container -from api_container.models.api_error_dto import ApiErrorDto # noqa: E501 -from api_container.rest import ApiException - - -class TestApiErrorDto(unittest.TestCase): - """ApiErrorDto unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testApiErrorDto(self): - """Test ApiErrorDto""" - # FIXME: construct object with mandatory attributes with example values - # model = api_container.models.api_error_dto.ApiErrorDto() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/swagger/api-query/test/test_column_dto.py b/swagger/api-query/test/test_column_dto.py deleted file mode 100644 index e6e37122b8c72183f264d029a44b30ced5205c58..0000000000000000000000000000000000000000 --- a/swagger/api-query/test/test_column_dto.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Database Repository Query Service API - - Service that manages the queries # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -from __future__ import absolute_import - -import unittest - -import api_container -from api_container.models.column_dto import ColumnDto # noqa: E501 -from api_container.rest import ApiException - - -class TestColumnDto(unittest.TestCase): - """ColumnDto unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testColumnDto(self): - """Test ColumnDto""" - # FIXME: construct object with mandatory attributes with example values - # model = api_container.models.column_dto.ColumnDto() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/swagger/api-query/test/test_concept_dto.py b/swagger/api-query/test/test_concept_dto.py deleted file mode 100644 index 01268da1e456d5a4b0efd7662aa17f2661df6ddb..0000000000000000000000000000000000000000 --- a/swagger/api-query/test/test_concept_dto.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Database Repository Query Service API - - Service that manages the queries # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -from __future__ import absolute_import - -import unittest - -import api_container -from api_container.models.concept_dto import ConceptDto # noqa: E501 -from api_container.rest import ApiException - - -class TestConceptDto(unittest.TestCase): - """ConceptDto unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testConceptDto(self): - """Test ConceptDto""" - # FIXME: construct object with mandatory attributes with example values - # model = api_container.models.concept_dto.ConceptDto() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/swagger/api-query/test/test_consumer_endpoint_api.py b/swagger/api-query/test/test_consumer_endpoint_api.py deleted file mode 100644 index fb2fd1d6644a58c744519476f97d05d7c8185ac4..0000000000000000000000000000000000000000 --- a/swagger/api-query/test/test_consumer_endpoint_api.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - Database Repository Query Service API - - Service that manages the queries # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -from __future__ import absolute_import - -import unittest - -import swagger_client -from swagger_client.api.consumer_endpoint_api import ConsumerEndpointApi # noqa: E501 -from swagger_client.rest import ApiException - - -class TestConsumerEndpointApi(unittest.TestCase): - """ConsumerEndpointApi unit test stubs""" - - def setUp(self): - self.api = ConsumerEndpointApi() # noqa: E501 - - def tearDown(self): - pass - - def test_declare(self): - """Test case for declare - - Declare consumer # noqa: E501 - """ - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/swagger/api-query/test/test_container_dto.py b/swagger/api-query/test/test_container_dto.py deleted file mode 100644 index 0b149884c64bb5974851b955a08e5550b6ac7d57..0000000000000000000000000000000000000000 --- a/swagger/api-query/test/test_container_dto.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Database Repository Query Service API - - Service that manages the queries # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -from __future__ import absolute_import - -import unittest - -import api_container -from api_container.models.container_dto import ContainerDto # noqa: E501 -from api_container.rest import ApiException - - -class TestContainerDto(unittest.TestCase): - """ContainerDto unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testContainerDto(self): - """Test ContainerDto""" - # FIXME: construct object with mandatory attributes with example values - # model = api_container.models.container_dto.ContainerDto() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/swagger/api-query/test/test_database_dto.py b/swagger/api-query/test/test_database_dto.py deleted file mode 100644 index 8cc44b5fc1ccece40a40d783b7fde04fcfd082cf..0000000000000000000000000000000000000000 --- a/swagger/api-query/test/test_database_dto.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Database Repository Query Service API - - Service that manages the queries # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -from __future__ import absolute_import - -import unittest - -import api_container -from api_container.models.database_dto import DatabaseDto # noqa: E501 -from api_container.rest import ApiException - - -class TestDatabaseDto(unittest.TestCase): - """DatabaseDto unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testDatabaseDto(self): - """Test DatabaseDto""" - # FIXME: construct object with mandatory attributes with example values - # model = api_container.models.database_dto.DatabaseDto() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/swagger/api-query/test/test_execute_statement_dto.py b/swagger/api-query/test/test_execute_statement_dto.py deleted file mode 100644 index 0e4b5080f8afb252bc6acedf64c5e723dcbcae47..0000000000000000000000000000000000000000 --- a/swagger/api-query/test/test_execute_statement_dto.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Database Repository Query Service API - - Service that manages the queries # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -from __future__ import absolute_import - -import unittest - -import api_container -from api_container.models.execute_statement_dto import ExecuteStatementDto # noqa: E501 -from api_container.rest import ApiException - - -class TestExecuteStatementDto(unittest.TestCase): - """ExecuteStatementDto unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testExecuteStatementDto(self): - """Test ExecuteStatementDto""" - # FIXME: construct object with mandatory attributes with example values - # model = api_container.models.execute_statement_dto.ExecuteStatementDto() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/swagger/api-query/test/test_export_endpoint_api.py b/swagger/api-query/test/test_export_endpoint_api.py deleted file mode 100644 index 5d751d4fef21849b8498cc53dd3e354cee1c4f85..0000000000000000000000000000000000000000 --- a/swagger/api-query/test/test_export_endpoint_api.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - Database Repository Query Service API - - Service that manages the queries # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -from __future__ import absolute_import - -import unittest - -import api_container -from api_container.api.export_endpoint_api import ExportEndpointApi # noqa: E501 -from api_container.rest import ApiException - - -class TestExportEndpointApi(unittest.TestCase): - """ExportEndpointApi unit test stubs""" - - def setUp(self): - self.api = ExportEndpointApi() # noqa: E501 - - def tearDown(self): - pass - - def test_export(self): - """Test case for export - - Export table # noqa: E501 - """ - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/swagger/api-query/test/test_granted_authority_dto.py b/swagger/api-query/test/test_granted_authority_dto.py deleted file mode 100644 index dabb259e3f95ffab5c9fa103aa4c25ee75fd330b..0000000000000000000000000000000000000000 --- a/swagger/api-query/test/test_granted_authority_dto.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Database Repository Query Service API - - Service that manages the queries # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -from __future__ import absolute_import - -import unittest - -import api_container -from api_container.models.granted_authority_dto import GrantedAuthorityDto # noqa: E501 -from api_container.rest import ApiException - - -class TestGrantedAuthorityDto(unittest.TestCase): - """GrantedAuthorityDto unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testGrantedAuthorityDto(self): - """Test GrantedAuthorityDto""" - # FIXME: construct object with mandatory attributes with example values - # model = api_container.models.granted_authority_dto.GrantedAuthorityDto() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/swagger/api-query/test/test_image_brief_dto.py b/swagger/api-query/test/test_image_brief_dto.py deleted file mode 100644 index 70d1c6f058f3dd437bfde82e33d4404f5112ca97..0000000000000000000000000000000000000000 --- a/swagger/api-query/test/test_image_brief_dto.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Database Repository Query Service API - - Service that manages the queries # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -from __future__ import absolute_import - -import unittest - -import swagger_client -from swagger_client.models.image_brief_dto import ImageBriefDto # noqa: E501 -from swagger_client.rest import ApiException - - -class TestImageBriefDto(unittest.TestCase): - """ImageBriefDto unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testImageBriefDto(self): - """Test ImageBriefDto""" - # FIXME: construct object with mandatory attributes with example values - # model = swagger_client.models.image_brief_dto.ImageBriefDto() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/swagger/api-query/test/test_image_date_dto.py b/swagger/api-query/test/test_image_date_dto.py deleted file mode 100644 index a31372cbcd3cf59a0de5172cde13dac0a8cfddcb..0000000000000000000000000000000000000000 --- a/swagger/api-query/test/test_image_date_dto.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Database Repository Query Service API - - Service that manages the queries # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -from __future__ import absolute_import - -import unittest - -import api_container -from api_container.models.image_date_dto import ImageDateDto # noqa: E501 -from api_container.rest import ApiException - - -class TestImageDateDto(unittest.TestCase): - """ImageDateDto unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testImageDateDto(self): - """Test ImageDateDto""" - # FIXME: construct object with mandatory attributes with example values - # model = api_container.models.image_date_dto.ImageDateDto() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/swagger/api-query/test/test_image_dto.py b/swagger/api-query/test/test_image_dto.py deleted file mode 100644 index 62d8475a353ba42d18fa1cf2caddb5f4dc90a4be..0000000000000000000000000000000000000000 --- a/swagger/api-query/test/test_image_dto.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Database Repository Query Service API - - Service that manages the queries # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -from __future__ import absolute_import - -import unittest - -import api_container -from api_container.models.image_dto import ImageDto # noqa: E501 -from api_container.rest import ApiException - - -class TestImageDto(unittest.TestCase): - """ImageDto unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testImageDto(self): - """Test ImageDto""" - # FIXME: construct object with mandatory attributes with example values - # model = api_container.models.image_dto.ImageDto() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/swagger/api-query/test/test_image_env_item_dto.py b/swagger/api-query/test/test_image_env_item_dto.py deleted file mode 100644 index 07a7f7ceb9ed29b028fa26188b67522f33702085..0000000000000000000000000000000000000000 --- a/swagger/api-query/test/test_image_env_item_dto.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Database Repository Query Service API - - Service that manages the queries # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -from __future__ import absolute_import - -import unittest - -import api_container -from api_container.models.image_env_item_dto import ImageEnvItemDto # noqa: E501 -from api_container.rest import ApiException - - -class TestImageEnvItemDto(unittest.TestCase): - """ImageEnvItemDto unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testImageEnvItemDto(self): - """Test ImageEnvItemDto""" - # FIXME: construct object with mandatory attributes with example values - # model = api_container.models.image_env_item_dto.ImageEnvItemDto() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/swagger/api-query/test/test_import_dto.py b/swagger/api-query/test/test_import_dto.py deleted file mode 100644 index 583b5bdf72ab412fe2dfc67492be91f7d59dcba3..0000000000000000000000000000000000000000 --- a/swagger/api-query/test/test_import_dto.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Database Repository Query Service API - - Service that manages the queries # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -from __future__ import absolute_import - -import unittest - -import api_container -from api_container.models.import_dto import ImportDto # noqa: E501 -from api_container.rest import ApiException - - -class TestImportDto(unittest.TestCase): - """ImportDto unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testImportDto(self): - """Test ImportDto""" - # FIXME: construct object with mandatory attributes with example values - # model = api_container.models.import_dto.ImportDto() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/swagger/api-query/test/test_license_dto.py b/swagger/api-query/test/test_license_dto.py deleted file mode 100644 index 30d59b3754cfeff2b9d8e4a96a857f56a8535bb5..0000000000000000000000000000000000000000 --- a/swagger/api-query/test/test_license_dto.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Database Repository Query Service API - - Service that manages the queries # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -from __future__ import absolute_import - -import unittest - -import swagger_client -from swagger_client.models.license_dto import LicenseDto # noqa: E501 -from swagger_client.rest import ApiException - - -class TestLicenseDto(unittest.TestCase): - """LicenseDto unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testLicenseDto(self): - """Test LicenseDto""" - # FIXME: construct object with mandatory attributes with example values - # model = swagger_client.models.license_dto.LicenseDto() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/swagger/api-query/test/test_query_brief_dto.py b/swagger/api-query/test/test_query_brief_dto.py deleted file mode 100644 index ea4db9996d387248051eef6c1d31ef8373425087..0000000000000000000000000000000000000000 --- a/swagger/api-query/test/test_query_brief_dto.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Database Repository Query Service API - - Service that manages the queries # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -from __future__ import absolute_import - -import unittest - -import swagger_client -from swagger_client.models.query_brief_dto import QueryBriefDto # noqa: E501 -from swagger_client.rest import ApiException - - -class TestQueryBriefDto(unittest.TestCase): - """QueryBriefDto unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testQueryBriefDto(self): - """Test QueryBriefDto""" - # FIXME: construct object with mandatory attributes with example values - # model = swagger_client.models.query_brief_dto.QueryBriefDto() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/swagger/api-query/test/test_query_dto.py b/swagger/api-query/test/test_query_dto.py deleted file mode 100644 index dfae684b19aeedfa6304538d5ff72cdaa2d634d5..0000000000000000000000000000000000000000 --- a/swagger/api-query/test/test_query_dto.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Database Repository Query Service API - - Service that manages the queries # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -from __future__ import absolute_import - -import unittest - -import api_container -from api_container.models.query_dto import QueryDto # noqa: E501 -from api_container.rest import ApiException - - -class TestQueryDto(unittest.TestCase): - """QueryDto unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testQueryDto(self): - """Test QueryDto""" - # FIXME: construct object with mandatory attributes with example values - # model = api_container.models.query_dto.QueryDto() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/swagger/api-query/test/test_query_endpoint_api.py b/swagger/api-query/test/test_query_endpoint_api.py deleted file mode 100644 index 2e129222b853ebd6233fc892c314037c98ac47b5..0000000000000000000000000000000000000000 --- a/swagger/api-query/test/test_query_endpoint_api.py +++ /dev/null @@ -1,54 +0,0 @@ -# coding: utf-8 - -""" - Database Repository Query Service API - - Service that manages the queries # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -from __future__ import absolute_import - -import unittest - -import api_container -from api_container.api.query_endpoint_api import QueryEndpointApi # noqa: E501 -from api_container.rest import ApiException - - -class TestQueryEndpointApi(unittest.TestCase): - """QueryEndpointApi unit test stubs""" - - def setUp(self): - self.api = QueryEndpointApi() # noqa: E501 - - def tearDown(self): - pass - - def test_execute(self): - """Test case for execute - - Execute query # noqa: E501 - """ - pass - - def test_export1(self): - """Test case for export1 - - Exports some query # noqa: E501 - """ - pass - - def test_re_execute(self): - """Test case for re_execute - - Re-execute some query # noqa: E501 - """ - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/swagger/api-query/test/test_query_result_dto.py b/swagger/api-query/test/test_query_result_dto.py deleted file mode 100644 index 3128cecc0eceaddb385a47f03a3b5fb87555af22..0000000000000000000000000000000000000000 --- a/swagger/api-query/test/test_query_result_dto.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Database Repository Query Service API - - Service that manages the queries # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -from __future__ import absolute_import - -import unittest - -import api_container -from api_container.models.query_result_dto import QueryResultDto # noqa: E501 -from api_container.rest import ApiException - - -class TestQueryResultDto(unittest.TestCase): - """QueryResultDto unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testQueryResultDto(self): - """Test QueryResultDto""" - # FIXME: construct object with mandatory attributes with example values - # model = api_container.models.query_result_dto.QueryResultDto() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/swagger/api-query/test/test_store_endpoint_api.py b/swagger/api-query/test/test_store_endpoint_api.py deleted file mode 100644 index 03539684c8caaceac332eaa64afa2348fbc41ee0..0000000000000000000000000000000000000000 --- a/swagger/api-query/test/test_store_endpoint_api.py +++ /dev/null @@ -1,47 +0,0 @@ -# coding: utf-8 - -""" - Database Repository Query Service API - - Service that manages the queries # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -from __future__ import absolute_import - -import unittest - -import api_container -from api_container.api.store_endpoint_api import StoreEndpointApi # noqa: E501 -from api_container.rest import ApiException - - -class TestStoreEndpointApi(unittest.TestCase): - """StoreEndpointApi unit test stubs""" - - def setUp(self): - self.api = StoreEndpointApi() # noqa: E501 - - def tearDown(self): - pass - - def test_find(self): - """Test case for find - - Find some query # noqa: E501 - """ - pass - - def test_find_all(self): - """Test case for find_all - - Find queries # noqa: E501 - """ - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/swagger/api-query/test/test_table_brief_dto.py b/swagger/api-query/test/test_table_brief_dto.py deleted file mode 100644 index 17f01456dcbad32e0489f6276b0eb9615117b771..0000000000000000000000000000000000000000 --- a/swagger/api-query/test/test_table_brief_dto.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Database Repository Query Service API - - Service that manages the queries # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -from __future__ import absolute_import - -import unittest - -import swagger_client -from swagger_client.models.table_brief_dto import TableBriefDto # noqa: E501 -from swagger_client.rest import ApiException - - -class TestTableBriefDto(unittest.TestCase): - """TableBriefDto unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testTableBriefDto(self): - """Test TableBriefDto""" - # FIXME: construct object with mandatory attributes with example values - # model = swagger_client.models.table_brief_dto.TableBriefDto() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/swagger/api-query/test/test_table_csv_delete_dto.py b/swagger/api-query/test/test_table_csv_delete_dto.py deleted file mode 100644 index e5017d7a3f802225b789ad61d1919d0eaa2305a6..0000000000000000000000000000000000000000 --- a/swagger/api-query/test/test_table_csv_delete_dto.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Database Repository Query Service API - - Service that manages the queries # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -from __future__ import absolute_import - -import unittest - -import api_container -from api_container.models.table_csv_delete_dto import TableCsvDeleteDto # noqa: E501 -from api_container.rest import ApiException - - -class TestTableCsvDeleteDto(unittest.TestCase): - """TableCsvDeleteDto unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testTableCsvDeleteDto(self): - """Test TableCsvDeleteDto""" - # FIXME: construct object with mandatory attributes with example values - # model = api_container.models.table_csv_delete_dto.TableCsvDeleteDto() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/swagger/api-query/test/test_table_csv_dto.py b/swagger/api-query/test/test_table_csv_dto.py deleted file mode 100644 index 5541bbd9368d20c976b8f792141694dc037b19eb..0000000000000000000000000000000000000000 --- a/swagger/api-query/test/test_table_csv_dto.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Database Repository Query Service API - - Service that manages the queries # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -from __future__ import absolute_import - -import unittest - -import api_container -from api_container.models.table_csv_dto import TableCsvDto # noqa: E501 -from api_container.rest import ApiException - - -class TestTableCsvDto(unittest.TestCase): - """TableCsvDto unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testTableCsvDto(self): - """Test TableCsvDto""" - # FIXME: construct object with mandatory attributes with example values - # model = api_container.models.table_csv_dto.TableCsvDto() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/swagger/api-query/test/test_table_csv_update_dto.py b/swagger/api-query/test/test_table_csv_update_dto.py deleted file mode 100644 index 67ef2f8dc654c1db2cd1533448406fff09192ec4..0000000000000000000000000000000000000000 --- a/swagger/api-query/test/test_table_csv_update_dto.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Database Repository Query Service API - - Service that manages the queries # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -from __future__ import absolute_import - -import unittest - -import api_container -from api_container.models.table_csv_update_dto import TableCsvUpdateDto # noqa: E501 -from api_container.rest import ApiException - - -class TestTableCsvUpdateDto(unittest.TestCase): - """TableCsvUpdateDto unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testTableCsvUpdateDto(self): - """Test TableCsvUpdateDto""" - # FIXME: construct object with mandatory attributes with example values - # model = api_container.models.table_csv_update_dto.TableCsvUpdateDto() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/swagger/api-query/test/test_table_data_endpoint_api.py b/swagger/api-query/test/test_table_data_endpoint_api.py deleted file mode 100644 index 5b6d941c4398a8c4958ad26c7a1e13cfe670322b..0000000000000000000000000000000000000000 --- a/swagger/api-query/test/test_table_data_endpoint_api.py +++ /dev/null @@ -1,75 +0,0 @@ -# coding: utf-8 - -""" - Database Repository Query Service API - - Service that manages the queries # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -from __future__ import absolute_import - -import unittest - -import api_container -from api_container.api.table_data_endpoint_api import TableDataEndpointApi # noqa: E501 -from api_container.rest import ApiException - - -class TestTableDataEndpointApi(unittest.TestCase): - """TableDataEndpointApi unit test stubs""" - - def setUp(self): - self.api = TableDataEndpointApi() # noqa: E501 - - def tearDown(self): - pass - - def test_delete(self): - """Test case for delete - - Delete data # noqa: E501 - """ - pass - - def test_get_all(self): - """Test case for get_all - - Find data # noqa: E501 - """ - pass - - def test_get_all1(self): - """Test case for get_all1 - - Find data # noqa: E501 - """ - pass - - def test_import_csv(self): - """Test case for import_csv - - Insert data from csv # noqa: E501 - """ - pass - - def test_insert(self): - """Test case for insert - - Insert data # noqa: E501 - """ - pass - - def test_update(self): - """Test case for update - - Update data # noqa: E501 - """ - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/swagger/api-query/test/test_table_dto.py b/swagger/api-query/test/test_table_dto.py deleted file mode 100644 index 3668affade07f5bfe746b53679500132fd65b617..0000000000000000000000000000000000000000 --- a/swagger/api-query/test/test_table_dto.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Database Repository Query Service API - - Service that manages the queries # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -from __future__ import absolute_import - -import unittest - -import api_container -from api_container.models.table_dto import TableDto # noqa: E501 -from api_container.rest import ApiException - - -class TestTableDto(unittest.TestCase): - """TableDto unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testTableDto(self): - """Test TableDto""" - # FIXME: construct object with mandatory attributes with example values - # model = api_container.models.table_dto.TableDto() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/swagger/api-query/test/test_table_history_dto.py b/swagger/api-query/test/test_table_history_dto.py deleted file mode 100644 index 53afa166ac01309b97f52e1d59fc1a9416280138..0000000000000000000000000000000000000000 --- a/swagger/api-query/test/test_table_history_dto.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Database Repository Query Service API - - Service that manages the queries # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -from __future__ import absolute_import - -import unittest - -import swagger_client -from swagger_client.models.table_history_dto import TableHistoryDto # noqa: E501 -from swagger_client.rest import ApiException - - -class TestTableHistoryDto(unittest.TestCase): - """TableHistoryDto unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testTableHistoryDto(self): - """Test TableHistoryDto""" - # FIXME: construct object with mandatory attributes with example values - # model = swagger_client.models.table_history_dto.TableHistoryDto() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/swagger/api-query/test/test_table_history_endpoint_api.py b/swagger/api-query/test/test_table_history_endpoint_api.py deleted file mode 100644 index 1f7a092422c21d8b3addf750f1146e691c666b50..0000000000000000000000000000000000000000 --- a/swagger/api-query/test/test_table_history_endpoint_api.py +++ /dev/null @@ -1,47 +0,0 @@ -# coding: utf-8 - -""" - Database Repository Query Service API - - Service that manages the queries # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -from __future__ import absolute_import - -import unittest - -import swagger_client -from swagger_client.api.table_history_endpoint_api import TableHistoryEndpointApi # noqa: E501 -from swagger_client.rest import ApiException - - -class TestTableHistoryEndpointApi(unittest.TestCase): - """TableHistoryEndpointApi unit test stubs""" - - def setUp(self): - self.api = TableHistoryEndpointApi() # noqa: E501 - - def tearDown(self): - pass - - def test_get_all(self): - """Test case for get_all - - Find all history # noqa: E501 - """ - pass - - def test_get_all1(self): - """Test case for get_all1 - - Find all history # noqa: E501 - """ - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/swagger/api-query/test/test_user_brief_dto.py b/swagger/api-query/test/test_user_brief_dto.py deleted file mode 100644 index 27a9fff31a6266c1761384632ad7eafc50285699..0000000000000000000000000000000000000000 --- a/swagger/api-query/test/test_user_brief_dto.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Database Repository Query Service API - - Service that manages the queries # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -from __future__ import absolute_import - -import unittest - -import swagger_client -from swagger_client.models.user_brief_dto import UserBriefDto # noqa: E501 -from swagger_client.rest import ApiException - - -class TestUserBriefDto(unittest.TestCase): - """UserBriefDto unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testUserBriefDto(self): - """Test UserBriefDto""" - # FIXME: construct object with mandatory attributes with example values - # model = swagger_client.models.user_brief_dto.UserBriefDto() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/swagger/api-query/test/test_user_dto.py b/swagger/api-query/test/test_user_dto.py deleted file mode 100644 index a7b4e51687379128a70670f6dbd2f87c0ad698db..0000000000000000000000000000000000000000 --- a/swagger/api-query/test/test_user_dto.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Database Repository Query Service API - - Service that manages the queries # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -from __future__ import absolute_import - -import unittest - -import api_container -from api_container.models.user_dto import UserDto # noqa: E501 -from api_container.rest import ApiException - - -class TestUserDto(unittest.TestCase): - """UserDto unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testUserDto(self): - """Test UserDto""" - # FIXME: construct object with mandatory attributes with example values - # model = api_container.models.user_dto.UserDto() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/swagger/api-query/tox.ini b/swagger/api-query/tox.ini deleted file mode 100644 index a310bec97d689718c92c84c9aebc6ab031f12933..0000000000000000000000000000000000000000 --- a/swagger/api-query/tox.ini +++ /dev/null @@ -1,10 +0,0 @@ -[tox] -envlist = py3 - -[testenv] -deps=-r{toxinidir}/requirements.txt - -r{toxinidir}/test-requirements.txt - -commands= - nosetests \ - [] diff --git a/swagger/api-table.yaml b/swagger/api-table.yaml index 122ec5d0559909ae4a051963cd3e143f4979fdb5..20727c9f3705b3e2812c0b946f297ff0dfb2ac0c 100644 --- a/swagger/api-table.yaml +++ b/swagger/api-table.yaml @@ -167,11 +167,6 @@ paths: schema: type: integer format: int64 - - name: Authorization - in: header - required: true - schema: - type: string responses: "400": description: Bad Request @@ -285,11 +280,6 @@ paths: schema: type: integer format: int64 - - name: Authorization - in: header - required: true - schema: - type: string requestBody: content: application/json: @@ -346,7 +336,6 @@ components: properties: status: type: string - example: NOT_FOUND enum: - 100 CONTINUE - 101 SWITCHING_PROTOCOLS @@ -418,10 +407,8 @@ components: - 511 NETWORK_AUTHENTICATION_REQUIRED message: type: string - example: Could not find container code: type: string - example: error.container.notfound TableBriefDto: required: - creator @@ -435,12 +422,10 @@ components: format: int64 name: type: string - example: Air Quality creator: $ref: '#/components/schemas/UserBriefDto' internal_name: type: string - example: air_quality UserBriefDto: required: - email_verified @@ -454,31 +439,22 @@ components: format: int64 username: type: string - description: Only contains lowercase characters - example: user firstname: type: string - example: Josiah lastname: type: string - example: Carberry affiliation: type: string - example: Brown University orcid: type: string - example: 0000-0002-1825-0097 titles_before: type: string - example: Prof. titles_after: type: string theme_dark: type: boolean - example: true email_verified: type: boolean - example: true ColumnCreateDto: required: - name @@ -490,10 +466,8 @@ components: properties: name: type: string - example: Date type: type: string - example: string enum: - enum - number @@ -506,19 +480,15 @@ components: - blob dfid: type: integer - description: date format id format: int64 unique: type: boolean - example: false references: type: string primary_key: type: boolean - example: false null_allowed: type: boolean - example: true check_expression: type: string foreign_key: @@ -536,10 +506,8 @@ components: properties: name: type: string - example: Air Quality description: type: string - example: Air Quality in Austria columns: type: array items: @@ -561,26 +529,20 @@ components: format: int64 name: type: string - example: Date unique: type: boolean - example: true references: type: string internal_name: type: string - example: mdb_date date_format: $ref: '#/components/schemas/ImageDateDto' auto_generated: type: boolean - example: false is_primary_key: type: boolean - example: true column_type: type: string - example: string enum: - enum - number @@ -593,9 +555,14 @@ components: - blob column_concept: $ref: '#/components/schemas/ConceptDto' + decimal_digits_before: + type: integer + format: int64 + decimal_digits_after: + type: integer + format: int64 is_null_allowed: type: boolean - example: false check_expression: type: string foreign_key: @@ -632,16 +599,12 @@ components: format: int64 example: type: string - example: 30.01.2022 database_format: type: string - example: '%d.%c.%Y' unix_format: type: string - example: dd.MM.YYYY has_time: type: boolean - example: false created_at: type: string format: date-time @@ -661,15 +624,12 @@ components: format: int64 name: type: string - example: Air Quality creator: $ref: '#/components/schemas/UserBriefDto' topic: type: string - example: air_quality description: type: string - example: Air Quality in Austria created: type: string format: date-time @@ -679,7 +639,6 @@ components: $ref: '#/components/schemas/ColumnDto' internal_name: type: string - example: air_quality securitySchemes: bearerAuth: type: http diff --git a/swagger/api-table/.gitignore b/swagger/api-table/.gitignore deleted file mode 100644 index a655050c2631466828b5b8bfc59ae27f9ac02dc5..0000000000000000000000000000000000000000 --- a/swagger/api-table/.gitignore +++ /dev/null @@ -1,64 +0,0 @@ -# Byte-compiled / optimized / DLL files -__pycache__/ -*.py[cod] -*$py.class - -# C extensions -*.so - -# Distribution / packaging -.Python -env/ -build/ -develop-eggs/ -dist/ -downloads/ -eggs/ -.eggs/ -lib/ -lib64/ -parts/ -sdist/ -var/ -*.egg-info/ -.installed.cfg -*.egg - -# PyInstaller -# Usually these files are written by a python script from a template -# before PyInstaller builds the exe, so as to inject date/other infos into it. -*.manifest -*.spec - -# Installer logs -pip-log.txt -pip-delete-this-directory.txt - -# Unit test / coverage reports -htmlcov/ -.tox/ -.coverage -.coverage.* -.cache -nosetests.xml -coverage.xml -*,cover -.hypothesis/ -venv/ -.python-version - -# Translations -*.mo -*.pot - -# Django stuff: -*.log - -# Sphinx documentation -docs/_build/ - -# PyBuilder -target/ - -#Ipython Notebook -.ipynb_checkpoints diff --git a/swagger/api-table/.swagger-codegen-ignore b/swagger/api-table/.swagger-codegen-ignore deleted file mode 100644 index c5fa491b4c557bf997d5dd21797de782545dc9e5..0000000000000000000000000000000000000000 --- a/swagger/api-table/.swagger-codegen-ignore +++ /dev/null @@ -1,23 +0,0 @@ -# Swagger Codegen Ignore -# Generated by swagger-codegen https://github.com/swagger-api/swagger-codegen - -# Use this file to prevent files from being overwritten by the generator. -# The patterns follow closely to .gitignore or .dockerignore. - -# As an example, the C# client generator defines ApiClient.cs. -# You can make changes and tell Swagger Codgen to ignore just this file by uncommenting the following line: -#ApiClient.cs - -# You can match any string of characters against a directory, file or extension with a single asterisk (*): -#foo/*/qux -# The above matches foo/bar/qux and foo/baz/qux, but not foo/bar/baz/qux - -# You can recursively match patterns against a directory, file or extension with a double asterisk (**): -#foo/**/qux -# This matches foo/bar/qux, foo/baz/qux, and foo/bar/baz/qux - -# You can also negate patterns with an exclamation (!). -# For example, you can ignore all files in a docs folder with the file extension .md: -#docs/*.md -# Then explicitly reverse the ignore rule for a single file: -#!docs/README.md diff --git a/swagger/api-table/.swagger-codegen/VERSION b/swagger/api-table/.swagger-codegen/VERSION deleted file mode 100644 index 10bbf276ee45aaec75c7b2ada3ff71d798f89fd9..0000000000000000000000000000000000000000 --- a/swagger/api-table/.swagger-codegen/VERSION +++ /dev/null @@ -1 +0,0 @@ -3.0.34 \ No newline at end of file diff --git a/swagger/api-table/.travis.yml b/swagger/api-table/.travis.yml deleted file mode 100644 index dd6c4450aa902ae68479c3d76d45145e18d6052e..0000000000000000000000000000000000000000 --- a/swagger/api-table/.travis.yml +++ /dev/null @@ -1,13 +0,0 @@ -# ref: https://docs.travis-ci.com/user/languages/python -language: python -python: - - "3.2" - - "3.3" - - "3.4" - - "3.5" - #- "3.5-dev" # 3.5 development branch - #- "nightly" # points to the latest development branch e.g. 3.6-dev -# command to install dependencies -install: "pip install -r requirements.txt" -# command to run tests -script: nosetests diff --git a/swagger/api-table/README.md b/swagger/api-table/README.md deleted file mode 100644 index 4ad57b9ecdc0b6dc5d7a8c48ac6939a0b0a39492..0000000000000000000000000000000000000000 --- a/swagger/api-table/README.md +++ /dev/null @@ -1,158 +0,0 @@ -# swagger-client -Service that manages the tables - -This Python package is automatically generated by the [Swagger Codegen](https://github.com/swagger-api/swagger-codegen) project: - -- API version: 1.1.0-alpha -- Package version: 1.0.0 -- Build package: io.swagger.codegen.v3.generators.python.PythonClientCodegen - -## Requirements. - -Python 2.7 and 3.4+ - -## Installation & Usage -### pip install - -If the python package is hosted on Github, you can install directly from Github - -```sh -pip install git+https://github.com/GIT_USER_ID/GIT_REPO_ID.git -``` -(you may need to run `pip` with root permission: `sudo pip install git+https://github.com/GIT_USER_ID/GIT_REPO_ID.git`) - -Then import the package: -```python -import swagger_client -``` - -### Setuptools - -Install via [Setuptools](http://pypi.python.org/pypi/setuptools). - -```sh -python setup.py install --user -``` -(or `sudo python setup.py install` to install the package for all users) - -Then import the package: -```python -import swagger_client -``` - -## Getting Started - -Please follow the [installation procedure](#installation--usage) and then run the following: - -```python -from __future__ import print_function -import time -import swagger_client -from swagger_client.rest import ApiException -from pprint import pprint - - -# create an instance of the API class -api_instance = swagger_client.TableEndpointApi(swagger_client.ApiClient(configuration)) -body = swagger_client.TableCreateDto() # TableCreateDto | -authorization = 'authorization_example' # str | -id = 789 # int | -database_id = 789 # int | - -try: - # Create a table - api_response = api_instance.create(body, authorization, id, database_id) - pprint(api_response) -except ApiException as e: - print("Exception when calling TableEndpointApi->create: %s\n" % e) - - -# create an instance of the API class -api_instance = swagger_client.TableEndpointApi(swagger_client.ApiClient(configuration)) -id = 789 # int | -database_id = 789 # int | -table_id = 789 # int | -authorization = 'authorization_example' # str | - -try: - # Delete a table - api_instance.delete(id, database_id, table_id, authorization) -except ApiException as e: - print("Exception when calling TableEndpointApi->delete: %s\n" % e) - - -# create an instance of the API class -api_instance = swagger_client.TableEndpointApi(swagger_client.ApiClient(configuration)) -id = 789 # int | -database_id = 789 # int | - -try: - # List all tables - api_response = api_instance.find_all(id, database_id) - pprint(api_response) -except ApiException as e: - print("Exception when calling TableEndpointApi->find_all: %s\n" % e) - - -# create an instance of the API class -api_instance = swagger_client.TableEndpointApi(swagger_client.ApiClient(configuration)) -id = 789 # int | -database_id = 789 # int | -table_id = 789 # int | - -try: - # Get information about table - api_response = api_instance.find_by_id(id, database_id, table_id) - pprint(api_response) -except ApiException as e: - print("Exception when calling TableEndpointApi->find_by_id: %s\n" % e) - - -# create an instance of the API class -api_instance = swagger_client.TableEndpointApi(swagger_client.ApiClient(configuration)) -id = 789 # int | -database_id = 789 # int | -table_id = 789 # int | - -try: - # Update a table - api_response = api_instance.update(id, database_id, table_id) - pprint(api_response) -except ApiException as e: - print("Exception when calling TableEndpointApi->update: %s\n" % e) -``` - -## Documentation for API Endpoints - -All URIs are relative to *http://localhost:9094* - -Class | Method | HTTP request | Description ------------- | ------------- | ------------- | ------------- -*TableEndpointApi* | [**create**](docs/TableEndpointApi.md#create) | **POST** /api/container/{id}/database/{databaseId}/table | Create a table -*TableEndpointApi* | [**delete**](docs/TableEndpointApi.md#delete) | **DELETE** /api/container/{id}/database/{databaseId}/table/{tableId} | Delete a table -*TableEndpointApi* | [**find_all**](docs/TableEndpointApi.md#find_all) | **GET** /api/container/{id}/database/{databaseId}/table | List all tables -*TableEndpointApi* | [**find_by_id**](docs/TableEndpointApi.md#find_by_id) | **GET** /api/container/{id}/database/{databaseId}/table/{tableId} | Get information about table -*TableEndpointApi* | [**update**](docs/TableEndpointApi.md#update) | **PUT** /api/container/{id}/database/{databaseId}/table/{tableId} | Update a table - -## Documentation For Models - - - [ApiErrorDto](docs/ApiErrorDto.md) - - [ColumnCreateDto](docs/ColumnCreateDto.md) - - [ColumnDto](docs/ColumnDto.md) - - [ConceptDto](docs/ConceptDto.md) - - [ImageDateDto](docs/ImageDateDto.md) - - [TableBriefDto](docs/TableBriefDto.md) - - [TableCreateDto](docs/TableCreateDto.md) - - [TableDto](docs/TableDto.md) - - [UserBriefDto](docs/UserBriefDto.md) - -## Documentation For Authorization - - -## bearerAuth - - - -## Author - -andreas.rauber@tuwien.ac.at diff --git a/swagger/api-table/git_push.sh b/swagger/api-table/git_push.sh deleted file mode 100644 index ae01b182ae9eb047d0999a496b060e62d7b01e5c..0000000000000000000000000000000000000000 --- a/swagger/api-table/git_push.sh +++ /dev/null @@ -1,52 +0,0 @@ -#!/bin/sh -# ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/ -# -# Usage example: /bin/sh ./git_push.sh wing328 swagger-petstore-perl "minor update" - -git_user_id=$1 -git_repo_id=$2 -release_note=$3 - -if [ "$git_user_id" = "" ]; then - git_user_id="GIT_USER_ID" - echo "[INFO] No command line input provided. Set \$git_user_id to $git_user_id" -fi - -if [ "$git_repo_id" = "" ]; then - git_repo_id="GIT_REPO_ID" - echo "[INFO] No command line input provided. Set \$git_repo_id to $git_repo_id" -fi - -if [ "$release_note" = "" ]; then - release_note="Minor update" - echo "[INFO] No command line input provided. Set \$release_note to $release_note" -fi - -# Initialize the local directory as a Git repository -git init - -# Adds the files in the local repository and stages them for commit. -git add . - -# Commits the tracked changes and prepares them to be pushed to a remote repository. -git commit -m "$release_note" - -# Sets the new remote -git_remote=`git remote` -if [ "$git_remote" = "" ]; then # git remote not defined - - if [ "$GIT_TOKEN" = "" ]; then - echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the git credential in your environment." - git remote add origin https://github.com/${git_user_id}/${git_repo_id}.git - else - git remote add origin https://${git_user_id}:${GIT_TOKEN}@github.com/${git_user_id}/${git_repo_id}.git - fi - -fi - -git pull origin master - -# Pushes (Forces) the changes in the local repository up to the remote repository -echo "Git pushing to https://github.com/${git_user_id}/${git_repo_id}.git" -git push origin master 2>&1 | grep -v 'To https' - diff --git a/swagger/api-table/requirements.txt b/swagger/api-table/requirements.txt deleted file mode 100644 index bafdc07532f5e1287a24c2af278f547091a410b6..0000000000000000000000000000000000000000 --- a/swagger/api-table/requirements.txt +++ /dev/null @@ -1,5 +0,0 @@ -certifi >= 14.05.14 -six >= 1.10 -python_dateutil >= 2.5.3 -setuptools >= 21.0.0 -urllib3 >= 1.15.1 diff --git a/swagger/api-table/setup.py b/swagger/api-table/setup.py deleted file mode 100644 index 0d496b16e95fc6bd16df70833f6ccfbaca75519e..0000000000000000000000000000000000000000 --- a/swagger/api-table/setup.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Database Repository Table Service API - - Service that manages the tables # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -from setuptools import setup, find_packages # noqa: H301 - -NAME = "swagger-client" -VERSION = "1.0.0" -# To install the library, run the following -# -# python setup.py install -# -# prerequisite: setuptools -# http://pypi.python.org/pypi/setuptools - -REQUIRES = ["urllib3 >= 1.15", "six >= 1.10", "certifi", "python-dateutil"] - -setup( - name=NAME, - version=VERSION, - description="Database Repository Table Service API", - author_email="andreas.rauber@tuwien.ac.at", - url="", - keywords=["Swagger", "Database Repository Table Service API"], - install_requires=REQUIRES, - packages=find_packages(), - include_package_data=True, - long_description="""\ - Service that manages the tables # noqa: E501 - """ -) diff --git a/swagger/api-table/swagger_client/__init__.py b/swagger/api-table/swagger_client/__init__.py deleted file mode 100644 index 7c122a949e262d204c78a087c8029449ae4a65fe..0000000000000000000000000000000000000000 --- a/swagger/api-table/swagger_client/__init__.py +++ /dev/null @@ -1,31 +0,0 @@ -# coding: utf-8 - -# flake8: noqa - -""" - Database Repository Table Service API - - Service that manages the tables # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -from __future__ import absolute_import - -# import apis into sdk package -from swagger_client.api.table_endpoint_api import TableEndpointApi -# import ApiClient -from swagger_client.api_client import ApiClient -from swagger_client.configuration import Configuration -# import models into sdk package -from swagger_client.models.api_error_dto import ApiErrorDto -from swagger_client.models.column_create_dto import ColumnCreateDto -from swagger_client.models.column_dto import ColumnDto -from swagger_client.models.concept_dto import ConceptDto -from swagger_client.models.image_date_dto import ImageDateDto -from swagger_client.models.table_brief_dto import TableBriefDto -from swagger_client.models.table_create_dto import TableCreateDto -from swagger_client.models.table_dto import TableDto -from swagger_client.models.user_brief_dto import UserBriefDto diff --git a/swagger/api-table/swagger_client/api/__init__.py b/swagger/api-table/swagger_client/api/__init__.py deleted file mode 100644 index df59556676af99b4eebb61daffc84ee6321fa4af..0000000000000000000000000000000000000000 --- a/swagger/api-table/swagger_client/api/__init__.py +++ /dev/null @@ -1,6 +0,0 @@ -from __future__ import absolute_import - -# flake8: noqa - -# import apis into api package -from swagger_client.api.table_endpoint_api import TableEndpointApi diff --git a/swagger/api-table/swagger_client/api/table_endpoint_api.py b/swagger/api-table/swagger_client/api/table_endpoint_api.py deleted file mode 100644 index a51fcf0d098799acbbef86e1d041d522e2cd7a72..0000000000000000000000000000000000000000 --- a/swagger/api-table/swagger_client/api/table_endpoint_api.py +++ /dev/null @@ -1,590 +0,0 @@ -# coding: utf-8 - -""" - Database Repository Table Service API - - Service that manages the tables # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -from __future__ import absolute_import - -import re # noqa: F401 - -# python 2 and python 3 compatibility library -import six - -from swagger_client.api_client import ApiClient - - -class TableEndpointApi(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - Ref: https://github.com/swagger-api/swagger-codegen - """ - - def __init__(self, api_client=None): - if api_client is None: - api_client = ApiClient() - self.api_client = api_client - - def create(self, body, authorization, id, database_id, **kwargs): # noqa: E501 - """Create a table # noqa: E501 - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.create(body, authorization, id, database_id, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param TableCreateDto body: (required) - :param str authorization: (required) - :param int id: (required) - :param int database_id: (required) - :return: TableBriefDto - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.create_with_http_info(body, authorization, id, database_id, **kwargs) # noqa: E501 - else: - (data) = self.create_with_http_info(body, authorization, id, database_id, **kwargs) # noqa: E501 - return data - - def create_with_http_info(self, body, authorization, id, database_id, **kwargs): # noqa: E501 - """Create a table # noqa: E501 - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.create_with_http_info(body, authorization, id, database_id, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param TableCreateDto body: (required) - :param str authorization: (required) - :param int id: (required) - :param int database_id: (required) - :return: TableBriefDto - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['body', 'authorization', 'id', 'database_id'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in six.iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method create" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'body' is set - if ('body' not in params or - params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `create`") # noqa: E501 - # verify the required parameter 'authorization' is set - if ('authorization' not in params or - params['authorization'] is None): - raise ValueError("Missing the required parameter `authorization` when calling `create`") # noqa: E501 - # verify the required parameter 'id' is set - if ('id' not in params or - params['id'] is None): - raise ValueError("Missing the required parameter `id` when calling `create`") # noqa: E501 - # verify the required parameter 'database_id' is set - if ('database_id' not in params or - params['database_id'] is None): - raise ValueError("Missing the required parameter `database_id` when calling `create`") # noqa: E501 - - collection_formats = {} - - path_params = {} - if 'id' in params: - path_params['id'] = params['id'] # noqa: E501 - if 'database_id' in params: - path_params['databaseId'] = params['database_id'] # noqa: E501 - - query_params = [] - - header_params = {} - if 'authorization' in params: - header_params['Authorization'] = params['authorization'] # noqa: E501 - - form_params = [] - local_var_files = {} - - body_params = None - if 'body' in params: - body_params = params['body'] - # HTTP header `Accept` - header_params['Accept'] = self.api_client.select_header_accept( - ['*/*']) # noqa: E501 - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 - ['application/json']) # noqa: E501 - - # Authentication setting - auth_settings = ['bearerAuth'] # noqa: E501 - - return self.api_client.call_api( - '/api/container/{id}/database/{databaseId}/table', 'POST', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='TableBriefDto', # noqa: E501 - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def delete(self, id, database_id, table_id, authorization, **kwargs): # noqa: E501 - """Delete a table # noqa: E501 - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.delete(id, database_id, table_id, authorization, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param int id: (required) - :param int database_id: (required) - :param int table_id: (required) - :param str authorization: (required) - :return: None - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.delete_with_http_info(id, database_id, table_id, authorization, **kwargs) # noqa: E501 - else: - (data) = self.delete_with_http_info(id, database_id, table_id, authorization, **kwargs) # noqa: E501 - return data - - def delete_with_http_info(self, id, database_id, table_id, authorization, **kwargs): # noqa: E501 - """Delete a table # noqa: E501 - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.delete_with_http_info(id, database_id, table_id, authorization, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param int id: (required) - :param int database_id: (required) - :param int table_id: (required) - :param str authorization: (required) - :return: None - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['id', 'database_id', 'table_id', 'authorization'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in six.iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method delete" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'id' is set - if ('id' not in params or - params['id'] is None): - raise ValueError("Missing the required parameter `id` when calling `delete`") # noqa: E501 - # verify the required parameter 'database_id' is set - if ('database_id' not in params or - params['database_id'] is None): - raise ValueError("Missing the required parameter `database_id` when calling `delete`") # noqa: E501 - # verify the required parameter 'table_id' is set - if ('table_id' not in params or - params['table_id'] is None): - raise ValueError("Missing the required parameter `table_id` when calling `delete`") # noqa: E501 - # verify the required parameter 'authorization' is set - if ('authorization' not in params or - params['authorization'] is None): - raise ValueError("Missing the required parameter `authorization` when calling `delete`") # noqa: E501 - - collection_formats = {} - - path_params = {} - if 'id' in params: - path_params['id'] = params['id'] # noqa: E501 - if 'database_id' in params: - path_params['databaseId'] = params['database_id'] # noqa: E501 - if 'table_id' in params: - path_params['tableId'] = params['table_id'] # noqa: E501 - - query_params = [] - - header_params = {} - if 'authorization' in params: - header_params['Authorization'] = params['authorization'] # noqa: E501 - - form_params = [] - local_var_files = {} - - body_params = None - # HTTP header `Accept` - header_params['Accept'] = self.api_client.select_header_accept( - ['*/*']) # noqa: E501 - - # Authentication setting - auth_settings = ['bearerAuth'] # noqa: E501 - - return self.api_client.call_api( - '/api/container/{id}/database/{databaseId}/table/{tableId}', 'DELETE', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type=None, # noqa: E501 - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def find_all(self, id, database_id, **kwargs): # noqa: E501 - """List all tables # noqa: E501 - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.find_all(id, database_id, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param int id: (required) - :param int database_id: (required) - :return: list[TableBriefDto] - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.find_all_with_http_info(id, database_id, **kwargs) # noqa: E501 - else: - (data) = self.find_all_with_http_info(id, database_id, **kwargs) # noqa: E501 - return data - - def find_all_with_http_info(self, id, database_id, **kwargs): # noqa: E501 - """List all tables # noqa: E501 - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.find_all_with_http_info(id, database_id, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param int id: (required) - :param int database_id: (required) - :return: list[TableBriefDto] - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['id', 'database_id'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in six.iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method find_all" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'id' is set - if ('id' not in params or - params['id'] is None): - raise ValueError("Missing the required parameter `id` when calling `find_all`") # noqa: E501 - # verify the required parameter 'database_id' is set - if ('database_id' not in params or - params['database_id'] is None): - raise ValueError("Missing the required parameter `database_id` when calling `find_all`") # noqa: E501 - - collection_formats = {} - - path_params = {} - if 'id' in params: - path_params['id'] = params['id'] # noqa: E501 - if 'database_id' in params: - path_params['databaseId'] = params['database_id'] # noqa: E501 - - query_params = [] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - # HTTP header `Accept` - header_params['Accept'] = self.api_client.select_header_accept( - ['*/*']) # noqa: E501 - - # Authentication setting - auth_settings = ['bearerAuth'] # noqa: E501 - - return self.api_client.call_api( - '/api/container/{id}/database/{databaseId}/table', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='list[TableBriefDto]', # noqa: E501 - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def find_by_id(self, id, database_id, table_id, **kwargs): # noqa: E501 - """Get information about table # noqa: E501 - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.find_by_id(id, database_id, table_id, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param int id: (required) - :param int database_id: (required) - :param int table_id: (required) - :return: TableDto - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.find_by_id_with_http_info(id, database_id, table_id, **kwargs) # noqa: E501 - else: - (data) = self.find_by_id_with_http_info(id, database_id, table_id, **kwargs) # noqa: E501 - return data - - def find_by_id_with_http_info(self, id, database_id, table_id, **kwargs): # noqa: E501 - """Get information about table # noqa: E501 - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.find_by_id_with_http_info(id, database_id, table_id, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param int id: (required) - :param int database_id: (required) - :param int table_id: (required) - :return: TableDto - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['id', 'database_id', 'table_id'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in six.iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method find_by_id" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'id' is set - if ('id' not in params or - params['id'] is None): - raise ValueError("Missing the required parameter `id` when calling `find_by_id`") # noqa: E501 - # verify the required parameter 'database_id' is set - if ('database_id' not in params or - params['database_id'] is None): - raise ValueError("Missing the required parameter `database_id` when calling `find_by_id`") # noqa: E501 - # verify the required parameter 'table_id' is set - if ('table_id' not in params or - params['table_id'] is None): - raise ValueError("Missing the required parameter `table_id` when calling `find_by_id`") # noqa: E501 - - collection_formats = {} - - path_params = {} - if 'id' in params: - path_params['id'] = params['id'] # noqa: E501 - if 'database_id' in params: - path_params['databaseId'] = params['database_id'] # noqa: E501 - if 'table_id' in params: - path_params['tableId'] = params['table_id'] # noqa: E501 - - query_params = [] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - # HTTP header `Accept` - header_params['Accept'] = self.api_client.select_header_accept( - ['*/*']) # noqa: E501 - - # Authentication setting - auth_settings = ['bearerAuth'] # noqa: E501 - - return self.api_client.call_api( - '/api/container/{id}/database/{databaseId}/table/{tableId}', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='TableDto', # noqa: E501 - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def update(self, id, database_id, table_id, **kwargs): # noqa: E501 - """Update a table # noqa: E501 - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.update(id, database_id, table_id, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param int id: (required) - :param int database_id: (required) - :param int table_id: (required) - :return: TableBriefDto - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.update_with_http_info(id, database_id, table_id, **kwargs) # noqa: E501 - else: - (data) = self.update_with_http_info(id, database_id, table_id, **kwargs) # noqa: E501 - return data - - def update_with_http_info(self, id, database_id, table_id, **kwargs): # noqa: E501 - """Update a table # noqa: E501 - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.update_with_http_info(id, database_id, table_id, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param int id: (required) - :param int database_id: (required) - :param int table_id: (required) - :return: TableBriefDto - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['id', 'database_id', 'table_id'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in six.iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method update" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'id' is set - if ('id' not in params or - params['id'] is None): - raise ValueError("Missing the required parameter `id` when calling `update`") # noqa: E501 - # verify the required parameter 'database_id' is set - if ('database_id' not in params or - params['database_id'] is None): - raise ValueError("Missing the required parameter `database_id` when calling `update`") # noqa: E501 - # verify the required parameter 'table_id' is set - if ('table_id' not in params or - params['table_id'] is None): - raise ValueError("Missing the required parameter `table_id` when calling `update`") # noqa: E501 - - collection_formats = {} - - path_params = {} - if 'id' in params: - path_params['id'] = params['id'] # noqa: E501 - if 'database_id' in params: - path_params['databaseId'] = params['database_id'] # noqa: E501 - if 'table_id' in params: - path_params['tableId'] = params['table_id'] # noqa: E501 - - query_params = [] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - # HTTP header `Accept` - header_params['Accept'] = self.api_client.select_header_accept( - ['*/*']) # noqa: E501 - - # Authentication setting - auth_settings = ['bearerAuth'] # noqa: E501 - - return self.api_client.call_api( - '/api/container/{id}/database/{databaseId}/table/{tableId}', 'PUT', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='TableBriefDto', # noqa: E501 - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) diff --git a/swagger/api-table/swagger_client/api_client.py b/swagger/api-table/swagger_client/api_client.py deleted file mode 100644 index e526d1212de9f12a239724733e18dff21931ca2e..0000000000000000000000000000000000000000 --- a/swagger/api-table/swagger_client/api_client.py +++ /dev/null @@ -1,632 +0,0 @@ -# coding: utf-8 -""" - Database Repository Table Service API - - Service that manages the tables # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" -from __future__ import absolute_import - -import datetime -import json -import mimetypes -from multiprocessing.pool import ThreadPool -import os -import re -import tempfile - -# python 2 and python 3 compatibility library -import six -from six.moves.urllib.parse import quote - -from swagger_client.configuration import Configuration -import swagger_client.models -from swagger_client import rest - - -class ApiClient(object): - """Generic API client for Swagger client library builds. - - Swagger generic API client. This client handles the client- - server communication, and is invariant across implementations. Specifics of - the methods and models for each application are generated from the Swagger - templates. - - NOTE: This class is auto generated by the swagger code generator program. - Ref: https://github.com/swagger-api/swagger-codegen - Do not edit the class manually. - - :param configuration: .Configuration object for this client - :param header_name: a header to pass when making calls to the API. - :param header_value: a header value to pass when making calls to - the API. - :param cookie: a cookie to include in the header when making calls - to the API - """ - - PRIMITIVE_TYPES = (float, bool, bytes, six.text_type) + six.integer_types - NATIVE_TYPES_MAPPING = { - 'int': int, - 'long': int if six.PY3 else long, # noqa: F821 - 'float': float, - 'str': str, - 'bool': bool, - 'date': datetime.date, - 'datetime': datetime.datetime, - 'object': object, - } - - def __init__(self, configuration=None, header_name=None, header_value=None, - cookie=None): - if configuration is None: - configuration = Configuration() - self.configuration = configuration - - self.pool = ThreadPool() - self.rest_client = rest.RESTClientObject(configuration) - self.default_headers = {} - if header_name is not None: - self.default_headers[header_name] = header_value - self.cookie = cookie - # Set default User-Agent. - self.user_agent = 'Swagger-Codegen/1.0.0/python' - - def __del__(self): - self.pool.close() - self.pool.join() - - @property - def user_agent(self): - """User agent for this API client""" - return self.default_headers['User-Agent'] - - @user_agent.setter - def user_agent(self, value): - self.default_headers['User-Agent'] = value - - def set_default_header(self, header_name, header_value): - self.default_headers[header_name] = header_value - - def __call_api( - self, resource_path, method, path_params=None, - query_params=None, header_params=None, body=None, post_params=None, - files=None, response_type=None, auth_settings=None, - _return_http_data_only=None, collection_formats=None, - _preload_content=True, _request_timeout=None): - - config = self.configuration - - # header parameters - header_params = header_params or {} - header_params.update(self.default_headers) - if self.cookie: - header_params['Cookie'] = self.cookie - if header_params: - header_params = self.sanitize_for_serialization(header_params) - header_params = dict(self.parameters_to_tuples(header_params, - collection_formats)) - - # path parameters - if path_params: - path_params = self.sanitize_for_serialization(path_params) - path_params = self.parameters_to_tuples(path_params, - collection_formats) - for k, v in path_params: - # specified safe chars, encode everything - resource_path = resource_path.replace( - '{%s}' % k, - quote(str(v), safe=config.safe_chars_for_path_param) - ) - - # query parameters - if query_params: - query_params = self.sanitize_for_serialization(query_params) - query_params = self.parameters_to_tuples(query_params, - collection_formats) - - # post parameters - if post_params or files: - post_params = self.prepare_post_parameters(post_params, files) - post_params = self.sanitize_for_serialization(post_params) - post_params = self.parameters_to_tuples(post_params, - collection_formats) - - # auth setting - self.update_params_for_auth(header_params, query_params, auth_settings) - - # body - if body: - body = self.sanitize_for_serialization(body) - - # request url - url = self.configuration.host + resource_path - - # perform request and return response - response_data = self.request( - method, url, query_params=query_params, headers=header_params, - post_params=post_params, body=body, - _preload_content=_preload_content, - _request_timeout=_request_timeout) - - self.last_response = response_data - - return_data = response_data - if _preload_content: - # deserialize response data - if response_type: - return_data = self.deserialize(response_data, response_type) - else: - return_data = None - - if _return_http_data_only: - return (return_data) - else: - return (return_data, response_data.status, - response_data.getheaders()) - - def sanitize_for_serialization(self, obj): - """Builds a JSON POST object. - - If obj is None, return None. - If obj is str, int, long, float, bool, return directly. - If obj is datetime.datetime, datetime.date - convert to string in iso8601 format. - If obj is list, sanitize each element in the list. - If obj is dict, return the dict. - If obj is swagger model, return the properties dict. - - :param obj: The data to serialize. - :return: The serialized form of data. - """ - if obj is None: - return None - elif isinstance(obj, self.PRIMITIVE_TYPES): - return obj - elif isinstance(obj, list): - return [self.sanitize_for_serialization(sub_obj) - for sub_obj in obj] - elif isinstance(obj, tuple): - return tuple(self.sanitize_for_serialization(sub_obj) - for sub_obj in obj) - elif isinstance(obj, (datetime.datetime, datetime.date)): - return obj.isoformat() - - if isinstance(obj, dict): - obj_dict = obj - else: - # Convert model obj to dict except - # attributes `swagger_types`, `attribute_map` - # and attributes which value is not None. - # Convert attribute name to json key in - # model definition for request. - obj_dict = {obj.attribute_map[attr]: getattr(obj, attr) - for attr, _ in six.iteritems(obj.swagger_types) - if getattr(obj, attr) is not None} - - return {key: self.sanitize_for_serialization(val) - for key, val in six.iteritems(obj_dict)} - - def deserialize(self, response, response_type): - """Deserializes response into an object. - - :param response: RESTResponse object to be deserialized. - :param response_type: class literal for - deserialized object, or string of class name. - - :return: deserialized object. - """ - # handle file downloading - # save response body into a tmp file and return the instance - if response_type == "file": - return self.__deserialize_file(response) - - # fetch data from response object - try: - data = json.loads(response.data) - except ValueError: - data = response.data - - return self.__deserialize(data, response_type) - - def __deserialize(self, data, klass): - """Deserializes dict, list, str into an object. - - :param data: dict, list or str. - :param klass: class literal, or string of class name. - - :return: object. - """ - if data is None: - return None - - if type(klass) == str: - if klass.startswith('list['): - sub_kls = re.match(r'list\[(.*)\]', klass).group(1) - return [self.__deserialize(sub_data, sub_kls) - for sub_data in data] - - if klass.startswith('dict('): - sub_kls = re.match(r'dict\(([^,]*), (.*)\)', klass).group(2) - return {k: self.__deserialize(v, sub_kls) - for k, v in six.iteritems(data)} - - # convert str to class - if klass in self.NATIVE_TYPES_MAPPING: - klass = self.NATIVE_TYPES_MAPPING[klass] - else: - klass = getattr(swagger_client.models, klass) - - if klass in self.PRIMITIVE_TYPES: - return self.__deserialize_primitive(data, klass) - elif klass == object: - return self.__deserialize_object(data) - elif klass == datetime.date: - return self.__deserialize_date(data) - elif klass == datetime.datetime: - return self.__deserialize_datatime(data) - else: - return self.__deserialize_model(data, klass) - - def call_api(self, resource_path, method, - path_params=None, query_params=None, header_params=None, - body=None, post_params=None, files=None, - response_type=None, auth_settings=None, async_req=None, - _return_http_data_only=None, collection_formats=None, - _preload_content=True, _request_timeout=None): - """Makes the HTTP request (synchronous) and returns deserialized data. - - To make an async request, set the async_req parameter. - - :param resource_path: Path to method endpoint. - :param method: Method to call. - :param path_params: Path parameters in the url. - :param query_params: Query parameters in the url. - :param header_params: Header parameters to be - placed in the request header. - :param body: Request body. - :param post_params dict: Request post form parameters, - for `application/x-www-form-urlencoded`, `multipart/form-data`. - :param auth_settings list: Auth Settings names for the request. - :param response: Response data type. - :param files dict: key -> filename, value -> filepath, - for `multipart/form-data`. - :param async_req bool: execute request asynchronously - :param _return_http_data_only: response data without head status code - and headers - :param collection_formats: dict of collection formats for path, query, - header, and post parameters. - :param _preload_content: if False, the urllib3.HTTPResponse object will - be returned without reading/decoding response - data. Default is True. - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :return: - If async_req parameter is True, - the request will be called asynchronously. - The method will return the request thread. - If parameter async_req is False or missing, - then the method will return the response directly. - """ - if not async_req: - return self.__call_api(resource_path, method, - path_params, query_params, header_params, - body, post_params, files, - response_type, auth_settings, - _return_http_data_only, collection_formats, - _preload_content, _request_timeout) - else: - thread = self.pool.apply_async(self.__call_api, (resource_path, - method, path_params, query_params, - header_params, body, - post_params, files, - response_type, auth_settings, - _return_http_data_only, - collection_formats, - _preload_content, _request_timeout)) - return thread - - def request(self, method, url, query_params=None, headers=None, - post_params=None, body=None, _preload_content=True, - _request_timeout=None): - """Makes the HTTP request using RESTClient.""" - if method == "GET": - return self.rest_client.GET(url, - query_params=query_params, - _preload_content=_preload_content, - _request_timeout=_request_timeout, - headers=headers) - elif method == "HEAD": - return self.rest_client.HEAD(url, - query_params=query_params, - _preload_content=_preload_content, - _request_timeout=_request_timeout, - headers=headers) - elif method == "OPTIONS": - return self.rest_client.OPTIONS(url, - query_params=query_params, - headers=headers, - post_params=post_params, - _preload_content=_preload_content, - _request_timeout=_request_timeout, - body=body) - elif method == "POST": - return self.rest_client.POST(url, - query_params=query_params, - headers=headers, - post_params=post_params, - _preload_content=_preload_content, - _request_timeout=_request_timeout, - body=body) - elif method == "PUT": - return self.rest_client.PUT(url, - query_params=query_params, - headers=headers, - post_params=post_params, - _preload_content=_preload_content, - _request_timeout=_request_timeout, - body=body) - elif method == "PATCH": - return self.rest_client.PATCH(url, - query_params=query_params, - headers=headers, - post_params=post_params, - _preload_content=_preload_content, - _request_timeout=_request_timeout, - body=body) - elif method == "DELETE": - return self.rest_client.DELETE(url, - query_params=query_params, - headers=headers, - _preload_content=_preload_content, - _request_timeout=_request_timeout, - body=body) - else: - raise ValueError( - "http method must be `GET`, `HEAD`, `OPTIONS`," - " `POST`, `PATCH`, `PUT` or `DELETE`." - ) - - def parameters_to_tuples(self, params, collection_formats): - """Get parameters as list of tuples, formatting collections. - - :param params: Parameters as dict or list of two-tuples - :param dict collection_formats: Parameter collection formats - :return: Parameters as list of tuples, collections formatted - """ - new_params = [] - if collection_formats is None: - collection_formats = {} - for k, v in six.iteritems(params) if isinstance(params, dict) else params: # noqa: E501 - if k in collection_formats: - collection_format = collection_formats[k] - if collection_format == 'multi': - new_params.extend((k, value) for value in v) - else: - if collection_format == 'ssv': - delimiter = ' ' - elif collection_format == 'tsv': - delimiter = '\t' - elif collection_format == 'pipes': - delimiter = '|' - else: # csv is the default - delimiter = ',' - new_params.append( - (k, delimiter.join(str(value) for value in v))) - else: - new_params.append((k, v)) - return new_params - - def prepare_post_parameters(self, post_params=None, files=None): - """Builds form parameters. - - :param post_params: Normal form parameters. - :param files: File parameters. - :return: Form parameters with files. - """ - params = [] - - if post_params: - params = post_params - - if files: - for k, v in six.iteritems(files): - if not v: - continue - file_names = v if type(v) is list else [v] - for n in file_names: - with open(n, 'rb') as f: - filename = os.path.basename(f.name) - filedata = f.read() - mimetype = (mimetypes.guess_type(filename)[0] or - 'application/octet-stream') - params.append( - tuple([k, tuple([filename, filedata, mimetype])])) - - return params - - def select_header_accept(self, accepts): - """Returns `Accept` based on an array of accepts provided. - - :param accepts: List of headers. - :return: Accept (e.g. application/json). - """ - if not accepts: - return - - accepts = [x.lower() for x in accepts] - - if 'application/json' in accepts: - return 'application/json' - else: - return ', '.join(accepts) - - def select_header_content_type(self, content_types): - """Returns `Content-Type` based on an array of content_types provided. - - :param content_types: List of content-types. - :return: Content-Type (e.g. application/json). - """ - if not content_types: - return 'application/json' - - content_types = [x.lower() for x in content_types] - - if 'application/json' in content_types or '*/*' in content_types: - return 'application/json' - else: - return content_types[0] - - def update_params_for_auth(self, headers, querys, auth_settings): - """Updates header and query params based on authentication setting. - - :param headers: Header parameters dict to be updated. - :param querys: Query parameters tuple list to be updated. - :param auth_settings: Authentication setting identifiers list. - """ - if not auth_settings: - return - - for auth in auth_settings: - auth_setting = self.configuration.auth_settings().get(auth) - if auth_setting: - if not auth_setting['value']: - continue - elif auth_setting['in'] == 'header': - headers[auth_setting['key']] = auth_setting['value'] - elif auth_setting['in'] == 'query': - querys.append((auth_setting['key'], auth_setting['value'])) - else: - raise ValueError( - 'Authentication token must be in `query` or `header`' - ) - - def __deserialize_file(self, response): - """Deserializes body to file - - Saves response body into a file in a temporary folder, - using the filename from the `Content-Disposition` header if provided. - - :param response: RESTResponse. - :return: file path. - """ - fd, path = tempfile.mkstemp(dir=self.configuration.temp_folder_path) - os.close(fd) - os.remove(path) - - content_disposition = response.getheader("Content-Disposition") - if content_disposition: - filename = re.search(r'filename=[\'"]?([^\'"\s]+)[\'"]?', - content_disposition).group(1) - path = os.path.join(os.path.dirname(path), filename) - response_data = response.data - with open(path, "wb") as f: - if isinstance(response_data, str): - # change str to bytes so we can write it - response_data = response_data.encode('utf-8') - f.write(response_data) - else: - f.write(response_data) - return path - - def __deserialize_primitive(self, data, klass): - """Deserializes string to primitive type. - - :param data: str. - :param klass: class literal. - - :return: int, long, float, str, bool. - """ - try: - return klass(data) - except UnicodeEncodeError: - return six.text_type(data) - except TypeError: - return data - - def __deserialize_object(self, value): - """Return a original value. - - :return: object. - """ - return value - - def __deserialize_date(self, string): - """Deserializes string to date. - - :param string: str. - :return: date. - """ - try: - from dateutil.parser import parse - return parse(string).date() - except ImportError: - return string - except ValueError: - raise rest.ApiException( - status=0, - reason="Failed to parse `{0}` as date object".format(string) - ) - - def __deserialize_datatime(self, string): - """Deserializes string to datetime. - - The string should be in iso8601 datetime format. - - :param string: str. - :return: datetime. - """ - try: - from dateutil.parser import parse - return parse(string) - except ImportError: - return string - except ValueError: - raise rest.ApiException( - status=0, - reason=( - "Failed to parse `{0}` as datetime object" - .format(string) - ) - ) - - def __hasattr(self, object, name): - return name in object.__class__.__dict__ - - def __deserialize_model(self, data, klass): - """Deserializes list or dict to model. - - :param data: dict, list. - :param klass: class literal. - :return: model object. - """ - - if not klass.swagger_types and not self.__hasattr(klass, 'get_real_child_model'): - return data - - kwargs = {} - if klass.swagger_types is not None: - for attr, attr_type in six.iteritems(klass.swagger_types): - if (data is not None and - klass.attribute_map[attr] in data and - isinstance(data, (list, dict))): - value = data[klass.attribute_map[attr]] - kwargs[attr] = self.__deserialize(value, attr_type) - - instance = klass(**kwargs) - - if (isinstance(instance, dict) and - klass.swagger_types is not None and - isinstance(data, dict)): - for key, value in data.items(): - if key not in klass.swagger_types: - instance[key] = value - if self.__hasattr(instance, 'get_real_child_model'): - klass_name = instance.get_real_child_model(data) - if klass_name: - instance = self.__deserialize(data, klass_name) - return instance diff --git a/swagger/api-table/swagger_client/configuration.py b/swagger/api-table/swagger_client/configuration.py deleted file mode 100644 index 127d2e91ad387a4524a046a8790d630722bd4051..0000000000000000000000000000000000000000 --- a/swagger/api-table/swagger_client/configuration.py +++ /dev/null @@ -1,244 +0,0 @@ -# coding: utf-8 - -""" - Database Repository Table Service API - - Service that manages the tables # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -from __future__ import absolute_import - -import copy -import logging -import multiprocessing -import sys -import urllib3 - -import six -from six.moves import http_client as httplib - - -class TypeWithDefault(type): - def __init__(cls, name, bases, dct): - super(TypeWithDefault, cls).__init__(name, bases, dct) - cls._default = None - - def __call__(cls): - if cls._default is None: - cls._default = type.__call__(cls) - return copy.copy(cls._default) - - def set_default(cls, default): - cls._default = copy.copy(default) - - -class Configuration(six.with_metaclass(TypeWithDefault, object)): - """NOTE: This class is auto generated by the swagger code generator program. - - Ref: https://github.com/swagger-api/swagger-codegen - Do not edit the class manually. - """ - - def __init__(self): - """Constructor""" - # Default Base url - self.host = "http://localhost:9094" - # Temp file folder for downloading files - self.temp_folder_path = None - - # Authentication Settings - # dict to store API key(s) - self.api_key = {} - # dict to store API prefix (e.g. Bearer) - self.api_key_prefix = {} - # function to refresh API key if expired - self.refresh_api_key_hook = None - # Username for HTTP basic authentication - self.username = "" - # Password for HTTP basic authentication - self.password = "" - # Logging Settings - self.logger = {} - self.logger["package_logger"] = logging.getLogger("swagger_client") - self.logger["urllib3_logger"] = logging.getLogger("urllib3") - # Log format - self.logger_format = '%(asctime)s %(levelname)s %(message)s' - # Log stream handler - self.logger_stream_handler = None - # Log file handler - self.logger_file_handler = None - # Debug file location - self.logger_file = None - # Debug switch - self.debug = False - - # SSL/TLS verification - # Set this to false to skip verifying SSL certificate when calling API - # from https server. - self.verify_ssl = True - # Set this to customize the certificate file to verify the peer. - self.ssl_ca_cert = None - # client certificate file - self.cert_file = None - # client key file - self.key_file = None - # Set this to True/False to enable/disable SSL hostname verification. - self.assert_hostname = None - - # urllib3 connection pool's maximum number of connections saved - # per pool. urllib3 uses 1 connection as default value, but this is - # not the best value when you are making a lot of possibly parallel - # requests to the same host, which is often the case here. - # cpu_count * 5 is used as default value to increase performance. - self.connection_pool_maxsize = multiprocessing.cpu_count() * 5 - - # Proxy URL - self.proxy = None - # Safe chars for path_param - self.safe_chars_for_path_param = '' - - @property - def logger_file(self): - """The logger file. - - If the logger_file is None, then add stream handler and remove file - handler. Otherwise, add file handler and remove stream handler. - - :param value: The logger_file path. - :type: str - """ - return self.__logger_file - - @logger_file.setter - def logger_file(self, value): - """The logger file. - - If the logger_file is None, then add stream handler and remove file - handler. Otherwise, add file handler and remove stream handler. - - :param value: The logger_file path. - :type: str - """ - self.__logger_file = value - if self.__logger_file: - # If set logging file, - # then add file handler and remove stream handler. - self.logger_file_handler = logging.FileHandler(self.__logger_file) - self.logger_file_handler.setFormatter(self.logger_formatter) - for _, logger in six.iteritems(self.logger): - logger.addHandler(self.logger_file_handler) - if self.logger_stream_handler: - logger.removeHandler(self.logger_stream_handler) - else: - # If not set logging file, - # then add stream handler and remove file handler. - self.logger_stream_handler = logging.StreamHandler() - self.logger_stream_handler.setFormatter(self.logger_formatter) - for _, logger in six.iteritems(self.logger): - logger.addHandler(self.logger_stream_handler) - if self.logger_file_handler: - logger.removeHandler(self.logger_file_handler) - - @property - def debug(self): - """Debug status - - :param value: The debug status, True or False. - :type: bool - """ - return self.__debug - - @debug.setter - def debug(self, value): - """Debug status - - :param value: The debug status, True or False. - :type: bool - """ - self.__debug = value - if self.__debug: - # if debug status is True, turn on debug logging - for _, logger in six.iteritems(self.logger): - logger.setLevel(logging.DEBUG) - # turn on httplib debug - httplib.HTTPConnection.debuglevel = 1 - else: - # if debug status is False, turn off debug logging, - # setting log level to default `logging.WARNING` - for _, logger in six.iteritems(self.logger): - logger.setLevel(logging.WARNING) - # turn off httplib debug - httplib.HTTPConnection.debuglevel = 0 - - @property - def logger_format(self): - """The logger format. - - The logger_formatter will be updated when sets logger_format. - - :param value: The format string. - :type: str - """ - return self.__logger_format - - @logger_format.setter - def logger_format(self, value): - """The logger format. - - The logger_formatter will be updated when sets logger_format. - - :param value: The format string. - :type: str - """ - self.__logger_format = value - self.logger_formatter = logging.Formatter(self.__logger_format) - - def get_api_key_with_prefix(self, identifier): - """Gets API key (with prefix if set). - - :param identifier: The identifier of apiKey. - :return: The token for api key authentication. - """ - if self.refresh_api_key_hook: - self.refresh_api_key_hook(self) - - key = self.api_key.get(identifier) - if key: - prefix = self.api_key_prefix.get(identifier) - if prefix: - return "%s %s" % (prefix, key) - else: - return key - - def get_basic_auth_token(self): - """Gets HTTP basic authentication header (string). - - :return: The token for basic HTTP authentication. - """ - return urllib3.util.make_headers( - basic_auth=self.username + ':' + self.password - ).get('authorization') - - def auth_settings(self): - """Gets Auth Settings dict for api client. - - :return: The Auth Settings information dict. - """ - return { - } - - def to_debug_report(self): - """Gets the essential information for debugging. - - :return: The report for debugging. - """ - return "Python SDK Debug Report:\n"\ - "OS: {env}\n"\ - "Python Version: {pyversion}\n"\ - "Version of the API: 1.1.0-alpha\n"\ - "SDK Package Version: 1.0.0".\ - format(env=sys.platform, pyversion=sys.version) diff --git a/swagger/api-table/swagger_client/models/__init__.py b/swagger/api-table/swagger_client/models/__init__.py deleted file mode 100644 index 33b8639a3ce018549328cd5d06442aa9166d6e61..0000000000000000000000000000000000000000 --- a/swagger/api-table/swagger_client/models/__init__.py +++ /dev/null @@ -1,25 +0,0 @@ -# coding: utf-8 - -# flake8: noqa -""" - Database Repository Table Service API - - Service that manages the tables # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -from __future__ import absolute_import - -# import models into model package -from swagger_client.models.api_error_dto import ApiErrorDto -from swagger_client.models.column_create_dto import ColumnCreateDto -from swagger_client.models.column_dto import ColumnDto -from swagger_client.models.concept_dto import ConceptDto -from swagger_client.models.image_date_dto import ImageDateDto -from swagger_client.models.table_brief_dto import TableBriefDto -from swagger_client.models.table_create_dto import TableCreateDto -from swagger_client.models.table_dto import TableDto -from swagger_client.models.user_brief_dto import UserBriefDto diff --git a/swagger/api-table/swagger_client/models/api_error_dto.py b/swagger/api-table/swagger_client/models/api_error_dto.py deleted file mode 100644 index a67060c6825f53ef2ffb421da1b1386269540ee2..0000000000000000000000000000000000000000 --- a/swagger/api-table/swagger_client/models/api_error_dto.py +++ /dev/null @@ -1,171 +0,0 @@ -# coding: utf-8 - -""" - Database Repository Table Service API - - Service that manages the tables # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -import pprint -import re # noqa: F401 - -import six - -class ApiErrorDto(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'status': 'str', - 'message': 'str', - 'code': 'str' - } - - attribute_map = { - 'status': 'status', - 'message': 'message', - 'code': 'code' - } - - def __init__(self, status=None, message=None, code=None): # noqa: E501 - """ApiErrorDto - a model defined in Swagger""" # noqa: E501 - self._status = None - self._message = None - self._code = None - self.discriminator = None - self.status = status - self.message = message - self.code = code - - @property - def status(self): - """Gets the status of this ApiErrorDto. # noqa: E501 - - - :return: The status of this ApiErrorDto. # noqa: E501 - :rtype: str - """ - return self._status - - @status.setter - def status(self, status): - """Sets the status of this ApiErrorDto. - - - :param status: The status of this ApiErrorDto. # noqa: E501 - :type: str - """ - if status is None: - raise ValueError("Invalid value for `status`, must not be `None`") # noqa: E501 - allowed_values = ["100 CONTINUE", "101 SWITCHING_PROTOCOLS", "102 PROCESSING", "103 CHECKPOINT", "200 OK", "201 CREATED", "202 ACCEPTED", "203 NON_AUTHORITATIVE_INFORMATION", "204 NO_CONTENT", "205 RESET_CONTENT", "206 PARTIAL_CONTENT", "207 MULTI_STATUS", "208 ALREADY_REPORTED", "226 IM_USED", "300 MULTIPLE_CHOICES", "301 MOVED_PERMANENTLY", "302 FOUND", "302 MOVED_TEMPORARILY", "303 SEE_OTHER", "304 NOT_MODIFIED", "305 USE_PROXY", "307 TEMPORARY_REDIRECT", "308 PERMANENT_REDIRECT", "400 BAD_REQUEST", "401 UNAUTHORIZED", "402 PAYMENT_REQUIRED", "403 FORBIDDEN", "404 NOT_FOUND", "405 METHOD_NOT_ALLOWED", "406 NOT_ACCEPTABLE", "407 PROXY_AUTHENTICATION_REQUIRED", "408 REQUEST_TIMEOUT", "409 CONFLICT", "410 GONE", "411 LENGTH_REQUIRED", "412 PRECONDITION_FAILED", "413 PAYLOAD_TOO_LARGE", "413 REQUEST_ENTITY_TOO_LARGE", "414 URI_TOO_LONG", "414 REQUEST_URI_TOO_LONG", "415 UNSUPPORTED_MEDIA_TYPE", "416 REQUESTED_RANGE_NOT_SATISFIABLE", "417 EXPECTATION_FAILED", "418 I_AM_A_TEAPOT", "419 INSUFFICIENT_SPACE_ON_RESOURCE", "420 METHOD_FAILURE", "421 DESTINATION_LOCKED", "422 UNPROCESSABLE_ENTITY", "423 LOCKED", "424 FAILED_DEPENDENCY", "425 TOO_EARLY", "426 UPGRADE_REQUIRED", "428 PRECONDITION_REQUIRED", "429 TOO_MANY_REQUESTS", "431 REQUEST_HEADER_FIELDS_TOO_LARGE", "451 UNAVAILABLE_FOR_LEGAL_REASONS", "500 INTERNAL_SERVER_ERROR", "501 NOT_IMPLEMENTED", "502 BAD_GATEWAY", "503 SERVICE_UNAVAILABLE", "504 GATEWAY_TIMEOUT", "505 HTTP_VERSION_NOT_SUPPORTED", "506 VARIANT_ALSO_NEGOTIATES", "507 INSUFFICIENT_STORAGE", "508 LOOP_DETECTED", "509 BANDWIDTH_LIMIT_EXCEEDED", "510 NOT_EXTENDED", "511 NETWORK_AUTHENTICATION_REQUIRED"] # noqa: E501 - if status not in allowed_values: - raise ValueError( - "Invalid value for `status` ({0}), must be one of {1}" # noqa: E501 - .format(status, allowed_values) - ) - - self._status = status - - @property - def message(self): - """Gets the message of this ApiErrorDto. # noqa: E501 - - - :return: The message of this ApiErrorDto. # noqa: E501 - :rtype: str - """ - return self._message - - @message.setter - def message(self, message): - """Sets the message of this ApiErrorDto. - - - :param message: The message of this ApiErrorDto. # noqa: E501 - :type: str - """ - if message is None: - raise ValueError("Invalid value for `message`, must not be `None`") # noqa: E501 - - self._message = message - - @property - def code(self): - """Gets the code of this ApiErrorDto. # noqa: E501 - - - :return: The code of this ApiErrorDto. # noqa: E501 - :rtype: str - """ - return self._code - - @code.setter - def code(self, code): - """Sets the code of this ApiErrorDto. - - - :param code: The code of this ApiErrorDto. # noqa: E501 - :type: str - """ - if code is None: - raise ValueError("Invalid value for `code`, must not be `None`") # noqa: E501 - - self._code = code - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(ApiErrorDto, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, ApiErrorDto): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/swagger/api-table/swagger_client/models/column_create_dto.py b/swagger/api-table/swagger_client/models/column_create_dto.py deleted file mode 100644 index 5c14839dd9683c72ffe8de93612c9c5944a723e0..0000000000000000000000000000000000000000 --- a/swagger/api-table/swagger_client/models/column_create_dto.py +++ /dev/null @@ -1,357 +0,0 @@ -# coding: utf-8 - -""" - Database Repository Table Service API - - Service that manages the tables # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -import pprint -import re # noqa: F401 - -import six - -class ColumnCreateDto(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'name': 'str', - 'type': 'str', - 'dfid': 'int', - 'unique': 'bool', - 'references': 'str', - 'primary_key': 'bool', - 'null_allowed': 'bool', - 'check_expression': 'str', - 'foreign_key': 'str', - 'enum_values': 'list[str]' - } - - attribute_map = { - 'name': 'name', - 'type': 'type', - 'dfid': 'dfid', - 'unique': 'unique', - 'references': 'references', - 'primary_key': 'primary_key', - 'null_allowed': 'null_allowed', - 'check_expression': 'check_expression', - 'foreign_key': 'foreign_key', - 'enum_values': 'enum_values' - } - - def __init__(self, name=None, type=None, dfid=None, unique=None, references=None, primary_key=None, null_allowed=None, check_expression=None, foreign_key=None, enum_values=None): # noqa: E501 - """ColumnCreateDto - a model defined in Swagger""" # noqa: E501 - self._name = None - self._type = None - self._dfid = None - self._unique = None - self._references = None - self._primary_key = None - self._null_allowed = None - self._check_expression = None - self._foreign_key = None - self._enum_values = None - self.discriminator = None - self.name = name - self.type = type - if dfid is not None: - self.dfid = dfid - self.unique = unique - if references is not None: - self.references = references - self.primary_key = primary_key - self.null_allowed = null_allowed - if check_expression is not None: - self.check_expression = check_expression - if foreign_key is not None: - self.foreign_key = foreign_key - if enum_values is not None: - self.enum_values = enum_values - - @property - def name(self): - """Gets the name of this ColumnCreateDto. # noqa: E501 - - - :return: The name of this ColumnCreateDto. # noqa: E501 - :rtype: str - """ - return self._name - - @name.setter - def name(self, name): - """Sets the name of this ColumnCreateDto. - - - :param name: The name of this ColumnCreateDto. # noqa: E501 - :type: str - """ - if name is None: - raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501 - - self._name = name - - @property - def type(self): - """Gets the type of this ColumnCreateDto. # noqa: E501 - - - :return: The type of this ColumnCreateDto. # noqa: E501 - :rtype: str - """ - return self._type - - @type.setter - def type(self, type): - """Sets the type of this ColumnCreateDto. - - - :param type: The type of this ColumnCreateDto. # noqa: E501 - :type: str - """ - if type is None: - raise ValueError("Invalid value for `type`, must not be `None`") # noqa: E501 - allowed_values = ["enum", "number", "decimal", "string", "text", "boolean", "date", "timestamp", "blob"] # noqa: E501 - if type not in allowed_values: - raise ValueError( - "Invalid value for `type` ({0}), must be one of {1}" # noqa: E501 - .format(type, allowed_values) - ) - - self._type = type - - @property - def dfid(self): - """Gets the dfid of this ColumnCreateDto. # noqa: E501 - - date format id # noqa: E501 - - :return: The dfid of this ColumnCreateDto. # noqa: E501 - :rtype: int - """ - return self._dfid - - @dfid.setter - def dfid(self, dfid): - """Sets the dfid of this ColumnCreateDto. - - date format id # noqa: E501 - - :param dfid: The dfid of this ColumnCreateDto. # noqa: E501 - :type: int - """ - - self._dfid = dfid - - @property - def unique(self): - """Gets the unique of this ColumnCreateDto. # noqa: E501 - - - :return: The unique of this ColumnCreateDto. # noqa: E501 - :rtype: bool - """ - return self._unique - - @unique.setter - def unique(self, unique): - """Sets the unique of this ColumnCreateDto. - - - :param unique: The unique of this ColumnCreateDto. # noqa: E501 - :type: bool - """ - if unique is None: - raise ValueError("Invalid value for `unique`, must not be `None`") # noqa: E501 - - self._unique = unique - - @property - def references(self): - """Gets the references of this ColumnCreateDto. # noqa: E501 - - - :return: The references of this ColumnCreateDto. # noqa: E501 - :rtype: str - """ - return self._references - - @references.setter - def references(self, references): - """Sets the references of this ColumnCreateDto. - - - :param references: The references of this ColumnCreateDto. # noqa: E501 - :type: str - """ - - self._references = references - - @property - def primary_key(self): - """Gets the primary_key of this ColumnCreateDto. # noqa: E501 - - - :return: The primary_key of this ColumnCreateDto. # noqa: E501 - :rtype: bool - """ - return self._primary_key - - @primary_key.setter - def primary_key(self, primary_key): - """Sets the primary_key of this ColumnCreateDto. - - - :param primary_key: The primary_key of this ColumnCreateDto. # noqa: E501 - :type: bool - """ - if primary_key is None: - raise ValueError("Invalid value for `primary_key`, must not be `None`") # noqa: E501 - - self._primary_key = primary_key - - @property - def null_allowed(self): - """Gets the null_allowed of this ColumnCreateDto. # noqa: E501 - - - :return: The null_allowed of this ColumnCreateDto. # noqa: E501 - :rtype: bool - """ - return self._null_allowed - - @null_allowed.setter - def null_allowed(self, null_allowed): - """Sets the null_allowed of this ColumnCreateDto. - - - :param null_allowed: The null_allowed of this ColumnCreateDto. # noqa: E501 - :type: bool - """ - if null_allowed is None: - raise ValueError("Invalid value for `null_allowed`, must not be `None`") # noqa: E501 - - self._null_allowed = null_allowed - - @property - def check_expression(self): - """Gets the check_expression of this ColumnCreateDto. # noqa: E501 - - - :return: The check_expression of this ColumnCreateDto. # noqa: E501 - :rtype: str - """ - return self._check_expression - - @check_expression.setter - def check_expression(self, check_expression): - """Sets the check_expression of this ColumnCreateDto. - - - :param check_expression: The check_expression of this ColumnCreateDto. # noqa: E501 - :type: str - """ - - self._check_expression = check_expression - - @property - def foreign_key(self): - """Gets the foreign_key of this ColumnCreateDto. # noqa: E501 - - - :return: The foreign_key of this ColumnCreateDto. # noqa: E501 - :rtype: str - """ - return self._foreign_key - - @foreign_key.setter - def foreign_key(self, foreign_key): - """Sets the foreign_key of this ColumnCreateDto. - - - :param foreign_key: The foreign_key of this ColumnCreateDto. # noqa: E501 - :type: str - """ - - self._foreign_key = foreign_key - - @property - def enum_values(self): - """Gets the enum_values of this ColumnCreateDto. # noqa: E501 - - - :return: The enum_values of this ColumnCreateDto. # noqa: E501 - :rtype: list[str] - """ - return self._enum_values - - @enum_values.setter - def enum_values(self, enum_values): - """Sets the enum_values of this ColumnCreateDto. - - - :param enum_values: The enum_values of this ColumnCreateDto. # noqa: E501 - :type: list[str] - """ - - self._enum_values = enum_values - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(ColumnCreateDto, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, ColumnCreateDto): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/swagger/api-table/swagger_client/models/column_dto.py b/swagger/api-table/swagger_client/models/column_dto.py deleted file mode 100644 index 08c3ab7a70536b6fec106d21b598225f2da9369e..0000000000000000000000000000000000000000 --- a/swagger/api-table/swagger_client/models/column_dto.py +++ /dev/null @@ -1,462 +0,0 @@ -# coding: utf-8 - -""" - Database Repository Table Service API - - Service that manages the tables # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -import pprint -import re # noqa: F401 - -import six - -class ColumnDto(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'id': 'int', - 'name': 'str', - 'unique': 'bool', - 'references': 'str', - 'internal_name': 'str', - 'date_format': 'ImageDateDto', - 'auto_generated': 'bool', - 'is_primary_key': 'bool', - 'column_type': 'str', - 'column_concept': 'ConceptDto', - 'is_null_allowed': 'bool', - 'check_expression': 'str', - 'foreign_key': 'str', - 'enum_values': 'list[str]' - } - - attribute_map = { - 'id': 'id', - 'name': 'name', - 'unique': 'unique', - 'references': 'references', - 'internal_name': 'internal_name', - 'date_format': 'date_format', - 'auto_generated': 'auto_generated', - 'is_primary_key': 'is_primary_key', - 'column_type': 'column_type', - 'column_concept': 'column_concept', - 'is_null_allowed': 'is_null_allowed', - 'check_expression': 'check_expression', - 'foreign_key': 'foreign_key', - 'enum_values': 'enum_values' - } - - def __init__(self, id=None, name=None, unique=None, references=None, internal_name=None, date_format=None, auto_generated=None, is_primary_key=None, column_type=None, column_concept=None, is_null_allowed=None, check_expression=None, foreign_key=None, enum_values=None): # noqa: E501 - """ColumnDto - a model defined in Swagger""" # noqa: E501 - self._id = None - self._name = None - self._unique = None - self._references = None - self._internal_name = None - self._date_format = None - self._auto_generated = None - self._is_primary_key = None - self._column_type = None - self._column_concept = None - self._is_null_allowed = None - self._check_expression = None - self._foreign_key = None - self._enum_values = None - self.discriminator = None - self.id = id - self.name = name - self.unique = unique - if references is not None: - self.references = references - self.internal_name = internal_name - if date_format is not None: - self.date_format = date_format - self.auto_generated = auto_generated - self.is_primary_key = is_primary_key - self.column_type = column_type - if column_concept is not None: - self.column_concept = column_concept - self.is_null_allowed = is_null_allowed - if check_expression is not None: - self.check_expression = check_expression - if foreign_key is not None: - self.foreign_key = foreign_key - if enum_values is not None: - self.enum_values = enum_values - - @property - def id(self): - """Gets the id of this ColumnDto. # noqa: E501 - - - :return: The id of this ColumnDto. # noqa: E501 - :rtype: int - """ - return self._id - - @id.setter - def id(self, id): - """Sets the id of this ColumnDto. - - - :param id: The id of this ColumnDto. # noqa: E501 - :type: int - """ - if id is None: - raise ValueError("Invalid value for `id`, must not be `None`") # noqa: E501 - - self._id = id - - @property - def name(self): - """Gets the name of this ColumnDto. # noqa: E501 - - - :return: The name of this ColumnDto. # noqa: E501 - :rtype: str - """ - return self._name - - @name.setter - def name(self, name): - """Sets the name of this ColumnDto. - - - :param name: The name of this ColumnDto. # noqa: E501 - :type: str - """ - if name is None: - raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501 - - self._name = name - - @property - def unique(self): - """Gets the unique of this ColumnDto. # noqa: E501 - - - :return: The unique of this ColumnDto. # noqa: E501 - :rtype: bool - """ - return self._unique - - @unique.setter - def unique(self, unique): - """Sets the unique of this ColumnDto. - - - :param unique: The unique of this ColumnDto. # noqa: E501 - :type: bool - """ - if unique is None: - raise ValueError("Invalid value for `unique`, must not be `None`") # noqa: E501 - - self._unique = unique - - @property - def references(self): - """Gets the references of this ColumnDto. # noqa: E501 - - - :return: The references of this ColumnDto. # noqa: E501 - :rtype: str - """ - return self._references - - @references.setter - def references(self, references): - """Sets the references of this ColumnDto. - - - :param references: The references of this ColumnDto. # noqa: E501 - :type: str - """ - - self._references = references - - @property - def internal_name(self): - """Gets the internal_name of this ColumnDto. # noqa: E501 - - - :return: The internal_name of this ColumnDto. # noqa: E501 - :rtype: str - """ - return self._internal_name - - @internal_name.setter - def internal_name(self, internal_name): - """Sets the internal_name of this ColumnDto. - - - :param internal_name: The internal_name of this ColumnDto. # noqa: E501 - :type: str - """ - if internal_name is None: - raise ValueError("Invalid value for `internal_name`, must not be `None`") # noqa: E501 - - self._internal_name = internal_name - - @property - def date_format(self): - """Gets the date_format of this ColumnDto. # noqa: E501 - - - :return: The date_format of this ColumnDto. # noqa: E501 - :rtype: ImageDateDto - """ - return self._date_format - - @date_format.setter - def date_format(self, date_format): - """Sets the date_format of this ColumnDto. - - - :param date_format: The date_format of this ColumnDto. # noqa: E501 - :type: ImageDateDto - """ - - self._date_format = date_format - - @property - def auto_generated(self): - """Gets the auto_generated of this ColumnDto. # noqa: E501 - - - :return: The auto_generated of this ColumnDto. # noqa: E501 - :rtype: bool - """ - return self._auto_generated - - @auto_generated.setter - def auto_generated(self, auto_generated): - """Sets the auto_generated of this ColumnDto. - - - :param auto_generated: The auto_generated of this ColumnDto. # noqa: E501 - :type: bool - """ - if auto_generated is None: - raise ValueError("Invalid value for `auto_generated`, must not be `None`") # noqa: E501 - - self._auto_generated = auto_generated - - @property - def is_primary_key(self): - """Gets the is_primary_key of this ColumnDto. # noqa: E501 - - - :return: The is_primary_key of this ColumnDto. # noqa: E501 - :rtype: bool - """ - return self._is_primary_key - - @is_primary_key.setter - def is_primary_key(self, is_primary_key): - """Sets the is_primary_key of this ColumnDto. - - - :param is_primary_key: The is_primary_key of this ColumnDto. # noqa: E501 - :type: bool - """ - if is_primary_key is None: - raise ValueError("Invalid value for `is_primary_key`, must not be `None`") # noqa: E501 - - self._is_primary_key = is_primary_key - - @property - def column_type(self): - """Gets the column_type of this ColumnDto. # noqa: E501 - - - :return: The column_type of this ColumnDto. # noqa: E501 - :rtype: str - """ - return self._column_type - - @column_type.setter - def column_type(self, column_type): - """Sets the column_type of this ColumnDto. - - - :param column_type: The column_type of this ColumnDto. # noqa: E501 - :type: str - """ - if column_type is None: - raise ValueError("Invalid value for `column_type`, must not be `None`") # noqa: E501 - allowed_values = ["enum", "number", "decimal", "string", "text", "boolean", "date", "timestamp", "blob"] # noqa: E501 - if column_type not in allowed_values: - raise ValueError( - "Invalid value for `column_type` ({0}), must be one of {1}" # noqa: E501 - .format(column_type, allowed_values) - ) - - self._column_type = column_type - - @property - def column_concept(self): - """Gets the column_concept of this ColumnDto. # noqa: E501 - - - :return: The column_concept of this ColumnDto. # noqa: E501 - :rtype: ConceptDto - """ - return self._column_concept - - @column_concept.setter - def column_concept(self, column_concept): - """Sets the column_concept of this ColumnDto. - - - :param column_concept: The column_concept of this ColumnDto. # noqa: E501 - :type: ConceptDto - """ - - self._column_concept = column_concept - - @property - def is_null_allowed(self): - """Gets the is_null_allowed of this ColumnDto. # noqa: E501 - - - :return: The is_null_allowed of this ColumnDto. # noqa: E501 - :rtype: bool - """ - return self._is_null_allowed - - @is_null_allowed.setter - def is_null_allowed(self, is_null_allowed): - """Sets the is_null_allowed of this ColumnDto. - - - :param is_null_allowed: The is_null_allowed of this ColumnDto. # noqa: E501 - :type: bool - """ - if is_null_allowed is None: - raise ValueError("Invalid value for `is_null_allowed`, must not be `None`") # noqa: E501 - - self._is_null_allowed = is_null_allowed - - @property - def check_expression(self): - """Gets the check_expression of this ColumnDto. # noqa: E501 - - - :return: The check_expression of this ColumnDto. # noqa: E501 - :rtype: str - """ - return self._check_expression - - @check_expression.setter - def check_expression(self, check_expression): - """Sets the check_expression of this ColumnDto. - - - :param check_expression: The check_expression of this ColumnDto. # noqa: E501 - :type: str - """ - - self._check_expression = check_expression - - @property - def foreign_key(self): - """Gets the foreign_key of this ColumnDto. # noqa: E501 - - - :return: The foreign_key of this ColumnDto. # noqa: E501 - :rtype: str - """ - return self._foreign_key - - @foreign_key.setter - def foreign_key(self, foreign_key): - """Sets the foreign_key of this ColumnDto. - - - :param foreign_key: The foreign_key of this ColumnDto. # noqa: E501 - :type: str - """ - - self._foreign_key = foreign_key - - @property - def enum_values(self): - """Gets the enum_values of this ColumnDto. # noqa: E501 - - - :return: The enum_values of this ColumnDto. # noqa: E501 - :rtype: list[str] - """ - return self._enum_values - - @enum_values.setter - def enum_values(self, enum_values): - """Sets the enum_values of this ColumnDto. - - - :param enum_values: The enum_values of this ColumnDto. # noqa: E501 - :type: list[str] - """ - - self._enum_values = enum_values - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(ColumnDto, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, ColumnDto): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/swagger/api-table/swagger_client/models/concept_dto.py b/swagger/api-table/swagger_client/models/concept_dto.py deleted file mode 100644 index 7e02a3ae796b19f32d86795638fdbbbf467a3f3d..0000000000000000000000000000000000000000 --- a/swagger/api-table/swagger_client/models/concept_dto.py +++ /dev/null @@ -1,165 +0,0 @@ -# coding: utf-8 - -""" - Database Repository Table Service API - - Service that manages the tables # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -import pprint -import re # noqa: F401 - -import six - -class ConceptDto(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'uri': 'str', - 'name': 'str', - 'created': 'datetime' - } - - attribute_map = { - 'uri': 'uri', - 'name': 'name', - 'created': 'created' - } - - def __init__(self, uri=None, name=None, created=None): # noqa: E501 - """ConceptDto - a model defined in Swagger""" # noqa: E501 - self._uri = None - self._name = None - self._created = None - self.discriminator = None - self.uri = uri - self.name = name - self.created = created - - @property - def uri(self): - """Gets the uri of this ConceptDto. # noqa: E501 - - - :return: The uri of this ConceptDto. # noqa: E501 - :rtype: str - """ - return self._uri - - @uri.setter - def uri(self, uri): - """Sets the uri of this ConceptDto. - - - :param uri: The uri of this ConceptDto. # noqa: E501 - :type: str - """ - if uri is None: - raise ValueError("Invalid value for `uri`, must not be `None`") # noqa: E501 - - self._uri = uri - - @property - def name(self): - """Gets the name of this ConceptDto. # noqa: E501 - - - :return: The name of this ConceptDto. # noqa: E501 - :rtype: str - """ - return self._name - - @name.setter - def name(self, name): - """Sets the name of this ConceptDto. - - - :param name: The name of this ConceptDto. # noqa: E501 - :type: str - """ - if name is None: - raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501 - - self._name = name - - @property - def created(self): - """Gets the created of this ConceptDto. # noqa: E501 - - - :return: The created of this ConceptDto. # noqa: E501 - :rtype: datetime - """ - return self._created - - @created.setter - def created(self, created): - """Sets the created of this ConceptDto. - - - :param created: The created of this ConceptDto. # noqa: E501 - :type: datetime - """ - if created is None: - raise ValueError("Invalid value for `created`, must not be `None`") # noqa: E501 - - self._created = created - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(ConceptDto, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, ConceptDto): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/swagger/api-table/swagger_client/models/granted_authority_dto.py b/swagger/api-table/swagger_client/models/granted_authority_dto.py deleted file mode 100644 index c52fdbe55002c9d0c9662eecdb335c20dca41a10..0000000000000000000000000000000000000000 --- a/swagger/api-table/swagger_client/models/granted_authority_dto.py +++ /dev/null @@ -1,110 +0,0 @@ -# coding: utf-8 - -""" - Database Repository Table Service API - - Service that manages the tables # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -import pprint -import re # noqa: F401 - -import six - -class GrantedAuthorityDto(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'authority': 'str' - } - - attribute_map = { - 'authority': 'authority' - } - - def __init__(self, authority=None): # noqa: E501 - """GrantedAuthorityDto - a model defined in Swagger""" # noqa: E501 - self._authority = None - self.discriminator = None - if authority is not None: - self.authority = authority - - @property - def authority(self): - """Gets the authority of this GrantedAuthorityDto. # noqa: E501 - - - :return: The authority of this GrantedAuthorityDto. # noqa: E501 - :rtype: str - """ - return self._authority - - @authority.setter - def authority(self, authority): - """Sets the authority of this GrantedAuthorityDto. - - - :param authority: The authority of this GrantedAuthorityDto. # noqa: E501 - :type: str - """ - - self._authority = authority - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(GrantedAuthorityDto, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, GrantedAuthorityDto): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/swagger/api-table/swagger_client/models/image_date_dto.py b/swagger/api-table/swagger_client/models/image_date_dto.py deleted file mode 100644 index 7550028900c37eee6f432eb1e8278b9a36a47504..0000000000000000000000000000000000000000 --- a/swagger/api-table/swagger_client/models/image_date_dto.py +++ /dev/null @@ -1,245 +0,0 @@ -# coding: utf-8 - -""" - Database Repository Table Service API - - Service that manages the tables # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -import pprint -import re # noqa: F401 - -import six - -class ImageDateDto(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'id': 'int', - 'example': 'str', - 'database_format': 'str', - 'unix_format': 'str', - 'has_time': 'bool', - 'created_at': 'datetime' - } - - attribute_map = { - 'id': 'id', - 'example': 'example', - 'database_format': 'database_format', - 'unix_format': 'unix_format', - 'has_time': 'has_time', - 'created_at': 'created_at' - } - - def __init__(self, id=None, example=None, database_format=None, unix_format=None, has_time=None, created_at=None): # noqa: E501 - """ImageDateDto - a model defined in Swagger""" # noqa: E501 - self._id = None - self._example = None - self._database_format = None - self._unix_format = None - self._has_time = None - self._created_at = None - self.discriminator = None - self.id = id - self.example = example - self.database_format = database_format - self.unix_format = unix_format - self.has_time = has_time - if created_at is not None: - self.created_at = created_at - - @property - def id(self): - """Gets the id of this ImageDateDto. # noqa: E501 - - - :return: The id of this ImageDateDto. # noqa: E501 - :rtype: int - """ - return self._id - - @id.setter - def id(self, id): - """Sets the id of this ImageDateDto. - - - :param id: The id of this ImageDateDto. # noqa: E501 - :type: int - """ - if id is None: - raise ValueError("Invalid value for `id`, must not be `None`") # noqa: E501 - - self._id = id - - @property - def example(self): - """Gets the example of this ImageDateDto. # noqa: E501 - - - :return: The example of this ImageDateDto. # noqa: E501 - :rtype: str - """ - return self._example - - @example.setter - def example(self, example): - """Sets the example of this ImageDateDto. - - - :param example: The example of this ImageDateDto. # noqa: E501 - :type: str - """ - if example is None: - raise ValueError("Invalid value for `example`, must not be `None`") # noqa: E501 - - self._example = example - - @property - def database_format(self): - """Gets the database_format of this ImageDateDto. # noqa: E501 - - - :return: The database_format of this ImageDateDto. # noqa: E501 - :rtype: str - """ - return self._database_format - - @database_format.setter - def database_format(self, database_format): - """Sets the database_format of this ImageDateDto. - - - :param database_format: The database_format of this ImageDateDto. # noqa: E501 - :type: str - """ - if database_format is None: - raise ValueError("Invalid value for `database_format`, must not be `None`") # noqa: E501 - - self._database_format = database_format - - @property - def unix_format(self): - """Gets the unix_format of this ImageDateDto. # noqa: E501 - - - :return: The unix_format of this ImageDateDto. # noqa: E501 - :rtype: str - """ - return self._unix_format - - @unix_format.setter - def unix_format(self, unix_format): - """Sets the unix_format of this ImageDateDto. - - - :param unix_format: The unix_format of this ImageDateDto. # noqa: E501 - :type: str - """ - if unix_format is None: - raise ValueError("Invalid value for `unix_format`, must not be `None`") # noqa: E501 - - self._unix_format = unix_format - - @property - def has_time(self): - """Gets the has_time of this ImageDateDto. # noqa: E501 - - - :return: The has_time of this ImageDateDto. # noqa: E501 - :rtype: bool - """ - return self._has_time - - @has_time.setter - def has_time(self, has_time): - """Sets the has_time of this ImageDateDto. - - - :param has_time: The has_time of this ImageDateDto. # noqa: E501 - :type: bool - """ - if has_time is None: - raise ValueError("Invalid value for `has_time`, must not be `None`") # noqa: E501 - - self._has_time = has_time - - @property - def created_at(self): - """Gets the created_at of this ImageDateDto. # noqa: E501 - - - :return: The created_at of this ImageDateDto. # noqa: E501 - :rtype: datetime - """ - return self._created_at - - @created_at.setter - def created_at(self, created_at): - """Sets the created_at of this ImageDateDto. - - - :param created_at: The created_at of this ImageDateDto. # noqa: E501 - :type: datetime - """ - - self._created_at = created_at - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(ImageDateDto, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, ImageDateDto): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/swagger/api-table/swagger_client/models/table_brief_dto.py b/swagger/api-table/swagger_client/models/table_brief_dto.py deleted file mode 100644 index a811499bd935581d4021a5783ffd3c5490a9907c..0000000000000000000000000000000000000000 --- a/swagger/api-table/swagger_client/models/table_brief_dto.py +++ /dev/null @@ -1,192 +0,0 @@ -# coding: utf-8 - -""" - Database Repository Table Service API - - Service that manages the tables # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -import pprint -import re # noqa: F401 - -import six - -class TableBriefDto(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'id': 'int', - 'name': 'str', - 'creator': 'UserBriefDto', - 'internal_name': 'str' - } - - attribute_map = { - 'id': 'id', - 'name': 'name', - 'creator': 'creator', - 'internal_name': 'internal_name' - } - - def __init__(self, id=None, name=None, creator=None, internal_name=None): # noqa: E501 - """TableBriefDto - a model defined in Swagger""" # noqa: E501 - self._id = None - self._name = None - self._creator = None - self._internal_name = None - self.discriminator = None - self.id = id - self.name = name - self.creator = creator - self.internal_name = internal_name - - @property - def id(self): - """Gets the id of this TableBriefDto. # noqa: E501 - - - :return: The id of this TableBriefDto. # noqa: E501 - :rtype: int - """ - return self._id - - @id.setter - def id(self, id): - """Sets the id of this TableBriefDto. - - - :param id: The id of this TableBriefDto. # noqa: E501 - :type: int - """ - if id is None: - raise ValueError("Invalid value for `id`, must not be `None`") # noqa: E501 - - self._id = id - - @property - def name(self): - """Gets the name of this TableBriefDto. # noqa: E501 - - - :return: The name of this TableBriefDto. # noqa: E501 - :rtype: str - """ - return self._name - - @name.setter - def name(self, name): - """Sets the name of this TableBriefDto. - - - :param name: The name of this TableBriefDto. # noqa: E501 - :type: str - """ - if name is None: - raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501 - - self._name = name - - @property - def creator(self): - """Gets the creator of this TableBriefDto. # noqa: E501 - - - :return: The creator of this TableBriefDto. # noqa: E501 - :rtype: UserBriefDto - """ - return self._creator - - @creator.setter - def creator(self, creator): - """Sets the creator of this TableBriefDto. - - - :param creator: The creator of this TableBriefDto. # noqa: E501 - :type: UserBriefDto - """ - if creator is None: - raise ValueError("Invalid value for `creator`, must not be `None`") # noqa: E501 - - self._creator = creator - - @property - def internal_name(self): - """Gets the internal_name of this TableBriefDto. # noqa: E501 - - - :return: The internal_name of this TableBriefDto. # noqa: E501 - :rtype: str - """ - return self._internal_name - - @internal_name.setter - def internal_name(self, internal_name): - """Sets the internal_name of this TableBriefDto. - - - :param internal_name: The internal_name of this TableBriefDto. # noqa: E501 - :type: str - """ - if internal_name is None: - raise ValueError("Invalid value for `internal_name`, must not be `None`") # noqa: E501 - - self._internal_name = internal_name - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(TableBriefDto, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, TableBriefDto): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/swagger/api-table/swagger_client/models/table_create_dto.py b/swagger/api-table/swagger_client/models/table_create_dto.py deleted file mode 100644 index b80fd32e1fc602b5834e167df02cf02a5dc12c3a..0000000000000000000000000000000000000000 --- a/swagger/api-table/swagger_client/models/table_create_dto.py +++ /dev/null @@ -1,165 +0,0 @@ -# coding: utf-8 - -""" - Database Repository Table Service API - - Service that manages the tables # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -import pprint -import re # noqa: F401 - -import six - -class TableCreateDto(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'name': 'str', - 'description': 'str', - 'columns': 'list[ColumnCreateDto]' - } - - attribute_map = { - 'name': 'name', - 'description': 'description', - 'columns': 'columns' - } - - def __init__(self, name=None, description=None, columns=None): # noqa: E501 - """TableCreateDto - a model defined in Swagger""" # noqa: E501 - self._name = None - self._description = None - self._columns = None - self.discriminator = None - self.name = name - self.description = description - self.columns = columns - - @property - def name(self): - """Gets the name of this TableCreateDto. # noqa: E501 - - - :return: The name of this TableCreateDto. # noqa: E501 - :rtype: str - """ - return self._name - - @name.setter - def name(self, name): - """Sets the name of this TableCreateDto. - - - :param name: The name of this TableCreateDto. # noqa: E501 - :type: str - """ - if name is None: - raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501 - - self._name = name - - @property - def description(self): - """Gets the description of this TableCreateDto. # noqa: E501 - - - :return: The description of this TableCreateDto. # noqa: E501 - :rtype: str - """ - return self._description - - @description.setter - def description(self, description): - """Sets the description of this TableCreateDto. - - - :param description: The description of this TableCreateDto. # noqa: E501 - :type: str - """ - if description is None: - raise ValueError("Invalid value for `description`, must not be `None`") # noqa: E501 - - self._description = description - - @property - def columns(self): - """Gets the columns of this TableCreateDto. # noqa: E501 - - - :return: The columns of this TableCreateDto. # noqa: E501 - :rtype: list[ColumnCreateDto] - """ - return self._columns - - @columns.setter - def columns(self, columns): - """Sets the columns of this TableCreateDto. - - - :param columns: The columns of this TableCreateDto. # noqa: E501 - :type: list[ColumnCreateDto] - """ - if columns is None: - raise ValueError("Invalid value for `columns`, must not be `None`") # noqa: E501 - - self._columns = columns - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(TableCreateDto, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, TableCreateDto): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/swagger/api-table/swagger_client/models/table_dto.py b/swagger/api-table/swagger_client/models/table_dto.py deleted file mode 100644 index 00af01d052aaddfcda9f0b561dd283325fcd43bd..0000000000000000000000000000000000000000 --- a/swagger/api-table/swagger_client/models/table_dto.py +++ /dev/null @@ -1,299 +0,0 @@ -# coding: utf-8 - -""" - Database Repository Table Service API - - Service that manages the tables # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -import pprint -import re # noqa: F401 - -import six - -class TableDto(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'id': 'int', - 'name': 'str', - 'creator': 'UserBriefDto', - 'topic': 'str', - 'description': 'str', - 'created': 'datetime', - 'columns': 'list[ColumnDto]', - 'internal_name': 'str' - } - - attribute_map = { - 'id': 'id', - 'name': 'name', - 'creator': 'creator', - 'topic': 'topic', - 'description': 'description', - 'created': 'created', - 'columns': 'columns', - 'internal_name': 'internal_name' - } - - def __init__(self, id=None, name=None, creator=None, topic=None, description=None, created=None, columns=None, internal_name=None): # noqa: E501 - """TableDto - a model defined in Swagger""" # noqa: E501 - self._id = None - self._name = None - self._creator = None - self._topic = None - self._description = None - self._created = None - self._columns = None - self._internal_name = None - self.discriminator = None - self.id = id - self.name = name - self.creator = creator - self.topic = topic - self.description = description - if created is not None: - self.created = created - self.columns = columns - self.internal_name = internal_name - - @property - def id(self): - """Gets the id of this TableDto. # noqa: E501 - - - :return: The id of this TableDto. # noqa: E501 - :rtype: int - """ - return self._id - - @id.setter - def id(self, id): - """Sets the id of this TableDto. - - - :param id: The id of this TableDto. # noqa: E501 - :type: int - """ - if id is None: - raise ValueError("Invalid value for `id`, must not be `None`") # noqa: E501 - - self._id = id - - @property - def name(self): - """Gets the name of this TableDto. # noqa: E501 - - - :return: The name of this TableDto. # noqa: E501 - :rtype: str - """ - return self._name - - @name.setter - def name(self, name): - """Sets the name of this TableDto. - - - :param name: The name of this TableDto. # noqa: E501 - :type: str - """ - if name is None: - raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501 - - self._name = name - - @property - def creator(self): - """Gets the creator of this TableDto. # noqa: E501 - - - :return: The creator of this TableDto. # noqa: E501 - :rtype: UserBriefDto - """ - return self._creator - - @creator.setter - def creator(self, creator): - """Sets the creator of this TableDto. - - - :param creator: The creator of this TableDto. # noqa: E501 - :type: UserBriefDto - """ - if creator is None: - raise ValueError("Invalid value for `creator`, must not be `None`") # noqa: E501 - - self._creator = creator - - @property - def topic(self): - """Gets the topic of this TableDto. # noqa: E501 - - - :return: The topic of this TableDto. # noqa: E501 - :rtype: str - """ - return self._topic - - @topic.setter - def topic(self, topic): - """Sets the topic of this TableDto. - - - :param topic: The topic of this TableDto. # noqa: E501 - :type: str - """ - if topic is None: - raise ValueError("Invalid value for `topic`, must not be `None`") # noqa: E501 - - self._topic = topic - - @property - def description(self): - """Gets the description of this TableDto. # noqa: E501 - - - :return: The description of this TableDto. # noqa: E501 - :rtype: str - """ - return self._description - - @description.setter - def description(self, description): - """Sets the description of this TableDto. - - - :param description: The description of this TableDto. # noqa: E501 - :type: str - """ - if description is None: - raise ValueError("Invalid value for `description`, must not be `None`") # noqa: E501 - - self._description = description - - @property - def created(self): - """Gets the created of this TableDto. # noqa: E501 - - - :return: The created of this TableDto. # noqa: E501 - :rtype: datetime - """ - return self._created - - @created.setter - def created(self, created): - """Sets the created of this TableDto. - - - :param created: The created of this TableDto. # noqa: E501 - :type: datetime - """ - - self._created = created - - @property - def columns(self): - """Gets the columns of this TableDto. # noqa: E501 - - - :return: The columns of this TableDto. # noqa: E501 - :rtype: list[ColumnDto] - """ - return self._columns - - @columns.setter - def columns(self, columns): - """Sets the columns of this TableDto. - - - :param columns: The columns of this TableDto. # noqa: E501 - :type: list[ColumnDto] - """ - if columns is None: - raise ValueError("Invalid value for `columns`, must not be `None`") # noqa: E501 - - self._columns = columns - - @property - def internal_name(self): - """Gets the internal_name of this TableDto. # noqa: E501 - - - :return: The internal_name of this TableDto. # noqa: E501 - :rtype: str - """ - return self._internal_name - - @internal_name.setter - def internal_name(self, internal_name): - """Sets the internal_name of this TableDto. - - - :param internal_name: The internal_name of this TableDto. # noqa: E501 - :type: str - """ - if internal_name is None: - raise ValueError("Invalid value for `internal_name`, must not be `None`") # noqa: E501 - - self._internal_name = internal_name - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(TableDto, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, TableDto): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/swagger/api-table/swagger_client/models/user_brief_dto.py b/swagger/api-table/swagger_client/models/user_brief_dto.py deleted file mode 100644 index ed701ff11ae01e4d93dab071529b088e3c330ae9..0000000000000000000000000000000000000000 --- a/swagger/api-table/swagger_client/models/user_brief_dto.py +++ /dev/null @@ -1,350 +0,0 @@ -# coding: utf-8 - -""" - Database Repository Table Service API - - Service that manages the tables # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -import pprint -import re # noqa: F401 - -import six - -class UserBriefDto(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'id': 'int', - 'username': 'str', - 'firstname': 'str', - 'lastname': 'str', - 'affiliation': 'str', - 'orcid': 'str', - 'titles_before': 'str', - 'titles_after': 'str', - 'theme_dark': 'bool', - 'email_verified': 'bool' - } - - attribute_map = { - 'id': 'id', - 'username': 'username', - 'firstname': 'firstname', - 'lastname': 'lastname', - 'affiliation': 'affiliation', - 'orcid': 'orcid', - 'titles_before': 'titles_before', - 'titles_after': 'titles_after', - 'theme_dark': 'theme_dark', - 'email_verified': 'email_verified' - } - - def __init__(self, id=None, username=None, firstname=None, lastname=None, affiliation=None, orcid=None, titles_before=None, titles_after=None, theme_dark=None, email_verified=None): # noqa: E501 - """UserBriefDto - a model defined in Swagger""" # noqa: E501 - self._id = None - self._username = None - self._firstname = None - self._lastname = None - self._affiliation = None - self._orcid = None - self._titles_before = None - self._titles_after = None - self._theme_dark = None - self._email_verified = None - self.discriminator = None - self.id = id - self.username = username - if firstname is not None: - self.firstname = firstname - if lastname is not None: - self.lastname = lastname - if affiliation is not None: - self.affiliation = affiliation - if orcid is not None: - self.orcid = orcid - if titles_before is not None: - self.titles_before = titles_before - if titles_after is not None: - self.titles_after = titles_after - self.theme_dark = theme_dark - self.email_verified = email_verified - - @property - def id(self): - """Gets the id of this UserBriefDto. # noqa: E501 - - - :return: The id of this UserBriefDto. # noqa: E501 - :rtype: int - """ - return self._id - - @id.setter - def id(self, id): - """Sets the id of this UserBriefDto. - - - :param id: The id of this UserBriefDto. # noqa: E501 - :type: int - """ - if id is None: - raise ValueError("Invalid value for `id`, must not be `None`") # noqa: E501 - - self._id = id - - @property - def username(self): - """Gets the username of this UserBriefDto. # noqa: E501 - - Only contains lowercase characters # noqa: E501 - - :return: The username of this UserBriefDto. # noqa: E501 - :rtype: str - """ - return self._username - - @username.setter - def username(self, username): - """Sets the username of this UserBriefDto. - - Only contains lowercase characters # noqa: E501 - - :param username: The username of this UserBriefDto. # noqa: E501 - :type: str - """ - if username is None: - raise ValueError("Invalid value for `username`, must not be `None`") # noqa: E501 - - self._username = username - - @property - def firstname(self): - """Gets the firstname of this UserBriefDto. # noqa: E501 - - - :return: The firstname of this UserBriefDto. # noqa: E501 - :rtype: str - """ - return self._firstname - - @firstname.setter - def firstname(self, firstname): - """Sets the firstname of this UserBriefDto. - - - :param firstname: The firstname of this UserBriefDto. # noqa: E501 - :type: str - """ - - self._firstname = firstname - - @property - def lastname(self): - """Gets the lastname of this UserBriefDto. # noqa: E501 - - - :return: The lastname of this UserBriefDto. # noqa: E501 - :rtype: str - """ - return self._lastname - - @lastname.setter - def lastname(self, lastname): - """Sets the lastname of this UserBriefDto. - - - :param lastname: The lastname of this UserBriefDto. # noqa: E501 - :type: str - """ - - self._lastname = lastname - - @property - def affiliation(self): - """Gets the affiliation of this UserBriefDto. # noqa: E501 - - - :return: The affiliation of this UserBriefDto. # noqa: E501 - :rtype: str - """ - return self._affiliation - - @affiliation.setter - def affiliation(self, affiliation): - """Sets the affiliation of this UserBriefDto. - - - :param affiliation: The affiliation of this UserBriefDto. # noqa: E501 - :type: str - """ - - self._affiliation = affiliation - - @property - def orcid(self): - """Gets the orcid of this UserBriefDto. # noqa: E501 - - - :return: The orcid of this UserBriefDto. # noqa: E501 - :rtype: str - """ - return self._orcid - - @orcid.setter - def orcid(self, orcid): - """Sets the orcid of this UserBriefDto. - - - :param orcid: The orcid of this UserBriefDto. # noqa: E501 - :type: str - """ - - self._orcid = orcid - - @property - def titles_before(self): - """Gets the titles_before of this UserBriefDto. # noqa: E501 - - - :return: The titles_before of this UserBriefDto. # noqa: E501 - :rtype: str - """ - return self._titles_before - - @titles_before.setter - def titles_before(self, titles_before): - """Sets the titles_before of this UserBriefDto. - - - :param titles_before: The titles_before of this UserBriefDto. # noqa: E501 - :type: str - """ - - self._titles_before = titles_before - - @property - def titles_after(self): - """Gets the titles_after of this UserBriefDto. # noqa: E501 - - - :return: The titles_after of this UserBriefDto. # noqa: E501 - :rtype: str - """ - return self._titles_after - - @titles_after.setter - def titles_after(self, titles_after): - """Sets the titles_after of this UserBriefDto. - - - :param titles_after: The titles_after of this UserBriefDto. # noqa: E501 - :type: str - """ - - self._titles_after = titles_after - - @property - def theme_dark(self): - """Gets the theme_dark of this UserBriefDto. # noqa: E501 - - - :return: The theme_dark of this UserBriefDto. # noqa: E501 - :rtype: bool - """ - return self._theme_dark - - @theme_dark.setter - def theme_dark(self, theme_dark): - """Sets the theme_dark of this UserBriefDto. - - - :param theme_dark: The theme_dark of this UserBriefDto. # noqa: E501 - :type: bool - """ - if theme_dark is None: - raise ValueError("Invalid value for `theme_dark`, must not be `None`") # noqa: E501 - - self._theme_dark = theme_dark - - @property - def email_verified(self): - """Gets the email_verified of this UserBriefDto. # noqa: E501 - - - :return: The email_verified of this UserBriefDto. # noqa: E501 - :rtype: bool - """ - return self._email_verified - - @email_verified.setter - def email_verified(self, email_verified): - """Sets the email_verified of this UserBriefDto. - - - :param email_verified: The email_verified of this UserBriefDto. # noqa: E501 - :type: bool - """ - if email_verified is None: - raise ValueError("Invalid value for `email_verified`, must not be `None`") # noqa: E501 - - self._email_verified = email_verified - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(UserBriefDto, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, UserBriefDto): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/swagger/api-table/swagger_client/rest.py b/swagger/api-table/swagger_client/rest.py deleted file mode 100644 index 6796e1ae47c980a57126ed5dd684a10cd09e3e00..0000000000000000000000000000000000000000 --- a/swagger/api-table/swagger_client/rest.py +++ /dev/null @@ -1,317 +0,0 @@ -# coding: utf-8 - -""" - Database Repository Table Service API - - Service that manages the tables # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -from __future__ import absolute_import - -import io -import json -import logging -import re -import ssl - -import certifi -# python 2 and python 3 compatibility library -import six -from six.moves.urllib.parse import urlencode - -try: - import urllib3 -except ImportError: - raise ImportError('Swagger python client requires urllib3.') - - -logger = logging.getLogger(__name__) - - -class RESTResponse(io.IOBase): - - def __init__(self, resp): - self.urllib3_response = resp - self.status = resp.status - self.reason = resp.reason - self.data = resp.data - - def getheaders(self): - """Returns a dictionary of the response headers.""" - return self.urllib3_response.getheaders() - - def getheader(self, name, default=None): - """Returns a given response header.""" - return self.urllib3_response.getheader(name, default) - - -class RESTClientObject(object): - - def __init__(self, configuration, pools_size=4, maxsize=None): - # urllib3.PoolManager will pass all kw parameters to connectionpool - # https://github.com/shazow/urllib3/blob/f9409436f83aeb79fbaf090181cd81b784f1b8ce/urllib3/poolmanager.py#L75 # noqa: E501 - # https://github.com/shazow/urllib3/blob/f9409436f83aeb79fbaf090181cd81b784f1b8ce/urllib3/connectionpool.py#L680 # noqa: E501 - # maxsize is the number of requests to host that are allowed in parallel # noqa: E501 - # Custom SSL certificates and client certificates: http://urllib3.readthedocs.io/en/latest/advanced-usage.html # noqa: E501 - - # cert_reqs - if configuration.verify_ssl: - cert_reqs = ssl.CERT_REQUIRED - else: - cert_reqs = ssl.CERT_NONE - - # ca_certs - if configuration.ssl_ca_cert: - ca_certs = configuration.ssl_ca_cert - else: - # if not set certificate file, use Mozilla's root certificates. - ca_certs = certifi.where() - - addition_pool_args = {} - if configuration.assert_hostname is not None: - addition_pool_args['assert_hostname'] = configuration.assert_hostname # noqa: E501 - - if maxsize is None: - if configuration.connection_pool_maxsize is not None: - maxsize = configuration.connection_pool_maxsize - else: - maxsize = 4 - - # https pool manager - if configuration.proxy: - self.pool_manager = urllib3.ProxyManager( - num_pools=pools_size, - maxsize=maxsize, - cert_reqs=cert_reqs, - ca_certs=ca_certs, - cert_file=configuration.cert_file, - key_file=configuration.key_file, - proxy_url=configuration.proxy, - **addition_pool_args - ) - else: - self.pool_manager = urllib3.PoolManager( - num_pools=pools_size, - maxsize=maxsize, - cert_reqs=cert_reqs, - ca_certs=ca_certs, - cert_file=configuration.cert_file, - key_file=configuration.key_file, - **addition_pool_args - ) - - def request(self, method, url, query_params=None, headers=None, - body=None, post_params=None, _preload_content=True, - _request_timeout=None): - """Perform requests. - - :param method: http request method - :param url: http request url - :param query_params: query parameters in the url - :param headers: http request headers - :param body: request json body, for `application/json` - :param post_params: request post parameters, - `application/x-www-form-urlencoded` - and `multipart/form-data` - :param _preload_content: if False, the urllib3.HTTPResponse object will - be returned without reading/decoding response - data. Default is True. - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - """ - method = method.upper() - assert method in ['GET', 'HEAD', 'DELETE', 'POST', 'PUT', - 'PATCH', 'OPTIONS'] - - if post_params and body: - raise ValueError( - "body parameter cannot be used with post_params parameter." - ) - - post_params = post_params or {} - headers = headers or {} - - timeout = None - if _request_timeout: - if isinstance(_request_timeout, (int, ) if six.PY3 else (int, long)): # noqa: E501,F821 - timeout = urllib3.Timeout(total=_request_timeout) - elif (isinstance(_request_timeout, tuple) and - len(_request_timeout) == 2): - timeout = urllib3.Timeout( - connect=_request_timeout[0], read=_request_timeout[1]) - - if 'Content-Type' not in headers: - headers['Content-Type'] = 'application/json' - - try: - # For `POST`, `PUT`, `PATCH`, `OPTIONS`, `DELETE` - if method in ['POST', 'PUT', 'PATCH', 'OPTIONS', 'DELETE']: - if query_params: - url += '?' + urlencode(query_params) - if re.search('json', headers['Content-Type'], re.IGNORECASE): - request_body = '{}' - if body is not None: - request_body = json.dumps(body) - r = self.pool_manager.request( - method, url, - body=request_body, - preload_content=_preload_content, - timeout=timeout, - headers=headers) - elif headers['Content-Type'] == 'application/x-www-form-urlencoded': # noqa: E501 - r = self.pool_manager.request( - method, url, - fields=post_params, - encode_multipart=False, - preload_content=_preload_content, - timeout=timeout, - headers=headers) - elif headers['Content-Type'] == 'multipart/form-data': - # must del headers['Content-Type'], or the correct - # Content-Type which generated by urllib3 will be - # overwritten. - del headers['Content-Type'] - r = self.pool_manager.request( - method, url, - fields=post_params, - encode_multipart=True, - preload_content=_preload_content, - timeout=timeout, - headers=headers) - # Pass a `string` parameter directly in the body to support - # other content types than Json when `body` argument is - # provided in serialized form - elif isinstance(body, str): - request_body = body - r = self.pool_manager.request( - method, url, - body=request_body, - preload_content=_preload_content, - timeout=timeout, - headers=headers) - else: - # Cannot generate the request from given parameters - msg = """Cannot prepare a request message for provided - arguments. Please check that your arguments match - declared content type.""" - raise ApiException(status=0, reason=msg) - # For `GET`, `HEAD` - else: - r = self.pool_manager.request(method, url, - fields=query_params, - preload_content=_preload_content, - timeout=timeout, - headers=headers) - except urllib3.exceptions.SSLError as e: - msg = "{0}\n{1}".format(type(e).__name__, str(e)) - raise ApiException(status=0, reason=msg) - - if _preload_content: - r = RESTResponse(r) - - # log response body - logger.debug("response body: %s", r.data) - - if not 200 <= r.status <= 299: - raise ApiException(http_resp=r) - - return r - - def GET(self, url, headers=None, query_params=None, _preload_content=True, - _request_timeout=None): - return self.request("GET", url, - headers=headers, - _preload_content=_preload_content, - _request_timeout=_request_timeout, - query_params=query_params) - - def HEAD(self, url, headers=None, query_params=None, _preload_content=True, - _request_timeout=None): - return self.request("HEAD", url, - headers=headers, - _preload_content=_preload_content, - _request_timeout=_request_timeout, - query_params=query_params) - - def OPTIONS(self, url, headers=None, query_params=None, post_params=None, - body=None, _preload_content=True, _request_timeout=None): - return self.request("OPTIONS", url, - headers=headers, - query_params=query_params, - post_params=post_params, - _preload_content=_preload_content, - _request_timeout=_request_timeout, - body=body) - - def DELETE(self, url, headers=None, query_params=None, body=None, - _preload_content=True, _request_timeout=None): - return self.request("DELETE", url, - headers=headers, - query_params=query_params, - _preload_content=_preload_content, - _request_timeout=_request_timeout, - body=body) - - def POST(self, url, headers=None, query_params=None, post_params=None, - body=None, _preload_content=True, _request_timeout=None): - return self.request("POST", url, - headers=headers, - query_params=query_params, - post_params=post_params, - _preload_content=_preload_content, - _request_timeout=_request_timeout, - body=body) - - def PUT(self, url, headers=None, query_params=None, post_params=None, - body=None, _preload_content=True, _request_timeout=None): - return self.request("PUT", url, - headers=headers, - query_params=query_params, - post_params=post_params, - _preload_content=_preload_content, - _request_timeout=_request_timeout, - body=body) - - def PATCH(self, url, headers=None, query_params=None, post_params=None, - body=None, _preload_content=True, _request_timeout=None): - return self.request("PATCH", url, - headers=headers, - query_params=query_params, - post_params=post_params, - _preload_content=_preload_content, - _request_timeout=_request_timeout, - body=body) - - -class ApiException(Exception): - - def __init__(self, status=None, reason=None, http_resp=None): - if http_resp: - self.status = http_resp.status - self.reason = http_resp.reason - self.body = http_resp.data - self.headers = http_resp.getheaders() - else: - self.status = status - self.reason = reason - self.body = None - self.headers = None - - def __str__(self): - """Custom error messages for exception""" - error_message = "({0})\n"\ - "Reason: {1}\n".format(self.status, self.reason) - if self.headers: - error_message += "HTTP response headers: {0}\n".format( - self.headers) - - if self.body: - error_message += "HTTP response body: {0}\n".format(self.body) - - return error_message diff --git a/swagger/api-table/test-requirements.txt b/swagger/api-table/test-requirements.txt deleted file mode 100644 index 2702246c0e6f92a1c41c0960879e07da339e4b7d..0000000000000000000000000000000000000000 --- a/swagger/api-table/test-requirements.txt +++ /dev/null @@ -1,5 +0,0 @@ -coverage>=4.0.3 -nose>=1.3.7 -pluggy>=0.3.1 -py>=1.4.31 -randomize>=0.13 diff --git a/swagger/api-table/test/__init__.py b/swagger/api-table/test/__init__.py deleted file mode 100644 index e69de29bb2d1d6434b8b29ae775ad8c2e48c5391..0000000000000000000000000000000000000000 diff --git a/swagger/api-table/test/test_api_error_dto.py b/swagger/api-table/test/test_api_error_dto.py deleted file mode 100644 index e9ce97af9f6d126e2fa84c4805a015a51873b135..0000000000000000000000000000000000000000 --- a/swagger/api-table/test/test_api_error_dto.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Database Repository Table Service API - - Service that manages the tables # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -from __future__ import absolute_import - -import unittest - -import api_container -from api_container.models.api_error_dto import ApiErrorDto # noqa: E501 -from api_container.rest import ApiException - - -class TestApiErrorDto(unittest.TestCase): - """ApiErrorDto unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testApiErrorDto(self): - """Test ApiErrorDto""" - # FIXME: construct object with mandatory attributes with example values - # model = api_container.models.api_error_dto.ApiErrorDto() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/swagger/api-table/test/test_column_create_dto.py b/swagger/api-table/test/test_column_create_dto.py deleted file mode 100644 index 93a86e42cca150eed153978ccd01dbb9a4634745..0000000000000000000000000000000000000000 --- a/swagger/api-table/test/test_column_create_dto.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Database Repository Table Service API - - Service that manages the tables # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -from __future__ import absolute_import - -import unittest - -import api_container -from api_container.models.column_create_dto import ColumnCreateDto # noqa: E501 -from api_container.rest import ApiException - - -class TestColumnCreateDto(unittest.TestCase): - """ColumnCreateDto unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testColumnCreateDto(self): - """Test ColumnCreateDto""" - # FIXME: construct object with mandatory attributes with example values - # model = api_container.models.column_create_dto.ColumnCreateDto() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/swagger/api-table/test/test_column_dto.py b/swagger/api-table/test/test_column_dto.py deleted file mode 100644 index a85182dca7810086649c44a1b4bfa55342be136d..0000000000000000000000000000000000000000 --- a/swagger/api-table/test/test_column_dto.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Database Repository Table Service API - - Service that manages the tables # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -from __future__ import absolute_import - -import unittest - -import api_container -from api_container.models.column_dto import ColumnDto # noqa: E501 -from api_container.rest import ApiException - - -class TestColumnDto(unittest.TestCase): - """ColumnDto unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testColumnDto(self): - """Test ColumnDto""" - # FIXME: construct object with mandatory attributes with example values - # model = api_container.models.column_dto.ColumnDto() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/swagger/api-table/test/test_concept_dto.py b/swagger/api-table/test/test_concept_dto.py deleted file mode 100644 index 0391e73379b00bd155e173c8fda763d9aee50beb..0000000000000000000000000000000000000000 --- a/swagger/api-table/test/test_concept_dto.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Database Repository Table Service API - - Service that manages the tables # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -from __future__ import absolute_import - -import unittest - -import api_container -from api_container.models.concept_dto import ConceptDto # noqa: E501 -from api_container.rest import ApiException - - -class TestConceptDto(unittest.TestCase): - """ConceptDto unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testConceptDto(self): - """Test ConceptDto""" - # FIXME: construct object with mandatory attributes with example values - # model = api_container.models.concept_dto.ConceptDto() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/swagger/api-table/test/test_granted_authority_dto.py b/swagger/api-table/test/test_granted_authority_dto.py deleted file mode 100644 index 4e587d472452fd81d5c0eeae39b2e7e1ad368d29..0000000000000000000000000000000000000000 --- a/swagger/api-table/test/test_granted_authority_dto.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Database Repository Table Service API - - Service that manages the tables # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -from __future__ import absolute_import - -import unittest - -import swagger_client -from swagger_client.models.granted_authority_dto import GrantedAuthorityDto # noqa: E501 -from swagger_client.rest import ApiException - - -class TestGrantedAuthorityDto(unittest.TestCase): - """GrantedAuthorityDto unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testGrantedAuthorityDto(self): - """Test GrantedAuthorityDto""" - # FIXME: construct object with mandatory attributes with example values - # model = swagger_client.models.granted_authority_dto.GrantedAuthorityDto() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/swagger/api-table/test/test_image_date_dto.py b/swagger/api-table/test/test_image_date_dto.py deleted file mode 100644 index d5fb5b278e8b245a182cb9d2faad2a6712626343..0000000000000000000000000000000000000000 --- a/swagger/api-table/test/test_image_date_dto.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Database Repository Table Service API - - Service that manages the tables # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -from __future__ import absolute_import - -import unittest - -import api_container -from api_container.models.image_date_dto import ImageDateDto # noqa: E501 -from api_container.rest import ApiException - - -class TestImageDateDto(unittest.TestCase): - """ImageDateDto unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testImageDateDto(self): - """Test ImageDateDto""" - # FIXME: construct object with mandatory attributes with example values - # model = api_container.models.image_date_dto.ImageDateDto() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/swagger/api-table/test/test_table_brief_dto.py b/swagger/api-table/test/test_table_brief_dto.py deleted file mode 100644 index 4e182a2d457b5a576eae14b8e0c87cbd37991deb..0000000000000000000000000000000000000000 --- a/swagger/api-table/test/test_table_brief_dto.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Database Repository Table Service API - - Service that manages the tables # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -from __future__ import absolute_import - -import unittest - -import api_container -from api_container.models.table_brief_dto import TableBriefDto # noqa: E501 -from api_container.rest import ApiException - - -class TestTableBriefDto(unittest.TestCase): - """TableBriefDto unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testTableBriefDto(self): - """Test TableBriefDto""" - # FIXME: construct object with mandatory attributes with example values - # model = api_container.models.table_brief_dto.TableBriefDto() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/swagger/api-table/test/test_table_create_dto.py b/swagger/api-table/test/test_table_create_dto.py deleted file mode 100644 index 10c821e453ae0ac4caca7b9dbae1f5a6b3303e06..0000000000000000000000000000000000000000 --- a/swagger/api-table/test/test_table_create_dto.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Database Repository Table Service API - - Service that manages the tables # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -from __future__ import absolute_import - -import unittest - -import api_container -from api_container.models.table_create_dto import TableCreateDto # noqa: E501 -from api_container.rest import ApiException - - -class TestTableCreateDto(unittest.TestCase): - """TableCreateDto unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testTableCreateDto(self): - """Test TableCreateDto""" - # FIXME: construct object with mandatory attributes with example values - # model = api_container.models.table_create_dto.TableCreateDto() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/swagger/api-table/test/test_table_dto.py b/swagger/api-table/test/test_table_dto.py deleted file mode 100644 index 9ba563126212dc2be5acd8ad797a2b4369324751..0000000000000000000000000000000000000000 --- a/swagger/api-table/test/test_table_dto.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Database Repository Table Service API - - Service that manages the tables # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -from __future__ import absolute_import - -import unittest - -import api_container -from api_container.models.table_dto import TableDto # noqa: E501 -from api_container.rest import ApiException - - -class TestTableDto(unittest.TestCase): - """TableDto unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testTableDto(self): - """Test TableDto""" - # FIXME: construct object with mandatory attributes with example values - # model = api_container.models.table_dto.TableDto() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/swagger/api-table/test/test_table_endpoint_api.py b/swagger/api-table/test/test_table_endpoint_api.py deleted file mode 100644 index e74c478b535b65b01dc7d91c133c6337e1cbd4c6..0000000000000000000000000000000000000000 --- a/swagger/api-table/test/test_table_endpoint_api.py +++ /dev/null @@ -1,68 +0,0 @@ -# coding: utf-8 - -""" - Database Repository Table Service API - - Service that manages the tables # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -from __future__ import absolute_import - -import unittest - -import api_container -from api_container.api.table_endpoint_api import TableEndpointApi # noqa: E501 -from api_container.rest import ApiException - - -class TestTableEndpointApi(unittest.TestCase): - """TableEndpointApi unit test stubs""" - - def setUp(self): - self.api = TableEndpointApi() # noqa: E501 - - def tearDown(self): - pass - - def test_create(self): - """Test case for create - - Create a table # noqa: E501 - """ - pass - - def test_delete(self): - """Test case for delete - - Delete a table # noqa: E501 - """ - pass - - def test_find_all(self): - """Test case for find_all - - List all tables # noqa: E501 - """ - pass - - def test_find_by_id(self): - """Test case for find_by_id - - Get information about table # noqa: E501 - """ - pass - - def test_update(self): - """Test case for update - - Update a table # noqa: E501 - """ - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/swagger/api-table/test/test_user_brief_dto.py b/swagger/api-table/test/test_user_brief_dto.py deleted file mode 100644 index b1c527e4d22229a1b8d2d3840893afe4de46f1b4..0000000000000000000000000000000000000000 --- a/swagger/api-table/test/test_user_brief_dto.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Database Repository Table Service API - - Service that manages the tables # noqa: E501 - - OpenAPI spec version: 1.1.0-alpha - Contact: andreas.rauber@tuwien.ac.at - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -from __future__ import absolute_import - -import unittest - -import swagger_client -from swagger_client.models.user_brief_dto import UserBriefDto # noqa: E501 -from swagger_client.rest import ApiException - - -class TestUserBriefDto(unittest.TestCase): - """UserBriefDto unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testUserBriefDto(self): - """Test UserBriefDto""" - # FIXME: construct object with mandatory attributes with example values - # model = swagger_client.models.user_brief_dto.UserBriefDto() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/swagger/api-table/tox.ini b/swagger/api-table/tox.ini deleted file mode 100644 index a310bec97d689718c92c84c9aebc6ab031f12933..0000000000000000000000000000000000000000 --- a/swagger/api-table/tox.ini +++ /dev/null @@ -1,10 +0,0 @@ -[tox] -envlist = py3 - -[testenv] -deps=-r{toxinidir}/requirements.txt - -r{toxinidir}/test-requirements.txt - -commands= - nosetests \ - [] diff --git a/swagger/api-units/.gitignore b/swagger/api-units/.gitignore deleted file mode 100644 index a655050c2631466828b5b8bfc59ae27f9ac02dc5..0000000000000000000000000000000000000000 --- a/swagger/api-units/.gitignore +++ /dev/null @@ -1,64 +0,0 @@ -# Byte-compiled / optimized / DLL files -__pycache__/ -*.py[cod] -*$py.class - -# C extensions -*.so - -# Distribution / packaging -.Python -env/ -build/ -develop-eggs/ -dist/ -downloads/ -eggs/ -.eggs/ -lib/ -lib64/ -parts/ -sdist/ -var/ -*.egg-info/ -.installed.cfg -*.egg - -# PyInstaller -# Usually these files are written by a python script from a template -# before PyInstaller builds the exe, so as to inject date/other infos into it. -*.manifest -*.spec - -# Installer logs -pip-log.txt -pip-delete-this-directory.txt - -# Unit test / coverage reports -htmlcov/ -.tox/ -.coverage -.coverage.* -.cache -nosetests.xml -coverage.xml -*,cover -.hypothesis/ -venv/ -.python-version - -# Translations -*.mo -*.pot - -# Django stuff: -*.log - -# Sphinx documentation -docs/_build/ - -# PyBuilder -target/ - -#Ipython Notebook -.ipynb_checkpoints diff --git a/swagger/api-units/.swagger-codegen-ignore b/swagger/api-units/.swagger-codegen-ignore deleted file mode 100644 index c5fa491b4c557bf997d5dd21797de782545dc9e5..0000000000000000000000000000000000000000 --- a/swagger/api-units/.swagger-codegen-ignore +++ /dev/null @@ -1,23 +0,0 @@ -# Swagger Codegen Ignore -# Generated by swagger-codegen https://github.com/swagger-api/swagger-codegen - -# Use this file to prevent files from being overwritten by the generator. -# The patterns follow closely to .gitignore or .dockerignore. - -# As an example, the C# client generator defines ApiClient.cs. -# You can make changes and tell Swagger Codgen to ignore just this file by uncommenting the following line: -#ApiClient.cs - -# You can match any string of characters against a directory, file or extension with a single asterisk (*): -#foo/*/qux -# The above matches foo/bar/qux and foo/baz/qux, but not foo/bar/baz/qux - -# You can recursively match patterns against a directory, file or extension with a double asterisk (**): -#foo/**/qux -# This matches foo/bar/qux, foo/baz/qux, and foo/bar/baz/qux - -# You can also negate patterns with an exclamation (!). -# For example, you can ignore all files in a docs folder with the file extension .md: -#docs/*.md -# Then explicitly reverse the ignore rule for a single file: -#!docs/README.md diff --git a/swagger/api-units/.swagger-codegen/VERSION b/swagger/api-units/.swagger-codegen/VERSION deleted file mode 100644 index 10bbf276ee45aaec75c7b2ada3ff71d798f89fd9..0000000000000000000000000000000000000000 --- a/swagger/api-units/.swagger-codegen/VERSION +++ /dev/null @@ -1 +0,0 @@ -3.0.34 \ No newline at end of file diff --git a/swagger/api-units/.travis.yml b/swagger/api-units/.travis.yml deleted file mode 100644 index dd6c4450aa902ae68479c3d76d45145e18d6052e..0000000000000000000000000000000000000000 --- a/swagger/api-units/.travis.yml +++ /dev/null @@ -1,13 +0,0 @@ -# ref: https://docs.travis-ci.com/user/languages/python -language: python -python: - - "3.2" - - "3.3" - - "3.4" - - "3.5" - #- "3.5-dev" # 3.5 development branch - #- "nightly" # points to the latest development branch e.g. 3.6-dev -# command to install dependencies -install: "pip install -r requirements.txt" -# command to run tests -script: nosetests diff --git a/swagger/api-units/README.md b/swagger/api-units/README.md deleted file mode 100644 index 5ddf15b203b9609bd3b72688a11da102dd74f189..0000000000000000000000000000000000000000 --- a/swagger/api-units/README.md +++ /dev/null @@ -1,130 +0,0 @@ -# swagger-client -powered by Flasgger - -This Python package is automatically generated by the [Swagger Codegen](https://github.com/swagger-api/swagger-codegen) project: - -- API version: 0.0.1 -- Package version: 1.0.0 -- Build package: io.swagger.codegen.v3.generators.python.PythonClientCodegen - -## Requirements. - -Python 2.7 and 3.4+ - -## Installation & Usage -### pip install - -If the python package is hosted on Github, you can install directly from Github - -```sh -pip install git+https://github.com/GIT_USER_ID/GIT_REPO_ID.git -``` -(you may need to run `pip` with root permission: `sudo pip install git+https://github.com/GIT_USER_ID/GIT_REPO_ID.git`) - -Then import the package: -```python -import swagger_client -``` - -### Setuptools - -Install via [Setuptools](http://pypi.python.org/pypi/setuptools). - -```sh -python setup.py install --user -``` -(or `sudo python setup.py install` to install the package for all users) - -Then import the package: -```python -import swagger_client -``` - -## Getting Started - -Please follow the [installation procedure](#installation--usage) and then run the following: - -```python -from __future__ import print_function -import time -import swagger_client -from swagger_client.rest import ApiException -from pprint import pprint - -# create an instance of the API class -api_instance = swagger_client.DefaultApi(swagger_client.ApiClient(configuration)) -body = swagger_client.UnitsSavecolumnsconceptBody() # UnitsSavecolumnsconceptBody | to-do description - -try: - # Save concepts to MDB - api_instance.api_units_savecolumnsconcept_post(body) -except ApiException as e: - print("Exception when calling DefaultApi->api_units_savecolumnsconcept_post: %s\n" % e) - -# create an instance of the API class -api_instance = swagger_client.DefaultApi(swagger_client.ApiClient(configuration)) -body = swagger_client.UnitsSaveconceptBody() # UnitsSaveconceptBody | to-do description - -try: - # Save concepts to MDB - api_instance.api_units_saveconcept_post(body) -except ApiException as e: - print("Exception when calling DefaultApi->api_units_saveconcept_post: %s\n" % e) - -# create an instance of the API class -api_instance = swagger_client.DefaultApi(swagger_client.ApiClient(configuration)) -body = swagger_client.UnitsSuggestBody() # UnitsSuggestBody | to-do description - -try: - # Autosuggest units - api_instance.api_units_suggest_post(body) -except ApiException as e: - print("Exception when calling DefaultApi->api_units_suggest_post: %s\n" % e) - -# create an instance of the API class -api_instance = swagger_client.DefaultApi(swagger_client.ApiClient(configuration)) -uname = 'uname_example' # str | to-do description - -try: - # Get URI of units - api_instance.api_units_uri_uname_get(uname) -except ApiException as e: - print("Exception when calling DefaultApi->api_units_uri_uname_get: %s\n" % e) - -# create an instance of the API class -api_instance = swagger_client.DefaultApi(swagger_client.ApiClient(configuration)) -unit = 'unit_example' # str | to-do description - -try: - # Validate units - api_instance.api_units_validate_unit_get(unit) -except ApiException as e: - print("Exception when calling DefaultApi->api_units_validate_unit_get: %s\n" % e) -``` - -## Documentation for API Endpoints - -All URIs are relative to */* - -Class | Method | HTTP request | Description ------------- | ------------- | ------------- | ------------- -*DefaultApi* | [**api_units_savecolumnsconcept_post**](docs/DefaultApi.md#api_units_savecolumnsconcept_post) | **POST** /api/units/savecolumnsconcept | Save concepts to MDB -*DefaultApi* | [**api_units_saveconcept_post**](docs/DefaultApi.md#api_units_saveconcept_post) | **POST** /api/units/saveconcept | Save concepts to MDB -*DefaultApi* | [**api_units_suggest_post**](docs/DefaultApi.md#api_units_suggest_post) | **POST** /api/units/suggest | Autosuggest units -*DefaultApi* | [**api_units_uri_uname_get**](docs/DefaultApi.md#api_units_uri_uname_get) | **GET** /api/units/uri/{uname} | Get URI of units -*DefaultApi* | [**api_units_validate_unit_get**](docs/DefaultApi.md#api_units_validate_unit_get) | **GET** /api/units/validate/{unit} | Validate units - -## Documentation For Models - - - [UnitsSavecolumnsconceptBody](docs/UnitsSavecolumnsconceptBody.md) - - [UnitsSaveconceptBody](docs/UnitsSaveconceptBody.md) - - [UnitsSuggestBody](docs/UnitsSuggestBody.md) - -## Documentation For Authorization - - All endpoints do not require authorization. - - -## Author - - diff --git a/swagger/api-units/git_push.sh b/swagger/api-units/git_push.sh deleted file mode 100644 index ae01b182ae9eb047d0999a496b060e62d7b01e5c..0000000000000000000000000000000000000000 --- a/swagger/api-units/git_push.sh +++ /dev/null @@ -1,52 +0,0 @@ -#!/bin/sh -# ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/ -# -# Usage example: /bin/sh ./git_push.sh wing328 swagger-petstore-perl "minor update" - -git_user_id=$1 -git_repo_id=$2 -release_note=$3 - -if [ "$git_user_id" = "" ]; then - git_user_id="GIT_USER_ID" - echo "[INFO] No command line input provided. Set \$git_user_id to $git_user_id" -fi - -if [ "$git_repo_id" = "" ]; then - git_repo_id="GIT_REPO_ID" - echo "[INFO] No command line input provided. Set \$git_repo_id to $git_repo_id" -fi - -if [ "$release_note" = "" ]; then - release_note="Minor update" - echo "[INFO] No command line input provided. Set \$release_note to $release_note" -fi - -# Initialize the local directory as a Git repository -git init - -# Adds the files in the local repository and stages them for commit. -git add . - -# Commits the tracked changes and prepares them to be pushed to a remote repository. -git commit -m "$release_note" - -# Sets the new remote -git_remote=`git remote` -if [ "$git_remote" = "" ]; then # git remote not defined - - if [ "$GIT_TOKEN" = "" ]; then - echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the git credential in your environment." - git remote add origin https://github.com/${git_user_id}/${git_repo_id}.git - else - git remote add origin https://${git_user_id}:${GIT_TOKEN}@github.com/${git_user_id}/${git_repo_id}.git - fi - -fi - -git pull origin master - -# Pushes (Forces) the changes in the local repository up to the remote repository -echo "Git pushing to https://github.com/${git_user_id}/${git_repo_id}.git" -git push origin master 2>&1 | grep -v 'To https' - diff --git a/swagger/api-units/requirements.txt b/swagger/api-units/requirements.txt deleted file mode 100644 index bafdc07532f5e1287a24c2af278f547091a410b6..0000000000000000000000000000000000000000 --- a/swagger/api-units/requirements.txt +++ /dev/null @@ -1,5 +0,0 @@ -certifi >= 14.05.14 -six >= 1.10 -python_dateutil >= 2.5.3 -setuptools >= 21.0.0 -urllib3 >= 1.15.1 diff --git a/swagger/api-units/setup.py b/swagger/api-units/setup.py deleted file mode 100644 index ce4121be8a39078f386fc0406fdad053dd442549..0000000000000000000000000000000000000000 --- a/swagger/api-units/setup.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - units - - powered by Flasgger # noqa: E501 - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -from setuptools import setup, find_packages # noqa: H301 - -NAME = "swagger-client" -VERSION = "1.0.0" -# To install the library, run the following -# -# python setup.py install -# -# prerequisite: setuptools -# http://pypi.python.org/pypi/setuptools - -REQUIRES = ["urllib3 >= 1.15", "six >= 1.10", "certifi", "python-dateutil"] - -setup( - name=NAME, - version=VERSION, - description="units", - author_email="", - url="", - keywords=["Swagger", "units"], - install_requires=REQUIRES, - packages=find_packages(), - include_package_data=True, - long_description="""\ - powered by Flasgger # noqa: E501 - """ -) diff --git a/swagger/api-units/swagger_client/__init__.py b/swagger/api-units/swagger_client/__init__.py deleted file mode 100644 index 100fc073429c5b3e85170960dd47ad664c2edc78..0000000000000000000000000000000000000000 --- a/swagger/api-units/swagger_client/__init__.py +++ /dev/null @@ -1,25 +0,0 @@ -# coding: utf-8 - -# flake8: noqa - -""" - units - - powered by Flasgger # noqa: E501 - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -from __future__ import absolute_import - -# import apis into sdk package -from swagger_client.api.default_api import DefaultApi -# import ApiClient -from swagger_client.api_client import ApiClient -from swagger_client.configuration import Configuration -# import models into sdk package -from swagger_client.models.units_savecolumnsconcept_body import UnitsSavecolumnsconceptBody -from swagger_client.models.units_saveconcept_body import UnitsSaveconceptBody -from swagger_client.models.units_suggest_body import UnitsSuggestBody diff --git a/swagger/api-units/swagger_client/api/__init__.py b/swagger/api-units/swagger_client/api/__init__.py deleted file mode 100644 index 447bb1c3c2d376088a39adc56e7434a255831d3e..0000000000000000000000000000000000000000 --- a/swagger/api-units/swagger_client/api/__init__.py +++ /dev/null @@ -1,6 +0,0 @@ -from __future__ import absolute_import - -# flake8: noqa - -# import apis into api package -from swagger_client.api.default_api import DefaultApi diff --git a/swagger/api-units/swagger_client/api/default_api.py b/swagger/api-units/swagger_client/api/default_api.py deleted file mode 100644 index a2aee69cc790d83b16442d5fa09f298628e2b762..0000000000000000000000000000000000000000 --- a/swagger/api-units/swagger_client/api/default_api.py +++ /dev/null @@ -1,500 +0,0 @@ -# coding: utf-8 - -""" - units - - powered by Flasgger # noqa: E501 - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -from __future__ import absolute_import - -import re # noqa: F401 - -# python 2 and python 3 compatibility library -import six - -from swagger_client.api_client import ApiClient - - -class DefaultApi(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - Ref: https://github.com/swagger-api/swagger-codegen - """ - - def __init__(self, api_client=None): - if api_client is None: - api_client = ApiClient() - self.api_client = api_client - - def api_units_savecolumnsconcept_post(self, body, **kwargs): # noqa: E501 - """Save concepts to MDB # noqa: E501 - - This is a simple API for saving units and concepts. # noqa: E501 - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.api_units_savecolumnsconcept_post(body, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param UnitsSavecolumnsconceptBody body: to-do description (required) - :return: None - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.api_units_savecolumnsconcept_post_with_http_info(body, **kwargs) # noqa: E501 - else: - (data) = self.api_units_savecolumnsconcept_post_with_http_info(body, **kwargs) # noqa: E501 - return data - - def api_units_savecolumnsconcept_post_with_http_info(self, body, **kwargs): # noqa: E501 - """Save concepts to MDB # noqa: E501 - - This is a simple API for saving units and concepts. # noqa: E501 - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.api_units_savecolumnsconcept_post_with_http_info(body, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param UnitsSavecolumnsconceptBody body: to-do description (required) - :return: None - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['body'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in six.iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method api_units_savecolumnsconcept_post" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'body' is set - if ('body' not in params or - params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `api_units_savecolumnsconcept_post`") # noqa: E501 - - collection_formats = {} - - path_params = {} - - query_params = [] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - if 'body' in params: - body_params = params['body'] - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 - ['application/json']) # noqa: E501 - - # Authentication setting - auth_settings = [] # noqa: E501 - - return self.api_client.call_api( - '/api/units/savecolumnsconcept', 'POST', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type=None, # noqa: E501 - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def api_units_saveconcept_post(self, body, **kwargs): # noqa: E501 - """Save concepts to MDB # noqa: E501 - - This is a simple API for saving units and concepts. # noqa: E501 - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.api_units_saveconcept_post(body, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param UnitsSaveconceptBody body: to-do description (required) - :return: None - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.api_units_saveconcept_post_with_http_info(body, **kwargs) # noqa: E501 - else: - (data) = self.api_units_saveconcept_post_with_http_info(body, **kwargs) # noqa: E501 - return data - - def api_units_saveconcept_post_with_http_info(self, body, **kwargs): # noqa: E501 - """Save concepts to MDB # noqa: E501 - - This is a simple API for saving units and concepts. # noqa: E501 - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.api_units_saveconcept_post_with_http_info(body, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param UnitsSaveconceptBody body: to-do description (required) - :return: None - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['body'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in six.iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method api_units_saveconcept_post" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'body' is set - if ('body' not in params or - params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `api_units_saveconcept_post`") # noqa: E501 - - collection_formats = {} - - path_params = {} - - query_params = [] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - if 'body' in params: - body_params = params['body'] - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 - ['application/json']) # noqa: E501 - - # Authentication setting - auth_settings = [] # noqa: E501 - - return self.api_client.call_api( - '/api/units/saveconcept', 'POST', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type=None, # noqa: E501 - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def api_units_suggest_post(self, body, **kwargs): # noqa: E501 - """Autosuggest units # noqa: E501 - - This is a simple API which returns a list of suggested units. # noqa: E501 - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.api_units_suggest_post(body, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param UnitsSuggestBody body: to-do description (required) - :return: None - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.api_units_suggest_post_with_http_info(body, **kwargs) # noqa: E501 - else: - (data) = self.api_units_suggest_post_with_http_info(body, **kwargs) # noqa: E501 - return data - - def api_units_suggest_post_with_http_info(self, body, **kwargs): # noqa: E501 - """Autosuggest units # noqa: E501 - - This is a simple API which returns a list of suggested units. # noqa: E501 - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.api_units_suggest_post_with_http_info(body, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param UnitsSuggestBody body: to-do description (required) - :return: None - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['body'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in six.iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method api_units_suggest_post" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'body' is set - if ('body' not in params or - params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `api_units_suggest_post`") # noqa: E501 - - collection_formats = {} - - path_params = {} - - query_params = [] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - if 'body' in params: - body_params = params['body'] - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 - ['application/json']) # noqa: E501 - - # Authentication setting - auth_settings = [] # noqa: E501 - - return self.api_client.call_api( - '/api/units/suggest', 'POST', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type=None, # noqa: E501 - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def api_units_uri_uname_get(self, uname, **kwargs): # noqa: E501 - """Get URI of units # noqa: E501 - - This is a simple API for getting the URI of a certain unit in OM. # noqa: E501 - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.api_units_uri_uname_get(uname, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param str uname: to-do description (required) - :return: None - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.api_units_uri_uname_get_with_http_info(uname, **kwargs) # noqa: E501 - else: - (data) = self.api_units_uri_uname_get_with_http_info(uname, **kwargs) # noqa: E501 - return data - - def api_units_uri_uname_get_with_http_info(self, uname, **kwargs): # noqa: E501 - """Get URI of units # noqa: E501 - - This is a simple API for getting the URI of a certain unit in OM. # noqa: E501 - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.api_units_uri_uname_get_with_http_info(uname, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param str uname: to-do description (required) - :return: None - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['uname'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in six.iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method api_units_uri_uname_get" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'uname' is set - if ('uname' not in params or - params['uname'] is None): - raise ValueError("Missing the required parameter `uname` when calling `api_units_uri_uname_get`") # noqa: E501 - - collection_formats = {} - - path_params = {} - if 'uname' in params: - path_params['uname'] = params['uname'] # noqa: E501 - - query_params = [] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - # Authentication setting - auth_settings = [] # noqa: E501 - - return self.api_client.call_api( - '/api/units/uri/{uname}', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type=None, # noqa: E501 - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def api_units_validate_unit_get(self, unit, **kwargs): # noqa: E501 - """Validate units # noqa: E501 - - This is a simple API for validating units. # noqa: E501 - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.api_units_validate_unit_get(unit, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param str unit: to-do description (required) - :return: None - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.api_units_validate_unit_get_with_http_info(unit, **kwargs) # noqa: E501 - else: - (data) = self.api_units_validate_unit_get_with_http_info(unit, **kwargs) # noqa: E501 - return data - - def api_units_validate_unit_get_with_http_info(self, unit, **kwargs): # noqa: E501 - """Validate units # noqa: E501 - - This is a simple API for validating units. # noqa: E501 - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.api_units_validate_unit_get_with_http_info(unit, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param str unit: to-do description (required) - :return: None - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['unit'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in six.iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method api_units_validate_unit_get" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'unit' is set - if ('unit' not in params or - params['unit'] is None): - raise ValueError("Missing the required parameter `unit` when calling `api_units_validate_unit_get`") # noqa: E501 - - collection_formats = {} - - path_params = {} - if 'unit' in params: - path_params['unit'] = params['unit'] # noqa: E501 - - query_params = [] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - # Authentication setting - auth_settings = [] # noqa: E501 - - return self.api_client.call_api( - '/api/units/validate/{unit}', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type=None, # noqa: E501 - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) diff --git a/swagger/api-units/swagger_client/api_client.py b/swagger/api-units/swagger_client/api_client.py deleted file mode 100644 index ca256e5df20f822e05810bda4aedac26911ddf10..0000000000000000000000000000000000000000 --- a/swagger/api-units/swagger_client/api_client.py +++ /dev/null @@ -1,632 +0,0 @@ -# coding: utf-8 -""" - units - - powered by Flasgger # noqa: E501 - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" -from __future__ import absolute_import - -import datetime -import json -import mimetypes -from multiprocessing.pool import ThreadPool -import os -import re -import tempfile - -# python 2 and python 3 compatibility library -import six -from six.moves.urllib.parse import quote - -from swagger_client.configuration import Configuration -import swagger_client.models -from swagger_client import rest - - -class ApiClient(object): - """Generic API client for Swagger client library builds. - - Swagger generic API client. This client handles the client- - server communication, and is invariant across implementations. Specifics of - the methods and models for each application are generated from the Swagger - templates. - - NOTE: This class is auto generated by the swagger code generator program. - Ref: https://github.com/swagger-api/swagger-codegen - Do not edit the class manually. - - :param configuration: .Configuration object for this client - :param header_name: a header to pass when making calls to the API. - :param header_value: a header value to pass when making calls to - the API. - :param cookie: a cookie to include in the header when making calls - to the API - """ - - PRIMITIVE_TYPES = (float, bool, bytes, six.text_type) + six.integer_types - NATIVE_TYPES_MAPPING = { - 'int': int, - 'long': int if six.PY3 else long, # noqa: F821 - 'float': float, - 'str': str, - 'bool': bool, - 'date': datetime.date, - 'datetime': datetime.datetime, - 'object': object, - } - - def __init__(self, configuration=None, header_name=None, header_value=None, - cookie=None): - if configuration is None: - configuration = Configuration() - self.configuration = configuration - - self.pool = ThreadPool() - self.rest_client = rest.RESTClientObject(configuration) - self.default_headers = {} - if header_name is not None: - self.default_headers[header_name] = header_value - self.cookie = cookie - # Set default User-Agent. - self.user_agent = 'Swagger-Codegen/1.0.0/python' - - def __del__(self): - self.pool.close() - self.pool.join() - - @property - def user_agent(self): - """User agent for this API client""" - return self.default_headers['User-Agent'] - - @user_agent.setter - def user_agent(self, value): - self.default_headers['User-Agent'] = value - - def set_default_header(self, header_name, header_value): - self.default_headers[header_name] = header_value - - def __call_api( - self, resource_path, method, path_params=None, - query_params=None, header_params=None, body=None, post_params=None, - files=None, response_type=None, auth_settings=None, - _return_http_data_only=None, collection_formats=None, - _preload_content=True, _request_timeout=None): - - config = self.configuration - - # header parameters - header_params = header_params or {} - header_params.update(self.default_headers) - if self.cookie: - header_params['Cookie'] = self.cookie - if header_params: - header_params = self.sanitize_for_serialization(header_params) - header_params = dict(self.parameters_to_tuples(header_params, - collection_formats)) - - # path parameters - if path_params: - path_params = self.sanitize_for_serialization(path_params) - path_params = self.parameters_to_tuples(path_params, - collection_formats) - for k, v in path_params: - # specified safe chars, encode everything - resource_path = resource_path.replace( - '{%s}' % k, - quote(str(v), safe=config.safe_chars_for_path_param) - ) - - # query parameters - if query_params: - query_params = self.sanitize_for_serialization(query_params) - query_params = self.parameters_to_tuples(query_params, - collection_formats) - - # post parameters - if post_params or files: - post_params = self.prepare_post_parameters(post_params, files) - post_params = self.sanitize_for_serialization(post_params) - post_params = self.parameters_to_tuples(post_params, - collection_formats) - - # auth setting - self.update_params_for_auth(header_params, query_params, auth_settings) - - # body - if body: - body = self.sanitize_for_serialization(body) - - # request url - url = self.configuration.host + resource_path - - # perform request and return response - response_data = self.request( - method, url, query_params=query_params, headers=header_params, - post_params=post_params, body=body, - _preload_content=_preload_content, - _request_timeout=_request_timeout) - - self.last_response = response_data - - return_data = response_data - if _preload_content: - # deserialize response data - if response_type: - return_data = self.deserialize(response_data, response_type) - else: - return_data = None - - if _return_http_data_only: - return (return_data) - else: - return (return_data, response_data.status, - response_data.getheaders()) - - def sanitize_for_serialization(self, obj): - """Builds a JSON POST object. - - If obj is None, return None. - If obj is str, int, long, float, bool, return directly. - If obj is datetime.datetime, datetime.date - convert to string in iso8601 format. - If obj is list, sanitize each element in the list. - If obj is dict, return the dict. - If obj is swagger model, return the properties dict. - - :param obj: The data to serialize. - :return: The serialized form of data. - """ - if obj is None: - return None - elif isinstance(obj, self.PRIMITIVE_TYPES): - return obj - elif isinstance(obj, list): - return [self.sanitize_for_serialization(sub_obj) - for sub_obj in obj] - elif isinstance(obj, tuple): - return tuple(self.sanitize_for_serialization(sub_obj) - for sub_obj in obj) - elif isinstance(obj, (datetime.datetime, datetime.date)): - return obj.isoformat() - - if isinstance(obj, dict): - obj_dict = obj - else: - # Convert model obj to dict except - # attributes `swagger_types`, `attribute_map` - # and attributes which value is not None. - # Convert attribute name to json key in - # model definition for request. - obj_dict = {obj.attribute_map[attr]: getattr(obj, attr) - for attr, _ in six.iteritems(obj.swagger_types) - if getattr(obj, attr) is not None} - - return {key: self.sanitize_for_serialization(val) - for key, val in six.iteritems(obj_dict)} - - def deserialize(self, response, response_type): - """Deserializes response into an object. - - :param response: RESTResponse object to be deserialized. - :param response_type: class literal for - deserialized object, or string of class name. - - :return: deserialized object. - """ - # handle file downloading - # save response body into a tmp file and return the instance - if response_type == "file": - return self.__deserialize_file(response) - - # fetch data from response object - try: - data = json.loads(response.data) - except ValueError: - data = response.data - - return self.__deserialize(data, response_type) - - def __deserialize(self, data, klass): - """Deserializes dict, list, str into an object. - - :param data: dict, list or str. - :param klass: class literal, or string of class name. - - :return: object. - """ - if data is None: - return None - - if type(klass) == str: - if klass.startswith('list['): - sub_kls = re.match(r'list\[(.*)\]', klass).group(1) - return [self.__deserialize(sub_data, sub_kls) - for sub_data in data] - - if klass.startswith('dict('): - sub_kls = re.match(r'dict\(([^,]*), (.*)\)', klass).group(2) - return {k: self.__deserialize(v, sub_kls) - for k, v in six.iteritems(data)} - - # convert str to class - if klass in self.NATIVE_TYPES_MAPPING: - klass = self.NATIVE_TYPES_MAPPING[klass] - else: - klass = getattr(swagger_client.models, klass) - - if klass in self.PRIMITIVE_TYPES: - return self.__deserialize_primitive(data, klass) - elif klass == object: - return self.__deserialize_object(data) - elif klass == datetime.date: - return self.__deserialize_date(data) - elif klass == datetime.datetime: - return self.__deserialize_datatime(data) - else: - return self.__deserialize_model(data, klass) - - def call_api(self, resource_path, method, - path_params=None, query_params=None, header_params=None, - body=None, post_params=None, files=None, - response_type=None, auth_settings=None, async_req=None, - _return_http_data_only=None, collection_formats=None, - _preload_content=True, _request_timeout=None): - """Makes the HTTP request (synchronous) and returns deserialized data. - - To make an async request, set the async_req parameter. - - :param resource_path: Path to method endpoint. - :param method: Method to call. - :param path_params: Path parameters in the url. - :param query_params: Query parameters in the url. - :param header_params: Header parameters to be - placed in the request header. - :param body: Request body. - :param post_params dict: Request post form parameters, - for `application/x-www-form-urlencoded`, `multipart/form-data`. - :param auth_settings list: Auth Settings names for the request. - :param response: Response data type. - :param files dict: key -> filename, value -> filepath, - for `multipart/form-data`. - :param async_req bool: execute request asynchronously - :param _return_http_data_only: response data without head status code - and headers - :param collection_formats: dict of collection formats for path, query, - header, and post parameters. - :param _preload_content: if False, the urllib3.HTTPResponse object will - be returned without reading/decoding response - data. Default is True. - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :return: - If async_req parameter is True, - the request will be called asynchronously. - The method will return the request thread. - If parameter async_req is False or missing, - then the method will return the response directly. - """ - if not async_req: - return self.__call_api(resource_path, method, - path_params, query_params, header_params, - body, post_params, files, - response_type, auth_settings, - _return_http_data_only, collection_formats, - _preload_content, _request_timeout) - else: - thread = self.pool.apply_async(self.__call_api, (resource_path, - method, path_params, query_params, - header_params, body, - post_params, files, - response_type, auth_settings, - _return_http_data_only, - collection_formats, - _preload_content, _request_timeout)) - return thread - - def request(self, method, url, query_params=None, headers=None, - post_params=None, body=None, _preload_content=True, - _request_timeout=None): - """Makes the HTTP request using RESTClient.""" - if method == "GET": - return self.rest_client.GET(url, - query_params=query_params, - _preload_content=_preload_content, - _request_timeout=_request_timeout, - headers=headers) - elif method == "HEAD": - return self.rest_client.HEAD(url, - query_params=query_params, - _preload_content=_preload_content, - _request_timeout=_request_timeout, - headers=headers) - elif method == "OPTIONS": - return self.rest_client.OPTIONS(url, - query_params=query_params, - headers=headers, - post_params=post_params, - _preload_content=_preload_content, - _request_timeout=_request_timeout, - body=body) - elif method == "POST": - return self.rest_client.POST(url, - query_params=query_params, - headers=headers, - post_params=post_params, - _preload_content=_preload_content, - _request_timeout=_request_timeout, - body=body) - elif method == "PUT": - return self.rest_client.PUT(url, - query_params=query_params, - headers=headers, - post_params=post_params, - _preload_content=_preload_content, - _request_timeout=_request_timeout, - body=body) - elif method == "PATCH": - return self.rest_client.PATCH(url, - query_params=query_params, - headers=headers, - post_params=post_params, - _preload_content=_preload_content, - _request_timeout=_request_timeout, - body=body) - elif method == "DELETE": - return self.rest_client.DELETE(url, - query_params=query_params, - headers=headers, - _preload_content=_preload_content, - _request_timeout=_request_timeout, - body=body) - else: - raise ValueError( - "http method must be `GET`, `HEAD`, `OPTIONS`," - " `POST`, `PATCH`, `PUT` or `DELETE`." - ) - - def parameters_to_tuples(self, params, collection_formats): - """Get parameters as list of tuples, formatting collections. - - :param params: Parameters as dict or list of two-tuples - :param dict collection_formats: Parameter collection formats - :return: Parameters as list of tuples, collections formatted - """ - new_params = [] - if collection_formats is None: - collection_formats = {} - for k, v in six.iteritems(params) if isinstance(params, dict) else params: # noqa: E501 - if k in collection_formats: - collection_format = collection_formats[k] - if collection_format == 'multi': - new_params.extend((k, value) for value in v) - else: - if collection_format == 'ssv': - delimiter = ' ' - elif collection_format == 'tsv': - delimiter = '\t' - elif collection_format == 'pipes': - delimiter = '|' - else: # csv is the default - delimiter = ',' - new_params.append( - (k, delimiter.join(str(value) for value in v))) - else: - new_params.append((k, v)) - return new_params - - def prepare_post_parameters(self, post_params=None, files=None): - """Builds form parameters. - - :param post_params: Normal form parameters. - :param files: File parameters. - :return: Form parameters with files. - """ - params = [] - - if post_params: - params = post_params - - if files: - for k, v in six.iteritems(files): - if not v: - continue - file_names = v if type(v) is list else [v] - for n in file_names: - with open(n, 'rb') as f: - filename = os.path.basename(f.name) - filedata = f.read() - mimetype = (mimetypes.guess_type(filename)[0] or - 'application/octet-stream') - params.append( - tuple([k, tuple([filename, filedata, mimetype])])) - - return params - - def select_header_accept(self, accepts): - """Returns `Accept` based on an array of accepts provided. - - :param accepts: List of headers. - :return: Accept (e.g. application/json). - """ - if not accepts: - return - - accepts = [x.lower() for x in accepts] - - if 'application/json' in accepts: - return 'application/json' - else: - return ', '.join(accepts) - - def select_header_content_type(self, content_types): - """Returns `Content-Type` based on an array of content_types provided. - - :param content_types: List of content-types. - :return: Content-Type (e.g. application/json). - """ - if not content_types: - return 'application/json' - - content_types = [x.lower() for x in content_types] - - if 'application/json' in content_types or '*/*' in content_types: - return 'application/json' - else: - return content_types[0] - - def update_params_for_auth(self, headers, querys, auth_settings): - """Updates header and query params based on authentication setting. - - :param headers: Header parameters dict to be updated. - :param querys: Query parameters tuple list to be updated. - :param auth_settings: Authentication setting identifiers list. - """ - if not auth_settings: - return - - for auth in auth_settings: - auth_setting = self.configuration.auth_settings().get(auth) - if auth_setting: - if not auth_setting['value']: - continue - elif auth_setting['in'] == 'header': - headers[auth_setting['key']] = auth_setting['value'] - elif auth_setting['in'] == 'query': - querys.append((auth_setting['key'], auth_setting['value'])) - else: - raise ValueError( - 'Authentication token must be in `query` or `header`' - ) - - def __deserialize_file(self, response): - """Deserializes body to file - - Saves response body into a file in a temporary folder, - using the filename from the `Content-Disposition` header if provided. - - :param response: RESTResponse. - :return: file path. - """ - fd, path = tempfile.mkstemp(dir=self.configuration.temp_folder_path) - os.close(fd) - os.remove(path) - - content_disposition = response.getheader("Content-Disposition") - if content_disposition: - filename = re.search(r'filename=[\'"]?([^\'"\s]+)[\'"]?', - content_disposition).group(1) - path = os.path.join(os.path.dirname(path), filename) - response_data = response.data - with open(path, "wb") as f: - if isinstance(response_data, str): - # change str to bytes so we can write it - response_data = response_data.encode('utf-8') - f.write(response_data) - else: - f.write(response_data) - return path - - def __deserialize_primitive(self, data, klass): - """Deserializes string to primitive type. - - :param data: str. - :param klass: class literal. - - :return: int, long, float, str, bool. - """ - try: - return klass(data) - except UnicodeEncodeError: - return six.text_type(data) - except TypeError: - return data - - def __deserialize_object(self, value): - """Return a original value. - - :return: object. - """ - return value - - def __deserialize_date(self, string): - """Deserializes string to date. - - :param string: str. - :return: date. - """ - try: - from dateutil.parser import parse - return parse(string).date() - except ImportError: - return string - except ValueError: - raise rest.ApiException( - status=0, - reason="Failed to parse `{0}` as date object".format(string) - ) - - def __deserialize_datatime(self, string): - """Deserializes string to datetime. - - The string should be in iso8601 datetime format. - - :param string: str. - :return: datetime. - """ - try: - from dateutil.parser import parse - return parse(string) - except ImportError: - return string - except ValueError: - raise rest.ApiException( - status=0, - reason=( - "Failed to parse `{0}` as datetime object" - .format(string) - ) - ) - - def __hasattr(self, object, name): - return name in object.__class__.__dict__ - - def __deserialize_model(self, data, klass): - """Deserializes list or dict to model. - - :param data: dict, list. - :param klass: class literal. - :return: model object. - """ - - if not klass.swagger_types and not self.__hasattr(klass, 'get_real_child_model'): - return data - - kwargs = {} - if klass.swagger_types is not None: - for attr, attr_type in six.iteritems(klass.swagger_types): - if (data is not None and - klass.attribute_map[attr] in data and - isinstance(data, (list, dict))): - value = data[klass.attribute_map[attr]] - kwargs[attr] = self.__deserialize(value, attr_type) - - instance = klass(**kwargs) - - if (isinstance(instance, dict) and - klass.swagger_types is not None and - isinstance(data, dict)): - for key, value in data.items(): - if key not in klass.swagger_types: - instance[key] = value - if self.__hasattr(instance, 'get_real_child_model'): - klass_name = instance.get_real_child_model(data) - if klass_name: - instance = self.__deserialize(data, klass_name) - return instance diff --git a/swagger/api-units/swagger_client/configuration.py b/swagger/api-units/swagger_client/configuration.py deleted file mode 100644 index 0fac52ddb50d273760ca3b56912d4af1d8f6b456..0000000000000000000000000000000000000000 --- a/swagger/api-units/swagger_client/configuration.py +++ /dev/null @@ -1,244 +0,0 @@ -# coding: utf-8 - -""" - units - - powered by Flasgger # noqa: E501 - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -from __future__ import absolute_import - -import copy -import logging -import multiprocessing -import sys -import urllib3 - -import six -from six.moves import http_client as httplib - - -class TypeWithDefault(type): - def __init__(cls, name, bases, dct): - super(TypeWithDefault, cls).__init__(name, bases, dct) - cls._default = None - - def __call__(cls): - if cls._default is None: - cls._default = type.__call__(cls) - return copy.copy(cls._default) - - def set_default(cls, default): - cls._default = copy.copy(default) - - -class Configuration(six.with_metaclass(TypeWithDefault, object)): - """NOTE: This class is auto generated by the swagger code generator program. - - Ref: https://github.com/swagger-api/swagger-codegen - Do not edit the class manually. - """ - - def __init__(self): - """Constructor""" - # Default Base url - self.host = "/" - # Temp file folder for downloading files - self.temp_folder_path = None - - # Authentication Settings - # dict to store API key(s) - self.api_key = {} - # dict to store API prefix (e.g. Bearer) - self.api_key_prefix = {} - # function to refresh API key if expired - self.refresh_api_key_hook = None - # Username for HTTP basic authentication - self.username = "" - # Password for HTTP basic authentication - self.password = "" - # Logging Settings - self.logger = {} - self.logger["package_logger"] = logging.getLogger("swagger_client") - self.logger["urllib3_logger"] = logging.getLogger("urllib3") - # Log format - self.logger_format = '%(asctime)s %(levelname)s %(message)s' - # Log stream handler - self.logger_stream_handler = None - # Log file handler - self.logger_file_handler = None - # Debug file location - self.logger_file = None - # Debug switch - self.debug = False - - # SSL/TLS verification - # Set this to false to skip verifying SSL certificate when calling API - # from https server. - self.verify_ssl = True - # Set this to customize the certificate file to verify the peer. - self.ssl_ca_cert = None - # client certificate file - self.cert_file = None - # client key file - self.key_file = None - # Set this to True/False to enable/disable SSL hostname verification. - self.assert_hostname = None - - # urllib3 connection pool's maximum number of connections saved - # per pool. urllib3 uses 1 connection as default value, but this is - # not the best value when you are making a lot of possibly parallel - # requests to the same host, which is often the case here. - # cpu_count * 5 is used as default value to increase performance. - self.connection_pool_maxsize = multiprocessing.cpu_count() * 5 - - # Proxy URL - self.proxy = None - # Safe chars for path_param - self.safe_chars_for_path_param = '' - - @property - def logger_file(self): - """The logger file. - - If the logger_file is None, then add stream handler and remove file - handler. Otherwise, add file handler and remove stream handler. - - :param value: The logger_file path. - :type: str - """ - return self.__logger_file - - @logger_file.setter - def logger_file(self, value): - """The logger file. - - If the logger_file is None, then add stream handler and remove file - handler. Otherwise, add file handler and remove stream handler. - - :param value: The logger_file path. - :type: str - """ - self.__logger_file = value - if self.__logger_file: - # If set logging file, - # then add file handler and remove stream handler. - self.logger_file_handler = logging.FileHandler(self.__logger_file) - self.logger_file_handler.setFormatter(self.logger_formatter) - for _, logger in six.iteritems(self.logger): - logger.addHandler(self.logger_file_handler) - if self.logger_stream_handler: - logger.removeHandler(self.logger_stream_handler) - else: - # If not set logging file, - # then add stream handler and remove file handler. - self.logger_stream_handler = logging.StreamHandler() - self.logger_stream_handler.setFormatter(self.logger_formatter) - for _, logger in six.iteritems(self.logger): - logger.addHandler(self.logger_stream_handler) - if self.logger_file_handler: - logger.removeHandler(self.logger_file_handler) - - @property - def debug(self): - """Debug status - - :param value: The debug status, True or False. - :type: bool - """ - return self.__debug - - @debug.setter - def debug(self, value): - """Debug status - - :param value: The debug status, True or False. - :type: bool - """ - self.__debug = value - if self.__debug: - # if debug status is True, turn on debug logging - for _, logger in six.iteritems(self.logger): - logger.setLevel(logging.DEBUG) - # turn on httplib debug - httplib.HTTPConnection.debuglevel = 1 - else: - # if debug status is False, turn off debug logging, - # setting log level to default `logging.WARNING` - for _, logger in six.iteritems(self.logger): - logger.setLevel(logging.WARNING) - # turn off httplib debug - httplib.HTTPConnection.debuglevel = 0 - - @property - def logger_format(self): - """The logger format. - - The logger_formatter will be updated when sets logger_format. - - :param value: The format string. - :type: str - """ - return self.__logger_format - - @logger_format.setter - def logger_format(self, value): - """The logger format. - - The logger_formatter will be updated when sets logger_format. - - :param value: The format string. - :type: str - """ - self.__logger_format = value - self.logger_formatter = logging.Formatter(self.__logger_format) - - def get_api_key_with_prefix(self, identifier): - """Gets API key (with prefix if set). - - :param identifier: The identifier of apiKey. - :return: The token for api key authentication. - """ - if self.refresh_api_key_hook: - self.refresh_api_key_hook(self) - - key = self.api_key.get(identifier) - if key: - prefix = self.api_key_prefix.get(identifier) - if prefix: - return "%s %s" % (prefix, key) - else: - return key - - def get_basic_auth_token(self): - """Gets HTTP basic authentication header (string). - - :return: The token for basic HTTP authentication. - """ - return urllib3.util.make_headers( - basic_auth=self.username + ':' + self.password - ).get('authorization') - - def auth_settings(self): - """Gets Auth Settings dict for api client. - - :return: The Auth Settings information dict. - """ - return { - } - - def to_debug_report(self): - """Gets the essential information for debugging. - - :return: The report for debugging. - """ - return "Python SDK Debug Report:\n"\ - "OS: {env}\n"\ - "Python Version: {pyversion}\n"\ - "Version of the API: 0.0.1\n"\ - "SDK Package Version: 1.0.0".\ - format(env=sys.platform, pyversion=sys.version) diff --git a/swagger/api-units/swagger_client/models/__init__.py b/swagger/api-units/swagger_client/models/__init__.py deleted file mode 100644 index 3306b04c577c2d55e18998a2bafaa8baa4e1fc73..0000000000000000000000000000000000000000 --- a/swagger/api-units/swagger_client/models/__init__.py +++ /dev/null @@ -1,19 +0,0 @@ -# coding: utf-8 - -# flake8: noqa -""" - units - - powered by Flasgger # noqa: E501 - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -from __future__ import absolute_import - -# import models into model package -from swagger_client.models.units_savecolumnsconcept_body import UnitsSavecolumnsconceptBody -from swagger_client.models.units_saveconcept_body import UnitsSaveconceptBody -from swagger_client.models.units_suggest_body import UnitsSuggestBody diff --git a/swagger/api-units/swagger_client/models/units_savecolumnsconcept_body.py b/swagger/api-units/swagger_client/models/units_savecolumnsconcept_body.py deleted file mode 100644 index 1237b414feffa530b7b014493c40e6daf6ae40da..0000000000000000000000000000000000000000 --- a/swagger/api-units/swagger_client/models/units_savecolumnsconcept_body.py +++ /dev/null @@ -1,188 +0,0 @@ -# coding: utf-8 - -""" - units - - powered by Flasgger # noqa: E501 - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -import pprint -import re # noqa: F401 - -import six - -class UnitsSavecolumnsconceptBody(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'cdbid': 'int', - 'cid': 'int', - 'tid': 'int', - 'uri': 'str' - } - - attribute_map = { - 'cdbid': 'cdbid', - 'cid': 'cid', - 'tid': 'tid', - 'uri': 'uri' - } - - def __init__(self, cdbid=None, cid=None, tid=None, uri=None): # noqa: E501 - """UnitsSavecolumnsconceptBody - a model defined in Swagger""" # noqa: E501 - self._cdbid = None - self._cid = None - self._tid = None - self._uri = None - self.discriminator = None - if cdbid is not None: - self.cdbid = cdbid - if cid is not None: - self.cid = cid - if tid is not None: - self.tid = tid - if uri is not None: - self.uri = uri - - @property - def cdbid(self): - """Gets the cdbid of this UnitsSavecolumnsconceptBody. # noqa: E501 - - - :return: The cdbid of this UnitsSavecolumnsconceptBody. # noqa: E501 - :rtype: int - """ - return self._cdbid - - @cdbid.setter - def cdbid(self, cdbid): - """Sets the cdbid of this UnitsSavecolumnsconceptBody. - - - :param cdbid: The cdbid of this UnitsSavecolumnsconceptBody. # noqa: E501 - :type: int - """ - - self._cdbid = cdbid - - @property - def cid(self): - """Gets the cid of this UnitsSavecolumnsconceptBody. # noqa: E501 - - - :return: The cid of this UnitsSavecolumnsconceptBody. # noqa: E501 - :rtype: int - """ - return self._cid - - @cid.setter - def cid(self, cid): - """Sets the cid of this UnitsSavecolumnsconceptBody. - - - :param cid: The cid of this UnitsSavecolumnsconceptBody. # noqa: E501 - :type: int - """ - - self._cid = cid - - @property - def tid(self): - """Gets the tid of this UnitsSavecolumnsconceptBody. # noqa: E501 - - - :return: The tid of this UnitsSavecolumnsconceptBody. # noqa: E501 - :rtype: int - """ - return self._tid - - @tid.setter - def tid(self, tid): - """Sets the tid of this UnitsSavecolumnsconceptBody. - - - :param tid: The tid of this UnitsSavecolumnsconceptBody. # noqa: E501 - :type: int - """ - - self._tid = tid - - @property - def uri(self): - """Gets the uri of this UnitsSavecolumnsconceptBody. # noqa: E501 - - - :return: The uri of this UnitsSavecolumnsconceptBody. # noqa: E501 - :rtype: str - """ - return self._uri - - @uri.setter - def uri(self, uri): - """Sets the uri of this UnitsSavecolumnsconceptBody. - - - :param uri: The uri of this UnitsSavecolumnsconceptBody. # noqa: E501 - :type: str - """ - - self._uri = uri - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(UnitsSavecolumnsconceptBody, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, UnitsSavecolumnsconceptBody): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/swagger/api-units/swagger_client/models/units_saveconcept_body.py b/swagger/api-units/swagger_client/models/units_saveconcept_body.py deleted file mode 100644 index 16fcdacc063f5f608a6e65034ada792420a0961e..0000000000000000000000000000000000000000 --- a/swagger/api-units/swagger_client/models/units_saveconcept_body.py +++ /dev/null @@ -1,136 +0,0 @@ -# coding: utf-8 - -""" - units - - powered by Flasgger # noqa: E501 - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -import pprint -import re # noqa: F401 - -import six - -class UnitsSaveconceptBody(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'name': 'str', - 'uri': 'str' - } - - attribute_map = { - 'name': 'name', - 'uri': 'uri' - } - - def __init__(self, name=None, uri=None): # noqa: E501 - """UnitsSaveconceptBody - a model defined in Swagger""" # noqa: E501 - self._name = None - self._uri = None - self.discriminator = None - if name is not None: - self.name = name - if uri is not None: - self.uri = uri - - @property - def name(self): - """Gets the name of this UnitsSaveconceptBody. # noqa: E501 - - - :return: The name of this UnitsSaveconceptBody. # noqa: E501 - :rtype: str - """ - return self._name - - @name.setter - def name(self, name): - """Sets the name of this UnitsSaveconceptBody. - - - :param name: The name of this UnitsSaveconceptBody. # noqa: E501 - :type: str - """ - - self._name = name - - @property - def uri(self): - """Gets the uri of this UnitsSaveconceptBody. # noqa: E501 - - - :return: The uri of this UnitsSaveconceptBody. # noqa: E501 - :rtype: str - """ - return self._uri - - @uri.setter - def uri(self, uri): - """Sets the uri of this UnitsSaveconceptBody. - - - :param uri: The uri of this UnitsSaveconceptBody. # noqa: E501 - :type: str - """ - - self._uri = uri - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(UnitsSaveconceptBody, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, UnitsSaveconceptBody): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/swagger/api-units/swagger_client/models/units_suggest_body.py b/swagger/api-units/swagger_client/models/units_suggest_body.py deleted file mode 100644 index 7aaa2366f8bed8b81c00f6db2871d11670c663a5..0000000000000000000000000000000000000000 --- a/swagger/api-units/swagger_client/models/units_suggest_body.py +++ /dev/null @@ -1,136 +0,0 @@ -# coding: utf-8 - -""" - units - - powered by Flasgger # noqa: E501 - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -import pprint -import re # noqa: F401 - -import six - -class UnitsSuggestBody(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'offset': 'int', - 'ustring': 'str' - } - - attribute_map = { - 'offset': 'offset', - 'ustring': 'ustring' - } - - def __init__(self, offset=None, ustring=None): # noqa: E501 - """UnitsSuggestBody - a model defined in Swagger""" # noqa: E501 - self._offset = None - self._ustring = None - self.discriminator = None - if offset is not None: - self.offset = offset - if ustring is not None: - self.ustring = ustring - - @property - def offset(self): - """Gets the offset of this UnitsSuggestBody. # noqa: E501 - - - :return: The offset of this UnitsSuggestBody. # noqa: E501 - :rtype: int - """ - return self._offset - - @offset.setter - def offset(self, offset): - """Sets the offset of this UnitsSuggestBody. - - - :param offset: The offset of this UnitsSuggestBody. # noqa: E501 - :type: int - """ - - self._offset = offset - - @property - def ustring(self): - """Gets the ustring of this UnitsSuggestBody. # noqa: E501 - - - :return: The ustring of this UnitsSuggestBody. # noqa: E501 - :rtype: str - """ - return self._ustring - - @ustring.setter - def ustring(self, ustring): - """Sets the ustring of this UnitsSuggestBody. - - - :param ustring: The ustring of this UnitsSuggestBody. # noqa: E501 - :type: str - """ - - self._ustring = ustring - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(UnitsSuggestBody, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, UnitsSuggestBody): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/swagger/api-units/swagger_client/rest.py b/swagger/api-units/swagger_client/rest.py deleted file mode 100644 index a4b96071cbd53eb501a9fc5eac1909569705d449..0000000000000000000000000000000000000000 --- a/swagger/api-units/swagger_client/rest.py +++ /dev/null @@ -1,317 +0,0 @@ -# coding: utf-8 - -""" - units - - powered by Flasgger # noqa: E501 - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -from __future__ import absolute_import - -import io -import json -import logging -import re -import ssl - -import certifi -# python 2 and python 3 compatibility library -import six -from six.moves.urllib.parse import urlencode - -try: - import urllib3 -except ImportError: - raise ImportError('Swagger python client requires urllib3.') - - -logger = logging.getLogger(__name__) - - -class RESTResponse(io.IOBase): - - def __init__(self, resp): - self.urllib3_response = resp - self.status = resp.status - self.reason = resp.reason - self.data = resp.data - - def getheaders(self): - """Returns a dictionary of the response headers.""" - return self.urllib3_response.getheaders() - - def getheader(self, name, default=None): - """Returns a given response header.""" - return self.urllib3_response.getheader(name, default) - - -class RESTClientObject(object): - - def __init__(self, configuration, pools_size=4, maxsize=None): - # urllib3.PoolManager will pass all kw parameters to connectionpool - # https://github.com/shazow/urllib3/blob/f9409436f83aeb79fbaf090181cd81b784f1b8ce/urllib3/poolmanager.py#L75 # noqa: E501 - # https://github.com/shazow/urllib3/blob/f9409436f83aeb79fbaf090181cd81b784f1b8ce/urllib3/connectionpool.py#L680 # noqa: E501 - # maxsize is the number of requests to host that are allowed in parallel # noqa: E501 - # Custom SSL certificates and client certificates: http://urllib3.readthedocs.io/en/latest/advanced-usage.html # noqa: E501 - - # cert_reqs - if configuration.verify_ssl: - cert_reqs = ssl.CERT_REQUIRED - else: - cert_reqs = ssl.CERT_NONE - - # ca_certs - if configuration.ssl_ca_cert: - ca_certs = configuration.ssl_ca_cert - else: - # if not set certificate file, use Mozilla's root certificates. - ca_certs = certifi.where() - - addition_pool_args = {} - if configuration.assert_hostname is not None: - addition_pool_args['assert_hostname'] = configuration.assert_hostname # noqa: E501 - - if maxsize is None: - if configuration.connection_pool_maxsize is not None: - maxsize = configuration.connection_pool_maxsize - else: - maxsize = 4 - - # https pool manager - if configuration.proxy: - self.pool_manager = urllib3.ProxyManager( - num_pools=pools_size, - maxsize=maxsize, - cert_reqs=cert_reqs, - ca_certs=ca_certs, - cert_file=configuration.cert_file, - key_file=configuration.key_file, - proxy_url=configuration.proxy, - **addition_pool_args - ) - else: - self.pool_manager = urllib3.PoolManager( - num_pools=pools_size, - maxsize=maxsize, - cert_reqs=cert_reqs, - ca_certs=ca_certs, - cert_file=configuration.cert_file, - key_file=configuration.key_file, - **addition_pool_args - ) - - def request(self, method, url, query_params=None, headers=None, - body=None, post_params=None, _preload_content=True, - _request_timeout=None): - """Perform requests. - - :param method: http request method - :param url: http request url - :param query_params: query parameters in the url - :param headers: http request headers - :param body: request json body, for `application/json` - :param post_params: request post parameters, - `application/x-www-form-urlencoded` - and `multipart/form-data` - :param _preload_content: if False, the urllib3.HTTPResponse object will - be returned without reading/decoding response - data. Default is True. - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - """ - method = method.upper() - assert method in ['GET', 'HEAD', 'DELETE', 'POST', 'PUT', - 'PATCH', 'OPTIONS'] - - if post_params and body: - raise ValueError( - "body parameter cannot be used with post_params parameter." - ) - - post_params = post_params or {} - headers = headers or {} - - timeout = None - if _request_timeout: - if isinstance(_request_timeout, (int, ) if six.PY3 else (int, long)): # noqa: E501,F821 - timeout = urllib3.Timeout(total=_request_timeout) - elif (isinstance(_request_timeout, tuple) and - len(_request_timeout) == 2): - timeout = urllib3.Timeout( - connect=_request_timeout[0], read=_request_timeout[1]) - - if 'Content-Type' not in headers: - headers['Content-Type'] = 'application/json' - - try: - # For `POST`, `PUT`, `PATCH`, `OPTIONS`, `DELETE` - if method in ['POST', 'PUT', 'PATCH', 'OPTIONS', 'DELETE']: - if query_params: - url += '?' + urlencode(query_params) - if re.search('json', headers['Content-Type'], re.IGNORECASE): - request_body = '{}' - if body is not None: - request_body = json.dumps(body) - r = self.pool_manager.request( - method, url, - body=request_body, - preload_content=_preload_content, - timeout=timeout, - headers=headers) - elif headers['Content-Type'] == 'application/x-www-form-urlencoded': # noqa: E501 - r = self.pool_manager.request( - method, url, - fields=post_params, - encode_multipart=False, - preload_content=_preload_content, - timeout=timeout, - headers=headers) - elif headers['Content-Type'] == 'multipart/form-data': - # must del headers['Content-Type'], or the correct - # Content-Type which generated by urllib3 will be - # overwritten. - del headers['Content-Type'] - r = self.pool_manager.request( - method, url, - fields=post_params, - encode_multipart=True, - preload_content=_preload_content, - timeout=timeout, - headers=headers) - # Pass a `string` parameter directly in the body to support - # other content types than Json when `body` argument is - # provided in serialized form - elif isinstance(body, str): - request_body = body - r = self.pool_manager.request( - method, url, - body=request_body, - preload_content=_preload_content, - timeout=timeout, - headers=headers) - else: - # Cannot generate the request from given parameters - msg = """Cannot prepare a request message for provided - arguments. Please check that your arguments match - declared content type.""" - raise ApiException(status=0, reason=msg) - # For `GET`, `HEAD` - else: - r = self.pool_manager.request(method, url, - fields=query_params, - preload_content=_preload_content, - timeout=timeout, - headers=headers) - except urllib3.exceptions.SSLError as e: - msg = "{0}\n{1}".format(type(e).__name__, str(e)) - raise ApiException(status=0, reason=msg) - - if _preload_content: - r = RESTResponse(r) - - # log response body - logger.debug("response body: %s", r.data) - - if not 200 <= r.status <= 299: - raise ApiException(http_resp=r) - - return r - - def GET(self, url, headers=None, query_params=None, _preload_content=True, - _request_timeout=None): - return self.request("GET", url, - headers=headers, - _preload_content=_preload_content, - _request_timeout=_request_timeout, - query_params=query_params) - - def HEAD(self, url, headers=None, query_params=None, _preload_content=True, - _request_timeout=None): - return self.request("HEAD", url, - headers=headers, - _preload_content=_preload_content, - _request_timeout=_request_timeout, - query_params=query_params) - - def OPTIONS(self, url, headers=None, query_params=None, post_params=None, - body=None, _preload_content=True, _request_timeout=None): - return self.request("OPTIONS", url, - headers=headers, - query_params=query_params, - post_params=post_params, - _preload_content=_preload_content, - _request_timeout=_request_timeout, - body=body) - - def DELETE(self, url, headers=None, query_params=None, body=None, - _preload_content=True, _request_timeout=None): - return self.request("DELETE", url, - headers=headers, - query_params=query_params, - _preload_content=_preload_content, - _request_timeout=_request_timeout, - body=body) - - def POST(self, url, headers=None, query_params=None, post_params=None, - body=None, _preload_content=True, _request_timeout=None): - return self.request("POST", url, - headers=headers, - query_params=query_params, - post_params=post_params, - _preload_content=_preload_content, - _request_timeout=_request_timeout, - body=body) - - def PUT(self, url, headers=None, query_params=None, post_params=None, - body=None, _preload_content=True, _request_timeout=None): - return self.request("PUT", url, - headers=headers, - query_params=query_params, - post_params=post_params, - _preload_content=_preload_content, - _request_timeout=_request_timeout, - body=body) - - def PATCH(self, url, headers=None, query_params=None, post_params=None, - body=None, _preload_content=True, _request_timeout=None): - return self.request("PATCH", url, - headers=headers, - query_params=query_params, - post_params=post_params, - _preload_content=_preload_content, - _request_timeout=_request_timeout, - body=body) - - -class ApiException(Exception): - - def __init__(self, status=None, reason=None, http_resp=None): - if http_resp: - self.status = http_resp.status - self.reason = http_resp.reason - self.body = http_resp.data - self.headers = http_resp.getheaders() - else: - self.status = status - self.reason = reason - self.body = None - self.headers = None - - def __str__(self): - """Custom error messages for exception""" - error_message = "({0})\n"\ - "Reason: {1}\n".format(self.status, self.reason) - if self.headers: - error_message += "HTTP response headers: {0}\n".format( - self.headers) - - if self.body: - error_message += "HTTP response body: {0}\n".format(self.body) - - return error_message diff --git a/swagger/api-units/test-requirements.txt b/swagger/api-units/test-requirements.txt deleted file mode 100644 index 2702246c0e6f92a1c41c0960879e07da339e4b7d..0000000000000000000000000000000000000000 --- a/swagger/api-units/test-requirements.txt +++ /dev/null @@ -1,5 +0,0 @@ -coverage>=4.0.3 -nose>=1.3.7 -pluggy>=0.3.1 -py>=1.4.31 -randomize>=0.13 diff --git a/swagger/api-units/test/__init__.py b/swagger/api-units/test/__init__.py deleted file mode 100644 index e69de29bb2d1d6434b8b29ae775ad8c2e48c5391..0000000000000000000000000000000000000000 diff --git a/swagger/api-units/test/test_default_api.py b/swagger/api-units/test/test_default_api.py deleted file mode 100644 index 9569fa5a3468ddd880041d76d47af17614de60b0..0000000000000000000000000000000000000000 --- a/swagger/api-units/test/test_default_api.py +++ /dev/null @@ -1,68 +0,0 @@ -# coding: utf-8 - -""" - units - - powered by Flasgger # noqa: E501 - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -from __future__ import absolute_import - -import unittest - -import swagger_client -from swagger_client.api.default_api import DefaultApi # noqa: E501 -from swagger_client.rest import ApiException - - -class TestDefaultApi(unittest.TestCase): - """DefaultApi unit test stubs""" - - def setUp(self): - self.api = DefaultApi() # noqa: E501 - - def tearDown(self): - pass - - def test_api_units_savecolumnsconcept_post(self): - """Test case for api_units_savecolumnsconcept_post - - Save concepts to MDB # noqa: E501 - """ - pass - - def test_api_units_saveconcept_post(self): - """Test case for api_units_saveconcept_post - - Save concepts to MDB # noqa: E501 - """ - pass - - def test_api_units_suggest_post(self): - """Test case for api_units_suggest_post - - Autosuggest units # noqa: E501 - """ - pass - - def test_api_units_uri_uname_get(self): - """Test case for api_units_uri_uname_get - - Get URI of units # noqa: E501 - """ - pass - - def test_api_units_validate_unit_get(self): - """Test case for api_units_validate_unit_get - - Validate units # noqa: E501 - """ - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/swagger/api-units/test/test_units_savecolumnsconcept_body.py b/swagger/api-units/test/test_units_savecolumnsconcept_body.py deleted file mode 100644 index 38995a102806e793681fcd204eab816d68df6a53..0000000000000000000000000000000000000000 --- a/swagger/api-units/test/test_units_savecolumnsconcept_body.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - units - - powered by Flasgger # noqa: E501 - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -from __future__ import absolute_import - -import unittest - -import swagger_client -from swagger_client.models.units_savecolumnsconcept_body import UnitsSavecolumnsconceptBody # noqa: E501 -from swagger_client.rest import ApiException - - -class TestUnitsSavecolumnsconceptBody(unittest.TestCase): - """UnitsSavecolumnsconceptBody unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testUnitsSavecolumnsconceptBody(self): - """Test UnitsSavecolumnsconceptBody""" - # FIXME: construct object with mandatory attributes with example values - # model = swagger_client.models.units_savecolumnsconcept_body.UnitsSavecolumnsconceptBody() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/swagger/api-units/test/test_units_saveconcept_body.py b/swagger/api-units/test/test_units_saveconcept_body.py deleted file mode 100644 index f0cf023f7e8f4e76a302ebf9edd61fba71b4b9e4..0000000000000000000000000000000000000000 --- a/swagger/api-units/test/test_units_saveconcept_body.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - units - - powered by Flasgger # noqa: E501 - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -from __future__ import absolute_import - -import unittest - -import swagger_client -from swagger_client.models.units_saveconcept_body import UnitsSaveconceptBody # noqa: E501 -from swagger_client.rest import ApiException - - -class TestUnitsSaveconceptBody(unittest.TestCase): - """UnitsSaveconceptBody unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testUnitsSaveconceptBody(self): - """Test UnitsSaveconceptBody""" - # FIXME: construct object with mandatory attributes with example values - # model = swagger_client.models.units_saveconcept_body.UnitsSaveconceptBody() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/swagger/api-units/test/test_units_suggest_body.py b/swagger/api-units/test/test_units_suggest_body.py deleted file mode 100644 index 4a9e8d614807975d92c7e6f795c37d63b8f7a52c..0000000000000000000000000000000000000000 --- a/swagger/api-units/test/test_units_suggest_body.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - units - - powered by Flasgger # noqa: E501 - - OpenAPI spec version: 0.0.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -from __future__ import absolute_import - -import unittest - -import swagger_client -from swagger_client.models.units_suggest_body import UnitsSuggestBody # noqa: E501 -from swagger_client.rest import ApiException - - -class TestUnitsSuggestBody(unittest.TestCase): - """UnitsSuggestBody unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testUnitsSuggestBody(self): - """Test UnitsSuggestBody""" - # FIXME: construct object with mandatory attributes with example values - # model = swagger_client.models.units_suggest_body.UnitsSuggestBody() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/swagger/api-units/tox.ini b/swagger/api-units/tox.ini deleted file mode 100644 index a310bec97d689718c92c84c9aebc6ab031f12933..0000000000000000000000000000000000000000 --- a/swagger/api-units/tox.ini +++ /dev/null @@ -1,10 +0,0 @@ -[tox] -envlist = py3 - -[testenv] -deps=-r{toxinidir}/requirements.txt - -r{toxinidir}/test-requirements.txt - -commands= - nosetests \ - [] diff --git a/swagger/generate.sh b/swagger/generate.sh index d71b1c30de4ee0a099d7e92485f9b0beae36e6b4..ce679dfa6bc465b01bf6b5c9d9962a7ca131656a 100755 --- a/swagger/generate.sh +++ b/swagger/generate.sh @@ -26,17 +26,21 @@ function generate () { function remove () { echo "... removing old python api" rm -rf "${HOME}/Projects/fda-services/.jupyter/api_$1" + rm -rf "${HOME}/Projects/fda-services/.demo/api_$1" } function copy () { echo "... copying python api" cp -r "./api-$1/swagger_client" "${HOME}/Projects/fda-services/.jupyter/api_$1" + cp -r "./api-$1/swagger_client" "${HOME}/Projects/fda-services/.demo/api_$1" } function replace () { echo "... replacing swagger client package name and gateway" find "${HOME}/Projects/fda-services/.jupyter/api_$2" -type f -exec sed -i -e "s/swagger_client/api_$2/g" {} \; find "${HOME}/Projects/fda-services/.jupyter/api_$2" -type f -exec sed -i -e "s/self.host = .*/self.host = \"http:\/\/localhost:9095\"/g" {} \; + find "${HOME}/Projects/fda-services/.demo/api_$2" -type f -exec sed -i -e "s/swagger_client/api_$2/g" {} \; + find "${HOME}/Projects/fda-services/.demo/api_$2" -type f -exec sed -i -e "s/self.host = .*/self.host = \"http:\/\/localhost:9095\"/g" {} \; } for key in "${!services[@]}"; do