regula.documentreader.webclient 7.5.159.dev0__py3-none-any.whl → 7.5.161rc0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -4,14 +4,14 @@ from typing import Union
4
4
  from regula.documentreader.webclient import ProcessResponse
5
5
  from regula.documentreader.webclient.gen import ApiClient
6
6
  from regula.documentreader.webclient.ext.models.recognition_response import RecognitionResponse
7
- from regula.documentreader.webclient.gen.api import HealthcheckApi, ProcessApi
7
+ from regula.documentreader.webclient.gen.api import DefaultApi, ProcessApi
8
8
  from regula.documentreader.webclient.gen.configuration import Configuration
9
9
  from regula.documentreader.webclient.gen.models import ProcessRequest
10
10
 
11
11
  Base64String = str
12
12
 
13
13
 
14
- class DocumentReaderApi(HealthcheckApi, ProcessApi):
14
+ class DocumentReaderApi(DefaultApi, ProcessApi):
15
15
 
16
16
  def __init__(self, host=None, debug=False, verify_ssl=True, api_client=None):
17
17
  if api_client:
@@ -20,9 +20,13 @@ class DocumentReaderApi(HealthcheckApi, ProcessApi):
20
20
  configuration = Configuration(host=host)
21
21
  configuration.debug = debug
22
22
  configuration.verify_ssl = verify_ssl
23
+
23
24
  self.api_client = ApiClient(configuration=configuration)
25
+
24
26
  super().__init__(self.api_client)
25
27
 
28
+ self.__license = None
29
+
26
30
  def __enter__(self):
27
31
  return self
28
32
 
@@ -32,7 +36,19 @@ class DocumentReaderApi(HealthcheckApi, ProcessApi):
32
36
  def set_configuration(self, configuration) -> None:
33
37
  self.api_client.configuration = configuration
34
38
 
39
+ @property
40
+ def license(self) -> Base64String:
41
+ return self.__license
42
+
43
+ @license.setter
44
+ def license(self, value: Union[Base64String, bytes]):
45
+ if isinstance(value, bytes):
46
+ self.__license = base64.b64encode(value).decode("utf-8")
47
+ else:
48
+ self.__license = value
49
+
35
50
  def process(self, process_request: ProcessRequest) -> RecognitionResponse:
51
+ process_request.system_info.license = self.license
36
52
  return RecognitionResponse(self.api_process(process_request))
37
53
 
38
54
  def deserialize_to_recognition_response(self, content: Union[bytes, bytearray, str]) -> RecognitionResponse:
@@ -10,8 +10,8 @@ class RawAuthenticityCheckResultItem(AuthenticityCheckResultItem):
10
10
  attribute_map = copy(AuthenticityCheckResultItem.attribute_map)
11
11
  attribute_map["raw"] = "raw"
12
12
 
13
- def __init__(self, type=0, element_result=None, element_diagnose=None, raw=None, percent_value=None, local_vars_configuration=None):
14
- super().__init__(type, element_result, element_diagnose, percent_value, local_vars_configuration)
13
+ def __init__(self, type=0, element_result=None, element_diagnose=None, raw=None, local_vars_configuration=None):
14
+ super().__init__(type, element_result, element_diagnose, local_vars_configuration)
15
15
  self.__raw = raw
16
16
 
17
17
  @property
@@ -61,11 +61,9 @@ class EncryptedRCLRequest(EncryptedRCLResult):
61
61
 
62
62
  class RecognitionRequest(ProcessRequest):
63
63
  def __init__(
64
- self,
65
- process_params: ProcessParams,
64
+ self, process_params: ProcessParams,
66
65
  images: List[Union[RecognitionImage, bytes, Base64String]] = None,
67
- container_list: ContainerList = None, tag=None,
68
- system_info: ProcessSystemInfo = ProcessSystemInfo(),
66
+ container_list: ContainerList = None, tag=None
69
67
  ):
70
68
  input_images = []
71
69
  if images:
@@ -75,17 +73,13 @@ class RecognitionRequest(ProcessRequest):
75
73
  else:
76
74
  input_images.append(image)
77
75
  super().__init__(
78
- process_param=process_params,
79
- list=input_images,
80
- system_info=system_info,
81
- tag=tag
76
+ process_param=process_params, list=input_images,
77
+ system_info=ProcessSystemInfo(), tag=tag
82
78
  )
83
79
  if container_list:
84
80
  super().__init__(
85
- process_param=process_params,
86
- container_list=container_list,
87
- system_info=system_info,
88
- tag=tag
81
+ process_param=process_params, container_list=container_list,
82
+ system_info=ProcessSystemInfo(), tag=tag
89
83
  )
90
84
 
91
85
  @property
@@ -11,7 +11,7 @@ from __future__ import absolute_import
11
11
  __version__ = "1.0.0"
12
12
 
13
13
  # import apis into sdk package
14
- from regula.documentreader.webclient.gen.api.healthcheck_api import HealthcheckApi
14
+ from regula.documentreader.webclient.gen.api.default_api import DefaultApi
15
15
  from regula.documentreader.webclient.gen.api.process_api import ProcessApi
16
16
  from regula.documentreader.webclient.gen.api.transaction_api import TransactionApi
17
17
 
@@ -48,7 +48,6 @@ from regula.documentreader.webclient.gen.models.data_module import DataModule
48
48
  from regula.documentreader.webclient.gen.models.details_optical import DetailsOptical
49
49
  from regula.documentreader.webclient.gen.models.details_rfid import DetailsRFID
50
50
  from regula.documentreader.webclient.gen.models.device_info import DeviceInfo
51
- from regula.documentreader.webclient.gen.models.device_info2 import DeviceInfo2
52
51
  from regula.documentreader.webclient.gen.models.doc_bar_code_info import DocBarCodeInfo
53
52
  from regula.documentreader.webclient.gen.models.doc_bar_code_info_all_of import DocBarCodeInfoAllOf
54
53
  from regula.documentreader.webclient.gen.models.doc_bar_code_info_fields_list import DocBarCodeInfoFieldsList
@@ -3,6 +3,6 @@ from __future__ import absolute_import
3
3
  # flake8: noqa
4
4
 
5
5
  # import apis into api package
6
- from regula.documentreader.webclient.gen.api.healthcheck_api import HealthcheckApi
6
+ from regula.documentreader.webclient.gen.api.default_api import DefaultApi
7
7
  from regula.documentreader.webclient.gen.api.process_api import ProcessApi
8
8
  from regula.documentreader.webclient.gen.api.transaction_api import TransactionApi
@@ -31,7 +31,6 @@ from regula.documentreader.webclient.gen.models.data_module import DataModule
31
31
  from regula.documentreader.webclient.gen.models.details_optical import DetailsOptical
