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

94 statements  

« prev     ^ index     » next       coverage.py v7.6.9, created at 2024-12-09 17:50 +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 attribute_map = { 

50 'accuracy_radius': 'accuracyRadius', 

51 'latitude': 'latitude', 

52 'longitude': 'longitude', 

53 'postal_code': 'postalCode', 

54 'timezone': 'timezone', 

55 'city': 'city', 

56 'country': 'country', 

57 'continent': 'continent', 

58 'subdivisions': 'subdivisions' 

59 } 

60 

61 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 

62 """DeprecatedGeolocation - a model defined in Swagger""" # noqa: E501 

63 self._accuracy_radius = None 

64 self._latitude = None 

65 self._longitude = None 

66 self._postal_code = None 

67 self._timezone = None 

68 self._city = None 

69 self._country = None 

70 self._continent = None 

71 self._subdivisions = None 

72 self.discriminator = None 

73 if accuracy_radius is not None: 

74 self.accuracy_radius = accuracy_radius 

75 if latitude is not None: 

76 self.latitude = latitude 

77 if longitude is not None: 

78 self.longitude = longitude 

79 if postal_code is not None: 

80 self.postal_code = postal_code 

81 if timezone is not None: 

82 self.timezone = timezone 

83 if city is not None: 

84 self.city = city 

85 if country is not None: 

86 self.country = country 

87 if continent is not None: 

88 self.continent = continent 

89 if subdivisions is not None: 

90 self.subdivisions = subdivisions 

91 

92 @property 

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

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

95 

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

97 

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

99 """ 

100 return self._accuracy_radius 

101 

102 @accuracy_radius.setter 

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

104 """Sets the accuracy_radius of this DeprecatedGeolocation. 

105 

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

107 

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

109 """ 

110 

111 self._accuracy_radius = accuracy_radius 

112 

113 @property 

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

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

116 

117 

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

119 """ 

120 return self._latitude 

121 

122 @latitude.setter 

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

124 """Sets the latitude of this DeprecatedGeolocation. 

125 

126 

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

128 """ 

129 

130 self._latitude = latitude 

131 

132 @property 

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

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

135 

136 

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

138 """ 

139 return self._longitude 

140 

141 @longitude.setter 

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

143 """Sets the longitude of this DeprecatedGeolocation. 

144 

145 

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

147 """ 

148 

149 self._longitude = longitude 

150 

151 @property 

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

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

154 

155 

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

157 """ 

158 return self._postal_code 

159 

160 @postal_code.setter 

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

162 """Sets the postal_code of this DeprecatedGeolocation. 

163 

164 

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

166 """ 

167 

168 self._postal_code = postal_code 

169 

170 @property 

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

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

173 

174 

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

176 """ 

177 return self._timezone 

178 

179 @timezone.setter 

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

181 """Sets the timezone of this DeprecatedGeolocation. 

182 

183 

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

185 """ 

186 

187 self._timezone = timezone 

188 

189 @property 

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

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

192 

193 

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

195 """ 

196 return self._city 

197 

198 @city.setter 

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

200 """Sets the city of this DeprecatedGeolocation. 

201 

202 

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

204 """ 

205 

206 self._city = city 

207 

208 @property 

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

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

211 

212 

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

214 """ 

215 return self._country 

216 

217 @country.setter 

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

219 """Sets the country of this DeprecatedGeolocation. 

220 

221 

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

223 """ 

224 

225 self._country = country 

226 

227 @property 

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

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

230 

231 

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

233 """ 

234 return self._continent 

235 

236 @continent.setter 

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

238 """Sets the continent of this DeprecatedGeolocation. 

239 

240 

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

242 """ 

243 

244 self._continent = continent 

245 

246 @property 

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

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

249 

250 

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

252 """ 

253 return self._subdivisions 

254 

255 @subdivisions.setter 

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

257 """Sets the subdivisions of this DeprecatedGeolocation. 

258 

259 

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

261 """ 

262 

263 self._subdivisions = subdivisions 

264