diff --git a/fingerprint_pro_server_api_sdk/models/asn.py b/fingerprint_pro_server_api_sdk/models/asn.py index 33472563..d64ed39d 100644 --- a/fingerprint_pro_server_api_sdk/models/asn.py +++ b/fingerprint_pro_server_api_sdk/models/asn.py @@ -11,7 +11,7 @@ """ import re # noqa: F401 -from typing import Dict, List # noqa: F401 +from typing import Dict, List, Optional # noqa: F401 from fingerprint_pro_server_api_sdk.base_model import BaseModel @@ -93,7 +93,7 @@ def network(self, network: str): self._network = network @property - def name(self) -> str: + def name(self) -> Optional[str]: """Gets the name of this ASN. # noqa: E501 @@ -102,7 +102,7 @@ def name(self) -> str: return self._name @name.setter - def name(self, name: str): + def name(self, name: Optional[str]): """Sets the name of this ASN. diff --git a/fingerprint_pro_server_api_sdk/models/botd_detection_result.py b/fingerprint_pro_server_api_sdk/models/botd_detection_result.py index a59c4bb4..0124d5eb 100644 --- a/fingerprint_pro_server_api_sdk/models/botd_detection_result.py +++ b/fingerprint_pro_server_api_sdk/models/botd_detection_result.py @@ -11,7 +11,7 @@ """ import re # noqa: F401 -from typing import Dict, List # noqa: F401 +from typing import Dict, List, Optional # noqa: F401 from fingerprint_pro_server_api_sdk.base_model import BaseModel @@ -79,7 +79,7 @@ def result(self, result: str): self._result = result @property - def type(self) -> str: + def type(self) -> Optional[str]: """Gets the type of this BotdDetectionResult. # noqa: E501 @@ -88,7 +88,7 @@ def type(self) -> str: return self._type @type.setter - def type(self, type: str): + def type(self, type: Optional[str]): """Sets the type of this BotdDetectionResult. diff --git a/fingerprint_pro_server_api_sdk/models/botd_result.py b/fingerprint_pro_server_api_sdk/models/botd_result.py index 0ac98acb..9fead700 100644 --- a/fingerprint_pro_server_api_sdk/models/botd_result.py +++ b/fingerprint_pro_server_api_sdk/models/botd_result.py @@ -11,7 +11,7 @@ """ import re # noqa: F401 -from typing import Dict, List # noqa: F401 +from typing import Dict, List, Optional # noqa: F401 from fingerprint_pro_server_api_sdk.base_model import BaseModel from datetime import datetime from fingerprint_pro_server_api_sdk.models.botd_detection_result import BotdDetectionResult @@ -183,7 +183,7 @@ def request_id(self, request_id: str): self._request_id = request_id @property - def linked_id(self) -> str: + def linked_id(self) -> Optional[str]: """Gets the linked_id of this BotdResult. # noqa: E501 @@ -192,7 +192,7 @@ def linked_id(self) -> str: return self._linked_id @linked_id.setter - def linked_id(self, linked_id: str): + def linked_id(self, linked_id: Optional[str]): """Sets the linked_id of this BotdResult. diff --git a/fingerprint_pro_server_api_sdk/models/browser_details.py b/fingerprint_pro_server_api_sdk/models/browser_details.py index 55441a74..983891d9 100644 --- a/fingerprint_pro_server_api_sdk/models/browser_details.py +++ b/fingerprint_pro_server_api_sdk/models/browser_details.py @@ -11,7 +11,7 @@ """ import re # noqa: F401 -from typing import Dict, List # noqa: F401 +from typing import Dict, List, Optional # noqa: F401 from fingerprint_pro_server_api_sdk.base_model import BaseModel @@ -218,7 +218,7 @@ def user_agent(self, user_agent: str): self._user_agent = user_agent @property - def bot_probability(self) -> int: + def bot_probability(self) -> Optional[int]: """Gets the bot_probability of this BrowserDetails. # noqa: E501 @@ -227,7 +227,7 @@ def bot_probability(self) -> int: return self._bot_probability @bot_probability.setter - def bot_probability(self, bot_probability: int): + def bot_probability(self, bot_probability: Optional[int]): """Sets the bot_probability of this BrowserDetails. diff --git a/fingerprint_pro_server_api_sdk/models/cloned_app_result.py b/fingerprint_pro_server_api_sdk/models/cloned_app_result.py index c61117b4..7300a893 100644 --- a/fingerprint_pro_server_api_sdk/models/cloned_app_result.py +++ b/fingerprint_pro_server_api_sdk/models/cloned_app_result.py @@ -11,7 +11,7 @@ """ import re # noqa: F401 -from typing import Dict, List # noqa: F401 +from typing import Dict, List, Optional # noqa: F401 from fingerprint_pro_server_api_sdk.base_model import BaseModel diff --git a/fingerprint_pro_server_api_sdk/models/common403_error_response.py b/fingerprint_pro_server_api_sdk/models/common403_error_response.py index b5bec28a..3e38dadb 100644 --- a/fingerprint_pro_server_api_sdk/models/common403_error_response.py +++ b/fingerprint_pro_server_api_sdk/models/common403_error_response.py @@ -11,7 +11,7 @@ """ import re # noqa: F401 -from typing import Dict, List # noqa: F401 +from typing import Dict, List, Optional # noqa: F401 from fingerprint_pro_server_api_sdk.base_model import BaseModel diff --git a/fingerprint_pro_server_api_sdk/models/confidence.py b/fingerprint_pro_server_api_sdk/models/confidence.py index f2ca90f3..cb502867 100644 --- a/fingerprint_pro_server_api_sdk/models/confidence.py +++ b/fingerprint_pro_server_api_sdk/models/confidence.py @@ -11,7 +11,7 @@ """ import re # noqa: F401 -from typing import Dict, List # noqa: F401 +from typing import Dict, List, Optional # noqa: F401 from fingerprint_pro_server_api_sdk.base_model import BaseModel @@ -70,7 +70,7 @@ def score(self, score: float): self._score = score @property - def revision(self) -> str: + def revision(self) -> Optional[str]: """Gets the revision of this Confidence. # noqa: E501 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: return self._revision @revision.setter - def revision(self, revision: str): + def revision(self, revision: Optional[str]): """Sets the revision of this Confidence. 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 diff --git a/fingerprint_pro_server_api_sdk/models/data_center.py b/fingerprint_pro_server_api_sdk/models/data_center.py index e92c13b9..b7e8cff7 100644 --- a/fingerprint_pro_server_api_sdk/models/data_center.py +++ b/fingerprint_pro_server_api_sdk/models/data_center.py @@ -11,7 +11,7 @@ """ import re # noqa: F401 -from typing import Dict, List # noqa: F401 +from typing import Dict, List, Optional # noqa: F401 from fingerprint_pro_server_api_sdk.base_model import BaseModel @@ -68,7 +68,7 @@ def result(self, result: bool): self._result = result @property - def name(self) -> str: + def name(self) -> Optional[str]: """Gets the name of this DataCenter. # noqa: E501 @@ -77,7 +77,7 @@ def name(self) -> str: return self._name @name.setter - def name(self, name: str): + def name(self, name: Optional[str]): """Sets the name of this DataCenter. diff --git a/fingerprint_pro_server_api_sdk/models/deprecated_ip_location.py b/fingerprint_pro_server_api_sdk/models/deprecated_ip_location.py index fd6857cc..a9cbec28 100644 --- a/fingerprint_pro_server_api_sdk/models/deprecated_ip_location.py +++ b/fingerprint_pro_server_api_sdk/models/deprecated_ip_location.py @@ -11,7 +11,7 @@ """ import re # noqa: F401 -from typing import Dict, List # noqa: F401 +from typing import Dict, List, Optional # noqa: F401 from fingerprint_pro_server_api_sdk.base_model import BaseModel from fingerprint_pro_server_api_sdk.models.deprecated_ip_location_city import DeprecatedIPLocationCity 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 self.subdivisions = subdivisions @property - def accuracy_radius(self) -> int: + def accuracy_radius(self) -> Optional[int]: """Gets the accuracy_radius of this DeprecatedIPLocation. # noqa: E501 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: return self._accuracy_radius @accuracy_radius.setter - def accuracy_radius(self, accuracy_radius: int): + def accuracy_radius(self, accuracy_radius: Optional[int]): """Sets the accuracy_radius of this DeprecatedIPLocation. 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): self._accuracy_radius = accuracy_radius @property - def latitude(self) -> float: + def latitude(self) -> Optional[float]: """Gets the latitude of this DeprecatedIPLocation. # noqa: E501 @@ -120,7 +120,7 @@ def latitude(self) -> float: return self._latitude @latitude.setter - def latitude(self, latitude: float): + def latitude(self, latitude: Optional[float]): """Sets the latitude of this DeprecatedIPLocation. @@ -130,7 +130,7 @@ def latitude(self, latitude: float): self._latitude = latitude @property - def longitude(self) -> float: + def longitude(self) -> Optional[float]: """Gets the longitude of this DeprecatedIPLocation. # noqa: E501 @@ -139,7 +139,7 @@ def longitude(self) -> float: return self._longitude @longitude.setter - def longitude(self, longitude: float): + def longitude(self, longitude: Optional[float]): """Sets the longitude of this DeprecatedIPLocation. @@ -149,7 +149,7 @@ def longitude(self, longitude: float): self._longitude = longitude @property - def postal_code(self) -> str: + def postal_code(self) -> Optional[str]: """Gets the postal_code of this DeprecatedIPLocation. # noqa: E501 @@ -158,7 +158,7 @@ def postal_code(self) -> str: return self._postal_code @postal_code.setter - def postal_code(self, postal_code: str): + def postal_code(self, postal_code: Optional[str]): """Sets the postal_code of this DeprecatedIPLocation. @@ -168,7 +168,7 @@ def postal_code(self, postal_code: str): self._postal_code = postal_code @property - def timezone(self) -> str: + def timezone(self) -> Optional[str]: """Gets the timezone of this DeprecatedIPLocation. # noqa: E501 @@ -177,7 +177,7 @@ def timezone(self) -> str: return self._timezone @timezone.setter - def timezone(self, timezone: str): + def timezone(self, timezone: Optional[str]): """Sets the timezone of this DeprecatedIPLocation. @@ -187,7 +187,7 @@ def timezone(self, timezone: str): self._timezone = timezone @property - def city(self) -> DeprecatedIPLocationCity: + def city(self) -> Optional[DeprecatedIPLocationCity]: """Gets the city of this DeprecatedIPLocation. # noqa: E501 @@ -196,7 +196,7 @@ def city(self) -> DeprecatedIPLocationCity: return self._city @city.setter - def city(self, city: DeprecatedIPLocationCity): + def city(self, city: Optional[DeprecatedIPLocationCity]): """Sets the city of this DeprecatedIPLocation. @@ -206,7 +206,7 @@ def city(self, city: DeprecatedIPLocationCity): self._city = city @property - def country(self) -> Location: + def country(self) -> Optional[Location]: """Gets the country of this DeprecatedIPLocation. # noqa: E501 @@ -215,7 +215,7 @@ def country(self) -> Location: return self._country @country.setter - def country(self, country: Location): + def country(self, country: Optional[Location]): """Sets the country of this DeprecatedIPLocation. @@ -225,7 +225,7 @@ def country(self, country: Location): self._country = country @property - def continent(self) -> Location: + def continent(self) -> Optional[Location]: """Gets the continent of this DeprecatedIPLocation. # noqa: E501 @@ -234,7 +234,7 @@ def continent(self) -> Location: return self._continent @continent.setter - def continent(self, continent: Location): + def continent(self, continent: Optional[Location]): """Sets the continent of this DeprecatedIPLocation. @@ -244,7 +244,7 @@ def continent(self, continent: Location): self._continent = continent @property - def subdivisions(self) -> List[Subdivision]: + def subdivisions(self) -> Optional[List[Subdivision]]: """Gets the subdivisions of this DeprecatedIPLocation. # noqa: E501 @@ -253,7 +253,7 @@ def subdivisions(self) -> List[Subdivision]: return self._subdivisions @subdivisions.setter - def subdivisions(self, subdivisions: List[Subdivision]): + def subdivisions(self, subdivisions: Optional[List[Subdivision]]): """Sets the subdivisions of this DeprecatedIPLocation. diff --git a/fingerprint_pro_server_api_sdk/models/deprecated_ip_location_city.py b/fingerprint_pro_server_api_sdk/models/deprecated_ip_location_city.py index c8317c93..c20e052f 100644 --- a/fingerprint_pro_server_api_sdk/models/deprecated_ip_location_city.py +++ b/fingerprint_pro_server_api_sdk/models/deprecated_ip_location_city.py @@ -11,7 +11,7 @@ """ import re # noqa: F401 -from typing import Dict, List # noqa: F401 +from typing import Dict, List, Optional # noqa: F401 from fingerprint_pro_server_api_sdk.base_model import BaseModel @@ -43,7 +43,7 @@ def __init__(self, name=None): # noqa: E501 self.name = name @property - def name(self) -> str: + def name(self) -> Optional[str]: """Gets the name of this DeprecatedIPLocationCity. # noqa: E501 @@ -52,7 +52,7 @@ def name(self) -> str: return self._name @name.setter - def name(self, name: str): + def name(self, name: Optional[str]): """Sets the name of this DeprecatedIPLocationCity. diff --git a/fingerprint_pro_server_api_sdk/models/developer_tools_result.py b/fingerprint_pro_server_api_sdk/models/developer_tools_result.py index 426b77b1..61e24715 100644 --- a/fingerprint_pro_server_api_sdk/models/developer_tools_result.py +++ b/fingerprint_pro_server_api_sdk/models/developer_tools_result.py @@ -11,7 +11,7 @@ """ import re # noqa: F401 -from typing import Dict, List # noqa: F401 +from typing import Dict, List, Optional # noqa: F401 from fingerprint_pro_server_api_sdk.base_model import BaseModel diff --git a/fingerprint_pro_server_api_sdk/models/emulator_result.py b/fingerprint_pro_server_api_sdk/models/emulator_result.py index ce4c6417..b86ad93b 100644 --- a/fingerprint_pro_server_api_sdk/models/emulator_result.py +++ b/fingerprint_pro_server_api_sdk/models/emulator_result.py @@ -11,7 +11,7 @@ """ import re # noqa: F401 -from typing import Dict, List # noqa: F401 +from typing import Dict, List, Optional # noqa: F401 from fingerprint_pro_server_api_sdk.base_model import BaseModel diff --git a/fingerprint_pro_server_api_sdk/models/error_common403_response.py b/fingerprint_pro_server_api_sdk/models/error_common403_response.py index 9cfc2e3d..5c823b27 100644 --- a/fingerprint_pro_server_api_sdk/models/error_common403_response.py +++ b/fingerprint_pro_server_api_sdk/models/error_common403_response.py @@ -11,7 +11,7 @@ """ import re # noqa: F401 -from typing import Dict, List # noqa: F401 +from typing import Dict, List, Optional # noqa: F401 from fingerprint_pro_server_api_sdk.base_model import BaseModel from fingerprint_pro_server_api_sdk.models.common403_error_response import Common403ErrorResponse @@ -44,7 +44,7 @@ def __init__(self, error=None): # noqa: E501 self.error = error @property - def error(self) -> Common403ErrorResponse: + def error(self) -> Optional[Common403ErrorResponse]: """Gets the error of this ErrorCommon403Response. # noqa: E501 @@ -53,7 +53,7 @@ def error(self) -> Common403ErrorResponse: return self._error @error.setter - def error(self, error: Common403ErrorResponse): + def error(self, error: Optional[Common403ErrorResponse]): """Sets the error of this ErrorCommon403Response. diff --git a/fingerprint_pro_server_api_sdk/models/error_common429_response.py b/fingerprint_pro_server_api_sdk/models/error_common429_response.py index 25d405d9..a50a2967 100644 --- a/fingerprint_pro_server_api_sdk/models/error_common429_response.py +++ b/fingerprint_pro_server_api_sdk/models/error_common429_response.py @@ -11,7 +11,7 @@ """ import re # noqa: F401 -from typing import Dict, List # noqa: F401 +from typing import Dict, List, Optional # noqa: F401 from fingerprint_pro_server_api_sdk.base_model import BaseModel from fingerprint_pro_server_api_sdk.models.error_common429_response_error import ErrorCommon429ResponseError @@ -44,7 +44,7 @@ def __init__(self, error=None): # noqa: E501 self.error = error @property - def error(self) -> ErrorCommon429ResponseError: + def error(self) -> Optional[ErrorCommon429ResponseError]: """Gets the error of this ErrorCommon429Response. # noqa: E501 @@ -53,7 +53,7 @@ def error(self) -> ErrorCommon429ResponseError: return self._error @error.setter - def error(self, error: ErrorCommon429ResponseError): + def error(self, error: Optional[ErrorCommon429ResponseError]): """Sets the error of this ErrorCommon429Response. diff --git a/fingerprint_pro_server_api_sdk/models/error_common429_response_error.py b/fingerprint_pro_server_api_sdk/models/error_common429_response_error.py index bfe97495..1ffe88ea 100644 --- a/fingerprint_pro_server_api_sdk/models/error_common429_response_error.py +++ b/fingerprint_pro_server_api_sdk/models/error_common429_response_error.py @@ -11,7 +11,7 @@ """ import re # noqa: F401 -from typing import Dict, List # noqa: F401 +from typing import Dict, List, Optional # noqa: F401 from fingerprint_pro_server_api_sdk.base_model import BaseModel diff --git a/fingerprint_pro_server_api_sdk/models/error_event404_response.py b/fingerprint_pro_server_api_sdk/models/error_event404_response.py index 1997448e..26b8d2c1 100644 --- a/fingerprint_pro_server_api_sdk/models/error_event404_response.py +++ b/fingerprint_pro_server_api_sdk/models/error_event404_response.py @@ -11,7 +11,7 @@ """ import re # noqa: F401 -from typing import Dict, List # noqa: F401 +from typing import Dict, List, Optional # noqa: F401 from fingerprint_pro_server_api_sdk.base_model import BaseModel from fingerprint_pro_server_api_sdk.models.error_event404_response_error import ErrorEvent404ResponseError @@ -44,7 +44,7 @@ def __init__(self, error=None): # noqa: E501 self.error = error @property - def error(self) -> ErrorEvent404ResponseError: + def error(self) -> Optional[ErrorEvent404ResponseError]: """Gets the error of this ErrorEvent404Response. # noqa: E501 @@ -53,7 +53,7 @@ def error(self) -> ErrorEvent404ResponseError: return self._error @error.setter - def error(self, error: ErrorEvent404ResponseError): + def error(self, error: Optional[ErrorEvent404ResponseError]): """Sets the error of this ErrorEvent404Response. diff --git a/fingerprint_pro_server_api_sdk/models/error_event404_response_error.py b/fingerprint_pro_server_api_sdk/models/error_event404_response_error.py index 9944eb83..839ff239 100644 --- a/fingerprint_pro_server_api_sdk/models/error_event404_response_error.py +++ b/fingerprint_pro_server_api_sdk/models/error_event404_response_error.py @@ -11,7 +11,7 @@ """ import re # noqa: F401 -from typing import Dict, List # noqa: F401 +from typing import Dict, List, Optional # noqa: F401 from fingerprint_pro_server_api_sdk.base_model import BaseModel diff --git a/fingerprint_pro_server_api_sdk/models/error_update_event400_response.py b/fingerprint_pro_server_api_sdk/models/error_update_event400_response.py index cd85018b..8d6674f7 100644 --- a/fingerprint_pro_server_api_sdk/models/error_update_event400_response.py +++ b/fingerprint_pro_server_api_sdk/models/error_update_event400_response.py @@ -11,7 +11,7 @@ """ import re # noqa: F401 -from typing import Dict, List # noqa: F401 +from typing import Dict, List, Optional # noqa: F401 from fingerprint_pro_server_api_sdk.base_model import BaseModel from fingerprint_pro_server_api_sdk.models.error_update_event400_response_error import ErrorUpdateEvent400ResponseError @@ -44,7 +44,7 @@ def __init__(self, error=None): # noqa: E501 self.error = error @property - def error(self) -> ErrorUpdateEvent400ResponseError: + def error(self) -> Optional[ErrorUpdateEvent400ResponseError]: """Gets the error of this ErrorUpdateEvent400Response. # noqa: E501 @@ -53,7 +53,7 @@ def error(self) -> ErrorUpdateEvent400ResponseError: return self._error @error.setter - def error(self, error: ErrorUpdateEvent400ResponseError): + def error(self, error: Optional[ErrorUpdateEvent400ResponseError]): """Sets the error of this ErrorUpdateEvent400Response. diff --git a/fingerprint_pro_server_api_sdk/models/error_update_event400_response_error.py b/fingerprint_pro_server_api_sdk/models/error_update_event400_response_error.py index 59bd6748..b3eb3cb8 100644 --- a/fingerprint_pro_server_api_sdk/models/error_update_event400_response_error.py +++ b/fingerprint_pro_server_api_sdk/models/error_update_event400_response_error.py @@ -11,7 +11,7 @@ """ import re # noqa: F401 -from typing import Dict, List # noqa: F401 +from typing import Dict, List, Optional # noqa: F401 from fingerprint_pro_server_api_sdk.base_model import BaseModel diff --git a/fingerprint_pro_server_api_sdk/models/error_update_event409_response.py b/fingerprint_pro_server_api_sdk/models/error_update_event409_response.py index c6dcd57c..3ca32e44 100644 --- a/fingerprint_pro_server_api_sdk/models/error_update_event409_response.py +++ b/fingerprint_pro_server_api_sdk/models/error_update_event409_response.py @@ -11,7 +11,7 @@ """ import re # noqa: F401 -from typing import Dict, List # noqa: F401 +from typing import Dict, List, Optional # noqa: F401 from fingerprint_pro_server_api_sdk.base_model import BaseModel from fingerprint_pro_server_api_sdk.models.error_update_event409_response_error import ErrorUpdateEvent409ResponseError @@ -44,7 +44,7 @@ def __init__(self, error=None): # noqa: E501 self.error = error @property - def error(self) -> ErrorUpdateEvent409ResponseError: + def error(self) -> Optional[ErrorUpdateEvent409ResponseError]: """Gets the error of this ErrorUpdateEvent409Response. # noqa: E501 @@ -53,7 +53,7 @@ def error(self) -> ErrorUpdateEvent409ResponseError: return self._error @error.setter - def error(self, error: ErrorUpdateEvent409ResponseError): + def error(self, error: Optional[ErrorUpdateEvent409ResponseError]): """Sets the error of this ErrorUpdateEvent409Response. diff --git a/fingerprint_pro_server_api_sdk/models/error_update_event409_response_error.py b/fingerprint_pro_server_api_sdk/models/error_update_event409_response_error.py index 9d091318..2abdb69b 100644 --- a/fingerprint_pro_server_api_sdk/models/error_update_event409_response_error.py +++ b/fingerprint_pro_server_api_sdk/models/error_update_event409_response_error.py @@ -11,7 +11,7 @@ """ import re # noqa: F401 -from typing import Dict, List # noqa: F401 +from typing import Dict, List, Optional # noqa: F401 from fingerprint_pro_server_api_sdk.base_model import BaseModel diff --git a/fingerprint_pro_server_api_sdk/models/error_visitor400_response.py b/fingerprint_pro_server_api_sdk/models/error_visitor400_response.py index 788d3084..e66556ce 100644 --- a/fingerprint_pro_server_api_sdk/models/error_visitor400_response.py +++ b/fingerprint_pro_server_api_sdk/models/error_visitor400_response.py @@ -11,7 +11,7 @@ """ import re # noqa: F401 -from typing import Dict, List # noqa: F401 +from typing import Dict, List, Optional # noqa: F401 from fingerprint_pro_server_api_sdk.base_model import BaseModel from fingerprint_pro_server_api_sdk.models.error_visitor400_response_error import ErrorVisitor400ResponseError @@ -44,7 +44,7 @@ def __init__(self, error=None): # noqa: E501 self.error = error @property - def error(self) -> ErrorVisitor400ResponseError: + def error(self) -> Optional[ErrorVisitor400ResponseError]: """Gets the error of this ErrorVisitor400Response. # noqa: E501 @@ -53,7 +53,7 @@ def error(self) -> ErrorVisitor400ResponseError: return self._error @error.setter - def error(self, error: ErrorVisitor400ResponseError): + def error(self, error: Optional[ErrorVisitor400ResponseError]): """Sets the error of this ErrorVisitor400Response. diff --git a/fingerprint_pro_server_api_sdk/models/error_visitor400_response_error.py b/fingerprint_pro_server_api_sdk/models/error_visitor400_response_error.py index 3cbbe084..c38f4895 100644 --- a/fingerprint_pro_server_api_sdk/models/error_visitor400_response_error.py +++ b/fingerprint_pro_server_api_sdk/models/error_visitor400_response_error.py @@ -11,7 +11,7 @@ """ import re # noqa: F401 -from typing import Dict, List # noqa: F401 +from typing import Dict, List, Optional # noqa: F401 from fingerprint_pro_server_api_sdk.base_model import BaseModel diff --git a/fingerprint_pro_server_api_sdk/models/error_visitor404_response.py b/fingerprint_pro_server_api_sdk/models/error_visitor404_response.py index f1e46fde..5a36ceaf 100644 --- a/fingerprint_pro_server_api_sdk/models/error_visitor404_response.py +++ b/fingerprint_pro_server_api_sdk/models/error_visitor404_response.py @@ -11,7 +11,7 @@ """ import re # noqa: F401 -from typing import Dict, List # noqa: F401 +from typing import Dict, List, Optional # noqa: F401 from fingerprint_pro_server_api_sdk.base_model import BaseModel from fingerprint_pro_server_api_sdk.models.error_visitor404_response_error import ErrorVisitor404ResponseError @@ -44,7 +44,7 @@ def __init__(self, error=None): # noqa: E501 self.error = error @property - def error(self) -> ErrorVisitor404ResponseError: + def error(self) -> Optional[ErrorVisitor404ResponseError]: """Gets the error of this ErrorVisitor404Response. # noqa: E501 @@ -53,7 +53,7 @@ def error(self) -> ErrorVisitor404ResponseError: return self._error @error.setter - def error(self, error: ErrorVisitor404ResponseError): + def error(self, error: Optional[ErrorVisitor404ResponseError]): """Sets the error of this ErrorVisitor404Response. diff --git a/fingerprint_pro_server_api_sdk/models/error_visitor404_response_error.py b/fingerprint_pro_server_api_sdk/models/error_visitor404_response_error.py index 4aa46108..09f62e86 100644 --- a/fingerprint_pro_server_api_sdk/models/error_visitor404_response_error.py +++ b/fingerprint_pro_server_api_sdk/models/error_visitor404_response_error.py @@ -11,7 +11,7 @@ """ import re # noqa: F401 -from typing import Dict, List # noqa: F401 +from typing import Dict, List, Optional # noqa: F401 from fingerprint_pro_server_api_sdk.base_model import BaseModel diff --git a/fingerprint_pro_server_api_sdk/models/error_visits403.py b/fingerprint_pro_server_api_sdk/models/error_visits403.py index e16a5dbc..dd73bf00 100644 --- a/fingerprint_pro_server_api_sdk/models/error_visits403.py +++ b/fingerprint_pro_server_api_sdk/models/error_visits403.py @@ -11,7 +11,7 @@ """ import re # noqa: F401 -from typing import Dict, List # noqa: F401 +from typing import Dict, List, Optional # noqa: F401 from fingerprint_pro_server_api_sdk.base_model import BaseModel diff --git a/fingerprint_pro_server_api_sdk/models/event_response.py b/fingerprint_pro_server_api_sdk/models/event_response.py index 813652b4..f1b5d228 100644 --- a/fingerprint_pro_server_api_sdk/models/event_response.py +++ b/fingerprint_pro_server_api_sdk/models/event_response.py @@ -11,7 +11,7 @@ """ import re # noqa: F401 -from typing import Dict, List # noqa: F401 +from typing import Dict, List, Optional # noqa: F401 from fingerprint_pro_server_api_sdk.base_model import BaseModel from fingerprint_pro_server_api_sdk.models.products_response import ProductsResponse from fingerprint_pro_server_api_sdk.models.product_error import ProductError @@ -73,7 +73,7 @@ def products(self, products: ProductsResponse): self._products = products @property - def error(self) -> ProductError: + def error(self) -> Optional[ProductError]: """Gets the error of this EventResponse. # noqa: E501 @@ -82,7 +82,7 @@ def error(self) -> ProductError: return self._error @error.setter - def error(self, error: ProductError): + def error(self, error: Optional[ProductError]): """Sets the error of this EventResponse. diff --git a/fingerprint_pro_server_api_sdk/models/event_update_request.py b/fingerprint_pro_server_api_sdk/models/event_update_request.py index c701b309..67ace400 100644 --- a/fingerprint_pro_server_api_sdk/models/event_update_request.py +++ b/fingerprint_pro_server_api_sdk/models/event_update_request.py @@ -11,7 +11,7 @@ """ import re # noqa: F401 -from typing import Dict, List # noqa: F401 +from typing import Dict, List, Optional # noqa: F401 from fingerprint_pro_server_api_sdk.base_model import BaseModel @@ -53,7 +53,7 @@ def __init__(self, linked_id=None, tag=None, suspect=None): # noqa: E501 self.suspect = suspect @property - def linked_id(self) -> str: + def linked_id(self) -> Optional[str]: """Gets the linked_id of this EventUpdateRequest. # noqa: E501 LinkedID value to assign to the existing event # noqa: E501 @@ -63,7 +63,7 @@ def linked_id(self) -> str: return self._linked_id @linked_id.setter - def linked_id(self, linked_id: str): + def linked_id(self, linked_id: Optional[str]): """Sets the linked_id of this EventUpdateRequest. LinkedID value to assign to the existing event # noqa: E501 @@ -74,7 +74,7 @@ def linked_id(self, linked_id: str): self._linked_id = linked_id @property - def tag(self) -> object: + def tag(self) -> Optional[object]: """Gets the tag of this EventUpdateRequest. # noqa: E501 Full `tag` value to be set to the existing event. Replaces any existing `tag` payload completely. # noqa: E501 @@ -84,7 +84,7 @@ def tag(self) -> object: return self._tag @tag.setter - def tag(self, tag: object): + def tag(self, tag: Optional[object]): """Sets the tag of this EventUpdateRequest. Full `tag` value to be set to the existing event. Replaces any existing `tag` payload completely. # noqa: E501 @@ -95,7 +95,7 @@ def tag(self, tag: object): self._tag = tag @property - def suspect(self) -> bool: + def suspect(self) -> Optional[bool]: """Gets the suspect of this EventUpdateRequest. # noqa: E501 Suspect flag indicating observed suspicious or fraudulent event # noqa: E501 @@ -105,7 +105,7 @@ def suspect(self) -> bool: return self._suspect @suspect.setter - def suspect(self, suspect: bool): + def suspect(self, suspect: Optional[bool]): """Sets the suspect of this EventUpdateRequest. Suspect flag indicating observed suspicious or fraudulent event # noqa: E501 diff --git a/fingerprint_pro_server_api_sdk/models/factory_reset_result.py b/fingerprint_pro_server_api_sdk/models/factory_reset_result.py index f2b5ac90..9d115b1d 100644 --- a/fingerprint_pro_server_api_sdk/models/factory_reset_result.py +++ b/fingerprint_pro_server_api_sdk/models/factory_reset_result.py @@ -11,7 +11,7 @@ """ import re # noqa: F401 -from typing import Dict, List # noqa: F401 +from typing import Dict, List, Optional # noqa: F401 from fingerprint_pro_server_api_sdk.base_model import BaseModel from datetime import datetime diff --git a/fingerprint_pro_server_api_sdk/models/frida_result.py b/fingerprint_pro_server_api_sdk/models/frida_result.py index a78fc450..52cc8f4e 100644 --- a/fingerprint_pro_server_api_sdk/models/frida_result.py +++ b/fingerprint_pro_server_api_sdk/models/frida_result.py @@ -11,7 +11,7 @@ """ import re # noqa: F401 -from typing import Dict, List # noqa: F401 +from typing import Dict, List, Optional # noqa: F401 from fingerprint_pro_server_api_sdk.base_model import BaseModel diff --git a/fingerprint_pro_server_api_sdk/models/high_activity_result.py b/fingerprint_pro_server_api_sdk/models/high_activity_result.py index a694d9c3..6ba92f55 100644 --- a/fingerprint_pro_server_api_sdk/models/high_activity_result.py +++ b/fingerprint_pro_server_api_sdk/models/high_activity_result.py @@ -11,7 +11,7 @@ """ import re # noqa: F401 -from typing import Dict, List # noqa: F401 +from typing import Dict, List, Optional # noqa: F401 from fingerprint_pro_server_api_sdk.base_model import BaseModel @@ -70,7 +70,7 @@ def result(self, result: bool): self._result = result @property - def daily_requests(self) -> float: + def daily_requests(self) -> Optional[float]: """Gets the daily_requests of this HighActivityResult. # noqa: E501 Number of requests from the same visitor in the previous day. # noqa: E501 @@ -80,7 +80,7 @@ def daily_requests(self) -> float: return self._daily_requests @daily_requests.setter - def daily_requests(self, daily_requests: float): + def daily_requests(self, daily_requests: Optional[float]): """Sets the daily_requests of this HighActivityResult. Number of requests from the same visitor in the previous day. # noqa: E501 diff --git a/fingerprint_pro_server_api_sdk/models/identification_error.py b/fingerprint_pro_server_api_sdk/models/identification_error.py index 890b368d..7903cd84 100644 --- a/fingerprint_pro_server_api_sdk/models/identification_error.py +++ b/fingerprint_pro_server_api_sdk/models/identification_error.py @@ -11,7 +11,7 @@ """ import re # noqa: F401 -from typing import Dict, List # noqa: F401 +from typing import Dict, List, Optional # noqa: F401 from fingerprint_pro_server_api_sdk.base_model import BaseModel diff --git a/fingerprint_pro_server_api_sdk/models/incognito_result.py b/fingerprint_pro_server_api_sdk/models/incognito_result.py index 537e1079..c9db2562 100644 --- a/fingerprint_pro_server_api_sdk/models/incognito_result.py +++ b/fingerprint_pro_server_api_sdk/models/incognito_result.py @@ -11,7 +11,7 @@ """ import re # noqa: F401 -from typing import Dict, List # noqa: F401 +from typing import Dict, List, Optional # noqa: F401 from fingerprint_pro_server_api_sdk.base_model import BaseModel diff --git a/fingerprint_pro_server_api_sdk/models/ip_block_list_result.py b/fingerprint_pro_server_api_sdk/models/ip_block_list_result.py index f2277f19..c344a389 100644 --- a/fingerprint_pro_server_api_sdk/models/ip_block_list_result.py +++ b/fingerprint_pro_server_api_sdk/models/ip_block_list_result.py @@ -11,7 +11,7 @@ """ import re # noqa: F401 -from typing import Dict, List # noqa: F401 +from typing import Dict, List, Optional # noqa: F401 from fingerprint_pro_server_api_sdk.base_model import BaseModel from fingerprint_pro_server_api_sdk.models.ip_block_list_result_details import IpBlockListResultDetails diff --git a/fingerprint_pro_server_api_sdk/models/ip_block_list_result_details.py b/fingerprint_pro_server_api_sdk/models/ip_block_list_result_details.py index 7e43c46a..38e76422 100644 --- a/fingerprint_pro_server_api_sdk/models/ip_block_list_result_details.py +++ b/fingerprint_pro_server_api_sdk/models/ip_block_list_result_details.py @@ -11,7 +11,7 @@ """ import re # noqa: F401 -from typing import Dict, List # noqa: F401 +from typing import Dict, List, Optional # noqa: F401 from fingerprint_pro_server_api_sdk.base_model import BaseModel diff --git a/fingerprint_pro_server_api_sdk/models/ip_info_result.py b/fingerprint_pro_server_api_sdk/models/ip_info_result.py index e29df5cf..e727a16e 100644 --- a/fingerprint_pro_server_api_sdk/models/ip_info_result.py +++ b/fingerprint_pro_server_api_sdk/models/ip_info_result.py @@ -11,7 +11,7 @@ """ import re # noqa: F401 -from typing import Dict, List # noqa: F401 +from typing import Dict, List, Optional # noqa: F401 from fingerprint_pro_server_api_sdk.base_model import BaseModel from fingerprint_pro_server_api_sdk.models.ip_info_result_v4 import IpInfoResultV4 from fingerprint_pro_server_api_sdk.models.ip_info_result_v6 import IpInfoResultV6 @@ -53,7 +53,7 @@ def __init__(self, v4=None, v6=None): # noqa: E501 self.v6 = v6 @property - def v4(self) -> IpInfoResultV4: + def v4(self) -> Optional[IpInfoResultV4]: """Gets the v4 of this IpInfoResult. # noqa: E501 @@ -62,7 +62,7 @@ def v4(self) -> IpInfoResultV4: return self._v4 @v4.setter - def v4(self, v4: IpInfoResultV4): + def v4(self, v4: Optional[IpInfoResultV4]): """Sets the v4 of this IpInfoResult. @@ -72,7 +72,7 @@ def v4(self, v4: IpInfoResultV4): self._v4 = v4 @property - def v6(self) -> IpInfoResultV6: + def v6(self) -> Optional[IpInfoResultV6]: """Gets the v6 of this IpInfoResult. # noqa: E501 @@ -81,7 +81,7 @@ def v6(self) -> IpInfoResultV6: return self._v6 @v6.setter - def v6(self, v6: IpInfoResultV6): + def v6(self, v6: Optional[IpInfoResultV6]): """Sets the v6 of this IpInfoResult. diff --git a/fingerprint_pro_server_api_sdk/models/ip_info_result_v4.py b/fingerprint_pro_server_api_sdk/models/ip_info_result_v4.py index ca641550..d4731fb4 100644 --- a/fingerprint_pro_server_api_sdk/models/ip_info_result_v4.py +++ b/fingerprint_pro_server_api_sdk/models/ip_info_result_v4.py @@ -11,7 +11,7 @@ """ import re # noqa: F401 -from typing import Dict, List # noqa: F401 +from typing import Dict, List, Optional # noqa: F401 from fingerprint_pro_server_api_sdk.base_model import BaseModel from fingerprint_pro_server_api_sdk.models.ip_location import IPLocation from fingerprint_pro_server_api_sdk.models.asn import ASN @@ -101,7 +101,7 @@ def geolocation(self, geolocation: IPLocation): self._geolocation = geolocation @property - def asn(self) -> ASN: + def asn(self) -> Optional[ASN]: """Gets the asn of this IpInfoResultV4. # noqa: E501 @@ -110,7 +110,7 @@ def asn(self) -> ASN: return self._asn @asn.setter - def asn(self, asn: ASN): + def asn(self, asn: Optional[ASN]): """Sets the asn of this IpInfoResultV4. @@ -120,7 +120,7 @@ def asn(self, asn: ASN): self._asn = asn @property - def datacenter(self) -> DataCenter: + def datacenter(self) -> Optional[DataCenter]: """Gets the datacenter of this IpInfoResultV4. # noqa: E501 @@ -129,7 +129,7 @@ def datacenter(self) -> DataCenter: return self._datacenter @datacenter.setter - def datacenter(self, datacenter: DataCenter): + def datacenter(self, datacenter: Optional[DataCenter]): """Sets the datacenter of this IpInfoResultV4. diff --git a/fingerprint_pro_server_api_sdk/models/ip_info_result_v6.py b/fingerprint_pro_server_api_sdk/models/ip_info_result_v6.py index 7198669f..7ba56e1c 100644 --- a/fingerprint_pro_server_api_sdk/models/ip_info_result_v6.py +++ b/fingerprint_pro_server_api_sdk/models/ip_info_result_v6.py @@ -11,7 +11,7 @@ """ import re # noqa: F401 -from typing import Dict, List # noqa: F401 +from typing import Dict, List, Optional # noqa: F401 from fingerprint_pro_server_api_sdk.base_model import BaseModel from fingerprint_pro_server_api_sdk.models.ip_location import IPLocation from fingerprint_pro_server_api_sdk.models.asn import ASN @@ -101,7 +101,7 @@ def geolocation(self, geolocation: IPLocation): self._geolocation = geolocation @property - def asn(self) -> ASN: + def asn(self) -> Optional[ASN]: """Gets the asn of this IpInfoResultV6. # noqa: E501 @@ -110,7 +110,7 @@ def asn(self) -> ASN: return self._asn @asn.setter - def asn(self, asn: ASN): + def asn(self, asn: Optional[ASN]): """Sets the asn of this IpInfoResultV6. @@ -120,7 +120,7 @@ def asn(self, asn: ASN): self._asn = asn @property - def datacenter(self) -> DataCenter: + def datacenter(self) -> Optional[DataCenter]: """Gets the datacenter of this IpInfoResultV6. # noqa: E501 @@ -129,7 +129,7 @@ def datacenter(self) -> DataCenter: return self._datacenter @datacenter.setter - def datacenter(self, datacenter: DataCenter): + def datacenter(self, datacenter: Optional[DataCenter]): """Sets the datacenter of this IpInfoResultV6. diff --git a/fingerprint_pro_server_api_sdk/models/ip_location.py b/fingerprint_pro_server_api_sdk/models/ip_location.py index a1541429..5431b4cb 100644 --- a/fingerprint_pro_server_api_sdk/models/ip_location.py +++ b/fingerprint_pro_server_api_sdk/models/ip_location.py @@ -11,7 +11,7 @@ """ import re # noqa: F401 -from typing import Dict, List # noqa: F401 +from typing import Dict, List, Optional # noqa: F401 from fingerprint_pro_server_api_sdk.base_model import BaseModel from fingerprint_pro_server_api_sdk.models.ip_location_city import IPLocationCity from fingerprint_pro_server_api_sdk.models.location import Location @@ -87,7 +87,7 @@ def __init__(self, accuracy_radius=None, latitude=None, longitude=None, postal_c self.subdivisions = subdivisions @property - def accuracy_radius(self) -> int: + def accuracy_radius(self) -> Optional[int]: """Gets the accuracy_radius of this IPLocation. # noqa: E501 The IP address is likely to be within this radius (in km) of the specified location. # noqa: E501 @@ -97,7 +97,7 @@ def accuracy_radius(self) -> int: return self._accuracy_radius @accuracy_radius.setter - def accuracy_radius(self, accuracy_radius: int): + def accuracy_radius(self, accuracy_radius: Optional[int]): """Sets the accuracy_radius of this IPLocation. The IP address is likely to be within this radius (in km) of the specified location. # noqa: E501 @@ -108,7 +108,7 @@ def accuracy_radius(self, accuracy_radius: int): self._accuracy_radius = accuracy_radius @property - def latitude(self) -> float: + def latitude(self) -> Optional[float]: """Gets the latitude of this IPLocation. # noqa: E501 @@ -117,7 +117,7 @@ def latitude(self) -> float: return self._latitude @latitude.setter - def latitude(self, latitude: float): + def latitude(self, latitude: Optional[float]): """Sets the latitude of this IPLocation. @@ -127,7 +127,7 @@ def latitude(self, latitude: float): self._latitude = latitude @property - def longitude(self) -> float: + def longitude(self) -> Optional[float]: """Gets the longitude of this IPLocation. # noqa: E501 @@ -136,7 +136,7 @@ def longitude(self) -> float: return self._longitude @longitude.setter - def longitude(self, longitude: float): + def longitude(self, longitude: Optional[float]): """Sets the longitude of this IPLocation. @@ -146,7 +146,7 @@ def longitude(self, longitude: float): self._longitude = longitude @property - def postal_code(self) -> str: + def postal_code(self) -> Optional[str]: """Gets the postal_code of this IPLocation. # noqa: E501 @@ -155,7 +155,7 @@ def postal_code(self) -> str: return self._postal_code @postal_code.setter - def postal_code(self, postal_code: str): + def postal_code(self, postal_code: Optional[str]): """Sets the postal_code of this IPLocation. @@ -165,7 +165,7 @@ def postal_code(self, postal_code: str): self._postal_code = postal_code @property - def timezone(self) -> str: + def timezone(self) -> Optional[str]: """Gets the timezone of this IPLocation. # noqa: E501 @@ -174,7 +174,7 @@ def timezone(self) -> str: return self._timezone @timezone.setter - def timezone(self, timezone: str): + def timezone(self, timezone: Optional[str]): """Sets the timezone of this IPLocation. @@ -184,7 +184,7 @@ def timezone(self, timezone: str): self._timezone = timezone @property - def city(self) -> IPLocationCity: + def city(self) -> Optional[IPLocationCity]: """Gets the city of this IPLocation. # noqa: E501 @@ -193,7 +193,7 @@ def city(self) -> IPLocationCity: return self._city @city.setter - def city(self, city: IPLocationCity): + def city(self, city: Optional[IPLocationCity]): """Sets the city of this IPLocation. @@ -203,7 +203,7 @@ def city(self, city: IPLocationCity): self._city = city @property - def country(self) -> Location: + def country(self) -> Optional[Location]: """Gets the country of this IPLocation. # noqa: E501 @@ -212,7 +212,7 @@ def country(self) -> Location: return self._country @country.setter - def country(self, country: Location): + def country(self, country: Optional[Location]): """Sets the country of this IPLocation. @@ -222,7 +222,7 @@ def country(self, country: Location): self._country = country @property - def continent(self) -> Location: + def continent(self) -> Optional[Location]: """Gets the continent of this IPLocation. # noqa: E501 @@ -231,7 +231,7 @@ def continent(self) -> Location: return self._continent @continent.setter - def continent(self, continent: Location): + def continent(self, continent: Optional[Location]): """Sets the continent of this IPLocation. @@ -241,7 +241,7 @@ def continent(self, continent: Location): self._continent = continent @property - def subdivisions(self) -> List[Subdivision]: + def subdivisions(self) -> Optional[List[Subdivision]]: """Gets the subdivisions of this IPLocation. # noqa: E501 @@ -250,7 +250,7 @@ def subdivisions(self) -> List[Subdivision]: return self._subdivisions @subdivisions.setter - def subdivisions(self, subdivisions: List[Subdivision]): + def subdivisions(self, subdivisions: Optional[List[Subdivision]]): """Sets the subdivisions of this IPLocation. diff --git a/fingerprint_pro_server_api_sdk/models/ip_location_city.py b/fingerprint_pro_server_api_sdk/models/ip_location_city.py index 45266d07..52102f86 100644 --- a/fingerprint_pro_server_api_sdk/models/ip_location_city.py +++ b/fingerprint_pro_server_api_sdk/models/ip_location_city.py @@ -11,7 +11,7 @@ """ import re # noqa: F401 -from typing import Dict, List # noqa: F401 +from typing import Dict, List, Optional # noqa: F401 from fingerprint_pro_server_api_sdk.base_model import BaseModel @@ -43,7 +43,7 @@ def __init__(self, name=None): # noqa: E501 self.name = name @property - def name(self) -> str: + def name(self) -> Optional[str]: """Gets the name of this IPLocationCity. # noqa: E501 @@ -52,7 +52,7 @@ def name(self) -> str: return self._name @name.setter - def name(self, name: str): + def name(self, name: Optional[str]): """Sets the name of this IPLocationCity. diff --git a/fingerprint_pro_server_api_sdk/models/jailbroken_result.py b/fingerprint_pro_server_api_sdk/models/jailbroken_result.py index 08f027a7..af3e0bc6 100644 --- a/fingerprint_pro_server_api_sdk/models/jailbroken_result.py +++ b/fingerprint_pro_server_api_sdk/models/jailbroken_result.py @@ -11,7 +11,7 @@ """ import re # noqa: F401 -from typing import Dict, List # noqa: F401 +from typing import Dict, List, Optional # noqa: F401 from fingerprint_pro_server_api_sdk.base_model import BaseModel diff --git a/fingerprint_pro_server_api_sdk/models/location.py b/fingerprint_pro_server_api_sdk/models/location.py index 2df35e0b..2013fb0e 100644 --- a/fingerprint_pro_server_api_sdk/models/location.py +++ b/fingerprint_pro_server_api_sdk/models/location.py @@ -11,7 +11,7 @@ """ import re # noqa: F401 -from typing import Dict, List # noqa: F401 +from typing import Dict, List, Optional # noqa: F401 from fingerprint_pro_server_api_sdk.base_model import BaseModel diff --git a/fingerprint_pro_server_api_sdk/models/location_spoofing_result.py b/fingerprint_pro_server_api_sdk/models/location_spoofing_result.py index 3d4b9523..8977908a 100644 --- a/fingerprint_pro_server_api_sdk/models/location_spoofing_result.py +++ b/fingerprint_pro_server_api_sdk/models/location_spoofing_result.py @@ -11,7 +11,7 @@ """ import re # noqa: F401 -from typing import Dict, List # noqa: F401 +from typing import Dict, List, Optional # noqa: F401 from fingerprint_pro_server_api_sdk.base_model import BaseModel diff --git a/fingerprint_pro_server_api_sdk/models/privacy_settings_result.py b/fingerprint_pro_server_api_sdk/models/privacy_settings_result.py index 522d5872..18a57682 100644 --- a/fingerprint_pro_server_api_sdk/models/privacy_settings_result.py +++ b/fingerprint_pro_server_api_sdk/models/privacy_settings_result.py @@ -11,7 +11,7 @@ """ import re # noqa: F401 -from typing import Dict, List # noqa: F401 +from typing import Dict, List, Optional # noqa: F401 from fingerprint_pro_server_api_sdk.base_model import BaseModel diff --git a/fingerprint_pro_server_api_sdk/models/product_error.py b/fingerprint_pro_server_api_sdk/models/product_error.py index 0f9ded35..a56ee1c6 100644 --- a/fingerprint_pro_server_api_sdk/models/product_error.py +++ b/fingerprint_pro_server_api_sdk/models/product_error.py @@ -11,7 +11,7 @@ """ import re # noqa: F401 -from typing import Dict, List # noqa: F401 +from typing import Dict, List, Optional # noqa: F401 from fingerprint_pro_server_api_sdk.base_model import BaseModel diff --git a/fingerprint_pro_server_api_sdk/models/products_response.py b/fingerprint_pro_server_api_sdk/models/products_response.py index 15a16cf5..bc8a3bdf 100644 --- a/fingerprint_pro_server_api_sdk/models/products_response.py +++ b/fingerprint_pro_server_api_sdk/models/products_response.py @@ -11,7 +11,7 @@ """ import re # noqa: F401 -from typing import Dict, List # noqa: F401 +from typing import Dict, List, Optional # noqa: F401 from fingerprint_pro_server_api_sdk.base_model import BaseModel from fingerprint_pro_server_api_sdk.models.products_response_identification import ProductsResponseIdentification from fingerprint_pro_server_api_sdk.models.products_response_botd import ProductsResponseBotd @@ -185,7 +185,7 @@ def __init__(self, identification=None, botd=None, ip_info=None, incognito=None, self.developer_tools = developer_tools @property - def identification(self) -> ProductsResponseIdentification: + def identification(self) -> Optional[ProductsResponseIdentification]: """Gets the identification of this ProductsResponse. # noqa: E501 @@ -194,7 +194,7 @@ def identification(self) -> ProductsResponseIdentification: return self._identification @identification.setter - def identification(self, identification: ProductsResponseIdentification): + def identification(self, identification: Optional[ProductsResponseIdentification]): """Sets the identification of this ProductsResponse. @@ -204,7 +204,7 @@ def identification(self, identification: ProductsResponseIdentification): self._identification = identification @property - def botd(self) -> ProductsResponseBotd: + def botd(self) -> Optional[ProductsResponseBotd]: """Gets the botd of this ProductsResponse. # noqa: E501 @@ -213,7 +213,7 @@ def botd(self) -> ProductsResponseBotd: return self._botd @botd.setter - def botd(self, botd: ProductsResponseBotd): + def botd(self, botd: Optional[ProductsResponseBotd]): """Sets the botd of this ProductsResponse. @@ -223,7 +223,7 @@ def botd(self, botd: ProductsResponseBotd): self._botd = botd @property - def ip_info(self) -> SignalResponseIpInfo: + def ip_info(self) -> Optional[SignalResponseIpInfo]: """Gets the ip_info of this ProductsResponse. # noqa: E501 @@ -232,7 +232,7 @@ def ip_info(self) -> SignalResponseIpInfo: return self._ip_info @ip_info.setter - def ip_info(self, ip_info: SignalResponseIpInfo): + def ip_info(self, ip_info: Optional[SignalResponseIpInfo]): """Sets the ip_info of this ProductsResponse. @@ -242,7 +242,7 @@ def ip_info(self, ip_info: SignalResponseIpInfo): self._ip_info = ip_info @property - def incognito(self) -> SignalResponseIncognito: + def incognito(self) -> Optional[SignalResponseIncognito]: """Gets the incognito of this ProductsResponse. # noqa: E501 @@ -251,7 +251,7 @@ def incognito(self) -> SignalResponseIncognito: return self._incognito @incognito.setter - def incognito(self, incognito: SignalResponseIncognito): + def incognito(self, incognito: Optional[SignalResponseIncognito]): """Sets the incognito of this ProductsResponse. @@ -261,7 +261,7 @@ def incognito(self, incognito: SignalResponseIncognito): self._incognito = incognito @property - def root_apps(self) -> SignalResponseRootApps: + def root_apps(self) -> Optional[SignalResponseRootApps]: """Gets the root_apps of this ProductsResponse. # noqa: E501 @@ -270,7 +270,7 @@ def root_apps(self) -> SignalResponseRootApps: return self._root_apps @root_apps.setter - def root_apps(self, root_apps: SignalResponseRootApps): + def root_apps(self, root_apps: Optional[SignalResponseRootApps]): """Sets the root_apps of this ProductsResponse. @@ -280,7 +280,7 @@ def root_apps(self, root_apps: SignalResponseRootApps): self._root_apps = root_apps @property - def emulator(self) -> SignalResponseEmulator: + def emulator(self) -> Optional[SignalResponseEmulator]: """Gets the emulator of this ProductsResponse. # noqa: E501 @@ -289,7 +289,7 @@ def emulator(self) -> SignalResponseEmulator: return self._emulator @emulator.setter - def emulator(self, emulator: SignalResponseEmulator): + def emulator(self, emulator: Optional[SignalResponseEmulator]): """Sets the emulator of this ProductsResponse. @@ -299,7 +299,7 @@ def emulator(self, emulator: SignalResponseEmulator): self._emulator = emulator @property - def cloned_app(self) -> SignalResponseClonedApp: + def cloned_app(self) -> Optional[SignalResponseClonedApp]: """Gets the cloned_app of this ProductsResponse. # noqa: E501 @@ -308,7 +308,7 @@ def cloned_app(self) -> SignalResponseClonedApp: return self._cloned_app @cloned_app.setter - def cloned_app(self, cloned_app: SignalResponseClonedApp): + def cloned_app(self, cloned_app: Optional[SignalResponseClonedApp]): """Sets the cloned_app of this ProductsResponse. @@ -318,7 +318,7 @@ def cloned_app(self, cloned_app: SignalResponseClonedApp): self._cloned_app = cloned_app @property - def factory_reset(self) -> SignalResponseFactoryReset: + def factory_reset(self) -> Optional[SignalResponseFactoryReset]: """Gets the factory_reset of this ProductsResponse. # noqa: E501 @@ -327,7 +327,7 @@ def factory_reset(self) -> SignalResponseFactoryReset: return self._factory_reset @factory_reset.setter - def factory_reset(self, factory_reset: SignalResponseFactoryReset): + def factory_reset(self, factory_reset: Optional[SignalResponseFactoryReset]): """Sets the factory_reset of this ProductsResponse. @@ -337,7 +337,7 @@ def factory_reset(self, factory_reset: SignalResponseFactoryReset): self._factory_reset = factory_reset @property - def jailbroken(self) -> SignalResponseJailbroken: + def jailbroken(self) -> Optional[SignalResponseJailbroken]: """Gets the jailbroken of this ProductsResponse. # noqa: E501 @@ -346,7 +346,7 @@ def jailbroken(self) -> SignalResponseJailbroken: return self._jailbroken @jailbroken.setter - def jailbroken(self, jailbroken: SignalResponseJailbroken): + def jailbroken(self, jailbroken: Optional[SignalResponseJailbroken]): """Sets the jailbroken of this ProductsResponse. @@ -356,7 +356,7 @@ def jailbroken(self, jailbroken: SignalResponseJailbroken): self._jailbroken = jailbroken @property - def frida(self) -> SignalResponseFrida: + def frida(self) -> Optional[SignalResponseFrida]: """Gets the frida of this ProductsResponse. # noqa: E501 @@ -365,7 +365,7 @@ def frida(self) -> SignalResponseFrida: return self._frida @frida.setter - def frida(self, frida: SignalResponseFrida): + def frida(self, frida: Optional[SignalResponseFrida]): """Sets the frida of this ProductsResponse. @@ -375,7 +375,7 @@ def frida(self, frida: SignalResponseFrida): self._frida = frida @property - def ip_blocklist(self) -> SignalResponseIpBlocklist: + def ip_blocklist(self) -> Optional[SignalResponseIpBlocklist]: """Gets the ip_blocklist of this ProductsResponse. # noqa: E501 @@ -384,7 +384,7 @@ def ip_blocklist(self) -> SignalResponseIpBlocklist: return self._ip_blocklist @ip_blocklist.setter - def ip_blocklist(self, ip_blocklist: SignalResponseIpBlocklist): + def ip_blocklist(self, ip_blocklist: Optional[SignalResponseIpBlocklist]): """Sets the ip_blocklist of this ProductsResponse. @@ -394,7 +394,7 @@ def ip_blocklist(self, ip_blocklist: SignalResponseIpBlocklist): self._ip_blocklist = ip_blocklist @property - def tor(self) -> SignalResponseTor: + def tor(self) -> Optional[SignalResponseTor]: """Gets the tor of this ProductsResponse. # noqa: E501 @@ -403,7 +403,7 @@ def tor(self) -> SignalResponseTor: return self._tor @tor.setter - def tor(self, tor: SignalResponseTor): + def tor(self, tor: Optional[SignalResponseTor]): """Sets the tor of this ProductsResponse. @@ -413,7 +413,7 @@ def tor(self, tor: SignalResponseTor): self._tor = tor @property - def privacy_settings(self) -> SignalResponsePrivacySettings: + def privacy_settings(self) -> Optional[SignalResponsePrivacySettings]: """Gets the privacy_settings of this ProductsResponse. # noqa: E501 @@ -422,7 +422,7 @@ def privacy_settings(self) -> SignalResponsePrivacySettings: return self._privacy_settings @privacy_settings.setter - def privacy_settings(self, privacy_settings: SignalResponsePrivacySettings): + def privacy_settings(self, privacy_settings: Optional[SignalResponsePrivacySettings]): """Sets the privacy_settings of this ProductsResponse. @@ -432,7 +432,7 @@ def privacy_settings(self, privacy_settings: SignalResponsePrivacySettings): self._privacy_settings = privacy_settings @property - def virtual_machine(self) -> SignalResponseVirtualMachine: + def virtual_machine(self) -> Optional[SignalResponseVirtualMachine]: """Gets the virtual_machine of this ProductsResponse. # noqa: E501 @@ -441,7 +441,7 @@ def virtual_machine(self) -> SignalResponseVirtualMachine: return self._virtual_machine @virtual_machine.setter - def virtual_machine(self, virtual_machine: SignalResponseVirtualMachine): + def virtual_machine(self, virtual_machine: Optional[SignalResponseVirtualMachine]): """Sets the virtual_machine of this ProductsResponse. @@ -451,7 +451,7 @@ def virtual_machine(self, virtual_machine: SignalResponseVirtualMachine): self._virtual_machine = virtual_machine @property - def vpn(self) -> SignalResponseVpn: + def vpn(self) -> Optional[SignalResponseVpn]: """Gets the vpn of this ProductsResponse. # noqa: E501 @@ -460,7 +460,7 @@ def vpn(self) -> SignalResponseVpn: return self._vpn @vpn.setter - def vpn(self, vpn: SignalResponseVpn): + def vpn(self, vpn: Optional[SignalResponseVpn]): """Sets the vpn of this ProductsResponse. @@ -470,7 +470,7 @@ def vpn(self, vpn: SignalResponseVpn): self._vpn = vpn @property - def proxy(self) -> SignalResponseProxy: + def proxy(self) -> Optional[SignalResponseProxy]: """Gets the proxy of this ProductsResponse. # noqa: E501 @@ -479,7 +479,7 @@ def proxy(self) -> SignalResponseProxy: return self._proxy @proxy.setter - def proxy(self, proxy: SignalResponseProxy): + def proxy(self, proxy: Optional[SignalResponseProxy]): """Sets the proxy of this ProductsResponse. @@ -489,7 +489,7 @@ def proxy(self, proxy: SignalResponseProxy): self._proxy = proxy @property - def tampering(self) -> SignalResponseTampering: + def tampering(self) -> Optional[SignalResponseTampering]: """Gets the tampering of this ProductsResponse. # noqa: E501 @@ -498,7 +498,7 @@ def tampering(self) -> SignalResponseTampering: return self._tampering @tampering.setter - def tampering(self, tampering: SignalResponseTampering): + def tampering(self, tampering: Optional[SignalResponseTampering]): """Sets the tampering of this ProductsResponse. @@ -508,7 +508,7 @@ def tampering(self, tampering: SignalResponseTampering): self._tampering = tampering @property - def high_activity(self) -> SignalResponseHighActivity: + def high_activity(self) -> Optional[SignalResponseHighActivity]: """Gets the high_activity of this ProductsResponse. # noqa: E501 @@ -517,7 +517,7 @@ def high_activity(self) -> SignalResponseHighActivity: return self._high_activity @high_activity.setter - def high_activity(self, high_activity: SignalResponseHighActivity): + def high_activity(self, high_activity: Optional[SignalResponseHighActivity]): """Sets the high_activity of this ProductsResponse. @@ -527,7 +527,7 @@ def high_activity(self, high_activity: SignalResponseHighActivity): self._high_activity = high_activity @property - def location_spoofing(self) -> SignalResponseLocationSpoofing: + def location_spoofing(self) -> Optional[SignalResponseLocationSpoofing]: """Gets the location_spoofing of this ProductsResponse. # noqa: E501 @@ -536,7 +536,7 @@ def location_spoofing(self) -> SignalResponseLocationSpoofing: return self._location_spoofing @location_spoofing.setter - def location_spoofing(self, location_spoofing: SignalResponseLocationSpoofing): + def location_spoofing(self, location_spoofing: Optional[SignalResponseLocationSpoofing]): """Sets the location_spoofing of this ProductsResponse. @@ -546,7 +546,7 @@ def location_spoofing(self, location_spoofing: SignalResponseLocationSpoofing): self._location_spoofing = location_spoofing @property - def suspect_score(self) -> SignalResponseSuspectScore: + def suspect_score(self) -> Optional[SignalResponseSuspectScore]: """Gets the suspect_score of this ProductsResponse. # noqa: E501 @@ -555,7 +555,7 @@ def suspect_score(self) -> SignalResponseSuspectScore: return self._suspect_score @suspect_score.setter - def suspect_score(self, suspect_score: SignalResponseSuspectScore): + def suspect_score(self, suspect_score: Optional[SignalResponseSuspectScore]): """Sets the suspect_score of this ProductsResponse. @@ -565,7 +565,7 @@ def suspect_score(self, suspect_score: SignalResponseSuspectScore): self._suspect_score = suspect_score @property - def raw_device_attributes(self) -> SignalResponseRawDeviceAttributes: + def raw_device_attributes(self) -> Optional[SignalResponseRawDeviceAttributes]: """Gets the raw_device_attributes of this ProductsResponse. # noqa: E501 @@ -574,7 +574,7 @@ def raw_device_attributes(self) -> SignalResponseRawDeviceAttributes: return self._raw_device_attributes @raw_device_attributes.setter - def raw_device_attributes(self, raw_device_attributes: SignalResponseRawDeviceAttributes): + def raw_device_attributes(self, raw_device_attributes: Optional[SignalResponseRawDeviceAttributes]): """Sets the raw_device_attributes of this ProductsResponse. @@ -584,7 +584,7 @@ def raw_device_attributes(self, raw_device_attributes: SignalResponseRawDeviceAt self._raw_device_attributes = raw_device_attributes @property - def remote_control(self) -> SignalResponseRemoteControl: + def remote_control(self) -> Optional[SignalResponseRemoteControl]: """Gets the remote_control of this ProductsResponse. # noqa: E501 @@ -593,7 +593,7 @@ def remote_control(self) -> SignalResponseRemoteControl: return self._remote_control @remote_control.setter - def remote_control(self, remote_control: SignalResponseRemoteControl): + def remote_control(self, remote_control: Optional[SignalResponseRemoteControl]): """Sets the remote_control of this ProductsResponse. @@ -603,7 +603,7 @@ def remote_control(self, remote_control: SignalResponseRemoteControl): self._remote_control = remote_control @property - def velocity(self) -> SignalResponseVelocity: + def velocity(self) -> Optional[SignalResponseVelocity]: """Gets the velocity of this ProductsResponse. # noqa: E501 @@ -612,7 +612,7 @@ def velocity(self) -> SignalResponseVelocity: return self._velocity @velocity.setter - def velocity(self, velocity: SignalResponseVelocity): + def velocity(self, velocity: Optional[SignalResponseVelocity]): """Sets the velocity of this ProductsResponse. @@ -622,7 +622,7 @@ def velocity(self, velocity: SignalResponseVelocity): self._velocity = velocity @property - def developer_tools(self) -> SignalResponseDeveloperTools: + def developer_tools(self) -> Optional[SignalResponseDeveloperTools]: """Gets the developer_tools of this ProductsResponse. # noqa: E501 @@ -631,7 +631,7 @@ def developer_tools(self) -> SignalResponseDeveloperTools: return self._developer_tools @developer_tools.setter - def developer_tools(self, developer_tools: SignalResponseDeveloperTools): + def developer_tools(self, developer_tools: Optional[SignalResponseDeveloperTools]): """Sets the developer_tools of this ProductsResponse. diff --git a/fingerprint_pro_server_api_sdk/models/products_response_botd.py b/fingerprint_pro_server_api_sdk/models/products_response_botd.py index 9af22bef..c656135c 100644 --- a/fingerprint_pro_server_api_sdk/models/products_response_botd.py +++ b/fingerprint_pro_server_api_sdk/models/products_response_botd.py @@ -11,7 +11,7 @@ """ import re # noqa: F401 -from typing import Dict, List # noqa: F401 +from typing import Dict, List, Optional # noqa: F401 from fingerprint_pro_server_api_sdk.base_model import BaseModel from fingerprint_pro_server_api_sdk.models.botd_result import BotdResult from fingerprint_pro_server_api_sdk.models.product_error import ProductError @@ -50,7 +50,7 @@ def __init__(self, data=None, error=None): # noqa: E501 self.error = error @property - def data(self) -> BotdResult: + def data(self) -> Optional[BotdResult]: """Gets the data of this ProductsResponseBotd. # noqa: E501 @@ -59,7 +59,7 @@ def data(self) -> BotdResult: return self._data @data.setter - def data(self, data: BotdResult): + def data(self, data: Optional[BotdResult]): """Sets the data of this ProductsResponseBotd. @@ -69,7 +69,7 @@ def data(self, data: BotdResult): self._data = data @property - def error(self) -> ProductError: + def error(self) -> Optional[ProductError]: """Gets the error of this ProductsResponseBotd. # noqa: E501 @@ -78,7 +78,7 @@ def error(self) -> ProductError: return self._error @error.setter - def error(self, error: ProductError): + def error(self, error: Optional[ProductError]): """Sets the error of this ProductsResponseBotd. diff --git a/fingerprint_pro_server_api_sdk/models/products_response_identification.py b/fingerprint_pro_server_api_sdk/models/products_response_identification.py index 2f7566cf..5b0811b5 100644 --- a/fingerprint_pro_server_api_sdk/models/products_response_identification.py +++ b/fingerprint_pro_server_api_sdk/models/products_response_identification.py @@ -11,7 +11,7 @@ """ import re # noqa: F401 -from typing import Dict, List # noqa: F401 +from typing import Dict, List, Optional # noqa: F401 from fingerprint_pro_server_api_sdk.base_model import BaseModel from fingerprint_pro_server_api_sdk.models.products_response_identification_data import ProductsResponseIdentificationData from fingerprint_pro_server_api_sdk.models.identification_error import IdentificationError @@ -50,7 +50,7 @@ def __init__(self, data=None, error=None): # noqa: E501 self.error = error @property - def data(self) -> ProductsResponseIdentificationData: + def data(self) -> Optional[ProductsResponseIdentificationData]: """Gets the data of this ProductsResponseIdentification. # noqa: E501 @@ -59,7 +59,7 @@ def data(self) -> ProductsResponseIdentificationData: return self._data @data.setter - def data(self, data: ProductsResponseIdentificationData): + def data(self, data: Optional[ProductsResponseIdentificationData]): """Sets the data of this ProductsResponseIdentification. @@ -69,7 +69,7 @@ def data(self, data: ProductsResponseIdentificationData): self._data = data @property - def error(self) -> IdentificationError: + def error(self) -> Optional[IdentificationError]: """Gets the error of this ProductsResponseIdentification. # noqa: E501 @@ -78,7 +78,7 @@ def error(self) -> IdentificationError: return self._error @error.setter - def error(self, error: IdentificationError): + def error(self, error: Optional[IdentificationError]): """Sets the error of this ProductsResponseIdentification. diff --git a/fingerprint_pro_server_api_sdk/models/products_response_identification_data.py b/fingerprint_pro_server_api_sdk/models/products_response_identification_data.py index 9921d1e2..41fe876e 100644 --- a/fingerprint_pro_server_api_sdk/models/products_response_identification_data.py +++ b/fingerprint_pro_server_api_sdk/models/products_response_identification_data.py @@ -11,7 +11,7 @@ """ import re # noqa: F401 -from typing import Dict, List # noqa: F401 +from typing import Dict, List, Optional # noqa: F401 from fingerprint_pro_server_api_sdk.base_model import BaseModel from fingerprint_pro_server_api_sdk.models.browser_details import BrowserDetails from fingerprint_pro_server_api_sdk.models.deprecated_ip_location import DeprecatedIPLocation @@ -195,7 +195,7 @@ def ip(self, ip: str): self._ip = ip @property - def ip_location(self) -> DeprecatedIPLocation: + def ip_location(self) -> Optional[DeprecatedIPLocation]: """Gets the ip_location of this ProductsResponseIdentificationData. # noqa: E501 @@ -204,7 +204,7 @@ def ip_location(self) -> DeprecatedIPLocation: return self._ip_location @ip_location.setter - def ip_location(self, ip_location: DeprecatedIPLocation): + def ip_location(self, ip_location: Optional[DeprecatedIPLocation]): """Sets the ip_location of this ProductsResponseIdentificationData. @@ -306,7 +306,7 @@ def tag(self, tag: Dict[str, object]): self._tag = tag @property - def linked_id(self) -> str: + def linked_id(self) -> Optional[str]: """Gets the linked_id of this ProductsResponseIdentificationData. # noqa: E501 A customer-provided id that was sent with identification request. # noqa: E501 @@ -316,7 +316,7 @@ def linked_id(self) -> str: return self._linked_id @linked_id.setter - def linked_id(self, linked_id: str): + def linked_id(self, linked_id: Optional[str]): """Sets the linked_id of this ProductsResponseIdentificationData. A customer-provided id that was sent with identification request. # noqa: E501 @@ -327,7 +327,7 @@ def linked_id(self, linked_id: str): self._linked_id = linked_id @property - def confidence(self) -> Confidence: + def confidence(self) -> Optional[Confidence]: """Gets the confidence of this ProductsResponseIdentificationData. # noqa: E501 @@ -336,7 +336,7 @@ def confidence(self) -> Confidence: return self._confidence @confidence.setter - def confidence(self, confidence: Confidence): + def confidence(self, confidence: Optional[Confidence]): """Sets the confidence of this ProductsResponseIdentificationData. diff --git a/fingerprint_pro_server_api_sdk/models/proxy_result.py b/fingerprint_pro_server_api_sdk/models/proxy_result.py index 7da63a77..7027dcc8 100644 --- a/fingerprint_pro_server_api_sdk/models/proxy_result.py +++ b/fingerprint_pro_server_api_sdk/models/proxy_result.py @@ -11,7 +11,7 @@ """ import re # noqa: F401 -from typing import Dict, List # noqa: F401 +from typing import Dict, List, Optional # noqa: F401 from fingerprint_pro_server_api_sdk.base_model import BaseModel diff --git a/fingerprint_pro_server_api_sdk/models/raw_device_attributes_result.py b/fingerprint_pro_server_api_sdk/models/raw_device_attributes_result.py index 7a86b0ff..b72b20c3 100644 --- a/fingerprint_pro_server_api_sdk/models/raw_device_attributes_result.py +++ b/fingerprint_pro_server_api_sdk/models/raw_device_attributes_result.py @@ -11,7 +11,7 @@ """ import re # noqa: F401 -from typing import Dict, List # noqa: F401 +from typing import Dict, List, Optional # noqa: F401 from fingerprint_pro_server_api_sdk.base_model import BaseModel diff --git a/fingerprint_pro_server_api_sdk/models/remote_control_result.py b/fingerprint_pro_server_api_sdk/models/remote_control_result.py index 879bd650..8b748e34 100644 --- a/fingerprint_pro_server_api_sdk/models/remote_control_result.py +++ b/fingerprint_pro_server_api_sdk/models/remote_control_result.py @@ -11,7 +11,7 @@ """ import re # noqa: F401 -from typing import Dict, List # noqa: F401 +from typing import Dict, List, Optional # noqa: F401 from fingerprint_pro_server_api_sdk.base_model import BaseModel diff --git a/fingerprint_pro_server_api_sdk/models/response.py b/fingerprint_pro_server_api_sdk/models/response.py index d07b9d3c..678d50ee 100644 --- a/fingerprint_pro_server_api_sdk/models/response.py +++ b/fingerprint_pro_server_api_sdk/models/response.py @@ -11,7 +11,7 @@ """ import re # noqa: F401 -from typing import Dict, List # noqa: F401 +from typing import Dict, List, Optional # noqa: F401 from fingerprint_pro_server_api_sdk.base_model import BaseModel from fingerprint_pro_server_api_sdk.models.response_visits import ResponseVisits @@ -102,7 +102,7 @@ def visits(self, visits: List[ResponseVisits]): self._visits = visits @property - def last_timestamp(self) -> int: + def last_timestamp(self) -> Optional[int]: """Gets the last_timestamp of this Response. # noqa: E501 ⚠️ Deprecated paging attribute, please use `paginationKey` instead. Timestamp of the last visit in the current page of results. # noqa: E501 @@ -112,7 +112,7 @@ def last_timestamp(self) -> int: return self._last_timestamp @last_timestamp.setter - def last_timestamp(self, last_timestamp: int): + def last_timestamp(self, last_timestamp: Optional[int]): """Sets the last_timestamp of this Response. ⚠️ Deprecated paging attribute, please use `paginationKey` instead. Timestamp of the last visit in the current page of results. # noqa: E501 @@ -123,7 +123,7 @@ def last_timestamp(self, last_timestamp: int): self._last_timestamp = last_timestamp @property - def pagination_key(self) -> str: + def pagination_key(self) -> Optional[str]: """Gets the pagination_key of this Response. # noqa: E501 Request ID of the last visit in the current page of results. Use this value in the following request as the `paginationKey` parameter to get the next page of results. # noqa: E501 @@ -133,7 +133,7 @@ def pagination_key(self) -> str: return self._pagination_key @pagination_key.setter - def pagination_key(self, pagination_key: str): + def pagination_key(self, pagination_key: Optional[str]): """Sets the pagination_key of this Response. Request ID of the last visit in the current page of results. Use this value in the following request as the `paginationKey` parameter to get the next page of results. # noqa: E501 diff --git a/fingerprint_pro_server_api_sdk/models/response_visits.py b/fingerprint_pro_server_api_sdk/models/response_visits.py index f6f16a4d..b7ee40c5 100644 --- a/fingerprint_pro_server_api_sdk/models/response_visits.py +++ b/fingerprint_pro_server_api_sdk/models/response_visits.py @@ -11,7 +11,7 @@ """ import re # noqa: F401 -from typing import Dict, List # noqa: F401 +from typing import Dict, List, Optional # noqa: F401 from fingerprint_pro_server_api_sdk.base_model import BaseModel from fingerprint_pro_server_api_sdk.models.browser_details import BrowserDetails from fingerprint_pro_server_api_sdk.models.deprecated_ip_location import DeprecatedIPLocation @@ -191,7 +191,7 @@ def ip(self, ip: str): self._ip = ip @property - def ip_location(self) -> DeprecatedIPLocation: + def ip_location(self) -> Optional[DeprecatedIPLocation]: """Gets the ip_location of this ResponseVisits. # noqa: E501 @@ -200,7 +200,7 @@ def ip_location(self) -> DeprecatedIPLocation: return self._ip_location @ip_location.setter - def ip_location(self, ip_location: DeprecatedIPLocation): + def ip_location(self, ip_location: Optional[DeprecatedIPLocation]): """Sets the ip_location of this ResponseVisits. @@ -302,7 +302,7 @@ def tag(self, tag: Dict[str, object]): self._tag = tag @property - def linked_id(self) -> str: + def linked_id(self) -> Optional[str]: """Gets the linked_id of this ResponseVisits. # noqa: E501 A customer-provided id that was sent with identification request. # noqa: E501 @@ -312,7 +312,7 @@ def linked_id(self) -> str: return self._linked_id @linked_id.setter - def linked_id(self, linked_id: str): + def linked_id(self, linked_id: Optional[str]): """Sets the linked_id of this ResponseVisits. A customer-provided id that was sent with identification request. # noqa: E501 @@ -323,7 +323,7 @@ def linked_id(self, linked_id: str): self._linked_id = linked_id @property - def confidence(self) -> Confidence: + def confidence(self) -> Optional[Confidence]: """Gets the confidence of this ResponseVisits. # noqa: E501 @@ -332,7 +332,7 @@ def confidence(self) -> Confidence: return self._confidence @confidence.setter - def confidence(self, confidence: Confidence): + def confidence(self, confidence: Optional[Confidence]): """Sets the confidence of this ResponseVisits. diff --git a/fingerprint_pro_server_api_sdk/models/root_apps_result.py b/fingerprint_pro_server_api_sdk/models/root_apps_result.py index 20fdd630..840fe7c8 100644 --- a/fingerprint_pro_server_api_sdk/models/root_apps_result.py +++ b/fingerprint_pro_server_api_sdk/models/root_apps_result.py @@ -11,7 +11,7 @@ """ import re # noqa: F401 -from typing import Dict, List # noqa: F401 +from typing import Dict, List, Optional # noqa: F401 from fingerprint_pro_server_api_sdk.base_model import BaseModel diff --git a/fingerprint_pro_server_api_sdk/models/seen_at.py b/fingerprint_pro_server_api_sdk/models/seen_at.py index 734c0370..fac3db30 100644 --- a/fingerprint_pro_server_api_sdk/models/seen_at.py +++ b/fingerprint_pro_server_api_sdk/models/seen_at.py @@ -11,7 +11,7 @@ """ import re # noqa: F401 -from typing import Dict, List # noqa: F401 +from typing import Dict, List, Optional # noqa: F401 from fingerprint_pro_server_api_sdk.base_model import BaseModel from datetime import datetime from datetime import datetime diff --git a/fingerprint_pro_server_api_sdk/models/signal_response_cloned_app.py b/fingerprint_pro_server_api_sdk/models/signal_response_cloned_app.py index 8639e32d..59d969c6 100644 --- a/fingerprint_pro_server_api_sdk/models/signal_response_cloned_app.py +++ b/fingerprint_pro_server_api_sdk/models/signal_response_cloned_app.py @@ -11,7 +11,7 @@ """ import re # noqa: F401 -from typing import Dict, List # noqa: F401 +from typing import Dict, List, Optional # noqa: F401 from fingerprint_pro_server_api_sdk.base_model import BaseModel from fingerprint_pro_server_api_sdk.models.cloned_app_result import ClonedAppResult from fingerprint_pro_server_api_sdk.models.product_error import ProductError @@ -50,7 +50,7 @@ def __init__(self, data=None, error=None): # noqa: E501 self.error = error @property - def data(self) -> ClonedAppResult: + def data(self) -> Optional[ClonedAppResult]: """Gets the data of this SignalResponseClonedApp. # noqa: E501 @@ -59,7 +59,7 @@ def data(self) -> ClonedAppResult: return self._data @data.setter - def data(self, data: ClonedAppResult): + def data(self, data: Optional[ClonedAppResult]): """Sets the data of this SignalResponseClonedApp. @@ -69,7 +69,7 @@ def data(self, data: ClonedAppResult): self._data = data @property - def error(self) -> ProductError: + def error(self) -> Optional[ProductError]: """Gets the error of this SignalResponseClonedApp. # noqa: E501 @@ -78,7 +78,7 @@ def error(self) -> ProductError: return self._error @error.setter - def error(self, error: ProductError): + def error(self, error: Optional[ProductError]): """Sets the error of this SignalResponseClonedApp. diff --git a/fingerprint_pro_server_api_sdk/models/signal_response_developer_tools.py b/fingerprint_pro_server_api_sdk/models/signal_response_developer_tools.py index f7cd5aa7..26869693 100644 --- a/fingerprint_pro_server_api_sdk/models/signal_response_developer_tools.py +++ b/fingerprint_pro_server_api_sdk/models/signal_response_developer_tools.py @@ -11,7 +11,7 @@ """ import re # noqa: F401 -from typing import Dict, List # noqa: F401 +from typing import Dict, List, Optional # noqa: F401 from fingerprint_pro_server_api_sdk.base_model import BaseModel from fingerprint_pro_server_api_sdk.models.developer_tools_result import DeveloperToolsResult from fingerprint_pro_server_api_sdk.models.product_error import ProductError @@ -50,7 +50,7 @@ def __init__(self, data=None, error=None): # noqa: E501 self.error = error @property - def data(self) -> DeveloperToolsResult: + def data(self) -> Optional[DeveloperToolsResult]: """Gets the data of this SignalResponseDeveloperTools. # noqa: E501 @@ -59,7 +59,7 @@ def data(self) -> DeveloperToolsResult: return self._data @data.setter - def data(self, data: DeveloperToolsResult): + def data(self, data: Optional[DeveloperToolsResult]): """Sets the data of this SignalResponseDeveloperTools. @@ -69,7 +69,7 @@ def data(self, data: DeveloperToolsResult): self._data = data @property - def error(self) -> ProductError: + def error(self) -> Optional[ProductError]: """Gets the error of this SignalResponseDeveloperTools. # noqa: E501 @@ -78,7 +78,7 @@ def error(self) -> ProductError: return self._error @error.setter - def error(self, error: ProductError): + def error(self, error: Optional[ProductError]): """Sets the error of this SignalResponseDeveloperTools. diff --git a/fingerprint_pro_server_api_sdk/models/signal_response_emulator.py b/fingerprint_pro_server_api_sdk/models/signal_response_emulator.py index 5cea138b..5f3a0bcd 100644 --- a/fingerprint_pro_server_api_sdk/models/signal_response_emulator.py +++ b/fingerprint_pro_server_api_sdk/models/signal_response_emulator.py @@ -11,7 +11,7 @@ """ import re # noqa: F401 -from typing import Dict, List # noqa: F401 +from typing import Dict, List, Optional # noqa: F401 from fingerprint_pro_server_api_sdk.base_model import BaseModel from fingerprint_pro_server_api_sdk.models.emulator_result import EmulatorResult from fingerprint_pro_server_api_sdk.models.product_error import ProductError @@ -50,7 +50,7 @@ def __init__(self, data=None, error=None): # noqa: E501 self.error = error @property - def data(self) -> EmulatorResult: + def data(self) -> Optional[EmulatorResult]: """Gets the data of this SignalResponseEmulator. # noqa: E501 @@ -59,7 +59,7 @@ def data(self) -> EmulatorResult: return self._data @data.setter - def data(self, data: EmulatorResult): + def data(self, data: Optional[EmulatorResult]): """Sets the data of this SignalResponseEmulator. @@ -69,7 +69,7 @@ def data(self, data: EmulatorResult): self._data = data @property - def error(self) -> ProductError: + def error(self) -> Optional[ProductError]: """Gets the error of this SignalResponseEmulator. # noqa: E501 @@ -78,7 +78,7 @@ def error(self) -> ProductError: return self._error @error.setter - def error(self, error: ProductError): + def error(self, error: Optional[ProductError]): """Sets the error of this SignalResponseEmulator. diff --git a/fingerprint_pro_server_api_sdk/models/signal_response_factory_reset.py b/fingerprint_pro_server_api_sdk/models/signal_response_factory_reset.py index 9202278d..e8955f75 100644 --- a/fingerprint_pro_server_api_sdk/models/signal_response_factory_reset.py +++ b/fingerprint_pro_server_api_sdk/models/signal_response_factory_reset.py @@ -11,7 +11,7 @@ """ import re # noqa: F401 -from typing import Dict, List # noqa: F401 +from typing import Dict, List, Optional # noqa: F401 from fingerprint_pro_server_api_sdk.base_model import BaseModel from fingerprint_pro_server_api_sdk.models.factory_reset_result import FactoryResetResult from fingerprint_pro_server_api_sdk.models.product_error import ProductError @@ -50,7 +50,7 @@ def __init__(self, data=None, error=None): # noqa: E501 self.error = error @property - def data(self) -> FactoryResetResult: + def data(self) -> Optional[FactoryResetResult]: """Gets the data of this SignalResponseFactoryReset. # noqa: E501 @@ -59,7 +59,7 @@ def data(self) -> FactoryResetResult: return self._data @data.setter - def data(self, data: FactoryResetResult): + def data(self, data: Optional[FactoryResetResult]): """Sets the data of this SignalResponseFactoryReset. @@ -69,7 +69,7 @@ def data(self, data: FactoryResetResult): self._data = data @property - def error(self) -> ProductError: + def error(self) -> Optional[ProductError]: """Gets the error of this SignalResponseFactoryReset. # noqa: E501 @@ -78,7 +78,7 @@ def error(self) -> ProductError: return self._error @error.setter - def error(self, error: ProductError): + def error(self, error: Optional[ProductError]): """Sets the error of this SignalResponseFactoryReset. diff --git a/fingerprint_pro_server_api_sdk/models/signal_response_frida.py b/fingerprint_pro_server_api_sdk/models/signal_response_frida.py index 4b2a541e..22586897 100644 --- a/fingerprint_pro_server_api_sdk/models/signal_response_frida.py +++ b/fingerprint_pro_server_api_sdk/models/signal_response_frida.py @@ -11,7 +11,7 @@ """ import re # noqa: F401 -from typing import Dict, List # noqa: F401 +from typing import Dict, List, Optional # noqa: F401 from fingerprint_pro_server_api_sdk.base_model import BaseModel from fingerprint_pro_server_api_sdk.models.frida_result import FridaResult from fingerprint_pro_server_api_sdk.models.product_error import ProductError @@ -50,7 +50,7 @@ def __init__(self, data=None, error=None): # noqa: E501 self.error = error @property - def data(self) -> FridaResult: + def data(self) -> Optional[FridaResult]: """Gets the data of this SignalResponseFrida. # noqa: E501 @@ -59,7 +59,7 @@ def data(self) -> FridaResult: return self._data @data.setter - def data(self, data: FridaResult): + def data(self, data: Optional[FridaResult]): """Sets the data of this SignalResponseFrida. @@ -69,7 +69,7 @@ def data(self, data: FridaResult): self._data = data @property - def error(self) -> ProductError: + def error(self) -> Optional[ProductError]: """Gets the error of this SignalResponseFrida. # noqa: E501 @@ -78,7 +78,7 @@ def error(self) -> ProductError: return self._error @error.setter - def error(self, error: ProductError): + def error(self, error: Optional[ProductError]): """Sets the error of this SignalResponseFrida. diff --git a/fingerprint_pro_server_api_sdk/models/signal_response_high_activity.py b/fingerprint_pro_server_api_sdk/models/signal_response_high_activity.py index 8845b8d9..7ab81a84 100644 --- a/fingerprint_pro_server_api_sdk/models/signal_response_high_activity.py +++ b/fingerprint_pro_server_api_sdk/models/signal_response_high_activity.py @@ -11,7 +11,7 @@ """ import re # noqa: F401 -from typing import Dict, List # noqa: F401 +from typing import Dict, List, Optional # noqa: F401 from fingerprint_pro_server_api_sdk.base_model import BaseModel from fingerprint_pro_server_api_sdk.models.high_activity_result import HighActivityResult from fingerprint_pro_server_api_sdk.models.product_error import ProductError @@ -50,7 +50,7 @@ def __init__(self, data=None, error=None): # noqa: E501 self.error = error @property - def data(self) -> HighActivityResult: + def data(self) -> Optional[HighActivityResult]: """Gets the data of this SignalResponseHighActivity. # noqa: E501 @@ -59,7 +59,7 @@ def data(self) -> HighActivityResult: return self._data @data.setter - def data(self, data: HighActivityResult): + def data(self, data: Optional[HighActivityResult]): """Sets the data of this SignalResponseHighActivity. @@ -69,7 +69,7 @@ def data(self, data: HighActivityResult): self._data = data @property - def error(self) -> ProductError: + def error(self) -> Optional[ProductError]: """Gets the error of this SignalResponseHighActivity. # noqa: E501 @@ -78,7 +78,7 @@ def error(self) -> ProductError: return self._error @error.setter - def error(self, error: ProductError): + def error(self, error: Optional[ProductError]): """Sets the error of this SignalResponseHighActivity. diff --git a/fingerprint_pro_server_api_sdk/models/signal_response_incognito.py b/fingerprint_pro_server_api_sdk/models/signal_response_incognito.py index 977854c0..4f7c1eac 100644 --- a/fingerprint_pro_server_api_sdk/models/signal_response_incognito.py +++ b/fingerprint_pro_server_api_sdk/models/signal_response_incognito.py @@ -11,7 +11,7 @@ """ import re # noqa: F401 -from typing import Dict, List # noqa: F401 +from typing import Dict, List, Optional # noqa: F401 from fingerprint_pro_server_api_sdk.base_model import BaseModel from fingerprint_pro_server_api_sdk.models.incognito_result import IncognitoResult from fingerprint_pro_server_api_sdk.models.identification_error import IdentificationError @@ -50,7 +50,7 @@ def __init__(self, data=None, error=None): # noqa: E501 self.error = error @property - def data(self) -> IncognitoResult: + def data(self) -> Optional[IncognitoResult]: """Gets the data of this SignalResponseIncognito. # noqa: E501 @@ -59,7 +59,7 @@ def data(self) -> IncognitoResult: return self._data @data.setter - def data(self, data: IncognitoResult): + def data(self, data: Optional[IncognitoResult]): """Sets the data of this SignalResponseIncognito. @@ -69,7 +69,7 @@ def data(self, data: IncognitoResult): self._data = data @property - def error(self) -> IdentificationError: + def error(self) -> Optional[IdentificationError]: """Gets the error of this SignalResponseIncognito. # noqa: E501 @@ -78,7 +78,7 @@ def error(self) -> IdentificationError: return self._error @error.setter - def error(self, error: IdentificationError): + def error(self, error: Optional[IdentificationError]): """Sets the error of this SignalResponseIncognito. diff --git a/fingerprint_pro_server_api_sdk/models/signal_response_ip_blocklist.py b/fingerprint_pro_server_api_sdk/models/signal_response_ip_blocklist.py index 53ad767e..010ed2aa 100644 --- a/fingerprint_pro_server_api_sdk/models/signal_response_ip_blocklist.py +++ b/fingerprint_pro_server_api_sdk/models/signal_response_ip_blocklist.py @@ -11,7 +11,7 @@ """ import re # noqa: F401 -from typing import Dict, List # noqa: F401 +from typing import Dict, List, Optional # noqa: F401 from fingerprint_pro_server_api_sdk.base_model import BaseModel from fingerprint_pro_server_api_sdk.models.ip_block_list_result import IpBlockListResult from fingerprint_pro_server_api_sdk.models.product_error import ProductError @@ -50,7 +50,7 @@ def __init__(self, data=None, error=None): # noqa: E501 self.error = error @property - def data(self) -> IpBlockListResult: + def data(self) -> Optional[IpBlockListResult]: """Gets the data of this SignalResponseIpBlocklist. # noqa: E501 @@ -59,7 +59,7 @@ def data(self) -> IpBlockListResult: return self._data @data.setter - def data(self, data: IpBlockListResult): + def data(self, data: Optional[IpBlockListResult]): """Sets the data of this SignalResponseIpBlocklist. @@ -69,7 +69,7 @@ def data(self, data: IpBlockListResult): self._data = data @property - def error(self) -> ProductError: + def error(self) -> Optional[ProductError]: """Gets the error of this SignalResponseIpBlocklist. # noqa: E501 @@ -78,7 +78,7 @@ def error(self) -> ProductError: return self._error @error.setter - def error(self, error: ProductError): + def error(self, error: Optional[ProductError]): """Sets the error of this SignalResponseIpBlocklist. diff --git a/fingerprint_pro_server_api_sdk/models/signal_response_ip_info.py b/fingerprint_pro_server_api_sdk/models/signal_response_ip_info.py index f9bfa7a3..ddbc282a 100644 --- a/fingerprint_pro_server_api_sdk/models/signal_response_ip_info.py +++ b/fingerprint_pro_server_api_sdk/models/signal_response_ip_info.py @@ -11,7 +11,7 @@ """ import re # noqa: F401 -from typing import Dict, List # noqa: F401 +from typing import Dict, List, Optional # noqa: F401 from fingerprint_pro_server_api_sdk.base_model import BaseModel from fingerprint_pro_server_api_sdk.models.ip_info_result import IpInfoResult from fingerprint_pro_server_api_sdk.models.product_error import ProductError @@ -50,7 +50,7 @@ def __init__(self, data=None, error=None): # noqa: E501 self.error = error @property - def data(self) -> IpInfoResult: + def data(self) -> Optional[IpInfoResult]: """Gets the data of this SignalResponseIpInfo. # noqa: E501 @@ -59,7 +59,7 @@ def data(self) -> IpInfoResult: return self._data @data.setter - def data(self, data: IpInfoResult): + def data(self, data: Optional[IpInfoResult]): """Sets the data of this SignalResponseIpInfo. @@ -69,7 +69,7 @@ def data(self, data: IpInfoResult): self._data = data @property - def error(self) -> ProductError: + def error(self) -> Optional[ProductError]: """Gets the error of this SignalResponseIpInfo. # noqa: E501 @@ -78,7 +78,7 @@ def error(self) -> ProductError: return self._error @error.setter - def error(self, error: ProductError): + def error(self, error: Optional[ProductError]): """Sets the error of this SignalResponseIpInfo. diff --git a/fingerprint_pro_server_api_sdk/models/signal_response_jailbroken.py b/fingerprint_pro_server_api_sdk/models/signal_response_jailbroken.py index 0e2f5dc1..abc2d06b 100644 --- a/fingerprint_pro_server_api_sdk/models/signal_response_jailbroken.py +++ b/fingerprint_pro_server_api_sdk/models/signal_response_jailbroken.py @@ -11,7 +11,7 @@ """ import re # noqa: F401 -from typing import Dict, List # noqa: F401 +from typing import Dict, List, Optional # noqa: F401 from fingerprint_pro_server_api_sdk.base_model import BaseModel from fingerprint_pro_server_api_sdk.models.jailbroken_result import JailbrokenResult from fingerprint_pro_server_api_sdk.models.product_error import ProductError @@ -50,7 +50,7 @@ def __init__(self, data=None, error=None): # noqa: E501 self.error = error @property - def data(self) -> JailbrokenResult: + def data(self) -> Optional[JailbrokenResult]: """Gets the data of this SignalResponseJailbroken. # noqa: E501 @@ -59,7 +59,7 @@ def data(self) -> JailbrokenResult: return self._data @data.setter - def data(self, data: JailbrokenResult): + def data(self, data: Optional[JailbrokenResult]): """Sets the data of this SignalResponseJailbroken. @@ -69,7 +69,7 @@ def data(self, data: JailbrokenResult): self._data = data @property - def error(self) -> ProductError: + def error(self) -> Optional[ProductError]: """Gets the error of this SignalResponseJailbroken. # noqa: E501 @@ -78,7 +78,7 @@ def error(self) -> ProductError: return self._error @error.setter - def error(self, error: ProductError): + def error(self, error: Optional[ProductError]): """Sets the error of this SignalResponseJailbroken. diff --git a/fingerprint_pro_server_api_sdk/models/signal_response_location_spoofing.py b/fingerprint_pro_server_api_sdk/models/signal_response_location_spoofing.py index 1de67585..4f6b2836 100644 --- a/fingerprint_pro_server_api_sdk/models/signal_response_location_spoofing.py +++ b/fingerprint_pro_server_api_sdk/models/signal_response_location_spoofing.py @@ -11,7 +11,7 @@ """ import re # noqa: F401 -from typing import Dict, List # noqa: F401 +from typing import Dict, List, Optional # noqa: F401 from fingerprint_pro_server_api_sdk.base_model import BaseModel from fingerprint_pro_server_api_sdk.models.location_spoofing_result import LocationSpoofingResult from fingerprint_pro_server_api_sdk.models.product_error import ProductError @@ -50,7 +50,7 @@ def __init__(self, data=None, error=None): # noqa: E501 self.error = error @property - def data(self) -> LocationSpoofingResult: + def data(self) -> Optional[LocationSpoofingResult]: """Gets the data of this SignalResponseLocationSpoofing. # noqa: E501 @@ -59,7 +59,7 @@ def data(self) -> LocationSpoofingResult: return self._data @data.setter - def data(self, data: LocationSpoofingResult): + def data(self, data: Optional[LocationSpoofingResult]): """Sets the data of this SignalResponseLocationSpoofing. @@ -69,7 +69,7 @@ def data(self, data: LocationSpoofingResult): self._data = data @property - def error(self) -> ProductError: + def error(self) -> Optional[ProductError]: """Gets the error of this SignalResponseLocationSpoofing. # noqa: E501 @@ -78,7 +78,7 @@ def error(self) -> ProductError: return self._error @error.setter - def error(self, error: ProductError): + def error(self, error: Optional[ProductError]): """Sets the error of this SignalResponseLocationSpoofing. diff --git a/fingerprint_pro_server_api_sdk/models/signal_response_privacy_settings.py b/fingerprint_pro_server_api_sdk/models/signal_response_privacy_settings.py index a2d52af9..13407402 100644 --- a/fingerprint_pro_server_api_sdk/models/signal_response_privacy_settings.py +++ b/fingerprint_pro_server_api_sdk/models/signal_response_privacy_settings.py @@ -11,7 +11,7 @@ """ import re # noqa: F401 -from typing import Dict, List # noqa: F401 +from typing import Dict, List, Optional # noqa: F401 from fingerprint_pro_server_api_sdk.base_model import BaseModel from fingerprint_pro_server_api_sdk.models.privacy_settings_result import PrivacySettingsResult from fingerprint_pro_server_api_sdk.models.product_error import ProductError @@ -50,7 +50,7 @@ def __init__(self, data=None, error=None): # noqa: E501 self.error = error @property - def data(self) -> PrivacySettingsResult: + def data(self) -> Optional[PrivacySettingsResult]: """Gets the data of this SignalResponsePrivacySettings. # noqa: E501 @@ -59,7 +59,7 @@ def data(self) -> PrivacySettingsResult: return self._data @data.setter - def data(self, data: PrivacySettingsResult): + def data(self, data: Optional[PrivacySettingsResult]): """Sets the data of this SignalResponsePrivacySettings. @@ -69,7 +69,7 @@ def data(self, data: PrivacySettingsResult): self._data = data @property - def error(self) -> ProductError: + def error(self) -> Optional[ProductError]: """Gets the error of this SignalResponsePrivacySettings. # noqa: E501 @@ -78,7 +78,7 @@ def error(self) -> ProductError: return self._error @error.setter - def error(self, error: ProductError): + def error(self, error: Optional[ProductError]): """Sets the error of this SignalResponsePrivacySettings. diff --git a/fingerprint_pro_server_api_sdk/models/signal_response_proxy.py b/fingerprint_pro_server_api_sdk/models/signal_response_proxy.py index 1ee6717c..90622868 100644 --- a/fingerprint_pro_server_api_sdk/models/signal_response_proxy.py +++ b/fingerprint_pro_server_api_sdk/models/signal_response_proxy.py @@ -11,7 +11,7 @@ """ import re # noqa: F401 -from typing import Dict, List # noqa: F401 +from typing import Dict, List, Optional # noqa: F401 from fingerprint_pro_server_api_sdk.base_model import BaseModel from fingerprint_pro_server_api_sdk.models.proxy_result import ProxyResult from fingerprint_pro_server_api_sdk.models.product_error import ProductError @@ -50,7 +50,7 @@ def __init__(self, data=None, error=None): # noqa: E501 self.error = error @property - def data(self) -> ProxyResult: + def data(self) -> Optional[ProxyResult]: """Gets the data of this SignalResponseProxy. # noqa: E501 @@ -59,7 +59,7 @@ def data(self) -> ProxyResult: return self._data @data.setter - def data(self, data: ProxyResult): + def data(self, data: Optional[ProxyResult]): """Sets the data of this SignalResponseProxy. @@ -69,7 +69,7 @@ def data(self, data: ProxyResult): self._data = data @property - def error(self) -> ProductError: + def error(self) -> Optional[ProductError]: """Gets the error of this SignalResponseProxy. # noqa: E501 @@ -78,7 +78,7 @@ def error(self) -> ProductError: return self._error @error.setter - def error(self, error: ProductError): + def error(self, error: Optional[ProductError]): """Sets the error of this SignalResponseProxy. diff --git a/fingerprint_pro_server_api_sdk/models/signal_response_raw_device_attributes.py b/fingerprint_pro_server_api_sdk/models/signal_response_raw_device_attributes.py index a7989bbf..35f5afcc 100644 --- a/fingerprint_pro_server_api_sdk/models/signal_response_raw_device_attributes.py +++ b/fingerprint_pro_server_api_sdk/models/signal_response_raw_device_attributes.py @@ -11,7 +11,7 @@ """ import re # noqa: F401 -from typing import Dict, List # noqa: F401 +from typing import Dict, List, Optional # noqa: F401 from fingerprint_pro_server_api_sdk.base_model import BaseModel from fingerprint_pro_server_api_sdk.models.raw_device_attributes_result import RawDeviceAttributesResult from fingerprint_pro_server_api_sdk.models.identification_error import IdentificationError @@ -50,7 +50,7 @@ def __init__(self, data=None, error=None): # noqa: E501 self.error = error @property - def data(self) -> RawDeviceAttributesResult: + def data(self) -> Optional[RawDeviceAttributesResult]: """Gets the data of this SignalResponseRawDeviceAttributes. # noqa: E501 @@ -59,7 +59,7 @@ def data(self) -> RawDeviceAttributesResult: return self._data @data.setter - def data(self, data: RawDeviceAttributesResult): + def data(self, data: Optional[RawDeviceAttributesResult]): """Sets the data of this SignalResponseRawDeviceAttributes. @@ -69,7 +69,7 @@ def data(self, data: RawDeviceAttributesResult): self._data = data @property - def error(self) -> IdentificationError: + def error(self) -> Optional[IdentificationError]: """Gets the error of this SignalResponseRawDeviceAttributes. # noqa: E501 @@ -78,7 +78,7 @@ def error(self) -> IdentificationError: return self._error @error.setter - def error(self, error: IdentificationError): + def error(self, error: Optional[IdentificationError]): """Sets the error of this SignalResponseRawDeviceAttributes. diff --git a/fingerprint_pro_server_api_sdk/models/signal_response_remote_control.py b/fingerprint_pro_server_api_sdk/models/signal_response_remote_control.py index 358a30c7..b9f0f488 100644 --- a/fingerprint_pro_server_api_sdk/models/signal_response_remote_control.py +++ b/fingerprint_pro_server_api_sdk/models/signal_response_remote_control.py @@ -11,7 +11,7 @@ """ import re # noqa: F401 -from typing import Dict, List # noqa: F401 +from typing import Dict, List, Optional # noqa: F401 from fingerprint_pro_server_api_sdk.base_model import BaseModel from fingerprint_pro_server_api_sdk.models.remote_control_result import RemoteControlResult from fingerprint_pro_server_api_sdk.models.product_error import ProductError @@ -50,7 +50,7 @@ def __init__(self, data=None, error=None): # noqa: E501 self.error = error @property - def data(self) -> RemoteControlResult: + def data(self) -> Optional[RemoteControlResult]: """Gets the data of this SignalResponseRemoteControl. # noqa: E501 @@ -59,7 +59,7 @@ def data(self) -> RemoteControlResult: return self._data @data.setter - def data(self, data: RemoteControlResult): + def data(self, data: Optional[RemoteControlResult]): """Sets the data of this SignalResponseRemoteControl. @@ -69,7 +69,7 @@ def data(self, data: RemoteControlResult): self._data = data @property - def error(self) -> ProductError: + def error(self) -> Optional[ProductError]: """Gets the error of this SignalResponseRemoteControl. # noqa: E501 @@ -78,7 +78,7 @@ def error(self) -> ProductError: return self._error @error.setter - def error(self, error: ProductError): + def error(self, error: Optional[ProductError]): """Sets the error of this SignalResponseRemoteControl. diff --git a/fingerprint_pro_server_api_sdk/models/signal_response_root_apps.py b/fingerprint_pro_server_api_sdk/models/signal_response_root_apps.py index 8a53fe23..4aa0ad85 100644 --- a/fingerprint_pro_server_api_sdk/models/signal_response_root_apps.py +++ b/fingerprint_pro_server_api_sdk/models/signal_response_root_apps.py @@ -11,7 +11,7 @@ """ import re # noqa: F401 -from typing import Dict, List # noqa: F401 +from typing import Dict, List, Optional # noqa: F401 from fingerprint_pro_server_api_sdk.base_model import BaseModel from fingerprint_pro_server_api_sdk.models.root_apps_result import RootAppsResult from fingerprint_pro_server_api_sdk.models.product_error import ProductError @@ -50,7 +50,7 @@ def __init__(self, data=None, error=None): # noqa: E501 self.error = error @property - def data(self) -> RootAppsResult: + def data(self) -> Optional[RootAppsResult]: """Gets the data of this SignalResponseRootApps. # noqa: E501 @@ -59,7 +59,7 @@ def data(self) -> RootAppsResult: return self._data @data.setter - def data(self, data: RootAppsResult): + def data(self, data: Optional[RootAppsResult]): """Sets the data of this SignalResponseRootApps. @@ -69,7 +69,7 @@ def data(self, data: RootAppsResult): self._data = data @property - def error(self) -> ProductError: + def error(self) -> Optional[ProductError]: """Gets the error of this SignalResponseRootApps. # noqa: E501 @@ -78,7 +78,7 @@ def error(self) -> ProductError: return self._error @error.setter - def error(self, error: ProductError): + def error(self, error: Optional[ProductError]): """Sets the error of this SignalResponseRootApps. diff --git a/fingerprint_pro_server_api_sdk/models/signal_response_suspect_score.py b/fingerprint_pro_server_api_sdk/models/signal_response_suspect_score.py index 95f032e4..78080830 100644 --- a/fingerprint_pro_server_api_sdk/models/signal_response_suspect_score.py +++ b/fingerprint_pro_server_api_sdk/models/signal_response_suspect_score.py @@ -11,7 +11,7 @@ """ import re # noqa: F401 -from typing import Dict, List # noqa: F401 +from typing import Dict, List, Optional # noqa: F401 from fingerprint_pro_server_api_sdk.base_model import BaseModel from fingerprint_pro_server_api_sdk.models.suspect_score_result import SuspectScoreResult from fingerprint_pro_server_api_sdk.models.product_error import ProductError @@ -50,7 +50,7 @@ def __init__(self, data=None, error=None): # noqa: E501 self.error = error @property - def data(self) -> SuspectScoreResult: + def data(self) -> Optional[SuspectScoreResult]: """Gets the data of this SignalResponseSuspectScore. # noqa: E501 @@ -59,7 +59,7 @@ def data(self) -> SuspectScoreResult: return self._data @data.setter - def data(self, data: SuspectScoreResult): + def data(self, data: Optional[SuspectScoreResult]): """Sets the data of this SignalResponseSuspectScore. @@ -69,7 +69,7 @@ def data(self, data: SuspectScoreResult): self._data = data @property - def error(self) -> ProductError: + def error(self) -> Optional[ProductError]: """Gets the error of this SignalResponseSuspectScore. # noqa: E501 @@ -78,7 +78,7 @@ def error(self) -> ProductError: return self._error @error.setter - def error(self, error: ProductError): + def error(self, error: Optional[ProductError]): """Sets the error of this SignalResponseSuspectScore. diff --git a/fingerprint_pro_server_api_sdk/models/signal_response_tampering.py b/fingerprint_pro_server_api_sdk/models/signal_response_tampering.py index 9b402138..1eaef0e9 100644 --- a/fingerprint_pro_server_api_sdk/models/signal_response_tampering.py +++ b/fingerprint_pro_server_api_sdk/models/signal_response_tampering.py @@ -11,7 +11,7 @@ """ import re # noqa: F401 -from typing import Dict, List # noqa: F401 +from typing import Dict, List, Optional # noqa: F401 from fingerprint_pro_server_api_sdk.base_model import BaseModel from fingerprint_pro_server_api_sdk.models.tampering_result import TamperingResult from fingerprint_pro_server_api_sdk.models.identification_error import IdentificationError @@ -50,7 +50,7 @@ def __init__(self, data=None, error=None): # noqa: E501 self.error = error @property - def data(self) -> TamperingResult: + def data(self) -> Optional[TamperingResult]: """Gets the data of this SignalResponseTampering. # noqa: E501 @@ -59,7 +59,7 @@ def data(self) -> TamperingResult: return self._data @data.setter - def data(self, data: TamperingResult): + def data(self, data: Optional[TamperingResult]): """Sets the data of this SignalResponseTampering. @@ -69,7 +69,7 @@ def data(self, data: TamperingResult): self._data = data @property - def error(self) -> IdentificationError: + def error(self) -> Optional[IdentificationError]: """Gets the error of this SignalResponseTampering. # noqa: E501 @@ -78,7 +78,7 @@ def error(self) -> IdentificationError: return self._error @error.setter - def error(self, error: IdentificationError): + def error(self, error: Optional[IdentificationError]): """Sets the error of this SignalResponseTampering. diff --git a/fingerprint_pro_server_api_sdk/models/signal_response_tor.py b/fingerprint_pro_server_api_sdk/models/signal_response_tor.py index 1897e759..881df788 100644 --- a/fingerprint_pro_server_api_sdk/models/signal_response_tor.py +++ b/fingerprint_pro_server_api_sdk/models/signal_response_tor.py @@ -11,7 +11,7 @@ """ import re # noqa: F401 -from typing import Dict, List # noqa: F401 +from typing import Dict, List, Optional # noqa: F401 from fingerprint_pro_server_api_sdk.base_model import BaseModel from fingerprint_pro_server_api_sdk.models.tor_result import TorResult from fingerprint_pro_server_api_sdk.models.product_error import ProductError @@ -50,7 +50,7 @@ def __init__(self, data=None, error=None): # noqa: E501 self.error = error @property - def data(self) -> TorResult: + def data(self) -> Optional[TorResult]: """Gets the data of this SignalResponseTor. # noqa: E501 @@ -59,7 +59,7 @@ def data(self) -> TorResult: return self._data @data.setter - def data(self, data: TorResult): + def data(self, data: Optional[TorResult]): """Sets the data of this SignalResponseTor. @@ -69,7 +69,7 @@ def data(self, data: TorResult): self._data = data @property - def error(self) -> ProductError: + def error(self) -> Optional[ProductError]: """Gets the error of this SignalResponseTor. # noqa: E501 @@ -78,7 +78,7 @@ def error(self) -> ProductError: return self._error @error.setter - def error(self, error: ProductError): + def error(self, error: Optional[ProductError]): """Sets the error of this SignalResponseTor. diff --git a/fingerprint_pro_server_api_sdk/models/signal_response_velocity.py b/fingerprint_pro_server_api_sdk/models/signal_response_velocity.py index c3db0b3f..e1d45810 100644 --- a/fingerprint_pro_server_api_sdk/models/signal_response_velocity.py +++ b/fingerprint_pro_server_api_sdk/models/signal_response_velocity.py @@ -11,7 +11,7 @@ """ import re # noqa: F401 -from typing import Dict, List # noqa: F401 +from typing import Dict, List, Optional # noqa: F401 from fingerprint_pro_server_api_sdk.base_model import BaseModel from fingerprint_pro_server_api_sdk.models.velocity_result import VelocityResult from fingerprint_pro_server_api_sdk.models.product_error import ProductError @@ -50,7 +50,7 @@ def __init__(self, data=None, error=None): # noqa: E501 self.error = error @property - def data(self) -> VelocityResult: + def data(self) -> Optional[VelocityResult]: """Gets the data of this SignalResponseVelocity. # noqa: E501 @@ -59,7 +59,7 @@ def data(self) -> VelocityResult: return self._data @data.setter - def data(self, data: VelocityResult): + def data(self, data: Optional[VelocityResult]): """Sets the data of this SignalResponseVelocity. @@ -69,7 +69,7 @@ def data(self, data: VelocityResult): self._data = data @property - def error(self) -> ProductError: + def error(self) -> Optional[ProductError]: """Gets the error of this SignalResponseVelocity. # noqa: E501 @@ -78,7 +78,7 @@ def error(self) -> ProductError: return self._error @error.setter - def error(self, error: ProductError): + def error(self, error: Optional[ProductError]): """Sets the error of this SignalResponseVelocity. diff --git a/fingerprint_pro_server_api_sdk/models/signal_response_virtual_machine.py b/fingerprint_pro_server_api_sdk/models/signal_response_virtual_machine.py index bfc718eb..5f5598b0 100644 --- a/fingerprint_pro_server_api_sdk/models/signal_response_virtual_machine.py +++ b/fingerprint_pro_server_api_sdk/models/signal_response_virtual_machine.py @@ -11,7 +11,7 @@ """ import re # noqa: F401 -from typing import Dict, List # noqa: F401 +from typing import Dict, List, Optional # noqa: F401 from fingerprint_pro_server_api_sdk.base_model import BaseModel from fingerprint_pro_server_api_sdk.models.virtual_machine_result import VirtualMachineResult from fingerprint_pro_server_api_sdk.models.product_error import ProductError @@ -50,7 +50,7 @@ def __init__(self, data=None, error=None): # noqa: E501 self.error = error @property - def data(self) -> VirtualMachineResult: + def data(self) -> Optional[VirtualMachineResult]: """Gets the data of this SignalResponseVirtualMachine. # noqa: E501 @@ -59,7 +59,7 @@ def data(self) -> VirtualMachineResult: return self._data @data.setter - def data(self, data: VirtualMachineResult): + def data(self, data: Optional[VirtualMachineResult]): """Sets the data of this SignalResponseVirtualMachine. @@ -69,7 +69,7 @@ def data(self, data: VirtualMachineResult): self._data = data @property - def error(self) -> ProductError: + def error(self) -> Optional[ProductError]: """Gets the error of this SignalResponseVirtualMachine. # noqa: E501 @@ -78,7 +78,7 @@ def error(self) -> ProductError: return self._error @error.setter - def error(self, error: ProductError): + def error(self, error: Optional[ProductError]): """Sets the error of this SignalResponseVirtualMachine. diff --git a/fingerprint_pro_server_api_sdk/models/signal_response_vpn.py b/fingerprint_pro_server_api_sdk/models/signal_response_vpn.py index 2bb19a91..22e3d068 100644 --- a/fingerprint_pro_server_api_sdk/models/signal_response_vpn.py +++ b/fingerprint_pro_server_api_sdk/models/signal_response_vpn.py @@ -11,7 +11,7 @@ """ import re # noqa: F401 -from typing import Dict, List # noqa: F401 +from typing import Dict, List, Optional # noqa: F401 from fingerprint_pro_server_api_sdk.base_model import BaseModel from fingerprint_pro_server_api_sdk.models.vpn_result import VpnResult from fingerprint_pro_server_api_sdk.models.product_error import ProductError @@ -50,7 +50,7 @@ def __init__(self, data=None, error=None): # noqa: E501 self.error = error @property - def data(self) -> VpnResult: + def data(self) -> Optional[VpnResult]: """Gets the data of this SignalResponseVpn. # noqa: E501 @@ -59,7 +59,7 @@ def data(self) -> VpnResult: return self._data @data.setter - def data(self, data: VpnResult): + def data(self, data: Optional[VpnResult]): """Sets the data of this SignalResponseVpn. @@ -69,7 +69,7 @@ def data(self, data: VpnResult): self._data = data @property - def error(self) -> ProductError: + def error(self) -> Optional[ProductError]: """Gets the error of this SignalResponseVpn. # noqa: E501 @@ -78,7 +78,7 @@ def error(self) -> ProductError: return self._error @error.setter - def error(self, error: ProductError): + def error(self, error: Optional[ProductError]): """Sets the error of this SignalResponseVpn. diff --git a/fingerprint_pro_server_api_sdk/models/subdivision.py b/fingerprint_pro_server_api_sdk/models/subdivision.py index 03e4b5f7..199ef234 100644 --- a/fingerprint_pro_server_api_sdk/models/subdivision.py +++ b/fingerprint_pro_server_api_sdk/models/subdivision.py @@ -11,7 +11,7 @@ """ import re # noqa: F401 -from typing import Dict, List # noqa: F401 +from typing import Dict, List, Optional # noqa: F401 from fingerprint_pro_server_api_sdk.base_model import BaseModel @@ -48,7 +48,7 @@ def __init__(self, iso_code=None, name=None): # noqa: E501 self.name = name @property - def iso_code(self) -> str: + def iso_code(self) -> Optional[str]: """Gets the iso_code of this Subdivision. # noqa: E501 @@ -57,7 +57,7 @@ def iso_code(self) -> str: return self._iso_code @iso_code.setter - def iso_code(self, iso_code: str): + def iso_code(self, iso_code: Optional[str]): """Sets the iso_code of this Subdivision. @@ -67,7 +67,7 @@ def iso_code(self, iso_code: str): self._iso_code = iso_code @property - def name(self) -> str: + def name(self) -> Optional[str]: """Gets the name of this Subdivision. # noqa: E501 @@ -76,7 +76,7 @@ def name(self) -> str: return self._name @name.setter - def name(self, name: str): + def name(self, name: Optional[str]): """Sets the name of this Subdivision. diff --git a/fingerprint_pro_server_api_sdk/models/suspect_score_result.py b/fingerprint_pro_server_api_sdk/models/suspect_score_result.py index 84e46360..72a3e056 100644 --- a/fingerprint_pro_server_api_sdk/models/suspect_score_result.py +++ b/fingerprint_pro_server_api_sdk/models/suspect_score_result.py @@ -11,7 +11,7 @@ """ import re # noqa: F401 -from typing import Dict, List # noqa: F401 +from typing import Dict, List, Optional # noqa: F401 from fingerprint_pro_server_api_sdk.base_model import BaseModel diff --git a/fingerprint_pro_server_api_sdk/models/tampering_result.py b/fingerprint_pro_server_api_sdk/models/tampering_result.py index 80f8fbef..2d817ec6 100644 --- a/fingerprint_pro_server_api_sdk/models/tampering_result.py +++ b/fingerprint_pro_server_api_sdk/models/tampering_result.py @@ -11,7 +11,7 @@ """ import re # noqa: F401 -from typing import Dict, List # noqa: F401 +from typing import Dict, List, Optional # noqa: F401 from fingerprint_pro_server_api_sdk.base_model import BaseModel diff --git a/fingerprint_pro_server_api_sdk/models/tor_result.py b/fingerprint_pro_server_api_sdk/models/tor_result.py index 91c4f956..03a3eb18 100644 --- a/fingerprint_pro_server_api_sdk/models/tor_result.py +++ b/fingerprint_pro_server_api_sdk/models/tor_result.py @@ -11,7 +11,7 @@ """ import re # noqa: F401 -from typing import Dict, List # noqa: F401 +from typing import Dict, List, Optional # noqa: F401 from fingerprint_pro_server_api_sdk.base_model import BaseModel diff --git a/fingerprint_pro_server_api_sdk/models/velocity_interval_result.py b/fingerprint_pro_server_api_sdk/models/velocity_interval_result.py index 58a7d9b0..c61afb19 100644 --- a/fingerprint_pro_server_api_sdk/models/velocity_interval_result.py +++ b/fingerprint_pro_server_api_sdk/models/velocity_interval_result.py @@ -11,7 +11,7 @@ """ import re # noqa: F401 -from typing import Dict, List # noqa: F401 +from typing import Dict, List, Optional # noqa: F401 from fingerprint_pro_server_api_sdk.base_model import BaseModel @@ -96,7 +96,7 @@ def _1h(self, _1h: int): self.__1h = _1h @property - def _24h(self) -> int: + def _24h(self) -> Optional[int]: """Gets the _24h of this VelocityIntervalResult. # noqa: E501 The `24h` interval of `distinctIp`, `distinctLinkedId`, and `distinctCountry` will be omitted if the number of `events`` for the visitor ID in the last 24 hours (`events.intervals.['24h']`) is higher than 20.000. # noqa: E501 @@ -106,7 +106,7 @@ def _24h(self) -> int: return self.__24h @_24h.setter - def _24h(self, _24h: int): + def _24h(self, _24h: Optional[int]): """Sets the _24h of this VelocityIntervalResult. The `24h` interval of `distinctIp`, `distinctLinkedId`, and `distinctCountry` will be omitted if the number of `events`` for the visitor ID in the last 24 hours (`events.intervals.['24h']`) is higher than 20.000. # noqa: E501 diff --git a/fingerprint_pro_server_api_sdk/models/velocity_intervals.py b/fingerprint_pro_server_api_sdk/models/velocity_intervals.py index d1f84213..6d496ed1 100644 --- a/fingerprint_pro_server_api_sdk/models/velocity_intervals.py +++ b/fingerprint_pro_server_api_sdk/models/velocity_intervals.py @@ -11,7 +11,7 @@ """ import re # noqa: F401 -from typing import Dict, List # noqa: F401 +from typing import Dict, List, Optional # noqa: F401 from fingerprint_pro_server_api_sdk.base_model import BaseModel from fingerprint_pro_server_api_sdk.models.velocity_interval_result import VelocityIntervalResult @@ -44,7 +44,7 @@ def __init__(self, intervals=None): # noqa: E501 self.intervals = intervals @property - def intervals(self) -> VelocityIntervalResult: + def intervals(self) -> Optional[VelocityIntervalResult]: """Gets the intervals of this VelocityIntervals. # noqa: E501 @@ -53,7 +53,7 @@ def intervals(self) -> VelocityIntervalResult: return self._intervals @intervals.setter - def intervals(self, intervals: VelocityIntervalResult): + def intervals(self, intervals: Optional[VelocityIntervalResult]): """Sets the intervals of this VelocityIntervals. diff --git a/fingerprint_pro_server_api_sdk/models/velocity_result.py b/fingerprint_pro_server_api_sdk/models/velocity_result.py index 428f6641..89f81afd 100644 --- a/fingerprint_pro_server_api_sdk/models/velocity_result.py +++ b/fingerprint_pro_server_api_sdk/models/velocity_result.py @@ -11,7 +11,7 @@ """ import re # noqa: F401 -from typing import Dict, List # noqa: F401 +from typing import Dict, List, Optional # noqa: F401 from fingerprint_pro_server_api_sdk.base_model import BaseModel from fingerprint_pro_server_api_sdk.models.velocity_intervals import VelocityIntervals from fingerprint_pro_server_api_sdk.models.velocity_intervals import VelocityIntervals diff --git a/fingerprint_pro_server_api_sdk/models/virtual_machine_result.py b/fingerprint_pro_server_api_sdk/models/virtual_machine_result.py index 230e7877..4bebd481 100644 --- a/fingerprint_pro_server_api_sdk/models/virtual_machine_result.py +++ b/fingerprint_pro_server_api_sdk/models/virtual_machine_result.py @@ -11,7 +11,7 @@ """ import re # noqa: F401 -from typing import Dict, List # noqa: F401 +from typing import Dict, List, Optional # noqa: F401 from fingerprint_pro_server_api_sdk.base_model import BaseModel diff --git a/fingerprint_pro_server_api_sdk/models/visit.py b/fingerprint_pro_server_api_sdk/models/visit.py index 3f63b78b..e8cd980e 100644 --- a/fingerprint_pro_server_api_sdk/models/visit.py +++ b/fingerprint_pro_server_api_sdk/models/visit.py @@ -11,7 +11,7 @@ """ import re # noqa: F401 -from typing import Dict, List # noqa: F401 +from typing import Dict, List, Optional # noqa: F401 from fingerprint_pro_server_api_sdk.base_model import BaseModel from fingerprint_pro_server_api_sdk.models.browser_details import BrowserDetails from fingerprint_pro_server_api_sdk.models.deprecated_ip_location import DeprecatedIPLocation @@ -192,7 +192,7 @@ def ip(self, ip: str): self._ip = ip @property - def ip_location(self) -> DeprecatedIPLocation: + def ip_location(self) -> Optional[DeprecatedIPLocation]: """Gets the ip_location of this Visit. # noqa: E501 @@ -201,7 +201,7 @@ def ip_location(self) -> DeprecatedIPLocation: return self._ip_location @ip_location.setter - def ip_location(self, ip_location: DeprecatedIPLocation): + def ip_location(self, ip_location: Optional[DeprecatedIPLocation]): """Sets the ip_location of this Visit. @@ -280,7 +280,7 @@ def url(self, url: str): self._url = url @property - def tag(self) -> Dict[str, object]: + def tag(self) -> Optional[Dict[str, object]]: """Gets the tag of this Visit. # noqa: E501 A customer-provided value or an object that was sent with identification request. # noqa: E501 @@ -290,7 +290,7 @@ def tag(self) -> Dict[str, object]: return self._tag @tag.setter - def tag(self, tag: Dict[str, object]): + def tag(self, tag: Optional[Dict[str, object]]): """Sets the tag of this Visit. A customer-provided value or an object that was sent with identification request. # noqa: E501 @@ -301,7 +301,7 @@ def tag(self, tag: Dict[str, object]): self._tag = tag @property - def linked_id(self) -> str: + def linked_id(self) -> Optional[str]: """Gets the linked_id of this Visit. # noqa: E501 A customer-provided id that was sent with identification request. # noqa: E501 @@ -311,7 +311,7 @@ def linked_id(self) -> str: return self._linked_id @linked_id.setter - def linked_id(self, linked_id: str): + def linked_id(self, linked_id: Optional[str]): """Sets the linked_id of this Visit. A customer-provided id that was sent with identification request. # noqa: E501 @@ -322,7 +322,7 @@ def linked_id(self, linked_id: str): self._linked_id = linked_id @property - def confidence(self) -> Confidence: + def confidence(self) -> Optional[Confidence]: """Gets the confidence of this Visit. # noqa: E501 @@ -331,7 +331,7 @@ def confidence(self) -> Confidence: return self._confidence @confidence.setter - def confidence(self, confidence: Confidence): + def confidence(self, confidence: Optional[Confidence]): """Sets the confidence of this Visit. diff --git a/fingerprint_pro_server_api_sdk/models/vpn_result.py b/fingerprint_pro_server_api_sdk/models/vpn_result.py index bb9c9966..74d6571f 100644 --- a/fingerprint_pro_server_api_sdk/models/vpn_result.py +++ b/fingerprint_pro_server_api_sdk/models/vpn_result.py @@ -11,7 +11,7 @@ """ import re # noqa: F401 -from typing import Dict, List # noqa: F401 +from typing import Dict, List, Optional # noqa: F401 from fingerprint_pro_server_api_sdk.base_model import BaseModel from fingerprint_pro_server_api_sdk.models.vpn_result_methods import VpnResultMethods @@ -102,7 +102,7 @@ def origin_timezone(self, origin_timezone: str): self._origin_timezone = origin_timezone @property - def origin_country(self) -> str: + def origin_country(self) -> Optional[str]: """Gets the origin_country of this VpnResult. # noqa: E501 Country of the request (only for Android SDK version >= 2.4.0, ISO 3166 format or unknown). # noqa: E501 @@ -112,7 +112,7 @@ def origin_country(self) -> str: return self._origin_country @origin_country.setter - def origin_country(self, origin_country: str): + def origin_country(self, origin_country: Optional[str]): """Sets the origin_country of this VpnResult. Country of the request (only for Android SDK version >= 2.4.0, ISO 3166 format or unknown). # noqa: E501 diff --git a/fingerprint_pro_server_api_sdk/models/vpn_result_methods.py b/fingerprint_pro_server_api_sdk/models/vpn_result_methods.py index 50cffc40..62160d42 100644 --- a/fingerprint_pro_server_api_sdk/models/vpn_result_methods.py +++ b/fingerprint_pro_server_api_sdk/models/vpn_result_methods.py @@ -11,7 +11,7 @@ """ import re # noqa: F401 -from typing import Dict, List # noqa: F401 +from typing import Dict, List, Optional # noqa: F401 from fingerprint_pro_server_api_sdk.base_model import BaseModel diff --git a/fingerprint_pro_server_api_sdk/models/webhook_visit.py b/fingerprint_pro_server_api_sdk/models/webhook_visit.py index 2b7be297..2235a5b7 100644 --- a/fingerprint_pro_server_api_sdk/models/webhook_visit.py +++ b/fingerprint_pro_server_api_sdk/models/webhook_visit.py @@ -11,7 +11,7 @@ """ import re # noqa: F401 -from typing import Dict, List # noqa: F401 +from typing import Dict, List, Optional # noqa: F401 from fingerprint_pro_server_api_sdk.base_model import BaseModel from fingerprint_pro_server_api_sdk.models.botd_detection_result import BotdDetectionResult from fingerprint_pro_server_api_sdk.models.ip_info_result import IpInfoResult @@ -271,7 +271,7 @@ def visitor_id(self, visitor_id: str): self._visitor_id = visitor_id @property - def client_referrer(self) -> str: + def client_referrer(self) -> Optional[str]: """Gets the client_referrer of this WebhookVisit. # noqa: E501 @@ -280,7 +280,7 @@ def client_referrer(self) -> str: return self._client_referrer @client_referrer.setter - def client_referrer(self, client_referrer: str): + def client_referrer(self, client_referrer: Optional[str]): """Sets the client_referrer of this WebhookVisit. @@ -290,7 +290,7 @@ def client_referrer(self, client_referrer: str): self._client_referrer = client_referrer @property - def user_agent(self) -> str: + def user_agent(self) -> Optional[str]: """Gets the user_agent of this WebhookVisit. # noqa: E501 @@ -299,7 +299,7 @@ def user_agent(self) -> str: return self._user_agent @user_agent.setter - def user_agent(self, user_agent: str): + def user_agent(self, user_agent: Optional[str]): """Sets the user_agent of this WebhookVisit. @@ -309,7 +309,7 @@ def user_agent(self, user_agent: str): self._user_agent = user_agent @property - def bot(self) -> BotdDetectionResult: + def bot(self) -> Optional[BotdDetectionResult]: """Gets the bot of this WebhookVisit. # noqa: E501 @@ -318,7 +318,7 @@ def bot(self) -> BotdDetectionResult: return self._bot @bot.setter - def bot(self, bot: BotdDetectionResult): + def bot(self, bot: Optional[BotdDetectionResult]): """Sets the bot of this WebhookVisit. @@ -328,7 +328,7 @@ def bot(self, bot: BotdDetectionResult): self._bot = bot @property - def ip_info(self) -> IpInfoResult: + def ip_info(self) -> Optional[IpInfoResult]: """Gets the ip_info of this WebhookVisit. # noqa: E501 @@ -337,7 +337,7 @@ def ip_info(self) -> IpInfoResult: return self._ip_info @ip_info.setter - def ip_info(self, ip_info: IpInfoResult): + def ip_info(self, ip_info: Optional[IpInfoResult]): """Sets the ip_info of this WebhookVisit. @@ -370,7 +370,7 @@ def incognito(self, incognito: bool): self._incognito = incognito @property - def root_apps(self) -> RootAppsResult: + def root_apps(self) -> Optional[RootAppsResult]: """Gets the root_apps of this WebhookVisit. # noqa: E501 @@ -379,7 +379,7 @@ def root_apps(self) -> RootAppsResult: return self._root_apps @root_apps.setter - def root_apps(self, root_apps: RootAppsResult): + def root_apps(self, root_apps: Optional[RootAppsResult]): """Sets the root_apps of this WebhookVisit. @@ -389,7 +389,7 @@ def root_apps(self, root_apps: RootAppsResult): self._root_apps = root_apps @property - def emulator(self) -> EmulatorResult: + def emulator(self) -> Optional[EmulatorResult]: """Gets the emulator of this WebhookVisit. # noqa: E501 @@ -398,7 +398,7 @@ def emulator(self) -> EmulatorResult: return self._emulator @emulator.setter - def emulator(self, emulator: EmulatorResult): + def emulator(self, emulator: Optional[EmulatorResult]): """Sets the emulator of this WebhookVisit. @@ -408,7 +408,7 @@ def emulator(self, emulator: EmulatorResult): self._emulator = emulator @property - def cloned_app(self) -> ClonedAppResult: + def cloned_app(self) -> Optional[ClonedAppResult]: """Gets the cloned_app of this WebhookVisit. # noqa: E501 @@ -417,7 +417,7 @@ def cloned_app(self) -> ClonedAppResult: return self._cloned_app @cloned_app.setter - def cloned_app(self, cloned_app: ClonedAppResult): + def cloned_app(self, cloned_app: Optional[ClonedAppResult]): """Sets the cloned_app of this WebhookVisit. @@ -427,7 +427,7 @@ def cloned_app(self, cloned_app: ClonedAppResult): self._cloned_app = cloned_app @property - def factory_reset(self) -> FactoryResetResult: + def factory_reset(self) -> Optional[FactoryResetResult]: """Gets the factory_reset of this WebhookVisit. # noqa: E501 @@ -436,7 +436,7 @@ def factory_reset(self) -> FactoryResetResult: return self._factory_reset @factory_reset.setter - def factory_reset(self, factory_reset: FactoryResetResult): + def factory_reset(self, factory_reset: Optional[FactoryResetResult]): """Sets the factory_reset of this WebhookVisit. @@ -446,7 +446,7 @@ def factory_reset(self, factory_reset: FactoryResetResult): self._factory_reset = factory_reset @property - def jailbroken(self) -> JailbrokenResult: + def jailbroken(self) -> Optional[JailbrokenResult]: """Gets the jailbroken of this WebhookVisit. # noqa: E501 @@ -455,7 +455,7 @@ def jailbroken(self) -> JailbrokenResult: return self._jailbroken @jailbroken.setter - def jailbroken(self, jailbroken: JailbrokenResult): + def jailbroken(self, jailbroken: Optional[JailbrokenResult]): """Sets the jailbroken of this WebhookVisit. @@ -465,7 +465,7 @@ def jailbroken(self, jailbroken: JailbrokenResult): self._jailbroken = jailbroken @property - def frida(self) -> FridaResult: + def frida(self) -> Optional[FridaResult]: """Gets the frida of this WebhookVisit. # noqa: E501 @@ -474,7 +474,7 @@ def frida(self) -> FridaResult: return self._frida @frida.setter - def frida(self, frida: FridaResult): + def frida(self, frida: Optional[FridaResult]): """Sets the frida of this WebhookVisit. @@ -484,7 +484,7 @@ def frida(self, frida: FridaResult): self._frida = frida @property - def ip_blocklist(self) -> IpBlockListResult: + def ip_blocklist(self) -> Optional[IpBlockListResult]: """Gets the ip_blocklist of this WebhookVisit. # noqa: E501 @@ -493,7 +493,7 @@ def ip_blocklist(self) -> IpBlockListResult: return self._ip_blocklist @ip_blocklist.setter - def ip_blocklist(self, ip_blocklist: IpBlockListResult): + def ip_blocklist(self, ip_blocklist: Optional[IpBlockListResult]): """Sets the ip_blocklist of this WebhookVisit. @@ -503,7 +503,7 @@ def ip_blocklist(self, ip_blocklist: IpBlockListResult): self._ip_blocklist = ip_blocklist @property - def tor(self) -> TorResult: + def tor(self) -> Optional[TorResult]: """Gets the tor of this WebhookVisit. # noqa: E501 @@ -512,7 +512,7 @@ def tor(self) -> TorResult: return self._tor @tor.setter - def tor(self, tor: TorResult): + def tor(self, tor: Optional[TorResult]): """Sets the tor of this WebhookVisit. @@ -522,7 +522,7 @@ def tor(self, tor: TorResult): self._tor = tor @property - def privacy_settings(self) -> PrivacySettingsResult: + def privacy_settings(self) -> Optional[PrivacySettingsResult]: """Gets the privacy_settings of this WebhookVisit. # noqa: E501 @@ -531,7 +531,7 @@ def privacy_settings(self) -> PrivacySettingsResult: return self._privacy_settings @privacy_settings.setter - def privacy_settings(self, privacy_settings: PrivacySettingsResult): + def privacy_settings(self, privacy_settings: Optional[PrivacySettingsResult]): """Sets the privacy_settings of this WebhookVisit. @@ -541,7 +541,7 @@ def privacy_settings(self, privacy_settings: PrivacySettingsResult): self._privacy_settings = privacy_settings @property - def virtual_machine(self) -> VirtualMachineResult: + def virtual_machine(self) -> Optional[VirtualMachineResult]: """Gets the virtual_machine of this WebhookVisit. # noqa: E501 @@ -550,7 +550,7 @@ def virtual_machine(self) -> VirtualMachineResult: return self._virtual_machine @virtual_machine.setter - def virtual_machine(self, virtual_machine: VirtualMachineResult): + def virtual_machine(self, virtual_machine: Optional[VirtualMachineResult]): """Sets the virtual_machine of this WebhookVisit. @@ -560,7 +560,7 @@ def virtual_machine(self, virtual_machine: VirtualMachineResult): self._virtual_machine = virtual_machine @property - def vpn(self) -> VpnResult: + def vpn(self) -> Optional[VpnResult]: """Gets the vpn of this WebhookVisit. # noqa: E501 @@ -569,7 +569,7 @@ def vpn(self) -> VpnResult: return self._vpn @vpn.setter - def vpn(self, vpn: VpnResult): + def vpn(self, vpn: Optional[VpnResult]): """Sets the vpn of this WebhookVisit. @@ -579,7 +579,7 @@ def vpn(self, vpn: VpnResult): self._vpn = vpn @property - def proxy(self) -> ProxyResult: + def proxy(self) -> Optional[ProxyResult]: """Gets the proxy of this WebhookVisit. # noqa: E501 @@ -588,7 +588,7 @@ def proxy(self) -> ProxyResult: return self._proxy @proxy.setter - def proxy(self, proxy: ProxyResult): + def proxy(self, proxy: Optional[ProxyResult]): """Sets the proxy of this WebhookVisit. @@ -598,7 +598,7 @@ def proxy(self, proxy: ProxyResult): self._proxy = proxy @property - def tampering(self) -> TamperingResult: + def tampering(self) -> Optional[TamperingResult]: """Gets the tampering of this WebhookVisit. # noqa: E501 @@ -607,7 +607,7 @@ def tampering(self) -> TamperingResult: return self._tampering @tampering.setter - def tampering(self, tampering: TamperingResult): + def tampering(self, tampering: Optional[TamperingResult]): """Sets the tampering of this WebhookVisit. @@ -617,7 +617,7 @@ def tampering(self, tampering: TamperingResult): self._tampering = tampering @property - def raw_device_attributes(self) -> RawDeviceAttributesResult: + def raw_device_attributes(self) -> Optional[RawDeviceAttributesResult]: """Gets the raw_device_attributes of this WebhookVisit. # noqa: E501 @@ -626,7 +626,7 @@ def raw_device_attributes(self) -> RawDeviceAttributesResult: return self._raw_device_attributes @raw_device_attributes.setter - def raw_device_attributes(self, raw_device_attributes: RawDeviceAttributesResult): + def raw_device_attributes(self, raw_device_attributes: Optional[RawDeviceAttributesResult]): """Sets the raw_device_attributes of this WebhookVisit. @@ -636,7 +636,7 @@ def raw_device_attributes(self, raw_device_attributes: RawDeviceAttributesResult self._raw_device_attributes = raw_device_attributes @property - def high_activity(self) -> HighActivityResult: + def high_activity(self) -> Optional[HighActivityResult]: """Gets the high_activity of this WebhookVisit. # noqa: E501 @@ -645,7 +645,7 @@ def high_activity(self) -> HighActivityResult: return self._high_activity @high_activity.setter - def high_activity(self, high_activity: HighActivityResult): + def high_activity(self, high_activity: Optional[HighActivityResult]): """Sets the high_activity of this WebhookVisit. @@ -655,7 +655,7 @@ def high_activity(self, high_activity: HighActivityResult): self._high_activity = high_activity @property - def location_spoofing(self) -> LocationSpoofingResult: + def location_spoofing(self) -> Optional[LocationSpoofingResult]: """Gets the location_spoofing of this WebhookVisit. # noqa: E501 @@ -664,7 +664,7 @@ def location_spoofing(self) -> LocationSpoofingResult: return self._location_spoofing @location_spoofing.setter - def location_spoofing(self, location_spoofing: LocationSpoofingResult): + def location_spoofing(self, location_spoofing: Optional[LocationSpoofingResult]): """Sets the location_spoofing of this WebhookVisit. @@ -674,7 +674,7 @@ def location_spoofing(self, location_spoofing: LocationSpoofingResult): self._location_spoofing = location_spoofing @property - def suspect_score(self) -> SuspectScoreResult: + def suspect_score(self) -> Optional[SuspectScoreResult]: """Gets the suspect_score of this WebhookVisit. # noqa: E501 @@ -683,7 +683,7 @@ def suspect_score(self) -> SuspectScoreResult: return self._suspect_score @suspect_score.setter - def suspect_score(self, suspect_score: SuspectScoreResult): + def suspect_score(self, suspect_score: Optional[SuspectScoreResult]): """Sets the suspect_score of this WebhookVisit. @@ -693,7 +693,7 @@ def suspect_score(self, suspect_score: SuspectScoreResult): self._suspect_score = suspect_score @property - def remote_control(self) -> RemoteControlResult: + def remote_control(self) -> Optional[RemoteControlResult]: """Gets the remote_control of this WebhookVisit. # noqa: E501 @@ -702,7 +702,7 @@ def remote_control(self) -> RemoteControlResult: return self._remote_control @remote_control.setter - def remote_control(self, remote_control: RemoteControlResult): + def remote_control(self, remote_control: Optional[RemoteControlResult]): """Sets the remote_control of this WebhookVisit. @@ -712,7 +712,7 @@ def remote_control(self, remote_control: RemoteControlResult): self._remote_control = remote_control @property - def velocity(self) -> VelocityResult: + def velocity(self) -> Optional[VelocityResult]: """Gets the velocity of this WebhookVisit. # noqa: E501 @@ -721,7 +721,7 @@ def velocity(self) -> VelocityResult: return self._velocity @velocity.setter - def velocity(self, velocity: VelocityResult): + def velocity(self, velocity: Optional[VelocityResult]): """Sets the velocity of this WebhookVisit. @@ -731,7 +731,7 @@ def velocity(self, velocity: VelocityResult): self._velocity = velocity @property - def developer_tools(self) -> DeveloperToolsResult: + def developer_tools(self) -> Optional[DeveloperToolsResult]: """Gets the developer_tools of this WebhookVisit. # noqa: E501 @@ -740,7 +740,7 @@ def developer_tools(self) -> DeveloperToolsResult: return self._developer_tools @developer_tools.setter - def developer_tools(self, developer_tools: DeveloperToolsResult): + def developer_tools(self, developer_tools: Optional[DeveloperToolsResult]): """Sets the developer_tools of this WebhookVisit. @@ -815,7 +815,7 @@ def ip(self, ip: str): self._ip = ip @property - def ip_location(self) -> DeprecatedIPLocation: + def ip_location(self) -> Optional[DeprecatedIPLocation]: """Gets the ip_location of this WebhookVisit. # noqa: E501 @@ -824,7 +824,7 @@ def ip_location(self) -> DeprecatedIPLocation: return self._ip_location @ip_location.setter - def ip_location(self, ip_location: DeprecatedIPLocation): + def ip_location(self, ip_location: Optional[DeprecatedIPLocation]): """Sets the ip_location of this WebhookVisit. @@ -903,7 +903,7 @@ def url(self, url: str): self._url = url @property - def tag(self) -> Dict[str, object]: + def tag(self) -> Optional[Dict[str, object]]: """Gets the tag of this WebhookVisit. # noqa: E501 A customer-provided value or an object that was sent with identification request. # noqa: E501 @@ -913,7 +913,7 @@ def tag(self) -> Dict[str, object]: return self._tag @tag.setter - def tag(self, tag: Dict[str, object]): + def tag(self, tag: Optional[Dict[str, object]]): """Sets the tag of this WebhookVisit. A customer-provided value or an object that was sent with identification request. # noqa: E501 @@ -924,7 +924,7 @@ def tag(self, tag: Dict[str, object]): self._tag = tag @property - def linked_id(self) -> str: + def linked_id(self) -> Optional[str]: """Gets the linked_id of this WebhookVisit. # noqa: E501 A customer-provided id that was sent with identification request. # noqa: E501 @@ -934,7 +934,7 @@ def linked_id(self) -> str: return self._linked_id @linked_id.setter - def linked_id(self, linked_id: str): + def linked_id(self, linked_id: Optional[str]): """Sets the linked_id of this WebhookVisit. A customer-provided id that was sent with identification request. # noqa: E501 @@ -945,7 +945,7 @@ def linked_id(self, linked_id: str): self._linked_id = linked_id @property - def confidence(self) -> Confidence: + def confidence(self) -> Optional[Confidence]: """Gets the confidence of this WebhookVisit. # noqa: E501 @@ -954,7 +954,7 @@ def confidence(self) -> Confidence: return self._confidence @confidence.setter - def confidence(self, confidence: Confidence): + def confidence(self, confidence: Optional[Confidence]): """Sets the confidence of this WebhookVisit. diff --git a/fix_codegen_problems.py b/fix_codegen_problems.py index 9bd58c37..37cb705f 100644 --- a/fix_codegen_problems.py +++ b/fix_codegen_problems.py @@ -25,9 +25,13 @@ def convert_type_annotations(text): result = text replacement_pairs = [ (r'-> dict\((\w+), (\w+)\):', r'-> Dict[\1, \2]:'), + (r'-> Optional\[dict\((\w+), (\w+)\)\]:', r'-> Optional[Dict[\1, \2]]:'), (r': dict\((\w+), (\w+)\)', r': Dict[\1, \2]'), + (r': Optional\[dict\((\w+), (\w+)\)\]', r': Optional[Dict[\1, \2]]'), (r'-> list\[(\w+)\]:', r'-> List[\1]:'), - (r': list\[(\w+)\]', r': List[\1]') + (r'-> Optional\[list\[(\w+)\]\]:', r'-> Optional[List[\1]]:'), + (r': list\[(\w+)\]', r': List[\1]'), + (r': Optional\[list\[(\w+)\]\]', r': Optional[List[\1]]') ] for pattern, replacement in replacement_pairs: result = re.sub(pattern, replacement, result) diff --git a/template/model.mustache b/template/model.mustache index 4b4eeacf..75fdb700 100644 --- a/template/model.mustache +++ b/template/model.mustache @@ -3,7 +3,7 @@ {{>partial_header}} import re # noqa: F401 -from typing import Dict, List # noqa: F401 +from typing import Dict, List, Optional # noqa: F401 from {{packageName}}.base_model import BaseModel {{#models}} {{#model}} @@ -80,7 +80,7 @@ class {{classname}}(BaseModel): {{#vars}} @property - def {{name}}(self) -> {{datatype}}: + def {{name}}(self) -> {{#required}}{{datatype}}{{/required}}{{^required}}Optional[{{datatype}}]{{/required}}: """Gets the {{name}} of this {{classname}}. # noqa: E501 {{#description}} @@ -92,7 +92,7 @@ class {{classname}}(BaseModel): return self._{{name}} @{{name}}.setter - def {{name}}(self, {{name}}: {{datatype}}): + def {{name}}(self, {{name}}: {{#required}}{{datatype}}{{/required}}{{^required}}Optional[{{datatype}}]{{/required}}): """Sets the {{name}} of this {{classname}}. {{#description}}