Coverage for fingerprint_pro_server_api_sdk/models/vpn_methods.py: 93%

60 statements  

« prev     ^ index     » next       coverage.py v7.6.12, created at 2025-02-21 15:03 +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 VPNMethods(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 'timezone_mismatch': 'bool', 

32 'public_vpn': 'bool', 

33 'auxiliary_mobile': 'bool', 

34 'os_mismatch': 'bool', 

35 'relay': 'bool' 

36 } 

37 

38 nullable_map = { 

39 'timezone_mismatch': False, 

40 'public_vpn': False, 

41 'auxiliary_mobile': False, 

42 'os_mismatch': False, 

43 'relay': False 

44 } 

45 

46 attribute_map = { 

47 'timezone_mismatch': 'timezoneMismatch', 

48 'public_vpn': 'publicVPN', 

49 'auxiliary_mobile': 'auxiliaryMobile', 

50 'os_mismatch': 'osMismatch', 

51 'relay': 'relay' 

52 } 

53 

54 def __init__(self, timezone_mismatch=None, public_vpn=None, auxiliary_mobile=None, os_mismatch=None, relay=None): # noqa: E501 

55 """VPNMethods - a model defined in Swagger""" # noqa: E501 

56 self._timezone_mismatch = None 

57 self._public_vpn = None 

58 self._auxiliary_mobile = None 

59 self._os_mismatch = None 

60 self._relay = None 

61 self.discriminator = None 

62 self.timezone_mismatch = timezone_mismatch 

63 self.public_vpn = public_vpn 

64 self.auxiliary_mobile = auxiliary_mobile 

65 self.os_mismatch = os_mismatch 

66 self.relay = relay 

67 

68 @property 

69 def timezone_mismatch(self) -> bool: 

70 """Gets the timezone_mismatch of this VPNMethods. # noqa: E501 

71 

72 The browser timezone doesn't match the timezone inferred from the request IP address. # noqa: E501 

73 

74 :return: The timezone_mismatch of this VPNMethods. # noqa: E501 

75 """ 

76 return self._timezone_mismatch 

77 

78 @timezone_mismatch.setter 

79 def timezone_mismatch(self, timezone_mismatch: bool): 

80 """Sets the timezone_mismatch of this VPNMethods. 

81 

82 The browser timezone doesn't match the timezone inferred from the request IP address. # noqa: E501 

83 

84 :param timezone_mismatch: The timezone_mismatch of this VPNMethods. # noqa: E501 

85 """ 

86 if timezone_mismatch is None: 

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

88 

89 self._timezone_mismatch = timezone_mismatch 

90 

91 @property 

92 def public_vpn(self) -> bool: 

93 """Gets the public_vpn of this VPNMethods. # noqa: E501 

94 

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

96 

97 :return: The public_vpn of this VPNMethods. # noqa: E501 

98 """ 

99 return self._public_vpn 

100 

101 @public_vpn.setter 

102 def public_vpn(self, public_vpn: bool): 

103 """Sets the public_vpn of this VPNMethods. 

104 

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

106 

107 :param public_vpn: The public_vpn of this VPNMethods. # noqa: E501 

108 """ 

109 if public_vpn is None: 

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

111 

112 self._public_vpn = public_vpn 

113 

114 @property 

115 def auxiliary_mobile(self) -> bool: 

116 """Gets the auxiliary_mobile of this VPNMethods. # noqa: E501 

117 

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

119 

120 :return: The auxiliary_mobile of this VPNMethods. # noqa: E501 

121 """ 

122 return self._auxiliary_mobile 

123 

124 @auxiliary_mobile.setter 

125 def auxiliary_mobile(self, auxiliary_mobile: bool): 

126 """Sets the auxiliary_mobile of this VPNMethods. 

127 

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

129 

130 :param auxiliary_mobile: The auxiliary_mobile of this VPNMethods. # noqa: E501 

131 """ 

132 if auxiliary_mobile is None: 

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

134 

135 self._auxiliary_mobile = auxiliary_mobile 

136 

137 @property 

138 def os_mismatch(self) -> bool: 

139 """Gets the os_mismatch of this VPNMethods. # noqa: E501 

140 

141 The browser runs on a different operating system than the operating system inferred from the request network signature. # noqa: E501 

142 

143 :return: The os_mismatch of this VPNMethods. # noqa: E501 

144 """ 

145 return self._os_mismatch 

146 

147 @os_mismatch.setter 

148 def os_mismatch(self, os_mismatch: bool): 

149 """Sets the os_mismatch of this VPNMethods. 

150 

151 The browser runs on a different operating system than the operating system inferred from the request network signature. # noqa: E501 

152 

153 :param os_mismatch: The os_mismatch of this VPNMethods. # noqa: E501 

154 """ 

155 if os_mismatch is None: 

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

157 

158 self._os_mismatch = os_mismatch 

159 

160 @property 

161 def relay(self) -> bool: 

162 """Gets the relay of this VPNMethods. # noqa: E501 

163 

164 Request IP address belongs to a relay service provider, indicating the use of relay services like [Apple Private relay](https://support.apple.com/en-us/102602) or [Cloudflare Warp](https://developers.cloudflare.com/warp-client/). * Like VPNs, relay services anonymize the visitor's true IP address. * Unlike traditional VPNs, relay services don't let visitors spoof their location by choosing an exit node in a different country. This field allows you to differentiate VPN users and relay service users in your fraud prevention logic. # noqa: E501 

165 

166 :return: The relay of this VPNMethods. # noqa: E501 

167 """ 

168 return self._relay 

169 

170 @relay.setter 

171 def relay(self, relay: bool): 

172 """Sets the relay of this VPNMethods. 

173 

174 Request IP address belongs to a relay service provider, indicating the use of relay services like [Apple Private relay](https://support.apple.com/en-us/102602) or [Cloudflare Warp](https://developers.cloudflare.com/warp-client/). * Like VPNs, relay services anonymize the visitor's true IP address. * Unlike traditional VPNs, relay services don't let visitors spoof their location by choosing an exit node in a different country. This field allows you to differentiate VPN users and relay service users in your fraud prevention logic. # noqa: E501 

175 

176 :param relay: The relay of this VPNMethods. # noqa: E501 

177 """ 

178 if relay is None: 

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

180 

181 self._relay = relay 

182