Coverage for fingerprint_pro_server_api_sdk/models/identification_confidence.py: 86%

37 statements  

« prev     ^ index     » next       coverage.py v7.6.9, created at 2024-12-09 17:50 +0000

1# coding: utf-8 

2 

3""" 

4 Fingerprint Pro Server API 

5 

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 

7 

8 OpenAPI spec version: 3 

9 Contact: support@fingerprint.com 

10 Generated by: https://github.com/swagger-api/swagger-codegen.git 

11""" 

12 

13import re # noqa: F401 

14from typing import Dict, List, Optional # noqa: F401 

15from fingerprint_pro_server_api_sdk.base_model import BaseModel 

16 

17 

18class IdentificationConfidence(BaseModel): 

19 """NOTE: This class is auto generated by the swagger code generator program. 

20 

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 } 

35 

36 attribute_map = { 

37 'score': 'score', 

38 'revision': 'revision', 

39 'comment': 'comment' 

40 } 

41 

42 def __init__(self, score=None, revision=None, comment=None): # noqa: E501 

43 """IdentificationConfidence - a model defined in Swagger""" # noqa: E501 

44 self._score = None 

45 self._revision = None 

46 self._comment = None 

47 self.discriminator = None 

48 self.score = score 

49 if revision is not None: 

50 self.revision = revision 

51 if comment is not None: 

52 self.comment = comment 

53 

54 @property 

55 def score(self) -> float: 

56 """Gets the score of this IdentificationConfidence. # noqa: E501 

57 

58 The confidence score is a floating-point number between 0 and 1 that represents the probability of accurate identification. # noqa: E501 

59 

60 :return: The score of this IdentificationConfidence. # noqa: E501 

61 """ 

62 return self._score 

63 

64 @score.setter 

65 def score(self, score: float): 

66 """Sets the score of this IdentificationConfidence. 

67 

68 The confidence score is a floating-point number between 0 and 1 that represents the probability of accurate identification. # noqa: E501 

69 

70 :param score: The score of this IdentificationConfidence. # noqa: E501 

71 """ 

72 if score is None: 

73 raise ValueError("Invalid value for `score`, must not be `None`") # noqa: E501 

74 

75 self._score = score 

76 

77 @property 

78 def revision(self) -> Optional[str]: 

79 """Gets the revision of this IdentificationConfidence. # noqa: E501 

80 

81 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 

82 

83 :return: The revision of this IdentificationConfidence. # noqa: E501 

84 """ 

85 return self._revision 

86 

87 @revision.setter 

88 def revision(self, revision: Optional[str]): 

89 """Sets the revision of this IdentificationConfidence. 

90 

91 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 

92 

93 :param revision: The revision of this IdentificationConfidence. # noqa: E501 

94 """ 

95 

96 self._revision = revision 

97 

98 @property 

99 def comment(self) -> Optional[str]: 

100 """Gets the comment of this IdentificationConfidence. # noqa: E501 

101 

102 

103 :return: The comment of this IdentificationConfidence. # noqa: E501 

104 """ 

105 return self._comment 

106 

107 @comment.setter 

108 def comment(self, comment: Optional[str]): 

109 """Sets the comment of this IdentificationConfidence. 

110 

111 

112 :param comment: The comment of this IdentificationConfidence. # noqa: E501 

113 """ 

114 

115 self._comment = comment 

116