Coverage for fingerprint_pro_server_api_sdk/models/deprecated_geolocation.py: 100%
97 statements
« prev ^ index » next coverage.py v7.10.1, created at 2025-07-30 17:13 +0000
« prev ^ index » next coverage.py v7.10.1, created at 2025-07-30 17:13 +0000
1# coding: utf-8
3"""
4 Fingerprint Server API
6 Fingerprint Server API allows you to search, update, and delete identification 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.geolocation_city import GeolocationCity
17from fingerprint_pro_server_api_sdk.models.geolocation_country import GeolocationCountry
18from fingerprint_pro_server_api_sdk.models.geolocation_continent import GeolocationContinent
19from fingerprint_pro_server_api_sdk.models.geolocation_subdivisions import GeolocationSubdivisions
20from typing_extensions import deprecated
23@deprecated("This class is deprecated. Please avoid using it in new code.")
24class DeprecatedGeolocation(BaseModel):
25 """
26 This field is **deprecated** and will not return a result for **applications created after January 23rd, 2024**. Please use the [IP Geolocation Smart signal](https://dev.fingerprint.com/docs/smart-signals-overview#ip-geolocation) for geolocation information.
28 NOTE: This class is auto generated by the swagger code generator program.
30 Do not edit the class manually.
31 """
32 """
33 Attributes:
34 swagger_types (dict): The key is attribute name
35 and the value is attribute type.
36 attribute_map (dict): The key is attribute name
37 and the value is json key in definition.
38 """
39 swagger_types = {
40 'accuracy_radius': 'int',
41 'latitude': 'float',
42 'longitude': 'float',
43 'postal_code': 'str',
44 'timezone': 'str',
45 'city': 'GeolocationCity',
46 'country': 'GeolocationCountry',
47 'continent': 'GeolocationContinent',
48 'subdivisions': 'GeolocationSubdivisions'
49 }
51 nullable_map = {
52 'accuracy_radius': False,
53 'latitude': False,
54 'longitude': False,
55 'postal_code': False,
56 'timezone': False,
57 'city': False,
58 'country': False,
59 'continent': False,
60 'subdivisions': False
61 }
63 attribute_map = {
64 'accuracy_radius': 'accuracyRadius',
65 'latitude': 'latitude',
66 'longitude': 'longitude',
67 'postal_code': 'postalCode',
68 'timezone': 'timezone',
69 'city': 'city',
70 'country': 'country',
71 'continent': 'continent',
72 'subdivisions': 'subdivisions'
73 }
75 def __init__(self, accuracy_radius=None, latitude=None, longitude=None, postal_code=None, timezone=None, city=None, country=None, continent=None, subdivisions=None): # noqa: E501
76 """DeprecatedGeolocation - a model defined in Swagger""" # noqa: E501
77 self._accuracy_radius = None
78 self._latitude = None
79 self._longitude = None
80 self._postal_code = None
81 self._timezone = None
82 self._city = None
83 self._country = None
84 self._continent = None
85 self._subdivisions = None
86 self.discriminator = None
87 if accuracy_radius is not None:
88 self.accuracy_radius = accuracy_radius
89 if latitude is not None:
90 self.latitude = latitude
91 if longitude is not None:
92 self.longitude = longitude
93 if postal_code is not None:
94 self.postal_code = postal_code
95 if timezone is not None:
96 self.timezone = timezone
97 if city is not None:
98 self.city = city
99 if country is not None:
100 self.country = country
101 if continent is not None:
102 self.continent = continent
103 if subdivisions is not None:
104 self.subdivisions = subdivisions
106 @property
107 def accuracy_radius(self) -> Optional[int]:
108 """Gets the accuracy_radius of this DeprecatedGeolocation. # noqa: E501
110 The IP address is likely to be within this radius (in km) of the specified location. # noqa: E501
112 :return: The accuracy_radius of this DeprecatedGeolocation. # noqa: E501
113 """
114 return self._accuracy_radius
116 @accuracy_radius.setter
117 def accuracy_radius(self, accuracy_radius: Optional[int]):
118 """Sets the accuracy_radius of this DeprecatedGeolocation.
120 The IP address is likely to be within this radius (in km) of the specified location. # noqa: E501
122 :param accuracy_radius: The accuracy_radius of this DeprecatedGeolocation. # noqa: E501
123 """
125 self._accuracy_radius = accuracy_radius
127 @property
128 def latitude(self) -> Optional[float]:
129 """Gets the latitude of this DeprecatedGeolocation. # noqa: E501
132 :return: The latitude of this DeprecatedGeolocation. # noqa: E501
133 """
134 return self._latitude
136 @latitude.setter
137 def latitude(self, latitude: Optional[float]):
138 """Sets the latitude of this DeprecatedGeolocation.
141 :param latitude: The latitude of this DeprecatedGeolocation. # noqa: E501
142 """
144 self._latitude = latitude
146 @property
147 def longitude(self) -> Optional[float]:
148 """Gets the longitude of this DeprecatedGeolocation. # noqa: E501
151 :return: The longitude of this DeprecatedGeolocation. # noqa: E501
152 """
153 return self._longitude
155 @longitude.setter
156 def longitude(self, longitude: Optional[float]):
157 """Sets the longitude of this DeprecatedGeolocation.
160 :param longitude: The longitude of this DeprecatedGeolocation. # noqa: E501
161 """
163 self._longitude = longitude
165 @property
166 def postal_code(self) -> Optional[str]:
167 """Gets the postal_code of this DeprecatedGeolocation. # noqa: E501
170 :return: The postal_code of this DeprecatedGeolocation. # noqa: E501
171 """
172 return self._postal_code
174 @postal_code.setter
175 def postal_code(self, postal_code: Optional[str]):
176 """Sets the postal_code of this DeprecatedGeolocation.
179 :param postal_code: The postal_code of this DeprecatedGeolocation. # noqa: E501
180 """
182 self._postal_code = postal_code
184 @property
185 def timezone(self) -> Optional[str]:
186 """Gets the timezone of this DeprecatedGeolocation. # noqa: E501
189 :return: The timezone of this DeprecatedGeolocation. # noqa: E501
190 """
191 return self._timezone
193 @timezone.setter
194 def timezone(self, timezone: Optional[str]):
195 """Sets the timezone of this DeprecatedGeolocation.
198 :param timezone: The timezone of this DeprecatedGeolocation. # noqa: E501
199 """
201 self._timezone = timezone
203 @property
204 def city(self) -> Optional[GeolocationCity]:
205 """Gets the city of this DeprecatedGeolocation. # noqa: E501
208 :return: The city of this DeprecatedGeolocation. # noqa: E501
209 """
210 return self._city
212 @city.setter
213 def city(self, city: Optional[GeolocationCity]):
214 """Sets the city of this DeprecatedGeolocation.
217 :param city: The city of this DeprecatedGeolocation. # noqa: E501
218 """
220 self._city = city
222 @property
223 def country(self) -> Optional[GeolocationCountry]:
224 """Gets the country of this DeprecatedGeolocation. # noqa: E501
227 :return: The country of this DeprecatedGeolocation. # noqa: E501
228 """
229 return self._country
231 @country.setter
232 def country(self, country: Optional[GeolocationCountry]):
233 """Sets the country of this DeprecatedGeolocation.
236 :param country: The country of this DeprecatedGeolocation. # noqa: E501
237 """
239 self._country = country
241 @property
242 def continent(self) -> Optional[GeolocationContinent]:
243 """Gets the continent of this DeprecatedGeolocation. # noqa: E501
246 :return: The continent of this DeprecatedGeolocation. # noqa: E501
247 """
248 return self._continent
250 @continent.setter
251 def continent(self, continent: Optional[GeolocationContinent]):
252 """Sets the continent of this DeprecatedGeolocation.
255 :param continent: The continent of this DeprecatedGeolocation. # noqa: E501
256 """
258 self._continent = continent
260 @property
261 def subdivisions(self) -> Optional[GeolocationSubdivisions]:
262 """Gets the subdivisions of this DeprecatedGeolocation. # noqa: E501
265 :return: The subdivisions of this DeprecatedGeolocation. # noqa: E501
266 """
267 return self._subdivisions
269 @subdivisions.setter
270 def subdivisions(self, subdivisions: Optional[GeolocationSubdivisions]):
271 """Sets the subdivisions of this DeprecatedGeolocation.
274 :param subdivisions: The subdivisions of this DeprecatedGeolocation. # noqa: E501
275 """
277 self._subdivisions = subdivisions