32
32
  from regula.documentreader.webclient.gen.models.details_rfid import DetailsRFID
33
33
  from regula.documentreader.webclient.gen.models.device_info import DeviceInfo
34
- from regula.documentreader.webclient.gen.models.device_info2 import DeviceInfo2
35
34
  from regula.documentreader.webclient.gen.models.doc_bar_code_info import DocBarCodeInfo
36
35
  from regula.documentreader.webclient.gen.models.doc_bar_code_info_all_of import DocBarCodeInfoAllOf
37
36
  from regula.documentreader.webclient.gen.models.doc_bar_code_info_fields_list import DocBarCodeInfoFieldsList
@@ -14,9 +14,6 @@ from regula.documentreader.webclient.gen.configuration import Configuration
14
14
  from regula.documentreader.webclient.gen.models import *
15
15
 
16
16
 
17
- """
18
-
19
- """
20
17
  class AuthenticityCheckResult(object):
21
18
  """NOTE: This class is auto generated by OpenAPI Generator.
22
19
  Ref: https://openapi-generator.tech
@@ -32,7 +29,7 @@ class AuthenticityCheckResult(object):
32
29
  and the value is json key in definition.
33
30
  """
34
31
  openapi_types = {
35
- 'type': 'AuthenticityResultType',
32
+ 'type': 'SecurityFeatureType',
36
33
  'result': 'CheckResult',
37
34
  'list': 'list[AuthenticityCheckResultItem]'
38
35
  }
@@ -64,7 +61,7 @@ class AuthenticityCheckResult(object):
64
61
 
65
62
 
66
63
  :return: The type of this AuthenticityCheckResult. # noqa: E501
67
- :rtype: AuthenticityResultType
64
+ :rtype: SecurityFeatureType
68
65
  """
69
66
  return self._type
70
67
 
@@ -74,7 +71,7 @@ class AuthenticityCheckResult(object):
74
71
 
75
72
 
76
73
  :param type: The type of this AuthenticityCheckResult. # noqa: E501
77
- :type type: AuthenticityResultType
74
+ :type type: SecurityFeatureType
78
75
  """
79
76
  if self.local_vars_configuration.client_side_validation and type is None: # noqa: E501
80
77
  raise ValueError("Invalid value for `type`, must not be `None`") # noqa: E501
@@ -1,22 +1,23 @@
1
1
  # coding: utf-8
2
2
 
3
3
  """
4
+ Regula Document Reader Web API
5
+
6
+ Regula Document Reader Web API # noqa: E501
7
+
8
+ The version of the OpenAPI document: 5.1.0
4
9
  Generated by: https://openapi-generator.tech
5
10
  """
6
11
 
12
+
7
13
  import pprint
8
14
  import re # noqa: F401
9
15
 
10
16
  import six
11
17
 
12
18
  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
19
 
16
20
 
17
- """
18
- List with various objects, containing processing results
19
- """
20
21
  class ContainerList(object):
21
22
  """NOTE: This class is auto generated by OpenAPI Generator.
22
23
  Ref: https://openapi-generator.tech
@@ -32,59 +33,31 @@ class ContainerList(object):
32
33
  and the value is json key in definition.
33
34
  """
34
35
  openapi_types = {
35
- 'count': 'int',
36
36
  'list': 'list[ResultItem]'
37
37
  }
38
38
 
39
39
  attribute_map = {
40
- 'count': 'Count',
41
40
  'list': 'List'
42
41
  }
43
42
 
44
- def __init__(self, count=None, list=None, local_vars_configuration=None): # noqa: E501
43
+ def __init__(self, list=None, local_vars_configuration=None): # noqa: E501
45
44
  """ContainerList - a model defined in OpenAPI""" # noqa: E501
46
45
  if local_vars_configuration is None:
47
46
  local_vars_configuration = Configuration()
48
47
  self.local_vars_configuration = local_vars_configuration
49
48
 
50
- self._count = None
51
49
  self._list = None
52
50
  self.discriminator = None
53
51
 
54
- if count is not None:
55
- self.count = count
56
52
  self.list = list
57
53
 
58
- @property
59
- def count(self):
60
- """Gets the count of this ContainerList. # noqa: E501
61
-
62
- Length of list (Count for items) # noqa: E501
63
-
64
- :return: The count of this ContainerList. # noqa: E501
65
- :rtype: int
66
- """
67
- return self._count
68
-
69
- @count.setter
70
- def count(self, count):
71
- """Sets the count of this ContainerList.
72
-
73
- Length of list (Count for items) # noqa: E501
74
-
75
- :param count: The count of this ContainerList. # noqa: E501
76
- :type count: int
77
- """
78
-
79
- self._count = count
80
-
81
54
  @property
82
55
  def list(self):
83
56
  """Gets the list of this ContainerList. # noqa: E501
84
57
 
85
58
 
86
59
  :return: The list of this ContainerList. # noqa: E501
87
- :rtype: list[ResultItem]
60
+ :rtype: list[AnyOfRawImageResultTextResultStatusResultTextDataResultGraphicsResultLexicalAnalysisResultChosenDocumentTypeResultDocumentTypesCandidatesResultImagesResult]
88
61
  """
89
62
  return self._list
90
63
 
@@ -94,7 +67,7 @@ class ContainerList(object):
94
67
 
95
68
 
96
69
  :param list: The list of this ContainerList. # noqa: E501
97
- :type list: list[ResultItem]
70
+ :type list: list[AnyOfRawImageResultTextResultStatusResultTextDataResultGraphicsResultLexicalAnalysisResultChosenDocumentTypeResultDocumentTypesCandidatesResultImagesResult]
98
71
  """
99
72
  if self.local_vars_configuration.client_side_validation and list is None: # noqa: E501
100
73
  raise ValueError("Invalid value for `list`, must not be `None`") # noqa: E501
@@ -166,6 +166,7 @@ class IdentResult(object):
166
166
  def percent_value(self):
167
167
  """Gets the percent_value of this IdentResult. # noqa: E501
168
168
 
169
+ Probability percent for IMAGE_PATTERN check or element's visibility for IR_VISIBILITY # noqa: E501
169
170
 
170
171
  :return: The percent_value of this IdentResult. # noqa: E501
171
172
  :rtype: int
@@ -176,6 +177,7 @@ class IdentResult(object):
176
177
  def percent_value(self, percent_value):
