From 1121a5c5e81d3458595d2bd7920463cce0b661ac Mon Sep 17 00:00:00 2001 From: Ilya Taratukhin Date: Mon, 29 Jul 2024 19:51:59 +0200 Subject: [PATCH] feat: use inline types instead of annotations for models --- fingerprint_pro_server_api_sdk/models/asn.py | 19 +- .../models/botd_detection_result.py | 13 +- .../models/botd_result.py | 45 ++- .../models/browser_details.py | 49 ++-- .../models/cloned_app_result.py | 7 +- .../models/common403_error_response.py | 13 +- .../models/confidence.py | 13 +- .../models/data_center.py | 13 +- .../models/deprecated_ip_location.py | 59 ++-- .../models/deprecated_ip_location_city.py | 7 +- .../models/emulator_result.py | 7 +- .../models/error_common403_response.py | 8 +- .../models/error_common429_response.py | 8 +- .../models/error_common429_response_error.py | 13 +- .../models/error_event404_response.py | 8 +- .../models/error_event404_response_error.py | 13 +- .../models/error_update_event400_response.py | 8 +- .../error_update_event400_response_error.py | 13 +- .../models/error_update_event409_response.py | 8 +- .../error_update_event409_response_error.py | 13 +- .../models/error_visitor400_response.py | 8 +- .../models/error_visitor400_response_error.py | 13 +- .../models/error_visitor404_response.py | 8 +- .../models/error_visitor404_response_error.py | 13 +- .../models/error_visits403.py | 7 +- .../models/event_response.py | 15 +- .../models/event_update_request.py | 19 +- .../models/factory_reset_result.py | 14 +- .../models/frida_result.py | 7 +- .../models/high_activity_result.py | 13 +- .../models/identification_error.py | 13 +- .../models/incognito_result.py | 7 +- .../models/ip_block_list_result.py | 14 +- .../models/ip_block_list_result_details.py | 13 +- .../models/ip_info_result.py | 15 +- .../models/ip_info_result_v4.py | 28 +- .../models/ip_info_result_v6.py | 28 +- .../models/ip_location.py | 59 ++-- .../models/ip_location_city.py | 7 +- .../models/jailbroken_result.py | 7 +- .../models/location.py | 13 +- .../models/location_spoofing_result.py | 7 +- .../models/privacy_settings_result.py | 7 +- .../models/product_error.py | 13 +- .../models/products_response.py | 162 +++++------ .../models/products_response_botd.py | 15 +- .../products_response_identification.py | 15 +- .../products_response_identification_data.py | 97 +++---- .../models/proxy_result.py | 7 +- .../models/raw_device_attributes_result.py | 1 + .../models/remote_control_result.py | 7 +- .../models/response.py | 26 +- .../models/response_visits.py | 91 +++---- .../models/root_apps_result.py | 7 +- .../models/seen_at.py | 15 +- .../models/signal_response_cloned_app.py | 15 +- .../models/signal_response_emulator.py | 15 +- .../models/signal_response_factory_reset.py | 15 +- .../models/signal_response_frida.py | 15 +- .../models/signal_response_high_activity.py | 15 +- .../models/signal_response_incognito.py | 15 +- .../models/signal_response_ip_blocklist.py | 15 +- .../models/signal_response_ip_info.py | 15 +- .../models/signal_response_jailbroken.py | 15 +- .../signal_response_location_spoofing.py | 15 +- .../signal_response_privacy_settings.py | 15 +- .../models/signal_response_proxy.py | 15 +- .../signal_response_raw_device_attributes.py | 15 +- .../models/signal_response_remote_control.py | 15 +- .../models/signal_response_root_apps.py | 15 +- .../models/signal_response_suspect_score.py | 15 +- .../models/signal_response_tampering.py | 15 +- .../models/signal_response_tor.py | 15 +- .../models/signal_response_velocity.py | 15 +- .../models/signal_response_virtual_machine.py | 15 +- .../models/signal_response_vpn.py | 15 +- .../models/subdivision.py | 13 +- .../models/suspect_score_result.py | 7 +- .../models/tampering_result.py | 13 +- .../models/too_many_requests_response.py | 10 +- .../models/tor_result.py | 7 +- .../models/velocity_interval_result.py | 19 +- .../models/velocity_intervals.py | 8 +- .../models/velocity_result.py | 29 +- .../models/virtual_machine_result.py | 7 +- .../models/visit.py | 91 +++---- .../models/vpn_result.py | 26 +- .../models/vpn_result_methods.py | 25 +- .../models/webhook_visit.py | 256 +++++++----------- fix_codegen_problems.py | 58 ++++ generate.sh | 2 + run_checks.py | 8 +- template/model.mustache | 15 +- 93 files changed, 886 insertions(+), 1151 deletions(-) create mode 100644 fix_codegen_problems.py diff --git a/fingerprint_pro_server_api_sdk/models/asn.py b/fingerprint_pro_server_api_sdk/models/asn.py index ed7d7cb4..b9009744 100644 --- a/fingerprint_pro_server_api_sdk/models/asn.py +++ b/fingerprint_pro_server_api_sdk/models/asn.py @@ -11,6 +11,7 @@ """ import re # noqa: F401 +from typing import Dict # noqa: F401 from fingerprint_pro_server_api_sdk.base_model import BaseModel @@ -50,22 +51,20 @@ def __init__(self, asn=None, network=None, name=None): # noqa: E501 self.name = name @property - def asn(self): + def asn(self) -> str: """Gets the asn of this ASN. # noqa: E501 :return: The asn of this ASN. # noqa: E501 - :rtype: str """ return self._asn @asn.setter - def asn(self, asn): + def asn(self, asn: str): """Sets the asn of this ASN. :param asn: The asn of this ASN. # noqa: E501 - :type: str """ if asn is None: raise ValueError("Invalid value for `asn`, must not be `None`") # noqa: E501 @@ -73,22 +72,20 @@ def asn(self, asn): self._asn = asn @property - def network(self): + def network(self) -> str: """Gets the network of this ASN. # noqa: E501 :return: The network of this ASN. # noqa: E501 - :rtype: str """ return self._network @network.setter - def network(self, network): + def network(self, network: str): """Sets the network of this ASN. :param network: The network of this ASN. # noqa: E501 - :type: str """ if network is None: raise ValueError("Invalid value for `network`, must not be `None`") # noqa: E501 @@ -96,22 +93,20 @@ def network(self, network): self._network = network @property - def name(self): + def name(self) -> str: """Gets the name of this ASN. # noqa: E501 :return: The name of this ASN. # noqa: E501 - :rtype: str """ return self._name @name.setter - def name(self, name): + def name(self, name: str): """Sets the name of this ASN. :param name: The name of this ASN. # noqa: E501 - :type: str """ self._name = name 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 5820c0ba..38b551de 100644 --- a/fingerprint_pro_server_api_sdk/models/botd_detection_result.py +++ b/fingerprint_pro_server_api_sdk/models/botd_detection_result.py @@ -11,6 +11,7 @@ """ import re # noqa: F401 +from typing import Dict # noqa: F401 from fingerprint_pro_server_api_sdk.base_model import BaseModel @@ -49,24 +50,22 @@ def __init__(self, result=None, type=None): # noqa: E501 self.type = type @property - def result(self): + def result(self) -> str: """Gets the result of this BotdDetectionResult. # noqa: E501 Bot detection result: * `notDetected` - the visitor is not a bot * `good` - good bot detected, such as Google bot, Baidu Spider, AlexaBot and so on * `bad` - bad bot detected, such as Selenium, Puppeteer, Playwright, headless browsers, and so on # noqa: E501 :return: The result of this BotdDetectionResult. # noqa: E501 - :rtype: str """ return self._result @result.setter - def result(self, result): + def result(self, result: str): """Sets the result of this BotdDetectionResult. Bot detection result: * `notDetected` - the visitor is not a bot * `good` - good bot detected, such as Google bot, Baidu Spider, AlexaBot and so on * `bad` - bad bot detected, such as Selenium, Puppeteer, Playwright, headless browsers, and so on # noqa: E501 :param result: The result of this BotdDetectionResult. # noqa: E501 - :type: str """ if result is None: raise ValueError("Invalid value for `result`, must not be `None`") # noqa: E501 @@ -80,22 +79,20 @@ def result(self, result): self._result = result @property - def type(self): + def type(self) -> str: """Gets the type of this BotdDetectionResult. # noqa: E501 :return: The type of this BotdDetectionResult. # noqa: E501 - :rtype: str """ return self._type @type.setter - def type(self, type): + def type(self, type: str): """Sets the type of this BotdDetectionResult. :param type: The type of this BotdDetectionResult. # noqa: E501 - :type: str """ self._type = type diff --git a/fingerprint_pro_server_api_sdk/models/botd_result.py b/fingerprint_pro_server_api_sdk/models/botd_result.py index c4f8f6c2..e90560b7 100644 --- a/fingerprint_pro_server_api_sdk/models/botd_result.py +++ b/fingerprint_pro_server_api_sdk/models/botd_result.py @@ -11,7 +11,10 @@ """ import re # noqa: F401 +from typing import Dict # 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 class BotdResult(BaseModel): @@ -69,24 +72,22 @@ def __init__(self, ip=None, time=None, url=None, user_agent=None, request_id=Non self.bot = bot @property - def ip(self): + def ip(self) -> str: """Gets the ip of this BotdResult. # noqa: E501 IP address of the requesting browser or bot. # noqa: E501 :return: The ip of this BotdResult. # noqa: E501 - :rtype: str """ return self._ip @ip.setter - def ip(self, ip): + def ip(self, ip: str): """Sets the ip of this BotdResult. IP address of the requesting browser or bot. # noqa: E501 :param ip: The ip of this BotdResult. # noqa: E501 - :type: str """ if ip is None: raise ValueError("Invalid value for `ip`, must not be `None`") # noqa: E501 @@ -94,24 +95,22 @@ def ip(self, ip): self._ip = ip @property - def time(self): + def time(self) -> datetime: """Gets the time of this BotdResult. # noqa: E501 Time in UTC when the request from the JS agent was made. We recommend to treat requests that are older than 2 minutes as malicious. Otherwise, request replay attacks are possible # noqa: E501 :return: The time of this BotdResult. # noqa: E501 - :rtype: datetime """ return self._time @time.setter - def time(self, time): + def time(self, time: datetime): """Sets the time of this BotdResult. Time in UTC when the request from the JS agent was made. We recommend to treat requests that are older than 2 minutes as malicious. Otherwise, request replay attacks are possible # noqa: E501 :param time: The time of this BotdResult. # noqa: E501 - :type: datetime """ if time is None: raise ValueError("Invalid value for `time`, must not be `None`") # noqa: E501 @@ -119,24 +118,22 @@ def time(self, time): self._time = time @property - def url(self): + def url(self) -> str: """Gets the url of this BotdResult. # noqa: E501 Page URL from which identification request was sent. # noqa: E501 :return: The url of this BotdResult. # noqa: E501 - :rtype: str """ return self._url @url.setter - def url(self, url): + def url(self, url: str): """Sets the url of this BotdResult. Page URL from which identification request was sent. # noqa: E501 :param url: The url of this BotdResult. # noqa: E501 - :type: str """ if url is None: raise ValueError("Invalid value for `url`, must not be `None`") # noqa: E501 @@ -144,22 +141,20 @@ def url(self, url): self._url = url @property - def user_agent(self): + def user_agent(self) -> str: """Gets the user_agent of this BotdResult. # noqa: E501 :return: The user_agent of this BotdResult. # noqa: E501 - :rtype: str """ return self._user_agent @user_agent.setter - def user_agent(self, user_agent): + def user_agent(self, user_agent: str): """Sets the user_agent of this BotdResult. :param user_agent: The user_agent of this BotdResult. # noqa: E501 - :type: str """ if user_agent is None: raise ValueError("Invalid value for `user_agent`, must not be `None`") # noqa: E501 @@ -167,22 +162,20 @@ def user_agent(self, user_agent): self._user_agent = user_agent @property - def request_id(self): + def request_id(self) -> str: """Gets the request_id of this BotdResult. # noqa: E501 :return: The request_id of this BotdResult. # noqa: E501 - :rtype: str """ return self._request_id @request_id.setter - def request_id(self, request_id): + def request_id(self, request_id: str): """Sets the request_id of this BotdResult. :param request_id: The request_id of this BotdResult. # noqa: E501 - :type: str """ if request_id is None: raise ValueError("Invalid value for `request_id`, must not be `None`") # noqa: E501 @@ -190,43 +183,39 @@ def request_id(self, request_id): self._request_id = request_id @property - def linked_id(self): + def linked_id(self) -> str: """Gets the linked_id of this BotdResult. # noqa: E501 :return: The linked_id of this BotdResult. # noqa: E501 - :rtype: str """ return self._linked_id @linked_id.setter - def linked_id(self, linked_id): + def linked_id(self, linked_id: str): """Sets the linked_id of this BotdResult. :param linked_id: The linked_id of this BotdResult. # noqa: E501 - :type: str """ self._linked_id = linked_id @property - def bot(self): + def bot(self) -> BotdDetectionResult: """Gets the bot of this BotdResult. # noqa: E501 :return: The bot of this BotdResult. # noqa: E501 - :rtype: BotdDetectionResult """ return self._bot @bot.setter - def bot(self, bot): + def bot(self, bot: BotdDetectionResult): """Sets the bot of this BotdResult. :param bot: The bot of this BotdResult. # noqa: E501 - :type: BotdDetectionResult """ if bot is None: raise ValueError("Invalid value for `bot`, must not be `None`") # noqa: E501 diff --git a/fingerprint_pro_server_api_sdk/models/browser_details.py b/fingerprint_pro_server_api_sdk/models/browser_details.py index 2c502de7..aadd6662 100644 --- a/fingerprint_pro_server_api_sdk/models/browser_details.py +++ b/fingerprint_pro_server_api_sdk/models/browser_details.py @@ -11,6 +11,7 @@ """ import re # noqa: F401 +from typing import Dict # noqa: F401 from fingerprint_pro_server_api_sdk.base_model import BaseModel @@ -70,22 +71,20 @@ def __init__(self, browser_name=None, browser_major_version=None, browser_full_v self.bot_probability = bot_probability @property - def browser_name(self): + def browser_name(self) -> str: """Gets the browser_name of this BrowserDetails. # noqa: E501 :return: The browser_name of this BrowserDetails. # noqa: E501 - :rtype: str """ return self._browser_name @browser_name.setter - def browser_name(self, browser_name): + def browser_name(self, browser_name: str): """Sets the browser_name of this BrowserDetails. :param browser_name: The browser_name of this BrowserDetails. # noqa: E501 - :type: str """ if browser_name is None: raise ValueError("Invalid value for `browser_name`, must not be `None`") # noqa: E501 @@ -93,22 +92,20 @@ def browser_name(self, browser_name): self._browser_name = browser_name @property - def browser_major_version(self): + def browser_major_version(self) -> str: """Gets the browser_major_version of this BrowserDetails. # noqa: E501 :return: The browser_major_version of this BrowserDetails. # noqa: E501 - :rtype: str """ return self._browser_major_version @browser_major_version.setter - def browser_major_version(self, browser_major_version): + def browser_major_version(self, browser_major_version: str): """Sets the browser_major_version of this BrowserDetails. :param browser_major_version: The browser_major_version of this BrowserDetails. # noqa: E501 - :type: str """ if browser_major_version is None: raise ValueError("Invalid value for `browser_major_version`, must not be `None`") # noqa: E501 @@ -116,22 +113,20 @@ def browser_major_version(self, browser_major_version): self._browser_major_version = browser_major_version @property - def browser_full_version(self): + def browser_full_version(self) -> str: """Gets the browser_full_version of this BrowserDetails. # noqa: E501 :return: The browser_full_version of this BrowserDetails. # noqa: E501 - :rtype: str """ return self._browser_full_version @browser_full_version.setter - def browser_full_version(self, browser_full_version): + def browser_full_version(self, browser_full_version: str): """Sets the browser_full_version of this BrowserDetails. :param browser_full_version: The browser_full_version of this BrowserDetails. # noqa: E501 - :type: str """ if browser_full_version is None: raise ValueError("Invalid value for `browser_full_version`, must not be `None`") # noqa: E501 @@ -139,22 +134,20 @@ def browser_full_version(self, browser_full_version): self._browser_full_version = browser_full_version @property - def os(self): + def os(self) -> str: """Gets the os of this BrowserDetails. # noqa: E501 :return: The os of this BrowserDetails. # noqa: E501 - :rtype: str """ return self._os @os.setter - def os(self, os): + def os(self, os: str): """Sets the os of this BrowserDetails. :param os: The os of this BrowserDetails. # noqa: E501 - :type: str """ if os is None: raise ValueError("Invalid value for `os`, must not be `None`") # noqa: E501 @@ -162,22 +155,20 @@ def os(self, os): self._os = os @property - def os_version(self): + def os_version(self) -> str: """Gets the os_version of this BrowserDetails. # noqa: E501 :return: The os_version of this BrowserDetails. # noqa: E501 - :rtype: str """ return self._os_version @os_version.setter - def os_version(self, os_version): + def os_version(self, os_version: str): """Sets the os_version of this BrowserDetails. :param os_version: The os_version of this BrowserDetails. # noqa: E501 - :type: str """ if os_version is None: raise ValueError("Invalid value for `os_version`, must not be `None`") # noqa: E501 @@ -185,22 +176,20 @@ def os_version(self, os_version): self._os_version = os_version @property - def device(self): + def device(self) -> str: """Gets the device of this BrowserDetails. # noqa: E501 :return: The device of this BrowserDetails. # noqa: E501 - :rtype: str """ return self._device @device.setter - def device(self, device): + def device(self, device: str): """Sets the device of this BrowserDetails. :param device: The device of this BrowserDetails. # noqa: E501 - :type: str """ if device is None: raise ValueError("Invalid value for `device`, must not be `None`") # noqa: E501 @@ -208,22 +197,20 @@ def device(self, device): self._device = device @property - def user_agent(self): + def user_agent(self) -> str: """Gets the user_agent of this BrowserDetails. # noqa: E501 :return: The user_agent of this BrowserDetails. # noqa: E501 - :rtype: str """ return self._user_agent @user_agent.setter - def user_agent(self, user_agent): + def user_agent(self, user_agent: str): """Sets the user_agent of this BrowserDetails. :param user_agent: The user_agent of this BrowserDetails. # noqa: E501 - :type: str """ if user_agent is None: raise ValueError("Invalid value for `user_agent`, must not be `None`") # noqa: E501 @@ -231,22 +218,20 @@ def user_agent(self, user_agent): self._user_agent = user_agent @property - def bot_probability(self): + def bot_probability(self) -> int: """Gets the bot_probability of this BrowserDetails. # noqa: E501 :return: The bot_probability of this BrowserDetails. # noqa: E501 - :rtype: int """ return self._bot_probability @bot_probability.setter - def bot_probability(self, bot_probability): + def bot_probability(self, bot_probability: int): """Sets the bot_probability of this BrowserDetails. :param bot_probability: The bot_probability of this BrowserDetails. # noqa: E501 - :type: int """ self._bot_probability = bot_probability 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 13b43c58..1716ebd8 100644 --- a/fingerprint_pro_server_api_sdk/models/cloned_app_result.py +++ b/fingerprint_pro_server_api_sdk/models/cloned_app_result.py @@ -11,6 +11,7 @@ """ import re # noqa: F401 +from typing import Dict # noqa: F401 from fingerprint_pro_server_api_sdk.base_model import BaseModel @@ -41,24 +42,22 @@ def __init__(self, result=None): # noqa: E501 self.result = result @property - def result(self): + def result(self) -> bool: """Gets the result of this ClonedAppResult. # noqa: E501 Android specific cloned application detection. There are 2 values: • `true` - Presence of app cloners work detected (e.g. fully cloned application found or launch of it inside of a not main working profile detected). • `false` - No signs of cloned application detected or the client is not Android. # noqa: E501 :return: The result of this ClonedAppResult. # noqa: E501 - :rtype: bool """ return self._result @result.setter - def result(self, result): + def result(self, result: bool): """Sets the result of this ClonedAppResult. Android specific cloned application detection. There are 2 values: • `true` - Presence of app cloners work detected (e.g. fully cloned application found or launch of it inside of a not main working profile detected). • `false` - No signs of cloned application detected or the client is not Android. # noqa: E501 :param result: The result of this ClonedAppResult. # noqa: E501 - :type: bool """ if result is None: raise ValueError("Invalid value for `result`, must not be `None`") # noqa: E501 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 de2e1984..ec80816e 100644 --- a/fingerprint_pro_server_api_sdk/models/common403_error_response.py +++ b/fingerprint_pro_server_api_sdk/models/common403_error_response.py @@ -11,6 +11,7 @@ """ import re # noqa: F401 +from typing import Dict # noqa: F401 from fingerprint_pro_server_api_sdk.base_model import BaseModel @@ -45,24 +46,22 @@ def __init__(self, code=None, message=None): # noqa: E501 self.message = message @property - def code(self): + def code(self) -> str: """Gets the code of this Common403ErrorResponse. # noqa: E501 Error code: * `TokenRequired` - `Auth-API-Key` header is missing or empty * `TokenNotFound` - No Fingerprint application found for specified secret key * `SubscriptionNotActive` - Fingerprint application is not active * `WrongRegion` - server and application region differ * `FeatureNotEnabled` - this feature (for example, Delete API) is not enabled for your application # noqa: E501 :return: The code of this Common403ErrorResponse. # noqa: E501 - :rtype: str """ return self._code @code.setter - def code(self, code): + def code(self, code: str): """Sets the code of this Common403ErrorResponse. Error code: * `TokenRequired` - `Auth-API-Key` header is missing or empty * `TokenNotFound` - No Fingerprint application found for specified secret key * `SubscriptionNotActive` - Fingerprint application is not active * `WrongRegion` - server and application region differ * `FeatureNotEnabled` - this feature (for example, Delete API) is not enabled for your application # noqa: E501 :param code: The code of this Common403ErrorResponse. # noqa: E501 - :type: str """ if code is None: raise ValueError("Invalid value for `code`, must not be `None`") # noqa: E501 @@ -76,22 +75,20 @@ def code(self, code): self._code = code @property - def message(self): + def message(self) -> str: """Gets the message of this Common403ErrorResponse. # noqa: E501 :return: The message of this Common403ErrorResponse. # noqa: E501 - :rtype: str """ return self._message @message.setter - def message(self, message): + def message(self, message: str): """Sets the message of this Common403ErrorResponse. :param message: The message of this Common403ErrorResponse. # noqa: E501 - :type: str """ if message is None: raise ValueError("Invalid value for `message`, must not be `None`") # noqa: E501 diff --git a/fingerprint_pro_server_api_sdk/models/confidence.py b/fingerprint_pro_server_api_sdk/models/confidence.py index 4d8a2cf9..d849e5d8 100644 --- a/fingerprint_pro_server_api_sdk/models/confidence.py +++ b/fingerprint_pro_server_api_sdk/models/confidence.py @@ -11,6 +11,7 @@ """ import re # noqa: F401 +from typing import Dict # noqa: F401 from fingerprint_pro_server_api_sdk.base_model import BaseModel @@ -46,24 +47,22 @@ def __init__(self, score=None, revision=None): # noqa: E501 self.revision = revision @property - def score(self): + def score(self) -> float: """Gets the score of this Confidence. # noqa: E501 The confidence score is a floating-point number between 0 and 1 that represents the probability of accurate identification. # noqa: E501 :return: The score of this Confidence. # noqa: E501 - :rtype: float """ return self._score @score.setter - def score(self, score): + def score(self, score: float): """Sets the score of this Confidence. The confidence score is a floating-point number between 0 and 1 that represents the probability of accurate identification. # noqa: E501 :param score: The score of this Confidence. # noqa: E501 - :type: float """ if score is None: raise ValueError("Invalid value for `score`, must not be `None`") # noqa: E501 @@ -71,24 +70,22 @@ def score(self, score): self._score = score @property - def revision(self): + def revision(self) -> 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 :return: The revision of this Confidence. # noqa: E501 - :rtype: str """ return self._revision @revision.setter - def revision(self, revision): + def revision(self, revision: 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 :param revision: The revision of this Confidence. # noqa: E501 - :type: str """ self._revision = revision diff --git a/fingerprint_pro_server_api_sdk/models/data_center.py b/fingerprint_pro_server_api_sdk/models/data_center.py index 375c3380..db65dd92 100644 --- a/fingerprint_pro_server_api_sdk/models/data_center.py +++ b/fingerprint_pro_server_api_sdk/models/data_center.py @@ -11,6 +11,7 @@ """ import re # noqa: F401 +from typing import Dict # noqa: F401 from fingerprint_pro_server_api_sdk.base_model import BaseModel @@ -46,22 +47,20 @@ def __init__(self, result=None, name=None): # noqa: E501 self.name = name @property - def result(self): + def result(self) -> bool: """Gets the result of this DataCenter. # noqa: E501 :return: The result of this DataCenter. # noqa: E501 - :rtype: bool """ return self._result @result.setter - def result(self, result): + def result(self, result: bool): """Sets the result of this DataCenter. :param result: The result of this DataCenter. # noqa: E501 - :type: bool """ if result is None: raise ValueError("Invalid value for `result`, must not be `None`") # noqa: E501 @@ -69,22 +68,20 @@ def result(self, result): self._result = result @property - def name(self): + def name(self) -> str: """Gets the name of this DataCenter. # noqa: E501 :return: The name of this DataCenter. # noqa: E501 - :rtype: str """ return self._name @name.setter - def name(self, name): + def name(self, name: str): """Sets the name of this DataCenter. :param name: The name of this DataCenter. # noqa: E501 - :type: str """ self._name = name 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 c7f48f2b..2c56a4f1 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,12 @@ """ import re # noqa: F401 +from typing import Dict # 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 +from fingerprint_pro_server_api_sdk.models.location import Location +from fingerprint_pro_server_api_sdk.models.subdivision import Subdivision class DeprecatedIPLocation(BaseModel): @@ -85,192 +90,174 @@ def __init__(self, accuracy_radius=None, latitude=None, longitude=None, postal_c self.subdivisions = subdivisions @property - def accuracy_radius(self): + def accuracy_radius(self) -> 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 :return: The accuracy_radius of this DeprecatedIPLocation. # noqa: E501 - :rtype: int """ return self._accuracy_radius @accuracy_radius.setter - def accuracy_radius(self, accuracy_radius): + def accuracy_radius(self, accuracy_radius: 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 :param accuracy_radius: The accuracy_radius of this DeprecatedIPLocation. # noqa: E501 - :type: int """ self._accuracy_radius = accuracy_radius @property - def latitude(self): + def latitude(self) -> float: """Gets the latitude of this DeprecatedIPLocation. # noqa: E501 :return: The latitude of this DeprecatedIPLocation. # noqa: E501 - :rtype: float """ return self._latitude @latitude.setter - def latitude(self, latitude): + def latitude(self, latitude: float): """Sets the latitude of this DeprecatedIPLocation. :param latitude: The latitude of this DeprecatedIPLocation. # noqa: E501 - :type: float """ self._latitude = latitude @property - def longitude(self): + def longitude(self) -> float: """Gets the longitude of this DeprecatedIPLocation. # noqa: E501 :return: The longitude of this DeprecatedIPLocation. # noqa: E501 - :rtype: float """ return self._longitude @longitude.setter - def longitude(self, longitude): + def longitude(self, longitude: float): """Sets the longitude of this DeprecatedIPLocation. :param longitude: The longitude of this DeprecatedIPLocation. # noqa: E501 - :type: float """ self._longitude = longitude @property - def postal_code(self): + def postal_code(self) -> str: """Gets the postal_code of this DeprecatedIPLocation. # noqa: E501 :return: The postal_code of this DeprecatedIPLocation. # noqa: E501 - :rtype: str """ return self._postal_code @postal_code.setter - def postal_code(self, postal_code): + def postal_code(self, postal_code: str): """Sets the postal_code of this DeprecatedIPLocation. :param postal_code: The postal_code of this DeprecatedIPLocation. # noqa: E501 - :type: str """ self._postal_code = postal_code @property - def timezone(self): + def timezone(self) -> str: """Gets the timezone of this DeprecatedIPLocation. # noqa: E501 :return: The timezone of this DeprecatedIPLocation. # noqa: E501 - :rtype: str """ return self._timezone @timezone.setter - def timezone(self, timezone): + def timezone(self, timezone: str): """Sets the timezone of this DeprecatedIPLocation. :param timezone: The timezone of this DeprecatedIPLocation. # noqa: E501 - :type: str """ self._timezone = timezone @property - def city(self): + def city(self) -> DeprecatedIPLocationCity: """Gets the city of this DeprecatedIPLocation. # noqa: E501 :return: The city of this DeprecatedIPLocation. # noqa: E501 - :rtype: DeprecatedIPLocationCity """ return self._city @city.setter - def city(self, city): + def city(self, city: DeprecatedIPLocationCity): """Sets the city of this DeprecatedIPLocation. :param city: The city of this DeprecatedIPLocation. # noqa: E501 - :type: DeprecatedIPLocationCity """ self._city = city @property - def country(self): + def country(self) -> Location: """Gets the country of this DeprecatedIPLocation. # noqa: E501 :return: The country of this DeprecatedIPLocation. # noqa: E501 - :rtype: Location """ return self._country @country.setter - def country(self, country): + def country(self, country: Location): """Sets the country of this DeprecatedIPLocation. :param country: The country of this DeprecatedIPLocation. # noqa: E501 - :type: Location """ self._country = country @property - def continent(self): + def continent(self) -> Location: """Gets the continent of this DeprecatedIPLocation. # noqa: E501 :return: The continent of this DeprecatedIPLocation. # noqa: E501 - :rtype: Location """ return self._continent @continent.setter - def continent(self, continent): + def continent(self, continent: Location): """Sets the continent of this DeprecatedIPLocation. :param continent: The continent of this DeprecatedIPLocation. # noqa: E501 - :type: Location """ self._continent = continent @property - def subdivisions(self): + def subdivisions(self) -> list[Subdivision]: """Gets the subdivisions of this DeprecatedIPLocation. # noqa: E501 :return: The subdivisions of this DeprecatedIPLocation. # noqa: E501 - :rtype: list[Subdivision] """ return self._subdivisions @subdivisions.setter - def subdivisions(self, subdivisions): + def subdivisions(self, subdivisions: list[Subdivision]): """Sets the subdivisions of this DeprecatedIPLocation. :param subdivisions: The subdivisions of this DeprecatedIPLocation. # noqa: E501 - :type: list[Subdivision] """ self._subdivisions = subdivisions 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 6e64ca86..82bbb11c 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,6 +11,7 @@ """ import re # noqa: F401 +from typing import Dict # noqa: F401 from fingerprint_pro_server_api_sdk.base_model import BaseModel @@ -42,22 +43,20 @@ def __init__(self, name=None): # noqa: E501 self.name = name @property - def name(self): + def name(self) -> str: """Gets the name of this DeprecatedIPLocationCity. # noqa: E501 :return: The name of this DeprecatedIPLocationCity. # noqa: E501 - :rtype: str """ return self._name @name.setter - def name(self, name): + def name(self, name: str): """Sets the name of this DeprecatedIPLocationCity. :param name: The name of this DeprecatedIPLocationCity. # noqa: E501 - :type: str """ self._name = name diff --git a/fingerprint_pro_server_api_sdk/models/emulator_result.py b/fingerprint_pro_server_api_sdk/models/emulator_result.py index b67bf3ae..0db772cf 100644 --- a/fingerprint_pro_server_api_sdk/models/emulator_result.py +++ b/fingerprint_pro_server_api_sdk/models/emulator_result.py @@ -11,6 +11,7 @@ """ import re # noqa: F401 +from typing import Dict # noqa: F401 from fingerprint_pro_server_api_sdk.base_model import BaseModel @@ -41,24 +42,22 @@ def __init__(self, result=None): # noqa: E501 self.result = result @property - def result(self): + def result(self) -> bool: """Gets the result of this EmulatorResult. # noqa: E501 Android specific emulator detection. There are 2 values: • `true` - Emulated environment detected (e.g. launch inside of AVD) • `false` - No signs of emulated environment detected or the client is not Android. # noqa: E501 :return: The result of this EmulatorResult. # noqa: E501 - :rtype: bool """ return self._result @result.setter - def result(self, result): + def result(self, result: bool): """Sets the result of this EmulatorResult. Android specific emulator detection. There are 2 values: • `true` - Emulated environment detected (e.g. launch inside of AVD) • `false` - No signs of emulated environment detected or the client is not Android. # noqa: E501 :param result: The result of this EmulatorResult. # noqa: E501 - :type: bool """ if result is None: raise ValueError("Invalid value for `result`, must not be `None`") # noqa: E501 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 8ca06772..5cdb170e 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,9 @@ """ import re # noqa: F401 +from typing import Dict # noqa: F401 from fingerprint_pro_server_api_sdk.base_model import BaseModel +from fingerprint_pro_server_api_sdk.models.common403_error_response import Common403ErrorResponse class ErrorCommon403Response(BaseModel): @@ -42,22 +44,20 @@ def __init__(self, error=None): # noqa: E501 self.error = error @property - def error(self): + def error(self) -> Common403ErrorResponse: """Gets the error of this ErrorCommon403Response. # noqa: E501 :return: The error of this ErrorCommon403Response. # noqa: E501 - :rtype: Common403ErrorResponse """ return self._error @error.setter - def error(self, error): + def error(self, error: Common403ErrorResponse): """Sets the error of this ErrorCommon403Response. :param error: The error of this ErrorCommon403Response. # noqa: E501 - :type: Common403ErrorResponse """ self._error = error 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 cee323b4..b4d3b85b 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,9 @@ """ import re # noqa: F401 +from typing import Dict # 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 class ErrorCommon429Response(BaseModel): @@ -42,22 +44,20 @@ def __init__(self, error=None): # noqa: E501 self.error = error @property - def error(self): + def error(self) -> ErrorCommon429ResponseError: """Gets the error of this ErrorCommon429Response. # noqa: E501 :return: The error of this ErrorCommon429Response. # noqa: E501 - :rtype: ErrorCommon429ResponseError """ return self._error @error.setter - def error(self, error): + def error(self, error: ErrorCommon429ResponseError): """Sets the error of this ErrorCommon429Response. :param error: The error of this ErrorCommon429Response. # noqa: E501 - :type: ErrorCommon429ResponseError """ self._error = error 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 f32f886a..131dd670 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,6 +11,7 @@ """ import re # noqa: F401 +from typing import Dict # noqa: F401 from fingerprint_pro_server_api_sdk.base_model import BaseModel @@ -45,24 +46,22 @@ def __init__(self, code=None, message=None): # noqa: E501 self.message = message @property - def code(self): + def code(self) -> str: """Gets the code of this ErrorCommon429ResponseError. # noqa: E501 Error code: * `TooManyRequests` - The request is throttled. # noqa: E501 :return: The code of this ErrorCommon429ResponseError. # noqa: E501 - :rtype: str """ return self._code @code.setter - def code(self, code): + def code(self, code: str): """Sets the code of this ErrorCommon429ResponseError. Error code: * `TooManyRequests` - The request is throttled. # noqa: E501 :param code: The code of this ErrorCommon429ResponseError. # noqa: E501 - :type: str """ if code is None: raise ValueError("Invalid value for `code`, must not be `None`") # noqa: E501 @@ -76,22 +75,20 @@ def code(self, code): self._code = code @property - def message(self): + def message(self) -> str: """Gets the message of this ErrorCommon429ResponseError. # noqa: E501 :return: The message of this ErrorCommon429ResponseError. # noqa: E501 - :rtype: str """ return self._message @message.setter - def message(self, message): + def message(self, message: str): """Sets the message of this ErrorCommon429ResponseError. :param message: The message of this ErrorCommon429ResponseError. # noqa: E501 - :type: str """ if message is None: raise ValueError("Invalid value for `message`, must not be `None`") # noqa: E501 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 183b57de..259e4cca 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,9 @@ """ import re # noqa: F401 +from typing import Dict # 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 class ErrorEvent404Response(BaseModel): @@ -42,22 +44,20 @@ def __init__(self, error=None): # noqa: E501 self.error = error @property - def error(self): + def error(self) -> ErrorEvent404ResponseError: """Gets the error of this ErrorEvent404Response. # noqa: E501 :return: The error of this ErrorEvent404Response. # noqa: E501 - :rtype: ErrorEvent404ResponseError """ return self._error @error.setter - def error(self, error): + def error(self, error: ErrorEvent404ResponseError): """Sets the error of this ErrorEvent404Response. :param error: The error of this ErrorEvent404Response. # noqa: E501 - :type: ErrorEvent404ResponseError """ self._error = error 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 3f8af6bc..6c0b386c 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,6 +11,7 @@ """ import re # noqa: F401 +from typing import Dict # noqa: F401 from fingerprint_pro_server_api_sdk.base_model import BaseModel @@ -45,24 +46,22 @@ def __init__(self, code=None, message=None): # noqa: E501 self.message = message @property - def code(self): + def code(self) -> str: """Gets the code of this ErrorEvent404ResponseError. # noqa: E501 Error code: * `RequestNotFound` - The specified request ID was not found. It never existed, expired, or it has been deleted. # noqa: E501 :return: The code of this ErrorEvent404ResponseError. # noqa: E501 - :rtype: str """ return self._code @code.setter - def code(self, code): + def code(self, code: str): """Sets the code of this ErrorEvent404ResponseError. Error code: * `RequestNotFound` - The specified request ID was not found. It never existed, expired, or it has been deleted. # noqa: E501 :param code: The code of this ErrorEvent404ResponseError. # noqa: E501 - :type: str """ if code is None: raise ValueError("Invalid value for `code`, must not be `None`") # noqa: E501 @@ -76,22 +75,20 @@ def code(self, code): self._code = code @property - def message(self): + def message(self) -> str: """Gets the message of this ErrorEvent404ResponseError. # noqa: E501 :return: The message of this ErrorEvent404ResponseError. # noqa: E501 - :rtype: str """ return self._message @message.setter - def message(self, message): + def message(self, message: str): """Sets the message of this ErrorEvent404ResponseError. :param message: The message of this ErrorEvent404ResponseError. # noqa: E501 - :type: str """ if message is None: raise ValueError("Invalid value for `message`, must not be `None`") # noqa: E501 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 0563363b..5e8655f5 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,9 @@ """ import re # noqa: F401 +from typing import Dict # 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 class ErrorUpdateEvent400Response(BaseModel): @@ -42,22 +44,20 @@ def __init__(self, error=None): # noqa: E501 self.error = error @property - def error(self): + def error(self) -> ErrorUpdateEvent400ResponseError: """Gets the error of this ErrorUpdateEvent400Response. # noqa: E501 :return: The error of this ErrorUpdateEvent400Response. # noqa: E501 - :rtype: ErrorUpdateEvent400ResponseError """ return self._error @error.setter - def error(self, error): + def error(self, error: ErrorUpdateEvent400ResponseError): """Sets the error of this ErrorUpdateEvent400Response. :param error: The error of this ErrorUpdateEvent400Response. # noqa: E501 - :type: ErrorUpdateEvent400ResponseError """ self._error = error 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 70a6ef03..5776420d 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,6 +11,7 @@ """ import re # noqa: F401 +from typing import Dict # noqa: F401 from fingerprint_pro_server_api_sdk.base_model import BaseModel @@ -45,24 +46,22 @@ def __init__(self, code=None, message=None): # noqa: E501 self.message = message @property - def code(self): + def code(self) -> str: """Gets the code of this ErrorUpdateEvent400ResponseError. # noqa: E501 Error code: * `RequestCannotBeParsed` - the JSON content of the request contains some errors that prevented us from parsing it (wrong type/surpassed limits) * `Failed` - the event is more than 10 days old and cannot be updated # noqa: E501 :return: The code of this ErrorUpdateEvent400ResponseError. # noqa: E501 - :rtype: str """ return self._code @code.setter - def code(self, code): + def code(self, code: str): """Sets the code of this ErrorUpdateEvent400ResponseError. Error code: * `RequestCannotBeParsed` - the JSON content of the request contains some errors that prevented us from parsing it (wrong type/surpassed limits) * `Failed` - the event is more than 10 days old and cannot be updated # noqa: E501 :param code: The code of this ErrorUpdateEvent400ResponseError. # noqa: E501 - :type: str """ if code is None: raise ValueError("Invalid value for `code`, must not be `None`") # noqa: E501 @@ -76,24 +75,22 @@ def code(self, code): self._code = code @property - def message(self): + def message(self) -> str: """Gets the message of this ErrorUpdateEvent400ResponseError. # noqa: E501 Details about the underlying issue with the input payload # noqa: E501 :return: The message of this ErrorUpdateEvent400ResponseError. # noqa: E501 - :rtype: str """ return self._message @message.setter - def message(self, message): + def message(self, message: str): """Sets the message of this ErrorUpdateEvent400ResponseError. Details about the underlying issue with the input payload # noqa: E501 :param message: The message of this ErrorUpdateEvent400ResponseError. # noqa: E501 - :type: str """ if message is None: raise ValueError("Invalid value for `message`, must not be `None`") # noqa: E501 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 6bd20025..cc8d3fe4 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,9 @@ """ import re # noqa: F401 +from typing import Dict # 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 class ErrorUpdateEvent409Response(BaseModel): @@ -42,22 +44,20 @@ def __init__(self, error=None): # noqa: E501 self.error = error @property - def error(self): + def error(self) -> ErrorUpdateEvent409ResponseError: """Gets the error of this ErrorUpdateEvent409Response. # noqa: E501 :return: The error of this ErrorUpdateEvent409Response. # noqa: E501 - :rtype: ErrorUpdateEvent409ResponseError """ return self._error @error.setter - def error(self, error): + def error(self, error: ErrorUpdateEvent409ResponseError): """Sets the error of this ErrorUpdateEvent409Response. :param error: The error of this ErrorUpdateEvent409Response. # noqa: E501 - :type: ErrorUpdateEvent409ResponseError """ self._error = error 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 cbe174ff..624de483 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,6 +11,7 @@ """ import re # noqa: F401 +from typing import Dict # noqa: F401 from fingerprint_pro_server_api_sdk.base_model import BaseModel @@ -45,24 +46,22 @@ def __init__(self, code=None, message=None): # noqa: E501 self.message = message @property - def code(self): + def code(self) -> str: """Gets the code of this ErrorUpdateEvent409ResponseError. # noqa: E501 Error code: * `StateNotReady` - The event specified with request id is not ready for updates yet. Try again. This error happens in rare cases when update API is called immediately after receiving the request id on the client. In case you need to send information right away, we recommend using the JS agent API instead. # noqa: E501 :return: The code of this ErrorUpdateEvent409ResponseError. # noqa: E501 - :rtype: str """ return self._code @code.setter - def code(self, code): + def code(self, code: str): """Sets the code of this ErrorUpdateEvent409ResponseError. Error code: * `StateNotReady` - The event specified with request id is not ready for updates yet. Try again. This error happens in rare cases when update API is called immediately after receiving the request id on the client. In case you need to send information right away, we recommend using the JS agent API instead. # noqa: E501 :param code: The code of this ErrorUpdateEvent409ResponseError. # noqa: E501 - :type: str """ if code is None: raise ValueError("Invalid value for `code`, must not be `None`") # noqa: E501 @@ -76,22 +75,20 @@ def code(self, code): self._code = code @property - def message(self): + def message(self) -> str: """Gets the message of this ErrorUpdateEvent409ResponseError. # noqa: E501 :return: The message of this ErrorUpdateEvent409ResponseError. # noqa: E501 - :rtype: str """ return self._message @message.setter - def message(self, message): + def message(self, message: str): """Sets the message of this ErrorUpdateEvent409ResponseError. :param message: The message of this ErrorUpdateEvent409ResponseError. # noqa: E501 - :type: str """ if message is None: raise ValueError("Invalid value for `message`, must not be `None`") # noqa: E501 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 fd4b89c3..a352b03e 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,9 @@ """ import re # noqa: F401 +from typing import Dict # 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 class ErrorVisitor400Response(BaseModel): @@ -42,22 +44,20 @@ def __init__(self, error=None): # noqa: E501 self.error = error @property - def error(self): + def error(self) -> ErrorVisitor400ResponseError: """Gets the error of this ErrorVisitor400Response. # noqa: E501 :return: The error of this ErrorVisitor400Response. # noqa: E501 - :rtype: ErrorVisitor400ResponseError """ return self._error @error.setter - def error(self, error): + def error(self, error: ErrorVisitor400ResponseError): """Sets the error of this ErrorVisitor400Response. :param error: The error of this ErrorVisitor400Response. # noqa: E501 - :type: ErrorVisitor400ResponseError """ self._error = error 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 6805d4ce..5de359b3 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,6 +11,7 @@ """ import re # noqa: F401 +from typing import Dict # noqa: F401 from fingerprint_pro_server_api_sdk.base_model import BaseModel @@ -45,24 +46,22 @@ def __init__(self, code=None, message=None): # noqa: E501 self.message = message @property - def code(self): + def code(self) -> str: """Gets the code of this ErrorVisitor400ResponseError. # noqa: E501 Error code: * `RequestCannotBeParsed` - The visitor ID parameter is missing or in the wrong format. # noqa: E501 :return: The code of this ErrorVisitor400ResponseError. # noqa: E501 - :rtype: str """ return self._code @code.setter - def code(self, code): + def code(self, code: str): """Sets the code of this ErrorVisitor400ResponseError. Error code: * `RequestCannotBeParsed` - The visitor ID parameter is missing or in the wrong format. # noqa: E501 :param code: The code of this ErrorVisitor400ResponseError. # noqa: E501 - :type: str """ if code is None: raise ValueError("Invalid value for `code`, must not be `None`") # noqa: E501 @@ -76,22 +75,20 @@ def code(self, code): self._code = code @property - def message(self): + def message(self) -> str: """Gets the message of this ErrorVisitor400ResponseError. # noqa: E501 :return: The message of this ErrorVisitor400ResponseError. # noqa: E501 - :rtype: str """ return self._message @message.setter - def message(self, message): + def message(self, message: str): """Sets the message of this ErrorVisitor400ResponseError. :param message: The message of this ErrorVisitor400ResponseError. # noqa: E501 - :type: str """ if message is None: raise ValueError("Invalid value for `message`, must not be `None`") # noqa: E501 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 a75e3be7..048f0de9 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,9 @@ """ import re # noqa: F401 +from typing import Dict # 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 class ErrorVisitor404Response(BaseModel): @@ -42,22 +44,20 @@ def __init__(self, error=None): # noqa: E501 self.error = error @property - def error(self): + def error(self) -> ErrorVisitor404ResponseError: """Gets the error of this ErrorVisitor404Response. # noqa: E501 :return: The error of this ErrorVisitor404Response. # noqa: E501 - :rtype: ErrorVisitor404ResponseError """ return self._error @error.setter - def error(self, error): + def error(self, error: ErrorVisitor404ResponseError): """Sets the error of this ErrorVisitor404Response. :param error: The error of this ErrorVisitor404Response. # noqa: E501 - :type: ErrorVisitor404ResponseError """ self._error = error 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 709181f8..bd69d24e 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,6 +11,7 @@ """ import re # noqa: F401 +from typing import Dict # noqa: F401 from fingerprint_pro_server_api_sdk.base_model import BaseModel @@ -45,24 +46,22 @@ def __init__(self, code=None, message=None): # noqa: E501 self.message = message @property - def code(self): + def code(self) -> str: """Gets the code of this ErrorVisitor404ResponseError. # noqa: E501 Error code: * `VisitorNotFound` - The specified visitor ID was not found. It never existed or it may have already been deleted. # noqa: E501 :return: The code of this ErrorVisitor404ResponseError. # noqa: E501 - :rtype: str """ return self._code @code.setter - def code(self, code): + def code(self, code: str): """Sets the code of this ErrorVisitor404ResponseError. Error code: * `VisitorNotFound` - The specified visitor ID was not found. It never existed or it may have already been deleted. # noqa: E501 :param code: The code of this ErrorVisitor404ResponseError. # noqa: E501 - :type: str """ if code is None: raise ValueError("Invalid value for `code`, must not be `None`") # noqa: E501 @@ -76,22 +75,20 @@ def code(self, code): self._code = code @property - def message(self): + def message(self) -> str: """Gets the message of this ErrorVisitor404ResponseError. # noqa: E501 :return: The message of this ErrorVisitor404ResponseError. # noqa: E501 - :rtype: str """ return self._message @message.setter - def message(self, message): + def message(self, message: str): """Sets the message of this ErrorVisitor404ResponseError. :param message: The message of this ErrorVisitor404ResponseError. # noqa: E501 - :type: str """ if message is None: raise ValueError("Invalid value for `message`, must not be `None`") # noqa: E501 diff --git a/fingerprint_pro_server_api_sdk/models/error_visits403.py b/fingerprint_pro_server_api_sdk/models/error_visits403.py index 3e182eb8..69b0a94d 100644 --- a/fingerprint_pro_server_api_sdk/models/error_visits403.py +++ b/fingerprint_pro_server_api_sdk/models/error_visits403.py @@ -11,6 +11,7 @@ """ import re # noqa: F401 +from typing import Dict # noqa: F401 from fingerprint_pro_server_api_sdk.base_model import BaseModel @@ -41,24 +42,22 @@ def __init__(self, error=None): # noqa: E501 self.error = error @property - def error(self): + def error(self) -> str: """Gets the error of this ErrorVisits403. # noqa: E501 Error text. # noqa: E501 :return: The error of this ErrorVisits403. # noqa: E501 - :rtype: str """ return self._error @error.setter - def error(self, error): + def error(self, error: str): """Sets the error of this ErrorVisits403. Error text. # noqa: E501 :param error: The error of this ErrorVisits403. # noqa: E501 - :type: str """ if error is None: raise ValueError("Invalid value for `error`, must not be `None`") # noqa: E501 diff --git a/fingerprint_pro_server_api_sdk/models/event_response.py b/fingerprint_pro_server_api_sdk/models/event_response.py index 3b431f49..b996f335 100644 --- a/fingerprint_pro_server_api_sdk/models/event_response.py +++ b/fingerprint_pro_server_api_sdk/models/event_response.py @@ -11,7 +11,10 @@ """ import re # noqa: F401 +from typing import Dict # 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 class EventResponse(BaseModel): @@ -49,22 +52,20 @@ def __init__(self, products=None, error=None): # noqa: E501 self.error = error @property - def products(self): + def products(self) -> ProductsResponse: """Gets the products of this EventResponse. # noqa: E501 :return: The products of this EventResponse. # noqa: E501 - :rtype: ProductsResponse """ return self._products @products.setter - def products(self, products): + def products(self, products: ProductsResponse): """Sets the products of this EventResponse. :param products: The products of this EventResponse. # noqa: E501 - :type: ProductsResponse """ if products is None: raise ValueError("Invalid value for `products`, must not be `None`") # noqa: E501 @@ -72,22 +73,20 @@ def products(self, products): self._products = products @property - def error(self): + def error(self) -> ProductError: """Gets the error of this EventResponse. # noqa: E501 :return: The error of this EventResponse. # noqa: E501 - :rtype: ProductError """ return self._error @error.setter - def error(self, error): + def error(self, error: ProductError): """Sets the error of this EventResponse. :param error: The error of this EventResponse. # noqa: E501 - :type: ProductError """ self._error = error 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 ce5e6d71..e6a68f91 100644 --- a/fingerprint_pro_server_api_sdk/models/event_update_request.py +++ b/fingerprint_pro_server_api_sdk/models/event_update_request.py @@ -11,6 +11,7 @@ """ import re # noqa: F401 +from typing import Dict # noqa: F401 from fingerprint_pro_server_api_sdk.base_model import BaseModel @@ -52,70 +53,64 @@ def __init__(self, linked_id=None, tag=None, suspect=None): # noqa: E501 self.suspect = suspect @property - def linked_id(self): + def linked_id(self) -> str: """Gets the linked_id of this EventUpdateRequest. # noqa: E501 LinkedID value to assign to the existing event # noqa: E501 :return: The linked_id of this EventUpdateRequest. # noqa: E501 - :rtype: str """ return self._linked_id @linked_id.setter - def linked_id(self, linked_id): + def linked_id(self, linked_id: str): """Sets the linked_id of this EventUpdateRequest. LinkedID value to assign to the existing event # noqa: E501 :param linked_id: The linked_id of this EventUpdateRequest. # noqa: E501 - :type: str """ self._linked_id = linked_id @property - def tag(self): + def tag(self) -> 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 :return: The tag of this EventUpdateRequest. # noqa: E501 - :rtype: object """ return self._tag @tag.setter - def tag(self, tag): + def tag(self, tag: 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 :param tag: The tag of this EventUpdateRequest. # noqa: E501 - :type: object """ self._tag = tag @property - def suspect(self): + def suspect(self) -> bool: """Gets the suspect of this EventUpdateRequest. # noqa: E501 Suspect flag indicating observed suspicious or fraudulent event # noqa: E501 :return: The suspect of this EventUpdateRequest. # noqa: E501 - :rtype: bool """ return self._suspect @suspect.setter - def suspect(self, suspect): + def suspect(self, suspect: bool): """Sets the suspect of this EventUpdateRequest. Suspect flag indicating observed suspicious or fraudulent event # noqa: E501 :param suspect: The suspect of this EventUpdateRequest. # noqa: E501 - :type: bool """ self._suspect = suspect 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 0a27af7a..a5f022e2 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,9 @@ """ import re # noqa: F401 +from typing import Dict # noqa: F401 from fingerprint_pro_server_api_sdk.base_model import BaseModel +from datetime import datetime class FactoryResetResult(BaseModel): @@ -45,24 +47,22 @@ def __init__(self, time=None, timestamp=None): # noqa: E501 self.timestamp = timestamp @property - def time(self): + def time(self) -> datetime: """Gets the time of this FactoryResetResult. # noqa: E501 Time in UTC when the most recent factory reset of the Android or iOS device was done. If there is no sign of factory reset or the client is not a mobile device, the field will contain the epoch time (1 January 1970) in UTC. # noqa: E501 :return: The time of this FactoryResetResult. # noqa: E501 - :rtype: datetime """ return self._time @time.setter - def time(self, time): + def time(self, time: datetime): """Sets the time of this FactoryResetResult. Time in UTC when the most recent factory reset of the Android or iOS device was done. If there is no sign of factory reset or the client is not a mobile device, the field will contain the epoch time (1 January 1970) in UTC. # noqa: E501 :param time: The time of this FactoryResetResult. # noqa: E501 - :type: datetime """ if time is None: raise ValueError("Invalid value for `time`, must not be `None`") # noqa: E501 @@ -70,24 +70,22 @@ def time(self, time): self._time = time @property - def timestamp(self): + def timestamp(self) -> int: """Gets the timestamp of this FactoryResetResult. # noqa: E501 Same value as it's in the `time` field but represented in timestamp format. # noqa: E501 :return: The timestamp of this FactoryResetResult. # noqa: E501 - :rtype: int """ return self._timestamp @timestamp.setter - def timestamp(self, timestamp): + def timestamp(self, timestamp: int): """Sets the timestamp of this FactoryResetResult. Same value as it's in the `time` field but represented in timestamp format. # noqa: E501 :param timestamp: The timestamp of this FactoryResetResult. # noqa: E501 - :type: int """ if timestamp is None: raise ValueError("Invalid value for `timestamp`, must not be `None`") # noqa: E501 diff --git a/fingerprint_pro_server_api_sdk/models/frida_result.py b/fingerprint_pro_server_api_sdk/models/frida_result.py index cf1edaa6..eab86f29 100644 --- a/fingerprint_pro_server_api_sdk/models/frida_result.py +++ b/fingerprint_pro_server_api_sdk/models/frida_result.py @@ -11,6 +11,7 @@ """ import re # noqa: F401 +from typing import Dict # noqa: F401 from fingerprint_pro_server_api_sdk.base_model import BaseModel @@ -41,24 +42,22 @@ def __init__(self, result=None): # noqa: E501 self.result = result @property - def result(self): + def result(self) -> bool: """Gets the result of this FridaResult. # noqa: E501 [Frida](https://frida.re/docs/) detection for Android and iOS devices. There are 2 values: • `true` - Frida detected • `false` - No signs of Frida or the client is not a mobile device. # noqa: E501 :return: The result of this FridaResult. # noqa: E501 - :rtype: bool """ return self._result @result.setter - def result(self, result): + def result(self, result: bool): """Sets the result of this FridaResult. [Frida](https://frida.re/docs/) detection for Android and iOS devices. There are 2 values: • `true` - Frida detected • `false` - No signs of Frida or the client is not a mobile device. # noqa: E501 :param result: The result of this FridaResult. # noqa: E501 - :type: bool """ if result is None: raise ValueError("Invalid value for `result`, must not be `None`") # noqa: E501 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 76bf2df3..bec4d797 100644 --- a/fingerprint_pro_server_api_sdk/models/high_activity_result.py +++ b/fingerprint_pro_server_api_sdk/models/high_activity_result.py @@ -11,6 +11,7 @@ """ import re # noqa: F401 +from typing import Dict # noqa: F401 from fingerprint_pro_server_api_sdk.base_model import BaseModel @@ -46,24 +47,22 @@ def __init__(self, result=None, daily_requests=None): # noqa: E501 self.daily_requests = daily_requests @property - def result(self): + def result(self) -> bool: """Gets the result of this HighActivityResult. # noqa: E501 Flag indicating whether the request came from a high activity visitor. # noqa: E501 :return: The result of this HighActivityResult. # noqa: E501 - :rtype: bool """ return self._result @result.setter - def result(self, result): + def result(self, result: bool): """Sets the result of this HighActivityResult. Flag indicating whether the request came from a high activity visitor. # noqa: E501 :param result: The result of this HighActivityResult. # noqa: E501 - :type: bool """ if result is None: raise ValueError("Invalid value for `result`, must not be `None`") # noqa: E501 @@ -71,24 +70,22 @@ def result(self, result): self._result = result @property - def daily_requests(self): + def daily_requests(self) -> float: """Gets the daily_requests of this HighActivityResult. # noqa: E501 Number of requests from the same visitor in the previous day. # noqa: E501 :return: The daily_requests of this HighActivityResult. # noqa: E501 - :rtype: float """ return self._daily_requests @daily_requests.setter - def daily_requests(self, daily_requests): + def daily_requests(self, daily_requests: float): """Sets the daily_requests of this HighActivityResult. Number of requests from the same visitor in the previous day. # noqa: E501 :param daily_requests: The daily_requests of this HighActivityResult. # noqa: E501 - :type: float """ self._daily_requests = daily_requests diff --git a/fingerprint_pro_server_api_sdk/models/identification_error.py b/fingerprint_pro_server_api_sdk/models/identification_error.py index 647e3c55..260c3e78 100644 --- a/fingerprint_pro_server_api_sdk/models/identification_error.py +++ b/fingerprint_pro_server_api_sdk/models/identification_error.py @@ -11,6 +11,7 @@ """ import re # noqa: F401 +from typing import Dict # noqa: F401 from fingerprint_pro_server_api_sdk.base_model import BaseModel @@ -45,24 +46,22 @@ def __init__(self, code=None, message=None): # noqa: E501 self.message = message @property - def code(self): + def code(self) -> str: """Gets the code of this IdentificationError. # noqa: E501 Error code: * `429 Too Many Requests` - the limit on secret API key requests per second has been exceeded * `Failed` - internal server error # noqa: E501 :return: The code of this IdentificationError. # noqa: E501 - :rtype: str """ return self._code @code.setter - def code(self, code): + def code(self, code: str): """Sets the code of this IdentificationError. Error code: * `429 Too Many Requests` - the limit on secret API key requests per second has been exceeded * `Failed` - internal server error # noqa: E501 :param code: The code of this IdentificationError. # noqa: E501 - :type: str """ if code is None: raise ValueError("Invalid value for `code`, must not be `None`") # noqa: E501 @@ -76,22 +75,20 @@ def code(self, code): self._code = code @property - def message(self): + def message(self) -> str: """Gets the message of this IdentificationError. # noqa: E501 :return: The message of this IdentificationError. # noqa: E501 - :rtype: str """ return self._message @message.setter - def message(self, message): + def message(self, message: str): """Sets the message of this IdentificationError. :param message: The message of this IdentificationError. # noqa: E501 - :type: str """ if message is None: raise ValueError("Invalid value for `message`, must not be `None`") # noqa: E501 diff --git a/fingerprint_pro_server_api_sdk/models/incognito_result.py b/fingerprint_pro_server_api_sdk/models/incognito_result.py index f6826e3f..f0ab2503 100644 --- a/fingerprint_pro_server_api_sdk/models/incognito_result.py +++ b/fingerprint_pro_server_api_sdk/models/incognito_result.py @@ -11,6 +11,7 @@ """ import re # noqa: F401 +from typing import Dict # noqa: F401 from fingerprint_pro_server_api_sdk.base_model import BaseModel @@ -41,24 +42,22 @@ def __init__(self, result=None): # noqa: E501 self.result = result @property - def result(self): + def result(self) -> bool: """Gets the result of this IncognitoResult. # noqa: E501 `true` if we detected incognito mode used in the browser, `false` otherwise. # noqa: E501 :return: The result of this IncognitoResult. # noqa: E501 - :rtype: bool """ return self._result @result.setter - def result(self, result): + def result(self, result: bool): """Sets the result of this IncognitoResult. `true` if we detected incognito mode used in the browser, `false` otherwise. # noqa: E501 :param result: The result of this IncognitoResult. # noqa: E501 - :type: bool """ if result is None: raise ValueError("Invalid value for `result`, must not be `None`") # noqa: E501 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 617a1a43..1073343e 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,9 @@ """ import re # noqa: F401 +from typing import Dict # 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 class IpBlockListResult(BaseModel): @@ -45,24 +47,22 @@ def __init__(self, result=None, details=None): # noqa: E501 self.details = details @property - def result(self): + def result(self) -> bool: """Gets the result of this IpBlockListResult. # noqa: E501 `true` if request IP address is part of any database that we use to search for known malicious actors, `false` otherwise. # noqa: E501 :return: The result of this IpBlockListResult. # noqa: E501 - :rtype: bool """ return self._result @result.setter - def result(self, result): + def result(self, result: bool): """Sets the result of this IpBlockListResult. `true` if request IP address is part of any database that we use to search for known malicious actors, `false` otherwise. # noqa: E501 :param result: The result of this IpBlockListResult. # noqa: E501 - :type: bool """ if result is None: raise ValueError("Invalid value for `result`, must not be `None`") # noqa: E501 @@ -70,22 +70,20 @@ def result(self, result): self._result = result @property - def details(self): + def details(self) -> IpBlockListResultDetails: """Gets the details of this IpBlockListResult. # noqa: E501 :return: The details of this IpBlockListResult. # noqa: E501 - :rtype: IpBlockListResultDetails """ return self._details @details.setter - def details(self, details): + def details(self, details: IpBlockListResultDetails): """Sets the details of this IpBlockListResult. :param details: The details of this IpBlockListResult. # noqa: E501 - :type: IpBlockListResultDetails """ if details is None: raise ValueError("Invalid value for `details`, must not be `None`") # noqa: E501 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 1e55ab6c..7db105e6 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,6 +11,7 @@ """ import re # noqa: F401 +from typing import Dict # noqa: F401 from fingerprint_pro_server_api_sdk.base_model import BaseModel @@ -45,24 +46,22 @@ def __init__(self, email_spam=None, attack_source=None): # noqa: E501 self.attack_source = attack_source @property - def email_spam(self): + def email_spam(self) -> bool: """Gets the email_spam of this IpBlockListResultDetails. # noqa: E501 IP address was part of a known email spam attack (SMTP). # noqa: E501 :return: The email_spam of this IpBlockListResultDetails. # noqa: E501 - :rtype: bool """ return self._email_spam @email_spam.setter - def email_spam(self, email_spam): + def email_spam(self, email_spam: bool): """Sets the email_spam of this IpBlockListResultDetails. IP address was part of a known email spam attack (SMTP). # noqa: E501 :param email_spam: The email_spam of this IpBlockListResultDetails. # noqa: E501 - :type: bool """ if email_spam is None: raise ValueError("Invalid value for `email_spam`, must not be `None`") # noqa: E501 @@ -70,24 +69,22 @@ def email_spam(self, email_spam): self._email_spam = email_spam @property - def attack_source(self): + def attack_source(self) -> bool: """Gets the attack_source of this IpBlockListResultDetails. # noqa: E501 IP address was part of a known network attack (SSH/HTTPS). # noqa: E501 :return: The attack_source of this IpBlockListResultDetails. # noqa: E501 - :rtype: bool """ return self._attack_source @attack_source.setter - def attack_source(self, attack_source): + def attack_source(self, attack_source: bool): """Sets the attack_source of this IpBlockListResultDetails. IP address was part of a known network attack (SSH/HTTPS). # noqa: E501 :param attack_source: The attack_source of this IpBlockListResultDetails. # noqa: E501 - :type: bool """ if attack_source is None: raise ValueError("Invalid value for `attack_source`, must not be `None`") # noqa: E501 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 881c119d..2f182980 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,10 @@ """ import re # noqa: F401 +from typing import Dict # 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 class IpInfoResult(BaseModel): @@ -50,43 +53,39 @@ def __init__(self, v4=None, v6=None): # noqa: E501 self.v6 = v6 @property - def v4(self): + def v4(self) -> IpInfoResultV4: """Gets the v4 of this IpInfoResult. # noqa: E501 :return: The v4 of this IpInfoResult. # noqa: E501 - :rtype: IpInfoResultV4 """ return self._v4 @v4.setter - def v4(self, v4): + def v4(self, v4: IpInfoResultV4): """Sets the v4 of this IpInfoResult. :param v4: The v4 of this IpInfoResult. # noqa: E501 - :type: IpInfoResultV4 """ self._v4 = v4 @property - def v6(self): + def v6(self) -> IpInfoResultV6: """Gets the v6 of this IpInfoResult. # noqa: E501 :return: The v6 of this IpInfoResult. # noqa: E501 - :rtype: IpInfoResultV6 """ return self._v6 @v6.setter - def v6(self, v6): + def v6(self, v6: IpInfoResultV6): """Sets the v6 of this IpInfoResult. :param v6: The v6 of this IpInfoResult. # noqa: E501 - :type: IpInfoResultV6 """ self._v6 = v6 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 e0519d1e..55ac6d3a 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,11 @@ """ import re # noqa: F401 +from typing import Dict # 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 +from fingerprint_pro_server_api_sdk.models.data_center import DataCenter class IpInfoResultV4(BaseModel): @@ -55,22 +59,20 @@ def __init__(self, address=None, geolocation=None, asn=None, datacenter=None): self.datacenter = datacenter @property - def address(self): + def address(self) -> str: """Gets the address of this IpInfoResultV4. # noqa: E501 :return: The address of this IpInfoResultV4. # noqa: E501 - :rtype: str """ return self._address @address.setter - def address(self, address): + def address(self, address: str): """Sets the address of this IpInfoResultV4. :param address: The address of this IpInfoResultV4. # noqa: E501 - :type: str """ if address is None: raise ValueError("Invalid value for `address`, must not be `None`") # noqa: E501 @@ -78,22 +80,20 @@ def address(self, address): self._address = address @property - def geolocation(self): + def geolocation(self) -> IPLocation: """Gets the geolocation of this IpInfoResultV4. # noqa: E501 :return: The geolocation of this IpInfoResultV4. # noqa: E501 - :rtype: IPLocation """ return self._geolocation @geolocation.setter - def geolocation(self, geolocation): + def geolocation(self, geolocation: IPLocation): """Sets the geolocation of this IpInfoResultV4. :param geolocation: The geolocation of this IpInfoResultV4. # noqa: E501 - :type: IPLocation """ if geolocation is None: raise ValueError("Invalid value for `geolocation`, must not be `None`") # noqa: E501 @@ -101,43 +101,39 @@ def geolocation(self, geolocation): self._geolocation = geolocation @property - def asn(self): + def asn(self) -> ASN: """Gets the asn of this IpInfoResultV4. # noqa: E501 :return: The asn of this IpInfoResultV4. # noqa: E501 - :rtype: ASN """ return self._asn @asn.setter - def asn(self, asn): + def asn(self, asn: ASN): """Sets the asn of this IpInfoResultV4. :param asn: The asn of this IpInfoResultV4. # noqa: E501 - :type: ASN """ self._asn = asn @property - def datacenter(self): + def datacenter(self) -> DataCenter: """Gets the datacenter of this IpInfoResultV4. # noqa: E501 :return: The datacenter of this IpInfoResultV4. # noqa: E501 - :rtype: DataCenter """ return self._datacenter @datacenter.setter - def datacenter(self, datacenter): + def datacenter(self, datacenter: DataCenter): """Sets the datacenter of this IpInfoResultV4. :param datacenter: The datacenter of this IpInfoResultV4. # noqa: E501 - :type: DataCenter """ self._datacenter = datacenter 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 835a3702..694d7ad7 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,11 @@ """ import re # noqa: F401 +from typing import Dict # 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 +from fingerprint_pro_server_api_sdk.models.data_center import DataCenter class IpInfoResultV6(BaseModel): @@ -55,22 +59,20 @@ def __init__(self, address=None, geolocation=None, asn=None, datacenter=None): self.datacenter = datacenter @property - def address(self): + def address(self) -> str: """Gets the address of this IpInfoResultV6. # noqa: E501 :return: The address of this IpInfoResultV6. # noqa: E501 - :rtype: str """ return self._address @address.setter - def address(self, address): + def address(self, address: str): """Sets the address of this IpInfoResultV6. :param address: The address of this IpInfoResultV6. # noqa: E501 - :type: str """ if address is None: raise ValueError("Invalid value for `address`, must not be `None`") # noqa: E501 @@ -78,22 +80,20 @@ def address(self, address): self._address = address @property - def geolocation(self): + def geolocation(self) -> IPLocation: """Gets the geolocation of this IpInfoResultV6. # noqa: E501 :return: The geolocation of this IpInfoResultV6. # noqa: E501 - :rtype: IPLocation """ return self._geolocation @geolocation.setter - def geolocation(self, geolocation): + def geolocation(self, geolocation: IPLocation): """Sets the geolocation of this IpInfoResultV6. :param geolocation: The geolocation of this IpInfoResultV6. # noqa: E501 - :type: IPLocation """ if geolocation is None: raise ValueError("Invalid value for `geolocation`, must not be `None`") # noqa: E501 @@ -101,43 +101,39 @@ def geolocation(self, geolocation): self._geolocation = geolocation @property - def asn(self): + def asn(self) -> ASN: """Gets the asn of this IpInfoResultV6. # noqa: E501 :return: The asn of this IpInfoResultV6. # noqa: E501 - :rtype: ASN """ return self._asn @asn.setter - def asn(self, asn): + def asn(self, asn: ASN): """Sets the asn of this IpInfoResultV6. :param asn: The asn of this IpInfoResultV6. # noqa: E501 - :type: ASN """ self._asn = asn @property - def datacenter(self): + def datacenter(self) -> DataCenter: """Gets the datacenter of this IpInfoResultV6. # noqa: E501 :return: The datacenter of this IpInfoResultV6. # noqa: E501 - :rtype: DataCenter """ return self._datacenter @datacenter.setter - def datacenter(self, datacenter): + def datacenter(self, datacenter: DataCenter): """Sets the datacenter of this IpInfoResultV6. :param datacenter: The datacenter of this IpInfoResultV6. # noqa: E501 - :type: DataCenter """ self._datacenter = datacenter diff --git a/fingerprint_pro_server_api_sdk/models/ip_location.py b/fingerprint_pro_server_api_sdk/models/ip_location.py index 3600344c..70455dc8 100644 --- a/fingerprint_pro_server_api_sdk/models/ip_location.py +++ b/fingerprint_pro_server_api_sdk/models/ip_location.py @@ -11,7 +11,12 @@ """ import re # noqa: F401 +from typing import Dict # 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 +from fingerprint_pro_server_api_sdk.models.location import Location +from fingerprint_pro_server_api_sdk.models.subdivision import Subdivision class IPLocation(BaseModel): @@ -82,192 +87,174 @@ def __init__(self, accuracy_radius=None, latitude=None, longitude=None, postal_c self.subdivisions = subdivisions @property - def accuracy_radius(self): + def accuracy_radius(self) -> 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 :return: The accuracy_radius of this IPLocation. # noqa: E501 - :rtype: int """ return self._accuracy_radius @accuracy_radius.setter - def accuracy_radius(self, accuracy_radius): + def accuracy_radius(self, accuracy_radius: 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 :param accuracy_radius: The accuracy_radius of this IPLocation. # noqa: E501 - :type: int """ self._accuracy_radius = accuracy_radius @property - def latitude(self): + def latitude(self) -> float: """Gets the latitude of this IPLocation. # noqa: E501 :return: The latitude of this IPLocation. # noqa: E501 - :rtype: float """ return self._latitude @latitude.setter - def latitude(self, latitude): + def latitude(self, latitude: float): """Sets the latitude of this IPLocation. :param latitude: The latitude of this IPLocation. # noqa: E501 - :type: float """ self._latitude = latitude @property - def longitude(self): + def longitude(self) -> float: """Gets the longitude of this IPLocation. # noqa: E501 :return: The longitude of this IPLocation. # noqa: E501 - :rtype: float """ return self._longitude @longitude.setter - def longitude(self, longitude): + def longitude(self, longitude: float): """Sets the longitude of this IPLocation. :param longitude: The longitude of this IPLocation. # noqa: E501 - :type: float """ self._longitude = longitude @property - def postal_code(self): + def postal_code(self) -> str: """Gets the postal_code of this IPLocation. # noqa: E501 :return: The postal_code of this IPLocation. # noqa: E501 - :rtype: str """ return self._postal_code @postal_code.setter - def postal_code(self, postal_code): + def postal_code(self, postal_code: str): """Sets the postal_code of this IPLocation. :param postal_code: The postal_code of this IPLocation. # noqa: E501 - :type: str """ self._postal_code = postal_code @property - def timezone(self): + def timezone(self) -> str: """Gets the timezone of this IPLocation. # noqa: E501 :return: The timezone of this IPLocation. # noqa: E501 - :rtype: str """ return self._timezone @timezone.setter - def timezone(self, timezone): + def timezone(self, timezone: str): """Sets the timezone of this IPLocation. :param timezone: The timezone of this IPLocation. # noqa: E501 - :type: str """ self._timezone = timezone @property - def city(self): + def city(self) -> IPLocationCity: """Gets the city of this IPLocation. # noqa: E501 :return: The city of this IPLocation. # noqa: E501 - :rtype: IPLocationCity """ return self._city @city.setter - def city(self, city): + def city(self, city: IPLocationCity): """Sets the city of this IPLocation. :param city: The city of this IPLocation. # noqa: E501 - :type: IPLocationCity """ self._city = city @property - def country(self): + def country(self) -> Location: """Gets the country of this IPLocation. # noqa: E501 :return: The country of this IPLocation. # noqa: E501 - :rtype: Location """ return self._country @country.setter - def country(self, country): + def country(self, country: Location): """Sets the country of this IPLocation. :param country: The country of this IPLocation. # noqa: E501 - :type: Location """ self._country = country @property - def continent(self): + def continent(self) -> Location: """Gets the continent of this IPLocation. # noqa: E501 :return: The continent of this IPLocation. # noqa: E501 - :rtype: Location """ return self._continent @continent.setter - def continent(self, continent): + def continent(self, continent: Location): """Sets the continent of this IPLocation. :param continent: The continent of this IPLocation. # noqa: E501 - :type: Location """ self._continent = continent @property - def subdivisions(self): + def subdivisions(self) -> list[Subdivision]: """Gets the subdivisions of this IPLocation. # noqa: E501 :return: The subdivisions of this IPLocation. # noqa: E501 - :rtype: list[Subdivision] """ return self._subdivisions @subdivisions.setter - def subdivisions(self, subdivisions): + def subdivisions(self, subdivisions: list[Subdivision]): """Sets the subdivisions of this IPLocation. :param subdivisions: The subdivisions of this IPLocation. # noqa: E501 - :type: list[Subdivision] """ self._subdivisions = subdivisions 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 9d456de6..730c8bd4 100644 --- a/fingerprint_pro_server_api_sdk/models/ip_location_city.py +++ b/fingerprint_pro_server_api_sdk/models/ip_location_city.py @@ -11,6 +11,7 @@ """ import re # noqa: F401 +from typing import Dict # noqa: F401 from fingerprint_pro_server_api_sdk.base_model import BaseModel @@ -42,22 +43,20 @@ def __init__(self, name=None): # noqa: E501 self.name = name @property - def name(self): + def name(self) -> str: """Gets the name of this IPLocationCity. # noqa: E501 :return: The name of this IPLocationCity. # noqa: E501 - :rtype: str """ return self._name @name.setter - def name(self, name): + def name(self, name: str): """Sets the name of this IPLocationCity. :param name: The name of this IPLocationCity. # noqa: E501 - :type: str """ self._name = name diff --git a/fingerprint_pro_server_api_sdk/models/jailbroken_result.py b/fingerprint_pro_server_api_sdk/models/jailbroken_result.py index c1d62d53..2458957e 100644 --- a/fingerprint_pro_server_api_sdk/models/jailbroken_result.py +++ b/fingerprint_pro_server_api_sdk/models/jailbroken_result.py @@ -11,6 +11,7 @@ """ import re # noqa: F401 +from typing import Dict # noqa: F401 from fingerprint_pro_server_api_sdk.base_model import BaseModel @@ -41,24 +42,22 @@ def __init__(self, result=None): # noqa: E501 self.result = result @property - def result(self): + def result(self) -> bool: """Gets the result of this JailbrokenResult. # noqa: E501 iOS specific jailbreak detection. There are 2 values: • `true` - Jailbreak detected • `false` - No signs of jailbreak or the client is not iOS. # noqa: E501 :return: The result of this JailbrokenResult. # noqa: E501 - :rtype: bool """ return self._result @result.setter - def result(self, result): + def result(self, result: bool): """Sets the result of this JailbrokenResult. iOS specific jailbreak detection. There are 2 values: • `true` - Jailbreak detected • `false` - No signs of jailbreak or the client is not iOS. # noqa: E501 :param result: The result of this JailbrokenResult. # noqa: E501 - :type: bool """ if result is None: raise ValueError("Invalid value for `result`, must not be `None`") # noqa: E501 diff --git a/fingerprint_pro_server_api_sdk/models/location.py b/fingerprint_pro_server_api_sdk/models/location.py index 1461b75f..ebe577e0 100644 --- a/fingerprint_pro_server_api_sdk/models/location.py +++ b/fingerprint_pro_server_api_sdk/models/location.py @@ -11,6 +11,7 @@ """ import re # noqa: F401 +from typing import Dict # noqa: F401 from fingerprint_pro_server_api_sdk.base_model import BaseModel @@ -45,22 +46,20 @@ def __init__(self, code=None, name=None): # noqa: E501 self.name = name @property - def code(self): + def code(self) -> str: """Gets the code of this Location. # noqa: E501 :return: The code of this Location. # noqa: E501 - :rtype: str """ return self._code @code.setter - def code(self, code): + def code(self, code: str): """Sets the code of this Location. :param code: The code of this Location. # noqa: E501 - :type: str """ if code is None: raise ValueError("Invalid value for `code`, must not be `None`") # noqa: E501 @@ -68,22 +67,20 @@ def code(self, code): self._code = code @property - def name(self): + def name(self) -> str: """Gets the name of this Location. # noqa: E501 :return: The name of this Location. # noqa: E501 - :rtype: str """ return self._name @name.setter - def name(self, name): + def name(self, name: str): """Sets the name of this Location. :param name: The name of this Location. # noqa: E501 - :type: str """ if name is None: raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501 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 3ab10f84..6abebfd9 100644 --- a/fingerprint_pro_server_api_sdk/models/location_spoofing_result.py +++ b/fingerprint_pro_server_api_sdk/models/location_spoofing_result.py @@ -11,6 +11,7 @@ """ import re # noqa: F401 +from typing import Dict # noqa: F401 from fingerprint_pro_server_api_sdk.base_model import BaseModel @@ -41,24 +42,22 @@ def __init__(self, result=None): # noqa: E501 self.result = result @property - def result(self): + def result(self) -> bool: """Gets the result of this LocationSpoofingResult. # noqa: E501 Flag indicating whether the request came from a mobile device with location spoofing enabled. # noqa: E501 :return: The result of this LocationSpoofingResult. # noqa: E501 - :rtype: bool """ return self._result @result.setter - def result(self, result): + def result(self, result: bool): """Sets the result of this LocationSpoofingResult. Flag indicating whether the request came from a mobile device with location spoofing enabled. # noqa: E501 :param result: The result of this LocationSpoofingResult. # noqa: E501 - :type: bool """ if result is None: raise ValueError("Invalid value for `result`, must not be `None`") # noqa: E501 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 03f02874..650bca48 100644 --- a/fingerprint_pro_server_api_sdk/models/privacy_settings_result.py +++ b/fingerprint_pro_server_api_sdk/models/privacy_settings_result.py @@ -11,6 +11,7 @@ """ import re # noqa: F401 +from typing import Dict # noqa: F401 from fingerprint_pro_server_api_sdk.base_model import BaseModel @@ -41,24 +42,22 @@ def __init__(self, result=None): # noqa: E501 self.result = result @property - def result(self): + def result(self) -> bool: """Gets the result of this PrivacySettingsResult. # noqa: E501 `true` if the request is from a privacy aware browser (e.g. Tor) or from a browser in which fingerprinting is blocked. Otherwise `false`. # noqa: E501 :return: The result of this PrivacySettingsResult. # noqa: E501 - :rtype: bool """ return self._result @result.setter - def result(self, result): + def result(self, result: bool): """Sets the result of this PrivacySettingsResult. `true` if the request is from a privacy aware browser (e.g. Tor) or from a browser in which fingerprinting is blocked. Otherwise `false`. # noqa: E501 :param result: The result of this PrivacySettingsResult. # noqa: E501 - :type: bool """ if result is None: raise ValueError("Invalid value for `result`, must not be `None`") # noqa: E501 diff --git a/fingerprint_pro_server_api_sdk/models/product_error.py b/fingerprint_pro_server_api_sdk/models/product_error.py index ba29bc81..0e8a8304 100644 --- a/fingerprint_pro_server_api_sdk/models/product_error.py +++ b/fingerprint_pro_server_api_sdk/models/product_error.py @@ -11,6 +11,7 @@ """ import re # noqa: F401 +from typing import Dict # noqa: F401 from fingerprint_pro_server_api_sdk.base_model import BaseModel @@ -45,24 +46,22 @@ def __init__(self, code=None, message=None): # noqa: E501 self.message = message @property - def code(self): + def code(self) -> str: """Gets the code of this ProductError. # noqa: E501 Error code: * `TooManyRequests` - the limit on secret API key requests per second has been exceeded * `Failed` - internal server error # noqa: E501 :return: The code of this ProductError. # noqa: E501 - :rtype: str """ return self._code @code.setter - def code(self, code): + def code(self, code: str): """Sets the code of this ProductError. Error code: * `TooManyRequests` - the limit on secret API key requests per second has been exceeded * `Failed` - internal server error # noqa: E501 :param code: The code of this ProductError. # noqa: E501 - :type: str """ if code is None: raise ValueError("Invalid value for `code`, must not be `None`") # noqa: E501 @@ -76,22 +75,20 @@ def code(self, code): self._code = code @property - def message(self): + def message(self) -> str: """Gets the message of this ProductError. # noqa: E501 :return: The message of this ProductError. # noqa: E501 - :rtype: str """ return self._message @message.setter - def message(self, message): + def message(self, message: str): """Sets the message of this ProductError. :param message: The message of this ProductError. # noqa: E501 - :type: str """ if message is None: raise ValueError("Invalid value for `message`, must not be `None`") # noqa: E501 diff --git a/fingerprint_pro_server_api_sdk/models/products_response.py b/fingerprint_pro_server_api_sdk/models/products_response.py index 851b2ce6..341c0f97 100644 --- a/fingerprint_pro_server_api_sdk/models/products_response.py +++ b/fingerprint_pro_server_api_sdk/models/products_response.py @@ -11,7 +11,31 @@ """ import re # noqa: F401 +from typing import Dict # 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 +from fingerprint_pro_server_api_sdk.models.signal_response_ip_info import SignalResponseIpInfo +from fingerprint_pro_server_api_sdk.models.signal_response_incognito import SignalResponseIncognito +from fingerprint_pro_server_api_sdk.models.signal_response_root_apps import SignalResponseRootApps +from fingerprint_pro_server_api_sdk.models.signal_response_emulator import SignalResponseEmulator +from fingerprint_pro_server_api_sdk.models.signal_response_cloned_app import SignalResponseClonedApp +from fingerprint_pro_server_api_sdk.models.signal_response_factory_reset import SignalResponseFactoryReset +from fingerprint_pro_server_api_sdk.models.signal_response_jailbroken import SignalResponseJailbroken +from fingerprint_pro_server_api_sdk.models.signal_response_frida import SignalResponseFrida +from fingerprint_pro_server_api_sdk.models.signal_response_ip_blocklist import SignalResponseIpBlocklist +from fingerprint_pro_server_api_sdk.models.signal_response_tor import SignalResponseTor +from fingerprint_pro_server_api_sdk.models.signal_response_privacy_settings import SignalResponsePrivacySettings +from fingerprint_pro_server_api_sdk.models.signal_response_virtual_machine import SignalResponseVirtualMachine +from fingerprint_pro_server_api_sdk.models.signal_response_vpn import SignalResponseVpn +from fingerprint_pro_server_api_sdk.models.signal_response_proxy import SignalResponseProxy +from fingerprint_pro_server_api_sdk.models.signal_response_tampering import SignalResponseTampering +from fingerprint_pro_server_api_sdk.models.signal_response_high_activity import SignalResponseHighActivity +from fingerprint_pro_server_api_sdk.models.signal_response_location_spoofing import SignalResponseLocationSpoofing +from fingerprint_pro_server_api_sdk.models.signal_response_suspect_score import SignalResponseSuspectScore +from fingerprint_pro_server_api_sdk.models.signal_response_raw_device_attributes import SignalResponseRawDeviceAttributes +from fingerprint_pro_server_api_sdk.models.signal_response_remote_control import SignalResponseRemoteControl +from fingerprint_pro_server_api_sdk.models.signal_response_velocity import SignalResponseVelocity class ProductsResponse(BaseModel): @@ -155,484 +179,438 @@ def __init__(self, identification=None, botd=None, ip_info=None, incognito=None, self.velocity = velocity @property - def identification(self): + def identification(self) -> ProductsResponseIdentification: """Gets the identification of this ProductsResponse. # noqa: E501 :return: The identification of this ProductsResponse. # noqa: E501 - :rtype: ProductsResponseIdentification """ return self._identification @identification.setter - def identification(self, identification): + def identification(self, identification: ProductsResponseIdentification): """Sets the identification of this ProductsResponse. :param identification: The identification of this ProductsResponse. # noqa: E501 - :type: ProductsResponseIdentification """ self._identification = identification @property - def botd(self): + def botd(self) -> ProductsResponseBotd: """Gets the botd of this ProductsResponse. # noqa: E501 :return: The botd of this ProductsResponse. # noqa: E501 - :rtype: ProductsResponseBotd """ return self._botd @botd.setter - def botd(self, botd): + def botd(self, botd: ProductsResponseBotd): """Sets the botd of this ProductsResponse. :param botd: The botd of this ProductsResponse. # noqa: E501 - :type: ProductsResponseBotd """ self._botd = botd @property - def ip_info(self): + def ip_info(self) -> SignalResponseIpInfo: """Gets the ip_info of this ProductsResponse. # noqa: E501 :return: The ip_info of this ProductsResponse. # noqa: E501 - :rtype: SignalResponseIpInfo """ return self._ip_info @ip_info.setter - def ip_info(self, ip_info): + def ip_info(self, ip_info: SignalResponseIpInfo): """Sets the ip_info of this ProductsResponse. :param ip_info: The ip_info of this ProductsResponse. # noqa: E501 - :type: SignalResponseIpInfo """ self._ip_info = ip_info @property - def incognito(self): + def incognito(self) -> SignalResponseIncognito: """Gets the incognito of this ProductsResponse. # noqa: E501 :return: The incognito of this ProductsResponse. # noqa: E501 - :rtype: SignalResponseIncognito """ return self._incognito @incognito.setter - def incognito(self, incognito): + def incognito(self, incognito: SignalResponseIncognito): """Sets the incognito of this ProductsResponse. :param incognito: The incognito of this ProductsResponse. # noqa: E501 - :type: SignalResponseIncognito """ self._incognito = incognito @property - def root_apps(self): + def root_apps(self) -> SignalResponseRootApps: """Gets the root_apps of this ProductsResponse. # noqa: E501 :return: The root_apps of this ProductsResponse. # noqa: E501 - :rtype: SignalResponseRootApps """ return self._root_apps @root_apps.setter - def root_apps(self, root_apps): + def root_apps(self, root_apps: SignalResponseRootApps): """Sets the root_apps of this ProductsResponse. :param root_apps: The root_apps of this ProductsResponse. # noqa: E501 - :type: SignalResponseRootApps """ self._root_apps = root_apps @property - def emulator(self): + def emulator(self) -> SignalResponseEmulator: """Gets the emulator of this ProductsResponse. # noqa: E501 :return: The emulator of this ProductsResponse. # noqa: E501 - :rtype: SignalResponseEmulator """ return self._emulator @emulator.setter - def emulator(self, emulator): + def emulator(self, emulator: SignalResponseEmulator): """Sets the emulator of this ProductsResponse. :param emulator: The emulator of this ProductsResponse. # noqa: E501 - :type: SignalResponseEmulator """ self._emulator = emulator @property - def cloned_app(self): + def cloned_app(self) -> SignalResponseClonedApp: """Gets the cloned_app of this ProductsResponse. # noqa: E501 :return: The cloned_app of this ProductsResponse. # noqa: E501 - :rtype: SignalResponseClonedApp """ return self._cloned_app @cloned_app.setter - def cloned_app(self, cloned_app): + def cloned_app(self, cloned_app: SignalResponseClonedApp): """Sets the cloned_app of this ProductsResponse. :param cloned_app: The cloned_app of this ProductsResponse. # noqa: E501 - :type: SignalResponseClonedApp """ self._cloned_app = cloned_app @property - def factory_reset(self): + def factory_reset(self) -> SignalResponseFactoryReset: """Gets the factory_reset of this ProductsResponse. # noqa: E501 :return: The factory_reset of this ProductsResponse. # noqa: E501 - :rtype: SignalResponseFactoryReset """ return self._factory_reset @factory_reset.setter - def factory_reset(self, factory_reset): + def factory_reset(self, factory_reset: SignalResponseFactoryReset): """Sets the factory_reset of this ProductsResponse. :param factory_reset: The factory_reset of this ProductsResponse. # noqa: E501 - :type: SignalResponseFactoryReset """ self._factory_reset = factory_reset @property - def jailbroken(self): + def jailbroken(self) -> SignalResponseJailbroken: """Gets the jailbroken of this ProductsResponse. # noqa: E501 :return: The jailbroken of this ProductsResponse. # noqa: E501 - :rtype: SignalResponseJailbroken """ return self._jailbroken @jailbroken.setter - def jailbroken(self, jailbroken): + def jailbroken(self, jailbroken: SignalResponseJailbroken): """Sets the jailbroken of this ProductsResponse. :param jailbroken: The jailbroken of this ProductsResponse. # noqa: E501 - :type: SignalResponseJailbroken """ self._jailbroken = jailbroken @property - def frida(self): + def frida(self) -> SignalResponseFrida: """Gets the frida of this ProductsResponse. # noqa: E501 :return: The frida of this ProductsResponse. # noqa: E501 - :rtype: SignalResponseFrida """ return self._frida @frida.setter - def frida(self, frida): + def frida(self, frida: SignalResponseFrida): """Sets the frida of this ProductsResponse. :param frida: The frida of this ProductsResponse. # noqa: E501 - :type: SignalResponseFrida """ self._frida = frida @property - def ip_blocklist(self): + def ip_blocklist(self) -> SignalResponseIpBlocklist: """Gets the ip_blocklist of this ProductsResponse. # noqa: E501 :return: The ip_blocklist of this ProductsResponse. # noqa: E501 - :rtype: SignalResponseIpBlocklist """ return self._ip_blocklist @ip_blocklist.setter - def ip_blocklist(self, ip_blocklist): + def ip_blocklist(self, ip_blocklist: SignalResponseIpBlocklist): """Sets the ip_blocklist of this ProductsResponse. :param ip_blocklist: The ip_blocklist of this ProductsResponse. # noqa: E501 - :type: SignalResponseIpBlocklist """ self._ip_blocklist = ip_blocklist @property - def tor(self): + def tor(self) -> SignalResponseTor: """Gets the tor of this ProductsResponse. # noqa: E501 :return: The tor of this ProductsResponse. # noqa: E501 - :rtype: SignalResponseTor """ return self._tor @tor.setter - def tor(self, tor): + def tor(self, tor: SignalResponseTor): """Sets the tor of this ProductsResponse. :param tor: The tor of this ProductsResponse. # noqa: E501 - :type: SignalResponseTor """ self._tor = tor @property - def privacy_settings(self): + def privacy_settings(self) -> SignalResponsePrivacySettings: """Gets the privacy_settings of this ProductsResponse. # noqa: E501 :return: The privacy_settings of this ProductsResponse. # noqa: E501 - :rtype: SignalResponsePrivacySettings """ return self._privacy_settings @privacy_settings.setter - def privacy_settings(self, privacy_settings): + def privacy_settings(self, privacy_settings: SignalResponsePrivacySettings): """Sets the privacy_settings of this ProductsResponse. :param privacy_settings: The privacy_settings of this ProductsResponse. # noqa: E501 - :type: SignalResponsePrivacySettings """ self._privacy_settings = privacy_settings @property - def virtual_machine(self): + def virtual_machine(self) -> SignalResponseVirtualMachine: """Gets the virtual_machine of this ProductsResponse. # noqa: E501 :return: The virtual_machine of this ProductsResponse. # noqa: E501 - :rtype: SignalResponseVirtualMachine """ return self._virtual_machine @virtual_machine.setter - def virtual_machine(self, virtual_machine): + def virtual_machine(self, virtual_machine: SignalResponseVirtualMachine): """Sets the virtual_machine of this ProductsResponse. :param virtual_machine: The virtual_machine of this ProductsResponse. # noqa: E501 - :type: SignalResponseVirtualMachine """ self._virtual_machine = virtual_machine @property - def vpn(self): + def vpn(self) -> SignalResponseVpn: """Gets the vpn of this ProductsResponse. # noqa: E501 :return: The vpn of this ProductsResponse. # noqa: E501 - :rtype: SignalResponseVpn """ return self._vpn @vpn.setter - def vpn(self, vpn): + def vpn(self, vpn: SignalResponseVpn): """Sets the vpn of this ProductsResponse. :param vpn: The vpn of this ProductsResponse. # noqa: E501 - :type: SignalResponseVpn """ self._vpn = vpn @property - def proxy(self): + def proxy(self) -> SignalResponseProxy: """Gets the proxy of this ProductsResponse. # noqa: E501 :return: The proxy of this ProductsResponse. # noqa: E501 - :rtype: SignalResponseProxy """ return self._proxy @proxy.setter - def proxy(self, proxy): + def proxy(self, proxy: SignalResponseProxy): """Sets the proxy of this ProductsResponse. :param proxy: The proxy of this ProductsResponse. # noqa: E501 - :type: SignalResponseProxy """ self._proxy = proxy @property - def tampering(self): + def tampering(self) -> SignalResponseTampering: """Gets the tampering of this ProductsResponse. # noqa: E501 :return: The tampering of this ProductsResponse. # noqa: E501 - :rtype: SignalResponseTampering """ return self._tampering @tampering.setter - def tampering(self, tampering): + def tampering(self, tampering: SignalResponseTampering): """Sets the tampering of this ProductsResponse. :param tampering: The tampering of this ProductsResponse. # noqa: E501 - :type: SignalResponseTampering """ self._tampering = tampering @property - def high_activity(self): + def high_activity(self) -> SignalResponseHighActivity: """Gets the high_activity of this ProductsResponse. # noqa: E501 :return: The high_activity of this ProductsResponse. # noqa: E501 - :rtype: SignalResponseHighActivity """ return self._high_activity @high_activity.setter - def high_activity(self, high_activity): + def high_activity(self, high_activity: SignalResponseHighActivity): """Sets the high_activity of this ProductsResponse. :param high_activity: The high_activity of this ProductsResponse. # noqa: E501 - :type: SignalResponseHighActivity """ self._high_activity = high_activity @property - def location_spoofing(self): + def location_spoofing(self) -> SignalResponseLocationSpoofing: """Gets the location_spoofing of this ProductsResponse. # noqa: E501 :return: The location_spoofing of this ProductsResponse. # noqa: E501 - :rtype: SignalResponseLocationSpoofing """ return self._location_spoofing @location_spoofing.setter - def location_spoofing(self, location_spoofing): + def location_spoofing(self, location_spoofing: SignalResponseLocationSpoofing): """Sets the location_spoofing of this ProductsResponse. :param location_spoofing: The location_spoofing of this ProductsResponse. # noqa: E501 - :type: SignalResponseLocationSpoofing """ self._location_spoofing = location_spoofing @property - def suspect_score(self): + def suspect_score(self) -> SignalResponseSuspectScore: """Gets the suspect_score of this ProductsResponse. # noqa: E501 :return: The suspect_score of this ProductsResponse. # noqa: E501 - :rtype: SignalResponseSuspectScore """ return self._suspect_score @suspect_score.setter - def suspect_score(self, suspect_score): + def suspect_score(self, suspect_score: SignalResponseSuspectScore): """Sets the suspect_score of this ProductsResponse. :param suspect_score: The suspect_score of this ProductsResponse. # noqa: E501 - :type: SignalResponseSuspectScore """ self._suspect_score = suspect_score @property - def raw_device_attributes(self): + def raw_device_attributes(self) -> SignalResponseRawDeviceAttributes: """Gets the raw_device_attributes of this ProductsResponse. # noqa: E501 :return: The raw_device_attributes of this ProductsResponse. # noqa: E501 - :rtype: SignalResponseRawDeviceAttributes """ return self._raw_device_attributes @raw_device_attributes.setter - def raw_device_attributes(self, raw_device_attributes): + def raw_device_attributes(self, raw_device_attributes: SignalResponseRawDeviceAttributes): """Sets the raw_device_attributes of this ProductsResponse. :param raw_device_attributes: The raw_device_attributes of this ProductsResponse. # noqa: E501 - :type: SignalResponseRawDeviceAttributes """ self._raw_device_attributes = raw_device_attributes @property - def remote_control(self): + def remote_control(self) -> SignalResponseRemoteControl: """Gets the remote_control of this ProductsResponse. # noqa: E501 :return: The remote_control of this ProductsResponse. # noqa: E501 - :rtype: SignalResponseRemoteControl """ return self._remote_control @remote_control.setter - def remote_control(self, remote_control): + def remote_control(self, remote_control: SignalResponseRemoteControl): """Sets the remote_control of this ProductsResponse. :param remote_control: The remote_control of this ProductsResponse. # noqa: E501 - :type: SignalResponseRemoteControl """ self._remote_control = remote_control @property - def velocity(self): + def velocity(self) -> SignalResponseVelocity: """Gets the velocity of this ProductsResponse. # noqa: E501 :return: The velocity of this ProductsResponse. # noqa: E501 - :rtype: SignalResponseVelocity """ return self._velocity @velocity.setter - def velocity(self, velocity): + def velocity(self, velocity: SignalResponseVelocity): """Sets the velocity of this ProductsResponse. :param velocity: The velocity of this ProductsResponse. # noqa: E501 - :type: SignalResponseVelocity """ self._velocity = velocity 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 1fa6d18c..17573053 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,10 @@ """ import re # noqa: F401 +from typing import Dict # 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 class ProductsResponseBotd(BaseModel): @@ -47,43 +50,39 @@ def __init__(self, data=None, error=None): # noqa: E501 self.error = error @property - def data(self): + def data(self) -> BotdResult: """Gets the data of this ProductsResponseBotd. # noqa: E501 :return: The data of this ProductsResponseBotd. # noqa: E501 - :rtype: BotdResult """ return self._data @data.setter - def data(self, data): + def data(self, data: BotdResult): """Sets the data of this ProductsResponseBotd. :param data: The data of this ProductsResponseBotd. # noqa: E501 - :type: BotdResult """ self._data = data @property - def error(self): + def error(self) -> ProductError: """Gets the error of this ProductsResponseBotd. # noqa: E501 :return: The error of this ProductsResponseBotd. # noqa: E501 - :rtype: ProductError """ return self._error @error.setter - def error(self, error): + def error(self, error: ProductError): """Sets the error of this ProductsResponseBotd. :param error: The error of this ProductsResponseBotd. # noqa: E501 - :type: ProductError """ self._error = error 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 a8c0c87a..1554f693 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,10 @@ """ import re # noqa: F401 +from typing import Dict # 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 class ProductsResponseIdentification(BaseModel): @@ -47,43 +50,39 @@ def __init__(self, data=None, error=None): # noqa: E501 self.error = error @property - def data(self): + def data(self) -> ProductsResponseIdentificationData: """Gets the data of this ProductsResponseIdentification. # noqa: E501 :return: The data of this ProductsResponseIdentification. # noqa: E501 - :rtype: ProductsResponseIdentificationData """ return self._data @data.setter - def data(self, data): + def data(self, data: ProductsResponseIdentificationData): """Sets the data of this ProductsResponseIdentification. :param data: The data of this ProductsResponseIdentification. # noqa: E501 - :type: ProductsResponseIdentificationData """ self._data = data @property - def error(self): + def error(self) -> IdentificationError: """Gets the error of this ProductsResponseIdentification. # noqa: E501 :return: The error of this ProductsResponseIdentification. # noqa: E501 - :rtype: IdentificationError """ return self._error @error.setter - def error(self, error): + def error(self, error: IdentificationError): """Sets the error of this ProductsResponseIdentification. :param error: The error of this ProductsResponseIdentification. # noqa: E501 - :type: IdentificationError """ self._error = error 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 2579cc83..2617d088 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,14 @@ """ import re # noqa: F401 +from typing import Dict # 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 +from datetime import datetime +from fingerprint_pro_server_api_sdk.models.confidence import Confidence +from fingerprint_pro_server_api_sdk.models.seen_at import SeenAt +from fingerprint_pro_server_api_sdk.models.seen_at import SeenAt class ProductsResponseIdentificationData(BaseModel): @@ -100,24 +107,22 @@ def __init__(self, request_id=None, browser_details=None, incognito=None, ip=Non self.visitor_id = visitor_id @property - def request_id(self): + def request_id(self) -> str: """Gets the request_id of this ProductsResponseIdentificationData. # noqa: E501 Unique identifier of the user's identification request. # noqa: E501 :return: The request_id of this ProductsResponseIdentificationData. # noqa: E501 - :rtype: str """ return self._request_id @request_id.setter - def request_id(self, request_id): + def request_id(self, request_id: str): """Sets the request_id of this ProductsResponseIdentificationData. Unique identifier of the user's identification request. # noqa: E501 :param request_id: The request_id of this ProductsResponseIdentificationData. # noqa: E501 - :type: str """ if request_id is None: raise ValueError("Invalid value for `request_id`, must not be `None`") # noqa: E501 @@ -125,22 +130,20 @@ def request_id(self, request_id): self._request_id = request_id @property - def browser_details(self): + def browser_details(self) -> BrowserDetails: """Gets the browser_details of this ProductsResponseIdentificationData. # noqa: E501 :return: The browser_details of this ProductsResponseIdentificationData. # noqa: E501 - :rtype: BrowserDetails """ return self._browser_details @browser_details.setter - def browser_details(self, browser_details): + def browser_details(self, browser_details: BrowserDetails): """Sets the browser_details of this ProductsResponseIdentificationData. :param browser_details: The browser_details of this ProductsResponseIdentificationData. # noqa: E501 - :type: BrowserDetails """ if browser_details is None: raise ValueError("Invalid value for `browser_details`, must not be `None`") # noqa: E501 @@ -148,24 +151,22 @@ def browser_details(self, browser_details): self._browser_details = browser_details @property - def incognito(self): + def incognito(self) -> bool: """Gets the incognito of this ProductsResponseIdentificationData. # noqa: E501 Flag if user used incognito session. # noqa: E501 :return: The incognito of this ProductsResponseIdentificationData. # noqa: E501 - :rtype: bool """ return self._incognito @incognito.setter - def incognito(self, incognito): + def incognito(self, incognito: bool): """Sets the incognito of this ProductsResponseIdentificationData. Flag if user used incognito session. # noqa: E501 :param incognito: The incognito of this ProductsResponseIdentificationData. # noqa: E501 - :type: bool """ if incognito is None: raise ValueError("Invalid value for `incognito`, must not be `None`") # noqa: E501 @@ -173,22 +174,20 @@ def incognito(self, incognito): self._incognito = incognito @property - def ip(self): + def ip(self) -> str: """Gets the ip of this ProductsResponseIdentificationData. # noqa: E501 :return: The ip of this ProductsResponseIdentificationData. # noqa: E501 - :rtype: str """ return self._ip @ip.setter - def ip(self, ip): + def ip(self, ip: str): """Sets the ip of this ProductsResponseIdentificationData. :param ip: The ip of this ProductsResponseIdentificationData. # noqa: E501 - :type: str """ if ip is None: raise ValueError("Invalid value for `ip`, must not be `None`") # noqa: E501 @@ -196,45 +195,41 @@ def ip(self, ip): self._ip = ip @property - def ip_location(self): + def ip_location(self) -> DeprecatedIPLocation: """Gets the ip_location of this ProductsResponseIdentificationData. # noqa: E501 :return: The ip_location of this ProductsResponseIdentificationData. # noqa: E501 - :rtype: DeprecatedIPLocation """ return self._ip_location @ip_location.setter - def ip_location(self, ip_location): + def ip_location(self, ip_location: DeprecatedIPLocation): """Sets the ip_location of this ProductsResponseIdentificationData. :param ip_location: The ip_location of this ProductsResponseIdentificationData. # noqa: E501 - :type: DeprecatedIPLocation """ self._ip_location = ip_location @property - def timestamp(self): + def timestamp(self) -> int: """Gets the timestamp of this ProductsResponseIdentificationData. # noqa: E501 Timestamp of the event with millisecond precision in Unix time. # noqa: E501 :return: The timestamp of this ProductsResponseIdentificationData. # noqa: E501 - :rtype: int """ return self._timestamp @timestamp.setter - def timestamp(self, timestamp): + def timestamp(self, timestamp: int): """Sets the timestamp of this ProductsResponseIdentificationData. Timestamp of the event with millisecond precision in Unix time. # noqa: E501 :param timestamp: The timestamp of this ProductsResponseIdentificationData. # noqa: E501 - :type: int """ if timestamp is None: raise ValueError("Invalid value for `timestamp`, must not be `None`") # noqa: E501 @@ -242,24 +237,22 @@ def timestamp(self, timestamp): self._timestamp = timestamp @property - def time(self): + def time(self) -> datetime: """Gets the time of this ProductsResponseIdentificationData. # noqa: E501 Time expressed according to ISO 8601 in UTC format. # noqa: E501 :return: The time of this ProductsResponseIdentificationData. # noqa: E501 - :rtype: datetime """ return self._time @time.setter - def time(self, time): + def time(self, time: datetime): """Sets the time of this ProductsResponseIdentificationData. Time expressed according to ISO 8601 in UTC format. # noqa: E501 :param time: The time of this ProductsResponseIdentificationData. # noqa: E501 - :type: datetime """ if time is None: raise ValueError("Invalid value for `time`, must not be `None`") # noqa: E501 @@ -267,24 +260,22 @@ def time(self, time): self._time = time @property - def url(self): + def url(self) -> str: """Gets the url of this ProductsResponseIdentificationData. # noqa: E501 Page URL from which the identification request was sent. # noqa: E501 :return: The url of this ProductsResponseIdentificationData. # noqa: E501 - :rtype: str """ return self._url @url.setter - def url(self, url): + def url(self, url: str): """Sets the url of this ProductsResponseIdentificationData. Page URL from which the identification request was sent. # noqa: E501 :param url: The url of this ProductsResponseIdentificationData. # noqa: E501 - :type: str """ if url is None: raise ValueError("Invalid value for `url`, must not be `None`") # noqa: E501 @@ -292,24 +283,22 @@ def url(self, url): self._url = url @property - def tag(self): + def tag(self) -> Dict[str, object]: """Gets the tag of this ProductsResponseIdentificationData. # noqa: E501 A customer-provided value or an object that was sent with identification request. # noqa: E501 :return: The tag of this ProductsResponseIdentificationData. # noqa: E501 - :rtype: dict(str, object) """ return self._tag @tag.setter - def tag(self, tag): + def tag(self, tag: Dict[str, object]): """Sets the tag of this ProductsResponseIdentificationData. A customer-provided value or an object that was sent with identification request. # noqa: E501 :param tag: The tag of this ProductsResponseIdentificationData. # noqa: E501 - :type: dict(str, object) """ if tag is None: raise ValueError("Invalid value for `tag`, must not be `None`") # noqa: E501 @@ -317,68 +306,62 @@ def tag(self, tag): self._tag = tag @property - def linked_id(self): + def linked_id(self) -> str: """Gets the linked_id of this ProductsResponseIdentificationData. # noqa: E501 A customer-provided id that was sent with identification request. # noqa: E501 :return: The linked_id of this ProductsResponseIdentificationData. # noqa: E501 - :rtype: str """ return self._linked_id @linked_id.setter - def linked_id(self, linked_id): + def linked_id(self, linked_id: str): """Sets the linked_id of this ProductsResponseIdentificationData. A customer-provided id that was sent with identification request. # noqa: E501 :param linked_id: The linked_id of this ProductsResponseIdentificationData. # noqa: E501 - :type: str """ self._linked_id = linked_id @property - def confidence(self): + def confidence(self) -> Confidence: """Gets the confidence of this ProductsResponseIdentificationData. # noqa: E501 :return: The confidence of this ProductsResponseIdentificationData. # noqa: E501 - :rtype: Confidence """ return self._confidence @confidence.setter - def confidence(self, confidence): + def confidence(self, confidence: Confidence): """Sets the confidence of this ProductsResponseIdentificationData. :param confidence: The confidence of this ProductsResponseIdentificationData. # noqa: E501 - :type: Confidence """ self._confidence = confidence @property - def visitor_found(self): + def visitor_found(self) -> bool: """Gets the visitor_found of this ProductsResponseIdentificationData. # noqa: E501 Attribute represents if a visitor had been identified before. # noqa: E501 :return: The visitor_found of this ProductsResponseIdentificationData. # noqa: E501 - :rtype: bool """ return self._visitor_found @visitor_found.setter - def visitor_found(self, visitor_found): + def visitor_found(self, visitor_found: bool): """Sets the visitor_found of this ProductsResponseIdentificationData. Attribute represents if a visitor had been identified before. # noqa: E501 :param visitor_found: The visitor_found of this ProductsResponseIdentificationData. # noqa: E501 - :type: bool """ if visitor_found is None: raise ValueError("Invalid value for `visitor_found`, must not be `None`") # noqa: E501 @@ -386,22 +369,20 @@ def visitor_found(self, visitor_found): self._visitor_found = visitor_found @property - def first_seen_at(self): + def first_seen_at(self) -> SeenAt: """Gets the first_seen_at of this ProductsResponseIdentificationData. # noqa: E501 :return: The first_seen_at of this ProductsResponseIdentificationData. # noqa: E501 - :rtype: SeenAt """ return self._first_seen_at @first_seen_at.setter - def first_seen_at(self, first_seen_at): + def first_seen_at(self, first_seen_at: SeenAt): """Sets the first_seen_at of this ProductsResponseIdentificationData. :param first_seen_at: The first_seen_at of this ProductsResponseIdentificationData. # noqa: E501 - :type: SeenAt """ if first_seen_at is None: raise ValueError("Invalid value for `first_seen_at`, must not be `None`") # noqa: E501 @@ -409,22 +390,20 @@ def first_seen_at(self, first_seen_at): self._first_seen_at = first_seen_at @property - def last_seen_at(self): + def last_seen_at(self) -> SeenAt: """Gets the last_seen_at of this ProductsResponseIdentificationData. # noqa: E501 :return: The last_seen_at of this ProductsResponseIdentificationData. # noqa: E501 - :rtype: SeenAt """ return self._last_seen_at @last_seen_at.setter - def last_seen_at(self, last_seen_at): + def last_seen_at(self, last_seen_at: SeenAt): """Sets the last_seen_at of this ProductsResponseIdentificationData. :param last_seen_at: The last_seen_at of this ProductsResponseIdentificationData. # noqa: E501 - :type: SeenAt """ if last_seen_at is None: raise ValueError("Invalid value for `last_seen_at`, must not be `None`") # noqa: E501 @@ -432,24 +411,22 @@ def last_seen_at(self, last_seen_at): self._last_seen_at = last_seen_at @property - def visitor_id(self): + def visitor_id(self) -> str: """Gets the visitor_id of this ProductsResponseIdentificationData. # noqa: E501 String of 20 characters that uniquely identifies the visitor's browser. # noqa: E501 :return: The visitor_id of this ProductsResponseIdentificationData. # noqa: E501 - :rtype: str """ return self._visitor_id @visitor_id.setter - def visitor_id(self, visitor_id): + def visitor_id(self, visitor_id: str): """Sets the visitor_id of this ProductsResponseIdentificationData. String of 20 characters that uniquely identifies the visitor's browser. # noqa: E501 :param visitor_id: The visitor_id of this ProductsResponseIdentificationData. # noqa: E501 - :type: str """ if visitor_id is None: raise ValueError("Invalid value for `visitor_id`, must not be `None`") # noqa: E501 diff --git a/fingerprint_pro_server_api_sdk/models/proxy_result.py b/fingerprint_pro_server_api_sdk/models/proxy_result.py index 324ad3cb..b798c454 100644 --- a/fingerprint_pro_server_api_sdk/models/proxy_result.py +++ b/fingerprint_pro_server_api_sdk/models/proxy_result.py @@ -11,6 +11,7 @@ """ import re # noqa: F401 +from typing import Dict # noqa: F401 from fingerprint_pro_server_api_sdk.base_model import BaseModel @@ -41,24 +42,22 @@ def __init__(self, result=None): # noqa: E501 self.result = result @property - def result(self): + def result(self) -> bool: """Gets the result of this ProxyResult. # noqa: E501 `true` if the request IP address is used by a public proxy provider, `false` otherwise. # noqa: E501 :return: The result of this ProxyResult. # noqa: E501 - :rtype: bool """ return self._result @result.setter - def result(self, result): + def result(self, result: bool): """Sets the result of this ProxyResult. `true` if the request IP address is used by a public proxy provider, `false` otherwise. # noqa: E501 :param result: The result of this ProxyResult. # noqa: E501 - :type: bool """ if result is None: raise ValueError("Invalid value for `result`, must not be `None`") # noqa: E501 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 32152dc3..486e1986 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,6 +11,7 @@ """ import re # noqa: F401 +from typing import Dict # 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 692c897d..98d1f1f7 100644 --- a/fingerprint_pro_server_api_sdk/models/remote_control_result.py +++ b/fingerprint_pro_server_api_sdk/models/remote_control_result.py @@ -11,6 +11,7 @@ """ import re # noqa: F401 +from typing import Dict # noqa: F401 from fingerprint_pro_server_api_sdk.base_model import BaseModel @@ -41,24 +42,22 @@ def __init__(self, result=None): # noqa: E501 self.result = result @property - def result(self): + def result(self) -> bool: """Gets the result of this RemoteControlResult. # noqa: E501 `true` if the request came from a machine being remotely controlled (e.g. TeamViewer), `false` otherwise. # noqa: E501 :return: The result of this RemoteControlResult. # noqa: E501 - :rtype: bool """ return self._result @result.setter - def result(self, result): + def result(self, result: bool): """Sets the result of this RemoteControlResult. `true` if the request came from a machine being remotely controlled (e.g. TeamViewer), `false` otherwise. # noqa: E501 :param result: The result of this RemoteControlResult. # noqa: E501 - :type: bool """ if result is None: raise ValueError("Invalid value for `result`, must not be `None`") # noqa: E501 diff --git a/fingerprint_pro_server_api_sdk/models/response.py b/fingerprint_pro_server_api_sdk/models/response.py index 88a6b1b0..1fc98020 100644 --- a/fingerprint_pro_server_api_sdk/models/response.py +++ b/fingerprint_pro_server_api_sdk/models/response.py @@ -11,7 +11,9 @@ """ import re # noqa: F401 +from typing import Dict # noqa: F401 from fingerprint_pro_server_api_sdk.base_model import BaseModel +from fingerprint_pro_server_api_sdk.models.response_visits import ResponseVisits class Response(BaseModel): @@ -58,22 +60,20 @@ def __init__(self, visitor_id=None, visits=None, last_timestamp=None, pagination self.pagination_key = pagination_key @property - def visitor_id(self): + def visitor_id(self) -> str: """Gets the visitor_id of this Response. # noqa: E501 :return: The visitor_id of this Response. # noqa: E501 - :rtype: str """ return self._visitor_id @visitor_id.setter - def visitor_id(self, visitor_id): + def visitor_id(self, visitor_id: str): """Sets the visitor_id of this Response. :param visitor_id: The visitor_id of this Response. # noqa: E501 - :type: str """ if visitor_id is None: raise ValueError("Invalid value for `visitor_id`, must not be `None`") # noqa: E501 @@ -81,22 +81,20 @@ def visitor_id(self, visitor_id): self._visitor_id = visitor_id @property - def visits(self): + def visits(self) -> list[ResponseVisits]: """Gets the visits of this Response. # noqa: E501 :return: The visits of this Response. # noqa: E501 - :rtype: list[ResponseVisits] """ return self._visits @visits.setter - def visits(self, visits): + def visits(self, visits: list[ResponseVisits]): """Sets the visits of this Response. :param visits: The visits of this Response. # noqa: E501 - :type: list[ResponseVisits] """ if visits is None: raise ValueError("Invalid value for `visits`, must not be `None`") # noqa: E501 @@ -104,47 +102,43 @@ def visits(self, visits): self._visits = visits @property - def last_timestamp(self): + def last_timestamp(self) -> 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 :return: The last_timestamp of this Response. # noqa: E501 - :rtype: int """ return self._last_timestamp @last_timestamp.setter - def last_timestamp(self, last_timestamp): + def last_timestamp(self, last_timestamp: 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 :param last_timestamp: The last_timestamp of this Response. # noqa: E501 - :type: int """ self._last_timestamp = last_timestamp @property - def pagination_key(self): + def pagination_key(self) -> 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 :return: The pagination_key of this Response. # noqa: E501 - :rtype: str """ return self._pagination_key @pagination_key.setter - def pagination_key(self, pagination_key): + def pagination_key(self, pagination_key: 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 :param pagination_key: The pagination_key of this Response. # noqa: E501 - :type: str """ self._pagination_key = pagination_key diff --git a/fingerprint_pro_server_api_sdk/models/response_visits.py b/fingerprint_pro_server_api_sdk/models/response_visits.py index 6b556430..2e367e32 100644 --- a/fingerprint_pro_server_api_sdk/models/response_visits.py +++ b/fingerprint_pro_server_api_sdk/models/response_visits.py @@ -11,7 +11,14 @@ """ import re # noqa: F401 +from typing import Dict # 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 +from datetime import datetime +from fingerprint_pro_server_api_sdk.models.confidence import Confidence +from fingerprint_pro_server_api_sdk.models.seen_at import SeenAt +from fingerprint_pro_server_api_sdk.models.seen_at import SeenAt class ResponseVisits(BaseModel): @@ -96,24 +103,22 @@ def __init__(self, request_id=None, browser_details=None, incognito=None, ip=Non self.last_seen_at = last_seen_at @property - def request_id(self): + def request_id(self) -> str: """Gets the request_id of this ResponseVisits. # noqa: E501 Unique identifier of the user's identification request. # noqa: E501 :return: The request_id of this ResponseVisits. # noqa: E501 - :rtype: str """ return self._request_id @request_id.setter - def request_id(self, request_id): + def request_id(self, request_id: str): """Sets the request_id of this ResponseVisits. Unique identifier of the user's identification request. # noqa: E501 :param request_id: The request_id of this ResponseVisits. # noqa: E501 - :type: str """ if request_id is None: raise ValueError("Invalid value for `request_id`, must not be `None`") # noqa: E501 @@ -121,22 +126,20 @@ def request_id(self, request_id): self._request_id = request_id @property - def browser_details(self): + def browser_details(self) -> BrowserDetails: """Gets the browser_details of this ResponseVisits. # noqa: E501 :return: The browser_details of this ResponseVisits. # noqa: E501 - :rtype: BrowserDetails """ return self._browser_details @browser_details.setter - def browser_details(self, browser_details): + def browser_details(self, browser_details: BrowserDetails): """Sets the browser_details of this ResponseVisits. :param browser_details: The browser_details of this ResponseVisits. # noqa: E501 - :type: BrowserDetails """ if browser_details is None: raise ValueError("Invalid value for `browser_details`, must not be `None`") # noqa: E501 @@ -144,24 +147,22 @@ def browser_details(self, browser_details): self._browser_details = browser_details @property - def incognito(self): + def incognito(self) -> bool: """Gets the incognito of this ResponseVisits. # noqa: E501 Flag if user used incognito session. # noqa: E501 :return: The incognito of this ResponseVisits. # noqa: E501 - :rtype: bool """ return self._incognito @incognito.setter - def incognito(self, incognito): + def incognito(self, incognito: bool): """Sets the incognito of this ResponseVisits. Flag if user used incognito session. # noqa: E501 :param incognito: The incognito of this ResponseVisits. # noqa: E501 - :type: bool """ if incognito is None: raise ValueError("Invalid value for `incognito`, must not be `None`") # noqa: E501 @@ -169,22 +170,20 @@ def incognito(self, incognito): self._incognito = incognito @property - def ip(self): + def ip(self) -> str: """Gets the ip of this ResponseVisits. # noqa: E501 :return: The ip of this ResponseVisits. # noqa: E501 - :rtype: str """ return self._ip @ip.setter - def ip(self, ip): + def ip(self, ip: str): """Sets the ip of this ResponseVisits. :param ip: The ip of this ResponseVisits. # noqa: E501 - :type: str """ if ip is None: raise ValueError("Invalid value for `ip`, must not be `None`") # noqa: E501 @@ -192,45 +191,41 @@ def ip(self, ip): self._ip = ip @property - def ip_location(self): + def ip_location(self) -> DeprecatedIPLocation: """Gets the ip_location of this ResponseVisits. # noqa: E501 :return: The ip_location of this ResponseVisits. # noqa: E501 - :rtype: DeprecatedIPLocation """ return self._ip_location @ip_location.setter - def ip_location(self, ip_location): + def ip_location(self, ip_location: DeprecatedIPLocation): """Sets the ip_location of this ResponseVisits. :param ip_location: The ip_location of this ResponseVisits. # noqa: E501 - :type: DeprecatedIPLocation """ self._ip_location = ip_location @property - def timestamp(self): + def timestamp(self) -> int: """Gets the timestamp of this ResponseVisits. # noqa: E501 Timestamp of the event with millisecond precision in Unix time. # noqa: E501 :return: The timestamp of this ResponseVisits. # noqa: E501 - :rtype: int """ return self._timestamp @timestamp.setter - def timestamp(self, timestamp): + def timestamp(self, timestamp: int): """Sets the timestamp of this ResponseVisits. Timestamp of the event with millisecond precision in Unix time. # noqa: E501 :param timestamp: The timestamp of this ResponseVisits. # noqa: E501 - :type: int """ if timestamp is None: raise ValueError("Invalid value for `timestamp`, must not be `None`") # noqa: E501 @@ -238,24 +233,22 @@ def timestamp(self, timestamp): self._timestamp = timestamp @property - def time(self): + def time(self) -> datetime: """Gets the time of this ResponseVisits. # noqa: E501 Time expressed according to ISO 8601 in UTC format. # noqa: E501 :return: The time of this ResponseVisits. # noqa: E501 - :rtype: datetime """ return self._time @time.setter - def time(self, time): + def time(self, time: datetime): """Sets the time of this ResponseVisits. Time expressed according to ISO 8601 in UTC format. # noqa: E501 :param time: The time of this ResponseVisits. # noqa: E501 - :type: datetime """ if time is None: raise ValueError("Invalid value for `time`, must not be `None`") # noqa: E501 @@ -263,24 +256,22 @@ def time(self, time): self._time = time @property - def url(self): + def url(self) -> str: """Gets the url of this ResponseVisits. # noqa: E501 Page URL from which the identification request was sent. # noqa: E501 :return: The url of this ResponseVisits. # noqa: E501 - :rtype: str """ return self._url @url.setter - def url(self, url): + def url(self, url: str): """Sets the url of this ResponseVisits. Page URL from which the identification request was sent. # noqa: E501 :param url: The url of this ResponseVisits. # noqa: E501 - :type: str """ if url is None: raise ValueError("Invalid value for `url`, must not be `None`") # noqa: E501 @@ -288,24 +279,22 @@ def url(self, url): self._url = url @property - def tag(self): + def tag(self) -> Dict[str, object]: """Gets the tag of this ResponseVisits. # noqa: E501 A customer-provided value or an object that was sent with identification request. # noqa: E501 :return: The tag of this ResponseVisits. # noqa: E501 - :rtype: dict(str, object) """ return self._tag @tag.setter - def tag(self, tag): + def tag(self, tag: Dict[str, object]): """Sets the tag of this ResponseVisits. A customer-provided value or an object that was sent with identification request. # noqa: E501 :param tag: The tag of this ResponseVisits. # noqa: E501 - :type: dict(str, object) """ if tag is None: raise ValueError("Invalid value for `tag`, must not be `None`") # noqa: E501 @@ -313,68 +302,62 @@ def tag(self, tag): self._tag = tag @property - def linked_id(self): + def linked_id(self) -> str: """Gets the linked_id of this ResponseVisits. # noqa: E501 A customer-provided id that was sent with identification request. # noqa: E501 :return: The linked_id of this ResponseVisits. # noqa: E501 - :rtype: str """ return self._linked_id @linked_id.setter - def linked_id(self, linked_id): + def linked_id(self, linked_id: str): """Sets the linked_id of this ResponseVisits. A customer-provided id that was sent with identification request. # noqa: E501 :param linked_id: The linked_id of this ResponseVisits. # noqa: E501 - :type: str """ self._linked_id = linked_id @property - def confidence(self): + def confidence(self) -> Confidence: """Gets the confidence of this ResponseVisits. # noqa: E501 :return: The confidence of this ResponseVisits. # noqa: E501 - :rtype: Confidence """ return self._confidence @confidence.setter - def confidence(self, confidence): + def confidence(self, confidence: Confidence): """Sets the confidence of this ResponseVisits. :param confidence: The confidence of this ResponseVisits. # noqa: E501 - :type: Confidence """ self._confidence = confidence @property - def visitor_found(self): + def visitor_found(self) -> bool: """Gets the visitor_found of this ResponseVisits. # noqa: E501 Attribute represents if a visitor had been identified before. # noqa: E501 :return: The visitor_found of this ResponseVisits. # noqa: E501 - :rtype: bool """ return self._visitor_found @visitor_found.setter - def visitor_found(self, visitor_found): + def visitor_found(self, visitor_found: bool): """Sets the visitor_found of this ResponseVisits. Attribute represents if a visitor had been identified before. # noqa: E501 :param visitor_found: The visitor_found of this ResponseVisits. # noqa: E501 - :type: bool """ if visitor_found is None: raise ValueError("Invalid value for `visitor_found`, must not be `None`") # noqa: E501 @@ -382,22 +365,20 @@ def visitor_found(self, visitor_found): self._visitor_found = visitor_found @property - def first_seen_at(self): + def first_seen_at(self) -> SeenAt: """Gets the first_seen_at of this ResponseVisits. # noqa: E501 :return: The first_seen_at of this ResponseVisits. # noqa: E501 - :rtype: SeenAt """ return self._first_seen_at @first_seen_at.setter - def first_seen_at(self, first_seen_at): + def first_seen_at(self, first_seen_at: SeenAt): """Sets the first_seen_at of this ResponseVisits. :param first_seen_at: The first_seen_at of this ResponseVisits. # noqa: E501 - :type: SeenAt """ if first_seen_at is None: raise ValueError("Invalid value for `first_seen_at`, must not be `None`") # noqa: E501 @@ -405,22 +386,20 @@ def first_seen_at(self, first_seen_at): self._first_seen_at = first_seen_at @property - def last_seen_at(self): + def last_seen_at(self) -> SeenAt: """Gets the last_seen_at of this ResponseVisits. # noqa: E501 :return: The last_seen_at of this ResponseVisits. # noqa: E501 - :rtype: SeenAt """ return self._last_seen_at @last_seen_at.setter - def last_seen_at(self, last_seen_at): + def last_seen_at(self, last_seen_at: SeenAt): """Sets the last_seen_at of this ResponseVisits. :param last_seen_at: The last_seen_at of this ResponseVisits. # noqa: E501 - :type: SeenAt """ if last_seen_at is None: raise ValueError("Invalid value for `last_seen_at`, must not be `None`") # noqa: E501 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 a161aff9..c18b4aae 100644 --- a/fingerprint_pro_server_api_sdk/models/root_apps_result.py +++ b/fingerprint_pro_server_api_sdk/models/root_apps_result.py @@ -11,6 +11,7 @@ """ import re # noqa: F401 +from typing import Dict # noqa: F401 from fingerprint_pro_server_api_sdk.base_model import BaseModel @@ -41,24 +42,22 @@ def __init__(self, result=None): # noqa: E501 self.result = result @property - def result(self): + def result(self) -> bool: """Gets the result of this RootAppsResult. # noqa: E501 Android specific root management apps detection. There are 2 values: • `true` - Root Management Apps detected (e.g. Magisk) • `false` - No Root Management Apps detected or the client isn't Android. # noqa: E501 :return: The result of this RootAppsResult. # noqa: E501 - :rtype: bool """ return self._result @result.setter - def result(self, result): + def result(self, result: bool): """Sets the result of this RootAppsResult. Android specific root management apps detection. There are 2 values: • `true` - Root Management Apps detected (e.g. Magisk) • `false` - No Root Management Apps detected or the client isn't Android. # noqa: E501 :param result: The result of this RootAppsResult. # noqa: E501 - :type: bool """ if result is None: raise ValueError("Invalid value for `result`, must not be `None`") # noqa: E501 diff --git a/fingerprint_pro_server_api_sdk/models/seen_at.py b/fingerprint_pro_server_api_sdk/models/seen_at.py index 067e4fc9..22b5266a 100644 --- a/fingerprint_pro_server_api_sdk/models/seen_at.py +++ b/fingerprint_pro_server_api_sdk/models/seen_at.py @@ -11,7 +11,10 @@ """ import re # noqa: F401 +from typing import Dict # noqa: F401 from fingerprint_pro_server_api_sdk.base_model import BaseModel +from datetime import datetime +from datetime import datetime class SeenAt(BaseModel): @@ -45,43 +48,39 @@ def __init__(self, _global=None, subscription=None): # noqa: E501 self.subscription = subscription @property - def _global(self): + def _global(self) -> datetime: """Gets the _global of this SeenAt. # noqa: E501 :return: The _global of this SeenAt. # noqa: E501 - :rtype: datetime """ return self.__global @_global.setter - def _global(self, _global): + def _global(self, _global: datetime): """Sets the _global of this SeenAt. :param _global: The _global of this SeenAt. # noqa: E501 - :type: datetime """ self.__global = _global @property - def subscription(self): + def subscription(self) -> datetime: """Gets the subscription of this SeenAt. # noqa: E501 :return: The subscription of this SeenAt. # noqa: E501 - :rtype: datetime """ return self._subscription @subscription.setter - def subscription(self, subscription): + def subscription(self, subscription: datetime): """Sets the subscription of this SeenAt. :param subscription: The subscription of this SeenAt. # noqa: E501 - :type: datetime """ self._subscription = subscription 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 c9484466..99299fd0 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,10 @@ """ import re # noqa: F401 +from typing import Dict # 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 class SignalResponseClonedApp(BaseModel): @@ -47,43 +50,39 @@ def __init__(self, data=None, error=None): # noqa: E501 self.error = error @property - def data(self): + def data(self) -> ClonedAppResult: """Gets the data of this SignalResponseClonedApp. # noqa: E501 :return: The data of this SignalResponseClonedApp. # noqa: E501 - :rtype: ClonedAppResult """ return self._data @data.setter - def data(self, data): + def data(self, data: ClonedAppResult): """Sets the data of this SignalResponseClonedApp. :param data: The data of this SignalResponseClonedApp. # noqa: E501 - :type: ClonedAppResult """ self._data = data @property - def error(self): + def error(self) -> ProductError: """Gets the error of this SignalResponseClonedApp. # noqa: E501 :return: The error of this SignalResponseClonedApp. # noqa: E501 - :rtype: ProductError """ return self._error @error.setter - def error(self, error): + def error(self, error: ProductError): """Sets the error of this SignalResponseClonedApp. :param error: The error of this SignalResponseClonedApp. # noqa: E501 - :type: ProductError """ self._error = error 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 136355b0..d776985a 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,10 @@ """ import re # noqa: F401 +from typing import Dict # 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 class SignalResponseEmulator(BaseModel): @@ -47,43 +50,39 @@ def __init__(self, data=None, error=None): # noqa: E501 self.error = error @property - def data(self): + def data(self) -> EmulatorResult: """Gets the data of this SignalResponseEmulator. # noqa: E501 :return: The data of this SignalResponseEmulator. # noqa: E501 - :rtype: EmulatorResult """ return self._data @data.setter - def data(self, data): + def data(self, data: EmulatorResult): """Sets the data of this SignalResponseEmulator. :param data: The data of this SignalResponseEmulator. # noqa: E501 - :type: EmulatorResult """ self._data = data @property - def error(self): + def error(self) -> ProductError: """Gets the error of this SignalResponseEmulator. # noqa: E501 :return: The error of this SignalResponseEmulator. # noqa: E501 - :rtype: ProductError """ return self._error @error.setter - def error(self, error): + def error(self, error: ProductError): """Sets the error of this SignalResponseEmulator. :param error: The error of this SignalResponseEmulator. # noqa: E501 - :type: ProductError """ self._error = error 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 669bd606..f08fbb76 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,10 @@ """ import re # noqa: F401 +from typing import Dict # 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 class SignalResponseFactoryReset(BaseModel): @@ -47,43 +50,39 @@ def __init__(self, data=None, error=None): # noqa: E501 self.error = error @property - def data(self): + def data(self) -> FactoryResetResult: """Gets the data of this SignalResponseFactoryReset. # noqa: E501 :return: The data of this SignalResponseFactoryReset. # noqa: E501 - :rtype: FactoryResetResult """ return self._data @data.setter - def data(self, data): + def data(self, data: FactoryResetResult): """Sets the data of this SignalResponseFactoryReset. :param data: The data of this SignalResponseFactoryReset. # noqa: E501 - :type: FactoryResetResult """ self._data = data @property - def error(self): + def error(self) -> ProductError: """Gets the error of this SignalResponseFactoryReset. # noqa: E501 :return: The error of this SignalResponseFactoryReset. # noqa: E501 - :rtype: ProductError """ return self._error @error.setter - def error(self, error): + def error(self, error: ProductError): """Sets the error of this SignalResponseFactoryReset. :param error: The error of this SignalResponseFactoryReset. # noqa: E501 - :type: ProductError """ self._error = error 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 50f2fe2c..24d6fb1b 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,10 @@ """ import re # noqa: F401 +from typing import Dict # 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 class SignalResponseFrida(BaseModel): @@ -47,43 +50,39 @@ def __init__(self, data=None, error=None): # noqa: E501 self.error = error @property - def data(self): + def data(self) -> FridaResult: """Gets the data of this SignalResponseFrida. # noqa: E501 :return: The data of this SignalResponseFrida. # noqa: E501 - :rtype: FridaResult """ return self._data @data.setter - def data(self, data): + def data(self, data: FridaResult): """Sets the data of this SignalResponseFrida. :param data: The data of this SignalResponseFrida. # noqa: E501 - :type: FridaResult """ self._data = data @property - def error(self): + def error(self) -> ProductError: """Gets the error of this SignalResponseFrida. # noqa: E501 :return: The error of this SignalResponseFrida. # noqa: E501 - :rtype: ProductError """ return self._error @error.setter - def error(self, error): + def error(self, error: ProductError): """Sets the error of this SignalResponseFrida. :param error: The error of this SignalResponseFrida. # noqa: E501 - :type: ProductError """ self._error = error 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 bb42fdd6..190a89a1 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,10 @@ """ import re # noqa: F401 +from typing import Dict # 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 class SignalResponseHighActivity(BaseModel): @@ -47,43 +50,39 @@ def __init__(self, data=None, error=None): # noqa: E501 self.error = error @property - def data(self): + def data(self) -> HighActivityResult: """Gets the data of this SignalResponseHighActivity. # noqa: E501 :return: The data of this SignalResponseHighActivity. # noqa: E501 - :rtype: HighActivityResult """ return self._data @data.setter - def data(self, data): + def data(self, data: HighActivityResult): """Sets the data of this SignalResponseHighActivity. :param data: The data of this SignalResponseHighActivity. # noqa: E501 - :type: HighActivityResult """ self._data = data @property - def error(self): + def error(self) -> ProductError: """Gets the error of this SignalResponseHighActivity. # noqa: E501 :return: The error of this SignalResponseHighActivity. # noqa: E501 - :rtype: ProductError """ return self._error @error.setter - def error(self, error): + def error(self, error: ProductError): """Sets the error of this SignalResponseHighActivity. :param error: The error of this SignalResponseHighActivity. # noqa: E501 - :type: ProductError """ self._error = error 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 b7e9ccb4..30f4aa90 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,10 @@ """ import re # noqa: F401 +from typing import Dict # 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 class SignalResponseIncognito(BaseModel): @@ -47,43 +50,39 @@ def __init__(self, data=None, error=None): # noqa: E501 self.error = error @property - def data(self): + def data(self) -> IncognitoResult: """Gets the data of this SignalResponseIncognito. # noqa: E501 :return: The data of this SignalResponseIncognito. # noqa: E501 - :rtype: IncognitoResult """ return self._data @data.setter - def data(self, data): + def data(self, data: IncognitoResult): """Sets the data of this SignalResponseIncognito. :param data: The data of this SignalResponseIncognito. # noqa: E501 - :type: IncognitoResult """ self._data = data @property - def error(self): + def error(self) -> IdentificationError: """Gets the error of this SignalResponseIncognito. # noqa: E501 :return: The error of this SignalResponseIncognito. # noqa: E501 - :rtype: IdentificationError """ return self._error @error.setter - def error(self, error): + def error(self, error: IdentificationError): """Sets the error of this SignalResponseIncognito. :param error: The error of this SignalResponseIncognito. # noqa: E501 - :type: IdentificationError """ self._error = error 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 970d08b4..a1694336 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,10 @@ """ import re # noqa: F401 +from typing import Dict # 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 class SignalResponseIpBlocklist(BaseModel): @@ -47,43 +50,39 @@ def __init__(self, data=None, error=None): # noqa: E501 self.error = error @property - def data(self): + def data(self) -> IpBlockListResult: """Gets the data of this SignalResponseIpBlocklist. # noqa: E501 :return: The data of this SignalResponseIpBlocklist. # noqa: E501 - :rtype: IpBlockListResult """ return self._data @data.setter - def data(self, data): + def data(self, data: IpBlockListResult): """Sets the data of this SignalResponseIpBlocklist. :param data: The data of this SignalResponseIpBlocklist. # noqa: E501 - :type: IpBlockListResult """ self._data = data @property - def error(self): + def error(self) -> ProductError: """Gets the error of this SignalResponseIpBlocklist. # noqa: E501 :return: The error of this SignalResponseIpBlocklist. # noqa: E501 - :rtype: ProductError """ return self._error @error.setter - def error(self, error): + def error(self, error: ProductError): """Sets the error of this SignalResponseIpBlocklist. :param error: The error of this SignalResponseIpBlocklist. # noqa: E501 - :type: ProductError """ self._error = error 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 62ae1afb..4487fabc 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,10 @@ """ import re # noqa: F401 +from typing import Dict # 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 class SignalResponseIpInfo(BaseModel): @@ -47,43 +50,39 @@ def __init__(self, data=None, error=None): # noqa: E501 self.error = error @property - def data(self): + def data(self) -> IpInfoResult: """Gets the data of this SignalResponseIpInfo. # noqa: E501 :return: The data of this SignalResponseIpInfo. # noqa: E501 - :rtype: IpInfoResult """ return self._data @data.setter - def data(self, data): + def data(self, data: IpInfoResult): """Sets the data of this SignalResponseIpInfo. :param data: The data of this SignalResponseIpInfo. # noqa: E501 - :type: IpInfoResult """ self._data = data @property - def error(self): + def error(self) -> ProductError: """Gets the error of this SignalResponseIpInfo. # noqa: E501 :return: The error of this SignalResponseIpInfo. # noqa: E501 - :rtype: ProductError """ return self._error @error.setter - def error(self, error): + def error(self, error: ProductError): """Sets the error of this SignalResponseIpInfo. :param error: The error of this SignalResponseIpInfo. # noqa: E501 - :type: ProductError """ self._error = error 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 61158c87..bfc851f7 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,10 @@ """ import re # noqa: F401 +from typing import Dict # 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 class SignalResponseJailbroken(BaseModel): @@ -47,43 +50,39 @@ def __init__(self, data=None, error=None): # noqa: E501 self.error = error @property - def data(self): + def data(self) -> JailbrokenResult: """Gets the data of this SignalResponseJailbroken. # noqa: E501 :return: The data of this SignalResponseJailbroken. # noqa: E501 - :rtype: JailbrokenResult """ return self._data @data.setter - def data(self, data): + def data(self, data: JailbrokenResult): """Sets the data of this SignalResponseJailbroken. :param data: The data of this SignalResponseJailbroken. # noqa: E501 - :type: JailbrokenResult """ self._data = data @property - def error(self): + def error(self) -> ProductError: """Gets the error of this SignalResponseJailbroken. # noqa: E501 :return: The error of this SignalResponseJailbroken. # noqa: E501 - :rtype: ProductError """ return self._error @error.setter - def error(self, error): + def error(self, error: ProductError): """Sets the error of this SignalResponseJailbroken. :param error: The error of this SignalResponseJailbroken. # noqa: E501 - :type: ProductError """ self._error = error 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 c693ab61..df5c8479 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,10 @@ """ import re # noqa: F401 +from typing import Dict # 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 class SignalResponseLocationSpoofing(BaseModel): @@ -47,43 +50,39 @@ def __init__(self, data=None, error=None): # noqa: E501 self.error = error @property - def data(self): + def data(self) -> LocationSpoofingResult: """Gets the data of this SignalResponseLocationSpoofing. # noqa: E501 :return: The data of this SignalResponseLocationSpoofing. # noqa: E501 - :rtype: LocationSpoofingResult """ return self._data @data.setter - def data(self, data): + def data(self, data: LocationSpoofingResult): """Sets the data of this SignalResponseLocationSpoofing. :param data: The data of this SignalResponseLocationSpoofing. # noqa: E501 - :type: LocationSpoofingResult """ self._data = data @property - def error(self): + def error(self) -> ProductError: """Gets the error of this SignalResponseLocationSpoofing. # noqa: E501 :return: The error of this SignalResponseLocationSpoofing. # noqa: E501 - :rtype: ProductError """ return self._error @error.setter - def error(self, error): + def error(self, error: ProductError): """Sets the error of this SignalResponseLocationSpoofing. :param error: The error of this SignalResponseLocationSpoofing. # noqa: E501 - :type: ProductError """ self._error = error 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 787756c6..f8a41a38 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,10 @@ """ import re # noqa: F401 +from typing import Dict # 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 class SignalResponsePrivacySettings(BaseModel): @@ -47,43 +50,39 @@ def __init__(self, data=None, error=None): # noqa: E501 self.error = error @property - def data(self): + def data(self) -> PrivacySettingsResult: """Gets the data of this SignalResponsePrivacySettings. # noqa: E501 :return: The data of this SignalResponsePrivacySettings. # noqa: E501 - :rtype: PrivacySettingsResult """ return self._data @data.setter - def data(self, data): + def data(self, data: PrivacySettingsResult): """Sets the data of this SignalResponsePrivacySettings. :param data: The data of this SignalResponsePrivacySettings. # noqa: E501 - :type: PrivacySettingsResult """ self._data = data @property - def error(self): + def error(self) -> ProductError: """Gets the error of this SignalResponsePrivacySettings. # noqa: E501 :return: The error of this SignalResponsePrivacySettings. # noqa: E501 - :rtype: ProductError """ return self._error @error.setter - def error(self, error): + def error(self, error: ProductError): """Sets the error of this SignalResponsePrivacySettings. :param error: The error of this SignalResponsePrivacySettings. # noqa: E501 - :type: ProductError """ self._error = error 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 28a87e30..6f7efb25 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,10 @@ """ import re # noqa: F401 +from typing import Dict # 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 class SignalResponseProxy(BaseModel): @@ -47,43 +50,39 @@ def __init__(self, data=None, error=None): # noqa: E501 self.error = error @property - def data(self): + def data(self) -> ProxyResult: """Gets the data of this SignalResponseProxy. # noqa: E501 :return: The data of this SignalResponseProxy. # noqa: E501 - :rtype: ProxyResult """ return self._data @data.setter - def data(self, data): + def data(self, data: ProxyResult): """Sets the data of this SignalResponseProxy. :param data: The data of this SignalResponseProxy. # noqa: E501 - :type: ProxyResult """ self._data = data @property - def error(self): + def error(self) -> ProductError: """Gets the error of this SignalResponseProxy. # noqa: E501 :return: The error of this SignalResponseProxy. # noqa: E501 - :rtype: ProductError """ return self._error @error.setter - def error(self, error): + def error(self, error: ProductError): """Sets the error of this SignalResponseProxy. :param error: The error of this SignalResponseProxy. # noqa: E501 - :type: ProductError """ self._error = error 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 a36a875e..7443e56f 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,10 @@ """ import re # noqa: F401 +from typing import Dict # 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 class SignalResponseRawDeviceAttributes(BaseModel): @@ -47,43 +50,39 @@ def __init__(self, data=None, error=None): # noqa: E501 self.error = error @property - def data(self): + def data(self) -> RawDeviceAttributesResult: """Gets the data of this SignalResponseRawDeviceAttributes. # noqa: E501 :return: The data of this SignalResponseRawDeviceAttributes. # noqa: E501 - :rtype: RawDeviceAttributesResult """ return self._data @data.setter - def data(self, data): + def data(self, data: RawDeviceAttributesResult): """Sets the data of this SignalResponseRawDeviceAttributes. :param data: The data of this SignalResponseRawDeviceAttributes. # noqa: E501 - :type: RawDeviceAttributesResult """ self._data = data @property - def error(self): + def error(self) -> IdentificationError: """Gets the error of this SignalResponseRawDeviceAttributes. # noqa: E501 :return: The error of this SignalResponseRawDeviceAttributes. # noqa: E501 - :rtype: IdentificationError """ return self._error @error.setter - def error(self, error): + def error(self, error: IdentificationError): """Sets the error of this SignalResponseRawDeviceAttributes. :param error: The error of this SignalResponseRawDeviceAttributes. # noqa: E501 - :type: IdentificationError """ self._error = error 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 4ef72860..018c105a 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,10 @@ """ import re # noqa: F401 +from typing import Dict # 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 class SignalResponseRemoteControl(BaseModel): @@ -47,43 +50,39 @@ def __init__(self, data=None, error=None): # noqa: E501 self.error = error @property - def data(self): + def data(self) -> RemoteControlResult: """Gets the data of this SignalResponseRemoteControl. # noqa: E501 :return: The data of this SignalResponseRemoteControl. # noqa: E501 - :rtype: RemoteControlResult """ return self._data @data.setter - def data(self, data): + def data(self, data: RemoteControlResult): """Sets the data of this SignalResponseRemoteControl. :param data: The data of this SignalResponseRemoteControl. # noqa: E501 - :type: RemoteControlResult """ self._data = data @property - def error(self): + def error(self) -> ProductError: """Gets the error of this SignalResponseRemoteControl. # noqa: E501 :return: The error of this SignalResponseRemoteControl. # noqa: E501 - :rtype: ProductError """ return self._error @error.setter - def error(self, error): + def error(self, error: ProductError): """Sets the error of this SignalResponseRemoteControl. :param error: The error of this SignalResponseRemoteControl. # noqa: E501 - :type: ProductError """ self._error = error 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 c8713f37..bea61317 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,10 @@ """ import re # noqa: F401 +from typing import Dict # 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 class SignalResponseRootApps(BaseModel): @@ -47,43 +50,39 @@ def __init__(self, data=None, error=None): # noqa: E501 self.error = error @property - def data(self): + def data(self) -> RootAppsResult: """Gets the data of this SignalResponseRootApps. # noqa: E501 :return: The data of this SignalResponseRootApps. # noqa: E501 - :rtype: RootAppsResult """ return self._data @data.setter - def data(self, data): + def data(self, data: RootAppsResult): """Sets the data of this SignalResponseRootApps. :param data: The data of this SignalResponseRootApps. # noqa: E501 - :type: RootAppsResult """ self._data = data @property - def error(self): + def error(self) -> ProductError: """Gets the error of this SignalResponseRootApps. # noqa: E501 :return: The error of this SignalResponseRootApps. # noqa: E501 - :rtype: ProductError """ return self._error @error.setter - def error(self, error): + def error(self, error: ProductError): """Sets the error of this SignalResponseRootApps. :param error: The error of this SignalResponseRootApps. # noqa: E501 - :type: ProductError """ self._error = error 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 3d83444e..60bb237a 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,10 @@ """ import re # noqa: F401 +from typing import Dict # 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 class SignalResponseSuspectScore(BaseModel): @@ -47,43 +50,39 @@ def __init__(self, data=None, error=None): # noqa: E501 self.error = error @property - def data(self): + def data(self) -> SuspectScoreResult: """Gets the data of this SignalResponseSuspectScore. # noqa: E501 :return: The data of this SignalResponseSuspectScore. # noqa: E501 - :rtype: SuspectScoreResult """ return self._data @data.setter - def data(self, data): + def data(self, data: SuspectScoreResult): """Sets the data of this SignalResponseSuspectScore. :param data: The data of this SignalResponseSuspectScore. # noqa: E501 - :type: SuspectScoreResult """ self._data = data @property - def error(self): + def error(self) -> ProductError: """Gets the error of this SignalResponseSuspectScore. # noqa: E501 :return: The error of this SignalResponseSuspectScore. # noqa: E501 - :rtype: ProductError """ return self._error @error.setter - def error(self, error): + def error(self, error: ProductError): """Sets the error of this SignalResponseSuspectScore. :param error: The error of this SignalResponseSuspectScore. # noqa: E501 - :type: ProductError """ self._error = error 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 5299c237..4d816db2 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,10 @@ """ import re # noqa: F401 +from typing import Dict # 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 class SignalResponseTampering(BaseModel): @@ -47,43 +50,39 @@ def __init__(self, data=None, error=None): # noqa: E501 self.error = error @property - def data(self): + def data(self) -> TamperingResult: """Gets the data of this SignalResponseTampering. # noqa: E501 :return: The data of this SignalResponseTampering. # noqa: E501 - :rtype: TamperingResult """ return self._data @data.setter - def data(self, data): + def data(self, data: TamperingResult): """Sets the data of this SignalResponseTampering. :param data: The data of this SignalResponseTampering. # noqa: E501 - :type: TamperingResult """ self._data = data @property - def error(self): + def error(self) -> IdentificationError: """Gets the error of this SignalResponseTampering. # noqa: E501 :return: The error of this SignalResponseTampering. # noqa: E501 - :rtype: IdentificationError """ return self._error @error.setter - def error(self, error): + def error(self, error: IdentificationError): """Sets the error of this SignalResponseTampering. :param error: The error of this SignalResponseTampering. # noqa: E501 - :type: IdentificationError """ self._error = error 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 264fc08d..5c1e38c4 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,10 @@ """ import re # noqa: F401 +from typing import Dict # 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 class SignalResponseTor(BaseModel): @@ -47,43 +50,39 @@ def __init__(self, data=None, error=None): # noqa: E501 self.error = error @property - def data(self): + def data(self) -> TorResult: """Gets the data of this SignalResponseTor. # noqa: E501 :return: The data of this SignalResponseTor. # noqa: E501 - :rtype: TorResult """ return self._data @data.setter - def data(self, data): + def data(self, data: TorResult): """Sets the data of this SignalResponseTor. :param data: The data of this SignalResponseTor. # noqa: E501 - :type: TorResult """ self._data = data @property - def error(self): + def error(self) -> ProductError: """Gets the error of this SignalResponseTor. # noqa: E501 :return: The error of this SignalResponseTor. # noqa: E501 - :rtype: ProductError """ return self._error @error.setter - def error(self, error): + def error(self, error: ProductError): """Sets the error of this SignalResponseTor. :param error: The error of this SignalResponseTor. # noqa: E501 - :type: ProductError """ self._error = error 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 0cb3b6a8..e8b401c3 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,10 @@ """ import re # noqa: F401 +from typing import Dict # 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 class SignalResponseVelocity(BaseModel): @@ -47,43 +50,39 @@ def __init__(self, data=None, error=None): # noqa: E501 self.error = error @property - def data(self): + def data(self) -> VelocityResult: """Gets the data of this SignalResponseVelocity. # noqa: E501 :return: The data of this SignalResponseVelocity. # noqa: E501 - :rtype: VelocityResult """ return self._data @data.setter - def data(self, data): + def data(self, data: VelocityResult): """Sets the data of this SignalResponseVelocity. :param data: The data of this SignalResponseVelocity. # noqa: E501 - :type: VelocityResult """ self._data = data @property - def error(self): + def error(self) -> ProductError: """Gets the error of this SignalResponseVelocity. # noqa: E501 :return: The error of this SignalResponseVelocity. # noqa: E501 - :rtype: ProductError """ return self._error @error.setter - def error(self, error): + def error(self, error: ProductError): """Sets the error of this SignalResponseVelocity. :param error: The error of this SignalResponseVelocity. # noqa: E501 - :type: ProductError """ self._error = error 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 88650e98..176c556f 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,10 @@ """ import re # noqa: F401 +from typing import Dict # 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 class SignalResponseVirtualMachine(BaseModel): @@ -47,43 +50,39 @@ def __init__(self, data=None, error=None): # noqa: E501 self.error = error @property - def data(self): + def data(self) -> VirtualMachineResult: """Gets the data of this SignalResponseVirtualMachine. # noqa: E501 :return: The data of this SignalResponseVirtualMachine. # noqa: E501 - :rtype: VirtualMachineResult """ return self._data @data.setter - def data(self, data): + def data(self, data: VirtualMachineResult): """Sets the data of this SignalResponseVirtualMachine. :param data: The data of this SignalResponseVirtualMachine. # noqa: E501 - :type: VirtualMachineResult """ self._data = data @property - def error(self): + def error(self) -> ProductError: """Gets the error of this SignalResponseVirtualMachine. # noqa: E501 :return: The error of this SignalResponseVirtualMachine. # noqa: E501 - :rtype: ProductError """ return self._error @error.setter - def error(self, error): + def error(self, error: ProductError): """Sets the error of this SignalResponseVirtualMachine. :param error: The error of this SignalResponseVirtualMachine. # noqa: E501 - :type: ProductError """ self._error = error 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 34ffb1e0..c51ca902 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,10 @@ """ import re # noqa: F401 +from typing import Dict # 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 class SignalResponseVpn(BaseModel): @@ -47,43 +50,39 @@ def __init__(self, data=None, error=None): # noqa: E501 self.error = error @property - def data(self): + def data(self) -> VpnResult: """Gets the data of this SignalResponseVpn. # noqa: E501 :return: The data of this SignalResponseVpn. # noqa: E501 - :rtype: VpnResult """ return self._data @data.setter - def data(self, data): + def data(self, data: VpnResult): """Sets the data of this SignalResponseVpn. :param data: The data of this SignalResponseVpn. # noqa: E501 - :type: VpnResult """ self._data = data @property - def error(self): + def error(self) -> ProductError: """Gets the error of this SignalResponseVpn. # noqa: E501 :return: The error of this SignalResponseVpn. # noqa: E501 - :rtype: ProductError """ return self._error @error.setter - def error(self, error): + def error(self, error: ProductError): """Sets the error of this SignalResponseVpn. :param error: The error of this SignalResponseVpn. # noqa: E501 - :type: ProductError """ self._error = error diff --git a/fingerprint_pro_server_api_sdk/models/subdivision.py b/fingerprint_pro_server_api_sdk/models/subdivision.py index f92e1f11..85c688f7 100644 --- a/fingerprint_pro_server_api_sdk/models/subdivision.py +++ b/fingerprint_pro_server_api_sdk/models/subdivision.py @@ -11,6 +11,7 @@ """ import re # noqa: F401 +from typing import Dict # noqa: F401 from fingerprint_pro_server_api_sdk.base_model import BaseModel @@ -47,43 +48,39 @@ def __init__(self, iso_code=None, name=None): # noqa: E501 self.name = name @property - def iso_code(self): + def iso_code(self) -> str: """Gets the iso_code of this Subdivision. # noqa: E501 :return: The iso_code of this Subdivision. # noqa: E501 - :rtype: str """ return self._iso_code @iso_code.setter - def iso_code(self, iso_code): + def iso_code(self, iso_code: str): """Sets the iso_code of this Subdivision. :param iso_code: The iso_code of this Subdivision. # noqa: E501 - :type: str """ self._iso_code = iso_code @property - def name(self): + def name(self) -> str: """Gets the name of this Subdivision. # noqa: E501 :return: The name of this Subdivision. # noqa: E501 - :rtype: str """ return self._name @name.setter - def name(self, name): + def name(self, name: str): """Sets the name of this Subdivision. :param name: The name of this Subdivision. # noqa: E501 - :type: str """ self._name = name 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 8c922cb3..1945b10f 100644 --- a/fingerprint_pro_server_api_sdk/models/suspect_score_result.py +++ b/fingerprint_pro_server_api_sdk/models/suspect_score_result.py @@ -11,6 +11,7 @@ """ import re # noqa: F401 +from typing import Dict # noqa: F401 from fingerprint_pro_server_api_sdk.base_model import BaseModel @@ -41,24 +42,22 @@ def __init__(self, result=None): # noqa: E501 self.result = result @property - def result(self): + def result(self) -> int: """Gets the result of this SuspectScoreResult. # noqa: E501 Suspect Score is an easy way to integrate Smart Signals into your fraud protection work flow. It is a weighted representation of all Smart Signals present in the payload that helps identify suspicious activity. The value range is [0; S] where S is sum of all Smart Signals weights. See more details here: https://dev.fingerprint.com/docs/suspect-score # noqa: E501 :return: The result of this SuspectScoreResult. # noqa: E501 - :rtype: int """ return self._result @result.setter - def result(self, result): + def result(self, result: int): """Sets the result of this SuspectScoreResult. Suspect Score is an easy way to integrate Smart Signals into your fraud protection work flow. It is a weighted representation of all Smart Signals present in the payload that helps identify suspicious activity. The value range is [0; S] where S is sum of all Smart Signals weights. See more details here: https://dev.fingerprint.com/docs/suspect-score # noqa: E501 :param result: The result of this SuspectScoreResult. # noqa: E501 - :type: int """ if result is None: raise ValueError("Invalid value for `result`, must not be `None`") # noqa: E501 diff --git a/fingerprint_pro_server_api_sdk/models/tampering_result.py b/fingerprint_pro_server_api_sdk/models/tampering_result.py index 13fa881f..448468f5 100644 --- a/fingerprint_pro_server_api_sdk/models/tampering_result.py +++ b/fingerprint_pro_server_api_sdk/models/tampering_result.py @@ -11,6 +11,7 @@ """ import re # noqa: F401 +from typing import Dict # noqa: F401 from fingerprint_pro_server_api_sdk.base_model import BaseModel @@ -45,24 +46,22 @@ def __init__(self, result=None, anomaly_score=None): # noqa: E501 self.anomaly_score = anomaly_score @property - def result(self): + def result(self) -> bool: """Gets the result of this TamperingResult. # noqa: E501 Flag indicating whether browser tampering was detected according to our internal thresholds. # noqa: E501 :return: The result of this TamperingResult. # noqa: E501 - :rtype: bool """ return self._result @result.setter - def result(self, result): + def result(self, result: bool): """Sets the result of this TamperingResult. Flag indicating whether browser tampering was detected according to our internal thresholds. # noqa: E501 :param result: The result of this TamperingResult. # noqa: E501 - :type: bool """ if result is None: raise ValueError("Invalid value for `result`, must not be `None`") # noqa: E501 @@ -70,24 +69,22 @@ def result(self, result): self._result = result @property - def anomaly_score(self): + def anomaly_score(self) -> float: """Gets the anomaly_score of this TamperingResult. # noqa: E501 Confidence score (`0.0 - 1.0`) for the tampering detection. Values above `0.5` suggest that we're reasonably sure there was a tampering attempt. Values below `0.5` are genuine browsers. # noqa: E501 :return: The anomaly_score of this TamperingResult. # noqa: E501 - :rtype: float """ return self._anomaly_score @anomaly_score.setter - def anomaly_score(self, anomaly_score): + def anomaly_score(self, anomaly_score: float): """Sets the anomaly_score of this TamperingResult. Confidence score (`0.0 - 1.0`) for the tampering detection. Values above `0.5` suggest that we're reasonably sure there was a tampering attempt. Values below `0.5` are genuine browsers. # noqa: E501 :param anomaly_score: The anomaly_score of this TamperingResult. # noqa: E501 - :type: float """ if anomaly_score is None: raise ValueError("Invalid value for `anomaly_score`, must not be `None`") # noqa: E501 diff --git a/fingerprint_pro_server_api_sdk/models/too_many_requests_response.py b/fingerprint_pro_server_api_sdk/models/too_many_requests_response.py index a125557e..5ff1e14f 100644 --- a/fingerprint_pro_server_api_sdk/models/too_many_requests_response.py +++ b/fingerprint_pro_server_api_sdk/models/too_many_requests_response.py @@ -46,24 +46,22 @@ def __init__(self, error=None): # noqa: E501 self._retry_after = 0 @property - def error(self): + def error(self) -> str: """Gets the error of this TooManyRequestsResponse. # noqa: E501 Error text. # noqa: E501 :return: The error of this TooManyRequestsResponse. # noqa: E501 - :rtype: str """ return self._error @error.setter - def error(self, error): + def error(self, error: str): """Sets the error of this TooManyRequestsResponse. Error text. # noqa: E501 :param error: The error of this TooManyRequestsResponse. # noqa: E501 - :type: str """ if error is None: raise ValueError("Invalid value for `error`, must not be `None`") # noqa: E501 @@ -71,9 +69,9 @@ def error(self, error): self._error = error @property - def retry_after(self): + def retry_after(self) -> int: return self._retry_after @retry_after.setter - def retry_after(self, retry_after): + def retry_after(self, retry_after: int): self._retry_after = retry_after diff --git a/fingerprint_pro_server_api_sdk/models/tor_result.py b/fingerprint_pro_server_api_sdk/models/tor_result.py index 0783ac1d..a264982d 100644 --- a/fingerprint_pro_server_api_sdk/models/tor_result.py +++ b/fingerprint_pro_server_api_sdk/models/tor_result.py @@ -11,6 +11,7 @@ """ import re # noqa: F401 +from typing import Dict # noqa: F401 from fingerprint_pro_server_api_sdk.base_model import BaseModel @@ -41,24 +42,22 @@ def __init__(self, result=None): # noqa: E501 self.result = result @property - def result(self): + def result(self) -> bool: """Gets the result of this TorResult. # noqa: E501 `true` if the request IP address is a known tor exit node, `false` otherwise. # noqa: E501 :return: The result of this TorResult. # noqa: E501 - :rtype: bool """ return self._result @result.setter - def result(self, result): + def result(self, result: bool): """Sets the result of this TorResult. `true` if the request IP address is a known tor exit node, `false` otherwise. # noqa: E501 :param result: The result of this TorResult. # noqa: E501 - :type: bool """ if result is None: raise ValueError("Invalid value for `result`, must not be `None`") # noqa: E501 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 2209e35b..ee2cb1bc 100644 --- a/fingerprint_pro_server_api_sdk/models/velocity_interval_result.py +++ b/fingerprint_pro_server_api_sdk/models/velocity_interval_result.py @@ -11,6 +11,7 @@ """ import re # noqa: F401 +from typing import Dict # noqa: F401 from fingerprint_pro_server_api_sdk.base_model import BaseModel @@ -53,22 +54,20 @@ def __init__(self, _5m=None, _1h=None, _24h=None): # noqa: E501 self._24h = _24h @property - def _5m(self): + def _5m(self) -> int: """Gets the _5m of this VelocityIntervalResult. # noqa: E501 :return: The _5m of this VelocityIntervalResult. # noqa: E501 - :rtype: int """ return self.__5m @_5m.setter - def _5m(self, _5m): + def _5m(self, _5m: int): """Sets the _5m of this VelocityIntervalResult. :param _5m: The _5m of this VelocityIntervalResult. # noqa: E501 - :type: int """ if _5m is None: raise ValueError("Invalid value for `_5m`, must not be `None`") # noqa: E501 @@ -76,22 +75,20 @@ def _5m(self, _5m): self.__5m = _5m @property - def _1h(self): + def _1h(self) -> int: """Gets the _1h of this VelocityIntervalResult. # noqa: E501 :return: The _1h of this VelocityIntervalResult. # noqa: E501 - :rtype: int """ return self.__1h @_1h.setter - def _1h(self, _1h): + def _1h(self, _1h: int): """Sets the _1h of this VelocityIntervalResult. :param _1h: The _1h of this VelocityIntervalResult. # noqa: E501 - :type: int """ if _1h is None: raise ValueError("Invalid value for `_1h`, must not be `None`") # noqa: E501 @@ -99,24 +96,22 @@ def _1h(self, _1h): self.__1h = _1h @property - def _24h(self): + def _24h(self) -> 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 :return: The _24h of this VelocityIntervalResult. # noqa: E501 - :rtype: int """ return self.__24h @_24h.setter - def _24h(self, _24h): + def _24h(self, _24h: 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 :param _24h: The _24h of this VelocityIntervalResult. # noqa: E501 - :type: int """ self.__24h = _24h diff --git a/fingerprint_pro_server_api_sdk/models/velocity_intervals.py b/fingerprint_pro_server_api_sdk/models/velocity_intervals.py index 7b16ef9a..bd9066d3 100644 --- a/fingerprint_pro_server_api_sdk/models/velocity_intervals.py +++ b/fingerprint_pro_server_api_sdk/models/velocity_intervals.py @@ -11,7 +11,9 @@ """ import re # noqa: F401 +from typing import Dict # noqa: F401 from fingerprint_pro_server_api_sdk.base_model import BaseModel +from fingerprint_pro_server_api_sdk.models.velocity_interval_result import VelocityIntervalResult class VelocityIntervals(BaseModel): @@ -42,22 +44,20 @@ def __init__(self, intervals=None): # noqa: E501 self.intervals = intervals @property - def intervals(self): + def intervals(self) -> VelocityIntervalResult: """Gets the intervals of this VelocityIntervals. # noqa: E501 :return: The intervals of this VelocityIntervals. # noqa: E501 - :rtype: VelocityIntervalResult """ return self._intervals @intervals.setter - def intervals(self, intervals): + def intervals(self, intervals: VelocityIntervalResult): """Sets the intervals of this VelocityIntervals. :param intervals: The intervals of this VelocityIntervals. # noqa: E501 - :type: VelocityIntervalResult """ self._intervals = intervals diff --git a/fingerprint_pro_server_api_sdk/models/velocity_result.py b/fingerprint_pro_server_api_sdk/models/velocity_result.py index e917c0ac..bfd52b8f 100644 --- a/fingerprint_pro_server_api_sdk/models/velocity_result.py +++ b/fingerprint_pro_server_api_sdk/models/velocity_result.py @@ -11,7 +11,12 @@ """ import re # noqa: F401 +from typing import Dict # 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 +from fingerprint_pro_server_api_sdk.models.velocity_intervals import VelocityIntervals +from fingerprint_pro_server_api_sdk.models.velocity_intervals import VelocityIntervals class VelocityResult(BaseModel): @@ -56,22 +61,20 @@ def __init__(self, distinct_ip=None, distinct_linked_id=None, distinct_country=N self.events = events @property - def distinct_ip(self): + def distinct_ip(self) -> VelocityIntervals: """Gets the distinct_ip of this VelocityResult. # noqa: E501 :return: The distinct_ip of this VelocityResult. # noqa: E501 - :rtype: VelocityIntervals """ return self._distinct_ip @distinct_ip.setter - def distinct_ip(self, distinct_ip): + def distinct_ip(self, distinct_ip: VelocityIntervals): """Sets the distinct_ip of this VelocityResult. :param distinct_ip: The distinct_ip of this VelocityResult. # noqa: E501 - :type: VelocityIntervals """ if distinct_ip is None: raise ValueError("Invalid value for `distinct_ip`, must not be `None`") # noqa: E501 @@ -79,22 +82,20 @@ def distinct_ip(self, distinct_ip): self._distinct_ip = distinct_ip @property - def distinct_linked_id(self): + def distinct_linked_id(self) -> VelocityIntervals: """Gets the distinct_linked_id of this VelocityResult. # noqa: E501 :return: The distinct_linked_id of this VelocityResult. # noqa: E501 - :rtype: VelocityIntervals """ return self._distinct_linked_id @distinct_linked_id.setter - def distinct_linked_id(self, distinct_linked_id): + def distinct_linked_id(self, distinct_linked_id: VelocityIntervals): """Sets the distinct_linked_id of this VelocityResult. :param distinct_linked_id: The distinct_linked_id of this VelocityResult. # noqa: E501 - :type: VelocityIntervals """ if distinct_linked_id is None: raise ValueError("Invalid value for `distinct_linked_id`, must not be `None`") # noqa: E501 @@ -102,22 +103,20 @@ def distinct_linked_id(self, distinct_linked_id): self._distinct_linked_id = distinct_linked_id @property - def distinct_country(self): + def distinct_country(self) -> VelocityIntervals: """Gets the distinct_country of this VelocityResult. # noqa: E501 :return: The distinct_country of this VelocityResult. # noqa: E501 - :rtype: VelocityIntervals """ return self._distinct_country @distinct_country.setter - def distinct_country(self, distinct_country): + def distinct_country(self, distinct_country: VelocityIntervals): """Sets the distinct_country of this VelocityResult. :param distinct_country: The distinct_country of this VelocityResult. # noqa: E501 - :type: VelocityIntervals """ if distinct_country is None: raise ValueError("Invalid value for `distinct_country`, must not be `None`") # noqa: E501 @@ -125,22 +124,20 @@ def distinct_country(self, distinct_country): self._distinct_country = distinct_country @property - def events(self): + def events(self) -> VelocityIntervals: """Gets the events of this VelocityResult. # noqa: E501 :return: The events of this VelocityResult. # noqa: E501 - :rtype: VelocityIntervals """ return self._events @events.setter - def events(self, events): + def events(self, events: VelocityIntervals): """Sets the events of this VelocityResult. :param events: The events of this VelocityResult. # noqa: E501 - :type: VelocityIntervals """ if events is None: raise ValueError("Invalid value for `events`, must not be `None`") # noqa: E501 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 915c385e..05c301eb 100644 --- a/fingerprint_pro_server_api_sdk/models/virtual_machine_result.py +++ b/fingerprint_pro_server_api_sdk/models/virtual_machine_result.py @@ -11,6 +11,7 @@ """ import re # noqa: F401 +from typing import Dict # noqa: F401 from fingerprint_pro_server_api_sdk.base_model import BaseModel @@ -41,24 +42,22 @@ def __init__(self, result=None): # noqa: E501 self.result = result @property - def result(self): + def result(self) -> bool: """Gets the result of this VirtualMachineResult. # noqa: E501 `true` if the request came from a browser running inside a virtual machine (e.g. VMWare), `false` otherwise. # noqa: E501 :return: The result of this VirtualMachineResult. # noqa: E501 - :rtype: bool """ return self._result @result.setter - def result(self, result): + def result(self, result: bool): """Sets the result of this VirtualMachineResult. `true` if the request came from a browser running inside a virtual machine (e.g. VMWare), `false` otherwise. # noqa: E501 :param result: The result of this VirtualMachineResult. # noqa: E501 - :type: bool """ if result is None: raise ValueError("Invalid value for `result`, must not be `None`") # noqa: E501 diff --git a/fingerprint_pro_server_api_sdk/models/visit.py b/fingerprint_pro_server_api_sdk/models/visit.py index f2d19782..04435c14 100644 --- a/fingerprint_pro_server_api_sdk/models/visit.py +++ b/fingerprint_pro_server_api_sdk/models/visit.py @@ -11,7 +11,14 @@ """ import re # noqa: F401 +from typing import Dict # 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 +from datetime import datetime +from fingerprint_pro_server_api_sdk.models.confidence import Confidence +from fingerprint_pro_server_api_sdk.models.seen_at import SeenAt +from fingerprint_pro_server_api_sdk.models.seen_at import SeenAt class Visit(BaseModel): @@ -96,24 +103,22 @@ def __init__(self, request_id=None, browser_details=None, incognito=None, ip=Non self.last_seen_at = last_seen_at @property - def request_id(self): + def request_id(self) -> str: """Gets the request_id of this Visit. # noqa: E501 Unique identifier of the user's identification request. # noqa: E501 :return: The request_id of this Visit. # noqa: E501 - :rtype: str """ return self._request_id @request_id.setter - def request_id(self, request_id): + def request_id(self, request_id: str): """Sets the request_id of this Visit. Unique identifier of the user's identification request. # noqa: E501 :param request_id: The request_id of this Visit. # noqa: E501 - :type: str """ if request_id is None: raise ValueError("Invalid value for `request_id`, must not be `None`") # noqa: E501 @@ -121,22 +126,20 @@ def request_id(self, request_id): self._request_id = request_id @property - def browser_details(self): + def browser_details(self) -> BrowserDetails: """Gets the browser_details of this Visit. # noqa: E501 :return: The browser_details of this Visit. # noqa: E501 - :rtype: BrowserDetails """ return self._browser_details @browser_details.setter - def browser_details(self, browser_details): + def browser_details(self, browser_details: BrowserDetails): """Sets the browser_details of this Visit. :param browser_details: The browser_details of this Visit. # noqa: E501 - :type: BrowserDetails """ if browser_details is None: raise ValueError("Invalid value for `browser_details`, must not be `None`") # noqa: E501 @@ -144,24 +147,22 @@ def browser_details(self, browser_details): self._browser_details = browser_details @property - def incognito(self): + def incognito(self) -> bool: """Gets the incognito of this Visit. # noqa: E501 Flag if user used incognito session. # noqa: E501 :return: The incognito of this Visit. # noqa: E501 - :rtype: bool """ return self._incognito @incognito.setter - def incognito(self, incognito): + def incognito(self, incognito: bool): """Sets the incognito of this Visit. Flag if user used incognito session. # noqa: E501 :param incognito: The incognito of this Visit. # noqa: E501 - :type: bool """ if incognito is None: raise ValueError("Invalid value for `incognito`, must not be `None`") # noqa: E501 @@ -169,22 +170,20 @@ def incognito(self, incognito): self._incognito = incognito @property - def ip(self): + def ip(self) -> str: """Gets the ip of this Visit. # noqa: E501 :return: The ip of this Visit. # noqa: E501 - :rtype: str """ return self._ip @ip.setter - def ip(self, ip): + def ip(self, ip: str): """Sets the ip of this Visit. :param ip: The ip of this Visit. # noqa: E501 - :type: str """ if ip is None: raise ValueError("Invalid value for `ip`, must not be `None`") # noqa: E501 @@ -192,45 +191,41 @@ def ip(self, ip): self._ip = ip @property - def ip_location(self): + def ip_location(self) -> DeprecatedIPLocation: """Gets the ip_location of this Visit. # noqa: E501 :return: The ip_location of this Visit. # noqa: E501 - :rtype: DeprecatedIPLocation """ return self._ip_location @ip_location.setter - def ip_location(self, ip_location): + def ip_location(self, ip_location: DeprecatedIPLocation): """Sets the ip_location of this Visit. :param ip_location: The ip_location of this Visit. # noqa: E501 - :type: DeprecatedIPLocation """ self._ip_location = ip_location @property - def timestamp(self): + def timestamp(self) -> int: """Gets the timestamp of this Visit. # noqa: E501 Timestamp of the event with millisecond precision in Unix time. # noqa: E501 :return: The timestamp of this Visit. # noqa: E501 - :rtype: int """ return self._timestamp @timestamp.setter - def timestamp(self, timestamp): + def timestamp(self, timestamp: int): """Sets the timestamp of this Visit. Timestamp of the event with millisecond precision in Unix time. # noqa: E501 :param timestamp: The timestamp of this Visit. # noqa: E501 - :type: int """ if timestamp is None: raise ValueError("Invalid value for `timestamp`, must not be `None`") # noqa: E501 @@ -238,24 +233,22 @@ def timestamp(self, timestamp): self._timestamp = timestamp @property - def time(self): + def time(self) -> datetime: """Gets the time of this Visit. # noqa: E501 Time expressed according to ISO 8601 in UTC format. # noqa: E501 :return: The time of this Visit. # noqa: E501 - :rtype: datetime """ return self._time @time.setter - def time(self, time): + def time(self, time: datetime): """Sets the time of this Visit. Time expressed according to ISO 8601 in UTC format. # noqa: E501 :param time: The time of this Visit. # noqa: E501 - :type: datetime """ if time is None: raise ValueError("Invalid value for `time`, must not be `None`") # noqa: E501 @@ -263,24 +256,22 @@ def time(self, time): self._time = time @property - def url(self): + def url(self) -> str: """Gets the url of this Visit. # noqa: E501 Page URL from which the identification request was sent. # noqa: E501 :return: The url of this Visit. # noqa: E501 - :rtype: str """ return self._url @url.setter - def url(self, url): + def url(self, url: str): """Sets the url of this Visit. Page URL from which the identification request was sent. # noqa: E501 :param url: The url of this Visit. # noqa: E501 - :type: str """ if url is None: raise ValueError("Invalid value for `url`, must not be `None`") # noqa: E501 @@ -288,24 +279,22 @@ def url(self, url): self._url = url @property - def tag(self): + def tag(self) -> 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 :return: The tag of this Visit. # noqa: E501 - :rtype: dict(str, object) """ return self._tag @tag.setter - def tag(self, tag): + def tag(self, tag: Dict[str, object]): """Sets the tag of this Visit. A customer-provided value or an object that was sent with identification request. # noqa: E501 :param tag: The tag of this Visit. # noqa: E501 - :type: dict(str, object) """ if tag is None: raise ValueError("Invalid value for `tag`, must not be `None`") # noqa: E501 @@ -313,68 +302,62 @@ def tag(self, tag): self._tag = tag @property - def linked_id(self): + def linked_id(self) -> str: """Gets the linked_id of this Visit. # noqa: E501 A customer-provided id that was sent with identification request. # noqa: E501 :return: The linked_id of this Visit. # noqa: E501 - :rtype: str """ return self._linked_id @linked_id.setter - def linked_id(self, linked_id): + def linked_id(self, linked_id: str): """Sets the linked_id of this Visit. A customer-provided id that was sent with identification request. # noqa: E501 :param linked_id: The linked_id of this Visit. # noqa: E501 - :type: str """ self._linked_id = linked_id @property - def confidence(self): + def confidence(self) -> Confidence: """Gets the confidence of this Visit. # noqa: E501 :return: The confidence of this Visit. # noqa: E501 - :rtype: Confidence """ return self._confidence @confidence.setter - def confidence(self, confidence): + def confidence(self, confidence: Confidence): """Sets the confidence of this Visit. :param confidence: The confidence of this Visit. # noqa: E501 - :type: Confidence """ self._confidence = confidence @property - def visitor_found(self): + def visitor_found(self) -> bool: """Gets the visitor_found of this Visit. # noqa: E501 Attribute represents if a visitor had been identified before. # noqa: E501 :return: The visitor_found of this Visit. # noqa: E501 - :rtype: bool """ return self._visitor_found @visitor_found.setter - def visitor_found(self, visitor_found): + def visitor_found(self, visitor_found: bool): """Sets the visitor_found of this Visit. Attribute represents if a visitor had been identified before. # noqa: E501 :param visitor_found: The visitor_found of this Visit. # noqa: E501 - :type: bool """ if visitor_found is None: raise ValueError("Invalid value for `visitor_found`, must not be `None`") # noqa: E501 @@ -382,22 +365,20 @@ def visitor_found(self, visitor_found): self._visitor_found = visitor_found @property - def first_seen_at(self): + def first_seen_at(self) -> SeenAt: """Gets the first_seen_at of this Visit. # noqa: E501 :return: The first_seen_at of this Visit. # noqa: E501 - :rtype: SeenAt """ return self._first_seen_at @first_seen_at.setter - def first_seen_at(self, first_seen_at): + def first_seen_at(self, first_seen_at: SeenAt): """Sets the first_seen_at of this Visit. :param first_seen_at: The first_seen_at of this Visit. # noqa: E501 - :type: SeenAt """ if first_seen_at is None: raise ValueError("Invalid value for `first_seen_at`, must not be `None`") # noqa: E501 @@ -405,22 +386,20 @@ def first_seen_at(self, first_seen_at): self._first_seen_at = first_seen_at @property - def last_seen_at(self): + def last_seen_at(self) -> SeenAt: """Gets the last_seen_at of this Visit. # noqa: E501 :return: The last_seen_at of this Visit. # noqa: E501 - :rtype: SeenAt """ return self._last_seen_at @last_seen_at.setter - def last_seen_at(self, last_seen_at): + def last_seen_at(self, last_seen_at: SeenAt): """Sets the last_seen_at of this Visit. :param last_seen_at: The last_seen_at of this Visit. # noqa: E501 - :type: SeenAt """ if last_seen_at is None: raise ValueError("Invalid value for `last_seen_at`, must not be `None`") # noqa: E501 diff --git a/fingerprint_pro_server_api_sdk/models/vpn_result.py b/fingerprint_pro_server_api_sdk/models/vpn_result.py index db2045f9..46fcf140 100644 --- a/fingerprint_pro_server_api_sdk/models/vpn_result.py +++ b/fingerprint_pro_server_api_sdk/models/vpn_result.py @@ -11,7 +11,9 @@ """ import re # noqa: F401 +from typing import Dict # noqa: F401 from fingerprint_pro_server_api_sdk.base_model import BaseModel +from fingerprint_pro_server_api_sdk.models.vpn_result_methods import VpnResultMethods class VpnResult(BaseModel): @@ -54,24 +56,22 @@ def __init__(self, result=None, origin_timezone=None, origin_country=None, metho self.methods = methods @property - def result(self): + def result(self) -> bool: """Gets the result of this VpnResult. # noqa: E501 VPN or other anonymizing service has been used when sending the request. # noqa: E501 :return: The result of this VpnResult. # noqa: E501 - :rtype: bool """ return self._result @result.setter - def result(self, result): + def result(self, result: bool): """Sets the result of this VpnResult. VPN or other anonymizing service has been used when sending the request. # noqa: E501 :param result: The result of this VpnResult. # noqa: E501 - :type: bool """ if result is None: raise ValueError("Invalid value for `result`, must not be `None`") # noqa: E501 @@ -79,24 +79,22 @@ def result(self, result): self._result = result @property - def origin_timezone(self): + def origin_timezone(self) -> str: """Gets the origin_timezone of this VpnResult. # noqa: E501 Local timezone which is used in timezoneMismatch method. # noqa: E501 :return: The origin_timezone of this VpnResult. # noqa: E501 - :rtype: str """ return self._origin_timezone @origin_timezone.setter - def origin_timezone(self, origin_timezone): + def origin_timezone(self, origin_timezone: str): """Sets the origin_timezone of this VpnResult. Local timezone which is used in timezoneMismatch method. # noqa: E501 :param origin_timezone: The origin_timezone of this VpnResult. # noqa: E501 - :type: str """ if origin_timezone is None: raise ValueError("Invalid value for `origin_timezone`, must not be `None`") # noqa: E501 @@ -104,45 +102,41 @@ def origin_timezone(self, origin_timezone): self._origin_timezone = origin_timezone @property - def origin_country(self): + def origin_country(self) -> 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 :return: The origin_country of this VpnResult. # noqa: E501 - :rtype: str """ return self._origin_country @origin_country.setter - def origin_country(self, origin_country): + def origin_country(self, origin_country: 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 :param origin_country: The origin_country of this VpnResult. # noqa: E501 - :type: str """ self._origin_country = origin_country @property - def methods(self): + def methods(self) -> VpnResultMethods: """Gets the methods of this VpnResult. # noqa: E501 :return: The methods of this VpnResult. # noqa: E501 - :rtype: VpnResultMethods """ return self._methods @methods.setter - def methods(self, methods): + def methods(self, methods: VpnResultMethods): """Sets the methods of this VpnResult. :param methods: The methods of this VpnResult. # noqa: E501 - :type: VpnResultMethods """ if methods is None: raise ValueError("Invalid value for `methods`, must not be `None`") # 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 966340ac..f9b94372 100644 --- a/fingerprint_pro_server_api_sdk/models/vpn_result_methods.py +++ b/fingerprint_pro_server_api_sdk/models/vpn_result_methods.py @@ -11,6 +11,7 @@ """ import re # noqa: F401 +from typing import Dict # noqa: F401 from fingerprint_pro_server_api_sdk.base_model import BaseModel @@ -53,24 +54,22 @@ def __init__(self, timezone_mismatch=None, public_vpn=None, auxiliary_mobile=Non self.os_mismatch = os_mismatch @property - def timezone_mismatch(self): + def timezone_mismatch(self) -> bool: """Gets the timezone_mismatch of this VpnResultMethods. # noqa: E501 The browser timezone doesn't match the timezone inferred from the request IP address. # noqa: E501 :return: The timezone_mismatch of this VpnResultMethods. # noqa: E501 - :rtype: bool """ return self._timezone_mismatch @timezone_mismatch.setter - def timezone_mismatch(self, timezone_mismatch): + def timezone_mismatch(self, timezone_mismatch: bool): """Sets the timezone_mismatch of this VpnResultMethods. The browser timezone doesn't match the timezone inferred from the request IP address. # noqa: E501 :param timezone_mismatch: The timezone_mismatch of this VpnResultMethods. # noqa: E501 - :type: bool """ if timezone_mismatch is None: raise ValueError("Invalid value for `timezone_mismatch`, must not be `None`") # noqa: E501 @@ -78,24 +77,22 @@ def timezone_mismatch(self, timezone_mismatch): self._timezone_mismatch = timezone_mismatch @property - def public_vpn(self): + def public_vpn(self) -> bool: """Gets the public_vpn of this VpnResultMethods. # noqa: E501 Request IP address is owned and used by a public VPN service provider. # noqa: E501 :return: The public_vpn of this VpnResultMethods. # noqa: E501 - :rtype: bool """ return self._public_vpn @public_vpn.setter - def public_vpn(self, public_vpn): + def public_vpn(self, public_vpn: bool): """Sets the public_vpn of this VpnResultMethods. Request IP address is owned and used by a public VPN service provider. # noqa: E501 :param public_vpn: The public_vpn of this VpnResultMethods. # noqa: E501 - :type: bool """ if public_vpn is None: raise ValueError("Invalid value for `public_vpn`, must not be `None`") # noqa: E501 @@ -103,24 +100,22 @@ def public_vpn(self, public_vpn): self._public_vpn = public_vpn @property - def auxiliary_mobile(self): + def auxiliary_mobile(self) -> bool: """Gets the auxiliary_mobile of this VpnResultMethods. # noqa: E501 This method applies to mobile devices only. Indicates the result of additional methods used to detect a VPN in mobile devices. # noqa: E501 :return: The auxiliary_mobile of this VpnResultMethods. # noqa: E501 - :rtype: bool """ return self._auxiliary_mobile @auxiliary_mobile.setter - def auxiliary_mobile(self, auxiliary_mobile): + def auxiliary_mobile(self, auxiliary_mobile: bool): """Sets the auxiliary_mobile of this VpnResultMethods. This method applies to mobile devices only. Indicates the result of additional methods used to detect a VPN in mobile devices. # noqa: E501 :param auxiliary_mobile: The auxiliary_mobile of this VpnResultMethods. # noqa: E501 - :type: bool """ if auxiliary_mobile is None: raise ValueError("Invalid value for `auxiliary_mobile`, must not be `None`") # noqa: E501 @@ -128,24 +123,22 @@ def auxiliary_mobile(self, auxiliary_mobile): self._auxiliary_mobile = auxiliary_mobile @property - def os_mismatch(self): + def os_mismatch(self) -> bool: """Gets the os_mismatch of this VpnResultMethods. # noqa: E501 The browser runs on a different operating system than the operating system inferred from the request network signature. # noqa: E501 :return: The os_mismatch of this VpnResultMethods. # noqa: E501 - :rtype: bool """ return self._os_mismatch @os_mismatch.setter - def os_mismatch(self, os_mismatch): + def os_mismatch(self, os_mismatch: bool): """Sets the os_mismatch of this VpnResultMethods. The browser runs on a different operating system than the operating system inferred from the request network signature. # noqa: E501 :param os_mismatch: The os_mismatch of this VpnResultMethods. # noqa: E501 - :type: bool """ if os_mismatch is None: raise ValueError("Invalid value for `os_mismatch`, must not be `None`") # noqa: E501 diff --git a/fingerprint_pro_server_api_sdk/models/webhook_visit.py b/fingerprint_pro_server_api_sdk/models/webhook_visit.py index 785b1c08..fc6a0f47 100644 --- a/fingerprint_pro_server_api_sdk/models/webhook_visit.py +++ b/fingerprint_pro_server_api_sdk/models/webhook_visit.py @@ -11,7 +11,35 @@ """ import re # noqa: F401 +from typing import Dict # 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 +from fingerprint_pro_server_api_sdk.models.root_apps_result import RootAppsResult +from fingerprint_pro_server_api_sdk.models.emulator_result import EmulatorResult +from fingerprint_pro_server_api_sdk.models.cloned_app_result import ClonedAppResult +from fingerprint_pro_server_api_sdk.models.factory_reset_result import FactoryResetResult +from fingerprint_pro_server_api_sdk.models.jailbroken_result import JailbrokenResult +from fingerprint_pro_server_api_sdk.models.frida_result import FridaResult +from fingerprint_pro_server_api_sdk.models.ip_block_list_result import IpBlockListResult +from fingerprint_pro_server_api_sdk.models.tor_result import TorResult +from fingerprint_pro_server_api_sdk.models.privacy_settings_result import PrivacySettingsResult +from fingerprint_pro_server_api_sdk.models.virtual_machine_result import VirtualMachineResult +from fingerprint_pro_server_api_sdk.models.vpn_result import VpnResult +from fingerprint_pro_server_api_sdk.models.proxy_result import ProxyResult +from fingerprint_pro_server_api_sdk.models.tampering_result import TamperingResult +from fingerprint_pro_server_api_sdk.models.raw_device_attributes_result import RawDeviceAttributesResult +from fingerprint_pro_server_api_sdk.models.high_activity_result import HighActivityResult +from fingerprint_pro_server_api_sdk.models.location_spoofing_result import LocationSpoofingResult +from fingerprint_pro_server_api_sdk.models.suspect_score_result import SuspectScoreResult +from fingerprint_pro_server_api_sdk.models.remote_control_result import RemoteControlResult +from fingerprint_pro_server_api_sdk.models.velocity_result import VelocityResult +from fingerprint_pro_server_api_sdk.models.browser_details import BrowserDetails +from fingerprint_pro_server_api_sdk.models.deprecated_ip_location import DeprecatedIPLocation +from datetime import datetime +from fingerprint_pro_server_api_sdk.models.confidence import Confidence +from fingerprint_pro_server_api_sdk.models.seen_at import SeenAt +from fingerprint_pro_server_api_sdk.models.seen_at import SeenAt class WebhookVisit(BaseModel): @@ -215,22 +243,20 @@ def __init__(self, visitor_id=None, client_referrer=None, user_agent=None, bot=N self.last_seen_at = last_seen_at @property - def visitor_id(self): + def visitor_id(self) -> str: """Gets the visitor_id of this WebhookVisit. # noqa: E501 :return: The visitor_id of this WebhookVisit. # noqa: E501 - :rtype: str """ return self._visitor_id @visitor_id.setter - def visitor_id(self, visitor_id): + def visitor_id(self, visitor_id: str): """Sets the visitor_id of this WebhookVisit. :param visitor_id: The visitor_id of this WebhookVisit. # noqa: E501 - :type: str """ if visitor_id is None: raise ValueError("Invalid value for `visitor_id`, must not be `None`") # noqa: E501 @@ -238,108 +264,98 @@ def visitor_id(self, visitor_id): self._visitor_id = visitor_id @property - def client_referrer(self): + def client_referrer(self) -> str: """Gets the client_referrer of this WebhookVisit. # noqa: E501 :return: The client_referrer of this WebhookVisit. # noqa: E501 - :rtype: str """ return self._client_referrer @client_referrer.setter - def client_referrer(self, client_referrer): + def client_referrer(self, client_referrer: str): """Sets the client_referrer of this WebhookVisit. :param client_referrer: The client_referrer of this WebhookVisit. # noqa: E501 - :type: str """ self._client_referrer = client_referrer @property - def user_agent(self): + def user_agent(self) -> str: """Gets the user_agent of this WebhookVisit. # noqa: E501 :return: The user_agent of this WebhookVisit. # noqa: E501 - :rtype: str """ return self._user_agent @user_agent.setter - def user_agent(self, user_agent): + def user_agent(self, user_agent: str): """Sets the user_agent of this WebhookVisit. :param user_agent: The user_agent of this WebhookVisit. # noqa: E501 - :type: str """ self._user_agent = user_agent @property - def bot(self): + def bot(self) -> BotdDetectionResult: """Gets the bot of this WebhookVisit. # noqa: E501 :return: The bot of this WebhookVisit. # noqa: E501 - :rtype: BotdDetectionResult """ return self._bot @bot.setter - def bot(self, bot): + def bot(self, bot: BotdDetectionResult): """Sets the bot of this WebhookVisit. :param bot: The bot of this WebhookVisit. # noqa: E501 - :type: BotdDetectionResult """ self._bot = bot @property - def ip_info(self): + def ip_info(self) -> IpInfoResult: """Gets the ip_info of this WebhookVisit. # noqa: E501 :return: The ip_info of this WebhookVisit. # noqa: E501 - :rtype: IpInfoResult """ return self._ip_info @ip_info.setter - def ip_info(self, ip_info): + def ip_info(self, ip_info: IpInfoResult): """Sets the ip_info of this WebhookVisit. :param ip_info: The ip_info of this WebhookVisit. # noqa: E501 - :type: IpInfoResult """ self._ip_info = ip_info @property - def incognito(self): + def incognito(self) -> bool: """Gets the incognito of this WebhookVisit. # noqa: E501 Flag if user used incognito session. # noqa: E501 :return: The incognito of this WebhookVisit. # noqa: E501 - :rtype: bool """ return self._incognito @incognito.setter - def incognito(self, incognito): + def incognito(self, incognito: bool): """Sets the incognito of this WebhookVisit. Flag if user used incognito session. # noqa: E501 :param incognito: The incognito of this WebhookVisit. # noqa: E501 - :type: bool """ if incognito is None: raise ValueError("Invalid value for `incognito`, must not be `None`") # noqa: E501 @@ -347,423 +363,383 @@ def incognito(self, incognito): self._incognito = incognito @property - def root_apps(self): + def root_apps(self) -> RootAppsResult: """Gets the root_apps of this WebhookVisit. # noqa: E501 :return: The root_apps of this WebhookVisit. # noqa: E501 - :rtype: RootAppsResult """ return self._root_apps @root_apps.setter - def root_apps(self, root_apps): + def root_apps(self, root_apps: RootAppsResult): """Sets the root_apps of this WebhookVisit. :param root_apps: The root_apps of this WebhookVisit. # noqa: E501 - :type: RootAppsResult """ self._root_apps = root_apps @property - def emulator(self): + def emulator(self) -> EmulatorResult: """Gets the emulator of this WebhookVisit. # noqa: E501 :return: The emulator of this WebhookVisit. # noqa: E501 - :rtype: EmulatorResult """ return self._emulator @emulator.setter - def emulator(self, emulator): + def emulator(self, emulator: EmulatorResult): """Sets the emulator of this WebhookVisit. :param emulator: The emulator of this WebhookVisit. # noqa: E501 - :type: EmulatorResult """ self._emulator = emulator @property - def cloned_app(self): + def cloned_app(self) -> ClonedAppResult: """Gets the cloned_app of this WebhookVisit. # noqa: E501 :return: The cloned_app of this WebhookVisit. # noqa: E501 - :rtype: ClonedAppResult """ return self._cloned_app @cloned_app.setter - def cloned_app(self, cloned_app): + def cloned_app(self, cloned_app: ClonedAppResult): """Sets the cloned_app of this WebhookVisit. :param cloned_app: The cloned_app of this WebhookVisit. # noqa: E501 - :type: ClonedAppResult """ self._cloned_app = cloned_app @property - def factory_reset(self): + def factory_reset(self) -> FactoryResetResult: """Gets the factory_reset of this WebhookVisit. # noqa: E501 :return: The factory_reset of this WebhookVisit. # noqa: E501 - :rtype: FactoryResetResult """ return self._factory_reset @factory_reset.setter - def factory_reset(self, factory_reset): + def factory_reset(self, factory_reset: FactoryResetResult): """Sets the factory_reset of this WebhookVisit. :param factory_reset: The factory_reset of this WebhookVisit. # noqa: E501 - :type: FactoryResetResult """ self._factory_reset = factory_reset @property - def jailbroken(self): + def jailbroken(self) -> JailbrokenResult: """Gets the jailbroken of this WebhookVisit. # noqa: E501 :return: The jailbroken of this WebhookVisit. # noqa: E501 - :rtype: JailbrokenResult """ return self._jailbroken @jailbroken.setter - def jailbroken(self, jailbroken): + def jailbroken(self, jailbroken: JailbrokenResult): """Sets the jailbroken of this WebhookVisit. :param jailbroken: The jailbroken of this WebhookVisit. # noqa: E501 - :type: JailbrokenResult """ self._jailbroken = jailbroken @property - def frida(self): + def frida(self) -> FridaResult: """Gets the frida of this WebhookVisit. # noqa: E501 :return: The frida of this WebhookVisit. # noqa: E501 - :rtype: FridaResult """ return self._frida @frida.setter - def frida(self, frida): + def frida(self, frida: FridaResult): """Sets the frida of this WebhookVisit. :param frida: The frida of this WebhookVisit. # noqa: E501 - :type: FridaResult """ self._frida = frida @property - def ip_blocklist(self): + def ip_blocklist(self) -> IpBlockListResult: """Gets the ip_blocklist of this WebhookVisit. # noqa: E501 :return: The ip_blocklist of this WebhookVisit. # noqa: E501 - :rtype: IpBlockListResult """ return self._ip_blocklist @ip_blocklist.setter - def ip_blocklist(self, ip_blocklist): + def ip_blocklist(self, ip_blocklist: IpBlockListResult): """Sets the ip_blocklist of this WebhookVisit. :param ip_blocklist: The ip_blocklist of this WebhookVisit. # noqa: E501 - :type: IpBlockListResult """ self._ip_blocklist = ip_blocklist @property - def tor(self): + def tor(self) -> TorResult: """Gets the tor of this WebhookVisit. # noqa: E501 :return: The tor of this WebhookVisit. # noqa: E501 - :rtype: TorResult """ return self._tor @tor.setter - def tor(self, tor): + def tor(self, tor: TorResult): """Sets the tor of this WebhookVisit. :param tor: The tor of this WebhookVisit. # noqa: E501 - :type: TorResult """ self._tor = tor @property - def privacy_settings(self): + def privacy_settings(self) -> PrivacySettingsResult: """Gets the privacy_settings of this WebhookVisit. # noqa: E501 :return: The privacy_settings of this WebhookVisit. # noqa: E501 - :rtype: PrivacySettingsResult """ return self._privacy_settings @privacy_settings.setter - def privacy_settings(self, privacy_settings): + def privacy_settings(self, privacy_settings: PrivacySettingsResult): """Sets the privacy_settings of this WebhookVisit. :param privacy_settings: The privacy_settings of this WebhookVisit. # noqa: E501 - :type: PrivacySettingsResult """ self._privacy_settings = privacy_settings @property - def virtual_machine(self): + def virtual_machine(self) -> VirtualMachineResult: """Gets the virtual_machine of this WebhookVisit. # noqa: E501 :return: The virtual_machine of this WebhookVisit. # noqa: E501 - :rtype: VirtualMachineResult """ return self._virtual_machine @virtual_machine.setter - def virtual_machine(self, virtual_machine): + def virtual_machine(self, virtual_machine: VirtualMachineResult): """Sets the virtual_machine of this WebhookVisit. :param virtual_machine: The virtual_machine of this WebhookVisit. # noqa: E501 - :type: VirtualMachineResult """ self._virtual_machine = virtual_machine @property - def vpn(self): + def vpn(self) -> VpnResult: """Gets the vpn of this WebhookVisit. # noqa: E501 :return: The vpn of this WebhookVisit. # noqa: E501 - :rtype: VpnResult """ return self._vpn @vpn.setter - def vpn(self, vpn): + def vpn(self, vpn: VpnResult): """Sets the vpn of this WebhookVisit. :param vpn: The vpn of this WebhookVisit. # noqa: E501 - :type: VpnResult """ self._vpn = vpn @property - def proxy(self): + def proxy(self) -> ProxyResult: """Gets the proxy of this WebhookVisit. # noqa: E501 :return: The proxy of this WebhookVisit. # noqa: E501 - :rtype: ProxyResult """ return self._proxy @proxy.setter - def proxy(self, proxy): + def proxy(self, proxy: ProxyResult): """Sets the proxy of this WebhookVisit. :param proxy: The proxy of this WebhookVisit. # noqa: E501 - :type: ProxyResult """ self._proxy = proxy @property - def tampering(self): + def tampering(self) -> TamperingResult: """Gets the tampering of this WebhookVisit. # noqa: E501 :return: The tampering of this WebhookVisit. # noqa: E501 - :rtype: TamperingResult """ return self._tampering @tampering.setter - def tampering(self, tampering): + def tampering(self, tampering: TamperingResult): """Sets the tampering of this WebhookVisit. :param tampering: The tampering of this WebhookVisit. # noqa: E501 - :type: TamperingResult """ self._tampering = tampering @property - def raw_device_attributes(self): + def raw_device_attributes(self) -> RawDeviceAttributesResult: """Gets the raw_device_attributes of this WebhookVisit. # noqa: E501 :return: The raw_device_attributes of this WebhookVisit. # noqa: E501 - :rtype: RawDeviceAttributesResult """ return self._raw_device_attributes @raw_device_attributes.setter - def raw_device_attributes(self, raw_device_attributes): + def raw_device_attributes(self, raw_device_attributes: RawDeviceAttributesResult): """Sets the raw_device_attributes of this WebhookVisit. :param raw_device_attributes: The raw_device_attributes of this WebhookVisit. # noqa: E501 - :type: RawDeviceAttributesResult """ self._raw_device_attributes = raw_device_attributes @property - def high_activity(self): + def high_activity(self) -> HighActivityResult: """Gets the high_activity of this WebhookVisit. # noqa: E501 :return: The high_activity of this WebhookVisit. # noqa: E501 - :rtype: HighActivityResult """ return self._high_activity @high_activity.setter - def high_activity(self, high_activity): + def high_activity(self, high_activity: HighActivityResult): """Sets the high_activity of this WebhookVisit. :param high_activity: The high_activity of this WebhookVisit. # noqa: E501 - :type: HighActivityResult """ self._high_activity = high_activity @property - def location_spoofing(self): + def location_spoofing(self) -> LocationSpoofingResult: """Gets the location_spoofing of this WebhookVisit. # noqa: E501 :return: The location_spoofing of this WebhookVisit. # noqa: E501 - :rtype: LocationSpoofingResult """ return self._location_spoofing @location_spoofing.setter - def location_spoofing(self, location_spoofing): + def location_spoofing(self, location_spoofing: LocationSpoofingResult): """Sets the location_spoofing of this WebhookVisit. :param location_spoofing: The location_spoofing of this WebhookVisit. # noqa: E501 - :type: LocationSpoofingResult """ self._location_spoofing = location_spoofing @property - def suspect_score(self): + def suspect_score(self) -> SuspectScoreResult: """Gets the suspect_score of this WebhookVisit. # noqa: E501 :return: The suspect_score of this WebhookVisit. # noqa: E501 - :rtype: SuspectScoreResult """ return self._suspect_score @suspect_score.setter - def suspect_score(self, suspect_score): + def suspect_score(self, suspect_score: SuspectScoreResult): """Sets the suspect_score of this WebhookVisit. :param suspect_score: The suspect_score of this WebhookVisit. # noqa: E501 - :type: SuspectScoreResult """ self._suspect_score = suspect_score @property - def remote_control(self): + def remote_control(self) -> RemoteControlResult: """Gets the remote_control of this WebhookVisit. # noqa: E501 :return: The remote_control of this WebhookVisit. # noqa: E501 - :rtype: RemoteControlResult """ return self._remote_control @remote_control.setter - def remote_control(self, remote_control): + def remote_control(self, remote_control: RemoteControlResult): """Sets the remote_control of this WebhookVisit. :param remote_control: The remote_control of this WebhookVisit. # noqa: E501 - :type: RemoteControlResult """ self._remote_control = remote_control @property - def velocity(self): + def velocity(self) -> VelocityResult: """Gets the velocity of this WebhookVisit. # noqa: E501 :return: The velocity of this WebhookVisit. # noqa: E501 - :rtype: VelocityResult """ return self._velocity @velocity.setter - def velocity(self, velocity): + def velocity(self, velocity: VelocityResult): """Sets the velocity of this WebhookVisit. :param velocity: The velocity of this WebhookVisit. # noqa: E501 - :type: VelocityResult """ self._velocity = velocity @property - def request_id(self): + def request_id(self) -> str: """Gets the request_id of this WebhookVisit. # noqa: E501 Unique identifier of the user's identification request. # noqa: E501 :return: The request_id of this WebhookVisit. # noqa: E501 - :rtype: str """ return self._request_id @request_id.setter - def request_id(self, request_id): + def request_id(self, request_id: str): """Sets the request_id of this WebhookVisit. Unique identifier of the user's identification request. # noqa: E501 :param request_id: The request_id of this WebhookVisit. # noqa: E501 - :type: str """ if request_id is None: raise ValueError("Invalid value for `request_id`, must not be `None`") # noqa: E501 @@ -771,22 +747,20 @@ def request_id(self, request_id): self._request_id = request_id @property - def browser_details(self): + def browser_details(self) -> BrowserDetails: """Gets the browser_details of this WebhookVisit. # noqa: E501 :return: The browser_details of this WebhookVisit. # noqa: E501 - :rtype: BrowserDetails """ return self._browser_details @browser_details.setter - def browser_details(self, browser_details): + def browser_details(self, browser_details: BrowserDetails): """Sets the browser_details of this WebhookVisit. :param browser_details: The browser_details of this WebhookVisit. # noqa: E501 - :type: BrowserDetails """ if browser_details is None: raise ValueError("Invalid value for `browser_details`, must not be `None`") # noqa: E501 @@ -794,22 +768,20 @@ def browser_details(self, browser_details): self._browser_details = browser_details @property - def ip(self): + def ip(self) -> str: """Gets the ip of this WebhookVisit. # noqa: E501 :return: The ip of this WebhookVisit. # noqa: E501 - :rtype: str """ return self._ip @ip.setter - def ip(self, ip): + def ip(self, ip: str): """Sets the ip of this WebhookVisit. :param ip: The ip of this WebhookVisit. # noqa: E501 - :type: str """ if ip is None: raise ValueError("Invalid value for `ip`, must not be `None`") # noqa: E501 @@ -817,45 +789,41 @@ def ip(self, ip): self._ip = ip @property - def ip_location(self): + def ip_location(self) -> DeprecatedIPLocation: """Gets the ip_location of this WebhookVisit. # noqa: E501 :return: The ip_location of this WebhookVisit. # noqa: E501 - :rtype: DeprecatedIPLocation """ return self._ip_location @ip_location.setter - def ip_location(self, ip_location): + def ip_location(self, ip_location: DeprecatedIPLocation): """Sets the ip_location of this WebhookVisit. :param ip_location: The ip_location of this WebhookVisit. # noqa: E501 - :type: DeprecatedIPLocation """ self._ip_location = ip_location @property - def timestamp(self): + def timestamp(self) -> int: """Gets the timestamp of this WebhookVisit. # noqa: E501 Timestamp of the event with millisecond precision in Unix time. # noqa: E501 :return: The timestamp of this WebhookVisit. # noqa: E501 - :rtype: int """ return self._timestamp @timestamp.setter - def timestamp(self, timestamp): + def timestamp(self, timestamp: int): """Sets the timestamp of this WebhookVisit. Timestamp of the event with millisecond precision in Unix time. # noqa: E501 :param timestamp: The timestamp of this WebhookVisit. # noqa: E501 - :type: int """ if timestamp is None: raise ValueError("Invalid value for `timestamp`, must not be `None`") # noqa: E501 @@ -863,24 +831,22 @@ def timestamp(self, timestamp): self._timestamp = timestamp @property - def time(self): + def time(self) -> datetime: """Gets the time of this WebhookVisit. # noqa: E501 Time expressed according to ISO 8601 in UTC format. # noqa: E501 :return: The time of this WebhookVisit. # noqa: E501 - :rtype: datetime """ return self._time @time.setter - def time(self, time): + def time(self, time: datetime): """Sets the time of this WebhookVisit. Time expressed according to ISO 8601 in UTC format. # noqa: E501 :param time: The time of this WebhookVisit. # noqa: E501 - :type: datetime """ if time is None: raise ValueError("Invalid value for `time`, must not be `None`") # noqa: E501 @@ -888,24 +854,22 @@ def time(self, time): self._time = time @property - def url(self): + def url(self) -> str: """Gets the url of this WebhookVisit. # noqa: E501 Page URL from which the identification request was sent. # noqa: E501 :return: The url of this WebhookVisit. # noqa: E501 - :rtype: str """ return self._url @url.setter - def url(self, url): + def url(self, url: str): """Sets the url of this WebhookVisit. Page URL from which the identification request was sent. # noqa: E501 :param url: The url of this WebhookVisit. # noqa: E501 - :type: str """ if url is None: raise ValueError("Invalid value for `url`, must not be `None`") # noqa: E501 @@ -913,24 +877,22 @@ def url(self, url): self._url = url @property - def tag(self): + def tag(self) -> 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 :return: The tag of this WebhookVisit. # noqa: E501 - :rtype: dict(str, object) """ return self._tag @tag.setter - def tag(self, tag): + def tag(self, tag: Dict[str, object]): """Sets the tag of this WebhookVisit. A customer-provided value or an object that was sent with identification request. # noqa: E501 :param tag: The tag of this WebhookVisit. # noqa: E501 - :type: dict(str, object) """ if tag is None: raise ValueError("Invalid value for `tag`, must not be `None`") # noqa: E501 @@ -938,68 +900,62 @@ def tag(self, tag): self._tag = tag @property - def linked_id(self): + def linked_id(self) -> str: """Gets the linked_id of this WebhookVisit. # noqa: E501 A customer-provided id that was sent with identification request. # noqa: E501 :return: The linked_id of this WebhookVisit. # noqa: E501 - :rtype: str """ return self._linked_id @linked_id.setter - def linked_id(self, linked_id): + def linked_id(self, linked_id: str): """Sets the linked_id of this WebhookVisit. A customer-provided id that was sent with identification request. # noqa: E501 :param linked_id: The linked_id of this WebhookVisit. # noqa: E501 - :type: str """ self._linked_id = linked_id @property - def confidence(self): + def confidence(self) -> Confidence: """Gets the confidence of this WebhookVisit. # noqa: E501 :return: The confidence of this WebhookVisit. # noqa: E501 - :rtype: Confidence """ return self._confidence @confidence.setter - def confidence(self, confidence): + def confidence(self, confidence: Confidence): """Sets the confidence of this WebhookVisit. :param confidence: The confidence of this WebhookVisit. # noqa: E501 - :type: Confidence """ self._confidence = confidence @property - def visitor_found(self): + def visitor_found(self) -> bool: """Gets the visitor_found of this WebhookVisit. # noqa: E501 Attribute represents if a visitor had been identified before. # noqa: E501 :return: The visitor_found of this WebhookVisit. # noqa: E501 - :rtype: bool """ return self._visitor_found @visitor_found.setter - def visitor_found(self, visitor_found): + def visitor_found(self, visitor_found: bool): """Sets the visitor_found of this WebhookVisit. Attribute represents if a visitor had been identified before. # noqa: E501 :param visitor_found: The visitor_found of this WebhookVisit. # noqa: E501 - :type: bool """ if visitor_found is None: raise ValueError("Invalid value for `visitor_found`, must not be `None`") # noqa: E501 @@ -1007,22 +963,20 @@ def visitor_found(self, visitor_found): self._visitor_found = visitor_found @property - def first_seen_at(self): + def first_seen_at(self) -> SeenAt: """Gets the first_seen_at of this WebhookVisit. # noqa: E501 :return: The first_seen_at of this WebhookVisit. # noqa: E501 - :rtype: SeenAt """ return self._first_seen_at @first_seen_at.setter - def first_seen_at(self, first_seen_at): + def first_seen_at(self, first_seen_at: SeenAt): """Sets the first_seen_at of this WebhookVisit. :param first_seen_at: The first_seen_at of this WebhookVisit. # noqa: E501 - :type: SeenAt """ if first_seen_at is None: raise ValueError("Invalid value for `first_seen_at`, must not be `None`") # noqa: E501 @@ -1030,22 +984,20 @@ def first_seen_at(self, first_seen_at): self._first_seen_at = first_seen_at @property - def last_seen_at(self): + def last_seen_at(self) -> SeenAt: """Gets the last_seen_at of this WebhookVisit. # noqa: E501 :return: The last_seen_at of this WebhookVisit. # noqa: E501 - :rtype: SeenAt """ return self._last_seen_at @last_seen_at.setter - def last_seen_at(self, last_seen_at): + def last_seen_at(self, last_seen_at: SeenAt): """Sets the last_seen_at of this WebhookVisit. :param last_seen_at: The last_seen_at of this WebhookVisit. # noqa: E501 - :type: SeenAt """ if last_seen_at is None: raise ValueError("Invalid value for `last_seen_at`, must not be `None`") # noqa: E501 diff --git a/fix_codegen_problems.py b/fix_codegen_problems.py new file mode 100644 index 00000000..6697da2f --- /dev/null +++ b/fix_codegen_problems.py @@ -0,0 +1,58 @@ +import os +import re + + +def camel_to_snake(name): + """Converts CamelCase to snake_case.""" + s1 = re.sub('(.)([A-Z][a-z]+)', r'\1_\2', name) + return re.sub('([a-z0-9])([A-Z])', r'\1_\2', s1).lower() + + +def convert_to_snake_case(text): + """Converts __to__snake__case imports to correct imports.""" + pattern = r'__to__snake__case\(([a-zA-Z0-9]+)\)' + + def replacer(match): + class_name = match.group(1) + snake_case_name = camel_to_snake(class_name) + return snake_case_name + + return re.sub(pattern, replacer, text) + + +def convert_type_annotations(text): + """Replaces dict(str, object) with dict[str, object] in function annotations.""" + pattern1 = r'-> dict\((\w+), (\w+)\):' + replacement1 = r'-> Dict[\1, \2]:' + result = re.sub(pattern1, replacement1, text) + pattern2 = r': dict\((\w+), (\w+)\)' + replacement2 = r': Dict[\1, \2]' + result = re.sub(pattern2, replacement2, result) + return result + + +def process_file(file_path: str): + """Reads file, performs conversion and writes back.""" + with open(file_path, 'r+', encoding='utf-8') as file: + content = file.read() + + content = convert_to_snake_case(content) + content = convert_type_annotations(content) + + with open(file_path, 'w', encoding='utf-8') as file: + file.write(content) + + +def process_models(): + """Run through all models.""" + directory = './fingerprint_pro_server_api_sdk/models' + for root, _, files in os.walk(directory): + for file in files: + if file.endswith('.py'): + file_path = os.path.join(root, file) + process_file(file_path) + + +if __name__ == "__main__": + process_models() + diff --git a/generate.sh b/generate.sh index be94e69c..104c0305 100755 --- a/generate.sh +++ b/generate.sh @@ -26,6 +26,8 @@ rm !("too_many_requests_response.py") cd ../.. java -jar ./bin/swagger-codegen-cli.jar generate -t ./template -l python -i ./res/fingerprint-server-api.yaml -o ./ -c config.json -DpackageVersion=$VERSION +python ./fix_codegen_problems.py + # Ugly fix for codegen problem that I couldn't fix editing template. # Platform check platform=$(uname) diff --git a/run_checks.py b/run_checks.py index 958b43c5..58b5fe97 100644 --- a/run_checks.py +++ b/run_checks.py @@ -1,8 +1,6 @@ import os import fingerprint_pro_server_api_sdk -from fingerprint_pro_server_api_sdk import EventResponse -from fingerprint_pro_server_api_sdk import Response from fingerprint_pro_server_api_sdk.rest import ApiException from dotenv import load_dotenv @@ -18,11 +16,11 @@ request_id = os.environ["REQUEST_ID"] try: - visits_response: Response = api_instance.get_visits(visitor_id, limit=2) + visits_response = api_instance.get_visits(visitor_id, limit=2) pagination_key = visits_response.pagination_key print("\n\n\nVisits response: \n", visits_response) - visits_response: Response = api_instance.get_visits( + visits_response = api_instance.get_visits( visitor_id, limit=2, pagination_key=pagination_key) except ApiException as e: @@ -30,7 +28,7 @@ exit(1) try: - events_response: EventResponse = api_instance.get_event(request_id) + events_response = api_instance.get_event(request_id) print("\n\n\nEvent response: \n", events_response.products) diff --git a/template/model.mustache b/template/model.mustache index 7075e554..04c9db03 100644 --- a/template/model.mustache +++ b/template/model.mustache @@ -3,9 +3,18 @@ {{>partial_header}} import re # noqa: F401 +from typing import Dict # noqa: F401 from {{packageName}}.base_model import BaseModel {{#models}} {{#model}} +{{#vars}} +{{#complexType}} +from {{packageName}}.models.__to__snake__case({{complexType}}) import {{complexType}} +{{/complexType}} +{{#isDateTime}} +from datetime import datetime +{{/isDateTime}} +{{/vars}} class {{classname}}(BaseModel): @@ -71,7 +80,7 @@ class {{classname}}(BaseModel): {{#vars}} @property - def {{name}}(self): + def {{name}}(self) -> {{datatype}}: """Gets the {{name}} of this {{classname}}. # noqa: E501 {{#description}} @@ -79,12 +88,11 @@ class {{classname}}(BaseModel): {{/description}} :return: The {{name}} of this {{classname}}. # noqa: E501 - :rtype: {{datatype}} """ return self._{{name}} @{{name}}.setter - def {{name}}(self, {{name}}): + def {{name}}(self, {{name}}: {{datatype}}): """Sets the {{name}} of this {{classname}}. {{#description}} @@ -92,7 +100,6 @@ class {{classname}}(BaseModel): {{/description}} :param {{name}}: The {{name}} of this {{classname}}. # noqa: E501 - :type: {{datatype}} """ {{#required}} {{^nullable}}