Coverage for fingerprint_pro_server_api_sdk/models/identification_confidence.py: 87%
38 statements
« prev ^ index » next coverage.py v7.6.12, created at 2025-02-21 15:03 +0000
« prev ^ index » next coverage.py v7.6.12, created at 2025-02-21 15:03 +0000
1# coding: utf-8
3"""
4 Fingerprint Pro Server API
6 Fingerprint Pro Server API allows you to get information about visitors and about individual events in a server environment. It can be used for data exports, decision-making, and data analysis scenarios. Server API is intended for server-side usage, it's not intended to be used from the client side, whether it's a browser or a mobile device. # noqa: E501
8 OpenAPI spec version: 3
9 Contact: support@fingerprint.com
10 Generated by: https://github.com/swagger-api/swagger-codegen.git
11"""
13import re # noqa: F401
14from typing import Dict, List, Optional # noqa: F401
15from fingerprint_pro_server_api_sdk.base_model import BaseModel
18class IdentificationConfidence(BaseModel):
19 """NOTE: This class is auto generated by the swagger code generator program.
21 Do not edit the class manually.
22 """
23 """
24 Attributes:
25 swagger_types (dict): The key is attribute name
26 and the value is attribute type.
27 attribute_map (dict): The key is attribute name
28 and the value is json key in definition.
29 """
30 swagger_types = {
31 'score': 'float',
32 'revision': 'str',
33 'comment': 'str'
34 }
36 nullable_map = {
37 'score': False,
38 'revision': False,
39 'comment': False
40 }
42 attribute_map = {
43 'score': 'score',
44 'revision': 'revision',
45 'comment': 'comment'
46 }
48 def __init__(self, score=None, revision=None, comment=None): # noqa: E501
49 """IdentificationConfidence - a model defined in Swagger""" # noqa: E501
50 self._score = None
51 self._revision = None
52 self._comment = None
53 self.discriminator = None
54 self.score = score
55 if revision is not None:
56 self.revision = revision
57 if comment is not None:
58 self.comment = comment
60 @property
61 def score(self) -> float:
62 """Gets the score of this IdentificationConfidence. # noqa: E501
64 The confidence score is a floating-point number between 0 and 1 that represents the probability of accurate identification. # noqa: E501
66 :return: The score of this IdentificationConfidence. # noqa: E501
67 """
68 return self._score
70 @score.setter
71 def score(self, score: float):
72 """Sets the score of this IdentificationConfidence.
74 The confidence score is a floating-point number between 0 and 1 that represents the probability of accurate identification. # noqa: E501
76 :param score: The score of this IdentificationConfidence. # noqa: E501
77 """
78 if score is None:
79 raise ValueError("Invalid value for `score`, must not be `None`") # noqa: E501
81 self._score = score
83 @property
84 def revision(self) -> Optional[str]:
85 """Gets the revision of this IdentificationConfidence. # noqa: E501
87 The revision name of the method used to calculate the Confidence score. This field is only present for customers who opted in to an alternative calculation method. # noqa: E501
89 :return: The revision of this IdentificationConfidence. # noqa: E501
90 """
91 return self._revision
93 @revision.setter
94 def revision(self, revision: Optional[str]):
95 """Sets the revision of this IdentificationConfidence.
97 The revision name of the method used to calculate the Confidence score. This field is only present for customers who opted in to an alternative calculation method. # noqa: E501
99 :param revision: The revision of this IdentificationConfidence. # noqa: E501
100 """
102 self._revision = revision
104 @property
105 def comment(self) -> Optional[str]:
106 """Gets the comment of this IdentificationConfidence. # noqa: E501
109 :return: The comment of this IdentificationConfidence. # noqa: E501
110 """
111 return self._comment
113 @comment.setter
114 def comment(self, comment: Optional[str]):
115 """Sets the comment of this IdentificationConfidence.
118 :param comment: The comment of this IdentificationConfidence. # noqa: E501
119 """
121 self._comment = comment