177
178
  """Sets the percent_value of this IdentResult.
178
179
 
180
+ Probability percent for IMAGE_PATTERN check or element's visibility for IR_VISIBILITY # noqa: E501
179
181
 
180
182
  :param percent_value: The percent_value of this IdentResult. # noqa: E501
181
183
  :type percent_value: int
@@ -37,6 +37,7 @@ class IdentResultAllOf(object):
37
37
  'area': 'RectangleCoordinates',
38
38
  'image': 'ImageData',
39
39
  'etalon_image': 'ImageData',
40
+ 'percent_value': 'int',
40
41
  'area_list': 'AreaContainer'
41
42
  }
42
43
 
@@ -46,10 +47,11 @@ class IdentResultAllOf(object):
46
47
  'area': 'Area',
47
48
  'image': 'Image',
48
49
  'etalon_image': 'EtalonImage',
50
+ 'percent_value': 'PercentValue',
49
51
  'area_list': 'AreaList'
50
52
  }
51
53
 
52
- def __init__(self, element_type=None, light_index=None, area=None, image=None, etalon_image=None, area_list=None, local_vars_configuration=None): # noqa: E501
54
+ def __init__(self, element_type=None, light_index=None, area=None, image=None, etalon_image=None, percent_value=None, area_list=None, local_vars_configuration=None): # noqa: E501
53
55
  """IdentResultAllOf - a model defined in OpenAPI""" # noqa: E501
54
56
  if local_vars_configuration is None:
55
57
  local_vars_configuration = Configuration()
@@ -60,6 +62,7 @@ class IdentResultAllOf(object):
60
62
  self._area = None
61
63
  self._image = None
62
64
  self._etalon_image = None
65
+ self._percent_value = None
63
66
  self._area_list = None
64
67
  self.discriminator = None
65
68
 
@@ -73,6 +76,8 @@ class IdentResultAllOf(object):
73
76
  self.image = image
74
77
  if etalon_image is not None:
75
78
  self.etalon_image = etalon_image
79
+ if percent_value is not None:
80
+ self.percent_value = percent_value
76
81
  if area_list is not None:
77
82
  self.area_list = area_list
78
83
 
@@ -181,6 +186,29 @@ class IdentResultAllOf(object):
181
186
 
182
187
  self._etalon_image = etalon_image
183
188
 
189
+ @property
190
+ def percent_value(self):
191
+ """Gets the percent_value of this IdentResultAllOf. # noqa: E501
192
+
193
+ Probability percent for IMAGE_PATTERN check or element's visibility for IR_VISIBILITY # noqa: E501
194
+
195
+ :return: The percent_value of this IdentResultAllOf. # noqa: E501
196
+ :rtype: int
197
+ """
198
+ return self._percent_value
199
+
200
+ @percent_value.setter
201
+ def percent_value(self, percent_value):
202
+ """Sets the percent_value of this IdentResultAllOf.
203
+
204
+ Probability percent for IMAGE_PATTERN check or element's visibility for IR_VISIBILITY # noqa: E501
205
+
206
+ :param percent_value: The percent_value of this IdentResultAllOf. # noqa: E501
207
+ :type percent_value: int
208
+ """
209
+
210
+ self._percent_value = percent_value
211
+
184
212
  @property
185
213
  def area_list(self):
186
214
  """Gets the area_list of this IdentResultAllOf. # noqa: E501
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: regula.documentreader.webclient
3
- Version: 7.5.159.dev0
3
+ Version: 7.5.161rc0
4
4
  Summary: Regula's Document Reader python client
5
5
  Home-page: https://regulaforensics.com
6
6
  Author: Regula Forensics, Inc.
@@ -3,12 +3,12 @@ regula/documentreader/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3h
3
3
  regula/documentreader/webclient/__init__.py,sha256=9hNPg8FLQRyDZAueC34R9NnYD6krtWSlnUczVs-jYyU,100
4
4
  regula/documentreader/webclient/ext/__init__.py,sha256=WC-Qq2WK9YVx7iI2WBysw3irgqH9rQsPpupPsClhTBI,1204
5
5
  regula/documentreader/webclient/ext/api/__init__.py,sha256=Xzygo6zcLQaUJmchHGc2awK1kGwgIcqdBBqexU8iZfI,90
6
- regula/documentreader/webclient/ext/api/document_reader_api.py,sha256=nfRPhQE3dm_ra7Pt-M1br0ZTBIR7X1gPLA8WSJY2Ttw,1813
6
+ regula/documentreader/webclient/ext/api/document_reader_api.py,sha256=QZShX7eszPNbrAJW0ACorFyuga3vmIeZs-JAkq7MZVg,2215
7
7
  regula/documentreader/webclient/ext/models/__init__.py,sha256=jkX63hjohO56S5BqMgXegD13tFNEz0TFFOqgaoV-rO0,1303
8
8
  regula/documentreader/webclient/ext/models/images.py,sha256=rR4nRIVA3V4iEsSkLaPrbpDvLdYFbkKYgLrUxW0a_x4,1343
9
- regula/documentreader/webclient/ext/models/raw_authenticity_result_item.py,sha256=YSuewMtw8M9sKnsgLBgL5-6HS3jhCPYcYRJGKue4wAw,954
9
+ regula/documentreader/webclient/ext/models/raw_authenticity_result_item.py,sha256=dbaaPa2vybXx5zV5zj5V85knDeTFaUtFApqZmtBZDcY,919
10
10
  regula/documentreader/webclient/ext/models/raw_result_item.py,sha256=3WMQxrOVav6A9bysoYHe5j-o3qhs4nHOPcO_QeN5aec,767
11
- regula/documentreader/webclient/ext/models/recognition_request.py,sha256=OQoHZuWWhArUNEOA-2jTUSO3Qa10M4ZrCiER6vOvE6A,3259
11
+ regula/documentreader/webclient/ext/models/recognition_request.py,sha256=YjCIbW_PMD3LcCFjS4BA8PQyk5qBOKyCP-ObSOKAERk,3132
12
12
  regula/documentreader/webclient/ext/models/recognition_response.py,sha256=UqapU-YrpBlorHo-BToBB0aTK2TV9CpXKqxsK5uqnWY,3406
13
13
  regula/documentreader/webclient/ext/models/text.py,sha256=djXhXXzUJyq0nc5DnsTzWhBfg8dt7eU4vl3_2qvVMx0,1715
14
14
  regula/documentreader/webclient/ext/models/text_field.py,sha256=WaSlf6ndJK-4HSuocCMoNlSFBP0vNKUb_18acnPTM7I,1130
@@ -19,22 +19,21 @@ regula/documentreader/webclient/ext/models/authenticity/ident.py,sha256=7rWPNmK7
19
19
  regula/documentreader/webclient/ext/models/authenticity/image_ident.py,sha256=GKwlntMSHTfR4OZzQe0NO95GlvHQotCN4FyFpIP12-A,288
20
20
  regula/documentreader/webclient/ext/models/authenticity/ocr_security_text.py,sha256=X2_lC7y4_BXWiPmLfIBmtibFFuD-tiH8yDK158iqAbg,299
