|
| 1 | +# coding: utf-8 |
| 2 | + |
| 3 | +""" |
| 4 | + Regula Face SDK Web API |
| 5 | +
|
| 6 | + <a href=\"https://regulaforensics.com/products/face-recognition-sdk/ \" target=\"_blank\">Regula Face SDK</a> is a cross-platform biometric verification solution for a digital identity verification process and image quality assurance. The SDK enables convenient and reliable face capture on the client side (mobile, web, and desktop) and further processing on the client or server side. The Face SDK includes the following features: * <a href=\"https://docs.regulaforensics.com/develop/face-sdk/overview/introduction/#face-detection\" target=\"_blank\">Face detection and image quality assessment</a> * <a href=\"https://docs.regulaforensics.com/develop/face-sdk/overview/introduction/#face-comparison-11\" target=\"_blank\">Face match (1:1)</a> * <a href=\"https://docs.regulaforensics.com/develop/face-sdk/overview/introduction/#face-identification-1n\" target=\"_blank\">Face search (1:N)</a> * <a href=\"https://docs.regulaforensics.com/develop/face-sdk/overview/introduction/#liveness-assessment\" target=\"_blank\">Liveness detection</a> Here is the <a href=\"https://github.com/regulaforensics/FaceSDK-web-openapi \" target=\"_blank\">OpenAPI specification on GitHub</a>. ### Clients * [JavaScript](https://github.com/regulaforensics/FaceSDK-web-js-client) client for the browser and node.js based on axios * [Java](https://github.com/regulaforensics/FaceSDK-web-java-client) client compatible with jvm and android * [Python](https://github.com/regulaforensics/FaceSDK-web-python-client) 3.5+ client * [C#](https://github.com/regulaforensics/FaceSDK-web-csharp-client) client for .NET & .NET Core # noqa: E501 |
| 7 | +
|
| 8 | + The version of the OpenAPI document: 7.2.0 |
| 9 | + Generated by: https://openapi-generator.tech |
| 10 | +""" |
| 11 | + |
| 12 | + |
| 13 | +import pprint |
| 14 | +import re # noqa: F401 |
| 15 | + |
| 16 | +import six |
| 17 | + |
| 18 | +from regula.facesdk.webclient.gen.configuration import Configuration |
| 19 | + |
| 20 | + |
| 21 | +class MatchAndSearchRequestImages(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 | + """ |
| 29 | + Attributes: |
| 30 | + openapi_types (dict): The key is attribute name |
| 31 | + and the value is attribute type. |
| 32 | + attribute_map (dict): The key is attribute name |
| 33 | + and the value is json key in definition. |
| 34 | + """ |
| 35 | + openapi_types = { |
| 36 | + 'content': 'str', |
| 37 | + 'image_url': 'str', |
| 38 | + 'type': 'ImageSource', |
| 39 | + } |
| 40 | + |
| 41 | + attribute_map = { |
| 42 | + 'content': 'content', |
| 43 | + 'image_url': 'imageUrl', |
| 44 | + 'type': 'type', |
| 45 | + } |
| 46 | + |
| 47 | + def __init__(self, content=None, image_url=None, type=None, local_vars_configuration=None): # noqa: E501 |
| 48 | + """MatchAndSearchRequestImages - a model defined in OpenAPI""" # noqa: E501 |
| 49 | + if local_vars_configuration is None: |
| 50 | + local_vars_configuration = Configuration() |
| 51 | + self.local_vars_configuration = local_vars_configuration |
| 52 | + |
| 53 | + self._content = None |
| 54 | + self._image_url = None |
| 55 | + self._type = None |
| 56 | + self.discriminator = None |
| 57 | + |
| 58 | + if content is not None: |
| 59 | + self.content = content |
| 60 | + if image_url is not None: |
| 61 | + self.image_url = image_url |
| 62 | + if type is not None: |
| 63 | + self.type = type |
| 64 | + |
| 65 | + @property |
| 66 | + def content(self): |
| 67 | + """Gets the content of this MatchAndSearchRequestImages. # noqa: E501 |
| 68 | +
|
| 69 | + Base64-encoded image. # noqa: E501 |
| 70 | +
|
| 71 | + :return: The content of this MatchAndSearchRequestImages. # noqa: E501 |
| 72 | + :rtype: str |
| 73 | + """ |
| 74 | + return self._content |
| 75 | + |
| 76 | + @content.setter |
| 77 | + def content(self, content): |
| 78 | + """Sets the content of this MatchAndSearchRequestImages. |
| 79 | +
|
| 80 | + Base64-encoded image. # noqa: E501 |
| 81 | +
|
| 82 | + :param content: The content of this MatchAndSearchRequestImages. # noqa: E501 |
| 83 | + :type content: str |
| 84 | + """ |
| 85 | + |
| 86 | + self._content = content |
| 87 | + |
| 88 | + @property |
| 89 | + def image_url(self): |
| 90 | + """Gets the image_url of this MatchAndSearchRequestImages. # noqa: E501 |
| 91 | +
|
| 92 | + Image URL. # noqa: E501 |
| 93 | +
|
| 94 | + :return: The image_url of this MatchAndSearchRequestImages. # noqa: E501 |
| 95 | + :rtype: str |
| 96 | + """ |
| 97 | + return self._image_url |
| 98 | + |
| 99 | + @image_url.setter |
| 100 | + def image_url(self, image_url): |
| 101 | + """Sets the image_url of this MatchAndSearchRequestImages. |
| 102 | +
|
| 103 | + Image URL. # noqa: E501 |
| 104 | +
|
| 105 | + :param image_url: The image_url of this MatchAndSearchRequestImages. # noqa: E501 |
| 106 | + :type image_url: str |
| 107 | + """ |
| 108 | + |
| 109 | + self._image_url = image_url |
| 110 | + |
| 111 | + @property |
| 112 | + def type(self): |
| 113 | + """Gets the type of this MatchAndSearchRequestImages. # noqa: E501 |
| 114 | +
|
| 115 | +
|
| 116 | + :return: The type of this MatchAndSearchRequestImages. # noqa: E501 |
| 117 | + :rtype: ImageSource |
| 118 | + """ |
| 119 | + return self._type |
| 120 | + |
| 121 | + @type.setter |
| 122 | + def type(self, type): |
| 123 | + """Sets the type of this MatchAndSearchRequestImages. |
| 124 | +
|
| 125 | +
|
| 126 | + :param type: The type of this MatchAndSearchRequestImages. # noqa: E501 |
| 127 | + :type type: ImageSource |
| 128 | + """ |
| 129 | + |
| 130 | + self._type = type |
| 131 | + |
| 132 | + def to_dict(self): |
| 133 | + """Returns the model properties as a dict""" |
| 134 | + result = {} |
| 135 | + |
| 136 | + for attr, _ in six.iteritems(self.openapi_types): |
| 137 | + value = getattr(self, attr) |
| 138 | + if isinstance(value, list): |
| 139 | + result[attr] = list(map( |
| 140 | + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, |
| 141 | + value |
| 142 | + )) |
| 143 | + elif hasattr(value, "to_dict"): |
| 144 | + result[attr] = value.to_dict() |
| 145 | + elif isinstance(value, dict): |
| 146 | + result[attr] = dict(map( |
| 147 | + lambda item: (item[0], item[1].to_dict()) |
| 148 | + if hasattr(item[1], "to_dict") else item, |
| 149 | + value.items() |
| 150 | + )) |
| 151 | + else: |
| 152 | + result[attr] = value |
| 153 | + |
| 154 | + return result |
| 155 | + |
| 156 | + def to_str(self): |
| 157 | + """Returns the string representation of the model""" |
| 158 | + return pprint.pformat(self.to_dict()) |
| 159 | + |
| 160 | + def __repr__(self): |
| 161 | + """For `print` and `pprint`""" |
| 162 | + return self.to_str() |
| 163 | + |
| 164 | + def __eq__(self, other): |
| 165 | + """Returns true if both objects are equal""" |
| 166 | + if not isinstance(other, MatchAndSearchRequestImages): |
| 167 | + return False |
| 168 | + |
| 169 | + return self.to_dict() == other.to_dict() |
| 170 | + |
| 171 | + def __ne__(self, other): |
| 172 | + """Returns true if both objects are not equal""" |
| 173 | + if not isinstance(other, MatchAndSearchRequestImages): |
| 174 | + return True |
| 175 | + |
| 176 | + return self.to_dict() != other.to_dict() |
0 commit comments