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
« prev ^ index » next coverage.py v7.6.12, created at 2025-02-21 15:03 +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 re # noqa: F401
14from typing import Dict, List, Optional # noqa: F401
15from fingerprint_pro_server_api_sdk.base_model import BaseModel
18class VPNMethods(BaseModel):
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 'timezone_mismatch': 'bool',
32 'public_vpn': 'bool',
33 'auxiliary_mobile': 'bool',
34 'os_mismatch': 'bool',
35 'relay': 'bool'
36 }
38 nullable_map = {
39 'timezone_mismatch': False,
40 'public_vpn': False,
41 'auxiliary_mobile': False,
42 'os_mismatch': False,
43 'relay': False
44 }
46 attribute_map = {
47 'timezone_mismatch': 'timezoneMismatch',
48 'public_vpn': 'publicVPN',
49 'auxiliary_mobile': 'auxiliaryMobile',
50 'os_mismatch': 'osMismatch',
51 'relay': 'relay'
52 }
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
68 @property
69 def timezone_mismatch(self) -> bool:
70 """Gets the timezone_mismatch of this VPNMethods. # noqa: E501
72 The browser timezone doesn't match the timezone inferred from the request IP address. # noqa: E501
74 :return: The timezone_mismatch of this VPNMethods. # noqa: E501
75 """
76 return self._timezone_mismatch
78 @timezone_mismatch.setter
79 def timezone_mismatch(self, timezone_mismatch: bool):
80 """Sets the timezone_mismatch of this VPNMethods.
82 The browser timezone doesn't match the timezone inferred from the request IP address. # noqa: E501
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
89 self._timezone_mismatch = timezone_mismatch
91 @property
92 def public_vpn(self) -> bool:
93 """Gets the public_vpn of this VPNMethods. # noqa: E501
95 Request IP address is owned and used by a public VPN service provider. # noqa: E501
97 :return: The public_vpn of this VPNMethods. # noqa: E501
98 """
99 return self._public_vpn
101 @public_vpn.setter
102 def public_vpn(self, public_vpn: bool):
103 """Sets the public_vpn of this VPNMethods.
105 Request IP address is owned and used by a public VPN service provider. # noqa: E501
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
112 self._public_vpn = public_vpn
114 @property
115 def auxiliary_mobile(self) -> bool:
116 """Gets the auxiliary_mobile of this VPNMethods. # noqa: E501
118 This method applies to mobile devices only. Indicates the result of additional methods used to detect a VPN in mobile devices. # noqa: E501
120 :return: The auxiliary_mobile of this VPNMethods. # noqa: E501
121 """
122 return self._auxiliary_mobile
124 @auxiliary_mobile.setter
125 def auxiliary_mobile(self, auxiliary_mobile: bool):
126 """Sets the auxiliary_mobile of this VPNMethods.
128 This method applies to mobile devices only. Indicates the result of additional methods used to detect a VPN in mobile devices. # noqa: E501
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
135 self._auxiliary_mobile = auxiliary_mobile
137 @property
138 def os_mismatch(self) -> bool:
139 """Gets the os_mismatch of this VPNMethods. # noqa: E501
141 The browser runs on a different operating system than the operating system inferred from the request network signature. # noqa: E501
143 :return: The os_mismatch of this VPNMethods. # noqa: E501
144 """
145 return self._os_mismatch
147 @os_mismatch.setter
148 def os_mismatch(self, os_mismatch: bool):
149 """Sets the os_mismatch of this VPNMethods.
151 The browser runs on a different operating system than the operating system inferred from the request network signature. # noqa: E501
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
158 self._os_mismatch = os_mismatch
160 @property
161 def relay(self) -> bool:
162 """Gets the relay of this VPNMethods. # noqa: E501
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
166 :return: The relay of this VPNMethods. # noqa: E501
167 """
168 return self._relay
170 @relay.setter
171 def relay(self, relay: bool):
172 """Sets the relay of this VPNMethods.
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
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
181 self._relay = relay