Coverage for fingerprint_pro_server_api_sdk/models/signal_response_virtual_machine.py: 56%
54 statements
« prev ^ index » next coverage.py v7.4.4, created at 2024-03-27 22:39 +0000
« prev ^ index » next coverage.py v7.4.4, created at 2024-03-27 22:39 +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 pprint
14import re # noqa: F401
16import six
18class SignalResponseVirtualMachine(object):
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 'data': 'VirtualMachineResult',
32 'error': 'ProductError'
33 }
35 attribute_map = {
36 'data': 'data',
37 'error': 'error'
38 }
40 def __init__(self, data=None, error=None): # noqa: E501
41 """SignalResponseVirtualMachine - a model defined in Swagger""" # noqa: E501
42 self._data = None
43 self._error = None
44 self.discriminator = None
45 if data is not None:
46 self.data = data
47 if error is not None:
48 self.error = error
50 @property
51 def data(self):
52 """Gets the data of this SignalResponseVirtualMachine. # noqa: E501
55 :return: The data of this SignalResponseVirtualMachine. # noqa: E501
56 :rtype: VirtualMachineResult
57 """
58 return self._data
60 @data.setter
61 def data(self, data):
62 """Sets the data of this SignalResponseVirtualMachine.
65 :param data: The data of this SignalResponseVirtualMachine. # noqa: E501
66 :type: VirtualMachineResult
67 """
69 self._data = data
71 @property
72 def error(self):
73 """Gets the error of this SignalResponseVirtualMachine. # noqa: E501
76 :return: The error of this SignalResponseVirtualMachine. # noqa: E501
77 :rtype: ProductError
78 """
79 return self._error
81 @error.setter
82 def error(self, error):
83 """Sets the error of this SignalResponseVirtualMachine.
86 :param error: The error of this SignalResponseVirtualMachine. # noqa: E501
87 :type: ProductError
88 """
90 self._error = error
92 def to_dict(self):
93 """Returns the model properties as a dict"""
94 result = {}
96 for attr, _ in six.iteritems(self.swagger_types):
97 value = getattr(self, attr)
98 if isinstance(value, list):
99 result[attr] = list(map(
100 lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
101 value
102 ))
103 elif hasattr(value, "to_dict"):
104 result[attr] = value.to_dict()
105 elif isinstance(value, dict):
106 result[attr] = dict(map(
107 lambda item: (item[0], item[1].to_dict())
108 if hasattr(item[1], "to_dict") else item,
109 value.items()
110 ))
111 else:
112 result[attr] = value
113 if issubclass(SignalResponseVirtualMachine, dict):
114 for key, value in self.items():
115 result[key] = value
117 return result
119 def to_str(self):
120 """Returns the string representation of the model"""
121 return pprint.pformat(self.to_dict())
123 def __repr__(self):
124 """For `print` and `pprint`"""
125 return self.to_str()
127 def __eq__(self, other):
128 """Returns true if both objects are equal"""
129 if not isinstance(other, SignalResponseVirtualMachine):
130 return False
132 return self.to_dict() == other.to_dict()
134 def __ne__(self, other):
135 """Returns true if both objects are not equal"""
136 if not isinstance(other, SignalResponseVirtualMachine):
137 return True
139 return self.to_dict() != other.to_dict()