Swagger entfernt

main
bgoergen 2 years ago
parent c950285d65
commit 5a7bd6c1c0

@ -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

@ -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

@ -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

@ -4,125 +4,3 @@
- [Icons von Flaticon](https://www.flaticon.com) - [Icons von Flaticon](https://www.flaticon.com)
- [CTk-Vorlage](https://github.com/RoyChng/customtkinter-examples/tree/master/Inventory%20Management) - [CTk-Vorlage](https://github.com/RoyChng/customtkinter-examples/tree/master/Inventory%20Management)
# swagger-client
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
This Python package is automatically generated by the [Swagger Codegen](https://github.com/swagger-api/swagger-codegen) project:
- API version: 0.1.0
- 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.DisziplinApi(swagger_client.ApiClient(configuration))
id = 56 # int |
try:
api_response = api_instance.get_disziplin(id)
pprint(api_response)
except ApiException as e:
print("Exception when calling DisziplinApi->get_disziplin: %s\n" % e)
# create an instance of the API class
api_instance = swagger_client.DisziplinApi(swagger_client.ApiClient(configuration))
try:
api_response = api_instance.get_disziplinen()
pprint(api_response)
except ApiException as e:
print("Exception when calling DisziplinApi->get_disziplinen: %s\n" % e)
```
## Documentation for API Endpoints
All URIs are relative to */*
Class | Method | HTTP request | Description
------------ | ------------- | ------------- | -------------
*DisziplinApi* | [**get_disziplin**](docs/DisziplinApi.md#get_disziplin) | **GET** /disziplinen/{id} |
*DisziplinApi* | [**get_disziplinen**](docs/DisziplinApi.md#get_disziplinen) | **GET** /disziplinen |
*ErgebnisApi* | [**create_ergebnis**](docs/ErgebnisApi.md#create_ergebnis) | **POST** /ergebnisse |
*ErgebnisApi* | [**delete_ergebnis**](docs/ErgebnisApi.md#delete_ergebnis) | **DELETE** /ergebnisse/{id} |
*ErgebnisApi* | [**get_ergebnis**](docs/ErgebnisApi.md#get_ergebnis) | **GET** /ergebnisse/{id} |
*ErgebnisApi* | [**get_ergebnisse**](docs/ErgebnisApi.md#get_ergebnisse) | **GET** /ergebnisse |
*ErgebnisApi* | [**update_ergebnis**](docs/ErgebnisApi.md#update_ergebnis) | **PUT** /ergebnisse/{id} |
*RiegeApi* | [**create_riege**](docs/RiegeApi.md#create_riege) | **POST** /riegen |
*RiegeApi* | [**delete_riege**](docs/RiegeApi.md#delete_riege) | **DELETE** /riegen/{id} |
*RiegeApi* | [**get_riege**](docs/RiegeApi.md#get_riege) | **GET** /riegen/{id} |
*RiegeApi* | [**get_riegen**](docs/RiegeApi.md#get_riegen) | **GET** /riegen |
*RiegeApi* | [**update_riege**](docs/RiegeApi.md#update_riege) | **PUT** /riegen/{id} |
*SchuelerApi* | [**create_schueler**](docs/SchuelerApi.md#create_schueler) | **POST** /schueler |
*SchuelerApi* | [**delete_schueler**](docs/SchuelerApi.md#delete_schueler) | **DELETE** /schueler/{id} |
*SchuelerApi* | [**get_schueler**](docs/SchuelerApi.md#get_schueler) | **GET** /schueler/{id} |
*SchuelerApi* | [**get_schuelers**](docs/SchuelerApi.md#get_schuelers) | **GET** /schueler |
*SchuelerApi* | [**update_schueler**](docs/SchuelerApi.md#update_schueler) | **PUT** /schueler/{id} |
## Documentation For Models
- [Disziplin](docs/Disziplin.md)
- [DisziplinArray](docs/DisziplinArray.md)
- [Ergebnis](docs/Ergebnis.md)
- [ErgebnisArray](docs/ErgebnisArray.md)
- [ErgebnisCreatePayload](docs/ErgebnisCreatePayload.md)
- [ErgebnisUpdatePayload](docs/ErgebnisUpdatePayload.md)
- [Riege](docs/Riege.md)
- [RiegeArray](docs/RiegeArray.md)
- [RiegePayload](docs/RiegePayload.md)
- [Schueler](docs/Schueler.md)
- [SchuelerCreatePayload](docs/SchuelerCreatePayload.md)
- [SchuelerUpdatePayload](docs/SchuelerUpdatePayload.md)
- [Schuelers](docs/Schuelers.md)
## Documentation For Authorization
All endpoints do not require authorization.
## Author

@ -1,15 +0,0 @@
# Disziplin
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**id** | **str** | |
**name** | **str** | |
**a** | **float** | | [optional]
**c** | **float** | | [optional]
**d** | **float** | | [optional]
**geschlecht** | **str** | |
**formel** | **str** | |
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

@ -1,95 +0,0 @@
# swagger_client.DisziplinApi
All URIs are relative to */*
Method | HTTP request | Description
------------- | ------------- | -------------
[**get_disziplin**](DisziplinApi.md#get_disziplin) | **GET** /disziplinen/{id} |
[**get_disziplinen**](DisziplinApi.md#get_disziplinen) | **GET** /disziplinen |
# **get_disziplin**
> Disziplin get_disziplin(id)
### Example
```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.DisziplinApi()
id = 56 # int |
try:
api_response = api_instance.get_disziplin(id)
pprint(api_response)
except ApiException as e:
print("Exception when calling DisziplinApi->get_disziplin: %s\n" % e)
```
### Parameters
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**id** | **int**| |
### Return type
[**Disziplin**](Disziplin.md)
### Authorization
No authorization required
### HTTP request headers
- **Content-Type**: Not defined
- **Accept**: application/json
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
# **get_disziplinen**
> DisziplinArray get_disziplinen()
### Example
```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.DisziplinApi()
try:
api_response = api_instance.get_disziplinen()
pprint(api_response)
except ApiException as e:
print("Exception when calling DisziplinApi->get_disziplinen: %s\n" % e)
```
### Parameters
This endpoint does not need any parameter.
### Return type
[**DisziplinArray**](DisziplinArray.md)
### Authorization
No authorization required
### HTTP request headers
- **Content-Type**: Not defined
- **Accept**: application/json
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)

@ -1,9 +0,0 @@
# DisziplinArray
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**disziplinen** | [**list[Disziplin]**](Disziplin.md) | | [optional]
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

@ -1,13 +0,0 @@
# Ergebnis
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**id** | **str** | |
**disziplin_id** | **str** | |
**schueler_id** | **str** | |
**wert** | **float** | |
**punkte** | **float** | |
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

@ -1,234 +0,0 @@
# swagger_client.ErgebnisApi
All URIs are relative to */*
Method | HTTP request | Description
------------- | ------------- | -------------
[**create_ergebnis**](ErgebnisApi.md#create_ergebnis) | **POST** /ergebnisse |
[**delete_ergebnis**](ErgebnisApi.md#delete_ergebnis) | **DELETE** /ergebnisse/{id} |
[**get_ergebnis**](ErgebnisApi.md#get_ergebnis) | **GET** /ergebnisse/{id} |
[**get_ergebnisse**](ErgebnisApi.md#get_ergebnisse) | **GET** /ergebnisse |
[**update_ergebnis**](ErgebnisApi.md#update_ergebnis) | **PUT** /ergebnisse/{id} |
# **create_ergebnis**
> Ergebnis create_ergebnis(body)
### Example
```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.ErgebnisApi()
body = swagger_client.ErgebnisCreatePayload() # ErgebnisCreatePayload |
try:
api_response = api_instance.create_ergebnis(body)
pprint(api_response)
except ApiException as e:
print("Exception when calling ErgebnisApi->create_ergebnis: %s\n" % e)
```
### Parameters
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**body** | [**ErgebnisCreatePayload**](ErgebnisCreatePayload.md)| |
### Return type
[**Ergebnis**](Ergebnis.md)
### Authorization
No authorization required
### HTTP request headers
- **Content-Type**: application/json
- **Accept**: application/json
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
# **delete_ergebnis**
> delete_ergebnis(id)
### Example
```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.ErgebnisApi()
id = 56 # int |
try:
api_instance.delete_ergebnis(id)
except ApiException as e:
print("Exception when calling ErgebnisApi->delete_ergebnis: %s\n" % e)
```
### Parameters
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**id** | **int**| |
### Return type
void (empty response body)
### Authorization
No authorization required
### HTTP request headers
- **Content-Type**: Not defined
- **Accept**: Not defined
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
# **get_ergebnis**
> Ergebnis get_ergebnis(id)
### Example
```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.ErgebnisApi()
id = 56 # int |
try:
api_response = api_instance.get_ergebnis(id)
pprint(api_response)
except ApiException as e:
print("Exception when calling ErgebnisApi->get_ergebnis: %s\n" % e)
```
### Parameters
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**id** | **int**| |
### Return type
[**Ergebnis**](Ergebnis.md)
### Authorization
No authorization required
### HTTP request headers
- **Content-Type**: Not defined
- **Accept**: application/json
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
# **get_ergebnisse**
> ErgebnisArray get_ergebnisse()
### Example
```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.ErgebnisApi()
try:
api_response = api_instance.get_ergebnisse()
pprint(api_response)
except ApiException as e:
print("Exception when calling ErgebnisApi->get_ergebnisse: %s\n" % e)
```
### Parameters
This endpoint does not need any parameter.
### Return type
[**ErgebnisArray**](ErgebnisArray.md)
### Authorization
No authorization required
### HTTP request headers
- **Content-Type**: Not defined
- **Accept**: application/json
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
# **update_ergebnis**
> Ergebnis update_ergebnis(body, id)
### Example
```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.ErgebnisApi()
body = swagger_client.ErgebnisUpdatePayload() # ErgebnisUpdatePayload |
id = 56 # int |
try:
api_response = api_instance.update_ergebnis(body, id)
pprint(api_response)
except ApiException as e:
print("Exception when calling ErgebnisApi->update_ergebnis: %s\n" % e)
```
### Parameters
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**body** | [**ErgebnisUpdatePayload**](ErgebnisUpdatePayload.md)| |
**id** | **int**| |
### Return type
[**Ergebnis**](Ergebnis.md)
### Authorization
No authorization required
### HTTP request headers
- **Content-Type**: application/json
- **Accept**: application/json
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)

@ -1,9 +0,0 @@
# ErgebnisArray
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**ergebnisse** | [**list[Ergebnis]**](Ergebnis.md) | |
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

@ -1,11 +0,0 @@
# ErgebnisCreatePayload
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**disziplin_id** | **str** | |
**schueler_id** | **str** | |
**wert** | **float** | |
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

@ -1,9 +0,0 @@
# ErgebnisUpdatePayload
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**wert** | **float** | | [optional]
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

@ -1,10 +0,0 @@
# Riege
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**id** | **str** | |
**name** | **str** | |
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

@ -1,234 +0,0 @@
# swagger_client.RiegeApi
All URIs are relative to */*
Method | HTTP request | Description
------------- | ------------- | -------------
[**create_riege**](RiegeApi.md#create_riege) | **POST** /riegen |
[**delete_riege**](RiegeApi.md#delete_riege) | **DELETE** /riegen/{id} |
[**get_riege**](RiegeApi.md#get_riege) | **GET** /riegen/{id} |
[**get_riegen**](RiegeApi.md#get_riegen) | **GET** /riegen |
[**update_riege**](RiegeApi.md#update_riege) | **PUT** /riegen/{id} |
# **create_riege**
> Riege create_riege(body)
### Example
```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.RiegeApi()
body = swagger_client.RiegePayload() # RiegePayload |
try:
api_response = api_instance.create_riege(body)
pprint(api_response)
except ApiException as e:
print("Exception when calling RiegeApi->create_riege: %s\n" % e)
```
### Parameters
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**body** | [**RiegePayload**](RiegePayload.md)| |
### Return type
[**Riege**](Riege.md)
### Authorization
No authorization required
### HTTP request headers
- **Content-Type**: application/json
- **Accept**: application/json
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
# **delete_riege**
> delete_riege(id)
### Example
```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.RiegeApi()
id = 56 # int |
try:
api_instance.delete_riege(id)
except ApiException as e:
print("Exception when calling RiegeApi->delete_riege: %s\n" % e)
```
### Parameters
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**id** | **int**| |
### Return type
void (empty response body)
### Authorization
No authorization required
### HTTP request headers
- **Content-Type**: Not defined
- **Accept**: Not defined
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
# **get_riege**
> Riege get_riege(id)
### Example
```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.RiegeApi()
id = 56 # int |
try:
api_response = api_instance.get_riege(id)
pprint(api_response)
except ApiException as e:
print("Exception when calling RiegeApi->get_riege: %s\n" % e)
```
### Parameters
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**id** | **int**| |
### Return type
[**Riege**](Riege.md)
### Authorization
No authorization required
### HTTP request headers
- **Content-Type**: Not defined
- **Accept**: application/json
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
# **get_riegen**
> RiegeArray get_riegen()
### Example
```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.RiegeApi()
try:
api_response = api_instance.get_riegen()
pprint(api_response)
except ApiException as e:
print("Exception when calling RiegeApi->get_riegen: %s\n" % e)
```
### Parameters
This endpoint does not need any parameter.
### Return type
[**RiegeArray**](RiegeArray.md)
### Authorization
No authorization required
### HTTP request headers
- **Content-Type**: Not defined
- **Accept**: application/json
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
# **update_riege**
> Riege update_riege(body, id)
### Example
```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.RiegeApi()
body = swagger_client.RiegePayload() # RiegePayload |
id = 56 # int |
try:
api_response = api_instance.update_riege(body, id)
pprint(api_response)
except ApiException as e:
print("Exception when calling RiegeApi->update_riege: %s\n" % e)
```
### Parameters
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**body** | [**RiegePayload**](RiegePayload.md)| |
**id** | **int**| |
### Return type
[**Riege**](Riege.md)
### Authorization
No authorization required
### HTTP request headers
- **Content-Type**: application/json
- **Accept**: application/json
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)

@ -1,9 +0,0 @@
# RiegeArray
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**riegen** | [**list[Riege]**](Riege.md) | | [optional]
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

@ -1,9 +0,0 @@
# RiegePayload
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**name** | **str** | | [optional]
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

@ -1,16 +0,0 @@
# Schueler
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**id** | **str** | |
**vorname** | **str** | |
**nachname** | **str** | |
**geburtsjahr** | **float** | | [optional]
**unterscheider** | **str** | | [optional]
**geschlecht** | **str** | | [optional]
**anwesenheit** | **bool** | | [optional] [default to True]
**riegen_id** | **str** | | [optional]
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

@ -1,234 +0,0 @@
# swagger_client.SchuelerApi
All URIs are relative to */*
Method | HTTP request | Description
------------- | ------------- | -------------
[**create_schueler**](SchuelerApi.md#create_schueler) | **POST** /schueler |
[**delete_schueler**](SchuelerApi.md#delete_schueler) | **DELETE** /schueler/{id} |
[**get_schueler**](SchuelerApi.md#get_schueler) | **GET** /schueler/{id} |
[**get_schuelers**](SchuelerApi.md#get_schuelers) | **GET** /schueler |
[**update_schueler**](SchuelerApi.md#update_schueler) | **PUT** /schueler/{id} |
# **create_schueler**
> Schueler create_schueler(body)
### Example
```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.SchuelerApi()
body = swagger_client.SchuelerCreatePayload() # SchuelerCreatePayload |
try:
api_response = api_instance.create_schueler(body)
pprint(api_response)
except ApiException as e:
print("Exception when calling SchuelerApi->create_schueler: %s\n" % e)
```
### Parameters
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**body** | [**SchuelerCreatePayload**](SchuelerCreatePayload.md)| |
### Return type
[**Schueler**](Schueler.md)
### Authorization
No authorization required
### HTTP request headers
- **Content-Type**: application/json
- **Accept**: application/json
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
# **delete_schueler**
> delete_schueler(id)
### Example
```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.SchuelerApi()
id = 56 # int |
try:
api_instance.delete_schueler(id)
except ApiException as e:
print("Exception when calling SchuelerApi->delete_schueler: %s\n" % e)
```
### Parameters
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**id** | **int**| |
### Return type
void (empty response body)
### Authorization
No authorization required
### HTTP request headers
- **Content-Type**: Not defined
- **Accept**: Not defined
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
# **get_schueler**
> Schueler get_schueler(id)
### Example
```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.SchuelerApi()
id = 56 # int |
try:
api_response = api_instance.get_schueler(id)
pprint(api_response)
except ApiException as e:
print("Exception when calling SchuelerApi->get_schueler: %s\n" % e)
```
### Parameters
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**id** | **int**| |
### Return type
[**Schueler**](Schueler.md)
### Authorization
No authorization required
### HTTP request headers
- **Content-Type**: Not defined
- **Accept**: application/json
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
# **get_schuelers**
> Schuelers get_schuelers()
### Example
```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.SchuelerApi()
try:
api_response = api_instance.get_schuelers()
pprint(api_response)
except ApiException as e:
print("Exception when calling SchuelerApi->get_schuelers: %s\n" % e)
```
### Parameters
This endpoint does not need any parameter.
### Return type
[**Schuelers**](Schuelers.md)
### Authorization
No authorization required
### HTTP request headers
- **Content-Type**: Not defined
- **Accept**: application/json
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
# **update_schueler**
> Schueler update_schueler(body, id)
### Example
```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.SchuelerApi()
body = swagger_client.SchuelerUpdatePayload() # SchuelerUpdatePayload |
id = 56 # int |
try:
api_response = api_instance.update_schueler(body, id)
pprint(api_response)
except ApiException as e:
print("Exception when calling SchuelerApi->update_schueler: %s\n" % e)
```
### Parameters
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**body** | [**SchuelerUpdatePayload**](SchuelerUpdatePayload.md)| |
**id** | **int**| |
### Return type
[**Schueler**](Schueler.md)
### Authorization
No authorization required
### HTTP request headers
- **Content-Type**: application/json
- **Accept**: application/json
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)

@ -1,15 +0,0 @@
# SchuelerCreatePayload
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**vorname** | **str** | |
**nachname** | **str** | |
**geburtsjahr** | **float** | | [optional]
**unterscheider** | **str** | | [optional]
**geschlecht** | **str** | | [optional]
**anwesenheit** | **bool** | | [optional] [default to True]
**riegen_id** | **str** | | [optional]
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

@ -1,15 +0,0 @@
# SchuelerUpdatePayload
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**vorname** | **str** | | [optional]
**nachname** | **str** | | [optional]
**geburtsjahr** | **float** | | [optional]
**unterscheider** | **str** | | [optional]
**geschlecht** | **str** | | [optional]
**anwesenheit** | **bool** | | [optional] [default to True]
**riegen_id** | **str** | | [optional]
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

@ -1,9 +0,0 @@
# Schuelers
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**schuelers** | [**list[Schueler]**](Schueler.md) | |
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

@ -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'

@ -1,5 +0,0 @@
certifi >= 14.05.14
six >= 1.10
python_dateutil >= 2.5.3
setuptools >= 21.0.0
urllib3 >= 1.15.1

@ -1,39 +0,0 @@
# coding: utf-8
"""
BuJu API
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501
OpenAPI spec version: 0.1.0
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="BuJu API",
author_email="",
url="",
keywords=["Swagger", "BuJu API"],
install_requires=REQUIRES,
packages=find_packages(),
include_package_data=True,
long_description="""\
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501
"""
)

@ -1,38 +0,0 @@
# coding: utf-8
# flake8: noqa
"""
BuJu API
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501
OpenAPI spec version: 0.1.0
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
# import apis into sdk package
from swagger_client.api.disziplin_api import DisziplinApi
from swagger_client.api.ergebnis_api import ErgebnisApi
from swagger_client.api.riege_api import RiegeApi
from swagger_client.api.schueler_api import SchuelerApi
# import ApiClient
from swagger_client.api_client import ApiClient
from swagger_client.configuration import Configuration
# import models into sdk package
from swagger_client.models.disziplin import Disziplin
from swagger_client.models.disziplin_array import DisziplinArray
from swagger_client.models.ergebnis import Ergebnis
from swagger_client.models.ergebnis_array import ErgebnisArray
from swagger_client.models.ergebnis_create_payload import ErgebnisCreatePayload
from swagger_client.models.ergebnis_update_payload import ErgebnisUpdatePayload
from swagger_client.models.riege import Riege
from swagger_client.models.riege_array import RiegeArray
from swagger_client.models.riege_payload import RiegePayload
from swagger_client.models.schueler import Schueler
from swagger_client.models.schueler_create_payload import SchuelerCreatePayload
from swagger_client.models.schueler_update_payload import SchuelerUpdatePayload
from swagger_client.models.schuelers import Schuelers

@ -1,9 +0,0 @@
from __future__ import absolute_import
# flake8: noqa
# import apis into api package
from swagger_client.api.disziplin_api import DisziplinApi
from swagger_client.api.ergebnis_api import ErgebnisApi
from swagger_client.api.riege_api import RiegeApi
from swagger_client.api.schueler_api import SchuelerApi

@ -1,211 +0,0 @@
# coding: utf-8
"""
BuJu API
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501
OpenAPI spec version: 0.1.0
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 DisziplinApi(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_disziplin(self, id, **kwargs): # noqa: E501
"""get_disziplin # 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_disziplin(id, async_req=True)
>>> result = thread.get()
:param async_req bool
:param int id: (required)
:return: Disziplin
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
if kwargs.get('async_req'):
return self.get_disziplin_with_http_info(id, **kwargs) # noqa: E501
else:
(data) = self.get_disziplin_with_http_info(id, **kwargs) # noqa: E501
return data
def get_disziplin_with_http_info(self, id, **kwargs): # noqa: E501
"""get_disziplin # 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_disziplin_with_http_info(id, async_req=True)
>>> result = thread.get()
:param async_req bool
:param int id: (required)
:return: Disziplin
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 get_disziplin" % 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_disziplin`") # 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(
['application/json']) # noqa: E501
# Authentication setting
auth_settings = [] # noqa: E501
return self.api_client.call_api(
'/disziplinen/{id}', 'GET',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type='Disziplin', # 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_disziplinen(self, **kwargs): # noqa: E501
"""get_disziplinen # 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_disziplinen(async_req=True)
>>> result = thread.get()
:param async_req bool
:return: DisziplinArray
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
if kwargs.get('async_req'):
return self.get_disziplinen_with_http_info(**kwargs) # noqa: E501
else:
(data) = self.get_disziplinen_with_http_info(**kwargs) # noqa: E501
return data
def get_disziplinen_with_http_info(self, **kwargs): # noqa: E501
"""get_disziplinen # 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_disziplinen_with_http_info(async_req=True)
>>> result = thread.get()
:param async_req bool
:return: DisziplinArray
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 get_disziplinen" % 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(
['application/json']) # noqa: E501
# Authentication setting
auth_settings = [] # noqa: E501
return self.api_client.call_api(
'/disziplinen', 'GET',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type='DisziplinArray', # 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)

@ -1,502 +0,0 @@
# coding: utf-8
"""
BuJu API
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501
OpenAPI spec version: 0.1.0
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 ErgebnisApi(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_ergebnis(self, body, **kwargs): # noqa: E501
"""create_ergebnis # 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_ergebnis(body, async_req=True)
>>> result = thread.get()
:param async_req bool
:param ErgebnisCreatePayload body: (required)
:return: Ergebnis
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
if kwargs.get('async_req'):
return self.create_ergebnis_with_http_info(body, **kwargs) # noqa: E501
else:
(data) = self.create_ergebnis_with_http_info(body, **kwargs) # noqa: E501
return data
def create_ergebnis_with_http_info(self, body, **kwargs): # noqa: E501
"""create_ergebnis # 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_ergebnis_with_http_info(body, async_req=True)
>>> result = thread.get()
:param async_req bool
:param ErgebnisCreatePayload body: (required)
:return: Ergebnis
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_ergebnis" % 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_ergebnis`") # 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(
['application/json']) # 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(
'/ergebnisse', 'POST',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type='Ergebnis', # 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_ergebnis(self, id, **kwargs): # noqa: E501
"""delete_ergebnis # 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_ergebnis(id, async_req=True)
>>> result = thread.get()
:param async_req bool
: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.delete_ergebnis_with_http_info(id, **kwargs) # noqa: E501
else:
(data) = self.delete_ergebnis_with_http_info(id, **kwargs) # noqa: E501
return data
def delete_ergebnis_with_http_info(self, id, **kwargs): # noqa: E501
"""delete_ergebnis # 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_ergebnis_with_http_info(id, async_req=True)
>>> result = thread.get()
:param async_req bool
:param int id: (required)
:return: None
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_ergebnis" % 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_ergebnis`") # 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
# Authentication setting
auth_settings = [] # noqa: E501
return self.api_client.call_api(
'/ergebnisse/{id}', '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_ergebnis(self, id, **kwargs): # noqa: E501
"""get_ergebnis # 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_ergebnis(id, async_req=True)
>>> result = thread.get()
:param async_req bool
:param int id: (required)
:return: Ergebnis
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
if kwargs.get('async_req'):
return self.get_ergebnis_with_http_info(id, **kwargs) # noqa: E501
else:
(data) = self.get_ergebnis_with_http_info(id, **kwargs) # noqa: E501
return data
def get_ergebnis_with_http_info(self, id, **kwargs): # noqa: E501
"""get_ergebnis # 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_ergebnis_with_http_info(id, async_req=True)
>>> result = thread.get()
:param async_req bool
:param int id: (required)
:return: Ergebnis
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 get_ergebnis" % 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_ergebnis`") # 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(
['application/json']) # noqa: E501
# Authentication setting
auth_settings = [] # noqa: E501
return self.api_client.call_api(
'/ergebnisse/{id}', 'GET',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type='Ergebnis', # 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_ergebnisse(self, **kwargs): # noqa: E501
"""get_ergebnisse # 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_ergebnisse(async_req=True)
>>> result = thread.get()
:param async_req bool
:return: ErgebnisArray
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
if kwargs.get('async_req'):
return self.get_ergebnisse_with_http_info(**kwargs) # noqa: E501
else:
(data) = self.get_ergebnisse_with_http_info(**kwargs) # noqa: E501
return data
def get_ergebnisse_with_http_info(self, **kwargs): # noqa: E501
"""get_ergebnisse # 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_ergebnisse_with_http_info(async_req=True)
>>> result = thread.get()
:param async_req bool
:return: ErgebnisArray
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 get_ergebnisse" % 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(
['application/json']) # noqa: E501
# Authentication setting
auth_settings = [] # noqa: E501
return self.api_client.call_api(
'/ergebnisse', 'GET',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type='ErgebnisArray', # 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_ergebnis(self, body, id, **kwargs): # noqa: E501
"""update_ergebnis # 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_ergebnis(body, id, async_req=True)
>>> result = thread.get()
:param async_req bool
:param ErgebnisUpdatePayload body: (required)
:param int id: (required)
:return: Ergebnis
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
if kwargs.get('async_req'):
return self.update_ergebnis_with_http_info(body, id, **kwargs) # noqa: E501
else:
(data) = self.update_ergebnis_with_http_info(body, id, **kwargs) # noqa: E501
return data
def update_ergebnis_with_http_info(self, body, id, **kwargs): # noqa: E501
"""update_ergebnis # 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_ergebnis_with_http_info(body, id, async_req=True)
>>> result = thread.get()
:param async_req bool
:param ErgebnisUpdatePayload body: (required)
:param int id: (required)
:return: Ergebnis
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_ergebnis" % 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_ergebnis`") # 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_ergebnis`") # 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(
['application/json']) # 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(
'/ergebnisse/{id}', 'PUT',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type='Ergebnis', # 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)

@ -1,502 +0,0 @@
# coding: utf-8
"""
BuJu API
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501
OpenAPI spec version: 0.1.0
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 RiegeApi(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_riege(self, body, **kwargs): # noqa: E501
"""create_riege # 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_riege(body, async_req=True)
>>> result = thread.get()
:param async_req bool
:param RiegePayload body: (required)
:return: Riege
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
if kwargs.get('async_req'):
return self.create_riege_with_http_info(body, **kwargs) # noqa: E501
else:
(data) = self.create_riege_with_http_info(body, **kwargs) # noqa: E501
return data
def create_riege_with_http_info(self, body, **kwargs): # noqa: E501
"""create_riege # 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_riege_with_http_info(body, async_req=True)
>>> result = thread.get()
:param async_req bool
:param RiegePayload body: (required)
:return: Riege
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_riege" % 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_riege`") # 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(
['application/json']) # 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(
'/riegen', 'POST',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type='Riege', # 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_riege(self, id, **kwargs): # noqa: E501
"""delete_riege # 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_riege(id, async_req=True)
>>> result = thread.get()
:param async_req bool
: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.delete_riege_with_http_info(id, **kwargs) # noqa: E501
else:
(data) = self.delete_riege_with_http_info(id, **kwargs) # noqa: E501
return data
def delete_riege_with_http_info(self, id, **kwargs): # noqa: E501
"""delete_riege # 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_riege_with_http_info(id, async_req=True)
>>> result = thread.get()
:param async_req bool
:param int id: (required)
:return: None
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_riege" % 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_riege`") # 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
# Authentication setting
auth_settings = [] # noqa: E501
return self.api_client.call_api(
'/riegen/{id}', '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_riege(self, id, **kwargs): # noqa: E501
"""get_riege # 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_riege(id, async_req=True)
>>> result = thread.get()
:param async_req bool
:param int id: (required)
:return: Riege
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
if kwargs.get('async_req'):
return self.get_riege_with_http_info(id, **kwargs) # noqa: E501
else:
(data) = self.get_riege_with_http_info(id, **kwargs) # noqa: E501
return data
def get_riege_with_http_info(self, id, **kwargs): # noqa: E501
"""get_riege # 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_riege_with_http_info(id, async_req=True)
>>> result = thread.get()
:param async_req bool
:param int id: (required)
:return: Riege
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 get_riege" % 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_riege`") # 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(
['application/json']) # noqa: E501
# Authentication setting
auth_settings = [] # noqa: E501
return self.api_client.call_api(
'/riegen/{id}', 'GET',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type='Riege', # 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_riegen(self, **kwargs): # noqa: E501
"""get_riegen # 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_riegen(async_req=True)
>>> result = thread.get()
:param async_req bool
:return: RiegeArray
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
if kwargs.get('async_req'):
return self.get_riegen_with_http_info(**kwargs) # noqa: E501
else:
(data) = self.get_riegen_with_http_info(**kwargs) # noqa: E501
return data
def get_riegen_with_http_info(self, **kwargs): # noqa: E501
"""get_riegen # 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_riegen_with_http_info(async_req=True)
>>> result = thread.get()
:param async_req bool
:return: RiegeArray
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 get_riegen" % 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(
['application/json']) # noqa: E501
# Authentication setting
auth_settings = [] # noqa: E501
return self.api_client.call_api(
'/riegen', 'GET',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type='RiegeArray', # 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_riege(self, body, id, **kwargs): # noqa: E501
"""update_riege # 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_riege(body, id, async_req=True)
>>> result = thread.get()
:param async_req bool
:param RiegePayload body: (required)
:param int id: (required)
:return: Riege
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
if kwargs.get('async_req'):
return self.update_riege_with_http_info(body, id, **kwargs) # noqa: E501
else:
(data) = self.update_riege_with_http_info(body, id, **kwargs) # noqa: E501
return data
def update_riege_with_http_info(self, body, id, **kwargs): # noqa: E501
"""update_riege # 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_riege_with_http_info(body, id, async_req=True)
>>> result = thread.get()
:param async_req bool
:param RiegePayload body: (required)
:param int id: (required)
:return: Riege
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_riege" % 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_riege`") # 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_riege`") # 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(
['application/json']) # 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(
'/riegen/{id}', 'PUT',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type='Riege', # 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)