21
21
  regula/documentreader/webclient/ext/models/authenticity/security_feature.py,sha256=QjTP2NLgMiUha3Eg73HXJ5we6P7segdlQtY3I-5Mz-0,485
22
- regula/documentreader/webclient/gen/__init__.py,sha256=RH8mETTc66_ut4Wwa_EZ8ZiTaao1XjSORxnP7birxKE,14371
22
+ regula/documentreader/webclient/gen/__init__.py,sha256=l0Vu_n8FIyNoRw5USjMFrWCI1DHNmGru4ljg_Ge3abU,14283
23
23
  regula/documentreader/webclient/gen/api_client.py,sha256=DgJFP29cmD9q1D1n38dQ_sj01_tlMUg-NeIBNh-SMjE,26739
24
24
  regula/documentreader/webclient/gen/configuration.py,sha256=Nfr6drG3bmDYRom9ZXiS76Tteo5LkttKRQP0xtpubKU,16383
25
25
  regula/documentreader/webclient/gen/exceptions.py,sha256=RCgqdeb5Z3va2bEu1bndBdOouxPPUXi80UD8cdYxRsA,4944
26
26
  regula/documentreader/webclient/gen/rest.py,sha256=IaSsixSq0h75vLCJHf6mVRDnmEEe6ioHL_yhZbsHnGE,12496
27
- regula/documentreader/webclient/gen/api/__init__.py,sha256=FdRFqsiQssoCUANh92o2oHuCulhEegUsahm3n9AwdCk,328
27
+ regula/documentreader/webclient/gen/api/__init__.py,sha256=q52XoHPWxuktoGss-sYQQOAcbdDVEsLCADKMBuXFXN8,320
28
28
  regula/documentreader/webclient/gen/api/default_api.py,sha256=Xjb17rx1BR9UFNvhjLM8UNcyae4USZCNdgrTDUVvOo0,5872
29
- regula/documentreader/webclient/gen/api/healthcheck_api.py,sha256=7CzQhxsMMRdr4Z1OzrXcPgElpxVNEaX2JPo02YwvbEU,15996
30
29
  regula/documentreader/webclient/gen/api/process_api.py,sha256=aSEEDy_vUS-vvRigA4SYVc3GNIeTTfOYvjqMRI1a3Pk,7067
31
30
  regula/documentreader/webclient/gen/api/transaction_api.py,sha256=qqzbWixRgY14Fy46bK5U1bUAm0l5aTsOOqah3PxG6Xw,39245
32
- regula/documentreader/webclient/gen/models/__init__.py,sha256=aAHiD7M0P-Yd3GsiGwnxhJwePTqgxocRIBwwL6oNkh4,13470
31
+ regula/documentreader/webclient/gen/models/__init__.py,sha256=IQqmB5-HS1_0esWpbtaucE1tlSwCupS60ouxAOXzDrA,13390
33
32
  regula/documentreader/webclient/gen/models/area_array.py,sha256=lqYvHOxZ0-4xrPKeJFAPZLEqGODElt4dw44zk-4c10E,3909
34
33
  regula/documentreader/webclient/gen/models/area_container.py,sha256=AIyeiFcUyyconYSjWlqlR_DgT1SEJyq0DfVwm2dqgc8,4607
35
34
  regula/documentreader/webclient/gen/models/auth_params.py,sha256=WWXOdauTp0otrSm35N08l_ugOX2ABCV1DqpDG47YgWA,17685
36
35
  regula/documentreader/webclient/gen/models/authenticity_check_list.py,sha256=xaZRlS5-hWGmqk5ceo-0g1v-NWCbhu8VnWgA4RTqdBc,4328
37
- regula/documentreader/webclient/gen/models/authenticity_check_result.py,sha256=4dK5dfau7t6hjVGI4uO3PkV1zuDKIH1zpQgfRcsQ6Z0,5230
36
+ regula/documentreader/webclient/gen/models/authenticity_check_result.py,sha256=Vj7TAJOw-EfPdtAiXDz-PRupcjFpCGP0m3BygPuETDo,5212
38
37
  regula/documentreader/webclient/gen/models/authenticity_check_result_item.py,sha256=dMj1pmzM1ppZ-UOc90ELG9YmhBO_YWF3jHfag0LIc64,7846
39
38
  regula/documentreader/webclient/gen/models/authenticity_result.py,sha256=I0lg9xBO7N3aIsn0UqFrwhr8RMiLQ4rD881CrFpVVJM,7757
40
39
  regula/documentreader/webclient/gen/models/authenticity_result_all_of.py,sha256=9834ir8nUiK0z5rCtKw-YB5DsvK_fOpXbupKGBV0gc4,3925
@@ -46,14 +45,13 @@ regula/documentreader/webclient/gen/models/check_result.py,sha256=iJXGEcYBkiVWV6
46
45
  regula/documentreader/webclient/gen/models/chosen_document_type.py,sha256=H7gf5PYa8ccOEslKiUcANVfqc-FptYFtdh48VI8sbTo,11794
47
46
  regula/documentreader/webclient/gen/models/chosen_document_type_result.py,sha256=WSJaNaHthi2hogA_ogdZMtr552EgRLhvZ4SIjbAygyU,8383
48
47
  regula/documentreader/webclient/gen/models/chosen_document_type_result_all_of.py,sha256=cMasK7FqxynkItTyXplIUknHoVVj5SfYXwq0vRLWUc4,4340
49
- regula/documentreader/webclient/gen/models/container_list.py,sha256=kQkwlT-qzGhHQwk79vTbeHFE9_kJZM_K4cKLeXijPt8,4187
48
+ regula/documentreader/webclient/gen/models/container_list.py,sha256=szBLTRBwmIh8_3-o-uhs8DRLHoV-iKbSqdLRr4oMVwQ,3719
50
49
  regula/documentreader/webclient/gen/models/critical.py,sha256=KyQb-whwoHuVodzSHYQ1OluN9QPHj6qsdDxteiDhzjc,2816
51
50
  regula/documentreader/webclient/gen/models/cross_source_value_comparison.py,sha256=5YSTtyur3sr6RIGrvXNH2PrSal4BqGx7Cgu4xAeoJ4A,5477
52
51
  regula/documentreader/webclient/gen/models/data_module.py,sha256=VEw5vC0KMAuaSWAkZrHtILdCUs-b4x6WQHbnkETKklY,5950
53
52
  regula/documentreader/webclient/gen/models/details_optical.py,sha256=UTlrmibJZoKjy8x_cMJt_R7vsU-k2mk9beHGnBbiY38,9543
54
53
  regula/documentreader/webclient/gen/models/details_rfid.py,sha256=DC6hK1v6I6lXgrTeTi7uukhwfpPcGd-JVKRK5IO5mj4,7940
