Skip to content

Commit 2c62e20

Browse files
committed
fix: mark optional fields in models
1 parent a7a0e2d commit 2c62e20

File tree

92 files changed

+420
-416
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

92 files changed

+420
-416
lines changed

fingerprint_pro_server_api_sdk/models/asn.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"""
1212

1313
import re # noqa: F401
14-
from typing import Dict, List # noqa: F401
14+
from typing import Dict, List, Optional # noqa: F401
1515
from fingerprint_pro_server_api_sdk.base_model import BaseModel
1616

1717

@@ -93,7 +93,7 @@ def network(self, network: str):
9393
self._network = network
9494

9595
@property
96-
def name(self) -> str:
96+
def name(self) -> Optional[str]:
9797
"""Gets the name of this ASN. # noqa: E501
9898
9999
@@ -102,7 +102,7 @@ def name(self) -> str:
102102
return self._name
103103

104104
@name.setter
105-
def name(self, name: str):
105+
def name(self, name: Optional[str]):
106106
"""Sets the name of this ASN.
107107
108108

fingerprint_pro_server_api_sdk/models/botd_detection_result.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"""
1212

1313
import re # noqa: F401
14-
from typing import Dict, List # noqa: F401
14+
from typing import Dict, List, Optional # noqa: F401
1515
from fingerprint_pro_server_api_sdk.base_model import BaseModel
1616

1717

@@ -79,7 +79,7 @@ def result(self, result: str):
7979
self._result = result
8080

8181
@property
82-
def type(self) -> str:
82+
def type(self) -> Optional[str]:
8383
"""Gets the type of this BotdDetectionResult. # noqa: E501
8484
8585
@@ -88,7 +88,7 @@ def type(self) -> str:
8888
return self._type
8989

9090
@type.setter
91-
def type(self, type: str):
91+
def type(self, type: Optional[str]):
9292
"""Sets the type of this BotdDetectionResult.
9393
9494

fingerprint_pro_server_api_sdk/models/botd_result.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"""
1212

1313
import re # noqa: F401
14-
from typing import Dict, List # noqa: F401
14+
from typing import Dict, List, Optional # noqa: F401
1515
from fingerprint_pro_server_api_sdk.base_model import BaseModel
1616
from datetime import datetime
1717
from fingerprint_pro_server_api_sdk.models.botd_detection_result import BotdDetectionResult
@@ -183,7 +183,7 @@ def request_id(self, request_id: str):
183183
self._request_id = request_id
184184

185185
@property
186-
def linked_id(self) -> str:
186+
def linked_id(self) -> Optional[str]:
187187
"""Gets the linked_id of this BotdResult. # noqa: E501
188188
189189
@@ -192,7 +192,7 @@ def linked_id(self) -> str:
192192
return self._linked_id
193193

194194
@linked_id.setter
195-
def linked_id(self, linked_id: str):
195+
def linked_id(self, linked_id: Optional[str]):
196196
"""Sets the linked_id of this BotdResult.
197197
198198

fingerprint_pro_server_api_sdk/models/browser_details.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"""
1212

1313
import re # noqa: F401
14-
from typing import Dict, List # noqa: F401
14+
from typing import Dict, List, Optional # noqa: F401
1515
from fingerprint_pro_server_api_sdk.base_model import BaseModel
1616

1717

@@ -218,7 +218,7 @@ def user_agent(self, user_agent: str):
218218
self._user_agent = user_agent
219219

220220
@property
221-
def bot_probability(self) -> int:
221+
def bot_probability(self) -> Optional[int]:
222222
"""Gets the bot_probability of this BrowserDetails. # noqa: E501
223223
224224
@@ -227,7 +227,7 @@ def bot_probability(self) -> int:
227227
return self._bot_probability
228228

229229
@bot_probability.setter
230-
def bot_probability(self, bot_probability: int):
230+
def bot_probability(self, bot_probability: Optional[int]):
231231
"""Sets the bot_probability of this BrowserDetails.
232232
233233

fingerprint_pro_server_api_sdk/models/cloned_app_result.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"""
1212

1313
import re # noqa: F401
14-
from typing import Dict, List # noqa: F401
14+
from typing import Dict, List, Optional # noqa: F401
1515
from fingerprint_pro_server_api_sdk.base_model import BaseModel
1616

1717

fingerprint_pro_server_api_sdk/models/common403_error_response.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"""
1212

1313
import re # noqa: F401
14-
from typing import Dict, List # noqa: F401
14+
from typing import Dict, List, Optional # noqa: F401
1515
from fingerprint_pro_server_api_sdk.base_model import BaseModel
1616

1717

