Coverage for fingerprint_pro_server_api_sdk/models/vpn_methods.py: 85%
59 statements
« prev ^ index » next coverage.py v7.6.9, created at 2024-12-09 17:50 +0000
« prev ^ index » next coverage.py v7.6.9, created at 2024-12-09 17:50 +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 attribute_map = {
39 'timezone_mismatch': 'timezoneMismatch',
40 'public_vpn': 'publicVPN',
41 'auxiliary_mobile': 'auxiliaryMobile',
42 'os_mismatch': 'osMismatch',
43 'relay': 'relay'
44 }
46 def __init__(self, timezone_mismatch=None, public_vpn=None, auxiliary_mobile=None, os_mismatch=None, relay=None): # noqa: E501
47 """VPNMethods - a model defined in Swagger""" # noqa: E501
48 self._timezone_mismatch = None
49 self._public_vpn = None
50 self._auxiliary_mobile = None
51 self._os_mismatch = None
52 self._relay = None
53 self.discriminator = None
54 self.timezone_mismatch = timezone_mismatch
55 self.public_vpn = public_vpn
56 self.auxiliary_mobile = auxiliary_mobile
57 self.os_mismatch = os_mismatch
58 self.relay = relay
60 @property
61 def timezone_mismatch(self) -> bool:
62 """Gets the timezone_mismatch of this VPNMethods. # noqa: E501
64 The browser timezone doesn't match the timezone inferred from the request IP address. # noqa: E501
66 :return: The timezone_mismatch of this VPNMethods. # noqa: E501
67 """
68 return self._timezone_mismatch
70 @timezone_mismatch.setter
71 def timezone_mismatch(self, timezone_mismatch: bool):
72 """Sets the timezone_mismatch of this VPNMethods.
74 The browser timezone doesn't match the timezone inferred from the request IP address. # noqa: E501
76 :param timezone_mismatch: The timezone_mismatch of this VPNMethods. # noqa: E501
77 """
78 if timezone_mismatch is None:
79 raise ValueError("Invalid value for `timezone_mismatch`, must not be `None`") # noqa: E501
81 self._timezone_mismatch = timezone_mismatch
83 @property
84 def public_vpn(self) -> bool:
85 """Gets the public_vpn of this VPNMethods. # noqa: E501
87 Request IP address is owned and used by a public VPN service provider. # noqa: E501
89 :return: The public_vpn of this VPNMethods. # noqa: E501
90 """
91 return self._public_vpn
93 @public_vpn.setter
94 def public_vpn(self, public_vpn: bool):
95 """Sets the public_vpn of this VPNMethods.
97 Request IP address is owned and used by a public VPN service provider. # noqa: E501
99 :param public_vpn: The public_vpn of this VPNMethods. # noqa: E501
100 """
101 if public_vpn is None:
102 raise ValueError("Invalid value for `public_vpn`, must not be `None`") # noqa: E501
104 self._public_vpn = public_vpn
106 @property
107 def auxiliary_mobile(self) -> bool:
108 """Gets the auxiliary_mobile of this VPNMethods. # noqa: E501
110 This method applies to mobile devices only. Indicates the result of additional methods used to detect a VPN in mobile devices. # noqa: E501
112 :return: The auxiliary_mobile of this VPNMethods. # noqa: E501
113 """
114 return self._auxiliary_mobile
116 @auxiliary_mobile.setter
117 def auxiliary_mobile(self, auxiliary_mobile: bool):
118 """Sets the auxiliary_mobile of this VPNMethods.
120 This method applies to mobile devices only. Indicates the result of additional methods used to detect a VPN in mobile devices. # noqa: E501
122 :param auxiliary_mobile: The auxiliary_mobile of this VPNMethods. # noqa: E501
123 """
124 if auxiliary_mobile is None:
125 raise ValueError("Invalid value for `auxiliary_mobile`, must not be `None`") # noqa: E501
127 self._auxiliary_mobile = auxiliary_mobile
129 @property
130 def os_mismatch(self) -> bool:
131 """Gets the os_mismatch of this VPNMethods. # noqa: E501
133 The browser runs on a different operating system than the operating system inferred from the request network signature. # noqa: E501
135 :return: The os_mismatch of this VPNMethods. # noqa: E501
136 """
137 return self._os_mismatch
139 @os_mismatch.setter
140 def os_mismatch(self, os_mismatch: bool):
141 """Sets the os_mismatch of this VPNMethods.
143 The browser runs on a different operating system than the operating system inferred from the request network signature. # noqa: E501
145 :param os_mismatch: The os_mismatch of this VPNMethods. # noqa: E501
146 """
147 if os_mismatch is None:
148 raise ValueError("Invalid value for `os_mismatch`, must not be `None`") # noqa: E501
150 self._os_mismatch = os_mismatch
152 @property
153 def relay(self) -> bool:
154 """Gets the relay of this VPNMethods. # noqa: E501
156 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
158 :return: The relay of this VPNMethods. # noqa: E501
159 """
160 return self._relay
162 @relay.setter
163 def relay(self, relay: bool):
164 """Sets the relay of this VPNMethods.
166 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
168 :param relay: The relay of this VPNMethods. # noqa: E501
169 """
170 if relay is None:
171 raise ValueError("Invalid value for `relay`, must not be `None`") # noqa: E501
173 self._relay = relay