55
54
  regula/documentreader/webclient/gen/models/device_info.py,sha256=EColoOOyD1hC2AA9b9g3bLTcGsxgy_MEaJBqZjAQ-l4,6874
56
- regula/documentreader/webclient/gen/models/device_info2.py,sha256=ka6r3pI5jPH9E0pQUUGv5UHt12IEB5VUHMvFjnJegVM,7667
57
55
  regula/documentreader/webclient/gen/models/doc_bar_code_info.py,sha256=_7qom1up0U7h9KKBhEHBaXO6XXjCAr0FPEW0zctLCJU,7376
58
56
  regula/documentreader/webclient/gen/models/doc_bar_code_info_all_of.py,sha256=xw9PeZNQVHkb83tJ0Hi8F7M8BfQTnjrkIjOWiaZAIBQ,3602
59
57
  regula/documentreader/webclient/gen/models/doc_bar_code_info_fields_list.py,sha256=yKQzfrbfrCqDgz8JW3Y2ECNexwQ7iXVFu4xtc7ohLKc,4440
@@ -85,8 +83,8 @@ regula/documentreader/webclient/gen/models/graphic_field_type.py,sha256=K_2I9x88
85
83
  regula/documentreader/webclient/gen/models/graphic_fields_list.py,sha256=ZziC6A3MEOOnkM3HOWCot4OMg9T3UxqJeJYzGvj3w_M,3670
86
84
  regula/documentreader/webclient/gen/models/graphics_result.py,sha256=y1QZKb9cb8R_maEBCgLT-2YwnvRf1PIIei6iRXlKeaU,7608
87
85
  regula/documentreader/webclient/gen/models/graphics_result_all_of.py,sha256=ksomAHi6dFqOVKgeS9ijHB_y24rO7dZe6OGSwNny4Z8,3582
88
- regula/documentreader/webclient/gen/models/ident_result.py,sha256=p0LJm7_8TQhrxBOEIdhebCiRYsomm9nLmApteoO6_10,10474
89
- regula/documentreader/webclient/gen/models/ident_result_all_of.py,sha256=lVfum0xphtNdSedYfsiVdJJ4uX8GIpB7hKxDGT-XJ84,7011
86
+ regula/documentreader/webclient/gen/models/ident_result.py,sha256=MtPBw36QhspKifzIYOOoa4vsrnV1OAjskBwB2fcV9GM,10690
87
+ regula/documentreader/webclient/gen/models/ident_result_all_of.py,sha256=NZNZ7BfKO8C6MLehAI8h5h43mposUuF4g5fclmLGvcs,8013
90
88
  regula/documentreader/webclient/gen/models/image_data.py,sha256=b2P6w589wH4rCD9I9oN40afuIifrXpFLeIM9GFfvwqM,3451
91
89
  regula/documentreader/webclient/gen/models/image_qa.py,sha256=RIhZVZGGIy7f4ffqIVtZtNLVhDFZaKEZ-QXnkyhA-XU,9994
92
90
  regula/documentreader/webclient/gen/models/image_quality_check.py,sha256=RCL9xcY7yltnxwG8-_qjtal_MCNXFMG4vxg6Hg376vg,7461
@@ -179,7 +177,7 @@ regula/documentreader/webclient/gen/models/transaction_scenario_request.py,sha25
179
177
  regula/documentreader/webclient/gen/models/verification_result.py,sha256=QmecwNs6cz3OTzPSNaSkY4ktudmsAF_wpn4DjDWDbMM,2905
180
178
  regula/documentreader/webclient/gen/models/verified_field_map.py,sha256=L3JXmadMiV6RNdbpSbE8_jiJ0Zh85ZSpCvwPuKeDHR4,10406
181
179
  regula/documentreader/webclient/gen/models/visibility.py,sha256=c5H2K34md6ykhebeNmqyqUOb_hCUJx6b5sdmeAIQQ7c,2917
182
- regula.documentreader.webclient-7.5.159.dev0.dist-info/METADATA,sha256=CWpFL_owfmhVBQiP5xXqPV0-lng9gEg5rKcfwo6DMEo,3585
183
- regula.documentreader.webclient-7.5.159.dev0.dist-info/WHEEL,sha256=uCRv0ZEik_232NlR4YDw4Pv3Ajt5bKvMH13NUU7hFuI,91
184
- regula.documentreader.webclient-7.5.159.dev0.dist-info/top_level.txt,sha256=SFSSVn4j8QDivd3307s97NtpIJ8zOjiWZloAxZIClJY,7
185
- regula.documentreader.webclient-7.5.159.dev0.dist-info/RECORD,,
180
+ regula.documentreader.webclient-7.5.161rc0.dist-info/METADATA,sha256=t1fTR8WFqhcgEpIvAJTGNnIM2XZdAOncFAXnA576IVQ,3583
181
+ regula.documentreader.webclient-7.5.161rc0.dist-info/WHEEL,sha256=cVxcB9AmuTcXqmwrtPhNK88dr7IR_b6qagTj0UvIEbY,91
182
+ regula.documentreader.webclient-7.5.161rc0.dist-info/top_level.txt,sha256=SFSSVn4j8QDivd3307s97NtpIJ8zOjiWZloAxZIClJY,7
183
+ regula.documentreader.webclient-7.5.161rc0.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: setuptools (74.1.1)
2
+ Generator: setuptools (74.1.2)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5
 
