Coverage for fingerprint_pro_server_api_sdk/models/vpn.py: 84%
61 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
16from fingerprint_pro_server_api_sdk.models.vpn_confidence import VPNConfidence
17from fingerprint_pro_server_api_sdk.models.vpn_methods import VPNMethods
20class VPN(BaseModel):
21 """NOTE: This class is auto generated by the swagger code generator program.
23 Do not edit the class manually.
24 """
25 """
26 Attributes:
27 swagger_types (dict): The key is attribute name
28 and the value is attribute type.
29 attribute_map (dict): The key is attribute name
30 and the value is json key in definition.
31 """
32 swagger_types = {
33 'result': 'bool',
34 'confidence': 'VPNConfidence',
35 'origin_timezone': 'str',
36 'origin_country': 'str',
37 'methods': 'VPNMethods'
38 }
40 attribute_map = {
41 'result': 'result',
42 'confidence': 'confidence',
43 'origin_timezone': 'originTimezone',
44 'origin_country': 'originCountry',
45 'methods': 'methods'
46 }
48 def __init__(self, result=None, confidence=None, origin_timezone=None, origin_country=None, methods=None): # noqa: E501
49 """VPN - a model defined in Swagger""" # noqa: E501
50 self._result = None
51 self._confidence = None
52 self._origin_timezone = None
53 self._origin_country = None
54 self._methods = None
55 self.discriminator = None
56 self.result = result
57 self.confidence = confidence
58 self.origin_timezone = origin_timezone
59 self.origin_country = origin_country
60 self.methods = methods
62 @property
63 def result(self) -> bool:
64 """Gets the result of this VPN. # noqa: E501
66 VPN or other anonymizing service has been used when sending the request. # noqa: E501
68 :return: The result of this VPN. # noqa: E501
69 """
70 return self._result
72 @result.setter
73 def result(self, result: bool):
74 """Sets the result of this VPN.
76 VPN or other anonymizing service has been used when sending the request. # noqa: E501
78 :param result: The result of this VPN. # noqa: E501
79 """
80 if result is None:
81 raise ValueError("Invalid value for `result`, must not be `None`") # noqa: E501
83 self._result = result
85 @property
86 def confidence(self) -> VPNConfidence:
87 """Gets the confidence of this VPN. # noqa: E501
90 :return: The confidence of this VPN. # noqa: E501
91 """
92 return self._confidence
94 @confidence.setter
95 def confidence(self, confidence: VPNConfidence):
96 """Sets the confidence of this VPN.
99 :param confidence: The confidence of this VPN. # noqa: E501
100 """
101 if confidence is None:
102 raise ValueError("Invalid value for `confidence`, must not be `None`") # noqa: E501
104 self._confidence = confidence
106 @property
107 def origin_timezone(self) -> str:
108 """Gets the origin_timezone of this VPN. # noqa: E501
110 Local timezone which is used in timezoneMismatch method. # noqa: E501
112 :return: The origin_timezone of this VPN. # noqa: E501
113 """
114 return self._origin_timezone
116 @origin_timezone.setter
117 def origin_timezone(self, origin_timezone: str):
118 """Sets the origin_timezone of this VPN.
120 Local timezone which is used in timezoneMismatch method. # noqa: E501
122 :param origin_timezone: The origin_timezone of this VPN. # noqa: E501
123 """
124 if origin_timezone is None:
125 raise ValueError("Invalid value for `origin_timezone`, must not be `None`") # noqa: E501
127 self._origin_timezone = origin_timezone
129 @property
130 def origin_country(self) -> str:
131 """Gets the origin_country of this VPN. # noqa: E501
133 Country of the request (only for Android SDK version >= 2.4.0, ISO 3166 format or unknown). # noqa: E501
135 :return: The origin_country of this VPN. # noqa: E501
136 """
137 return self._origin_country
139 @origin_country.setter
140 def origin_country(self, origin_country: str):
141 """Sets the origin_country of this VPN.
143 Country of the request (only for Android SDK version >= 2.4.0, ISO 3166 format or unknown). # noqa: E501
145 :param origin_country: The origin_country of this VPN. # noqa: E501
146 """
147 if origin_country is None:
148 raise ValueError("Invalid value for `origin_country`, must not be `None`") # noqa: E501
150 self._origin_country = origin_country
152 @property
153 def methods(self) -> VPNMethods:
154 """Gets the methods of this VPN. # noqa: E501
157 :return: The methods of this VPN. # noqa: E501
158 """
159 return self._methods
161 @methods.setter
162 def methods(self, methods: VPNMethods):
163 """Sets the methods of this VPN.
166 :param methods: The methods of this VPN. # noqa: E501
167 """
168 if methods is None:
169 raise ValueError("Invalid value for `methods`, must not be `None`") # noqa: E501
171 self._methods = methods