Coverage for fingerprint_pro_server_api_sdk/models/webhook_vpn.py: 54%
57 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
16from fingerprint_pro_server_api_sdk.models.vpn_confidence import VPNConfidence
17from fingerprint_pro_server_api_sdk.models.vpn_methods import VPNMethods
20class WebhookVPN(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 nullable_map = {
41 'result': False,
42 'confidence': False,
43 'origin_timezone': False,
44 'origin_country': False,
45 'methods': False
46 }
48 attribute_map = {
49 'result': 'result',
50 'confidence': 'confidence',
51 'origin_timezone': 'originTimezone',
52 'origin_country': 'originCountry',
53 'methods': 'methods'
54 }
56 def __init__(self, result=None, confidence=None, origin_timezone=None, origin_country=None, methods=None): # noqa: E501
57 """WebhookVPN - a model defined in Swagger""" # noqa: E501
58 self._result = None
59 self._confidence = None
60 self._origin_timezone = None
61 self._origin_country = None
62 self._methods = None
63 self.discriminator = None
64 if result is not None:
65 self.result = result
66 if confidence is not None:
67 self.confidence = confidence
68 if origin_timezone is not None:
69 self.origin_timezone = origin_timezone
70 if origin_country is not None:
71 self.origin_country = origin_country
72 if methods is not None:
73 self.methods = methods
75 @property
76 def result(self) -> Optional[bool]:
77 """Gets the result of this WebhookVPN. # noqa: E501
79 VPN or other anonymizing service has been used when sending the request. # noqa: E501
81 :return: The result of this WebhookVPN. # noqa: E501
82 """
83 return self._result
85 @result.setter
86 def result(self, result: Optional[bool]):
87 """Sets the result of this WebhookVPN.
89 VPN or other anonymizing service has been used when sending the request. # noqa: E501
91 :param result: The result of this WebhookVPN. # noqa: E501
92 """
94 self._result = result
96 @property
97 def confidence(self) -> Optional[VPNConfidence]:
98 """Gets the confidence of this WebhookVPN. # noqa: E501
101 :return: The confidence of this WebhookVPN. # noqa: E501
102 """
103 return self._confidence
105 @confidence.setter
106 def confidence(self, confidence: Optional[VPNConfidence]):
107 """Sets the confidence of this WebhookVPN.
110 :param confidence: The confidence of this WebhookVPN. # noqa: E501
111 """
113 self._confidence = confidence
115 @property
116 def origin_timezone(self) -> Optional[str]:
117 """Gets the origin_timezone of this WebhookVPN. # noqa: E501
119 Local timezone which is used in timezoneMismatch method. # noqa: E501
121 :return: The origin_timezone of this WebhookVPN. # noqa: E501
122 """
123 return self._origin_timezone
125 @origin_timezone.setter
126 def origin_timezone(self, origin_timezone: Optional[str]):
127 """Sets the origin_timezone of this WebhookVPN.
129 Local timezone which is used in timezoneMismatch method. # noqa: E501
131 :param origin_timezone: The origin_timezone of this WebhookVPN. # noqa: E501
132 """
134 self._origin_timezone = origin_timezone
136 @property
137 def origin_country(self) -> Optional[str]:
138 """Gets the origin_country of this WebhookVPN. # noqa: E501
140 Country of the request (only for Android SDK version >= 2.4.0, ISO 3166 format or unknown). # noqa: E501
142 :return: The origin_country of this WebhookVPN. # noqa: E501
143 """
144 return self._origin_country
146 @origin_country.setter
147 def origin_country(self, origin_country: Optional[str]):
148 """Sets the origin_country of this WebhookVPN.
150 Country of the request (only for Android SDK version >= 2.4.0, ISO 3166 format or unknown). # noqa: E501
152 :param origin_country: The origin_country of this WebhookVPN. # noqa: E501
153 """
155 self._origin_country = origin_country
157 @property
158 def methods(self) -> Optional[VPNMethods]:
159 """Gets the methods of this WebhookVPN. # noqa: E501
162 :return: The methods of this WebhookVPN. # noqa: E501
163 """
164 return self._methods
166 @methods.setter
167 def methods(self, methods: Optional[VPNMethods]):
168 """Sets the methods of this WebhookVPN.
171 :param methods: The methods of this WebhookVPN. # noqa: E501
172 """
174 self._methods = methods