Coverage for fingerprint_pro_server_api_sdk/models/geolocation.py: 90%
94 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.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 Geolocation(BaseModel):
23 """NOTE: This class is auto generated by the swagger code generator program.
25 Do not edit the class manually.
26 """
27 """
28 Attributes:
29 swagger_types (dict): The key is attribute name
30 and the value is attribute type.
31 attribute_map (dict): The key is attribute name
32 and the value is json key in definition.
33 """
34 swagger_types = {
35 'accuracy_radius': 'int',
36 'latitude': 'float',
37 'longitude': 'float',
38 'postal_code': 'str',
39 'timezone': 'str',
40 'city': 'GeolocationCity',
41 'country': 'GeolocationCountry',
42 'continent': 'GeolocationContinent',
43 'subdivisions': 'GeolocationSubdivisions'
44 }
46 attribute_map = {
47 'accuracy_radius': 'accuracyRadius',
48 'latitude': 'latitude',
49 'longitude': 'longitude',
50 'postal_code': 'postalCode',
51 'timezone': 'timezone',
52 'city': 'city',
53 'country': 'country',
54 'continent': 'continent',
55 'subdivisions': 'subdivisions'
56 }
58 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
59 """Geolocation - a model defined in Swagger""" # noqa: E501
60 self._accuracy_radius = None
61 self._latitude = None
62 self._longitude = None
63 self._postal_code = None
64 self._timezone = None
65 self._city = None
66 self._country = None
67 self._continent = None
68 self._subdivisions = None
69 self.discriminator = None
70 if accuracy_radius is not None:
71 self.accuracy_radius = accuracy_radius
72 if latitude is not None:
73 self.latitude = latitude
74 if longitude is not None:
75 self.longitude = longitude
76 if postal_code is not None:
77 self.postal_code = postal_code
78 if timezone is not None:
79 self.timezone = timezone
80 if city is not None:
81 self.city = city
82 if country is not None:
83 self.country = country
84 if continent is not None:
85 self.continent = continent
86 if subdivisions is not None:
87 self.subdivisions = subdivisions
89 @property
90 def accuracy_radius(self) -> Optional[int]:
91 """Gets the accuracy_radius of this Geolocation. # noqa: E501
93 The IP address is likely to be within this radius (in km) of the specified location. # noqa: E501
95 :return: The accuracy_radius of this Geolocation. # noqa: E501
96 """
97 return self._accuracy_radius
99 @accuracy_radius.setter
100 def accuracy_radius(self, accuracy_radius: Optional[int]):
101 """Sets the accuracy_radius of this Geolocation.
103 The IP address is likely to be within this radius (in km) of the specified location. # noqa: E501
105 :param accuracy_radius: The accuracy_radius of this Geolocation. # noqa: E501
106 """
108 self._accuracy_radius = accuracy_radius
110 @property
111 def latitude(self) -> Optional[float]:
112 """Gets the latitude of this Geolocation. # noqa: E501
115 :return: The latitude of this Geolocation. # noqa: E501
116 """
117 return self._latitude
119 @latitude.setter
120 def latitude(self, latitude: Optional[float]):
121 """Sets the latitude of this Geolocation.
124 :param latitude: The latitude of this Geolocation. # noqa: E501
125 """
127 self._latitude = latitude
129 @property
130 def longitude(self) -> Optional[float]:
131 """Gets the longitude of this Geolocation. # noqa: E501
134 :return: The longitude of this Geolocation. # noqa: E501
135 """
136 return self._longitude
138 @longitude.setter
139 def longitude(self, longitude: Optional[float]):
140 """Sets the longitude of this Geolocation.
143 :param longitude: The longitude of this Geolocation. # noqa: E501
144 """
146 self._longitude = longitude
148 @property
149 def postal_code(self) -> Optional[str]:
150 """Gets the postal_code of this Geolocation. # noqa: E501
153 :return: The postal_code of this Geolocation. # noqa: E501
154 """
155 return self._postal_code
157 @postal_code.setter
158 def postal_code(self, postal_code: Optional[str]):
159 """Sets the postal_code of this Geolocation.
162 :param postal_code: The postal_code of this Geolocation. # noqa: E501
163 """
165 self._postal_code = postal_code
167 @property
168 def timezone(self) -> Optional[str]:
169 """Gets the timezone of this Geolocation. # noqa: E501
172 :return: The timezone of this Geolocation. # noqa: E501
173 """
174 return self._timezone
176 @timezone.setter
177 def timezone(self, timezone: Optional[str]):
178 """Sets the timezone of this Geolocation.
181 :param timezone: The timezone of this Geolocation. # noqa: E501
182 """
184 self._timezone = timezone
186 @property
187 def city(self) -> Optional[GeolocationCity]:
188 """Gets the city of this Geolocation. # noqa: E501
191 :return: The city of this Geolocation. # noqa: E501
192 """
193 return self._city
195 @city.setter
196 def city(self, city: Optional[GeolocationCity]):
197 """Sets the city of this Geolocation.
200 :param city: The city of this Geolocation. # noqa: E501
201 """
203 self._city = city
205 @property
206 def country(self) -> Optional[GeolocationCountry]:
207 """Gets the country of this Geolocation. # noqa: E501
210 :return: The country of this Geolocation. # noqa: E501
211 """
212 return self._country
214 @country.setter
215 def country(self, country: Optional[GeolocationCountry]):
216 """Sets the country of this Geolocation.
219 :param country: The country of this Geolocation. # noqa: E501
220 """
222 self._country = country
224 @property
225 def continent(self) -> Optional[GeolocationContinent]:
226 """Gets the continent of this Geolocation. # noqa: E501
229 :return: The continent of this Geolocation. # noqa: E501
230 """
231 return self._continent
233 @continent.setter
234 def continent(self, continent: Optional[GeolocationContinent]):
235 """Sets the continent of this Geolocation.
238 :param continent: The continent of this Geolocation. # noqa: E501
239 """
241 self._continent = continent
243 @property
244 def subdivisions(self) -> Optional[GeolocationSubdivisions]:
245 """Gets the subdivisions of this Geolocation. # noqa: E501
248 :return: The subdivisions of this Geolocation. # noqa: E501
249 """
250 return self._subdivisions
252 @subdivisions.setter
253 def subdivisions(self, subdivisions: Optional[GeolocationSubdivisions]):
254 """Sets the subdivisions of this Geolocation.
257 :param subdivisions: The subdivisions of this Geolocation. # noqa: E501
258 """
260 self._subdivisions = subdivisions