fingerprint_pro_server_api_sdk/models/confidence.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"""
1212

1313
import re # noqa: F401
14-
from typing import Dict, List # noqa: F401
14+
from typing import Dict, List, Optional # noqa: F401
1515
from fingerprint_pro_server_api_sdk.base_model import BaseModel
1616

1717

@@ -70,7 +70,7 @@ def score(self, score: float):
7070
self._score = score
7171

7272
@property
73-
def revision(self) -> str:
73+
def revision(self) -> Optional[str]:
7474
"""Gets the revision of this Confidence. # noqa: E501
7575
7676
The revision name of the method used to calculate the Confidence score. This field is only present for customers who opted in to an alternative calculation method. # noqa: E501
@@ -80,7 +80,7 @@ def revision(self) -> str:
8080
return self._revision
8181

8282
@revision.setter
83-
def revision(self, revision: str):
83+
def revision(self, revision: Optional[str]):
8484
"""Sets the revision of this Confidence.
8585
8686
The revision name of the method used to calculate the Confidence score. This field is only present for customers who opted in to an alternative calculation method. # noqa: E501

fingerprint_pro_server_api_sdk/models/data_center.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"""
1212

1313
import re # noqa: F401
14-
from typing import Dict, List # noqa: F401
14+
from typing import Dict, List, Optional # noqa: F401
1515
from fingerprint_pro_server_api_sdk.base_model import BaseModel
1616

1717

@@ -68,7 +68,7 @@ def result(self, result: bool):
6868
self._result = result
6969

7070
@property
71-
def name(self) -> str:
71+
def name(self) -> Optional[str]:
7272
"""Gets the name of this DataCenter. # noqa: E501
7373
7474
@@ -77,7 +77,7 @@ def name(self) -> str:
7777
return self._name
7878

7979
@name.setter
80-
def name(self, name: str):
80+
def name(self, name: Optional[str]):
8181
"""Sets the name of this DataCenter.
8282
8383

fingerprint_pro_server_api_sdk/models/deprecated_ip_location.py

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"""
1212

1313
import re # noqa: F401
14-
from typing import Dict, List # noqa: F401
14+
from typing import Dict, List, Optional # noqa: F401
1515
from fingerprint_pro_server_api_sdk.base_model import BaseModel
1616
from fingerprint_pro_server_api_sdk.models.deprecated_ip_location_city import DeprecatedIPLocationCity
1717
from fingerprint_pro_server_api_sdk.models.location import Location
@@ -90,7 +90,7 @@ def __init__(self, accuracy_radius=None, latitude=None, longitude=None, postal_c
9090
self.subdivisions = subdivisions
9191

9292
@property
93-
def accuracy_radius(self) -> int:
93+
def accuracy_radius(self) -> Optional[int]:
9494
"""Gets the accuracy_radius of this DeprecatedIPLocation. # noqa: E501
9595
9696
The IP address is likely to be within this radius (in km) of the specified location. # noqa: E501
@@ -100,7 +100,7 @@ def accuracy_radius(self) -> int:
100100
return self._accuracy_radius
101101

102102
@accuracy_radius.setter
103-
def accuracy_radius(self, accuracy_radius: int):
103+
def accuracy_radius(self, accuracy_radius: Optional[int]):
104104
"""Sets the accuracy_radius of this DeprecatedIPLocation.
105105
106106
The IP address is likely to be within this radius (in km) of the specified location. # noqa: E501
@@ -111,7 +111,7 @@ def accuracy_radius(self, accuracy_radius: int):
111111
self._accuracy_radius = accuracy_radius
112112

113113
@property
114-
def latitude(self) -> float:
114+
def latitude(self) -> Optional[float]:
115115
"""Gets the latitude of this DeprecatedIPLocation. # noqa: E501
116116
117117
@@ -120,7 +120,7 @@ def latitude(self) -> float:
120120
return self._latitude
121121

122122
@latitude.setter
123-
def latitude(self, latitude: float):
123+
def latitude(self, latitude: Optional[float]):
124124
"""Sets the latitude of this DeprecatedIPLocation.
125125
126126
@@ -130,7 +130,7 @@ def latitude(self, latitude: float):
130130
self._latitude = latitude
131131

132132
@property
133-
def longitude(self) -> float:
133+
def longitude(self) -> Optional[float]:
134134
"""Gets the longitude of this DeprecatedIPLocation. # noqa: E501
135135
136136
@@ -139,7 +139,7 @@ def longitude(self) -> float:
139139
return self._longitude
140140

141141
@longitude.setter
142-
def longitude(self, longitude: float):
142+
def longitude(self, longitude: Optional[float]):
143143
"""Sets the longitude of this DeprecatedIPLocation.
144144
145145
@@ -149,7 +149,7 @@ def longitude(self, longitude: float):
149149
self._longitude = longitude
150150

151151
@property
152-
def postal_code(self) -> str:
152+
def postal_code(self) -> Optional[str]:
153153
"""Gets the postal_code of this DeprecatedIPLocation. # noqa: E501
154154
155155
@@ -158,7 +158,7 @@ def postal_code(self) -> str:
158158
return self._postal_code
159159

