Skip to content

Commit

Permalink
Update /healthz endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
actions-user committed Nov 4, 2024
1 parent e4abc8c commit e293cfc
Show file tree
Hide file tree
Showing 5 changed files with 256 additions and 17 deletions.
1 change: 1 addition & 0 deletions .openapi-generator/FILES
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions regula/documentreader/webclient/gen/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions regula/documentreader/webclient/gen/models/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
69 changes: 52 additions & 17 deletions regula/documentreader/webclient/gen/models/device_info2.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand All @@ -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()
Expand All @@ -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
Expand All @@ -95,17 +94,21 @@ 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

@property
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
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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]
Expand All @@ -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]
Expand All @@ -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
Expand All @@ -221,13 +234,35 @@ 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
"""

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 = {}
Expand Down
Loading

0 comments on commit e293cfc

Please sign in to comment.