Skip to content

Commit 922638e

Browse files
bundesbotbundesbot
authored andcommitted
Generate newest code from openapi.yaml
1 parent 9d561e3 commit 922638e

92 files changed

Lines changed: 13458 additions & 0 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# OpenAPI Generator Ignore
2+
# Generated by openapi-generator https://github.com/openapitools/openapi-generator
3+
4+
# Use this file to prevent files from being overwritten by the generator.
5+
# The patterns follow closely to .gitignore or .dockerignore.
6+
7+
# As an example, the C# client generator defines ApiClient.cs.
8+
# You can make changes and tell OpenAPI Generator to ignore just this file by uncommenting the following line:
9+
#ApiClient.cs
10+
11+
# You can match any string of characters against a directory, file or extension with a single asterisk (*):
12+
#foo/*/qux
13+
# The above matches foo/bar/qux and foo/baz/qux, but not foo/bar/baz/qux
14+
15+
# You can recursively match patterns against a directory, file or extension with a double asterisk (**):
16+
#foo/**/qux
17+
# This matches foo/bar/qux, foo/baz/qux, and foo/bar/baz/qux
18+
19+
# You can also negate patterns with an exclamation (!).
20+
# For example, you can ignore all files in a docs folder with the file extension .md:
21+
#docs/*.md
22+
# Then explicitly reverse the ignore rule for a single file:
23+
#!docs/README.md
Lines changed: 89 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,89 @@
1+
.gitignore
2+
.gitlab-ci.yml
3+
.openapi-generator-ignore
4+
.travis.yml
5+
README.md
6+
create_doc.py
7+
docs/Compartment.md
8+
docs/DefaultApi.md
9+
docs/Filter.md
10+
docs/FilterAction.md
11+
docs/FilterRequest.md
12+
docs/HelcomPLCStation.md
13+
docs/InlineResponse200.md
14+
docs/InlineResponse2001.md
15+
docs/InlineResponse2002.md
16+
docs/InlineResponse2003.md
17+
docs/InlineResponse2004.md
18+
docs/InlineResponse2005.md
19+
docs/InlineResponse2006.md
20+
docs/InlineResponse2007.md
21+
docs/InlineResponse2008.md
22+
docs/Messstation.md
23+
docs/Orderby.md
24+
docs/Parameter.md
25+
docs/ParameterValue.md
26+
docs/ProjectStation.md
27+
docs/Range.md
28+
git_push.sh
29+
mudab/__init__.py
30+
mudab/api/__init__.py
31+
mudab/api/default_api.py
32+
mudab/api_client.py
33+
mudab/apis/__init__.py
34+
mudab/configuration.py
35+
mudab/exceptions.py
36+
mudab/model/__init__.py
37+
mudab/model/compartment.py
38+
mudab/model/filter.py
39+
mudab/model/filter_action.py
40+
mudab/model/filter_request.py
41+
mudab/model/helcom_plc_station.py
42+
mudab/model/inline_response200.py
43+
mudab/model/inline_response2001.py
44+
mudab/model/inline_response2002.py
45+
mudab/model/inline_response2003.py
46+
mudab/model/inline_response2004.py
47+
mudab/model/inline_response2005.py
48+
mudab/model/inline_response2006.py
49+
mudab/model/inline_response2007.py
50+
mudab/model/inline_response2008.py
51+
mudab/model/messstation.py
52+
mudab/model/orderby.py
53+
mudab/model/parameter.py
54+
mudab/model/parameter_value.py
55+
mudab/model/project_station.py
56+
mudab/model/range.py
57+
mudab/model_utils.py
58+
mudab/models/__init__.py
59+
mudab/rest.py
60+
pyproject.toml
61+
rename_generated_code.py
62+
requirements.txt
63+
requirements.txt
64+
setup.cfg
65+
setup.py
66+
test-requirements.txt
67+
test/__init__.py
68+
test/test_compartment.py
69+
test/test_default_api.py
70+
test/test_filter.py
71+
test/test_filter_action.py
72+
test/test_filter_request.py
73+
test/test_helcom_plc_station.py
74+
test/test_inline_response200.py
75+
test/test_inline_response2001.py
76+
test/test_inline_response2002.py
77+
test/test_inline_response2003.py
78+
test/test_inline_response2004.py
79+
test/test_inline_response2005.py
80+
test/test_inline_response2006.py
81+
test/test_inline_response2007.py
82+
test/test_inline_response2008.py
83+
test/test_messstation.py
84+
test/test_orderby.py
85+
test/test_parameter.py
86+
test/test_parameter_value.py
87+
test/test_project_station.py
88+
test/test_range.py
89+
tox.ini
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
5.4.0-SNAPSHOT

