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

1# coding: utf-8 

2 

3""" 

4 Server API v3 (deprecated) 

5 

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 

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 WebhookVirtualMachine(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 'ml_score': 'float' 

33 } 

34 

35 nullable_map = { 

36 'result': False, 

37 'ml_score': False 

38 } 

39 

40 attribute_map = { 

41 'result': 'result', 

42 'ml_score': 'mlScore' 

43 } 

44 

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 

54 

55 @property 

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

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

58 

59 `true` if the request came from a browser running inside a virtual machine (e.g. VMWare), `false` otherwise. # noqa: E501 

60 

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

62 """ 

63 return self._result 

64 

65 @result.setter 

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

67 """Sets the result of this WebhookVirtualMachine. 

68 

69 `true` if the request came from a browser running inside a virtual machine (e.g. VMWare), `false` otherwise. # noqa: E501 

70 

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

72 """ 

73 

74 self._result = result 

75 

76 @property 

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

78 """Gets the ml_score of this WebhookVirtualMachine. # noqa: E501 

79 

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 

81 

82 :return: The ml_score of this WebhookVirtualMachine. # noqa: E501 

83 """ 

84 return self._ml_score 

85 

86 @ml_score.setter 

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

88 """Sets the ml_score of this WebhookVirtualMachine. 

89 

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 

91 

92 :param ml_score: The ml_score of this WebhookVirtualMachine. # noqa: E501 

93 """ 

94 

95 self._ml_score = ml_score 

96