@ -1,502 +0,0 @@
# coding: utf-8
"""
BuJu API
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501
OpenAPI spec version: 0.1.0
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 SchuelerApi(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_schueler(self, body, **kwargs): # noqa: E501
"""create_schueler # 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_schueler(body, async_req=True)
>>> result = thread.get()
:param async_req bool
:param SchuelerCreatePayload body: (required)
:return: Schueler
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
if kwargs.get('async_req'):
return self.create_schueler_with_http_info(body, **kwargs) # noqa: E501
else:
(data) = self.create_schueler_with_http_info(body, **kwargs) # noqa: E501
return data
def create_schueler_with_http_info(self, body, **kwargs): # noqa: E501
"""create_schueler # 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_schueler_with_http_info(body, async_req=True)
>>> result = thread.get()
:param async_req bool
:param SchuelerCreatePayload body: (required)
:return: Schueler
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_schueler" % 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_schueler`") # 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(
['application/json']) # 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(
'/schueler', 'POST',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type='Schueler', # 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_schueler(self, id, **kwargs): # noqa: E501
"""delete_schueler # 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_schueler(id, async_req=True)
>>> result = thread.get()
:param async_req bool
: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.delete_schueler_with_http_info(id, **kwargs) # noqa: E501
else:
(data) = self.delete_schueler_with_http_info(id, **kwargs) # noqa: E501
return data
def delete_schueler_with_http_info(self, id, **kwargs): # noqa: E501
"""delete_schueler # 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_schueler_with_http_info(id, async_req=True)
>>> result = thread.get()
:param async_req bool
:param int id: (required)
:return: None
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_schueler" % 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_schueler`") # 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
# Authentication setting
auth_settings = [] # noqa: E501
return self.api_client.call_api(
'/schueler/{id}', '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_schueler(self, id, **kwargs): # noqa: E501
"""get_schueler # 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_schueler(id, async_req=True)
>>> result = thread.get()
:param async_req bool
:param int id: (required)
:return: Schueler
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
if kwargs.get('async_req'):
return self.get_schueler_with_http_info(id, **kwargs) # noqa: E501
else:
(data) = self.get_schueler_with_http_info(id, **kwargs) # noqa: E501
return data
def get_schueler_with_http_info(self, id, **kwargs): # noqa: E501
"""get_schueler # 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_schueler_with_http_info(id, async_req=True)
>>> result = thread.get()
:param async_req bool
:param int id: (required)
:return: Schueler
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 get_schueler" % 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_schueler`") # 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(
['application/json']) # noqa: E501
# Authentication setting
auth_settings = [] # noqa: E501
return self.api_client.call_api(
'/schueler/{id}', 'GET',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type='Schueler', # 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_schuelers(self, **kwargs): # noqa: E501
"""get_schuelers # 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_schuelers(async_req=True)
>>> result = thread.get()
:param async_req bool
:return: Schuelers
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
if kwargs.get('async_req'):
return self.get_schuelers_with_http_info(**kwargs) # noqa: E501
else:
(data) = self.get_schuelers_with_http_info(**kwargs) # noqa: E501
return data
def get_schuelers_with_http_info(self, **kwargs): # noqa: E501
"""get_schuelers # 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_schuelers_with_http_info(async_req=True)
>>> result = thread.get()
:param async_req bool
:return: Schuelers
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 get_schuelers" % 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(
['application/json']) # noqa: E501
# Authentication setting
auth_settings = [] # noqa: E501
return self.api_client.call_api(
'/schueler', 'GET',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type='Schuelers', # 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_schueler(self, body, id, **kwargs): # noqa: E501
"""update_schueler # 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_schueler(body, id, async_req=True)
>>> result = thread.get()
:param async_req bool
:param SchuelerUpdatePayload body: (required)
:param int id: (required)
:return: Schueler
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
if kwargs.get('async_req'):
return self.update_schueler_with_http_info(body, id, **kwargs) # noqa: E501
else:
(data) = self.update_schueler_with_http_info(body, id, **kwargs) # noqa: E501
return data
def update_schueler_with_http_info(self, body, id, **kwargs): # noqa: E501
"""update_schueler # 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_schueler_with_http_info(body, id, async_req=True)
>>> result = thread.get()
:param async_req bool
:param SchuelerUpdatePayload body: (required)
:param int id: (required)
:return: Schueler
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_schueler" % 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_schueler`") # 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_schueler`") # 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(
['application/json']) # 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(
'/schueler/{id}', 'PUT',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type='Schueler', # 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)

@ -1,632 +0,0 @@
# coding: utf-8
"""
BuJu API
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501
OpenAPI spec version: 0.1.0
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