python-client/README.md

Lines changed: 175 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,175 @@
1+
# mudab
2+
Meeres-Monitoringdaten von Küstenbundesländern und Forschungseinrichtungen
3+
4+
5+
This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
6+
7+
- API version: 1.0.0
8+
- Package version: 0.1.0
9+
- Build package: org.openapitools.codegen.languages.PythonClientCodegen
10+
11+
## Requirements.
12+
13+
Python >= 3.6
14+
15+
## Installation & Usage
16+
### pip install
17+
18+
```sh
19+
pip install deutschland[mudab]
20+
```
21+
22+
### poetry install
23+
24+
```sh
25+
poetry add deutschland -E mudab
26+
```
27+
28+
### Setuptools
29+
30+
Install via [Setuptools](http://pypi.python.org/pypi/setuptools).
31+
32+
```sh
33+
python setup.py install --user
34+
```
35+
(or `sudo python setup.py install` to install the package for all users)
36+
37+
## Usage
38+
39+
Import the package:
40+
```python
41+
from deutschland import mudab
42+
```
43+
44+
## Getting Started
45+
46+
Please follow the [installation procedure](#installation--usage) and then run the following:
47+
48+
```python
49+
50+
import time
51+
from deutschland import mudab
52+
from pprint import pprint
53+
from deutschland.mudab.api import default_api
54+
from deutschland.mudab.model.filter_request import FilterRequest
55+
from deutschland.mudab.model.inline_response200 import InlineResponse200
56+
from deutschland.mudab.model.inline_response2001 import InlineResponse2001
57+
from deutschland.mudab.model.inline_response2002 import InlineResponse2002
58+
from deutschland.mudab.model.inline_response2003 import InlineResponse2003
59+
from deutschland.mudab.model.inline_response2004 import InlineResponse2004
60+
from deutschland.mudab.model.inline_response2005 import InlineResponse2005
61+
from deutschland.mudab.model.inline_response2006 import InlineResponse2006
62+
from deutschland.mudab.model.inline_response2007 import InlineResponse2007
63+
from deutschland.mudab.model.inline_response2008 import InlineResponse2008
64+
# Defining the host is optional and defaults to https://geoportal.bafg.de/MUDABAnwendung/rest/BaseController/FilterElements
65+
# See configuration.py for a list of all supported configuration parameters.
66+
configuration = mudab.Configuration(
67+
host = "https://geoportal.bafg.de/MUDABAnwendung/rest/BaseController/FilterElements"
68+
)
69+
70+
71+
72+
# Enter a context with an instance of the API client
73+
with mudab.ApiClient(configuration) as api_client:
74+
# Create an instance of the API class
75+
api_instance = default_api.DefaultApi(api_client)
76+
filter_request = FilterRequest(
77+
filter=Filter(
78+
_or=FilterAction(
79+
col="col_example",
80+
op="op_example",
81+
value="value_example",
82+
),
83+
_and=FilterAction(
84+
col="col_example",
85+
op="op_example",
86+
value="value_example",
87+
),
88+
),
89+
range=Range(
90+
_from=1,
91+
count=1,
92+
),
93+
orderby=Orderby(
94+
col="col_example",
95+
dir="asc",
96+
),
97+
) # FilterRequest | (optional)
98+
99+
try:
100+
# Liste aller Messstationen
101+
api_response = api_instance.list_mess_stationen(filter_request=filter_request)
102+
pprint(api_response)
103+
except mudab.ApiException as e:
104+
print("Exception when calling DefaultApi->list_mess_stationen: %s\n" % e)
105+
```
106+
107+
## Documentation for API Endpoints
108+
109+
All URIs are relative to *https://geoportal.bafg.de/MUDABAnwendung/rest/BaseController/FilterElements*
110+
111+
Class | Method | HTTP request | Description
112+
------------ | ------------- | ------------- | -------------
113+
*DefaultApi* | [**list_mess_stationen**](docs/DefaultApi.md#list_mess_stationen) | **POST** /STATION_SMALL | Liste aller Messstationen
114+
*DefaultApi* | [**list_parameter**](docs/DefaultApi.md#list_parameter) | **POST** /MV_PARAMETER | Liste aller Parameter
115+
*DefaultApi* | [**list_parameter_values**](docs/DefaultApi.md#list_parameter_values) | **POST** /MV_STATION_MSMNT | Liste aller Messwerte
116+
*DefaultApi* | [**list_parameters_biologie**](docs/DefaultApi.md#list_parameters_biologie) | **POST** /MV_PARAMETER_BIOLOGIE | Liste aller Parameter im Biologie Kompartiment
117+
*DefaultApi* | [**list_parameters_biota**](docs/DefaultApi.md#list_parameters_biota) | **POST** /MV_PARAMETER_BIOTA | Liste aller Parameter im Biota Kompartiment
118+
*DefaultApi* | [**list_parameters_sediment**](docs/DefaultApi.md#list_parameters_sediment) | **POST** /MV_PARAMETER_SEDIMENT | Liste aller Parameter im Sediment Kompartiment
119+
*DefaultApi* | [**list_parameters_wasser**](docs/DefaultApi.md#list_parameters_wasser) | **POST** /MV_PARAMETER_WASSER | Liste aller Parameter im Wasser Kompartiment
120+
*DefaultApi* | [**list_plc_stations**](docs/DefaultApi.md#list_plc_stations) | **POST** /V_PLC_STATION | Liste aller HELCOM PLC Stationen
121+
*DefaultApi* | [**list_projekt_stationen**](docs/DefaultApi.md#list_projekt_stationen) | **POST** /PROJECTSTATION_SMALL | Liste aller Projekt Stationen
122+
123+
124+
## Documentation For Models
125+
126+
- [Compartment](docs/Compartment.md)
127+
- [Filter](docs/Filter.md)
128+
- [FilterAction](docs/FilterAction.md)
129+
- [FilterRequest](docs/FilterRequest.md)
130+
- [HelcomPLCStation](docs/HelcomPLCStation.md)
131+
- [InlineResponse200](docs/InlineResponse200.md)
132+
- [InlineResponse2001](docs/InlineResponse2001.md)
133+
- [InlineResponse2002](docs/InlineResponse2002.md)
134+
- [InlineResponse2003](docs/InlineResponse2003.md)
135+
- [InlineResponse2004](docs/InlineResponse2004.md)
136+
- [InlineResponse2005](docs/InlineResponse2005.md)
137+
- [InlineResponse2006](docs/InlineResponse2006.md)
138+
- [InlineResponse2007](docs/InlineResponse2007.md)
139+
- [InlineResponse2008](docs/InlineResponse2008.md)
140+
- [Messstation](docs/Messstation.md)
141+
- [Orderby](docs/Orderby.md)
142+
- [Parameter](docs/Parameter.md)
143+
- [ParameterValue](docs/ParameterValue.md)
144+
- [ProjectStation](docs/ProjectStation.md)
145+
- [Range](docs/Range.md)
146+
147+
148+
## Documentation For Authorization
149+
150+
All endpoints do not require authorization.
151+
152+
## Author
153+
154+
kontakt@bund.dev
155+
156+
157+
## Notes for Large OpenAPI documents
158+
If the OpenAPI document is large, imports in mudab.apis and mudab.models may fail with a
159+
RecursionError indicating the maximum recursion limit has been exceeded. In that case, there are a couple of solutions:
160+
161+
Solution 1:
162+
Use specific imports for apis and models like:
163+
- `from deutschland.mudab.api.default_api import DefaultApi`
164+
- `from deutschland.mudab.model.pet import Pet`
165+
166+
Solution 2:
167+
Before importing the package, adjust the maximum recursion limit as shown below:
168+
```
169+
import sys
170+
sys.setrecursionlimit(1500)
171+
from deutschland import mudab
172+
from deutschland.mudab.apis import *
173+
from deutschland.mudab.models import *
174+
```
175+
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# flake8: noqa
2+
3+
"""
4+
Umweltbundesamt: Meeresumweltdatenbank (MUDAB)
5+
6+
Meeres-Monitoringdaten von Küstenbundesländern und Forschungseinrichtungen # noqa: E501
7+
8+
The version of the OpenAPI document: 1.0.0
9+
Contact: kontakt@bund.dev
10+
Generated by: https://openapi-generator.tech
11+
"""
12+
13+
14+
__version__ = "0.1.0"
15+
16+
# import ApiClient
17+
from deutschland.mudab.api_client import ApiClient
18+
19+
# import Configuration
20+
from deutschland.mudab.configuration import Configuration
21+
22+
# import exceptions
23+
from deutschland.mudab.exceptions import (
24+
ApiAttributeError,
25+
ApiException,
26+
ApiKeyError,
27+
ApiTypeError,
28+
ApiValueError,
29+
OpenApiException,
30+
)
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# do not import all apis into this module because that uses a lot of memory and stack frames
2+
# if you need the ability to import all apis from one package, import them with
3+
# from deutschland.mudab.apis import DefaultApi

0 commit comments

Comments
 (0)