diff --git a/python-client/.openapi-generator/FILES b/python-client/.openapi-generator/FILES index 9b13623..ed9e0e9 100644 --- a/python-client/.openapi-generator/FILES +++ b/python-client/.openapi-generator/FILES @@ -10,18 +10,22 @@ docs/Filter.md docs/FilterAction.md docs/FilterRequest.md docs/HelcomPLCStation.md -docs/InlineResponse200.md -docs/InlineResponse2001.md -docs/InlineResponse2002.md -docs/InlineResponse2003.md -docs/InlineResponse2004.md -docs/InlineResponse2005.md -docs/InlineResponse2006.md -docs/InlineResponse2007.md -docs/InlineResponse2008.md +docs/ListMessStationen200Response.md +docs/ListMesswertePlc200Response.md +docs/ListParameter200Response.md +docs/ListParameterValues200Response.md +docs/ListParametersBiologie200Response.md +docs/ListParametersBiota200Response.md +docs/ListParametersPlc200Response.md +docs/ListParametersSediment200Response.md +docs/ListParametersWasser200Response.md +docs/ListPlcStations200Response.md +docs/ListProjektStationen200Response.md docs/Messstation.md +docs/MesswertPLC.md docs/Orderby.md docs/Parameter.md +docs/ParameterPLC.md docs/ParameterValue.md docs/ProjectStation.md docs/Range.md @@ -39,18 +43,22 @@ mudab/model/filter.py mudab/model/filter_action.py mudab/model/filter_request.py mudab/model/helcom_plc_station.py -mudab/model/inline_response200.py -mudab/model/inline_response2001.py -mudab/model/inline_response2002.py -mudab/model/inline_response2003.py -mudab/model/inline_response2004.py -mudab/model/inline_response2005.py -mudab/model/inline_response2006.py -mudab/model/inline_response2007.py -mudab/model/inline_response2008.py +mudab/model/list_mess_stationen200_response.py +mudab/model/list_messwerte_plc200_response.py +mudab/model/list_parameter200_response.py +mudab/model/list_parameter_values200_response.py +mudab/model/list_parameters_biologie200_response.py +mudab/model/list_parameters_biota200_response.py +mudab/model/list_parameters_plc200_response.py +mudab/model/list_parameters_sediment200_response.py +mudab/model/list_parameters_wasser200_response.py +mudab/model/list_plc_stations200_response.py +mudab/model/list_projekt_stationen200_response.py mudab/model/messstation.py +mudab/model/messwert_plc.py mudab/model/orderby.py mudab/model/parameter.py +mudab/model/parameter_plc.py mudab/model/parameter_value.py mudab/model/project_station.py mudab/model/range.py @@ -71,18 +79,22 @@ test/test_filter.py test/test_filter_action.py test/test_filter_request.py test/test_helcom_plc_station.py -test/test_inline_response200.py -test/test_inline_response2001.py -test/test_inline_response2002.py -test/test_inline_response2003.py -test/test_inline_response2004.py -test/test_inline_response2005.py -test/test_inline_response2006.py -test/test_inline_response2007.py -test/test_inline_response2008.py +test/test_list_mess_stationen200_response.py +test/test_list_messwerte_plc200_response.py +test/test_list_parameter200_response.py +test/test_list_parameter_values200_response.py +test/test_list_parameters_biologie200_response.py +test/test_list_parameters_biota200_response.py +test/test_list_parameters_plc200_response.py +test/test_list_parameters_sediment200_response.py +test/test_list_parameters_wasser200_response.py +test/test_list_plc_stations200_response.py +test/test_list_projekt_stationen200_response.py test/test_messstation.py +test/test_messwert_plc.py test/test_orderby.py test/test_parameter.py +test/test_parameter_plc.py test/test_parameter_value.py test/test_project_station.py test/test_range.py diff --git a/python-client/.openapi-generator/VERSION b/python-client/.openapi-generator/VERSION index 5f68295..358e78e 100644 --- a/python-client/.openapi-generator/VERSION +++ b/python-client/.openapi-generator/VERSION @@ -1 +1 @@ -6.0.0-SNAPSHOT \ No newline at end of file +6.1.0 \ No newline at end of file diff --git a/python-client/README.md b/python-client/README.md index 177da75..f319216 100644 --- a/python-client/README.md +++ b/python-client/README.md @@ -52,15 +52,17 @@ from deutschland import mudab from pprint import pprint from deutschland.mudab.api import default_api from deutschland.mudab.model.filter_request import FilterRequest -from deutschland.mudab.model.inline_response200 import InlineResponse200 -from deutschland.mudab.model.inline_response2001 import InlineResponse2001 -from deutschland.mudab.model.inline_response2002 import InlineResponse2002 -from deutschland.mudab.model.inline_response2003 import InlineResponse2003 -from deutschland.mudab.model.inline_response2004 import InlineResponse2004 -from deutschland.mudab.model.inline_response2005 import InlineResponse2005 -from deutschland.mudab.model.inline_response2006 import InlineResponse2006 -from deutschland.mudab.model.inline_response2007 import InlineResponse2007 -from deutschland.mudab.model.inline_response2008 import InlineResponse2008 +from deutschland.mudab.model.list_mess_stationen200_response import ListMessStationen200Response +from deutschland.mudab.model.list_messwerte_plc200_response import ListMesswertePlc200Response +from deutschland.mudab.model.list_parameter200_response import ListParameter200Response +from deutschland.mudab.model.list_parameter_values200_response import ListParameterValues200Response +from deutschland.mudab.model.list_parameters_biologie200_response import ListParametersBiologie200Response +from deutschland.mudab.model.list_parameters_biota200_response import ListParametersBiota200Response +from deutschland.mudab.model.list_parameters_plc200_response import ListParametersPlc200Response +from deutschland.mudab.model.list_parameters_sediment200_response import ListParametersSediment200Response +from deutschland.mudab.model.list_parameters_wasser200_response import ListParametersWasser200Response +from deutschland.mudab.model.list_plc_stations200_response import ListPlcStations200Response +from deutschland.mudab.model.list_projekt_stationen200_response import ListProjektStationen200Response # Defining the host is optional and defaults to https://geoportal.bafg.de/MUDABAnwendung/rest/BaseController/FilterElements # See configuration.py for a list of all supported configuration parameters. configuration = mudab.Configuration( @@ -111,10 +113,12 @@ All URIs are relative to *https://geoportal.bafg.de/MUDABAnwendung/rest/BaseCont Class | Method | HTTP request | Description ------------ | ------------- | ------------- | ------------- *DefaultApi* | [**list_mess_stationen**](docs/DefaultApi.md#list_mess_stationen) | **POST** /STATION_SMALL | Liste aller Messstationen +*DefaultApi* | [**list_messwerte_plc**](docs/DefaultApi.md#list_messwerte_plc) | **POST** /V_MESSWERTE_PLC | Liste aller Messwerte der gefilterten PLC Stationen *DefaultApi* | [**list_parameter**](docs/DefaultApi.md#list_parameter) | **POST** /MV_PARAMETER | Liste aller Parameter *DefaultApi* | [**list_parameter_values**](docs/DefaultApi.md#list_parameter_values) | **POST** /MV_STATION_MSMNT | Liste aller Messwerte *DefaultApi* | [**list_parameters_biologie**](docs/DefaultApi.md#list_parameters_biologie) | **POST** /MV_PARAMETER_BIOLOGIE | Liste aller Parameter im Biologie Kompartiment *DefaultApi* | [**list_parameters_biota**](docs/DefaultApi.md#list_parameters_biota) | **POST** /MV_PARAMETER_BIOTA | Liste aller Parameter im Biota Kompartiment +*DefaultApi* | [**list_parameters_plc**](docs/DefaultApi.md#list_parameters_plc) | **POST** /V_GEMESSENE_PARA_PLC | Liste aller Parameter der PLC Stationen *DefaultApi* | [**list_parameters_sediment**](docs/DefaultApi.md#list_parameters_sediment) | **POST** /MV_PARAMETER_SEDIMENT | Liste aller Parameter im Sediment Kompartiment *DefaultApi* | [**list_parameters_wasser**](docs/DefaultApi.md#list_parameters_wasser) | **POST** /MV_PARAMETER_WASSER | Liste aller Parameter im Wasser Kompartiment *DefaultApi* | [**list_plc_stations**](docs/DefaultApi.md#list_plc_stations) | **POST** /V_PLC_STATION | Liste aller HELCOM PLC Stationen @@ -128,18 +132,22 @@ Class | Method | HTTP request | Description - [FilterAction](docs/FilterAction.md) - [FilterRequest](docs/FilterRequest.md) - [HelcomPLCStation](docs/HelcomPLCStation.md) - - [InlineResponse200](docs/InlineResponse200.md) - - [InlineResponse2001](docs/InlineResponse2001.md) - - [InlineResponse2002](docs/InlineResponse2002.md) - - [InlineResponse2003](docs/InlineResponse2003.md) - - [InlineResponse2004](docs/InlineResponse2004.md) - - [InlineResponse2005](docs/InlineResponse2005.md) - - [InlineResponse2006](docs/InlineResponse2006.md) - - [InlineResponse2007](docs/InlineResponse2007.md) - - [InlineResponse2008](docs/InlineResponse2008.md) + - [ListMessStationen200Response](docs/ListMessStationen200Response.md) + - [ListMesswertePlc200Response](docs/ListMesswertePlc200Response.md) + - [ListParameter200Response](docs/ListParameter200Response.md) + - [ListParameterValues200Response](docs/ListParameterValues200Response.md) + - [ListParametersBiologie200Response](docs/ListParametersBiologie200Response.md) + - [ListParametersBiota200Response](docs/ListParametersBiota200Response.md) + - [ListParametersPlc200Response](docs/ListParametersPlc200Response.md) + - [ListParametersSediment200Response](docs/ListParametersSediment200Response.md) + - [ListParametersWasser200Response](docs/ListParametersWasser200Response.md) + - [ListPlcStations200Response](docs/ListPlcStations200Response.md) + - [ListProjektStationen200Response](docs/ListProjektStationen200Response.md) - [Messstation](docs/Messstation.md) + - [MesswertPLC](docs/MesswertPLC.md) - [Orderby](docs/Orderby.md) - [Parameter](docs/Parameter.md) + - [ParameterPLC](docs/ParameterPLC.md) - [ParameterValue](docs/ParameterValue.md) - [ProjectStation](docs/ProjectStation.md) - [Range](docs/Range.md) diff --git a/python-client/deutschland/mudab/api/default_api.py b/python-client/deutschland/mudab/api/default_api.py index 0402606..8f90a69 100644 --- a/python-client/deutschland/mudab/api/default_api.py +++ b/python-client/deutschland/mudab/api/default_api.py @@ -8,22 +8,43 @@ Generated by: https://openapi-generator.tech """ - import re # noqa: F401 import sys # noqa: F401 from deutschland.mudab.api_client import ApiClient from deutschland.mudab.api_client import Endpoint as _Endpoint from deutschland.mudab.model.filter_request import FilterRequest -from deutschland.mudab.model.inline_response200 import InlineResponse200 -from deutschland.mudab.model.inline_response2001 import InlineResponse2001 -from deutschland.mudab.model.inline_response2002 import InlineResponse2002 -from deutschland.mudab.model.inline_response2003 import InlineResponse2003 -from deutschland.mudab.model.inline_response2004 import InlineResponse2004 -from deutschland.mudab.model.inline_response2005 import InlineResponse2005 -from deutschland.mudab.model.inline_response2006 import InlineResponse2006 -from deutschland.mudab.model.inline_response2007 import InlineResponse2007 -from deutschland.mudab.model.inline_response2008 import InlineResponse2008 +from deutschland.mudab.model.list_mess_stationen200_response import ( + ListMessStationen200Response, +) +from deutschland.mudab.model.list_messwerte_plc200_response import ( + ListMesswertePlc200Response, +) +from deutschland.mudab.model.list_parameter200_response import ListParameter200Response +from deutschland.mudab.model.list_parameter_values200_response import ( + ListParameterValues200Response, +) +from deutschland.mudab.model.list_parameters_biologie200_response import ( + ListParametersBiologie200Response, +) +from deutschland.mudab.model.list_parameters_biota200_response import ( + ListParametersBiota200Response, +) +from deutschland.mudab.model.list_parameters_plc200_response import ( + ListParametersPlc200Response, +) +from deutschland.mudab.model.list_parameters_sediment200_response import ( + ListParametersSediment200Response, +) +from deutschland.mudab.model.list_parameters_wasser200_response import ( + ListParametersWasser200Response, +) +from deutschland.mudab.model.list_plc_stations200_response import ( + ListPlcStations200Response, +) +from deutschland.mudab.model.list_projekt_stationen200_response import ( + ListProjektStationen200Response, +) from deutschland.mudab.model_utils import ( # noqa: F401 check_allowed_values, check_validations, @@ -48,7 +69,7 @@ def __init__(self, api_client=None): self.api_client = api_client self.list_mess_stationen_endpoint = _Endpoint( settings={ - "response_type": (InlineResponse2001,), + "response_type": (ListMessStationen200Response,), "auth": [], "endpoint_path": "/STATION_SMALL", "operation_id": "list_mess_stationen", @@ -82,9 +103,45 @@ def __init__(self, api_client=None): }, api_client=api_client, ) + self.list_messwerte_plc_endpoint = _Endpoint( + settings={ + "response_type": (ListMesswertePlc200Response,), + "auth": [], + "endpoint_path": "/V_MESSWERTE_PLC", + "operation_id": "list_messwerte_plc", + "http_method": "POST", + "servers": None, + }, + params_map={ + "all": [ + "filter_request", + ], + "required": [], + "nullable": [], + "enum": [], + "validation": [], + }, + root_map={ + "validations": {}, + "allowed_values": {}, + "openapi_types": { + "filter_request": (FilterRequest,), + }, + "attribute_map": {}, + "location_map": { + "filter_request": "body", + }, + "collection_format_map": {}, + }, + headers_map={ + "accept": ["application/json"], + "content_type": ["application/json"], + }, + api_client=api_client, + ) self.list_parameter_endpoint = _Endpoint( settings={ - "response_type": (InlineResponse2002,), + "response_type": (ListParameter200Response,), "auth": [], "endpoint_path": "/MV_PARAMETER", "operation_id": "list_parameter", @@ -120,7 +177,7 @@ def __init__(self, api_client=None): ) self.list_parameter_values_endpoint = _Endpoint( settings={ - "response_type": (InlineResponse2003,), + "response_type": (ListParameterValues200Response,), "auth": [], "endpoint_path": "/MV_STATION_MSMNT", "operation_id": "list_parameter_values", @@ -156,7 +213,7 @@ def __init__(self, api_client=None): ) self.list_parameters_biologie_endpoint = _Endpoint( settings={ - "response_type": (InlineResponse2004,), + "response_type": (ListParametersBiologie200Response,), "auth": [], "endpoint_path": "/MV_PARAMETER_BIOLOGIE", "operation_id": "list_parameters_biologie", @@ -192,7 +249,7 @@ def __init__(self, api_client=None): ) self.list_parameters_biota_endpoint = _Endpoint( settings={ - "response_type": (InlineResponse2005,), + "response_type": (ListParametersBiota200Response,), "auth": [], "endpoint_path": "/MV_PARAMETER_BIOTA", "operation_id": "list_parameters_biota", @@ -226,9 +283,45 @@ def __init__(self, api_client=None): }, api_client=api_client, ) + self.list_parameters_plc_endpoint = _Endpoint( + settings={ + "response_type": (ListParametersPlc200Response,), + "auth": [], + "endpoint_path": "/V_GEMESSENE_PARA_PLC", + "operation_id": "list_parameters_plc", + "http_method": "POST", + "servers": None, + }, + params_map={ + "all": [ + "filter_request", + ], + "required": [], + "nullable": [], + "enum": [], + "validation": [], + }, + root_map={ + "validations": {}, + "allowed_values": {}, + "openapi_types": { + "filter_request": (FilterRequest,), + }, + "attribute_map": {}, + "location_map": { + "filter_request": "body", + }, + "collection_format_map": {}, + }, + headers_map={ + "accept": ["application/json"], + "content_type": ["application/json"], + }, + api_client=api_client, + ) self.list_parameters_sediment_endpoint = _Endpoint( settings={ - "response_type": (InlineResponse2007,), + "response_type": (ListParametersSediment200Response,), "auth": [], "endpoint_path": "/MV_PARAMETER_SEDIMENT", "operation_id": "list_parameters_sediment", @@ -264,7 +357,7 @@ def __init__(self, api_client=None): ) self.list_parameters_wasser_endpoint = _Endpoint( settings={ - "response_type": (InlineResponse2006,), + "response_type": (ListParametersWasser200Response,), "auth": [], "endpoint_path": "/MV_PARAMETER_WASSER", "operation_id": "list_parameters_wasser", @@ -300,7 +393,7 @@ def __init__(self, api_client=None): ) self.list_plc_stations_endpoint = _Endpoint( settings={ - "response_type": (InlineResponse2008,), + "response_type": (ListPlcStations200Response,), "auth": [], "endpoint_path": "/V_PLC_STATION", "operation_id": "list_plc_stations", @@ -336,7 +429,7 @@ def __init__(self, api_client=None): ) self.list_projekt_stationen_endpoint = _Endpoint( settings={ - "response_type": (InlineResponse200,), + "response_type": (ListProjektStationen200Response,), "auth": [], "endpoint_path": "/PROJECTSTATION_SMALL", "operation_id": "list_projekt_stationen", @@ -409,10 +502,14 @@ def list_mess_stationen(self, **kwargs): _host_index (int/None): specifies the index of the server that we want to use. Default is read from the configuration. + _request_auths (list): set to override the auth_settings for an a single + request; this effectively ignores the authentication + in the spec for a single request. + Default is None async_req (bool): execute request asynchronously Returns: - InlineResponse2001 + ListMessStationen200Response If the method is called asynchronously, returns the request thread. """ @@ -425,8 +522,70 @@ def list_mess_stationen(self, **kwargs): kwargs["_spec_property_naming"] = kwargs.get("_spec_property_naming", False) kwargs["_content_type"] = kwargs.get("_content_type") kwargs["_host_index"] = kwargs.get("_host_index") + kwargs["_request_auths"] = kwargs.get("_request_auths", None) return self.list_mess_stationen_endpoint.call_with_http_info(**kwargs) + def list_messwerte_plc(self, **kwargs): + """Liste aller Messwerte der gefilterten PLC Stationen # noqa: E501 + + Gibt eine filterbare Liste aller Messwerte welche durch PLC Stationen gemessen wurden zurück. Filterbare Attribute sind die Felder die aus dem MesswertPLC Schema kommen, z.B. STATION_CODE # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.list_messwerte_plc(async_req=True) + >>> result = thread.get() + + + Keyword Args: + filter_request (FilterRequest): [optional] + _return_http_data_only (bool): response data without head status + code and headers. Default is True. + _preload_content (bool): if False, the urllib3.HTTPResponse object + will be returned without reading/decoding response data. + Default is True. + _request_timeout (int/float/tuple): 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. + Default is None. + _check_input_type (bool): specifies if type checking + should be done one the data sent to the server. + Default is True. + _check_return_type (bool): specifies if type checking + should be done one the data received from the server. + Default is True. + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _content_type (str/None): force body content-type. + Default is None and content-type will be predicted by allowed + content-types and body. + _host_index (int/None): specifies the index of the server + that we want to use. + Default is read from the configuration. + _request_auths (list): set to override the auth_settings for an a single + request; this effectively ignores the authentication + in the spec for a single request. + Default is None + async_req (bool): execute request asynchronously + + Returns: + ListMesswertePlc200Response + If the method is called asynchronously, returns the request + thread. + """ + kwargs["async_req"] = kwargs.get("async_req", False) + kwargs["_return_http_data_only"] = kwargs.get("_return_http_data_only", True) + kwargs["_preload_content"] = kwargs.get("_preload_content", True) + kwargs["_request_timeout"] = kwargs.get("_request_timeout", None) + kwargs["_check_input_type"] = kwargs.get("_check_input_type", True) + kwargs["_check_return_type"] = kwargs.get("_check_return_type", True) + kwargs["_spec_property_naming"] = kwargs.get("_spec_property_naming", False) + kwargs["_content_type"] = kwargs.get("_content_type") + kwargs["_host_index"] = kwargs.get("_host_index") + kwargs["_request_auths"] = kwargs.get("_request_auths", None) + return self.list_messwerte_plc_endpoint.call_with_http_info(**kwargs) + def list_parameter(self, **kwargs): """Liste aller Parameter # noqa: E501 @@ -465,10 +624,14 @@ def list_parameter(self, **kwargs): _host_index (int/None): specifies the index of the server that we want to use. Default is read from the configuration. + _request_auths (list): set to override the auth_settings for an a single + request; this effectively ignores the authentication + in the spec for a single request. + Default is None async_req (bool): execute request asynchronously Returns: - InlineResponse2002 + ListParameter200Response If the method is called asynchronously, returns the request thread. """ @@ -481,6 +644,7 @@ def list_parameter(self, **kwargs): kwargs["_spec_property_naming"] = kwargs.get("_spec_property_naming", False) kwargs["_content_type"] = kwargs.get("_content_type") kwargs["_host_index"] = kwargs.get("_host_index") + kwargs["_request_auths"] = kwargs.get("_request_auths", None) return self.list_parameter_endpoint.call_with_http_info(**kwargs) def list_parameter_values(self, **kwargs): @@ -521,10 +685,14 @@ def list_parameter_values(self, **kwargs): _host_index (int/None): specifies the index of the server that we want to use. Default is read from the configuration. + _request_auths (list): set to override the auth_settings for an a single + request; this effectively ignores the authentication + in the spec for a single request. + Default is None async_req (bool): execute request asynchronously Returns: - InlineResponse2003 + ListParameterValues200Response If the method is called asynchronously, returns the request thread. """ @@ -537,6 +705,7 @@ def list_parameter_values(self, **kwargs): kwargs["_spec_property_naming"] = kwargs.get("_spec_property_naming", False) kwargs["_content_type"] = kwargs.get("_content_type") kwargs["_host_index"] = kwargs.get("_host_index") + kwargs["_request_auths"] = kwargs.get("_request_auths", None) return self.list_parameter_values_endpoint.call_with_http_info(**kwargs) def list_parameters_biologie(self, **kwargs): @@ -577,10 +746,14 @@ def list_parameters_biologie(self, **kwargs): _host_index (int/None): specifies the index of the server that we want to use. Default is read from the configuration. + _request_auths (list): set to override the auth_settings for an a single + request; this effectively ignores the authentication + in the spec for a single request. + Default is None async_req (bool): execute request asynchronously Returns: - InlineResponse2004 + ListParametersBiologie200Response If the method is called asynchronously, returns the request thread. """ @@ -593,6 +766,7 @@ def list_parameters_biologie(self, **kwargs): kwargs["_spec_property_naming"] = kwargs.get("_spec_property_naming", False) kwargs["_content_type"] = kwargs.get("_content_type") kwargs["_host_index"] = kwargs.get("_host_index") + kwargs["_request_auths"] = kwargs.get("_request_auths", None) return self.list_parameters_biologie_endpoint.call_with_http_info(**kwargs) def list_parameters_biota(self, **kwargs): @@ -633,10 +807,14 @@ def list_parameters_biota(self, **kwargs): _host_index (int/None): specifies the index of the server that we want to use. Default is read from the configuration. + _request_auths (list): set to override the auth_settings for an a single + request; this effectively ignores the authentication + in the spec for a single request. + Default is None async_req (bool): execute request asynchronously Returns: - InlineResponse2005 + ListParametersBiota200Response If the method is called asynchronously, returns the request thread. """ @@ -649,8 +827,70 @@ def list_parameters_biota(self, **kwargs): kwargs["_spec_property_naming"] = kwargs.get("_spec_property_naming", False) kwargs["_content_type"] = kwargs.get("_content_type") kwargs["_host_index"] = kwargs.get("_host_index") + kwargs["_request_auths"] = kwargs.get("_request_auths", None) return self.list_parameters_biota_endpoint.call_with_http_info(**kwargs) + def list_parameters_plc(self, **kwargs): + """Liste aller Parameter der PLC Stationen # noqa: E501 + + Gibt eine filterbare Liste aller Parameter welche durch die gefilterten PLC Stationen gemessen werden zurück. Filterbare Attribute sind die Felder die aus dem ParameterPLC Schema kommen. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.list_parameters_plc(async_req=True) + >>> result = thread.get() + + + Keyword Args: + filter_request (FilterRequest): [optional] + _return_http_data_only (bool): response data without head status + code and headers. Default is True. + _preload_content (bool): if False, the urllib3.HTTPResponse object + will be returned without reading/decoding response data. + Default is True. + _request_timeout (int/float/tuple): 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. + Default is None. + _check_input_type (bool): specifies if type checking + should be done one the data sent to the server. + Default is True. + _check_return_type (bool): specifies if type checking + should be done one the data received from the server. + Default is True. + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _content_type (str/None): force body content-type. + Default is None and content-type will be predicted by allowed + content-types and body. + _host_index (int/None): specifies the index of the server + that we want to use. + Default is read from the configuration. + _request_auths (list): set to override the auth_settings for an a single + request; this effectively ignores the authentication + in the spec for a single request. + Default is None + async_req (bool): execute request asynchronously + + Returns: + ListParametersPlc200Response + If the method is called asynchronously, returns the request + thread. + """ + kwargs["async_req"] = kwargs.get("async_req", False) + kwargs["_return_http_data_only"] = kwargs.get("_return_http_data_only", True) + kwargs["_preload_content"] = kwargs.get("_preload_content", True) + kwargs["_request_timeout"] = kwargs.get("_request_timeout", None) + kwargs["_check_input_type"] = kwargs.get("_check_input_type", True) + kwargs["_check_return_type"] = kwargs.get("_check_return_type", True) + kwargs["_spec_property_naming"] = kwargs.get("_spec_property_naming", False) + kwargs["_content_type"] = kwargs.get("_content_type") + kwargs["_host_index"] = kwargs.get("_host_index") + kwargs["_request_auths"] = kwargs.get("_request_auths", None) + return self.list_parameters_plc_endpoint.call_with_http_info(**kwargs) + def list_parameters_sediment(self, **kwargs): """Liste aller Parameter im Sediment Kompartiment # noqa: E501 @@ -689,10 +929,14 @@ def list_parameters_sediment(self, **kwargs): _host_index (int/None): specifies the index of the server that we want to use. Default is read from the configuration. + _request_auths (list): set to override the auth_settings for an a single + request; this effectively ignores the authentication + in the spec for a single request. + Default is None async_req (bool): execute request asynchronously Returns: - InlineResponse2007 + ListParametersSediment200Response If the method is called asynchronously, returns the request thread. """ @@ -705,6 +949,7 @@ def list_parameters_sediment(self, **kwargs): kwargs["_spec_property_naming"] = kwargs.get("_spec_property_naming", False) kwargs["_content_type"] = kwargs.get("_content_type") kwargs["_host_index"] = kwargs.get("_host_index") + kwargs["_request_auths"] = kwargs.get("_request_auths", None) return self.list_parameters_sediment_endpoint.call_with_http_info(**kwargs) def list_parameters_wasser(self, **kwargs): @@ -745,10 +990,14 @@ def list_parameters_wasser(self, **kwargs): _host_index (int/None): specifies the index of the server that we want to use. Default is read from the configuration. + _request_auths (list): set to override the auth_settings for an a single + request; this effectively ignores the authentication + in the spec for a single request. + Default is None async_req (bool): execute request asynchronously Returns: - InlineResponse2006 + ListParametersWasser200Response If the method is called asynchronously, returns the request thread. """ @@ -761,6 +1010,7 @@ def list_parameters_wasser(self, **kwargs): kwargs["_spec_property_naming"] = kwargs.get("_spec_property_naming", False) kwargs["_content_type"] = kwargs.get("_content_type") kwargs["_host_index"] = kwargs.get("_host_index") + kwargs["_request_auths"] = kwargs.get("_request_auths", None) return self.list_parameters_wasser_endpoint.call_with_http_info(**kwargs) def list_plc_stations(self, **kwargs): @@ -801,10 +1051,14 @@ def list_plc_stations(self, **kwargs): _host_index (int/None): specifies the index of the server that we want to use. Default is read from the configuration. + _request_auths (list): set to override the auth_settings for an a single + request; this effectively ignores the authentication + in the spec for a single request. + Default is None async_req (bool): execute request asynchronously Returns: - InlineResponse2008 + ListPlcStations200Response If the method is called asynchronously, returns the request thread. """ @@ -817,6 +1071,7 @@ def list_plc_stations(self, **kwargs): kwargs["_spec_property_naming"] = kwargs.get("_spec_property_naming", False) kwargs["_content_type"] = kwargs.get("_content_type") kwargs["_host_index"] = kwargs.get("_host_index") + kwargs["_request_auths"] = kwargs.get("_request_auths", None) return self.list_plc_stations_endpoint.call_with_http_info(**kwargs) def list_projekt_stationen(self, **kwargs): @@ -857,10 +1112,14 @@ def list_projekt_stationen(self, **kwargs): _host_index (int/None): specifies the index of the server that we want to use. Default is read from the configuration. + _request_auths (list): set to override the auth_settings for an a single + request; this effectively ignores the authentication + in the spec for a single request. + Default is None async_req (bool): execute request asynchronously Returns: - InlineResponse200 + ListProjektStationen200Response If the method is called asynchronously, returns the request thread. """ @@ -873,4 +1132,5 @@ def list_projekt_stationen(self, **kwargs): kwargs["_spec_property_naming"] = kwargs.get("_spec_property_naming", False) kwargs["_content_type"] = kwargs.get("_content_type") kwargs["_host_index"] = kwargs.get("_host_index") + kwargs["_request_auths"] = kwargs.get("_request_auths", None) return self.list_projekt_stationen_endpoint.call_with_http_info(**kwargs) diff --git a/python-client/deutschland/mudab/api_client.py b/python-client/deutschland/mudab/api_client.py index 188584c..ffa4756 100644 --- a/python-client/deutschland/mudab/api_client.py +++ b/python-client/deutschland/mudab/api_client.py @@ -8,7 +8,6 @@ Generated by: https://openapi-generator.tech """ - import atexit import io import json @@ -143,6 +142,9 @@ def __call_api( _host: typing.Optional[str] = None, _check_type: typing.Optional[bool] = None, _content_type: typing.Optional[str] = None, + _request_auths: typing.Optional[ + typing.List[typing.Dict[str, typing.Any]] + ] = None, ): config = self.configuration @@ -188,7 +190,13 @@ def __call_api( # auth setting self.update_params_for_auth( - header_params, query_params, auth_settings, resource_path, method, body + header_params, + query_params, + auth_settings, + resource_path, + method, + body, + request_auths=_request_auths, ) # request url @@ -374,6 +382,9 @@ def call_api( ] = None, _host: typing.Optional[str] = None, _check_type: typing.Optional[bool] = None, + _request_auths: typing.Optional[ + typing.List[typing.Dict[str, typing.Any]] + ] = None, ): """Makes the HTTP request (synchronous) and returns deserialized data. @@ -421,6 +432,10 @@ def call_api( :param _check_type: boolean describing if the data back from the server should have its type checked. :type _check_type: bool, optional + :param _request_auths: set to override the auth_settings for an a single + request; this effectively ignores the authentication + in the spec for a single request. + :type _request_auths: list, optional :return: If async_req parameter is True, the request will be called asynchronously. @@ -446,6 +461,7 @@ def call_api( _request_timeout, _host, _check_type, + _request_auths=_request_auths, ) return self.pool.apply_async( @@ -467,6 +483,8 @@ def call_api( _request_timeout, _host, _check_type, + None, + _request_auths, ), ) @@ -652,7 +670,7 @@ def select_header_content_type(self, content_types, method=None, body=None): :return: Content-Type (e.g. application/json). """ if not content_types: - return "application/json" + return None content_types = [x.lower() for x in content_types] @@ -669,7 +687,14 @@ def select_header_content_type(self, content_types, method=None, body=None): return content_types[0] def update_params_for_auth( - self, headers, queries, auth_settings, resource_path, method, body + self, + headers, + queries, + auth_settings, + resource_path, + method, + body, + request_auths=None, ): """Updates header and query params based on authentication setting. @@ -680,24 +705,38 @@ def update_params_for_auth( :param method: A string representation of the HTTP request method. :param body: A object representing the body of the HTTP request. The object type is the return value of _encoder.default(). + :param request_auths: if set, the provided settings will + override the token in the configuration. """ if not auth_settings: return + if request_auths: + for auth_setting in request_auths: + self._apply_auth_params( + headers, queries, resource_path, method, body, auth_setting + ) + return + for auth in auth_settings: auth_setting = self.configuration.auth_settings().get(auth) if auth_setting: - if auth_setting["in"] == "cookie": - headers["Cookie"] = auth_setting["value"] - elif auth_setting["in"] == "header": - if auth_setting["type"] != "http-signature": - headers[auth_setting["key"]] = auth_setting["value"] - elif auth_setting["in"] == "query": - queries.append((auth_setting["key"], auth_setting["value"])) - else: - raise ApiValueError( - "Authentication token must be in `query` or `header`" - ) + self._apply_auth_params( + headers, queries, resource_path, method, body, auth_setting + ) + + def _apply_auth_params( + self, headers, queries, resource_path, method, body, auth_setting + ): + if auth_setting["in"] == "cookie": + headers["Cookie"] = auth_setting["key"] + "=" + auth_setting["value"] + elif auth_setting["in"] == "header": + if auth_setting["type"] != "http-signature": + headers[auth_setting["key"]] = auth_setting["value"] + elif auth_setting["in"] == "query": + queries.append((auth_setting["key"], auth_setting["value"])) + else: + raise ApiValueError("Authentication token must be in `query` or `header`") class Endpoint(object): @@ -756,6 +795,7 @@ def __init__( "_check_return_type", "_content_type", "_spec_property_naming", + "_request_auths", ] ) self.params_map["nullable"].extend(["_request_timeout"]) @@ -780,6 +820,7 @@ def __init__( "_check_return_type": (bool,), "_spec_property_naming": (bool,), "_content_type": (none_type, str), + "_request_auths": (none_type, list), } self.openapi_types.update(extra_types) self.attribute_map = root_map["attribute_map"] @@ -940,12 +981,13 @@ def call_with_http_info(self, **kwargs): content_type_headers_list = self.headers_map["content_type"] if content_type_headers_list: if params["body"] != "": - header_list = self.api_client.select_header_content_type( + content_types_list = self.api_client.select_header_content_type( content_type_headers_list, self.settings["http_method"], params["body"], ) - params["header"]["Content-Type"] = header_list + if content_types_list: + params["header"]["Content-Type"] = content_types_list return self.api_client.call_api( self.settings["endpoint_path"], @@ -964,5 +1006,6 @@ def call_with_http_info(self, **kwargs): _preload_content=kwargs["_preload_content"], _request_timeout=kwargs["_request_timeout"], _host=_host, + _request_auths=kwargs["_request_auths"], collection_formats=params["collection_format"], ) diff --git a/python-client/deutschland/mudab/apis/__init__.py b/python-client/deutschland/mudab/apis/__init__.py index 1247bd8..f983c29 100644 --- a/python-client/deutschland/mudab/apis/__init__.py +++ b/python-client/deutschland/mudab/apis/__init__.py @@ -5,7 +5,7 @@ # raise a `RecursionError`. # In order to avoid this, import only the API that you directly need like: # -# from .api.default_api import DefaultApi +# from deutschland.mudab.api.default_api import DefaultApi # # or import this package, but before doing it, use: # diff --git a/python-client/deutschland/mudab/configuration.py b/python-client/deutschland/mudab/configuration.py index 786485e..9362bf3 100644 --- a/python-client/deutschland/mudab/configuration.py +++ b/python-client/deutschland/mudab/configuration.py @@ -8,7 +8,6 @@ Generated by: https://openapi-generator.tech """ - import copy import logging import multiprocessing diff --git a/python-client/deutschland/mudab/exceptions.py b/python-client/deutschland/mudab/exceptions.py index 1e18416..fa987f1 100644 --- a/python-client/deutschland/mudab/exceptions.py +++ b/python-client/deutschland/mudab/exceptions.py @@ -96,6 +96,7 @@ def __init__(self, msg, path_to_item=None): class ApiException(OpenApiException): + def __init__(self, status=None, reason=None, http_resp=None): if http_resp: self.status = http_resp.status @@ -110,7 +111,9 @@ def __init__(self, status=None, reason=None, http_resp=None): def __str__(self): """Custom error messages for exception""" - error_message = "({0})\n" "Reason: {1}\n".format(self.status, self.reason) + error_message = "Status Code: {0}\n" "Reason: {1}\n".format( + self.status, self.reason + ) if self.headers: error_message += "HTTP response headers: {0}\n".format(self.headers) @@ -121,21 +124,25 @@ def __str__(self): class NotFoundException(ApiException): + def __init__(self, status=None, reason=None, http_resp=None): super(NotFoundException, self).__init__(status, reason, http_resp) class UnauthorizedException(ApiException): + def __init__(self, status=None, reason=None, http_resp=None): super(UnauthorizedException, self).__init__(status, reason, http_resp) class ForbiddenException(ApiException): + def __init__(self, status=None, reason=None, http_resp=None): super(ForbiddenException, self).__init__(status, reason, http_resp) class ServiceException(ApiException): + def __init__(self, status=None, reason=None, http_resp=None): super(ServiceException, self).__init__(status, reason, http_resp) diff --git a/python-client/deutschland/mudab/model/compartment.py b/python-client/deutschland/mudab/model/compartment.py index 19fa100..83adb77 100644 --- a/python-client/deutschland/mudab/model/compartment.py +++ b/python-client/deutschland/mudab/model/compartment.py @@ -8,7 +8,6 @@ Generated by: https://openapi-generator.tech """ - import re # noqa: F401 import sys # noqa: F401 @@ -163,15 +162,19 @@ def __init__(self, *args, **kwargs): _visited_composed_classes = kwargs.pop("_visited_composed_classes", ()) if args: - raise ApiTypeError( - "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." - % ( - args, - self.__class__.__name__, - ), - path_to_item=_path_to_item, - valid_classes=(self.__class__,), - ) + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." + % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) self._data_store = {} self._check_type = _check_type @@ -257,15 +260,19 @@ def _from_openapi_data(cls, *args, **kwargs): _visited_composed_classes = kwargs.pop("_visited_composed_classes", ()) if args: - raise ApiTypeError( - "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." - % ( - args, - self.__class__.__name__, - ), - path_to_item=_path_to_item, - valid_classes=(self.__class__,), - ) + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." + % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) self._data_store = {} self._check_type = _check_type diff --git a/python-client/deutschland/mudab/model/filter.py b/python-client/deutschland/mudab/model/filter.py index 91a2350..8fa6590 100644 --- a/python-client/deutschland/mudab/model/filter.py +++ b/python-client/deutschland/mudab/model/filter.py @@ -8,7 +8,6 @@ Generated by: https://openapi-generator.tech """ - import re # noqa: F401 import sys # noqa: F401 @@ -155,7 +154,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 """ _check_type = kwargs.pop("_check_type", True) - _spec_property_naming = kwargs.pop("_spec_property_naming", False) + _spec_property_naming = kwargs.pop("_spec_property_naming", True) _path_to_item = kwargs.pop("_path_to_item", ()) _configuration = kwargs.pop("_configuration", None) _visited_composed_classes = kwargs.pop("_visited_composed_classes", ()) @@ -163,15 +162,19 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 self = super(OpenApiModel, cls).__new__(cls) if args: - raise ApiTypeError( - "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." - % ( - args, - self.__class__.__name__, - ), - path_to_item=_path_to_item, - valid_classes=(self.__class__,), - ) + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." + % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) self._data_store = {} self._check_type = _check_type @@ -249,15 +252,19 @@ def __init__(self, *args, **kwargs): # noqa: E501 _visited_composed_classes = kwargs.pop("_visited_composed_classes", ()) if args: - raise ApiTypeError( - "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." - % ( - args, - self.__class__.__name__, - ), - path_to_item=_path_to_item, - valid_classes=(self.__class__,), - ) + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." + % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) self._data_store = {} self._check_type = _check_type diff --git a/python-client/deutschland/mudab/model/filter_action.py b/python-client/deutschland/mudab/model/filter_action.py index f0a0636..a12b9cf 100644 --- a/python-client/deutschland/mudab/model/filter_action.py +++ b/python-client/deutschland/mudab/model/filter_action.py @@ -8,7 +8,6 @@ Generated by: https://openapi-generator.tech """ - import re # noqa: F401 import sys # noqa: F401 @@ -150,7 +149,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 """ _check_type = kwargs.pop("_check_type", True) - _spec_property_naming = kwargs.pop("_spec_property_naming", False) + _spec_property_naming = kwargs.pop("_spec_property_naming", True) _path_to_item = kwargs.pop("_path_to_item", ()) _configuration = kwargs.pop("_configuration", None) _visited_composed_classes = kwargs.pop("_visited_composed_classes", ()) @@ -158,15 +157,19 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 self = super(OpenApiModel, cls).__new__(cls) if args: - raise ApiTypeError( - "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." - % ( - args, - self.__class__.__name__, - ), - path_to_item=_path_to_item, - valid_classes=(self.__class__,), - ) + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." + % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) self._data_store = {} self._check_type = _check_type @@ -245,15 +248,19 @@ def __init__(self, *args, **kwargs): # noqa: E501 _visited_composed_classes = kwargs.pop("_visited_composed_classes", ()) if args: - raise ApiTypeError( - "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." - % ( - args, - self.__class__.__name__, - ), - path_to_item=_path_to_item, - valid_classes=(self.__class__,), - ) + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." + % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) self._data_store = {} self._check_type = _check_type diff --git a/python-client/deutschland/mudab/model/filter_request.py b/python-client/deutschland/mudab/model/filter_request.py index ede56da..aa68b24 100644 --- a/python-client/deutschland/mudab/model/filter_request.py +++ b/python-client/deutschland/mudab/model/filter_request.py @@ -8,7 +8,6 @@ Generated by: https://openapi-generator.tech """ - import re # noqa: F401 import sys # noqa: F401 @@ -162,7 +161,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 """ _check_type = kwargs.pop("_check_type", True) - _spec_property_naming = kwargs.pop("_spec_property_naming", False) + _spec_property_naming = kwargs.pop("_spec_property_naming", True) _path_to_item = kwargs.pop("_path_to_item", ()) _configuration = kwargs.pop("_configuration", None) _visited_composed_classes = kwargs.pop("_visited_composed_classes", ()) @@ -170,15 +169,19 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 self = super(OpenApiModel, cls).__new__(cls) if args: - raise ApiTypeError( - "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." - % ( - args, - self.__class__.__name__, - ), - path_to_item=_path_to_item, - valid_classes=(self.__class__,), - ) + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." + % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) self._data_store = {} self._check_type = _check_type @@ -257,15 +260,19 @@ def __init__(self, *args, **kwargs): # noqa: E501 _visited_composed_classes = kwargs.pop("_visited_composed_classes", ()) if args: - raise ApiTypeError( - "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." - % ( - args, - self.__class__.__name__, - ), - path_to_item=_path_to_item, - valid_classes=(self.__class__,), - ) + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." + % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) self._data_store = {} self._check_type = _check_type diff --git a/python-client/deutschland/mudab/model/helcom_plc_station.py b/python-client/deutschland/mudab/model/helcom_plc_station.py index e64bdd5..334ec27 100644 --- a/python-client/deutschland/mudab/model/helcom_plc_station.py +++ b/python-client/deutschland/mudab/model/helcom_plc_station.py @@ -8,7 +8,6 @@ Generated by: https://openapi-generator.tech """ - import re # noqa: F401 import sys # noqa: F401 @@ -156,7 +155,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 _visited_composed_classes = (Animal,) station_name (str): Name der Station. [optional] # noqa: E501 station_code (str): Stationscode. [optional] # noqa: E501 - land_cd (str): [optional] # noqa: E501 + land_cd (str): Code für das Bundesland der Station. [optional] # noqa: E501 st_lat (float): Latitude. [optional] # noqa: E501 st_lon (float): Longitude. [optional] # noqa: E501 subcm_code (str): [optional] # noqa: E501 @@ -165,7 +164,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 """ _check_type = kwargs.pop("_check_type", True) - _spec_property_naming = kwargs.pop("_spec_property_naming", False) + _spec_property_naming = kwargs.pop("_spec_property_naming", True) _path_to_item = kwargs.pop("_path_to_item", ()) _configuration = kwargs.pop("_configuration", None) _visited_composed_classes = kwargs.pop("_visited_composed_classes", ()) @@ -173,15 +172,19 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 self = super(OpenApiModel, cls).__new__(cls) if args: - raise ApiTypeError( - "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." - % ( - args, - self.__class__.__name__, - ), - path_to_item=_path_to_item, - valid_classes=(self.__class__,), - ) + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." + % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) self._data_store = {} self._check_type = _check_type @@ -250,7 +253,7 @@ def __init__(self, *args, **kwargs): # noqa: E501 _visited_composed_classes = (Animal,) station_name (str): Name der Station. [optional] # noqa: E501 station_code (str): Stationscode. [optional] # noqa: E501 - land_cd (str): [optional] # noqa: E501 + land_cd (str): Code für das Bundesland der Station. [optional] # noqa: E501 st_lat (float): Latitude. [optional] # noqa: E501 st_lon (float): Longitude. [optional] # noqa: E501 subcm_code (str): [optional] # noqa: E501 @@ -265,15 +268,19 @@ def __init__(self, *args, **kwargs): # noqa: E501 _visited_composed_classes = kwargs.pop("_visited_composed_classes", ()) if args: - raise ApiTypeError( - "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." - % ( - args, - self.__class__.__name__, - ), - path_to_item=_path_to_item, - valid_classes=(self.__class__,), - ) + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." + % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) self._data_store = {} self._check_type = _check_type diff --git a/python-client/deutschland/mudab/model/inline_response2001.py b/python-client/deutschland/mudab/model/list_mess_stationen200_response.py similarity index 89% rename from python-client/deutschland/mudab/model/inline_response2001.py rename to python-client/deutschland/mudab/model/list_mess_stationen200_response.py index c42ef15..4a32396 100644 --- a/python-client/deutschland/mudab/model/inline_response2001.py +++ b/python-client/deutschland/mudab/model/list_mess_stationen200_response.py @@ -8,7 +8,6 @@ Generated by: https://openapi-generator.tech """ - import re # noqa: F401 import sys # noqa: F401 @@ -36,7 +35,7 @@ def lazy_import(): globals()["Messstation"] = Messstation -class InlineResponse2001(ModelNormal): +class ListMessStationen200Response(ModelNormal): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -115,7 +114,7 @@ def discriminator(): @classmethod @convert_js_args_to_python_args def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 - """InlineResponse2001 - a model defined in OpenAPI + """ListMessStationen200Response - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -152,7 +151,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 """ _check_type = kwargs.pop("_check_type", True) - _spec_property_naming = kwargs.pop("_spec_property_naming", False) + _spec_property_naming = kwargs.pop("_spec_property_naming", True) _path_to_item = kwargs.pop("_path_to_item", ()) _configuration = kwargs.pop("_configuration", None) _visited_composed_classes = kwargs.pop("_visited_composed_classes", ()) @@ -160,15 +159,19 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 self = super(OpenApiModel, cls).__new__(cls) if args: - raise ApiTypeError( - "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." - % ( - args, - self.__class__.__name__, - ), - path_to_item=_path_to_item, - valid_classes=(self.__class__,), - ) + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." + % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) self._data_store = {} self._check_type = _check_type @@ -202,7 +205,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 @convert_js_args_to_python_args def __init__(self, *args, **kwargs): # noqa: E501 - """InlineResponse2001 - a model defined in OpenAPI + """ListMessStationen200Response - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -245,15 +248,19 @@ def __init__(self, *args, **kwargs): # noqa: E501 _visited_composed_classes = kwargs.pop("_visited_composed_classes", ()) if args: - raise ApiTypeError( - "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." - % ( - args, - self.__class__.__name__, - ), - path_to_item=_path_to_item, - valid_classes=(self.__class__,), - ) + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." + % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) self._data_store = {} self._check_type = _check_type diff --git a/python-client/deutschland/mudab/model/list_messwerte_plc200_response.py b/python-client/deutschland/mudab/model/list_messwerte_plc200_response.py new file mode 100644 index 0000000..85bf191 --- /dev/null +++ b/python-client/deutschland/mudab/model/list_messwerte_plc200_response.py @@ -0,0 +1,286 @@ +""" + Umweltbundesamt: Meeresumweltdatenbank (MUDAB) + + Meeres-Monitoringdaten von Küstenbundesländern und Forschungseinrichtungen # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Contact: kontakt@bund.dev + Generated by: https://openapi-generator.tech +""" + +import re # noqa: F401 +import sys # noqa: F401 + +from deutschland.mudab.exceptions import ApiAttributeError +from deutschland.mudab.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + OpenApiModel, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, +) + + +def lazy_import(): + from deutschland.mudab.model.messwert_plc import MesswertPLC + + globals()["MesswertPLC"] = MesswertPLC + + +class ListMesswertePlc200Response(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = {} + + validations = {} + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + lazy_import() + return ( + bool, + date, + datetime, + dict, + float, + int, + list, + str, + none_type, + ) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + lazy_import() + return { + "v_messwerte_plc": ([MesswertPLC],), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + attribute_map = { + "v_messwerte_plc": "V_MESSWERTE_PLC", # noqa: E501 + } + + read_only_vars = {} + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """ListMesswertePlc200Response - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + v_messwerte_plc ([MesswertPLC]): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop("_check_type", True) + _spec_property_naming = kwargs.pop("_spec_property_naming", True) + _path_to_item = kwargs.pop("_path_to_item", ()) + _configuration = kwargs.pop("_configuration", None) + _visited_composed_classes = kwargs.pop("_visited_composed_classes", ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." + % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if ( + var_name not in self.attribute_map + and self._configuration is not None + and self._configuration.discard_unknown_keys + and self.additional_properties_type is None + ): + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set( + [ + "_data_store", + "_check_type", + "_spec_property_naming", + "_path_to_item", + "_configuration", + "_visited_composed_classes", + ] + ) + + @convert_js_args_to_python_args + def __init__(self, *args, **kwargs): # noqa: E501 + """ListMesswertePlc200Response - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + v_messwerte_plc ([MesswertPLC]): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop("_check_type", True) + _spec_property_naming = kwargs.pop("_spec_property_naming", False) + _path_to_item = kwargs.pop("_path_to_item", ()) + _configuration = kwargs.pop("_configuration", None) + _visited_composed_classes = kwargs.pop("_visited_composed_classes", ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." + % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if ( + var_name not in self.attribute_map + and self._configuration is not None + and self._configuration.discard_unknown_keys + and self.additional_properties_type is None + ): + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError( + f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes." + ) diff --git a/python-client/deutschland/mudab/model/inline_response2002.py b/python-client/deutschland/mudab/model/list_parameter200_response.py similarity index 89% rename from python-client/deutschland/mudab/model/inline_response2002.py rename to python-client/deutschland/mudab/model/list_parameter200_response.py index b8b7485..cf7df27 100644 --- a/python-client/deutschland/mudab/model/inline_response2002.py +++ b/python-client/deutschland/mudab/model/list_parameter200_response.py @@ -8,7 +8,6 @@ Generated by: https://openapi-generator.tech """ - import re # noqa: F401 import sys # noqa: F401 @@ -36,7 +35,7 @@ def lazy_import(): globals()["Parameter"] = Parameter -class InlineResponse2002(ModelNormal): +class ListParameter200Response(ModelNormal): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -115,7 +114,7 @@ def discriminator(): @classmethod @convert_js_args_to_python_args def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 - """InlineResponse2002 - a model defined in OpenAPI + """ListParameter200Response - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -152,7 +151,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 """ _check_type = kwargs.pop("_check_type", True) - _spec_property_naming = kwargs.pop("_spec_property_naming", False) + _spec_property_naming = kwargs.pop("_spec_property_naming", True) _path_to_item = kwargs.pop("_path_to_item", ()) _configuration = kwargs.pop("_configuration", None) _visited_composed_classes = kwargs.pop("_visited_composed_classes", ()) @@ -160,15 +159,19 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 self = super(OpenApiModel, cls).__new__(cls) if args: - raise ApiTypeError( - "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." - % ( - args, - self.__class__.__name__, - ), - path_to_item=_path_to_item, - valid_classes=(self.__class__,), - ) + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." + % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) self._data_store = {} self._check_type = _check_type @@ -202,7 +205,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 @convert_js_args_to_python_args def __init__(self, *args, **kwargs): # noqa: E501 - """InlineResponse2002 - a model defined in OpenAPI + """ListParameter200Response - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -245,15 +248,19 @@ def __init__(self, *args, **kwargs): # noqa: E501 _visited_composed_classes = kwargs.pop("_visited_composed_classes", ()) if args: - raise ApiTypeError( - "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." - % ( - args, - self.__class__.__name__, - ), - path_to_item=_path_to_item, - valid_classes=(self.__class__,), - ) + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." + % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) self._data_store = {} self._check_type = _check_type diff --git a/python-client/deutschland/mudab/model/inline_response2003.py b/python-client/deutschland/mudab/model/list_parameter_values200_response.py similarity index 88% rename from python-client/deutschland/mudab/model/inline_response2003.py rename to python-client/deutschland/mudab/model/list_parameter_values200_response.py index c175411..b1b31d5 100644 --- a/python-client/deutschland/mudab/model/inline_response2003.py +++ b/python-client/deutschland/mudab/model/list_parameter_values200_response.py @@ -8,7 +8,6 @@ Generated by: https://openapi-generator.tech """ - import re # noqa: F401 import sys # noqa: F401 @@ -36,7 +35,7 @@ def lazy_import(): globals()["ParameterValue"] = ParameterValue -class InlineResponse2003(ModelNormal): +class ListParameterValues200Response(ModelNormal): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -115,7 +114,7 @@ def discriminator(): @classmethod @convert_js_args_to_python_args def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 - """InlineResponse2003 - a model defined in OpenAPI + """ListParameterValues200Response - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -152,7 +151,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 """ _check_type = kwargs.pop("_check_type", True) - _spec_property_naming = kwargs.pop("_spec_property_naming", False) + _spec_property_naming = kwargs.pop("_spec_property_naming", True) _path_to_item = kwargs.pop("_path_to_item", ()) _configuration = kwargs.pop("_configuration", None) _visited_composed_classes = kwargs.pop("_visited_composed_classes", ()) @@ -160,15 +159,19 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 self = super(OpenApiModel, cls).__new__(cls) if args: - raise ApiTypeError( - "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." - % ( - args, - self.__class__.__name__, - ), - path_to_item=_path_to_item, - valid_classes=(self.__class__,), - ) + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." + % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) self._data_store = {} self._check_type = _check_type @@ -202,7 +205,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 @convert_js_args_to_python_args def __init__(self, *args, **kwargs): # noqa: E501 - """InlineResponse2003 - a model defined in OpenAPI + """ListParameterValues200Response - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -245,15 +248,19 @@ def __init__(self, *args, **kwargs): # noqa: E501 _visited_composed_classes = kwargs.pop("_visited_composed_classes", ()) if args: - raise ApiTypeError( - "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." - % ( - args, - self.__class__.__name__, - ), - path_to_item=_path_to_item, - valid_classes=(self.__class__,), - ) + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." + % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) self._data_store = {} self._check_type = _check_type diff --git a/python-client/deutschland/mudab/model/inline_response2004.py b/python-client/deutschland/mudab/model/list_parameters_biologie200_response.py similarity index 88% rename from python-client/deutschland/mudab/model/inline_response2004.py rename to python-client/deutschland/mudab/model/list_parameters_biologie200_response.py index 831475f..bb1e48d 100644 --- a/python-client/deutschland/mudab/model/inline_response2004.py +++ b/python-client/deutschland/mudab/model/list_parameters_biologie200_response.py @@ -8,7 +8,6 @@ Generated by: https://openapi-generator.tech """ - import re # noqa: F401 import sys # noqa: F401 @@ -36,7 +35,7 @@ def lazy_import(): globals()["Parameter"] = Parameter -class InlineResponse2004(ModelNormal): +class ListParametersBiologie200Response(ModelNormal): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -115,7 +114,7 @@ def discriminator(): @classmethod @convert_js_args_to_python_args def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 - """InlineResponse2004 - a model defined in OpenAPI + """ListParametersBiologie200Response - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -152,7 +151,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 """ _check_type = kwargs.pop("_check_type", True) - _spec_property_naming = kwargs.pop("_spec_property_naming", False) + _spec_property_naming = kwargs.pop("_spec_property_naming", True) _path_to_item = kwargs.pop("_path_to_item", ()) _configuration = kwargs.pop("_configuration", None) _visited_composed_classes = kwargs.pop("_visited_composed_classes", ()) @@ -160,15 +159,19 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 self = super(OpenApiModel, cls).__new__(cls) if args: - raise ApiTypeError( - "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." - % ( - args, - self.__class__.__name__, - ), - path_to_item=_path_to_item, - valid_classes=(self.__class__,), - ) + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." + % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) self._data_store = {} self._check_type = _check_type @@ -202,7 +205,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 @convert_js_args_to_python_args def __init__(self, *args, **kwargs): # noqa: E501 - """InlineResponse2004 - a model defined in OpenAPI + """ListParametersBiologie200Response - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -245,15 +248,19 @@ def __init__(self, *args, **kwargs): # noqa: E501 _visited_composed_classes = kwargs.pop("_visited_composed_classes", ()) if args: - raise ApiTypeError( - "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." - % ( - args, - self.__class__.__name__, - ), - path_to_item=_path_to_item, - valid_classes=(self.__class__,), - ) + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." + % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) self._data_store = {} self._check_type = _check_type diff --git a/python-client/deutschland/mudab/model/inline_response2005.py b/python-client/deutschland/mudab/model/list_parameters_biota200_response.py similarity index 88% rename from python-client/deutschland/mudab/model/inline_response2005.py rename to python-client/deutschland/mudab/model/list_parameters_biota200_response.py index a2ddab4..72223ee 100644 --- a/python-client/deutschland/mudab/model/inline_response2005.py +++ b/python-client/deutschland/mudab/model/list_parameters_biota200_response.py @@ -8,7 +8,6 @@ Generated by: https://openapi-generator.tech """ - import re # noqa: F401 import sys # noqa: F401 @@ -36,7 +35,7 @@ def lazy_import(): globals()["Parameter"] = Parameter -class InlineResponse2005(ModelNormal): +class ListParametersBiota200Response(ModelNormal): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -115,7 +114,7 @@ def discriminator(): @classmethod @convert_js_args_to_python_args def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 - """InlineResponse2005 - a model defined in OpenAPI + """ListParametersBiota200Response - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -152,7 +151,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 """ _check_type = kwargs.pop("_check_type", True) - _spec_property_naming = kwargs.pop("_spec_property_naming", False) + _spec_property_naming = kwargs.pop("_spec_property_naming", True) _path_to_item = kwargs.pop("_path_to_item", ()) _configuration = kwargs.pop("_configuration", None) _visited_composed_classes = kwargs.pop("_visited_composed_classes", ()) @@ -160,15 +159,19 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 self = super(OpenApiModel, cls).__new__(cls) if args: - raise ApiTypeError( - "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." - % ( - args, - self.__class__.__name__, - ), - path_to_item=_path_to_item, - valid_classes=(self.__class__,), - ) + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." + % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) self._data_store = {} self._check_type = _check_type @@ -202,7 +205,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 @convert_js_args_to_python_args def __init__(self, *args, **kwargs): # noqa: E501 - """InlineResponse2005 - a model defined in OpenAPI + """ListParametersBiota200Response - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -245,15 +248,19 @@ def __init__(self, *args, **kwargs): # noqa: E501 _visited_composed_classes = kwargs.pop("_visited_composed_classes", ()) if args: - raise ApiTypeError( - "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." - % ( - args, - self.__class__.__name__, - ), - path_to_item=_path_to_item, - valid_classes=(self.__class__,), - ) + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." + % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) self._data_store = {} self._check_type = _check_type diff --git a/python-client/deutschland/mudab/model/list_parameters_plc200_response.py b/python-client/deutschland/mudab/model/list_parameters_plc200_response.py new file mode 100644 index 0000000..c4241f6 --- /dev/null +++ b/python-client/deutschland/mudab/model/list_parameters_plc200_response.py @@ -0,0 +1,286 @@ +""" + Umweltbundesamt: Meeresumweltdatenbank (MUDAB) + + Meeres-Monitoringdaten von Küstenbundesländern und Forschungseinrichtungen # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Contact: kontakt@bund.dev + Generated by: https://openapi-generator.tech +""" + +import re # noqa: F401 +import sys # noqa: F401 + +from deutschland.mudab.exceptions import ApiAttributeError +from deutschland.mudab.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + OpenApiModel, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, +) + + +def lazy_import(): + from deutschland.mudab.model.parameter_plc import ParameterPLC + + globals()["ParameterPLC"] = ParameterPLC + + +class ListParametersPlc200Response(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = {} + + validations = {} + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + lazy_import() + return ( + bool, + date, + datetime, + dict, + float, + int, + list, + str, + none_type, + ) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + lazy_import() + return { + "v_gemessene_para_plc": ([ParameterPLC],), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + attribute_map = { + "v_gemessene_para_plc": "V_GEMESSENE_PARA_PLC", # noqa: E501 + } + + read_only_vars = {} + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """ListParametersPlc200Response - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + v_gemessene_para_plc ([ParameterPLC]): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop("_check_type", True) + _spec_property_naming = kwargs.pop("_spec_property_naming", True) + _path_to_item = kwargs.pop("_path_to_item", ()) + _configuration = kwargs.pop("_configuration", None) + _visited_composed_classes = kwargs.pop("_visited_composed_classes", ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." + % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if ( + var_name not in self.attribute_map + and self._configuration is not None + and self._configuration.discard_unknown_keys + and self.additional_properties_type is None + ): + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set( + [ + "_data_store", + "_check_type", + "_spec_property_naming", + "_path_to_item", + "_configuration", + "_visited_composed_classes", + ] + ) + + @convert_js_args_to_python_args + def __init__(self, *args, **kwargs): # noqa: E501 + """ListParametersPlc200Response - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + v_gemessene_para_plc ([ParameterPLC]): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop("_check_type", True) + _spec_property_naming = kwargs.pop("_spec_property_naming", False) + _path_to_item = kwargs.pop("_path_to_item", ()) + _configuration = kwargs.pop("_configuration", None) + _visited_composed_classes = kwargs.pop("_visited_composed_classes", ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." + % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if ( + var_name not in self.attribute_map + and self._configuration is not None + and self._configuration.discard_unknown_keys + and self.additional_properties_type is None + ): + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError( + f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes." + ) diff --git a/python-client/deutschland/mudab/model/inline_response2007.py b/python-client/deutschland/mudab/model/list_parameters_sediment200_response.py similarity index 88% rename from python-client/deutschland/mudab/model/inline_response2007.py rename to python-client/deutschland/mudab/model/list_parameters_sediment200_response.py index 286a216..001e014 100644 --- a/python-client/deutschland/mudab/model/inline_response2007.py +++ b/python-client/deutschland/mudab/model/list_parameters_sediment200_response.py @@ -8,7 +8,6 @@ Generated by: https://openapi-generator.tech """ - import re # noqa: F401 import sys # noqa: F401 @@ -36,7 +35,7 @@ def lazy_import(): globals()["Parameter"] = Parameter -class InlineResponse2007(ModelNormal): +class ListParametersSediment200Response(ModelNormal): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -115,7 +114,7 @@ def discriminator(): @classmethod @convert_js_args_to_python_args def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 - """InlineResponse2007 - a model defined in OpenAPI + """ListParametersSediment200Response - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -152,7 +151,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 """ _check_type = kwargs.pop("_check_type", True) - _spec_property_naming = kwargs.pop("_spec_property_naming", False) + _spec_property_naming = kwargs.pop("_spec_property_naming", True) _path_to_item = kwargs.pop("_path_to_item", ()) _configuration = kwargs.pop("_configuration", None) _visited_composed_classes = kwargs.pop("_visited_composed_classes", ()) @@ -160,15 +159,19 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 self = super(OpenApiModel, cls).__new__(cls) if args: - raise ApiTypeError( - "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." - % ( - args, - self.__class__.__name__, - ), - path_to_item=_path_to_item, - valid_classes=(self.__class__,), - ) + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." + % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) self._data_store = {} self._check_type = _check_type @@ -202,7 +205,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 @convert_js_args_to_python_args def __init__(self, *args, **kwargs): # noqa: E501 - """InlineResponse2007 - a model defined in OpenAPI + """ListParametersSediment200Response - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -245,15 +248,19 @@ def __init__(self, *args, **kwargs): # noqa: E501 _visited_composed_classes = kwargs.pop("_visited_composed_classes", ()) if args: - raise ApiTypeError( - "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." - % ( - args, - self.__class__.__name__, - ), - path_to_item=_path_to_item, - valid_classes=(self.__class__,), - ) + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." + % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) self._data_store = {} self._check_type = _check_type diff --git a/python-client/deutschland/mudab/model/inline_response2006.py b/python-client/deutschland/mudab/model/list_parameters_wasser200_response.py similarity index 88% rename from python-client/deutschland/mudab/model/inline_response2006.py rename to python-client/deutschland/mudab/model/list_parameters_wasser200_response.py index 42babd5..e1ef9d3 100644 --- a/python-client/deutschland/mudab/model/inline_response2006.py +++ b/python-client/deutschland/mudab/model/list_parameters_wasser200_response.py @@ -8,7 +8,6 @@ Generated by: https://openapi-generator.tech """ - import re # noqa: F401 import sys # noqa: F401 @@ -36,7 +35,7 @@ def lazy_import(): globals()["Parameter"] = Parameter -class InlineResponse2006(ModelNormal): +class ListParametersWasser200Response(ModelNormal): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -115,7 +114,7 @@ def discriminator(): @classmethod @convert_js_args_to_python_args def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 - """InlineResponse2006 - a model defined in OpenAPI + """ListParametersWasser200Response - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -152,7 +151,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 """ _check_type = kwargs.pop("_check_type", True) - _spec_property_naming = kwargs.pop("_spec_property_naming", False) + _spec_property_naming = kwargs.pop("_spec_property_naming", True) _path_to_item = kwargs.pop("_path_to_item", ()) _configuration = kwargs.pop("_configuration", None) _visited_composed_classes = kwargs.pop("_visited_composed_classes", ()) @@ -160,15 +159,19 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 self = super(OpenApiModel, cls).__new__(cls) if args: - raise ApiTypeError( - "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." - % ( - args, - self.__class__.__name__, - ), - path_to_item=_path_to_item, - valid_classes=(self.__class__,), - ) + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." + % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) self._data_store = {} self._check_type = _check_type @@ -202,7 +205,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 @convert_js_args_to_python_args def __init__(self, *args, **kwargs): # noqa: E501 - """InlineResponse2006 - a model defined in OpenAPI + """ListParametersWasser200Response - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -245,15 +248,19 @@ def __init__(self, *args, **kwargs): # noqa: E501 _visited_composed_classes = kwargs.pop("_visited_composed_classes", ()) if args: - raise ApiTypeError( - "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." - % ( - args, - self.__class__.__name__, - ), - path_to_item=_path_to_item, - valid_classes=(self.__class__,), - ) + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." + % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) self._data_store = {} self._check_type = _check_type diff --git a/python-client/deutschland/mudab/model/inline_response2008.py b/python-client/deutschland/mudab/model/list_plc_stations200_response.py similarity index 89% rename from python-client/deutschland/mudab/model/inline_response2008.py rename to python-client/deutschland/mudab/model/list_plc_stations200_response.py index 7a79670..dd4f24f 100644 --- a/python-client/deutschland/mudab/model/inline_response2008.py +++ b/python-client/deutschland/mudab/model/list_plc_stations200_response.py @@ -8,7 +8,6 @@ Generated by: https://openapi-generator.tech """ - import re # noqa: F401 import sys # noqa: F401 @@ -36,7 +35,7 @@ def lazy_import(): globals()["HelcomPLCStation"] = HelcomPLCStation -class InlineResponse2008(ModelNormal): +class ListPlcStations200Response(ModelNormal): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -115,7 +114,7 @@ def discriminator(): @classmethod @convert_js_args_to_python_args def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 - """InlineResponse2008 - a model defined in OpenAPI + """ListPlcStations200Response - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -152,7 +151,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 """ _check_type = kwargs.pop("_check_type", True) - _spec_property_naming = kwargs.pop("_spec_property_naming", False) + _spec_property_naming = kwargs.pop("_spec_property_naming", True) _path_to_item = kwargs.pop("_path_to_item", ()) _configuration = kwargs.pop("_configuration", None) _visited_composed_classes = kwargs.pop("_visited_composed_classes", ()) @@ -160,15 +159,19 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 self = super(OpenApiModel, cls).__new__(cls) if args: - raise ApiTypeError( - "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." - % ( - args, - self.__class__.__name__, - ), - path_to_item=_path_to_item, - valid_classes=(self.__class__,), - ) + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." + % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) self._data_store = {} self._check_type = _check_type @@ -202,7 +205,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 @convert_js_args_to_python_args def __init__(self, *args, **kwargs): # noqa: E501 - """InlineResponse2008 - a model defined in OpenAPI + """ListPlcStations200Response - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -245,15 +248,19 @@ def __init__(self, *args, **kwargs): # noqa: E501 _visited_composed_classes = kwargs.pop("_visited_composed_classes", ()) if args: - raise ApiTypeError( - "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." - % ( - args, - self.__class__.__name__, - ), - path_to_item=_path_to_item, - valid_classes=(self.__class__,), - ) + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." + % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) self._data_store = {} self._check_type = _check_type diff --git a/python-client/deutschland/mudab/model/inline_response200.py b/python-client/deutschland/mudab/model/list_projekt_stationen200_response.py similarity index 89% rename from python-client/deutschland/mudab/model/inline_response200.py rename to python-client/deutschland/mudab/model/list_projekt_stationen200_response.py index b998a16..4d310a7 100644 --- a/python-client/deutschland/mudab/model/inline_response200.py +++ b/python-client/deutschland/mudab/model/list_projekt_stationen200_response.py @@ -8,7 +8,6 @@ Generated by: https://openapi-generator.tech """ - import re # noqa: F401 import sys # noqa: F401 @@ -36,7 +35,7 @@ def lazy_import(): globals()["ProjectStation"] = ProjectStation -class InlineResponse200(ModelNormal): +class ListProjektStationen200Response(ModelNormal): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -115,7 +114,7 @@ def discriminator(): @classmethod @convert_js_args_to_python_args def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 - """InlineResponse200 - a model defined in OpenAPI + """ListProjektStationen200Response - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -152,7 +151,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 """ _check_type = kwargs.pop("_check_type", True) - _spec_property_naming = kwargs.pop("_spec_property_naming", False) + _spec_property_naming = kwargs.pop("_spec_property_naming", True) _path_to_item = kwargs.pop("_path_to_item", ()) _configuration = kwargs.pop("_configuration", None) _visited_composed_classes = kwargs.pop("_visited_composed_classes", ()) @@ -160,15 +159,19 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 self = super(OpenApiModel, cls).__new__(cls) if args: - raise ApiTypeError( - "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." - % ( - args, - self.__class__.__name__, - ), - path_to_item=_path_to_item, - valid_classes=(self.__class__,), - ) + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." + % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) self._data_store = {} self._check_type = _check_type @@ -202,7 +205,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 @convert_js_args_to_python_args def __init__(self, *args, **kwargs): # noqa: E501 - """InlineResponse200 - a model defined in OpenAPI + """ListProjektStationen200Response - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -245,15 +248,19 @@ def __init__(self, *args, **kwargs): # noqa: E501 _visited_composed_classes = kwargs.pop("_visited_composed_classes", ()) if args: - raise ApiTypeError( - "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." - % ( - args, - self.__class__.__name__, - ), - path_to_item=_path_to_item, - valid_classes=(self.__class__,), - ) + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." + % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) self._data_store = {} self._check_type = _check_type diff --git a/python-client/deutschland/mudab/model/messstation.py b/python-client/deutschland/mudab/model/messstation.py index f33137c..2e234b9 100644 --- a/python-client/deutschland/mudab/model/messstation.py +++ b/python-client/deutschland/mudab/model/messstation.py @@ -8,7 +8,6 @@ Generated by: https://openapi-generator.tech """ - import re # noqa: F401 import sys # noqa: F401 @@ -164,7 +163,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 """ _check_type = kwargs.pop("_check_type", True) - _spec_property_naming = kwargs.pop("_spec_property_naming", False) + _spec_property_naming = kwargs.pop("_spec_property_naming", True) _path_to_item = kwargs.pop("_path_to_item", ()) _configuration = kwargs.pop("_configuration", None) _visited_composed_classes = kwargs.pop("_visited_composed_classes", ()) @@ -172,15 +171,19 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 self = super(OpenApiModel, cls).__new__(cls) if args: - raise ApiTypeError( - "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." - % ( - args, - self.__class__.__name__, - ), - path_to_item=_path_to_item, - valid_classes=(self.__class__,), - ) + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." + % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) self._data_store = {} self._check_type = _check_type @@ -261,15 +264,19 @@ def __init__(self, *args, **kwargs): # noqa: E501 _visited_composed_classes = kwargs.pop("_visited_composed_classes", ()) if args: - raise ApiTypeError( - "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." - % ( - args, - self.__class__.__name__, - ), - path_to_item=_path_to_item, - valid_classes=(self.__class__,), - ) + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." + % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) self._data_store = {} self._check_type = _check_type diff --git a/python-client/deutschland/mudab/model/messwert_plc.py b/python-client/deutschland/mudab/model/messwert_plc.py new file mode 100644 index 0000000..40a9196 --- /dev/null +++ b/python-client/deutschland/mudab/model/messwert_plc.py @@ -0,0 +1,346 @@ +""" + Umweltbundesamt: Meeresumweltdatenbank (MUDAB) + + Meeres-Monitoringdaten von Küstenbundesländern und Forschungseinrichtungen # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Contact: kontakt@bund.dev + Generated by: https://openapi-generator.tech +""" + +import re # noqa: F401 +import sys # noqa: F401 + +from deutschland.mudab.exceptions import ApiAttributeError +from deutschland.mudab.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + OpenApiModel, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, +) + + +class MesswertPLC(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = {} + + validations = {} + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + return ( + bool, + date, + datetime, + dict, + float, + int, + list, + str, + none_type, + ) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + return { + "metadataid": (int,), # noqa: E501 + "nummer": (int,), # noqa: E501 + "name": (int,), # noqa: E501 + "station_code": (str,), # noqa: E501 + "station_name": (str,), # noqa: E501 + "value": (float,), # noqa: E501 + "param_type": (str,), # noqa: E501 + "param_id": (str,), # noqa: E501 + "period_name": (str,), # noqa: E501 + "period_type": (str,), # noqa: E501 + "land_cd": (str,), # noqa: E501 + "st_lat": (float,), # noqa: E501 + "st_lon": (float,), # noqa: E501 + "subcm_code": (str,), # noqa: E501 + "subcm_name": (str,), # noqa: E501 + "mon_type": (str,), # noqa: E501 + "val_unit": (str,), # noqa: E501 + "area": (float,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + attribute_map = { + "metadataid": "metadataid", # noqa: E501 + "nummer": "NUMMER", # noqa: E501 + "name": "NAME", # noqa: E501 + "station_code": "STATION_CODE", # noqa: E501 + "station_name": "STATION_NAME", # noqa: E501 + "value": "VALUE", # noqa: E501 + "param_type": "PARAM_TYPE", # noqa: E501 + "param_id": "PARAM_ID", # noqa: E501 + "period_name": "PERIOD_NAME", # noqa: E501 + "period_type": "PERIOD_TYPE", # noqa: E501 + "land_cd": "LAND_CD", # noqa: E501 + "st_lat": "ST_LAT", # noqa: E501 + "st_lon": "ST_LON", # noqa: E501 + "subcm_code": "SUBCM_CODE", # noqa: E501 + "subcm_name": "SUBCM_NAME", # noqa: E501 + "mon_type": "MON_TYPE", # noqa: E501 + "val_unit": "VAL_UNIT", # noqa: E501 + "area": "AREA", # noqa: E501 + } + + read_only_vars = {} + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """MesswertPLC - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + metadataid (int): metadataid für diese Schema ist 67. [optional] # noqa: E501 + nummer (int): Laufende Nummer des Datums. [optional] # noqa: E501 + name (int): Bezeichnung des Messwertes. [optional] # noqa: E501 + station_code (str): Stationscode. [optional] # noqa: E501 + station_name (str): Name der Station. [optional] # noqa: E501 + value (float): Wert. [optional] # noqa: E501 + param_type (str): Art der Messwertaggregation, entweder \"TOT\" oder \"AVE\". [optional] # noqa: E501 + param_id (str): Zahlencode für \"NAME\". [optional] # noqa: E501 + period_name (str): Jahr der Messung für PERIOD_TYPE \"A\". [optional] # noqa: E501 + period_type (str): Dauer der Aggregation, \"A\". [optional] # noqa: E501 + land_cd (str): Code für das Bundesland der Station. [optional] # noqa: E501 + st_lat (float): Latitude. [optional] # noqa: E501 + st_lon (float): Longitude. [optional] # noqa: E501 + subcm_code (str): [optional] # noqa: E501 + subcm_name (str): [optional] # noqa: E501 + mon_type (str): [optional] # noqa: E501 + val_unit (str): Einheit des Messwertes. [optional] # noqa: E501 + area (float): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop("_check_type", True) + _spec_property_naming = kwargs.pop("_spec_property_naming", True) + _path_to_item = kwargs.pop("_path_to_item", ()) + _configuration = kwargs.pop("_configuration", None) + _visited_composed_classes = kwargs.pop("_visited_composed_classes", ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." + % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if ( + var_name not in self.attribute_map + and self._configuration is not None + and self._configuration.discard_unknown_keys + and self.additional_properties_type is None + ): + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set( + [ + "_data_store", + "_check_type", + "_spec_property_naming", + "_path_to_item", + "_configuration", + "_visited_composed_classes", + ] + ) + + @convert_js_args_to_python_args + def __init__(self, *args, **kwargs): # noqa: E501 + """MesswertPLC - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + metadataid (int): metadataid für diese Schema ist 67. [optional] # noqa: E501 + nummer (int): Laufende Nummer des Datums. [optional] # noqa: E501 + name (int): Bezeichnung des Messwertes. [optional] # noqa: E501 + station_code (str): Stationscode. [optional] # noqa: E501 + station_name (str): Name der Station. [optional] # noqa: E501 + value (float): Wert. [optional] # noqa: E501 + param_type (str): Art der Messwertaggregation, entweder \"TOT\" oder \"AVE\". [optional] # noqa: E501 + param_id (str): Zahlencode für \"NAME\". [optional] # noqa: E501 + period_name (str): Jahr der Messung für PERIOD_TYPE \"A\". [optional] # noqa: E501 + period_type (str): Dauer der Aggregation, \"A\". [optional] # noqa: E501 + land_cd (str): Code für das Bundesland der Station. [optional] # noqa: E501 + st_lat (float): Latitude. [optional] # noqa: E501 + st_lon (float): Longitude. [optional] # noqa: E501 + subcm_code (str): [optional] # noqa: E501 + subcm_name (str): [optional] # noqa: E501 + mon_type (str): [optional] # noqa: E501 + val_unit (str): Einheit des Messwertes. [optional] # noqa: E501 + area (float): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop("_check_type", True) + _spec_property_naming = kwargs.pop("_spec_property_naming", False) + _path_to_item = kwargs.pop("_path_to_item", ()) + _configuration = kwargs.pop("_configuration", None) + _visited_composed_classes = kwargs.pop("_visited_composed_classes", ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." + % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if ( + var_name not in self.attribute_map + and self._configuration is not None + and self._configuration.discard_unknown_keys + and self.additional_properties_type is None + ): + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError( + f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes." + ) diff --git a/python-client/deutschland/mudab/model/orderby.py b/python-client/deutschland/mudab/model/orderby.py index 3aa4ed8..a04471b 100644 --- a/python-client/deutschland/mudab/model/orderby.py +++ b/python-client/deutschland/mudab/model/orderby.py @@ -8,7 +8,6 @@ Generated by: https://openapi-generator.tech """ - import re # noqa: F401 import sys # noqa: F401 @@ -152,7 +151,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 """ _check_type = kwargs.pop("_check_type", True) - _spec_property_naming = kwargs.pop("_spec_property_naming", False) + _spec_property_naming = kwargs.pop("_spec_property_naming", True) _path_to_item = kwargs.pop("_path_to_item", ()) _configuration = kwargs.pop("_configuration", None) _visited_composed_classes = kwargs.pop("_visited_composed_classes", ()) @@ -160,15 +159,19 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 self = super(OpenApiModel, cls).__new__(cls) if args: - raise ApiTypeError( - "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." - % ( - args, - self.__class__.__name__, - ), - path_to_item=_path_to_item, - valid_classes=(self.__class__,), - ) + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." + % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) self._data_store = {} self._check_type = _check_type @@ -246,15 +249,19 @@ def __init__(self, *args, **kwargs): # noqa: E501 _visited_composed_classes = kwargs.pop("_visited_composed_classes", ()) if args: - raise ApiTypeError( - "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." - % ( - args, - self.__class__.__name__, - ), - path_to_item=_path_to_item, - valid_classes=(self.__class__,), - ) + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." + % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) self._data_store = {} self._check_type = _check_type diff --git a/python-client/deutschland/mudab/model/parameter.py b/python-client/deutschland/mudab/model/parameter.py index 9a9ef06..ddd5694 100644 --- a/python-client/deutschland/mudab/model/parameter.py +++ b/python-client/deutschland/mudab/model/parameter.py @@ -8,7 +8,6 @@ Generated by: https://openapi-generator.tech """ - import re # noqa: F401 import sys # noqa: F401 @@ -170,7 +169,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 """ _check_type = kwargs.pop("_check_type", True) - _spec_property_naming = kwargs.pop("_spec_property_naming", False) + _spec_property_naming = kwargs.pop("_spec_property_naming", True) _path_to_item = kwargs.pop("_path_to_item", ()) _configuration = kwargs.pop("_configuration", None) _visited_composed_classes = kwargs.pop("_visited_composed_classes", ()) @@ -178,15 +177,19 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 self = super(OpenApiModel, cls).__new__(cls) if args: - raise ApiTypeError( - "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." - % ( - args, - self.__class__.__name__, - ), - path_to_item=_path_to_item, - valid_classes=(self.__class__,), - ) + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." + % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) self._data_store = {} self._check_type = _check_type @@ -269,15 +272,19 @@ def __init__(self, *args, **kwargs): # noqa: E501 _visited_composed_classes = kwargs.pop("_visited_composed_classes", ()) if args: - raise ApiTypeError( - "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." - % ( - args, - self.__class__.__name__, - ), - path_to_item=_path_to_item, - valid_classes=(self.__class__,), - ) + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." + % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) self._data_store = {} self._check_type = _check_type diff --git a/python-client/deutschland/mudab/model/parameter_plc.py b/python-client/deutschland/mudab/model/parameter_plc.py new file mode 100644 index 0000000..e14a570 --- /dev/null +++ b/python-client/deutschland/mudab/model/parameter_plc.py @@ -0,0 +1,314 @@ +""" + Umweltbundesamt: Meeresumweltdatenbank (MUDAB) + + Meeres-Monitoringdaten von Küstenbundesländern und Forschungseinrichtungen # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Contact: kontakt@bund.dev + Generated by: https://openapi-generator.tech +""" + +import re # noqa: F401 +import sys # noqa: F401 + +from deutschland.mudab.exceptions import ApiAttributeError +from deutschland.mudab.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + OpenApiModel, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, +) + + +class ParameterPLC(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = {} + + validations = {} + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + return ( + bool, + date, + datetime, + dict, + float, + int, + list, + str, + none_type, + ) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + return { + "metadataid": (int,), # noqa: E501 + "parameter": (str,), # noqa: E501 + "parametergruppe": (str,), # noqa: E501 + "station_code": (str,), # noqa: E501 + "letzte_messung": (str,), # noqa: E501 + "prkey": (str,), # noqa: E501 + "station_name": (str,), # noqa: E501 + "anz_messwerte": (int,), # noqa: E501 + "subcm_code": (str,), # noqa: E501 + "subcm_name": (str,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + attribute_map = { + "metadataid": "metadataid", # noqa: E501 + "parameter": "PARAMETER", # noqa: E501 + "parametergruppe": "PARAMETERGRUPPE", # noqa: E501 + "station_code": "STATION_CODE", # noqa: E501 + "letzte_messung": "LETZTE_MESSUNG", # noqa: E501 + "prkey": "PRKEY", # noqa: E501 + "station_name": "STATION_NAME", # noqa: E501 + "anz_messwerte": "ANZ_MESSWERTE", # noqa: E501 + "subcm_code": "SUBCM_CODE", # noqa: E501 + "subcm_name": "SUBCM_NAME", # noqa: E501 + } + + read_only_vars = {} + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """ParameterPLC - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + metadataid (int): metadataid für diese Schema ist 66. [optional] # noqa: E501 + parameter (str): Parameterabkürzung. [optional] # noqa: E501 + parametergruppe (str): Gruppe des Parameters. [optional] # noqa: E501 + station_code (str): Stationscode. [optional] # noqa: E501 + letzte_messung (str): Jahr der letzten Messung. [optional] # noqa: E501 + prkey (str): Eindeutiger Identifier des Messwerts, zusammengesetzt aus STATION_CODE und PARAMETER. [optional] # noqa: E501 + station_name (str): Name der Station. [optional] # noqa: E501 + anz_messwerte (int): Anzahl der Messwerte. [optional] # noqa: E501 + subcm_code (str): [optional] # noqa: E501 + subcm_name (str): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop("_check_type", True) + _spec_property_naming = kwargs.pop("_spec_property_naming", True) + _path_to_item = kwargs.pop("_path_to_item", ()) + _configuration = kwargs.pop("_configuration", None) + _visited_composed_classes = kwargs.pop("_visited_composed_classes", ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." + % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if ( + var_name not in self.attribute_map + and self._configuration is not None + and self._configuration.discard_unknown_keys + and self.additional_properties_type is None + ): + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set( + [ + "_data_store", + "_check_type", + "_spec_property_naming", + "_path_to_item", + "_configuration", + "_visited_composed_classes", + ] + ) + + @convert_js_args_to_python_args + def __init__(self, *args, **kwargs): # noqa: E501 + """ParameterPLC - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + metadataid (int): metadataid für diese Schema ist 66. [optional] # noqa: E501 + parameter (str): Parameterabkürzung. [optional] # noqa: E501 + parametergruppe (str): Gruppe des Parameters. [optional] # noqa: E501 + station_code (str): Stationscode. [optional] # noqa: E501 + letzte_messung (str): Jahr der letzten Messung. [optional] # noqa: E501 + prkey (str): Eindeutiger Identifier des Messwerts, zusammengesetzt aus STATION_CODE und PARAMETER. [optional] # noqa: E501 + station_name (str): Name der Station. [optional] # noqa: E501 + anz_messwerte (int): Anzahl der Messwerte. [optional] # noqa: E501 + subcm_code (str): [optional] # noqa: E501 + subcm_name (str): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop("_check_type", True) + _spec_property_naming = kwargs.pop("_spec_property_naming", False) + _path_to_item = kwargs.pop("_path_to_item", ()) + _configuration = kwargs.pop("_configuration", None) + _visited_composed_classes = kwargs.pop("_visited_composed_classes", ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." + % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if ( + var_name not in self.attribute_map + and self._configuration is not None + and self._configuration.discard_unknown_keys + and self.additional_properties_type is None + ): + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError( + f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes." + ) diff --git a/python-client/deutschland/mudab/model/parameter_value.py b/python-client/deutschland/mudab/model/parameter_value.py index 819a215..df2e809 100644 --- a/python-client/deutschland/mudab/model/parameter_value.py +++ b/python-client/deutschland/mudab/model/parameter_value.py @@ -8,7 +8,6 @@ Generated by: https://openapi-generator.tech """ - import re # noqa: F401 import sys # noqa: F401 @@ -165,7 +164,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 """ _check_type = kwargs.pop("_check_type", True) - _spec_property_naming = kwargs.pop("_spec_property_naming", False) + _spec_property_naming = kwargs.pop("_spec_property_naming", True) _path_to_item = kwargs.pop("_path_to_item", ()) _configuration = kwargs.pop("_configuration", None) _visited_composed_classes = kwargs.pop("_visited_composed_classes", ()) @@ -173,15 +172,19 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 self = super(OpenApiModel, cls).__new__(cls) if args: - raise ApiTypeError( - "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." - % ( - args, - self.__class__.__name__, - ), - path_to_item=_path_to_item, - valid_classes=(self.__class__,), - ) + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." + % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) self._data_store = {} self._check_type = _check_type @@ -265,15 +268,19 @@ def __init__(self, *args, **kwargs): # noqa: E501 _visited_composed_classes = kwargs.pop("_visited_composed_classes", ()) if args: - raise ApiTypeError( - "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." - % ( - args, - self.__class__.__name__, - ), - path_to_item=_path_to_item, - valid_classes=(self.__class__,), - ) + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." + % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) self._data_store = {} self._check_type = _check_type diff --git a/python-client/deutschland/mudab/model/project_station.py b/python-client/deutschland/mudab/model/project_station.py index 3dfc9b4..5765a31 100644 --- a/python-client/deutschland/mudab/model/project_station.py +++ b/python-client/deutschland/mudab/model/project_station.py @@ -8,7 +8,6 @@ Generated by: https://openapi-generator.tech """ - import re # noqa: F401 import sys # noqa: F401 @@ -156,7 +155,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 """ _check_type = kwargs.pop("_check_type", True) - _spec_property_naming = kwargs.pop("_spec_property_naming", False) + _spec_property_naming = kwargs.pop("_spec_property_naming", True) _path_to_item = kwargs.pop("_path_to_item", ()) _configuration = kwargs.pop("_configuration", None) _visited_composed_classes = kwargs.pop("_visited_composed_classes", ()) @@ -164,15 +163,19 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 self = super(OpenApiModel, cls).__new__(cls) if args: - raise ApiTypeError( - "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." - % ( - args, - self.__class__.__name__, - ), - path_to_item=_path_to_item, - valid_classes=(self.__class__,), - ) + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." + % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) self._data_store = {} self._check_type = _check_type @@ -253,15 +256,19 @@ def __init__(self, *args, **kwargs): # noqa: E501 _visited_composed_classes = kwargs.pop("_visited_composed_classes", ()) if args: - raise ApiTypeError( - "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." - % ( - args, - self.__class__.__name__, - ), - path_to_item=_path_to_item, - valid_classes=(self.__class__,), - ) + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." + % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) self._data_store = {} self._check_type = _check_type diff --git a/python-client/deutschland/mudab/model/range.py b/python-client/deutschland/mudab/model/range.py index c5eb3fd..59dd4c4 100644 --- a/python-client/deutschland/mudab/model/range.py +++ b/python-client/deutschland/mudab/model/range.py @@ -8,7 +8,6 @@ Generated by: https://openapi-generator.tech """ - import re # noqa: F401 import sys # noqa: F401 @@ -147,7 +146,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 """ _check_type = kwargs.pop("_check_type", True) - _spec_property_naming = kwargs.pop("_spec_property_naming", False) + _spec_property_naming = kwargs.pop("_spec_property_naming", True) _path_to_item = kwargs.pop("_path_to_item", ()) _configuration = kwargs.pop("_configuration", None) _visited_composed_classes = kwargs.pop("_visited_composed_classes", ()) @@ -155,15 +154,19 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 self = super(OpenApiModel, cls).__new__(cls) if args: - raise ApiTypeError( - "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." - % ( - args, - self.__class__.__name__, - ), - path_to_item=_path_to_item, - valid_classes=(self.__class__,), - ) + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." + % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) self._data_store = {} self._check_type = _check_type @@ -241,15 +244,19 @@ def __init__(self, *args, **kwargs): # noqa: E501 _visited_composed_classes = kwargs.pop("_visited_composed_classes", ()) if args: - raise ApiTypeError( - "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." - % ( - args, - self.__class__.__name__, - ), - path_to_item=_path_to_item, - valid_classes=(self.__class__,), - ) + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." + % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) self._data_store = {} self._check_type = _check_type diff --git a/python-client/deutschland/mudab/model_utils.py b/python-client/deutschland/mudab/model_utils.py index 9f7d4f4..9c27a31 100644 --- a/python-client/deutschland/mudab/model_utils.py +++ b/python-client/deutschland/mudab/model_utils.py @@ -8,13 +8,13 @@ Generated by: https://openapi-generator.tech """ - import inspect import io import os import pprint import re import tempfile +import uuid from copy import deepcopy from datetime import date, datetime # noqa: F401 @@ -187,7 +187,7 @@ def __copy__(self): if self.get("_spec_property_naming", False): return cls._new_from_openapi_data(**self.__dict__) else: - return new_cls.__new__(cls, **self.__dict__) + return cls.__new__(cls, **self.__dict__) def __deepcopy__(self, memo): cls = self.__class__ @@ -195,7 +195,7 @@ def __deepcopy__(self, memo): if self.get("_spec_property_naming", False): new_inst = cls._new_from_openapi_data() else: - new_inst = cls.__new__(cls) + new_inst = cls.__new__(cls, **self.__dict__) for k, v in self.__dict__.items(): setattr(new_inst, k, deepcopy(v, memo)) @@ -611,9 +611,9 @@ def __setitem__(self, name, value): setattr(model_instance, name, value) if name not in self._var_name_to_model_instances: # we assigned an additional property - self.__dict__["_var_name_to_model_instances"][ - name - ] = self._composed_instances + [self] + self.__dict__["_var_name_to_model_instances"][name] = ( + self._composed_instances + [self] + ) return None __unset_attribute_value__ = object() @@ -724,10 +724,8 @@ def __eq__(self, other): UPCONVERSION_TYPE_PAIRS = ( (str, datetime), (str, date), - ( - int, - float, - ), # A float may be serialized as an integer, e.g. '3' is a valid serialized float. + # A float may be serialized as an integer, e.g. '3' is a valid serialized float. + (int, float), (list, ModelComposed), (dict, ModelComposed), (str, ModelComposed), @@ -1404,8 +1402,13 @@ def deserialize_file(response_data, configuration, content_disposition=None): if content_disposition: filename = re.search( - r'filename=[\'"]?([^\'"\s]+)[\'"]?', content_disposition - ).group(1) + r'filename=[\'"]?([^\'"\s]+)[\'"]?', content_disposition, flags=re.I + ) + if filename is not None: + filename = filename.group(1) + else: + filename = "default_" + str(uuid.uuid4()) + path = os.path.join(os.path.dirname(path), filename) with open(path, "wb") as f: @@ -1602,7 +1605,7 @@ def validate_and_convert_types( input_class_simple = get_simple_class(input_value) valid_type = is_valid_type(input_class_simple, valid_classes) if not valid_type: - if configuration: + if configuration or (input_class_simple == dict and dict not in valid_classes): # if input_value is not valid_type try to convert it converted_instance = attempt_convert_item( input_value, @@ -1696,11 +1699,13 @@ def model_to_dict(model_instance, serialize=True): attribute_map """ result = {} - extract_item = ( - lambda item: (item[0], model_to_dict(item[1], serialize=serialize)) - if hasattr(item[1], "_data_store") - else item - ) + + def extract_item(item): + return ( + (item[0], model_to_dict(item[1], serialize=serialize)) + if hasattr(item[1], "_data_store") + else item + ) model_instances = [model_instance] if model_instance._composed_schemas: @@ -2073,7 +2078,9 @@ def validate_get_composed_info(constant_args, model_args, self): var_name_to_model_instances = {} for prop_name in model_args: if prop_name not in discarded_args: - var_name_to_model_instances[prop_name] = [self] + composed_instances + var_name_to_model_instances[prop_name] = [self] + list( + filter(lambda x: prop_name in x.openapi_types, composed_instances) + ) return [ composed_instances, diff --git a/python-client/deutschland/mudab/models/__init__.py b/python-client/deutschland/mudab/models/__init__.py index a2ba354..9abcc21 100644 --- a/python-client/deutschland/mudab/models/__init__.py +++ b/python-client/deutschland/mudab/models/__init__.py @@ -14,18 +14,42 @@ from deutschland.mudab.model.filter_action import FilterAction from deutschland.mudab.model.filter_request import FilterRequest from deutschland.mudab.model.helcom_plc_station import HelcomPLCStation -from deutschland.mudab.model.inline_response200 import InlineResponse200 -from deutschland.mudab.model.inline_response2001 import InlineResponse2001 -from deutschland.mudab.model.inline_response2002 import InlineResponse2002 -from deutschland.mudab.model.inline_response2003 import InlineResponse2003 -from deutschland.mudab.model.inline_response2004 import InlineResponse2004 -from deutschland.mudab.model.inline_response2005 import InlineResponse2005 -from deutschland.mudab.model.inline_response2006 import InlineResponse2006 -from deutschland.mudab.model.inline_response2007 import InlineResponse2007 -from deutschland.mudab.model.inline_response2008 import InlineResponse2008 +from deutschland.mudab.model.list_mess_stationen200_response import ( + ListMessStationen200Response, +) +from deutschland.mudab.model.list_messwerte_plc200_response import ( + ListMesswertePlc200Response, +) +from deutschland.mudab.model.list_parameter200_response import ListParameter200Response +from deutschland.mudab.model.list_parameter_values200_response import ( + ListParameterValues200Response, +) +from deutschland.mudab.model.list_parameters_biologie200_response import ( + ListParametersBiologie200Response, +) +from deutschland.mudab.model.list_parameters_biota200_response import ( + ListParametersBiota200Response, +) +from deutschland.mudab.model.list_parameters_plc200_response import ( + ListParametersPlc200Response, +) +from deutschland.mudab.model.list_parameters_sediment200_response import ( + ListParametersSediment200Response, +) +from deutschland.mudab.model.list_parameters_wasser200_response import ( + ListParametersWasser200Response, +) +from deutschland.mudab.model.list_plc_stations200_response import ( + ListPlcStations200Response, +) +from deutschland.mudab.model.list_projekt_stationen200_response import ( + ListProjektStationen200Response, +) from deutschland.mudab.model.messstation import Messstation +from deutschland.mudab.model.messwert_plc import MesswertPLC from deutschland.mudab.model.orderby import Orderby from deutschland.mudab.model.parameter import Parameter +from deutschland.mudab.model.parameter_plc import ParameterPLC from deutschland.mudab.model.parameter_value import ParameterValue from deutschland.mudab.model.project_station import ProjectStation from deutschland.mudab.model.range import Range diff --git a/python-client/deutschland/mudab/rest.py b/python-client/deutschland/mudab/rest.py index d93d7f3..2eb154d 100644 --- a/python-client/deutschland/mudab/rest.py +++ b/python-client/deutschland/mudab/rest.py @@ -8,7 +8,6 @@ Generated by: https://openapi-generator.tech """ - import io import ipaddress import json @@ -32,6 +31,7 @@ class RESTResponse(io.IOBase): + def __init__(self, resp): self.urllib3_response = resp self.status = resp.status @@ -48,6 +48,7 @@ def getheader(self, name, default=None): 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 @@ -63,9 +64,9 @@ def __init__(self, configuration, pools_size=4, maxsize=None): addition_pool_args = {} if configuration.assert_hostname is not None: - addition_pool_args[ - "assert_hostname" - ] = configuration.assert_hostname # noqa: E501 + addition_pool_args["assert_hostname"] = ( + configuration.assert_hostname + ) # noqa: E501 if configuration.retries is not None: addition_pool_args["retries"] = configuration.retries @@ -397,6 +398,8 @@ def PATCH( # end of class RESTClientObject + + def is_ipv4(target): """Test if IPv4 address or not""" try: diff --git a/python-client/docs/DefaultApi.md b/python-client/docs/DefaultApi.md index 2683538..fddc190 100644 --- a/python-client/docs/DefaultApi.md +++ b/python-client/docs/DefaultApi.md @@ -5,10 +5,12 @@ All URIs are relative to *https://geoportal.bafg.de/MUDABAnwendung/rest/BaseCont Method | HTTP request | Description ------------- | ------------- | ------------- [**list_mess_stationen**](DefaultApi.md#list_mess_stationen) | **POST** /STATION_SMALL | Liste aller Messstationen +[**list_messwerte_plc**](DefaultApi.md#list_messwerte_plc) | **POST** /V_MESSWERTE_PLC | Liste aller Messwerte der gefilterten PLC Stationen [**list_parameter**](DefaultApi.md#list_parameter) | **POST** /MV_PARAMETER | Liste aller Parameter [**list_parameter_values**](DefaultApi.md#list_parameter_values) | **POST** /MV_STATION_MSMNT | Liste aller Messwerte [**list_parameters_biologie**](DefaultApi.md#list_parameters_biologie) | **POST** /MV_PARAMETER_BIOLOGIE | Liste aller Parameter im Biologie Kompartiment [**list_parameters_biota**](DefaultApi.md#list_parameters_biota) | **POST** /MV_PARAMETER_BIOTA | Liste aller Parameter im Biota Kompartiment +[**list_parameters_plc**](DefaultApi.md#list_parameters_plc) | **POST** /V_GEMESSENE_PARA_PLC | Liste aller Parameter der PLC Stationen [**list_parameters_sediment**](DefaultApi.md#list_parameters_sediment) | **POST** /MV_PARAMETER_SEDIMENT | Liste aller Parameter im Sediment Kompartiment [**list_parameters_wasser**](DefaultApi.md#list_parameters_wasser) | **POST** /MV_PARAMETER_WASSER | Liste aller Parameter im Wasser Kompartiment [**list_plc_stations**](DefaultApi.md#list_plc_stations) | **POST** /V_PLC_STATION | Liste aller HELCOM PLC Stationen @@ -16,7 +18,7 @@ Method | HTTP request | Description # **list_mess_stationen** -> InlineResponse2001 list_mess_stationen() +> ListMessStationen200Response list_mess_stationen() Liste aller Messstationen @@ -30,7 +32,7 @@ import time from deutschland import mudab from deutschland.mudab.api import default_api from deutschland.mudab.model.filter_request import FilterRequest -from deutschland.mudab.model.inline_response2001 import InlineResponse2001 +from deutschland.mudab.model.list_mess_stationen200_response import ListMessStationen200Response from pprint import pprint # Defining the host is optional and defaults to https://geoportal.bafg.de/MUDABAnwendung/rest/BaseController/FilterElements # See configuration.py for a list of all supported configuration parameters. @@ -85,7 +87,97 @@ Name | Type | Description | Notes ### Return type -[**InlineResponse2001**](InlineResponse2001.md) +[**ListMessStationen200Response**](ListMessStationen200Response.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Success | - | + +[[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) + +# **list_messwerte_plc** +> ListMesswertePlc200Response list_messwerte_plc() + +Liste aller Messwerte der gefilterten PLC Stationen + +Gibt eine filterbare Liste aller Messwerte welche durch PLC Stationen gemessen wurden zurück. Filterbare Attribute sind die Felder die aus dem MesswertPLC Schema kommen, z.B. STATION_CODE + +### Example + + +```python +import time +from deutschland import mudab +from deutschland.mudab.api import default_api +from deutschland.mudab.model.list_messwerte_plc200_response import ListMesswertePlc200Response +from deutschland.mudab.model.filter_request import FilterRequest +from pprint import pprint +# Defining the host is optional and defaults to https://geoportal.bafg.de/MUDABAnwendung/rest/BaseController/FilterElements +# See configuration.py for a list of all supported configuration parameters. +configuration = mudab.Configuration( + host = "https://geoportal.bafg.de/MUDABAnwendung/rest/BaseController/FilterElements" +) + + +# Enter a context with an instance of the API client +with mudab.ApiClient() as api_client: + # Create an instance of the API class + api_instance = default_api.DefaultApi(api_client) + filter_request = FilterRequest( + filter=Filter( + _or=FilterAction( + col="col_example", + op="op_example", + value="value_example", + ), + _and=FilterAction( + col="col_example", + op="op_example", + value="value_example", + ), + ), + range=Range( + _from=1, + count=1, + ), + orderby=Orderby( + col="col_example", + dir="asc", + ), + ) # FilterRequest | (optional) + + # example passing only required values which don't have defaults set + # and optional values + try: + # Liste aller Messwerte der gefilterten PLC Stationen + api_response = api_instance.list_messwerte_plc(filter_request=filter_request) + pprint(api_response) + except mudab.ApiException as e: + print("Exception when calling DefaultApi->list_messwerte_plc: %s\n" % e) +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **filter_request** | [**FilterRequest**](FilterRequest.md)| | [optional] + +### Return type + +[**ListMesswertePlc200Response**](ListMesswertePlc200Response.md) ### Authorization @@ -106,7 +198,7 @@ No authorization required [[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) # **list_parameter** -> InlineResponse2002 list_parameter() +> ListParameter200Response list_parameter() Liste aller Parameter @@ -119,7 +211,7 @@ Gibt eine filterbare Liste aller Parameter in der Datenbank zurück. Filterbare import time from deutschland import mudab from deutschland.mudab.api import default_api -from deutschland.mudab.model.inline_response2002 import InlineResponse2002 +from deutschland.mudab.model.list_parameter200_response import ListParameter200Response from deutschland.mudab.model.filter_request import FilterRequest from pprint import pprint # Defining the host is optional and defaults to https://geoportal.bafg.de/MUDABAnwendung/rest/BaseController/FilterElements @@ -175,7 +267,7 @@ Name | Type | Description | Notes ### Return type -[**InlineResponse2002**](InlineResponse2002.md) +[**ListParameter200Response**](ListParameter200Response.md) ### Authorization @@ -196,7 +288,7 @@ No authorization required [[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) # **list_parameter_values** -> InlineResponse2003 list_parameter_values() +> ListParameterValues200Response list_parameter_values() Liste aller Messwerte @@ -209,7 +301,7 @@ Gibt eine filterbare Liste aller Messwerte in der Datenbank zurück. Filterbare import time from deutschland import mudab from deutschland.mudab.api import default_api -from deutschland.mudab.model.inline_response2003 import InlineResponse2003 +from deutschland.mudab.model.list_parameter_values200_response import ListParameterValues200Response from deutschland.mudab.model.filter_request import FilterRequest from pprint import pprint # Defining the host is optional and defaults to https://geoportal.bafg.de/MUDABAnwendung/rest/BaseController/FilterElements @@ -265,7 +357,7 @@ Name | Type | Description | Notes ### Return type -[**InlineResponse2003**](InlineResponse2003.md) +[**ListParameterValues200Response**](ListParameterValues200Response.md) ### Authorization @@ -286,7 +378,7 @@ No authorization required [[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) # **list_parameters_biologie** -> InlineResponse2004 list_parameters_biologie() +> ListParametersBiologie200Response list_parameters_biologie() Liste aller Parameter im Biologie Kompartiment @@ -299,7 +391,7 @@ Gibt eine filterbare Liste aller Parameter in der Datenbank aus dem Kompartiment import time from deutschland import mudab from deutschland.mudab.api import default_api -from deutschland.mudab.model.inline_response2004 import InlineResponse2004 +from deutschland.mudab.model.list_parameters_biologie200_response import ListParametersBiologie200Response from deutschland.mudab.model.filter_request import FilterRequest from pprint import pprint # Defining the host is optional and defaults to https://geoportal.bafg.de/MUDABAnwendung/rest/BaseController/FilterElements @@ -355,7 +447,7 @@ Name | Type | Description | Notes ### Return type -[**InlineResponse2004**](InlineResponse2004.md) +[**ListParametersBiologie200Response**](ListParametersBiologie200Response.md) ### Authorization @@ -376,7 +468,7 @@ No authorization required [[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) # **list_parameters_biota** -> InlineResponse2005 list_parameters_biota() +> ListParametersBiota200Response list_parameters_biota() Liste aller Parameter im Biota Kompartiment @@ -389,7 +481,7 @@ Gibt eine filterbare Liste aller Parameter in der Datenbank aus dem Kompartiment import time from deutschland import mudab from deutschland.mudab.api import default_api -from deutschland.mudab.model.inline_response2005 import InlineResponse2005 +from deutschland.mudab.model.list_parameters_biota200_response import ListParametersBiota200Response from deutschland.mudab.model.filter_request import FilterRequest from pprint import pprint # Defining the host is optional and defaults to https://geoportal.bafg.de/MUDABAnwendung/rest/BaseController/FilterElements @@ -445,7 +537,97 @@ Name | Type | Description | Notes ### Return type -[**InlineResponse2005**](InlineResponse2005.md) +[**ListParametersBiota200Response**](ListParametersBiota200Response.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Success | - | + +[[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) + +# **list_parameters_plc** +> ListParametersPlc200Response list_parameters_plc() + +Liste aller Parameter der PLC Stationen + +Gibt eine filterbare Liste aller Parameter welche durch die gefilterten PLC Stationen gemessen werden zurück. Filterbare Attribute sind die Felder die aus dem ParameterPLC Schema kommen. + +### Example + + +```python +import time +from deutschland import mudab +from deutschland.mudab.api import default_api +from deutschland.mudab.model.filter_request import FilterRequest +from deutschland.mudab.model.list_parameters_plc200_response import ListParametersPlc200Response +from pprint import pprint +# Defining the host is optional and defaults to https://geoportal.bafg.de/MUDABAnwendung/rest/BaseController/FilterElements +# See configuration.py for a list of all supported configuration parameters. +configuration = mudab.Configuration( + host = "https://geoportal.bafg.de/MUDABAnwendung/rest/BaseController/FilterElements" +) + + +# Enter a context with an instance of the API client +with mudab.ApiClient() as api_client: + # Create an instance of the API class + api_instance = default_api.DefaultApi(api_client) + filter_request = FilterRequest( + filter=Filter( + _or=FilterAction( + col="col_example", + op="op_example", + value="value_example", + ), + _and=FilterAction( + col="col_example", + op="op_example", + value="value_example", + ), + ), + range=Range( + _from=1, + count=1, + ), + orderby=Orderby( + col="col_example", + dir="asc", + ), + ) # FilterRequest | (optional) + + # example passing only required values which don't have defaults set + # and optional values + try: + # Liste aller Parameter der PLC Stationen + api_response = api_instance.list_parameters_plc(filter_request=filter_request) + pprint(api_response) + except mudab.ApiException as e: + print("Exception when calling DefaultApi->list_parameters_plc: %s\n" % e) +``` + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **filter_request** | [**FilterRequest**](FilterRequest.md)| | [optional] + +### Return type + +[**ListParametersPlc200Response**](ListParametersPlc200Response.md) ### Authorization @@ -466,7 +648,7 @@ No authorization required [[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) # **list_parameters_sediment** -> InlineResponse2007 list_parameters_sediment() +> ListParametersSediment200Response list_parameters_sediment() Liste aller Parameter im Sediment Kompartiment @@ -479,8 +661,8 @@ Gibt eine filterbare Liste aller Parameter in der Datenbank aus dem Kompartiment import time from deutschland import mudab from deutschland.mudab.api import default_api -from deutschland.mudab.model.inline_response2007 import InlineResponse2007 from deutschland.mudab.model.filter_request import FilterRequest +from deutschland.mudab.model.list_parameters_sediment200_response import ListParametersSediment200Response from pprint import pprint # Defining the host is optional and defaults to https://geoportal.bafg.de/MUDABAnwendung/rest/BaseController/FilterElements # See configuration.py for a list of all supported configuration parameters. @@ -535,7 +717,7 @@ Name | Type | Description | Notes ### Return type -[**InlineResponse2007**](InlineResponse2007.md) +[**ListParametersSediment200Response**](ListParametersSediment200Response.md) ### Authorization @@ -556,7 +738,7 @@ No authorization required [[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) # **list_parameters_wasser** -> InlineResponse2006 list_parameters_wasser() +> ListParametersWasser200Response list_parameters_wasser() Liste aller Parameter im Wasser Kompartiment @@ -569,8 +751,8 @@ Gibt eine filterbare Liste aller Parameter in der Datenbank aus dem Kompartiment import time from deutschland import mudab from deutschland.mudab.api import default_api +from deutschland.mudab.model.list_parameters_wasser200_response import ListParametersWasser200Response from deutschland.mudab.model.filter_request import FilterRequest -from deutschland.mudab.model.inline_response2006 import InlineResponse2006 from pprint import pprint # Defining the host is optional and defaults to https://geoportal.bafg.de/MUDABAnwendung/rest/BaseController/FilterElements # See configuration.py for a list of all supported configuration parameters. @@ -625,7 +807,7 @@ Name | Type | Description | Notes ### Return type -[**InlineResponse2006**](InlineResponse2006.md) +[**ListParametersWasser200Response**](ListParametersWasser200Response.md) ### Authorization @@ -646,7 +828,7 @@ No authorization required [[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) # **list_plc_stations** -> InlineResponse2008 list_plc_stations() +> ListPlcStations200Response list_plc_stations() Liste aller HELCOM PLC Stationen @@ -659,7 +841,7 @@ Gibt eine filterbare Liste aller HELCOM PLC Stationen in der Datenbank zurück. import time from deutschland import mudab from deutschland.mudab.api import default_api -from deutschland.mudab.model.inline_response2008 import InlineResponse2008 +from deutschland.mudab.model.list_plc_stations200_response import ListPlcStations200Response from deutschland.mudab.model.filter_request import FilterRequest from pprint import pprint # Defining the host is optional and defaults to https://geoportal.bafg.de/MUDABAnwendung/rest/BaseController/FilterElements @@ -715,7 +897,7 @@ Name | Type | Description | Notes ### Return type -[**InlineResponse2008**](InlineResponse2008.md) +[**ListPlcStations200Response**](ListPlcStations200Response.md) ### Authorization @@ -736,7 +918,7 @@ No authorization required [[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) # **list_projekt_stationen** -> InlineResponse200 list_projekt_stationen() +> ListProjektStationen200Response list_projekt_stationen() Liste aller Projekt Stationen @@ -749,8 +931,8 @@ Gibt eine filterbare Liste aller Projektstation in der Datenbank zurück. Filter import time from deutschland import mudab from deutschland.mudab.api import default_api +from deutschland.mudab.model.list_projekt_stationen200_response import ListProjektStationen200Response from deutschland.mudab.model.filter_request import FilterRequest -from deutschland.mudab.model.inline_response200 import InlineResponse200 from pprint import pprint # Defining the host is optional and defaults to https://geoportal.bafg.de/MUDABAnwendung/rest/BaseController/FilterElements # See configuration.py for a list of all supported configuration parameters. @@ -805,7 +987,7 @@ Name | Type | Description | Notes ### Return type -[**InlineResponse200**](InlineResponse200.md) +[**ListProjektStationen200Response**](ListProjektStationen200Response.md) ### Authorization diff --git a/python-client/docs/HelcomPLCStation.md b/python-client/docs/HelcomPLCStation.md index 13b603c..d4f9496 100644 --- a/python-client/docs/HelcomPLCStation.md +++ b/python-client/docs/HelcomPLCStation.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **station_name** | **str** | Name der Station | [optional] **station_code** | **str** | Stationscode | [optional] -**land_cd** | **str** | | [optional] +**land_cd** | **str** | Code für das Bundesland der Station | [optional] **st_lat** | **float** | Latitude | [optional] **st_lon** | **float** | Longitude | [optional] **subcm_code** | **str** | | [optional] diff --git a/python-client/docs/InlineResponse2001.md b/python-client/docs/ListMessStationen200Response.md similarity index 94% rename from python-client/docs/InlineResponse2001.md rename to python-client/docs/ListMessStationen200Response.md index c806dcd..b326f3c 100644 --- a/python-client/docs/InlineResponse2001.md +++ b/python-client/docs/ListMessStationen200Response.md @@ -1,4 +1,4 @@ -# InlineResponse2001 +# ListMessStationen200Response ## Properties diff --git a/python-client/docs/ListMesswertePlc200Response.md b/python-client/docs/ListMesswertePlc200Response.md new file mode 100644 index 0000000..01a8d9e --- /dev/null +++ b/python-client/docs/ListMesswertePlc200Response.md @@ -0,0 +1,12 @@ +# ListMesswertePlc200Response + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**v_messwerte_plc** | [**[MesswertPLC]**](MesswertPLC.md) | | [optional] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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) + + diff --git a/python-client/docs/InlineResponse2002.md b/python-client/docs/ListParameter200Response.md similarity index 95% rename from python-client/docs/InlineResponse2002.md rename to python-client/docs/ListParameter200Response.md index 6a4ceac..098ba2f 100644 --- a/python-client/docs/InlineResponse2002.md +++ b/python-client/docs/ListParameter200Response.md @@ -1,4 +1,4 @@ -# InlineResponse2002 +# ListParameter200Response ## Properties diff --git a/python-client/docs/InlineResponse2003.md b/python-client/docs/ListParameterValues200Response.md similarity index 94% rename from python-client/docs/InlineResponse2003.md rename to python-client/docs/ListParameterValues200Response.md index 2cbfadf..f4196a4 100644 --- a/python-client/docs/InlineResponse2003.md +++ b/python-client/docs/ListParameterValues200Response.md @@ -1,4 +1,4 @@ -# InlineResponse2003 +# ListParameterValues200Response ## Properties diff --git a/python-client/docs/InlineResponse2004.md b/python-client/docs/ListParametersBiologie200Response.md similarity index 93% rename from python-client/docs/InlineResponse2004.md rename to python-client/docs/ListParametersBiologie200Response.md index 2783e21..805df06 100644 --- a/python-client/docs/InlineResponse2004.md +++ b/python-client/docs/ListParametersBiologie200Response.md @@ -1,4 +1,4 @@ -# InlineResponse2004 +# ListParametersBiologie200Response ## Properties diff --git a/python-client/docs/InlineResponse2005.md b/python-client/docs/ListParametersBiota200Response.md similarity index 94% rename from python-client/docs/InlineResponse2005.md rename to python-client/docs/ListParametersBiota200Response.md index 99cc820..57aebf8 100644 --- a/python-client/docs/InlineResponse2005.md +++ b/python-client/docs/ListParametersBiota200Response.md @@ -1,4 +1,4 @@ -# InlineResponse2005 +# ListParametersBiota200Response ## Properties diff --git a/python-client/docs/ListParametersPlc200Response.md b/python-client/docs/ListParametersPlc200Response.md new file mode 100644 index 0000000..9db7eec --- /dev/null +++ b/python-client/docs/ListParametersPlc200Response.md @@ -0,0 +1,12 @@ +# ListParametersPlc200Response + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**v_gemessene_para_plc** | [**[ParameterPLC]**](ParameterPLC.md) | | [optional] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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) + + diff --git a/python-client/docs/InlineResponse2007.md b/python-client/docs/ListParametersSediment200Response.md similarity index 93% rename from python-client/docs/InlineResponse2007.md rename to python-client/docs/ListParametersSediment200Response.md index 8c32116..0457b02 100644 --- a/python-client/docs/InlineResponse2007.md +++ b/python-client/docs/ListParametersSediment200Response.md @@ -1,4 +1,4 @@ -# InlineResponse2007 +# ListParametersSediment200Response ## Properties diff --git a/python-client/docs/InlineResponse2006.md b/python-client/docs/ListParametersWasser200Response.md similarity index 93% rename from python-client/docs/InlineResponse2006.md rename to python-client/docs/ListParametersWasser200Response.md index 2c63386..041d897 100644 --- a/python-client/docs/InlineResponse2006.md +++ b/python-client/docs/ListParametersWasser200Response.md @@ -1,4 +1,4 @@ -# InlineResponse2006 +# ListParametersWasser200Response ## Properties diff --git a/python-client/docs/InlineResponse2008.md b/python-client/docs/ListPlcStations200Response.md similarity index 94% rename from python-client/docs/InlineResponse2008.md rename to python-client/docs/ListPlcStations200Response.md index 4bbba96..5d1c98a 100644 --- a/python-client/docs/InlineResponse2008.md +++ b/python-client/docs/ListPlcStations200Response.md @@ -1,4 +1,4 @@ -# InlineResponse2008 +# ListPlcStations200Response ## Properties diff --git a/python-client/docs/InlineResponse200.md b/python-client/docs/ListProjektStationen200Response.md similarity index 94% rename from python-client/docs/InlineResponse200.md rename to python-client/docs/ListProjektStationen200Response.md index ae6006b..484f013 100644 --- a/python-client/docs/InlineResponse200.md +++ b/python-client/docs/ListProjektStationen200Response.md @@ -1,4 +1,4 @@ -# InlineResponse200 +# ListProjektStationen200Response ## Properties diff --git a/python-client/docs/MesswertPLC.md b/python-client/docs/MesswertPLC.md new file mode 100644 index 0000000..7b6ffb1 --- /dev/null +++ b/python-client/docs/MesswertPLC.md @@ -0,0 +1,30 @@ +# MesswertPLC + +Ein Messwert einer PLC Station + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**metadataid** | **int** | metadataid für diese Schema ist 67 | [optional] +**nummer** | **int** | Laufende Nummer des Datums | [optional] +**name** | **int** | Bezeichnung des Messwertes | [optional] +**station_code** | **str** | Stationscode | [optional] +**station_name** | **str** | Name der Station | [optional] +**value** | **float** | Wert | [optional] +**param_type** | **str** | Art der Messwertaggregation, entweder \"TOT\" oder \"AVE\" | [optional] +**param_id** | **str** | Zahlencode für \"NAME\" | [optional] +**period_name** | **str** | Jahr der Messung für PERIOD_TYPE \"A\" | [optional] +**period_type** | **str** | Dauer der Aggregation, \"A\" | [optional] +**land_cd** | **str** | Code für das Bundesland der Station | [optional] +**st_lat** | **float** | Latitude | [optional] +**st_lon** | **float** | Longitude | [optional] +**subcm_code** | **str** | | [optional] +**subcm_name** | **str** | | [optional] +**mon_type** | **str** | | [optional] +**val_unit** | **str** | Einheit des Messwertes | [optional] +**area** | **float** | | [optional] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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) + + diff --git a/python-client/docs/ParameterPLC.md b/python-client/docs/ParameterPLC.md new file mode 100644 index 0000000..93b752b --- /dev/null +++ b/python-client/docs/ParameterPLC.md @@ -0,0 +1,22 @@ +# ParameterPLC + +Messparameter einer PLC Station + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**metadataid** | **int** | metadataid für diese Schema ist 66 | [optional] +**parameter** | **str** | Parameterabkürzung | [optional] +**parametergruppe** | **str** | Gruppe des Parameters | [optional] +**station_code** | **str** | Stationscode | [optional] +**letzte_messung** | **str** | Jahr der letzten Messung | [optional] +**prkey** | **str** | Eindeutiger Identifier des Messwerts, zusammengesetzt aus STATION_CODE und PARAMETER | [optional] +**station_name** | **str** | Name der Station | [optional] +**anz_messwerte** | **int** | Anzahl der Messwerte | [optional] +**subcm_code** | **str** | | [optional] +**subcm_name** | **str** | | [optional] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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) + + diff --git a/python-client/sphinx-docs/conf.py b/python-client/sphinx-docs/conf.py index 8460dbf..aa2ed38 100644 --- a/python-client/sphinx-docs/conf.py +++ b/python-client/sphinx-docs/conf.py @@ -4,39 +4,22 @@ sys.path.insert(0, os.path.abspath("../")) # Configuration file for the Sphinx documentation builder. # -# This file only contains a selection of the most common options. For a full -# list see the documentation: +# For the full list of built-in configuration values, see the documentation: # https://www.sphinx-doc.org/en/master/usage/configuration.html -# -- Path setup -------------------------------------------------------------- - -# If extensions (or modules to document with autodoc) are in another directory, -# add these directories to sys.path here. If the directory is relative to the -# documentation root, use os.path.abspath to make it absolute, like shown here. -# -# import os -# import sys -# sys.path.insert(0, os.path.abspath('.')) - - # -- Project information ----------------------------------------------------- +# https://www.sphinx-doc.org/en/master/usage/configuration.html#project-information project = "mudab-api" -copyright = "2022, BundesAPI" +copyright = "2024, BundesAPI" author = "BundesAPI" -# The short X.Y version version = "0.1.0" - -# The full version, including alpha/beta/rc tags release = "0.1.0" - # -- General configuration --------------------------------------------------- +# https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration -# Add any Sphinx extension module names here, as strings. They can be -# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom -# ones. extensions = [ "m2r2", "sphinx.ext.autodoc", @@ -44,34 +27,15 @@ "sphinx.ext.autosummary", ] -# Add any paths that contain templates here, relative to this directory. templates_path = ["_templates"] - -# The language for content autogenerated by Sphinx. Refer to documentation -# for a list of supported languages. -# -# This is also used if you do content translation via gettext catalogs. -# Usually you set "language" from the command line for these cases. -language = "de" - -# List of patterns, relative to source directory, that match files and -# directories to ignore when looking for source files. -# This pattern also affects html_static_path and html_extra_path. exclude_patterns = ["_build", "Thumbs.db", ".DS_Store"] +language = "de" # -- Options for HTML output ------------------------------------------------- +# https://www.sphinx-doc.org/en/master/usage/configuration.html#options-for-html-output -# The theme to use for HTML and HTML Help pages. See the documentation for -# a list of builtin themes. -# html_theme = "alabaster" - -# Add any paths that contain custom static files (such as style sheets) here, -# relative to this directory. They are copied after the builtin static files, -# so a file named "default.css" will overwrite the builtin "default.css". html_static_path = ["_static"] - -# -- Extension configuration ------------------------------------------------- source_extensions = [".rst", ".md"] diff --git a/python-client/sphinx-docs/make.bat b/python-client/sphinx-docs/make.bat index 153be5e..32bb245 100644 --- a/python-client/sphinx-docs/make.bat +++ b/python-client/sphinx-docs/make.bat @@ -10,8 +10,6 @@ if "%SPHINXBUILD%" == "" ( set SOURCEDIR=. set BUILDDIR=_build -if "%1" == "" goto help - %SPHINXBUILD% >NUL 2>NUL if errorlevel 9009 ( echo. @@ -25,6 +23,8 @@ if errorlevel 9009 ( exit /b 1 ) +if "%1" == "" goto help + %SPHINXBUILD% -M %1 %SOURCEDIR% %BUILDDIR% %SPHINXOPTS% %O% goto end diff --git a/python-client/sphinx-docs/source/mudab.model.rst b/python-client/sphinx-docs/source/mudab.model.rst index ea56e2c..16b0e39 100644 --- a/python-client/sphinx-docs/source/mudab.model.rst +++ b/python-client/sphinx-docs/source/mudab.model.rst @@ -44,74 +44,90 @@ mudab.model.helcom\_plc\_station module :undoc-members: :show-inheritance: -mudab.model.inline\_response200 module --------------------------------------- +mudab.model.list\_mess\_stationen200\_response module +----------------------------------------------------- -.. automodule:: mudab.model.inline_response200 +.. automodule:: mudab.model.list_mess_stationen200_response :members: :undoc-members: :show-inheritance: -mudab.model.inline\_response2001 module ---------------------------------------- +mudab.model.list\_messwerte\_plc200\_response module +---------------------------------------------------- -.. automodule:: mudab.model.inline_response2001 +.. automodule:: mudab.model.list_messwerte_plc200_response :members: :undoc-members: :show-inheritance: -mudab.model.inline\_response2002 module ---------------------------------------- +mudab.model.list\_parameter200\_response module +----------------------------------------------- -.. automodule:: mudab.model.inline_response2002 +.. automodule:: mudab.model.list_parameter200_response :members: :undoc-members: :show-inheritance: -mudab.model.inline\_response2003 module ---------------------------------------- +mudab.model.list\_parameter\_values200\_response module +------------------------------------------------------- -.. automodule:: mudab.model.inline_response2003 +.. automodule:: mudab.model.list_parameter_values200_response :members: :undoc-members: :show-inheritance: -mudab.model.inline\_response2004 module ---------------------------------------- +mudab.model.list\_parameters\_biologie200\_response module +---------------------------------------------------------- -.. automodule:: mudab.model.inline_response2004 +.. automodule:: mudab.model.list_parameters_biologie200_response :members: :undoc-members: :show-inheritance: -mudab.model.inline\_response2005 module ---------------------------------------- +mudab.model.list\_parameters\_biota200\_response module +------------------------------------------------------- -.. automodule:: mudab.model.inline_response2005 +.. automodule:: mudab.model.list_parameters_biota200_response :members: :undoc-members: :show-inheritance: -mudab.model.inline\_response2006 module ---------------------------------------- +mudab.model.list\_parameters\_plc200\_response module +----------------------------------------------------- -.. automodule:: mudab.model.inline_response2006 +.. automodule:: mudab.model.list_parameters_plc200_response :members: :undoc-members: :show-inheritance: -mudab.model.inline\_response2007 module ---------------------------------------- +mudab.model.list\_parameters\_sediment200\_response module +---------------------------------------------------------- -.. automodule:: mudab.model.inline_response2007 +.. automodule:: mudab.model.list_parameters_sediment200_response :members: :undoc-members: :show-inheritance: -mudab.model.inline\_response2008 module ---------------------------------------- +mudab.model.list\_parameters\_wasser200\_response module +-------------------------------------------------------- -.. automodule:: mudab.model.inline_response2008 +.. automodule:: mudab.model.list_parameters_wasser200_response + :members: + :undoc-members: + :show-inheritance: + +mudab.model.list\_plc\_stations200\_response module +--------------------------------------------------- + +.. automodule:: mudab.model.list_plc_stations200_response + :members: + :undoc-members: + :show-inheritance: + +mudab.model.list\_projekt\_stationen200\_response module +-------------------------------------------------------- + +.. automodule:: mudab.model.list_projekt_stationen200_response :members: :undoc-members: :show-inheritance: @@ -124,6 +140,14 @@ mudab.model.messstation module :undoc-members: :show-inheritance: +mudab.model.messwert\_plc module +-------------------------------- + +.. automodule:: mudab.model.messwert_plc + :members: + :undoc-members: + :show-inheritance: + mudab.model.orderby module -------------------------- @@ -140,6 +164,14 @@ mudab.model.parameter module :undoc-members: :show-inheritance: +mudab.model.parameter\_plc module +--------------------------------- + +.. automodule:: mudab.model.parameter_plc + :members: + :undoc-members: + :show-inheritance: + mudab.model.parameter\_value module ----------------------------------- diff --git a/python-client/test/test_compartment.py b/python-client/test/test_compartment.py index 52878ae..aae72ed 100644 --- a/python-client/test/test_compartment.py +++ b/python-client/test/test_compartment.py @@ -8,7 +8,6 @@ Generated by: https://openapi-generator.tech """ - import sys import unittest diff --git a/python-client/test/test_default_api.py b/python-client/test/test_default_api.py index 642f659..05173b9 100644 --- a/python-client/test/test_default_api.py +++ b/python-client/test/test_default_api.py @@ -8,7 +8,6 @@ Generated by: https://openapi-generator.tech """ - import unittest from deutschland.mudab.api.default_api import DefaultApi # noqa: E501 @@ -32,6 +31,13 @@ def test_list_mess_stationen(self): """ pass + def test_list_messwerte_plc(self): + """Test case for list_messwerte_plc + + Liste aller Messwerte der gefilterten PLC Stationen # noqa: E501 + """ + pass + def test_list_parameter(self): """Test case for list_parameter @@ -60,6 +66,13 @@ def test_list_parameters_biota(self): """ pass + def test_list_parameters_plc(self): + """Test case for list_parameters_plc + + Liste aller Parameter der PLC Stationen # noqa: E501 + """ + pass + def test_list_parameters_sediment(self): """Test case for list_parameters_sediment diff --git a/python-client/test/test_filter.py b/python-client/test/test_filter.py index 5ae0f1e..5a525d7 100644 --- a/python-client/test/test_filter.py +++ b/python-client/test/test_filter.py @@ -8,7 +8,6 @@ Generated by: https://openapi-generator.tech """ - import sys import unittest diff --git a/python-client/test/test_filter_action.py b/python-client/test/test_filter_action.py index 6a92455..a683b5b 100644 --- a/python-client/test/test_filter_action.py +++ b/python-client/test/test_filter_action.py @@ -8,7 +8,6 @@ Generated by: https://openapi-generator.tech """ - import sys import unittest diff --git a/python-client/test/test_filter_request.py b/python-client/test/test_filter_request.py index 6d1bfdb..462f231 100644 --- a/python-client/test/test_filter_request.py +++ b/python-client/test/test_filter_request.py @@ -8,7 +8,6 @@ Generated by: https://openapi-generator.tech """ - import sys import unittest diff --git a/python-client/test/test_helcom_plc_station.py b/python-client/test/test_helcom_plc_station.py index 28794a5..e19ff96 100644 --- a/python-client/test/test_helcom_plc_station.py +++ b/python-client/test/test_helcom_plc_station.py @@ -8,7 +8,6 @@ Generated by: https://openapi-generator.tech """ - import sys import unittest diff --git a/python-client/test/test_inline_response2007.py b/python-client/test/test_inline_response2007.py deleted file mode 100644 index 764ad0f..0000000 --- a/python-client/test/test_inline_response2007.py +++ /dev/null @@ -1,40 +0,0 @@ -""" - Umweltbundesamt: Meeresumweltdatenbank (MUDAB) - - Meeres-Monitoringdaten von Küstenbundesländern und Forschungseinrichtungen # noqa: E501 - - The version of the OpenAPI document: 1.0.0 - Contact: kontakt@bund.dev - Generated by: https://openapi-generator.tech -""" - - -import sys -import unittest - -from deutschland.mudab.model.parameter import Parameter - -from deutschland import mudab - -globals()["Parameter"] = Parameter -from deutschland.mudab.model.inline_response2007 import InlineResponse2007 - - -class TestInlineResponse2007(unittest.TestCase): - """InlineResponse2007 unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testInlineResponse2007(self): - """Test InlineResponse2007""" - # FIXME: construct object with mandatory attributes with example values - # model = InlineResponse2007() # noqa: E501 - pass - - -if __name__ == "__main__": - unittest.main() diff --git a/python-client/test/test_inline_response2001.py b/python-client/test/test_list_mess_stationen200_response.py similarity index 63% rename from python-client/test/test_inline_response2001.py rename to python-client/test/test_list_mess_stationen200_response.py index 47b7ca2..ea61269 100644 --- a/python-client/test/test_inline_response2001.py +++ b/python-client/test/test_list_mess_stationen200_response.py @@ -8,7 +8,6 @@ Generated by: https://openapi-generator.tech """ - import sys import unittest @@ -17,11 +16,13 @@ from deutschland import mudab globals()["Messstation"] = Messstation -from deutschland.mudab.model.inline_response2001 import InlineResponse2001 +from deutschland.mudab.model.list_mess_stationen200_response import ( + ListMessStationen200Response, +) -class TestInlineResponse2001(unittest.TestCase): - """InlineResponse2001 unit test stubs""" +class TestListMessStationen200Response(unittest.TestCase): + """ListMessStationen200Response unit test stubs""" def setUp(self): pass @@ -29,10 +30,10 @@ def setUp(self): def tearDown(self): pass - def testInlineResponse2001(self): - """Test InlineResponse2001""" + def testListMessStationen200Response(self): + """Test ListMessStationen200Response""" # FIXME: construct object with mandatory attributes with example values - # model = InlineResponse2001() # noqa: E501 + # model = ListMessStationen200Response() # noqa: E501 pass diff --git a/python-client/test/test_list_messwerte_plc200_response.py b/python-client/test/test_list_messwerte_plc200_response.py new file mode 100644 index 0000000..418045d --- /dev/null +++ b/python-client/test/test_list_messwerte_plc200_response.py @@ -0,0 +1,41 @@ +""" + Umweltbundesamt: Meeresumweltdatenbank (MUDAB) + + Meeres-Monitoringdaten von Küstenbundesländern und Forschungseinrichtungen # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Contact: kontakt@bund.dev + Generated by: https://openapi-generator.tech +""" + +import sys +import unittest + +from deutschland.mudab.model.messwert_plc import MesswertPLC + +from deutschland import mudab + +globals()["MesswertPLC"] = MesswertPLC +from deutschland.mudab.model.list_messwerte_plc200_response import ( + ListMesswertePlc200Response, +) + + +class TestListMesswertePlc200Response(unittest.TestCase): + """ListMesswertePlc200Response unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testListMesswertePlc200Response(self): + """Test ListMesswertePlc200Response""" + # FIXME: construct object with mandatory attributes with example values + # model = ListMesswertePlc200Response() # noqa: E501 + pass + + +if __name__ == "__main__": + unittest.main() diff --git a/python-client/test/test_inline_response2004.py b/python-client/test/test_list_parameter200_response.py similarity index 65% rename from python-client/test/test_inline_response2004.py rename to python-client/test/test_list_parameter200_response.py index a5941c1..ea32622 100644 --- a/python-client/test/test_inline_response2004.py +++ b/python-client/test/test_list_parameter200_response.py @@ -8,7 +8,6 @@ Generated by: https://openapi-generator.tech """ - import sys import unittest @@ -17,11 +16,11 @@ from deutschland import mudab globals()["Parameter"] = Parameter -from deutschland.mudab.model.inline_response2004 import InlineResponse2004 +from deutschland.mudab.model.list_parameter200_response import ListParameter200Response -class TestInlineResponse2004(unittest.TestCase): - """InlineResponse2004 unit test stubs""" +class TestListParameter200Response(unittest.TestCase): + """ListParameter200Response unit test stubs""" def setUp(self): pass @@ -29,10 +28,10 @@ def setUp(self): def tearDown(self): pass - def testInlineResponse2004(self): - """Test InlineResponse2004""" + def testListParameter200Response(self): + """Test ListParameter200Response""" # FIXME: construct object with mandatory attributes with example values - # model = InlineResponse2004() # noqa: E501 + # model = ListParameter200Response() # noqa: E501 pass diff --git a/python-client/test/test_inline_response2003.py b/python-client/test/test_list_parameter_values200_response.py similarity index 63% rename from python-client/test/test_inline_response2003.py rename to python-client/test/test_list_parameter_values200_response.py index fc7d99e..849b2b8 100644 --- a/python-client/test/test_inline_response2003.py +++ b/python-client/test/test_list_parameter_values200_response.py @@ -8,7 +8,6 @@ Generated by: https://openapi-generator.tech """ - import sys import unittest @@ -17,11 +16,13 @@ from deutschland import mudab globals()["ParameterValue"] = ParameterValue -from deutschland.mudab.model.inline_response2003 import InlineResponse2003 +from deutschland.mudab.model.list_parameter_values200_response import ( + ListParameterValues200Response, +) -class TestInlineResponse2003(unittest.TestCase): - """InlineResponse2003 unit test stubs""" +class TestListParameterValues200Response(unittest.TestCase): + """ListParameterValues200Response unit test stubs""" def setUp(self): pass @@ -29,10 +30,10 @@ def setUp(self): def tearDown(self): pass - def testInlineResponse2003(self): - """Test InlineResponse2003""" + def testListParameterValues200Response(self): + """Test ListParameterValues200Response""" # FIXME: construct object with mandatory attributes with example values - # model = InlineResponse2003() # noqa: E501 + # model = ListParameterValues200Response() # noqa: E501 pass diff --git a/python-client/test/test_inline_response2006.py b/python-client/test/test_list_parameters_biologie200_response.py similarity index 61% rename from python-client/test/test_inline_response2006.py rename to python-client/test/test_list_parameters_biologie200_response.py index f523618..5cee1c8 100644 --- a/python-client/test/test_inline_response2006.py +++ b/python-client/test/test_list_parameters_biologie200_response.py @@ -8,7 +8,6 @@ Generated by: https://openapi-generator.tech """ - import sys import unittest @@ -17,11 +16,13 @@ from deutschland import mudab globals()["Parameter"] = Parameter -from deutschland.mudab.model.inline_response2006 import InlineResponse2006 +from deutschland.mudab.model.list_parameters_biologie200_response import ( + ListParametersBiologie200Response, +) -class TestInlineResponse2006(unittest.TestCase): - """InlineResponse2006 unit test stubs""" +class TestListParametersBiologie200Response(unittest.TestCase): + """ListParametersBiologie200Response unit test stubs""" def setUp(self): pass @@ -29,10 +30,10 @@ def setUp(self): def tearDown(self): pass - def testInlineResponse2006(self): - """Test InlineResponse2006""" + def testListParametersBiologie200Response(self): + """Test ListParametersBiologie200Response""" # FIXME: construct object with mandatory attributes with example values - # model = InlineResponse2006() # noqa: E501 + # model = ListParametersBiologie200Response() # noqa: E501 pass diff --git a/python-client/test/test_inline_response2005.py b/python-client/test/test_list_parameters_biota200_response.py similarity index 62% rename from python-client/test/test_inline_response2005.py rename to python-client/test/test_list_parameters_biota200_response.py index 9265a46..6923681 100644 --- a/python-client/test/test_inline_response2005.py +++ b/python-client/test/test_list_parameters_biota200_response.py @@ -8,7 +8,6 @@ Generated by: https://openapi-generator.tech """ - import sys import unittest @@ -17,11 +16,13 @@ from deutschland import mudab globals()["Parameter"] = Parameter -from deutschland.mudab.model.inline_response2005 import InlineResponse2005 +from deutschland.mudab.model.list_parameters_biota200_response import ( + ListParametersBiota200Response, +) -class TestInlineResponse2005(unittest.TestCase): - """InlineResponse2005 unit test stubs""" +class TestListParametersBiota200Response(unittest.TestCase): + """ListParametersBiota200Response unit test stubs""" def setUp(self): pass @@ -29,10 +30,10 @@ def setUp(self): def tearDown(self): pass - def testInlineResponse2005(self): - """Test InlineResponse2005""" + def testListParametersBiota200Response(self): + """Test ListParametersBiota200Response""" # FIXME: construct object with mandatory attributes with example values - # model = InlineResponse2005() # noqa: E501 + # model = ListParametersBiota200Response() # noqa: E501 pass diff --git a/python-client/test/test_list_parameters_plc200_response.py b/python-client/test/test_list_parameters_plc200_response.py new file mode 100644 index 0000000..66990a7 --- /dev/null +++ b/python-client/test/test_list_parameters_plc200_response.py @@ -0,0 +1,41 @@ +""" + Umweltbundesamt: Meeresumweltdatenbank (MUDAB) + + Meeres-Monitoringdaten von Küstenbundesländern und Forschungseinrichtungen # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Contact: kontakt@bund.dev + Generated by: https://openapi-generator.tech +""" + +import sys +import unittest + +from deutschland.mudab.model.parameter_plc import ParameterPLC + +from deutschland import mudab + +globals()["ParameterPLC"] = ParameterPLC +from deutschland.mudab.model.list_parameters_plc200_response import ( + ListParametersPlc200Response, +) + + +class TestListParametersPlc200Response(unittest.TestCase): + """ListParametersPlc200Response unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testListParametersPlc200Response(self): + """Test ListParametersPlc200Response""" + # FIXME: construct object with mandatory attributes with example values + # model = ListParametersPlc200Response() # noqa: E501 + pass + + +if __name__ == "__main__": + unittest.main() diff --git a/python-client/test/test_list_parameters_sediment200_response.py b/python-client/test/test_list_parameters_sediment200_response.py new file mode 100644 index 0000000..1619e54 --- /dev/null +++ b/python-client/test/test_list_parameters_sediment200_response.py @@ -0,0 +1,41 @@ +""" + Umweltbundesamt: Meeresumweltdatenbank (MUDAB) + + Meeres-Monitoringdaten von Küstenbundesländern und Forschungseinrichtungen # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Contact: kontakt@bund.dev + Generated by: https://openapi-generator.tech +""" + +import sys +import unittest + +from deutschland.mudab.model.parameter import Parameter + +from deutschland import mudab + +globals()["Parameter"] = Parameter +from deutschland.mudab.model.list_parameters_sediment200_response import ( + ListParametersSediment200Response, +) + + +class TestListParametersSediment200Response(unittest.TestCase): + """ListParametersSediment200Response unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testListParametersSediment200Response(self): + """Test ListParametersSediment200Response""" + # FIXME: construct object with mandatory attributes with example values + # model = ListParametersSediment200Response() # noqa: E501 + pass + + +if __name__ == "__main__": + unittest.main() diff --git a/python-client/test/test_inline_response2002.py b/python-client/test/test_list_parameters_wasser200_response.py similarity index 62% rename from python-client/test/test_inline_response2002.py rename to python-client/test/test_list_parameters_wasser200_response.py index f8fbb53..510aed0 100644 --- a/python-client/test/test_inline_response2002.py +++ b/python-client/test/test_list_parameters_wasser200_response.py @@ -8,7 +8,6 @@ Generated by: https://openapi-generator.tech """ - import sys import unittest @@ -17,11 +16,13 @@ from deutschland import mudab globals()["Parameter"] = Parameter -from deutschland.mudab.model.inline_response2002 import InlineResponse2002 +from deutschland.mudab.model.list_parameters_wasser200_response import ( + ListParametersWasser200Response, +) -class TestInlineResponse2002(unittest.TestCase): - """InlineResponse2002 unit test stubs""" +class TestListParametersWasser200Response(unittest.TestCase): + """ListParametersWasser200Response unit test stubs""" def setUp(self): pass @@ -29,10 +30,10 @@ def setUp(self): def tearDown(self): pass - def testInlineResponse2002(self): - """Test InlineResponse2002""" + def testListParametersWasser200Response(self): + """Test ListParametersWasser200Response""" # FIXME: construct object with mandatory attributes with example values - # model = InlineResponse2002() # noqa: E501 + # model = ListParametersWasser200Response() # noqa: E501 pass diff --git a/python-client/test/test_inline_response2008.py b/python-client/test/test_list_plc_stations200_response.py similarity index 65% rename from python-client/test/test_inline_response2008.py rename to python-client/test/test_list_plc_stations200_response.py index 093ab7d..618138e 100644 --- a/python-client/test/test_inline_response2008.py +++ b/python-client/test/test_list_plc_stations200_response.py @@ -8,7 +8,6 @@ Generated by: https://openapi-generator.tech """ - import sys import unittest @@ -17,11 +16,13 @@ from deutschland import mudab globals()["HelcomPLCStation"] = HelcomPLCStation -from deutschland.mudab.model.inline_response2008 import InlineResponse2008 +from deutschland.mudab.model.list_plc_stations200_response import ( + ListPlcStations200Response, +) -class TestInlineResponse2008(unittest.TestCase): - """InlineResponse2008 unit test stubs""" +class TestListPlcStations200Response(unittest.TestCase): + """ListPlcStations200Response unit test stubs""" def setUp(self): pass @@ -29,10 +30,10 @@ def setUp(self): def tearDown(self): pass - def testInlineResponse2008(self): - """Test InlineResponse2008""" + def testListPlcStations200Response(self): + """Test ListPlcStations200Response""" # FIXME: construct object with mandatory attributes with example values - # model = InlineResponse2008() # noqa: E501 + # model = ListPlcStations200Response() # noqa: E501 pass diff --git a/python-client/test/test_inline_response200.py b/python-client/test/test_list_projekt_stationen200_response.py similarity index 62% rename from python-client/test/test_inline_response200.py rename to python-client/test/test_list_projekt_stationen200_response.py index 8d14184..034fbb8 100644 --- a/python-client/test/test_inline_response200.py +++ b/python-client/test/test_list_projekt_stationen200_response.py @@ -8,7 +8,6 @@ Generated by: https://openapi-generator.tech """ - import sys import unittest @@ -17,11 +16,13 @@ from deutschland import mudab globals()["ProjectStation"] = ProjectStation -from deutschland.mudab.model.inline_response200 import InlineResponse200 +from deutschland.mudab.model.list_projekt_stationen200_response import ( + ListProjektStationen200Response, +) -class TestInlineResponse200(unittest.TestCase): - """InlineResponse200 unit test stubs""" +class TestListProjektStationen200Response(unittest.TestCase): + """ListProjektStationen200Response unit test stubs""" def setUp(self): pass @@ -29,10 +30,10 @@ def setUp(self): def tearDown(self): pass - def testInlineResponse200(self): - """Test InlineResponse200""" + def testListProjektStationen200Response(self): + """Test ListProjektStationen200Response""" # FIXME: construct object with mandatory attributes with example values - # model = InlineResponse200() # noqa: E501 + # model = ListProjektStationen200Response() # noqa: E501 pass diff --git a/python-client/test/test_messstation.py b/python-client/test/test_messstation.py index f4b06d3..b8649d2 100644 --- a/python-client/test/test_messstation.py +++ b/python-client/test/test_messstation.py @@ -8,7 +8,6 @@ Generated by: https://openapi-generator.tech """ - import sys import unittest diff --git a/python-client/test/test_messwert_plc.py b/python-client/test/test_messwert_plc.py new file mode 100644 index 0000000..fd72699 --- /dev/null +++ b/python-client/test/test_messwert_plc.py @@ -0,0 +1,36 @@ +""" + Umweltbundesamt: Meeresumweltdatenbank (MUDAB) + + Meeres-Monitoringdaten von Küstenbundesländern und Forschungseinrichtungen # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Contact: kontakt@bund.dev + Generated by: https://openapi-generator.tech +""" + +import sys +import unittest + +from deutschland.mudab.model.messwert_plc import MesswertPLC + +from deutschland import mudab + + +class TestMesswertPLC(unittest.TestCase): + """MesswertPLC unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testMesswertPLC(self): + """Test MesswertPLC""" + # FIXME: construct object with mandatory attributes with example values + # model = MesswertPLC() # noqa: E501 + pass + + +if __name__ == "__main__": + unittest.main() diff --git a/python-client/test/test_orderby.py b/python-client/test/test_orderby.py index 85d1c8f..ce66162 100644 --- a/python-client/test/test_orderby.py +++ b/python-client/test/test_orderby.py @@ -8,7 +8,6 @@ Generated by: https://openapi-generator.tech """ - import sys import unittest diff --git a/python-client/test/test_parameter.py b/python-client/test/test_parameter.py index dcce9ca..bcf34c7 100644 --- a/python-client/test/test_parameter.py +++ b/python-client/test/test_parameter.py @@ -8,7 +8,6 @@ Generated by: https://openapi-generator.tech """ - import sys import unittest diff --git a/python-client/test/test_parameter_plc.py b/python-client/test/test_parameter_plc.py new file mode 100644 index 0000000..7ea3f0a --- /dev/null +++ b/python-client/test/test_parameter_plc.py @@ -0,0 +1,36 @@ +""" + Umweltbundesamt: Meeresumweltdatenbank (MUDAB) + + Meeres-Monitoringdaten von Küstenbundesländern und Forschungseinrichtungen # noqa: E501 + + The version of the OpenAPI document: 1.0.0 + Contact: kontakt@bund.dev + Generated by: https://openapi-generator.tech +""" + +import sys +import unittest + +from deutschland.mudab.model.parameter_plc import ParameterPLC + +from deutschland import mudab + + +class TestParameterPLC(unittest.TestCase): + """ParameterPLC unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testParameterPLC(self): + """Test ParameterPLC""" + # FIXME: construct object with mandatory attributes with example values + # model = ParameterPLC() # noqa: E501 + pass + + +if __name__ == "__main__": + unittest.main() diff --git a/python-client/test/test_parameter_value.py b/python-client/test/test_parameter_value.py index 83db976..2ca0a67 100644 --- a/python-client/test/test_parameter_value.py +++ b/python-client/test/test_parameter_value.py @@ -8,7 +8,6 @@ Generated by: https://openapi-generator.tech """ - import sys import unittest diff --git a/python-client/test/test_project_station.py b/python-client/test/test_project_station.py index b7a8888..2f3a353 100644 --- a/python-client/test/test_project_station.py +++ b/python-client/test/test_project_station.py @@ -8,7 +8,6 @@ Generated by: https://openapi-generator.tech """ - import sys import unittest diff --git a/python-client/test/test_range.py b/python-client/test/test_range.py index 3e42698..1b5c2cd 100644 --- a/python-client/test/test_range.py +++ b/python-client/test/test_range.py @@ -8,7 +8,6 @@ Generated by: https://openapi-generator.tech """ - import sys import unittest