Coverage for fingerprint_pro_server_api_sdk/models/vpn_result_methods.py: 58%

66 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 VpnResultMethods(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 'timezone_mismatch': 'bool', 

32 'public_vpn': 'bool', 

33 'auxiliary_mobile': 'bool' 

34 } 

35 

36 attribute_map = { 

37 'timezone_mismatch': 'timezoneMismatch', 

38 'public_vpn': 'publicVPN', 

39 'auxiliary_mobile': 'auxiliaryMobile' 

40 } 

41 

42 def __init__(self, timezone_mismatch=None, public_vpn=None, auxiliary_mobile=None): # noqa: E501 

43 """VpnResultMethods - a model defined in Swagger""" # noqa: E501 

44 self._timezone_mismatch = None 

45 self._public_vpn = None 

46 self._auxiliary_mobile = None 

47 self.discriminator = None 

48 self.timezone_mismatch = timezone_mismatch 

49 self.public_vpn = public_vpn 

50 self.auxiliary_mobile = auxiliary_mobile 

51 

52 @property 

53 def timezone_mismatch(self): 

54 """Gets the timezone_mismatch of this VpnResultMethods. # noqa: E501 

55 

56 User's browser timezone doesn't match the timezone from which the request was originally made. # noqa: E501 

57 

58 :return: The timezone_mismatch of this VpnResultMethods. # noqa: E501 

59 :rtype: bool 

60 """ 

61 return self._timezone_mismatch 

62 

63 @timezone_mismatch.setter 

64 def timezone_mismatch(self, timezone_mismatch): 

65 """Sets the timezone_mismatch of this VpnResultMethods. 

66 

67 User's browser timezone doesn't match the timezone from which the request was originally made. # noqa: E501 

68 

69 :param timezone_mismatch: The timezone_mismatch of this VpnResultMethods. # noqa: E501 

70 :type: bool 

71 """ 

72 if timezone_mismatch is None: 

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

74 

75 self._timezone_mismatch = timezone_mismatch 

76 

77 @property 

78 def public_vpn(self): 

79 """Gets the public_vpn of this VpnResultMethods. # noqa: E501 

80 

81 Request IP address is owned and used by a public VPN service provider. # noqa: E501 

82 

83 :return: The public_vpn of this VpnResultMethods. # noqa: E501 

84 :rtype: bool 

85 """ 

86 return self._public_vpn 

87 

88 @public_vpn.setter 

89 def public_vpn(self, public_vpn): 

90 """Sets the public_vpn of this VpnResultMethods. 

91 

92 Request IP address is owned and used by a public VPN service provider. # noqa: E501 

93 

94 :param public_vpn: The public_vpn of this VpnResultMethods. # noqa: E501 

95 :type: bool 

96 """ 

97 if public_vpn is None: 

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

99 

100 self._public_vpn = public_vpn 

101 

102 @property 

103 def auxiliary_mobile(self): 

104 """Gets the auxiliary_mobile of this VpnResultMethods. # noqa: E501 

105 

106 This method applies to mobile devices only. Indicates the result of additional methods used to detect a VPN in mobile devices. # noqa: E501 

107 

108 :return: The auxiliary_mobile of this VpnResultMethods. # noqa: E501 

109 :rtype: bool 

110 """ 

111 return self._auxiliary_mobile 

112 

113 @auxiliary_mobile.setter 

114 def auxiliary_mobile(self, auxiliary_mobile): 

115 """Sets the auxiliary_mobile of this VpnResultMethods. 

116 

117 This method applies to mobile devices only. Indicates the result of additional methods used to detect a VPN in mobile devices. # noqa: E501 

118 

119 :param auxiliary_mobile: The auxiliary_mobile of this VpnResultMethods. # noqa: E501 

120 :type: bool 

121 """ 

122 if auxiliary_mobile is None: 

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

124 

125 self._auxiliary_mobile = auxiliary_mobile 

126 

127 def to_dict(self): 

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

129 result = {} 

130 

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

132 value = getattr(self, attr) 

133 if isinstance(value, list): 

134 result[attr] = list(map( 

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

136 value 

137 )) 

138 elif hasattr(value, "to_dict"): 

139 result[attr] = value.to_dict() 

140 elif isinstance(value, dict): 

141 result[attr] = dict(map( 

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

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

144 value.items() 

145 )) 

146 else: 

147 result[attr] = value 

148 if issubclass(VpnResultMethods, dict): 

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

150 result[key] = value 

151 

152 return result 

153 

154 def to_str(self): 

155 """Returns the string representation of the model""" 

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

157 

158 def __repr__(self): 

159 """For `print` and `pprint`""" 

160 return self.to_str() 

161 

162 def __eq__(self, other): 

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

164 if not isinstance(other, VpnResultMethods): 

165 return False 

166 

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

168 

169 def __ne__(self, other): 

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

171 if not isinstance(other, VpnResultMethods): 

172 return True 

173 

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