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

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 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. 

25 

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

27 

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 } 

48 

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 } 

60 

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 } 

72 

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 

103 

104 @property 

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

106 """Gets the accuracy_radius of this DeprecatedGeolocation. # noqa: E501 

107 

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

109 

110 :return: The accuracy_radius of this DeprecatedGeolocation. # noqa: E501 

111 """ 

112 return self._accuracy_radius 

113 

114 @accuracy_radius.setter 

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

116 """Sets the accuracy_radius of this DeprecatedGeolocation. 

117 

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

119 

120 :param accuracy_radius: The accuracy_radius of this DeprecatedGeolocation. # noqa: E501 

121 """ 

122 

123 self._accuracy_radius = accuracy_radius 

124 

125 @property 

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

127 """Gets the latitude of this DeprecatedGeolocation. # noqa: E501 

128 

129 

130 :return: The latitude of this DeprecatedGeolocation. # noqa: E501 

131 """ 

132 return self._latitude 

133 

134 @latitude.setter 

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

136 """Sets the latitude of this DeprecatedGeolocation. 

137 

138 

139 :param latitude: The latitude of this DeprecatedGeolocation. # noqa: E501 

140 """ 

141 

142 self._latitude = latitude 

143 

144 @property 

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

146 """Gets the longitude of this DeprecatedGeolocation. # noqa: E501 

147 

148 

149 :return: The longitude of this DeprecatedGeolocation. # noqa: E501 

150 """ 

151 return self._longitude 

152 

153 @longitude.setter 

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

155 """Sets the longitude of this DeprecatedGeolocation. 

156 

157 

158 :param longitude: The longitude of this DeprecatedGeolocation. # noqa: E501 

159 """ 

160 

161 self._longitude = longitude 

162 

163 @property 

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

165 """Gets the postal_code of this DeprecatedGeolocation. # noqa: E501 

166 

167 

168 :return: The postal_code of this DeprecatedGeolocation. # noqa: E501 

169 """ 

170 return self._postal_code 

171 

172 @postal_code.setter 

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

174 """Sets the postal_code of this DeprecatedGeolocation. 

175 

176 

177 :param postal_code: The postal_code of this DeprecatedGeolocation. # noqa: E501 

178 """ 

179 

180 self._postal_code = postal_code 

181 

182 @property 

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

184 """Gets the timezone of this DeprecatedGeolocation. # noqa: E501 

185 

186 

187 :return: The timezone of this DeprecatedGeolocation. # noqa: E501 

188 """ 

189 return self._timezone 

190 

191 @timezone.setter 

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

193 """Sets the timezone of this DeprecatedGeolocation. 

194 

195 

196 :param timezone: The timezone of this DeprecatedGeolocation. # noqa: E501 

197 """ 

198 

199 self._timezone = timezone 

200 

201 @property 

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

203 """Gets the city of this DeprecatedGeolocation. # noqa: E501 

204 

205 

206 :return: The city of this DeprecatedGeolocation. # noqa: E501 

207 """ 

208 return self._city 

209 

210 @city.setter 

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

212 """Sets the city of this DeprecatedGeolocation. 

213 

214 

215 :param city: The city of this DeprecatedGeolocation. # noqa: E501 

216 """ 

217 

218 self._city = city 

219 

220 @property 

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

222 """Gets the country of this DeprecatedGeolocation. # noqa: E501 

223 

224 

225 :return: The country of this DeprecatedGeolocation. # noqa: E501 

226 """ 

227 return self._country 

228 

229 @country.setter 

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

231 """Sets the country of this DeprecatedGeolocation. 

232 

233 

234 :param country: The country of this DeprecatedGeolocation. # noqa: E501 

235 """ 

236 

237 self._country = country 

238 

239 @property 

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

241 """Gets the continent of this DeprecatedGeolocation. # noqa: E501 

242 

243 

244 :return: The continent of this DeprecatedGeolocation. # noqa: E501 

245 """ 

246 return self._continent 

247 

248 @continent.setter 

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

250 """Sets the continent of this DeprecatedGeolocation. 

251 

252 

253 :param continent: The continent of this DeprecatedGeolocation. # noqa: E501 

254 """ 

255 

256 self._continent = continent 

257 

258 @property 

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

260 """Gets the subdivisions of this DeprecatedGeolocation. # noqa: E501 

261 

262 

263 :return: The subdivisions of this DeprecatedGeolocation. # noqa: E501 

264 """ 

265 return self._subdivisions 

266 

267 @subdivisions.setter 

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

269 """Sets the subdivisions of this DeprecatedGeolocation. 

270 

271 

272 :param subdivisions: The subdivisions of this DeprecatedGeolocation. # noqa: E501 

273 """ 

274 

275 self._subdivisions = subdivisions 

276