Skip to content

Commit

Permalink
Generate newest code from openapi.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
bundesbot authored and bundesbot committed May 22, 2024
1 parent bea6101 commit a02bb91
Show file tree
Hide file tree
Showing 13 changed files with 24 additions and 22 deletions.
2 changes: 1 addition & 1 deletion python-client/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Deutsche Feiertage per JSON-Webservice (API)
This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:

- API version: 1.0.0
- Package version: 1.0.1
- Package version: 1.0.2
- Build package: org.openapitools.codegen.languages.PythonClientCodegen
For more information, please visit [https://bund.dev](https://bund.dev)

Expand Down
2 changes: 1 addition & 1 deletion python-client/deutschland/feiertage/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"""


__version__ = "1.0.1"
__version__ = "1.0.2"

# import ApiClient
from deutschland.feiertage.api_client import ApiClient
Expand Down
1 change: 0 additions & 1 deletion python-client/deutschland/feiertage/api/default_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
Generated by: https://openapi-generator.tech
"""


import re # noqa: F401
import sys # noqa: F401

Expand Down
5 changes: 3 additions & 2 deletions python-client/deutschland/feiertage/api_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
Generated by: https://openapi-generator.tech
"""


import atexit
import io
import json
Expand Down Expand Up @@ -82,7 +81,7 @@ def __init__(
self.default_headers[header_name] = header_value
self.cookie = cookie
# Set default User-Agent.
self.user_agent = "OpenAPI-Generator/1.0.1/python"
self.user_agent = "OpenAPI-Generator/1.0.2/python"

def __enter__(self):
return self
Expand Down Expand Up @@ -147,6 +146,7 @@ def __call_api(
typing.List[typing.Dict[str, typing.Any]]
] = None,
):

config = self.configuration

# header parameters
Expand Down Expand Up @@ -912,6 +912,7 @@ def __call__(self, *args, **kwargs):
return self.callable(self, *args, **kwargs)

def call_with_http_info(self, **kwargs):

try:
index = (
self.api_client.configuration.server_operation_index.get(
Expand Down
3 changes: 1 addition & 2 deletions python-client/deutschland/feiertage/configuration.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
Generated by: https://openapi-generator.tech
"""


import copy
import logging
import multiprocessing
Expand Down Expand Up @@ -395,7 +394,7 @@ def to_debug_report(self):
"OS: {env}\n"
"Python Version: {pyversion}\n"
"Version of the API: 1.0.0\n"
"SDK Package Version: 1.0.1".format(env=sys.platform, pyversion=sys.version)
"SDK Package Version: 1.0.2".format(env=sys.platform, pyversion=sys.version)
)

def get_host_settings(self):
Expand Down
5 changes: 5 additions & 0 deletions python-client/deutschland/feiertage/exceptions.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ def __init__(self, msg, path_to_item=None):


class ApiException(OpenApiException):

def __init__(self, status=None, reason=None, http_resp=None):
if http_resp:
self.status = http_resp.status
Expand Down Expand Up @@ -123,21 +124,25 @@ def __str__(self):


class NotFoundException(ApiException):

def __init__(self, status=None, reason=None, http_resp=None):
super(NotFoundException, self).__init__(status, reason, http_resp)


class UnauthorizedException(ApiException):

def __init__(self, status=None, reason=None, http_resp=None):
super(UnauthorizedException, self).__init__(status, reason, http_resp)


class ForbiddenException(ApiException):

def __init__(self, status=None, reason=None, http_resp=None):
super(ForbiddenException, self).__init__(status, reason, http_resp)


class ServiceException(ApiException):

def __init__(self, status=None, reason=None, http_resp=None):
super(ServiceException, self).__init__(status, reason, http_resp)

Expand Down
1 change: 0 additions & 1 deletion python-client/deutschland/feiertage/model/feiertag.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
Generated by: https://openapi-generator.tech
"""


import re # noqa: F401
import sys # noqa: F401

Expand Down
8 changes: 4 additions & 4 deletions python-client/deutschland/feiertage/model_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
Generated by: https://openapi-generator.tech
"""


import inspect
import io
import os
Expand Down Expand Up @@ -612,9 +611,9 @@ def __setitem__(self, name, value):
setattr(model_instance, name, value)
if name not in self._var_name_to_model_instances:
# we assigned an additional property
self.__dict__["_var_name_to_model_instances"][
name
] = self._composed_instances + [self]
self.__dict__["_var_name_to_model_instances"][name] = (
self._composed_instances + [self]
)
return None

__unset_attribute_value__ = object()
Expand Down Expand Up @@ -1823,6 +1822,7 @@ def get_allof_instances(self, model_args, constant_args):
"""
composed_instances = []
for allof_class in self._composed_schemas["allOf"]:

try:
if constant_args.get("_spec_property_naming"):
allof_instance = allof_class._from_openapi_data(
Expand Down
9 changes: 5 additions & 4 deletions python-client/deutschland/feiertage/rest.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
Generated by: https://openapi-generator.tech
"""


import io
import ipaddress
import json
Expand All @@ -32,6 +31,7 @@


class RESTResponse(io.IOBase):

def __init__(self, resp):
self.urllib3_response = resp
self.status = resp.status
Expand All @@ -48,6 +48,7 @@ def getheader(self, name, default=None):


class RESTClientObject(object):

def __init__(self, configuration, pools_size=4, maxsize=None):
# urllib3.PoolManager will pass all kw parameters to connectionpool
# https://github.com/shazow/urllib3/blob/f9409436f83aeb79fbaf090181cd81b784f1b8ce/urllib3/poolmanager.py#L75 # noqa: E501
Expand All @@ -63,9 +64,9 @@ def __init__(self, configuration, pools_size=4, maxsize=None):

addition_pool_args = {}
if configuration.assert_hostname is not None:
addition_pool_args[
"assert_hostname"
] = configuration.assert_hostname # noqa: E501
addition_pool_args["assert_hostname"] = (
configuration.assert_hostname
) # noqa: E501

if configuration.retries is not None:
addition_pool_args["retries"] = configuration.retries
Expand Down
2 changes: 1 addition & 1 deletion python-client/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[tool]
[tool.poetry]
name = "de-feiertage"
version = "1.0.1"
version = "1.0.2"
description = "Feiertage API"
keywords = ["OpenAPI", "OpenAPI-Generator", "feiertage", "App", "API"]
homepage = "https://github.com/bundesAPI/feiertage-api"
Expand Down
6 changes: 3 additions & 3 deletions python-client/sphinx-docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@
# https://www.sphinx-doc.org/en/master/usage/configuration.html#project-information

project = "feiertage-api"
copyright = "2023, bund.dev"
copyright = "2024, bund.dev"
author = "bund.dev"

version = "1.0.1"
release = "1.0.1"
version = "1.0.2"
release = "1.0.2"

# -- General configuration ---------------------------------------------------
# https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration
Expand Down
1 change: 0 additions & 1 deletion python-client/test/test_default_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
Generated by: https://openapi-generator.tech
"""


import unittest

from deutschland.feiertage.api.default_api import DefaultApi # noqa: E501
Expand Down
1 change: 0 additions & 1 deletion python-client/test/test_feiertag.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
Generated by: https://openapi-generator.tech
"""


import sys
import unittest

Expand Down

0 comments on commit a02bb91

Please sign in to comment.