Coverage for fingerprint_pro_server_api_sdk/models/tampering.py: 85%

39 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 Tampering(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 'result': 'bool', 

32 'anomaly_score': 'float', 

33 'anti_detect_browser': 'bool' 

34 } 

35 

36 attribute_map = { 

37 'result': 'result', 

38 'anomaly_score': 'anomalyScore', 

39 'anti_detect_browser': 'antiDetectBrowser' 

40 } 

41 

42 def __init__(self, result=None, anomaly_score=None, anti_detect_browser=None): # noqa: E501 

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

44 self._result = None 

45 self._anomaly_score = None 

46 self._anti_detect_browser = None 

47 self.discriminator = None 

48 self.result = result 

49 self.anomaly_score = anomaly_score 

50 self.anti_detect_browser = anti_detect_browser 

51 

52 @property 

53 def result(self) -> bool: 

54 """Gets the result of this Tampering. # noqa: E501 

55 

56 Flag indicating browser tampering was detected. This happens when either of these conditions is true: * There are inconsistencies in the browser configuration that cross our internal tampering thresholds (indicated by `anomalyScore`). * The browser signature resembles one of \"anti-detect\" browsers specifically designed to evade identification and fingerprinting, for example, Incognition (indicated by `antiDetectBrowser`). # noqa: E501 

57 

58 :return: The result of this Tampering. # noqa: E501 

59 """ 

60 return self._result 

61 

62 @result.setter 

63 def result(self, result: bool): 

64 """Sets the result of this Tampering. 

65 

66 Flag indicating browser tampering was detected. This happens when either of these conditions is true: * There are inconsistencies in the browser configuration that cross our internal tampering thresholds (indicated by `anomalyScore`). * The browser signature resembles one of \"anti-detect\" browsers specifically designed to evade identification and fingerprinting, for example, Incognition (indicated by `antiDetectBrowser`). # noqa: E501 

67 

68 :param result: The result of this Tampering. # noqa: E501 

69 """ 

70 if result is None: 

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

72 

73 self._result = result 

74 

75 @property 

76 def anomaly_score(self) -> float: 

77 """Gets the anomaly_score of this Tampering. # noqa: E501 

78 

79 Confidence score (`0.0 - 1.0`) for tampering detection: * Values above `0.5` indicate that there was a tampering attempt. * Values below `0.5` indicate genuine browsers. # noqa: E501 

80 

81 :return: The anomaly_score of this Tampering. # noqa: E501 

82 """ 

83 return self._anomaly_score 

84 

85 @anomaly_score.setter 

86 def anomaly_score(self, anomaly_score: float): 

87 """Sets the anomaly_score of this Tampering. 

88 

89 Confidence score (`0.0 - 1.0`) for tampering detection: * Values above `0.5` indicate that there was a tampering attempt. * Values below `0.5` indicate genuine browsers. # noqa: E501 

90 

91 :param anomaly_score: The anomaly_score of this Tampering. # noqa: E501 

92 """ 

93 if anomaly_score is None: 

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

95 

96 self._anomaly_score = anomaly_score 

97 

98 @property 

99 def anti_detect_browser(self) -> bool: 

100 """Gets the anti_detect_browser of this Tampering. # noqa: E501 

101 

102 Is `true` if the identified browser resembles one of \"anti-detect\" browsers, for example, Incognition. Anti-detect browsers try to evade identification by masking or manipulating their fingerprint to imitate legitimate browser configurations. # noqa: E501 

103 

104 :return: The anti_detect_browser of this Tampering. # noqa: E501 

105 """ 

106 return self._anti_detect_browser 

107 

108 @anti_detect_browser.setter 

109 def anti_detect_browser(self, anti_detect_browser: bool): 

110 """Sets the anti_detect_browser of this Tampering. 

111 

112 Is `true` if the identified browser resembles one of \"anti-detect\" browsers, for example, Incognition. Anti-detect browsers try to evade identification by masking or manipulating their fingerprint to imitate legitimate browser configurations. # noqa: E501 

113 

114 :param anti_detect_browser: The anti_detect_browser of this Tampering. # noqa: E501 

115 """ 

116 if anti_detect_browser is None: 

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

118 

119 self._anti_detect_browser = anti_detect_browser 

120