Coverage for fingerprint_pro_server_api_sdk/models/webhook_tampering.py: 56%

36 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 WebhookTampering(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 """WebhookTampering - 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 if result is not None: 

49 self.result = result 

50 if anomaly_score is not None: 

51 self.anomaly_score = anomaly_score 

52 if anti_detect_browser is not None: 

53 self.anti_detect_browser = anti_detect_browser 

54 

55 @property 

56 def result(self) -> Optional[bool]: 

57 """Gets the result of this WebhookTampering. # noqa: E501 

58 

59 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 

60 

61 :return: The result of this WebhookTampering. # noqa: E501 

62 """ 

63 return self._result 

64 

65 @result.setter 

66 def result(self, result: Optional[bool]): 

67 """Sets the result of this WebhookTampering. 

68 

69 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 

70 

71 :param result: The result of this WebhookTampering. # noqa: E501 

72 """ 

73 

74 self._result = result 

75 

76 @property 

77 def anomaly_score(self) -> Optional[float]: 

78 """Gets the anomaly_score of this WebhookTampering. # noqa: E501 

79 

80 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 

81 

82 :return: The anomaly_score of this WebhookTampering. # noqa: E501 

83 """ 

84 return self._anomaly_score 

85 

86 @anomaly_score.setter 

87 def anomaly_score(self, anomaly_score: Optional[float]): 

88 """Sets the anomaly_score of this WebhookTampering. 

89 

90 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 

91 

92 :param anomaly_score: The anomaly_score of this WebhookTampering. # noqa: E501 

93 """ 

94 

95 self._anomaly_score = anomaly_score 

96 

97 @property 

98 def anti_detect_browser(self) -> Optional[bool]: 

99 """Gets the anti_detect_browser of this WebhookTampering. # noqa: E501 

100 

101 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 

102 

103 :return: The anti_detect_browser of this WebhookTampering. # noqa: E501 

104 """ 

105 return self._anti_detect_browser 

106 

107 @anti_detect_browser.setter 

108 def anti_detect_browser(self, anti_detect_browser: Optional[bool]): 

109 """Sets the anti_detect_browser of this WebhookTampering. 

110 

111 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 

112 

113 :param anti_detect_browser: The anti_detect_browser of this WebhookTampering. # noqa: E501 

114 """ 

115 

116 self._anti_detect_browser = anti_detect_browser 

117