Coverage for fingerprint_pro_server_api_sdk/models/deprecated_geolocation.py: 100%
95 statements
« prev ^ index » next coverage.py v7.7.0, created at 2025-03-17 15:34 +0000
« prev ^ index » next coverage.py v7.7.0, created at 2025-03-17 15:34 +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.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
22class DeprecatedGeolocation(BaseModel):
23 """
24 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.
26 NOTE: This class is auto generated by the swagger code generator program.
28 Do not edit the class manually.
29 """
30 """
31 Attributes:
32 swagger_types (dict): The key is attribute name
33 and the value is attribute type.
34 attribute_map (dict): The key is attribute name
35 and the value is json key in definition.
36 """
37 swagger_types = {
38 'accuracy_radius': 'int',
39 'latitude': 'float',
40 'longitude': 'float',
41 'postal_code': 'str',
42 'timezone': 'str',
43 'city': 'GeolocationCity',
44 'country': 'GeolocationCountry',
45 'continent': 'GeolocationContinent',
46 'subdivisions': 'GeolocationSubdivisions'
47 }
49 nullable_map = {
50 'accuracy_radius': False,
51 'latitude': False,
52 'longitude': False,
53 'postal_code': False,
54 'timezone': False,
55 'city': False,
56 'country': False,
57 'continent': False,
58 'subdivisions': False
59 }
61 attribute_map = {
62 'accuracy_radius': 'accuracyRadius',
63 'latitude': 'latitude',
64 'longitude': 'longitude',
65 'postal_code': 'postalCode',
66 'timezone': 'timezone',
67 'city': 'city',
68 'country': 'country',
69 'continent': 'continent',
70 'subdivisions': 'subdivisions'
71 }
73 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
74 """DeprecatedGeolocation - a model defined in Swagger""" # noqa: E501
75 self._accuracy_radius = None
76 self._latitude = None
77 self._longitude = None
78 self._postal_code = None
79 self._timezone = None
80 self._city = None
81 self._country = None
82 self._continent = None
83 self._subdivisions = None
84 self.discriminator = None
85 if accuracy_radius is not None:
86 self.accuracy_radius = accuracy_radius
87 if latitude is not None:
88 self.latitude = latitude
89 if longitude is not None:
90 self.longitude = longitude
91 if postal_code is not None:
92 self.postal_code = postal_code
93 if timezone is not None:
94 self.timezone = timezone
95 if city is not None:
96 self.city = city
97 if country is not None:
98 self.country = country
99 if continent is not None:
100 self.continent = continent
101 if subdivisions is not None:
102 self.subdivisions = subdivisions
104 @property
105 def accuracy_radius(self) -> Optional[int]:
106 """Gets the accuracy_radius of this DeprecatedGeolocation. # noqa: E501
108 The IP address is likely to be within this radius (in km) of the specified location. # noqa: E501
110 :return: The accuracy_radius of this DeprecatedGeolocation. # noqa: E501
111 """
112 return self._accuracy_radius
114 @accuracy_radius.setter
115 def accuracy_radius(self, accuracy_radius: Optional[int]):
116 """Sets the accuracy_radius of this DeprecatedGeolocation.
118 The IP address is likely to be within this radius (in km) of the specified location. # noqa: E501
120 :param accuracy_radius: The accuracy_radius of this DeprecatedGeolocation. # noqa: E501
121 """
123 self._accuracy_radius = accuracy_radius
125 @property
126 def latitude(self) -> Optional[float]:
127 """Gets the latitude of this DeprecatedGeolocation. # noqa: E501
130 :return: The latitude of this DeprecatedGeolocation. # noqa: E501
131 """
132 return self._latitude
134 @latitude.setter
135 def latitude(self, latitude: Optional[float]):
136 """Sets the latitude of this DeprecatedGeolocation.
139 :param latitude: The latitude of this DeprecatedGeolocation. # noqa: E501
140 """
142 self._latitude = latitude
144 @property
145 def longitude(self) -> Optional[float]:
146 """Gets the longitude of this DeprecatedGeolocation. # noqa: E501
149 :return: The longitude of this DeprecatedGeolocation. # noqa: E501
150 """
151 return self._longitude
153 @longitude.setter
154 def longitude(self, longitude: Optional[float]):
155 """Sets the longitude of this DeprecatedGeolocation.
158 :param longitude: The longitude of this DeprecatedGeolocation. # noqa: E501
159 """
161 self._longitude = longitude
163 @property
164 def postal_code(self) -> Optional[str]:
165 """Gets the postal_code of this DeprecatedGeolocation. # noqa: E501
168 :return: The postal_code of this DeprecatedGeolocation. # noqa: E501
169 """
170 return self._postal_code
172 @postal_code.setter
173 def postal_code(self, postal_code: Optional[str]):
174 """Sets the postal_code of this DeprecatedGeolocation.
177 :param postal_code: The postal_code of this DeprecatedGeolocation. # noqa: E501
178 """
180 self._postal_code = postal_code
182 @property
183 def timezone(self) -> Optional[str]:
184 """Gets the timezone of this DeprecatedGeolocation. # noqa: E501
187 :return: The timezone of this DeprecatedGeolocation. # noqa: E501
188 """
189 return self._timezone
191 @timezone.setter
192 def timezone(self, timezone: Optional[str]):
193 """Sets the timezone of this DeprecatedGeolocation.
196 :param timezone: The timezone of this DeprecatedGeolocation. # noqa: E501
197 """
199 self._timezone = timezone
201 @property
202 def city(self) -> Optional[GeolocationCity]:
203 """Gets the city of this DeprecatedGeolocation. # noqa: E501
206 :return: The city of this DeprecatedGeolocation. # noqa: E501
207 """
208 return self._city
210 @city.setter
211 def city(self, city: Optional[GeolocationCity]):
212 """Sets the city of this DeprecatedGeolocation.
215 :param city: The city of this DeprecatedGeolocation. # noqa: E501
216 """
218 self._city = city
220 @property
221 def country(self) -> Optional[GeolocationCountry]:
222 """Gets the country of this DeprecatedGeolocation. # noqa: E501
225 :return: The country of this DeprecatedGeolocation. # noqa: E501
226 """
227 return self._country
229 @country.setter
230 def country(self, country: Optional[GeolocationCountry]):
231 """Sets the country of this DeprecatedGeolocation.
234 :param country: The country of this DeprecatedGeolocation. # noqa: E501
235 """
237 self._country = country
239 @property
240 def continent(self) -> Optional[GeolocationContinent]:
241 """Gets the continent of this DeprecatedGeolocation. # noqa: E501
244 :return: The continent of this DeprecatedGeolocation. # noqa: E501
245 """
246 return self._continent
248 @continent.setter
249 def continent(self, continent: Optional[GeolocationContinent]):
250 """Sets the continent of this DeprecatedGeolocation.
253 :param continent: The continent of this DeprecatedGeolocation. # noqa: E501
254 """
256 self._continent = continent
258 @property
259 def subdivisions(self) -> Optional[GeolocationSubdivisions]:
260 """Gets the subdivisions of this DeprecatedGeolocation. # noqa: E501
263 :return: The subdivisions of this DeprecatedGeolocation. # noqa: E501
264 """
265 return self._subdivisions
267 @subdivisions.setter
268 def subdivisions(self, subdivisions: Optional[GeolocationSubdivisions]):
269 """Sets the subdivisions of this DeprecatedGeolocation.
272 :param subdivisions: The subdivisions of this DeprecatedGeolocation. # noqa: E501
273 """
275 self._subdivisions = subdivisions