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
« prev ^ index » next coverage.py v7.6.9, created at 2024-12-09 17:50 +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 attribute_map = {
37 'result': 'result',
38 'anomaly_score': 'anomalyScore',
39 'anti_detect_browser': 'antiDetectBrowser'
40 }
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
55 @property
56 def result(self) -> Optional[bool]:
57 """Gets the result of this WebhookTampering. # noqa: E501
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
61 :return: The result of this WebhookTampering. # noqa: E501
62 """
63 return self._result
65 @result.setter
66 def result(self, result: Optional[bool]):
67 """Sets the result of this WebhookTampering.
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
71 :param result: The result of this WebhookTampering. # noqa: E501
72 """
74 self._result = result
76 @property
77 def anomaly_score(self) -> Optional[float]:
78 """Gets the anomaly_score of this WebhookTampering. # noqa: E501
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
82 :return: The anomaly_score of this WebhookTampering. # noqa: E501
83 """
84 return self._anomaly_score
86 @anomaly_score.setter
87 def anomaly_score(self, anomaly_score: Optional[float]):
88 """Sets the anomaly_score of this WebhookTampering.
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
92 :param anomaly_score: The anomaly_score of this WebhookTampering. # noqa: E501
93 """
95 self._anomaly_score = anomaly_score
97 @property
98 def anti_detect_browser(self) -> Optional[bool]:
99 """Gets the anti_detect_browser of this WebhookTampering. # noqa: E501
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
103 :return: The anti_detect_browser of this WebhookTampering. # noqa: E501
104 """
105 return self._anti_detect_browser
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.
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
113 :param anti_detect_browser: The anti_detect_browser of this WebhookTampering. # noqa: E501
114 """
116 self._anti_detect_browser = anti_detect_browser