Coverage for fingerprint_pro_server_api_sdk/models/virtual_machine.py: 89%

19 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 VirtualMachine(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 } 

33 

34 attribute_map = { 

35 'result': 'result' 

36 } 

37 

38 def __init__(self, result=None): # noqa: E501 

39 """VirtualMachine - a model defined in Swagger""" # noqa: E501 

40 self._result = None 

41 self.discriminator = None 

42 self.result = result 

43 

44 @property 

45 def result(self) -> bool: 

46 """Gets the result of this VirtualMachine. # noqa: E501 

47 

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

49 

50 :return: The result of this VirtualMachine. # noqa: E501 

51 """ 

52 return self._result 

53 

54 @result.setter 

55 def result(self, result: bool): 

56 """Sets the result of this VirtualMachine. 

57 

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

59 

60 :param result: The result of this VirtualMachine. # noqa: E501 

61 """ 

62 if result is None: 

63 raise ValueError("Invalid value for `result`, must not be `None`") # noqa: E501 

64 

65 self._result = result 

66