Skip to content

Commit 126a6f4

Browse files
committed
update to 5.6
1 parent 4127f95 commit 126a6f4

File tree

5 files changed

+245
-3
lines changed

5 files changed

+245
-3
lines changed

.openapi-generator/FILES

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ regula/documentreader/webclient/gen/models/lexical_analysis_result.py
6565
regula/documentreader/webclient/gen/models/lexical_analysis_result_all_of.py
6666
regula/documentreader/webclient/gen/models/light.py
6767
regula/documentreader/webclient/gen/models/list_verified_fields.py
68+
regula/documentreader/webclient/gen/models/log_level.py
6869
regula/documentreader/webclient/gen/models/measure_system.py
6970
regula/documentreader/webclient/gen/models/ocr_security_text_result.py
7071
regula/documentreader/webclient/gen/models/ocr_security_text_result_all_of.py

regula/documentreader/webclient/gen/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@
8383
from regula.documentreader.webclient.gen.models.lexical_analysis_result_all_of import LexicalAnalysisResultAllOf
8484
from regula.documentreader.webclient.gen.models.light import Light
8585
from regula.documentreader.webclient.gen.models.list_verified_fields import ListVerifiedFields
86+
from regula.documentreader.webclient.gen.models.log_level import LogLevel
8687
from regula.documentreader.webclient.gen.models.measure_system import MeasureSystem
8788
from regula.documentreader.webclient.gen.models.ocr_security_text_result import OCRSecurityTextResult
8889
from regula.documentreader.webclient.gen.models.ocr_security_text_result_all_of import OCRSecurityTextResultAllOf

regula/documentreader/webclient/gen/models/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@
6767
from regula.documentreader.webclient.gen.models.lexical_analysis_result_all_of import LexicalAnalysisResultAllOf
6868
from regula.documentreader.webclient.gen.models.light import Light
6969
from regula.documentreader.webclient.gen.models.list_verified_fields import ListVerifiedFields
70+
from regula.documentreader.webclient.gen.models.log_level import LogLevel
7071
from regula.documentreader.webclient.gen.models.measure_system import MeasureSystem
7172
from regula.documentreader.webclient.gen.models.ocr_security_text_result import OCRSecurityTextResult
7273
from regula.documentreader.webclient.gen.models.ocr_security_text_result_all_of import OCRSecurityTextResultAllOf
Lines changed: 103 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,103 @@
1+
# coding: utf-8
2+
3+
"""
4+
Generated by: https://openapi-generator.tech
5+
"""
6+
7+
import pprint
8+
import re # noqa: F401
9+
10+
import six
11+
12+
from regula.documentreader.webclient.gen.configuration import Configuration
13+
# this line was added to enable pycharm type hinting
14+
from regula.documentreader.webclient.gen.models import *
15+
16+
17+
"""
18+
19+
"""
20+
class LogLevel(object):
21+
"""NOTE: This class is auto generated by OpenAPI Generator.
22+
Ref: https://openapi-generator.tech
23+
24+
Do not edit the class manually.
25+
"""
26+
27+
FATAL_ERROR = "FatalError"
28+
29+
ERROR = "Error"
30+
31+
WARNING = "Warning"
32+
33+
INFO = "Info"
34+
35+
DEBUG = "Debug"
36+
37+
allowable_values = [FATAL_ERROR, ERROR, WARNING, INFO, DEBUG] # noqa: E501
38+
39+
"""
40+
Attributes:
41+
openapi_types (dict): The key is attribute name
42+
and the value is attribute type.
43+
attribute_map (dict): The key is attribute name
44+
and the value is json key in definition.
45+
"""
46+
openapi_types = {
47+
}
48+
49+
attribute_map = {
50+
}
51+
52+
def __init__(self, local_vars_configuration=None): # noqa: E501
53+
"""LogLevel - a model defined in OpenAPI""" # noqa: E501
54+
if local_vars_configuration is None:
55+
local_vars_configuration = Configuration()
56+
self.local_vars_configuration = local_vars_configuration
57+
self.discriminator = None
58+
59+
def to_dict(self):
60+
"""Returns the model properties as a dict"""
61+
result = {}
62+
63+
for attr, _ in six.iteritems(self.openapi_types):
64+
value = getattr(self, attr)
65+
if isinstance(value, list):
66+
result[attr] = list(map(
67+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
68+
value
69+
))
70+
elif hasattr(value, "to_dict"):
71+
result[attr] = value.to_dict()
72+
elif isinstance(value, dict):
73+
result[attr] = dict(map(
74+
lambda item: (item[0], item[1].to_dict())
75+
if hasattr(item[1], "to_dict") else item,
76+
value.items()
77+
))
78+
else:
79+
result[attr] = value
80+
81+
return result
82+
83+
def to_str(self):
84+
"""Returns the string representation of the model"""
85+
return pprint.pformat(self.to_dict())
86+
87+
def __repr__(self):
88+
"""For `print` and `pprint`"""
89+
return self.to_str()
90+
91+
def __eq__(self, other):
92+
"""Returns true if both objects are equal"""
93+
if not isinstance(other, LogLevel):
94+
return False
95+
96+
return self.to_dict() == other.to_dict()
97+
98+
def __ne__(self, other):
99+
"""Returns true if both objects are not equal"""
100+
if not isinstance(other, LogLevel):
101+
return True
102+
103+
return self.to_dict() != other.to_dict()

