Coverage for fingerprint_pro_server_api_sdk/models/webhook_vpn.py: 54%
56 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 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 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 """WebhookVPN - 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 if result is not None:
57 self.result = result
58 if confidence is not None:
59 self.confidence = confidence
60 if origin_timezone is not None:
61 self.origin_timezone = origin_timezone
62 if origin_country is not None:
63 self.origin_country = origin_country
64 if methods is not None:
65 self.methods = methods
67 @property
68 def result(self) -> Optional[bool]:
69 """Gets the result of this WebhookVPN. # noqa: E501
71 VPN or other anonymizing service has been used when sending the request. # noqa: E501
73 :return: The result of this WebhookVPN. # noqa: E501
74 """
75 return self._result
77 @result.setter
78 def result(self, result: Optional[bool]):
79 """Sets the result of this WebhookVPN.
81 VPN or other anonymizing service has been used when sending the request. # noqa: E501
83 :param result: The result of this WebhookVPN. # noqa: E501
84 """
86 self._result = result
88 @property
89 def confidence(self) -> Optional[VPNConfidence]:
90 """Gets the confidence of this WebhookVPN. # noqa: E501
93 :return: The confidence of this WebhookVPN. # noqa: E501
94 """
95 return self._confidence
97 @confidence.setter
98 def confidence(self, confidence: Optional[VPNConfidence]):
99 """Sets the confidence of this WebhookVPN.
102 :param confidence: The confidence of this WebhookVPN. # noqa: E501
103 """
105 self._confidence = confidence
107 @property
108 def origin_timezone(self) -> Optional[str]:
109 """Gets the origin_timezone of this WebhookVPN. # noqa: E501
111 Local timezone which is used in timezoneMismatch method. # noqa: E501
113 :return: The origin_timezone of this WebhookVPN. # noqa: E501
114 """
115 return self._origin_timezone
117 @origin_timezone.setter
118 def origin_timezone(self, origin_timezone: Optional[str]):
119 """Sets the origin_timezone of this WebhookVPN.
121 Local timezone which is used in timezoneMismatch method. # noqa: E501
123 :param origin_timezone: The origin_timezone of this WebhookVPN. # noqa: E501
124 """
126 self._origin_timezone = origin_timezone
128 @property
129 def origin_country(self) -> Optional[str]:
130 """Gets the origin_country of this WebhookVPN. # noqa: E501
132 Country of the request (only for Android SDK version >= 2.4.0, ISO 3166 format or unknown). # noqa: E501
134 :return: The origin_country of this WebhookVPN. # noqa: E501
135 """
136 return self._origin_country
138 @origin_country.setter
139 def origin_country(self, origin_country: Optional[str]):
140 """Sets the origin_country of this WebhookVPN.
142 Country of the request (only for Android SDK version >= 2.4.0, ISO 3166 format or unknown). # noqa: E501
144 :param origin_country: The origin_country of this WebhookVPN. # noqa: E501
145 """
147 self._origin_country = origin_country
149 @property
150 def methods(self) -> Optional[VPNMethods]:
151 """Gets the methods of this WebhookVPN. # noqa: E501
154 :return: The methods of this WebhookVPN. # noqa: E501
155 """
156 return self._methods
158 @methods.setter
159 def methods(self, methods: Optional[VPNMethods]):
160 """Sets the methods of this WebhookVPN.
163 :param methods: The methods of this WebhookVPN. # noqa: E501
164 """
166 self._methods = methods