@ -1,244 +0,0 @@
# coding: utf-8
"""
BuJu API
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501
OpenAPI spec version: 0.1.0
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.1.0\n"\
"SDK Package Version: 1.0.0".\
format(env=sys.platform, pyversion=sys.version)

@ -1,29 +0,0 @@
# coding: utf-8
# flake8: noqa
"""
BuJu API
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501
OpenAPI spec version: 0.1.0
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
# import models into model package
from swagger_client.models.disziplin import Disziplin
from swagger_client.models.disziplin_array import DisziplinArray
from swagger_client.models.ergebnis import Ergebnis
from swagger_client.models.ergebnis_array import ErgebnisArray
from swagger_client.models.ergebnis_create_payload import ErgebnisCreatePayload
from swagger_client.models.ergebnis_update_payload import ErgebnisUpdatePayload
from swagger_client.models.riege import Riege
from swagger_client.models.riege_array import RiegeArray
from swagger_client.models.riege_payload import RiegePayload
from swagger_client.models.schueler import Schueler
from swagger_client.models.schueler_create_payload import SchuelerCreatePayload
from swagger_client.models.schueler_update_payload import SchuelerUpdatePayload
from swagger_client.models.schuelers import Schuelers

@ -1,282 +0,0 @@
# coding: utf-8
"""
BuJu API
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501
OpenAPI spec version: 0.1.0
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
import pprint
import re # noqa: F401
import six
class Disziplin(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',
'a': 'float',
'c': 'float',
'd': 'float',
'geschlecht': 'str',
'formel': 'str'
}
attribute_map = {
'id': 'id',
'name': 'name',
'a': 'a',
'c': 'c',
'd': 'd',
'geschlecht': 'geschlecht',
'formel': 'formel'
}
def __init__(self, id=None, name=None, a=None, c=None, d=None, geschlecht=None, formel=None): # noqa: E501
"""Disziplin - a model defined in Swagger""" # noqa: E501
self._id = None
self._name = None
self._a = None
self._c = None
self._d = None
self._geschlecht = None
self._formel = None
self.discriminator = None
self.id = id
self.name = name
if a is not None:
self.a = a
if c is not None:
self.c = c
if d is not None:
self.d = d
self.geschlecht = geschlecht
self.formel = formel
@property
def id(self):
"""Gets the id of this Disziplin. # noqa: E501
:return: The id of this Disziplin. # noqa: E501
:rtype: str
"""
return self._id
@id.setter
def id(self, id):
"""Sets the id of this Disziplin.
:param id: The id of this Disziplin. # 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 name(self):
"""Gets the name of this Disziplin. # noqa: E501
:return: The name of this Disziplin. # noqa: E501
:rtype: str
"""
return self._name
@name.setter
def name(self, name):
"""Sets the name of this Disziplin.
:param name: The name of this Disziplin. # 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 a(self):
"""Gets the a of this Disziplin. # noqa: E501
:return: The a of this Disziplin. # noqa: E501
:rtype: float
"""
return self._a
@a.setter
def a(self, a):
"""Sets the a of this Disziplin.
:param a: The a of this Disziplin. # noqa: E501
:type: float
"""
self._a = a
@property
def c(self):
"""Gets the c of this Disziplin. # noqa: E501
:return: The c of this Disziplin. # noqa: E501
:rtype: float
"""
return self._c
@c.setter
def c(self, c):
"""Sets the c of this Disziplin.
:param c: The c of this Disziplin. # noqa: E501
:type: float
"""
self._c = c
@property
def d(self):
"""Gets the d of this Disziplin. # noqa: E501
:return: The d of this Disziplin. # noqa: E501
:rtype: float
"""
return self._d
@d.setter
def d(self, d):
"""Sets the d of this Disziplin.
:param d: The d of this Disziplin. # noqa: E501
:type: float
"""
self._d = d
@property
def geschlecht(self):
"""Gets the geschlecht of this Disziplin. # noqa: E501
:return: The geschlecht of this Disziplin. # noqa: E501
:rtype: str
"""
return self._geschlecht
@geschlecht.setter
def geschlecht(self, geschlecht):
"""Sets the geschlecht of this Disziplin.
:param geschlecht: The geschlecht of this Disziplin. # noqa: E501
:type: str
"""
if geschlecht is None:
raise ValueError("Invalid value for `geschlecht`, must not be `None`") # noqa: E501
allowed_values = ["maennlich", "weiblich", "divers"] # noqa: E501
if geschlecht not in allowed_values:
raise ValueError(
"Invalid value for `geschlecht` ({0}), must be one of {1}" # noqa: E501
.format(geschlecht, allowed_values)
)
self._geschlecht = geschlecht
@property
def formel(self):
"""Gets the formel of this Disziplin. # noqa: E501
:return: The formel of this Disziplin. # noqa: E501
:rtype: str
"""
return self._formel
@formel.setter
def formel(self, formel):
"""Sets the formel of this Disziplin.
:param formel: The formel of this Disziplin. # noqa: E501
:type: str
"""
if formel is None:
raise ValueError("Invalid value for `formel`, must not be `None`") # noqa: E501
allowed_values = ["lauf", "andere"] # noqa: E501
if formel not in allowed_values:
raise ValueError(
"Invalid value for `formel` ({0}), must be one of {1}" # noqa: E501
.format(formel, allowed_values)
)
self._formel = formel
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(Disziplin, 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, Disziplin):
return False
return self.__dict__ == other.__dict__
def __ne__(self, other):
"""Returns true if both objects are not equal"""
return not self == other

@ -1,110 +0,0 @@
# coding: utf-8
"""
BuJu API
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501
OpenAPI spec version: 0.1.0
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
import pprint
import re # noqa: F401
import six
class DisziplinArray(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 = {
'disziplinen': 'list[Disziplin]'
}
attribute_map = {
'disziplinen': 'disziplinen'
}
def __init__(self, disziplinen=None): # noqa: E501
"""DisziplinArray - a model defined in Swagger""" # noqa: E501
self._disziplinen = None
self.discriminator = None
if disziplinen is not None:
self.disziplinen = disziplinen
@property
def disziplinen(self):
"""Gets the disziplinen of this DisziplinArray. # noqa: E501
:return: The disziplinen of this DisziplinArray. # noqa: E501
:rtype: list[Disziplin]
"""
return self._disziplinen
@disziplinen.setter
def disziplinen(self, disziplinen):
"""Sets the disziplinen of this DisziplinArray.
:param disziplinen: The disziplinen of this DisziplinArray. # noqa: E501
:type: list[Disziplin]
"""
self._disziplinen = disziplinen
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(DisziplinArray, 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, DisziplinArray):
return False
return self.__dict__ == other.__dict__
def __ne__(self, other):
"""Returns true if both objects are not equal"""
return not self == other

@ -1,219 +0,0 @@
# coding: utf-8
"""
BuJu API
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501
OpenAPI spec version: 0.1.0
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
import pprint
import re # noqa: F401
import six
class Ergebnis(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',
'disziplin_id': 'str',
'schueler_id': 'str',
'wert': 'float',
'punkte': 'float'
}
attribute_map = {
'id': 'id',
'disziplin_id': 'disziplin_id',
'schueler_id': 'schueler_id',
'wert': 'wert',
'punkte': 'punkte'
}
def __init__(self, id=None, disziplin_id=None, schueler_id=None, wert=None, punkte=None): # noqa: E501
"""Ergebnis - a model defined in Swagger""" # noqa: E501
self._id = None
self._disziplin_id = None
self._schueler_id = None
self._wert = None
self._punkte = None
self.discriminator = None
self.id = id
self.disziplin_id = disziplin_id
self.schueler_id = schueler_id
self.wert = wert
self.punkte = punkte
@property
def id(self):
"""Gets the id of this Ergebnis. # noqa: E501
:return: The id of this Ergebnis. # noqa: E501
:rtype: str
"""
return self._id
@id.setter
def id(self, id):
"""Sets the id of this Ergebnis.
:param id: The id of this Ergebnis. # 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 disziplin_id(self):
"""Gets the disziplin_id of this Ergebnis. # noqa: E501
:return: The disziplin_id of this Ergebnis. # noqa: E501
:rtype: str
"""
return self._disziplin_id
@disziplin_id.setter
def disziplin_id(self, disziplin_id):
"""Sets the disziplin_id of this Ergebnis.
:param disziplin_id: The disziplin_id of this Ergebnis. # noqa: E501
:type: str
"""
if disziplin_id is None:
raise ValueError("Invalid value for `disziplin_id`, must not be `None`") # noqa: E501
self._disziplin_id = disziplin_id
@property
def schueler_id(self):
"""Gets the schueler_id of this Ergebnis. # noqa: E501
:return: The schueler_id of this Ergebnis. # noqa: E501
:rtype: str
"""
return self._schueler_id
@schueler_id.setter
def schueler_id(self, schueler_id):
"""Sets the schueler_id of this Ergebnis.
:param schueler_id: The schueler_id of this Ergebnis. # noqa: E501
:type: str
"""
if schueler_id is None:
raise ValueError("Invalid value for `schueler_id`, must not be `None`") # noqa: E501
self._schueler_id = schueler_id
@property
def wert(self):
"""Gets the wert of this Ergebnis. # noqa: E501
:return: The wert of this Ergebnis. # noqa: E501
:rtype: float
"""
return self._wert
@wert.setter
def wert(self, wert):
"""Sets the wert of this Ergebnis.
:param wert: The wert of this Ergebnis. # noqa: E501
:type: float
"""
if wert is None:
raise ValueError("Invalid value for `wert`, must not be `None`") # noqa: E501
self._wert = wert
@property
def punkte(self):
"""Gets the punkte of this Ergebnis. # noqa: E501
:return: The punkte of this Ergebnis. # noqa: E501
:rtype: float
"""
return self._punkte
@punkte.setter
def punkte(self, punkte):
"""Sets the punkte of this Ergebnis.
:param punkte: The punkte of this Ergebnis. # noqa: E501
:type: float
"""
if punkte is None:
raise ValueError("Invalid value for `punkte`, must not be `None`") # noqa: E501
self._punkte = punkte
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(Ergebnis, 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, Ergebnis):
return False
return self.__dict__ == other.__dict__
def __ne__(self, other):
"""Returns true if both objects are not equal"""
return not self == other

@ -1,111 +0,0 @@
# coding: utf-8
"""
BuJu API
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501
OpenAPI spec version: 0.1.0
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
import pprint
import re # noqa: F401
import six
class ErgebnisArray(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 = {
'ergebnisse': 'list[Ergebnis]'
}
attribute_map = {
'ergebnisse': 'ergebnisse'
}
def __init__(self, ergebnisse=None): # noqa: E501
"""ErgebnisArray - a model defined in Swagger""" # noqa: E501
self._ergebnisse = None
self.discriminator = None
self.ergebnisse = ergebnisse
@property
def ergebnisse(self):
"""Gets the ergebnisse of this ErgebnisArray. # noqa: E501
:return: The ergebnisse of this ErgebnisArray. # noqa: E501
:rtype: list[Ergebnis]
"""
return self._ergebnisse
@ergebnisse.setter
def ergebnisse(self, ergebnisse):
"""Sets the ergebnisse of this ErgebnisArray.
:param ergebnisse: The ergebnisse of this ErgebnisArray. # noqa: E501
:type: list[Ergebnis]
"""
if ergebnisse is None:
raise ValueError("Invalid value for `ergebnisse`, must not be `None`") # noqa: E501
self._ergebnisse = ergebnisse
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(ErgebnisArray, 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, ErgebnisArray):
return False
return self.__dict__ == other.__dict__
def __ne__(self, other):
"""Returns true if both objects are not equal"""
return not self == other

@ -1,165 +0,0 @@
# coding: utf-8
"""
BuJu API
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501
OpenAPI spec version: 0.1.0
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
import pprint
import re # noqa: F401
import six
class ErgebnisCreatePayload(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 = {
'disziplin_id': 'str',
'schueler_id': 'str',
'wert': 'float'
}
attribute_map = {
'disziplin_id': 'disziplin_id',
'schueler_id': 'schueler_id',
'wert': 'wert'
}
def __init__(self, disziplin_id=None, schueler_id=None, wert=None): # noqa: E501
"""ErgebnisCreatePayload - a model defined in Swagger""" # noqa: E501
self._disziplin_id = None
self._schueler_id = None
self._wert = None
self.discriminator = None
self.disziplin_id = disziplin_id
self.schueler_id = schueler_id
self.wert = wert
@property
def disziplin_id(self):
"""Gets the disziplin_id of this ErgebnisCreatePayload. # noqa: E501
:return: The disziplin_id of this ErgebnisCreatePayload. # noqa: E501
:rtype: str
"""
return self._disziplin_id
@disziplin_id.setter
def disziplin_id(self, disziplin_id):
"""Sets the disziplin_id of this ErgebnisCreatePayload.
:param disziplin_id: The disziplin_id of this ErgebnisCreatePayload. # noqa: E501
:type: str
"""
if disziplin_id is None:
raise ValueError("Invalid value for `disziplin_id`, must not be `None`") # noqa: E501
self._disziplin_id = disziplin_id
@property
def schueler_id(self):
"""Gets the schueler_id of this ErgebnisCreatePayload. # noqa: E501
:return: The schueler_id of this ErgebnisCreatePayload. # noqa: E501
:rtype: str
"""
return self._schueler_id
@schueler_id.setter
def schueler_id(self, schueler_id):
"""Sets the schueler_id of this ErgebnisCreatePayload.
:param schueler_id: The schueler_id of this ErgebnisCreatePayload. # noqa: E501
:type: str
"""
if schueler_id is None:
raise ValueError("Invalid value for `schueler_id`, must not be `None`") # noqa: E501
self._schueler_id = schueler_id
@property
def wert(self):
"""Gets the wert of this ErgebnisCreatePayload. # noqa: E501
:return: The wert of this ErgebnisCreatePayload. # noqa: E501
:rtype: float
"""
return self._wert
@wert.setter
def wert(self, wert):
"""Sets the wert of this ErgebnisCreatePayload.
:param wert: The wert of this ErgebnisCreatePayload. # noqa: E501
:type: float
"""
if wert is None:
raise ValueError("Invalid value for `wert`, must not be `None`") # noqa: E501
self._wert = wert
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(ErgebnisCreatePayload, 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, ErgebnisCreatePayload):
return False
return self.__dict__ == other.__dict__
def __ne__(self, other):
"""Returns true if both objects are not equal"""
return not self == other

@ -1,110 +0,0 @@
# coding: utf-8
"""
BuJu API
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501
OpenAPI spec version: 0.1.0
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
import pprint
import re # noqa: F401
import six
class ErgebnisUpdatePayload(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 = {
'wert': 'float'
}
attribute_map = {
'wert': 'wert'
}
def __init__(self, wert=None): # noqa: E501
"""ErgebnisUpdatePayload - a model defined in Swagger""" # noqa: E501
self._wert = None
self.discriminator = None
if wert is not None:
self.wert = wert
@property
def wert(self):
"""Gets the wert of this ErgebnisUpdatePayload. # noqa: E501
:return: The wert of this ErgebnisUpdatePayload. # noqa: E501
:rtype: float
"""
return self._wert
@wert.setter
def wert(self, wert):
"""Sets the wert of this ErgebnisUpdatePayload.
:param wert: The wert of this ErgebnisUpdatePayload. # noqa: E501
:type: float
"""
self._wert = wert
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(ErgebnisUpdatePayload, 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, ErgebnisUpdatePayload):
return False
return self.__dict__ == other.__dict__
def __ne__(self, other):
"""Returns true if both objects are not equal"""
return not self == other

@ -1,138 +0,0 @@
# coding: utf-8
"""
BuJu API
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501
OpenAPI spec version: 0.1.0
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
import pprint
import re # noqa: F401
import six
class Riege(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
"""Riege - a model defined in Swagger""" # noqa: E501
self._id = None
self._name = None
self.discriminator = None
self.id = id
self.name = name
@property
def id(self):
"""Gets the id of this Riege. # noqa: E501
:return: The id of this Riege. # noqa: E501
:rtype: str
"""
return self._id
@id.setter
def id(self, id):
"""Sets the id of this Riege.
:param id: The id of this Riege. # 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 name(self):
"""Gets the name of this Riege. # noqa: E501
:return: The name of this Riege. # noqa: E501
:rtype: str
"""
return self._name
@name.setter
def name(self, name):
"""Sets the name of this Riege.
:param name: The name of this Riege. # noqa: E501
:type: str
"""
if name is None:
raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501
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(Riege, 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, Riege):
return False
return self.__dict__ == other.__dict__
def __ne__(self, other):
"""Returns true if both objects are not equal"""
return not self == other

@ -1,110 +0,0 @@
# coding: utf-8
"""
BuJu API
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501
OpenAPI spec version: 0.1.0
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
import pprint
import re # noqa: F401
import six
class RiegeArray(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 = {
'riegen': 'list[Riege]'
}
attribute_map = {
'riegen': 'riegen'
}
def __init__(self, riegen=None): # noqa: E501
"""RiegeArray - a model defined in Swagger""" # noqa: E501
self._riegen = None
self.discriminator = None
if riegen is not None:
self.riegen = riegen
@property
def riegen(self):
"""Gets the riegen of this RiegeArray. # noqa: E501
:return: The riegen of this RiegeArray. # noqa: E501
:rtype: list[Riege]
"""
return self._riegen
@riegen.setter
def riegen(self, riegen):
"""Sets the riegen of this RiegeArray.
:param riegen: The riegen of this RiegeArray. # noqa: E501
:type: list[Riege]
"""
self._riegen = riegen
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(RiegeArray, 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, RiegeArray):
return False
return self.__dict__ == other.__dict__
def __ne__(self, other):
"""Returns true if both objects are not equal"""
return not self == other

@ -1,110 +0,0 @@
# coding: utf-8
"""
BuJu API
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501
OpenAPI spec version: 0.1.0
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
import pprint
import re # noqa: F401
import six
class RiegePayload(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'
}
attribute_map = {
'name': 'name'
}
def __init__(self, name=None): # noqa: E501
"""RiegePayload - a model defined in Swagger""" # noqa: E501
self._name = None
self.discriminator = None
if name is not None:
self.name = name
@property
def name(self):
"""Gets the name of this RiegePayload. # noqa: E501
:return: The name of this RiegePayload. # noqa: E501
:rtype: str
"""
return self._name
@name.setter
def name(self, name):
"""Sets the name of this RiegePayload.
:param name: The name of this RiegePayload. # 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(RiegePayload, 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, RiegePayload):
return False
return self.__dict__ == other.__dict__
def __ne__(self, other):
"""Returns true if both objects are not equal"""
return not self == other

@ -1,301 +0,0 @@
# coding: utf-8
"""
BuJu API
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501
OpenAPI spec version: 0.1.0
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
import pprint
import re # noqa: F401
import six
class Schueler(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',
'vorname': 'str',
'nachname': 'str',
'geburtsjahr': 'float',
'unterscheider': 'str',
'geschlecht': 'str',
'anwesenheit': 'bool',
'riegen_id': 'str'
}
attribute_map = {
'id': 'id',
'vorname': 'vorname',
'nachname': 'nachname',
'geburtsjahr': 'geburtsjahr',
'unterscheider': 'unterscheider',
'geschlecht': 'geschlecht',
'anwesenheit': 'anwesenheit',
'riegen_id': 'riegen_id'
}
def __init__(self, id=None, vorname=None, nachname=None, geburtsjahr=None, unterscheider=None, geschlecht=None, anwesenheit=True, riegen_id=None): # noqa: E501
"""Schueler - a model defined in Swagger""" # noqa: E501
self._id = None
self._vorname = None
self._nachname = None
self._geburtsjahr = None
self._unterscheider = None
self._geschlecht = None
self._anwesenheit = None
self._riegen_id = None
self.discriminator = None
self.id = id
self.vorname = vorname
self.nachname = nachname
if geburtsjahr is not None:
self.geburtsjahr = geburtsjahr
if unterscheider is not None:
self.unterscheider = unterscheider
if geschlecht is not None:
self.geschlecht = geschlecht
if anwesenheit is not None:
self.anwesenheit = anwesenheit
if riegen_id is not None:
self.riegen_id = riegen_id
@property
def id(self):
"""Gets the id of this Schueler. # noqa: E501
:return: The id of this Schueler. # noqa: E501
:rtype: str
"""
return self._id
@id.setter
def id(self, id):
"""Sets the id of this Schueler.
:param id: The id of this Schueler. # 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 vorname(self):
"""Gets the vorname of this Schueler. # noqa: E501
:return: The vorname of this Schueler. # noqa: E501
:rtype: str
"""
return self._vorname
@vorname.setter
def vorname(self, vorname):
"""Sets the vorname of this Schueler.
:param vorname: The vorname of this Schueler. # noqa: E501
:type: str
"""
if vorname is None:
raise ValueError("Invalid value for `vorname`, must not be `None`") # noqa: E501
self._vorname = vorname
@property
def nachname(self):
"""Gets the nachname of this Schueler. # noqa: E501
:return: The nachname of this Schueler. # noqa: E501
:rtype: str
"""
return self._nachname
@nachname.setter
def nachname(self, nachname):
"""Sets the nachname of this Schueler.
:param nachname: The nachname of this Schueler. # noqa: E501
:type: str
"""
if nachname is None:
raise ValueError("Invalid value for `nachname`, must not be `None`") # noqa: E501
self._nachname = nachname
@property
def geburtsjahr(self):
"""Gets the geburtsjahr of this Schueler. # noqa: E501
:return: The geburtsjahr of this Schueler. # noqa: E501
:rtype: float
"""
return self._geburtsjahr
@geburtsjahr.setter
def geburtsjahr(self, geburtsjahr):
"""Sets the geburtsjahr of this Schueler.
:param geburtsjahr: The geburtsjahr of this Schueler. # noqa: E501
:type: float
"""
self._geburtsjahr = geburtsjahr
@property
def unterscheider(self):
"""Gets the unterscheider of this Schueler. # noqa: E501
:return: The unterscheider of this Schueler. # noqa: E501
:rtype: str
"""
return self._unterscheider
@unterscheider.setter
def unterscheider(self, unterscheider):
"""Sets the unterscheider of this Schueler.
:param unterscheider: The unterscheider of this Schueler. # noqa: E501
:type: str
"""
self._unterscheider = unterscheider
@property
def geschlecht(self):
"""Gets the geschlecht of this Schueler. # noqa: E501
:return: The geschlecht of this Schueler. # noqa: E501
:rtype: str
"""
return self._geschlecht
@geschlecht.setter
def geschlecht(self, geschlecht):
"""Sets the geschlecht of this Schueler.
:param geschlecht: The geschlecht of this Schueler. # noqa: E501
:type: str
"""
allowed_values = ["maennlich", "weiblich", "divers"] # noqa: E501
if geschlecht not in allowed_values:
raise ValueError(
"Invalid value for `geschlecht` ({0}), must be one of {1}" # noqa: E501
.format(geschlecht, allowed_values)
)
self._geschlecht = geschlecht
@property
def anwesenheit(self):
"""Gets the anwesenheit of this Schueler. # noqa: E501
:return: The anwesenheit of this Schueler. # noqa: E501
:rtype: bool
"""
return self._anwesenheit
@anwesenheit.setter
def anwesenheit(self, anwesenheit):
"""Sets the anwesenheit of this Schueler.
:param anwesenheit: The anwesenheit of this Schueler. # noqa: E501
:type: bool
"""
self._anwesenheit = anwesenheit
@property
def riegen_id(self):
"""Gets the riegen_id of this Schueler. # noqa: E501
:return: The riegen_id of this Schueler. # noqa: E501
:rtype: str
"""
return self._riegen_id
@riegen_id.setter
def riegen_id(self, riegen_id):
"""Sets the riegen_id of this Schueler.
:param riegen_id: The riegen_id of this Schueler. # noqa: E501
:type: str
"""
self._riegen_id = riegen_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(Schueler, 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, Schueler):
return False
return self.__dict__ == other.__dict__
def __ne__(self, other):
"""Returns true if both objects are not equal"""
return not self == other

@ -1,274 +0,0 @@
# coding: utf-8
"""
BuJu API
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501
OpenAPI spec version: 0.1.0
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
import pprint
import re # noqa: F401
import six
class SchuelerCreatePayload(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 = {
'vorname': 'str',
'nachname': 'str',
'geburtsjahr': 'float',
'unterscheider': 'str',
'geschlecht': 'str',
'anwesenheit': 'bool',
'riegen_id': 'str'
}
attribute_map = {
'vorname': 'vorname',
'nachname': 'nachname',
'geburtsjahr': 'geburtsjahr',
'unterscheider': 'unterscheider',
'geschlecht': 'geschlecht',
'anwesenheit': 'anwesenheit',
'riegen_id': 'riegen_id'
}
def __init__(self, vorname=None, nachname=None, geburtsjahr=None, unterscheider=None, geschlecht=None, anwesenheit=True, riegen_id=None): # noqa: E501
"""SchuelerCreatePayload - a model defined in Swagger""" # noqa: E501
self._vorname = None
self._nachname = None
self._geburtsjahr = None
self._unterscheider = None
self._geschlecht = None
self._anwesenheit = None
self._riegen_id = None
self.discriminator = None
self.vorname = vorname
self.nachname = nachname
if geburtsjahr is not None:
self.geburtsjahr = geburtsjahr
if unterscheider is not None:
self.unterscheider = unterscheider
if geschlecht is not None:
self.geschlecht = geschlecht
if anwesenheit is not None:
self.anwesenheit = anwesenheit
if riegen_id is not None:
self.riegen_id = riegen_id
@property
def vorname(self):
"""Gets the vorname of this SchuelerCreatePayload. # noqa: E501
:return: The vorname of this SchuelerCreatePayload. # noqa: E501
:rtype: str
"""
return self._vorname
@vorname.setter
def vorname(self, vorname):
"""Sets the vorname of this SchuelerCreatePayload.
:param vorname: The vorname of this SchuelerCreatePayload. # noqa: E501
:type: str
"""
if vorname is None:
raise ValueError("Invalid value for `vorname`, must not be `None`") # noqa: E501
self._vorname = vorname
@property
def nachname(self):
"""Gets the nachname of this SchuelerCreatePayload. # noqa: E501
:return: The nachname of this SchuelerCreatePayload. # noqa: E501
:rtype: str
"""
return self._nachname
@nachname.setter
def nachname(self, nachname):
"""Sets the nachname of this SchuelerCreatePayload.
:param nachname: The nachname of this SchuelerCreatePayload. # noqa: E501
:type: str
"""
if nachname is None:
raise ValueError("Invalid value for `nachname`, must not be `None`") # noqa: E501
self._nachname = nachname
@property
def geburtsjahr(self):
"""Gets the geburtsjahr of this SchuelerCreatePayload. # noqa: E501
:return: The geburtsjahr of this SchuelerCreatePayload. # noqa: E501
:rtype: float
"""
return self._geburtsjahr
@geburtsjahr.setter
def geburtsjahr(self, geburtsjahr):
"""Sets the geburtsjahr of this SchuelerCreatePayload.
:param geburtsjahr: The geburtsjahr of this SchuelerCreatePayload. # noqa: E501
:type: float
"""
self._geburtsjahr = geburtsjahr
@property
def unterscheider(self):
"""Gets the unterscheider of this SchuelerCreatePayload. # noqa: E501
:return: The unterscheider of this SchuelerCreatePayload. # noqa: E501
:rtype: str
"""
return self._unterscheider
@unterscheider.setter
def unterscheider(self, unterscheider):
"""Sets the unterscheider of this SchuelerCreatePayload.
:param unterscheider: The unterscheider of this SchuelerCreatePayload. # noqa: E501
:type: str
"""
self._unterscheider = unterscheider
@property
def geschlecht(self):
"""Gets the geschlecht of this SchuelerCreatePayload. # noqa: E501
:return: The geschlecht of this SchuelerCreatePayload. # noqa: E501
:rtype: str
"""
return self._geschlecht
@geschlecht.setter
def geschlecht(self, geschlecht):
"""Sets the geschlecht of this SchuelerCreatePayload.
:param geschlecht: The geschlecht of this SchuelerCreatePayload. # noqa: E501
:type: str
"""
allowed_values = ["maennlich", "weiblich", "divers"] # noqa: E501
if geschlecht not in allowed_values:
raise ValueError(
"Invalid value for `geschlecht` ({0}), must be one of {1}" # noqa: E501
.format(geschlecht, allowed_values)
)
self._geschlecht = geschlecht
@property
def anwesenheit(self):
"""Gets the anwesenheit of this SchuelerCreatePayload. # noqa: E501
:return: The anwesenheit of this SchuelerCreatePayload. # noqa: E501
:rtype: bool
"""
return self._anwesenheit
@anwesenheit.setter
def anwesenheit(self, anwesenheit):
"""Sets the anwesenheit of this SchuelerCreatePayload.
:param anwesenheit: The anwesenheit of this SchuelerCreatePayload. # noqa: E501
:type: bool
"""
self._anwesenheit = anwesenheit
@property
def riegen_id(self):
"""Gets the riegen_id of this SchuelerCreatePayload. # noqa: E501
:return: The riegen_id of this SchuelerCreatePayload. # noqa: E501
:rtype: str
"""
return self._riegen_id
@riegen_id.setter
def riegen_id(self, riegen_id):
"""Sets the riegen_id of this SchuelerCreatePayload.
:param riegen_id: The riegen_id of this SchuelerCreatePayload. # noqa: E501
:type: str
"""
self._riegen_id = riegen_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(SchuelerCreatePayload, 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, SchuelerCreatePayload):
return False
return self.__dict__ == other.__dict__
def __ne__(self, other):
"""Returns true if both objects are not equal"""
return not self == other

@ -1,272 +0,0 @@
# coding: utf-8
"""
BuJu API
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501
OpenAPI spec version: 0.1.0
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
import pprint
import re # noqa: F401
import six
class SchuelerUpdatePayload(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 = {
'vorname': 'str',
'nachname': 'str',
'geburtsjahr': 'float',
'unterscheider': 'str',
'geschlecht': 'str',
'anwesenheit': 'bool',
'riegen_id': 'str'
}
attribute_map = {
'vorname': 'vorname',
'nachname': 'nachname',
'geburtsjahr': 'geburtsjahr',
'unterscheider': 'unterscheider',
'geschlecht': 'geschlecht',
'anwesenheit': 'anwesenheit',
'riegen_id': 'riegen_id'
}
def __init__(self, vorname=None, nachname=None, geburtsjahr=None, unterscheider=None, geschlecht=None, anwesenheit=True, riegen_id=None): # noqa: E501
"""SchuelerUpdatePayload - a model defined in Swagger""" # noqa: E501
self._vorname = None
self._nachname = None
self._geburtsjahr = None
self._unterscheider = None
self._geschlecht = None
self._anwesenheit = None
self._riegen_id = None
self.discriminator = None
if vorname is not None:
self.vorname = vorname
if nachname is not None:
self.nachname = nachname
if geburtsjahr is not None:
self.geburtsjahr = geburtsjahr
if unterscheider is not None:
self.unterscheider = unterscheider
if geschlecht is not None:
self.geschlecht = geschlecht
if anwesenheit is not None:
self.anwesenheit = anwesenheit
if riegen_id is not None:
self.riegen_id = riegen_id
@property
def vorname(self):
"""Gets the vorname of this SchuelerUpdatePayload. # noqa: E501
:return: The vorname of this SchuelerUpdatePayload. # noqa: E501
:rtype: str
"""
return self._vorname
@vorname.setter
def vorname(self, vorname):
"""Sets the vorname of this SchuelerUpdatePayload.
:param vorname: The vorname of this SchuelerUpdatePayload. # noqa: E501
:type: str
"""
self._vorname = vorname
@property
def nachname(self):
"""Gets the nachname of this SchuelerUpdatePayload. # noqa: E501
:return: The nachname of this SchuelerUpdatePayload. # noqa: E501
:rtype: str
"""
return self._nachname
@nachname.setter
def nachname(self, nachname):
"""Sets the nachname of this SchuelerUpdatePayload.
:param nachname: The nachname of this SchuelerUpdatePayload. # noqa: E501
:type: str
"""
self._nachname = nachname
@property
def geburtsjahr(self):
"""Gets the geburtsjahr of this SchuelerUpdatePayload. # noqa: E501
:return: The geburtsjahr of this SchuelerUpdatePayload. # noqa: E501
:rtype: float
"""
return self._geburtsjahr
@geburtsjahr.setter
def geburtsjahr(self, geburtsjahr):
"""Sets the geburtsjahr of this SchuelerUpdatePayload.
:param geburtsjahr: The geburtsjahr of this SchuelerUpdatePayload. # noqa: E501
:type: float
"""
self._geburtsjahr = geburtsjahr
@property
def unterscheider(self):
"""Gets the unterscheider of this SchuelerUpdatePayload. # noqa: E501
:return: The unterscheider of this SchuelerUpdatePayload. # noqa: E501
:rtype: str
"""
return self._unterscheider
@unterscheider.setter
def unterscheider(self, unterscheider):
"""Sets the unterscheider of this SchuelerUpdatePayload.
:param unterscheider: The unterscheider of this SchuelerUpdatePayload. # noqa: E501
:type: str
"""
self._unterscheider = unterscheider
@property
def geschlecht(self):
"""Gets the geschlecht of this SchuelerUpdatePayload. # noqa: E501
:return: The geschlecht of this SchuelerUpdatePayload. # noqa: E501
:rtype: str
"""
return self._geschlecht
@geschlecht.setter
def geschlecht(self, geschlecht):
"""Sets the geschlecht of this SchuelerUpdatePayload.
:param geschlecht: The geschlecht of this SchuelerUpdatePayload. # noqa: E501
:type: str
"""
allowed_values = ["maennlich", "weiblich", "divers"] # noqa: E501
if geschlecht not in allowed_values:
raise ValueError(
"Invalid value for `geschlecht` ({0}), must be one of {1}" # noqa: E501
.format(geschlecht, allowed_values)
)
self._geschlecht = geschlecht
@property
def anwesenheit(self):
"""Gets the anwesenheit of this SchuelerUpdatePayload. # noqa: E501
:return: The anwesenheit of this SchuelerUpdatePayload. # noqa: E501
:rtype: bool
"""
return self._anwesenheit
@anwesenheit.setter
def anwesenheit(self, anwesenheit):
"""Sets the anwesenheit of this SchuelerUpdatePayload.
:param anwesenheit: The anwesenheit of this SchuelerUpdatePayload. # noqa: E501
:type: bool
"""
self._anwesenheit = anwesenheit
@property
def riegen_id(self):
"""Gets the riegen_id of this SchuelerUpdatePayload. # noqa: E501
:return: The riegen_id of this SchuelerUpdatePayload. # noqa: E501
:rtype: str
"""
return self._riegen_id
@riegen_id.setter
def riegen_id(self, riegen_id):
"""Sets the riegen_id of this SchuelerUpdatePayload.
:param riegen_id: The riegen_id of this SchuelerUpdatePayload. # noqa: E501
:type: str
"""
self._riegen_id = riegen_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(SchuelerUpdatePayload, 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, SchuelerUpdatePayload):
return False
return self.__dict__ == other.__dict__
def __ne__(self, other):
"""Returns true if both objects are not equal"""
return not self == other

@ -1,111 +0,0 @@
# coding: utf-8
"""
BuJu API
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501
OpenAPI spec version: 0.1.0
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
import pprint
import re # noqa: F401
import six
class Schuelers(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 = {
'schuelers': 'list[Schueler]'
}
attribute_map = {
'schuelers': 'schuelers'
}
def __init__(self, schuelers=None): # noqa: E501
"""Schuelers - a model defined in Swagger""" # noqa: E501
self._schuelers = None
self.discriminator = None
self.schuelers = schuelers
@property
def schuelers(self):
"""Gets the schuelers of this Schuelers. # noqa: E501
:return: The schuelers of this Schuelers. # noqa: E501
:rtype: list[Schueler]
"""
return self._schuelers
@schuelers.setter
def schuelers(self, schuelers):
"""Sets the schuelers of this Schuelers.
:param schuelers: The schuelers of this Schuelers. # noqa: E501
:type: list[Schueler]
"""
if schuelers is None:
raise ValueError("Invalid value for `schuelers`, must not be `None`") # noqa: E501
self._schuelers = schuelers
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(Schuelers, 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, Schuelers):
return False
return self.__dict__ == other.__dict__
def __ne__(self, other):
"""Returns true if both objects are not equal"""
return not self == other

@ -1,317 +0,0 @@
# coding: utf-8
"""
BuJu API
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501
OpenAPI spec version: 0.1.0
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

@ -1,5 +0,0 @@
coverage>=4.0.3
nose>=1.3.7
pluggy>=0.3.1
py>=1.4.31
randomize>=0.13

@ -1 +0,0 @@
# coding: utf-8

@ -1,39 +0,0 @@
# coding: utf-8
"""
BuJu API
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501
OpenAPI spec version: 0.1.0
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import unittest
import swagger_client
from swagger_client.models.disziplin import Disziplin # noqa: E501
from swagger_client.rest import ApiException
class TestDisziplin(unittest.TestCase):
"""Disziplin unit test stubs"""
def setUp(self):
pass
def tearDown(self):
pass
def testDisziplin(self):
"""Test Disziplin"""
# FIXME: construct object with mandatory attributes with example values
# model = swagger_client.models.disziplin.Disziplin() # noqa: E501
pass
if __name__ == '__main__':
unittest.main()

@ -1,45 +0,0 @@
# coding: utf-8
"""
BuJu API
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501
OpenAPI spec version: 0.1.0
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import unittest
import swagger_client
from swagger_client.api.disziplin_api import DisziplinApi # noqa: E501
from swagger_client.rest import ApiException
class TestDisziplinApi(unittest.TestCase):
"""DisziplinApi unit test stubs"""
def setUp(self):
self.api = DisziplinApi() # noqa: E501
def tearDown(self):
pass
def test_get_disziplin(self):
"""Test case for get_disziplin
"""
pass
def test_get_disziplinen(self):
"""Test case for get_disziplinen
"""
pass
if __name__ == '__main__':
unittest.main()

@ -1,39 +0,0 @@
# coding: utf-8
"""
BuJu API
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501
OpenAPI spec version: 0.1.0
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import unittest
import swagger_client
from swagger_client.models.disziplin_array import DisziplinArray # noqa: E501
from swagger_client.rest import ApiException
class TestDisziplinArray(unittest.TestCase):
"""DisziplinArray unit test stubs"""
def setUp(self):
pass
def tearDown(self):
pass
def testDisziplinArray(self):
"""Test DisziplinArray"""
# FIXME: construct object with mandatory attributes with example values
# model = swagger_client.models.disziplin_array.DisziplinArray() # noqa: E501
pass
if __name__ == '__main__':
unittest.main()

@ -1,39 +0,0 @@
# coding: utf-8
"""
BuJu API
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501
OpenAPI spec version: 0.1.0
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import unittest
import swagger_client
from swagger_client.models.ergebnis import Ergebnis # noqa: E501
from swagger_client.rest import ApiException
class TestErgebnis(unittest.TestCase):
"""Ergebnis unit test stubs"""
def setUp(self):
pass
def tearDown(self):
pass
def testErgebnis(self):
"""Test Ergebnis"""
# FIXME: construct object with mandatory attributes with example values
# model = swagger_client.models.ergebnis.Ergebnis() # noqa: E501
pass
if __name__ == '__main__':
unittest.main()

@ -1,63 +0,0 @@
# coding: utf-8
"""
BuJu API
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501
OpenAPI spec version: 0.1.0
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import unittest
import swagger_client
from swagger_client.api.ergebnis_api import ErgebnisApi # noqa: E501
from swagger_client.rest import ApiException
class TestErgebnisApi(unittest.TestCase):
"""ErgebnisApi unit test stubs"""
def setUp(self):
self.api = ErgebnisApi() # noqa: E501
def tearDown(self):
pass
def test_create_ergebnis(self):
"""Test case for create_ergebnis
"""
pass
def test_delete_ergebnis(self):
"""Test case for delete_ergebnis
"""
pass
def test_get_ergebnis(self):
"""Test case for get_ergebnis
"""
pass
def test_get_ergebnisse(self):
"""Test case for get_ergebnisse
"""
pass
def test_update_ergebnis(self):
"""Test case for update_ergebnis
"""
pass
if __name__ == '__main__':
unittest.main()

@ -1,39 +0,0 @@
# coding: utf-8
"""
BuJu API
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501
OpenAPI spec version: 0.1.0
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import unittest
import swagger_client
from swagger_client.models.ergebnis_array import ErgebnisArray # noqa: E501
from swagger_client.rest import ApiException
class TestErgebnisArray(unittest.TestCase):
"""ErgebnisArray unit test stubs"""
def setUp(self):
pass
def tearDown(self):
pass
def testErgebnisArray(self):
"""Test ErgebnisArray"""
# FIXME: construct object with mandatory attributes with example values
# model = swagger_client.models.ergebnis_array.ErgebnisArray() # noqa: E501
pass
if __name__ == '__main__':
unittest.main()

@ -1,39 +0,0 @@
# coding: utf-8
"""
BuJu API
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501
OpenAPI spec version: 0.1.0
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import unittest
import swagger_client
from swagger_client.models.ergebnis_create_payload import ErgebnisCreatePayload # noqa: E501
from swagger_client.rest import ApiException
class TestErgebnisCreatePayload(unittest.TestCase):
"""ErgebnisCreatePayload unit test stubs"""
def setUp(self):
pass
def tearDown(self):
pass
def testErgebnisCreatePayload(self):
"""Test ErgebnisCreatePayload"""
# FIXME: construct object with mandatory attributes with example values
# model = swagger_client.models.ergebnis_create_payload.ErgebnisCreatePayload() # noqa: E501
pass
if __name__ == '__main__':
unittest.main()

@ -1,39 +0,0 @@
# coding: utf-8
"""
BuJu API
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501
OpenAPI spec version: 0.1.0
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import unittest
import swagger_client
from swagger_client.models.ergebnis_update_payload import ErgebnisUpdatePayload # noqa: E501
from swagger_client.rest import ApiException
class TestErgebnisUpdatePayload(unittest.TestCase):
"""ErgebnisUpdatePayload unit test stubs"""
def setUp(self):
pass
def tearDown(self):
pass
def testErgebnisUpdatePayload(self):
"""Test ErgebnisUpdatePayload"""
# FIXME: construct object with mandatory attributes with example values
# model = swagger_client.models.ergebnis_update_payload.ErgebnisUpdatePayload() # noqa: E501
pass
if __name__ == '__main__':
unittest.main()

@ -1,39 +0,0 @@
# coding: utf-8
"""
BuJu API
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501
OpenAPI spec version: 0.1.0
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import unittest
import swagger_client
from swagger_client.models.riege import Riege # noqa: E501
from swagger_client.rest import ApiException
class TestRiege(unittest.TestCase):
"""Riege unit test stubs"""
def setUp(self):
pass
def tearDown(self):
pass
def testRiege(self):
"""Test Riege"""
# FIXME: construct object with mandatory attributes with example values
# model = swagger_client.models.riege.Riege() # noqa: E501
pass
if __name__ == '__main__':
unittest.main()

@ -1,63 +0,0 @@
# coding: utf-8
"""
BuJu API
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501
OpenAPI spec version: 0.1.0
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import unittest
import swagger_client
from swagger_client.api.riege_api import RiegeApi # noqa: E501
from swagger_client.rest import ApiException
class TestRiegeApi(unittest.TestCase):
"""RiegeApi unit test stubs"""
def setUp(self):
self.api = RiegeApi() # noqa: E501
def tearDown(self):
pass
def test_create_riege(self):
"""Test case for create_riege
"""
pass
def test_delete_riege(self):
"""Test case for delete_riege
"""
pass
def test_get_riege(self):
"""Test case for get_riege
"""
pass
def test_get_riegen(self):
"""Test case for get_riegen
"""
pass
def test_update_riege(self):
"""Test case for update_riege
"""
pass
if __name__ == '__main__':
unittest.main()

@ -1,39 +0,0 @@
# coding: utf-8
"""
BuJu API
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501
OpenAPI spec version: 0.1.0
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import unittest
import swagger_client
from swagger_client.models.riege_array import RiegeArray # noqa: E501
from swagger_client.rest import ApiException
class TestRiegeArray(unittest.TestCase):
"""RiegeArray unit test stubs"""
def setUp(self):
pass
def tearDown(self):
pass
def testRiegeArray(self):
"""Test RiegeArray"""
# FIXME: construct object with mandatory attributes with example values
# model = swagger_client.models.riege_array.RiegeArray() # noqa: E501
pass
if __name__ == '__main__':
unittest.main()

@ -1,39 +0,0 @@
# coding: utf-8
"""
BuJu API
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501
OpenAPI spec version: 0.1.0
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import unittest
import swagger_client
from swagger_client.models.riege_payload import RiegePayload # noqa: E501
from swagger_client.rest import ApiException
class TestRiegePayload(unittest.TestCase):
"""RiegePayload unit test stubs"""
def setUp(self):
pass
def tearDown(self):
pass
def testRiegePayload(self):
"""Test RiegePayload"""
# FIXME: construct object with mandatory attributes with example values
# model = swagger_client.models.riege_payload.RiegePayload() # noqa: E501
pass
if __name__ == '__main__':
unittest.main()

@ -1,39 +0,0 @@
# coding: utf-8
"""
BuJu API
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501
OpenAPI spec version: 0.1.0
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import unittest
import swagger_client
from swagger_client.models.schueler import Schueler # noqa: E501
from swagger_client.rest import ApiException
class TestSchueler(unittest.TestCase):
"""Schueler unit test stubs"""
def setUp(self):
pass
def tearDown(self):
pass
def testSchueler(self):
"""Test Schueler"""
# FIXME: construct object with mandatory attributes with example values
# model = swagger_client.models.schueler.Schueler() # noqa: E501
pass
if __name__ == '__main__':
unittest.main()

@ -1,63 +0,0 @@
# coding: utf-8
"""
BuJu API
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501
OpenAPI spec version: 0.1.0
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import unittest
import swagger_client
from swagger_client.api.schueler_api import SchuelerApi # noqa: E501
from swagger_client.rest import ApiException
class TestSchuelerApi(unittest.TestCase):
"""SchuelerApi unit test stubs"""
def setUp(self):
self.api = SchuelerApi() # noqa: E501
def tearDown(self):
pass
def test_create_schueler(self):
"""Test case for create_schueler
"""
pass
def test_delete_schueler(self):
"""Test case for delete_schueler
"""
pass
def test_get_schueler(self):
"""Test case for get_schueler
"""
pass
def test_get_schuelers(self):
"""Test case for get_schuelers
"""
pass
def test_update_schueler(self):
"""Test case for update_schueler
"""
pass
if __name__ == '__main__':
unittest.main()

@ -1,39 +0,0 @@
# coding: utf-8
"""
BuJu API
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501
OpenAPI spec version: 0.1.0
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import unittest
import swagger_client
from swagger_client.models.schueler_create_payload import SchuelerCreatePayload # noqa: E501
from swagger_client.rest import ApiException
class TestSchuelerCreatePayload(unittest.TestCase):
"""SchuelerCreatePayload unit test stubs"""
def setUp(self):
pass
def tearDown(self):
pass
def testSchuelerCreatePayload(self):
"""Test SchuelerCreatePayload"""
# FIXME: construct object with mandatory attributes with example values
# model = swagger_client.models.schueler_create_payload.SchuelerCreatePayload() # noqa: E501
pass
if __name__ == '__main__':
unittest.main()

@ -1,39 +0,0 @@
# coding: utf-8
"""
BuJu API
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501
OpenAPI spec version: 0.1.0
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import unittest
import swagger_client
from swagger_client.models.schueler_update_payload import SchuelerUpdatePayload # noqa: E501
from swagger_client.rest import ApiException
class TestSchuelerUpdatePayload(unittest.TestCase):
"""SchuelerUpdatePayload unit test stubs"""
def setUp(self):
pass
def tearDown(self):
pass
def testSchuelerUpdatePayload(self):
"""Test SchuelerUpdatePayload"""
# FIXME: construct object with mandatory attributes with example values
# model = swagger_client.models.schueler_update_payload.SchuelerUpdatePayload() # noqa: E501
pass
if __name__ == '__main__':
unittest.main()

@ -1,39 +0,0 @@
# coding: utf-8
"""
BuJu API
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501
OpenAPI spec version: 0.1.0
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import unittest
import swagger_client
from swagger_client.models.schuelers import Schuelers # noqa: E501
from swagger_client.rest import ApiException
class TestSchuelers(unittest.TestCase):
"""Schuelers unit test stubs"""
def setUp(self):
pass
def tearDown(self):
pass
def testSchuelers(self):
"""Test Schuelers"""
# FIXME: construct object with mandatory attributes with example values
# model = swagger_client.models.schuelers.Schuelers() # noqa: E501
pass
if __name__ == '__main__':
unittest.main()

@ -1,10 +0,0 @@
[tox]
envlist = py3
[testenv]
deps=-r{toxinidir}/requirements.txt
-r{toxinidir}/test-requirements.txt
commands=
nosetests \
[]
Loading…
Cancel
Save