regula/documentreader/webclient/gen/models/process_params.py

Lines changed: 139 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,12 @@ class ProcessParams(object):
4949
'generate_double_page_spread_image': 'bool',
5050
'check_required_text_fields': 'bool',
5151
'return_cropped_barcode': 'bool',
52-
'image_qa': 'ImageQA'
52+
'image_qa': 'ImageQA',
53+
'force_doc_format': 'DocumentFormat',
54+
'no_graphics': 'bool',
55+
'document_area_min': 'float',
56+
'log_level': 'LogLevel',
57+
'depersonalize_log': 'bool'
5358
}
5459

5560
attribute_map = {
@@ -70,10 +75,15 @@ class ProcessParams(object):
7075
'generate_double_page_spread_image': 'generateDoublePageSpreadImage',
7176
'check_required_text_fields': 'checkRequiredTextFields',
7277
'return_cropped_barcode': 'returnCroppedBarcode',
73-
'image_qa': 'imageQA'
78+
'image_qa': 'imageQA',
79+
'force_doc_format': 'forceDocFormat',
80+
'no_graphics': 'noGraphics',
81+
'document_area_min': 'documentAreaMin',
82+
'log_level': 'logLevel',
83+
'depersonalize_log': 'depersonalizeLog'
7484
}
7585

