Coverage for fingerprint_pro_server_api_sdk/models/products_response_identification.py: 56%

54 statements  

« prev     ^ index     » next       coverage.py v7.4.4, created at 2024-03-27 22:39 +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 pprint 

14import re # noqa: F401 

15 

16import six 

17 

18class ProductsResponseIdentification(object): 

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 'data': 'ProductsResponseIdentificationData', 

32 'error': 'IdentificationError' 

33 } 

34 

35 attribute_map = { 

36 'data': 'data', 

37 'error': 'error' 

38 } 

39 

40 def __init__(self, data=None, error=None): # noqa: E501 

41 """ProductsResponseIdentification - 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 

49 

50 @property 

51 def data(self): 

52 """Gets the data of this ProductsResponseIdentification. # noqa: E501 

53 

54 

55 :return: The data of this ProductsResponseIdentification. # noqa: E501 

56 :rtype: ProductsResponseIdentificationData 

57 """ 

58 return self._data 

59 

60 @data.setter 

61 def data(self, data): 

62 """Sets the data of this ProductsResponseIdentification. 

63 

64 

65 :param data: The data of this ProductsResponseIdentification. # noqa: E501 

66 :type: ProductsResponseIdentificationData 

67 """ 

68 

69 self._data = data 

70 

71 @property 

72 def error(self): 

73 """Gets the error of this ProductsResponseIdentification. # noqa: E501 

74 

75 

76 :return: The error of this ProductsResponseIdentification. # noqa: E501 

77 :rtype: IdentificationError 

78 """ 

79 return self._error 

80 

81 @error.setter 

82 def error(self, error): 

83 """Sets the error of this ProductsResponseIdentification. 

84 

85 

86 :param error: The error of this ProductsResponseIdentification. # noqa: E501 

87 :type: IdentificationError 

88 """ 

89 

90 self._error = error 

91 

92 def to_dict(self): 

93 """Returns the model properties as a dict""" 

94 result = {} 

95 

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(ProductsResponseIdentification, dict): 

114 for key, value in self.items(): 

115 result[key] = value 

116 

117 return result 

118 

119 def to_str(self): 

120 """Returns the string representation of the model""" 

121 return pprint.pformat(self.to_dict()) 

122 

123 def __repr__(self): 

124 """For `print` and `pprint`""" 

125 return self.to_str() 

126 

127 def __eq__(self, other): 

128 """Returns true if both objects are equal""" 

129 if not isinstance(other, ProductsResponseIdentification): 

130 return False 

131 

132 return self.to_dict() == other.to_dict() 

133 

134 def __ne__(self, other): 

135 """Returns true if both objects are not equal""" 

136 if not isinstance(other, ProductsResponseIdentification): 

137 return True 

138 

139 return self.to_dict() != other.to_dict()