├── CNAME ├── python-client ├── test │ ├── __init__.py │ ├── test_fileadmin_json_states_json_get200_response_inner.py │ ├── test_fileadmin_json_icd_codes_json_get200_response_inner.py │ ├── test_fileadmin_json_ops_codes_json_get200_response_inner.py │ ├── test_fileadmin_json_locations_json_get200_response_inner.py │ ├── test_fileadmin_json_german_places_json_get200_response_inner.py │ ├── test_fileadmin_json_german_states_json_get200_response_inner.py │ ├── test_searchresults_get200_response_meta_infos_search_arguments.py │ ├── test_searchresults_get200_response_results_inner_content_items_inner.py │ ├── test_searchresults_get200_response_filters_fields_inner_options_inner.py │ ├── test_searchresults_get200_response_sortings_fields_inner_options_inner.py │ ├── test_searchresults_get200_response_filters_fields_inner_slider_options_inner.py │ ├── test_searchresults_get200_response_filters.py │ ├── test_searchresults_get200_response_sortings.py │ ├── test_searchresults_get200_response_meta_infos.py │ ├── test_searchresults_get200_response_results_inner.py │ ├── test_searchresults_get200_response_results_inner_content.py │ ├── test_searchresults_get200_response_sortings_fields_inner.py │ ├── test_searchresults_get200_response_filters_fields_inner.py │ ├── test_searchresults_get200_response.py │ └── test_default_api.py ├── .openapi-generator │ ├── VERSION │ └── FILES ├── test-requirements.txt ├── requirements.txt ├── sphinx-docs │ ├── source │ │ ├── modules.rst │ │ ├── klinikatlas.apis.rst │ │ ├── klinikatlas.models.rst │ │ ├── klinikatlas.api.rst │ │ ├── klinikatlas.rst │ │ └── klinikatlas.model.rst │ ├── index.rst │ ├── Makefile │ ├── make.bat │ └── conf.py ├── tox.ini ├── deutschland │ └── klinikatlas │ │ ├── api │ │ └── __init__.py │ │ ├── model │ │ ├── __init__.py │ │ ├── fileadmin_json_icd_codes_json_get200_response_inner.py │ │ ├── fileadmin_json_ops_codes_json_get200_response_inner.py │ │ ├── searchresults_get200_response_filters_fields_inner_slider_options_inner.py │ │ ├── fileadmin_json_german_states_json_get200_response_inner.py │ │ ├── searchresults_get200_response_filters.py │ │ ├── searchresults_get200_response_sortings.py │ │ ├── searchresults_get200_response_results_inner_content.py │ │ ├── searchresults_get200_response_sortings_fields_inner_options_inner.py │ │ └── searchresults_get200_response_results_inner_content_items_inner.py │ │ ├── apis │ │ └── __init__.py │ │ ├── __init__.py │ │ ├── models │ │ └── __init__.py │ │ └── exceptions.py ├── docs │ ├── FileadminJsonIcdCodesJsonGet200ResponseInner.md │ ├── FileadminJsonOpsCodesJsonGet200ResponseInner.md │ ├── SearchresultsGet200ResponseFilters.md │ ├── SearchresultsGet200ResponseFiltersFieldsInnerSliderOptionsInner.md │ ├── SearchresultsGet200ResponseSortings.md │ ├── FileadminJsonGermanStatesJsonGet200ResponseInner.md │ ├── SearchresultsGet200ResponseResultsInnerContent.md │ ├── SearchresultsGet200ResponseSortingsFieldsInnerOptionsInner.md │ ├── FileadminJsonStatesJsonGet200ResponseInner.md │ ├── SearchresultsGet200ResponseResultsInnerContentItemsInner.md │ ├── FileadminJsonGermanPlacesJsonGet200ResponseInner.md │ ├── SearchresultsGet200ResponseFiltersFieldsInnerOptionsInner.md │ ├── SearchresultsGet200ResponseMetaInfos.md │ ├── SearchresultsGet200ResponseSortingsFieldsInner.md │ ├── SearchresultsGet200ResponseResultsInner.md │ ├── SearchresultsGet200ResponseMetaInfosSearchArguments.md │ ├── FileadminJsonLocationsJsonGet200ResponseInner.md │ ├── SearchresultsGet200Response.md │ └── SearchresultsGet200ResponseFiltersFieldsInner.md ├── pyproject.toml ├── .openapi-generator-ignore └── README.md ├── README_en.md ├── README.md ├── .github └── workflows │ ├── schemathesis.yaml │ ├── openapi_check.yaml │ └── deutschland_generator.yml ├── generator_config.yaml └── index.html /CNAME: -------------------------------------------------------------------------------- 1 | klinikatlas.bmg.api.bund.dev -------------------------------------------------------------------------------- /python-client/test/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /python-client/.openapi-generator/VERSION: -------------------------------------------------------------------------------- 1 | 6.1.0 -------------------------------------------------------------------------------- /python-client/test-requirements.txt: -------------------------------------------------------------------------------- 1 | pytest-cov>=2.8.1 2 | -------------------------------------------------------------------------------- /python-client/requirements.txt: -------------------------------------------------------------------------------- 1 | python_dateutil >= 2.5.3 2 | setuptools >= 59.0.0 3 | urllib3 >= 1.25.3 4 | -------------------------------------------------------------------------------- /python-client/sphinx-docs/source/modules.rst: -------------------------------------------------------------------------------- 1 | deutschland 2 | =========== 3 | 4 | .. toctree:: 5 | :maxdepth: 4 6 | 7 | klinikatlas 8 | -------------------------------------------------------------------------------- /python-client/sphinx-docs/index.rst: -------------------------------------------------------------------------------- 1 | klinikatlas-api Documentation 2 | ============================= 3 | 4 | .. toctree:: 5 | :glob: 6 | 7 | source/* 8 | -------------------------------------------------------------------------------- /python-client/tox.ini: -------------------------------------------------------------------------------- 1 | [tox] 2 | envlist = py3 3 | 4 | [testenv] 5 | deps=-r{toxinidir}/requirements.txt 6 | -r{toxinidir}/test-requirements.txt 7 | 8 | commands= 9 | pytest --cov=klinikatlas 10 | -------------------------------------------------------------------------------- /python-client/sphinx-docs/source/klinikatlas.apis.rst: -------------------------------------------------------------------------------- 1 | klinikatlas.apis package 2 | ======================== 3 | 4 | Module contents 5 | --------------- 6 | 7 | .. automodule:: klinikatlas.apis 8 | :members: 9 | :undoc-members: 10 | :show-inheritance: 11 | -------------------------------------------------------------------------------- /python-client/sphinx-docs/source/klinikatlas.models.rst: -------------------------------------------------------------------------------- 1 | klinikatlas.models package 2 | ========================== 3 | 4 | Module contents 5 | --------------- 6 | 7 | .. automodule:: klinikatlas.models 8 | :members: 9 | :undoc-members: 10 | :show-inheritance: 11 | -------------------------------------------------------------------------------- /python-client/deutschland/klinikatlas/api/__init__.py: -------------------------------------------------------------------------------- 1 | # do not import all apis into this module because that uses a lot of memory and stack frames 2 | # if you need the ability to import all apis from one package, import them with 3 | # from deutschland.klinikatlas.apis import DefaultApi 4 | -------------------------------------------------------------------------------- /python-client/deutschland/klinikatlas/model/__init__.py: -------------------------------------------------------------------------------- 1 | # we can not import model classes here because that would create a circular 2 | # reference which would not work in python2 3 | # do not import all models into this module because that uses a lot of memory and stack frames 4 | # if you need the ability to import all models from one package, import them with 5 | # from deutschland.klinikatlas.models import ModelA, ModelB 6 | -------------------------------------------------------------------------------- /README_en.md: -------------------------------------------------------------------------------- 1 | [[DE]](README.md)/[[EN]](README_en.md) 2 | 3 | # Bundes-Klinik-Atlas API 4 | 5 | The Bundes-Klinik-Atlas API powers the website https://bundes-klinik-atlas.de/ and provides comprehensive and comparable information about German clinics. The data supports patients in choosing the right hospital and offers detailed information about the quality of care, the medical and nursing staff, and other important data points. 6 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | [[DE]](README.md)/[[EN]](README_en.md) 2 | 3 | # Bundes-Klinik-Atlas API 4 | 5 | Die Bundes-Klinik-Atlas API steht hinter der Seite https://bundes-klinik-atlas.de/ und stellt umfassende und vergleichbare Informationen über deutsche Kliniken bereit. Die Daten unterstützen Patient:innen bei der Auswahl des richtigen Krankenhauses und bieten umfassende Informationen über die Versorgungsqualität, die ärztliche und pflegerische Personalausstattung sowie andere wichtige Datenpunkte. 6 | -------------------------------------------------------------------------------- /python-client/sphinx-docs/source/klinikatlas.api.rst: -------------------------------------------------------------------------------- 1 | klinikatlas.api package 2 | ======================= 3 | 4 | Submodules 5 | ---------- 6 | 7 | klinikatlas.api.default\_api module 8 | ----------------------------------- 9 | 10 | .. automodule:: klinikatlas.api.default_api 11 | :members: 12 | :undoc-members: 13 | :show-inheritance: 14 | 15 | Module contents 16 | --------------- 17 | 18 | .. automodule:: klinikatlas.api 19 | :members: 20 | :undoc-members: 21 | :show-inheritance: 22 | -------------------------------------------------------------------------------- /python-client/deutschland/klinikatlas/apis/__init__.py: -------------------------------------------------------------------------------- 1 | # flake8: noqa 2 | 3 | # Import all APIs into this package. 4 | # If you have many APIs here with many many models used in each API this may 5 | # raise a `RecursionError`. 6 | # In order to avoid this, import only the API that you directly need like: 7 | # 8 | # from deutschland.klinikatlas.api.default_api import DefaultApi 9 | # 10 | # or import this package, but before doing it, use: 11 | # 12 | # import sys 13 | # sys.setrecursionlimit(n) 14 | 15 | # Import APIs into API package: 16 | from deutschland.klinikatlas.api.default_api import DefaultApi 17 | -------------------------------------------------------------------------------- /python-client/docs/FileadminJsonIcdCodesJsonGet200ResponseInner.md: -------------------------------------------------------------------------------- 1 | # FileadminJsonIcdCodesJsonGet200ResponseInner 2 | 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **icdcode** | **str** | | [optional] 8 | **description** | **str** | | [optional] 9 | **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] 10 | 11 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 12 | 13 | 14 | -------------------------------------------------------------------------------- /python-client/docs/FileadminJsonOpsCodesJsonGet200ResponseInner.md: -------------------------------------------------------------------------------- 1 | # FileadminJsonOpsCodesJsonGet200ResponseInner 2 | 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **opscode** | **str** | | [optional] 8 | **description** | **str** | | [optional] 9 | **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] 10 | 11 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 12 | 13 | 14 | -------------------------------------------------------------------------------- /python-client/docs/SearchresultsGet200ResponseFilters.md: -------------------------------------------------------------------------------- 1 | # SearchresultsGet200ResponseFilters 2 | 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **fields** | [**[SearchresultsGet200ResponseFiltersFieldsInner]**](SearchresultsGet200ResponseFiltersFieldsInner.md) | | [optional] 8 | **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] 9 | 10 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 11 | 12 | 13 | -------------------------------------------------------------------------------- /python-client/docs/SearchresultsGet200ResponseFiltersFieldsInnerSliderOptionsInner.md: -------------------------------------------------------------------------------- 1 | # SearchresultsGet200ResponseFiltersFieldsInnerSliderOptionsInner 2 | 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **key** | **str** | | [optional] 8 | **value** | **str** | | [optional] 9 | **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] 10 | 11 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 12 | 13 | 14 | -------------------------------------------------------------------------------- /python-client/docs/SearchresultsGet200ResponseSortings.md: -------------------------------------------------------------------------------- 1 | # SearchresultsGet200ResponseSortings 2 | 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **fields** | [**[SearchresultsGet200ResponseSortingsFieldsInner]**](SearchresultsGet200ResponseSortingsFieldsInner.md) | | [optional] 8 | **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] 9 | 10 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 11 | 12 | 13 | -------------------------------------------------------------------------------- /python-client/docs/FileadminJsonGermanStatesJsonGet200ResponseInner.md: -------------------------------------------------------------------------------- 1 | # FileadminJsonGermanStatesJsonGet200ResponseInner 2 | 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **state** | **str** | | [optional] 8 | **lat** | **str** | | [optional] 9 | **lon** | **str** | | [optional] 10 | **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] 11 | 12 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 13 | 14 | 15 | -------------------------------------------------------------------------------- /python-client/sphinx-docs/Makefile: -------------------------------------------------------------------------------- 1 | # Minimal makefile for Sphinx documentation 2 | # 3 | 4 | # You can set these variables from the command line, and also 5 | # from the environment for the first two. 6 | SPHINXOPTS ?= 7 | SPHINXBUILD ?= sphinx-build 8 | SOURCEDIR = . 9 | BUILDDIR = _build 10 | 11 | # Put it first so that "make" without argument is like "make help". 12 | help: 13 | @$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O) 14 | 15 | .PHONY: help Makefile 16 | 17 | # Catch-all target: route all unknown targets to Sphinx using the new 18 | # "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS). 19 | %: Makefile 20 | @$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O) 21 | -------------------------------------------------------------------------------- /python-client/docs/SearchresultsGet200ResponseResultsInnerContent.md: -------------------------------------------------------------------------------- 1 | # SearchresultsGet200ResponseResultsInnerContent 2 | 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **items** | [**[SearchresultsGet200ResponseResultsInnerContentItemsInner]**](SearchresultsGet200ResponseResultsInnerContentItemsInner.md) | | [optional] 8 | **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] 9 | 10 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 11 | 12 | 13 | -------------------------------------------------------------------------------- /python-client/docs/SearchresultsGet200ResponseSortingsFieldsInnerOptionsInner.md: -------------------------------------------------------------------------------- 1 | # SearchresultsGet200ResponseSortingsFieldsInnerOptionsInner 2 | 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **label** | **str** | | [optional] 8 | **id** | **str** | | [optional] 9 | **value** | **str** | | [optional] 10 | **selected** | **bool** | | [optional] 11 | **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] 12 | 13 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 14 | 15 | 16 | -------------------------------------------------------------------------------- /.github/workflows/schemathesis.yaml: -------------------------------------------------------------------------------- 1 | on: 2 | push: 3 | paths: 4 | - "openapi*.yaml" 5 | pull_request: 6 | paths: 7 | - "openapi*.yaml" 8 | workflow_dispatch: 9 | 10 | jobs: 11 | schemathesis: 12 | name: "Perform schemathesis checks" 13 | runs-on: ubuntu-latest 14 | steps: 15 | - uses: actions/checkout@v3 16 | - uses: actions/setup-python@v4 17 | with: 18 | python-version: "3.8" 19 | 20 | - run: pip install schemathesis 21 | 22 | - name: "Extract base url from openapi.yaml" 23 | uses: mikefarah/yq@master 24 | with: 25 | cmd: echo "base_url=$(yq -r .servers[].url openapi.yaml)" >> $GITHUB_ENV 26 | 27 | - run: schemathesis run ./openapi.yaml --base-url "${{ env.base_url }}" --checks all 28 | -------------------------------------------------------------------------------- /python-client/docs/FileadminJsonStatesJsonGet200ResponseInner.md: -------------------------------------------------------------------------------- 1 | # FileadminJsonStatesJsonGet200ResponseInner 2 | 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **name** | **str** | | [optional] 8 | **cases_number** | **int** | | [optional] 9 | **caregivers_number** | **int** | | [optional] 10 | **doctors_number** | **int** | | [optional] 11 | **location_number** | **int** | | [optional] 12 | **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] 13 | 14 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 15 | 16 | 17 | -------------------------------------------------------------------------------- /python-client/docs/SearchresultsGet200ResponseResultsInnerContentItemsInner.md: -------------------------------------------------------------------------------- 1 | # SearchresultsGet200ResponseResultsInnerContentItemsInner 2 | 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **header** | **str** | | [optional] 8 | **icon** | **str** | | [optional] 9 | **tooltip** | **str** | | [optional] 10 | **info_data** | **[{str: (bool, date, datetime, dict, float, int, list, str, none_type)}]** | | [optional] 11 | **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] 12 | 13 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 14 | 15 | 16 | -------------------------------------------------------------------------------- /python-client/docs/FileadminJsonGermanPlacesJsonGet200ResponseInner.md: -------------------------------------------------------------------------------- 1 | # FileadminJsonGermanPlacesJsonGet200ResponseInner 2 | 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **p** | **str** | | [optional] 8 | **c** | **str** | | [optional] 9 | **m** | **str** | | [optional] 10 | **ct** | **int** | | [optional] 11 | **d** | **str** | | [optional] 12 | **lt** | **str** | | [optional] 13 | **ln** | **str** | | [optional] 14 | **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] 15 | 16 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 17 | 18 | 19 | -------------------------------------------------------------------------------- /python-client/pyproject.toml: -------------------------------------------------------------------------------- 1 | [tool] 2 | [tool.poetry] 3 | name = "de-klinikatlas" 4 | version = "1.0.0" 5 | description = "Bundes-Klinik-Atlas API" 6 | keywords = ["OpenAPI", "OpenAPI-Generator", "klinikatlas", "App", "API"] 7 | homepage = "https://github.com/bundesAPI/klinikatlas-api" 8 | authors = ["BundesAPI "] 9 | packages = [ 10 | { include = "deutschland"} 11 | ] 12 | license = "Apache-2.0" 13 | readme = "README.md" 14 | 15 | [tool.poetry.dependencies] 16 | python = ">=3.6" 17 | python-dateutil = "*" 18 | urllib3 = ">=1.25.3" 19 | 20 | [tool.poetry.urls] 21 | "Bug Tracker" = "https://github.com/bundesAPI/klinikatlas-api/issues" 22 | 23 | [tool.poetry.dev-dependencies] 24 | black = "^21.7b0" 25 | pytest = "^6.2.4" 26 | 27 | 28 | [build-system] 29 | requires = ["poetry-core>=1.0.0"] 30 | build-backend = "poetry.core.masonry.api" 31 | 32 | -------------------------------------------------------------------------------- /.github/workflows/openapi_check.yaml: -------------------------------------------------------------------------------- 1 | on: 2 | push: 3 | paths: 4 | - "openapi*.yaml" 5 | pull_request: 6 | paths: 7 | - "openapi*.yaml" 8 | 9 | jobs: 10 | openapi_check: 11 | name: "OpenAPI check" 12 | runs-on: ubuntu-latest 13 | steps: 14 | # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it 15 | - uses: actions/checkout@v2 16 | 17 | # Create default .spectral.yaml file used for linting if its not existing already 18 | - name: "Create spectral file if it not exists" 19 | continue-on-error: true 20 | run: | 21 | set -C; echo "extends: spectral:oas" > .spectral.yaml 22 | 23 | # Run Spectral 24 | - uses: stoplightio/spectral-action@latest 25 | with: 26 | file_glob: openapi.yaml 27 | spectral_ruleset: .spectral.yaml 28 | -------------------------------------------------------------------------------- /python-client/docs/SearchresultsGet200ResponseFiltersFieldsInnerOptionsInner.md: -------------------------------------------------------------------------------- 1 | # SearchresultsGet200ResponseFiltersFieldsInnerOptionsInner 2 | 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **label** | **str** | | [optional] 8 | **id** | **str** | | [optional] 9 | **value** | **str** | | [optional] 10 | **icon** | **str** | | [optional] 11 | **selected** | **bool** | | [optional] 12 | **tooltip** | **str** | | [optional] 13 | **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] 14 | 15 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 16 | 17 | 18 | -------------------------------------------------------------------------------- /python-client/deutschland/klinikatlas/__init__.py: -------------------------------------------------------------------------------- 1 | # flake8: noqa 2 | 3 | """ 4 | Bundes-Klinik-Atlas API 5 | 6 | Die API des Bundes-Klinik-Atlas stellt eine Vielzahl von Informationen über deutsche Kliniken und deren Ausstattung bereit. # noqa: E501 7 | 8 | The version of the OpenAPI document: 1.0.0 9 | Contact: poststelle@bmg.bund.de 10 | Generated by: https://openapi-generator.tech 11 | """ 12 | 13 | 14 | __version__ = "1.0.0" 15 | 16 | # import ApiClient 17 | from deutschland.klinikatlas.api_client import ApiClient 18 | 19 | # import Configuration 20 | from deutschland.klinikatlas.configuration import Configuration 21 | 22 | # import exceptions 23 | from deutschland.klinikatlas.exceptions import ( 24 | ApiAttributeError, 25 | ApiException, 26 | ApiKeyError, 27 | ApiTypeError, 28 | ApiValueError, 29 | OpenApiException, 30 | ) 31 | -------------------------------------------------------------------------------- /python-client/docs/SearchresultsGet200ResponseMetaInfos.md: -------------------------------------------------------------------------------- 1 | # SearchresultsGet200ResponseMetaInfos 2 | 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **search_arguments** | [**SearchresultsGet200ResponseMetaInfosSearchArguments**](SearchresultsGet200ResponseMetaInfosSearchArguments.md) | | [optional] 8 | **search_result_cound** | **int** | | [optional] 9 | **max_search_results_found_label** | **str** | | [optional] 10 | **load_more** | **bool** | | [optional] 11 | **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] 12 | 13 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 14 | 15 | 16 | -------------------------------------------------------------------------------- /generator_config.yaml: -------------------------------------------------------------------------------- 1 | templateDir: deutschland_templates 2 | additionalProperties: 3 | packageName: "klinikatlas" 4 | infoName: "BundesAPI" 5 | infoEmail: "kontakt@bund.dev" 6 | packageVersion: "1.0.0" 7 | packageUrl: "https://github.com/bundesAPI/klinikatlas-api" 8 | namespace: "deutschland" 9 | docLanguage: "de" 10 | gitHost: "github.com" 11 | gitUserId: "bundesAPI" 12 | gitRepoId: "klinikatlas-api" 13 | files: 14 | pyproject.mustache: 15 | destinationFilename: pyproject.toml 16 | templateType: SupportingFiles 17 | requirements.txt: {} 18 | create_doc.mustache: 19 | destinationFilename: create_doc.py 20 | templateType: SupportingFiles 21 | rename_generated_code.mustache: 22 | destinationFilename: rename_generated_code.py 23 | templateType: SupportingFiles 24 | README.mustache: 25 | destinationFilename: README.md 26 | templateType: SupportingFiles 27 | -------------------------------------------------------------------------------- /python-client/docs/SearchresultsGet200ResponseSortingsFieldsInner.md: -------------------------------------------------------------------------------- 1 | # SearchresultsGet200ResponseSortingsFieldsInner 2 | 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **template** | **str** | | [optional] 8 | **is_horizontal** | **bool** | | [optional] 9 | **label** | **str** | | [optional] 10 | **id** | **str** | | [optional] 11 | **options** | [**[SearchresultsGet200ResponseSortingsFieldsInnerOptionsInner]**](SearchresultsGet200ResponseSortingsFieldsInnerOptionsInner.md) | | [optional] 12 | **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] 13 | 14 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 15 | 16 | 17 | -------------------------------------------------------------------------------- /python-client/docs/SearchresultsGet200ResponseResultsInner.md: -------------------------------------------------------------------------------- 1 | # SearchresultsGet200ResponseResultsInner 2 | 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **id** | **int** | | [optional] 8 | **header** | **str** | | [optional] 9 | **address** | **str** | | [optional] 10 | **distance** | **float** | | [optional] 11 | **detail_link** | **str** | | [optional] 12 | **content** | [**SearchresultsGet200ResponseResultsInnerContent**](SearchresultsGet200ResponseResultsInnerContent.md) | | [optional] 13 | **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] 14 | 15 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 16 | 17 | 18 | -------------------------------------------------------------------------------- /python-client/docs/SearchresultsGet200ResponseMetaInfosSearchArguments.md: -------------------------------------------------------------------------------- 1 | # SearchresultsGet200ResponseMetaInfosSearchArguments 2 | 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **rows** | **int** | | [optional] 8 | **geolabel** | **str** | | [optional] 9 | **latlon** | **str** | | [optional] 10 | **ops** | **str** | | [optional] 11 | **searchlabel** | **str** | | [optional] 12 | **start** | **int** | | [optional] 13 | **quantile** | **str** | | [optional] 14 | **department** | **str** | | [optional] 15 | **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] 16 | 17 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 18 | 19 | 20 | -------------------------------------------------------------------------------- /python-client/sphinx-docs/make.bat: -------------------------------------------------------------------------------- 1 | @ECHO OFF 2 | 3 | pushd %~dp0 4 | 5 | REM Command file for Sphinx documentation 6 | 7 | if "%SPHINXBUILD%" == "" ( 8 | set SPHINXBUILD=sphinx-build 9 | ) 10 | set SOURCEDIR=. 11 | set BUILDDIR=_build 12 | 13 | %SPHINXBUILD% >NUL 2>NUL 14 | if errorlevel 9009 ( 15 | echo. 16 | echo.The 'sphinx-build' command was not found. Make sure you have Sphinx 17 | echo.installed, then set the SPHINXBUILD environment variable to point 18 | echo.to the full path of the 'sphinx-build' executable. Alternatively you 19 | echo.may add the Sphinx directory to PATH. 20 | echo. 21 | echo.If you don't have Sphinx installed, grab it from 22 | echo.https://www.sphinx-doc.org/ 23 | exit /b 1 24 | ) 25 | 26 | if "%1" == "" goto help 27 | 28 | %SPHINXBUILD% -M %1 %SOURCEDIR% %BUILDDIR% %SPHINXOPTS% %O% 29 | goto end 30 | 31 | :help 32 | %SPHINXBUILD% -M help %SOURCEDIR% %BUILDDIR% %SPHINXOPTS% %O% 33 | 34 | :end 35 | popd 36 | -------------------------------------------------------------------------------- /python-client/docs/FileadminJsonLocationsJsonGet200ResponseInner.md: -------------------------------------------------------------------------------- 1 | # FileadminJsonLocationsJsonGet200ResponseInner 2 | 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **name** | **str** | | [optional] 8 | **street** | **str** | | [optional] 9 | **city** | **str** | | [optional] 10 | **zip** | **str** | | [optional] 11 | **phone** | **str** | | [optional] 12 | **mail** | **str** | | [optional] 13 | **beds_number** | **int** | | [optional] 14 | **latitude** | **str** | | [optional] 15 | **longitude** | **str** | | [optional] 16 | **link** | **str** | | [optional] 17 | **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] 18 | 19 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 20 | 21 | 22 | -------------------------------------------------------------------------------- /python-client/docs/SearchresultsGet200Response.md: -------------------------------------------------------------------------------- 1 | # SearchresultsGet200Response 2 | 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **results** | [**[SearchresultsGet200ResponseResultsInner]**](SearchresultsGet200ResponseResultsInner.md) | | [optional] 8 | **filters** | [**SearchresultsGet200ResponseFilters**](SearchresultsGet200ResponseFilters.md) | | [optional] 9 | **sortings** | [**SearchresultsGet200ResponseSortings**](SearchresultsGet200ResponseSortings.md) | | [optional] 10 | **meta_infos** | [**SearchresultsGet200ResponseMetaInfos**](SearchresultsGet200ResponseMetaInfos.md) | | [optional] 11 | **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] 12 | 13 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 14 | 15 | 16 | -------------------------------------------------------------------------------- /python-client/.openapi-generator-ignore: -------------------------------------------------------------------------------- 1 | # OpenAPI Generator Ignore 2 | # Generated by openapi-generator https://github.com/openapitools/openapi-generator 3 | 4 | # Use this file to prevent files from being overwritten by the generator. 5 | # The patterns follow closely to .gitignore or .dockerignore. 6 | 7 | # As an example, the C# client generator defines ApiClient.cs. 8 | # You can make changes and tell OpenAPI Generator to ignore just this file by uncommenting the following line: 9 | #ApiClient.cs 10 | 11 | # You can match any string of characters against a directory, file or extension with a single asterisk (*): 12 | #foo/*/qux 13 | # The above matches foo/bar/qux and foo/baz/qux, but not foo/bar/baz/qux 14 | 15 | # You can recursively match patterns against a directory, file or extension with a double asterisk (**): 16 | #foo/**/qux 17 | # This matches foo/bar/qux, foo/baz/qux, and foo/bar/baz/qux 18 | 19 | # You can also negate patterns with an exclamation (!). 20 | # For example, you can ignore all files in a docs folder with the file extension .md: 21 | #docs/*.md 22 | # Then explicitly reverse the ignore rule for a single file: 23 | #!docs/README.md 24 | -------------------------------------------------------------------------------- /.github/workflows/deutschland_generator.yml: -------------------------------------------------------------------------------- 1 | on: [push] 2 | jobs: 3 | deutschland_generation: 4 | name: "Deutschland Generation" 5 | runs-on: ubuntu-latest 6 | strategy: 7 | fail-fast: false 8 | matrix: 9 | python-version: ['3.11.1' ] 10 | steps: 11 | - uses: actions/checkout@v2 12 | 13 | # Create default .spectral.yaml file used for linting if its not existing already 14 | - name: "Create spectral file if it not exists" 15 | continue-on-error: true 16 | run: | 17 | set -C; echo "extends: spectral:oas" > .spectral.yaml 18 | # Runs a single command using the runners shell 19 | - name: "Lint file" 20 | uses: stoplightio/spectral-action@latest 21 | with: 22 | file_glob: "openapi.yaml" 23 | 24 | - name: "Generate deutschland code" 25 | uses: wirthual/deutschland-generator-action@latest 26 | with: 27 | openapi-file: ${{ github.workspace }}/openapi.yaml 28 | commit-to-git: true 29 | upload-to-pypi: true 30 | upload-to-testpypi: false 31 | pypi-token: ${{ secrets.PYPI_PRODUCTION }} 32 | testpypi-token: ${{ secrets.PYPI_TEST }} 33 | python-version: ${{ matrix.python-version }} 34 | -------------------------------------------------------------------------------- /python-client/test/test_fileadmin_json_states_json_get200_response_inner.py: -------------------------------------------------------------------------------- 1 | """ 2 | Bundes-Klinik-Atlas API 3 | 4 | Die API des Bundes-Klinik-Atlas stellt eine Vielzahl von Informationen über deutsche Kliniken und deren Ausstattung bereit. # noqa: E501 5 | 6 | The version of the OpenAPI document: 1.0.0 7 | Contact: poststelle@bmg.bund.de 8 | Generated by: https://openapi-generator.tech 9 | """ 10 | 11 | import sys 12 | import unittest 13 | 14 | from deutschland.klinikatlas.model.fileadmin_json_states_json_get200_response_inner import ( 15 | FileadminJsonStatesJsonGet200ResponseInner, 16 | ) 17 | 18 | from deutschland import klinikatlas 19 | 20 | 21 | class TestFileadminJsonStatesJsonGet200ResponseInner(unittest.TestCase): 22 | """FileadminJsonStatesJsonGet200ResponseInner unit test stubs""" 23 | 24 | def setUp(self): 25 | pass 26 | 27 | def tearDown(self): 28 | pass 29 | 30 | def testFileadminJsonStatesJsonGet200ResponseInner(self): 31 | """Test FileadminJsonStatesJsonGet200ResponseInner""" 32 | # FIXME: construct object with mandatory attributes with example values 33 | # model = FileadminJsonStatesJsonGet200ResponseInner() # noqa: E501 34 | pass 35 | 36 | 37 | if __name__ == "__main__": 38 | unittest.main() 39 | -------------------------------------------------------------------------------- /python-client/test/test_fileadmin_json_icd_codes_json_get200_response_inner.py: -------------------------------------------------------------------------------- 1 | """ 2 | Bundes-Klinik-Atlas API 3 | 4 | Die API des Bundes-Klinik-Atlas stellt eine Vielzahl von Informationen über deutsche Kliniken und deren Ausstattung bereit. # noqa: E501 5 | 6 | The version of the OpenAPI document: 1.0.0 7 | Contact: poststelle@bmg.bund.de 8 | Generated by: https://openapi-generator.tech 9 | """ 10 | 11 | import sys 12 | import unittest 13 | 14 | from deutschland.klinikatlas.model.fileadmin_json_icd_codes_json_get200_response_inner import ( 15 | FileadminJsonIcdCodesJsonGet200ResponseInner, 16 | ) 17 | 18 | from deutschland import klinikatlas 19 | 20 | 21 | class TestFileadminJsonIcdCodesJsonGet200ResponseInner(unittest.TestCase): 22 | """FileadminJsonIcdCodesJsonGet200ResponseInner unit test stubs""" 23 | 24 | def setUp(self): 25 | pass 26 | 27 | def tearDown(self): 28 | pass 29 | 30 | def testFileadminJsonIcdCodesJsonGet200ResponseInner(self): 31 | """Test FileadminJsonIcdCodesJsonGet200ResponseInner""" 32 | # FIXME: construct object with mandatory attributes with example values 33 | # model = FileadminJsonIcdCodesJsonGet200ResponseInner() # noqa: E501 34 | pass 35 | 36 | 37 | if __name__ == "__main__": 38 | unittest.main() 39 | -------------------------------------------------------------------------------- /python-client/test/test_fileadmin_json_ops_codes_json_get200_response_inner.py: -------------------------------------------------------------------------------- 1 | """ 2 | Bundes-Klinik-Atlas API 3 | 4 | Die API des Bundes-Klinik-Atlas stellt eine Vielzahl von Informationen über deutsche Kliniken und deren Ausstattung bereit. # noqa: E501 5 | 6 | The version of the OpenAPI document: 1.0.0 7 | Contact: poststelle@bmg.bund.de 8 | Generated by: https://openapi-generator.tech 9 | """ 10 | 11 | import sys 12 | import unittest 13 | 14 | from deutschland.klinikatlas.model.fileadmin_json_ops_codes_json_get200_response_inner import ( 15 | FileadminJsonOpsCodesJsonGet200ResponseInner, 16 | ) 17 | 18 | from deutschland import klinikatlas 19 | 20 | 21 | class TestFileadminJsonOpsCodesJsonGet200ResponseInner(unittest.TestCase): 22 | """FileadminJsonOpsCodesJsonGet200ResponseInner unit test stubs""" 23 | 24 | def setUp(self): 25 | pass 26 | 27 | def tearDown(self): 28 | pass 29 | 30 | def testFileadminJsonOpsCodesJsonGet200ResponseInner(self): 31 | """Test FileadminJsonOpsCodesJsonGet200ResponseInner""" 32 | # FIXME: construct object with mandatory attributes with example values 33 | # model = FileadminJsonOpsCodesJsonGet200ResponseInner() # noqa: E501 34 | pass 35 | 36 | 37 | if __name__ == "__main__": 38 | unittest.main() 39 | -------------------------------------------------------------------------------- /python-client/test/test_fileadmin_json_locations_json_get200_response_inner.py: -------------------------------------------------------------------------------- 1 | """ 2 | Bundes-Klinik-Atlas API 3 | 4 | Die API des Bundes-Klinik-Atlas stellt eine Vielzahl von Informationen über deutsche Kliniken und deren Ausstattung bereit. # noqa: E501 5 | 6 | The version of the OpenAPI document: 1.0.0 7 | Contact: poststelle@bmg.bund.de 8 | Generated by: https://openapi-generator.tech 9 | """ 10 | 11 | import sys 12 | import unittest 13 | 14 | from deutschland.klinikatlas.model.fileadmin_json_locations_json_get200_response_inner import ( 15 | FileadminJsonLocationsJsonGet200ResponseInner, 16 | ) 17 | 18 | from deutschland import klinikatlas 19 | 20 | 21 | class TestFileadminJsonLocationsJsonGet200ResponseInner(unittest.TestCase): 22 | """FileadminJsonLocationsJsonGet200ResponseInner unit test stubs""" 23 | 24 | def setUp(self): 25 | pass 26 | 27 | def tearDown(self): 28 | pass 29 | 30 | def testFileadminJsonLocationsJsonGet200ResponseInner(self): 31 | """Test FileadminJsonLocationsJsonGet200ResponseInner""" 32 | # FIXME: construct object with mandatory attributes with example values 33 | # model = FileadminJsonLocationsJsonGet200ResponseInner() # noqa: E501 34 | pass 35 | 36 | 37 | if __name__ == "__main__": 38 | unittest.main() 39 | -------------------------------------------------------------------------------- /python-client/test/test_fileadmin_json_german_places_json_get200_response_inner.py: -------------------------------------------------------------------------------- 1 | """ 2 | Bundes-Klinik-Atlas API 3 | 4 | Die API des Bundes-Klinik-Atlas stellt eine Vielzahl von Informationen über deutsche Kliniken und deren Ausstattung bereit. # noqa: E501 5 | 6 | The version of the OpenAPI document: 1.0.0 7 | Contact: poststelle@bmg.bund.de 8 | Generated by: https://openapi-generator.tech 9 | """ 10 | 11 | import sys 12 | import unittest 13 | 14 | from deutschland.klinikatlas.model.fileadmin_json_german_places_json_get200_response_inner import ( 15 | FileadminJsonGermanPlacesJsonGet200ResponseInner, 16 | ) 17 | 18 | from deutschland import klinikatlas 19 | 20 | 21 | class TestFileadminJsonGermanPlacesJsonGet200ResponseInner(unittest.TestCase): 22 | """FileadminJsonGermanPlacesJsonGet200ResponseInner unit test stubs""" 23 | 24 | def setUp(self): 25 | pass 26 | 27 | def tearDown(self): 28 | pass 29 | 30 | def testFileadminJsonGermanPlacesJsonGet200ResponseInner(self): 31 | """Test FileadminJsonGermanPlacesJsonGet200ResponseInner""" 32 | # FIXME: construct object with mandatory attributes with example values 33 | # model = FileadminJsonGermanPlacesJsonGet200ResponseInner() # noqa: E501 34 | pass 35 | 36 | 37 | if __name__ == "__main__": 38 | unittest.main() 39 | -------------------------------------------------------------------------------- /python-client/test/test_fileadmin_json_german_states_json_get200_response_inner.py: -------------------------------------------------------------------------------- 1 | """ 2 | Bundes-Klinik-Atlas API 3 | 4 | Die API des Bundes-Klinik-Atlas stellt eine Vielzahl von Informationen über deutsche Kliniken und deren Ausstattung bereit. # noqa: E501 5 | 6 | The version of the OpenAPI document: 1.0.0 7 | Contact: poststelle@bmg.bund.de 8 | Generated by: https://openapi-generator.tech 9 | """ 10 | 11 | import sys 12 | import unittest 13 | 14 | from deutschland.klinikatlas.model.fileadmin_json_german_states_json_get200_response_inner import ( 15 | FileadminJsonGermanStatesJsonGet200ResponseInner, 16 | ) 17 | 18 | from deutschland import klinikatlas 19 | 20 | 21 | class TestFileadminJsonGermanStatesJsonGet200ResponseInner(unittest.TestCase): 22 | """FileadminJsonGermanStatesJsonGet200ResponseInner unit test stubs""" 23 | 24 | def setUp(self): 25 | pass 26 | 27 | def tearDown(self): 28 | pass 29 | 30 | def testFileadminJsonGermanStatesJsonGet200ResponseInner(self): 31 | """Test FileadminJsonGermanStatesJsonGet200ResponseInner""" 32 | # FIXME: construct object with mandatory attributes with example values 33 | # model = FileadminJsonGermanStatesJsonGet200ResponseInner() # noqa: E501 34 | pass 35 | 36 | 37 | if __name__ == "__main__": 38 | unittest.main() 39 | -------------------------------------------------------------------------------- /python-client/test/test_searchresults_get200_response_meta_infos_search_arguments.py: -------------------------------------------------------------------------------- 1 | """ 2 | Bundes-Klinik-Atlas API 3 | 4 | Die API des Bundes-Klinik-Atlas stellt eine Vielzahl von Informationen über deutsche Kliniken und deren Ausstattung bereit. # noqa: E501 5 | 6 | The version of the OpenAPI document: 1.0.0 7 | Contact: poststelle@bmg.bund.de 8 | Generated by: https://openapi-generator.tech 9 | """ 10 | 11 | import sys 12 | import unittest 13 | 14 | from deutschland.klinikatlas.model.searchresults_get200_response_meta_infos_search_arguments import ( 15 | SearchresultsGet200ResponseMetaInfosSearchArguments, 16 | ) 17 | 18 | from deutschland import klinikatlas 19 | 20 | 21 | class TestSearchresultsGet200ResponseMetaInfosSearchArguments(unittest.TestCase): 22 | """SearchresultsGet200ResponseMetaInfosSearchArguments unit test stubs""" 23 | 24 | def setUp(self): 25 | pass 26 | 27 | def tearDown(self): 28 | pass 29 | 30 | def testSearchresultsGet200ResponseMetaInfosSearchArguments(self): 31 | """Test SearchresultsGet200ResponseMetaInfosSearchArguments""" 32 | # FIXME: construct object with mandatory attributes with example values 33 | # model = SearchresultsGet200ResponseMetaInfosSearchArguments() # noqa: E501 34 | pass 35 | 36 | 37 | if __name__ == "__main__": 38 | unittest.main() 39 | -------------------------------------------------------------------------------- /python-client/sphinx-docs/source/klinikatlas.rst: -------------------------------------------------------------------------------- 1 | klinikatlas package 2 | =================== 3 | 4 | Subpackages 5 | ----------- 6 | 7 | .. toctree:: 8 | :maxdepth: 4 9 | 10 | klinikatlas.api 11 | klinikatlas.apis 12 | klinikatlas.model 13 | klinikatlas.models 14 | 15 | Submodules 16 | ---------- 17 | 18 | klinikatlas.api\_client module 19 | ------------------------------ 20 | 21 | .. automodule:: klinikatlas.api_client 22 | :members: 23 | :undoc-members: 24 | :show-inheritance: 25 | 26 | klinikatlas.configuration module 27 | -------------------------------- 28 | 29 | .. automodule:: klinikatlas.configuration 30 | :members: 31 | :undoc-members: 32 | :show-inheritance: 33 | 34 | klinikatlas.exceptions module 35 | ----------------------------- 36 | 37 | .. automodule:: klinikatlas.exceptions 38 | :members: 39 | :undoc-members: 40 | :show-inheritance: 41 | 42 | klinikatlas.model\_utils module 43 | ------------------------------- 44 | 45 | .. automodule:: klinikatlas.model_utils 46 | :members: 47 | :undoc-members: 48 | :show-inheritance: 49 | 50 | klinikatlas.rest module 51 | ----------------------- 52 | 53 | .. automodule:: klinikatlas.rest 54 | :members: 55 | :undoc-members: 56 | :show-inheritance: 57 | 58 | Module contents 59 | --------------- 60 | 61 | .. automodule:: klinikatlas 62 | :members: 63 | :undoc-members: 64 | :show-inheritance: 65 | -------------------------------------------------------------------------------- /python-client/test/test_searchresults_get200_response_results_inner_content_items_inner.py: -------------------------------------------------------------------------------- 1 | """ 2 | Bundes-Klinik-Atlas API 3 | 4 | Die API des Bundes-Klinik-Atlas stellt eine Vielzahl von Informationen über deutsche Kliniken und deren Ausstattung bereit. # noqa: E501 5 | 6 | The version of the OpenAPI document: 1.0.0 7 | Contact: poststelle@bmg.bund.de 8 | Generated by: https://openapi-generator.tech 9 | """ 10 | 11 | import sys 12 | import unittest 13 | 14 | from deutschland.klinikatlas.model.searchresults_get200_response_results_inner_content_items_inner import ( 15 | SearchresultsGet200ResponseResultsInnerContentItemsInner, 16 | ) 17 | 18 | from deutschland import klinikatlas 19 | 20 | 21 | class TestSearchresultsGet200ResponseResultsInnerContentItemsInner(unittest.TestCase): 22 | """SearchresultsGet200ResponseResultsInnerContentItemsInner unit test stubs""" 23 | 24 | def setUp(self): 25 | pass 26 | 27 | def tearDown(self): 28 | pass 29 | 30 | def testSearchresultsGet200ResponseResultsInnerContentItemsInner(self): 31 | """Test SearchresultsGet200ResponseResultsInnerContentItemsInner""" 32 | # FIXME: construct object with mandatory attributes with example values 33 | # model = SearchresultsGet200ResponseResultsInnerContentItemsInner() # noqa: E501 34 | pass 35 | 36 | 37 | if __name__ == "__main__": 38 | unittest.main() 39 | -------------------------------------------------------------------------------- /python-client/test/test_searchresults_get200_response_filters_fields_inner_options_inner.py: -------------------------------------------------------------------------------- 1 | """ 2 | Bundes-Klinik-Atlas API 3 | 4 | Die API des Bundes-Klinik-Atlas stellt eine Vielzahl von Informationen über deutsche Kliniken und deren Ausstattung bereit. # noqa: E501 5 | 6 | The version of the OpenAPI document: 1.0.0 7 | Contact: poststelle@bmg.bund.de 8 | Generated by: https://openapi-generator.tech 9 | """ 10 | 11 | import sys 12 | import unittest 13 | 14 | from deutschland.klinikatlas.model.searchresults_get200_response_filters_fields_inner_options_inner import ( 15 | SearchresultsGet200ResponseFiltersFieldsInnerOptionsInner, 16 | ) 17 | 18 | from deutschland import klinikatlas 19 | 20 | 21 | class TestSearchresultsGet200ResponseFiltersFieldsInnerOptionsInner(unittest.TestCase): 22 | """SearchresultsGet200ResponseFiltersFieldsInnerOptionsInner unit test stubs""" 23 | 24 | def setUp(self): 25 | pass 26 | 27 | def tearDown(self): 28 | pass 29 | 30 | def testSearchresultsGet200ResponseFiltersFieldsInnerOptionsInner(self): 31 | """Test SearchresultsGet200ResponseFiltersFieldsInnerOptionsInner""" 32 | # FIXME: construct object with mandatory attributes with example values 33 | # model = SearchresultsGet200ResponseFiltersFieldsInnerOptionsInner() # noqa: E501 34 | pass 35 | 36 | 37 | if __name__ == "__main__": 38 | unittest.main() 39 | -------------------------------------------------------------------------------- /python-client/test/test_searchresults_get200_response_sortings_fields_inner_options_inner.py: -------------------------------------------------------------------------------- 1 | """ 2 | Bundes-Klinik-Atlas API 3 | 4 | Die API des Bundes-Klinik-Atlas stellt eine Vielzahl von Informationen über deutsche Kliniken und deren Ausstattung bereit. # noqa: E501 5 | 6 | The version of the OpenAPI document: 1.0.0 7 | Contact: poststelle@bmg.bund.de 8 | Generated by: https://openapi-generator.tech 9 | """ 10 | 11 | import sys 12 | import unittest 13 | 14 | from deutschland.klinikatlas.model.searchresults_get200_response_sortings_fields_inner_options_inner import ( 15 | SearchresultsGet200ResponseSortingsFieldsInnerOptionsInner, 16 | ) 17 | 18 | from deutschland import klinikatlas 19 | 20 | 21 | class TestSearchresultsGet200ResponseSortingsFieldsInnerOptionsInner(unittest.TestCase): 22 | """SearchresultsGet200ResponseSortingsFieldsInnerOptionsInner unit test stubs""" 23 | 24 | def setUp(self): 25 | pass 26 | 27 | def tearDown(self): 28 | pass 29 | 30 | def testSearchresultsGet200ResponseSortingsFieldsInnerOptionsInner(self): 31 | """Test SearchresultsGet200ResponseSortingsFieldsInnerOptionsInner""" 32 | # FIXME: construct object with mandatory attributes with example values 33 | # model = SearchresultsGet200ResponseSortingsFieldsInnerOptionsInner() # noqa: E501 34 | pass 35 | 36 | 37 | if __name__ == "__main__": 38 | unittest.main() 39 | -------------------------------------------------------------------------------- /python-client/sphinx-docs/conf.py: -------------------------------------------------------------------------------- 1 | import os 2 | import sys 3 | 4 | sys.path.insert(0, os.path.abspath("../")) 5 | # Configuration file for the Sphinx documentation builder. 6 | # 7 | # For the full list of built-in configuration values, see the documentation: 8 | # https://www.sphinx-doc.org/en/master/usage/configuration.html 9 | 10 | # -- Project information ----------------------------------------------------- 11 | # https://www.sphinx-doc.org/en/master/usage/configuration.html#project-information 12 | 13 | project = "klinikatlas-api" 14 | copyright = "2024, Bundesministerium für Gesundheit" 15 | author = "Bundesministerium für Gesundheit" 16 | 17 | version = "1.0.0" 18 | release = "1.0.0" 19 | 20 | # -- General configuration --------------------------------------------------- 21 | # https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration 22 | 23 | extensions = [ 24 | "m2r2", 25 | "sphinx.ext.autodoc", 26 | "sphinx.ext.napoleon", 27 | "sphinx.ext.autosummary", 28 | ] 29 | 30 | templates_path = ["_templates"] 31 | exclude_patterns = ["_build", "Thumbs.db", ".DS_Store"] 32 | 33 | language = "de" 34 | 35 | # -- Options for HTML output ------------------------------------------------- 36 | # https://www.sphinx-doc.org/en/master/usage/configuration.html#options-for-html-output 37 | 38 | html_theme = "alabaster" 39 | html_static_path = ["_static"] 40 | 41 | source_extensions = [".rst", ".md"] 42 | -------------------------------------------------------------------------------- /python-client/test/test_searchresults_get200_response_filters_fields_inner_slider_options_inner.py: -------------------------------------------------------------------------------- 1 | """ 2 | Bundes-Klinik-Atlas API 3 | 4 | Die API des Bundes-Klinik-Atlas stellt eine Vielzahl von Informationen über deutsche Kliniken und deren Ausstattung bereit. # noqa: E501 5 | 6 | The version of the OpenAPI document: 1.0.0 7 | Contact: poststelle@bmg.bund.de 8 | Generated by: https://openapi-generator.tech 9 | """ 10 | 11 | import sys 12 | import unittest 13 | 14 | from deutschland.klinikatlas.model.searchresults_get200_response_filters_fields_inner_slider_options_inner import ( 15 | SearchresultsGet200ResponseFiltersFieldsInnerSliderOptionsInner, 16 | ) 17 | 18 | from deutschland import klinikatlas 19 | 20 | 21 | class TestSearchresultsGet200ResponseFiltersFieldsInnerSliderOptionsInner( 22 | unittest.TestCase 23 | ): 24 | """SearchresultsGet200ResponseFiltersFieldsInnerSliderOptionsInner unit test stubs""" 25 | 26 | def setUp(self): 27 | pass 28 | 29 | def tearDown(self): 30 | pass 31 | 32 | def testSearchresultsGet200ResponseFiltersFieldsInnerSliderOptionsInner(self): 33 | """Test SearchresultsGet200ResponseFiltersFieldsInnerSliderOptionsInner""" 34 | # FIXME: construct object with mandatory attributes with example values 35 | # model = SearchresultsGet200ResponseFiltersFieldsInnerSliderOptionsInner() # noqa: E501 36 | pass 37 | 38 | 39 | if __name__ == "__main__": 40 | unittest.main() 41 | -------------------------------------------------------------------------------- /index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | Bundes-Klinik-Atlas API - OpenAPI Documentation 8 | 9 | 10 |
[DE]/[EN]
11 | 12 |
13 | 14 | 15 | 40 | 41 | 42 | -------------------------------------------------------------------------------- /python-client/test/test_searchresults_get200_response_filters.py: -------------------------------------------------------------------------------- 1 | """ 2 | Bundes-Klinik-Atlas API 3 | 4 | Die API des Bundes-Klinik-Atlas stellt eine Vielzahl von Informationen über deutsche Kliniken und deren Ausstattung bereit. # noqa: E501 5 | 6 | The version of the OpenAPI document: 1.0.0 7 | Contact: poststelle@bmg.bund.de 8 | Generated by: https://openapi-generator.tech 9 | """ 10 | 11 | import sys 12 | import unittest 13 | 14 | from deutschland.klinikatlas.model.searchresults_get200_response_filters_fields_inner import ( 15 | SearchresultsGet200ResponseFiltersFieldsInner, 16 | ) 17 | 18 | from deutschland import klinikatlas 19 | 20 | globals()[ 21 | "SearchresultsGet200ResponseFiltersFieldsInner" 22 | ] = SearchresultsGet200ResponseFiltersFieldsInner 23 | from deutschland.klinikatlas.model.searchresults_get200_response_filters import ( 24 | SearchresultsGet200ResponseFilters, 25 | ) 26 | 27 | 28 | class TestSearchresultsGet200ResponseFilters(unittest.TestCase): 29 | """SearchresultsGet200ResponseFilters unit test stubs""" 30 | 31 | def setUp(self): 32 | pass 33 | 34 | def tearDown(self): 35 | pass 36 | 37 | def testSearchresultsGet200ResponseFilters(self): 38 | """Test SearchresultsGet200ResponseFilters""" 39 | # FIXME: construct object with mandatory attributes with example values 40 | # model = SearchresultsGet200ResponseFilters() # noqa: E501 41 | pass 42 | 43 | 44 | if __name__ == "__main__": 45 | unittest.main() 46 | -------------------------------------------------------------------------------- /python-client/test/test_searchresults_get200_response_sortings.py: -------------------------------------------------------------------------------- 1 | """ 2 | Bundes-Klinik-Atlas API 3 | 4 | Die API des Bundes-Klinik-Atlas stellt eine Vielzahl von Informationen über deutsche Kliniken und deren Ausstattung bereit. # noqa: E501 5 | 6 | The version of the OpenAPI document: 1.0.0 7 | Contact: poststelle@bmg.bund.de 8 | Generated by: https://openapi-generator.tech 9 | """ 10 | 11 | import sys 12 | import unittest 13 | 14 | from deutschland.klinikatlas.model.searchresults_get200_response_sortings_fields_inner import ( 15 | SearchresultsGet200ResponseSortingsFieldsInner, 16 | ) 17 | 18 | from deutschland import klinikatlas 19 | 20 | globals()[ 21 | "SearchresultsGet200ResponseSortingsFieldsInner" 22 | ] = SearchresultsGet200ResponseSortingsFieldsInner 23 | from deutschland.klinikatlas.model.searchresults_get200_response_sortings import ( 24 | SearchresultsGet200ResponseSortings, 25 | ) 26 | 27 | 28 | class TestSearchresultsGet200ResponseSortings(unittest.TestCase): 29 | """SearchresultsGet200ResponseSortings unit test stubs""" 30 | 31 | def setUp(self): 32 | pass 33 | 34 | def tearDown(self): 35 | pass 36 | 37 | def testSearchresultsGet200ResponseSortings(self): 38 | """Test SearchresultsGet200ResponseSortings""" 39 | # FIXME: construct object with mandatory attributes with example values 40 | # model = SearchresultsGet200ResponseSortings() # noqa: E501 41 | pass 42 | 43 | 44 | if __name__ == "__main__": 45 | unittest.main() 46 | -------------------------------------------------------------------------------- /python-client/test/test_searchresults_get200_response_meta_infos.py: -------------------------------------------------------------------------------- 1 | """ 2 | Bundes-Klinik-Atlas API 3 | 4 | Die API des Bundes-Klinik-Atlas stellt eine Vielzahl von Informationen über deutsche Kliniken und deren Ausstattung bereit. # noqa: E501 5 | 6 | The version of the OpenAPI document: 1.0.0 7 | Contact: poststelle@bmg.bund.de 8 | Generated by: https://openapi-generator.tech 9 | """ 10 | 11 | import sys 12 | import unittest 13 | 14 | from deutschland.klinikatlas.model.searchresults_get200_response_meta_infos_search_arguments import ( 15 | SearchresultsGet200ResponseMetaInfosSearchArguments, 16 | ) 17 | 18 | from deutschland import klinikatlas 19 | 20 | globals()[ 21 | "SearchresultsGet200ResponseMetaInfosSearchArguments" 22 | ] = SearchresultsGet200ResponseMetaInfosSearchArguments 23 | from deutschland.klinikatlas.model.searchresults_get200_response_meta_infos import ( 24 | SearchresultsGet200ResponseMetaInfos, 25 | ) 26 | 27 | 28 | class TestSearchresultsGet200ResponseMetaInfos(unittest.TestCase): 29 | """SearchresultsGet200ResponseMetaInfos unit test stubs""" 30 | 31 | def setUp(self): 32 | pass 33 | 34 | def tearDown(self): 35 | pass 36 | 37 | def testSearchresultsGet200ResponseMetaInfos(self): 38 | """Test SearchresultsGet200ResponseMetaInfos""" 39 | # FIXME: construct object with mandatory attributes with example values 40 | # model = SearchresultsGet200ResponseMetaInfos() # noqa: E501 41 | pass 42 | 43 | 44 | if __name__ == "__main__": 45 | unittest.main() 46 | -------------------------------------------------------------------------------- /python-client/test/test_searchresults_get200_response_results_inner.py: -------------------------------------------------------------------------------- 1 | """ 2 | Bundes-Klinik-Atlas API 3 | 4 | Die API des Bundes-Klinik-Atlas stellt eine Vielzahl von Informationen über deutsche Kliniken und deren Ausstattung bereit. # noqa: E501 5 | 6 | The version of the OpenAPI document: 1.0.0 7 | Contact: poststelle@bmg.bund.de 8 | Generated by: https://openapi-generator.tech 9 | """ 10 | 11 | import sys 12 | import unittest 13 | 14 | from deutschland.klinikatlas.model.searchresults_get200_response_results_inner_content import ( 15 | SearchresultsGet200ResponseResultsInnerContent, 16 | ) 17 | 18 | from deutschland import klinikatlas 19 | 20 | globals()[ 21 | "SearchresultsGet200ResponseResultsInnerContent" 22 | ] = SearchresultsGet200ResponseResultsInnerContent 23 | from deutschland.klinikatlas.model.searchresults_get200_response_results_inner import ( 24 | SearchresultsGet200ResponseResultsInner, 25 | ) 26 | 27 | 28 | class TestSearchresultsGet200ResponseResultsInner(unittest.TestCase): 29 | """SearchresultsGet200ResponseResultsInner unit test stubs""" 30 | 31 | def setUp(self): 32 | pass 33 | 34 | def tearDown(self): 35 | pass 36 | 37 | def testSearchresultsGet200ResponseResultsInner(self): 38 | """Test SearchresultsGet200ResponseResultsInner""" 39 | # FIXME: construct object with mandatory attributes with example values 40 | # model = SearchresultsGet200ResponseResultsInner() # noqa: E501 41 | pass 42 | 43 | 44 | if __name__ == "__main__": 45 | unittest.main() 46 | -------------------------------------------------------------------------------- /python-client/docs/SearchresultsGet200ResponseFiltersFieldsInner.md: -------------------------------------------------------------------------------- 1 | # SearchresultsGet200ResponseFiltersFieldsInner 2 | 3 | 4 | ## Properties 5 | Name | Type | Description | Notes 6 | ------------ | ------------- | ------------- | ------------- 7 | **template** | **str** | | [optional] 8 | **label** | **str** | | [optional] 9 | **extra_class** | **str** | | [optional] 10 | **tooltip** | **str** | | [optional] 11 | **id** | **str** | | [optional] 12 | **name** | **str** | | [optional] 13 | **value** | **str** | | [optional] 14 | **show_value** | **int** | | [optional] 15 | **append_unit** | **str** | | [optional] 16 | **show_range_label** | **bool** | | [optional] 17 | **slider_options** | [**[SearchresultsGet200ResponseFiltersFieldsInnerSliderOptionsInner]**](SearchresultsGet200ResponseFiltersFieldsInnerSliderOptionsInner.md) | | [optional] 18 | **label_class** | **str** | | [optional] 19 | **options** | [**[SearchresultsGet200ResponseFiltersFieldsInnerOptionsInner]**](SearchresultsGet200ResponseFiltersFieldsInnerOptionsInner.md) | | [optional] 20 | **is_accordion** | **bool** | | [optional] 21 | **tag_name** | **str** | | [optional] 22 | **heading_class** | **str** | | [optional] 23 | **is_horizontal** | **bool** | | [optional] 24 | **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] 25 | 26 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 27 | 28 | 29 | -------------------------------------------------------------------------------- /python-client/test/test_searchresults_get200_response_results_inner_content.py: -------------------------------------------------------------------------------- 1 | """ 2 | Bundes-Klinik-Atlas API 3 | 4 | Die API des Bundes-Klinik-Atlas stellt eine Vielzahl von Informationen über deutsche Kliniken und deren Ausstattung bereit. # noqa: E501 5 | 6 | The version of the OpenAPI document: 1.0.0 7 | Contact: poststelle@bmg.bund.de 8 | Generated by: https://openapi-generator.tech 9 | """ 10 | 11 | import sys 12 | import unittest 13 | 14 | from deutschland.klinikatlas.model.searchresults_get200_response_results_inner_content_items_inner import ( 15 | SearchresultsGet200ResponseResultsInnerContentItemsInner, 16 | ) 17 | 18 | from deutschland import klinikatlas 19 | 20 | globals()[ 21 | "SearchresultsGet200ResponseResultsInnerContentItemsInner" 22 | ] = SearchresultsGet200ResponseResultsInnerContentItemsInner 23 | from deutschland.klinikatlas.model.searchresults_get200_response_results_inner_content import ( 24 | SearchresultsGet200ResponseResultsInnerContent, 25 | ) 26 | 27 | 28 | class TestSearchresultsGet200ResponseResultsInnerContent(unittest.TestCase): 29 | """SearchresultsGet200ResponseResultsInnerContent unit test stubs""" 30 | 31 | def setUp(self): 32 | pass 33 | 34 | def tearDown(self): 35 | pass 36 | 37 | def testSearchresultsGet200ResponseResultsInnerContent(self): 38 | """Test SearchresultsGet200ResponseResultsInnerContent""" 39 | # FIXME: construct object with mandatory attributes with example values 40 | # model = SearchresultsGet200ResponseResultsInnerContent() # noqa: E501 41 | pass 42 | 43 | 44 | if __name__ == "__main__": 45 | unittest.main() 46 | -------------------------------------------------------------------------------- /python-client/test/test_searchresults_get200_response_sortings_fields_inner.py: -------------------------------------------------------------------------------- 1 | """ 2 | Bundes-Klinik-Atlas API 3 | 4 | Die API des Bundes-Klinik-Atlas stellt eine Vielzahl von Informationen über deutsche Kliniken und deren Ausstattung bereit. # noqa: E501 5 | 6 | The version of the OpenAPI document: 1.0.0 7 | Contact: poststelle@bmg.bund.de 8 | Generated by: https://openapi-generator.tech 9 | """ 10 | 11 | import sys 12 | import unittest 13 | 14 | from deutschland.klinikatlas.model.searchresults_get200_response_sortings_fields_inner_options_inner import ( 15 | SearchresultsGet200ResponseSortingsFieldsInnerOptionsInner, 16 | ) 17 | 18 | from deutschland import klinikatlas 19 | 20 | globals()[ 21 | "SearchresultsGet200ResponseSortingsFieldsInnerOptionsInner" 22 | ] = SearchresultsGet200ResponseSortingsFieldsInnerOptionsInner 23 | from deutschland.klinikatlas.model.searchresults_get200_response_sortings_fields_inner import ( 24 | SearchresultsGet200ResponseSortingsFieldsInner, 25 | ) 26 | 27 | 28 | class TestSearchresultsGet200ResponseSortingsFieldsInner(unittest.TestCase): 29 | """SearchresultsGet200ResponseSortingsFieldsInner unit test stubs""" 30 | 31 | def setUp(self): 32 | pass 33 | 34 | def tearDown(self): 35 | pass 36 | 37 | def testSearchresultsGet200ResponseSortingsFieldsInner(self): 38 | """Test SearchresultsGet200ResponseSortingsFieldsInner""" 39 | # FIXME: construct object with mandatory attributes with example values 40 | # model = SearchresultsGet200ResponseSortingsFieldsInner() # noqa: E501 41 | pass 42 | 43 | 44 | if __name__ == "__main__": 45 | unittest.main() 46 | -------------------------------------------------------------------------------- /python-client/test/test_searchresults_get200_response_filters_fields_inner.py: -------------------------------------------------------------------------------- 1 | """ 2 | Bundes-Klinik-Atlas API 3 | 4 | Die API des Bundes-Klinik-Atlas stellt eine Vielzahl von Informationen über deutsche Kliniken und deren Ausstattung bereit. # noqa: E501 5 | 6 | The version of the OpenAPI document: 1.0.0 7 | Contact: poststelle@bmg.bund.de 8 | Generated by: https://openapi-generator.tech 9 | """ 10 | 11 | import sys 12 | import unittest 13 | 14 | from deutschland.klinikatlas.model.searchresults_get200_response_filters_fields_inner_options_inner import ( 15 | SearchresultsGet200ResponseFiltersFieldsInnerOptionsInner, 16 | ) 17 | from deutschland.klinikatlas.model.searchresults_get200_response_filters_fields_inner_slider_options_inner import ( 18 | SearchresultsGet200ResponseFiltersFieldsInnerSliderOptionsInner, 19 | ) 20 | 21 | from deutschland import klinikatlas 22 | 23 | globals()[ 24 | "SearchresultsGet200ResponseFiltersFieldsInnerOptionsInner" 25 | ] = SearchresultsGet200ResponseFiltersFieldsInnerOptionsInner 26 | globals()[ 27 | "SearchresultsGet200ResponseFiltersFieldsInnerSliderOptionsInner" 28 | ] = SearchresultsGet200ResponseFiltersFieldsInnerSliderOptionsInner 29 | from deutschland.klinikatlas.model.searchresults_get200_response_filters_fields_inner import ( 30 | SearchresultsGet200ResponseFiltersFieldsInner, 31 | ) 32 | 33 | 34 | class TestSearchresultsGet200ResponseFiltersFieldsInner(unittest.TestCase): 35 | """SearchresultsGet200ResponseFiltersFieldsInner unit test stubs""" 36 | 37 | def setUp(self): 38 | pass 39 | 40 | def tearDown(self): 41 | pass 42 | 43 | def testSearchresultsGet200ResponseFiltersFieldsInner(self): 44 | """Test SearchresultsGet200ResponseFiltersFieldsInner""" 45 | # FIXME: construct object with mandatory attributes with example values 46 | # model = SearchresultsGet200ResponseFiltersFieldsInner() # noqa: E501 47 | pass 48 | 49 | 50 | if __name__ == "__main__": 51 | unittest.main() 52 | -------------------------------------------------------------------------------- /python-client/test/test_searchresults_get200_response.py: -------------------------------------------------------------------------------- 1 | """ 2 | Bundes-Klinik-Atlas API 3 | 4 | Die API des Bundes-Klinik-Atlas stellt eine Vielzahl von Informationen über deutsche Kliniken und deren Ausstattung bereit. # noqa: E501 5 | 6 | The version of the OpenAPI document: 1.0.0 7 | Contact: poststelle@bmg.bund.de 8 | Generated by: https://openapi-generator.tech 9 | """ 10 | 11 | import sys 12 | import unittest 13 | 14 | from deutschland.klinikatlas.model.searchresults_get200_response_filters import ( 15 | SearchresultsGet200ResponseFilters, 16 | ) 17 | from deutschland.klinikatlas.model.searchresults_get200_response_meta_infos import ( 18 | SearchresultsGet200ResponseMetaInfos, 19 | ) 20 | from deutschland.klinikatlas.model.searchresults_get200_response_results_inner import ( 21 | SearchresultsGet200ResponseResultsInner, 22 | ) 23 | from deutschland.klinikatlas.model.searchresults_get200_response_sortings import ( 24 | SearchresultsGet200ResponseSortings, 25 | ) 26 | 27 | from deutschland import klinikatlas 28 | 29 | globals()["SearchresultsGet200ResponseFilters"] = SearchresultsGet200ResponseFilters 30 | globals()["SearchresultsGet200ResponseMetaInfos"] = SearchresultsGet200ResponseMetaInfos 31 | globals()[ 32 | "SearchresultsGet200ResponseResultsInner" 33 | ] = SearchresultsGet200ResponseResultsInner 34 | globals()["SearchresultsGet200ResponseSortings"] = SearchresultsGet200ResponseSortings 35 | from deutschland.klinikatlas.model.searchresults_get200_response import ( 36 | SearchresultsGet200Response, 37 | ) 38 | 39 | 40 | class TestSearchresultsGet200Response(unittest.TestCase): 41 | """SearchresultsGet200Response unit test stubs""" 42 | 43 | def setUp(self): 44 | pass 45 | 46 | def tearDown(self): 47 | pass 48 | 49 | def testSearchresultsGet200Response(self): 50 | """Test SearchresultsGet200Response""" 51 | # FIXME: construct object with mandatory attributes with example values 52 | # model = SearchresultsGet200Response() # noqa: E501 53 | pass 54 | 55 | 56 | if __name__ == "__main__": 57 | unittest.main() 58 | -------------------------------------------------------------------------------- /python-client/test/test_default_api.py: -------------------------------------------------------------------------------- 1 | """ 2 | Bundes-Klinik-Atlas API 3 | 4 | Die API des Bundes-Klinik-Atlas stellt eine Vielzahl von Informationen über deutsche Kliniken und deren Ausstattung bereit. # noqa: E501 5 | 6 | The version of the OpenAPI document: 1.0.0 7 | Contact: poststelle@bmg.bund.de 8 | Generated by: https://openapi-generator.tech 9 | """ 10 | 11 | import unittest 12 | 13 | from deutschland.klinikatlas.api.default_api import DefaultApi # noqa: E501 14 | 15 | from deutschland import klinikatlas 16 | 17 | 18 | class TestDefaultApi(unittest.TestCase): 19 | """DefaultApi unit test stubs""" 20 | 21 | def setUp(self): 22 | self.api = DefaultApi() # noqa: E501 23 | 24 | def tearDown(self): 25 | pass 26 | 27 | def test_fileadmin_json_german_places_json_get(self): 28 | """Test case for fileadmin_json_german_places_json_get 29 | 30 | Liste deutscher Orte abrufen # noqa: E501 31 | """ 32 | pass 33 | 34 | def test_fileadmin_json_german_states_json_get(self): 35 | """Test case for fileadmin_json_german_states_json_get 36 | 37 | Liste deutscher Bundesländer mit Koordinaten abrufen # noqa: E501 38 | """ 39 | pass 40 | 41 | def test_fileadmin_json_icd_codes_json_get(self): 42 | """Test case for fileadmin_json_icd_codes_json_get 43 | 44 | Liste der ICD-Codes abrufen # noqa: E501 45 | """ 46 | pass 47 | 48 | def test_fileadmin_json_locations_json_get(self): 49 | """Test case for fileadmin_json_locations_json_get 50 | 51 | Liste deutscher Kliniken abrufen # noqa: E501 52 | """ 53 | pass 54 | 55 | def test_fileadmin_json_ops_codes_json_get(self): 56 | """Test case for fileadmin_json_ops_codes_json_get 57 | 58 | Liste der OPS-Codes abrufen # noqa: E501 59 | """ 60 | pass 61 | 62 | def test_fileadmin_json_states_json_get(self): 63 | """Test case for fileadmin_json_states_json_get 64 | 65 | Liste deutscher Bundesländer abrufen # noqa: E501 66 | """ 67 | pass 68 | 69 | def test_krankenhaussuche_krankenhaus_id_get(self): 70 | """Test case for krankenhaussuche_krankenhaus_id_get 71 | 72 | Details zu einem spezifischen Krankenhaus abrufen # noqa: E501 73 | """ 74 | pass 75 | 76 | def test_searchresults_get(self): 77 | """Test case for searchresults_get 78 | 79 | Suche nach Krankenhäusern basierend auf spezifischen Kriterien # noqa: E501 80 | """ 81 | pass 82 | 83 | 84 | if __name__ == "__main__": 85 | unittest.main() 86 | -------------------------------------------------------------------------------- /python-client/deutschland/klinikatlas/models/__init__.py: -------------------------------------------------------------------------------- 1 | # flake8: noqa 2 | 3 | # import all models into this package 4 | # if you have many models here with many references from one model to another this may 5 | # raise a RecursionError 6 | # to avoid this, import only the models that you directly need like: 7 | # from from deutschland.klinikatlas.model.pet import Pet 8 | # or import this package, but before doing it, use: 9 | # import sys 10 | # sys.setrecursionlimit(n) 11 | 12 | from deutschland.klinikatlas.model.fileadmin_json_german_places_json_get200_response_inner import ( 13 | FileadminJsonGermanPlacesJsonGet200ResponseInner, 14 | ) 15 | from deutschland.klinikatlas.model.fileadmin_json_german_states_json_get200_response_inner import ( 16 | FileadminJsonGermanStatesJsonGet200ResponseInner, 17 | ) 18 | from deutschland.klinikatlas.model.fileadmin_json_icd_codes_json_get200_response_inner import ( 19 | FileadminJsonIcdCodesJsonGet200ResponseInner, 20 | ) 21 | from deutschland.klinikatlas.model.fileadmin_json_locations_json_get200_response_inner import ( 22 | FileadminJsonLocationsJsonGet200ResponseInner, 23 | ) 24 | from deutschland.klinikatlas.model.fileadmin_json_ops_codes_json_get200_response_inner import ( 25 | FileadminJsonOpsCodesJsonGet200ResponseInner, 26 | ) 27 | from deutschland.klinikatlas.model.fileadmin_json_states_json_get200_response_inner import ( 28 | FileadminJsonStatesJsonGet200ResponseInner, 29 | ) 30 | from deutschland.klinikatlas.model.searchresults_get200_response import ( 31 | SearchresultsGet200Response, 32 | ) 33 | from deutschland.klinikatlas.model.searchresults_get200_response_filters import ( 34 | SearchresultsGet200ResponseFilters, 35 | ) 36 | from deutschland.klinikatlas.model.searchresults_get200_response_filters_fields_inner import ( 37 | SearchresultsGet200ResponseFiltersFieldsInner, 38 | ) 39 | from deutschland.klinikatlas.model.searchresults_get200_response_filters_fields_inner_options_inner import ( 40 | SearchresultsGet200ResponseFiltersFieldsInnerOptionsInner, 41 | ) 42 | from deutschland.klinikatlas.model.searchresults_get200_response_filters_fields_inner_slider_options_inner import ( 43 | SearchresultsGet200ResponseFiltersFieldsInnerSliderOptionsInner, 44 | ) 45 | from deutschland.klinikatlas.model.searchresults_get200_response_meta_infos import ( 46 | SearchresultsGet200ResponseMetaInfos, 47 | ) 48 | from deutschland.klinikatlas.model.searchresults_get200_response_meta_infos_search_arguments import ( 49 | SearchresultsGet200ResponseMetaInfosSearchArguments, 50 | ) 51 | from deutschland.klinikatlas.model.searchresults_get200_response_results_inner import ( 52 | SearchresultsGet200ResponseResultsInner, 53 | ) 54 | from deutschland.klinikatlas.model.searchresults_get200_response_results_inner_content import ( 55 | SearchresultsGet200ResponseResultsInnerContent, 56 | ) 57 | from deutschland.klinikatlas.model.searchresults_get200_response_results_inner_content_items_inner import ( 58 | SearchresultsGet200ResponseResultsInnerContentItemsInner, 59 | ) 60 | from deutschland.klinikatlas.model.searchresults_get200_response_sortings import ( 61 | SearchresultsGet200ResponseSortings, 62 | ) 63 | from deutschland.klinikatlas.model.searchresults_get200_response_sortings_fields_inner import ( 64 | SearchresultsGet200ResponseSortingsFieldsInner, 65 | ) 66 | from deutschland.klinikatlas.model.searchresults_get200_response_sortings_fields_inner_options_inner import ( 67 | SearchresultsGet200ResponseSortingsFieldsInnerOptionsInner, 68 | ) 69 | -------------------------------------------------------------------------------- /python-client/.openapi-generator/FILES: -------------------------------------------------------------------------------- 1 | .gitignore 2 | .gitlab-ci.yml 3 | .openapi-generator-ignore 4 | .travis.yml 5 | README.md 6 | create_doc.py 7 | docs/DefaultApi.md 8 | docs/FileadminJsonGermanPlacesJsonGet200ResponseInner.md 9 | docs/FileadminJsonGermanStatesJsonGet200ResponseInner.md 10 | docs/FileadminJsonIcdCodesJsonGet200ResponseInner.md 11 | docs/FileadminJsonLocationsJsonGet200ResponseInner.md 12 | docs/FileadminJsonOpsCodesJsonGet200ResponseInner.md 13 | docs/FileadminJsonStatesJsonGet200ResponseInner.md 14 | docs/SearchresultsGet200Response.md 15 | docs/SearchresultsGet200ResponseFilters.md 16 | docs/SearchresultsGet200ResponseFiltersFieldsInner.md 17 | docs/SearchresultsGet200ResponseFiltersFieldsInnerOptionsInner.md 18 | docs/SearchresultsGet200ResponseFiltersFieldsInnerSliderOptionsInner.md 19 | docs/SearchresultsGet200ResponseMetaInfos.md 20 | docs/SearchresultsGet200ResponseMetaInfosSearchArguments.md 21 | docs/SearchresultsGet200ResponseResultsInner.md 22 | docs/SearchresultsGet200ResponseResultsInnerContent.md 23 | docs/SearchresultsGet200ResponseResultsInnerContentItemsInner.md 24 | docs/SearchresultsGet200ResponseSortings.md 25 | docs/SearchresultsGet200ResponseSortingsFieldsInner.md 26 | docs/SearchresultsGet200ResponseSortingsFieldsInnerOptionsInner.md 27 | git_push.sh 28 | klinikatlas/__init__.py 29 | klinikatlas/api/__init__.py 30 | klinikatlas/api/default_api.py 31 | klinikatlas/api_client.py 32 | klinikatlas/apis/__init__.py 33 | klinikatlas/configuration.py 34 | klinikatlas/exceptions.py 35 | klinikatlas/model/__init__.py 36 | klinikatlas/model/fileadmin_json_german_places_json_get200_response_inner.py 37 | klinikatlas/model/fileadmin_json_german_states_json_get200_response_inner.py 38 | klinikatlas/model/fileadmin_json_icd_codes_json_get200_response_inner.py 39 | klinikatlas/model/fileadmin_json_locations_json_get200_response_inner.py 40 | klinikatlas/model/fileadmin_json_ops_codes_json_get200_response_inner.py 41 | klinikatlas/model/fileadmin_json_states_json_get200_response_inner.py 42 | klinikatlas/model/searchresults_get200_response.py 43 | klinikatlas/model/searchresults_get200_response_filters.py 44 | klinikatlas/model/searchresults_get200_response_filters_fields_inner.py 45 | klinikatlas/model/searchresults_get200_response_filters_fields_inner_options_inner.py 46 | klinikatlas/model/searchresults_get200_response_filters_fields_inner_slider_options_inner.py 47 | klinikatlas/model/searchresults_get200_response_meta_infos.py 48 | klinikatlas/model/searchresults_get200_response_meta_infos_search_arguments.py 49 | klinikatlas/model/searchresults_get200_response_results_inner.py 50 | klinikatlas/model/searchresults_get200_response_results_inner_content.py 51 | klinikatlas/model/searchresults_get200_response_results_inner_content_items_inner.py 52 | klinikatlas/model/searchresults_get200_response_sortings.py 53 | klinikatlas/model/searchresults_get200_response_sortings_fields_inner.py 54 | klinikatlas/model/searchresults_get200_response_sortings_fields_inner_options_inner.py 55 | klinikatlas/model_utils.py 56 | klinikatlas/models/__init__.py 57 | klinikatlas/rest.py 58 | pyproject.toml 59 | rename_generated_code.py 60 | requirements.txt 61 | requirements.txt 62 | setup.cfg 63 | setup.py 64 | test-requirements.txt 65 | test/__init__.py 66 | test/test_default_api.py 67 | test/test_fileadmin_json_german_places_json_get200_response_inner.py 68 | test/test_fileadmin_json_german_states_json_get200_response_inner.py 69 | test/test_fileadmin_json_icd_codes_json_get200_response_inner.py 70 | test/test_fileadmin_json_locations_json_get200_response_inner.py 71 | test/test_fileadmin_json_ops_codes_json_get200_response_inner.py 72 | test/test_fileadmin_json_states_json_get200_response_inner.py 73 | test/test_searchresults_get200_response.py 74 | test/test_searchresults_get200_response_filters.py 75 | test/test_searchresults_get200_response_filters_fields_inner.py 76 | test/test_searchresults_get200_response_filters_fields_inner_options_inner.py 77 | test/test_searchresults_get200_response_filters_fields_inner_slider_options_inner.py 78 | test/test_searchresults_get200_response_meta_infos.py 79 | test/test_searchresults_get200_response_meta_infos_search_arguments.py 80 | test/test_searchresults_get200_response_results_inner.py 81 | test/test_searchresults_get200_response_results_inner_content.py 82 | test/test_searchresults_get200_response_results_inner_content_items_inner.py 83 | test/test_searchresults_get200_response_sortings.py 84 | test/test_searchresults_get200_response_sortings_fields_inner.py 85 | test/test_searchresults_get200_response_sortings_fields_inner_options_inner.py 86 | tox.ini 87 | -------------------------------------------------------------------------------- /python-client/deutschland/klinikatlas/exceptions.py: -------------------------------------------------------------------------------- 1 | """ 2 | Bundes-Klinik-Atlas API 3 | 4 | Die API des Bundes-Klinik-Atlas stellt eine Vielzahl von Informationen über deutsche Kliniken und deren Ausstattung bereit. # noqa: E501 5 | 6 | The version of the OpenAPI document: 1.0.0 7 | Contact: poststelle@bmg.bund.de 8 | Generated by: https://openapi-generator.tech 9 | """ 10 | 11 | 12 | class OpenApiException(Exception): 13 | """The base exception class for all OpenAPIExceptions""" 14 | 15 | 16 | class ApiTypeError(OpenApiException, TypeError): 17 | def __init__(self, msg, path_to_item=None, valid_classes=None, key_type=None): 18 | """Raises an exception for TypeErrors 19 | 20 | Args: 21 | msg (str): the exception message 22 | 23 | Keyword Args: 24 | path_to_item (list): a list of keys an indices to get to the 25 | current_item 26 | None if unset 27 | valid_classes (tuple): the primitive classes that current item 28 | should be an instance of 29 | None if unset 30 | key_type (bool): False if our value is a value in a dict 31 | True if it is a key in a dict 32 | False if our item is an item in a list 33 | None if unset 34 | """ 35 | self.path_to_item = path_to_item 36 | self.valid_classes = valid_classes 37 | self.key_type = key_type 38 | full_msg = msg 39 | if path_to_item: 40 | full_msg = "{0} at {1}".format(msg, render_path(path_to_item)) 41 | super(ApiTypeError, self).__init__(full_msg) 42 | 43 | 44 | class ApiValueError(OpenApiException, ValueError): 45 | def __init__(self, msg, path_to_item=None): 46 | """ 47 | Args: 48 | msg (str): the exception message 49 | 50 | Keyword Args: 51 | path_to_item (list) the path to the exception in the 52 | received_data dict. None if unset 53 | """ 54 | 55 | self.path_to_item = path_to_item 56 | full_msg = msg 57 | if path_to_item: 58 | full_msg = "{0} at {1}".format(msg, render_path(path_to_item)) 59 | super(ApiValueError, self).__init__(full_msg) 60 | 61 | 62 | class ApiAttributeError(OpenApiException, AttributeError): 63 | def __init__(self, msg, path_to_item=None): 64 | """ 65 | Raised when an attribute reference or assignment fails. 66 | 67 | Args: 68 | msg (str): the exception message 69 | 70 | Keyword Args: 71 | path_to_item (None/list) the path to the exception in the 72 | received_data dict 73 | """ 74 | self.path_to_item = path_to_item 75 | full_msg = msg 76 | if path_to_item: 77 | full_msg = "{0} at {1}".format(msg, render_path(path_to_item)) 78 | super(ApiAttributeError, self).__init__(full_msg) 79 | 80 | 81 | class ApiKeyError(OpenApiException, KeyError): 82 | def __init__(self, msg, path_to_item=None): 83 | """ 84 | Args: 85 | msg (str): the exception message 86 | 87 | Keyword Args: 88 | path_to_item (None/list) the path to the exception in the 89 | received_data dict 90 | """ 91 | self.path_to_item = path_to_item 92 | full_msg = msg 93 | if path_to_item: 94 | full_msg = "{0} at {1}".format(msg, render_path(path_to_item)) 95 | super(ApiKeyError, self).__init__(full_msg) 96 | 97 | 98 | class ApiException(OpenApiException): 99 | 100 | def __init__(self, status=None, reason=None, http_resp=None): 101 | if http_resp: 102 | self.status = http_resp.status 103 | self.reason = http_resp.reason 104 | self.body = http_resp.data 105 | self.headers = http_resp.getheaders() 106 | else: 107 | self.status = status 108 | self.reason = reason 109 | self.body = None 110 | self.headers = None 111 | 112 | def __str__(self): 113 | """Custom error messages for exception""" 114 | error_message = "Status Code: {0}\n" "Reason: {1}\n".format( 115 | self.status, self.reason 116 | ) 117 | if self.headers: 118 | error_message += "HTTP response headers: {0}\n".format(self.headers) 119 | 120 | if self.body: 121 | error_message += "HTTP response body: {0}\n".format(self.body) 122 | 123 | return error_message 124 | 125 | 126 | class NotFoundException(ApiException): 127 | 128 | def __init__(self, status=None, reason=None, http_resp=None): 129 | super(NotFoundException, self).__init__(status, reason, http_resp) 130 | 131 | 132 | class UnauthorizedException(ApiException): 133 | 134 | def __init__(self, status=None, reason=None, http_resp=None): 135 | super(UnauthorizedException, self).__init__(status, reason, http_resp) 136 | 137 | 138 | class ForbiddenException(ApiException): 139 | 140 | def __init__(self, status=None, reason=None, http_resp=None): 141 | super(ForbiddenException, self).__init__(status, reason, http_resp) 142 | 143 | 144 | class ServiceException(ApiException): 145 | 146 | def __init__(self, status=None, reason=None, http_resp=None): 147 | super(ServiceException, self).__init__(status, reason, http_resp) 148 | 149 | 150 | def render_path(path_to_item): 151 | """Returns a string representation of a path""" 152 | result = "" 153 | for pth in path_to_item: 154 | if isinstance(pth, int): 155 | result += "[{0}]".format(pth) 156 | else: 157 | result += "['{0}']".format(pth) 158 | return result 159 | -------------------------------------------------------------------------------- /python-client/sphinx-docs/source/klinikatlas.model.rst: -------------------------------------------------------------------------------- 1 | klinikatlas.model package 2 | ========================= 3 | 4 | Submodules 5 | ---------- 6 | 7 | klinikatlas.model.fileadmin\_json\_german\_places\_json\_get200\_response\_inner module 8 | --------------------------------------------------------------------------------------- 9 | 10 | .. automodule:: klinikatlas.model.fileadmin_json_german_places_json_get200_response_inner 11 | :members: 12 | :undoc-members: 13 | :show-inheritance: 14 | 15 | klinikatlas.model.fileadmin\_json\_german\_states\_json\_get200\_response\_inner module 16 | --------------------------------------------------------------------------------------- 17 | 18 | .. automodule:: klinikatlas.model.fileadmin_json_german_states_json_get200_response_inner 19 | :members: 20 | :undoc-members: 21 | :show-inheritance: 22 | 23 | klinikatlas.model.fileadmin\_json\_icd\_codes\_json\_get200\_response\_inner module 24 | ----------------------------------------------------------------------------------- 25 | 26 | .. automodule:: klinikatlas.model.fileadmin_json_icd_codes_json_get200_response_inner 27 | :members: 28 | :undoc-members: 29 | :show-inheritance: 30 | 31 | klinikatlas.model.fileadmin\_json\_locations\_json\_get200\_response\_inner module 32 | ---------------------------------------------------------------------------------- 33 | 34 | .. automodule:: klinikatlas.model.fileadmin_json_locations_json_get200_response_inner 35 | :members: 36 | :undoc-members: 37 | :show-inheritance: 38 | 39 | klinikatlas.model.fileadmin\_json\_ops\_codes\_json\_get200\_response\_inner module 40 | ----------------------------------------------------------------------------------- 41 | 42 | .. automodule:: klinikatlas.model.fileadmin_json_ops_codes_json_get200_response_inner 43 | :members: 44 | :undoc-members: 45 | :show-inheritance: 46 | 47 | klinikatlas.model.fileadmin\_json\_states\_json\_get200\_response\_inner module 48 | ------------------------------------------------------------------------------- 49 | 50 | .. automodule:: klinikatlas.model.fileadmin_json_states_json_get200_response_inner 51 | :members: 52 | :undoc-members: 53 | :show-inheritance: 54 | 55 | klinikatlas.model.searchresults\_get200\_response module 56 | -------------------------------------------------------- 57 | 58 | .. automodule:: klinikatlas.model.searchresults_get200_response 59 | :members: 60 | :undoc-members: 61 | :show-inheritance: 62 | 63 | klinikatlas.model.searchresults\_get200\_response\_filters module 64 | ----------------------------------------------------------------- 65 | 66 | .. automodule:: klinikatlas.model.searchresults_get200_response_filters 67 | :members: 68 | :undoc-members: 69 | :show-inheritance: 70 | 71 | klinikatlas.model.searchresults\_get200\_response\_filters\_fields\_inner module 72 | -------------------------------------------------------------------------------- 73 | 74 | .. automodule:: klinikatlas.model.searchresults_get200_response_filters_fields_inner 75 | :members: 76 | :undoc-members: 77 | :show-inheritance: 78 | 79 | klinikatlas.model.searchresults\_get200\_response\_filters\_fields\_inner\_options\_inner module 80 | ------------------------------------------------------------------------------------------------ 81 | 82 | .. automodule:: klinikatlas.model.searchresults_get200_response_filters_fields_inner_options_inner 83 | :members: 84 | :undoc-members: 85 | :show-inheritance: 86 | 87 | klinikatlas.model.searchresults\_get200\_response\_filters\_fields\_inner\_slider\_options\_inner module 88 | -------------------------------------------------------------------------------------------------------- 89 | 90 | .. automodule:: klinikatlas.model.searchresults_get200_response_filters_fields_inner_slider_options_inner 91 | :members: 92 | :undoc-members: 93 | :show-inheritance: 94 | 95 | klinikatlas.model.searchresults\_get200\_response\_meta\_infos module 96 | --------------------------------------------------------------------- 97 | 98 | .. automodule:: klinikatlas.model.searchresults_get200_response_meta_infos 99 | :members: 100 | :undoc-members: 101 | :show-inheritance: 102 | 103 | klinikatlas.model.searchresults\_get200\_response\_meta\_infos\_search\_arguments module 104 | ---------------------------------------------------------------------------------------- 105 | 106 | .. automodule:: klinikatlas.model.searchresults_get200_response_meta_infos_search_arguments 107 | :members: 108 | :undoc-members: 109 | :show-inheritance: 110 | 111 | klinikatlas.model.searchresults\_get200\_response\_results\_inner module 112 | ------------------------------------------------------------------------ 113 | 114 | .. automodule:: klinikatlas.model.searchresults_get200_response_results_inner 115 | :members: 116 | :undoc-members: 117 | :show-inheritance: 118 | 119 | klinikatlas.model.searchresults\_get200\_response\_results\_inner\_content module 120 | --------------------------------------------------------------------------------- 121 | 122 | .. automodule:: klinikatlas.model.searchresults_get200_response_results_inner_content 123 | :members: 124 | :undoc-members: 125 | :show-inheritance: 126 | 127 | klinikatlas.model.searchresults\_get200\_response\_results\_inner\_content\_items\_inner module 128 | ----------------------------------------------------------------------------------------------- 129 | 130 | .. automodule:: klinikatlas.model.searchresults_get200_response_results_inner_content_items_inner 131 | :members: 132 | :undoc-members: 133 | :show-inheritance: 134 | 135 | klinikatlas.model.searchresults\_get200\_response\_sortings module 136 | ------------------------------------------------------------------ 137 | 138 | .. automodule:: klinikatlas.model.searchresults_get200_response_sortings 139 | :members: 140 | :undoc-members: 141 | :show-inheritance: 142 | 143 | klinikatlas.model.searchresults\_get200\_response\_sortings\_fields\_inner module 144 | --------------------------------------------------------------------------------- 145 | 146 | .. automodule:: klinikatlas.model.searchresults_get200_response_sortings_fields_inner 147 | :members: 148 | :undoc-members: 149 | :show-inheritance: 150 | 151 | klinikatlas.model.searchresults\_get200\_response\_sortings\_fields\_inner\_options\_inner module 152 | ------------------------------------------------------------------------------------------------- 153 | 154 | .. automodule:: klinikatlas.model.searchresults_get200_response_sortings_fields_inner_options_inner 155 | :members: 156 | :undoc-members: 157 | :show-inheritance: 158 | 159 | Module contents 160 | --------------- 161 | 162 | .. automodule:: klinikatlas.model 163 | :members: 164 | :undoc-members: 165 | :show-inheritance: 166 | -------------------------------------------------------------------------------- /python-client/README.md: -------------------------------------------------------------------------------- 1 | # klinikatlas 2 | Die API des Bundes-Klinik-Atlas stellt eine Vielzahl von Informationen über deutsche Kliniken und deren Ausstattung bereit. 3 | 4 | This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project: 5 | 6 | - API version: 1.0.0 7 | - Package version: 1.0.0 8 | - Build package: org.openapitools.codegen.languages.PythonClientCodegen 9 | For more information, please visit [https://bundes-klinik-atlas.de](https://bundes-klinik-atlas.de) 10 | 11 | ## Requirements. 12 | 13 | Python >= 3.6 14 | 15 | ## Installation & Usage 16 | ### pip install 17 | 18 | ```sh 19 | pip install deutschland[klinikatlas] 20 | ``` 21 | 22 | ### poetry install 23 | 24 | ```sh 25 | poetry add deutschland -E klinikatlas 26 | ``` 27 | 28 | ### Setuptools 29 | 30 | Install via [Setuptools](http://pypi.python.org/pypi/setuptools). 31 | 32 | ```sh 33 | python setup.py install --user 34 | ``` 35 | (or `sudo python setup.py install` to install the package for all users) 36 | 37 | ## Usage 38 | 39 | Import the package: 40 | ```python 41 | from deutschland import klinikatlas 42 | ``` 43 | 44 | ## Getting Started 45 | 46 | Please follow the [installation procedure](#installation--usage) and then run the following: 47 | 48 | ```python 49 | 50 | import time 51 | from deutschland import klinikatlas 52 | from pprint import pprint 53 | from deutschland.klinikatlas.api import default_api 54 | from deutschland.klinikatlas.model.fileadmin_json_german_places_json_get200_response_inner import FileadminJsonGermanPlacesJsonGet200ResponseInner 55 | from deutschland.klinikatlas.model.fileadmin_json_german_states_json_get200_response_inner import FileadminJsonGermanStatesJsonGet200ResponseInner 56 | from deutschland.klinikatlas.model.fileadmin_json_icd_codes_json_get200_response_inner import FileadminJsonIcdCodesJsonGet200ResponseInner 57 | from deutschland.klinikatlas.model.fileadmin_json_locations_json_get200_response_inner import FileadminJsonLocationsJsonGet200ResponseInner 58 | from deutschland.klinikatlas.model.fileadmin_json_ops_codes_json_get200_response_inner import FileadminJsonOpsCodesJsonGet200ResponseInner 59 | from deutschland.klinikatlas.model.fileadmin_json_states_json_get200_response_inner import FileadminJsonStatesJsonGet200ResponseInner 60 | from deutschland.klinikatlas.model.searchresults_get200_response import SearchresultsGet200Response 61 | # Defining the host is optional and defaults to https://klinikatlas.api.proxy.bund.dev 62 | # See configuration.py for a list of all supported configuration parameters. 63 | configuration = klinikatlas.Configuration( 64 | host = "https://klinikatlas.api.proxy.bund.dev" 65 | ) 66 | 67 | 68 | 69 | # Enter a context with an instance of the API client 70 | with klinikatlas.ApiClient(configuration) as api_client: 71 | # Create an instance of the API class 72 | api_instance = default_api.DefaultApi(api_client) 73 | 74 | try: 75 | # Liste deutscher Orte abrufen 76 | api_response = api_instance.fileadmin_json_german_places_json_get() 77 | pprint(api_response) 78 | except klinikatlas.ApiException as e: 79 | print("Exception when calling DefaultApi->fileadmin_json_german_places_json_get: %s\n" % e) 80 | ``` 81 | 82 | ## Documentation for API Endpoints 83 | 84 | All URIs are relative to *https://klinikatlas.api.proxy.bund.dev* 85 | 86 | Class | Method | HTTP request | Description 87 | ------------ | ------------- | ------------- | ------------- 88 | *DefaultApi* | [**fileadmin_json_german_places_json_get**](docs/DefaultApi.md#fileadmin_json_german_places_json_get) | **GET** /fileadmin/json/german-places.json | Liste deutscher Orte abrufen 89 | *DefaultApi* | [**fileadmin_json_german_states_json_get**](docs/DefaultApi.md#fileadmin_json_german_states_json_get) | **GET** /fileadmin/json/german-states.json | Liste deutscher Bundesländer mit Koordinaten abrufen 90 | *DefaultApi* | [**fileadmin_json_icd_codes_json_get**](docs/DefaultApi.md#fileadmin_json_icd_codes_json_get) | **GET** /fileadmin/json/icd_codes.json | Liste der ICD-Codes abrufen 91 | *DefaultApi* | [**fileadmin_json_locations_json_get**](docs/DefaultApi.md#fileadmin_json_locations_json_get) | **GET** /fileadmin/json/locations.json | Liste deutscher Kliniken abrufen 92 | *DefaultApi* | [**fileadmin_json_ops_codes_json_get**](docs/DefaultApi.md#fileadmin_json_ops_codes_json_get) | **GET** /fileadmin/json/ops_codes.json | Liste der OPS-Codes abrufen 93 | *DefaultApi* | [**fileadmin_json_states_json_get**](docs/DefaultApi.md#fileadmin_json_states_json_get) | **GET** /fileadmin/json/states.json | Liste deutscher Bundesländer abrufen 94 | *DefaultApi* | [**krankenhaussuche_krankenhaus_id_get**](docs/DefaultApi.md#krankenhaussuche_krankenhaus_id_get) | **GET** /krankenhaussuche/krankenhaus/{id}/ | Details zu einem spezifischen Krankenhaus abrufen 95 | *DefaultApi* | [**searchresults_get**](docs/DefaultApi.md#searchresults_get) | **GET** /searchresults/ | Suche nach Krankenhäusern basierend auf spezifischen Kriterien 96 | 97 | 98 | ## Documentation For Models 99 | 100 | - [FileadminJsonGermanPlacesJsonGet200ResponseInner](docs/FileadminJsonGermanPlacesJsonGet200ResponseInner.md) 101 | - [FileadminJsonGermanStatesJsonGet200ResponseInner](docs/FileadminJsonGermanStatesJsonGet200ResponseInner.md) 102 | - [FileadminJsonIcdCodesJsonGet200ResponseInner](docs/FileadminJsonIcdCodesJsonGet200ResponseInner.md) 103 | - [FileadminJsonLocationsJsonGet200ResponseInner](docs/FileadminJsonLocationsJsonGet200ResponseInner.md) 104 | - [FileadminJsonOpsCodesJsonGet200ResponseInner](docs/FileadminJsonOpsCodesJsonGet200ResponseInner.md) 105 | - [FileadminJsonStatesJsonGet200ResponseInner](docs/FileadminJsonStatesJsonGet200ResponseInner.md) 106 | - [SearchresultsGet200Response](docs/SearchresultsGet200Response.md) 107 | - [SearchresultsGet200ResponseFilters](docs/SearchresultsGet200ResponseFilters.md) 108 | - [SearchresultsGet200ResponseFiltersFieldsInner](docs/SearchresultsGet200ResponseFiltersFieldsInner.md) 109 | - [SearchresultsGet200ResponseFiltersFieldsInnerOptionsInner](docs/SearchresultsGet200ResponseFiltersFieldsInnerOptionsInner.md) 110 | - [SearchresultsGet200ResponseFiltersFieldsInnerSliderOptionsInner](docs/SearchresultsGet200ResponseFiltersFieldsInnerSliderOptionsInner.md) 111 | - [SearchresultsGet200ResponseMetaInfos](docs/SearchresultsGet200ResponseMetaInfos.md) 112 | - [SearchresultsGet200ResponseMetaInfosSearchArguments](docs/SearchresultsGet200ResponseMetaInfosSearchArguments.md) 113 | - [SearchresultsGet200ResponseResultsInner](docs/SearchresultsGet200ResponseResultsInner.md) 114 | - [SearchresultsGet200ResponseResultsInnerContent](docs/SearchresultsGet200ResponseResultsInnerContent.md) 115 | - [SearchresultsGet200ResponseResultsInnerContentItemsInner](docs/SearchresultsGet200ResponseResultsInnerContentItemsInner.md) 116 | - [SearchresultsGet200ResponseSortings](docs/SearchresultsGet200ResponseSortings.md) 117 | - [SearchresultsGet200ResponseSortingsFieldsInner](docs/SearchresultsGet200ResponseSortingsFieldsInner.md) 118 | - [SearchresultsGet200ResponseSortingsFieldsInnerOptionsInner](docs/SearchresultsGet200ResponseSortingsFieldsInnerOptionsInner.md) 119 | 120 | 121 | ## Documentation For Authorization 122 | 123 | All endpoints do not require authorization. 124 | 125 | ## Author 126 | 127 | poststelle@bmg.bund.de 128 | 129 | 130 | ## Notes for Large OpenAPI documents 131 | If the OpenAPI document is large, imports in klinikatlas.apis and klinikatlas.models may fail with a 132 | RecursionError indicating the maximum recursion limit has been exceeded. In that case, there are a couple of solutions: 133 | 134 | Solution 1: 135 | Use specific imports for apis and models like: 136 | - `from deutschland.klinikatlas.api.default_api import DefaultApi` 137 | - `from deutschland.klinikatlas.model.pet import Pet` 138 | 139 | Solution 2: 140 | Before importing the package, adjust the maximum recursion limit as shown below: 141 | ``` 142 | import sys 143 | sys.setrecursionlimit(1500) 144 | from deutschland import klinikatlas 145 | from deutschland.klinikatlas.apis import * 146 | from deutschland.klinikatlas.models import * 147 | ``` 148 | 149 | -------------------------------------------------------------------------------- /python-client/deutschland/klinikatlas/model/fileadmin_json_icd_codes_json_get200_response_inner.py: -------------------------------------------------------------------------------- 1 | """ 2 | Bundes-Klinik-Atlas API 3 | 4 | Die API des Bundes-Klinik-Atlas stellt eine Vielzahl von Informationen über deutsche Kliniken und deren Ausstattung bereit. # noqa: E501 5 | 6 | The version of the OpenAPI document: 1.0.0 7 | Contact: poststelle@bmg.bund.de 8 | Generated by: https://openapi-generator.tech 9 | """ 10 | 11 | import re # noqa: F401 12 | import sys # noqa: F401 13 | 14 | from deutschland.klinikatlas.exceptions import ApiAttributeError 15 | from deutschland.klinikatlas.model_utils import ( # noqa: F401 16 | ApiTypeError, 17 | ModelComposed, 18 | ModelNormal, 19 | ModelSimple, 20 | OpenApiModel, 21 | cached_property, 22 | change_keys_js_to_python, 23 | convert_js_args_to_python_args, 24 | date, 25 | datetime, 26 | file_type, 27 | none_type, 28 | validate_get_composed_info, 29 | ) 30 | 31 | 32 | class FileadminJsonIcdCodesJsonGet200ResponseInner(ModelNormal): 33 | """NOTE: This class is auto generated by OpenAPI Generator. 34 | Ref: https://openapi-generator.tech 35 | 36 | Do not edit the class manually. 37 | 38 | Attributes: 39 | allowed_values (dict): The key is the tuple path to the attribute 40 | and the for var_name this is (var_name,). The value is a dict 41 | with a capitalized key describing the allowed value and an allowed 42 | value. These dicts store the allowed enum values. 43 | attribute_map (dict): The key is attribute name 44 | and the value is json key in definition. 45 | discriminator_value_class_map (dict): A dict to go from the discriminator 46 | variable value to the discriminator class name. 47 | validations (dict): The key is the tuple path to the attribute 48 | and the for var_name this is (var_name,). The value is a dict 49 | that stores validations for max_length, min_length, max_items, 50 | min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, 51 | inclusive_minimum, and regex. 52 | additional_properties_type (tuple): A tuple of classes accepted 53 | as additional properties values. 54 | """ 55 | 56 | allowed_values = {} 57 | 58 | validations = {} 59 | 60 | @cached_property 61 | def additional_properties_type(): 62 | """ 63 | This must be a method because a model may have properties that are 64 | of type self, this must run after the class is loaded 65 | """ 66 | return ( 67 | bool, 68 | date, 69 | datetime, 70 | dict, 71 | float, 72 | int, 73 | list, 74 | str, 75 | none_type, 76 | ) # noqa: E501 77 | 78 | _nullable = False 79 | 80 | @cached_property 81 | def openapi_types(): 82 | """ 83 | This must be a method because a model may have properties that are 84 | of type self, this must run after the class is loaded 85 | 86 | Returns 87 | openapi_types (dict): The key is attribute name 88 | and the value is attribute type. 89 | """ 90 | return { 91 | "icdcode": (str,), # noqa: E501 92 | "description": (str,), # noqa: E501 93 | } 94 | 95 | @cached_property 96 | def discriminator(): 97 | return None 98 | 99 | attribute_map = { 100 | "icdcode": "icdcode", # noqa: E501 101 | "description": "description", # noqa: E501 102 | } 103 | 104 | read_only_vars = {} 105 | 106 | _composed_schemas = {} 107 | 108 | @classmethod 109 | @convert_js_args_to_python_args 110 | def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 111 | """FileadminJsonIcdCodesJsonGet200ResponseInner - a model defined in OpenAPI 112 | 113 | Keyword Args: 114 | _check_type (bool): if True, values for parameters in openapi_types 115 | will be type checked and a TypeError will be 116 | raised if the wrong type is input. 117 | Defaults to True 118 | _path_to_item (tuple/list): This is a list of keys or values to 119 | drill down to the model in received_data 120 | when deserializing a response 121 | _spec_property_naming (bool): True if the variable names in the input data 122 | are serialized names, as specified in the OpenAPI document. 123 | False if the variable names in the input data 124 | are pythonic names, e.g. snake case (default) 125 | _configuration (Configuration): the instance to use when 126 | deserializing a file_type parameter. 127 | If passed, type conversion is attempted 128 | If omitted no type conversion is done. 129 | _visited_composed_classes (tuple): This stores a tuple of 130 | classes that we have traveled through so that 131 | if we see that class again we will not use its 132 | discriminator again. 133 | When traveling through a discriminator, the 134 | composed schema that is 135 | is traveled through is added to this set. 136 | For example if Animal has a discriminator 137 | petType and we pass in "Dog", and the class Dog 138 | allOf includes Animal, we move through Animal 139 | once using the discriminator, and pick Dog. 140 | Then in Dog, we will make an instance of the 141 | Animal class but this time we won't travel 142 | through its discriminator because we passed in 143 | _visited_composed_classes = (Animal,) 144 | icdcode (str): [optional] # noqa: E501 145 | description (str): [optional] # noqa: E501 146 | """ 147 | 148 | _check_type = kwargs.pop("_check_type", True) 149 | _spec_property_naming = kwargs.pop("_spec_property_naming", True) 150 | _path_to_item = kwargs.pop("_path_to_item", ()) 151 | _configuration = kwargs.pop("_configuration", None) 152 | _visited_composed_classes = kwargs.pop("_visited_composed_classes", ()) 153 | 154 | self = super(OpenApiModel, cls).__new__(cls) 155 | 156 | if args: 157 | for arg in args: 158 | if isinstance(arg, dict): 159 | kwargs.update(arg) 160 | else: 161 | raise ApiTypeError( 162 | "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." 163 | % ( 164 | args, 165 | self.__class__.__name__, 166 | ), 167 | path_to_item=_path_to_item, 168 | valid_classes=(self.__class__,), 169 | ) 170 | 171 | self._data_store = {} 172 | self._check_type = _check_type 173 | self._spec_property_naming = _spec_property_naming 174 | self._path_to_item = _path_to_item 175 | self._configuration = _configuration 176 | self._visited_composed_classes = _visited_composed_classes + (self.__class__,) 177 | 178 | for var_name, var_value in kwargs.items(): 179 | if ( 180 | var_name not in self.attribute_map 181 | and self._configuration is not None 182 | and self._configuration.discard_unknown_keys 183 | and self.additional_properties_type is None 184 | ): 185 | # discard variable. 186 | continue 187 | setattr(self, var_name, var_value) 188 | return self 189 | 190 | required_properties = set( 191 | [ 192 | "_data_store", 193 | "_check_type", 194 | "_spec_property_naming", 195 | "_path_to_item", 196 | "_configuration", 197 | "_visited_composed_classes", 198 | ] 199 | ) 200 | 201 | @convert_js_args_to_python_args 202 | def __init__(self, *args, **kwargs): # noqa: E501 203 | """FileadminJsonIcdCodesJsonGet200ResponseInner - a model defined in OpenAPI 204 | 205 | Keyword Args: 206 | _check_type (bool): if True, values for parameters in openapi_types 207 | will be type checked and a TypeError will be 208 | raised if the wrong type is input. 209 | Defaults to True 210 | _path_to_item (tuple/list): This is a list of keys or values to 211 | drill down to the model in received_data 212 | when deserializing a response 213 | _spec_property_naming (bool): True if the variable names in the input data 214 | are serialized names, as specified in the OpenAPI document. 215 | False if the variable names in the input data 216 | are pythonic names, e.g. snake case (default) 217 | _configuration (Configuration): the instance to use when 218 | deserializing a file_type parameter. 219 | If passed, type conversion is attempted 220 | If omitted no type conversion is done. 221 | _visited_composed_classes (tuple): This stores a tuple of 222 | classes that we have traveled through so that 223 | if we see that class again we will not use its 224 | discriminator again. 225 | When traveling through a discriminator, the 226 | composed schema that is 227 | is traveled through is added to this set. 228 | For example if Animal has a discriminator 229 | petType and we pass in "Dog", and the class Dog 230 | allOf includes Animal, we move through Animal 231 | once using the discriminator, and pick Dog. 232 | Then in Dog, we will make an instance of the 233 | Animal class but this time we won't travel 234 | through its discriminator because we passed in 235 | _visited_composed_classes = (Animal,) 236 | icdcode (str): [optional] # noqa: E501 237 | description (str): [optional] # noqa: E501 238 | """ 239 | 240 | _check_type = kwargs.pop("_check_type", True) 241 | _spec_property_naming = kwargs.pop("_spec_property_naming", False) 242 | _path_to_item = kwargs.pop("_path_to_item", ()) 243 | _configuration = kwargs.pop("_configuration", None) 244 | _visited_composed_classes = kwargs.pop("_visited_composed_classes", ()) 245 | 246 | if args: 247 | for arg in args: 248 | if isinstance(arg, dict): 249 | kwargs.update(arg) 250 | else: 251 | raise ApiTypeError( 252 | "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." 253 | % ( 254 | args, 255 | self.__class__.__name__, 256 | ), 257 | path_to_item=_path_to_item, 258 | valid_classes=(self.__class__,), 259 | ) 260 | 261 | self._data_store = {} 262 | self._check_type = _check_type 263 | self._spec_property_naming = _spec_property_naming 264 | self._path_to_item = _path_to_item 265 | self._configuration = _configuration 266 | self._visited_composed_classes = _visited_composed_classes + (self.__class__,) 267 | 268 | for var_name, var_value in kwargs.items(): 269 | if ( 270 | var_name not in self.attribute_map 271 | and self._configuration is not None 272 | and self._configuration.discard_unknown_keys 273 | and self.additional_properties_type is None 274 | ): 275 | # discard variable. 276 | continue 277 | setattr(self, var_name, var_value) 278 | if var_name in self.read_only_vars: 279 | raise ApiAttributeError( 280 | f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " 281 | f"class with read only attributes." 282 | ) 283 | -------------------------------------------------------------------------------- /python-client/deutschland/klinikatlas/model/fileadmin_json_ops_codes_json_get200_response_inner.py: -------------------------------------------------------------------------------- 1 | """ 2 | Bundes-Klinik-Atlas API 3 | 4 | Die API des Bundes-Klinik-Atlas stellt eine Vielzahl von Informationen über deutsche Kliniken und deren Ausstattung bereit. # noqa: E501 5 | 6 | The version of the OpenAPI document: 1.0.0 7 | Contact: poststelle@bmg.bund.de 8 | Generated by: https://openapi-generator.tech 9 | """ 10 | 11 | import re # noqa: F401 12 | import sys # noqa: F401 13 | 14 | from deutschland.klinikatlas.exceptions import ApiAttributeError 15 | from deutschland.klinikatlas.model_utils import ( # noqa: F401 16 | ApiTypeError, 17 | ModelComposed, 18 | ModelNormal, 19 | ModelSimple, 20 | OpenApiModel, 21 | cached_property, 22 | change_keys_js_to_python, 23 | convert_js_args_to_python_args, 24 | date, 25 | datetime, 26 | file_type, 27 | none_type, 28 | validate_get_composed_info, 29 | ) 30 | 31 | 32 | class FileadminJsonOpsCodesJsonGet200ResponseInner(ModelNormal): 33 | """NOTE: This class is auto generated by OpenAPI Generator. 34 | Ref: https://openapi-generator.tech 35 | 36 | Do not edit the class manually. 37 | 38 | Attributes: 39 | allowed_values (dict): The key is the tuple path to the attribute 40 | and the for var_name this is (var_name,). The value is a dict 41 | with a capitalized key describing the allowed value and an allowed 42 | value. These dicts store the allowed enum values. 43 | attribute_map (dict): The key is attribute name 44 | and the value is json key in definition. 45 | discriminator_value_class_map (dict): A dict to go from the discriminator 46 | variable value to the discriminator class name. 47 | validations (dict): The key is the tuple path to the attribute 48 | and the for var_name this is (var_name,). The value is a dict 49 | that stores validations for max_length, min_length, max_items, 50 | min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, 51 | inclusive_minimum, and regex. 52 | additional_properties_type (tuple): A tuple of classes accepted 53 | as additional properties values. 54 | """ 55 | 56 | allowed_values = {} 57 | 58 | validations = {} 59 | 60 | @cached_property 61 | def additional_properties_type(): 62 | """ 63 | This must be a method because a model may have properties that are 64 | of type self, this must run after the class is loaded 65 | """ 66 | return ( 67 | bool, 68 | date, 69 | datetime, 70 | dict, 71 | float, 72 | int, 73 | list, 74 | str, 75 | none_type, 76 | ) # noqa: E501 77 | 78 | _nullable = False 79 | 80 | @cached_property 81 | def openapi_types(): 82 | """ 83 | This must be a method because a model may have properties that are 84 | of type self, this must run after the class is loaded 85 | 86 | Returns 87 | openapi_types (dict): The key is attribute name 88 | and the value is attribute type. 89 | """ 90 | return { 91 | "opscode": (str,), # noqa: E501 92 | "description": (str,), # noqa: E501 93 | } 94 | 95 | @cached_property 96 | def discriminator(): 97 | return None 98 | 99 | attribute_map = { 100 | "opscode": "opscode", # noqa: E501 101 | "description": "description", # noqa: E501 102 | } 103 | 104 | read_only_vars = {} 105 | 106 | _composed_schemas = {} 107 | 108 | @classmethod 109 | @convert_js_args_to_python_args 110 | def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 111 | """FileadminJsonOpsCodesJsonGet200ResponseInner - a model defined in OpenAPI 112 | 113 | Keyword Args: 114 | _check_type (bool): if True, values for parameters in openapi_types 115 | will be type checked and a TypeError will be 116 | raised if the wrong type is input. 117 | Defaults to True 118 | _path_to_item (tuple/list): This is a list of keys or values to 119 | drill down to the model in received_data 120 | when deserializing a response 121 | _spec_property_naming (bool): True if the variable names in the input data 122 | are serialized names, as specified in the OpenAPI document. 123 | False if the variable names in the input data 124 | are pythonic names, e.g. snake case (default) 125 | _configuration (Configuration): the instance to use when 126 | deserializing a file_type parameter. 127 | If passed, type conversion is attempted 128 | If omitted no type conversion is done. 129 | _visited_composed_classes (tuple): This stores a tuple of 130 | classes that we have traveled through so that 131 | if we see that class again we will not use its 132 | discriminator again. 133 | When traveling through a discriminator, the 134 | composed schema that is 135 | is traveled through is added to this set. 136 | For example if Animal has a discriminator 137 | petType and we pass in "Dog", and the class Dog 138 | allOf includes Animal, we move through Animal 139 | once using the discriminator, and pick Dog. 140 | Then in Dog, we will make an instance of the 141 | Animal class but this time we won't travel 142 | through its discriminator because we passed in 143 | _visited_composed_classes = (Animal,) 144 | opscode (str): [optional] # noqa: E501 145 | description (str): [optional] # noqa: E501 146 | """ 147 | 148 | _check_type = kwargs.pop("_check_type", True) 149 | _spec_property_naming = kwargs.pop("_spec_property_naming", True) 150 | _path_to_item = kwargs.pop("_path_to_item", ()) 151 | _configuration = kwargs.pop("_configuration", None) 152 | _visited_composed_classes = kwargs.pop("_visited_composed_classes", ()) 153 | 154 | self = super(OpenApiModel, cls).__new__(cls) 155 | 156 | if args: 157 | for arg in args: 158 | if isinstance(arg, dict): 159 | kwargs.update(arg) 160 | else: 161 | raise ApiTypeError( 162 | "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." 163 | % ( 164 | args, 165 | self.__class__.__name__, 166 | ), 167 | path_to_item=_path_to_item, 168 | valid_classes=(self.__class__,), 169 | ) 170 | 171 | self._data_store = {} 172 | self._check_type = _check_type 173 | self._spec_property_naming = _spec_property_naming 174 | self._path_to_item = _path_to_item 175 | self._configuration = _configuration 176 | self._visited_composed_classes = _visited_composed_classes + (self.__class__,) 177 | 178 | for var_name, var_value in kwargs.items(): 179 | if ( 180 | var_name not in self.attribute_map 181 | and self._configuration is not None 182 | and self._configuration.discard_unknown_keys 183 | and self.additional_properties_type is None 184 | ): 185 | # discard variable. 186 | continue 187 | setattr(self, var_name, var_value) 188 | return self 189 | 190 | required_properties = set( 191 | [ 192 | "_data_store", 193 | "_check_type", 194 | "_spec_property_naming", 195 | "_path_to_item", 196 | "_configuration", 197 | "_visited_composed_classes", 198 | ] 199 | ) 200 | 201 | @convert_js_args_to_python_args 202 | def __init__(self, *args, **kwargs): # noqa: E501 203 | """FileadminJsonOpsCodesJsonGet200ResponseInner - a model defined in OpenAPI 204 | 205 | Keyword Args: 206 | _check_type (bool): if True, values for parameters in openapi_types 207 | will be type checked and a TypeError will be 208 | raised if the wrong type is input. 209 | Defaults to True 210 | _path_to_item (tuple/list): This is a list of keys or values to 211 | drill down to the model in received_data 212 | when deserializing a response 213 | _spec_property_naming (bool): True if the variable names in the input data 214 | are serialized names, as specified in the OpenAPI document. 215 | False if the variable names in the input data 216 | are pythonic names, e.g. snake case (default) 217 | _configuration (Configuration): the instance to use when 218 | deserializing a file_type parameter. 219 | If passed, type conversion is attempted 220 | If omitted no type conversion is done. 221 | _visited_composed_classes (tuple): This stores a tuple of 222 | classes that we have traveled through so that 223 | if we see that class again we will not use its 224 | discriminator again. 225 | When traveling through a discriminator, the 226 | composed schema that is 227 | is traveled through is added to this set. 228 | For example if Animal has a discriminator 229 | petType and we pass in "Dog", and the class Dog 230 | allOf includes Animal, we move through Animal 231 | once using the discriminator, and pick Dog. 232 | Then in Dog, we will make an instance of the 233 | Animal class but this time we won't travel 234 | through its discriminator because we passed in 235 | _visited_composed_classes = (Animal,) 236 | opscode (str): [optional] # noqa: E501 237 | description (str): [optional] # noqa: E501 238 | """ 239 | 240 | _check_type = kwargs.pop("_check_type", True) 241 | _spec_property_naming = kwargs.pop("_spec_property_naming", False) 242 | _path_to_item = kwargs.pop("_path_to_item", ()) 243 | _configuration = kwargs.pop("_configuration", None) 244 | _visited_composed_classes = kwargs.pop("_visited_composed_classes", ()) 245 | 246 | if args: 247 | for arg in args: 248 | if isinstance(arg, dict): 249 | kwargs.update(arg) 250 | else: 251 | raise ApiTypeError( 252 | "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." 253 | % ( 254 | args, 255 | self.__class__.__name__, 256 | ), 257 | path_to_item=_path_to_item, 258 | valid_classes=(self.__class__,), 259 | ) 260 | 261 | self._data_store = {} 262 | self._check_type = _check_type 263 | self._spec_property_naming = _spec_property_naming 264 | self._path_to_item = _path_to_item 265 | self._configuration = _configuration 266 | self._visited_composed_classes = _visited_composed_classes + (self.__class__,) 267 | 268 | for var_name, var_value in kwargs.items(): 269 | if ( 270 | var_name not in self.attribute_map 271 | and self._configuration is not None 272 | and self._configuration.discard_unknown_keys 273 | and self.additional_properties_type is None 274 | ): 275 | # discard variable. 276 | continue 277 | setattr(self, var_name, var_value) 278 | if var_name in self.read_only_vars: 279 | raise ApiAttributeError( 280 | f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " 281 | f"class with read only attributes." 282 | ) 283 | -------------------------------------------------------------------------------- /python-client/deutschland/klinikatlas/model/searchresults_get200_response_filters_fields_inner_slider_options_inner.py: -------------------------------------------------------------------------------- 1 | """ 2 | Bundes-Klinik-Atlas API 3 | 4 | Die API des Bundes-Klinik-Atlas stellt eine Vielzahl von Informationen über deutsche Kliniken und deren Ausstattung bereit. # noqa: E501 5 | 6 | The version of the OpenAPI document: 1.0.0 7 | Contact: poststelle@bmg.bund.de 8 | Generated by: https://openapi-generator.tech 9 | """ 10 | 11 | import re # noqa: F401 12 | import sys # noqa: F401 13 | 14 | from deutschland.klinikatlas.exceptions import ApiAttributeError 15 | from deutschland.klinikatlas.model_utils import ( # noqa: F401 16 | ApiTypeError, 17 | ModelComposed, 18 | ModelNormal, 19 | ModelSimple, 20 | OpenApiModel, 21 | cached_property, 22 | change_keys_js_to_python, 23 | convert_js_args_to_python_args, 24 | date, 25 | datetime, 26 | file_type, 27 | none_type, 28 | validate_get_composed_info, 29 | ) 30 | 31 | 32 | class SearchresultsGet200ResponseFiltersFieldsInnerSliderOptionsInner(ModelNormal): 33 | """NOTE: This class is auto generated by OpenAPI Generator. 34 | Ref: https://openapi-generator.tech 35 | 36 | Do not edit the class manually. 37 | 38 | Attributes: 39 | allowed_values (dict): The key is the tuple path to the attribute 40 | and the for var_name this is (var_name,). The value is a dict 41 | with a capitalized key describing the allowed value and an allowed 42 | value. These dicts store the allowed enum values. 43 | attribute_map (dict): The key is attribute name 44 | and the value is json key in definition. 45 | discriminator_value_class_map (dict): A dict to go from the discriminator 46 | variable value to the discriminator class name. 47 | validations (dict): The key is the tuple path to the attribute 48 | and the for var_name this is (var_name,). The value is a dict 49 | that stores validations for max_length, min_length, max_items, 50 | min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, 51 | inclusive_minimum, and regex. 52 | additional_properties_type (tuple): A tuple of classes accepted 53 | as additional properties values. 54 | """ 55 | 56 | allowed_values = {} 57 | 58 | validations = {} 59 | 60 | @cached_property 61 | def additional_properties_type(): 62 | """ 63 | This must be a method because a model may have properties that are 64 | of type self, this must run after the class is loaded 65 | """ 66 | return ( 67 | bool, 68 | date, 69 | datetime, 70 | dict, 71 | float, 72 | int, 73 | list, 74 | str, 75 | none_type, 76 | ) # noqa: E501 77 | 78 | _nullable = False 79 | 80 | @cached_property 81 | def openapi_types(): 82 | """ 83 | This must be a method because a model may have properties that are 84 | of type self, this must run after the class is loaded 85 | 86 | Returns 87 | openapi_types (dict): The key is attribute name 88 | and the value is attribute type. 89 | """ 90 | return { 91 | "key": (str,), # noqa: E501 92 | "value": (str,), # noqa: E501 93 | } 94 | 95 | @cached_property 96 | def discriminator(): 97 | return None 98 | 99 | attribute_map = { 100 | "key": "key", # noqa: E501 101 | "value": "value", # noqa: E501 102 | } 103 | 104 | read_only_vars = {} 105 | 106 | _composed_schemas = {} 107 | 108 | @classmethod 109 | @convert_js_args_to_python_args 110 | def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 111 | """SearchresultsGet200ResponseFiltersFieldsInnerSliderOptionsInner - a model defined in OpenAPI 112 | 113 | Keyword Args: 114 | _check_type (bool): if True, values for parameters in openapi_types 115 | will be type checked and a TypeError will be 116 | raised if the wrong type is input. 117 | Defaults to True 118 | _path_to_item (tuple/list): This is a list of keys or values to 119 | drill down to the model in received_data 120 | when deserializing a response 121 | _spec_property_naming (bool): True if the variable names in the input data 122 | are serialized names, as specified in the OpenAPI document. 123 | False if the variable names in the input data 124 | are pythonic names, e.g. snake case (default) 125 | _configuration (Configuration): the instance to use when 126 | deserializing a file_type parameter. 127 | If passed, type conversion is attempted 128 | If omitted no type conversion is done. 129 | _visited_composed_classes (tuple): This stores a tuple of 130 | classes that we have traveled through so that 131 | if we see that class again we will not use its 132 | discriminator again. 133 | When traveling through a discriminator, the 134 | composed schema that is 135 | is traveled through is added to this set. 136 | For example if Animal has a discriminator 137 | petType and we pass in "Dog", and the class Dog 138 | allOf includes Animal, we move through Animal 139 | once using the discriminator, and pick Dog. 140 | Then in Dog, we will make an instance of the 141 | Animal class but this time we won't travel 142 | through its discriminator because we passed in 143 | _visited_composed_classes = (Animal,) 144 | key (str): [optional] # noqa: E501 145 | value (str): [optional] # noqa: E501 146 | """ 147 | 148 | _check_type = kwargs.pop("_check_type", True) 149 | _spec_property_naming = kwargs.pop("_spec_property_naming", True) 150 | _path_to_item = kwargs.pop("_path_to_item", ()) 151 | _configuration = kwargs.pop("_configuration", None) 152 | _visited_composed_classes = kwargs.pop("_visited_composed_classes", ()) 153 | 154 | self = super(OpenApiModel, cls).__new__(cls) 155 | 156 | if args: 157 | for arg in args: 158 | if isinstance(arg, dict): 159 | kwargs.update(arg) 160 | else: 161 | raise ApiTypeError( 162 | "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." 163 | % ( 164 | args, 165 | self.__class__.__name__, 166 | ), 167 | path_to_item=_path_to_item, 168 | valid_classes=(self.__class__,), 169 | ) 170 | 171 | self._data_store = {} 172 | self._check_type = _check_type 173 | self._spec_property_naming = _spec_property_naming 174 | self._path_to_item = _path_to_item 175 | self._configuration = _configuration 176 | self._visited_composed_classes = _visited_composed_classes + (self.__class__,) 177 | 178 | for var_name, var_value in kwargs.items(): 179 | if ( 180 | var_name not in self.attribute_map 181 | and self._configuration is not None 182 | and self._configuration.discard_unknown_keys 183 | and self.additional_properties_type is None 184 | ): 185 | # discard variable. 186 | continue 187 | setattr(self, var_name, var_value) 188 | return self 189 | 190 | required_properties = set( 191 | [ 192 | "_data_store", 193 | "_check_type", 194 | "_spec_property_naming", 195 | "_path_to_item", 196 | "_configuration", 197 | "_visited_composed_classes", 198 | ] 199 | ) 200 | 201 | @convert_js_args_to_python_args 202 | def __init__(self, *args, **kwargs): # noqa: E501 203 | """SearchresultsGet200ResponseFiltersFieldsInnerSliderOptionsInner - a model defined in OpenAPI 204 | 205 | Keyword Args: 206 | _check_type (bool): if True, values for parameters in openapi_types 207 | will be type checked and a TypeError will be 208 | raised if the wrong type is input. 209 | Defaults to True 210 | _path_to_item (tuple/list): This is a list of keys or values to 211 | drill down to the model in received_data 212 | when deserializing a response 213 | _spec_property_naming (bool): True if the variable names in the input data 214 | are serialized names, as specified in the OpenAPI document. 215 | False if the variable names in the input data 216 | are pythonic names, e.g. snake case (default) 217 | _configuration (Configuration): the instance to use when 218 | deserializing a file_type parameter. 219 | If passed, type conversion is attempted 220 | If omitted no type conversion is done. 221 | _visited_composed_classes (tuple): This stores a tuple of 222 | classes that we have traveled through so that 223 | if we see that class again we will not use its 224 | discriminator again. 225 | When traveling through a discriminator, the 226 | composed schema that is 227 | is traveled through is added to this set. 228 | For example if Animal has a discriminator 229 | petType and we pass in "Dog", and the class Dog 230 | allOf includes Animal, we move through Animal 231 | once using the discriminator, and pick Dog. 232 | Then in Dog, we will make an instance of the 233 | Animal class but this time we won't travel 234 | through its discriminator because we passed in 235 | _visited_composed_classes = (Animal,) 236 | key (str): [optional] # noqa: E501 237 | value (str): [optional] # noqa: E501 238 | """ 239 | 240 | _check_type = kwargs.pop("_check_type", True) 241 | _spec_property_naming = kwargs.pop("_spec_property_naming", False) 242 | _path_to_item = kwargs.pop("_path_to_item", ()) 243 | _configuration = kwargs.pop("_configuration", None) 244 | _visited_composed_classes = kwargs.pop("_visited_composed_classes", ()) 245 | 246 | if args: 247 | for arg in args: 248 | if isinstance(arg, dict): 249 | kwargs.update(arg) 250 | else: 251 | raise ApiTypeError( 252 | "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." 253 | % ( 254 | args, 255 | self.__class__.__name__, 256 | ), 257 | path_to_item=_path_to_item, 258 | valid_classes=(self.__class__,), 259 | ) 260 | 261 | self._data_store = {} 262 | self._check_type = _check_type 263 | self._spec_property_naming = _spec_property_naming 264 | self._path_to_item = _path_to_item 265 | self._configuration = _configuration 266 | self._visited_composed_classes = _visited_composed_classes + (self.__class__,) 267 | 268 | for var_name, var_value in kwargs.items(): 269 | if ( 270 | var_name not in self.attribute_map 271 | and self._configuration is not None 272 | and self._configuration.discard_unknown_keys 273 | and self.additional_properties_type is None 274 | ): 275 | # discard variable. 276 | continue 277 | setattr(self, var_name, var_value) 278 | if var_name in self.read_only_vars: 279 | raise ApiAttributeError( 280 | f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " 281 | f"class with read only attributes." 282 | ) 283 | -------------------------------------------------------------------------------- /python-client/deutschland/klinikatlas/model/fileadmin_json_german_states_json_get200_response_inner.py: -------------------------------------------------------------------------------- 1 | """ 2 | Bundes-Klinik-Atlas API 3 | 4 | Die API des Bundes-Klinik-Atlas stellt eine Vielzahl von Informationen über deutsche Kliniken und deren Ausstattung bereit. # noqa: E501 5 | 6 | The version of the OpenAPI document: 1.0.0 7 | Contact: poststelle@bmg.bund.de 8 | Generated by: https://openapi-generator.tech 9 | """ 10 | 11 | import re # noqa: F401 12 | import sys # noqa: F401 13 | 14 | from deutschland.klinikatlas.exceptions import ApiAttributeError 15 | from deutschland.klinikatlas.model_utils import ( # noqa: F401 16 | ApiTypeError, 17 | ModelComposed, 18 | ModelNormal, 19 | ModelSimple, 20 | OpenApiModel, 21 | cached_property, 22 | change_keys_js_to_python, 23 | convert_js_args_to_python_args, 24 | date, 25 | datetime, 26 | file_type, 27 | none_type, 28 | validate_get_composed_info, 29 | ) 30 | 31 | 32 | class FileadminJsonGermanStatesJsonGet200ResponseInner(ModelNormal): 33 | """NOTE: This class is auto generated by OpenAPI Generator. 34 | Ref: https://openapi-generator.tech 35 | 36 | Do not edit the class manually. 37 | 38 | Attributes: 39 | allowed_values (dict): The key is the tuple path to the attribute 40 | and the for var_name this is (var_name,). The value is a dict 41 | with a capitalized key describing the allowed value and an allowed 42 | value. These dicts store the allowed enum values. 43 | attribute_map (dict): The key is attribute name 44 | and the value is json key in definition. 45 | discriminator_value_class_map (dict): A dict to go from the discriminator 46 | variable value to the discriminator class name. 47 | validations (dict): The key is the tuple path to the attribute 48 | and the for var_name this is (var_name,). The value is a dict 49 | that stores validations for max_length, min_length, max_items, 50 | min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, 51 | inclusive_minimum, and regex. 52 | additional_properties_type (tuple): A tuple of classes accepted 53 | as additional properties values. 54 | """ 55 | 56 | allowed_values = {} 57 | 58 | validations = {} 59 | 60 | @cached_property 61 | def additional_properties_type(): 62 | """ 63 | This must be a method because a model may have properties that are 64 | of type self, this must run after the class is loaded 65 | """ 66 | return ( 67 | bool, 68 | date, 69 | datetime, 70 | dict, 71 | float, 72 | int, 73 | list, 74 | str, 75 | none_type, 76 | ) # noqa: E501 77 | 78 | _nullable = False 79 | 80 | @cached_property 81 | def openapi_types(): 82 | """ 83 | This must be a method because a model may have properties that are 84 | of type self, this must run after the class is loaded 85 | 86 | Returns 87 | openapi_types (dict): The key is attribute name 88 | and the value is attribute type. 89 | """ 90 | return { 91 | "state": (str,), # noqa: E501 92 | "lat": (str,), # noqa: E501 93 | "lon": (str,), # noqa: E501 94 | } 95 | 96 | @cached_property 97 | def discriminator(): 98 | return None 99 | 100 | attribute_map = { 101 | "state": "state", # noqa: E501 102 | "lat": "lat", # noqa: E501 103 | "lon": "lon", # noqa: E501 104 | } 105 | 106 | read_only_vars = {} 107 | 108 | _composed_schemas = {} 109 | 110 | @classmethod 111 | @convert_js_args_to_python_args 112 | def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 113 | """FileadminJsonGermanStatesJsonGet200ResponseInner - a model defined in OpenAPI 114 | 115 | Keyword Args: 116 | _check_type (bool): if True, values for parameters in openapi_types 117 | will be type checked and a TypeError will be 118 | raised if the wrong type is input. 119 | Defaults to True 120 | _path_to_item (tuple/list): This is a list of keys or values to 121 | drill down to the model in received_data 122 | when deserializing a response 123 | _spec_property_naming (bool): True if the variable names in the input data 124 | are serialized names, as specified in the OpenAPI document. 125 | False if the variable names in the input data 126 | are pythonic names, e.g. snake case (default) 127 | _configuration (Configuration): the instance to use when 128 | deserializing a file_type parameter. 129 | If passed, type conversion is attempted 130 | If omitted no type conversion is done. 131 | _visited_composed_classes (tuple): This stores a tuple of 132 | classes that we have traveled through so that 133 | if we see that class again we will not use its 134 | discriminator again. 135 | When traveling through a discriminator, the 136 | composed schema that is 137 | is traveled through is added to this set. 138 | For example if Animal has a discriminator 139 | petType and we pass in "Dog", and the class Dog 140 | allOf includes Animal, we move through Animal 141 | once using the discriminator, and pick Dog. 142 | Then in Dog, we will make an instance of the 143 | Animal class but this time we won't travel 144 | through its discriminator because we passed in 145 | _visited_composed_classes = (Animal,) 146 | state (str): [optional] # noqa: E501 147 | lat (str): [optional] # noqa: E501 148 | lon (str): [optional] # noqa: E501 149 | """ 150 | 151 | _check_type = kwargs.pop("_check_type", True) 152 | _spec_property_naming = kwargs.pop("_spec_property_naming", True) 153 | _path_to_item = kwargs.pop("_path_to_item", ()) 154 | _configuration = kwargs.pop("_configuration", None) 155 | _visited_composed_classes = kwargs.pop("_visited_composed_classes", ()) 156 | 157 | self = super(OpenApiModel, cls).__new__(cls) 158 | 159 | if args: 160 | for arg in args: 161 | if isinstance(arg, dict): 162 | kwargs.update(arg) 163 | else: 164 | raise ApiTypeError( 165 | "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." 166 | % ( 167 | args, 168 | self.__class__.__name__, 169 | ), 170 | path_to_item=_path_to_item, 171 | valid_classes=(self.__class__,), 172 | ) 173 | 174 | self._data_store = {} 175 | self._check_type = _check_type 176 | self._spec_property_naming = _spec_property_naming 177 | self._path_to_item = _path_to_item 178 | self._configuration = _configuration 179 | self._visited_composed_classes = _visited_composed_classes + (self.__class__,) 180 | 181 | for var_name, var_value in kwargs.items(): 182 | if ( 183 | var_name not in self.attribute_map 184 | and self._configuration is not None 185 | and self._configuration.discard_unknown_keys 186 | and self.additional_properties_type is None 187 | ): 188 | # discard variable. 189 | continue 190 | setattr(self, var_name, var_value) 191 | return self 192 | 193 | required_properties = set( 194 | [ 195 | "_data_store", 196 | "_check_type", 197 | "_spec_property_naming", 198 | "_path_to_item", 199 | "_configuration", 200 | "_visited_composed_classes", 201 | ] 202 | ) 203 | 204 | @convert_js_args_to_python_args 205 | def __init__(self, *args, **kwargs): # noqa: E501 206 | """FileadminJsonGermanStatesJsonGet200ResponseInner - a model defined in OpenAPI 207 | 208 | Keyword Args: 209 | _check_type (bool): if True, values for parameters in openapi_types 210 | will be type checked and a TypeError will be 211 | raised if the wrong type is input. 212 | Defaults to True 213 | _path_to_item (tuple/list): This is a list of keys or values to 214 | drill down to the model in received_data 215 | when deserializing a response 216 | _spec_property_naming (bool): True if the variable names in the input data 217 | are serialized names, as specified in the OpenAPI document. 218 | False if the variable names in the input data 219 | are pythonic names, e.g. snake case (default) 220 | _configuration (Configuration): the instance to use when 221 | deserializing a file_type parameter. 222 | If passed, type conversion is attempted 223 | If omitted no type conversion is done. 224 | _visited_composed_classes (tuple): This stores a tuple of 225 | classes that we have traveled through so that 226 | if we see that class again we will not use its 227 | discriminator again. 228 | When traveling through a discriminator, the 229 | composed schema that is 230 | is traveled through is added to this set. 231 | For example if Animal has a discriminator 232 | petType and we pass in "Dog", and the class Dog 233 | allOf includes Animal, we move through Animal 234 | once using the discriminator, and pick Dog. 235 | Then in Dog, we will make an instance of the 236 | Animal class but this time we won't travel 237 | through its discriminator because we passed in 238 | _visited_composed_classes = (Animal,) 239 | state (str): [optional] # noqa: E501 240 | lat (str): [optional] # noqa: E501 241 | lon (str): [optional] # noqa: E501 242 | """ 243 | 244 | _check_type = kwargs.pop("_check_type", True) 245 | _spec_property_naming = kwargs.pop("_spec_property_naming", False) 246 | _path_to_item = kwargs.pop("_path_to_item", ()) 247 | _configuration = kwargs.pop("_configuration", None) 248 | _visited_composed_classes = kwargs.pop("_visited_composed_classes", ()) 249 | 250 | if args: 251 | for arg in args: 252 | if isinstance(arg, dict): 253 | kwargs.update(arg) 254 | else: 255 | raise ApiTypeError( 256 | "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." 257 | % ( 258 | args, 259 | self.__class__.__name__, 260 | ), 261 | path_to_item=_path_to_item, 262 | valid_classes=(self.__class__,), 263 | ) 264 | 265 | self._data_store = {} 266 | self._check_type = _check_type 267 | self._spec_property_naming = _spec_property_naming 268 | self._path_to_item = _path_to_item 269 | self._configuration = _configuration 270 | self._visited_composed_classes = _visited_composed_classes + (self.__class__,) 271 | 272 | for var_name, var_value in kwargs.items(): 273 | if ( 274 | var_name not in self.attribute_map 275 | and self._configuration is not None 276 | and self._configuration.discard_unknown_keys 277 | and self.additional_properties_type is None 278 | ): 279 | # discard variable. 280 | continue 281 | setattr(self, var_name, var_value) 282 | if var_name in self.read_only_vars: 283 | raise ApiAttributeError( 284 | f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " 285 | f"class with read only attributes." 286 | ) 287 | -------------------------------------------------------------------------------- /python-client/deutschland/klinikatlas/model/searchresults_get200_response_filters.py: -------------------------------------------------------------------------------- 1 | """ 2 | Bundes-Klinik-Atlas API 3 | 4 | Die API des Bundes-Klinik-Atlas stellt eine Vielzahl von Informationen über deutsche Kliniken und deren Ausstattung bereit. # noqa: E501 5 | 6 | The version of the OpenAPI document: 1.0.0 7 | Contact: poststelle@bmg.bund.de 8 | Generated by: https://openapi-generator.tech 9 | """ 10 | 11 | import re # noqa: F401 12 | import sys # noqa: F401 13 | 14 | from deutschland.klinikatlas.exceptions import ApiAttributeError 15 | from deutschland.klinikatlas.model_utils import ( # noqa: F401 16 | ApiTypeError, 17 | ModelComposed, 18 | ModelNormal, 19 | ModelSimple, 20 | OpenApiModel, 21 | cached_property, 22 | change_keys_js_to_python, 23 | convert_js_args_to_python_args, 24 | date, 25 | datetime, 26 | file_type, 27 | none_type, 28 | validate_get_composed_info, 29 | ) 30 | 31 | 32 | def lazy_import(): 33 | from deutschland.klinikatlas.model.searchresults_get200_response_filters_fields_inner import ( 34 | SearchresultsGet200ResponseFiltersFieldsInner, 35 | ) 36 | 37 | globals()[ 38 | "SearchresultsGet200ResponseFiltersFieldsInner" 39 | ] = SearchresultsGet200ResponseFiltersFieldsInner 40 | 41 | 42 | class SearchresultsGet200ResponseFilters(ModelNormal): 43 | """NOTE: This class is auto generated by OpenAPI Generator. 44 | Ref: https://openapi-generator.tech 45 | 46 | Do not edit the class manually. 47 | 48 | Attributes: 49 | allowed_values (dict): The key is the tuple path to the attribute 50 | and the for var_name this is (var_name,). The value is a dict 51 | with a capitalized key describing the allowed value and an allowed 52 | value. These dicts store the allowed enum values. 53 | attribute_map (dict): The key is attribute name 54 | and the value is json key in definition. 55 | discriminator_value_class_map (dict): A dict to go from the discriminator 56 | variable value to the discriminator class name. 57 | validations (dict): The key is the tuple path to the attribute 58 | and the for var_name this is (var_name,). The value is a dict 59 | that stores validations for max_length, min_length, max_items, 60 | min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, 61 | inclusive_minimum, and regex. 62 | additional_properties_type (tuple): A tuple of classes accepted 63 | as additional properties values. 64 | """ 65 | 66 | allowed_values = {} 67 | 68 | validations = {} 69 | 70 | @cached_property 71 | def additional_properties_type(): 72 | """ 73 | This must be a method because a model may have properties that are 74 | of type self, this must run after the class is loaded 75 | """ 76 | lazy_import() 77 | return ( 78 | bool, 79 | date, 80 | datetime, 81 | dict, 82 | float, 83 | int, 84 | list, 85 | str, 86 | none_type, 87 | ) # noqa: E501 88 | 89 | _nullable = False 90 | 91 | @cached_property 92 | def openapi_types(): 93 | """ 94 | This must be a method because a model may have properties that are 95 | of type self, this must run after the class is loaded 96 | 97 | Returns 98 | openapi_types (dict): The key is attribute name 99 | and the value is attribute type. 100 | """ 101 | lazy_import() 102 | return { 103 | "fields": ([SearchresultsGet200ResponseFiltersFieldsInner],), # noqa: E501 104 | } 105 | 106 | @cached_property 107 | def discriminator(): 108 | return None 109 | 110 | attribute_map = { 111 | "fields": "fields", # noqa: E501 112 | } 113 | 114 | read_only_vars = {} 115 | 116 | _composed_schemas = {} 117 | 118 | @classmethod 119 | @convert_js_args_to_python_args 120 | def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 121 | """SearchresultsGet200ResponseFilters - a model defined in OpenAPI 122 | 123 | Keyword Args: 124 | _check_type (bool): if True, values for parameters in openapi_types 125 | will be type checked and a TypeError will be 126 | raised if the wrong type is input. 127 | Defaults to True 128 | _path_to_item (tuple/list): This is a list of keys or values to 129 | drill down to the model in received_data 130 | when deserializing a response 131 | _spec_property_naming (bool): True if the variable names in the input data 132 | are serialized names, as specified in the OpenAPI document. 133 | False if the variable names in the input data 134 | are pythonic names, e.g. snake case (default) 135 | _configuration (Configuration): the instance to use when 136 | deserializing a file_type parameter. 137 | If passed, type conversion is attempted 138 | If omitted no type conversion is done. 139 | _visited_composed_classes (tuple): This stores a tuple of 140 | classes that we have traveled through so that 141 | if we see that class again we will not use its 142 | discriminator again. 143 | When traveling through a discriminator, the 144 | composed schema that is 145 | is traveled through is added to this set. 146 | For example if Animal has a discriminator 147 | petType and we pass in "Dog", and the class Dog 148 | allOf includes Animal, we move through Animal 149 | once using the discriminator, and pick Dog. 150 | Then in Dog, we will make an instance of the 151 | Animal class but this time we won't travel 152 | through its discriminator because we passed in 153 | _visited_composed_classes = (Animal,) 154 | fields ([SearchresultsGet200ResponseFiltersFieldsInner]): [optional] # noqa: E501 155 | """ 156 | 157 | _check_type = kwargs.pop("_check_type", True) 158 | _spec_property_naming = kwargs.pop("_spec_property_naming", True) 159 | _path_to_item = kwargs.pop("_path_to_item", ()) 160 | _configuration = kwargs.pop("_configuration", None) 161 | _visited_composed_classes = kwargs.pop("_visited_composed_classes", ()) 162 | 163 | self = super(OpenApiModel, cls).__new__(cls) 164 | 165 | if args: 166 | for arg in args: 167 | if isinstance(arg, dict): 168 | kwargs.update(arg) 169 | else: 170 | raise ApiTypeError( 171 | "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." 172 | % ( 173 | args, 174 | self.__class__.__name__, 175 | ), 176 | path_to_item=_path_to_item, 177 | valid_classes=(self.__class__,), 178 | ) 179 | 180 | self._data_store = {} 181 | self._check_type = _check_type 182 | self._spec_property_naming = _spec_property_naming 183 | self._path_to_item = _path_to_item 184 | self._configuration = _configuration 185 | self._visited_composed_classes = _visited_composed_classes + (self.__class__,) 186 | 187 | for var_name, var_value in kwargs.items(): 188 | if ( 189 | var_name not in self.attribute_map 190 | and self._configuration is not None 191 | and self._configuration.discard_unknown_keys 192 | and self.additional_properties_type is None 193 | ): 194 | # discard variable. 195 | continue 196 | setattr(self, var_name, var_value) 197 | return self 198 | 199 | required_properties = set( 200 | [ 201 | "_data_store", 202 | "_check_type", 203 | "_spec_property_naming", 204 | "_path_to_item", 205 | "_configuration", 206 | "_visited_composed_classes", 207 | ] 208 | ) 209 | 210 | @convert_js_args_to_python_args 211 | def __init__(self, *args, **kwargs): # noqa: E501 212 | """SearchresultsGet200ResponseFilters - a model defined in OpenAPI 213 | 214 | Keyword Args: 215 | _check_type (bool): if True, values for parameters in openapi_types 216 | will be type checked and a TypeError will be 217 | raised if the wrong type is input. 218 | Defaults to True 219 | _path_to_item (tuple/list): This is a list of keys or values to 220 | drill down to the model in received_data 221 | when deserializing a response 222 | _spec_property_naming (bool): True if the variable names in the input data 223 | are serialized names, as specified in the OpenAPI document. 224 | False if the variable names in the input data 225 | are pythonic names, e.g. snake case (default) 226 | _configuration (Configuration): the instance to use when 227 | deserializing a file_type parameter. 228 | If passed, type conversion is attempted 229 | If omitted no type conversion is done. 230 | _visited_composed_classes (tuple): This stores a tuple of 231 | classes that we have traveled through so that 232 | if we see that class again we will not use its 233 | discriminator again. 234 | When traveling through a discriminator, the 235 | composed schema that is 236 | is traveled through is added to this set. 237 | For example if Animal has a discriminator 238 | petType and we pass in "Dog", and the class Dog 239 | allOf includes Animal, we move through Animal 240 | once using the discriminator, and pick Dog. 241 | Then in Dog, we will make an instance of the 242 | Animal class but this time we won't travel 243 | through its discriminator because we passed in 244 | _visited_composed_classes = (Animal,) 245 | fields ([SearchresultsGet200ResponseFiltersFieldsInner]): [optional] # noqa: E501 246 | """ 247 | 248 | _check_type = kwargs.pop("_check_type", True) 249 | _spec_property_naming = kwargs.pop("_spec_property_naming", False) 250 | _path_to_item = kwargs.pop("_path_to_item", ()) 251 | _configuration = kwargs.pop("_configuration", None) 252 | _visited_composed_classes = kwargs.pop("_visited_composed_classes", ()) 253 | 254 | if args: 255 | for arg in args: 256 | if isinstance(arg, dict): 257 | kwargs.update(arg) 258 | else: 259 | raise ApiTypeError( 260 | "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." 261 | % ( 262 | args, 263 | self.__class__.__name__, 264 | ), 265 | path_to_item=_path_to_item, 266 | valid_classes=(self.__class__,), 267 | ) 268 | 269 | self._data_store = {} 270 | self._check_type = _check_type 271 | self._spec_property_naming = _spec_property_naming 272 | self._path_to_item = _path_to_item 273 | self._configuration = _configuration 274 | self._visited_composed_classes = _visited_composed_classes + (self.__class__,) 275 | 276 | for var_name, var_value in kwargs.items(): 277 | if ( 278 | var_name not in self.attribute_map 279 | and self._configuration is not None 280 | and self._configuration.discard_unknown_keys 281 | and self.additional_properties_type is None 282 | ): 283 | # discard variable. 284 | continue 285 | setattr(self, var_name, var_value) 286 | if var_name in self.read_only_vars: 287 | raise ApiAttributeError( 288 | f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " 289 | f"class with read only attributes." 290 | ) 291 | -------------------------------------------------------------------------------- /python-client/deutschland/klinikatlas/model/searchresults_get200_response_sortings.py: -------------------------------------------------------------------------------- 1 | """ 2 | Bundes-Klinik-Atlas API 3 | 4 | Die API des Bundes-Klinik-Atlas stellt eine Vielzahl von Informationen über deutsche Kliniken und deren Ausstattung bereit. # noqa: E501 5 | 6 | The version of the OpenAPI document: 1.0.0 7 | Contact: poststelle@bmg.bund.de 8 | Generated by: https://openapi-generator.tech 9 | """ 10 | 11 | import re # noqa: F401 12 | import sys # noqa: F401 13 | 14 | from deutschland.klinikatlas.exceptions import ApiAttributeError 15 | from deutschland.klinikatlas.model_utils import ( # noqa: F401 16 | ApiTypeError, 17 | ModelComposed, 18 | ModelNormal, 19 | ModelSimple, 20 | OpenApiModel, 21 | cached_property, 22 | change_keys_js_to_python, 23 | convert_js_args_to_python_args, 24 | date, 25 | datetime, 26 | file_type, 27 | none_type, 28 | validate_get_composed_info, 29 | ) 30 | 31 | 32 | def lazy_import(): 33 | from deutschland.klinikatlas.model.searchresults_get200_response_sortings_fields_inner import ( 34 | SearchresultsGet200ResponseSortingsFieldsInner, 35 | ) 36 | 37 | globals()[ 38 | "SearchresultsGet200ResponseSortingsFieldsInner" 39 | ] = SearchresultsGet200ResponseSortingsFieldsInner 40 | 41 | 42 | class SearchresultsGet200ResponseSortings(ModelNormal): 43 | """NOTE: This class is auto generated by OpenAPI Generator. 44 | Ref: https://openapi-generator.tech 45 | 46 | Do not edit the class manually. 47 | 48 | Attributes: 49 | allowed_values (dict): The key is the tuple path to the attribute 50 | and the for var_name this is (var_name,). The value is a dict 51 | with a capitalized key describing the allowed value and an allowed 52 | value. These dicts store the allowed enum values. 53 | attribute_map (dict): The key is attribute name 54 | and the value is json key in definition. 55 | discriminator_value_class_map (dict): A dict to go from the discriminator 56 | variable value to the discriminator class name. 57 | validations (dict): The key is the tuple path to the attribute 58 | and the for var_name this is (var_name,). The value is a dict 59 | that stores validations for max_length, min_length, max_items, 60 | min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, 61 | inclusive_minimum, and regex. 62 | additional_properties_type (tuple): A tuple of classes accepted 63 | as additional properties values. 64 | """ 65 | 66 | allowed_values = {} 67 | 68 | validations = {} 69 | 70 | @cached_property 71 | def additional_properties_type(): 72 | """ 73 | This must be a method because a model may have properties that are 74 | of type self, this must run after the class is loaded 75 | """ 76 | lazy_import() 77 | return ( 78 | bool, 79 | date, 80 | datetime, 81 | dict, 82 | float, 83 | int, 84 | list, 85 | str, 86 | none_type, 87 | ) # noqa: E501 88 | 89 | _nullable = False 90 | 91 | @cached_property 92 | def openapi_types(): 93 | """ 94 | This must be a method because a model may have properties that are 95 | of type self, this must run after the class is loaded 96 | 97 | Returns 98 | openapi_types (dict): The key is attribute name 99 | and the value is attribute type. 100 | """ 101 | lazy_import() 102 | return { 103 | "fields": ([SearchresultsGet200ResponseSortingsFieldsInner],), # noqa: E501 104 | } 105 | 106 | @cached_property 107 | def discriminator(): 108 | return None 109 | 110 | attribute_map = { 111 | "fields": "fields", # noqa: E501 112 | } 113 | 114 | read_only_vars = {} 115 | 116 | _composed_schemas = {} 117 | 118 | @classmethod 119 | @convert_js_args_to_python_args 120 | def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 121 | """SearchresultsGet200ResponseSortings - a model defined in OpenAPI 122 | 123 | Keyword Args: 124 | _check_type (bool): if True, values for parameters in openapi_types 125 | will be type checked and a TypeError will be 126 | raised if the wrong type is input. 127 | Defaults to True 128 | _path_to_item (tuple/list): This is a list of keys or values to 129 | drill down to the model in received_data 130 | when deserializing a response 131 | _spec_property_naming (bool): True if the variable names in the input data 132 | are serialized names, as specified in the OpenAPI document. 133 | False if the variable names in the input data 134 | are pythonic names, e.g. snake case (default) 135 | _configuration (Configuration): the instance to use when 136 | deserializing a file_type parameter. 137 | If passed, type conversion is attempted 138 | If omitted no type conversion is done. 139 | _visited_composed_classes (tuple): This stores a tuple of 140 | classes that we have traveled through so that 141 | if we see that class again we will not use its 142 | discriminator again. 143 | When traveling through a discriminator, the 144 | composed schema that is 145 | is traveled through is added to this set. 146 | For example if Animal has a discriminator 147 | petType and we pass in "Dog", and the class Dog 148 | allOf includes Animal, we move through Animal 149 | once using the discriminator, and pick Dog. 150 | Then in Dog, we will make an instance of the 151 | Animal class but this time we won't travel 152 | through its discriminator because we passed in 153 | _visited_composed_classes = (Animal,) 154 | fields ([SearchresultsGet200ResponseSortingsFieldsInner]): [optional] # noqa: E501 155 | """ 156 | 157 | _check_type = kwargs.pop("_check_type", True) 158 | _spec_property_naming = kwargs.pop("_spec_property_naming", True) 159 | _path_to_item = kwargs.pop("_path_to_item", ()) 160 | _configuration = kwargs.pop("_configuration", None) 161 | _visited_composed_classes = kwargs.pop("_visited_composed_classes", ()) 162 | 163 | self = super(OpenApiModel, cls).__new__(cls) 164 | 165 | if args: 166 | for arg in args: 167 | if isinstance(arg, dict): 168 | kwargs.update(arg) 169 | else: 170 | raise ApiTypeError( 171 | "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." 172 | % ( 173 | args, 174 | self.__class__.__name__, 175 | ), 176 | path_to_item=_path_to_item, 177 | valid_classes=(self.__class__,), 178 | ) 179 | 180 | self._data_store = {} 181 | self._check_type = _check_type 182 | self._spec_property_naming = _spec_property_naming 183 | self._path_to_item = _path_to_item 184 | self._configuration = _configuration 185 | self._visited_composed_classes = _visited_composed_classes + (self.__class__,) 186 | 187 | for var_name, var_value in kwargs.items(): 188 | if ( 189 | var_name not in self.attribute_map 190 | and self._configuration is not None 191 | and self._configuration.discard_unknown_keys 192 | and self.additional_properties_type is None 193 | ): 194 | # discard variable. 195 | continue 196 | setattr(self, var_name, var_value) 197 | return self 198 | 199 | required_properties = set( 200 | [ 201 | "_data_store", 202 | "_check_type", 203 | "_spec_property_naming", 204 | "_path_to_item", 205 | "_configuration", 206 | "_visited_composed_classes", 207 | ] 208 | ) 209 | 210 | @convert_js_args_to_python_args 211 | def __init__(self, *args, **kwargs): # noqa: E501 212 | """SearchresultsGet200ResponseSortings - a model defined in OpenAPI 213 | 214 | Keyword Args: 215 | _check_type (bool): if True, values for parameters in openapi_types 216 | will be type checked and a TypeError will be 217 | raised if the wrong type is input. 218 | Defaults to True 219 | _path_to_item (tuple/list): This is a list of keys or values to 220 | drill down to the model in received_data 221 | when deserializing a response 222 | _spec_property_naming (bool): True if the variable names in the input data 223 | are serialized names, as specified in the OpenAPI document. 224 | False if the variable names in the input data 225 | are pythonic names, e.g. snake case (default) 226 | _configuration (Configuration): the instance to use when 227 | deserializing a file_type parameter. 228 | If passed, type conversion is attempted 229 | If omitted no type conversion is done. 230 | _visited_composed_classes (tuple): This stores a tuple of 231 | classes that we have traveled through so that 232 | if we see that class again we will not use its 233 | discriminator again. 234 | When traveling through a discriminator, the 235 | composed schema that is 236 | is traveled through is added to this set. 237 | For example if Animal has a discriminator 238 | petType and we pass in "Dog", and the class Dog 239 | allOf includes Animal, we move through Animal 240 | once using the discriminator, and pick Dog. 241 | Then in Dog, we will make an instance of the 242 | Animal class but this time we won't travel 243 | through its discriminator because we passed in 244 | _visited_composed_classes = (Animal,) 245 | fields ([SearchresultsGet200ResponseSortingsFieldsInner]): [optional] # noqa: E501 246 | """ 247 | 248 | _check_type = kwargs.pop("_check_type", True) 249 | _spec_property_naming = kwargs.pop("_spec_property_naming", False) 250 | _path_to_item = kwargs.pop("_path_to_item", ()) 251 | _configuration = kwargs.pop("_configuration", None) 252 | _visited_composed_classes = kwargs.pop("_visited_composed_classes", ()) 253 | 254 | if args: 255 | for arg in args: 256 | if isinstance(arg, dict): 257 | kwargs.update(arg) 258 | else: 259 | raise ApiTypeError( 260 | "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." 261 | % ( 262 | args, 263 | self.__class__.__name__, 264 | ), 265 | path_to_item=_path_to_item, 266 | valid_classes=(self.__class__,), 267 | ) 268 | 269 | self._data_store = {} 270 | self._check_type = _check_type 271 | self._spec_property_naming = _spec_property_naming 272 | self._path_to_item = _path_to_item 273 | self._configuration = _configuration 274 | self._visited_composed_classes = _visited_composed_classes + (self.__class__,) 275 | 276 | for var_name, var_value in kwargs.items(): 277 | if ( 278 | var_name not in self.attribute_map 279 | and self._configuration is not None 280 | and self._configuration.discard_unknown_keys 281 | and self.additional_properties_type is None 282 | ): 283 | # discard variable. 284 | continue 285 | setattr(self, var_name, var_value) 286 | if var_name in self.read_only_vars: 287 | raise ApiAttributeError( 288 | f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " 289 | f"class with read only attributes." 290 | ) 291 | -------------------------------------------------------------------------------- /python-client/deutschland/klinikatlas/model/searchresults_get200_response_results_inner_content.py: -------------------------------------------------------------------------------- 1 | """ 2 | Bundes-Klinik-Atlas API 3 | 4 | Die API des Bundes-Klinik-Atlas stellt eine Vielzahl von Informationen über deutsche Kliniken und deren Ausstattung bereit. # noqa: E501 5 | 6 | The version of the OpenAPI document: 1.0.0 7 | Contact: poststelle@bmg.bund.de 8 | Generated by: https://openapi-generator.tech 9 | """ 10 | 11 | import re # noqa: F401 12 | import sys # noqa: F401 13 | 14 | from deutschland.klinikatlas.exceptions import ApiAttributeError 15 | from deutschland.klinikatlas.model_utils import ( # noqa: F401 16 | ApiTypeError, 17 | ModelComposed, 18 | ModelNormal, 19 | ModelSimple, 20 | OpenApiModel, 21 | cached_property, 22 | change_keys_js_to_python, 23 | convert_js_args_to_python_args, 24 | date, 25 | datetime, 26 | file_type, 27 | none_type, 28 | validate_get_composed_info, 29 | ) 30 | 31 | 32 | def lazy_import(): 33 | from deutschland.klinikatlas.model.searchresults_get200_response_results_inner_content_items_inner import ( 34 | SearchresultsGet200ResponseResultsInnerContentItemsInner, 35 | ) 36 | 37 | globals()[ 38 | "SearchresultsGet200ResponseResultsInnerContentItemsInner" 39 | ] = SearchresultsGet200ResponseResultsInnerContentItemsInner 40 | 41 | 42 | class SearchresultsGet200ResponseResultsInnerContent(ModelNormal): 43 | """NOTE: This class is auto generated by OpenAPI Generator. 44 | Ref: https://openapi-generator.tech 45 | 46 | Do not edit the class manually. 47 | 48 | Attributes: 49 | allowed_values (dict): The key is the tuple path to the attribute 50 | and the for var_name this is (var_name,). The value is a dict 51 | with a capitalized key describing the allowed value and an allowed 52 | value. These dicts store the allowed enum values. 53 | attribute_map (dict): The key is attribute name 54 | and the value is json key in definition. 55 | discriminator_value_class_map (dict): A dict to go from the discriminator 56 | variable value to the discriminator class name. 57 | validations (dict): The key is the tuple path to the attribute 58 | and the for var_name this is (var_name,). The value is a dict 59 | that stores validations for max_length, min_length, max_items, 60 | min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, 61 | inclusive_minimum, and regex. 62 | additional_properties_type (tuple): A tuple of classes accepted 63 | as additional properties values. 64 | """ 65 | 66 | allowed_values = {} 67 | 68 | validations = {} 69 | 70 | @cached_property 71 | def additional_properties_type(): 72 | """ 73 | This must be a method because a model may have properties that are 74 | of type self, this must run after the class is loaded 75 | """ 76 | lazy_import() 77 | return ( 78 | bool, 79 | date, 80 | datetime, 81 | dict, 82 | float, 83 | int, 84 | list, 85 | str, 86 | none_type, 87 | ) # noqa: E501 88 | 89 | _nullable = False 90 | 91 | @cached_property 92 | def openapi_types(): 93 | """ 94 | This must be a method because a model may have properties that are 95 | of type self, this must run after the class is loaded 96 | 97 | Returns 98 | openapi_types (dict): The key is attribute name 99 | and the value is attribute type. 100 | """ 101 | lazy_import() 102 | return { 103 | "items": ( 104 | [SearchresultsGet200ResponseResultsInnerContentItemsInner], 105 | ), # noqa: E501 106 | } 107 | 108 | @cached_property 109 | def discriminator(): 110 | return None 111 | 112 | attribute_map = { 113 | "items": "items", # noqa: E501 114 | } 115 | 116 | read_only_vars = {} 117 | 118 | _composed_schemas = {} 119 | 120 | @classmethod 121 | @convert_js_args_to_python_args 122 | def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 123 | """SearchresultsGet200ResponseResultsInnerContent - a model defined in OpenAPI 124 | 125 | Keyword Args: 126 | _check_type (bool): if True, values for parameters in openapi_types 127 | will be type checked and a TypeError will be 128 | raised if the wrong type is input. 129 | Defaults to True 130 | _path_to_item (tuple/list): This is a list of keys or values to 131 | drill down to the model in received_data 132 | when deserializing a response 133 | _spec_property_naming (bool): True if the variable names in the input data 134 | are serialized names, as specified in the OpenAPI document. 135 | False if the variable names in the input data 136 | are pythonic names, e.g. snake case (default) 137 | _configuration (Configuration): the instance to use when 138 | deserializing a file_type parameter. 139 | If passed, type conversion is attempted 140 | If omitted no type conversion is done. 141 | _visited_composed_classes (tuple): This stores a tuple of 142 | classes that we have traveled through so that 143 | if we see that class again we will not use its 144 | discriminator again. 145 | When traveling through a discriminator, the 146 | composed schema that is 147 | is traveled through is added to this set. 148 | For example if Animal has a discriminator 149 | petType and we pass in "Dog", and the class Dog 150 | allOf includes Animal, we move through Animal 151 | once using the discriminator, and pick Dog. 152 | Then in Dog, we will make an instance of the 153 | Animal class but this time we won't travel 154 | through its discriminator because we passed in 155 | _visited_composed_classes = (Animal,) 156 | items ([SearchresultsGet200ResponseResultsInnerContentItemsInner]): [optional] # noqa: E501 157 | """ 158 | 159 | _check_type = kwargs.pop("_check_type", True) 160 | _spec_property_naming = kwargs.pop("_spec_property_naming", True) 161 | _path_to_item = kwargs.pop("_path_to_item", ()) 162 | _configuration = kwargs.pop("_configuration", None) 163 | _visited_composed_classes = kwargs.pop("_visited_composed_classes", ()) 164 | 165 | self = super(OpenApiModel, cls).__new__(cls) 166 | 167 | if args: 168 | for arg in args: 169 | if isinstance(arg, dict): 170 | kwargs.update(arg) 171 | else: 172 | raise ApiTypeError( 173 | "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." 174 | % ( 175 | args, 176 | self.__class__.__name__, 177 | ), 178 | path_to_item=_path_to_item, 179 | valid_classes=(self.__class__,), 180 | ) 181 | 182 | self._data_store = {} 183 | self._check_type = _check_type 184 | self._spec_property_naming = _spec_property_naming 185 | self._path_to_item = _path_to_item 186 | self._configuration = _configuration 187 | self._visited_composed_classes = _visited_composed_classes + (self.__class__,) 188 | 189 | for var_name, var_value in kwargs.items(): 190 | if ( 191 | var_name not in self.attribute_map 192 | and self._configuration is not None 193 | and self._configuration.discard_unknown_keys 194 | and self.additional_properties_type is None 195 | ): 196 | # discard variable. 197 | continue 198 | setattr(self, var_name, var_value) 199 | return self 200 | 201 | required_properties = set( 202 | [ 203 | "_data_store", 204 | "_check_type", 205 | "_spec_property_naming", 206 | "_path_to_item", 207 | "_configuration", 208 | "_visited_composed_classes", 209 | ] 210 | ) 211 | 212 | @convert_js_args_to_python_args 213 | def __init__(self, *args, **kwargs): # noqa: E501 214 | """SearchresultsGet200ResponseResultsInnerContent - a model defined in OpenAPI 215 | 216 | Keyword Args: 217 | _check_type (bool): if True, values for parameters in openapi_types 218 | will be type checked and a TypeError will be 219 | raised if the wrong type is input. 220 | Defaults to True 221 | _path_to_item (tuple/list): This is a list of keys or values to 222 | drill down to the model in received_data 223 | when deserializing a response 224 | _spec_property_naming (bool): True if the variable names in the input data 225 | are serialized names, as specified in the OpenAPI document. 226 | False if the variable names in the input data 227 | are pythonic names, e.g. snake case (default) 228 | _configuration (Configuration): the instance to use when 229 | deserializing a file_type parameter. 230 | If passed, type conversion is attempted 231 | If omitted no type conversion is done. 232 | _visited_composed_classes (tuple): This stores a tuple of 233 | classes that we have traveled through so that 234 | if we see that class again we will not use its 235 | discriminator again. 236 | When traveling through a discriminator, the 237 | composed schema that is 238 | is traveled through is added to this set. 239 | For example if Animal has a discriminator 240 | petType and we pass in "Dog", and the class Dog 241 | allOf includes Animal, we move through Animal 242 | once using the discriminator, and pick Dog. 243 | Then in Dog, we will make an instance of the 244 | Animal class but this time we won't travel 245 | through its discriminator because we passed in 246 | _visited_composed_classes = (Animal,) 247 | items ([SearchresultsGet200ResponseResultsInnerContentItemsInner]): [optional] # noqa: E501 248 | """ 249 | 250 | _check_type = kwargs.pop("_check_type", True) 251 | _spec_property_naming = kwargs.pop("_spec_property_naming", False) 252 | _path_to_item = kwargs.pop("_path_to_item", ()) 253 | _configuration = kwargs.pop("_configuration", None) 254 | _visited_composed_classes = kwargs.pop("_visited_composed_classes", ()) 255 | 256 | if args: 257 | for arg in args: 258 | if isinstance(arg, dict): 259 | kwargs.update(arg) 260 | else: 261 | raise ApiTypeError( 262 | "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." 263 | % ( 264 | args, 265 | self.__class__.__name__, 266 | ), 267 | path_to_item=_path_to_item, 268 | valid_classes=(self.__class__,), 269 | ) 270 | 271 | self._data_store = {} 272 | self._check_type = _check_type 273 | self._spec_property_naming = _spec_property_naming 274 | self._path_to_item = _path_to_item 275 | self._configuration = _configuration 276 | self._visited_composed_classes = _visited_composed_classes + (self.__class__,) 277 | 278 | for var_name, var_value in kwargs.items(): 279 | if ( 280 | var_name not in self.attribute_map 281 | and self._configuration is not None 282 | and self._configuration.discard_unknown_keys 283 | and self.additional_properties_type is None 284 | ): 285 | # discard variable. 286 | continue 287 | setattr(self, var_name, var_value) 288 | if var_name in self.read_only_vars: 289 | raise ApiAttributeError( 290 | f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " 291 | f"class with read only attributes." 292 | ) 293 | -------------------------------------------------------------------------------- /python-client/deutschland/klinikatlas/model/searchresults_get200_response_sortings_fields_inner_options_inner.py: -------------------------------------------------------------------------------- 1 | """ 2 | Bundes-Klinik-Atlas API 3 | 4 | Die API des Bundes-Klinik-Atlas stellt eine Vielzahl von Informationen über deutsche Kliniken und deren Ausstattung bereit. # noqa: E501 5 | 6 | The version of the OpenAPI document: 1.0.0 7 | Contact: poststelle@bmg.bund.de 8 | Generated by: https://openapi-generator.tech 9 | """ 10 | 11 | import re # noqa: F401 12 | import sys # noqa: F401 13 | 14 | from deutschland.klinikatlas.exceptions import ApiAttributeError 15 | from deutschland.klinikatlas.model_utils import ( # noqa: F401 16 | ApiTypeError, 17 | ModelComposed, 18 | ModelNormal, 19 | ModelSimple, 20 | OpenApiModel, 21 | cached_property, 22 | change_keys_js_to_python, 23 | convert_js_args_to_python_args, 24 | date, 25 | datetime, 26 | file_type, 27 | none_type, 28 | validate_get_composed_info, 29 | ) 30 | 31 | 32 | class SearchresultsGet200ResponseSortingsFieldsInnerOptionsInner(ModelNormal): 33 | """NOTE: This class is auto generated by OpenAPI Generator. 34 | Ref: https://openapi-generator.tech 35 | 36 | Do not edit the class manually. 37 | 38 | Attributes: 39 | allowed_values (dict): The key is the tuple path to the attribute 40 | and the for var_name this is (var_name,). The value is a dict 41 | with a capitalized key describing the allowed value and an allowed 42 | value. These dicts store the allowed enum values. 43 | attribute_map (dict): The key is attribute name 44 | and the value is json key in definition. 45 | discriminator_value_class_map (dict): A dict to go from the discriminator 46 | variable value to the discriminator class name. 47 | validations (dict): The key is the tuple path to the attribute 48 | and the for var_name this is (var_name,). The value is a dict 49 | that stores validations for max_length, min_length, max_items, 50 | min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, 51 | inclusive_minimum, and regex. 52 | additional_properties_type (tuple): A tuple of classes accepted 53 | as additional properties values. 54 | """ 55 | 56 | allowed_values = {} 57 | 58 | validations = {} 59 | 60 | @cached_property 61 | def additional_properties_type(): 62 | """ 63 | This must be a method because a model may have properties that are 64 | of type self, this must run after the class is loaded 65 | """ 66 | return ( 67 | bool, 68 | date, 69 | datetime, 70 | dict, 71 | float, 72 | int, 73 | list, 74 | str, 75 | none_type, 76 | ) # noqa: E501 77 | 78 | _nullable = False 79 | 80 | @cached_property 81 | def openapi_types(): 82 | """ 83 | This must be a method because a model may have properties that are 84 | of type self, this must run after the class is loaded 85 | 86 | Returns 87 | openapi_types (dict): The key is attribute name 88 | and the value is attribute type. 89 | """ 90 | return { 91 | "label": (str,), # noqa: E501 92 | "id": (str,), # noqa: E501 93 | "value": (str,), # noqa: E501 94 | "selected": (bool,), # noqa: E501 95 | } 96 | 97 | @cached_property 98 | def discriminator(): 99 | return None 100 | 101 | attribute_map = { 102 | "label": "label", # noqa: E501 103 | "id": "id", # noqa: E501 104 | "value": "value", # noqa: E501 105 | "selected": "selected", # noqa: E501 106 | } 107 | 108 | read_only_vars = {} 109 | 110 | _composed_schemas = {} 111 | 112 | @classmethod 113 | @convert_js_args_to_python_args 114 | def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 115 | """SearchresultsGet200ResponseSortingsFieldsInnerOptionsInner - a model defined in OpenAPI 116 | 117 | Keyword Args: 118 | _check_type (bool): if True, values for parameters in openapi_types 119 | will be type checked and a TypeError will be 120 | raised if the wrong type is input. 121 | Defaults to True 122 | _path_to_item (tuple/list): This is a list of keys or values to 123 | drill down to the model in received_data 124 | when deserializing a response 125 | _spec_property_naming (bool): True if the variable names in the input data 126 | are serialized names, as specified in the OpenAPI document. 127 | False if the variable names in the input data 128 | are pythonic names, e.g. snake case (default) 129 | _configuration (Configuration): the instance to use when 130 | deserializing a file_type parameter. 131 | If passed, type conversion is attempted 132 | If omitted no type conversion is done. 133 | _visited_composed_classes (tuple): This stores a tuple of 134 | classes that we have traveled through so that 135 | if we see that class again we will not use its 136 | discriminator again. 137 | When traveling through a discriminator, the 138 | composed schema that is 139 | is traveled through is added to this set. 140 | For example if Animal has a discriminator 141 | petType and we pass in "Dog", and the class Dog 142 | allOf includes Animal, we move through Animal 143 | once using the discriminator, and pick Dog. 144 | Then in Dog, we will make an instance of the 145 | Animal class but this time we won't travel 146 | through its discriminator because we passed in 147 | _visited_composed_classes = (Animal,) 148 | label (str): [optional] # noqa: E501 149 | id (str): [optional] # noqa: E501 150 | value (str): [optional] # noqa: E501 151 | selected (bool): [optional] # noqa: E501 152 | """ 153 | 154 | _check_type = kwargs.pop("_check_type", True) 155 | _spec_property_naming = kwargs.pop("_spec_property_naming", True) 156 | _path_to_item = kwargs.pop("_path_to_item", ()) 157 | _configuration = kwargs.pop("_configuration", None) 158 | _visited_composed_classes = kwargs.pop("_visited_composed_classes", ()) 159 | 160 | self = super(OpenApiModel, cls).__new__(cls) 161 | 162 | if args: 163 | for arg in args: 164 | if isinstance(arg, dict): 165 | kwargs.update(arg) 166 | else: 167 | raise ApiTypeError( 168 | "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." 169 | % ( 170 | args, 171 | self.__class__.__name__, 172 | ), 173 | path_to_item=_path_to_item, 174 | valid_classes=(self.__class__,), 175 | ) 176 | 177 | self._data_store = {} 178 | self._check_type = _check_type 179 | self._spec_property_naming = _spec_property_naming 180 | self._path_to_item = _path_to_item 181 | self._configuration = _configuration 182 | self._visited_composed_classes = _visited_composed_classes + (self.__class__,) 183 | 184 | for var_name, var_value in kwargs.items(): 185 | if ( 186 | var_name not in self.attribute_map 187 | and self._configuration is not None 188 | and self._configuration.discard_unknown_keys 189 | and self.additional_properties_type is None 190 | ): 191 | # discard variable. 192 | continue 193 | setattr(self, var_name, var_value) 194 | return self 195 | 196 | required_properties = set( 197 | [ 198 | "_data_store", 199 | "_check_type", 200 | "_spec_property_naming", 201 | "_path_to_item", 202 | "_configuration", 203 | "_visited_composed_classes", 204 | ] 205 | ) 206 | 207 | @convert_js_args_to_python_args 208 | def __init__(self, *args, **kwargs): # noqa: E501 209 | """SearchresultsGet200ResponseSortingsFieldsInnerOptionsInner - a model defined in OpenAPI 210 | 211 | Keyword Args: 212 | _check_type (bool): if True, values for parameters in openapi_types 213 | will be type checked and a TypeError will be 214 | raised if the wrong type is input. 215 | Defaults to True 216 | _path_to_item (tuple/list): This is a list of keys or values to 217 | drill down to the model in received_data 218 | when deserializing a response 219 | _spec_property_naming (bool): True if the variable names in the input data 220 | are serialized names, as specified in the OpenAPI document. 221 | False if the variable names in the input data 222 | are pythonic names, e.g. snake case (default) 223 | _configuration (Configuration): the instance to use when 224 | deserializing a file_type parameter. 225 | If passed, type conversion is attempted 226 | If omitted no type conversion is done. 227 | _visited_composed_classes (tuple): This stores a tuple of 228 | classes that we have traveled through so that 229 | if we see that class again we will not use its 230 | discriminator again. 231 | When traveling through a discriminator, the 232 | composed schema that is 233 | is traveled through is added to this set. 234 | For example if Animal has a discriminator 235 | petType and we pass in "Dog", and the class Dog 236 | allOf includes Animal, we move through Animal 237 | once using the discriminator, and pick Dog. 238 | Then in Dog, we will make an instance of the 239 | Animal class but this time we won't travel 240 | through its discriminator because we passed in 241 | _visited_composed_classes = (Animal,) 242 | label (str): [optional] # noqa: E501 243 | id (str): [optional] # noqa: E501 244 | value (str): [optional] # noqa: E501 245 | selected (bool): [optional] # noqa: E501 246 | """ 247 | 248 | _check_type = kwargs.pop("_check_type", True) 249 | _spec_property_naming = kwargs.pop("_spec_property_naming", False) 250 | _path_to_item = kwargs.pop("_path_to_item", ()) 251 | _configuration = kwargs.pop("_configuration", None) 252 | _visited_composed_classes = kwargs.pop("_visited_composed_classes", ()) 253 | 254 | if args: 255 | for arg in args: 256 | if isinstance(arg, dict): 257 | kwargs.update(arg) 258 | else: 259 | raise ApiTypeError( 260 | "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." 261 | % ( 262 | args, 263 | self.__class__.__name__, 264 | ), 265 | path_to_item=_path_to_item, 266 | valid_classes=(self.__class__,), 267 | ) 268 | 269 | self._data_store = {} 270 | self._check_type = _check_type 271 | self._spec_property_naming = _spec_property_naming 272 | self._path_to_item = _path_to_item 273 | self._configuration = _configuration 274 | self._visited_composed_classes = _visited_composed_classes + (self.__class__,) 275 | 276 | for var_name, var_value in kwargs.items(): 277 | if ( 278 | var_name not in self.attribute_map 279 | and self._configuration is not None 280 | and self._configuration.discard_unknown_keys 281 | and self.additional_properties_type is None 282 | ): 283 | # discard variable. 284 | continue 285 | setattr(self, var_name, var_value) 286 | if var_name in self.read_only_vars: 287 | raise ApiAttributeError( 288 | f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " 289 | f"class with read only attributes." 290 | ) 291 | -------------------------------------------------------------------------------- /python-client/deutschland/klinikatlas/model/searchresults_get200_response_results_inner_content_items_inner.py: -------------------------------------------------------------------------------- 1 | """ 2 | Bundes-Klinik-Atlas API 3 | 4 | Die API des Bundes-Klinik-Atlas stellt eine Vielzahl von Informationen über deutsche Kliniken und deren Ausstattung bereit. # noqa: E501 5 | 6 | The version of the OpenAPI document: 1.0.0 7 | Contact: poststelle@bmg.bund.de 8 | Generated by: https://openapi-generator.tech 9 | """ 10 | 11 | import re # noqa: F401 12 | import sys # noqa: F401 13 | 14 | from deutschland.klinikatlas.exceptions import ApiAttributeError 15 | from deutschland.klinikatlas.model_utils import ( # noqa: F401 16 | ApiTypeError, 17 | ModelComposed, 18 | ModelNormal, 19 | ModelSimple, 20 | OpenApiModel, 21 | cached_property, 22 | change_keys_js_to_python, 23 | convert_js_args_to_python_args, 24 | date, 25 | datetime, 26 | file_type, 27 | none_type, 28 | validate_get_composed_info, 29 | ) 30 | 31 | 32 | class SearchresultsGet200ResponseResultsInnerContentItemsInner(ModelNormal): 33 | """NOTE: This class is auto generated by OpenAPI Generator. 34 | Ref: https://openapi-generator.tech 35 | 36 | Do not edit the class manually. 37 | 38 | Attributes: 39 | allowed_values (dict): The key is the tuple path to the attribute 40 | and the for var_name this is (var_name,). The value is a dict 41 | with a capitalized key describing the allowed value and an allowed 42 | value. These dicts store the allowed enum values. 43 | attribute_map (dict): The key is attribute name 44 | and the value is json key in definition. 45 | discriminator_value_class_map (dict): A dict to go from the discriminator 46 | variable value to the discriminator class name. 47 | validations (dict): The key is the tuple path to the attribute 48 | and the for var_name this is (var_name,). The value is a dict 49 | that stores validations for max_length, min_length, max_items, 50 | min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, 51 | inclusive_minimum, and regex. 52 | additional_properties_type (tuple): A tuple of classes accepted 53 | as additional properties values. 54 | """ 55 | 56 | allowed_values = {} 57 | 58 | validations = {} 59 | 60 | @cached_property 61 | def additional_properties_type(): 62 | """ 63 | This must be a method because a model may have properties that are 64 | of type self, this must run after the class is loaded 65 | """ 66 | return ( 67 | bool, 68 | date, 69 | datetime, 70 | dict, 71 | float, 72 | int, 73 | list, 74 | str, 75 | none_type, 76 | ) # noqa: E501 77 | 78 | _nullable = False 79 | 80 | @cached_property 81 | def openapi_types(): 82 | """ 83 | This must be a method because a model may have properties that are 84 | of type self, this must run after the class is loaded 85 | 86 | Returns 87 | openapi_types (dict): The key is attribute name 88 | and the value is attribute type. 89 | """ 90 | return { 91 | "header": (str,), # noqa: E501 92 | "icon": (str,), # noqa: E501 93 | "tooltip": (str,), # noqa: E501 94 | "info_data": ( 95 | [{str: (bool, date, datetime, dict, float, int, list, str, none_type)}], 96 | ), # noqa: E501 97 | } 98 | 99 | @cached_property 100 | def discriminator(): 101 | return None 102 | 103 | attribute_map = { 104 | "header": "header", # noqa: E501 105 | "icon": "icon", # noqa: E501 106 | "tooltip": "tooltip", # noqa: E501 107 | "info_data": "infoData", # noqa: E501 108 | } 109 | 110 | read_only_vars = {} 111 | 112 | _composed_schemas = {} 113 | 114 | @classmethod 115 | @convert_js_args_to_python_args 116 | def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 117 | """SearchresultsGet200ResponseResultsInnerContentItemsInner - a model defined in OpenAPI 118 | 119 | Keyword Args: 120 | _check_type (bool): if True, values for parameters in openapi_types 121 | will be type checked and a TypeError will be 122 | raised if the wrong type is input. 123 | Defaults to True 124 | _path_to_item (tuple/list): This is a list of keys or values to 125 | drill down to the model in received_data 126 | when deserializing a response 127 | _spec_property_naming (bool): True if the variable names in the input data 128 | are serialized names, as specified in the OpenAPI document. 129 | False if the variable names in the input data 130 | are pythonic names, e.g. snake case (default) 131 | _configuration (Configuration): the instance to use when 132 | deserializing a file_type parameter. 133 | If passed, type conversion is attempted 134 | If omitted no type conversion is done. 135 | _visited_composed_classes (tuple): This stores a tuple of 136 | classes that we have traveled through so that 137 | if we see that class again we will not use its 138 | discriminator again. 139 | When traveling through a discriminator, the 140 | composed schema that is 141 | is traveled through is added to this set. 142 | For example if Animal has a discriminator 143 | petType and we pass in "Dog", and the class Dog 144 | allOf includes Animal, we move through Animal 145 | once using the discriminator, and pick Dog. 146 | Then in Dog, we will make an instance of the 147 | Animal class but this time we won't travel 148 | through its discriminator because we passed in 149 | _visited_composed_classes = (Animal,) 150 | header (str): [optional] # noqa: E501 151 | icon (str): [optional] # noqa: E501 152 | tooltip (str): [optional] # noqa: E501 153 | info_data ([{str: (bool, date, datetime, dict, float, int, list, str, none_type)}]): [optional] # noqa: E501 154 | """ 155 | 156 | _check_type = kwargs.pop("_check_type", True) 157 | _spec_property_naming = kwargs.pop("_spec_property_naming", True) 158 | _path_to_item = kwargs.pop("_path_to_item", ()) 159 | _configuration = kwargs.pop("_configuration", None) 160 | _visited_composed_classes = kwargs.pop("_visited_composed_classes", ()) 161 | 162 | self = super(OpenApiModel, cls).__new__(cls) 163 | 164 | if args: 165 | for arg in args: 166 | if isinstance(arg, dict): 167 | kwargs.update(arg) 168 | else: 169 | raise ApiTypeError( 170 | "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." 171 | % ( 172 | args, 173 | self.__class__.__name__, 174 | ), 175 | path_to_item=_path_to_item, 176 | valid_classes=(self.__class__,), 177 | ) 178 | 179 | self._data_store = {} 180 | self._check_type = _check_type 181 | self._spec_property_naming = _spec_property_naming 182 | self._path_to_item = _path_to_item 183 | self._configuration = _configuration 184 | self._visited_composed_classes = _visited_composed_classes + (self.__class__,) 185 | 186 | for var_name, var_value in kwargs.items(): 187 | if ( 188 | var_name not in self.attribute_map 189 | and self._configuration is not None 190 | and self._configuration.discard_unknown_keys 191 | and self.additional_properties_type is None 192 | ): 193 | # discard variable. 194 | continue 195 | setattr(self, var_name, var_value) 196 | return self 197 | 198 | required_properties = set( 199 | [ 200 | "_data_store", 201 | "_check_type", 202 | "_spec_property_naming", 203 | "_path_to_item", 204 | "_configuration", 205 | "_visited_composed_classes", 206 | ] 207 | ) 208 | 209 | @convert_js_args_to_python_args 210 | def __init__(self, *args, **kwargs): # noqa: E501 211 | """SearchresultsGet200ResponseResultsInnerContentItemsInner - a model defined in OpenAPI 212 | 213 | Keyword Args: 214 | _check_type (bool): if True, values for parameters in openapi_types 215 | will be type checked and a TypeError will be 216 | raised if the wrong type is input. 217 | Defaults to True 218 | _path_to_item (tuple/list): This is a list of keys or values to 219 | drill down to the model in received_data 220 | when deserializing a response 221 | _spec_property_naming (bool): True if the variable names in the input data 222 | are serialized names, as specified in the OpenAPI document. 223 | False if the variable names in the input data 224 | are pythonic names, e.g. snake case (default) 225 | _configuration (Configuration): the instance to use when 226 | deserializing a file_type parameter. 227 | If passed, type conversion is attempted 228 | If omitted no type conversion is done. 229 | _visited_composed_classes (tuple): This stores a tuple of 230 | classes that we have traveled through so that 231 | if we see that class again we will not use its 232 | discriminator again. 233 | When traveling through a discriminator, the 234 | composed schema that is 235 | is traveled through is added to this set. 236 | For example if Animal has a discriminator 237 | petType and we pass in "Dog", and the class Dog 238 | allOf includes Animal, we move through Animal 239 | once using the discriminator, and pick Dog. 240 | Then in Dog, we will make an instance of the 241 | Animal class but this time we won't travel 242 | through its discriminator because we passed in 243 | _visited_composed_classes = (Animal,) 244 | header (str): [optional] # noqa: E501 245 | icon (str): [optional] # noqa: E501 246 | tooltip (str): [optional] # noqa: E501 247 | info_data ([{str: (bool, date, datetime, dict, float, int, list, str, none_type)}]): [optional] # noqa: E501 248 | """ 249 | 250 | _check_type = kwargs.pop("_check_type", True) 251 | _spec_property_naming = kwargs.pop("_spec_property_naming", False) 252 | _path_to_item = kwargs.pop("_path_to_item", ()) 253 | _configuration = kwargs.pop("_configuration", None) 254 | _visited_composed_classes = kwargs.pop("_visited_composed_classes", ()) 255 | 256 | if args: 257 | for arg in args: 258 | if isinstance(arg, dict): 259 | kwargs.update(arg) 260 | else: 261 | raise ApiTypeError( 262 | "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." 263 | % ( 264 | args, 265 | self.__class__.__name__, 266 | ), 267 | path_to_item=_path_to_item, 268 | valid_classes=(self.__class__,), 269 | ) 270 | 271 | self._data_store = {} 272 | self._check_type = _check_type 273 | self._spec_property_naming = _spec_property_naming 274 | self._path_to_item = _path_to_item 275 | self._configuration = _configuration 276 | self._visited_composed_classes = _visited_composed_classes + (self.__class__,) 277 | 278 | for var_name, var_value in kwargs.items(): 279 | if ( 280 | var_name not in self.attribute_map 281 | and self._configuration is not None 282 | and self._configuration.discard_unknown_keys 283 | and self.additional_properties_type is None 284 | ): 285 | # discard variable. 286 | continue 287 | setattr(self, var_name, var_value) 288 | if var_name in self.read_only_vars: 289 | raise ApiAttributeError( 290 | f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " 291 | f"class with read only attributes." 292 | ) 293 | --------------------------------------------------------------------------------