76-
def __init__(self, scenario=None, result_type_output=None, double_page_spread=None, field_types_filter=None, date_format=None, measure_system=None, image_dpi_out_max=None, already_cropped=None, custom_params=None, log=None, force_doc_id=None, match_text_field_mask=True, fast_doc_detect=True, update_ocr_validity_by_glare=False, generate_double_page_spread_image=None, check_required_text_fields=False, return_cropped_barcode=False, image_qa=None, local_vars_configuration=None): # noqa: E501
86+
def __init__(self, scenario=None, result_type_output=None, double_page_spread=None, field_types_filter=None, date_format=None, measure_system=None, image_dpi_out_max=None, already_cropped=None, custom_params=None, log=None, force_doc_id=None, match_text_field_mask=True, fast_doc_detect=True, update_ocr_validity_by_glare=False, generate_double_page_spread_image=None, check_required_text_fields=False, return_cropped_barcode=False, image_qa=None, force_doc_format=None, no_graphics=False, document_area_min=0, log_level=None, depersonalize_log=False, local_vars_configuration=None): # noqa: E501
7787
"""ProcessParams - a model defined in OpenAPI""" # noqa: E501
7888
if local_vars_configuration is None:
7989
local_vars_configuration = Configuration()
@@ -97,6 +107,11 @@ def __init__(self, scenario=None, result_type_output=None, double_page_spread=No
97107
self._check_required_text_fields = None
98108
self._return_cropped_barcode = None
99109
self._image_qa = None
110+
self._force_doc_format = None
111+
self._no_graphics = None
112+
self._document_area_min = None
113+
self._log_level = None
114+
self._depersonalize_log = None
100115
self.discriminator = None
101116

102117
self.scenario = scenario
@@ -134,6 +149,16 @@ def __init__(self, scenario=None, result_type_output=None, double_page_spread=No
134149
self.return_cropped_barcode = return_cropped_barcode
135150
if image_qa is not None:
136151
self.image_qa = image_qa
152+
if force_doc_format is not None:
153+
self.force_doc_format = force_doc_format
154+
if no_graphics is not None:
155+
self.no_graphics = no_graphics
156+
if document_area_min is not None:
157+
self.document_area_min = document_area_min
158+
if log_level is not None:
159+
self.log_level = log_level
160+
if depersonalize_log is not None:
161+
self.depersonalize_log = depersonalize_log
137162

138163
@property
139164
def scenario(self):
@@ -545,6 +570,117 @@ def image_qa(self, image_qa):
545570

546571
self._image_qa = image_qa
547572

573+
@property
574+
def force_doc_format(self):
575+
"""Gets the force_doc_format of this ProcessParams. # noqa: E501
576+
577+
578+
:return: The force_doc_format of this ProcessParams. # noqa: E501
579+
:rtype: DocumentFormat
580+
"""
581+
return self._force_doc_format
582+
583+
@force_doc_format.setter
584+
def force_doc_format(self, force_doc_format):
585+
"""Sets the force_doc_format of this ProcessParams.
586+
587+
588+
:param force_doc_format: The force_doc_format of this ProcessParams. # noqa: E501
589+
:type force_doc_format: DocumentFormat
590+
"""
591+
592+
self._force_doc_format = force_doc_format
593+
594+
@property
595+
def no_graphics(self):
596+
"""Gets the no_graphics of this ProcessParams. # noqa: E501
597+
598+
When enabled no graphic fields will be cropped from document image. # noqa: E501
599+
600+
:return: The no_graphics of this ProcessParams. # noqa: E501
601+
:rtype: bool
602+
"""
603+
return self._no_graphics
604+
605+
@no_graphics.setter
606+
def no_graphics(self, no_graphics):
607+
"""Sets the no_graphics of this ProcessParams.
608+
609+
When enabled no graphic fields will be cropped from document image. # noqa: E501
610+
611+
:param no_graphics: The no_graphics of this ProcessParams. # noqa: E501
612+
:type no_graphics: bool
613+
"""
614+
615+
self._no_graphics = no_graphics
616+
617+
@property
618+
def document_area_min(self):
619+
"""Gets the document_area_min of this ProcessParams. # noqa: E501
620+
621+
Specifies minimal area of the image that document should cover to be treated as candidate when locating. Value should be in range from 0 to 1, where 1 is when document should fully cover the image. # noqa: E501
622+
623+
:return: The document_area_min of this ProcessParams. # noqa: E501
624+
:rtype: float
625+
"""
626+
return self._document_area_min
627+
628+
@document_area_min.setter
629+
def document_area_min(self, document_area_min):
630+
"""Sets the document_area_min of this ProcessParams.
631+
632+
Specifies minimal area of the image that document should cover to be treated as candidate when locating. Value should be in range from 0 to 1, where 1 is when document should fully cover the image. # noqa: E501
633+
634+
:param document_area_min: The document_area_min of this ProcessParams. # noqa: E501
635+
:type document_area_min: float
636+
"""
637+
638+
self._document_area_min = document_area_min
639+
640+
@property
641+
def log_level(self):
642+
"""Gets the log_level of this ProcessParams. # noqa: E501
643+
644+
645+
:return: The log_level of this ProcessParams. # noqa: E501
646+
:rtype: LogLevel
647+
"""
648+
return self._log_level
649+
650+
@log_level.setter
651+
def log_level(self, log_level):
652+
"""Sets the log_level of this ProcessParams.
653+
654+
655+
:param log_level: The log_level of this ProcessParams. # noqa: E501
656+
:type log_level: LogLevel
657+
"""
658+
659+
self._log_level = log_level
660+
661+
@property
662+
def depersonalize_log(self):
663+
"""Gets the depersonalize_log of this ProcessParams. # noqa: E501
664+
665+
When enabled all personal data will be forcibly removed from the logs. # noqa: E501
666+
667+
:return: The depersonalize_log of this ProcessParams. # noqa: E501
668+
:rtype: bool
669+
"""
670+
return self._depersonalize_log
671+
672+
@depersonalize_log.setter
673+
def depersonalize_log(self, depersonalize_log):
674+
"""Sets the depersonalize_log of this ProcessParams.
675+
676+
When enabled all personal data will be forcibly removed from the logs. # noqa: E501
677+
678+
:param depersonalize_log: The depersonalize_log of this ProcessParams. # noqa: E501
679+
:type depersonalize_log: bool
680+
"""
681+
682+
self._depersonalize_log = depersonalize_log
683+
548684
def to_dict(self):
549685
"""Returns the model properties as a dict"""
550686
result = {}

0 commit comments

Comments
 (0)