Coverage for fingerprint_pro_server_api_sdk/models/webhook_virtual_machine.py: 61%
28 statements
« prev ^ index » next coverage.py v7.14.2, created at 2026-06-22 14:27 +0000
« prev ^ index » next coverage.py v7.14.2, created at 2026-06-22 14:27 +0000
1# coding: utf-8
3"""
4 Server API v3 (deprecated)
6 > 🚧 Deprecation Notice > > This version of Server API is marked as deprecated starting on **Jan 7th 2026** and will be fully defunct on **Jan 7th 2027** according to our [API Deprecation Policy](https://dev.fingerprint.com/reference/api-deprecation-policy). If you still use this version, please follow our [migration guide](https://dev.fingerprint.com/reference/migrating-from-server-api-v3-to-v4) to migrate from this deprecated version to the new one. Fingerprint Server API allows you to search, update, and delete identification 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 WebhookVirtualMachine(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 'ml_score': 'float'
33 }
35 nullable_map = {
36 'result': False,
37 'ml_score': False
38 }
40 attribute_map = {
41 'result': 'result',
42 'ml_score': 'mlScore'
43 }
45 def __init__(self, result=None, ml_score=None): # noqa: E501
46 """WebhookVirtualMachine - a model defined in Swagger""" # noqa: E501
47 self._result = None
48 self._ml_score = None
49 self.discriminator = None
50 if result is not None:
51 self.result = result
52 if ml_score is not None:
53 self.ml_score = ml_score
55 @property
56 def result(self) -> Optional[bool]:
57 """Gets the result of this WebhookVirtualMachine. # noqa: E501
59 `true` if the request came from a browser running inside a virtual machine (e.g. VMWare), `false` otherwise. # noqa: E501
61 :return: The result of this WebhookVirtualMachine. # noqa: E501
62 """
63 return self._result
65 @result.setter
66 def result(self, result: Optional[bool]):
67 """Sets the result of this WebhookVirtualMachine.
69 `true` if the request came from a browser running inside a virtual machine (e.g. VMWare), `false` otherwise. # noqa: E501
71 :param result: The result of this WebhookVirtualMachine. # noqa: E501
72 """
74 self._result = result
76 @property
77 def ml_score(self) -> Optional[float]:
78 """Gets the ml_score of this WebhookVirtualMachine. # noqa: E501
80 Machine learning–based virtual machine score, represented as a floating-point value between 0 and 1 (inclusive), with up to three decimal places of precision. A higher score means a higher confidence in the positive `virtual_machine` detection result # noqa: E501
82 :return: The ml_score of this WebhookVirtualMachine. # noqa: E501
83 """
84 return self._ml_score
86 @ml_score.setter
87 def ml_score(self, ml_score: Optional[float]):
88 """Sets the ml_score of this WebhookVirtualMachine.
90 Machine learning–based virtual machine score, represented as a floating-point value between 0 and 1 (inclusive), with up to three decimal places of precision. A higher score means a higher confidence in the positive `virtual_machine` detection result # noqa: E501
92 :param ml_score: The ml_score of this WebhookVirtualMachine. # noqa: E501
93 """
95 self._ml_score = ml_score