Coverage for fingerprint_pro_server_api_sdk/models/raw_device_attributes_result.py: 36%

36 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 RawDeviceAttributesResult(object): 

19 """ 

20 It includes 35+ raw browser identification attributes to provide Fingerprint users with even more information than our standard visitor ID provides. This enables Fingerprint users to not have to run our open-source product in conjunction with Fingerprint Pro Plus and Enterprise to get those additional attributes. Warning: The raw signals data can change at any moment as we improve the product. We cannot guarantee the internal shape of raw device attributes to be stable, so typical semantic versioning rules do not apply here. Use this data with caution without assuming a specific structure beyond the generic type provided here.  

21 

22 NOTE: This class is auto generated by the swagger code generator program. 

23 

24 Do not edit the class manually. 

25 """ 

26 """ 

27 Attributes: 

28 swagger_types (dict): The key is attribute name 

29 and the value is attribute type. 

30 attribute_map (dict): The key is attribute name 

31 and the value is json key in definition. 

32 """ 

33 swagger_types = { 

34 } 

35 

36 attribute_map = { 

37 } 

38 

39 def __init__(self): # noqa: E501 

40 """RawDeviceAttributesResult - a model defined in Swagger""" # noqa: E501 

41 self.discriminator = None 

42 

43 def to_dict(self): 

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

45 result = {} 

46 

47 for attr, _ in six.iteritems(self.swagger_types): 

48 value = getattr(self, attr) 

49 if isinstance(value, list): 

50 result[attr] = list(map( 

51 lambda x: x.to_dict() if hasattr(x, "to_dict") else x, 

52 value 

53 )) 

54 elif hasattr(value, "to_dict"): 

55 result[attr] = value.to_dict() 

56 elif isinstance(value, dict): 

57 result[attr] = dict(map( 

58 lambda item: (item[0], item[1].to_dict()) 

59 if hasattr(item[1], "to_dict") else item, 

60 value.items() 

61 )) 

62 else: 

63 result[attr] = value 

64 if issubclass(RawDeviceAttributesResult, dict): 

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

66 result[key] = value 

67 

68 return result 

69 

70 def to_str(self): 

71 """Returns the string representation of the model""" 

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

73 

74 def __repr__(self): 

75 """For `print` and `pprint`""" 

76 return self.to_str() 

77 

78 def __eq__(self, other): 

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

80 if not isinstance(other, RawDeviceAttributesResult): 

81 return False 

82 

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

84 

85 def __ne__(self, other): 

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

87 if not isinstance(other, RawDeviceAttributesResult): 

88 return True 

89 

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