160160
@postal_code.setter
161-
def postal_code(self, postal_code: str):
161+
def postal_code(self, postal_code: Optional[str]):
162162
"""Sets the postal_code of this DeprecatedIPLocation.
163163
164164
@@ -168,7 +168,7 @@ def postal_code(self, postal_code: str):
168168
self._postal_code = postal_code
169169

170170
@property
171-
def timezone(self) -> str:
171+
def timezone(self) -> Optional[str]:
172172
"""Gets the timezone of this DeprecatedIPLocation. # noqa: E501
173173
174174
@@ -177,7 +177,7 @@ def timezone(self) -> str:
177177
return self._timezone
178178

179179
@timezone.setter
180-
def timezone(self, timezone: str):
180+
def timezone(self, timezone: Optional[str]):
181181
"""Sets the timezone of this DeprecatedIPLocation.
182182
183183
@@ -187,7 +187,7 @@ def timezone(self, timezone: str):
187187
self._timezone = timezone
188188

189189
@property
190-
def city(self) -> DeprecatedIPLocationCity:
190+
def city(self) -> Optional[DeprecatedIPLocationCity]:
191191
"""Gets the city of this DeprecatedIPLocation. # noqa: E501
192192
193193
@@ -196,7 +196,7 @@ def city(self) -> DeprecatedIPLocationCity:
196196
return self._city
197197

198198
@city.setter
199-
def city(self, city: DeprecatedIPLocationCity):
199+
def city(self, city: Optional[DeprecatedIPLocationCity]):
200200
"""Sets the city of this DeprecatedIPLocation.
201201
202202
@@ -206,7 +206,7 @@ def city(self, city: DeprecatedIPLocationCity):
206206
self._city = city
207207

208208
@property
209-
def country(self) -> Location:
209+
def country(self) -> Optional[Location]:
210210
"""Gets the country of this DeprecatedIPLocation. # noqa: E501
211211
212212
@@ -215,7 +215,7 @@ def country(self) -> Location:
215215
return self._country
216216

217217
@country.setter
218-
def country(self, country: Location):
218+
def country(self, country: Optional[Location]):
219219
"""Sets the country of this DeprecatedIPLocation.
220220
221221
@@ -225,7 +225,7 @@ def country(self, country: Location):
225225
self._country = country
226226

227227
@property
228-
def continent(self) -> Location:
228+
def continent(self) -> Optional[Location]:
229229
"""Gets the continent of this DeprecatedIPLocation. # noqa: E501
230230
231231
@@ -234,7 +234,7 @@ def continent(self) -> Location:
234234
return self._continent
235235

236236
@continent.setter
237-
def continent(self, continent: Location):
237+
def continent(self, continent: Optional[Location]):
238238
"""Sets the continent of this DeprecatedIPLocation.
239239
240240
@@ -244,7 +244,7 @@ def continent(self, continent: Location):
244244
self._continent = continent
245245

246246
@property
247-
def subdivisions(self) -> List[Subdivision]:
247+
def subdivisions(self) -> Optional[List[Subdivision]]:
248248
"""Gets the subdivisions of this DeprecatedIPLocation. # noqa: E501
249249
250250
@@ -253,7 +253,7 @@ def subdivisions(self) -> List[Subdivision]:
253253
return self._subdivisions
254254

255255
@subdivisions.setter
256-
def subdivisions(self, subdivisions: List[Subdivision]):
256+
def subdivisions(self, subdivisions: Optional[List[Subdivision]]):
257257
"""Sets the subdivisions of this DeprecatedIPLocation.
258258
259259

fingerprint_pro_server_api_sdk/models/deprecated_ip_location_city.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"""
1212

1313
import re # noqa: F401
14-
from typing import Dict, List # noqa: F401
14+
from typing import Dict, List, Optional # noqa: F401
1515
from fingerprint_pro_server_api_sdk.base_model import BaseModel
1616

1717

@@ -43,7 +43,7 @@ def __init__(self, name=None): # noqa: E501
4343
self.name = name
4444

4545
@property
46-
def name(self) -> str:
46+
def name(self) -> Optional[str]:
4747
"""Gets the name of this DeprecatedIPLocationCity. # noqa: E501
4848
4949
@@ -52,7 +52,7 @@ def name(self) -> str:
5252
return self._name
5353

5454
@name.setter
55-
def name(self, name: str):
55+
def name(self, name: Optional[str]):
5656
"""Sets the name of this DeprecatedIPLocationCity.
5757
5858

0 commit comments

Comments
 (0)