@@ -1,412 +0,0 @@
1
- # coding: utf-8
2
-
3
- """
4
- Generated by: https://openapi-generator.tech
5
- """
6
-
7
- from __future__ import absolute_import
8
-
9
- import re # noqa: F401
10
-
11
- # python 2 and python 3 compatibility library
12
- import six
13
-
14
- from regula.documentreader.webclient.gen.api_client import ApiClient
15
- from regula.documentreader.webclient.gen.exceptions import ( # noqa: F401
16
- ApiTypeError,
17
- ApiValueError
18
- )
19
-
20
-
21
- class HealthcheckApi(object):
22
- """NOTE: This class is auto generated by OpenAPI Generator
23
- Ref: https://openapi-generator.tech
24
-
25
- Do not edit the class manually.
26
- """
27
-
28
- def __init__(self, api_client=None):
29
- if api_client is None:
30
- api_client = ApiClient()
31
- self.api_client = api_client
32
-
33
- def healthz(self, **kwargs): # noqa: E501
34
- """Server healthcheck # noqa: E501
35
-
36
- This method makes a synchronous HTTP request by default. To make an
37
- asynchronous HTTP request, please pass async_req=True
38
-
39
- >>> thread = api.healthz(async_req=True)
40
- >>> result = thread.get()
41
-
42
- :param x_request_id:
43
- :type x_request_id: str
44
- :param async_req: Whether to execute the request asynchronously.
45
- :type async_req: bool, optional
46
- :param _preload_content: if False, the urllib3.HTTPResponse object will
47
- be returned without reading/decoding response
48
- data. Default is True.
49
- :type _preload_content: bool, optional
50
- :param _request_timeout: timeout setting for this request. If one
51
- number provided, it will be total request
52
- timeout. It can also be a pair (tuple) of
53
- (connection, read) timeouts.
54
- :return: Returns the result object.
55
- If the method is called asynchronously,
56
- returns the request thread.
57
- :rtype: DeviceInfo2
58
- """
59
- kwargs['_return_http_data_only'] = True
60
- return self.healthz_with_http_info(**kwargs) # noqa: E501
61
-
62
- def healthz_with_http_info(self, **kwargs): # noqa: E501
63
- """Server healthcheck # noqa: E501
64
-
65
- This method makes a synchronous HTTP request by default. To make an
66
- asynchronous HTTP request, please pass async_req=True
67
-
68
- >>> thread = api.healthz_with_http_info(async_req=True)
69
- >>> result = thread.get()
70
-
71
- :param x_request_id:
72
- :type x_request_id: str
73
- :param async_req: Whether to execute the request asynchronously.
74
- :type async_req: bool, optional
75
- :param _return_http_data_only: response data without head status code
76
- and headers
77
- :type _return_http_data_only: bool, optional
78
- :param _preload_content: if False, the urllib3.HTTPResponse object will
79
- be returned without reading/decoding response
80
- data. Default is True.
81
- :type _preload_content: bool, optional
82
- :param _request_timeout: timeout setting for this request. If one
83
- number provided, it will be total request
84
- timeout. It can also be a pair (tuple) of
85
- (connection, read) timeouts.
86
- :param _request_auth: set to override the auth_settings for an a single
87
- request; this effectively ignores the authentication
88
- in the spec for a single request.
89
- :type _request_auth: dict, optional
90
- :return: Returns the result object.
91
- If the method is called asynchronously,
92
- returns the request thread.
93
- :rtype: tuple(DeviceInfo2, status_code(int), headers(HTTPHeaderDict))
94
- """
95
-
96
- local_var_params = locals()
97
-
98
- all_params = [
99
- 'x_request_id'
100
- ]
101
- all_params.extend(
102
- [
103
- 'async_req',
104
- '_return_http_data_only',
105
- '_preload_content',
106
- '_request_timeout',
107
- '_request_auth'
108
- ]
109
- )
110
-
111
- for key, val in six.iteritems(local_var_params['kwargs']):
112
- if key not in all_params:
113
- raise ApiTypeError(
114
- "Got an unexpected keyword argument '%s'"
115
- " to method healthz" % key
116
- )
117
- local_var_params[key] = val
118
- del local_var_params['kwargs']
119
-
120
- collection_formats = {}
121
-
122
- path_params = {}
123
-
124
- query_params = []
125
-
126
- header_params = {}
127
- if 'x_request_id' in local_var_params:
128
- header_params['X-RequestID'] = local_var_params['x_request_id'] # noqa: E501
129
-
130
- form_params = []
131
- local_var_files = {}
132
-
133
- body_params = None
134
- # HTTP header `Accept`
135
- header_params['Accept'] = self.api_client.select_header_accept(
136
- ['application/json']) # noqa: E501
137
-
138
- # Authentication setting
139
- auth_settings = [] # noqa: E501
140
-
141
- response_types_map = {
142
- 200: "DeviceInfo2",
143
- }
144
-
145
- return self.api_client.call_api(
146
- '/api/healthz', 'GET',
147
- path_params,
148
- query_params,
149
- header_params,
150
- body=body_params,
151
- post_params=form_params,
152
- files=local_var_files,
153
- response_types_map=response_types_map,
154
- auth_settings=auth_settings,
155
- async_req=local_var_params.get('async_req'),
156
- _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
157
- _preload_content=local_var_params.get('_preload_content', True),
158
- _request_timeout=local_var_params.get('_request_timeout'),
159
- collection_formats=collection_formats,
160
- _request_auth=local_var_params.get('_request_auth'))
161
-
162
- def ping(self, **kwargs): # noqa: E501
163
- """Server health check # noqa: E501
164
-
165
- This method makes a synchronous HTTP request by default. To make an
166
- asynchronous HTTP request, please pass async_req=True
167
-
168
- >>> thread = api.ping(async_req=True)
169
- >>> result = thread.get()
170
-
171
- :param x_request_id:
172
- :type x_request_id: str
173
- :param async_req: Whether to execute the request asynchronously.
174
- :type async_req: bool, optional
175
- :param _preload_content: if False, the urllib3.HTTPResponse object will
176
- be returned without reading/decoding response
177
- data. Default is True.
178
- :type _preload_content: bool, optional
179
- :param _request_timeout: timeout setting for this request. If one
180
- number provided, it will be total request
181
- timeout. It can also be a pair (tuple) of
182
- (connection, read) timeouts.
183
- :return: Returns the result object.
184
- If the method is called asynchronously,
185
- returns the request thread.
186
- :rtype: DeviceInfo
187
- """
188
- kwargs['_return_http_data_only'] = True
189
- return self.ping_with_http_info(**kwargs) # noqa: E501
190
-
191
- def ping_with_http_info(self, **kwargs): # noqa: E501
192
- """Server health check # noqa: E501
193
-
194
- This method makes a synchronous HTTP request by default. To make an
195
- asynchronous HTTP request, please pass async_req=True
196
-
197
- >>> thread = api.ping_with_http_info(async_req=True)
198
- >>> result = thread.get()
199
-
200
- :param x_request_id:
201
- :type x_request_id: str
202
- :param async_req: Whether to execute the request asynchronously.
203
- :type async_req: bool, optional
204
- :param _return_http_data_only: response data without head status code
205
- and headers
206
- :type _return_http_data_only: bool, optional
207
- :param _preload_content: if False, the urllib3.HTTPResponse object will
208
- be returned without reading/decoding response
209
- data. Default is True.
210
- :type _preload_content: bool, optional
211
- :param _request_timeout: timeout setting for this request. If one
212
- number provided, it will be total request
213
- timeout. It can also be a pair (tuple) of
214
- (connection, read) timeouts.
215
- :param _request_auth: set to override the auth_settings for an a single
216
- request; this effectively ignores the authentication
217
- in the spec for a single request.
218
- :type _request_auth: dict, optional
219
- :return: Returns the result object.
220
- If the method is called asynchronously,
221
- returns the request thread.
222
- :rtype: tuple(DeviceInfo, status_code(int), headers(HTTPHeaderDict))
223
- """
224
-
225
- local_var_params = locals()
226
-
227
- all_params = [
228
- 'x_request_id'
229
- ]
230
- all_params.extend(
231
- [
232
- 'async_req',
233
- '_return_http_data_only',
234
- '_preload_content',
235
- '_request_timeout',
236
- '_request_auth'
237
- ]
238
- )
239
-
240
- for key, val in six.iteritems(local_var_params['kwargs']):
241
- if key not in all_params:
242
- raise ApiTypeError(
243
- "Got an unexpected keyword argument '%s'"
244
- " to method ping" % key
245
- )
246
- local_var_params[key] = val
247
- del local_var_params['kwargs']
248
-
249
- collection_formats = {}
250
-
251
- path_params = {}
252
-
253
- query_params = []
254
-
255
- header_params = {}
256
- if 'x_request_id' in local_var_params:
257
- header_params['X-RequestID'] = local_var_params['x_request_id'] # noqa: E501
258
-
259
- form_params = []
260
- local_var_files = {}
261
-
262
- body_params = None
263
- # HTTP header `Accept`
264
- header_params['Accept'] = self.api_client.select_header_accept(
265
- ['application/json']) # noqa: E501
266
-
267
- # Authentication setting
268
- auth_settings = [] # noqa: E501
269
-
270
- response_types_map = {
271
- 200: "DeviceInfo",
272
- }
273
-
274
- return self.api_client.call_api(
275
- '/api/ping', 'GET',
276
- path_params,
277
- query_params,
278
- header_params,
279
- body=body_params,
280
- post_params=form_params,
281
- files=local_var_files,
282
- response_types_map=response_types_map,
283
- auth_settings=auth_settings,
284
- async_req=local_var_params.get('async_req'),
285
- _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
286
- _preload_content=local_var_params.get('_preload_content', True),
287
- _request_timeout=local_var_params.get('_request_timeout'),
288
- collection_formats=collection_formats,
289
- _request_auth=local_var_params.get('_request_auth'))
290
-
291
- def readyz(self, **kwargs): # noqa: E501
292
- """License healthcheck # noqa: E501
293
-
294
- This method makes a synchronous HTTP request by default. To make an
295
- asynchronous HTTP request, please pass async_req=True
296
-
297
- >>> thread = api.readyz(async_req=True)
298
- >>> result = thread.get()
299
-
300
- :param x_request_id:
301
- :type x_request_id: str
302
- :param async_req: Whether to execute the request asynchronously.
303
- :type async_req: bool, optional
304
- :param _preload_content: if False, the urllib3.HTTPResponse object will
305
- be returned without reading/decoding response
306
- data. Default is True.
307
- :type _preload_content: bool, optional
308
- :param _request_timeout: timeout setting for this request. If one
309
- number provided, it will be total request
310
- timeout. It can also be a pair (tuple) of
311
- (connection, read) timeouts.
312
- :return: Returns the result object.
313
- If the method is called asynchronously,
314
- returns the request thread.
315
- :rtype: None
316
- """
317
- kwargs['_return_http_data_only'] = True
318
- return self.readyz_with_http_info(**kwargs) # noqa: E501
319
-
320
- def readyz_with_http_info(self, **kwargs): # noqa: E501
321
- """License healthcheck # noqa: E501
322
-
323
- This method makes a synchronous HTTP request by default. To make an
324
- asynchronous HTTP request, please pass async_req=True
325
-
326
- >>> thread = api.readyz_with_http_info(async_req=True)
327
- >>> result = thread.get()
328
-
329
- :param x_request_id:
330
- :type x_request_id: str
331
- :param async_req: Whether to execute the request asynchronously.
332
- :type async_req: bool, optional
333
- :param _return_http_data_only: response data without head status code
334
- and headers
335
- :type _return_http_data_only: bool, optional
336
- :param _preload_content: if False, the urllib3.HTTPResponse object will
337
- be returned without reading/decoding response
338
- data. Default is True.
339
- :type _preload_content: bool, optional
340
- :param _request_timeout: timeout setting for this request. If one
341
- number provided, it will be total request
342
- timeout. It can also be a pair (tuple) of
343
- (connection, read) timeouts.
344
- :param _request_auth: set to override the auth_settings for an a single
345
- request; this effectively ignores the authentication
346
- in the spec for a single request.
347
- :type _request_auth: dict, optional
348
- :return: Returns the result object.
349
- If the method is called asynchronously,
350
- returns the request thread.
351
- :rtype: None
352
- """
353
-
354
- local_var_params = locals()
355
-
356
- all_params = [
357
- 'x_request_id'
358
- ]
359
- all_params.extend(
360
- [
361
- 'async_req',
362
- '_return_http_data_only',
363
- '_preload_content',
364
- '_request_timeout',
365
- '_request_auth'
366
- ]
367
- )
368
-
369
- for key, val in six.iteritems(local_var_params['kwargs']):
370
- if key not in all_params:
371
- raise ApiTypeError(
372
- "Got an unexpected keyword argument '%s'"
373
- " to method readyz" % key
374
- )
375
- local_var_params[key] = val
376
- del local_var_params['kwargs']
377
-
378
- collection_formats = {}
379
-
380
- path_params = {}
381
-
382
- query_params = []
383
-
384
- header_params = {}
385
- if 'x_request_id' in local_var_params:
386
- header_params['X-RequestID'] = local_var_params['x_request_id'] # noqa: E501
387
-
388
- form_params = []
389
- local_var_files = {}
390
-
391
- body_params = None
392
- # Authentication setting
393
- auth_settings = [] # noqa: E501
394
-
395
- response_types_map = {}
396
-
397
- return self.api_client.call_api(
398
- '/api/readyz', 'GET',
399
- path_params,
400
- query_params,
401
- header_params,
402
- body=body_params,
403
- post_params=form_params,
404
- files=local_var_files,
405
- response_types_map=response_types_map,
406
- auth_settings=auth_settings,
407
- async_req=local_var_params.get('async_req'),
408
- _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
409
- _preload_content=local_var_params.get('_preload_content', True),
410
- _request_timeout=local_var_params.get('_request_timeout'),
411
- collection_formats=collection_formats,
412
- _request_auth=local_var_params.get('_request_auth'))
@@ -1,275 +0,0 @@
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 DeviceInfo2(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
- """
28
- Attributes:
29
- openapi_types (dict): The key is attribute name
30
- and the value is attribute type.
31
- attribute_map (dict): The key is attribute name
32
- and the value is json key in definition.
33
- """
34
- openapi_types = {
35
- 'app': 'str',
36
- 'license_id': 'str',
37
- 'license_type': 'str',
38
- 'license_serial': 'str',
39
- 'license_valid_until': 'datetime',
40
- 'scenarios': 'list[str]',
41
- 'version': 'str'
42
- }
43
-
44
- attribute_map = {
45
- 'app': 'app',
46
- 'license_id': 'licenseId',
47
- 'license_type': 'licenseType',
48
- 'license_serial': 'licenseSerial',
49
- 'license_valid_until': 'licenseValidUntil',
50
- 'scenarios': 'scenarios',
51
- 'version': 'version'
52
- }
53
-
54
- 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
55
- """DeviceInfo2 - a model defined in OpenAPI""" # noqa: E501
56
- if local_vars_configuration is None:
57
- local_vars_configuration = Configuration()
58
- self.local_vars_configuration = local_vars_configuration
59
-
60
- self._app = None
61
- self._license_id = None
62
- self._license_type = None
63
- self._license_serial = None
64
- self._license_valid_until = None
65
- self._scenarios = None
66
- self._version = None
67
- self.discriminator = None
68
-
69
- if app is not None:
70
- self.app = app
71
- if license_id is not None:
72
- self.license_id = license_id
73
- if license_type is not None:
74
- self.license_type = license_type
75
- if license_serial is not None:
76
- self.license_serial = license_serial
77
- if license_valid_until is not None:
78
- self.license_valid_until = license_valid_until
79
- if scenarios is not None:
80
- self.scenarios = scenarios
81
- if version is not None:
82
- self.version = version
83
-
84
- @property
85
- def app(self):
86
- """Gets the app of this DeviceInfo2. # noqa: E501
87
-
88
-
89
- :return: The app of this DeviceInfo2. # noqa: E501
90
- :rtype: str
91
- """
92
- return self._app
93
-
94
- @app.setter
95
- def app(self, app):
96
- """Sets the app of this DeviceInfo2.
97
-
98
-
99
- :param app: The app of this DeviceInfo2. # noqa: E501
100
- :type app: str
101
- """
102
-
103
- self._app = app
104
-
105
- @property
106
- def license_id(self):
107
- """Gets the license_id of this DeviceInfo2. # noqa: E501
108
-
109
-
110
- :return: The license_id of this DeviceInfo2. # noqa: E501
111
- :rtype: str
112
- """
113
- return self._license_id
114
-
115
- @license_id.setter
116
- def license_id(self, license_id):
117
- """Sets the license_id of this DeviceInfo2.
118
-
119
-
120
- :param license_id: The license_id of this DeviceInfo2. # noqa: E501
121
- :type license_id: str
122
- """
123
-
124
- self._license_id = license_id
125
-
126
- @property
127
- def license_type(self):
128
- """Gets the license_type of this DeviceInfo2. # noqa: E501
129
-
130
-
131
- :return: The license_type of this DeviceInfo2. # noqa: E501
132
- :rtype: str
133
- """
134
- return self._license_type
135
-
136
- @license_type.setter
137
- def license_type(self, license_type):
138
- """Sets the license_type of this DeviceInfo2.
139
-
140
-
141
- :param license_type: The license_type of this DeviceInfo2. # noqa: E501
142
- :type license_type: str
143
- """
144
-
145
- self._license_type = license_type
146
-
147
- @property
148
- def license_serial(self):
149
- """Gets the license_serial of this DeviceInfo2. # noqa: E501
150
-
151
-
152
- :return: The license_serial of this DeviceInfo2. # noqa: E501
153
- :rtype: str
154
- """
155
- return self._license_serial
156
-
157
- @license_serial.setter
158
- def license_serial(self, license_serial):
159
- """Sets the license_serial of this DeviceInfo2.
160
-
161
-
162
- :param license_serial: The license_serial of this DeviceInfo2. # noqa: E501
163
- :type license_serial: str
164
- """
165
-
166
- self._license_serial = license_serial
167
-
168
- @property
169
- def license_valid_until(self):
170
- """Gets the license_valid_until of this DeviceInfo2. # noqa: E501
171
-
172
-
173
- :return: The license_valid_until of this DeviceInfo2. # noqa: E501
174
- :rtype: datetime
175
- """
176
- return self._license_valid_until
177
-
178
- @license_valid_until.setter
179
- def license_valid_until(self, license_valid_until):
180
- """Sets the license_valid_until of this DeviceInfo2.
181
-
182
-
183
- :param license_valid_until: The license_valid_until of this DeviceInfo2. # noqa: E501
184
- :type license_valid_until: datetime
185
- """
186
-
187
- self._license_valid_until = license_valid_until
188
-
189
- @property
190
- def scenarios(self):
191
- """Gets the scenarios of this DeviceInfo2. # noqa: E501
192
-
193
-
194
- :return: The scenarios of this DeviceInfo2. # noqa: E501
195
- :rtype: list[str]
196
- """
197
- return self._scenarios
198
-
199
- @scenarios.setter
200
- def scenarios(self, scenarios):
201
- """Sets the scenarios of this DeviceInfo2.
202
-
203
-
204
- :param scenarios: The scenarios of this DeviceInfo2. # noqa: E501
205
- :type scenarios: list[str]
206
- """
207
-
208
- self._scenarios = scenarios
209
-
210
- @property
211
- def version(self):
212
- """Gets the version of this DeviceInfo2. # noqa: E501
213
-
214
-
215
- :return: The version of this DeviceInfo2. # noqa: E501
216
- :rtype: str
217
- """
218
- return self._version
219
-
220
- @version.setter
221
- def version(self, version):
222
- """Sets the version of this DeviceInfo2.
223
-
224
-
225
- :param version: The version of this DeviceInfo2. # noqa: E501
226
- :type version: str
227
- """
228
-
229
- self._version = version
230
-
231
- def to_dict(self):
232
- """Returns the model properties as a dict"""
233
- result = {}
234
-
235
- for attr, _ in six.iteritems(self.openapi_types):
236
- value = getattr(self, attr)
237
- if isinstance(value, list):
238
- result[attr] = list(map(
239
- lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
240
- value
241
- ))
242
- elif hasattr(value, "to_dict"):
243
- result[attr] = value.to_dict()
244
- elif isinstance(value, dict):
245
- result[attr] = dict(map(
246
- lambda item: (item[0], item[1].to_dict())
247
- if hasattr(item[1], "to_dict") else item,
248
- value.items()
249
- ))
250
- else:
251
- result[attr] = value
252
-
253
- return result
254
-
255
- def to_str(self):
256
- """Returns the string representation of the model"""
257
- return pprint.pformat(self.to_dict())
258
-
259
- def __repr__(self):
260
- """For `print` and `pprint`"""
261
- return self.to_str()
262
-
263
- def __eq__(self, other):
264
- """Returns true if both objects are equal"""
265
- if not isinstance(other, DeviceInfo2):
266
- return False
267
-
268
- return self.to_dict() == other.to_dict()
269
-
270
- def __ne__(self, other):
271
- """Returns true if both objects are not equal"""
272
- if not isinstance(other, DeviceInfo2):
273
- return True
274
-
275
- return self.to_dict() != other.to_dict()