Coverage for fingerprint_pro_server_api_sdk/models/geolocation.py: 100%

95 statements  

« prev     ^ index     » next       coverage.py v7.6.12, created at 2025-02-21 15:03 +0000

1# coding: utf-8 

2 

3""" 

4 Fingerprint Pro Server API 

5 

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 

7 

8 OpenAPI spec version: 3 

9 Contact: support@fingerprint.com 

10 Generated by: https://github.com/swagger-api/swagger-codegen.git 

11""" 

12 

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 

20 

21 

22class Geolocation(BaseModel): 

23 """NOTE: This class is auto generated by the swagger code generator program. 

24 

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 } 

45 

46 nullable_map = { 

47 'accuracy_radius': False, 

48 'latitude': False, 

49 'longitude': False, 

50 'postal_code': False, 

51 'timezone': False, 

52 'city': False, 

53 'country': False, 

54 'continent': False, 

55 'subdivisions': False 

56 } 

57 

58 attribute_map = { 

59 'accuracy_radius': 'accuracyRadius', 

60 'latitude': 'latitude', 

61 'longitude': 'longitude', 

62 'postal_code': 'postalCode', 

63 'timezone': 'timezone', 

64 'city': 'city', 

65 'country': 'country', 

66 'continent': 'continent', 

67 'subdivisions': 'subdivisions' 

68 } 

69 

70 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 

71 """Geolocation - a model defined in Swagger""" # noqa: E501 

72 self._accuracy_radius = None 

73 self._latitude = None 

74 self._longitude = None 

75 self._postal_code = None 

76 self._timezone = None 

77 self._city = None 

78 self._country = None 

79 self._continent = None 

80 self._subdivisions = None 

81 self.discriminator = None 

82 if accuracy_radius is not None: 

83 self.accuracy_radius = accuracy_radius 

84 if latitude is not None: 

85 self.latitude = latitude 

86 if longitude is not None: 

87 self.longitude = longitude 

88 if postal_code is not None: 

89 self.postal_code = postal_code 

90 if timezone is not None: 

91 self.timezone = timezone 

92 if city is not None: 

93 self.city = city 

94 if country is not None: 

95 self.country = country 

96 if continent is not None: 

97 self.continent = continent 

98 if subdivisions is not None: 

99 self.subdivisions = subdivisions 

100 

101 @property 

102 def accuracy_radius(self) -> Optional[int]: 

103 """Gets the accuracy_radius of this Geolocation. # noqa: E501 

104 

105 The IP address is likely to be within this radius (in km) of the specified location. # noqa: E501 

106 

107 :return: The accuracy_radius of this Geolocation. # noqa: E501 

108 """ 

109 return self._accuracy_radius 

110 

111 @accuracy_radius.setter 

112 def accuracy_radius(self, accuracy_radius: Optional[int]): 

113 """Sets the accuracy_radius of this Geolocation. 

114 

115 The IP address is likely to be within this radius (in km) of the specified location. # noqa: E501 

116 

117 :param accuracy_radius: The accuracy_radius of this Geolocation. # noqa: E501 

118 """ 

119 

120 self._accuracy_radius = accuracy_radius 

121 

122 @property 

123 def latitude(self) -> Optional[float]: 

124 """Gets the latitude of this Geolocation. # noqa: E501 

125 

126 

127 :return: The latitude of this Geolocation. # noqa: E501 

128 """ 

129 return self._latitude 

130 

131 @latitude.setter 

132 def latitude(self, latitude: Optional[float]): 

133 """Sets the latitude of this Geolocation. 

134 

135 

136 :param latitude: The latitude of this Geolocation. # noqa: E501 

137 """ 

138 

139 self._latitude = latitude 

140 

141 @property 

142 def longitude(self) -> Optional[float]: 

143 """Gets the longitude of this Geolocation. # noqa: E501 

144 

145 

146 :return: The longitude of this Geolocation. # noqa: E501 

147 """ 

148 return self._longitude 

149 

150 @longitude.setter 

151 def longitude(self, longitude: Optional[float]): 

152 """Sets the longitude of this Geolocation. 

153 

154 

155 :param longitude: The longitude of this Geolocation. # noqa: E501 

156 """ 

157 

158 self._longitude = longitude 

159 

160 @property 

161 def postal_code(self) -> Optional[str]: 

162 """Gets the postal_code of this Geolocation. # noqa: E501 

163 

164 

165 :return: The postal_code of this Geolocation. # noqa: E501 

166 """ 

167 return self._postal_code 

168 

169 @postal_code.setter 

170 def postal_code(self, postal_code: Optional[str]): 

171 """Sets the postal_code of this Geolocation. 

172 

173 

174 :param postal_code: The postal_code of this Geolocation. # noqa: E501 

175 """ 

176 

177 self._postal_code = postal_code 

178 

179 @property 

180 def timezone(self) -> Optional[str]: 

181 """Gets the timezone of this Geolocation. # noqa: E501 

182 

183 

184 :return: The timezone of this Geolocation. # noqa: E501 

185 """ 

186 return self._timezone 

187 

188 @timezone.setter 

189 def timezone(self, timezone: Optional[str]): 

190 """Sets the timezone of this Geolocation. 

191 

192 

193 :param timezone: The timezone of this Geolocation. # noqa: E501 

194 """ 

195 

196 self._timezone = timezone 

197 

198 @property 

199 def city(self) -> Optional[GeolocationCity]: 

200 """Gets the city of this Geolocation. # noqa: E501 

201 

202 

203 :return: The city of this Geolocation. # noqa: E501 

204 """ 

205 return self._city 

206 

207 @city.setter 

208 def city(self, city: Optional[GeolocationCity]): 

209 """Sets the city of this Geolocation. 

210 

211 

212 :param city: The city of this Geolocation. # noqa: E501 

213 """ 

214 

215 self._city = city 

216 

217 @property 

218 def country(self) -> Optional[GeolocationCountry]: 

219 """Gets the country of this Geolocation. # noqa: E501 

220 

221 

222 :return: The country of this Geolocation. # noqa: E501 

223 """ 

224 return self._country 

225 

226 @country.setter 

227 def country(self, country: Optional[GeolocationCountry]): 

228 """Sets the country of this Geolocation. 

229 

230 

231 :param country: The country of this Geolocation. # noqa: E501 

232 """ 

233 

234 self._country = country 

235 

236 @property 

237 def continent(self) -> Optional[GeolocationContinent]: 

238 """Gets the continent of this Geolocation. # noqa: E501 

239 

240 

241 :return: The continent of this Geolocation. # noqa: E501 

242 """ 

243 return self._continent 

244 

245 @continent.setter 

246 def continent(self, continent: Optional[GeolocationContinent]): 

247 """Sets the continent of this Geolocation. 

248 

249 

250 :param continent: The continent of this Geolocation. # noqa: E501 

251 """ 

252 

253 self._continent = continent 

254 

255 @property 

256 def subdivisions(self) -> Optional[GeolocationSubdivisions]: 

257 """Gets the subdivisions of this Geolocation. # noqa: E501 

258 

259 

260 :return: The subdivisions of this Geolocation. # noqa: E501 

261 """ 

262 return self._subdivisions 

263 

264 @subdivisions.setter 

265 def subdivisions(self, subdivisions: Optional[GeolocationSubdivisions]): 

266 """Sets the subdivisions of this Geolocation. 

267 

268 

269 :param subdivisions: The subdivisions of this Geolocation. # noqa: E501 

270 """ 

271 

272 self._subdivisions = subdivisions 

273