From e293cfc39c22ca56539cbdbdf683ee91e87b0028 Mon Sep 17 00:00:00 2001 From: GitHub Action Date: Mon, 4 Nov 2024 15:27:52 +0000 Subject: [PATCH] Update /healthz endpoint --- .openapi-generator/FILES | 1 + .../documentreader/webclient/gen/__init__.py | 1 + .../webclient/gen/models/__init__.py | 1 + .../webclient/gen/models/device_info2.py | 69 ++++-- .../models/device_info2_documents_database.py | 201 ++++++++++++++++++ 5 files changed, 256 insertions(+), 17 deletions(-) create mode 100644 regula/documentreader/webclient/gen/models/device_info2_documents_database.py diff --git a/.openapi-generator/FILES b/.openapi-generator/FILES index 03293af..04b3e90 100755 --- a/.openapi-generator/FILES +++ b/.openapi-generator/FILES @@ -33,6 +33,7 @@ regula/documentreader/webclient/gen/models/details_optical.py regula/documentreader/webclient/gen/models/details_rfid.py regula/documentreader/webclient/gen/models/device_info.py regula/documentreader/webclient/gen/models/device_info2.py +regula/documentreader/webclient/gen/models/device_info2_documents_database.py regula/documentreader/webclient/gen/models/doc_bar_code_info.py regula/documentreader/webclient/gen/models/doc_bar_code_info_all_of.py regula/documentreader/webclient/gen/models/doc_bar_code_info_fields_list.py diff --git a/regula/documentreader/webclient/gen/__init__.py b/regula/documentreader/webclient/gen/__init__.py index 6434788..38fb288 100755 --- a/regula/documentreader/webclient/gen/__init__.py +++ b/regula/documentreader/webclient/gen/__init__.py @@ -49,6 +49,7 @@ from regula.documentreader.webclient.gen.models.details_rfid import DetailsRFID from regula.documentreader.webclient.gen.models.device_info import DeviceInfo from regula.documentreader.webclient.gen.models.device_info2 import DeviceInfo2 +from regula.documentreader.webclient.gen.models.device_info2_documents_database import DeviceInfo2DocumentsDatabase from regula.documentreader.webclient.gen.models.doc_bar_code_info import DocBarCodeInfo from regula.documentreader.webclient.gen.models.doc_bar_code_info_all_of import DocBarCodeInfoAllOf from regula.documentreader.webclient.gen.models.doc_bar_code_info_fields_list import DocBarCodeInfoFieldsList diff --git a/regula/documentreader/webclient/gen/models/__init__.py b/regula/documentreader/webclient/gen/models/__init__.py index c902658..cb55896 100755 --- a/regula/documentreader/webclient/gen/models/__init__.py +++ b/regula/documentreader/webclient/gen/models/__init__.py @@ -32,6 +32,7 @@ from regula.documentreader.webclient.gen.models.details_rfid import DetailsRFID from regula.documentreader.webclient.gen.models.device_info import DeviceInfo from regula.documentreader.webclient.gen.models.device_info2 import DeviceInfo2 +from regula.documentreader.webclient.gen.models.device_info2_documents_database import DeviceInfo2DocumentsDatabase from regula.documentreader.webclient.gen.models.doc_bar_code_info import DocBarCodeInfo from regula.documentreader.webclient.gen.models.doc_bar_code_info_all_of import DocBarCodeInfoAllOf from regula.documentreader.webclient.gen.models.doc_bar_code_info_fields_list import DocBarCodeInfoFieldsList diff --git a/regula/documentreader/webclient/gen/models/device_info2.py b/regula/documentreader/webclient/gen/models/device_info2.py index 948c015..6c42e96 100644 --- a/regula/documentreader/webclient/gen/models/device_info2.py +++ b/regula/documentreader/webclient/gen/models/device_info2.py @@ -38,7 +38,8 @@ class DeviceInfo2(object): 'license_serial': 'str', 'license_valid_until': 'datetime', 'scenarios': 'list[str]', - 'version': 'str' + 'version': 'str', + 'documents_database': 'DeviceInfo2DocumentsDatabase' } attribute_map = { @@ -48,10 +49,11 @@ class DeviceInfo2(object): 'license_serial': 'licenseSerial', 'license_valid_until': 'licenseValidUntil', 'scenarios': 'scenarios', - 'version': 'version' + 'version': 'version', + 'documents_database': 'documentsDatabase' } - def __init__(self, app=None, license_id=None, license_type=None, license_serial=None, license_valid_until=None, scenarios=None, version=None, local_vars_configuration=None): # noqa: E501 + def __init__(self, app=None, license_id=None, license_type=None, license_serial=None, license_valid_until=None, scenarios=None, version=None, documents_database=None, local_vars_configuration=None): # noqa: E501 """DeviceInfo2 - a model defined in OpenAPI""" # noqa: E501 if local_vars_configuration is None: local_vars_configuration = Configuration() @@ -64,27 +66,24 @@ def __init__(self, app=None, license_id=None, license_type=None, license_serial= self._license_valid_until = None self._scenarios = None self._version = None + self._documents_database = None self.discriminator = None - if app is not None: - self.app = app - if license_id is not None: - self.license_id = license_id - if license_type is not None: - self.license_type = license_type - if license_serial is not None: - self.license_serial = license_serial - if license_valid_until is not None: - self.license_valid_until = license_valid_until - if scenarios is not None: - self.scenarios = scenarios - if version is not None: - self.version = version + self.app = app + self.license_id = license_id + self.license_type = license_type + self.license_serial = license_serial + self.license_valid_until = license_valid_until + self.scenarios = scenarios + self.version = version + if documents_database is not None: + self.documents_database = documents_database @property def app(self): """Gets the app of this DeviceInfo2. # noqa: E501 + Application name. # noqa: E501 :return: The app of this DeviceInfo2. # noqa: E501 :rtype: str @@ -95,10 +94,13 @@ def app(self): def app(self, app): """Sets the app of this DeviceInfo2. + Application name. # noqa: E501 :param app: The app of this DeviceInfo2. # noqa: E501 :type app: str """ + if self.local_vars_configuration.client_side_validation and app is None: # noqa: E501 + raise ValueError("Invalid value for `app`, must not be `None`") # noqa: E501 self._app = app @@ -106,6 +108,7 @@ def app(self, app): def license_id(self): """Gets the license_id of this DeviceInfo2. # noqa: E501 + Unique license identifier. # noqa: E501 :return: The license_id of this DeviceInfo2. # noqa: E501 :rtype: str @@ -116,6 +119,7 @@ def license_id(self): def license_id(self, license_id): """Sets the license_id of this DeviceInfo2. + Unique license identifier. # noqa: E501 :param license_id: The license_id of this DeviceInfo2. # noqa: E501 :type license_id: str @@ -127,6 +131,7 @@ def license_id(self, license_id): def license_type(self): """Gets the license_type of this DeviceInfo2. # noqa: E501 + License type. # noqa: E501 :return: The license_type of this DeviceInfo2. # noqa: E501 :rtype: str @@ -137,6 +142,7 @@ def license_type(self): def license_type(self, license_type): """Sets the license_type of this DeviceInfo2. + License type. # noqa: E501 :param license_type: The license_type of this DeviceInfo2. # noqa: E501 :type license_type: str @@ -148,6 +154,7 @@ def license_type(self, license_type): def license_serial(self): """Gets the license_serial of this DeviceInfo2. # noqa: E501 + License serial number. # noqa: E501 :return: The license_serial of this DeviceInfo2. # noqa: E501 :rtype: str @@ -158,6 +165,7 @@ def license_serial(self): def license_serial(self, license_serial): """Sets the license_serial of this DeviceInfo2. + License serial number. # noqa: E501 :param license_serial: The license_serial of this DeviceInfo2. # noqa: E501 :type license_serial: str @@ -169,6 +177,7 @@ def license_serial(self, license_serial): def license_valid_until(self): """Gets the license_valid_until of this DeviceInfo2. # noqa: E501 + License validity date. # noqa: E501 :return: The license_valid_until of this DeviceInfo2. # noqa: E501 :rtype: datetime @@ -179,6 +188,7 @@ def license_valid_until(self): def license_valid_until(self, license_valid_until): """Sets the license_valid_until of this DeviceInfo2. + License validity date. # noqa: E501 :param license_valid_until: The license_valid_until of this DeviceInfo2. # noqa: E501 :type license_valid_until: datetime @@ -190,6 +200,7 @@ def license_valid_until(self, license_valid_until): def scenarios(self): """Gets the scenarios of this DeviceInfo2. # noqa: E501 + List of supported scenarios. # noqa: E501 :return: The scenarios of this DeviceInfo2. # noqa: E501 :rtype: list[str] @@ -200,6 +211,7 @@ def scenarios(self): def scenarios(self, scenarios): """Sets the scenarios of this DeviceInfo2. + List of supported scenarios. # noqa: E501 :param scenarios: The scenarios of this DeviceInfo2. # noqa: E501 :type scenarios: list[str] @@ -211,6 +223,7 @@ def scenarios(self, scenarios): def version(self): """Gets the version of this DeviceInfo2. # noqa: E501 + Product version. # noqa: E501 :return: The version of this DeviceInfo2. # noqa: E501 :rtype: str @@ -221,6 +234,7 @@ def version(self): def version(self, version): """Sets the version of this DeviceInfo2. + Product version. # noqa: E501 :param version: The version of this DeviceInfo2. # noqa: E501 :type version: str @@ -228,6 +242,27 @@ def version(self, version): self._version = version + @property + def documents_database(self): + """Gets the documents_database of this DeviceInfo2. # noqa: E501 + + + :return: The documents_database of this DeviceInfo2. # noqa: E501 + :rtype: DeviceInfo2DocumentsDatabase + """ + return self._documents_database + + @documents_database.setter + def documents_database(self, documents_database): + """Sets the documents_database of this DeviceInfo2. + + + :param documents_database: The documents_database of this DeviceInfo2. # noqa: E501 + :type documents_database: DeviceInfo2DocumentsDatabase + """ + + self._documents_database = documents_database + def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/regula/documentreader/webclient/gen/models/device_info2_documents_database.py b/regula/documentreader/webclient/gen/models/device_info2_documents_database.py new file mode 100644 index 0000000..fe5d856 --- /dev/null +++ b/regula/documentreader/webclient/gen/models/device_info2_documents_database.py @@ -0,0 +1,201 @@ +# coding: utf-8 + +""" + Generated by: https://openapi-generator.tech +""" + +import pprint +import re # noqa: F401 + +import six + +from regula.documentreader.webclient.gen.configuration import Configuration +# this line was added to enable pycharm type hinting +from regula.documentreader.webclient.gen.models import * + + +""" +Database information. +""" +class DeviceInfo2DocumentsDatabase(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'id': 'str', + 'version': 'str', + 'export_date': 'date', + 'description': 'str' + } + + attribute_map = { + 'id': 'id', + 'version': 'version', + 'export_date': 'exportDate', + 'description': 'description' + } + + def __init__(self, id=None, version=None, export_date=None, description=None, local_vars_configuration=None): # noqa: E501 + """DeviceInfo2DocumentsDatabase - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + + self._id = None + self._version = None + self._export_date = None + self._description = None + self.discriminator = None + + self.id = id + self.version = version + self.export_date = export_date + self.description = description + + @property + def id(self): + """Gets the id of this DeviceInfo2DocumentsDatabase. # noqa: E501 + + Database identifier. # noqa: E501 + + :return: The id of this DeviceInfo2DocumentsDatabase. # noqa: E501 + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this DeviceInfo2DocumentsDatabase. + + Database identifier. # noqa: E501 + + :param id: The id of this DeviceInfo2DocumentsDatabase. # noqa: E501 + :type id: str + """ + + self._id = id + + @property + def version(self): + """Gets the version of this DeviceInfo2DocumentsDatabase. # noqa: E501 + + Database version. # noqa: E501 + + :return: The version of this DeviceInfo2DocumentsDatabase. # noqa: E501 + :rtype: str + """ + return self._version + + @version.setter + def version(self, version): + """Sets the version of this DeviceInfo2DocumentsDatabase. + + Database version. # noqa: E501 + + :param version: The version of this DeviceInfo2DocumentsDatabase. # noqa: E501 + :type version: str + """ + + self._version = version + + @property + def export_date(self): + """Gets the export_date of this DeviceInfo2DocumentsDatabase. # noqa: E501 + + Date of database creation. # noqa: E501 + + :return: The export_date of this DeviceInfo2DocumentsDatabase. # noqa: E501 + :rtype: date + """ + return self._export_date + + @export_date.setter + def export_date(self, export_date): + """Sets the export_date of this DeviceInfo2DocumentsDatabase. + + Date of database creation. # noqa: E501 + + :param export_date: The export_date of this DeviceInfo2DocumentsDatabase. # noqa: E501 + :type export_date: date + """ + + self._export_date = export_date + + @property + def description(self): + """Gets the description of this DeviceInfo2DocumentsDatabase. # noqa: E501 + + Description of the database contents, such as the list of supported countries and documents. # noqa: E501 + + :return: The description of this DeviceInfo2DocumentsDatabase. # noqa: E501 + :rtype: str + """ + return self._description + + @description.setter + def description(self, description): + """Sets the description of this DeviceInfo2DocumentsDatabase. + + Description of the database contents, such as the list of supported countries and documents. # noqa: E501 + + :param description: The description of this DeviceInfo2DocumentsDatabase. # noqa: E501 + :type description: str + """ + + self._description = description + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, DeviceInfo2DocumentsDatabase): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, DeviceInfo2DocumentsDatabase): + return True + + return self.to_dict() != other.to_dict()