Coverage for fingerprint_pro_server_api_sdk/models/webhook_tampering.py: 57%
37 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 WebhookTampering(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 'result': 'bool',
32 'anomaly_score': 'float',
33 'anti_detect_browser': 'bool'
34 }
36 nullable_map = {
37 'result': False,
38 'anomaly_score': False,
39 'anti_detect_browser': False
40 }
42 attribute_map = {
43 'result': 'result',
44 'anomaly_score': 'anomalyScore',
45 'anti_detect_browser': 'antiDetectBrowser'
46 }
48 def __init__(self, result=None, anomaly_score=None, anti_detect_browser=None): # noqa: E501
49 """WebhookTampering - a model defined in Swagger""" # noqa: E501
50 self._result = None
51 self._anomaly_score = None
52 self._anti_detect_browser = None
53 self.discriminator = None
54 if result is not None:
55 self.result = result
56 if anomaly_score is not None:
57 self.anomaly_score = anomaly_score
58 if anti_detect_browser is not None:
59 self.anti_detect_browser = anti_detect_browser
61 @property
62 def result(self) -> Optional[bool]:
63 """Gets the result of this WebhookTampering. # noqa: E501
65 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 :return: The result of this WebhookTampering. # noqa: E501
68 """
69 return self._result
71 @result.setter
72 def result(self, result: Optional[bool]):
73 """Sets the result of this WebhookTampering.
75 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
77 :param result: The result of this WebhookTampering. # noqa: E501
78 """
80 self._result = result
82 @property
83 def anomaly_score(self) -> Optional[float]:
84 """Gets the anomaly_score of this WebhookTampering. # noqa: E501
86 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
88 :return: The anomaly_score of this WebhookTampering. # noqa: E501
89 """
90 return self._anomaly_score
92 @anomaly_score.setter
93 def anomaly_score(self, anomaly_score: Optional[float]):
94 """Sets the anomaly_score of this WebhookTampering.
96 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
98 :param anomaly_score: The anomaly_score of this WebhookTampering. # noqa: E501
99 """
101 self._anomaly_score = anomaly_score
103 @property
104 def anti_detect_browser(self) -> Optional[bool]:
105 """Gets the anti_detect_browser of this WebhookTampering. # noqa: E501
107 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
109 :return: The anti_detect_browser of this WebhookTampering. # noqa: E501
110 """
111 return self._anti_detect_browser
113 @anti_detect_browser.setter
114 def anti_detect_browser(self, anti_detect_browser: Optional[bool]):
115 """Sets the anti_detect_browser of this WebhookTampering.
117 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
119 :param anti_detect_browser: The anti_detect_browser of this WebhookTampering. # noqa: E501
120 """
122 self._anti_detect_browser = anti_detect_browser